@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-alpha.8
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/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
- package/lib/types/services/attachment-remote/types.d.ts +2 -19
- package/lib/types/services/member/member.service.d.ts +2 -15
- 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 +15 -14
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;}));
|
|
1
|
+
function _0x2261(){const _0x492076=['_waitForHeartbeatResponse','_transformRemoteChangesetByStateCache','_scheduleCompleteTimestamp','unitLoaded$','function','amd','JSONX','state','getUnitType','OPTIONAL','createUniverCollaborationAdapter','[CollaborationEntity]','_revisionService','/role','reject','SOCKET_FAILED_RETRY','csAckEvent','IDLE','copyFileMeta','symbol','UniverDrawing','MoveSlidePageMutation','unitId','[CollaborationSessionService]:\x20socket\x20error','memberID','Subject','getDrawingImageAllowSize','_HTTPService','_getAPIPrefixPath','_onMessage','responseType','_transformSelections','_onRemoteACK','liveShareOperation','addHandlerCallback','firstValueFrom','error','localUnitId','default','_pendingSessions','IAuthzIoService','_toggleOnline','UPDATE_PERMISSION_OBJ','_redoStacks','DataLoaderService','_lockTransition','deepClone','_instanceService','resend','parseProtocolChangeset','registerDependencies','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.',',\x20got:\x20','routeKey','withCredentials','SheetsSelectionsService','maxSize','updateOfflineData','sort','Disposable','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','c1Prime','code','NEW_CHANGESETS','UniverProCollaboration','csShouldRetryEvent','putCollaborators','state$','message$','now','UniverProLicense','_permissionService','@univerjs/protocol','_memberService','_updateState','FileId','toPrimitive','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','src','Optional','transformStack\x20failed!','CLOSE_ROOM','_disableEditing','getImage','getWorkbookSelections','HEARTBEAT_INTERVAL','loadUnitOfRevision','close','onTransformSelections','_onConnectionFailed',',\x20got\x20','loginUrlKey','JOIN_ROOM_PERMISSION_DENIED','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','upload','_remoteChangesetQueue','awaiting_with_pending','exports','fetchMiss','fill','updatePermissionPoint','@univerjs/drawing','getCurrentUser','call','socketMessageSubscription','SessionStatus','CompressMutationService','UUID','Module','/universer-api/uniscript','@univerjs-pro/collaboration-client','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','/collaborator','aes/pkcs7:\x20wrong\x20padding','onTransformState','univer-pro.collaboration-client.single-active-unit-service','sendHeartbeatTimer','_queuedRemoteChangesets','_createSocket','enableSingleActiveInstanceLock','floor','LIVESHARE_OPERATION','_changesetReqId','DisposableCollection','stopTime','_handleRemoteChangesets','requireSession','error$','getTypeOfUnitAdded$','_transitionLocked','dispose','transformMutationsWithChangeset','_updateStatus','getRoom','serializeCombRequest','_resendWithTimeout','debug','BASE64','unitType','transformUndoRedo','_upload','object','JOIN','_clearUndo','uniscriptRunEvent','hostname','?size=','_checkMissing','BehaviorSubject','DEFAULT_WS_SESSION_TICKET_URL','candidateSocket','UNIVER_PDF','emitEvent','findIndex','session.room-permission-denied','EnsureSlideMasterPageMutation','_onRecvEvent','[OfflineState]:\x20received\x20acknowledgement.','\x20in\x20_schedule.','ICommandService','_handler','parseChangesetToProtocol','params','patch','_listenToNetworkCondition','OfflineState','getMemberID','_sheetTransformSelectionsService','_transformStack','tables','pauseCollaboration','CollaborationImageIoService','UNIVER_BOARD','ErrorCode','_resendTimer','getTypeOfUnitDisposed$','requestParams','signUrlServerUrl','set','_singleActiveUnitService','baseRev','base-ui.attachment-io.service','slice','fetchThroughInterceptors','_getDownloadEndpointURL','RemoveSlidePageMutation','UniverInstanceType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_status$','UniverCore','COMMENT_UPDATE','IConfigService','_univerInstanceService','UniverNetworkPlugin','toString','closeSession','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_emitMembers','@univerjs/telemetry','FileSource','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_toggleOffline','_decreaseWaiting','ISocketService','/fetchmissing?from=','location','saveAttachment','unit-cache-','removeMember','UNIVER_SLIDE','RECV','_adapter','isTransformChangesetsSuccess','backupOfflineData','univer-pro.collaboration-client-socket-service','/universer-api/authz','SheetTransformSelectionsService','ONLINE','BYTES_PER_ELEMENT','loadSlide','socket\x20open.','_submitChangeset','session.room-full','onlyLocal','concatMap','accept','&source=','_clearRetryConnectingTimer','nonceLength','saveSheetBlock','m2Prime','DRAWING_IMAGE_ALLOW_IMAGE_LIST','PdfCollaborationEntity','leaveEvent','revision','ISingleActiveUnitService','_snapshotService','_networkConditionService','UniverProCollaborationClient','add','?url=','UNIVER_SHEET','result','SHOULD_CLOSE_CONN','setWaitCount','entries','addImageSourceCache','SlideCollaborationEntity','_transformStateCache','getInterceptPoints','createIdentifier','c2Prime','createInstance','SOCKET_FAILED','batchAllowed','columnGroups','reqId','ReplaySubject','COMPRESS_MUTATION_SEND','_startTelemetryCollaborationNewChangeset','min','collabWebSocketUrl','_onCombEvent','socket\x20close','catch','onTransformRemoteChangesetByStateCache','getAllMembers','commentUpdate$','_getUndoStack','capture','userID','_initDependencies','isView','indexOf','[OfflineState]:\x20received\x20rejection.','1916289npgTco','LocaleService','parse','JOINING','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getSheetId','getCurrentRevOfUnit','_maxTotalRetryTimeout','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearLocalCache','HTTPRequest','UniverLicensePlugin','_getSendChangesetTimeout','transformChangesets','_cfgEnableObjInherit','fromCharCode','session.join-failed','rxjs/operators','allowed','/object/','appendMutation','onRemoteChangeset','DocStateChangeManagerService','_unitInfo$','_isPermissionRej','CmdRspCode','retryConnectingTimer','shouldCloseConn','Rectangle','waitForRoom$','isPermissionRej','_scheduleCollaborationTimeoutTimer','SUBMIT_CHANGESET','3181910pmKYzO','text-x','_transformUndoredo','data','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_onUserLeave','_waitCount','_hasSessionsForEndpoint','UniverCollaborationClientPlugin','_docStateChangeManagerService','_applyRemoteChangeset','open$','clear','_undoRedoService','init','editingUnit','JOIN_ROOM_NOT_EXISTS','eventID','AwaitingWithPendingState','updateMember','close$','_isEchoedAwaitingChangeset','authzUrl','_configService','downloadEndpointUrl','startTime','_logService','newCsEvent','getCollabEntity$','isTransformMutationsWithChangesetSuccess','apply','rxjs','_telemetryService','HEARTBEAT','_exhaustRemoteChangesetQueue','univer-pro.collaboration-client-adapter-service','_collabSessionService','status$','CollaborationEvent','PERMISSION_REJ','ISnapshotServerService','MSG_FOR_ERROR','_roomMembers','crypto','x-univer-host','unsubscribe','SnapshotServerOverHTTPService','startsWith','_initRequestHeader','retryCount','missingChangesets','cipher\x20output\x20not\x20supported','_injector','_type','_getCtorByUniverInstanceType','_telemetryInfo','endsWith','_replaceFileID','post','\x0aAfter:\x20','Injector','UnitEmbedded','getTime','shareReplay','getUploadOptions','COLLABORATION_ENDPOINT_INVALID','retryConnectingInterval','toggleOnline','mapDocumentTypeToUniverInstanceType','session','confirm','[FetchMissState]','awaiting','_clearTimeoutTimer','dispose$','COMPRESS_MUTATION_APPLY','objectID','getLocalCacheKey','Tools','deserializeToCombResponse','disableLocalCache','SetSelectionsOperation','__splitChunk__','CollaborationSessionService','MergeInterceptorFactory','collaboration-client.auth.needGotoLoginAlert','_collaborationPaused','forEach','_members$','_onConflict','onCommentUpdate','number','unit','roles','_awaitingChangeset','getAttachmentUrl','_throwTelemetryCollaborationNewChangeset','asObservable','transformSelections','CollaborationStatus','ImageSourceType','[CollaborationSession]','PERMISSION_DENIED','WorkbookEditablePermission','unknown','resolveUnit','OFFLINE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','POST','ConflictState','UniverDocs','UNISCRIPT_RUN','offline','_state','registerHTTPInterceptor','_onLocalMutation','CollaborationController','_transformRemoteChangesetByIMECache','onMissingChangesets','buffer','/universer-api/snapshot','listRoles','_rescheduleHeartbeat','expected\x20Uint8Array','/unit/','subUnitId','AddSlidePageMutation','UNIVER_COLLABORATION_CLIENT_PLUGIN','_collaborationSessionService','_pendingMutations','body','_handlerCallback','append','headers','/universer-api/file/{fileID}/sign-url','CollaborationEntity','encodeURIComponent','univer-pro.collaboration-client.network-condition.service','60VoHqFY','136781chOafo','iterator','_registerDependencies','_initUnitPermissionChange','_compressMutationService','ICollaborationClientAdapterService','GLOBAL_ROOMS_CNT_EXCEEDS','CollaborationSession','1145490SIWDwR','name','decorate','pending','_updateLocalCache','_undoStacks','createSocket','endpointKey','prototype','/object','IUndoRedoService','_commandService','loadDoc','getCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','mutations','toDisposable','onRemoteAck','getUnitStatus$','merge','CHANGESET_REJ','members$','ERROR_IMAGE_TYPE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','Wrong\x20sbox\x20length','complete','_fetchMissChangesets','_change$','SUBMIT_CHANGESET_TIMEOUT','INGEST','onload','setConfig','_removeRoom','_clearCollaborationTimeoutTimer','UniverTelemetry','@univerjs-pro/slides','disposeWithMe','map','href','getConfig','RETRY_CONNECTING_MAX_COUNT','USERS_LEAVE','/block/','setShowComponents','_collaborationTimeoutTimer','override','[SyncedState]:\x20received\x20acknowledgement.','toggleOffline','synced','target','\x20-\x20','localeService','byteOffset','subscribe','_httpService','_entities','touchDependencies','_members','_tryEnsureSocket','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','_state$','OTHER_CLIENT_EDITING','_acknowledgeAwaitingIfReady','_doCreateSocket','_changesetSessionId','[PendingState]:\x20received\x20acknowledgement.','socketReady','subject','UPDATE_CURSOR','next','INetworkConditionService','roomInfos','3764934oJvnhC','People','_createInitialState','byteLength','save\x20fail\x20reason\x20is\x20','CombCmd','UNIVER_DOC','_syncEditingCollabCursor','not_collab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_onFetchMissResult','permissionRejEvent','IImageIoService','HTTPService','delete','_identity','liveShareNewHost','MentionType','action','NOT_COLLAB','isInternalEditorID','_transformAndApplyRemoteChangeset','sequenceExecute','varSizeNonce','objectType','timeoutTimer','DocCollaborationEntity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CommandType','subarray','delay','isTransformMutationsWithChangesetFailure','from','\x20to\x20','&assign=','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_imageSourceCache','_resendTimeout','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCollabEntity','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','sid','_executeRemoteChangeset','_onJoinRoomEvent','IPermissionService','_localCacheService','[UniverCollaborationClientPlugin]','string','cmd','_getSocketChannel','decrypt','EmptyMutationInfo','UniverSheets','UniverCollaborationPlugin','toRemote','_config','put','RxDisposable','every','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','_showConflictNotification','resolveWithBasePath','submit\x20changeset\x20error!','getMember','AWAITING_WITH_PENDING','_init','send','IAttachmentIoService','_entityInit$','fromCollab','enableOfflineEditing','\x20of\x20length\x20','UNIVER_BASE','commentUpdateEvent','encrypt','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','originalMeta','length','_tryReconnect','_transformIMECache','localCacheService','onRemoteRetry','HEARTBEAT_TIMEOUT_KEY','OTHER_CLIENTS_EDITING','_sessions','_getSignURL','LEAVE','objects','session.room-cnt-exceeds','pipe','loadSheet','Quantity','_unlockTransition','duration','take','collaborators','_joinRoom','invalid\x20output,\x20must\x20be\x20aligned','mergeOverrideWithDependencies','length=','_sessionChannels','onMutationExecutedForCollab','_snapshotServerService','interceptor','blockRanges','_replayCachedMutations','RichTextEditingMutation','JOIN_ROOM_FAILED','@univerjs/docs','isArray','change$','ITelemetryService','readyForCollab','onTransformIME','onTransformRemoteChangesetByIMECache','_createSession','loadPdf','trim','_commentUpdate$','_getConfig','LIVESHARE_NEW_HOST','RETRY_CONNECTING_MAX_COUNT_KEY','values','_clearScheduledTask','ERROR_EXCEED_SIZE','_clearRedo','LIVESHARE_FETCH_OPERATIONS','getLatestCsReqIdBySid','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','1.0.0-alpha.8','toStringTag','get','status','PERSON','_onConnectionOpen','@univerjs/network','b64DecodeUnicode','CollaborationUIEventId','getFocusedUnit','fetching\x20missing\x20changesets\x20from\x20','unitId\x20is\x20not\x20found','_unitLoaded$','MemberService','FETCH_MISSING','docStateChange$','HEARTBEAT_INTERVAL_KEY','resourceIDs','&to=','unitID','hasOwnProperty','version','file','Error\x20on\x20receiving\x20event','LOCAL_CACHE_INTERVAL','origin','CommentService','_onRemoteRetry','connection\x20error','_localeService','_shouldReportTelemetry','update','onStarting','[SyncedState]:\x20received\x20rejection.','/-/object/-/batch_allowed','1664392JcmbCn','_incrementRevisionNumber','size','output','CollaborationAttachmentIoService','_getLoginPath','@univerjs-pro/license','find','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','isCompositionEnd','CHANGESET_ACK','uuidv4','_sendingTimer','_eventService','_stopTelemetryCollaborationNewChangeset','USERS_ENTER','getActiveSheet','create','selections','ImageUploadStatusType','session.room-not-exists','replace','Failed\x20to\x20update\x20permission\x20point','sessionStatus$','BoardCollaborationEntity','onRemoteRej','ERROR_IMAGE','push','getGlobalObject','_initMergeInterceptor','_substituteRedoStack','_transformService','_getAPIPrefix','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','SyncedState','joinRsp','_onOffline','FetchingMissState','members','_socketMessageSubscription','getUnitId','generateRandomId','url','focused$','has','_acknowledgedAwaitingRevision','actions','CHANGESET_SHOULD_RETRY','fetch_missing','_socket','changesets','socketService','_getCurrentRevision','getDeserializedSheetBlock','getCurrentSelections','constructor','_userManagerService','/universer-api/snapshot/','_collaborationUIEventService','equals','DEFAULT_COLLAB_WEB_SOCKET_URL','IUniverInstanceService','loadOfflineData','reduce','packageName','avatar','number\x20expected,\x20got\x20','_sender','collaboration-client.config','[DataLoaderService]','takeUntil','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','FAIL','UniverProSlides','\x0aCurrent:\x20','CONFLICT','updateSnapshot','enableCollaboration','workbook','online$','getValue','Inject','getImageSourceCache','_event$','88PiVfRg','key','assign','some','BaseCollaborationEntity','event$','/universer-api/stream/file/upload','listCollaborators','defineProperty','[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.','stringify','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','encode','AwaitingState','_getRedoStack','AWAITING','ITransformService','refreshPermission','collabSubmitChangesetUrl','_socketChannels','_schedule','40233KTQcKY','onSendChangeset','MUTATION','endpoint','getUnit','AAD','textEncoder','_socketService','type','changeset','filter','UniverProtocol','/resources','sendChangesetTimeout','conflict','getUnitOnRev','/-/object/list','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onUserJoin','getSnapshotAPIPath','HELLO','ws://127.0.0.1:8000/universer-api/comb/connect','_createHandler','disablePadding','setCfgEnableObjInherit','/allowed','7FIxSok','SNAPSHOT_URL_KEY','socket$','_onRemoteRejected','sessionStatus','RevisionService','tagLength','_clearHeartbeatTimer','_roomCreated$','_acknowledgeAwaiting','incrementRevOfUnit','@univerjs-pro/collaboration','list','_createInitialStateImpl','snapshotServerUrl','collaboratorID','_resolveSessionIdentity','_sessionStatus$','HEARTBEAT_TIMEOUT','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','enableAuthServer','collaboration_new_changeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','PSEUDO_FETCH_MISSING_RESULT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SheetCollaborationEntity','IContextService','[CollaborationUndoRedoService]','executeCommand','_startCollaboration','collaMsg','onSyncEditingCollabCursor','string\x20expected','_getUploadFileURL','ILogService','includes','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','awaitingChangeset','rev'];_0x2261=function(){return _0x492076;};return _0x2261();}function _0x4e8d(_0x26bafd,_0x3b4494){_0x26bafd=_0x26bafd-0xeb;const _0x2261f2=_0x2261();let _0x4e8dd6=_0x2261f2[_0x26bafd];return _0x4e8dd6;}(function(_0x2dc0e6,_0x1c0a7){const _0x36f061=_0x4e8d,_0x2de401=_0x2dc0e6();while(!![]){try{const _0x2e9bb4=-parseInt(_0x36f061(0x446))/0x1+parseInt(_0x36f061(0x44e))/0x2+parseInt(_0x36f061(0x243))/0x3*(-parseInt(_0x36f061(0x22e))/0x4)+parseInt(_0x36f061(0x3bb))/0x5+parseInt(_0x36f061(0x134))/0x6+parseInt(_0x36f061(0x25d))/0x7*(parseInt(_0x36f061(0x1d9))/0x8)+parseInt(_0x36f061(0x39a))/0x9*(-parseInt(_0x36f061(0x445))/0xa);if(_0x2e9bb4===_0x1c0a7)break;else _0x2de401['push'](_0x2de401['shift']());}catch(_0x1bb4c6){_0x2de401['push'](_0x2de401['shift']());}}}(_0x2261,0x51dd4),function(_0x205182,_0x1ac627){const _0x1dd4bb=_0x4e8d;typeof exports=='object'&&typeof module<'u'?_0x1ac627(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==_0x1dd4bb(0x289)&&define[_0x1dd4bb(0x28a)]?define([_0x1dd4bb(0x2e7),_0x1dd4bb(0x268),'@univerjs/core',_0x1dd4bb(0x1a1),'@univerjs/sheets',_0x1dd4bb(0x3da),_0x1dd4bb(0x2ce),_0x1dd4bb(0x34d),_0x1dd4bb(0x3ab),_0x1dd4bb(0x10e),_0x1dd4bb(0x1bc),_0x1dd4bb(0x1df),_0x1dd4bb(0x2eb)],_0x1ac627):(_0x205182=typeof globalThis<'u'?globalThis:_0x205182||self,_0x1ac627(_0x205182[_0x1dd4bb(0x375)]={},_0x205182[_0x1dd4bb(0x2c6)],_0x205182[_0x1dd4bb(0x344)],_0x205182[_0x1dd4bb(0x429)],_0x205182[_0x1dd4bb(0x168)],_0x205182['rxjs'],_0x205182[_0x1dd4bb(0x24e)],_0x205182[_0x1dd4bb(0x10d)],_0x205182[_0x1dd4bb(0x3da)]['operators'],_0x205182[_0x1dd4bb(0x223)],_0x205182['UniverNetwork'],_0x205182[_0x1dd4bb(0x2cc)],_0x205182[_0x1dd4bb(0x299)]));}(this,function(_0x4baffb,_0x20c203,_0x2d0b9f,_0x33f3ff,_0x2ba48b,_0x31dca4,_0x11fae4,_0x20ecbc,_0x2ba3c8,_0x4d2eeb,_0xc90c47,_0x3478b3,_0x247c19){const _0x405303=_0x4e8d;Object[_0x405303(0x236)](_0x4baffb,Symbol[_0x405303(0x1b7)],{'value':_0x405303(0x2f2)});let _0x51e182='collaboration-client.config',_0x5939b8={},_0x219b9d=_0x405303(0x258),_0x1dd4cb=0x4e20;function _0x18ce34(_0x2773ee){const _0x433595=_0x405303;return JSON['stringify'](_0x2773ee)[_0x433595(0x182)];}function _0x4dd0ed(_0x17c066){'@babel/helpers - typeof';const _0x40023c=_0x405303;return _0x4dd0ed=typeof Symbol==_0x40023c(0x289)&&typeof Symbol[_0x40023c(0x447)]=='symbol'?function(_0x5da3ef){return typeof _0x5da3ef;}:function(_0x19cfde){const _0x2fef90=_0x40023c;return _0x19cfde&&typeof Symbol==_0x2fef90(0x289)&&_0x19cfde[_0x2fef90(0x211)]===Symbol&&_0x19cfde!==Symbol[_0x2fef90(0xf2)]?_0x2fef90(0x298):typeof _0x19cfde;},_0x4dd0ed(_0x17c066);}function _0x156fac(_0x4dc2be,_0x1a051){const _0x383278=_0x405303;if(_0x4dd0ed(_0x4dc2be)!=_0x383278(0x314)||!_0x4dc2be)return _0x4dc2be;var _0x1f97c2=_0x4dc2be[Symbol[_0x383278(0x2d2)]];if(_0x1f97c2!==void 0x0){var _0x50a75c=_0x1f97c2[_0x383278(0x2ed)](_0x4dc2be,_0x1a051||_0x383278(0x2ab));if(_0x4dd0ed(_0x50a75c)!='object')return _0x50a75c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a051===_0x383278(0x163)?String:Number)(_0x4dc2be);}function _0x33c5d3(_0x263f08){const _0x91768f=_0x405303;var _0x2f59b9=_0x156fac(_0x263f08,_0x91768f(0x163));return _0x4dd0ed(_0x2f59b9)==_0x91768f(0x298)?_0x2f59b9:_0x2f59b9+'';}function _0x4219eb(_0x257624,_0xcb86aa,_0x575ff3){return(_0xcb86aa=_0x33c5d3(_0xcb86aa))in _0x257624?Object['defineProperty'](_0x257624,_0xcb86aa,{'value':_0x575ff3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x257624[_0xcb86aa]=_0x575ff3,_0x257624;}let _0x3f9476=function(_0x73be8e){const _0x14b290=_0x405303;return _0x73be8e[_0x14b290(0x129)]=_0x14b290(0x129),_0x73be8e[_0x14b290(0x421)]='PERMISSION_DENIED',_0x73be8e[_0x14b290(0x225)]='CONFLICT',_0x73be8e[_0x14b290(0x2d7)]='CLOSE_ROOM',_0x73be8e[_0x14b290(0x1a0)]=_0x14b290(0x1a0),_0x73be8e[_0x14b290(0x294)]=_0x14b290(0x294),_0x73be8e[_0x14b290(0x384)]=_0x14b290(0x384),_0x73be8e[_0x14b290(0x107)]='SUBMIT_CHANGESET_TIMEOUT',_0x73be8e;}({});var _0xa9d46c=class{constructor(){const _0x5aad41=_0x405303;_0x4219eb(this,'_event$',new _0x31dca4[(_0x5aad41(0x29e))]()),_0x4219eb(this,'event$',this[_0x5aad41(0x22d)][_0x5aad41(0x41c)]());}['emitEvent'](_0x18d4a2){const _0x4768e7=_0x405303;this[_0x4768e7(0x22d)][_0x4768e7(0x131)](_0x18d4a2);}},_0x432b3d=class{constructor(){const _0x19c163=_0x405303;_0x4219eb(this,'_commentUpdate$',new _0x31dca4['Subject']()),_0x4219eb(this,_0x19c163(0x392),this['_commentUpdate$'][_0x19c163(0x41c)]());}[_0x405303(0x415)](_0x8045e7){const _0x3d3422=_0x405303;this[_0x3d3422(0x1ab)][_0x3d3422(0x131)](_0x8045e7);}};function _0x43549d(_0x12d1fc,_0x151546){return function(_0x40eb9f,_0x261d3c){_0x151546(_0x40eb9f,_0x261d3c,_0x12d1fc);};}function _0x3934d9(_0x383f26,_0xec8204,_0xae13e7,_0xcaf472){const _0x1705e5=_0x405303;var _0x132fd7=arguments[_0x1705e5(0x182)],_0x283a60=_0x132fd7<0x3?_0xec8204:_0xcaf472===null?_0xcaf472=Object['getOwnPropertyDescriptor'](_0xec8204,_0xae13e7):_0xcaf472,_0x6fde4c;if(typeof Reflect=='object'&&typeof Reflect[_0x1705e5(0xec)]=='function')_0x283a60=Reflect['decorate'](_0x383f26,_0xec8204,_0xae13e7,_0xcaf472);else{for(var _0x3632a5=_0x383f26[_0x1705e5(0x182)]-0x1;_0x3632a5>=0x0;_0x3632a5--)(_0x6fde4c=_0x383f26[_0x3632a5])&&(_0x283a60=(_0x132fd7<0x3?_0x6fde4c(_0x283a60):_0x132fd7>0x3?_0x6fde4c(_0xec8204,_0xae13e7,_0x283a60):_0x6fde4c(_0xec8204,_0xae13e7))||_0x283a60);}return _0x132fd7>0x3&&_0x283a60&&Object[_0x1705e5(0x236)](_0xec8204,_0xae13e7,_0x283a60),_0x283a60;}let _0x42c2f1=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x34fda0){const _0x4333bd=_0x405303;super(),this[_0x4333bd(0x347)]=_0x34fda0,_0x4219eb(this,_0x4333bd(0x3e5),new Map()),_0x4219eb(this,_0x4333bd(0x265),new _0x31dca4[(_0x4333bd(0x29e))]()),this['disposeWithMe']((0x0,_0x31dca4[_0x4333bd(0xfd)])(this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)]['UNIVER_SHEET'])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0xcae10b=>_0xcae10b[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f['UniverInstanceType'][_0x4333bd(0x13a)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x40b976=>_0x40b976[_0x4333bd(0x202)]())),this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x333)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3ce9ee=>_0x3ce9ee[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x17d)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3fa5f6=>_0x3fa5f6['getUnitId']())))[_0x4333bd(0x120)](_0x1fe699=>this[_0x4333bd(0x10b)](_0x1fe699)));}[_0x405303(0x3b7)](_0x253f86){const _0x1744fa=_0x405303;return this[_0x1744fa(0x3e5)]['has'](_0x253f86)?(0x0,_0x31dca4['of'])(this['_roomMembers'][_0x1744fa(0x1b8)](_0x253f86)):this[_0x1744fa(0x265)][_0x1744fa(0x18e)]((0x0,_0x2ba3c8[_0x1744fa(0x110)])(_0x340a84=>{const _0x15a06a=_0x1744fa;if(_0x340a84===_0x253f86)return this[_0x15a06a(0x3e5)][_0x15a06a(0x1b8)](_0x340a84);}));}[_0x405303(0x3ce)](_0x30747b,_0x3b6a8e){const _0x3c3d74=_0x405303;let _0x100cbc=this[_0x3c3d74(0x3e5)][_0x3c3d74(0x1b8)](_0x30747b);_0x100cbc||(_0x100cbc=new _0x2ed6f4(),this[_0x3c3d74(0x3e5)][_0x3c3d74(0x339)](_0x30747b,_0x100cbc),this[_0x3c3d74(0x265)][_0x3c3d74(0x131)](_0x30747b)),_0x100cbc[_0x3c3d74(0x3ce)](_0x3b6a8e);}[_0x405303(0x357)](_0x4f407b,_0x442b3f){const _0x2914ce=_0x405303;let _0x3863fd=this[_0x2914ce(0x3e5)][_0x2914ce(0x1b8)](_0x4f407b);_0x3863fd&&_0x3863fd['removeMember'](_0x442b3f);}[_0x405303(0x30c)](_0x218c9c){const _0x2a0b2a=_0x405303;return this[_0x2a0b2a(0x3e5)][_0x2a0b2a(0x1b8)](_0x218c9c);}['getMember'](_0x488fd6,_0x5f072d){const _0x1c8acd=_0x405303;let _0x2a3db2=this[_0x1c8acd(0x3e5)][_0x1c8acd(0x1b8)](_0x488fd6);if(_0x2a3db2)return _0x2a3db2[_0x1c8acd(0x174)](_0x5f072d);}[_0x405303(0x10b)](_0x4e5947){const _0x1ae814=_0x405303;let _0x31664d=this['_roomMembers'][_0x1ae814(0x1b8)](_0x4e5947);_0x31664d&&(_0x31664d[_0x1ae814(0x309)](),this[_0x1ae814(0x3e5)][_0x1ae814(0x142)](_0x4e5947));}[_0x405303(0x309)](){const _0x13f50e=_0x405303;this[_0x13f50e(0x3e5)][_0x13f50e(0x412)](_0x7b2b24=>_0x7b2b24[_0x13f50e(0x309)]()),this[_0x13f50e(0x3e5)][_0x13f50e(0x3c7)](),this['_roomCreated$']['complete']();}};_0x42c2f1=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)])],_0x42c2f1);var _0x2ed6f4=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(..._0x3740e7){const _0xd33643=_0x405303;super(..._0x3740e7),_0x4219eb(this,_0xd33643(0x124),new Map()),_0x4219eb(this,_0xd33643(0x413),new _0x31dca4[(_0xd33643(0x31b))](this[_0xd33643(0x124)])),_0x4219eb(this,_0xd33643(0xff),this[_0xd33643(0x413)][_0xd33643(0x41c)]());}[_0x405303(0x309)](){const _0x674a40=_0x405303;this[_0x674a40(0x124)][_0x674a40(0x3c7)](),this[_0x674a40(0x413)]['complete']();}[_0x405303(0x3ce)](_0x18fdb4){const _0x5af936=_0x405303;this[_0x5af936(0x124)][_0x5af936(0x339)](_0x18fdb4['memberID'],_0x18fdb4),this['_emitMembers']();}[_0x405303(0x357)](_0x50b73a){const _0x5e438c=_0x405303;this['_members']['delete'](_0x50b73a),this[_0x5e438c(0x34c)]();}[_0x405303(0x174)](_0x3587cd){const _0x287e99=_0x405303;return this['_members'][_0x287e99(0x1b8)](_0x3587cd);}[_0x405303(0x391)](){const _0x2d1425=_0x405303;return Array[_0x2d1425(0x154)](this[_0x2d1425(0x124)][_0x2d1425(0x1af)]());}['_emitMembers'](){const _0x3ec15b=_0x405303;this[_0x3ec15b(0x413)][_0x3ec15b(0x131)](this[_0x3ec15b(0x124)]);}};function _0xecb3e0(_0x3ca447,_0x51cd89){const _0x154a3d=_0x405303;if(_0x27e9d8(_0x3ca447))return _0x51cd89;if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)][_0x154a3d(0x3ba)]){var _0x5d6d6f;let _0x4ec441=_0x445cd3(_0x3ca447),_0xff3092=_0x51cd89;return{..._0xff3092,'data':{..._0xff3092[_0x154a3d(0x3be)],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x5d6d6f=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0xff3092[_0x154a3d(0x3be)][_0x154a3d(0x311)]:_0x5d6d6f,'changeset':_0x4ec441[_0x154a3d(0x16a)](_0xff3092['data'][_0x154a3d(0x24c)],_0x12ae60(_0x3ca447))}};}if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)]['FETCH_MISSING']){var _0x11452e;let _0x4bf58b=_0x51cd89;return{..._0x4bf58b,'data':{..._0x4bf58b['data'],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x11452e=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0x4bf58b['data'][_0x154a3d(0x311)]:_0x11452e}};}return _0x51cd89;}function _0x2566ac(_0x258007,_0x548f68){const _0x1d65ce=_0x405303;if(_0x27e9d8(_0x258007))return[_0x548f68];switch(_0x548f68['eventID']){case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x2c5)]:return[_0x347482(_0x258007,_0x548f68)];case _0x20c203['CollaborationEvent'][_0x1d65ce(0x275)]:return[_0xce7e49(_0x258007,_0x548f68)];case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x209)]:return[_0x1298a1(_0x258007,_0x548f68)];default:return[_0x548f68];}}function _0x27e9d8(_0x301a8d){const _0x3358ad=_0x405303;return _0x301a8d[_0x3358ad(0x11c)][_0x3358ad(0x246)]==null&&_0x301a8d['target']['unitId']===_0x301a8d[_0x3358ad(0x2aa)]&&!_0x301a8d['changeset'];}function _0x347482(_0x4d465d,_0x4d2419){const _0x45bd91=_0x405303;return{..._0x4d2419,'data':(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x4d465d,(0x0,_0x20c203[_0x45bd91(0x2b6)])(_0x4d2419[_0x45bd91(0x3be)])))};}function _0x1298a1(_0x4ffca0,_0x24f790){const _0x424571=_0x405303;return{..._0x24f790,'data':_0xf8048d(_0x4ffca0,_0x24f790[_0x424571(0x3be)])};}function _0xce7e49(_0x25e966,_0x4724ff){const _0x4ffec8=_0x405303;let _0x462bdf=_0x4724ff[_0x4ffec8(0x3be)];return{..._0x4724ff,'data':{..._0x462bdf,'changesets':_0x462bdf[_0x4ffec8(0x20c)][_0x4ffec8(0x110)](_0x352a3f=>(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x25e966,(0x0,_0x20c203['parseProtocolChangeset'])(_0x352a3f))))}};}function _0xf8048d(_0x5ca183,_0x405b52){return _0x445cd3(_0x5ca183)['toLocal'](_0x405b52,_0x12ae60(_0x5ca183));}function _0x445cd3(_0x5c4f3e){const _0x493b73=_0x405303;if(!_0x5c4f3e[_0x493b73(0x24c)])throw Error(_0x493b73(0x1fb));return _0x5c4f3e[_0x493b73(0x24c)];}function _0x12ae60(_0x5e7f78){const _0x33892f=_0x405303;return{'localUnitId':_0x5e7f78[_0x33892f(0x2aa)],'unitType':_0x5e7f78[_0x33892f(0x311)],'target':_0x5e7f78[_0x33892f(0x11c)]};}let _0x53b627=function(_0x21e733){const _0x1c2e95=_0x405303;return _0x21e733[_0x21e733['IDLE']=0x0]=_0x1c2e95(0x296),_0x21e733[_0x21e733[_0x1c2e95(0x39d)]=0x1]=_0x1c2e95(0x39d),_0x21e733[_0x21e733[_0x1c2e95(0x425)]=0x2]=_0x1c2e95(0x425),_0x21e733[_0x21e733[_0x1c2e95(0x360)]=0x3]=_0x1c2e95(0x360),_0x21e733;}({}),_0x139cf2={[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x222)]]:_0x405303(0x3aa),[_0x11fae4[_0x405303(0x3b3)]['JOIN_ROOM_FULL']]:_0x405303(0x365),[_0x11fae4['CmdRspCode'][_0x405303(0x3cb)]]:_0x405303(0x1ed),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x2e2)]]:_0x405303(0x321),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x44c)]]:_0x405303(0x18d)},_0x1213e3=class extends _0x2d0b9f['RxDisposable']{get['sessionStatus'](){const _0x5a63ca=_0x405303;return this[_0x5a63ca(0x26e)][_0x5a63ca(0x22a)]();}constructor(_0x5bce75,_0x2febdb,_0xa75a4,_0x43a1a2,_0x195c20,_0x5d58bb,_0x4a063f,_0x277a06){const _0x3a14b6=_0x405303;super(),this[_0x3a14b6(0x143)]=_0x5bce75,this[_0x3a14b6(0x3d5)]=_0xa75a4,this[_0x3a14b6(0x3d2)]=_0x43a1a2,this[_0x3a14b6(0x2cf)]=_0x195c20,this['_commentService']=_0x5d58bb,this['_collaborationUIEventService']=_0x4a063f,this[_0x3a14b6(0x3db)]=_0x277a06,_0x4219eb(this,_0x3a14b6(0x26e),new _0x31dca4[(_0x3a14b6(0x31b))](0x0)),_0x4219eb(this,'sessionStatus$',this['_sessionStatus$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x22d),new _0x31dca4[(_0x3a14b6(0x29e))]()),_0x4219eb(this,'event$',this['_event$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x20b),void 0x0),_0x4219eb(this,_0x3a14b6(0x201),void 0x0),_0x4219eb(this,_0x3a14b6(0x117),void 0x0),_0x4219eb(this,_0x3a14b6(0x1d4),!0x1),_0x4219eb(this,'_telemetryInfo',null),this[_0x3a14b6(0x1d4)]=!!this['_telemetryService'],_0x2febdb[_0x3a14b6(0x18e)]((0x0,_0x31dca4[_0x3a14b6(0x220)])(this['dispose$']))[_0x3a14b6(0x120)](_0x1f5fbe=>{const _0x3254a4=_0x3a14b6;if(_0x1f5fbe!==void 0x0){if(this[_0x3254a4(0x20b)]=_0x1f5fbe,_0x1f5fbe)this[_0x3254a4(0x195)](_0x1f5fbe),this['_socketMessageSubscription']=_0x1f5fbe['message$']['subscribe'](_0x291655=>{const _0x571446=_0x3254a4;_0x291655[_0x571446(0x2bb)]===this[_0x571446(0x143)][_0x571446(0x11c)]['unitId']&&this['_onCombEvent'](_0x291655);});else{var _0x1b7b0b;this[_0x3254a4(0x41b)](),this['_sessionStatus$'][_0x3254a4(0x131)](0x2),(_0x1b7b0b=this[_0x3254a4(0x201)])==null||_0x1b7b0b[_0x3254a4(0x3e8)](),this[_0x3254a4(0x201)]=null;}}});}[_0x405303(0x32d)](){const _0x17591b=_0x405303;var _0x4deae8,_0x19f856;return(_0x4deae8=(_0x19f856=this[_0x17591b(0x20b)])==null?void 0x0:_0x19f856[_0x17591b(0x29d)])==null?null:_0x4deae8;}[_0x405303(0x309)](){const _0xb648aa=_0x405303;super[_0xb648aa(0x309)](),this[_0xb648aa(0x2dd)](),this[_0xb648aa(0x405)]['next'](),this[_0xb648aa(0x405)][_0xb648aa(0x104)]();}['close'](){const _0x4c3c0b=_0x405303;var _0x3f7393;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3f7393=this[_0x4c3c0b(0x20b)])==null||_0x3f7393[_0x4c3c0b(0x177)]({'cmd':_0x11fae4[_0x4c3c0b(0x139)][_0x4c3c0b(0x18b)],'data':{'roomID':this[_0x4c3c0b(0x143)][_0x4c3c0b(0x11c)][_0x4c3c0b(0x29b)]}}),this[_0x4c3c0b(0x22d)]['complete'](),this[_0x4c3c0b(0x26e)]['complete']();}[_0x405303(0x38d)](_0x559938){const _0x39fa47=_0x405303;_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x315)]?this[_0x39fa47(0x15f)](_0x559938):_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x359)]&&this[_0x39fa47(0x323)](_0x559938);}[_0x405303(0x195)](_0x5cb139){const _0x413e14=_0x405303;this[_0x413e14(0x26e)]['next'](0x1),_0x5cb139['send']({'cmd':_0x11fae4[_0x413e14(0x139)][_0x413e14(0x315)],'routeKey':this[_0x413e14(0x143)]['target'][_0x413e14(0x29b)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x413e14(0x11c)]['unitId']}]}});}[_0x405303(0x15f)](_0x3dc308){const _0x333485=_0x405303;var _0x1b5e33;if(_0x3dc308[_0x333485(0x2c4)]in _0x139cf2){this[_0x333485(0x214)][_0x333485(0x31f)]({'id':_0x333485(0x1a0),'data':_0x139cf2[_0x3dc308['code']]}),this['_sessionStatus$'][_0x333485(0x131)](0x2);return;}this[_0x333485(0x26e)]['next'](0x3);let _0x3b8605=(_0x1b5e33=_0x3dc308[_0x333485(0x3be)][_0x333485(0x133)][this['_identity'][_0x333485(0x11c)][_0x333485(0x29b)]])==null?void 0x0:_0x1b5e33[_0x333485(0x200)];_0x3b8605&&_0x3b8605['forEach'](_0x303c9b=>this[_0x333485(0x2cf)][_0x333485(0x3ce)](this[_0x333485(0x143)][_0x333485(0x2aa)],_0x303c9b));}['_onRecvEvent'](_0x175e43){const _0x128280=_0x405303;try{let _0x2c899f=_0x2566ac(this[_0x128280(0x143)],_0x175e43[_0x128280(0x3be)]);for(let _0x399c52 of _0x2c899f)switch(_0x399c52['eventID']){case _0x20c203['CollaborationEvent'][_0x128280(0x1e8)]:this['_onUserJoin'](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)]['USERS_LEAVE']:this[_0x128280(0x3c0)](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203['CollaborationEvent']['CHANGESET_ACK']:case _0x20c203[_0x128280(0x3e1)][_0x128280(0x209)]:this[_0x128280(0x1e7)](),this[_0x128280(0x10c)](),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x3e4)]:this['_logService'][_0x128280(0x2a9)](_0x128280(0x138)+JSON[_0x128280(0x238)](_0x399c52)),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x345)]:this['_commentService']['onCommentUpdate'](_0x399c52[_0x128280(0x3be)]),this[_0x128280(0x22d)]['next'](_0x399c52);break;default:this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);}}catch(_0x5a96b1){this['_logService'][_0x128280(0x2a9)](_0x5a96b1,_0x175e43);}}[_0x405303(0x255)](_0x58b47a){const _0x568279=_0x405303;this[_0x568279(0x2cf)][_0x568279(0x3ce)](this['_identity']['localUnitId'],_0x58b47a[_0x568279(0x3be)]);}[_0x405303(0x3c0)](_0x3c1def){const _0x30769b=_0x405303;this[_0x30769b(0x2cf)][_0x30769b(0x357)](this[_0x30769b(0x143)][_0x30769b(0x2aa)],_0x3c1def[_0x30769b(0x3be)][_0x30769b(0x29d)]);}async[_0x405303(0x177)](_0x333a8d,_0x21063c){const _0x287f81=_0x405303;if(this[_0x287f81(0x261)]!==0x3||!this[_0x287f81(0x20b)])throw Error(_0x287f81(0x101));try{let _0x234e75=_0xecb3e0(this[_0x287f81(0x143)],_0x333a8d);_0x234e75[_0x287f81(0x3cc)]===_0x20c203[_0x287f81(0x3e1)][_0x287f81(0x3ba)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x287f81(0x38a)](_0x234e75)),this[_0x287f81(0x20b)][_0x287f81(0x177)]({'cmd':_0x11fae4[_0x287f81(0x139)][_0x287f81(0x108)],'routeKey':this[_0x287f81(0x143)][_0x287f81(0x11c)][_0x287f81(0x29b)],'routeType':'','data':_0x234e75});}catch(_0x1ed680){this[_0x287f81(0x3d5)]['error'](_0x1ed680);}}[_0x405303(0x3b9)](){const _0x32cb6c=_0x405303;var _0x165a2f;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x14d6a9=_0x4e8d;this[_0x14d6a9(0x117)]=null,this[_0x14d6a9(0x214)]['emitEvent']({'id':_0x14d6a9(0x107)});},(_0x165a2f=this[_0x32cb6c(0x3d2)][_0x32cb6c(0x112)](_0x32cb6c(0x26f)))==null?_0x1dd4cb:_0x165a2f);}[_0x405303(0x10c)](){const _0x407e00=_0x405303;this[_0x407e00(0x117)]&&(clearTimeout(this[_0x407e00(0x117)]),this[_0x407e00(0x117)]=null);}[_0x405303(0x38a)](_0x18a0ca){const _0x38e85c=_0x405303;if(!this['_shouldReportTelemetry'])return;let {data:_0x4f1d6a}=_0x18a0ca,{unitID:_0x39af65,changeset:_0x39dd48}=_0x4f1d6a,{mutations:_0x4f96c0,type:_0x3d5634}=_0x39dd48;this[_0x38e85c(0x3f2)]={'unitId':_0x39af65,'type':_0x3d5634,'startTime':performance[_0x38e85c(0x2cb)](),'stopTime':0x0,'duration':0x0,'size':_0x18ce34(_0x4f96c0)};}[_0x405303(0x1e7)](){const _0x48864a=_0x405303;if(this[_0x48864a(0x1d4)]){if(!this[_0x48864a(0x3f2)]){this[_0x48864a(0x3d5)][_0x48864a(0x2a9)](_0x48864a(0x420),_0x48864a(0x2f6));return;}this['_telemetryInfo'][_0x48864a(0x303)]=performance[_0x48864a(0x2cb)](),this[_0x48864a(0x3f2)][_0x48864a(0x192)]=this[_0x48864a(0x3f2)][_0x48864a(0x303)]-this['_telemetryInfo'][_0x48864a(0x3d4)],this['_telemetryService'][_0x48864a(0x394)](_0x48864a(0x273),this[_0x48864a(0x3f2)]),this['_telemetryInfo']=null;}}[_0x405303(0x41b)](){const _0x166d3f=_0x405303;this[_0x166d3f(0x3f2)]=null;}};_0x1213e3=_0x3934d9([_0x43549d(0x2,_0x2d0b9f['ILogService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x42c2f1)),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x432b3d)),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x20ecbc[_0x405303(0x1a4)]))],_0x1213e3);let _0x3e00f7=(0x0,_0x2d0b9f['createIdentifier'])('collaboration-client.local-cache-service');function _0x2ea860(_0x29f256){const _0xd76a3a=_0x405303;return _0xd76a3a(0x356)+_0x29f256;}function _0xb4df(_0x403abe){const _0x3dfa87=_0x405303;let {unitID:_0x19acba,mutations:_0x4c7ea5}=_0x403abe;return{'unitId':_0x19acba,'subUnitId':_0x4c7ea5['length']>0x0?_0x4c7ea5[0x0][_0x3dfa87(0x329)][_0x3dfa87(0x438)]:null};}let _0x201f2c=class{constructor(_0x5725a3,_0x4b01e3,_0x1ae447){const _0x3f7d12=_0x405303;this[_0x3f7d12(0x3ef)]=_0x5725a3,this['_transformService']=_0x4b01e3,this['_instanceService']=_0x1ae447;}[_0x405303(0x41d)](_0x331cc2){const _0x1b944f=_0x405303;var _0x36a919,_0x45dcd4;let _0x1d2c29=this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2ba48b[_0x1b944f(0x2bd)]),{unitId:_0x2c5d04,subUnitId:_0x94d4f0}=_0xb4df(_0x331cc2),_0x25706f=_0x1d2c29==null?void 0x0:_0x1d2c29[_0x1b944f(0x2da)](_0x2c5d04)[_0x1b944f(0x210)](),_0xa54524=(_0x36a919=this[_0x1b944f(0x2b4)][_0x1b944f(0x247)](_0x2c5d04))==null||(_0x36a919=_0x36a919[_0x1b944f(0x1e9)]())==null?void 0x0:_0x36a919[_0x1b944f(0x39f)]();if(_0x25706f['length']===0x0||!_0x2c5d04||!_0x94d4f0)return;let _0x43c74a=[{'id':_0x2ba48b['SetSelectionsOperation']['id'],'params':{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x2d0b9f[_0x1b944f(0x409)][_0x1b944f(0x2b3)](_0x25706f)}}],_0x3199f3=this[_0x1b944f(0x1f8)][_0x1b944f(0x30a)](_0x331cc2,_0x43c74a);if(!(0x0,_0x20c203[_0x1b944f(0x3d8)])(_0x3199f3))throw _0x3199f3[_0x1b944f(0x2a9)];let _0x645af=(_0x45dcd4=_0x3199f3['m2Prime'][0x0])==null||(_0x45dcd4=_0x45dcd4[_0x1b944f(0x329)])==null?void 0x0:_0x45dcd4[_0x1b944f(0x1eb)];if(Array[_0x1b944f(0x1a2)](_0x645af)&&_0x645af[_0x1b944f(0x182)]){if(_0x645af[_0x1b944f(0x182)]===_0x43c74a[0x0][_0x1b944f(0x329)][_0x1b944f(0x1eb)][_0x1b944f(0x182)]&&_0x645af[_0x1b944f(0x16e)]((_0x1d86c4,_0x3cb99e)=>_0x2d0b9f[_0x1b944f(0x3b6)][_0x1b944f(0x215)](_0x1d86c4[_0x1b944f(0x102)],_0x43c74a[0x0][_0x1b944f(0x329)]['selections'][_0x3cb99e][_0x1b944f(0x102)])))return;this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2d0b9f[_0x1b944f(0x326)])[_0x1b944f(0x27a)](_0x2ba48b[_0x1b944f(0x40c)]['id'],{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x645af});}}};_0x201f2c=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x2,_0x2d0b9f['IUniverInstanceService'])],_0x201f2c);let _0x43c9bd=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x2fa)),_0x42b9d3=function(_0x537962){const _0x21bff7=_0x405303;return _0x537962[_0x537962['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x21bff7(0x16f),_0x537962[_0x537962['OTHER_CLIENTS_EDITING']=0x1]=_0x21bff7(0x188),_0x537962;}({});function _0x522c70(_0x1bb257){const _0x134cb6=_0x405303;var _0x45b1ee;return!!((_0x45b1ee=_0x1bb257['params'])!=null&&_0x45b1ee[_0x134cb6(0x40d)]);}let _0x52182c=new Set([_0x2ba48b['InsertSheetMutation']['id']]),_0x5a379f=new Set([_0x4d2eeb[_0x405303(0x439)]['id'],_0x4d2eeb[_0x405303(0x322)]['id'],_0x4d2eeb[_0x405303(0x29a)]['id'],_0x4d2eeb[_0x405303(0x340)]['id']]);function _0x5e0a87(_0x5cb25e,_0x48a77f=_0x52182c){const _0x5b61f6=_0x405303;let _0x359817=[];for(let _0x210760 of _0x5cb25e){if(_0x48a77f[_0x5b61f6(0x206)](_0x210760['id'])){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}if(_0x522c70(_0x210760)){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}_0x359817[_0x5b61f6(0x1f4)](_0x210760);}return _0x359817;}function _0x214201(_0x12617f,_0x5aac09,_0x402cd1,_0xcf2379,_0x287064){const _0x395d48=_0x405303;var _0x43719a,_0x24fa13;let _0x414823=_0x5e0a87(_0x12617f),_0x21d8e1=_0x287064[_0x395d48(0x2ec)](),_0x37f742=(_0x43719a=_0x21d8e1==null?void 0x0:_0x21d8e1['userID'])==null?_0x395d48(0x423):_0x43719a,_0x402102=(_0x24fa13=_0x21d8e1==null?void 0x0:_0x21d8e1[_0x395d48(0x29d)])==null?'unknown':_0x24fa13;return{'changeset':{'unitID':_0x5aac09,'type':(0x0,_0x20c203['mapDocumentTypeToUniverInstanceType'])(_0x402cd1[_0x395d48(0x28d)](_0x5aac09)),'baseRev':_0xcf2379[_0x395d48(0x3a0)](_0x5aac09),'revision':0x0,'userID':_0x37f742,'memberID':_0x402102,'mutations':_0x414823},'pendingMutations':_0x12617f[_0x395d48(0x33d)](_0x414823[_0x395d48(0x182)])};}let _0x41597a=_0x214201;function _0x17b28a(_0x469cee,_0x4fc762,_0x1b42f0,_0x52a870,_0x5dfeae){const _0x153914=_0x405303;var _0x3bc790,_0x350b1d;let _0x371d41=_0x5e0a87(_0x469cee,_0x5a379f),_0x24331b=_0x5dfeae[_0x153914(0x2ec)](),_0x15e05a=(_0x3bc790=_0x24331b==null?void 0x0:_0x24331b['userID'])==null?_0x153914(0x423):_0x3bc790,_0x13c5c=(_0x350b1d=_0x24331b==null?void 0x0:_0x24331b['memberID'])==null?_0x153914(0x423):_0x350b1d;return{'changeset':{'unitID':_0x4fc762,'type':(0x0,_0x20c203[_0x153914(0x3ff)])(_0x1b42f0[_0x153914(0x28d)](_0x4fc762)),'baseRev':_0x52a870[_0x153914(0x3a0)](_0x4fc762),'revision':0x0,'userID':_0x15e05a,'memberID':_0x13c5c,'mutations':_0x371d41},'pendingMutations':_0x469cee[_0x153914(0x33d)](_0x371d41[_0x153914(0x182)])};}function _0x48ec4c(_0x2560b9,_0x17ba61,_0x93bb06,_0x197aa6,_0x370484){const _0x1da597=_0x405303;var _0x38ebe6,_0x6e78f1;let _0x2874f3=_0x2560b9['reduce']((_0x33bc20,_0x3d389e)=>{const _0x5910e0=_0x4e8d;let _0x413bcb=_0x33bc20[_0x33bc20[_0x5910e0(0x182)]-0x1],{id:_0x18706b}=_0x413bcb==null?{}:_0x413bcb,{id:_0x15f87d,type:_0x3dd78d}=_0x3d389e,_0x3cf93f=_0x3d389e[_0x5910e0(0x329)];if(_0x18706b&&_0x18706b!==_0x15f87d)throw Error(_0x5910e0(0x221)+_0x18706b+_0x5910e0(0x11d)+_0x15f87d+'.');if(!_0x413bcb)return[{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];let _0x287b09=_0x413bcb[_0x5910e0(0x329)];return _0x3152d8(_0x287b09,_0x3cf93f)?[..._0x33bc20['slice'](0x0,-0x1),{..._0x413bcb,'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x2d0b9f[_0x5910e0(0x28b)]['compose'](_0x287b09['actions'],_0x3cf93f[_0x5910e0(0x208)])}}]:[..._0x33bc20,{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];},[]),_0x1c8a44=_0x370484['getCurrentUser'](),_0x5ae16d=(_0x38ebe6=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x395)])==null?_0x1da597(0x423):_0x38ebe6,_0x32233f=(_0x6e78f1=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x29d)])==null?'unknown':_0x6e78f1;return{'changeset':{'unitID':_0x17ba61,'type':(0x0,_0x20c203[_0x1da597(0x3ff)])(_0x93bb06[_0x1da597(0x28d)](_0x17ba61)),'baseRev':_0x197aa6[_0x1da597(0x3a0)](_0x17ba61),'revision':0x0,'userID':_0x5ae16d,'memberID':_0x32233f,'mutations':_0x2874f3},'pendingMutations':_0x2560b9[_0x1da597(0x33d)](_0x2560b9[_0x1da597(0x182)])};}function _0x3152d8(_0x2d1bb0,_0x2fd57e){const _0x27581e=_0x405303;return!_0x3e4fba(_0x2d1bb0)&&!_0x3e4fba(_0x2fd57e)&&_0x1dc32c(_0x2d1bb0[_0x27581e(0x208)],_0x2fd57e[_0x27581e(0x208)]);}function _0x3e4fba(_0x209722){const _0x2239a5=_0x405303;return _0x209722[_0x2239a5(0x1e2)]!==void 0x0;}function _0x1dc32c(_0x4f7b9b,_0xab6ba){return _0x4d6ee(_0x4f7b9b)&&_0x4d6ee(_0xab6ba)&&!_0x2c5b90(_0x4f7b9b)&&!_0x2c5b90(_0xab6ba)&&!_0x8f49b1(_0x4f7b9b)&&!_0x8f49b1(_0xab6ba);}function _0x4d6ee(_0x567ae3){const _0x5ae3c3=_0x405303;return _0x22c531(_0x567ae3)[_0x5ae3c3(0x231)](_0x19218e=>_0x1df95d(_0x19218e)&&_0x19218e['et']==='text-x');}function _0x8f49b1(_0x2558d2){const _0x814af2=_0x405303;return _0x22c531(_0x2558d2)['some'](_0x2fe275=>Array[_0x814af2(0x1a2)](_0x2fe275)||typeof _0x2fe275==_0x814af2(0x163)||typeof _0x2fe275=='number');}function _0x2c5b90(_0x37d401){const _0x737a02=_0x405303;return _0x22c531(_0x37d401)[_0x737a02(0x231)](_0x26d1c8=>!_0x1df95d(_0x26d1c8)||_0x26d1c8['et']!==_0x737a02(0x3bc)||!Array[_0x737a02(0x1a2)](_0x26d1c8['e'])?!0x1:_0x26d1c8['e'][_0x737a02(0x231)](_0x247799=>!_0x1df95d(_0x247799)||!_0x1df95d(_0x247799['body'])?!0x1:Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x330))||Object[_0x737a02(0xf2)]['hasOwnProperty']['call'](_0x247799[_0x737a02(0x43d)],_0x737a02(0x386))||Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x19d))));}function _0x22c531(_0x5c07ed){const _0x1d6d38=_0x405303;if(!Array[_0x1d6d38(0x1a2)](_0x5c07ed))return[];let _0x3d0591=_0x5c07ed['includes'](_0x1d6d38(0x43d))?_0x5c07ed:_0x5c07ed[_0x1d6d38(0x1e0)](_0x45ffd3=>Array[_0x1d6d38(0x1a2)](_0x45ffd3)&&_0x45ffd3[_0x1d6d38(0x281)](_0x1d6d38(0x43d)));if(!Array[_0x1d6d38(0x1a2)](_0x3d0591))return[];let _0x13c8be=_0x3d0591[_0x1d6d38(0x398)](_0x1d6d38(0x43d));return _0x13c8be===-0x1?[]:_0x3d0591[_0x1d6d38(0x33d)](_0x13c8be+0x1);}function _0x1df95d(_0x43f141){const _0x143d65=_0x405303;return typeof _0x43f141=='object'&&!!_0x43f141&&!Array[_0x143d65(0x1a2)](_0x43f141);}function _0x400b38(_0x1f0d72,_0x1ee56f){const _0x16f50f=_0x405303;let _0x26e8bc=new _0x31dca4[(_0x16f50f(0x388))](0x1);return setTimeout(()=>_0x26e8bc['next'](_0x1ee56f),_0x1f0d72),_0x26e8bc[_0x16f50f(0x41c)]()['pipe']((0x0,_0x31dca4[_0x16f50f(0x193)])(0x1));}var _0x22286d,_0x116285,_0x901199;let _0x1e7da3=function(_0xc99f67){const _0x4588f3=_0x405303;return _0xc99f67[_0x4588f3(0x147)]=_0x4588f3(0x13c),_0xc99f67['SYNCED']=_0x4588f3(0x11b),_0xc99f67['PENDING']=_0x4588f3(0xed),_0xc99f67[_0x4588f3(0x23d)]=_0x4588f3(0x403),_0xc99f67[_0x4588f3(0x175)]=_0x4588f3(0x2e6),_0xc99f67['FETCH_MISS']=_0x4588f3(0x20a),_0xc99f67[_0x4588f3(0x225)]=_0x4588f3(0x251),_0xc99f67['OFFLINE']=_0x4588f3(0x42b),_0xc99f67;}({}),_0x329193=0x4e20,_0x1f600d=0x2bf20;var _0x2a4010=class{constructor(_0x2b74eb,_0x269642,_0x31b0a4,_0x5e1c06,_0x5e449d,_0x4acb53,_0x2e8c77,_0x634a3e,_0x3e64ad){const _0x18f975=_0x405303;this[_0x18f975(0x1c9)]=_0x2b74eb,this[_0x18f975(0x24b)]=_0x269642,this[_0x18f975(0x327)]=_0x5e449d,this['_commandService']=_0x4acb53,this[_0x18f975(0x3c8)]=_0x2e8c77,this[_0x18f975(0x291)]=_0x634a3e,this[_0x18f975(0x161)]=_0x3e64ad,_0x4219eb(this,_0x18f975(0x419),null),_0x4219eb(this,_0x18f975(0x43c),[]),this[_0x18f975(0x419)]=_0x31b0a4,this[_0x18f975(0x43c)]=_0x5e1c06;}[_0x405303(0x31a)](_0x2615c2){const _0x48e3d7=_0x405303;let _0x1d67a9=this[_0x48e3d7(0x291)][_0x48e3d7(0x3a0)](this[_0x48e3d7(0x1c9)]);return _0x2615c2['revision']>_0x1d67a9+0x1?(this['_handler'][_0x48e3d7(0x431)]({'from':_0x1d67a9,'to':_0x2615c2['revision']-0x1}),!0x0):!0x1;}[_0x405303(0x3bd)](_0x2f2ca8){const _0x17f7c8=_0x405303;this[_0x17f7c8(0x3c8)][_0x17f7c8(0x312)](this[_0x17f7c8(0x1c9)],_0x2f2ca8);}[_0x405303(0x2a4)](_0x11703c){const _0x5cdbb5=_0x405303;var _0x139526,_0x6c6827;(_0x139526=(_0x6c6827=this[_0x5cdbb5(0x327)])[_0x5cdbb5(0x2de)])==null||_0x139526[_0x5cdbb5(0x2ed)](_0x6c6827,_0x11703c);}['_transformIMECache'](_0x3f496b){const _0x5a8804=_0x405303;var _0x5694e0,_0x3fb778;return(_0x5694e0=(_0x3fb778=this[_0x5a8804(0x327)])[_0x5a8804(0x1a6)])==null?void 0x0:_0x5694e0[_0x5a8804(0x2ed)](_0x3fb778,_0x3f496b);}['_transformStateCache'](_0x5d3e8e){const _0x3f283d=_0x405303;var _0x446a6d,_0x537f7e;return(_0x446a6d=(_0x537f7e=this['_handler'])[_0x3f283d(0x2f9)])==null?void 0x0:_0x446a6d[_0x3f283d(0x2ed)](_0x537f7e,_0x5d3e8e);}[_0x405303(0x430)](_0x3474f4){const _0x2b29ec=_0x405303;var _0x17a1fe,_0x212918,_0xf59fa7;return(_0x17a1fe=(_0x212918=(_0xf59fa7=this[_0x2b29ec(0x327)])[_0x2b29ec(0x1a7)])==null?void 0x0:_0x212918['call'](_0xf59fa7,_0x3474f4))==null?_0x3474f4:_0x17a1fe;}[_0x405303(0x286)](_0x16528d){const _0x3a14fe=_0x405303;var _0x21f8c6,_0xbddd88,_0x40a88f;return(_0x21f8c6=(_0xbddd88=(_0x40a88f=this[_0x3a14fe(0x327)])[_0x3a14fe(0x390)])==null?void 0x0:_0xbddd88[_0x3a14fe(0x2ed)](_0x40a88f,_0x16528d))==null?_0x16528d:_0x21f8c6;}[_0x405303(0x13b)](_0x1f7eca){const _0x4d4dbe=_0x405303;if(this['type']===_0x2d0b9f[_0x4d4dbe(0x341)][_0x4d4dbe(0x13a)]){let {unitID:_0x4d390b,mutations:_0x338089,memberID:_0x48fbbb}=_0x1f7eca,_0x188890=_0x338089['length']>0x0?_0x338089[0x0]['params']['textRanges']:[];if(Array[_0x4d4dbe(0x1a2)](_0x188890)&&_0x188890[_0x4d4dbe(0x182)]>0x0){var _0x302917,_0x4b29c8;(_0x302917=(_0x4b29c8=this[_0x4d4dbe(0x327)])[_0x4d4dbe(0x27d)])==null||_0x302917['call'](_0x4b29c8,{'unitID':_0x4d390b,'memberID':_0x48fbbb,'textRanges':_0x188890});}}}[_0x405303(0xee)](){const _0xa7721=_0x405303;var _0x1742e8;(_0x1742e8=this[_0xa7721(0x161)])==null||_0x1742e8[_0xa7721(0x2bf)](this['unitID'],this['type'],this[_0xa7721(0x419)],this[_0xa7721(0x43c)]);}[_0x405303(0x20e)](){const _0x154377=_0x405303;return this[_0x154377(0x291)][_0x154377(0x3a0)](this[_0x154377(0x1c9)]);}['_incrementRevisionNumber'](){const _0x35b725=_0x405303;this[_0x35b725(0x291)][_0x35b725(0x267)](this[_0x35b725(0x1c9)]);}[_0x405303(0x15e)](_0x3a820a){const _0x4fa3d=_0x405303;let _0x52d887=this[_0x4fa3d(0x430)](_0x3a820a);_0x52d887=this[_0x4fa3d(0x286)](_0x52d887);let _0x318acd=(0x0,_0x2d0b9f[_0x4fa3d(0x14a)])(_0x52d887[_0x4fa3d(0xf9)],this[_0x4fa3d(0xf5)],{'fromCollab':!0x0});if(!_0x318acd[_0x4fa3d(0x379)]){var _0x425ce0;throw _0x318acd[_0x4fa3d(0x2a9)]instanceof Error?_0x318acd[_0x4fa3d(0x2a9)]:Error((_0x425ce0=_0x318acd[_0x4fa3d(0x2a9)])==null?'[CollaborationState]:\x20apply\x20error!':_0x425ce0);}this[_0x4fa3d(0x184)](_0x52d887),this[_0x4fa3d(0x37f)](_0x52d887),this[_0x4fa3d(0x3bd)](_0x3a820a),this['_transformSelections'](_0x52d887),this[_0x4fa3d(0x13b)](_0x52d887),this[_0x4fa3d(0x1da)]();}};let _0x2b0eea=class extends _0x2a4010{constructor(_0x1b5f73,_0xd8c0b8,_0x1c99e1,_0x2d86d9,_0xfb1e01,_0x1fc31b,_0x59b002,_0x3e8cfc,_0xdd87d5,_0x56f921){const _0x5cd402=_0x405303;super(_0x1b5f73,_0xd8c0b8,null,[],_0x1c99e1,_0x59b002,_0x1fc31b,_0x2d86d9,_0x56f921),this[_0x5cd402(0x3ef)]=_0xfb1e01,this[_0x5cd402(0x3d5)]=_0x3e8cfc,this['_transformService']=_0xdd87d5,this[_0x5cd402(0x185)]=_0x56f921,_0x4219eb(this,_0x5cd402(0x1b9),'synced');}[_0x405303(0x3ae)](_0x2b57a7){const _0x3bfa05=_0x405303;let _0xe82823=this[_0x3bfa05(0x3ef)][_0x3bfa05(0x383)](_0x315789,this[_0x3bfa05(0x1c9)],this[_0x3bfa05(0x24b)],[_0x2b57a7],this[_0x3bfa05(0x327)]);return _0xe82823[_0x3bfa05(0x242)](),_0xe82823[_0x3bfa05(0xee)](),_0xe82823;}[_0x405303(0x3af)](_0x48a65e){const _0x3908a4=_0x405303;if(this[_0x3908a4(0x31a)](_0x48a65e))return this['_injector'][_0x3908a4(0x383)](_0x234be3,this[_0x3908a4(0x1c9)],this[_0x3908a4(0x24b)],null,[],null,[_0x48a65e],this[_0x3908a4(0x327)]);try{let _0x4fcd47=this[_0x3908a4(0x1f8)][_0x3908a4(0x30a)](_0x48a65e,[_0x20c203[_0x3908a4(0x167)]]);if((0x0,_0x20c203[_0x3908a4(0x3d8)])(_0x4fcd47)){let {c1Prime:_0x157706}=_0x4fcd47;return this['_executeRemoteChangeset'](_0x157706),this;}throw _0x4fcd47[_0x3908a4(0x2a9)];}catch(_0x5ae554){return this[_0x3908a4(0x3d5)][_0x3908a4(0x2a9)](_0x5ae554),this['_onConflict'](!0x1);}}[_0x405303(0x414)](_0x812c0b){const _0x4b5c8e=_0x405303;return this['_injector'][_0x4b5c8e(0x383)](_0x1af009,this[_0x4b5c8e(0x1c9)],this['type'],null,[],this[_0x4b5c8e(0x327)],_0x812c0b);}['onRemoteAck'](_0x1ad8ac){const _0x2ff8c5=_0x405303;if(_0x1ad8ac[_0x2ff8c5(0x371)]<=this[_0x2ff8c5(0x20e)]())return this;throw Error(_0x2ff8c5(0x119));}['onRemoteRej'](){const _0xa709dd=_0x405303;throw Error(_0xa709dd(0x1d7));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x239253=_0x405303;return this[_0x239253(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x239253(0x1c9)],this[_0x239253(0x24b)],null,[],this[_0x239253(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x2b5)](){const _0x29f4eb=_0x405303;throw Error(_0x29f4eb(0x34b));}[_0x405303(0x2e8)](){const _0x236c24=_0x405303;let _0x518a75=this[_0x236c24(0x291)]['getCurrentRevOfUnit'](this[_0x236c24(0x1c9)]);return this['_handler'][_0x236c24(0x431)]({'from':_0x518a75,'to':0x0}),this[_0x236c24(0x3ef)][_0x236c24(0x383)](_0x234be3,this[_0x236c24(0x1c9)],this[_0x236c24(0x24b)],null,[],null,[],this[_0x236c24(0x327)]);}};_0x2b0eea=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,_0x2d0b9f['IUndoRedoService']),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203['ITransformService']),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x2b0eea);let _0x315789=_0x22286d=class extends _0x2a4010{constructor(_0x20920e,_0x493674,_0x570bfb,_0x5b8a95,_0x5c242a,_0x18afcd,_0x3b5b5b,_0x5ae011,_0x2bbc98,_0x507d5a,_0x33dc57,_0xcc55f5,_0x3849ff,_0x31721f){const _0x3908f5=_0x405303;super(_0x20920e,_0x493674,null,_0x570bfb,_0x5b8a95,_0x2bbc98,_0x3849ff,_0x18afcd,_0x31721f),this[_0x3908f5(0x3ef)]=_0x5c242a,this['_userManagerService']=_0x3b5b5b,this[_0x3908f5(0x3d5)]=_0x5ae011,this['_configService']=_0x507d5a,this['_transformService']=_0x33dc57,this[_0x3908f5(0x347)]=_0xcc55f5,_0x4219eb(this,'status',_0x3908f5(0xed)),_0x4219eb(this,_0x3908f5(0x287),null),_0x4219eb(this,_0x3908f5(0x1e5),null);}['appendMutation'](_0x130324){const _0x4963d1=_0x405303;return this[_0x4963d1(0x43c)]['push'](_0x130324),this[_0x4963d1(0xee)](),this;}['onRemoteChangeset'](_0xd5fb4c){const _0x5aa233=_0x405303;if(this[_0x5aa233(0x31a)](_0xd5fb4c))return this[_0x5aa233(0x1b0)](),this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x234be3,this[_0x5aa233(0x1c9)],this['type'],null,this[_0x5aa233(0x43c)],null,[_0xd5fb4c],this[_0x5aa233(0x327)]);try{let _0x394644=this[_0x5aa233(0x1f8)][_0x5aa233(0x30a)](_0xd5fb4c,this[_0x5aa233(0x43c)]);if((0x0,_0x20c203[_0x5aa233(0x3d8)])(_0x394644)){let {c1Prime:_0x42ad42,m2Prime:_0x344b1e}=_0x394644;this[_0x5aa233(0x15e)](_0x42ad42);let _0x18f08f=this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x22286d,this[_0x5aa233(0x1c9)],this[_0x5aa233(0x24b)],_0x344b1e,this[_0x5aa233(0x327)]);this['_clearScheduledTask']();let _0x468ff5=new Date()[_0x5aa233(0x3f9)](),_0x5db9c8=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5aa233(0x287)]-_0x468ff5,0x0):this[_0x5aa233(0x3a6)]();return _0x18f08f['_schedule'](_0x5db9c8),_0x18f08f;}throw _0x394644[_0x5aa233(0x2a9)];}catch(_0x20e9ee){return this[_0x5aa233(0x3d5)][_0x5aa233(0x2a9)](_0x20e9ee),this['_onConflict'](!0x1);}}[_0x405303(0xfb)](_0x51d1d6){const _0x10a037=_0x405303;if(_0x51d1d6['revision']<=this[_0x10a037(0x20e)]())return this;throw Error(_0x10a037(0x12d));}[_0x405303(0x1f2)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x405303(0x11a)](){const _0x22d884=_0x405303;return this[_0x22d884(0x1b0)](),this[_0x22d884(0x3ef)][_0x22d884(0x383)](_0x3b0e9a,this[_0x22d884(0x1c9)],this[_0x22d884(0x24b)],null,this[_0x22d884(0x43c)],this[_0x22d884(0x327)]);}[_0x405303(0x3fe)](){return this;}['_schedule'](_0x28281d){const _0x364cc7=_0x405303;let _0x4e3a4e=_0x28281d==null?this[_0x364cc7(0x3a6)]():_0x28281d;this[_0x364cc7(0x287)]=new Date()[_0x364cc7(0x3f9)]()+_0x4e3a4e,this[_0x364cc7(0x1e5)]=setTimeout(()=>{const _0x791f21=_0x364cc7;this[_0x791f21(0x1b0)]();let _0x2d4ba2=null;switch(this['type']){case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x378)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x13a)]:_0x2d4ba2=this[_0x791f21(0x43c)][_0x791f21(0x16e)](_0x31a742=>_0x31a742['id']===_0x33f3ff[_0x791f21(0x19f)]['id'])?_0x48ec4c(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x791f21(0x291)],this['_userManagerService']):_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x358)]:_0x2d4ba2=_0x17b28a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this['_userManagerService']);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x31e)]:_0x2d4ba2=_0x41597a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x333)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this['_univerInstanceService'],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)]['UNIVER_BASE']:_0x2d4ba2=_0x214201(this['_pendingMutations'],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;default:throw Error(_0x791f21(0x14f)+this[_0x791f21(0x24b)]+_0x791f21(0x325));}let {changeset:_0x282db7,pendingMutations:_0x5cac6b}=_0x2d4ba2;this[_0x791f21(0x327)][_0x791f21(0x244)](_0x282db7);let _0x22ecd5=_0x5cac6b[_0x791f21(0x182)]?this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0x49c582,this[_0x791f21(0x1c9)],this[_0x791f21(0x24b)],_0x282db7,_0x5cac6b,this[_0x791f21(0x327)],void 0x0):this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0xe05e0d,this['unitID'],this[_0x791f21(0x24b)],_0x282db7,this[_0x791f21(0x327)]);_0x22ecd5['_updateLocalCache'](),this[_0x791f21(0x327)]['onStateChange'](this,_0x22ecd5);},_0x4e3a4e);}[_0x405303(0x3a6)](){const _0x433941=_0x405303;var _0x4d07cc;let _0x4ea5a2=this[_0x433941(0x3d2)][_0x433941(0x112)](_0x51e182);return(_0x4d07cc=_0x4ea5a2==null?void 0x0:_0x4ea5a2[_0x433941(0x250)])==null?0x7d0:_0x4d07cc;}['resend'](){const _0x2935b6=_0x405303;throw Error(_0x2935b6(0x270));}[_0x405303(0x1b0)](){const _0x5ccc75=_0x405303;this[_0x5ccc75(0x1e5)]!=null&&(clearTimeout(this[_0x5ccc75(0x1e5)]),this[_0x5ccc75(0x1e5)]=null);}['_onConflict'](_0x2b5639){const _0x5e0cd4=_0x405303;return this[_0x5e0cd4(0x1b0)](),this['_injector'][_0x5e0cd4(0x383)](_0x1af009,this[_0x5e0cd4(0x1c9)],this[_0x5e0cd4(0x24b)],null,this[_0x5e0cd4(0x43c)],this[_0x5e0cd4(0x327)],_0x2b5639);}};_0x315789=_0x22286d=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['UserManagerService'])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x315789);let _0xe05e0d=_0x116285=class extends _0x2a4010{constructor(_0x3a8e68,_0x2433f3,_0xb83111,_0x1801e9,_0xdae908,_0x20a2a5,_0x8d7c42,_0x30466b,_0x4f4e4c,_0x2fee35,_0x342bde){const _0x126d1c=_0x405303;super(_0x3a8e68,_0x2433f3,_0xb83111,[],_0x1801e9,_0x8d7c42,_0x2fee35,_0x20a2a5,_0x342bde),this[_0x126d1c(0x3ef)]=_0xdae908,this[_0x126d1c(0x3d5)]=_0x30466b,this['_transformService']=_0x4f4e4c,_0x4219eb(this,_0x126d1c(0x1b9),_0x126d1c(0x403)),_0x4219eb(this,_0x126d1c(0x159),0x0),_0x4219eb(this,_0x126d1c(0x3a1),0x0),_0x4219eb(this,'_resendTimer',void 0x0),_0x4219eb(this,'_sender',void 0x0);}[_0x405303(0x3ae)](_0x1a3ebd){const _0x14c6bf=_0x405303;this[_0x14c6bf(0x1b0)]();let _0x37d8f6=this[_0x14c6bf(0x3ef)][_0x14c6bf(0x383)](_0x49c582,this[_0x14c6bf(0x1c9)],this[_0x14c6bf(0x24b)],this[_0x14c6bf(0x419)],[_0x1a3ebd],this['_handler'],this[_0x14c6bf(0x335)]);return _0x37d8f6['_updateLocalCache'](),_0x37d8f6;}[_0x405303(0x3af)](_0x16f79f){const _0x363092=_0x405303;if(this[_0x363092(0x31a)](_0x16f79f))return this['_clearScheduledTask'](),this[_0x363092(0x3ef)][_0x363092(0x383)](_0x234be3,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],this['_awaitingChangeset'],[],null,[_0x16f79f],this[_0x363092(0x327)]);try{let _0x520efd=this['_transformService']['transformChangesets']([_0x16f79f],[this[_0x363092(0x419)]],!0x1);if((0x0,_0x20c203[_0x363092(0x35b)])(_0x520efd)){let {c1Prime:_0x5b3256,c2Prime:_0x2beee4}=_0x520efd;this[_0x363092(0x15e)](_0x5b3256[0x0]),_0x2beee4[0x0]['baseRev']=this[_0x363092(0x20e)](),this[_0x363092(0x1b0)]();let _0x45b275=this[_0x363092(0x3ef)][_0x363092(0x383)](_0x116285,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],_0x2beee4[0x0],this[_0x363092(0x327)]);return _0x45b275['_updateLocalCache'](),_0x45b275;}throw _0x520efd[_0x363092(0x2a9)];}catch(_0x41d929){return this[_0x363092(0x3d5)][_0x363092(0x2a9)](_0x41d929),this[_0x363092(0x414)](!0x1);}}[_0x405303(0xfb)](_0x56ec97){const _0x55a3df=_0x405303;this[_0x55a3df(0x1b0)]();let _0x1ea7bc=this[_0x55a3df(0x291)][_0x55a3df(0x3a0)](this[_0x55a3df(0x1c9)]);if(_0x56ec97[_0x55a3df(0x371)]<=_0x1ea7bc)return this;if(this[_0x55a3df(0x31a)](_0x56ec97))return this['_injector'][_0x55a3df(0x383)](_0x234be3,this['unitID'],this[_0x55a3df(0x24b)],this[_0x55a3df(0x419)],[],_0x56ec97['revision'],[],this[_0x55a3df(0x327)]);this[_0x55a3df(0x1da)]();let _0x27ac27=this[_0x55a3df(0x3ef)][_0x55a3df(0x383)](_0x2b0eea,this[_0x55a3df(0x1c9)],this[_0x55a3df(0x24b)],this['_handler']);return _0x27ac27[_0x55a3df(0xee)](),_0x27ac27;}[_0x405303(0x1f2)](_0x2aa8f6){const _0x5d7b97=_0x405303;return this['_onConflict'](!!(_0x2aa8f6!=null&&_0x2aa8f6[_0x5d7b97(0x3b8)]));}['onRemoteRetry'](_0x288e1d){const _0x5f0e0d=_0x405303;return this[_0x5f0e0d(0x3a1)]>_0x1f600d?this[_0x5f0e0d(0x11a)]():(this[_0x5f0e0d(0x335)]=_0x400b38(this[_0x5f0e0d(0x159)],{'timeout':this[_0x5f0e0d(0x159)],'reqId':_0x288e1d['reqId']}),this['_sender']=this['_resendTimer'][_0x5f0e0d(0x120)](({reqId:_0x183897,timeout:_0x475e0a})=>{this['_resendWithTimeout'](_0x183897,_0x475e0a);}),this);}[_0x405303(0x11a)](){const _0x386a31=_0x405303;return this[_0x386a31(0x1b0)](),this[_0x386a31(0x3ef)][_0x386a31(0x383)](_0x3b0e9a,this['unitID'],this[_0x386a31(0x24b)],this[_0x386a31(0x419)],[],this[_0x386a31(0x327)]);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x24aa4b=_0x405303;this[_0x24aa4b(0x327)][_0x24aa4b(0x244)](this[_0x24aa4b(0x419)]);}['_onConflict'](_0x9194ed){const _0x1fd0e2=_0x405303;return this['_clearScheduledTask'](),this['_injector'][_0x1fd0e2(0x383)](_0x1af009,this[_0x1fd0e2(0x1c9)],this[_0x1fd0e2(0x24b)],this[_0x1fd0e2(0x419)],[],this['_handler'],_0x9194ed);}['_resendWithTimeout'](_0x2d61c4,_0x5765e5){const _0x466888=_0x405303;var _0x2a0e2e;_0x2d61c4===((_0x2a0e2e=this[_0x466888(0x419)])==null?void 0x0:_0x2a0e2e[_0x466888(0x387)])&&(this[_0x466888(0x2b5)](),this[_0x466888(0x159)]=_0x5765e5===0x0?0x3e8:Math[_0x466888(0x38b)](_0x5765e5*0x2,_0x329193),this[_0x466888(0x3a1)]+=this[_0x466888(0x159)]);}['_clearScheduledTask'](){const _0x3f4942=_0x405303;var _0x1c528a;(_0x1c528a=this['_sender'])==null||_0x1c528a[_0x3f4942(0x3e8)](),this['_resendTimeout']=0x0,this[_0x3f4942(0x3a1)]=0x0;}};_0xe05e0d=_0x116285=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xa,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0xe05e0d);let _0x49c582=_0x901199=class extends _0x2a4010{constructor(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x5097b0,_0x47ca14,_0x4b86bd,_0x47bd03,_0x4a752a,_0x53d864,_0x184c92,_0x2ae8ee){const _0x2a2fd8=_0x405303;super(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x47bd03,_0x184c92,_0x4b86bd,_0x2ae8ee),this['_injector']=_0x47ca14,this[_0x2a2fd8(0x3d5)]=_0x4a752a,this[_0x2a2fd8(0x1f8)]=_0x53d864,this[_0x2a2fd8(0x185)]=_0x2ae8ee,_0x4219eb(this,_0x2a2fd8(0x1b9),_0x2a2fd8(0x2e6)),_0x4219eb(this,_0x2a2fd8(0x159),0x0),_0x4219eb(this,_0x2a2fd8(0x3a1),0x0),_0x4219eb(this,_0x2a2fd8(0x335),void 0x0),_0x4219eb(this,_0x2a2fd8(0x21d),void 0x0),_0x5097b0&&(this[_0x2a2fd8(0x335)]=_0x5097b0,this[_0x2a2fd8(0x21d)]=this[_0x2a2fd8(0x335)][_0x2a2fd8(0x120)](({reqId:_0x6846ba,timeout:_0x3ca1e8})=>{const _0x4c9500=_0x2a2fd8;this[_0x4c9500(0x30e)](_0x6846ba,_0x3ca1e8);}));}[_0x405303(0x3ae)](_0x50f5ee){const _0x519e99=_0x405303;return this['_pendingMutations'][_0x519e99(0x1f4)](_0x50f5ee),this;}['onRemoteChangeset'](_0x4bf13d){const _0x4cc937=_0x405303;if(this[_0x4cc937(0x31a)](_0x4bf13d))return this[_0x4cc937(0x1b0)](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x234be3,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],this[_0x4cc937(0x419)],this['_pendingMutations'],null,[_0x4bf13d],this[_0x4cc937(0x327)]);try{let _0x4b170c=this[_0x4cc937(0x1f8)][_0x4cc937(0x3a7)]([_0x4bf13d],[this[_0x4cc937(0x419)]],!0x1);if((0x0,_0x20c203[_0x4cc937(0x35b)])(_0x4b170c)){let {c1Prime:_0x2868a7,c2Prime:_0x1fb5f6}=_0x4b170c,_0x537a99=this[_0x4cc937(0x1f8)]['transformMutationsWithChangeset'](_0x2868a7[0x0],this['_pendingMutations']);if((0x0,_0x20c203[_0x4cc937(0x3d8)])(_0x537a99)){let {c1Prime:_0x262582,m2Prime:_0x15c0e6}=_0x537a99;return this[_0x4cc937(0x15e)](_0x262582),_0x1fb5f6[0x0][_0x4cc937(0x33b)]=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x901199,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],_0x1fb5f6[0x0],_0x15c0e6,this['_handler'],void 0x0);}throw _0x537a99[_0x4cc937(0x2a9)];}throw _0x4b170c[_0x4cc937(0x2a9)];}catch(_0x323eda){return this[_0x4cc937(0x3d5)][_0x4cc937(0x2a9)](_0x323eda),this[_0x4cc937(0x414)](!0x1);}}[_0x405303(0xfb)](_0x5ec125){const _0x87b2ef=_0x405303;this['_clearScheduledTask']();let _0x415714=this[_0x87b2ef(0x20e)]();if(_0x5ec125['revision']<=_0x415714)return this;if(this[_0x87b2ef(0x31a)](_0x5ec125))return this['_injector'][_0x87b2ef(0x383)](_0x234be3,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x419)],this[_0x87b2ef(0x43c)],_0x5ec125[_0x87b2ef(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x3b102d=this[_0x87b2ef(0x3ef)][_0x87b2ef(0x383)](_0x315789,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x43c)],this[_0x87b2ef(0x327)]);return _0x3b102d['_schedule'](),_0x3b102d[_0x87b2ef(0xee)](),_0x3b102d;}[_0x405303(0x1f2)](_0x1ba15b){const _0x44011f=_0x405303;return this[_0x44011f(0x414)](!!(_0x1ba15b!=null&&_0x1ba15b['isPermissionRej']));}[_0x405303(0x186)](_0x2c6b94){const _0x39404c=_0x405303;return this['_maxTotalRetryTimeout']>_0x1f600d?this[_0x39404c(0x11a)]():(this[_0x39404c(0x335)]=_0x400b38(this[_0x39404c(0x159)],{'timeout':this['_resendTimeout'],'reqId':_0x2c6b94[_0x39404c(0x387)]}),this[_0x39404c(0x21d)]=this[_0x39404c(0x335)][_0x39404c(0x120)](({reqId:_0x4c834d,timeout:_0x25e69e})=>{const _0x4e0d11=_0x39404c;this[_0x4e0d11(0x30e)](_0x4c834d,_0x25e69e);}),this);}['toggleOffline'](){const _0x358a61=_0x405303;return this[_0x358a61(0x1b0)](),this[_0x358a61(0x3ef)][_0x358a61(0x383)](_0x3b0e9a,this['unitID'],this[_0x358a61(0x24b)],this[_0x358a61(0x419)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x37d725=_0x405303;this[_0x37d725(0x327)][_0x37d725(0x244)](this[_0x37d725(0x419)]);}['_onConflict'](_0x14f2af){const _0x3642a2=_0x405303;return this[_0x3642a2(0x1b0)](),this[_0x3642a2(0x3ef)]['createInstance'](_0x1af009,this['unitID'],this['type'],null,this[_0x3642a2(0x43c)],this[_0x3642a2(0x327)],_0x14f2af);}[_0x405303(0x30e)](_0x1aed2c,_0x35424e){const _0xcbe5fa=_0x405303;var _0x452c1c;_0x1aed2c===((_0x452c1c=this[_0xcbe5fa(0x419)])==null?void 0x0:_0x452c1c['reqId'])&&(this[_0xcbe5fa(0x2b5)](),this['_resendTimeout']=_0x35424e===0x0?0x3e8:Math[_0xcbe5fa(0x38b)](_0x35424e*0x2,_0x329193),this['_maxTotalRetryTimeout']+=this[_0xcbe5fa(0x159)]);}['_clearScheduledTask'](){const _0x49f929=_0x405303;var _0x5732a8;(_0x5732a8=this[_0x49f929(0x21d)])==null||_0x5732a8[_0x49f929(0x3e8)](),this[_0x49f929(0x159)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x49c582=_0x901199=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x49c582);let _0x1af009=class extends _0x2a4010{constructor(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x3bdbfb=!0x1,_0x2cb76e,_0x4ec939,_0x38b456,_0x3c65b6,_0x1c4573,_0x4ca65b,_0x3e9a50){const _0x260a6c=_0x405303;super(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x4ec939,_0x38b456,_0x3c65b6,_0x3e9a50),this[_0x260a6c(0x3b2)]=_0x3bdbfb,this[_0x260a6c(0x2cd)]=_0x2cb76e,this[_0x260a6c(0x1d3)]=_0x1c4573,this[_0x260a6c(0x214)]=_0x4ca65b,this[_0x260a6c(0x185)]=_0x3e9a50,_0x4219eb(this,_0x260a6c(0x1b9),_0x260a6c(0x251)),this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x260a6c(0x2d8)]();}['appendMutation'](){return this;}[_0x405303(0x3af)](){return this;}[_0x405303(0xfb)](){return this;}[_0x405303(0x1f2)](){return this;}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){return this;}['resend'](){const _0x5b3514=_0x405303;throw Error(_0x5b3514(0x2b8));}[_0x405303(0x3a3)](){const _0x5775ab=_0x405303;var _0x35bfef,_0x270c56,_0x1e9405;(_0x35bfef=this['_localCacheService'])==null||(_0x270c56=_0x35bfef[_0x5775ab(0x35c)])==null||(_0x270c56=_0x270c56[_0x5775ab(0x2ed)](_0x35bfef,this['unitID'],_0x5775ab(0x251)))==null||_0x270c56['catch'](()=>void 0x0),(_0x1e9405=this[_0x5775ab(0x161)])==null||_0x1e9405[_0x5775ab(0x2bf)](this[_0x5775ab(0x1c9)],this['type'],null,[]);}[_0x405303(0x171)](){const _0x2d3f1e=_0x405303;this['_isPermissionRej']?this[_0x2d3f1e(0x214)][_0x2d3f1e(0x31f)]({'id':_0x2d3f1e(0x421)}):this['_collaborationUIEventService']['emitEvent']({'id':'CONFLICT'});}[_0x405303(0x2d8)](){const _0x4c7106=_0x405303;this[_0x4c7106(0x2cd)][_0x4c7106(0x2ea)](new _0x2ba48b[(_0x4c7106(0x422))](this[_0x4c7106(0x1c9)])['id'],!0x1);}};_0x1af009=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x160)])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0xa,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0xb,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x1af009);let _0x3b0e9a=class extends _0x2a4010{constructor(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x2337e5,_0x31dec8,_0x68c88c,_0x39902f,_0x4794b7){const _0x1d60a8=_0x405303;super(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x68c88c,_0x39902f,_0x31dec8,_0x4794b7),this[_0x1d60a8(0x3ef)]=_0x2337e5,_0x4219eb(this,_0x1d60a8(0x1b9),_0x1d60a8(0x42b));}[_0x405303(0x3ae)](_0x565ca8){const _0x4ed494=_0x405303;return this[_0x4ed494(0x43c)][_0x4ed494(0x1f4)](_0x565ca8),this[_0x4ed494(0xee)](),this;}[_0x405303(0x3af)](_0xf79ac8){const _0xba07f6=_0x405303;throw Error(_0xba07f6(0x170));}[_0x405303(0xfb)](){const _0x3aff2a=_0x405303;throw Error(_0x3aff2a(0x324));}[_0x405303(0x1f2)](){const _0x12e428=_0x405303;throw Error(_0x12e428(0x399));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){const _0x11d634=_0x405303;let {_injector:_0x30b5c8,_pendingMutations:_0x30ab98,_awaitingChangeset:_0x19e06b,unitID:_0x1ae4b6,_handler:_0x5070d4,type:_0x208d85}=this,_0x32419d=_0x1b1927(_0x30b5c8,_0x1ae4b6,_0x208d85,_0x19e06b,_0x30ab98,_0x5070d4);return _0x32419d instanceof _0x315789?_0x32419d[_0x11d634(0x242)]():(_0x32419d instanceof _0x49c582||_0x32419d instanceof _0xe05e0d)&&_0x32419d[_0x11d634(0x2b5)](),_0x32419d;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3b0e9a=_0x3934d9([_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,_0x2d0b9f['ICommandService']),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x3b0e9a);let _0x234be3=class extends _0x2a4010{constructor(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x1210b8,_0x3d94ea,_0x2fc0ac,_0x54f78c,_0x3bb81b,_0x46b1a6,_0x1198f8,_0x5beb64,_0x531540,_0x216b40){const _0x43def0=_0x405303;super(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x2fc0ac,_0x1198f8,_0x5beb64,_0x3bb81b,_0x216b40),this[_0x43def0(0x207)]=_0x1210b8,this['_queuedRemoteChangesets']=_0x3d94ea,this[_0x43def0(0x3ef)]=_0x54f78c,this[_0x43def0(0x3d5)]=_0x46b1a6,this[_0x43def0(0x1f8)]=_0x531540,this['localCacheService']=_0x216b40,_0x4219eb(this,'status','fetch_missing');}['onMissedChangesetFetched'](_0x4cb589){const _0x267d24=_0x405303;try{if(this[_0x267d24(0x304)](_0x4cb589)[_0x267d24(0x3ed)])throw Error(_0x267d24(0x39e));if(this[_0x267d24(0x304)]([...this[_0x267d24(0x2fc)]][_0x267d24(0x2c0)]((_0x29f9be,_0x2e04c1)=>_0x29f9be[_0x267d24(0x371)]-_0x2e04c1[_0x267d24(0x371)]))[_0x267d24(0x3ed)])return this[_0x267d24(0x2fc)]=[],this['_updateLocalCache'](),this[_0x267d24(0x327)]['onMissingChangesets']({'from':this[_0x267d24(0x20e)](),'to':0x0}),this;let _0x2e8ad7=this[_0x267d24(0x419)],_0x5b16f5=this[_0x267d24(0x43c)],_0x21604d;if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]!==0x0)_0x21604d=this['_injector'][_0x267d24(0x383)](_0x49c582,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,_0x5b16f5,this[_0x267d24(0x327)],void 0x0);else{if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]===0x0)_0x2e8ad7[_0x267d24(0x33b)]=this[_0x267d24(0x20e)](),_0x21604d=this['_injector'][_0x267d24(0x383)](_0xe05e0d,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,this[_0x267d24(0x327)]);else{if(_0x5b16f5[_0x267d24(0x182)]!==0x0){let _0x3205b1=this['_injector']['createInstance'](_0x315789,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x5b16f5,this[_0x267d24(0x327)]);_0x3205b1[_0x267d24(0x242)](),_0x21604d=_0x3205b1;}else _0x21604d=this[_0x267d24(0x3ef)]['createInstance'](_0x2b0eea,this['unitID'],this[_0x267d24(0x24b)],this[_0x267d24(0x327)]);}}return _0x21604d[_0x267d24(0xee)](),_0x21604d;}catch(_0x4d5d84){return this['_logService'][_0x267d24(0x2a9)](_0x267d24(0x402),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4d5d84),this[_0x267d24(0x3ef)]['createInstance'](_0x1af009,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],this['_awaitingChangeset'],this[_0x267d24(0x43c)],this[_0x267d24(0x327)],!0x1);}}[_0x405303(0x304)](_0x2afd93){const _0x261e38=_0x405303;this[_0x261e38(0x12a)]();for(let _0x5ea11d=0x0;_0x5ea11d<_0x2afd93[_0x261e38(0x182)];_0x5ea11d++){let _0x1434ad=_0x2afd93[_0x5ea11d],_0x3f8acb=this[_0x261e38(0x20e)]();if(!(_0x1434ad[_0x261e38(0x371)]<=_0x3f8acb)){if(_0x1434ad[_0x261e38(0x371)]>_0x3f8acb+0x1)return{'missingChangesets':!0x0};if(this[_0x261e38(0x3d0)](_0x1434ad)){this[_0x261e38(0x266)]();continue;}this[_0x261e38(0x149)](_0x1434ad),this[_0x261e38(0x12a)]();}}return{'missingChangesets':!0x1};}[_0x405303(0x149)](_0x36b795){const _0x206922=_0x405303;let _0x3e6332=_0x36b795,_0x455c61=this[_0x206922(0x419)];if(_0x455c61){let _0x1cf7b9=this[_0x206922(0x1f8)][_0x206922(0x3a7)]([_0x36b795],[_0x455c61],!0x1);if(!(0x0,_0x20c203[_0x206922(0x35b)])(_0x1cf7b9))throw _0x1cf7b9[_0x206922(0x2a9)];_0x3e6332=_0x1cf7b9[_0x206922(0x2c3)][0x0],_0x455c61=_0x1cf7b9[_0x206922(0x382)][0x0];}let _0xf8b50f=this[_0x206922(0x43c)];if(_0xf8b50f['length']){let _0x1eedf8=this['_transformService'][_0x206922(0x30a)](_0x3e6332,_0xf8b50f);if(!(0x0,_0x20c203['isTransformMutationsWithChangesetSuccess'])(_0x1eedf8))throw _0x1eedf8[_0x206922(0x2a9)];_0x3e6332=_0x1eedf8['c1Prime'],_0xf8b50f=_0x1eedf8[_0x206922(0x36d)];}this[_0x206922(0x15e)](_0x3e6332),_0x455c61&&(_0x455c61[_0x206922(0x33b)]=this['_getCurrentRevision']()),this[_0x206922(0x419)]=_0x455c61,this[_0x206922(0x43c)]=_0xf8b50f;}[_0x405303(0x12a)](){const _0x1228c6=_0x405303;if(!this[_0x1228c6(0x419)]||this[_0x1228c6(0x207)]==null)return;let _0x2233ed=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2233ed)throw Error(_0x1228c6(0x282)+this['_acknowledgedAwaitingRevision']+'.');this[_0x1228c6(0x207)]===_0x2233ed+0x1&&this[_0x1228c6(0x266)]();}[_0x405303(0x266)](){const _0x1209ef=_0x405303;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x1209ef(0x207)]=null;}[_0x405303(0x3d0)](_0x4c7b52){const _0xe0c665=_0x405303;let _0x129b4e=this[_0xe0c665(0x419)];return!_0x129b4e||!_0x129b4e[_0xe0c665(0x15d)]||_0x129b4e[_0xe0c665(0x387)]===null||_0x129b4e[_0xe0c665(0x387)]===void 0x0?!0x1:_0x4c7b52[_0xe0c665(0x1c9)]===_0x129b4e[_0xe0c665(0x1c9)]&&_0x4c7b52[_0xe0c665(0x15d)]===_0x129b4e[_0xe0c665(0x15d)]&&_0x4c7b52['reqId']===_0x129b4e[_0xe0c665(0x387)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3ae8c7){const _0x1faa09=_0x405303;return this[_0x1faa09(0x43c)][_0x1faa09(0x1f4)](_0x3ae8c7),this;}['onRemoteChangeset'](_0x25d29f){const _0x295aaf=_0x405303;return this[_0x295aaf(0x2fc)][_0x295aaf(0x1f4)](_0x25d29f),this;}[_0x405303(0xfb)](_0x213b30){const _0x3c9b25=_0x405303;if(this['_awaitingChangeset']){let _0x1a6e37=this[_0x3c9b25(0x20e)]();return _0x213b30[_0x3c9b25(0x371)]<=_0x1a6e37||(_0x1a6e37+0x1===_0x213b30[_0x3c9b25(0x371)]?(this[_0x3c9b25(0x1da)](),this[_0x3c9b25(0x419)]=null,this[_0x3c9b25(0x207)]=null):this['_acknowledgedAwaitingRevision']=_0x213b30[_0x3c9b25(0x371)]),this;}if(_0x213b30['revision']<=this[_0x3c9b25(0x20e)]())return this;throw Error(_0x3c9b25(0x180));}[_0x405303(0x1f2)](_0x570aa9){const _0x76cf6=_0x405303;return this[_0x76cf6(0x414)](!!(_0x570aa9!=null&&_0x570aa9[_0x76cf6(0x3b8)]));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x3dcb88=_0x405303;return this[_0x3dcb88(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x3dcb88(0x1c9)],this[_0x3dcb88(0x24b)],this[_0x3dcb88(0x419)],this['_pendingMutations'],this[_0x3dcb88(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x414)](_0x1a9433){const _0x41be97=_0x405303;return this[_0x41be97(0x3ef)][_0x41be97(0x383)](_0x1af009,this['unitID'],this['type'],this[_0x41be97(0x419)],this['_pendingMutations'],this[_0x41be97(0x327)],_0x1a9433);}};_0x234be3=_0x3934d9([_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x234be3);function _0x1b1927(_0x42b051,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1){const _0x354aa8=_0x405303;return _0x288ea5&&_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051[_0x354aa8(0x383)](_0x49c582,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1,void 0x0):_0x288ea5?_0x42b051['createInstance'](_0xe05e0d,_0x25a73e,_0x3c3b7b,_0x288ea5,_0x571bd1):_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051['createInstance'](_0x315789,_0x25a73e,_0x3c3b7b,_0xf8dfbb,_0x571bd1):_0x42b051[_0x354aa8(0x383)](_0x2b0eea,_0x25a73e,_0x3c3b7b,_0x571bd1);}let _0xfb921e=class extends _0x2d0b9f[_0x405303(0x16d)]{get['state'](){return this['_state'];}constructor(_0xe9e3fc,_0x18e404,_0x144474,_0x1ed0a2,_0x5e38a2,_0x134f67,_0x80fb76,_0x3cba4c,_0x19e9b0,_0x4f97fe,_0xc2b5e8,_0x2488d0,_0x3bc7bf,_0x6e2433){const _0x157383=_0x405303;super(),this[_0x157383(0x1c9)]=_0xe9e3fc,this[_0x157383(0x400)]=_0x18e404,this['_type']=_0x144474,this['_injector']=_0x1ed0a2,this['_compressMutationService']=_0x5e38a2,this[_0x157383(0x1d3)]=_0x134f67,this['_revisionService']=_0x80fb76,this[_0x157383(0x1e6)]=_0x3cba4c,this['_univerInstanceService']=_0x19e9b0,this[_0x157383(0x3d5)]=_0x4f97fe,this['_commandService']=_0xc2b5e8,this[_0x157383(0x2cd)]=_0x2488d0,this['_singleActiveUnitService']=_0x3bc7bf,this[_0x157383(0x161)]=_0x6e2433,_0x4219eb(this,_0x157383(0x128),new _0x31dca4[(_0x157383(0x31b))](null)),_0x4219eb(this,_0x157383(0x2c9),this[_0x157383(0x128)][_0x157383(0x41c)]()),_0x4219eb(this,_0x157383(0x42c),void 0x0),_0x4219eb(this,'_collaborationPaused',!0x1),_0x4219eb(this,_0x157383(0x12c),''),_0x4219eb(this,_0x157383(0x301),0x0),_0x4219eb(this,'status$',this[_0x157383(0x2c9)][_0x157383(0x18e)]((0x0,_0x31dca4[_0x157383(0x110)])(_0x2a14e4=>_0x2a14e4?_0x2a14e4['status']:_0x157383(0x42b)),(0x0,_0x31dca4[_0x157383(0x3fa)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4219eb(this,'_transitionLocked',!0x1),_0x4219eb(this,_0x157383(0x2e5),[]);}async['init'](){const _0xde410a=_0x405303;if(this[_0xde410a(0x28c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xde410a(0x176)]();}[_0x405303(0x331)](){const _0x36e138=_0x405303;return this[_0x36e138(0x411)]=!0x0,(0x0,_0x2d0b9f[_0x36e138(0xfa)])(()=>{const _0x525704=_0x36e138;this[_0x525704(0x411)]=!0x1,this[_0x525704(0x3dd)]();});}['onLocalMutation'](_0x1f2934){const _0x5dd096=_0x405303;this[_0x5dd096(0x42e)](_0x1f2934);}[_0x405303(0x2d0)](_0x45e7c9){const _0x304c4c=_0x405303;this[_0x304c4c(0x42c)]=_0x45e7c9,this['_state$'][_0x304c4c(0x131)](_0x45e7c9);}async['_init'](){const _0x61890f=_0x405303;if(this[_0x61890f(0x2d0)](await this['_createInitialState']()),this[_0x61890f(0x33a)]){var _0x2c40c9;(_0x2c40c9=this['_singleActiveUnitService'])==null||_0x2c40c9[_0x61890f(0x3ca)](this[_0x61890f(0x1c9)]),this[_0x61890f(0x10f)](this['_singleActiveUnitService'][_0x61890f(0xfc)](this[_0x61890f(0x1c9)])[_0x61890f(0x120)](_0x1155bf=>{const _0x22fae5=_0x61890f;this['_logService']['debug'](_0x22fae5(0x290),'editing\x20status\x20changed\x20to',_0x1155bf),_0x1155bf===0x1?(this['_eventService'][_0x22fae5(0x31f)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x1),this['_permissionService'][_0x22fae5(0x116)](!0x1)):(this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x0),this[_0x22fae5(0x2cd)]['setShowComponents'](!0x0));}));}let _0x2c814e=!0x1;return this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x1f0)][_0x61890f(0x120)](_0xd5b33c=>{const _0x45ed4f=_0x61890f;_0xd5b33c===0x3?this[_0x45ed4f(0x2ae)](_0x2c814e):_0xd5b33c===0x2&&(_0x2c814e=!0x0,this[_0x45ed4f(0x350)]());})),this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x233)][_0x61890f(0x120)](_0x2f8524=>{const _0x3a5aff=_0x61890f;try{switch(_0x2f8524[_0x3a5aff(0x3cc)]){case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x2c5)]:this['_onRemoteChangeset']((0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x2f8524[_0x3a5aff(0x3be)]));break;case _0x20c203['CollaborationEvent'][_0x3a5aff(0x1e3)]:this[_0x3a5aff(0x2a5)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0xfe)]:this[_0x3a5aff(0x260)]();break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x209)]:this[_0x3a5aff(0x1d1)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x275)]:this[_0x3a5aff(0x13e)](_0x2f8524['data'][_0x3a5aff(0x20c)][_0x3a5aff(0x110)](_0x1e8b78=>(0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x1e8b78)));break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x3e2)]:this[_0x3a5aff(0x260)]({'isPermissionRej':!0x0});break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x42a)]:break;}}catch(_0x197ab5){throw console[_0x3a5aff(0x2a9)](_0x3a5aff(0x1cd),_0x197ab5),_0x197ab5;}})),this['_state'];}[_0x405303(0x191)](){const _0x37d908=_0x405303;this[_0x37d908(0x308)]=!0x1;}[_0x405303(0x2b2)](){const _0x19ffe9=_0x405303;if(this['_transitionLocked'])throw Error(_0x19ffe9(0x237));this[_0x19ffe9(0x308)]=!0x0;}[_0x405303(0x42e)](_0x3f6906){const _0x20119d=_0x405303;this[_0x20119d(0x2b2)](),this['_updateState'](this['_state']['appendMutation'](_0x3f6906)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3646fb){const _0x18ff07=_0x405303;if(!(_0x3646fb[_0x18ff07(0x371)]<=this[_0x18ff07(0x291)][_0x18ff07(0x3a0)](this['unitID']))){if(this[_0x18ff07(0x411)]){this['_remoteChangesetQueue']['push'](_0x3646fb);return;}this[_0x18ff07(0x3c5)](_0x3646fb);}}[_0x405303(0x3dd)](){const _0x4155f8=_0x405303;this[_0x4155f8(0x2e5)]['forEach'](_0x28f6e2=>this[_0x4155f8(0x3c5)](_0x28f6e2)),this['_remoteChangesetQueue']=[];}[_0x405303(0x3c5)](_0x2bfddd){const _0x134dfc=_0x405303;let _0x5bf725=this[_0x134dfc(0x44a)]['interceptor']['fetchThroughInterceptors'](this[_0x134dfc(0x44a)][_0x134dfc(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2bfddd[_0x134dfc(0xf9)],null)||_0x2bfddd[_0x134dfc(0xf9)],_0x4d95a5={..._0x2bfddd,'mutations':_0x5bf725};this['_lockTransition'](),this['_updateState'](this[_0x134dfc(0x42c)][_0x134dfc(0x3af)](_0x4d95a5)),this[_0x134dfc(0x191)]();}[_0x405303(0x2a5)](_0x270903){const _0x3fe461=_0x405303;this[_0x3fe461(0x2b2)](),this['_updateState'](this[_0x3fe461(0x42c)][_0x3fe461(0xfb)](_0x270903)),this['_unlockTransition']();}[_0x405303(0x260)](_0x323f8e){const _0x410364=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x410364(0x42c)]['onRemoteRej'](_0x323f8e)),this['_unlockTransition']();}[_0x405303(0x1d1)](_0x1464c9){const _0x2c833e=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x2c833e(0x42c)][_0x2c833e(0x186)](_0x1464c9)),this[_0x2c833e(0x191)]();}[_0x405303(0x13e)](_0x49a987){const _0x1fbb57=_0x405303;if(!(this[_0x1fbb57(0x42c)]instanceof _0x234be3))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x1c9a32=_0x49a987[_0x1fbb57(0x110)](_0x415918=>{const _0x164975=_0x1fbb57;let _0x16c380=this[_0x164975(0x44a)]['interceptor'][_0x164975(0x33e)](this['_compressMutationService'][_0x164975(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x415918[_0x164975(0xf9)],null)||_0x415918['mutations'];return{..._0x415918,'mutations':_0x16c380};});this[_0x1fbb57(0x2b2)](),this[_0x1fbb57(0x2d0)](this[_0x1fbb57(0x42c)]['onMissedChangesetFetched'](_0x1c9a32)),this[_0x1fbb57(0x191)]();}[_0x405303(0x350)](){const _0x2920b2=_0x405303;this[_0x2920b2(0x2b2)](),this[_0x2920b2(0x2d0)](this[_0x2920b2(0x42c)][_0x2920b2(0x11a)]()),this[_0x2920b2(0x191)]();}[_0x405303(0x2ae)](_0x55c698=!0x1){const _0x541f56=_0x405303;this['_lockTransition'](),this[_0x541f56(0x2d0)](this['_state']['toggleOnline']()),this[_0x541f56(0x191)]();let _0x300dfa=this[_0x541f56(0x42c)];_0x55c698&&_0x300dfa instanceof _0x2b0eea&&(this[_0x541f56(0x2b2)](),this[_0x541f56(0x2d0)](_0x300dfa[_0x541f56(0x2e8)]()),this['_unlockTransition']());}async[_0x405303(0x136)](){return new Promise(_0xfe0f2d=>{const _0x49d49e=_0x4e8d;this[_0x49d49e(0x400)][_0x49d49e(0x1f0)][_0x49d49e(0x18e)]((0x0,_0x31dca4[_0x49d49e(0x193)])(0x1))[_0x49d49e(0x120)](async _0xc4ca41=>{const _0xacf287=_0x49d49e;_0xfe0f2d(await this[_0xacf287(0x26a)](_0xc4ca41===0x3));});});}['_createHandler'](){const _0x551d59=_0x405303;let _0x2f52ec=this[_0x551d59(0x1c9)];return{'onStateChange':(_0x343950,_0x21f1a9)=>{const _0x3d3730=_0x551d59;if(_0x343950!==this[_0x3d3730(0x42c)])throw Error(_0x3d3730(0x342)+_0x343950['status']+_0x3d3730(0x3f6)+_0x21f1a9['status']+_0x3d3730(0x224)+this[_0x3d3730(0x42c)][_0x3d3730(0x1b9)]);this[_0x3d3730(0x2d0)](_0x21f1a9);},'onSendChangeset':_0x211a3a=>{const _0x4af1dc=_0x551d59;_0x211a3a[_0x4af1dc(0x15d)]||(_0x211a3a[_0x4af1dc(0x15d)]=this['_changesetSessionId'],_0x211a3a[_0x4af1dc(0x387)]=++this[_0x4af1dc(0x301)]);let _0x2b0947={'eventID':_0x20c203[_0x4af1dc(0x3e1)][_0x4af1dc(0x3ba)],'data':{'unitID':_0x211a3a[_0x4af1dc(0x1c9)],'unitType':this[_0x4af1dc(0x3f0)],'changeset':_0x211a3a,'memberID':this[_0x4af1dc(0x400)][_0x4af1dc(0x32d)]()}};this[_0x4af1dc(0x400)][_0x4af1dc(0x177)](_0x2b0947,this[_0x4af1dc(0x1c9)]);},'onMissingChangesets':({from:_0x158054,to:_0x1d6918})=>{const _0x5afcca=_0x551d59;this[_0x5afcca(0x3d5)][_0x5afcca(0x30f)](_0x5afcca(0x290),_0x5afcca(0x1c0)+_0x158054+_0x5afcca(0x155)+_0x1d6918);let _0x12e7c5={'eventID':_0x20c203['CollaborationEvent'][_0x5afcca(0x1c4)],'data':{'unitID':_0x2f52ec,'unitType':this[_0x5afcca(0x3f0)],'from':_0x158054,'to':_0x1d6918}};this['session'][_0x5afcca(0x177)](_0x12e7c5,this['unitID']);}};}async[_0x405303(0x26a)](_0x426f8f){const _0x2761bb=_0x405303;var _0x45b48f,_0x472c43,_0x569524;let _0x439306=await((_0x45b48f=this['_localCacheService'])==null?void 0x0:_0x45b48f[_0x2761bb(0x218)](this['unitID'])),_0x2b55e5=(_0x472c43=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0xf9)])==null?[]:_0x472c43,_0x1fb9d0=(_0x569524=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0x283)])==null?null:_0x569524,_0x26314b=!!(_0x1fb9d0!=null&&_0x1fb9d0['sid'])&&!!(_0x1fb9d0!=null&&_0x1fb9d0[_0x2761bb(0x387)]);this['_changesetSessionId']=_0x26314b?_0x1fb9d0[_0x2761bb(0x15d)]:(0x0,_0x20c203[_0x2761bb(0x1e4)])(),this[_0x2761bb(0x301)]=_0x26314b?_0x1fb9d0[_0x2761bb(0x387)]:0x0;let _0x4f17e6=this[_0x2761bb(0x1c9)];try{this[_0x2761bb(0x19e)](_0x1fb9d0,_0x2b55e5);}catch(_0x64b129){this[_0x2761bb(0x3d5)][_0x2761bb(0x2a9)](_0x64b129);}let _0xac1985=this[_0x2761bb(0x259)]();if(_0x426f8f){let _0x232563=_0x1b1927(this[_0x2761bb(0x3ef)],_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);return _0x232563 instanceof _0x315789?_0x232563[_0x2761bb(0x242)]():(_0x232563 instanceof _0x49c582||_0x232563 instanceof _0xe05e0d)&&_0x232563['resend'](),_0x232563;}return this['_injector'][_0x2761bb(0x383)](_0x3b0e9a,_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);}[_0x405303(0x19e)](_0x1db499,_0x194ff4){const _0xb9d930=_0x405303;var _0x46253a,_0x445a52;let _0x192891=this[_0xb9d930(0x44a)]['interceptor'][_0xb9d930(0x33e)](this[_0xb9d930(0x44a)][_0xb9d930(0x19c)][_0xb9d930(0x380)]()[_0xb9d930(0x406)]);(_0x46253a=_0x192891((_0x1db499==null?void 0x0:_0x1db499['mutations'])||[],null))==null||_0x46253a[_0xb9d930(0x412)](_0x22d041=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x22d041['id'],_0x22d041[_0xb9d930(0x329)])),(_0x445a52=_0x192891(_0x194ff4||[],null))==null||_0x445a52[_0xb9d930(0x412)](_0x127b3f=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x127b3f['id'],_0x127b3f[_0xb9d930(0x329)]));}};_0xfb921e=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0xfb921e);let _0x5a7876=class extends _0xfb921e{constructor(_0x4f196d,_0x2f05a8,_0x422a1e,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x48a908,_0x1345ec,_0x35e5fe){const _0x3c5428=_0x405303;super(_0x4f196d,_0x422a1e,_0x2f05a8,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x1345ec,_0x35e5fe),this[_0x3c5428(0x1c9)]=_0x4f196d,this[_0x3c5428(0x24b)]=_0x2f05a8,this['_docStateChangeManagerService']=_0x48a908,_0x4219eb(this,'_handlerCallback',null);}[_0x405303(0x2a7)](_0x2e5dbc){const _0x537848=_0x405303;this[_0x537848(0x43e)]=_0x2e5dbc;}['dispose'](){const _0x5c2052=_0x405303;this[_0x5c2052(0x43e)]=null,super[_0x5c2052(0x309)]();}['_createHandler'](){const _0x5ab370=_0x405303;let _0x43f24f=super[_0x5ab370(0x259)]();return _0x43f24f['onTransformIME']=_0xfe666a=>{const _0x31a311=_0x5ab370;var _0x944f0d,_0x477258;return(_0x944f0d=this[_0x31a311(0x43e)])==null||(_0x477258=_0x944f0d[_0x31a311(0x1a6)])==null?void 0x0:_0x477258['call'](_0x944f0d,_0xfe666a);},_0x43f24f[_0x5ab370(0x2f9)]=_0x353af5=>{var _0x5bc7f9,_0x2e5d59;return(_0x5bc7f9=this['_handlerCallback'])==null||(_0x2e5d59=_0x5bc7f9['onTransformState'])==null?void 0x0:_0x2e5d59['call'](_0x5bc7f9,_0x353af5);},_0x43f24f[_0x5ab370(0x2de)]=_0x3e369f=>{const _0x27b068=_0x5ab370;var _0x37425b,_0x19f20c;return(_0x37425b=this[_0x27b068(0x43e)])==null||(_0x19f20c=_0x37425b[_0x27b068(0x2de)])==null?void 0x0:_0x19f20c[_0x27b068(0x2ed)](_0x37425b,_0x3e369f);},_0x43f24f[_0x5ab370(0x27d)]=_0x2399bf=>{const _0xbafab8=_0x5ab370;var _0x527659,_0x4535a9;return(_0x527659=this[_0xbafab8(0x43e)])==null||(_0x4535a9=_0x527659[_0xbafab8(0x27d)])==null?void 0x0:_0x4535a9['call'](_0x527659,_0x2399bf);},_0x43f24f[_0x5ab370(0x1a7)]=_0x188e0c=>{const _0x5a8c73=_0x5ab370;var _0x3ffe04,_0x1725ac,_0x2e80f4;return(_0x3ffe04=(_0x1725ac=this[_0x5a8c73(0x43e)])==null||(_0x2e80f4=_0x1725ac['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2e80f4[_0x5a8c73(0x2ed)](_0x1725ac,_0x188e0c))==null?_0x188e0c:_0x3ffe04;},_0x43f24f[_0x5ab370(0x390)]=_0x3d98ea=>{const _0x2f960f=_0x5ab370;var _0x218e17,_0x254f14,_0xd3b125;return(_0x218e17=(_0x254f14=this[_0x2f960f(0x43e)])==null||(_0xd3b125=_0x254f14['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xd3b125[_0x2f960f(0x2ed)](_0x254f14,_0x3d98ea))==null?_0x3d98ea:_0x218e17;},_0x43f24f;}async[_0x405303(0x176)](){const _0x4e49e1=_0x405303;let _0x15406f=await super['_init']();return this['disposeWithMe'](this[_0x4e49e1(0x3c4)][_0x4e49e1(0x1c5)][_0x4e49e1(0x120)](_0x492d3a=>{const _0x365627=_0x4e49e1;if(_0x492d3a==null||_0x492d3a[_0x365627(0x29b)]!==this['unitID'])return;let {commandId:_0x316ea9,redoState:_0x586616,unitId:_0x25694f}=_0x492d3a,_0x8fe5f6={'id':_0x316ea9,'type':_0x2d0b9f['CommandType'][_0x365627(0x245)],'params':{'unitId':_0x25694f,'actions':_0x586616[_0x365627(0x208)],'textRanges':null}};this[_0x365627(0x42e)](_0x8fe5f6);})),this['disposeWithMe'](this[_0x4e49e1(0xf5)][_0x4e49e1(0x19a)]((_0xafa72,_0x470719)=>{const _0x3d08ec=_0x4e49e1;if(_0xafa72['type']!==_0x2d0b9f[_0x3d08ec(0x150)][_0x3d08ec(0x245)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x17a)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x366)]||_0xafa72['id']===_0x33f3ff['RichTextEditingMutation']['id'])return;let _0x6544c7=_0xafa72[_0x3d08ec(0x329)];if((_0x6544c7==null?void 0x0:_0x6544c7[_0x3d08ec(0x29b)])!==this[_0x3d08ec(0x1c9)])return;let _0x487a02=_0xafa72,_0x177689=this['_compressMutationService'][_0x3d08ec(0x19c)][_0x3d08ec(0x33e)](this['_compressMutationService']['interceptor'][_0x3d08ec(0x380)]()[_0x3d08ec(0x389)])([_0x487a02],this[_0x3d08ec(0x347)])||[_0x487a02];this[_0x3d08ec(0x42e)](_0x177689[0x0]);})),_0x15406f;}};_0x5a7876=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Inject'])(_0x33f3ff[_0x405303(0x3b0)])),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5a7876);let _0x59b528=class extends _0xfb921e{constructor(_0x7ae0d1,_0x4ab612,_0x44866f,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c){const _0x1f2c96=_0x405303;super(_0x7ae0d1,_0x44866f,_0x4ab612,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c),this[_0x1f2c96(0x1c9)]=_0x7ae0d1,this[_0x1f2c96(0x24b)]=_0x4ab612;}async[_0x405303(0x176)](){const _0x37e406=_0x405303;let _0x10310e=await super[_0x37e406(0x176)]();return this[_0x37e406(0x10f)](this[_0x37e406(0xf5)][_0x37e406(0x19a)]((_0x5b201a,_0x3990e0)=>{const _0x2c0aff=_0x37e406;if(_0x5b201a['type']!==_0x2d0b9f[_0x2c0aff(0x150)]['MUTATION']||_0x3990e0!=null&&_0x3990e0['fromCollab']||_0x3990e0!=null&&_0x3990e0[_0x2c0aff(0x366)])return;let _0x31bb62=_0x5b201a[_0x2c0aff(0x329)];if((_0x31bb62==null?void 0x0:_0x31bb62[_0x2c0aff(0x29b)])!==this['unitID'])return;let _0x54a1e0=_0x5b201a,_0x451196=this[_0x2c0aff(0x44a)][_0x2c0aff(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x2c0aff(0x380)]()[_0x2c0aff(0x389)])([_0x54a1e0],this[_0x2c0aff(0x347)])||[_0x54a1e0];this[_0x2c0aff(0x42e)](_0x451196[0x0]);})),_0x10310e;}};_0x59b528=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f['IPermissionService']),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x59b528);let _0x5080f=class extends _0xfb921e{constructor(_0x114fac,_0x13fa13,_0x13defb,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x3f16bc,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52){const _0x296ff2=_0x405303;super(_0x114fac,_0x13defb,_0x13fa13,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52),this[_0x296ff2(0x1c9)]=_0x114fac,this[_0x296ff2(0x24b)]=_0x13fa13,this[_0x296ff2(0x32e)]=_0x3f16bc;}[_0x405303(0x259)](){const _0x38924d=_0x405303;let _0x24f1e7=super[_0x38924d(0x259)]();return _0x24f1e7[_0x38924d(0x2de)]=_0x254b26=>this[_0x38924d(0x32e)][_0x38924d(0x41d)](_0x254b26),_0x24f1e7;}async[_0x405303(0x176)](){const _0x19c852=_0x405303;let _0x667e5e=await super[_0x19c852(0x176)]();return this[_0x19c852(0x10f)](this['_commandService']['onMutationExecutedForCollab']((_0xee519e,_0x24089e)=>{const _0x329e9d=_0x19c852;if(_0xee519e[_0x329e9d(0x24b)]!==_0x2d0b9f[_0x329e9d(0x150)]['MUTATION']||_0x24089e!=null&&_0x24089e[_0x329e9d(0x17a)]||_0x24089e!=null&&_0x24089e[_0x329e9d(0x366)])return;let _0x5ccb63=_0xee519e[_0x329e9d(0x329)];if((_0x5ccb63==null?void 0x0:_0x5ccb63[_0x329e9d(0x29b)])!==this[_0x329e9d(0x1c9)])return;let _0xdff2f2=_0xee519e,_0x53ec12=this['_compressMutationService'][_0x329e9d(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x329e9d(0x380)]()['COMPRESS_MUTATION_SEND'])([_0xdff2f2],this[_0x329e9d(0x347)])||[_0xdff2f2];this['_onLocalMutation'](_0x53ec12[0x0]);})),_0x667e5e;}};_0x5080f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x201f2c)),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5080f);let _0x33945f=class extends _0xfb921e{constructor(_0x5de533,_0x5392e1,_0x26a6ae,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9){const _0x165afc=_0x405303;super(_0x5de533,_0x26a6ae,_0x5392e1,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9),this[_0x165afc(0x1c9)]=_0x5de533,this[_0x165afc(0x24b)]=_0x5392e1;}async[_0x405303(0x176)](){const _0x98057b=_0x405303;let _0x36acad=await super[_0x98057b(0x176)]();return this[_0x98057b(0x10f)](this[_0x98057b(0xf5)][_0x98057b(0x19a)]((_0x2d49ce,_0x2995e4)=>{const _0x5388cc=_0x98057b;if(_0x2d49ce['type']!==_0x2d0b9f[_0x5388cc(0x150)][_0x5388cc(0x245)]||_0x2995e4!=null&&_0x2995e4[_0x5388cc(0x17a)]||_0x2995e4!=null&&_0x2995e4['onlyLocal'])return;let _0x345133=_0x2d49ce['params'];if((_0x345133==null?void 0x0:_0x345133[_0x5388cc(0x29b)])!==this['unitID'])return;let _0x7dc7c=_0x2d49ce,_0x1a802f=this['_compressMutationService'][_0x5388cc(0x19c)][_0x5388cc(0x33e)](this[_0x5388cc(0x44a)][_0x5388cc(0x19c)][_0x5388cc(0x380)]()[_0x5388cc(0x389)])([_0x7dc7c],this[_0x5388cc(0x347)])||[_0x7dc7c];this['_onLocalMutation'](_0x1a802f[0x0]);})),_0x36acad;}};_0x33945f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x33945f);let _0x4cf531=class extends _0xfb921e{constructor(_0x39acf4,_0x3bb93d,_0x105c90,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b){const _0x51c1ab=_0x405303;super(_0x39acf4,_0x105c90,_0x3bb93d,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b),this[_0x51c1ab(0x1c9)]=_0x39acf4,this[_0x51c1ab(0x24b)]=_0x3bb93d;}async[_0x405303(0x176)](){const _0x385fe8=_0x405303;let _0x13b05d=await super[_0x385fe8(0x176)]();return this[_0x385fe8(0x10f)](this[_0x385fe8(0xf5)][_0x385fe8(0x19a)]((_0x54f8bc,_0x309b85)=>{const _0x5cdf36=_0x385fe8;if(_0x54f8bc[_0x5cdf36(0x24b)]!==_0x2d0b9f[_0x5cdf36(0x150)][_0x5cdf36(0x245)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x17a)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x366)])return;let _0x4fdccd=_0x54f8bc[_0x5cdf36(0x329)];if((_0x4fdccd==null?void 0x0:_0x4fdccd['unitId'])!==this[_0x5cdf36(0x1c9)])return;let _0x1a4a66=_0x54f8bc,_0x58f0e3=this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)]['fetchThroughInterceptors'](this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)][_0x5cdf36(0x380)]()[_0x5cdf36(0x389)])([_0x1a4a66],this[_0x5cdf36(0x347)])||[_0x1a4a66];this[_0x5cdf36(0x42e)](_0x58f0e3[0x0]);})),_0x13b05d;}};_0x4cf531=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x4cf531);let _0x514c5a=class extends _0xfb921e{constructor(_0x335a04,_0x2440ce,_0x1817e0,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216){const _0xdd12c1=_0x405303;super(_0x335a04,_0x1817e0,_0x2440ce,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216),this[_0xdd12c1(0x1c9)]=_0x335a04,this[_0xdd12c1(0x24b)]=_0x2440ce;}async[_0x405303(0x176)](){const _0x380a42=_0x405303;let _0x28aab5=await super[_0x380a42(0x176)]();return this[_0x380a42(0x10f)](this['_commandService'][_0x380a42(0x19a)]((_0x433730,_0x3a4212)=>{const _0x48efee=_0x380a42;if(_0x433730[_0x48efee(0x24b)]!==_0x2d0b9f[_0x48efee(0x150)][_0x48efee(0x245)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x17a)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x366)])return;let _0x4bc234=_0x433730[_0x48efee(0x329)];if((_0x4bc234==null?void 0x0:_0x4bc234[_0x48efee(0x29b)])!==this[_0x48efee(0x1c9)])return;let _0x3151fc=_0x433730,_0x586f98=this[_0x48efee(0x44a)][_0x48efee(0x19c)][_0x48efee(0x33e)](this['_compressMutationService'][_0x48efee(0x19c)][_0x48efee(0x380)]()[_0x48efee(0x389)])([_0x3151fc],this['_univerInstanceService'])||[_0x3151fc];this['_onLocalMutation'](_0x586f98[0x0]);})),_0x28aab5;}};_0x514c5a=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f['ICommandService']),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x514c5a);let _0x1e1155=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x444));function _0x36834a(_0x218101){const _0x10ab16=_0x405303;let _0x4a2cfa=_0x218101[_0x10ab16(0x3be)],_0xc630bb=JSON[_0x10ab16(0x39c)](_0x4a2cfa);switch(_0xc630bb['cmd']){case _0x11fae4[_0x10ab16(0x139)][_0x10ab16(0x3dc)]:case _0x11fae4['CombCmd'][_0x10ab16(0x257)]:{let _0x1db6ec=_0xc630bb['infoRsp'];return{..._0xc630bb,'data':_0x1db6ec,'cmd':_0xc630bb['cmd']};}case _0x11fae4['CombCmd'][_0x10ab16(0x315)]:{let _0x4a639e=_0xc630bb[_0x10ab16(0x1fd)];return{..._0xc630bb,'data':_0x4a639e,'cmd':_0xc630bb[_0x10ab16(0x164)]};}case _0x11fae4['CombCmd'][_0x10ab16(0x359)]:{let _0xfea998=_0xc630bb[_0x10ab16(0x27c)];switch(_0xfea998[_0x10ab16(0x3cc)]){case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x3e2)]:var _0x45aca5;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x45aca5=_0xfea998[_0x10ab16(0x13f)])==null?void 0x0:_0x45aca5['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e3)]:var _0x1ec86f;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x1ec86f=_0xfea998[_0x10ab16(0x295)])==null?void 0x0:_0x1ec86f['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x2c5)]:var _0x4ebdfa;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x4ebdfa=_0xfea998[_0x10ab16(0x3d6)])==null?void 0x0:_0x4ebdfa['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0xfe)]:var _0x11a401;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x11a401=_0xfea998['csRejEvent'])==null?void 0x0:_0x11a401['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x209)]:var _0x144f77;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x144f77=_0xfea998[_0x10ab16(0x2c7)])==null?void 0x0:_0x144f77['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x130)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updateCursorEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e8)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['joinEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x114)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x370)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_NEW_HOST']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x1b3)]:case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_OPERATION']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x2a6)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x3e4)]:return{..._0xc630bb,'data':_0xfea998,'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['COMMENT_UPDATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x17e)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['UPDATE_PERMISSION_OBJ']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updatePermissionObjEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x37a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x3b5)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x42a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x317)]},'cmd':_0xc630bb['cmd']};default:return _0xc630bb;}}default:return _0xc630bb;}}function _0x2e90ec(_0x90cf72){const _0xe9c089=_0x405303;switch(_0x90cf72[_0xe9c089(0x164)]){case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x3dc)]:case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x257)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)]});case _0x11fae4['CombCmd'][_0xe9c089(0x108)]:{let _0x215254;switch(_0x90cf72['data']['eventID']){case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x130)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['UPDATE_CURSOR'],'updateCursorEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_LEAVE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x114)],'leaveEvent':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_ENTER']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1e8)],'joinEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)],'liveShareNewHost':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203['CollaborationEvent'][_0xe9c089(0x300)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x300)],'liveShareOperation':_0x90cf72['data'][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]};break;default:_0x215254={'eventID':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3cc)]};}return JSON['stringify']({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'collaMsg':_0x215254});}case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x315)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'joinReq':_0x90cf72[_0xe9c089(0x3be)]});case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x18b)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72['routeKey'],'leaveReq':_0x90cf72[_0xe9c089(0x3be)]});default:throw Error(_0xe9c089(0x15a));}}let _0x581f35=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x35d));function _0x30eb9b(_0x1d553a,_0x303877,_0x335406){const _0x4eddf8=_0x405303;return _0x1d553a+'/'+_0x303877+_0x4eddf8(0x437)+_0x335406+'/new_changes';}let _0x2eb133=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x22842d,_0x2cb6af,_0x393a56,_0x556536,_0x356e9f){const _0x5976c8=_0x405303;super(),this[_0x5976c8(0x3ef)]=_0x22842d,this[_0x5976c8(0x121)]=_0x2cb6af,this['_configService']=_0x393a56,this[_0x5976c8(0x3d5)]=_0x556536,this[_0x5976c8(0x19b)]=_0x356e9f;}[_0x405303(0x12b)](_0x2e9fa9){const _0x2cfb3f=_0x405303;let _0xeb64a=this[_0x2cfb3f(0x3ef)][_0x2cfb3f(0x1b8)](_0xc90c47[_0x2cfb3f(0x352)]);if(!_0xeb64a)throw Error(_0x2cfb3f(0x3a2));let _0xd7c6f2=_0xeb64a[_0x2cfb3f(0xf0)](_0x2e9fa9);if(!_0xd7c6f2)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x39727f=new _0x2d0b9f[(_0x2cfb3f(0x302))](),_0x553631=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2['close$'][_0x2cfb3f(0x120)](_0x55adff=>_0x553631[_0x2cfb3f(0x131)](_0x55adff))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x553631[_0x2cfb3f(0x104)]()));let _0x19d7f5=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x306)][_0x2cfb3f(0x120)](_0x27d2c2=>_0x19d7f5[_0x2cfb3f(0x131)](_0x27d2c2))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x19d7f5[_0x2cfb3f(0x104)]()));let _0xed80f3=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x2ca)][_0x2cfb3f(0x120)](_0x47cd63=>{let _0x476c5d=_0x36834a(_0x47cd63);_0xed80f3['next'](_0x476c5d);})),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f['toDisposable'])(()=>_0xed80f3[_0x2cfb3f(0x104)]()));let _0x53608d,_0x16b19f=()=>{const _0x4b76d0=_0x2cfb3f;_0x19d7f5['next'](new Event(_0x4b76d0(0x1d2))),_0x553631[_0x4b76d0(0x131)](new Event(_0x4b76d0(0x1d2))),_0x53608d[_0x4b76d0(0x2dd)]();};return _0x53608d={'memberID':'','close$':_0x553631[_0x2cfb3f(0x41c)](),'error$':_0x19d7f5[_0x2cfb3f(0x41c)](),'open$':_0xd7c6f2['open$'],'message$':_0xed80f3['asObservable'](),'send':_0x51202f=>{const _0x4a3045=_0x2cfb3f;if(_0x51202f[_0x4a3045(0x164)]===_0x11fae4[_0x4a3045(0x139)][_0x4a3045(0x108)]){if(_0x51202f['data'][_0x4a3045(0x3cc)]===_0x20c203['CollaborationEvent'][_0x4a3045(0x3ba)]){this[_0x4a3045(0x364)](_0x53608d,_0x51202f['data'])[_0x4a3045(0x38f)](_0x4b390e=>{const _0x178dde=_0x4a3045;this['_logService'][_0x178dde(0x2a9)](_0x4b390e),_0x16b19f();});return;}if(_0x51202f[_0x4a3045(0x3be)][_0x4a3045(0x3cc)]===_0x20c203[_0x4a3045(0x3e1)]['FETCH_MISSING']){let _0x427821=_0x51202f[_0x4a3045(0x3be)];this[_0x4a3045(0x105)](_0x427821)['then'](_0x451108=>{const _0x1c0c65=_0x4a3045;_0xed80f3[_0x1c0c65(0x131)]({'cmd':_0x11fae4['CombCmd']['RECV'],'code':_0x11fae4[_0x1c0c65(0x3b3)]['OK'],'routeKey':_0x427821[_0x1c0c65(0x3be)][_0x1c0c65(0x1c9)],'routeType':'','data':{'eventID':_0x20c203['CollaborationEvent'][_0x1c0c65(0x275)],'data':{'changesets':_0x451108}}});})[_0x4a3045(0x38f)](_0x197620=>{const _0x344a4f=_0x4a3045;this['_logService'][_0x344a4f(0x2a9)](_0x197620),_0x16b19f();});return;}}_0xd7c6f2[_0x4a3045(0x177)](_0x2e90ec(_0x51202f));},'close':()=>{const _0x427b3f=_0x2cfb3f;_0xd7c6f2[_0x427b3f(0x2dd)](),_0x39727f[_0x427b3f(0x309)]();}},_0x53608d;}async['_submitChangeset'](_0x2abc8a,_0x343dc1){const _0x42659a=_0x405303;var _0x4f4b17;let {unitType:_0x3651c0,unitID:_0x21caa3,changeset:_0x265113}=_0x343dc1[_0x42659a(0x3be)],_0x1322b7={'unitID':_0x21caa3,'memberID':_0x2abc8a[_0x42659a(0x29d)],'type':_0x3651c0,'changeset':(0x0,_0x20c203[_0x42659a(0x328)])(_0x265113)},_0x3fdd81=this[_0x42659a(0x3d2)]['getConfig'](_0x51e182),_0x3d29c3=_0x30eb9b((_0x4f4b17=_0x3fdd81==null?void 0x0:_0x3fdd81[_0x42659a(0x240)])==null?'/universer-api/comb':_0x4f4b17,_0x3651c0,_0x21caa3);try{await this[_0x42659a(0x121)][_0x42659a(0x3f5)](_0x3d29c3,{'body':_0x1322b7});}catch(_0x22b36d){throw this[_0x42659a(0x3d5)][_0x42659a(0x2a9)](_0x42659a(0x420),_0x42659a(0x173)),_0x22b36d;}}async[_0x405303(0x105)](_0x4aa414){const _0x46f87d=_0x405303;let {unitID:_0x3ad8cf,from:_0x4a8f2a,to:_0x34152c,unitType:_0x27b8d7}=_0x4aa414[_0x46f87d(0x3be)];return(await this[_0x46f87d(0x19b)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3ad8cf,'type':_0x27b8d7,'from':_0x4a8f2a,'to':_0x34152c}))['changesets'][_0x46f87d(0x110)](_0x187e61=>((_0x187e61[_0x46f87d(0xf9)]===null||_0x187e61[_0x46f87d(0xf9)]===void 0x0)&&(_0x187e61['mutations']=[]),_0x187e61));}};_0x2eb133=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x4,_0x20c203[_0x405303(0x3e3)])],_0x2eb133);let _0x562152=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x3de));function _0x233b60(_0x596242={}){const _0x1f3d4e=_0x405303;return _0x596242[_0x1f3d4e(0x424)]?{'resolveUnit':_0x596242[_0x1f3d4e(0x424)]}:{'resolveUnit':_0x116c86=>({'target':{'unitId':_0x116c86['unitId'],'unitType':_0x116c86['unitType']}})};}function _0x4f435b(_0x5aae11,_0x4048ac,_0x116b29){const _0x540d4d=_0x405303;var _0xe3411f;let _0x4e7138=_0x116b29[_0x540d4d(0x11c)][_0x540d4d(0x246)];if(_0x4e7138!=null&&_0x4e7138[_0x540d4d(0x1aa)]()==='')throw Error(_0x540d4d(0x3fc));if(!_0x116b29[_0x540d4d(0x11c)]['unitId'])throw Error(_0x540d4d(0x274));return{'localUnitId':_0x5aae11,'unitType':_0x4048ac,'target':{'endpoint':_0x4e7138,'unitId':_0x116b29['target'][_0x540d4d(0x29b)],'unitType':(_0xe3411f=_0x116b29['target'][_0x540d4d(0x311)])==null?_0x4048ac:_0xe3411f},'changeset':_0x116b29[_0x540d4d(0x24c)]};}let _0x4c98b9=class extends _0x2d0b9f['Disposable']{constructor(_0x256d16,_0x2b0f75,_0x5d6feb,_0x339ff9,_0x1e2261,_0x52beac,_0x466404){const _0x19aac6=_0x405303;super(),this[_0x19aac6(0x3ef)]=_0x256d16,this[_0x19aac6(0x3d5)]=_0x2b0f75,this['_configService']=_0x5d6feb,this[_0x19aac6(0x24a)]=_0x339ff9,this['_collaborationUIEventService']=_0x1e2261,this[_0x19aac6(0x35a)]=_0x52beac,this['_networkConditionService']=_0x466404,_0x4219eb(this,_0x19aac6(0x189),new Map()),_0x4219eb(this,_0x19aac6(0x2ac),new Map()),_0x4219eb(this,_0x19aac6(0x199),new Map()),_0x4219eb(this,_0x19aac6(0x241),new Map()),_0x4219eb(this,'socket$',this[_0x19aac6(0x165)](void 0x0)[_0x19aac6(0x25f)][_0x19aac6(0x41c)]()),_0x4219eb(this,_0x19aac6(0x343),new _0x31dca4[(_0x19aac6(0x31b))](0x0)),_0x4219eb(this,_0x19aac6(0x3e0),this[_0x19aac6(0x343)]['asObservable']()),this[_0x19aac6(0x32b)]();}[_0x405303(0x32b)](){const _0x5a5d9a=_0x405303;this[_0x5a5d9a(0x374)]&&this[_0x5a5d9a(0x10f)](this['_networkConditionService'][_0x5a5d9a(0x229)]['subscribe'](_0x4a460f=>{const _0xc92087=_0x5a5d9a;_0x4a460f&&this['reconnect'](),_0x4a460f||this[_0xc92087(0x241)]['forEach'](_0x2beee6=>this[_0xc92087(0x1fe)](_0x2beee6));}));}[_0x405303(0x309)](){const _0x3513ea=_0x405303;super[_0x3513ea(0x309)](),this[_0x3513ea(0x241)][_0x3513ea(0x412)](_0x59706c=>{const _0x4cf025=_0x3513ea;var _0x3f71aa,_0x550984;(_0x3f71aa=_0x59706c[_0x4cf025(0x2ee)])==null||_0x3f71aa['unsubscribe'](),_0x59706c[_0x4cf025(0x2ee)]=null,this[_0x4cf025(0x36a)](_0x59706c),this[_0x4cf025(0x404)](_0x59706c),this[_0x4cf025(0x264)](_0x59706c),(_0x550984=_0x59706c[_0x4cf025(0x25f)]['getValue']())==null||_0x550984[_0x4cf025(0x2dd)](),_0x59706c[_0x4cf025(0x25f)][_0x4cf025(0x104)]();}),this['_socketChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x189)][_0x3513ea(0x412)](_0x3fbcb4=>_0x3fbcb4[_0x3513ea(0x309)]()),this[_0x3513ea(0x189)]['clear'](),this['_sessionChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x343)][_0x3513ea(0x104)]();}async[_0x405303(0x305)](_0x3ac9b3,_0x3dac5b){const _0x148574=_0x405303;if(this['_sessions']['has'](_0x3ac9b3))return this[_0x148574(0x189)][_0x148574(0x1b8)](_0x3ac9b3);let _0x1eab1d=this['_pendingSessions']['get'](_0x3ac9b3);if(_0x1eab1d)return _0x1eab1d;let _0x40bbd7=this['_createSession'](_0x3ac9b3,_0x3dac5b);this[_0x148574(0x2ac)][_0x148574(0x339)](_0x3ac9b3,_0x40bbd7);try{return await _0x40bbd7;}finally{this[_0x148574(0x2ac)][_0x148574(0x142)](_0x3ac9b3);}}async[_0x405303(0x1a8)](_0xaf51c1,_0x25e85b){const _0x3202fa=_0x405303;let _0x2f185c=await this[_0x3202fa(0x26d)](_0xaf51c1,_0x25e85b),_0x47ead7=this[_0x3202fa(0x165)](_0x2f185c[_0x3202fa(0x11c)][_0x3202fa(0x246)]);this[_0x3202fa(0x125)](_0x47ead7);let _0x571a00=this[_0x3202fa(0x3ef)]['createInstance'](_0x1213e3,_0x2f185c,_0x47ead7[_0x3202fa(0x25f)][_0x3202fa(0x41c)]());return this[_0x3202fa(0x189)][_0x3202fa(0x339)](_0xaf51c1,_0x571a00),this['_sessionChannels']['set'](_0xaf51c1,_0x47ead7[_0x3202fa(0xf1)]),_0x571a00;}[_0x405303(0x34a)](_0x27af25){const _0x31647a=_0x405303;let _0x5a43e0=this['_sessions'][_0x31647a(0x1b8)](_0x27af25),_0x5e766c=this['_sessionChannels'][_0x31647a(0x1b8)](_0x27af25);if(_0x5a43e0&&(this[_0x31647a(0x189)][_0x31647a(0x142)](_0x27af25),this[_0x31647a(0x199)][_0x31647a(0x142)](_0x27af25),_0x5a43e0[_0x31647a(0x2dd)]()),_0x5e766c&&!this['_hasSessionsForEndpoint'](_0x5e766c)){var _0x132109;let _0x52591c=this['_socketChannels'][_0x31647a(0x1b8)](_0x5e766c);_0x52591c==null||(_0x132109=_0x52591c[_0x31647a(0x25f)][_0x31647a(0x22a)]())==null||_0x132109[_0x31647a(0x2dd)]();}}['reconnect'](){const _0xd08a7b=_0x405303;(this['_socketChannels'][_0xd08a7b(0x1db)]?[...this[_0xd08a7b(0x241)][_0xd08a7b(0x1af)]()]:[this[_0xd08a7b(0x165)](void 0x0)])['forEach'](_0x17d5ce=>{const _0x7fb614=_0xd08a7b;_0x17d5ce[_0x7fb614(0x3ec)]=0x0,this['_clearRetryConnectingTimer'](_0x17d5ce),this[_0x7fb614(0x183)](_0x17d5ce);});}[_0x405303(0x36a)](_0x3e7720){const _0x53fe7b=_0x405303;_0x3e7720[_0x53fe7b(0x3b4)]!=null&&(clearTimeout(_0x3e7720[_0x53fe7b(0x3b4)]),_0x3e7720['retryConnectingTimer']=null);}async['_createSocket'](_0x272e0a){const _0x58240c=_0x405303;var _0x1fe212,_0x18a893;let _0x3590df=this[_0x58240c(0x3d2)][_0x58240c(0x112)](_0x51e182),_0x26ca48=(_0x1fe212=(_0x18a893=_0x272e0a[_0x58240c(0x246)])==null?_0x3590df==null?void 0x0:_0x3590df[_0x58240c(0x38c)]:_0x18a893)==null?_0x219b9d:_0x1fe212,_0x3b2896=await this[_0x58240c(0x24a)][_0x58240c(0xf0)](_0x26ca48);return _0x272e0a[_0x58240c(0x31d)]=_0x3b2896,_0x3b2896;}async[_0x405303(0x125)](_0x75e20e){const _0x532155=_0x405303;try{var _0x1fd60c,_0x3315fd;let _0x15ba94=(_0x1fd60c=(_0x3315fd=_0x75e20e['socket$'][_0x532155(0x22a)]())==null?_0x75e20e['candidateSocket']:_0x3315fd)==null?await this[_0x532155(0x2fd)](_0x75e20e):_0x1fd60c;if(_0x15ba94){var _0x1998ba;let _0x226e21=_0x15ba94[_0x532155(0x177)];_0x15ba94[_0x532155(0x177)]=_0x470a45=>(_0x470a45[_0x532155(0x164)]!==_0x11fae4[_0x532155(0x139)]['LEAVE']&&this[_0x532155(0x435)](_0x75e20e),_0x226e21[_0x532155(0x3d9)](_0x15ba94,[_0x470a45])),(_0x1998ba=_0x75e20e[_0x532155(0x2ee)])==null||_0x1998ba[_0x532155(0x3e8)](),_0x75e20e[_0x532155(0x2ee)]=null,_0x75e20e['socketMessageSubscription']=_0x15ba94[_0x532155(0x2ca)]['subscribe'](_0xccc548=>this['_onMessage'](_0x75e20e,_0x15ba94,_0xccc548)),_0x15ba94[_0x532155(0x306)][_0x532155(0x18e)]((0x0,_0x2ba3c8[_0x532155(0x193)])(0x1))[_0x532155(0x120)](_0x784c8a=>this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x532155(0x29c),_0x784c8a)),_0x15ba94[_0x532155(0x3c6)][_0x532155(0x18e)]((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](()=>{const _0x2353e2=_0x532155;this[_0x2353e2(0x1bb)](_0x75e20e,_0x15ba94);}),_0x15ba94[_0x532155(0x3cf)]['pipe']((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](_0x13197e=>{const _0x12d3f6=_0x532155;this[_0x12d3f6(0x3d5)][_0x12d3f6(0x30f)]('[CollaborationSessionService]',_0x12d3f6(0x38e),_0x13197e),this['_onConnectionFailed'](_0x75e20e);});}}catch(_0x27723d){this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x27723d),this['_onConnectionFailed'](_0x75e20e);}}[_0x405303(0x1bb)](_0x89b3f4,_0x264839){const _0x7b3c28=_0x405303;this['_logService'][_0x7b3c28(0x30f)]('[CollaborationSessionService]',_0x7b3c28(0x363)),_0x264839[_0x7b3c28(0x177)]({'cmd':_0x11fae4[_0x7b3c28(0x139)]['HELLO']}),this[_0x7b3c28(0x435)](_0x89b3f4);}[_0x405303(0x1fe)](_0x18f744){const _0x43adc1=_0x405303;_0x18f744[_0x43adc1(0x12e)]=!0x1,_0x18f744[_0x43adc1(0x31d)]=null,this[_0x43adc1(0x343)]['next'](0x2),_0x18f744[_0x43adc1(0x25f)][_0x43adc1(0x131)](null),this[_0x43adc1(0x404)](_0x18f744),this[_0x43adc1(0x264)](_0x18f744);}[_0x405303(0x2df)](_0x16c71e){const _0xc40c92=_0x405303;var _0x2dd34e;this['_onOffline'](_0x16c71e),this[_0xc40c92(0x3c2)](_0x16c71e[_0xc40c92(0xf1)])&&(_0x16c71e['retryCount']<((_0x2dd34e=this[_0xc40c92(0x3d2)][_0xc40c92(0x112)](_0xc40c92(0x113)))==null?0x3:_0x2dd34e)?(this['_collaborationUIEventService'][_0xc40c92(0x31f)]({'id':_0xc40c92(0x294)}),this[_0xc40c92(0x183)](_0x16c71e)):this[_0xc40c92(0x214)][_0xc40c92(0x31f)]({'id':_0xc40c92(0x384)}));}[_0x405303(0x183)](_0xf66d94){const _0x343022=_0x405303;var _0x2326e3;let _0x297856=_0xf66d94['retryCount'],_0x59e9d7=this[_0x343022(0x3d2)][_0x343022(0x112)](_0x51e182),_0x1df45b=_0x297856===0x0?0x0:((_0x2326e3=_0x59e9d7==null?void 0x0:_0x59e9d7[_0x343022(0x3fd)])==null?0x4e20:_0x2326e3)*0x2**_0x297856;_0xf66d94[_0x343022(0x3b4)]=setTimeout(()=>{const _0x52f02b=_0x343022;clearTimeout(_0xf66d94[_0x52f02b(0x3b4)]),_0xf66d94[_0x52f02b(0x3b4)]=null,this[_0x52f02b(0x125)](_0xf66d94);},_0x1df45b),_0xf66d94['retryCount']+=0x1;}async[_0x405303(0x26d)](_0x26443a,_0x1f9237){const _0x147427=_0x405303;return _0x4f435b(_0x26443a,_0x1f9237,await this[_0x147427(0x35a)][_0x147427(0x424)]({'unitId':_0x26443a,'unitType':_0x1f9237}));}[_0x405303(0x2a2)](_0x51b4cb,_0x331562,_0xc36a76){const _0x414ff9=_0x405303;let {cmd:_0x37a9a0}=_0xc36a76;_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x257)]&&!_0x51b4cb[_0x414ff9(0x12e)]&&(_0x331562['memberID']=_0xc36a76['data']['memberID'],_0x51b4cb[_0x414ff9(0x25f)][_0x414ff9(0x131)](_0x331562),this[_0x414ff9(0x343)]['next'](0x3),_0x51b4cb['socketReady']=!0x0,_0x51b4cb[_0x414ff9(0x31d)]=null),_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x3dc)]&&this['_clearTimeoutTimer'](_0x51b4cb),this['_rescheduleHeartbeat'](_0x51b4cb);}[_0x405303(0x3c2)](_0x32d79c){const _0x24765f=_0x405303;return[...this[_0x24765f(0x199)]['values']()]['some'](_0x1e59aa=>_0x1e59aa===_0x32d79c);}[_0x405303(0x165)](_0x227086){const _0x1f8d67=_0x405303;let _0x1c3591=_0x227086==null?'':_0x227086,_0x147b03=this['_socketChannels']['get'](_0x1c3591);if(_0x147b03)return _0x147b03;let _0x565fae={'endpointKey':_0x1c3591,'endpoint':_0x227086,'socket$':new _0x31dca4[(_0x1f8d67(0x31b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1f8d67(0x241)][_0x1f8d67(0x339)](_0x1c3591,_0x565fae),_0x565fae;}['_rescheduleHeartbeat'](_0x2564a){const _0x442b1d=_0x405303;var _0x12f80a;this[_0x442b1d(0x264)](_0x2564a),_0x2564a['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2564a),(_0x12f80a=this[_0x442b1d(0x3d2)]['getConfig'](_0x442b1d(0x2db)))==null?0x7530:_0x12f80a);}['_sendHeartbeat'](_0x5c7143){const _0x1b3fa8=_0x405303;_0x5c7143[_0x1b3fa8(0x25f)][_0x1b3fa8(0x22a)]()['send']({'cmd':_0x11fae4[_0x1b3fa8(0x139)][_0x1b3fa8(0x3dc)]}),this['_waitForHeartbeatResponse'](_0x5c7143);}[_0x405303(0x285)](_0x2d1665){const _0x7e3fc4=_0x405303;var _0xf34594;_0x2d1665[_0x7e3fc4(0x14d)]=setTimeout(()=>this['_onConnectionFailed'](_0x2d1665),(_0xf34594=this[_0x7e3fc4(0x3d2)]['getConfig'](_0x7e3fc4(0x26f)))==null?_0x1dd4cb:_0xf34594);}['_clearHeartbeatTimer'](_0x44a63f){const _0x378461=_0x405303;_0x44a63f[_0x378461(0x2fb)]!=null&&(clearTimeout(_0x44a63f[_0x378461(0x2fb)]),_0x44a63f[_0x378461(0x2fb)]=null);}[_0x405303(0x404)](_0xd3834b){const _0x5eb704=_0x405303;_0xd3834b['timeoutTimer']!=null&&(clearTimeout(_0xd3834b['timeoutTimer']),_0xd3834b[_0x5eb704(0x14d)]=null);}};_0x4c98b9=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x581f35),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x5,_0x562152),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x1e1155))],_0x4c98b9);let _0x58a316=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x3087b9,_0x486a73,_0x1cfe87,_0x4514a3){const _0x33294d=_0x405303;var _0x3fb2b5;super(),this['_injector']=_0x3087b9,this['_collabSessionService']=_0x486a73,this[_0x33294d(0x3d2)]=_0x1cfe87,this[_0x33294d(0x347)]=_0x4514a3,_0x4219eb(this,_0x33294d(0x122),new Map()),_0x4219eb(this,'_entityInit$',new _0x31dca4[(_0x33294d(0x29e))]()),_0x4219eb(this,'entityInit$',this['_entityInit$'][_0x33294d(0x41c)]()),((_0x3fb2b5=this[_0x33294d(0x3d2)][_0x33294d(0x112)](_0x33294d(0x21e)))==null?void 0x0:_0x3fb2b5[_0x33294d(0x227)])!==!0x1&&this[_0x33294d(0x176)]();}[_0x405303(0x309)](){const _0x487a21=_0x405303;super[_0x487a21(0x309)](),this['_entities'][_0x487a21(0x412)](_0x30697c=>_0x30697c[_0x487a21(0x309)]()),this[_0x487a21(0x122)][_0x487a21(0x3c7)]();}[_0x405303(0x15b)](_0x24458c){const _0x5698f5=_0x405303;var _0xe5397d;return(_0xe5397d=this[_0x5698f5(0x122)][_0x5698f5(0x1b8)](_0x24458c))==null?null:_0xe5397d;}['getCollabEntity$'](_0x202985){const _0x570c3f=_0x405303;let _0x5949c7=this[_0x570c3f(0x15b)](_0x202985);return _0x5949c7?(0x0,_0x31dca4['of'])(_0x5949c7):this[_0x570c3f(0x179)][_0x570c3f(0x18e)]((0x0,_0x2ba3c8[_0x570c3f(0x24d)])(_0xadcdf7=>_0xadcdf7['unitID']===_0x202985));}[_0x405303(0x1a5)](_0x3ccbc4){const _0x2101bf=_0x405303;return(0x0,_0x31dca4[_0x2101bf(0x2a8)])(this[_0x2101bf(0x3d7)](_0x3ccbc4)[_0x2101bf(0x18e)]((0x0,_0x2ba3c8[_0x2101bf(0x110)])(()=>void 0x0)));}['_init'](){const _0x3396d0=_0x405303;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_SHEET'])[_0x3396d0(0x18e)]((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x2bfad2=>{const _0x329251=_0x3396d0;let _0x16107c=_0x2bfad2['unit'][_0x329251(0x202)](),_0x55eb3b=await this[_0x329251(0x27b)](_0x16107c,_0x2d0b9f['UniverInstanceType'][_0x329251(0x378)]);this['_entities']['set'](_0x16107c,_0x55eb3b);}),this[_0x3396d0(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)])['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x18e)]((0x0,_0x2ba3c8['filter'])(_0x474f62=>!_0x474f62[_0x3396d0(0x417)][_0x3396d0(0x202)]()[_0x3396d0(0x3ea)]('__')))['subscribe'](async _0x2c819c=>{const _0x428849=_0x3396d0;let _0x1441ad=_0x2c819c['unit'][_0x428849(0x202)](),_0x34080b=await this['_startCollaboration'](_0x1441ad,_0x2d0b9f['UniverInstanceType'][_0x428849(0x13a)]);this[_0x428849(0x122)][_0x428849(0x339)](_0x1441ad,_0x34080b);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x1e25af=>{const _0x28a606=_0x3396d0;let _0x2995d2=_0x1e25af[_0x28a606(0x417)][_0x28a606(0x202)](),_0x1763a3=await this['_startCollaboration'](_0x2995d2,_0x2d0b9f[_0x28a606(0x341)][_0x28a606(0x358)]);this['_entities']['set'](_0x2995d2,_0x1763a3);}),this[_0x3396d0(0x347)][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x333)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8['delay'])(0x10))[_0x3396d0(0x120)](async _0x32af34=>{const _0x25d43e=_0x3396d0;let _0x3e739b=_0x32af34[_0x25d43e(0x417)][_0x25d43e(0x202)](),_0x273298=await this['_startCollaboration'](_0x3e739b,_0x2d0b9f['UniverInstanceType'][_0x25d43e(0x333)]);this[_0x25d43e(0x122)][_0x25d43e(0x339)](_0x3e739b,_0x273298);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE'])['pipe']((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x44bc30=>{const _0xb2c10f=_0x3396d0;let _0x5c6418=_0x44bc30[_0xb2c10f(0x417)][_0xb2c10f(0x202)](),_0x5512a1=await this[_0xb2c10f(0x27b)](_0x5c6418,_0x2d0b9f[_0xb2c10f(0x341)][_0xb2c10f(0x17d)]);this[_0xb2c10f(0x122)][_0xb2c10f(0x339)](_0x5c6418,_0x5512a1);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this['dispose$']),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x14d1a7=>{const _0x528dce=_0x3396d0;let _0x401e24=_0x14d1a7[_0x528dce(0x417)]['getUnitId'](),_0x2e0d8f=await this[_0x528dce(0x27b)](_0x401e24,_0x2d0b9f[_0x528dce(0x341)]['UNIVER_PDF']);this['_entities'][_0x528dce(0x339)](_0x401e24,_0x2e0d8f);}),(0x0,_0x31dca4['merge'])(this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x378)]),this[_0x3396d0(0x347)]['getTypeOfUnitDisposed$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f['UniverInstanceType']['UNIVER_BOARD']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)]))['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]))['subscribe'](_0xfe643b=>{const _0x45067c=_0x3396d0;let _0x26a94b=_0xfe643b[_0x45067c(0x202)](),_0x2c2d44=this[_0x45067c(0x122)][_0x45067c(0x1b8)](_0x26a94b);_0x2c2d44&&(_0x2c2d44[_0x45067c(0x309)](),this[_0x45067c(0x122)][_0x45067c(0x142)](_0x26a94b));});}async[_0x405303(0x27b)](_0x46ed7e,_0xe62859){const _0x30eb9c=_0x405303;let _0x4b758d=await this[_0x30eb9c(0x3df)][_0x30eb9c(0x305)](_0x46ed7e),_0x47c056=this[_0x30eb9c(0x3ef)]['createInstance'](this[_0x30eb9c(0x3f1)](_0xe62859),_0x46ed7e,_0xe62859,_0x4b758d);return await _0x47c056['init'](),this[_0x30eb9c(0x179)][_0x30eb9c(0x131)](_0x47c056),_0x47c056;}[_0x405303(0x3f1)](_0x512316){const _0xcf3ed2=_0x405303;switch(_0x512316){case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x13a)]:return _0x5a7876;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x378)]:return _0x5080f;case _0x2d0b9f['UniverInstanceType'][_0xcf3ed2(0x358)]:return _0x33945f;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x333)]:return _0x4cf531;case _0x2d0b9f['UniverInstanceType']['UNIVER_BASE']:return _0x59b528;case _0x2d0b9f[_0xcf3ed2(0x341)]['UNIVER_PDF']:return _0x514c5a;default:throw Error(_0xcf3ed2(0x271)+_0x512316);}}};_0x58a316=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0x4c98b9)),_0x43549d(0x2,_0x2d0b9f['IConfigService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x217)])],_0x58a316);var _0x556b81=_0x405303(0x2f4),_0x5f209a=_0x405303(0x1b6);let _0x3ed61f=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x28a6a7,_0x94e884){const _0x3a45a3=_0x405303;super(),this[_0x3a45a3(0x347)]=_0x28a6a7,this[_0x3a45a3(0x3d2)]=_0x94e884,this[_0x3a45a3(0x176)]();}[_0x405303(0x176)](){const _0x493955=_0x405303;this['disposeWithMe'](this[_0x493955(0x347)][_0x493955(0x205)][_0x493955(0x120)](()=>{const _0x45573f=_0x493955;var _0x1f4ae9;let _0x420836=this[_0x45573f(0x347)][_0x45573f(0x1bf)](),_0x1d1bf8=(_0x1f4ae9=this['_configService'][_0x45573f(0x112)](_0x45573f(0x2f5)))==null?'Univer':_0x1f4ae9;_0x420836 instanceof _0x2d0b9f['Workbook']&&(_0x1d1bf8=_0x420836['name']),document['title']=_0x1d1bf8;}));}};_0x3ed61f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)])],_0x3ed61f);let _0x29321d=(0x0,_0x2d0b9f['createIdentifier'])(_0x405303(0x33c)),_0x36dd49=class{constructor(_0xac8f33,_0x2fba5a,_0x23fe2d){const _0x4de4d0=_0x405303;this[_0x4de4d0(0x121)]=_0xac8f33,this[_0x4de4d0(0x3d2)]=_0x2fba5a,this[_0x4de4d0(0x347)]=_0x23fe2d;}[_0x405303(0x3fb)](){var _0x2458f4;return(_0x2458f4=this['_getConfig']()['attachment'])==null?{}:_0x2458f4;}async[_0x405303(0x355)](_0x5158b6){const _0x430636=_0x405303;let _0x59a688=this[_0x430636(0x3fb)]();if(_0x279903(_0x5158b6,_0x59a688),_0x59a688['upload'])return _0x59a688[_0x430636(0x2e4)](_0x5158b6);let _0x46af17=await this[_0x430636(0x313)](_0x5158b6);return{'id':_0x46af17,'name':_0x5158b6[_0x430636(0xeb)],'mimeType':_0x5158b6[_0x430636(0x24b)],'size':_0x5158b6[_0x430636(0x1db)],'sourceType':_0x2d0b9f[_0x430636(0x41f)]['UUID'],'source':_0x46af17};}async[_0x405303(0x41a)](_0x5a49e4,_0x43ac90){const _0x42a113=_0x405303;if(_0x43ac90!==_0x2d0b9f[_0x42a113(0x41f)][_0x42a113(0x2f1)])return _0x5a49e4;let _0x478f76=(await this[_0x42a113(0x121)][_0x42a113(0x1b8)](this[_0x42a113(0x18a)]()[_0x42a113(0x1ee)]('{fileID}',_0x5a49e4)))[_0x42a113(0x43d)];if(_0x478f76[_0x42a113(0x2a9)]&&_0x478f76['error'][_0x42a113(0x2c4)]!==_0x11fae4[_0x42a113(0x334)]['OK'])throw _0x478f76['error'];if(!_0x478f76['url'])throw Error(_0x42a113(0xf8));return(0x0,_0x2d0b9f['resolveWithBasePath'])(_0x478f76[_0x42a113(0x204)],this['_getDownloadEndpointURL']());}async[_0x405303(0x313)](_0x47a9fb){const _0x2e671b=_0x405303;let _0x5df086=this[_0x2e671b(0x347)][_0x2e671b(0x1bf)](),_0x131298=_0x5df086==null?void 0x0:_0x5df086[_0x2e671b(0x202)]();if(!_0x131298)throw Error(_0x2e671b(0x1b5));let _0x205da4=new FormData();_0x205da4[_0x2e671b(0x43f)]('file',_0x47a9fb);let _0x132c77=this['_getUploadFileURL']()+_0x2e671b(0x319)+_0x47a9fb[_0x2e671b(0x1db)][_0x2e671b(0x349)]()+_0x2e671b(0x369)+_0x11fae4[_0x2e671b(0x34e)][_0x2e671b(0x3f8)]+_0x2e671b(0x156)+encodeURIComponent(_0x131298),_0x5cd7e3=(await this[_0x2e671b(0x121)][_0x2e671b(0x3f5)](_0x132c77,{'body':_0x205da4}))[_0x2e671b(0x43d)][_0x2e671b(0x2d1)];if(typeof _0x5cd7e3!='string'||!_0x5cd7e3)throw Error(_0x2e671b(0x13d));return _0x5cd7e3;}[_0x405303(0x27f)](){const _0x124773=_0x405303;var _0x14f251;return(_0x14f251=this[_0x124773(0x1ac)]()['uploadFileServerUrl'])==null?_0x124773(0x234):_0x14f251;}[_0x405303(0x18a)](){const _0x12c195=_0x405303;var _0x357ac4;return(_0x357ac4=this[_0x12c195(0x1ac)]()[_0x12c195(0x338)])==null?_0x12c195(0x441):_0x357ac4;}[_0x405303(0x33f)](){const _0x3ec3c1=_0x405303;var _0x426217;let _0x50d5d0=this[_0x3ec3c1(0x1ac)]();return _0x50d5d0[_0x3ec3c1(0x3d3)]?_0x50d5d0[_0x3ec3c1(0x3d3)]:typeof location<'u'?location[_0x3ec3c1(0x1cf)]:(_0x426217=_0x50d5d0['uploadFileServerUrl'])==null?'':_0x426217;}['_getConfig'](){const _0x246a65=_0x405303;var _0x664168;return(_0x664168=this[_0x246a65(0x3d2)]['getConfig'](_0x246a65(0x21e)))==null?{}:_0x664168;}};_0x36dd49=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x36dd49);function _0x279903(_0x345a51,_0x1037a2){const _0x37a8a2=_0x405303;var _0x3b6346;if(_0x1037a2['maxSize']!=null&&_0x345a51[_0x37a8a2(0x1db)]>_0x1037a2[_0x37a8a2(0x2be)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3b6346=_0x1037a2[_0x37a8a2(0x368)])!=null&&_0x3b6346[_0x37a8a2(0x182)]&&!_0x1037a2[_0x37a8a2(0x368)][_0x37a8a2(0x231)](_0x188ed0=>_0x345a51[_0x37a8a2(0x24b)]===_0x188ed0||_0x345a51[_0x37a8a2(0xeb)][_0x37a8a2(0x3f3)](_0x188ed0)||_0x188ed0[_0x37a8a2(0x3f3)]('/*')&&_0x345a51[_0x37a8a2(0x24b)][_0x37a8a2(0x3ea)](_0x188ed0[_0x37a8a2(0x33d)](0x0,-0x1))))throw Error(_0x37a8a2(0x239));}let _0x1eed0d=class{constructor(_0x373545,_0x55b40c,_0x42d377){const _0x53be21=_0x405303;this[_0x53be21(0x3d2)]=_0x373545,this['_httpService']=_0x55b40c,this[_0x53be21(0x11e)]=_0x42d377,this[_0x53be21(0x3c9)]();}['init'](){const _0x2ef415=_0x405303;this[_0x2ef415(0x121)][_0x2ef415(0x42d)]({'priority':0x1,'interceptor':(_0x3ef600,_0x5d8413)=>_0x5d8413(_0x3ef600)[_0x2ef415(0x18e)]((0x0,_0x31dca4[_0x2ef415(0x367)])(async _0x17ea83=>{const _0x2629d1=_0x2ef415;let _0x2e4da4=_0x17ea83;if(_0x2e4da4[_0x2629d1(0x1b9)]===0x191){if(typeof window>'u')throw Error(_0x2629d1(0x2b9));if(window[_0x2629d1(0x401)](this['localeService']['t'](_0x2629d1(0x410)))){let _0xf155c0=window[_0x2629d1(0x443)](window['location'][_0x2629d1(0x111)]);window[_0x2629d1(0x354)]['href']=this[_0x2629d1(0x1de)]()+_0x2629d1(0x377)+_0xf155c0;}}return _0x2e4da4;}))});}[_0x405303(0x1de)](){const _0x4790a=_0x405303;var _0x190950;let _0x4610b2=this['_configService']['getConfig'](_0x51e182);return(_0x190950=_0x4610b2==null?void 0x0:_0x4610b2[_0x4790a(0x2e1)])==null?'/universer-api/oidc/authpage':_0x190950;}};_0x1eed0d=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IConfigService']),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)]))],_0x1eed0d);let _0x4e73d2=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x13a52d,_0x1550c6){const _0x3578b4=_0x405303;super(),this[_0x3578b4(0x2a0)]=_0x13a52d,this[_0x3578b4(0x3d2)]=_0x1550c6,_0x4219eb(this,'_cfgEnableObjInherit',!0x1),this[_0x3578b4(0x1f6)]();}['_initMergeInterceptor'](){const _0x2afbad=_0x405303;let _0x167ea3=this;this['disposeWithMe'](this[_0x2afbad(0x2a0)][_0x2afbad(0x42d)]({'priority':0x3e7,'interceptor':(0x0,_0xc90c47[_0x2afbad(0x40f)])({'isMatch'(_0x487402){const _0x46de30=_0x2afbad;var _0x4a9d48;if(_0x487402['method']===_0x46de30(0x427)&&(_0x4a9d48=_0x487402[_0x46de30(0x337)])!=null&&_0x4a9d48['body']){let {objectID:_0x4afb88,objectType:_0x1bee40}=_0x487402[_0x46de30(0x337)][_0x46de30(0x43d)]||{};if(!_0x4afb88||_0x1bee40===void 0x0)return!0x1;let _0x3ec2b4=_0x167ea3[_0x46de30(0x2a1)]()+'/'+_0x1bee40+'/object/'+_0x4afb88+_0x46de30(0x25c);if(_0x487402[_0x46de30(0x204)]===_0x3ec2b4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc11797){const _0x5469a4=_0x2afbad;var _0x1e1dfd;return(_0x1e1dfd=_0xc11797[_0x5469a4(0x337)])==null?void 0x0:_0x1e1dfd['body'];},'mergeParamsToRequest'(_0x40aebf,_0x1ce57e){const _0xf5d721=_0x2afbad;let _0x3f048f=_0x167ea3[_0xf5d721(0x2a1)]()+_0xf5d721(0x1d8),_0x410851=_0x40aebf[_0xf5d721(0x219)]((_0xe81d16,_0xf6636f)=>{const _0xb4bad1=_0xf5d721;let {unitID:_0x2f9f70,objectID:_0x4fb01b,objectType:_0x2556bd,actions:_0x44c3b6}=_0xf6636f;return _0xe81d16[_0x2f9f70]||(_0xe81d16[_0x2f9f70]={}),_0xe81d16[_0x2f9f70][_0x4fb01b]||(_0xe81d16[_0x2f9f70][_0x4fb01b]={'objectID':_0x4fb01b,'objectType':_0x2556bd,'actions':[]}),_0xe81d16[_0x2f9f70][_0x4fb01b][_0xb4bad1(0x208)]['push'](..._0x44c3b6),_0xe81d16;},{}),_0x1c9903=[];for(let _0x5bc6cc in _0x410851)for(let _0x8caccd in _0x410851[_0x5bc6cc]){let {actions:_0x1a569f,objectType:_0x2a7708}=_0x410851[_0x5bc6cc][_0x8caccd],_0x4206e3=[...new Set(_0x1a569f)];_0x1c9903[_0xf5d721(0x1f4)]({'unitID':_0x5bc6cc,'objectID':_0x8caccd,'objectType':_0x2a7708,'actions':_0x4206e3});}return new _0xc90c47[(_0xf5d721(0x3a4))](_0xf5d721(0x427),_0x3f048f,{'headers':_0x1ce57e['headers'],'withCredentials':_0x1ce57e[_0xf5d721(0x2bc)],'responseType':_0x1ce57e[_0xf5d721(0x2a3)],'body':{'requests':_0x1c9903}});}},{'distributeResult'(_0x2710c2,_0x4bc7b6){let {objectActions:_0x564ed4}=_0x2710c2;return _0x4bc7b6['map'](_0x105bb5=>{const _0x379a16=_0x4e8d;let {unitID:_0x227dbe,objectID:_0x42ab2d,actions:_0x43bee8}=_0x105bb5,_0x5b67c9=_0x564ed4['find'](_0x4eedf0=>_0x4eedf0[_0x379a16(0x1c9)]===_0x227dbe&&_0x4eedf0[_0x379a16(0x407)]===_0x42ab2d);return{'config':_0x105bb5,'result':{'actions':_0x43bee8['map'](_0x11142c=>_0x5b67c9==null?void 0x0:_0x5b67c9['actions']['find'](_0x254934=>_0x254934[_0x379a16(0x146)]===_0x11142c))[_0x379a16(0x24d)](_0x93ba82=>!!_0x93ba82),'error':_0x2710c2['error']}};});}})}));}[_0x405303(0x2a1)](){const _0x4accd2=_0x405303;var _0x2a3714;let _0x42ee66=this[_0x4accd2(0x3d2)][_0x4accd2(0x112)](_0x51e182);return(_0x2a3714=_0x42ee66==null?void 0x0:_0x42ee66['authzUrl'])==null?_0x4accd2(0x35e):_0x2a3714;}async[_0x405303(0x1ea)](_0x43b16a){const _0x2b2a2c=_0x405303;let _0x5b1b81=this[_0x2b2a2c(0x2a1)]()+'/'+_0x43b16a['objectType']+_0x2b2a2c(0xf3);return(await this[_0x2b2a2c(0x2a0)]['post'](_0x5b1b81,{'body':_0x43b16a}))['body'][_0x2b2a2c(0x407)]||'';}async[_0x405303(0x269)](_0x5c8762){const _0x3ae42c=_0x405303;let _0x293df6=this[_0x3ae42c(0x2a1)]()+_0x3ae42c(0x253);return(await this[_0x3ae42c(0x2a0)][_0x3ae42c(0x3f5)](_0x293df6,{'body':_0x5c8762}))['body'][_0x3ae42c(0x18c)];}async[_0x405303(0x1d5)](_0x18406f){const _0x44ac53=_0x405303;var _0x2a4fec;let _0x3d4eed=this[_0x44ac53(0x2a1)]()+'/'+_0x18406f['objectType']+_0x44ac53(0x3ad)+_0x18406f[_0x44ac53(0x407)],_0x1203e6=await this['_HTTPService'][_0x44ac53(0x16c)](_0x3d4eed,{'body':_0x18406f});if((_0x1203e6==null||(_0x2a4fec=_0x1203e6[_0x44ac53(0x43d)])==null||(_0x2a4fec=_0x2a4fec[_0x44ac53(0x2a9)])==null?void 0x0:_0x2a4fec[_0x44ac53(0x2c4)])!==0x1)throw Error(_0x44ac53(0x1ef));}async[_0x405303(0x3ac)](_0x22ed5e){const _0x12a45e=_0x405303;let _0x5f4e4f=this['_getAPIPrefixPath']()+'/'+_0x22ed5e[_0x12a45e(0x14c)]+_0x12a45e(0x3ad)+_0x22ed5e[_0x12a45e(0x407)]+_0x12a45e(0x25c);return(await this[_0x12a45e(0x2a0)][_0x12a45e(0x3f5)](_0x5f4e4f,{'body':_0x22ed5e}))[_0x12a45e(0x43d)]['actions'];}async[_0x405303(0x385)](_0x5a56e3){const _0x3466cf=_0x405303;let _0x26da1d=this[_0x3466cf(0x2a1)]()+_0x3466cf(0x1d8);return(await this[_0x3466cf(0x2a0)][_0x3466cf(0x3f5)](_0x26da1d,{'body':{'requests':_0x5a56e3}}))['body']['objectActions'];}async[_0x405303(0x434)](_0x4bc5e0){const _0x1db535=_0x405303;let _0x2438a6=this[_0x1db535(0x2a1)]()+'/'+_0x4bc5e0[_0x1db535(0x14c)]+_0x1db535(0x292),_0x56b61b=await this[_0x1db535(0x2a0)][_0x1db535(0x3f5)](_0x2438a6,{'body':_0x4bc5e0});return{'roles':_0x56b61b['body'][_0x1db535(0x418)],'actions':_0x56b61b[_0x1db535(0x43d)][_0x1db535(0x208)]};}async['deleteCollaborator'](_0x47a67f){const _0x3cb5ec=_0x405303;let _0x3efba8=this[_0x3cb5ec(0x2a1)]()+_0x3cb5ec(0x2f7);await this['_HTTPService'][_0x3cb5ec(0x142)](_0x3efba8,{'params':{'collaboratorID':_0x47a67f[_0x3cb5ec(0x26c)],'objectID':_0x47a67f[_0x3cb5ec(0x407)],'unitID':_0x47a67f['unitID']}});}async['updateCollaborator'](_0x1df905){const _0x2d74d1=_0x405303;let _0x580712=this[_0x2d74d1(0x2a1)]()+_0x2d74d1(0x2f7);await this[_0x2d74d1(0x2a0)][_0x2d74d1(0x32a)](_0x580712,{'body':_0x1df905});}async['createCollaborator'](_0x59e280){const _0x27c205=_0x405303;let _0x4578b1=this[_0x27c205(0x2a1)]()+'/collaborator';await this[_0x27c205(0x2a0)][_0x27c205(0x3f5)](_0x4578b1,{'body':_0x59e280});}async[_0x405303(0x235)](_0x1a1db8){const _0x2f5ab2=_0x405303;var _0x48daaa;let _0x47f2ed=this[_0x2f5ab2(0x2a1)]()+'/collaborator',_0x2c0901=await this['_HTTPService']['get'](_0x47f2ed,{'params':{'objectID':_0x1a1db8[_0x2f5ab2(0x407)],'unitID':_0x1a1db8[_0x2f5ab2(0x1c9)]}});return this['setCfgEnableObjInherit']((_0x48daaa=_0x2c0901[_0x2f5ab2(0x43d)]['cfgEnableObjInherit'])!=null&&_0x48daaa),_0x2c0901['body']['collaborators'];}async[_0x405303(0x2c8)](_0x19644f){const _0x4436a5=_0x405303;let _0xca0352=this[_0x4436a5(0x2a1)]()+'/collaborator';await this['_HTTPService'][_0x4436a5(0x16c)](_0xca0352,{'body':_0x19644f});}[_0x405303(0x25b)](_0x27a8a2){const _0x2247e8=_0x405303;this[_0x2247e8(0x3a8)]=_0x27a8a2;}[_0x405303(0xf7)](){const _0xa0be02=_0x405303;return this[_0xa0be02(0x3a8)];}};_0x4e73d2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)]))],_0x4e73d2);function _0x493704(_0x475ff5){const _0x22af74=_0x405303;return _0x475ff5 instanceof Uint8Array||ArrayBuffer[_0x22af74(0x397)](_0x475ff5)&&_0x475ff5[_0x22af74(0x211)][_0x22af74(0xeb)]==='Uint8Array'&&_0x22af74(0x361)in _0x475ff5&&_0x475ff5[_0x22af74(0x361)]===0x1;}function _0x5152b7(_0x141598){const _0x48a75f=_0x405303;if(typeof _0x141598!=_0x48a75f(0x416))throw TypeError(_0x48a75f(0x21c)+typeof _0x141598);if(!Number['isSafeInteger'](_0x141598)||_0x141598<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x141598);}function _0x59702c(_0x12701c,_0x5cd13f,_0x3ba123=''){const _0x4e030c=_0x405303;let _0x2dac9c=_0x493704(_0x12701c),_0x5a54e6=_0x12701c==null?void 0x0:_0x12701c[_0x4e030c(0x182)],_0x4d1b8e=_0x5cd13f!==void 0x0;if(!_0x2dac9c||_0x4d1b8e&&_0x5a54e6!==_0x5cd13f){let _0x5022ce=_0x3ba123&&'\x22'+_0x3ba123+'\x22\x20',_0x3da67a=_0x4d1b8e?_0x4e030c(0x17c)+_0x5cd13f:'',_0x1e5767=_0x2dac9c?_0x4e030c(0x198)+_0x5a54e6:'type='+typeof _0x12701c,_0x1b5bc6=_0x5022ce+_0x4e030c(0x436)+_0x3da67a+_0x4e030c(0x2e0)+_0x1e5767;throw _0x2dac9c?RangeError(_0x1b5bc6):TypeError(_0x1b5bc6);}return _0x12701c;}function _0x1e90c9(_0x22082b){const _0x3aa64b=_0x405303;return new Uint32Array(_0x22082b[_0x3aa64b(0x432)],_0x22082b[_0x3aa64b(0x11f)],Math[_0x3aa64b(0x2ff)](_0x22082b['byteLength']/0x4));}function _0x1156c1(..._0xe71405){const _0x387036=_0x405303;for(let _0x443b2e=0x0;_0x443b2e<_0xe71405[_0x387036(0x182)];_0x443b2e++)_0xe71405[_0x443b2e][_0x387036(0x2e9)](0x0);}let _0x5f5b9f=new Uint8Array(new Uint32Array([0x11223344])[_0x405303(0x432)])[0x0]===0x44,_0x5aead7=_0x2c9a94=>_0x2c9a94<<0x18&0xff000000|_0x2c9a94<<0x8&0xff0000|_0x2c9a94>>>0x8&0xff00|_0x2c9a94>>>0x18&0xff,_0x3a82af=_0x5f5b9f?_0x599a72=>_0x599a72:_0x2bd2a0=>{for(let _0x36ce51=0x0;_0x36ce51<_0x2bd2a0['length'];_0x36ce51++)_0x2bd2a0[_0x36ce51]=_0x5aead7(_0x2bd2a0[_0x36ce51]);return _0x2bd2a0;};function _0x13ef42(_0x42f8d6){const _0x4f1cb3=_0x405303;if(typeof _0x42f8d6!=_0x4f1cb3(0x163))throw TypeError(_0x4f1cb3(0x27e));return new Uint8Array(new TextEncoder()[_0x4f1cb3(0x23a)](_0x42f8d6));}function _0xbdccf3(_0x12ecfa,_0x391eef){const _0x4d7e35=_0x405303;return!_0x12ecfa['byteLength']||!_0x391eef[_0x4d7e35(0x137)]?!0x1:_0x12ecfa[_0x4d7e35(0x432)]===_0x391eef['buffer']&&_0x12ecfa[_0x4d7e35(0x11f)]<_0x391eef[_0x4d7e35(0x11f)]+_0x391eef[_0x4d7e35(0x137)]&&_0x391eef[_0x4d7e35(0x11f)]<_0x12ecfa['byteOffset']+_0x12ecfa[_0x4d7e35(0x137)];}function _0x11aacb(_0x5d6d88,_0x582d98){const _0x4f4cf3=_0x405303;if(_0xbdccf3(_0x5d6d88,_0x582d98)&&_0x5d6d88[_0x4f4cf3(0x11f)]<_0x582d98['byteOffset'])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x1d87d1(..._0x95fd31){const _0x4618d9=_0x405303;let _0x43dc4c=0x0;for(let _0x1e14cd=0x0;_0x1e14cd<_0x95fd31[_0x4618d9(0x182)];_0x1e14cd++){let _0x168d9f=_0x95fd31[_0x1e14cd];_0x59702c(_0x168d9f),_0x43dc4c+=_0x168d9f['length'];}let _0x3017ef=new Uint8Array(_0x43dc4c);for(let _0x40b6ad=0x0,_0x15e1ef=0x0;_0x40b6ad<_0x95fd31['length'];_0x40b6ad++){let _0x3917d5=_0x95fd31[_0x40b6ad];_0x3017ef[_0x4618d9(0x339)](_0x3917d5,_0x15e1ef),_0x15e1ef+=_0x3917d5[_0x4618d9(0x182)];}return _0x3017ef;}let _0x238229=(_0x2f2670,_0x21b2b5)=>{const _0x205c93=_0x405303;function _0x389240(_0x2771b2,..._0x442b54){const _0x1c4b7d=_0x4e8d;if(_0x59702c(_0x2771b2,void 0x0,_0x1c4b7d(0x22f)),_0x2f2670[_0x1c4b7d(0x36b)]!==void 0x0){let _0x5bc1c8=_0x442b54[0x0];_0x59702c(_0x5bc1c8,_0x2f2670[_0x1c4b7d(0x14b)]?void 0x0:_0x2f2670['nonceLength'],'nonce');}let _0x43cc0f=_0x2f2670[_0x1c4b7d(0x263)];_0x43cc0f&&_0x442b54[0x1]!==void 0x0&&_0x59702c(_0x442b54[0x1],void 0x0,_0x1c4b7d(0x248));let _0x3d99b3=_0x21b2b5(_0x2771b2,..._0x442b54),_0x4f5383=(_0x3aec3d,_0x3fab61)=>{const _0x5a385e=_0x1c4b7d;if(_0x3fab61!==void 0x0){if(_0x3aec3d!==0x2)throw Error(_0x5a385e(0x3ee));_0x59702c(_0x3fab61,void 0x0,_0x5a385e(0x1dc));}},_0x2ff6c8=!0x1;return{'encrypt'(_0x1aa094,_0x6d0e85){const _0x26d5e5=_0x1c4b7d;if(_0x2ff6c8)throw Error(_0x26d5e5(0x2c2));return _0x2ff6c8=!0x0,_0x59702c(_0x1aa094),_0x4f5383(_0x3d99b3[_0x26d5e5(0x17f)]['length'],_0x6d0e85),_0x3d99b3[_0x26d5e5(0x17f)](_0x1aa094,_0x6d0e85);},'decrypt'(_0x88342e,_0x1598cf){const _0xc6e919=_0x1c4b7d;if(_0x59702c(_0x88342e),_0x43cc0f&&_0x88342e[_0xc6e919(0x182)]<_0x43cc0f)throw Error(_0xc6e919(0x2d3)+_0x43cc0f);return _0x4f5383(_0x3d99b3[_0xc6e919(0x166)]['length'],_0x1598cf),_0x3d99b3['decrypt'](_0x88342e,_0x1598cf);}};}return Object[_0x205c93(0x230)](_0x389240,_0x2f2670),_0x389240;};function _0x573d2a(_0x2f533c,_0x202637,_0x4dc211=!0x0){const _0x2c2618=_0x405303;if(_0x202637===void 0x0)return new Uint8Array(_0x2f533c);if(_0x59702c(_0x202637,void 0x0,_0x2c2618(0x1dc)),_0x202637[_0x2c2618(0x182)]!==_0x2f533c)throw Error(_0x2c2618(0x2e3)+_0x2f533c+_0x2c2618(0x2ba)+_0x202637[_0x2c2618(0x182)]);if(_0x4dc211&&!_0x4c068f(_0x202637))throw Error(_0x2c2618(0x196));return _0x202637;}function _0x4c068f(_0x3e8dc7){const _0xd62be2=_0x405303;return _0x3e8dc7[_0xd62be2(0x11f)]%0x4==0x0;}function _0x18912e(_0x3511c3){const _0x5d7d32=_0x405303;return Uint8Array[_0x5d7d32(0x154)](_0x59702c(_0x3511c3));}function _0x2a8c18(_0x198711=0x20){const _0x14868a=_0x405303;_0x5152b7(_0x198711);let _0x481828=typeof globalThis=='object'?globalThis[_0x14868a(0x3e6)]:null;if(typeof(_0x481828==null?void 0x0:_0x481828['getRandomValues'])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');return _0x481828['getRandomValues'](new Uint8Array(_0x198711));}function _0x515be9(_0x17ca2a){const _0x526dad=_0x405303;if(![0x10,0x18,0x20][_0x526dad(0x281)](_0x17ca2a[_0x526dad(0x182)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x17ca2a[_0x526dad(0x182)]);}function _0x45f5cf(_0x447fe8){return _0x447fe8<<0x1^0x11b&-(_0x447fe8>>0x7);}function _0x215908(_0x4a0195,_0x1b385f){let _0x482454=0x0;for(;_0x1b385f>0x0;_0x1b385f>>=0x1)_0x482454^=_0x4a0195&-(_0x1b385f&0x1),_0x4a0195=_0x45f5cf(_0x4a0195);return _0x482454;}let _0x1b2648=((()=>{let _0x2ad210=new Uint8Array(0x100);for(let _0x13c247=0x0,_0xfc8b48=0x1;_0x13c247<0x100;_0x13c247++,_0xfc8b48^=_0x45f5cf(_0xfc8b48))_0x2ad210[_0x13c247]=_0xfc8b48;let _0x5766f2=new Uint8Array(0x100);_0x5766f2[0x0]=0x63;for(let _0x564d09=0x0;_0x564d09<0xff;_0x564d09++){let _0x5ee049=_0x2ad210[0xff-_0x564d09];_0x5ee049|=_0x5ee049<<0x8,_0x5766f2[_0x2ad210[_0x564d09]]=(_0x5ee049^_0x5ee049>>0x4^_0x5ee049>>0x5^_0x5ee049>>0x6^_0x5ee049>>0x7^0x63)&0xff;}return _0x1156c1(_0x2ad210),_0x5766f2;})()),_0x1e65f0=_0x1b2648['map']((_0x292b05,_0x15b3da)=>_0x1b2648[_0x405303(0x398)](_0x15b3da)),_0x27c87d=_0x5592c2=>_0x5592c2<<0x18|_0x5592c2>>>0x8,_0x512129=_0x5b046c=>_0x5b046c<<0x8|_0x5b046c>>>0x18;function _0x452331(_0x580bc3,_0x1c5500){const _0x137f9b=_0x405303;if(_0x580bc3['length']!==0x100)throw Error(_0x137f9b(0x103));let _0xeae52d=new Uint32Array(0x100)[_0x137f9b(0x110)]((_0x440d03,_0x4e3ea3)=>_0x1c5500(_0x580bc3[_0x4e3ea3])),_0x20d2a6=_0xeae52d[_0x137f9b(0x110)](_0x512129),_0x16f699=_0x20d2a6[_0x137f9b(0x110)](_0x512129),_0x332047=_0x16f699['map'](_0x512129),_0x7f872c=new Uint32Array(0x100*0x100),_0x486689=new Uint32Array(0x100*0x100),_0x9d904f=new Uint16Array(0x100*0x100);for(let _0x3a3fd6=0x0;_0x3a3fd6<0x100;_0x3a3fd6++)for(let _0x2445e0=0x0;_0x2445e0<0x100;_0x2445e0++){let _0x203e4f=_0x3a3fd6*0x100+_0x2445e0;_0x7f872c[_0x203e4f]=_0xeae52d[_0x3a3fd6]^_0x20d2a6[_0x2445e0],_0x486689[_0x203e4f]=_0x16f699[_0x3a3fd6]^_0x332047[_0x2445e0],_0x9d904f[_0x203e4f]=_0x580bc3[_0x3a3fd6]<<0x8|_0x580bc3[_0x2445e0];}return{'sbox':_0x580bc3,'sbox2':_0x9d904f,'T0':_0xeae52d,'T1':_0x20d2a6,'T2':_0x16f699,'T3':_0x332047,'T01':_0x7f872c,'T23':_0x486689};}let _0x3831a7=_0x452331(_0x1b2648,_0x2a015d=>_0x215908(_0x2a015d,0x3)<<0x18|_0x2a015d<<0x10|_0x2a015d<<0x8|_0x215908(_0x2a015d,0x2)),_0xb1103a=_0x452331(_0x1e65f0,_0xf47d76=>_0x215908(_0xf47d76,0xb)<<0x18|_0x215908(_0xf47d76,0xd)<<0x10|_0x215908(_0xf47d76,0x9)<<0x8|_0x215908(_0xf47d76,0xe)),_0x2e86cc=((()=>{let _0x4085c8=new Uint8Array(0x10);for(let _0x4804d3=0x0,_0x56951f=0x1;_0x4804d3<0x10;_0x4804d3++,_0x56951f=_0x45f5cf(_0x56951f))_0x4085c8[_0x4804d3]=_0x56951f;return _0x4085c8;})());function _0x4b2b62(_0x38222a){const _0x2cf751=_0x405303;_0x59702c(_0x38222a);let _0x13f4bb=_0x38222a[_0x2cf751(0x182)];_0x515be9(_0x38222a);let {sbox2:_0x4af25a}=_0x3831a7,_0x9da2fa=[];(!_0x5f5b9f||!_0x4c068f(_0x38222a))&&_0x9da2fa[_0x2cf751(0x1f4)](_0x38222a=_0x18912e(_0x38222a));let _0x4ed7b0=_0x3a82af(_0x1e90c9(_0x38222a)),_0x5eb3fc=_0x4ed7b0[_0x2cf751(0x182)],_0x18900a=_0x3b16b0=>_0x52196b(_0x4af25a,_0x3b16b0,_0x3b16b0,_0x3b16b0,_0x3b16b0),_0x2009b6=new Uint32Array(_0x13f4bb+0x1c);_0x2009b6[_0x2cf751(0x339)](_0x4ed7b0);for(let _0x1aa4e4=_0x5eb3fc;_0x1aa4e4<_0x2009b6[_0x2cf751(0x182)];_0x1aa4e4++){let _0x4b7e9c=_0x2009b6[_0x1aa4e4-0x1];_0x1aa4e4%_0x5eb3fc===0x0?_0x4b7e9c=_0x18900a(_0x27c87d(_0x4b7e9c))^_0x2e86cc[_0x1aa4e4/_0x5eb3fc-0x1]:_0x5eb3fc>0x6&&_0x1aa4e4%_0x5eb3fc===0x4&&(_0x4b7e9c=_0x18900a(_0x4b7e9c)),_0x2009b6[_0x1aa4e4]=_0x2009b6[_0x1aa4e4-_0x5eb3fc]^_0x4b7e9c;}return _0x1156c1(..._0x9da2fa),_0x2009b6;}function _0x26f973(_0x5ec72e){const _0x4721b9=_0x405303;let _0x29bd55=_0x4b2b62(_0x5ec72e),_0x3fddb1=_0x29bd55[_0x4721b9(0x33d)](),_0x3c89f6=_0x29bd55[_0x4721b9(0x182)],{sbox2:_0x426fca}=_0x3831a7,{T0:_0x31e6c5,T1:_0x3bcc48,T2:_0x27230e,T3:_0x42c721}=_0xb1103a;for(let _0x353bfd=0x0;_0x353bfd<_0x3c89f6;_0x353bfd+=0x4)for(let _0x218ee6=0x0;_0x218ee6<0x4;_0x218ee6++)_0x3fddb1[_0x353bfd+_0x218ee6]=_0x29bd55[_0x3c89f6-_0x353bfd-0x4+_0x218ee6];_0x1156c1(_0x29bd55);for(let _0x54252c=0x4;_0x54252c<_0x3c89f6-0x4;_0x54252c++){let _0x44cdca=_0x3fddb1[_0x54252c],_0x4a51de=_0x52196b(_0x426fca,_0x44cdca,_0x44cdca,_0x44cdca,_0x44cdca);_0x3fddb1[_0x54252c]=_0x31e6c5[_0x4a51de&0xff]^_0x3bcc48[_0x4a51de>>>0x8&0xff]^_0x27230e[_0x4a51de>>>0x10&0xff]^_0x42c721[_0x4a51de>>>0x18];}return _0x3fddb1;}function _0x4b6912(_0x2bb1e0,_0x1bfda6,_0x29fe75,_0x5e8e9b,_0x5e124c,_0x171d6a){return _0x2bb1e0[_0x29fe75<<0x8&0xff00|_0x5e8e9b>>>0x8&0xff]^_0x1bfda6[_0x5e124c>>>0x8&0xff00|_0x171d6a>>>0x18&0xff];}function _0x52196b(_0x2e006b,_0x4a78ea,_0x383870,_0x4f1a5c,_0x3e013f){return _0x2e006b[_0x4a78ea&0xff|_0x383870&0xff00]|_0x2e006b[_0x4f1a5c>>>0x10&0xff|_0x3e013f>>>0x10&0xff00]<<0x10;}function _0x5b1151(_0x3880f3,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08){let {sbox2:_0x24283c,T01:_0xa55837,T23:_0x3b3457}=_0x3831a7,_0x2b8c5d=0x0;_0x567c4d^=_0x3880f3[_0x2b8c5d++],_0x52fd3f^=_0x3880f3[_0x2b8c5d++],_0x26b436^=_0x3880f3[_0x2b8c5d++],_0x277e08^=_0x3880f3[_0x2b8c5d++];let _0x1cc748=_0x3880f3['length']/0x4-0x2;for(let _0xbcbacf=0x0;_0xbcbacf<_0x1cc748;_0xbcbacf++){let _0x1c118a=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),_0x55ad7d=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),_0x43560b=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),_0x1ec1ca=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436);_0x567c4d=_0x1c118a,_0x52fd3f=_0x55ad7d,_0x26b436=_0x43560b,_0x277e08=_0x1ec1ca;}return{'s0':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),'s1':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),'s2':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),'s3':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436)};}function _0x12f90a(_0x511ac7,_0x1d64d3,_0x5b4761,_0x3b17c3,_0x3259a0){const _0x3613bc=_0x405303;let {sbox2:_0x56ce50,T01:_0x2b5e26,T23:_0xf82403}=_0xb1103a,_0x585712=0x0;_0x1d64d3^=_0x511ac7[_0x585712++],_0x5b4761^=_0x511ac7[_0x585712++],_0x3b17c3^=_0x511ac7[_0x585712++],_0x3259a0^=_0x511ac7[_0x585712++];let _0x223618=_0x511ac7[_0x3613bc(0x182)]/0x4-0x2;for(let _0x44cd55=0x0;_0x44cd55<_0x223618;_0x44cd55++){let _0x4f1340=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),_0x104809=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),_0x41d547=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),_0x2d4c06=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3);_0x1d64d3=_0x4f1340,_0x5b4761=_0x104809,_0x3b17c3=_0x41d547,_0x3259a0=_0x2d4c06;}return{'s0':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),'s1':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),'s2':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),'s3':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3)};}function _0x13498e(_0x278df0){const _0x5e9a29=_0x405303;if(_0x59702c(_0x278df0),_0x278df0[_0x5e9a29(0x182)]%0x10!=0x0)throw Error(_0x5e9a29(0x15c));}function _0x3ac818(_0x1e631d,_0x31e051,_0x5b2366){const _0x19c883=_0x405303;_0x59702c(_0x1e631d);let _0x457338=_0x1e631d[_0x19c883(0x182)],_0x1f522b=_0x457338%0x10;if(!_0x31e051&&_0x1f522b!==0x0)throw Error(_0x19c883(0x3bf));if(_0x31e051){let _0x6517b2=0x10-_0x1f522b;_0x6517b2||(_0x6517b2=0x10),_0x457338+=_0x6517b2;}_0x5b2366=_0x573d2a(_0x457338,_0x5b2366),_0x11aacb(_0x1e631d,_0x5b2366),(!_0x5f5b9f||!_0x4c068f(_0x1e631d))&&(_0x1e631d=_0x18912e(_0x1e631d));let _0x17a7e6=_0x1e90c9(_0x1e631d);return _0x3a82af(_0x17a7e6),{'b':_0x17a7e6,'o':_0x1e90c9(_0x5b2366),'out':_0x5b2366};}function _0xf6b642(_0x422f52,_0x8a1856){const _0x4607bc=_0x405303;if(!_0x8a1856)return _0x422f52;let _0x1e2dc0=_0x422f52['length'];if(_0x1e2dc0===0x0)throw Error(_0x4607bc(0x1e1));let _0x40e675=_0x422f52[_0x1e2dc0-0x1],_0x1148d7=0x1;_0x1148d7&=_0x40e675-0x1>>>0x1f^0x1,_0x1148d7&=0x10-_0x40e675>>>0x1f^0x1;for(let _0x517cac=0x0;_0x517cac<0x10;_0x517cac++){let _0x4aa904=_0x517cac-_0x40e675>>>0x1f,_0x5aee29=+((_0x422f52[_0x1e2dc0-0x1-_0x517cac]^_0x40e675)===0x0);_0x1148d7&=_0x5aee29|_0x4aa904^0x1;}if(!_0x1148d7)throw Error(_0x4607bc(0x2f8));return _0x422f52[_0x4607bc(0x151)](0x0,_0x1e2dc0-_0x40e675);}function _0x19a038(_0x56b207){const _0x21e068=_0x405303;let _0x299da4=new Uint8Array(0x10),_0x23f8ca=_0x1e90c9(_0x299da4);_0x299da4[_0x21e068(0x339)](_0x56b207);let _0x229091=0x10-_0x56b207[_0x21e068(0x182)];for(let _0x9dbc57=0x10-_0x229091;_0x9dbc57<0x10;_0x9dbc57++)_0x299da4[_0x9dbc57]=_0x229091;return _0x23f8ca;}let _0x5decb8=_0x238229({'blockSize':0x10,'nonceLength':0x10},function(_0x4dd67a,_0xc870eb,_0xa07d11={}){const _0x3caa3b=_0x405303;let _0x342a03=!_0xa07d11[_0x3caa3b(0x25a)];return{'encrypt'(_0x4bd6af,_0x2c5820){const _0x3b2bd7=_0x3caa3b;let _0x5d974f=_0x4b2b62(_0x4dd67a),{b:_0x39f3a1,o:_0x46fed3,out:_0x139727}=_0x3ac818(_0x4bd6af,_0x342a03,_0x2c5820),_0x1c3149=_0xc870eb,_0x20627d=[_0x5d974f];(!_0x5f5b9f||!_0x4c068f(_0x1c3149))&&_0x20627d[_0x3b2bd7(0x1f4)](_0x1c3149=_0x18912e(_0x1c3149));let _0x43bd8b=_0x1e90c9(_0x1c3149);_0x3a82af(_0x43bd8b);let _0x1d4079=_0x43bd8b[0x0],_0x2cafde=_0x43bd8b[0x1],_0x47bb0f=_0x43bd8b[0x2],_0x18e077=_0x43bd8b[0x3],_0x430861=0x0;for(;_0x430861+0x4<=_0x39f3a1[_0x3b2bd7(0x182)];)_0x1d4079^=_0x39f3a1[_0x430861+0x0],_0x2cafde^=_0x39f3a1[_0x430861+0x1],_0x47bb0f^=_0x39f3a1[_0x430861+0x2],_0x18e077^=_0x39f3a1[_0x430861+0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;if(_0x342a03){let _0xb272bd=_0x19a038(_0x4bd6af[_0x3b2bd7(0x151)](_0x430861*0x4));_0x3a82af(_0xb272bd),_0x1d4079^=_0xb272bd[0x0],_0x2cafde^=_0xb272bd[0x1],_0x47bb0f^=_0xb272bd[0x2],_0x18e077^=_0xb272bd[0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;}return _0x3a82af(_0x46fed3),_0x1156c1(..._0x20627d),_0x139727;},'decrypt'(_0x380934,_0x1a04a3){const _0x4e9ec9=_0x3caa3b;_0x13498e(_0x380934);let _0xbc1028=_0x26f973(_0x4dd67a),_0x205f08=_0xc870eb,_0x488d35=[_0xbc1028];(!_0x5f5b9f||!_0x4c068f(_0x205f08))&&_0x488d35[_0x4e9ec9(0x1f4)](_0x205f08=_0x18912e(_0x205f08));let _0x43e079=_0x1e90c9(_0x205f08);_0x3a82af(_0x43e079),_0x1a04a3=_0x573d2a(_0x380934[_0x4e9ec9(0x182)],_0x1a04a3),_0x11aacb(_0x380934,_0x1a04a3),(!_0x5f5b9f||!_0x4c068f(_0x380934))&&_0x488d35['push'](_0x380934=_0x18912e(_0x380934));let _0x366f1b=_0x1e90c9(_0x380934),_0x243150=_0x1e90c9(_0x1a04a3);_0x3a82af(_0x366f1b);let _0x3d5a78=_0x43e079[0x0],_0x3c85bf=_0x43e079[0x1],_0x45de39=_0x43e079[0x2],_0x161331=_0x43e079[0x3];for(let _0x3a9c5d=0x0;_0x3a9c5d+0x4<=_0x366f1b[_0x4e9ec9(0x182)];){let _0xe567f2=_0x3d5a78,_0x4f3363=_0x3c85bf,_0x25a65a=_0x45de39,_0x37ad24=_0x161331;_0x3d5a78=_0x366f1b[_0x3a9c5d+0x0],_0x3c85bf=_0x366f1b[_0x3a9c5d+0x1],_0x45de39=_0x366f1b[_0x3a9c5d+0x2],_0x161331=_0x366f1b[_0x3a9c5d+0x3];let {s0:_0x14eacf,s1:_0x438075,s2:_0xcee2d7,s3:_0x76f34b}=_0x12f90a(_0xbc1028,_0x3d5a78,_0x3c85bf,_0x45de39,_0x161331);_0x243150[_0x3a9c5d++]=_0x14eacf^_0xe567f2,_0x243150[_0x3a9c5d++]=_0x438075^_0x4f3363,_0x243150[_0x3a9c5d++]=_0xcee2d7^_0x25a65a,_0x243150[_0x3a9c5d++]=_0x76f34b^_0x37ad24;}return _0x3a82af(_0x243150),_0x1156c1(..._0x488d35),_0xf6b642(_0x1a04a3,_0x342a03);}};});function _0x2a458f(_0x26c22d){const _0x4ca442=_0x405303;let _0x4af506=atob(_0x26c22d),_0x3f9d71=new Uint8Array(_0x4af506[_0x4ca442(0x182)]);for(let _0x559035=0x0;_0x559035<_0x4af506[_0x4ca442(0x182)];_0x559035++)_0x3f9d71[_0x559035]=_0x4af506['charCodeAt'](_0x559035);return _0x3f9d71;}function _0x4388a1(_0x200d55){const _0x4f6e6a=_0x405303;let _0x92d7e3='';for(let _0x46d430=0x0;_0x46d430<_0x200d55['length'];_0x46d430++)_0x92d7e3+=String[_0x4f6e6a(0x3a9)](_0x200d55[_0x46d430]);return btoa(_0x92d7e3);}function _0x229ef8(_0x34c0fb,_0xb9035c){const _0x2a35df=_0x405303;let _0x362f79=_0x2a458f(_0xb9035c),_0x23084f=_0x2a8c18(0x10);return _0x4388a1(_0x1d87d1(_0x23084f,_0x5decb8(_0x362f79,_0x23084f)[_0x2a35df(0x17f)](_0x13ef42(_0x34c0fb))));}function _0x1826a6(){const _0x30037c=_0x405303;let _0x4bfbc1=(0x0,_0x3478b3[_0x30037c(0x1f5)])()['__Key__'];if(typeof window<'u'&&window[_0x30037c(0x354)]!==void 0x0&&_0x4bfbc1){let _0x4047f7={'time':Math[_0x30037c(0x2ff)](Date[_0x30037c(0x2cb)]()/0x3e8),'domain':location[_0x30037c(0x318)]};return _0x229ef8(JSON['stringify'](_0x4047f7),_0x4bfbc1);}}let _0x46162e=class{constructor(_0x8eb7f9){const _0x1ffa7a=_0x405303;this[_0x1ffa7a(0x121)]=_0x8eb7f9,this['_initRequestHeader']();}[_0x405303(0x3eb)](){const _0x2428b9=_0x405303;this[_0x2428b9(0x121)][_0x2428b9(0x42d)]({'interceptor':(_0x1429df,_0x3225f1)=>{const _0x3a6257=_0x2428b9;let _0xd80fd3=_0x1826a6();return _0xd80fd3&&_0x1429df[_0x3a6257(0x440)][_0x3a6257(0x339)](_0x3a6257(0x3e7),_0xd80fd3),_0x3225f1(_0x1429df);}});}};_0x46162e=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x46162e);let _0x143e0e=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0xde56c,_0x1a4c1e,_0x159082){const _0x204a1e=_0x405303;super(),this[_0x204a1e(0x3d5)]=_0xde56c,this[_0x204a1e(0x373)]=_0x1a4c1e,this[_0x204a1e(0x161)]=_0x159082,_0x4219eb(this,'_unitInfo$',new _0x31dca4[(_0x204a1e(0x31b))](null)),_0x4219eb(this,_0x204a1e(0x1c2),new _0x31dca4[(_0x204a1e(0x29e))]()),_0x4219eb(this,'unitInfo$',this[_0x204a1e(0x3b1)]['asObservable']()),_0x4219eb(this,_0x204a1e(0x288),this['_unitLoaded$']['asObservable']());}['dispose'](){const _0x54a6b8=_0x405303;super['dispose'](),this[_0x54a6b8(0x1c2)][_0x54a6b8(0x104)](),this[_0x54a6b8(0x3b1)]['complete']();}async[_0x405303(0x2dc)](_0x405e55,_0x173230,_0x1645c8,_0x3012ca){const _0x3b1482=_0x405303;this[_0x3b1482(0x3b1)][_0x3b1482(0x131)]({'unitId':_0x405e55,'type':_0x173230,'subUnitId':_0x3012ca});let _0x169f6e=null;switch(_0x173230){case _0x2d0b9f['UniverInstanceType']['UNIVER_SHEET']:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x18f)](_0x405e55,_0x1645c8,void 0x0,{'initialSubUnitId':_0x3012ca});break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x13a)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0xf6)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x358)]:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x362)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x333)]:_0x169f6e=await this['_snapshotService']['loadBoard'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x17d)]:_0x169f6e=await this['_snapshotService']['loadBase'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x31e)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0x1a9)](_0x405e55,_0x1645c8);break;default:this[_0x3b1482(0x3d5)][_0x3b1482(0x2a9)](_0x3b1482(0x21f),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x169f6e&&this[_0x3b1482(0x1c2)]['next'](_0x169f6e),_0x169f6e;}async['loadUnit'](_0x55816f,_0x2d0a45,_0x1d6bb4){const _0x4d5dc7=_0x405303;var _0x1d407a;this['_unitInfo$'][_0x4d5dc7(0x131)]({'unitId':_0x55816f,'type':_0x2d0a45,'subUnitId':_0x1d6bb4});let _0x270a1d=0x0,_0x37d972=await((_0x1d407a=this['_localCacheService'])==null?void 0x0:_0x1d407a[_0x4d5dc7(0x218)](_0x55816f));return _0x37d972&&(_0x37d972[_0x4d5dc7(0x283)]||_0x37d972[_0x4d5dc7(0xf9)][_0x4d5dc7(0x182)]!==0x0)&&(_0x270a1d=_0x37d972[_0x4d5dc7(0x284)]),_0x270a1d===0x0&&this['_logService'][_0x4d5dc7(0x30f)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4d5dc7(0x2dc)](_0x55816f,_0x2d0a45,_0x270a1d,_0x1d6bb4);}};_0x143e0e=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['SnapshotService'])),_0x43549d(0x2,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x143e0e);let _0x3217fe=class{constructor(_0x13e910,_0x52f04c,_0x48635a){const _0x3df1f4=_0x405303;this[_0x3df1f4(0x121)]=_0x13e910,this['_configService']=_0x52f04c,this[_0x3df1f4(0x347)]=_0x48635a,_0x4219eb(this,'_waitCount',0x0),_0x4219eb(this,_0x3df1f4(0x106),new _0x31dca4['Subject']()),_0x4219eb(this,_0x3df1f4(0x1a3),this[_0x3df1f4(0x106)]),_0x4219eb(this,_0x3df1f4(0x158),new Map());}[_0x405303(0x37b)](_0x52d13b){const _0x8f3404=_0x405303;this[_0x8f3404(0x3c1)]=_0x52d13b,this[_0x8f3404(0x106)][_0x8f3404(0x131)](_0x52d13b);}[_0x405303(0x22c)](_0x4eab09,_0x5a0cfa){const _0x2fdc04=_0x405303;if(_0x5a0cfa===_0x2d0b9f[_0x2fdc04(0x41f)][_0x2fdc04(0x310)]){let _0xb5e157=new Image();return _0xb5e157[_0x2fdc04(0x2d4)]=_0x4eab09,_0xb5e157;}return this[_0x2fdc04(0x158)]['get'](_0x4eab09);}[_0x405303(0x37d)](_0x2373e0,_0x56185c,_0x5e8dfe){const _0xe959b0=_0x405303;_0x56185c!==_0x2d0b9f[_0xe959b0(0x41f)]['BASE64']&&_0x5e8dfe!=null&&this[_0xe959b0(0x158)][_0xe959b0(0x339)](_0x2373e0,_0x5e8dfe);}async[_0x405303(0x2d9)](_0x19ad78){const _0x7dea45=_0x405303;try{let _0x11eb79=this['_replaceFileID'](this[_0x7dea45(0x18a)](),''+_0x19ad78),_0x10b749=(await this[_0x7dea45(0x121)]['get'](_0x11eb79))['body'];if(_0x10b749[_0x7dea45(0x2a9)]&&_0x10b749[_0x7dea45(0x2a9)][_0x7dea45(0x2c4)]===_0x11fae4[_0x7dea45(0x334)]['OK']){let _0x3647fd=(0x0,_0x2d0b9f[_0x7dea45(0x172)])(_0x10b749[_0x7dea45(0x204)],this[_0x7dea45(0x33f)]());return Promise['resolve'](_0x3647fd);}return Promise['reject'](_0x10b749[_0x7dea45(0x2a9)]);}catch(_0x1ad824){return Promise[_0x7dea45(0x293)](_0x1ad824);}}async['saveImage'](_0x1f9d52){const _0x5c9062=_0x405303;let _0x3e89f1='';if(!_0x247c19[_0x5c9062(0x36e)][_0x5c9062(0x281)](_0x1f9d52[_0x5c9062(0x24b)]))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f['ImageUploadStatusType'][_0x5c9062(0x100)]));if(_0x1f9d52[_0x5c9062(0x1db)]>(0x0,_0x247c19[_0x5c9062(0x29f)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1b1)]));try{let _0x9c1c98=new FormData();_0x9c1c98[_0x5c9062(0x43f)](_0x5c9062(0x1cc),_0x1f9d52);let _0x9036=this['_univerInstanceService'][_0x5c9062(0x1bf)](),_0x3a81ae=_0x9036==null?void 0x0:_0x9036['getUnitId']();if(!_0x3a81ae)throw Error(_0x5c9062(0x1c1));let _0x5bbf9a=this[_0x5c9062(0x27f)]()+'?size='+_0x1f9d52[_0x5c9062(0x1db)][_0x5c9062(0x349)]()+_0x5c9062(0x369)+_0x11fae4[_0x5c9062(0x34e)][_0x5c9062(0x3f8)]+_0x5c9062(0x156)+encodeURIComponent(_0x3a81ae),_0x32f6ea={'body':_0x9c1c98},_0x3a5a02=(await this[_0x5c9062(0x121)]['post'](_0x5bbf9a,_0x32f6ea))[_0x5c9062(0x43d)];if(typeof _0x3a5a02[_0x5c9062(0x2d1)]!=_0x5c9062(0x163))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));_0x3e89f1=_0x3a5a02[_0x5c9062(0x2d1)];}catch{return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));}return new Promise((_0x2e067b,_0x2239fb)=>{const _0x36943a=_0x5c9062;let _0x44e2c8=new FileReader();_0x44e2c8['readAsDataURL'](_0x1f9d52),_0x44e2c8[_0x36943a(0x109)]=_0x1b7ab9=>{const _0x309a3f=_0x36943a;var _0x239277;let _0x30a159=(_0x239277=_0x1b7ab9['target'])==null?void 0x0:_0x239277['result'];if(_0x30a159==null){this[_0x309a3f(0x351)](),_0x2239fb(Error(_0x2d0b9f[_0x309a3f(0x1ec)][_0x309a3f(0x1f3)]));return;}_0x2e067b({'imageId':(0x0,_0x2d0b9f[_0x309a3f(0x203)])(0x6),'imageSourceType':_0x2d0b9f[_0x309a3f(0x41f)][_0x309a3f(0x2f1)],'source':_0x3e89f1,'base64Cache':_0x30a159,'status':_0x2d0b9f[_0x309a3f(0x1ec)]['SUCCUSS']}),this[_0x309a3f(0x351)]();};});}[_0x405303(0x27f)](){const _0x2f9f74=_0x405303;var _0x53725a;let _0x2fac96=this['_configService'][_0x2f9f74(0x112)](_0x51e182);return(_0x53725a=_0x2fac96==null?void 0x0:_0x2fac96['uploadFileServerUrl'])==null?_0x2f9f74(0x234):_0x53725a;}[_0x405303(0x18a)](){const _0x84d03a=_0x405303;var _0x5ef2d6;let _0x3ef26e=this[_0x84d03a(0x3d2)][_0x84d03a(0x112)](_0x51e182);return(_0x5ef2d6=_0x3ef26e==null?void 0x0:_0x3ef26e[_0x84d03a(0x338)])==null?_0x84d03a(0x441):_0x5ef2d6;}[_0x405303(0x33f)](){const _0x35a328=_0x405303;var _0x4fde77;let _0x21d45a=this[_0x35a328(0x3d2)]['getConfig'](_0x51e182);return(_0x4fde77=_0x21d45a==null?void 0x0:_0x21d45a[_0x35a328(0x3d3)])==null?location['origin']:_0x4fde77;}[_0x405303(0x3f4)](_0x2ac536,_0x3a800d){const _0x376609=_0x405303;return _0x2ac536[_0x376609(0x1ee)]('{fileID}',_0x3a800d);}[_0x405303(0x351)](){const _0x3bdc9e=_0x405303;--this['_waitCount'],this['_change$'][_0x3bdc9e(0x131)](this[_0x3bdc9e(0x3c1)]);}};_0x3217fe=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47['HTTPService'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x3217fe);let _0x1183e4=class{constructor(_0x3a6f57,_0x104033){const _0x20f57f=_0x405303;this['_configService']=_0x3a6f57,this[_0x20f57f(0x2a0)]=_0x104033;}['_getAPIPrefixPath'](){const _0x491087=_0x405303;var _0x11509a;let _0x7a04c3=this['_configService'][_0x491087(0x112)](_0x51e182);return(_0x11509a=_0x7a04c3==null?void 0x0:_0x7a04c3[_0x491087(0x3d1)])==null?_0x491087(0x35e):_0x11509a;}async[_0x405303(0x269)](_0x2fc3df){const _0x24988c=_0x405303;let _0x196216=this[_0x24988c(0x2a1)]()+_0x24988c(0x2f7);return{'list':[{'title':_0x24988c(0x135),'mentions':(await this[_0x24988c(0x2a0)][_0x24988c(0x1b8)](_0x196216,{'params':{'objectID':_0x2fc3df[_0x24988c(0x29b)],'unitID':_0x2fc3df['unitId']}}))[_0x24988c(0x43d)][_0x24988c(0x194)]['map'](_0x5d6507=>({'objectId':_0x5d6507['id'],'name':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'metadata':{'icon':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0x21b)]},'label':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'objectType':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]})),'metadata':{},'type':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]}]};}};_0x1183e4=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x1183e4);let _0x1705a2=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x5330f9,_0x234d14,_0x1e944b,_0x4ff3fe,_0x21a0df){const _0x13d9c6=_0x405303;super(),this[_0x13d9c6(0x3ef)]=_0x5330f9,this[_0x13d9c6(0x347)]=_0x234d14,this[_0x13d9c6(0x2cd)]=_0x1e944b,this[_0x13d9c6(0x43b)]=_0x4ff3fe,this[_0x13d9c6(0x214)]=_0x21a0df,this[_0x13d9c6(0x449)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x62d4f9=_0x405303;let _0x33a219=async _0x2deac6=>{const _0x249b5c=_0x4e8d;(await this[_0x249b5c(0x43b)][_0x249b5c(0x305)](_0x2deac6))['event$'][_0x249b5c(0x18e)]((0x0,_0x2ba3c8[_0x249b5c(0x24d)])(_0x373ce2=>_0x373ce2[_0x249b5c(0x3cc)]===_0x20c203[_0x249b5c(0x3e1)][_0x249b5c(0x37a)]),(0x0,_0x2ba3c8[_0x249b5c(0x220)])(this[_0x249b5c(0x405)]))['subscribe'](_0x2ee291=>{const _0x1fc9eb=_0x249b5c;let {reason:_0x10e47d}=_0x2ee291['data'];this[_0x1fc9eb(0x214)][_0x1fc9eb(0x31f)]({'id':'CLOSE_ROOM','data':_0x10e47d}),this[_0x1fc9eb(0x2cd)][_0x1fc9eb(0x2ea)](new _0x2ba48b[(_0x1fc9eb(0x422))](_0x2deac6)['id'],!0x1),this[_0x1fc9eb(0x43b)][_0x1fc9eb(0x34a)](_0x2deac6);});};(0x0,_0x31dca4[_0x62d4f9(0xfd)])(this[_0x62d4f9(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x13a)]),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_BOARD']),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x17d)]))[_0x62d4f9(0x18e)]((0x0,_0x2ba3c8['map'])(_0x27aaa5=>_0x27aaa5[_0x62d4f9(0x417)][_0x62d4f9(0x202)]()),(0x0,_0x2ba3c8[_0x62d4f9(0x24d)])(_0x1de277=>!(0x0,_0x2d0b9f[_0x62d4f9(0x148)])(_0x1de277)),(0x0,_0x2ba3c8[_0x62d4f9(0x220)])(this[_0x62d4f9(0x405)]))['subscribe'](_0x132510=>{_0x33a219(_0x132510);});}[_0x405303(0x449)](){const _0x5eef30=_0x405303;let _0xba6e73=async _0x5dfaee=>{const _0x68e500=_0x4e8d;let _0x45edaf=await this[_0x68e500(0x43b)][_0x68e500(0x305)](_0x5dfaee),_0x44cb17=this['_injector'][_0x68e500(0x1b8)](_0x2ba48b['SheetPermissionInitController']);_0x45edaf[_0x68e500(0x233)]['pipe']((0x0,_0x2ba3c8[_0x68e500(0x24d)])(_0x1aaf8f=>_0x1aaf8f[_0x68e500(0x3cc)]===_0x20c203[_0x68e500(0x3e1)][_0x68e500(0x2af)]),(0x0,_0x2ba3c8[_0x68e500(0x220)])(this['dispose$']))['subscribe'](_0x245290=>{const _0x503795=_0x68e500;let {objectId:_0x5e032c}=_0x245290[_0x503795(0x3be)];_0x5e032c===_0x5dfaee?_0x44cb17['initWorkbookPermissionChange'](_0x5dfaee):_0x44cb17[_0x503795(0x23f)](_0x5dfaee,_0x5e032c);});};(0x0,_0x31dca4['merge'])(this['_univerInstanceService'][_0x5eef30(0x307)](_0x2d0b9f['UniverInstanceType'][_0x5eef30(0x378)]))[_0x5eef30(0x18e)]((0x0,_0x2ba3c8[_0x5eef30(0x110)])(_0x1409a9=>_0x1409a9[_0x5eef30(0x417)][_0x5eef30(0x202)]()),(0x0,_0x2ba3c8[_0x5eef30(0x24d)])(_0x5c319d=>!(0x0,_0x2d0b9f[_0x5eef30(0x148)])(_0x5c319d)),(0x0,_0x2ba3c8[_0x5eef30(0x220)])(this[_0x5eef30(0x405)]))[_0x5eef30(0x120)](_0x2d4c25=>{_0xba6e73(_0x2d4c25);});}};_0x1705a2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x4c98b9)),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c))],_0x1705a2);let _0x4f051f=class{constructor(_0x36a674,_0x15e18e){this['_configService']=_0x36a674,this['_httpService']=_0x15e18e;}async[_0x405303(0x252)](_0x4731f6,_0x5cbd8d){const _0x5b3851=_0x405303;var _0x37f698;let {unitID:_0x3f569e,type:_0x5f9be0,revision:_0x21e9ee=0x0}=_0x5cbd8d,_0x46dda6=this[_0x5b3851(0x256)]()+'/'+_0x5f9be0+_0x5b3851(0x437)+_0x3f569e+'/rev/'+_0x21e9ee,_0x172d0f=(await this['_httpService'][_0x5b3851(0x1b8)](_0x46dda6))[_0x5b3851(0x43d)],_0x282703=(_0x37f698=_0x172d0f['snapshot'])==null?void 0x0:_0x37f698[_0x5b3851(0x228)];if(_0x282703){let _0x5346d9=_0x282703==null?void 0x0:_0x282703[_0x5b3851(0x181)];_0x282703[_0x5b3851(0x181)]=_0x20c203[_0x5b3851(0x249)][_0x5b3851(0x23a)]((0x0,_0x20c203[_0x5b3851(0x1bd)])(_0x5346d9)),Object[_0x5b3851(0x37c)](_0x282703['sheets'])[_0x5b3851(0x412)](([,_0x1cc7c5])=>{const _0x3b0031=_0x5b3851;let _0x232b25=_0x1cc7c5[_0x3b0031(0x181)];_0x1cc7c5[_0x3b0031(0x181)]=_0x20c203['textEncoder'][_0x3b0031(0x23a)]((0x0,_0x20c203[_0x3b0031(0x1bd)])(_0x232b25));});}return _0x172d0f;}async['getSheetBlock'](_0x41dc9c,_0x53bb93){const _0x1e004e=_0x405303;let {unitID:_0x52e8e7,type:_0x3ca7ba,blockID:_0xcdcaac}=_0x53bb93,_0x4488ff=this[_0x1e004e(0x1f9)]()+'/'+_0x3ca7ba+_0x1e004e(0x437)+_0x52e8e7+'/block/'+_0xcdcaac;return(await this['_httpService']['get'](_0x4488ff))[_0x1e004e(0x43d)];}async[_0x405303(0x20f)](_0x393470,_0x1d2a1a){const _0x4ac2d1=_0x405303;let {unitID:_0xe19253,type:_0x134d8d,blockID:_0x10d87e}=_0x1d2a1a,_0x4ecc45=this[_0x4ac2d1(0x1f9)]()+_0x4ac2d1(0x115)+_0x134d8d+_0x4ac2d1(0x437)+_0xe19253+_0x4ac2d1(0x115)+_0x10d87e;return(await this[_0x4ac2d1(0x121)][_0x4ac2d1(0x1b8)](_0x4ecc45))['body'];}async['fetchMissingChangesets'](_0x548b67,_0x292302){const _0x8fc751=_0x405303;let {unitID:_0x1cc671,type:_0x2b67e0,from:_0x32ba00,to:_0x4fe6ba}=_0x292302,_0x3b17e8=this[_0x8fc751(0x1f9)]()+'/'+_0x2b67e0+_0x8fc751(0x437)+_0x1cc671+_0x8fc751(0x353)+_0x32ba00+_0x8fc751(0x1c8)+_0x4fe6ba;return(await this[_0x8fc751(0x121)][_0x8fc751(0x1b8)](_0x3b17e8))[_0x8fc751(0x43d)];}['getSnapshotAPIPath'](){const _0x39a083=_0x405303;var _0x271f02;return(_0x271f02=this[_0x39a083(0x3d2)][_0x39a083(0x112)](_0x39a083(0x25e)))==null?this[_0x39a083(0x1f9)]():_0x271f02;}['_getAPIPrefix'](){const _0x3d98be=_0x405303;var _0x2946e1;let _0x3a8cf6=this[_0x3d98be(0x3d2)][_0x3d98be(0x112)](_0x51e182);return(_0x2946e1=_0x3a8cf6==null?void 0x0:_0x3a8cf6[_0x3d98be(0x26b)])==null?_0x3d98be(0x433):_0x2946e1;}async[_0x405303(0x127)](_0x149260,_0x33945a){const _0x572a92=_0x405303;let _0x52cf6e=_0x572a92(0x213)+_0x33945a[_0x572a92(0x24b)]+'/unit/'+_0x33945a[_0x572a92(0x1c9)]+_0x572a92(0x24f);return(await this[_0x572a92(0x121)][_0x572a92(0x1b8)](_0x52cf6e,{'params':{'resourceId':JSON[_0x572a92(0x238)](_0x33945a[_0x572a92(0x1c7)])}}))[_0x572a92(0x43d)];}['saveSnapshot'](){const _0x333045=_0x405303;throw Error(_0x333045(0x254));}[_0x405303(0x226)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x36c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x297)](){const _0x2ad231=_0x405303;throw Error(_0x2ad231(0x254));}[_0x405303(0x1b4)](){const _0x7d516b=_0x405303;throw Error(_0x7d516b(0x254));}};_0x4f051f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x4f051f);let _0x5aea68=class extends _0x2d0b9f['LocalUndoRedoService']{constructor(_0x103dab,_0x45bbf4,_0x1fcffd,_0x4b4f14,_0x1a8184){const _0x3fdcb9=_0x405303;super(_0x103dab,_0x45bbf4,_0x1fcffd),this[_0x3fdcb9(0x1f8)]=_0x4b4f14,this[_0x3fdcb9(0x3d5)]=_0x1a8184;}[_0x405303(0x312)](_0x39bdad,_0x54b229){const _0x19dc57=_0x405303;let _0xaea814=this[_0x19dc57(0x393)](_0x39bdad);if(_0xaea814)try{let _0x3d75c3=this[_0x19dc57(0x32f)](_0xaea814,_0x54b229);this[_0x19dc57(0x1fa)](_0x39bdad,_0x3d75c3);}catch(_0x3d86d0){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3d86d0),this['_clearUndo'](_0x39bdad);}let _0x1d6724=this[_0x19dc57(0x23c)](_0x39bdad);if(_0x1d6724)try{let _0x5bd954=this['_transformStack'](_0x1d6724,_0x54b229);this[_0x19dc57(0x1f7)](_0x39bdad,_0x5bd954);}catch(_0x2bb086){this[_0x19dc57(0x3d5)][_0x19dc57(0x2a9)](_0x2bb086),this[_0x19dc57(0x1b2)](_0x39bdad);}}[_0x405303(0x316)](_0xc87229){const _0x4bdd2d=_0x405303;let _0x289312=this[_0x4bdd2d(0x393)](_0xc87229);_0x289312&&(_0x289312[_0x4bdd2d(0x182)]=0x0,this[_0x4bdd2d(0x30b)]());}['_clearRedo'](_0xc6f1){const _0x33bf98=_0x405303;let _0x133fc2=this['_getRedoStack'](_0xc6f1);_0x133fc2&&(_0x133fc2[_0x33bf98(0x182)]=0x0,this[_0x33bf98(0x30b)]());}[_0x405303(0x1fa)](_0x3b81bb,_0x14537e){const _0x118a34=_0x405303;this[_0x118a34(0xef)][_0x118a34(0x339)](_0x3b81bb,_0x14537e),this['_updateStatus']();}[_0x405303(0x1f7)](_0x4a18d4,_0x245d80){const _0x4bcff4=_0x405303;this[_0x4bcff4(0x2b0)][_0x4bcff4(0x339)](_0x4a18d4,_0x245d80),this[_0x4bcff4(0x30b)]();}[_0x405303(0x32f)](_0x270151,_0x5bee27){const _0x3fa6e5=_0x405303;let _0x49ec7a=[],_0x2f0cd3=_0x5bee27,_0x17bfb1=_0x5bee27;for(let _0x2fa2f5=_0x270151[_0x3fa6e5(0x182)]-0x1;_0x2fa2f5>=0x0;_0x2fa2f5--){let {unitID:_0x451277,undoMutations:_0xf568e2,redoMutations:_0x5acdc2}=_0x270151[_0x2fa2f5],_0x33eaf5=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x2f0cd3,_0xf568e2),_0x4e0477=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x17bfb1,_0x5acdc2);if((0x0,_0x20c203[_0x3fa6e5(0x153)])(_0x33eaf5)||(0x0,_0x20c203['isTransformMutationsWithChangesetFailure'])(_0x4e0477)){this[_0x3fa6e5(0x3d5)][_0x3fa6e5(0x2a9)](_0x3fa6e5(0x279),_0x3fa6e5(0x2d6),_0x33eaf5,_0x4e0477);break;}_0x2f0cd3=_0x33eaf5[_0x3fa6e5(0x2c3)],_0x17bfb1=_0x4e0477[_0x3fa6e5(0x2c3)],_0x49ec7a[_0x3fa6e5(0x1f4)]({'unitID':_0x451277,'undoMutations':_0x33eaf5[_0x3fa6e5(0x36d)],'redoMutations':_0x4e0477[_0x3fa6e5(0x36d)]});}return _0x49ec7a['reverse']();}};_0x5aea68=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x278)]),_0x43549d(0x3,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x4,_0x2d0b9f[_0x405303(0x280)])],_0x5aea68);let _0x30afa7=class extends _0x2d0b9f['Plugin']{constructor(_0x2d3ea9=_0x5939b8,_0x1a4103,_0x1b9ef9,_0x597a3b){const _0x3a9283=_0x405303;super(),this[_0x3a9283(0x16b)]=_0x2d3ea9,this[_0x3a9283(0x3d5)]=_0x1a4103,this[_0x3a9283(0x3ef)]=_0x1b9ef9,this[_0x3a9283(0x3d2)]=_0x597a3b;let {..._0xb1bd24}=(0x0,_0x2d0b9f[_0x3a9283(0xfd)])({},_0x5939b8,this[_0x3a9283(0x16b)]);if(!_0xb1bd24['socketService'])throw Error(_0x3a9283(0x126));this[_0x3a9283(0x16b)]=_0xb1bd24,this['_configService'][_0x3a9283(0x10a)](_0x51e182,_0xb1bd24);}[_0x405303(0x1d6)](){const _0x1ad991=_0x405303;this[_0x1ad991(0x448)](),this['_initDependencies']();}[_0x405303(0x448)](){const _0xe5ae73=_0x405303;var _0x32bd8a,_0x4fcd84;this[_0xe5ae73(0x3ef)][_0xe5ae73(0x206)](_0x2d0b9f[_0xe5ae73(0xf4)])&&this[_0xe5ae73(0x3d5)]['error'](_0xe5ae73(0x162),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4db949=(0x0,_0x2d0b9f[_0xe5ae73(0x197)])([[_0x2d0b9f['IUndoRedoService'],{'useClass':_0x5aea68}],[_0x562152,{'useValue':_0x233b60()}],[_0x4c98b9],[_0x42c2f1],[_0x201f2c],[_0x1eed0d],[_0x46162e],[_0x432b3d],[_0x1705a2],[_0xa9d46c],[_0x143e0e],[_0x581f35,{'useClass':this[_0xe5ae73(0x16b)][_0xe5ae73(0x20d)]}],[_0x20c203[_0xe5ae73(0x3e3)],{'useClass':_0x4f051f}],[_0x2d0b9f[_0xe5ae73(0x2ad)],{'useClass':_0x4e73d2}],[_0x2d0b9f[_0xe5ae73(0x140)],{'useClass':_0x3217fe}],[_0x29321d,{'useClass':_0x36dd49}],[_0x2d0b9f['IMentionIOService'],{'useClass':_0x1183e4}],[_0x58a316],[_0x3ed61f]],(_0x32bd8a=this[_0xe5ae73(0x16b)])==null?void 0x0:_0x32bd8a[_0xe5ae73(0x118)]);if(!((_0x4fcd84=this[_0xe5ae73(0x16b)])!=null&&_0x4fcd84[_0xe5ae73(0x2fe)])){let _0x58995c=_0x4db949[_0xe5ae73(0x320)](([_0x3645cc])=>_0x3645cc===_0x43c9bd);_0x58995c!==-0x1&&_0x4db949['splice'](_0x58995c,0x1);}(0x0,_0x2d0b9f[_0xe5ae73(0x2b7)])(this[_0xe5ae73(0x3ef)],_0x4db949);}[_0x405303(0x396)](){const _0x196cf8=_0x405303;var _0xf220e,_0x2e395a;if(this['_injector'][_0x196cf8(0x1b8)](_0xc90c47[_0x196cf8(0x141)])[_0x196cf8(0x42d)]({'priority':0x14,'interceptor':(0x0,_0xc90c47['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0xf220e=this[_0x196cf8(0x16b)])!=null&&_0xf220e[_0x196cf8(0x17b)])){var _0x4eb5ed;(_0x4eb5ed=this[_0x196cf8(0x3ef)]['get'](_0x3e00f7,_0x2d0b9f[_0x196cf8(0x190)][_0x196cf8(0x28e)]))==null||_0x4eb5ed[_0x196cf8(0x40b)]();}(_0x2e395a=this[_0x196cf8(0x16b)])!=null&&_0x2e395a[_0x196cf8(0x272)]&&(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x1eed0d]]),(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x46162e],[_0x58a316],[_0x1705a2]]);}};_0x4219eb(_0x30afa7,'pluginName',_0x405303(0x43a)),_0x4219eb(_0x30afa7,_0x405303(0x21a),_0x556b81),_0x4219eb(_0x30afa7,_0x405303(0x1cb),_0x5f209a),_0x30afa7=_0x3934d9([(0x0,_0x2d0b9f['DependentOn'])(_0x3478b3[_0x405303(0x3a5)],_0xc90c47[_0x405303(0x348)],_0x20c203[_0x405303(0x169)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)])],_0x30afa7),Object['defineProperty'](_0x4baffb,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x4e73d2;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x23b),{'enumerable':!0x0,'get':function(){return _0xe05e0d;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3cd),{'enumerable':!0x0,'get':function(){return _0x49c582;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x232),{'enumerable':!0x0,'get':function(){return _0x59b528;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1f1),{'enumerable':!0x0,'get':function(){return _0x4cf531;}}),_0x4baffb[_0x405303(0x426)]=_0x51e182,Object['defineProperty'](_0x4baffb,_0x405303(0x1dd),{'enumerable':!0x0,'get':function(){return _0x36dd49;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x42f),{'enumerable':!0x0,'get':function(){return _0x58a316;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x442),{'enumerable':!0x0,'get':function(){return _0xfb921e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x332),{'enumerable':!0x0,'get':function(){return _0x3217fe;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x44d),{'enumerable':!0x0,'get':function(){return _0x1213e3;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x40e),{'enumerable':!0x0,'get':function(){return _0x4c98b9;}}),Object[_0x405303(0x236)](_0x4baffb,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x2eb133;}}),_0x4baffb[_0x405303(0x41e)]=_0x1e7da3,_0x4baffb[_0x405303(0x1be)]=_0x3f9476,_0x4baffb['CollaborationUIEventService']=_0xa9d46c,Object[_0x405303(0x236)](_0x4baffb,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x5aea68;}}),_0x4baffb[_0x405303(0x1d0)]=_0x432b3d,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x428),{'enumerable':!0x0,'get':function(){return _0x1af009;}}),_0x4baffb[_0x405303(0x216)]=_0x219b9d,_0x4baffb[_0x405303(0x157)]=_0x405303(0x2f3),_0x4baffb[_0x405303(0x31c)]='/universer-api/user/session-ticket',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x2b1),{'enumerable':!0x0,'get':function(){return _0x143e0e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x14e),{'enumerable':!0x0,'get':function(){return _0x5a7876;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1ff),{'enumerable':!0x0,'get':function(){return _0x234be3;}}),_0x4baffb[_0x405303(0x1c6)]=_0x405303(0x2db),_0x4baffb[_0x405303(0x187)]=_0x405303(0x26f),_0x4baffb[_0x405303(0x178)]=_0x29321d,_0x4baffb[_0x405303(0x44b)]=_0x562152,_0x4baffb['ICollaborationSocketService']=_0x581f35,_0x4baffb['ILocalCacheService']=_0x3e00f7,_0x4baffb[_0x405303(0x132)]=_0x1e1155,_0x4baffb[_0x405303(0x372)]=_0x43c9bd,_0x4baffb[_0x405303(0x1ce)]=0x3e8,_0x4baffb['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1c3),{'enumerable':!0x0,'get':function(){return _0x42c2f1;}}),Object['defineProperty'](_0x4baffb,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x1183e4;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x32c),{'enumerable':!0x0,'get':function(){return _0x3b0e9a;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x36f),{'enumerable':!0x0,'get':function(){return _0x514c5a;}}),Object[_0x405303(0x236)](_0x4baffb,'PendingState',{'enumerable':!0x0,'get':function(){return _0x315789;}}),_0x4baffb[_0x405303(0x34f)]=_0x405303(0x276),_0x4baffb[_0x405303(0x1ae)]=_0x405303(0x113),_0x4baffb[_0x405303(0x2ef)]=_0x53b627,Object['defineProperty'](_0x4baffb,_0x405303(0x277),{'enumerable':!0x0,'get':function(){return _0x5080f;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x35f),{'enumerable':!0x0,'get':function(){return _0x201f2c;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x37e),{'enumerable':!0x0,'get':function(){return _0x33945f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3e9),{'enumerable':!0x0,'get':function(){return _0x4f051f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1fc),{'enumerable':!0x0,'get':function(){return _0x2b0eea;}}),_0x4baffb['UnitStatus']=_0x42b9d3,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3c3),{'enumerable':!0x0,'get':function(){return _0x30afa7;}}),_0x4baffb[_0x405303(0x28f)]=_0x233b60,_0x4baffb[_0x405303(0x40a)]=_0x36834a,_0x4baffb[_0x405303(0x408)]=_0x2ea860,_0x4baffb[_0x405303(0x30d)]=_0x2e90ec;}));
|