@univerjs-pro/collaboration-client 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
  86. package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x28e1(_0x1cfb86,_0x5a7376){_0x1cfb86=_0x1cfb86-0x1a8;const _0x57dc0a=_0x57dc();let _0x28e125=_0x57dc0a[_0x1cfb86];return _0x28e125;}function _0x57dc(){const _0x421cf8=['CHANGESET_REJ','UPDATE_PERMISSION_OBJ','CommentService','{fileID}','nonce','ICollaborationSocketService','cfgEnableObjInherit','unitId\x20is\x20not\x20found','_incrementRevisionNumber','_members','localeService','UNIVER_DOC','CollaborationEvent','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','values','109700yRHGrM','getUnitType','_replayCachedMutations','putCollaborators','_commentUpdate$','AAD\x20not\x20supported','default','isCompositionEnd','toDisposable','getOwnPropertyDescriptor','SlideCollaborationEntity','MemberService','_waitForHeartbeatResponse','ILocalCacheService','onMissingChangesets','onTransformRemoteChangesetByStateCache','filter','name','_handlerCallback','_pendingSessions','JOINING','_prepareTransformSelections','members','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','updateCursorEvent','defineProperty','socketReady','reduce','_removeRoom','Plugin','unitType','createCollaborator','fill','_createSession','_adapter','20rKQfrE','append','_createSocket','/universer-api/snapshot/','_onRemoteRejected','_executeRemoteChangeset','_revisionService','_exhaustRemoteChangesetQueue','endpointKey','_undoRedoService','loadPdf','UniverNetworkPlugin','_commentService','CONFLICT','_singleActiveUnitService','BASE64','[UniverCollaborationClientPlugin]','subUnitId','wrong\x20sbox\x20length','focused$','pluginName','JOIN_ROOM_FAILED','save\x20fail\x20reason\x20is\x20','getUnitOnRev','@univerjs-pro/slides','key','_createInitialState','unknown','_hasSessionsForEndpoint','_sheetTransformSelectionsService','getAllMembers','_shouldReportTelemetry','SyncedState','Rectangle','_onConnectionOpen','_transformIMECache','maxSize','aes:\x20bad\x20decrypt','UnitEmbedded','UNIVER_PDF','_resendTimer','PERSON','patch','OTHER_CLIENT_EDITING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_fetchMissChangesets','unitInfo$','Error\x20on\x20receiving\x20event','UniverSheets','getUnitStatus$','_socketService','infoRsp','joinEvent','[PendingState]:\x20received\x20rejection.','liveShareNewHost','amd','univer-pro.collaboration-client.single-active-unit-service','CHANGESET_ACK','UniverProCollaboration','_compressMutationService','_commandService','NEW_CHANGESETS','reverse','ITransformService','LIVESHARE_NEW_HOST','\x0aCurrent:\x20','COMMENT_UPDATE','type=','@univerjs-pro/collaboration-client','SOCKET_FAILED','ISnapshotServerService','getSnapshotAPIPath','UniverProtocol','title','onStarting','roomInfos','_changesetReqId','ISingleActiveUnitService','fetching\x20missing\x20changesets\x20from\x20','_transformStack','cipher\x20output\x20not\x20supported','byteLength','_createHandler','_clearRetryConnectingTimer','_resendTimeout','add','state','_httpService','cmd','[SyncedState]:\x20received\x20rejection.','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onJoinRoomEvent','parseChangesetToProtocol','target','uniscriptRunEvent','then','__Key__','/universer-api/comb','timeoutTimer','onRemoteRetry','iterator','_collaborationSessionService','getCurrentUser','replace','clear','_checkMissing','_initUnitPermissionChange','_createInitialStateImpl','override','_maxTotalRetryTimeout','actions','merge','removeMember','UNIVER_BOARD','LocalUndoRedoService','setConfig','CollaborationAttachmentIoService','IMentionIOService','session.room-cnt-exceeds','operators','_getAPIPrefixPath','upload','getCollabEntity','setShowComponents','DependentOn','decorate','People','_startCollaboration','crypto.getRandomValues\x20must\x20be\x20defined','SheetsSelectionsService','resend','awaitingChangeset','167472VPiaOS','floor','_getLoginPath','univer-pro.collaboration-client-socket-service','[DataLoaderService]','catch','_entities','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','touchDependencies','enableCollaboration','collaboration-client.local-cache-service','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_state$','url','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_scheduleCompleteTimestamp','_pendingMutations','apply','_joinRoom','onCommentUpdate','byteOffset','CollaborationStatus','_transformUndoredo','_undoStacks','_startTelemetryCollaborationNewChangeset','post','buffer','setWaitCount','confirm','getMemberID','onTransformIME','PERMISSION_DENIED','push','next','UPDATE_CURSOR','session.room-not-exists','AuthzIoHttpService','_localCacheService','sid','updateOfflineData','_getDownloadEndpointURL','_onRemoteRetry','IUndoRedoService','withAAD','registerHTTPInterceptor','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/rev/','UniverDocs','10797976ooyuTg','resolveWithBasePath','_tryReconnect','ERROR_IMAGE_TYPE','_prepareConflictRecovery','revision','[OfflineState]:\x20received\x20changeset.','src','_clearHeartbeatTimer','AAD','getTypeOfUnitAdded$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','params','HTTPService','_getUploadFileURL','/object','_snapshotServerService','string\x20expected','JOIN','_univerInstanceService','headers','_resendWithTimeout','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','@univerjs/protocol','encodeURIComponent','accept','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','asObservable','initWorkbookPermissionChange','dispose','unitId','ICommandService','1242920pzOFmb','PSEUDO_FETCH_MISSING_RESULT','CompressMutationService','JSONX','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','objectPermissionTypes','_onConnectionFailed','_onUserJoin','[FetchMissState]','INetworkConditionService','_disposed','pipe','IDLE','_getSendChangesetTimeout','UniverDrawing','CombCmd','m2Prime','[SyncedState]:\x20received\x20acknowledgement.','\x20in\x20_schedule.','ThresholdInterceptorFactory','_stopTelemetryCollaborationNewChangeset','Tools','change$','addHandlerCallback','_onFetchMissResult','_updateLocalCache','result','shareReplay','_injector','loadUnit','UNIVER_SLIDE','UniverProSlides','conflict','_awaitingChangeset','_toggleOnline','userID','b64DecodeUnicode','ConflictState','status$','reqId','enableSingleActiveInstanceLock','CollaborativeUndoRedoService','@univerjs/core','firstValueFrom','signUrlServerUrl','some','range','c2Prime','_transformAndApplyRemoteChangeset','duration','UNIVER_BASE','Failed\x20to\x20update\x20permission\x20point','DRAWING_IMAGE_ALLOW_IMAGE_LIST','fetchThroughInterceptors','tables','_refreshUnitPermission','getTypeOfUnitDisposed$','_isEchoedAwaitingChangeset','memberID','saveAttachment','/-/object/list','setCfgEnableObjInherit','concatMap','BYTES_PER_ELEMENT','_roomCreated$','eventID','interceptor','LIVESHARE_FETCH_OPERATIONS','snapshotServerUrl','string','&source=','snapshot','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_roomMembers','call','session','uploadFileServerUrl','candidateSocket','exports','RETRY_CONNECTING_MAX_COUNT','online$','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','getCurrentSelections','LOCAL_CACHE_INTERVAL','_collaborationTimeoutTimer','INGEST','entries','LIVESHARE_REQUEST_HOST','createInstance','executeCommand','stringify','_clearScheduledTask','c1Prime','RECV','LIVESHARE_TERMINATE','onSyncEditingCollabCursor','onRemoteAck','plaintext\x20must\x20be\x20multiple\x20of\x2016','?url=','Workbook','UniverCollaborationClientPlugin','_doCreateSocket','pending','_transformRemoteChangesetByStateCache','not_collab','fromCollab','originalMeta','toStringTag','_replaceFileID','_updateUnitPermissionPoint','awaiting_with_pending','getCfgEnableObjInherit','changeset','RxDisposable','CollaborationImageIoService','_entityInit$','_getUndoStack','UNISCRIPT_RUN','_socketMessageSubscription','PERMISSION_REJ','/new_changes','IUniverInstanceService','FETCH_MISSING','&to=','code','SnapshotService','CONFLICT_PROCESSING','Base','\x20-\x20','_listenToNetworkCondition','_onRemoteChangeset','waitForRoom$','_lockTransition','reject','_onConflict','MentionType','Board','ICollaborationClientAdapterService','CHANGESET_SHOULD_RETRY','SOCKET_FAILED_RETRY','_unitLoaded$','/universer-api/file/{fileID}/sign-url','UniverCollaborationPlugin','AwaitingState','_onRecvEvent','awaiting','_telemetryService','_sessions','collabWebSocketUrl','?size=','expected\x20number,\x20got\x20','_sendHeartbeat','copyFileMeta','length=','objectActions','CmdRspCode','objectId','LOCAL_CACHE_INTERVAL_KEY','collaborators','csAckEvent','Slide','@univerjs/docs','2529GsaYsx','session.join-failed','telemetry\x20info\x20is\x20not\x20initialized','sort','_substituteRedoStack','hostname','localCacheService','_applyRemoteChangeset','retryCount','IAttachmentIoService','1644552GjpORa','responseType','socketMessageSubscription','_queuedRemoteChangesets','/object/','unitID','nonceLength','_memberService','onTransformState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/resources','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_updateState','enableOfflineEditing','onPrepareTransformSelections','init','assign','blockRanges','transformStack\x20failed!','UnitAction','DEFAULT_COLLAB_WEB_SOCKET_URL','reconnect','SessionStatus','withCredentials','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','AWAITING','takeUntil','UNIVER_SHEET','unitDisposed$','disablePadding','charCodeAt','type','parseProtocolChangeset','_change$','_status$','_imageSourceCache','batchAllowed','subType','debug','/role','MUTATION','[CollaborationEntity]','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','getInterceptPoints','size','_sessionChannels','USERS_ENTER','\x20of\x20length\x20','onlyLocal','permissionRejEvent','_initCloseConn','refreshPermission','getUploadOptions','fetchMissingChangesets','transformUndoRedo','includes','_throwTelemetryCollaborationNewChangeset','_syncEditingCollabCursor','collaboration-client.config','rxjs/operators','_init','list','getMember','getRandomValues','tagLength','newCsEvent','DocCollaborationEntity','mutations','stopTime','817340Ypcbav','_unlockTransition','forEach','getDrawingImageAllowSize','isTransformChangesetsSuccess','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','Document','SHOULD_CLOSE_CONN','_configService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','emitEvent','SUBMIT_CHANGESET','socket\x20open.','_type','JOIN_ROOM_PERMISSION_DENIED','objects','_initDependencies','_disableEditing','file','_config','unit','members$','HEARTBEAT_TIMEOUT','max','_toggleOffline','_upload','OFFLINE','SUBMIT_CHANGESET_TIMEOUT','now','@univerjs-pro/collaboration','getCurrentRevOfUnit','DEFAULT_FILE_NAME','getRoom','objectID','CollaborationEntity','synced','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_event$','_onMessage','__splitChunk__','sendHeartbeatTimer','UnitObject','error$','onMissedChangesetFetched','ERROR_IMAGE','_sendingTimer','getFocusedUnit','onTransformSelections','avatar','clearOfflineData','startsWith','deserializeToCombResponse','getUnitId','21804DKiHDD','sessionStatus$','loadSheet','UniverInstanceType','UniverLicensePlugin','action','appendMutation','_getUnitPermissionPoints','encrypt','ONLINE','LEAVE','_getAPIPrefix','IContextService','number','isTransformMutationsWithChangesetSuccess','_remoteChangesetQueue','_initRequestHeader','_transformService','_showConflictNotification','subscribe','ILogService','body','from','shouldCloseConn','disposeWithMe','status','getAllPermissionPoint','_onUserLeave','transformChangesets','slice','get','create','AwaitingWithPendingState','/block/','requireSession','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UUID','endpoint','data','_state','trim','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','sequenceExecute','Optional','_transformStateCache','[CollaborationUndoRedoService]','InsertSheetMutation','_eventService','ImageUploadStatusType','getSheetBlock','requestParams','CONFLICT_CACHE_CLEAR_FAILED','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','joinRsp','getUnit','[CollaborationSessionService]','location','createIdentifier','_scheduleCollaborationTimeoutTimer','addImageSourceCache','length','_collaborationUIEventService','listCollaborators','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','FetchingMissState','_getConfig','_waitCount','CollaborationUIEventService','_acknowledgeAwaitingIfReady','updateMember','469HcwARA','UNIVER_COLLABORATION_CLIENT_PLUGIN','SetSelectionsOperation','collabSubmitChangesetUrl','HEARTBEAT','USERS_LEAVE','_getSocketChannel','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','/universer-api/authz','BehaviorSubject','textEncoder','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','MoveSlidePageMutation','updatePermissionPoint','event$','RemoveSlidePageMutation','_instanceService','[CollaborationSessionService]:\x20socket\x20error','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_cfgEnableObjInherit','put','enableAuthServer','Disposable','FileSource','refreshUnit','_resolveSessionIdentity','connection\x20error','SheetPermissionInitController','/collaborator','ws://127.0.0.1:8000/universer-api/comb/connect','findIndex','clearUnit','_acknowledgedAwaitingRevision','Module','subject','subarray','offline','Subject','MergeInterceptorFactory','/universer-api/uniscript','loadBase','compose','\x20to\x20','_logService','unit-cache-','_docStateChangeManagerService','toString','message$','AddSlidePageMutation','LIVESHARE_OPERATION','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','deepClone','/universer-api/oidc/authpage','authzUrl','OPTIONAL','function','onMutationExecutedForCollab','_updateStatus','onTransformRemoteChangesetByIMECache','RevisionService','COLLABORATION_ENDPOINT_INVALID','FileId','PENDING','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_decreaseWaiting','mapDocumentTypeToUniverInstanceType','_substituteUndoStack','PdfCollaborationEntity','toggleOffline','_socket','_networkConditionService','_members$','_unitInfo$','/-/object/-/batch_allowed','unsubscribe','_showConflictProcessingNotification','symbol','registerDependencies','_identity','close$','_getSignURL','_emitMembers','fetch_missing','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','dispose$','_collabSessionService','_transformSelections','FAIL','Univer','Uint8Array','_redoStacks','transformSelections','collaboratorID','supports','Injector','constructor','\x0aAfter:\x20','localUnitId','update','x-univer-host','loadOfflineData','JOIN_ROOM_NOT_EXISTS','_onLocalMutation','/unit/','routeKey','COMPRESS_MUTATION_SEND','map','HELLO','_clearRedo','_tryEnsureSocket','prototype','_changesetSessionId','BaseCollaborationEntity','isArray','IAuthzIoService','output','getCollabEntity$','_handleRemoteChangesets','toLocal','_onRemoteACK','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','retryConnectingInterval','_collaborationPaused','_getCtorByUniverInstanceType','ISocketService','socketService','onRemoteRej','isPermissionRej','unitLoaded$','_submitChangeset','incrementRevOfUnit','[OfflineState]:\x20received\x20acknowledgement.','endsWith','send','ImageSourceType','loadDoc','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','closeSession','CollaborationSession','SnapshotServerOverHTTPService','selections','objectType','delay','_registerDependencies','roles','expected\x20Uint8Array','csRejEvent','DisposableCollection','allowed','getDeserializedSheetBlock','docStateChange$','editingUnit','transformMutationsWithChangeset','HEARTBEAT_INTERVAL','resolveUnit','createUniverCollaborationAdapter','capture','DataLoaderService','MSG_FOR_ERROR','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_telemetryInfo','isTransformMutationsWithChangesetFailure','rollback',',\x20got\x20','_socketChannels','_HTTPService','base-ui.attachment-io.service','saveSnapshot','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ObjectPermissionService','startTime','_userManagerService','SNAPSHOT_URL_KEY','commentUpdate$','getLatestCsReqIdBySid','_schedule','object','every','HEARTBEAT_TIMEOUT_KEY','sessionStatus','loadUnitOfRevision','isInternalEditorID','_authzIoService','_closedUnits','_clearTimeoutTimer','_permissionService','state$','_onCombEvent','entityInit$','updatePermissionObjEvent','take','textRanges','downloadEndpointUrl','href','encode','BoardCollaborationEntity','CLOSE_ROOM','error','SYNCED','_clearUndo','@univerjs/network','retryConnectingTimer','set','getConfig','close','CommandType','getImage','IConfigService','onRemoteChangeset','hasOwnProperty','POST','_rescheduleHeartbeat','getValue','find','IPermissionService','_onOffline','_transformRemoteChangesetByIMECache','rxjs','_snapshotService','OTHER_CLIENTS_EDITING','submit\x20changeset\x20error!','_sender','decrypt','COMPRESS_MUTATION_APPLY','delete','origin','MentionIoHttpService','getLocalCacheKey','onSendChangeset','_acknowledgeAwaiting','/allowed','_sessionStatus$','workbook','AWAITING_WITH_PENDING','_getRedoStack','RichTextEditingMutation','complete','[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.','createSocket','splice','backupOfflineData','_initMergeInterceptor','WorkbookEditablePermission','_clearCollaborationTimeoutTimer','saveImage','Inject','socket$','version','toggleOnline','_transitionLocked','_getCurrentRevision','_handler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','baseRev','1.0.0','EmptyMutationInfo','getTime','has','LocaleService'];_0x57dc=function(){return _0x421cf8;};return _0x57dc();}(function(_0x2d7bb0,_0x3171ac){const _0x4906f9=_0x28e1,_0x18fccb=_0x2d7bb0();while(!![]){try{const _0x5543c0=-parseInt(_0x4906f9(0x210))/0x1+parseInt(_0x4906f9(0x2bc))/0x2+parseInt(_0x4906f9(0x1c0))/0x3+parseInt(_0x4906f9(0x301))/0x4*(-parseInt(_0x4906f9(0x4b1))/0x5)+parseInt(_0x4906f9(0x336))/0x6*(parseInt(_0x4906f9(0x37c))/0x7)+-parseInt(_0x4906f9(0x1f0))/0x8+parseInt(_0x4906f9(0x2b2))/0x9*(parseInt(_0x4906f9(0x48e))/0xa);if(_0x5543c0===_0x3171ac)break;else _0x18fccb['push'](_0x18fccb['shift']());}catch(_0xfb36fa){_0x18fccb['push'](_0x18fccb['shift']());}}}(_0x57dc,0xc1e1d),function(_0x1c82c1,_0x80e04f){const _0x41df22=_0x28e1;typeof exports==_0x41df22(0x42c)&&typeof module<'u'?_0x80e04f(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==_0x41df22(0x3b3)&&define[_0x41df22(0x4e8)]?define([_0x41df22(0x25e),_0x41df22(0x31e),_0x41df22(0x23a),_0x41df22(0x2b1),'@univerjs/sheets',_0x41df22(0x455),_0x41df22(0x207),'@univerjs/telemetry',_0x41df22(0x2f7),_0x41df22(0x4c9),_0x41df22(0x444),'@univerjs-pro/license','@univerjs/drawing'],_0x80e04f):(_0x1c82c1=typeof globalThis<'u'?globalThis:_0x1c82c1||self,_0x80e04f(_0x1c82c1['UniverProCollaborationClient']={},_0x1c82c1[_0x41df22(0x4eb)],_0x1c82c1['UniverCore'],_0x1c82c1[_0x41df22(0x1ef)],_0x1c82c1[_0x41df22(0x4e1)],_0x1c82c1[_0x41df22(0x455)],_0x1c82c1[_0x41df22(0x4f9)],_0x1c82c1['UniverTelemetry'],_0x1c82c1['rxjs'][_0x41df22(0x1b3)],_0x1c82c1[_0x41df22(0x22f)],_0x1c82c1['UniverNetwork'],_0x1c82c1['UniverProLicense'],_0x1c82c1[_0x41df22(0x21e)]));}(this,function(_0x2ce8a2,_0x1c67cc,_0x1d7efa,_0x19f1ab,_0x7fdba4,_0x150fe7,_0x22ed46,_0x257ff9,_0x6241f,_0x52e5e8,_0x43a4f4,_0x125bc9,_0x58c71b){const _0x412385=_0x28e1;Object[_0x412385(0x4a7)](_0x2ce8a2,Symbol[_0x412385(0x27b)],{'value':_0x412385(0x39d)});let _0x5270c6=_0x412385(0x2f6),_0x27aef1={};function _0xf55394(_0x3068ed){const _0x31c4b9=_0x412385;return JSON[_0x31c4b9(0x26a)](_0x3068ed)[_0x31c4b9(0x372)];}function _0x37a41a(_0x361e61){'@babel/helpers - typeof';const _0x112253=_0x412385;return _0x37a41a=typeof Symbol=='function'&&typeof Symbol[_0x112253(0x515)]==_0x112253(0x3c8)?function(_0x4748bf){return typeof _0x4748bf;}:function(_0x2d8553){const _0x1441d7=_0x112253;return _0x2d8553&&typeof Symbol==_0x1441d7(0x3b3)&&_0x2d8553[_0x1441d7(0x3db)]===Symbol&&_0x2d8553!==Symbol[_0x1441d7(0x3ea)]?_0x1441d7(0x3c8):typeof _0x2d8553;},_0x37a41a(_0x361e61);}function _0x50737f(_0x4d18c3,_0x51f255){const _0x591b0f=_0x412385;if(_0x37a41a(_0x4d18c3)!=_0x591b0f(0x42c)||!_0x4d18c3)return _0x4d18c3;var _0x83d27=_0x4d18c3[Symbol['toPrimitive']];if(_0x83d27!==void 0x0){var _0x2e3130=_0x83d27[_0x591b0f(0x25a)](_0x4d18c3,_0x51f255||_0x591b0f(0x494));if(_0x37a41a(_0x2e3130)!=_0x591b0f(0x42c))return _0x2e3130;throw TypeError(_0x591b0f(0x36a));}return(_0x51f255===_0x591b0f(0x255)?String:Number)(_0x4d18c3);}function _0x4051da(_0x5bef68){const _0x22c45c=_0x412385;var _0x449f30=_0x50737f(_0x5bef68,_0x22c45c(0x255));return _0x37a41a(_0x449f30)==_0x22c45c(0x3c8)?_0x449f30:_0x449f30+'';}function _0x4a1990(_0x6256bb,_0x260b77,_0x5dbd89){const _0x33bab7=_0x412385;return(_0x260b77=_0x4051da(_0x260b77))in _0x6256bb?Object[_0x33bab7(0x4a7)](_0x6256bb,_0x260b77,{'value':_0x5dbd89,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6256bb[_0x260b77]=_0x5dbd89,_0x6256bb;}let _0x8e2800=function(_0x1598b5){const _0x399a7e=_0x412385;return _0x1598b5[_0x399a7e(0x4dc)]='OTHER_CLIENT_EDITING',_0x1598b5[_0x399a7e(0x1df)]=_0x399a7e(0x1df),_0x1598b5[_0x399a7e(0x28e)]=_0x399a7e(0x28e),_0x1598b5[_0x399a7e(0x369)]='CONFLICT_CACHE_CLEAR_FAILED',_0x1598b5[_0x399a7e(0x4be)]=_0x399a7e(0x4be),_0x1598b5[_0x399a7e(0x440)]=_0x399a7e(0x440),_0x1598b5['JOIN_ROOM_FAILED']=_0x399a7e(0x4c6),_0x1598b5[_0x399a7e(0x29b)]=_0x399a7e(0x29b),_0x1598b5[_0x399a7e(0x4f6)]='SOCKET_FAILED',_0x1598b5[_0x399a7e(0x31c)]=_0x399a7e(0x31c),_0x1598b5;}({});var _0x14986c=class{constructor(){const _0x464a9e=_0x412385;_0x4a1990(this,'_event$',new _0x150fe7[(_0x464a9e(0x3a1))]()),_0x4a1990(this,_0x464a9e(0x38a),this['_event$'][_0x464a9e(0x20b)]());}[_0x412385(0x30b)](_0x4119e6){const _0x3cc124=_0x412385;this['_event$'][_0x3cc124(0x1e1)](_0x4119e6);}},_0x201c58=class{constructor(){const _0x3116de=_0x412385;_0x4a1990(this,_0x3116de(0x492),new _0x150fe7[(_0x3116de(0x3a1))]()),_0x4a1990(this,_0x3116de(0x429),this['_commentUpdate$'][_0x3116de(0x20b)]());}[_0x412385(0x1d3)](_0x333309){const _0x299b48=_0x412385;this['_commentUpdate$'][_0x299b48(0x1e1)](_0x333309);}};function _0x34b040(_0x1330aa,_0x4bd956){return function(_0x4650ad,_0x587f7d){_0x4bd956(_0x4650ad,_0x587f7d,_0x1330aa);};}function _0xb83a(_0x30e677,_0x2abd50,_0x1930af,_0x3c7721){const _0x2cb44d=_0x412385;var _0xddfbea=arguments[_0x2cb44d(0x372)],_0x143e40=_0xddfbea<0x3?_0x2abd50:_0x3c7721===null?_0x3c7721=Object[_0x2cb44d(0x497)](_0x2abd50,_0x1930af):_0x3c7721,_0x18a707;if(typeof Reflect=='object'&&typeof Reflect[_0x2cb44d(0x1b9)]==_0x2cb44d(0x3b3))_0x143e40=Reflect[_0x2cb44d(0x1b9)](_0x30e677,_0x2abd50,_0x1930af,_0x3c7721);else{for(var _0x2493c5=_0x30e677[_0x2cb44d(0x372)]-0x1;_0x2493c5>=0x0;_0x2493c5--)(_0x18a707=_0x30e677[_0x2493c5])&&(_0x143e40=(_0xddfbea<0x3?_0x18a707(_0x143e40):_0xddfbea>0x3?_0x18a707(_0x2abd50,_0x1930af,_0x143e40):_0x18a707(_0x2abd50,_0x1930af))||_0x143e40);}return _0xddfbea>0x3&&_0x143e40&&Object[_0x2cb44d(0x4a7)](_0x2abd50,_0x1930af,_0x143e40),_0x143e40;}let _0x2cad2f=class extends _0x1d7efa[_0x412385(0x392)]{constructor(_0x285cf8){const _0x530829=_0x412385;super(),this[_0x530829(0x203)]=_0x285cf8,_0x4a1990(this,_0x530829(0x259),new Map()),_0x4a1990(this,_0x530829(0x250),new _0x150fe7[(_0x530829(0x3a1))]()),this[_0x530829(0x34e)]((0x0,_0x150fe7[_0x530829(0x1ab)])(this[_0x530829(0x203)][_0x530829(0x248)](_0x1d7efa[_0x530829(0x339)][_0x530829(0x2d7)])['pipe']((0x0,_0x6241f[_0x530829(0x3e6)])(_0x1ed6bf=>_0x1ed6bf[_0x530829(0x335)]())),this[_0x530829(0x203)][_0x530829(0x248)](_0x1d7efa[_0x530829(0x339)]['UNIVER_DOC'])[_0x530829(0x21b)]((0x0,_0x6241f[_0x530829(0x3e6)])(_0x2f4dd9=>_0x2f4dd9[_0x530829(0x335)]())),this[_0x530829(0x203)][_0x530829(0x248)](_0x1d7efa['UniverInstanceType'][_0x530829(0x1ad)])[_0x530829(0x21b)]((0x0,_0x6241f[_0x530829(0x3e6)])(_0x267558=>_0x267558[_0x530829(0x335)]())),this['_univerInstanceService'][_0x530829(0x248)](_0x1d7efa['UniverInstanceType']['UNIVER_BASE'])['pipe']((0x0,_0x6241f[_0x530829(0x3e6)])(_0x3387d1=>_0x3387d1[_0x530829(0x335)]())))[_0x530829(0x349)](_0x4c37af=>this[_0x530829(0x4aa)](_0x4c37af)));}[_0x412385(0x293)](_0x418924){const _0x4db97b=_0x412385;return this[_0x4db97b(0x259)][_0x4db97b(0x47d)](_0x418924)?(0x0,_0x150fe7['of'])(this[_0x4db97b(0x259)][_0x4db97b(0x354)](_0x418924)):this['_roomCreated$'][_0x4db97b(0x21b)]((0x0,_0x6241f['map'])(_0x2f5b68=>{const _0x45bba9=_0x4db97b;if(_0x2f5b68===_0x418924)return this[_0x45bba9(0x259)][_0x45bba9(0x354)](_0x2f5b68);}));}[_0x412385(0x37b)](_0x223bae,_0x5f2133){const _0x23e22b=_0x412385;let _0x56d9e3=this[_0x23e22b(0x259)]['get'](_0x223bae);_0x56d9e3||(_0x56d9e3=new _0x1721e2(),this[_0x23e22b(0x259)][_0x23e22b(0x446)](_0x223bae,_0x56d9e3),this['_roomCreated$'][_0x23e22b(0x1e1)](_0x223bae)),_0x56d9e3[_0x23e22b(0x37b)](_0x5f2133);}[_0x412385(0x1ac)](_0x56754e,_0x2c8c24){const _0x2187e7=_0x412385;let _0x1c9218=this[_0x2187e7(0x259)]['get'](_0x56754e);_0x1c9218&&_0x1c9218['removeMember'](_0x2c8c24);}[_0x412385(0x321)](_0x237ca5){const _0xd6ab78=_0x412385;return this[_0xd6ab78(0x259)][_0xd6ab78(0x354)](_0x237ca5);}[_0x412385(0x2fa)](_0x32648c,_0x31c262){const _0x184356=_0x412385;let _0x37cabd=this['_roomMembers'][_0x184356(0x354)](_0x32648c);if(_0x37cabd)return _0x37cabd['getMember'](_0x31c262);}[_0x412385(0x4aa)](_0x28c228){const _0x40555f=_0x412385;let _0x5f19ca=this['_roomMembers'][_0x40555f(0x354)](_0x28c228);_0x5f19ca&&(_0x5f19ca[_0x40555f(0x20d)](),this[_0x40555f(0x259)]['delete'](_0x28c228));}['dispose'](){const _0x355494=_0x412385;this[_0x355494(0x259)][_0x355494(0x303)](_0x1a7eb9=>_0x1a7eb9[_0x355494(0x20d)]()),this[_0x355494(0x259)][_0x355494(0x519)](),this[_0x355494(0x250)][_0x355494(0x468)]();}};_0x2cad2f=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x289)])],_0x2cad2f);var _0x1721e2=class extends _0x1d7efa['Disposable']{constructor(..._0xb0a24c){const _0x334e2d=_0x412385;super(..._0xb0a24c),_0x4a1990(this,_0x334e2d(0x488),new Map()),_0x4a1990(this,_0x334e2d(0x3c3),new _0x150fe7[(_0x334e2d(0x385))](this[_0x334e2d(0x488)])),_0x4a1990(this,_0x334e2d(0x316),this['_members$'][_0x334e2d(0x20b)]());}[_0x412385(0x20d)](){const _0x19a707=_0x412385;this['_members'][_0x19a707(0x519)](),this[_0x19a707(0x3c3)][_0x19a707(0x468)]();}[_0x412385(0x37b)](_0x5effc7){const _0x405282=_0x412385;this[_0x405282(0x488)][_0x405282(0x446)](_0x5effc7[_0x405282(0x24a)],_0x5effc7),this[_0x405282(0x3cd)]();}[_0x412385(0x1ac)](_0x2721c0){const _0x4eb5b=_0x412385;this[_0x4eb5b(0x488)][_0x4eb5b(0x45c)](_0x2721c0),this[_0x4eb5b(0x3cd)]();}[_0x412385(0x2fa)](_0x21ef91){const _0x415784=_0x412385;return this[_0x415784(0x488)][_0x415784(0x354)](_0x21ef91);}[_0x412385(0x4cf)](){const _0x2864ec=_0x412385;return Array[_0x2864ec(0x34c)](this[_0x2864ec(0x488)]['values']());}['_emitMembers'](){const _0x166a8e=_0x412385;this['_members$']['next'](this[_0x166a8e(0x488)]);}};function _0x523e8b(_0x4d2912,_0x16df25){const _0x4b526a=_0x412385;if(_0x3ea149(_0x4d2912))return _0x16df25;if(_0x16df25[_0x4b526a(0x251)]===_0x1c67cc[_0x4b526a(0x48b)][_0x4b526a(0x30c)]){let _0xa0206a=_0x5a1c87(_0x4d2912),_0x3b62fa=_0x16df25;return{..._0x3b62fa,'data':{..._0x3b62fa[_0x4b526a(0x35c)],'unitID':_0x4d2912[_0x4b526a(0x50e)][_0x4b526a(0x20e)],'unitType':_0x4d2912['target'][_0x4b526a(0x4ac)]??_0x3b62fa['data']['unitType'],'changeset':_0xa0206a['toRemote'](_0x3b62fa[_0x4b526a(0x35c)]['changeset'],_0x3097b1(_0x4d2912))}};}if(_0x16df25[_0x4b526a(0x251)]===_0x1c67cc[_0x4b526a(0x48b)][_0x4b526a(0x28a)]){let _0x2d55e7=_0x16df25;return{..._0x2d55e7,'data':{..._0x2d55e7[_0x4b526a(0x35c)],'unitID':_0x4d2912['target']['unitId'],'unitType':_0x4d2912[_0x4b526a(0x50e)]['unitType']??_0x2d55e7[_0x4b526a(0x35c)]['unitType']}};}return _0x16df25;}function _0x7d3fdc(_0x3a4a7b,_0x3d4c39){const _0x160fcd=_0x412385;if(_0x3ea149(_0x3a4a7b))return[_0x3d4c39];switch(_0x3d4c39[_0x160fcd(0x251)]){case _0x1c67cc['CollaborationEvent'][_0x160fcd(0x4ee)]:return[_0x2fce0a(_0x3a4a7b,_0x3d4c39)];case _0x1c67cc[_0x160fcd(0x48b)][_0x160fcd(0x211)]:return[_0x17f66a(_0x3a4a7b,_0x3d4c39)];case _0x1c67cc[_0x160fcd(0x48b)][_0x160fcd(0x29a)]:return[_0x12008f(_0x3a4a7b,_0x3d4c39)];default:return[_0x3d4c39];}}function _0x3ea149(_0x1e53f9){const _0xcdfbb8=_0x412385;return _0x1e53f9['target'][_0xcdfbb8(0x35b)]==null&&_0x1e53f9[_0xcdfbb8(0x50e)][_0xcdfbb8(0x20e)]===_0x1e53f9['localUnitId']&&!_0x1e53f9[_0xcdfbb8(0x280)];}function _0x2fce0a(_0x486850,_0x4a97fc){const _0x4910f9=_0x412385;return{..._0x4a97fc,'data':(0x0,_0x1c67cc['parseChangesetToProtocol'])(_0x234ee1(_0x486850,(0x0,_0x1c67cc['parseProtocolChangeset'])(_0x4a97fc[_0x4910f9(0x35c)])))};}function _0x12008f(_0x3f1d15,_0x4f83bf){const _0x476810=_0x412385;return{..._0x4f83bf,'data':_0x234ee1(_0x3f1d15,_0x4f83bf[_0x476810(0x35c)])};}function _0x17f66a(_0x65285c,_0x30c67a){const _0x323e90=_0x412385;let _0x49d0cb=_0x30c67a['data'];return{..._0x30c67a,'data':{..._0x49d0cb,'changesets':_0x49d0cb['changesets'][_0x323e90(0x3e6)](_0x32737b=>(0x0,_0x1c67cc[_0x323e90(0x50d)])(_0x234ee1(_0x65285c,(0x0,_0x1c67cc[_0x323e90(0x2dc)])(_0x32737b))))}};}function _0x234ee1(_0x334604,_0x4e2e66){const _0x83796d=_0x412385;return _0x5a1c87(_0x334604)[_0x83796d(0x3f2)](_0x4e2e66,_0x3097b1(_0x334604));}function _0x5a1c87(_0x3f5a19){const _0x1105b4=_0x412385;if(!_0x3f5a19[_0x1105b4(0x280)])throw Error(_0x1105b4(0x20a));return _0x3f5a19[_0x1105b4(0x280)];}function _0x3097b1(_0x22bbbe){const _0x4981c1=_0x412385;return{'localUnitId':_0x22bbbe[_0x4981c1(0x3dd)],'unitType':_0x22bbbe['unitType'],'target':_0x22bbbe[_0x4981c1(0x50e)]};}let _0x2ff20c=function(_0x3bf0e5){const _0xc646ff=_0x412385;return _0x3bf0e5[_0x3bf0e5[_0xc646ff(0x21c)]=0x0]='IDLE',_0x3bf0e5[_0x3bf0e5[_0xc646ff(0x4a2)]=0x1]='JOINING',_0x3bf0e5[_0x3bf0e5['OFFLINE']=0x2]=_0xc646ff(0x31b),_0x3bf0e5[_0x3bf0e5[_0xc646ff(0x33f)]=0x3]=_0xc646ff(0x33f),_0x3bf0e5;}({}),_0x85eee3={[_0x22ed46['CmdRspCode'][_0x412385(0x3d3)]]:_0x412385(0x2b3),[_0x22ed46[_0x412385(0x2ab)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x22ed46['CmdRspCode'][_0x412385(0x3e1)]]:_0x412385(0x1e3),[_0x22ed46['CmdRspCode'][_0x412385(0x30f)]]:'session.room-permission-denied',[_0x22ed46['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x412385(0x1b2)},_0x1c43ab=class extends _0x1d7efa[_0x412385(0x281)]{get[_0x412385(0x42f)](){const _0x524f44=_0x412385;return this[_0x524f44(0x463)][_0x524f44(0x450)]();}constructor(_0x485b6e,_0x1e68c4,_0x316975,_0x58fc88,_0x35c9fa,_0x574b86,_0x1c0df2,_0x10e63c){const _0x439797=_0x412385;super(),this[_0x439797(0x3ca)]=_0x485b6e,this['_logService']=_0x316975,this[_0x439797(0x309)]=_0x58fc88,this[_0x439797(0x2c3)]=_0x35c9fa,this[_0x439797(0x4bd)]=_0x574b86,this[_0x439797(0x373)]=_0x1c0df2,this['_telemetryService']=_0x10e63c,_0x4a1990(this,_0x439797(0x463),new _0x150fe7['BehaviorSubject'](0x0)),_0x4a1990(this,'sessionStatus$',this[_0x439797(0x463)][_0x439797(0x20b)]()),_0x4a1990(this,_0x439797(0x326),new _0x150fe7[(_0x439797(0x3a1))]()),_0x4a1990(this,_0x439797(0x38a),this[_0x439797(0x326)]['asObservable']()),_0x4a1990(this,'_socket',void 0x0),_0x4a1990(this,_0x439797(0x286),void 0x0),_0x4a1990(this,_0x439797(0x264),void 0x0),_0x4a1990(this,_0x439797(0x4d0),!0x1),_0x4a1990(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x1e68c4[_0x439797(0x21b)]((0x0,_0x150fe7[_0x439797(0x2d6)])(this[_0x439797(0x3d0)]))[_0x439797(0x349)](_0x205b76=>{const _0x32be0d=_0x439797;if(_0x205b76!==void 0x0){if(this['_socket']=_0x205b76,_0x205b76)this[_0x32be0d(0x1d2)](_0x205b76),this[_0x32be0d(0x286)]=_0x205b76[_0x32be0d(0x3ab)][_0x32be0d(0x349)](_0x5ae872=>{const _0x27a2a7=_0x32be0d;_0x5ae872[_0x27a2a7(0x3e4)]===this[_0x27a2a7(0x3ca)][_0x27a2a7(0x50e)]['unitId']&&this[_0x27a2a7(0x437)](_0x5ae872);});else{var _0x45d908;this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x32be0d(0x1e1)](0x2),(_0x45d908=this[_0x32be0d(0x286)])==null||_0x45d908[_0x32be0d(0x3c6)](),this[_0x32be0d(0x286)]=null;}}});}[_0x412385(0x1dd)](){const _0x19e1e7=_0x412385;var _0x45d43c;return((_0x45d43c=this['_socket'])==null?void 0x0:_0x45d43c[_0x19e1e7(0x24a)])??null;}[_0x412385(0x20d)](){const _0x276158=_0x412385;super[_0x276158(0x20d)](),this[_0x276158(0x448)](),this[_0x276158(0x3d0)][_0x276158(0x1e1)](),this['dispose$'][_0x276158(0x468)]();}[_0x412385(0x448)](){const _0x1d17e4=_0x412385;var _0x30e215;this[_0x1d17e4(0x2f4)](),(_0x30e215=this[_0x1d17e4(0x3c1)])==null||_0x30e215[_0x1d17e4(0x401)]({'cmd':_0x22ed46[_0x1d17e4(0x21f)]['LEAVE'],'data':{'roomID':this[_0x1d17e4(0x3ca)][_0x1d17e4(0x50e)][_0x1d17e4(0x20e)]}}),this[_0x1d17e4(0x326)][_0x1d17e4(0x468)](),this[_0x1d17e4(0x463)][_0x1d17e4(0x468)]();}[_0x412385(0x437)](_0x119c7a){const _0x2408c1=_0x412385;_0x119c7a[_0x2408c1(0x509)]===_0x22ed46[_0x2408c1(0x21f)]['JOIN']?this[_0x2408c1(0x50c)](_0x119c7a):_0x119c7a['cmd']===_0x22ed46['CombCmd']['RECV']&&this['_onRecvEvent'](_0x119c7a);}[_0x412385(0x1d2)](_0x4d5e58){const _0x4cd35e=_0x412385;this[_0x4cd35e(0x463)][_0x4cd35e(0x1e1)](0x1),_0x4d5e58[_0x4cd35e(0x401)]({'cmd':_0x22ed46[_0x4cd35e(0x21f)]['JOIN'],'routeKey':this[_0x4cd35e(0x3ca)][_0x4cd35e(0x50e)][_0x4cd35e(0x20e)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x4cd35e(0x50e)][_0x4cd35e(0x20e)]}]}});}[_0x412385(0x50c)](_0x474369){const _0x5501c2=_0x412385;var _0x38a384;if(_0x474369[_0x5501c2(0x28c)]in _0x85eee3){this[_0x5501c2(0x373)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':_0x85eee3[_0x474369[_0x5501c2(0x28c)]]}),this['_sessionStatus$'][_0x5501c2(0x1e1)](0x2);return;}this[_0x5501c2(0x463)][_0x5501c2(0x1e1)](0x3);let _0x366b90=(_0x38a384=_0x474369['data'][_0x5501c2(0x4fc)][this[_0x5501c2(0x3ca)][_0x5501c2(0x50e)]['unitId']])==null?void 0x0:_0x38a384[_0x5501c2(0x4a4)];_0x366b90&&_0x366b90[_0x5501c2(0x303)](_0x4b0bc2=>this[_0x5501c2(0x2c3)][_0x5501c2(0x37b)](this[_0x5501c2(0x3ca)]['localUnitId'],_0x4b0bc2));}[_0x412385(0x2a0)](_0x3db9be){const _0x499b19=_0x412385;try{let _0x2d24bc=_0x7d3fdc(this[_0x499b19(0x3ca)],_0x3db9be[_0x499b19(0x35c)]);for(let _0x387b5f of _0x2d24bc)switch(_0x387b5f[_0x499b19(0x251)]){case _0x1c67cc['CollaborationEvent'][_0x499b19(0x2ea)]:this['_onUserJoin'](_0x387b5f),this['_event$'][_0x499b19(0x1e1)](_0x387b5f);break;case _0x1c67cc['CollaborationEvent'][_0x499b19(0x381)]:this[_0x499b19(0x351)](_0x387b5f),this[_0x499b19(0x326)][_0x499b19(0x1e1)](_0x387b5f);break;case _0x1c67cc[_0x499b19(0x48b)][_0x499b19(0x4ea)]:case _0x1c67cc[_0x499b19(0x48b)][_0x499b19(0x29a)]:this[_0x499b19(0x224)](),this[_0x499b19(0x46f)](),this[_0x499b19(0x326)][_0x499b19(0x1e1)](_0x387b5f);break;case _0x1c67cc[_0x499b19(0x48b)][_0x499b19(0x41a)]:this[_0x499b19(0x3a7)]['error'](_0x499b19(0x4c7)+JSON[_0x499b19(0x26a)](_0x387b5f)),this[_0x499b19(0x326)][_0x499b19(0x1e1)](_0x387b5f);break;case _0x1c67cc['CollaborationEvent'][_0x499b19(0x4f3)]:this[_0x499b19(0x4bd)][_0x499b19(0x1d3)](_0x387b5f[_0x499b19(0x35c)]),this[_0x499b19(0x326)][_0x499b19(0x1e1)](_0x387b5f);break;default:this['_event$']['next'](_0x387b5f);}}catch(_0x478e68){this[_0x499b19(0x3a7)][_0x499b19(0x441)](_0x478e68,_0x3db9be);}}[_0x412385(0x217)](_0x193a74){const _0x6938da=_0x412385;this['_memberService'][_0x6938da(0x37b)](this[_0x6938da(0x3ca)]['localUnitId'],_0x193a74[_0x6938da(0x35c)]);}[_0x412385(0x351)](_0x19e6d3){const _0x5ed144=_0x412385;this[_0x5ed144(0x2c3)][_0x5ed144(0x1ac)](this[_0x5ed144(0x3ca)]['localUnitId'],_0x19e6d3[_0x5ed144(0x35c)][_0x5ed144(0x24a)]);}async[_0x412385(0x401)](_0x518d97,_0x146f0d){const _0x3d0477=_0x412385;if(this[_0x3d0477(0x42f)]!==0x3||!this[_0x3d0477(0x3c1)])throw Error(_0x3d0477(0x4dd));try{let _0x172357=_0x523e8b(this['_identity'],_0x518d97);_0x172357['eventID']===_0x1c67cc['CollaborationEvent'][_0x3d0477(0x30c)]&&(this[_0x3d0477(0x370)](),this['_startTelemetryCollaborationNewChangeset'](_0x172357)),this[_0x3d0477(0x3c1)][_0x3d0477(0x401)]({'cmd':_0x22ed46[_0x3d0477(0x21f)][_0x3d0477(0x265)],'routeKey':this[_0x3d0477(0x3ca)][_0x3d0477(0x50e)][_0x3d0477(0x20e)],'routeType':'','data':_0x172357});}catch(_0x12c70c){this[_0x3d0477(0x3a7)][_0x3d0477(0x441)](_0x12c70c);}}[_0x412385(0x370)](){const _0x1dabef=_0x412385;this[_0x1dabef(0x264)]=setTimeout(()=>{const _0x197809=_0x1dabef;this[_0x197809(0x264)]=null,this[_0x197809(0x373)]['emitEvent']({'id':_0x197809(0x31c)});},this[_0x1dabef(0x309)]['getConfig'](_0x1dabef(0x317))??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x278094=_0x412385;this['_collaborationTimeoutTimer']&&=(clearTimeout(this[_0x278094(0x264)]),null);}[_0x412385(0x1d8)](_0x3c4fe0){const _0x2278c9=_0x412385;if(!this[_0x2278c9(0x4d0)])return;let {data:_0x16b50e}=_0x3c4fe0,{unitID:_0x40cb98,changeset:_0x38737c}=_0x16b50e,{mutations:_0x2b1fd3,type:_0x2eff8e}=_0x38737c;this[_0x2278c9(0x41c)]={'unitId':_0x40cb98,'type':_0x2eff8e,'startTime':performance[_0x2278c9(0x31d)](),'stopTime':0x0,'duration':0x0,'size':_0xf55394(_0x2b1fd3)};}[_0x412385(0x224)](){const _0x2f2355=_0x412385;if(this[_0x2f2355(0x4d0)]){if(!this['_telemetryInfo']){this[_0x2f2355(0x3a7)][_0x2f2355(0x441)]('[CollaborationSession]',_0x2f2355(0x2b4));return;}this[_0x2f2355(0x41c)][_0x2f2355(0x300)]=performance[_0x2f2355(0x31d)](),this['_telemetryInfo'][_0x2f2355(0x241)]=this[_0x2f2355(0x41c)][_0x2f2355(0x300)]-this['_telemetryInfo'][_0x2f2355(0x426)],this[_0x2f2355(0x2a2)][_0x2f2355(0x418)]('collaboration_new_changeset',this[_0x2f2355(0x41c)]),this[_0x2f2355(0x41c)]=null;}}[_0x412385(0x2f4)](){const _0x5d5cfe=_0x412385;this[_0x5d5cfe(0x41c)]=null;}};_0x1c43ab=_0xb83a([_0x34b040(0x2,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x3,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x2cad2f)),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x201c58)),_0x34b040(0x6,(0x0,_0x1d7efa['Inject'])(_0x14986c)),_0x34b040(0x7,(0x0,_0x1d7efa['Optional'])(_0x257ff9['ITelemetryService']))],_0x1c43ab);let _0xad368b=(0x0,_0x1d7efa[_0x412385(0x36f)])(_0x412385(0x1ca));function _0x39aca3(_0x32f151){const _0x5087c9=_0x412385;return _0x5087c9(0x3a8)+_0x32f151;}function _0x97b716(_0x3c4265){const _0x5d38c6=_0x412385;let {unitID:_0x2de2b3,mutations:_0x2142cf}=_0x3c4265;return{'unitId':_0x2de2b3,'subUnitId':_0x2142cf[_0x5d38c6(0x372)]>0x0?_0x2142cf[0x0][_0x5d38c6(0x1fc)][_0x5d38c6(0x4c2)]:null};}let _0x36c805=class{constructor(_0x31b4b3,_0x475f58,_0x4a09a5){const _0x182182=_0x412385;this['_injector']=_0x31b4b3,this[_0x182182(0x347)]=_0x475f58,this[_0x182182(0x38c)]=_0x4a09a5;}['transformSelections'](_0x9d7b2d){const _0x179118=_0x412385;var _0x2f0e64,_0x4de256;let _0x41c899=this[_0x179118(0x22c)][_0x179118(0x354)](_0x7fdba4[_0x179118(0x1bd)]),{unitId:_0x4f4ad9,subUnitId:_0x12574a}=_0x97b716(_0x9d7b2d),_0x3459a3=_0x41c899==null?void 0x0:_0x41c899['getWorkbookSelections'](_0x4f4ad9)[_0x179118(0x262)](),_0x1c1ad5=(_0x2f0e64=this[_0x179118(0x38c)][_0x179118(0x36c)](_0x4f4ad9))==null||(_0x2f0e64=_0x2f0e64['getActiveSheet']())==null?void 0x0:_0x2f0e64['getSheetId']();if(_0x3459a3[_0x179118(0x372)]===0x0||!_0x4f4ad9||!_0x12574a)return;let _0x44ad14=[{'id':_0x7fdba4[_0x179118(0x37e)]['id'],'params':{'unitId':_0x4f4ad9,'subUnitId':_0x1c1ad5,'selections':_0x1d7efa[_0x179118(0x225)][_0x179118(0x3af)](_0x3459a3)}}],_0x3e9df3=this['_transformService'][_0x179118(0x414)](_0x9d7b2d,_0x44ad14);if(!(0x0,_0x1c67cc['isTransformMutationsWithChangesetSuccess'])(_0x3e9df3))throw _0x3e9df3[_0x179118(0x441)];let _0x2c8ca8=(_0x4de256=_0x3e9df3['m2Prime'][0x0])==null||(_0x4de256=_0x4de256[_0x179118(0x1fc)])==null?void 0x0:_0x4de256[_0x179118(0x408)];if(Array['isArray'](_0x2c8ca8)&&_0x2c8ca8[_0x179118(0x372)]){if(_0x2c8ca8['length']===_0x44ad14[0x0][_0x179118(0x1fc)][_0x179118(0x408)][_0x179118(0x372)]&&_0x2c8ca8[_0x179118(0x42d)]((_0x38ee74,_0x2c1e6e)=>_0x1d7efa[_0x179118(0x4d2)]['equals'](_0x38ee74[_0x179118(0x23e)],_0x44ad14[0x0][_0x179118(0x1fc)]['selections'][_0x2c1e6e]['range'])))return;this[_0x179118(0x22c)][_0x179118(0x354)](_0x1d7efa[_0x179118(0x20f)])[_0x179118(0x269)](_0x7fdba4['SetSelectionsOperation']['id'],{'unitId':_0x4f4ad9,'subUnitId':_0x1c1ad5,'selections':_0x2c8ca8});}}};_0x36c805=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x1,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0x2,_0x1d7efa[_0x412385(0x289)])],_0x36c805);let _0x4f19a3=(0x0,_0x1d7efa[_0x412385(0x36f)])(_0x412385(0x4e9)),_0x50845d=function(_0x2492e8){const _0x40c104=_0x412385;return _0x2492e8[_0x2492e8['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2492e8[_0x2492e8[_0x40c104(0x457)]=0x1]=_0x40c104(0x457),_0x2492e8;}({});function _0x2b3640(_0x54c7ef){const _0x5b03dd=_0x412385;var _0x579526;return!!((_0x579526=_0x54c7ef[_0x5b03dd(0x1fc)])!=null&&_0x579526[_0x5b03dd(0x328)]);}let _0x3183fd=new Set([_0x7fdba4[_0x412385(0x364)]['id']]),_0x35eb38=new Set([_0x52e5e8[_0x412385(0x3ac)]['id'],_0x52e5e8['EnsureSlideMasterPageMutation']['id'],_0x52e5e8[_0x412385(0x388)]['id'],_0x52e5e8[_0x412385(0x38b)]['id']]);function _0x1f87ba(_0x2a697b,_0x1b1ff6=_0x3183fd){const _0x53e7a3=_0x412385;let _0x5a3fe3=[];for(let _0x2b33a1 of _0x2a697b){if(_0x1b1ff6[_0x53e7a3(0x47d)](_0x2b33a1['id'])){if(_0x5a3fe3['length']>0x0)break;_0x5a3fe3[_0x53e7a3(0x1e0)](_0x2b33a1);break;}if(_0x2b3640(_0x2b33a1)){if(_0x5a3fe3[_0x53e7a3(0x372)]>0x0)break;_0x5a3fe3['push'](_0x2b33a1);break;}_0x5a3fe3[_0x53e7a3(0x1e0)](_0x2b33a1);}return _0x5a3fe3;}function _0x206575(_0x181464,_0x5e071f,_0x2f814e,_0x152372,_0x19bb6a){const _0x4dd664=_0x412385;let _0x16ab34=_0x1f87ba(_0x181464),_0x45746b=_0x19bb6a['getCurrentUser'](),_0x1991f5=(_0x45746b==null?void 0x0:_0x45746b['userID'])??_0x4dd664(0x4cc),_0x36d91f=(_0x45746b==null?void 0x0:_0x45746b[_0x4dd664(0x24a)])??_0x4dd664(0x4cc);return{'changeset':{'unitID':_0x5e071f,'type':(0x0,_0x1c67cc[_0x4dd664(0x3bd)])(_0x2f814e[_0x4dd664(0x48f)](_0x5e071f)),'baseRev':_0x152372[_0x4dd664(0x31f)](_0x5e071f),'revision':0x0,'userID':_0x1991f5,'memberID':_0x36d91f,'mutations':_0x16ab34},'pendingMutations':_0x181464[_0x4dd664(0x353)](_0x16ab34[_0x4dd664(0x372)])};}let _0x232b3c=_0x206575;function _0x2620a9(_0x3c4b6e,_0x2a92ed,_0x5d55a5,_0x789dcf,_0x60723){const _0x3430bf=_0x412385;let _0x4ec5f4=_0x1f87ba(_0x3c4b6e,_0x35eb38),_0x1e091e=_0x60723[_0x3430bf(0x517)](),_0x3c240c=(_0x1e091e==null?void 0x0:_0x1e091e[_0x3430bf(0x233)])??'unknown',_0x48c005=(_0x1e091e==null?void 0x0:_0x1e091e[_0x3430bf(0x24a)])??_0x3430bf(0x4cc);return{'changeset':{'unitID':_0x2a92ed,'type':(0x0,_0x1c67cc['mapDocumentTypeToUniverInstanceType'])(_0x5d55a5[_0x3430bf(0x48f)](_0x2a92ed)),'baseRev':_0x789dcf[_0x3430bf(0x31f)](_0x2a92ed),'revision':0x0,'userID':_0x3c240c,'memberID':_0x48c005,'mutations':_0x4ec5f4},'pendingMutations':_0x3c4b6e['slice'](_0x4ec5f4[_0x3430bf(0x372)])};}function _0xa866cc(_0x513a22,_0x19ebf3,_0x5b4a84,_0x5b02fe,_0x104cc8){const _0x4b79c8=_0x412385;let _0x70adb=_0x513a22['reduce']((_0x4b2a58,_0x413532)=>{const _0x3c9567=_0x28e1;let _0xa668e3=_0x4b2a58[_0x4b2a58[_0x3c9567(0x372)]-0x1],{id:_0x140b41}=_0xa668e3??{},{id:_0x54bd8f,type:_0x45ff89}=_0x413532,_0x1ed690=_0x413532[_0x3c9567(0x1fc)];if(_0x140b41&&_0x140b41!==_0x54bd8f)throw Error(_0x3c9567(0x35f)+_0x140b41+_0x3c9567(0x290)+_0x54bd8f+'.');if(!_0xa668e3)return[{'id':_0x54bd8f,'type':_0x45ff89,'params':{'unitId':_0x1ed690[_0x3c9567(0x20e)],'textRanges':_0x1ed690[_0x3c9567(0x43b)],'actions':_0x1ed690[_0x3c9567(0x1aa)]}}];let _0x598050=_0xa668e3[_0x3c9567(0x1fc)];return _0x4a956c(_0x598050,_0x1ed690)?[..._0x4b2a58[_0x3c9567(0x353)](0x0,-0x1),{..._0xa668e3,'id':_0x54bd8f,'type':_0x45ff89,'params':{'unitId':_0x1ed690[_0x3c9567(0x20e)],'textRanges':_0x1ed690[_0x3c9567(0x43b)],'actions':_0x1d7efa[_0x3c9567(0x213)][_0x3c9567(0x3a5)](_0x598050[_0x3c9567(0x1aa)],_0x1ed690['actions'])}}]:[..._0x4b2a58,{'id':_0x54bd8f,'type':_0x45ff89,'params':{'unitId':_0x1ed690[_0x3c9567(0x20e)],'textRanges':_0x1ed690[_0x3c9567(0x43b)],'actions':_0x1ed690['actions']}}];},[]),_0x25c4ca=_0x104cc8[_0x4b79c8(0x517)](),_0x5af9d6=(_0x25c4ca==null?void 0x0:_0x25c4ca['userID'])??'unknown',_0xf85ea7=(_0x25c4ca==null?void 0x0:_0x25c4ca[_0x4b79c8(0x24a)])??_0x4b79c8(0x4cc);return{'changeset':{'unitID':_0x19ebf3,'type':(0x0,_0x1c67cc[_0x4b79c8(0x3bd)])(_0x5b4a84[_0x4b79c8(0x48f)](_0x19ebf3)),'baseRev':_0x5b02fe[_0x4b79c8(0x31f)](_0x19ebf3),'revision':0x0,'userID':_0x5af9d6,'memberID':_0xf85ea7,'mutations':_0x70adb},'pendingMutations':_0x513a22[_0x4b79c8(0x353)](_0x513a22[_0x4b79c8(0x372)])};}function _0x4a956c(_0x323771,_0x39ae79){return!_0x4ffbfa(_0x323771)&&!_0x4ffbfa(_0x39ae79)&&_0x5a5a5e(_0x323771['actions'],_0x39ae79['actions']);}function _0x4ffbfa(_0x58a958){const _0x44bdbb=_0x412385;return _0x58a958[_0x44bdbb(0x495)]!==void 0x0;}function _0x5a5a5e(_0x2c380f,_0x3180f5){return _0x3956ea(_0x2c380f)&&_0x3956ea(_0x3180f5)&&!_0x4a52bc(_0x2c380f)&&!_0x4a52bc(_0x3180f5)&&!_0x2845c3(_0x2c380f)&&!_0x2845c3(_0x3180f5);}function _0x3956ea(_0x19a93f){const _0x56294f=_0x412385;return _0x29ce78(_0x19a93f)[_0x56294f(0x23d)](_0x13fe6d=>_0x36245b(_0x13fe6d)&&_0x13fe6d['et']==='text-x');}function _0x2845c3(_0x490d5b){const _0x5d35f3=_0x412385;return _0x29ce78(_0x490d5b)['some'](_0x2eec02=>Array[_0x5d35f3(0x3ed)](_0x2eec02)||typeof _0x2eec02==_0x5d35f3(0x255)||typeof _0x2eec02==_0x5d35f3(0x343));}function _0x4a52bc(_0x427b27){const _0x4e1721=_0x412385;return _0x29ce78(_0x427b27)[_0x4e1721(0x23d)](_0x3b6dde=>!_0x36245b(_0x3b6dde)||_0x3b6dde['et']!=='text-x'||!Array[_0x4e1721(0x3ed)](_0x3b6dde['e'])?!0x1:_0x3b6dde['e'][_0x4e1721(0x23d)](_0xee2eff=>!_0x36245b(_0xee2eff)||!_0x36245b(_0xee2eff[_0x4e1721(0x34b)])?!0x1:Object[_0x4e1721(0x3ea)][_0x4e1721(0x44d)][_0x4e1721(0x25a)](_0xee2eff['body'],_0x4e1721(0x246))||Object[_0x4e1721(0x3ea)][_0x4e1721(0x44d)][_0x4e1721(0x25a)](_0xee2eff['body'],'columnGroups')||Object[_0x4e1721(0x3ea)][_0x4e1721(0x44d)][_0x4e1721(0x25a)](_0xee2eff[_0x4e1721(0x34b)],_0x4e1721(0x2cd))));}function _0x29ce78(_0x4cc7dd){const _0xd17e89=_0x412385;if(!Array[_0xd17e89(0x3ed)](_0x4cc7dd))return[];let _0x217958=_0x4cc7dd[_0xd17e89(0x2f3)]('body')?_0x4cc7dd:_0x4cc7dd[_0xd17e89(0x451)](_0x281419=>Array['isArray'](_0x281419)&&_0x281419[_0xd17e89(0x2f3)](_0xd17e89(0x34b)));if(!Array[_0xd17e89(0x3ed)](_0x217958))return[];let _0x2438e5=_0x217958['indexOf']('body');return _0x2438e5===-0x1?[]:_0x217958['slice'](_0x2438e5+0x1);}function _0x36245b(_0xff9896){const _0x5115bc=_0x412385;return typeof _0xff9896==_0x5115bc(0x42c)&&!!_0xff9896&&!Array[_0x5115bc(0x3ed)](_0xff9896);}function _0x51504a(_0x314673,_0x2205ff){const _0x57385e=_0x412385;let _0x4d2c71=new _0x150fe7['ReplaySubject'](0x1);return setTimeout(()=>_0x4d2c71['next'](_0x2205ff),_0x314673),_0x4d2c71[_0x57385e(0x20b)]()[_0x57385e(0x21b)]((0x0,_0x150fe7[_0x57385e(0x43a)])(0x1));}var _0x2c0d7c,_0x12a0be,_0x4c886c;let _0x559ad3=function(_0x4b4ad3){const _0x16db6b=_0x412385;return _0x4b4ad3['NOT_COLLAB']=_0x16db6b(0x278),_0x4b4ad3[_0x16db6b(0x442)]=_0x16db6b(0x324),_0x4b4ad3[_0x16db6b(0x3ba)]='pending',_0x4b4ad3[_0x16db6b(0x2d5)]=_0x16db6b(0x2a1),_0x4b4ad3[_0x16db6b(0x465)]=_0x16db6b(0x27e),_0x4b4ad3['FETCH_MISS']=_0x16db6b(0x3ce),_0x4b4ad3['CONFLICT']=_0x16db6b(0x230),_0x4b4ad3['OFFLINE']=_0x16db6b(0x3a0),_0x4b4ad3;}({}),_0x376611=0x4e20,_0x483818=0x2bf20;var _0x3ac332=class{constructor(_0x53f9ba,_0x1ef59c,_0x251435,_0x3d699b,_0x35f4d4,_0x39cf18,_0x148475,_0x10c3d8,_0x3d8942){const _0x14bb6d=_0x412385;this[_0x14bb6d(0x2c1)]=_0x53f9ba,this[_0x14bb6d(0x2db)]=_0x1ef59c,this['_handler']=_0x35f4d4,this[_0x14bb6d(0x4ed)]=_0x39cf18,this[_0x14bb6d(0x4ba)]=_0x148475,this[_0x14bb6d(0x4b7)]=_0x10c3d8,this['_localCacheService']=_0x3d8942,_0x4a1990(this,'_awaitingChangeset',null),_0x4a1990(this,_0x14bb6d(0x1d0),[]),this[_0x14bb6d(0x231)]=_0x251435,this[_0x14bb6d(0x1d0)]=_0x3d699b;}['_checkMissing'](_0x2297b6){const _0x321559=_0x412385;let _0x51be75=this[_0x321559(0x4b7)]['getCurrentRevOfUnit'](this[_0x321559(0x2c1)]);return _0x2297b6[_0x321559(0x1f5)]>_0x51be75+0x1&&(this['_handler'][_0x321559(0x49c)]({'from':_0x51be75,'to':_0x2297b6[_0x321559(0x1f5)]-0x1}),!0x0);}[_0x412385(0x1d6)](_0x1726bc){const _0x58875c=_0x412385;this[_0x58875c(0x4ba)]['transformUndoRedo'](this[_0x58875c(0x2c1)],_0x1726bc);}[_0x412385(0x3d2)](_0x2fb900){const _0x168364=_0x412385;var _0x5dd236,_0x513249;(_0x5dd236=(_0x513249=this['_handler'])[_0x168364(0x330)])==null||_0x5dd236['call'](_0x513249,_0x2fb900);}[_0x412385(0x4a3)](_0x1c14a3){const _0x1b73c0=_0x412385;var _0x4137cb,_0x1b8b66;return((_0x4137cb=(_0x1b8b66=this[_0x1b73c0(0x477)])[_0x1b73c0(0x2ca)])==null?void 0x0:_0x4137cb[_0x1b73c0(0x25a)](_0x1b8b66,_0x1c14a3))??null;}[_0x412385(0x4d4)](_0xdb18b2){const _0x5152d3=_0x412385;var _0xb484ca,_0x452f4c;return(_0xb484ca=(_0x452f4c=this[_0x5152d3(0x477)])['onTransformIME'])==null?void 0x0:_0xb484ca['call'](_0x452f4c,_0xdb18b2);}['_transformStateCache'](_0xf22a20){const _0x53a461=_0x412385;var _0x2aafd7,_0x9b213b;return(_0x2aafd7=(_0x9b213b=this[_0x53a461(0x477)])['onTransformState'])==null?void 0x0:_0x2aafd7['call'](_0x9b213b,_0xf22a20);}[_0x412385(0x454)](_0x4cb90f){const _0x20dae7=_0x412385;var _0x35cdcc,_0x4181c7;return((_0x35cdcc=(_0x4181c7=this[_0x20dae7(0x477)])[_0x20dae7(0x3b6)])==null?void 0x0:_0x35cdcc['call'](_0x4181c7,_0x4cb90f))??_0x4cb90f;}[_0x412385(0x277)](_0x50c773){const _0x1ddd5c=_0x412385;var _0x5b1883,_0x2364f2;return((_0x5b1883=(_0x2364f2=this[_0x1ddd5c(0x477)])[_0x1ddd5c(0x49d)])==null?void 0x0:_0x5b1883[_0x1ddd5c(0x25a)](_0x2364f2,_0x50c773))??_0x50c773;}[_0x412385(0x2f5)](_0x3fa3be){const _0x20333c=_0x412385;if(this['type']===_0x1d7efa['UniverInstanceType']['UNIVER_DOC']){let {unitID:_0x10c09b,mutations:_0x405fc5,memberID:_0x311ddb}=_0x3fa3be,_0x3dee74=_0x405fc5[_0x20333c(0x372)]>0x0?_0x405fc5[0x0][_0x20333c(0x1fc)][_0x20333c(0x43b)]:[];if(Array[_0x20333c(0x3ed)](_0x3dee74)&&_0x3dee74['length']>0x0){var _0x578f91,_0xaa74d7;(_0x578f91=(_0xaa74d7=this[_0x20333c(0x477)])[_0x20333c(0x26f)])==null||_0x578f91[_0x20333c(0x25a)](_0xaa74d7,{'unitID':_0x10c09b,'memberID':_0x311ddb,'textRanges':_0x3dee74});}}}[_0x412385(0x229)](){const _0x428237=_0x412385;var _0x968d7b;(_0x968d7b=this['_localCacheService'])==null||_0x968d7b[_0x428237(0x1e7)](this[_0x428237(0x2c1)],this[_0x428237(0x2db)],this['_awaitingChangeset'],this[_0x428237(0x1d0)]);}[_0x412385(0x476)](){const _0x1181ba=_0x412385;return this[_0x1181ba(0x4b7)]['getCurrentRevOfUnit'](this[_0x1181ba(0x2c1)]);}[_0x412385(0x487)](){const _0x49726b=_0x412385;this[_0x49726b(0x4b7)][_0x49726b(0x3fe)](this[_0x49726b(0x2c1)]);}[_0x412385(0x4b6)](_0x751293){const _0x2a0536=_0x412385;let _0x293719=this[_0x2a0536(0x454)](_0x751293);_0x293719=this[_0x2a0536(0x277)](_0x293719);let _0x1ed7c9=this['_prepareTransformSelections'](_0x293719),_0x21adc5=(0x0,_0x1d7efa[_0x2a0536(0x360)])(_0x293719[_0x2a0536(0x2ff)],this[_0x2a0536(0x4ed)],{'fromCollab':!0x0});if(!_0x21adc5['result'])throw _0x1ed7c9==null||_0x1ed7c9[_0x2a0536(0x41e)](),_0x21adc5[_0x2a0536(0x441)]instanceof Error?_0x21adc5[_0x2a0536(0x441)]:Error(_0x21adc5['error']??'[CollaborationState]:\x20apply\x20error!');_0x1ed7c9==null||_0x1ed7c9['commit'](),this['_transformIMECache'](_0x293719),this[_0x2a0536(0x362)](_0x293719),this[_0x2a0536(0x1d6)](_0x751293),this[_0x2a0536(0x3d2)](_0x293719),this[_0x2a0536(0x2f5)](_0x293719),this[_0x2a0536(0x487)]();}};let _0x4960c5=class extends _0x3ac332{constructor(_0x5ebc29,_0x5dc265,_0x5a000e,_0x3b6bb1,_0x571a5d,_0x300260,_0x146b2f,_0x3a68f4,_0x2fe58d,_0x189a06){const _0x5792e5=_0x412385;super(_0x5ebc29,_0x5dc265,null,[],_0x5a000e,_0x146b2f,_0x300260,_0x3b6bb1,_0x189a06),this[_0x5792e5(0x22c)]=_0x571a5d,this[_0x5792e5(0x3a7)]=_0x3a68f4,this[_0x5792e5(0x347)]=_0x2fe58d,this[_0x5792e5(0x2b8)]=_0x189a06,_0x4a1990(this,_0x5792e5(0x34f),'synced');}['appendMutation'](_0x4b83e2){const _0x4aeddd=_0x412385;let _0x2875a0=this[_0x4aeddd(0x22c)][_0x4aeddd(0x268)](_0x2ff232,this[_0x4aeddd(0x2c1)],this[_0x4aeddd(0x2db)],[_0x4b83e2],this[_0x4aeddd(0x477)]);return _0x2875a0[_0x4aeddd(0x42b)](),_0x2875a0[_0x4aeddd(0x229)](),_0x2875a0;}['onRemoteChangeset'](_0x51a802){const _0x245eb8=_0x412385;if(this[_0x245eb8(0x51a)](_0x51a802))return this['_injector'][_0x245eb8(0x268)](_0x1c1054,this[_0x245eb8(0x2c1)],this[_0x245eb8(0x2db)],null,[],null,[_0x51a802],this[_0x245eb8(0x477)]);try{let _0x45ed08=this[_0x245eb8(0x347)][_0x245eb8(0x414)](_0x51a802,[_0x1c67cc[_0x245eb8(0x47b)]]);if((0x0,_0x1c67cc[_0x245eb8(0x344)])(_0x45ed08)){let {c1Prime:_0x5d2caf}=_0x45ed08;return this[_0x245eb8(0x4b6)](_0x5d2caf),this;}throw _0x45ed08[_0x245eb8(0x441)];}catch(_0x23ba2c){return this['_logService'][_0x245eb8(0x441)](_0x23ba2c),this[_0x245eb8(0x296)](!0x1);}}[_0x412385(0x296)](_0x15e639){const _0x65037f=_0x412385;return this[_0x65037f(0x22c)]['createInstance'](_0x1ab0fd,this[_0x65037f(0x2c1)],this[_0x65037f(0x2db)],null,[],this[_0x65037f(0x477)],_0x15e639);}['onRemoteAck'](_0x9d886a){const _0x4586ea=_0x412385;if(_0x9d886a[_0x4586ea(0x1f5)]<=this['_getCurrentRevision']())return this;throw Error(_0x4586ea(0x221));}[_0x412385(0x3fa)](){const _0x48e549=_0x412385;throw Error(_0x48e549(0x50a));}[_0x412385(0x514)](){return this;}[_0x412385(0x3c0)](){const _0x1d4b10=_0x412385;return this['_injector']['createInstance'](_0x431128,this[_0x1d4b10(0x2c1)],this[_0x1d4b10(0x2db)],null,[],this[_0x1d4b10(0x477)]);}[_0x412385(0x474)](){return this;}[_0x412385(0x1be)](){const _0x1478f2=_0x412385;throw Error(_0x1478f2(0x424));}['fetchMiss'](){const _0x5db4d8=_0x412385;let _0x5a954e=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this[_0x5db4d8(0x477)][_0x5db4d8(0x49c)]({'from':_0x5a954e,'to':0x0}),this[_0x5db4d8(0x22c)][_0x5db4d8(0x268)](_0x1c1054,this[_0x5db4d8(0x2c1)],this['type'],null,[],null,[],this[_0x5db4d8(0x477)]);}};_0x4960c5=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['Injector'])),_0x34b040(0x5,_0x1d7efa[_0x412385(0x1ea)]),_0x34b040(0x6,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0x7,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x8,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0x9,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x4960c5);let _0x2ff232=_0x2c0d7c=class extends _0x3ac332{constructor(_0x31982d,_0x308a15,_0x5db2e8,_0x2fa3ac,_0x21b7ec,_0x5f32f6,_0x4ee97f,_0x42e2a6,_0x3c9596,_0x5a21a7,_0x162a64,_0x4e4b2d,_0x3049a7,_0x4364be){const _0xb2201=_0x412385;super(_0x31982d,_0x308a15,null,_0x5db2e8,_0x2fa3ac,_0x3c9596,_0x3049a7,_0x5f32f6,_0x4364be),this[_0xb2201(0x22c)]=_0x21b7ec,this[_0xb2201(0x427)]=_0x4ee97f,this[_0xb2201(0x3a7)]=_0x42e2a6,this[_0xb2201(0x309)]=_0x5a21a7,this[_0xb2201(0x347)]=_0x162a64,this[_0xb2201(0x203)]=_0x4e4b2d,_0x4a1990(this,_0xb2201(0x34f),_0xb2201(0x276)),_0x4a1990(this,_0xb2201(0x1cf),null),_0x4a1990(this,_0xb2201(0x32e),null);}[_0x412385(0x33c)](_0x2dccf6){return this['_pendingMutations']['push'](_0x2dccf6),this['_updateLocalCache'](),this;}[_0x412385(0x44c)](_0x215e29){const _0x3ff4f2=_0x412385;if(this['_checkMissing'](_0x215e29))return this[_0x3ff4f2(0x26b)](),this['_injector'][_0x3ff4f2(0x268)](_0x1c1054,this[_0x3ff4f2(0x2c1)],this['type'],null,this[_0x3ff4f2(0x1d0)],null,[_0x215e29],this['_handler']);try{let _0x2ec08e=this['_transformService'][_0x3ff4f2(0x414)](_0x215e29,this[_0x3ff4f2(0x1d0)]);if((0x0,_0x1c67cc[_0x3ff4f2(0x344)])(_0x2ec08e)){let {c1Prime:_0x55d2e2,m2Prime:_0x3dff71}=_0x2ec08e;this[_0x3ff4f2(0x4b6)](_0x55d2e2);let _0x3e5588=this['_injector'][_0x3ff4f2(0x268)](_0x2c0d7c,this['unitID'],this[_0x3ff4f2(0x2db)],_0x3dff71,this[_0x3ff4f2(0x477)]);this[_0x3ff4f2(0x26b)]();let _0x904fa3=new Date()[_0x3ff4f2(0x47c)](),_0x28fca7=this[_0x3ff4f2(0x1cf)]?Math[_0x3ff4f2(0x318)](this[_0x3ff4f2(0x1cf)]-_0x904fa3,0x0):this[_0x3ff4f2(0x21d)]();return _0x3e5588[_0x3ff4f2(0x42b)](_0x28fca7),_0x3e5588;}throw _0x2ec08e['error'];}catch(_0x2e15b1){return this[_0x3ff4f2(0x3a7)][_0x3ff4f2(0x441)](_0x2e15b1),this[_0x3ff4f2(0x296)](!0x1);}}['onRemoteAck'](_0x3b45c0){const _0x16ab4d=_0x412385;if(_0x3b45c0['revision']<=this[_0x16ab4d(0x476)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x412385(0x3fa)](){const _0xe38542=_0x412385;throw Error(_0xe38542(0x4e6));}['onRemoteRetry'](){return this;}[_0x412385(0x3c0)](){const _0x15a5c6=_0x412385;return this['_clearScheduledTask'](),this['_injector'][_0x15a5c6(0x268)](_0x431128,this[_0x15a5c6(0x2c1)],this['type'],null,this[_0x15a5c6(0x1d0)],this[_0x15a5c6(0x477)]);}['toggleOnline'](){return this;}['_schedule'](_0x18d29c){const _0x1774de=_0x412385;let _0x503898=_0x18d29c??this[_0x1774de(0x21d)]();this[_0x1774de(0x1cf)]=new Date()[_0x1774de(0x47c)]()+_0x503898,this['_sendingTimer']=setTimeout(()=>{const _0x227347=_0x1774de;this['_clearScheduledTask']();let _0x11ef36=null;switch(this['type']){case _0x1d7efa[_0x227347(0x339)][_0x227347(0x2d7)]:_0x11ef36=_0x206575(this[_0x227347(0x1d0)],this[_0x227347(0x2c1)],this['_univerInstanceService'],this['_revisionService'],this[_0x227347(0x427)]);break;case _0x1d7efa[_0x227347(0x339)]['UNIVER_DOC']:_0x11ef36=this[_0x227347(0x1d0)][_0x227347(0x42d)](_0x592cd5=>_0x592cd5['id']===_0x19f1ab['RichTextEditingMutation']['id'])?_0xa866cc(this[_0x227347(0x1d0)],this['unitID'],this['_univerInstanceService'],this[_0x227347(0x4b7)],this[_0x227347(0x427)]):_0x206575(this[_0x227347(0x1d0)],this[_0x227347(0x2c1)],this[_0x227347(0x203)],this[_0x227347(0x4b7)],this[_0x227347(0x427)]);break;case _0x1d7efa[_0x227347(0x339)][_0x227347(0x22e)]:_0x11ef36=_0x2620a9(this[_0x227347(0x1d0)],this[_0x227347(0x2c1)],this[_0x227347(0x203)],this[_0x227347(0x4b7)],this[_0x227347(0x427)]);break;case _0x1d7efa['UniverInstanceType'][_0x227347(0x4d8)]:_0x11ef36=_0x232b3c(this['_pendingMutations'],this[_0x227347(0x2c1)],this[_0x227347(0x203)],this['_revisionService'],this[_0x227347(0x427)]);break;case _0x1d7efa['UniverInstanceType'][_0x227347(0x1ad)]:_0x11ef36=_0x206575(this[_0x227347(0x1d0)],this[_0x227347(0x2c1)],this[_0x227347(0x203)],this[_0x227347(0x4b7)],this['_userManagerService']);break;case _0x1d7efa[_0x227347(0x339)][_0x227347(0x242)]:_0x11ef36=_0x206575(this['_pendingMutations'],this[_0x227347(0x2c1)],this['_univerInstanceService'],this[_0x227347(0x4b7)],this[_0x227347(0x427)]);break;default:throw Error(_0x227347(0x2c5)+this[_0x227347(0x2db)]+_0x227347(0x222));}let {changeset:_0x3ae71e,pendingMutations:_0x18530a}=_0x11ef36;this['_handler'][_0x227347(0x460)](_0x3ae71e);let _0x267298=_0x18530a[_0x227347(0x372)]?this[_0x227347(0x22c)][_0x227347(0x268)](_0x35a2a7,this[_0x227347(0x2c1)],this[_0x227347(0x2db)],_0x3ae71e,_0x18530a,this['_handler'],void 0x0):this['_injector'][_0x227347(0x268)](_0x4ebb61,this[_0x227347(0x2c1)],this[_0x227347(0x2db)],_0x3ae71e,this[_0x227347(0x477)]);_0x267298['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x267298);},_0x503898);}[_0x412385(0x21d)](){const _0x5f0d5b=_0x412385;let _0x5b0c28=this[_0x5f0d5b(0x309)][_0x5f0d5b(0x447)](_0x5270c6);return(_0x5b0c28==null?void 0x0:_0x5b0c28['sendChangesetTimeout'])??0x7d0;}[_0x412385(0x1be)](){const _0x5621cc=_0x412385;throw Error(_0x5621cc(0x3bb));}[_0x412385(0x26b)](){const _0x352693=_0x412385;this['_sendingTimer']!=null&&(clearTimeout(this[_0x352693(0x32e)]),this['_sendingTimer']=null);}[_0x412385(0x296)](_0x42f8cd){const _0x7a5dbb=_0x412385;return this['_clearScheduledTask'](),this[_0x7a5dbb(0x22c)]['createInstance'](_0x1ab0fd,this[_0x7a5dbb(0x2c1)],this[_0x7a5dbb(0x2db)],null,this['_pendingMutations'],this['_handler'],_0x42f8cd);}};_0x2ff232=_0x2c0d7c=_0xb83a([_0x34b040(0x4,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x6,(0x0,_0x1d7efa['Inject'])(_0x1d7efa['UserManagerService'])),_0x34b040(0x7,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x8,_0x1d7efa['ICommandService']),_0x34b040(0x9,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0xa,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0xb,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0xc,_0x1d7efa[_0x412385(0x1ea)]),_0x34b040(0xd,(0x0,_0x1d7efa['Optional'])(_0xad368b))],_0x2ff232);let _0x4ebb61=_0x12a0be=class extends _0x3ac332{constructor(_0xfffc3,_0x240b21,_0x4be8ac,_0x50fb05,_0x4fc3f4,_0x42017f,_0x15bdc5,_0x2a034b,_0x5cd7a4,_0x313f6b,_0x15e990){const _0x20e771=_0x412385;super(_0xfffc3,_0x240b21,_0x4be8ac,[],_0x50fb05,_0x15bdc5,_0x313f6b,_0x42017f,_0x15e990),this['_injector']=_0x4fc3f4,this[_0x20e771(0x3a7)]=_0x2a034b,this['_transformService']=_0x5cd7a4,_0x4a1990(this,_0x20e771(0x34f),_0x20e771(0x2a1)),_0x4a1990(this,_0x20e771(0x505),0x0),_0x4a1990(this,_0x20e771(0x1a9),0x0),_0x4a1990(this,_0x20e771(0x4d9),void 0x0),_0x4a1990(this,_0x20e771(0x459),void 0x0);}[_0x412385(0x33c)](_0x32e384){const _0x3f970e=_0x412385;this['_clearScheduledTask']();let _0x27c206=this['_injector'][_0x3f970e(0x268)](_0x35a2a7,this['unitID'],this[_0x3f970e(0x2db)],this[_0x3f970e(0x231)],[_0x32e384],this[_0x3f970e(0x477)],this[_0x3f970e(0x4d9)]);return _0x27c206[_0x3f970e(0x229)](),_0x27c206;}['onRemoteChangeset'](_0x1b5c27){const _0xb64999=_0x412385;if(this['_checkMissing'](_0x1b5c27))return this[_0xb64999(0x26b)](),this[_0xb64999(0x22c)]['createInstance'](_0x1c1054,this['unitID'],this['type'],this[_0xb64999(0x231)],[],null,[_0x1b5c27],this[_0xb64999(0x477)]);try{let _0x3f9a77=this[_0xb64999(0x347)]['transformChangesets']([_0x1b5c27],[this[_0xb64999(0x231)]],!0x1);if((0x0,_0x1c67cc[_0xb64999(0x305)])(_0x3f9a77)){let {c1Prime:_0x4e4aec,c2Prime:_0x45cae9}=_0x3f9a77;this[_0xb64999(0x4b6)](_0x4e4aec[0x0]),_0x45cae9[0x0][_0xb64999(0x479)]=this['_getCurrentRevision'](),this[_0xb64999(0x26b)]();let _0x388e89=this[_0xb64999(0x22c)][_0xb64999(0x268)](_0x12a0be,this[_0xb64999(0x2c1)],this[_0xb64999(0x2db)],_0x45cae9[0x0],this[_0xb64999(0x477)]);return _0x388e89[_0xb64999(0x229)](),_0x388e89;}throw _0x3f9a77[_0xb64999(0x441)];}catch(_0x59c245){return this[_0xb64999(0x3a7)][_0xb64999(0x441)](_0x59c245),this['_onConflict'](!0x1);}}[_0x412385(0x270)](_0x2c2a38){const _0x249222=_0x412385;this[_0x249222(0x26b)]();let _0x55f004=this[_0x249222(0x4b7)][_0x249222(0x31f)](this['unitID']);if(_0x2c2a38[_0x249222(0x1f5)]<=_0x55f004)return this;if(this['_checkMissing'](_0x2c2a38))return this[_0x249222(0x22c)]['createInstance'](_0x1c1054,this[_0x249222(0x2c1)],this[_0x249222(0x2db)],this[_0x249222(0x231)],[],_0x2c2a38['revision'],[],this[_0x249222(0x477)]);this[_0x249222(0x487)]();let _0x1aab08=this['_injector'][_0x249222(0x268)](_0x4960c5,this[_0x249222(0x2c1)],this[_0x249222(0x2db)],this[_0x249222(0x477)]);return _0x1aab08[_0x249222(0x229)](),_0x1aab08;}[_0x412385(0x3fa)](_0x3bfd3c){const _0x513eec=_0x412385;return this[_0x513eec(0x296)](!!(_0x3bfd3c!=null&&_0x3bfd3c[_0x513eec(0x3fb)]));}[_0x412385(0x514)](_0x31460d){const _0x4fa532=_0x412385;return this[_0x4fa532(0x1a9)]>_0x483818?this['toggleOffline']():(this['_resendTimer']=_0x51504a(this[_0x4fa532(0x505)],{'timeout':this[_0x4fa532(0x505)],'reqId':_0x31460d[_0x4fa532(0x237)]}),this[_0x4fa532(0x459)]=this[_0x4fa532(0x4d9)][_0x4fa532(0x349)](({reqId:_0x3a6ca1,timeout:_0xaf0974})=>{const _0x468e4e=_0x4fa532;this[_0x468e4e(0x205)](_0x3a6ca1,_0xaf0974);}),this);}[_0x412385(0x3c0)](){const _0x3e0bfd=_0x412385;return this['_clearScheduledTask'](),this[_0x3e0bfd(0x22c)][_0x3e0bfd(0x268)](_0x431128,this[_0x3e0bfd(0x2c1)],this[_0x3e0bfd(0x2db)],this[_0x3e0bfd(0x231)],[],this['_handler']);}[_0x412385(0x474)](){return this;}['resend'](){const _0x54af4f=_0x412385;this['_handler'][_0x54af4f(0x460)](this[_0x54af4f(0x231)]);}[_0x412385(0x296)](_0xe6ce50){const _0x20fd89=_0x412385;return this[_0x20fd89(0x26b)](),this[_0x20fd89(0x22c)][_0x20fd89(0x268)](_0x1ab0fd,this[_0x20fd89(0x2c1)],this[_0x20fd89(0x2db)],this[_0x20fd89(0x231)],[],this[_0x20fd89(0x477)],_0xe6ce50);}[_0x412385(0x205)](_0x443f9b,_0x2df497){const _0x2a59ae=_0x412385;var _0x458644;_0x443f9b===((_0x458644=this['_awaitingChangeset'])==null?void 0x0:_0x458644[_0x2a59ae(0x237)])&&(this['resend'](),this[_0x2a59ae(0x505)]=_0x2df497===0x0?0x3e8:Math['min'](_0x2df497*0x2,_0x376611),this[_0x2a59ae(0x1a9)]+=this['_resendTimeout']);}[_0x412385(0x26b)](){const _0x17394a=_0x412385;var _0x58011a;(_0x58011a=this[_0x17394a(0x459)])==null||_0x58011a[_0x17394a(0x3c6)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x4ebb61=_0x12a0be=_0xb83a([_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['RevisionService'])),_0x34b040(0x6,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0x7,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x8,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0x9,_0x1d7efa['IUndoRedoService']),_0x34b040(0xa,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x4ebb61);let _0x35a2a7=_0x4c886c=class extends _0x3ac332{constructor(_0x3e94f1,_0x500c56,_0x3e0982,_0x2e695f,_0x4091b5,_0x4654cf,_0x16b443,_0x4c3949,_0x2a400b,_0x33f49f,_0x325e19,_0x1759c1,_0x164486){const _0x4ec61e=_0x412385;super(_0x3e94f1,_0x500c56,_0x3e0982,_0x2e695f,_0x4091b5,_0x2a400b,_0x1759c1,_0x4c3949,_0x164486),this[_0x4ec61e(0x22c)]=_0x16b443,this[_0x4ec61e(0x3a7)]=_0x33f49f,this['_transformService']=_0x325e19,this[_0x4ec61e(0x2b8)]=_0x164486,_0x4a1990(this,_0x4ec61e(0x34f),_0x4ec61e(0x27e)),_0x4a1990(this,'_resendTimeout',0x0),_0x4a1990(this,'_maxTotalRetryTimeout',0x0),_0x4a1990(this,_0x4ec61e(0x4d9),void 0x0),_0x4a1990(this,_0x4ec61e(0x459),void 0x0),_0x4654cf&&(this['_resendTimer']=_0x4654cf,this[_0x4ec61e(0x459)]=this[_0x4ec61e(0x4d9)]['subscribe'](({reqId:_0x135eeb,timeout:_0x392578})=>{const _0x3f7606=_0x4ec61e;this[_0x3f7606(0x205)](_0x135eeb,_0x392578);}));}[_0x412385(0x33c)](_0x1e70aa){const _0x32d1e6=_0x412385;return this[_0x32d1e6(0x1d0)][_0x32d1e6(0x1e0)](_0x1e70aa),this;}[_0x412385(0x44c)](_0xd9fae9){const _0x5d07e6=_0x412385;if(this[_0x5d07e6(0x51a)](_0xd9fae9))return this[_0x5d07e6(0x26b)](),this[_0x5d07e6(0x22c)][_0x5d07e6(0x268)](_0x1c1054,this[_0x5d07e6(0x2c1)],this[_0x5d07e6(0x2db)],this[_0x5d07e6(0x231)],this[_0x5d07e6(0x1d0)],null,[_0xd9fae9],this[_0x5d07e6(0x477)]);try{let _0x4fbd30=this[_0x5d07e6(0x347)]['transformChangesets']([_0xd9fae9],[this['_awaitingChangeset']],!0x1);if((0x0,_0x1c67cc[_0x5d07e6(0x305)])(_0x4fbd30)){let {c1Prime:_0x174dd5,c2Prime:_0x3e1d7d}=_0x4fbd30,_0x4aa13c=this[_0x5d07e6(0x347)][_0x5d07e6(0x414)](_0x174dd5[0x0],this[_0x5d07e6(0x1d0)]);if((0x0,_0x1c67cc[_0x5d07e6(0x344)])(_0x4aa13c)){let {c1Prime:_0x3fbf71,m2Prime:_0x21cc03}=_0x4aa13c;return this[_0x5d07e6(0x4b6)](_0x3fbf71),_0x3e1d7d[0x0][_0x5d07e6(0x479)]=this[_0x5d07e6(0x476)](),this[_0x5d07e6(0x26b)](),this['_injector'][_0x5d07e6(0x268)](_0x4c886c,this['unitID'],this[_0x5d07e6(0x2db)],_0x3e1d7d[0x0],_0x21cc03,this['_handler'],void 0x0);}throw _0x4aa13c[_0x5d07e6(0x441)];}throw _0x4fbd30[_0x5d07e6(0x441)];}catch(_0x584dc9){return this[_0x5d07e6(0x3a7)][_0x5d07e6(0x441)](_0x584dc9),this[_0x5d07e6(0x296)](!0x1);}}[_0x412385(0x270)](_0x410232){const _0x34d8cb=_0x412385;this[_0x34d8cb(0x26b)]();let _0x4dd629=this['_getCurrentRevision']();if(_0x410232['revision']<=_0x4dd629)return this;if(this[_0x34d8cb(0x51a)](_0x410232))return this[_0x34d8cb(0x22c)][_0x34d8cb(0x268)](_0x1c1054,this[_0x34d8cb(0x2c1)],this[_0x34d8cb(0x2db)],this['_awaitingChangeset'],this[_0x34d8cb(0x1d0)],_0x410232[_0x34d8cb(0x1f5)],[],this[_0x34d8cb(0x477)]);this['_incrementRevisionNumber']();let _0x5b1563=this[_0x34d8cb(0x22c)][_0x34d8cb(0x268)](_0x2ff232,this[_0x34d8cb(0x2c1)],this[_0x34d8cb(0x2db)],this[_0x34d8cb(0x1d0)],this[_0x34d8cb(0x477)]);return _0x5b1563['_schedule'](),_0x5b1563[_0x34d8cb(0x229)](),_0x5b1563;}[_0x412385(0x3fa)](_0x473787){const _0x56065c=_0x412385;return this[_0x56065c(0x296)](!!(_0x473787!=null&&_0x473787['isPermissionRej']));}[_0x412385(0x514)](_0x591991){const _0x53b9ae=_0x412385;return this[_0x53b9ae(0x1a9)]>_0x483818?this['toggleOffline']():(this[_0x53b9ae(0x4d9)]=_0x51504a(this[_0x53b9ae(0x505)],{'timeout':this['_resendTimeout'],'reqId':_0x591991[_0x53b9ae(0x237)]}),this[_0x53b9ae(0x459)]=this[_0x53b9ae(0x4d9)][_0x53b9ae(0x349)](({reqId:_0x62c320,timeout:_0x23c6ad})=>{const _0x247808=_0x53b9ae;this[_0x247808(0x205)](_0x62c320,_0x23c6ad);}),this);}[_0x412385(0x3c0)](){const _0x1b5e4c=_0x412385;return this[_0x1b5e4c(0x26b)](),this[_0x1b5e4c(0x22c)][_0x1b5e4c(0x268)](_0x431128,this['unitID'],this[_0x1b5e4c(0x2db)],this[_0x1b5e4c(0x231)],this['_pendingMutations'],this['_handler']);}[_0x412385(0x474)](){return this;}[_0x412385(0x1be)](){const _0x518c9b=_0x412385;this[_0x518c9b(0x477)][_0x518c9b(0x460)](this[_0x518c9b(0x231)]);}['_onConflict'](_0x18b2b9){const _0x520807=_0x412385;return this[_0x520807(0x26b)](),this[_0x520807(0x22c)]['createInstance'](_0x1ab0fd,this[_0x520807(0x2c1)],this[_0x520807(0x2db)],null,this[_0x520807(0x1d0)],this['_handler'],_0x18b2b9);}[_0x412385(0x205)](_0x566205,_0x2ea5f6){const _0x2c099f=_0x412385;var _0x46832a;_0x566205===((_0x46832a=this['_awaitingChangeset'])==null?void 0x0:_0x46832a[_0x2c099f(0x237)])&&(this[_0x2c099f(0x1be)](),this['_resendTimeout']=_0x2ea5f6===0x0?0x3e8:Math['min'](_0x2ea5f6*0x2,_0x376611),this['_maxTotalRetryTimeout']+=this[_0x2c099f(0x505)]);}['_clearScheduledTask'](){const _0x3062c0=_0x412385;var _0x79d7b8;(_0x79d7b8=this['_sender'])==null||_0x79d7b8[_0x3062c0(0x3c6)](),this[_0x3062c0(0x505)]=0x0,this[_0x3062c0(0x1a9)]=0x0;}};_0x35a2a7=_0x4c886c=_0xb83a([_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x7,(0x0,_0x1d7efa['Inject'])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x8,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0x9,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xa,_0x1c67cc['ITransformService']),_0x34b040(0xb,_0x1d7efa[_0x412385(0x1ea)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x35a2a7);let _0x1ab0fd=class extends _0x3ac332{constructor(_0x51c215,_0x30ffcc,_0x4036e5,_0x44d2f2,_0x24d267,_0x3aa299=!0x1,_0x4f9b69,_0x3d2378,_0x43280f,_0xf68759,_0x2da697,_0x5734b6,_0x5a1427){const _0x4acddd=_0x412385;super(_0x51c215,_0x30ffcc,_0x4036e5,_0x44d2f2,_0x24d267,_0x3d2378,_0x43280f,_0xf68759,_0x5a1427),this['_isPermissionRej']=_0x3aa299,this[_0x4acddd(0x435)]=_0x4f9b69,this['_localeService']=_0x2da697,this[_0x4acddd(0x373)]=_0x5734b6,this['localCacheService']=_0x5a1427,_0x4a1990(this,_0x4acddd(0x34f),'conflict'),this['_disableEditing'](),this[_0x4acddd(0x3c7)](),this[_0x4acddd(0x1f4)]();}['appendMutation'](){return this;}[_0x412385(0x44c)](){return this;}[_0x412385(0x270)](){return this;}[_0x412385(0x3fa)](){return this;}[_0x412385(0x514)](){return this;}[_0x412385(0x3c0)](){return this;}[_0x412385(0x474)](){return this;}['resend'](){const _0x1d6627=_0x412385;throw Error(_0x1d6627(0x4a5));}async['_prepareConflictRecovery'](){const _0x50cabb=_0x412385;var _0x59d49d,_0x3e0fe0;await((_0x59d49d=this[_0x50cabb(0x1e5)])==null||(_0x3e0fe0=_0x59d49d[_0x50cabb(0x46c)])==null?void 0x0:_0x3e0fe0[_0x50cabb(0x25a)](_0x59d49d,this['unitID'],_0x50cabb(0x230))[_0x50cabb(0x1c5)](()=>void 0x0));try{var _0x447b55;await((_0x447b55=this[_0x50cabb(0x1e5)])==null?void 0x0:_0x447b55[_0x50cabb(0x332)](this[_0x50cabb(0x2c1)]));}catch{this['_collaborationUIEventService'][_0x50cabb(0x30b)]({'id':_0x50cabb(0x369),'unitID':this[_0x50cabb(0x2c1)]});return;}this[_0x50cabb(0x348)]();}[_0x412385(0x3c7)](){const _0x330f7f=_0x412385;this[_0x330f7f(0x373)][_0x330f7f(0x30b)]({'id':_0x330f7f(0x28e)});}[_0x412385(0x348)](){const _0x57e94f=_0x412385;this['_isPermissionRej']?this[_0x57e94f(0x373)][_0x57e94f(0x30b)]({'id':_0x57e94f(0x1df)}):this[_0x57e94f(0x373)][_0x57e94f(0x30b)]({'id':_0x57e94f(0x4be)});}[_0x412385(0x312)](){const _0xb34ce=_0x412385;this[_0xb34ce(0x435)]['updatePermissionPoint'](new _0x7fdba4[(_0xb34ce(0x46e))](this[_0xb34ce(0x2c1)])['id'],!0x1);}};_0x1ab0fd=_0xb83a([_0x34b040(0x6,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x452)])),_0x34b040(0x7,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0x8,_0x1d7efa[_0x412385(0x1ea)]),_0x34b040(0x9,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0xa,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0xb,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x1ab0fd);let _0x431128=class extends _0x3ac332{constructor(_0x46d108,_0x5ad959,_0x46ffae,_0x204aca,_0x2c1d59,_0x12cbb4,_0x1e6651,_0x358df2,_0x24c8ee,_0x169ba2){const _0x534387=_0x412385;super(_0x46d108,_0x5ad959,_0x46ffae,_0x204aca,_0x2c1d59,_0x358df2,_0x24c8ee,_0x1e6651,_0x169ba2),this['_injector']=_0x12cbb4,_0x4a1990(this,'status',_0x534387(0x3a0));}[_0x412385(0x33c)](_0x49e275){const _0x2086db=_0x412385;return this[_0x2086db(0x1d0)][_0x2086db(0x1e0)](_0x49e275),this[_0x2086db(0x229)](),this;}[_0x412385(0x44c)](_0x30c39f){const _0x1ea41d=_0x412385;throw Error(_0x1ea41d(0x1f6));}[_0x412385(0x270)](){const _0x5a52e6=_0x412385;throw Error(_0x5a52e6(0x3ff));}['onRemoteRej'](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x412385(0x514)](){return this;}[_0x412385(0x3c0)](){return this;}[_0x412385(0x474)](){const _0x51032d=_0x412385;let {_injector:_0x520eb0,_pendingMutations:_0x110b0c,_awaitingChangeset:_0x2fbf75,unitID:_0xdc6b13,_handler:_0x310647,type:_0x213daa}=this,_0x3a33e9=_0x412ea7(_0x520eb0,_0xdc6b13,_0x213daa,_0x2fbf75,_0x110b0c,_0x310647);return _0x3a33e9 instanceof _0x2ff232?_0x3a33e9[_0x51032d(0x42b)]():(_0x3a33e9 instanceof _0x35a2a7||_0x3a33e9 instanceof _0x4ebb61)&&_0x3a33e9[_0x51032d(0x1be)](),_0x3a33e9;}[_0x412385(0x1be)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x431128=_0xb83a([_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['RevisionService'])),_0x34b040(0x7,_0x1d7efa['ICommandService']),_0x34b040(0x8,_0x1d7efa['IUndoRedoService']),_0x34b040(0x9,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x431128);let _0x1c1054=class extends _0x3ac332{constructor(_0x55c9d4,_0x34a013,_0x4dfcc1,_0x370843,_0x1cf3c8,_0x486c85,_0x1d7d57,_0x4353da,_0x3e78c2,_0xbe08bf,_0x531db1,_0x58dc15,_0x6cbace,_0x4279a6){const _0x4923a4=_0x412385;super(_0x55c9d4,_0x34a013,_0x4dfcc1,_0x370843,_0x1d7d57,_0x531db1,_0x58dc15,_0x3e78c2,_0x4279a6),this['_acknowledgedAwaitingRevision']=_0x1cf3c8,this['_queuedRemoteChangesets']=_0x486c85,this[_0x4923a4(0x22c)]=_0x4353da,this['_logService']=_0xbe08bf,this[_0x4923a4(0x347)]=_0x6cbace,this[_0x4923a4(0x2b8)]=_0x4279a6,_0x4a1990(this,_0x4923a4(0x34f),_0x4923a4(0x3ce));}[_0x412385(0x32c)](_0x15eceb){const _0x1814c0=_0x412385;try{if(this[_0x1814c0(0x3f1)](_0x15eceb)['missingChangesets'])throw Error(_0x1814c0(0x30a));if(this[_0x1814c0(0x3f1)]([...this['_queuedRemoteChangesets']][_0x1814c0(0x2b5)]((_0x2635d7,_0x3b92d5)=>_0x2635d7[_0x1814c0(0x1f5)]-_0x3b92d5[_0x1814c0(0x1f5)]))['missingChangesets'])return this[_0x1814c0(0x2bf)]=[],this[_0x1814c0(0x229)](),this[_0x1814c0(0x477)][_0x1814c0(0x49c)]({'from':this[_0x1814c0(0x476)](),'to':0x0}),this;let _0x3aec7d=this[_0x1814c0(0x231)],_0x2c5cf7=this[_0x1814c0(0x1d0)],_0x4772a3;if(_0x3aec7d&&_0x2c5cf7[_0x1814c0(0x372)]!==0x0)_0x4772a3=this[_0x1814c0(0x22c)]['createInstance'](_0x35a2a7,this[_0x1814c0(0x2c1)],this[_0x1814c0(0x2db)],_0x3aec7d,_0x2c5cf7,this['_handler'],void 0x0);else{if(_0x3aec7d&&_0x2c5cf7['length']===0x0)_0x3aec7d[_0x1814c0(0x479)]=this['_getCurrentRevision'](),_0x4772a3=this[_0x1814c0(0x22c)][_0x1814c0(0x268)](_0x4ebb61,this[_0x1814c0(0x2c1)],this['type'],_0x3aec7d,this[_0x1814c0(0x477)]);else{if(_0x2c5cf7[_0x1814c0(0x372)]!==0x0){let _0x47c6f7=this[_0x1814c0(0x22c)]['createInstance'](_0x2ff232,this[_0x1814c0(0x2c1)],this[_0x1814c0(0x2db)],_0x2c5cf7,this[_0x1814c0(0x477)]);_0x47c6f7[_0x1814c0(0x42b)](),_0x4772a3=_0x47c6f7;}else _0x4772a3=this['_injector'][_0x1814c0(0x268)](_0x4960c5,this[_0x1814c0(0x2c1)],this['type'],this[_0x1814c0(0x477)]);}}return _0x4772a3[_0x1814c0(0x229)](),_0x4772a3;}catch(_0x2430da){return this[_0x1814c0(0x3a7)][_0x1814c0(0x441)](_0x1814c0(0x218),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2430da),this[_0x1814c0(0x22c)]['createInstance'](_0x1ab0fd,this['unitID'],this[_0x1814c0(0x2db)],this['_awaitingChangeset'],this[_0x1814c0(0x1d0)],this[_0x1814c0(0x477)],!0x1);}}['_handleRemoteChangesets'](_0x4dbb10){const _0x534fff=_0x412385;this[_0x534fff(0x37a)]();for(let _0x22a40d=0x0;_0x22a40d<_0x4dbb10[_0x534fff(0x372)];_0x22a40d++){let _0x407d94=_0x4dbb10[_0x22a40d],_0x4f79ee=this['_getCurrentRevision']();if(!(_0x407d94[_0x534fff(0x1f5)]<=_0x4f79ee)){if(_0x407d94['revision']>_0x4f79ee+0x1)return{'missingChangesets':!0x0};if(this[_0x534fff(0x249)](_0x407d94)){this[_0x534fff(0x461)]();continue;}this[_0x534fff(0x240)](_0x407d94),this[_0x534fff(0x37a)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x20040a){const _0x445554=_0x412385;let _0x32d6b0=_0x20040a,_0x497c66=this[_0x445554(0x231)];if(_0x497c66){let _0x153e02=this[_0x445554(0x347)][_0x445554(0x352)]([_0x20040a],[_0x497c66],!0x1);if(!(0x0,_0x1c67cc['isTransformChangesetsSuccess'])(_0x153e02))throw _0x153e02[_0x445554(0x441)];_0x32d6b0=_0x153e02[_0x445554(0x26c)][0x0],_0x497c66=_0x153e02[_0x445554(0x23f)][0x0];}let _0x9f3f2e=this[_0x445554(0x1d0)];if(_0x9f3f2e['length']){let _0x25f7e4=this[_0x445554(0x347)][_0x445554(0x414)](_0x32d6b0,_0x9f3f2e);if(!(0x0,_0x1c67cc['isTransformMutationsWithChangesetSuccess'])(_0x25f7e4))throw _0x25f7e4[_0x445554(0x441)];_0x32d6b0=_0x25f7e4[_0x445554(0x26c)],_0x9f3f2e=_0x25f7e4['m2Prime'];}this[_0x445554(0x4b6)](_0x32d6b0),_0x497c66&&(_0x497c66[_0x445554(0x479)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x497c66,this[_0x445554(0x1d0)]=_0x9f3f2e;}['_acknowledgeAwaitingIfReady'](){const _0x154b28=_0x412385;if(!this[_0x154b28(0x231)]||this[_0x154b28(0x39c)]==null)return;let _0x299b4e=this[_0x154b28(0x476)]();if(this['_acknowledgedAwaitingRevision']<=_0x299b4e)throw Error(_0x154b28(0x2c7)+this['_acknowledgedAwaitingRevision']+'.');this[_0x154b28(0x39c)]===_0x299b4e+0x1&&this[_0x154b28(0x461)]();}[_0x412385(0x461)](){const _0x30bc94=_0x412385;this[_0x30bc94(0x487)](),this[_0x30bc94(0x231)]=null,this[_0x30bc94(0x39c)]=null;}[_0x412385(0x249)](_0x1d4499){const _0x3ecf5f=_0x412385;let _0x13a2aa=this[_0x3ecf5f(0x231)];return!_0x13a2aa||!_0x13a2aa[_0x3ecf5f(0x1e6)]||_0x13a2aa['reqId']===null||_0x13a2aa[_0x3ecf5f(0x237)]===void 0x0?!0x1:_0x1d4499['unitID']===_0x13a2aa['unitID']&&_0x1d4499['sid']===_0x13a2aa[_0x3ecf5f(0x1e6)]&&_0x1d4499[_0x3ecf5f(0x237)]===_0x13a2aa[_0x3ecf5f(0x237)];}['resend'](){const _0x563b11=_0x412385;throw Error(_0x563b11(0x404));}[_0x412385(0x33c)](_0x9eae0e){const _0x49244d=_0x412385;return this[_0x49244d(0x1d0)]['push'](_0x9eae0e),this;}['onRemoteChangeset'](_0x236014){const _0x1635b1=_0x412385;return this[_0x1635b1(0x2bf)][_0x1635b1(0x1e0)](_0x236014),this;}[_0x412385(0x270)](_0x1fc9bd){const _0x53072=_0x412385;if(this[_0x53072(0x231)]){let _0x6b56cf=this[_0x53072(0x476)]();return _0x1fc9bd[_0x53072(0x1f5)]<=_0x6b56cf||(_0x6b56cf+0x1===_0x1fc9bd[_0x53072(0x1f5)]?(this['_incrementRevisionNumber'](),this[_0x53072(0x231)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x53072(0x39c)]=_0x1fc9bd[_0x53072(0x1f5)]),this;}if(_0x1fc9bd[_0x53072(0x1f5)]<=this[_0x53072(0x476)]())return this;throw Error(_0x53072(0x1c7));}['onRemoteRej'](_0x1724bc){const _0x4ed4f3=_0x412385;return this[_0x4ed4f3(0x296)](!!(_0x1724bc!=null&&_0x1724bc['isPermissionRej']));}[_0x412385(0x514)](){return this;}[_0x412385(0x3c0)](){const _0x390c57=_0x412385;return this['_injector'][_0x390c57(0x268)](_0x431128,this[_0x390c57(0x2c1)],this['type'],this[_0x390c57(0x231)],this[_0x390c57(0x1d0)],this[_0x390c57(0x477)]);}[_0x412385(0x474)](){return this;}[_0x412385(0x296)](_0x5afe0f){const _0x4f38b9=_0x412385;return this[_0x4f38b9(0x22c)][_0x4f38b9(0x268)](_0x1ab0fd,this[_0x4f38b9(0x2c1)],this['type'],this[_0x4f38b9(0x231)],this['_pendingMutations'],this[_0x4f38b9(0x477)],_0x5afe0f);}};_0x1c1054=_0xb83a([_0x34b040(0x7,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x8,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x9,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xa,_0x1d7efa['ICommandService']),_0x34b040(0xb,_0x1d7efa[_0x412385(0x1ea)]),_0x34b040(0xc,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x1c1054);function _0x412ea7(_0x70288e,_0x383696,_0xfc17a2,_0x158e0d,_0x339a26,_0x983c29){const _0xb6fcfb=_0x412385;return _0x158e0d&&_0x339a26['length']?_0x70288e[_0xb6fcfb(0x268)](_0x35a2a7,_0x383696,_0xfc17a2,_0x158e0d,_0x339a26,_0x983c29,void 0x0):_0x158e0d?_0x70288e['createInstance'](_0x4ebb61,_0x383696,_0xfc17a2,_0x158e0d,_0x983c29):_0x339a26[_0xb6fcfb(0x372)]?_0x70288e[_0xb6fcfb(0x268)](_0x2ff232,_0x383696,_0xfc17a2,_0x339a26,_0x983c29):_0x70288e[_0xb6fcfb(0x268)](_0x4960c5,_0x383696,_0xfc17a2,_0x983c29);}let _0x4f7486=class extends _0x1d7efa[_0x412385(0x281)]{get[_0x412385(0x507)](){const _0x282618=_0x412385;return this[_0x282618(0x35d)];}constructor(_0x2c848f,_0x46200d,_0x5c2696,_0x25f1b9,_0x112a39,_0x1cdbb5,_0x342e0c,_0x408212,_0x320c43,_0x3c48a2,_0x594a2f,_0x16e013,_0x435aab,_0x5e93ca){const _0x9bad24=_0x412385;super(),this['unitID']=_0x2c848f,this['session']=_0x46200d,this[_0x9bad24(0x30e)]=_0x5c2696,this[_0x9bad24(0x22c)]=_0x25f1b9,this[_0x9bad24(0x4ec)]=_0x112a39,this['_localeService']=_0x1cdbb5,this[_0x9bad24(0x4b7)]=_0x342e0c,this['_eventService']=_0x408212,this['_univerInstanceService']=_0x320c43,this[_0x9bad24(0x3a7)]=_0x3c48a2,this['_commandService']=_0x594a2f,this['_permissionService']=_0x16e013,this['_singleActiveUnitService']=_0x435aab,this[_0x9bad24(0x1e5)]=_0x5e93ca,_0x4a1990(this,_0x9bad24(0x1cc),new _0x150fe7[(_0x9bad24(0x385))](null)),_0x4a1990(this,_0x9bad24(0x436),this[_0x9bad24(0x1cc)]['asObservable']()),_0x4a1990(this,_0x9bad24(0x35d),void 0x0),_0x4a1990(this,_0x9bad24(0x3f6),!0x1),_0x4a1990(this,'_changesetSessionId',''),_0x4a1990(this,_0x9bad24(0x4fd),0x0),_0x4a1990(this,'status$',this[_0x9bad24(0x436)]['pipe']((0x0,_0x150fe7[_0x9bad24(0x3e6)])(_0x5146ca=>_0x5146ca?_0x5146ca[_0x9bad24(0x34f)]:_0x9bad24(0x3a0)),(0x0,_0x150fe7[_0x9bad24(0x22b)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4a1990(this,_0x9bad24(0x475),!0x1),_0x4a1990(this,_0x9bad24(0x345),[]);}async[_0x412385(0x2cb)](){const _0x18b26c=_0x412385;if(this[_0x18b26c(0x507)])throw Error(_0x18b26c(0x3ae));await this[_0x18b26c(0x2f8)]();}['pauseCollaboration'](){const _0x377244=_0x412385;return this[_0x377244(0x3f6)]=!0x0,(0x0,_0x1d7efa[_0x377244(0x496)])(()=>{const _0x19361b=_0x377244;this[_0x19361b(0x3f6)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x16e3da){this['_onLocalMutation'](_0x16e3da);}[_0x412385(0x2c8)](_0x4ecec9){const _0x5ec968=_0x412385;this[_0x5ec968(0x35d)]=_0x4ecec9,this[_0x5ec968(0x1cc)][_0x5ec968(0x1e1)](_0x4ecec9);}async['_init'](){const _0x2215d0=_0x412385;if(this['_updateState'](await this['_createInitialState']()),this[_0x2215d0(0x4bf)]){var _0x2c4a4a;(_0x2c4a4a=this[_0x2215d0(0x4bf)])==null||_0x2c4a4a[_0x2215d0(0x413)](this[_0x2215d0(0x2c1)]),this[_0x2215d0(0x34e)](this['_singleActiveUnitService'][_0x2215d0(0x4e2)](this[_0x2215d0(0x2c1)])['subscribe'](_0x288745=>{const _0xebce3f=_0x2215d0;this['_logService']['debug'](_0xebce3f(0x2e5),'editing\x20status\x20changed\x20to',_0x288745),_0x288745===0x1?(this[_0xebce3f(0x365)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0xebce3f(0x435)][_0xebce3f(0x389)](new _0x7fdba4[(_0xebce3f(0x46e))](this['unitID'])['id'],!0x1),this[_0xebce3f(0x435)][_0xebce3f(0x1b7)](!0x1)):(this[_0xebce3f(0x435)][_0xebce3f(0x389)](new _0x7fdba4[(_0xebce3f(0x46e))](this[_0xebce3f(0x2c1)])['id'],!0x0),this[_0xebce3f(0x435)]['setShowComponents'](!0x0));}));}let _0x42d6a0=!0x1;return this[_0x2215d0(0x34e)](this[_0x2215d0(0x25b)][_0x2215d0(0x337)][_0x2215d0(0x349)](_0x4a2dec=>{const _0x52be19=_0x2215d0;_0x4a2dec===0x3?this[_0x52be19(0x232)](_0x42d6a0):_0x4a2dec===0x2&&(_0x42d6a0=!0x0,this[_0x52be19(0x319)]());})),this[_0x2215d0(0x34e)](this[_0x2215d0(0x25b)]['event$'][_0x2215d0(0x349)](_0x14fc05=>{const _0x1a3b91=_0x2215d0;try{switch(_0x14fc05[_0x1a3b91(0x251)]){case _0x1c67cc[_0x1a3b91(0x48b)][_0x1a3b91(0x4ee)]:this[_0x1a3b91(0x292)]((0x0,_0x1c67cc[_0x1a3b91(0x2dc)])(_0x14fc05['data']));break;case _0x1c67cc[_0x1a3b91(0x48b)][_0x1a3b91(0x4ea)]:this[_0x1a3b91(0x3f3)](_0x14fc05['data']);break;case _0x1c67cc[_0x1a3b91(0x48b)]['CHANGESET_REJ']:this[_0x1a3b91(0x4b5)]();break;case _0x1c67cc[_0x1a3b91(0x48b)]['CHANGESET_SHOULD_RETRY']:this[_0x1a3b91(0x1e9)](_0x14fc05['data']);break;case _0x1c67cc[_0x1a3b91(0x48b)][_0x1a3b91(0x211)]:this[_0x1a3b91(0x228)](_0x14fc05[_0x1a3b91(0x35c)]['changesets']['map'](_0x4bd8bf=>(0x0,_0x1c67cc['parseProtocolChangeset'])(_0x4bd8bf)));break;case _0x1c67cc[_0x1a3b91(0x48b)][_0x1a3b91(0x287)]:this[_0x1a3b91(0x4b5)]({'isPermissionRej':!0x0});break;case _0x1c67cc[_0x1a3b91(0x48b)][_0x1a3b91(0x285)]:}}catch(_0x5bb2b4){throw console[_0x1a3b91(0x441)](_0x1a3b91(0x4e0),_0x5bb2b4),_0x5bb2b4;}})),this[_0x2215d0(0x35d)];}[_0x412385(0x302)](){const _0x45f6dc=_0x412385;this[_0x45f6dc(0x475)]=!0x1;}[_0x412385(0x294)](){const _0x4e3943=_0x412385;if(this['_transitionLocked'])throw Error(_0x4e3943(0x469));this[_0x4e3943(0x475)]=!0x0;}[_0x412385(0x3e2)](_0x484378){const _0x503ee5=_0x412385;this[_0x503ee5(0x294)](),this['_updateState'](this[_0x503ee5(0x35d)][_0x503ee5(0x33c)](_0x484378)),this[_0x503ee5(0x302)]();}['_onRemoteChangeset'](_0x5e96b3){const _0x41b09c=_0x412385;if(!(_0x5e96b3[_0x41b09c(0x1f5)]<=this['_revisionService'][_0x41b09c(0x31f)](this['unitID']))){if(this[_0x41b09c(0x3f6)]){this['_remoteChangesetQueue'][_0x41b09c(0x1e0)](_0x5e96b3);return;}this[_0x41b09c(0x2b9)](_0x5e96b3);}}[_0x412385(0x4b8)](){const _0x210a74=_0x412385;this[_0x210a74(0x345)][_0x210a74(0x303)](_0x5dc2d3=>this['_applyRemoteChangeset'](_0x5dc2d3)),this['_remoteChangesetQueue']=[];}[_0x412385(0x2b9)](_0x2ede1d){const _0x3bdf0c=_0x412385;let _0x312121=this[_0x3bdf0c(0x4ec)][_0x3bdf0c(0x252)][_0x3bdf0c(0x245)](this[_0x3bdf0c(0x4ec)][_0x3bdf0c(0x252)][_0x3bdf0c(0x2e7)]()[_0x3bdf0c(0x45b)])(_0x2ede1d[_0x3bdf0c(0x2ff)],null)||_0x2ede1d[_0x3bdf0c(0x2ff)],_0x3c3787={..._0x2ede1d,'mutations':_0x312121};this['_lockTransition'](),this['_updateState'](this[_0x3bdf0c(0x35d)][_0x3bdf0c(0x44c)](_0x3c3787)),this[_0x3bdf0c(0x302)]();}[_0x412385(0x3f3)](_0x3a3aab){const _0x233979=_0x412385;this[_0x233979(0x294)](),this['_updateState'](this[_0x233979(0x35d)][_0x233979(0x270)](_0x3a3aab)),this[_0x233979(0x302)]();}[_0x412385(0x4b5)](_0x463323){const _0xc0e02=_0x412385;this['_lockTransition'](),this[_0xc0e02(0x2c8)](this[_0xc0e02(0x35d)][_0xc0e02(0x3fa)](_0x463323)),this[_0xc0e02(0x302)]();}[_0x412385(0x1e9)](_0x15eb55){const _0x421daf=_0x412385;this[_0x421daf(0x294)](),this[_0x421daf(0x2c8)](this[_0x421daf(0x35d)][_0x421daf(0x514)](_0x15eb55)),this[_0x421daf(0x302)]();}[_0x412385(0x228)](_0x43e370){const _0x481251=_0x412385;if(!(this[_0x481251(0x35d)]instanceof _0x1c1054))throw TypeError(_0x481251(0x50b));let _0x15da60=_0x43e370['map'](_0x471281=>{const _0x1a8ac0=_0x481251;let _0x1f0ab3=this['_compressMutationService']['interceptor'][_0x1a8ac0(0x245)](this[_0x1a8ac0(0x4ec)]['interceptor'][_0x1a8ac0(0x2e7)]()[_0x1a8ac0(0x45b)])(_0x471281['mutations'],null)||_0x471281['mutations'];return{..._0x471281,'mutations':_0x1f0ab3};});this[_0x481251(0x294)](),this[_0x481251(0x2c8)](this[_0x481251(0x35d)][_0x481251(0x32c)](_0x15da60)),this['_unlockTransition']();}[_0x412385(0x319)](){const _0x5d062b=_0x412385;this['_lockTransition'](),this[_0x5d062b(0x2c8)](this[_0x5d062b(0x35d)][_0x5d062b(0x3c0)]()),this[_0x5d062b(0x302)]();}[_0x412385(0x232)](_0x422488=!0x1){const _0x28a26a=_0x412385;this[_0x28a26a(0x294)](),this[_0x28a26a(0x2c8)](this['_state']['toggleOnline']()),this[_0x28a26a(0x302)]();let _0x46572f=this['_state'];_0x422488&&_0x46572f instanceof _0x4960c5&&(this[_0x28a26a(0x294)](),this[_0x28a26a(0x2c8)](_0x46572f['fetchMiss']()),this[_0x28a26a(0x302)]());}async[_0x412385(0x4cb)](){return new Promise(_0x3bbc26=>{const _0x4fe381=_0x28e1;this[_0x4fe381(0x25b)][_0x4fe381(0x337)][_0x4fe381(0x21b)]((0x0,_0x150fe7['take'])(0x1))[_0x4fe381(0x349)](async _0x4246e8=>{const _0x2473c7=_0x4fe381;_0x3bbc26(await this[_0x2473c7(0x51c)](_0x4246e8===0x3));});});}[_0x412385(0x503)](){const _0x31a7f7=_0x412385;let _0x22f058=this[_0x31a7f7(0x2c1)];return{'onStateChange':(_0x5bb9cd,_0x179277)=>{const _0x1d015f=_0x31a7f7;if(_0x5bb9cd!==this[_0x1d015f(0x35d)])throw Error(_0x1d015f(0x3cf)+_0x5bb9cd[_0x1d015f(0x34f)]+_0x1d015f(0x3dc)+_0x179277['status']+_0x1d015f(0x4f2)+this['_state'][_0x1d015f(0x34f)]);this[_0x1d015f(0x2c8)](_0x179277);},'onSendChangeset':_0x1a22fb=>{const _0x4e6702=_0x31a7f7;_0x1a22fb[_0x4e6702(0x1e6)]||(_0x1a22fb[_0x4e6702(0x1e6)]=this[_0x4e6702(0x3eb)],_0x1a22fb[_0x4e6702(0x237)]=++this[_0x4e6702(0x4fd)]);let _0xde7367={'eventID':_0x1c67cc[_0x4e6702(0x48b)][_0x4e6702(0x30c)],'data':{'unitID':_0x1a22fb[_0x4e6702(0x2c1)],'unitType':this['_type'],'changeset':_0x1a22fb,'memberID':this[_0x4e6702(0x25b)][_0x4e6702(0x1dd)]()}};this['session'][_0x4e6702(0x401)](_0xde7367,this['unitID']);},'onMissingChangesets':({from:_0x4b3903,to:_0x25280a})=>{const _0x43e7cd=_0x31a7f7;this[_0x43e7cd(0x3a7)]['debug'](_0x43e7cd(0x2e5),_0x43e7cd(0x4ff)+_0x4b3903+_0x43e7cd(0x3a6)+_0x25280a);let _0x5eb1de={'eventID':_0x1c67cc[_0x43e7cd(0x48b)][_0x43e7cd(0x28a)],'data':{'unitID':_0x22f058,'unitType':this[_0x43e7cd(0x30e)],'from':_0x4b3903,'to':_0x25280a}};this[_0x43e7cd(0x25b)][_0x43e7cd(0x401)](_0x5eb1de,this[_0x43e7cd(0x2c1)]);}};}async[_0x412385(0x51c)](_0x3db3b7){const _0x4e73e8=_0x412385;var _0x4dde9f;let _0x55cb4d=await((_0x4dde9f=this[_0x4e73e8(0x1e5)])==null?void 0x0:_0x4dde9f[_0x4e73e8(0x3e0)](this[_0x4e73e8(0x2c1)])),_0x1b784c=(_0x55cb4d==null?void 0x0:_0x55cb4d['mutations'])??[],_0x1a727b=(_0x55cb4d==null?void 0x0:_0x55cb4d[_0x4e73e8(0x1bf)])??null,_0x420905=!!(_0x1a727b!=null&&_0x1a727b['sid'])&&!!(_0x1a727b!=null&&_0x1a727b[_0x4e73e8(0x237)]);this['_changesetSessionId']=_0x420905?_0x1a727b[_0x4e73e8(0x1e6)]:(0x0,_0x1c67cc['uuidv4'])(),this['_changesetReqId']=_0x420905?_0x1a727b['reqId']:0x0;let _0x395631=this[_0x4e73e8(0x2c1)];try{this[_0x4e73e8(0x490)](_0x1a727b,_0x1b784c);}catch(_0x54d60f){this[_0x4e73e8(0x3a7)][_0x4e73e8(0x441)](_0x54d60f);}let _0x5c2d65=this[_0x4e73e8(0x503)]();if(_0x3db3b7){let _0x568a4f=_0x412ea7(this['_injector'],_0x395631,this[_0x4e73e8(0x30e)],_0x1a727b,_0x1b784c,_0x5c2d65);return _0x568a4f instanceof _0x2ff232?_0x568a4f[_0x4e73e8(0x42b)]():(_0x568a4f instanceof _0x35a2a7||_0x568a4f instanceof _0x4ebb61)&&_0x568a4f[_0x4e73e8(0x1be)](),_0x568a4f;}return this[_0x4e73e8(0x22c)][_0x4e73e8(0x268)](_0x431128,_0x395631,this['_type'],_0x1a727b,_0x1b784c,_0x5c2d65);}['_replayCachedMutations'](_0x4a8d94,_0x287bda){const _0x10b62a=_0x412385;var _0x2d5b0e,_0x382966;let _0x5085ca=this[_0x10b62a(0x4ec)][_0x10b62a(0x252)][_0x10b62a(0x245)](this[_0x10b62a(0x4ec)][_0x10b62a(0x252)][_0x10b62a(0x2e7)]()['COMPRESS_MUTATION_APPLY']);(_0x2d5b0e=_0x5085ca((_0x4a8d94==null?void 0x0:_0x4a8d94[_0x10b62a(0x2ff)])||[],null))==null||_0x2d5b0e['forEach'](_0x446a80=>this[_0x10b62a(0x4ed)]['executeCommand'](_0x446a80['id'],_0x446a80['params'])),(_0x382966=_0x5085ca(_0x287bda||[],null))==null||_0x382966[_0x10b62a(0x303)](_0x49ea83=>this[_0x10b62a(0x4ed)][_0x10b62a(0x269)](_0x49ea83['id'],_0x49ea83[_0x10b62a(0x1fc)]));}};_0x4f7486=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['Injector'])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x212)])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x7,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x8,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x9,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xa,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0xb,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x4f7486);let _0x49af8e=class extends _0x4f7486{constructor(_0x3ac589,_0x1c69f6,_0x1981c6,_0x4c5334,_0x27d1ac,_0x14cb08,_0x202eb4,_0x238d53,_0xc15517,_0x3ae018,_0x12c783,_0x153325,_0x180006,_0x4909db,_0x10a30d){const _0x115d55=_0x412385;super(_0x3ac589,_0x1981c6,_0x1c69f6,_0x4c5334,_0x27d1ac,_0x14cb08,_0x202eb4,_0x238d53,_0xc15517,_0x3ae018,_0x12c783,_0x153325,_0x4909db,_0x10a30d),this['unitID']=_0x3ac589,this[_0x115d55(0x2db)]=_0x1c69f6,this['_docStateChangeManagerService']=_0x180006,_0x4a1990(this,_0x115d55(0x4a0),null);}[_0x412385(0x227)](_0x403a52){const _0x5dd263=_0x412385;this[_0x5dd263(0x4a0)]=_0x403a52;}[_0x412385(0x20d)](){const _0x308fe5=_0x412385;this[_0x308fe5(0x4a0)]=null,super[_0x308fe5(0x20d)]();}[_0x412385(0x503)](){const _0x376bc7=_0x412385;let _0x3b7839=super[_0x376bc7(0x503)]();return _0x3b7839[_0x376bc7(0x1de)]=_0x5ead0c=>{const _0x27bc28=_0x376bc7;var _0x2a69b4,_0x1158df;return(_0x2a69b4=this['_handlerCallback'])==null||(_0x1158df=_0x2a69b4['onTransformIME'])==null?void 0x0:_0x1158df[_0x27bc28(0x25a)](_0x2a69b4,_0x5ead0c);},_0x3b7839[_0x376bc7(0x2c4)]=_0x17d686=>{const _0x1efc73=_0x376bc7;var _0x537b61,_0x1001d6;return(_0x537b61=this[_0x1efc73(0x4a0)])==null||(_0x1001d6=_0x537b61[_0x1efc73(0x2c4)])==null?void 0x0:_0x1001d6[_0x1efc73(0x25a)](_0x537b61,_0x17d686);},_0x3b7839[_0x376bc7(0x2ca)]=_0x45e5de=>{const _0x3f1d38=_0x376bc7;var _0x96ed47,_0x407ea6;return((_0x96ed47=this['_handlerCallback'])==null||(_0x407ea6=_0x96ed47[_0x3f1d38(0x2ca)])==null?void 0x0:_0x407ea6[_0x3f1d38(0x25a)](_0x96ed47,_0x45e5de))??null;},_0x3b7839[_0x376bc7(0x330)]=_0x21c338=>{const _0x59001e=_0x376bc7;var _0x1f2d96,_0x5f1bf4;return(_0x1f2d96=this[_0x59001e(0x4a0)])==null||(_0x5f1bf4=_0x1f2d96['onTransformSelections'])==null?void 0x0:_0x5f1bf4[_0x59001e(0x25a)](_0x1f2d96,_0x21c338);},_0x3b7839[_0x376bc7(0x26f)]=_0x1ae2e8=>{const _0x2ebae3=_0x376bc7;var _0x5057a6,_0x1253fc;return(_0x5057a6=this[_0x2ebae3(0x4a0)])==null||(_0x1253fc=_0x5057a6['onSyncEditingCollabCursor'])==null?void 0x0:_0x1253fc['call'](_0x5057a6,_0x1ae2e8);},_0x3b7839[_0x376bc7(0x3b6)]=_0x18774f=>{const _0x131619=_0x376bc7;var _0x3bc867,_0x58f6ef;return((_0x3bc867=this[_0x131619(0x4a0)])==null||(_0x58f6ef=_0x3bc867[_0x131619(0x3b6)])==null?void 0x0:_0x58f6ef[_0x131619(0x25a)](_0x3bc867,_0x18774f))??_0x18774f;},_0x3b7839[_0x376bc7(0x49d)]=_0x445fa4=>{const _0x176cba=_0x376bc7;var _0x1b8d03,_0x48d331;return((_0x1b8d03=this['_handlerCallback'])==null||(_0x48d331=_0x1b8d03[_0x176cba(0x49d)])==null?void 0x0:_0x48d331['call'](_0x1b8d03,_0x445fa4))??_0x445fa4;},_0x3b7839;}async[_0x412385(0x2f8)](){const _0x5c9494=_0x412385;let _0x10496f=await super[_0x5c9494(0x2f8)]();return this[_0x5c9494(0x34e)](this[_0x5c9494(0x3a9)][_0x5c9494(0x412)][_0x5c9494(0x349)](_0x1a5960=>{const _0x352a3c=_0x5c9494;if(_0x1a5960==null||_0x1a5960[_0x352a3c(0x20e)]!==this[_0x352a3c(0x2c1)])return;let {commandId:_0x11c00f,redoState:_0x468e2f,unitId:_0x2277c9}=_0x1a5960,_0x186081={'id':_0x11c00f,'type':_0x1d7efa['CommandType'][_0x352a3c(0x2e4)],'params':{'unitId':_0x2277c9,'actions':_0x468e2f[_0x352a3c(0x1aa)],'textRanges':null}};this[_0x352a3c(0x3e2)](_0x186081);})),this[_0x5c9494(0x34e)](this[_0x5c9494(0x4ed)][_0x5c9494(0x3b4)]((_0x544609,_0x75bb4c)=>{const _0x319b79=_0x5c9494;if(_0x544609[_0x319b79(0x2db)]!==_0x1d7efa[_0x319b79(0x449)]['MUTATION']||_0x75bb4c!=null&&_0x75bb4c[_0x319b79(0x279)]||_0x75bb4c!=null&&_0x75bb4c['onlyLocal']||_0x544609['id']===_0x19f1ab[_0x319b79(0x467)]['id'])return;let _0x12f63f=_0x544609[_0x319b79(0x1fc)];if((_0x12f63f==null?void 0x0:_0x12f63f[_0x319b79(0x20e)])!==this[_0x319b79(0x2c1)])return;let _0x423de8=_0x544609,_0xf3edad=this[_0x319b79(0x4ec)][_0x319b79(0x252)][_0x319b79(0x245)](this[_0x319b79(0x4ec)][_0x319b79(0x252)]['getInterceptPoints']()[_0x319b79(0x3e5)])([_0x423de8],this[_0x319b79(0x203)])||[_0x423de8];this[_0x319b79(0x3e2)](_0xf3edad[0x0]);})),_0x10496f;}};_0x49af8e=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['CompressMutationService'])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['LocaleService'])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x7,(0x0,_0x1d7efa['Inject'])(_0x14986c)),_0x34b040(0x8,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x9,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xa,_0x1d7efa['ICommandService']),_0x34b040(0xb,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x19f1ab['DocStateChangeManagerService'])),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xe,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x49af8e);let _0x360e2c=class extends _0x4f7486{constructor(_0x8ddb4b,_0x232170,_0x16fe4e,_0x108810,_0x524a04,_0x196bfc,_0x27ce22,_0x901042,_0x27bef8,_0x49668e,_0x41a1aa,_0x24e97c,_0x2a2283,_0x11537c){const _0xf158a5=_0x412385;super(_0x8ddb4b,_0x16fe4e,_0x232170,_0x108810,_0x524a04,_0x196bfc,_0x27ce22,_0x901042,_0x27bef8,_0x49668e,_0x41a1aa,_0x24e97c,_0x2a2283,_0x11537c),this['unitID']=_0x8ddb4b,this[_0xf158a5(0x2db)]=_0x232170;}async['_init'](){const _0x85d9b0=_0x412385;let _0xe02369=await super[_0x85d9b0(0x2f8)]();return this[_0x85d9b0(0x34e)](this[_0x85d9b0(0x4ed)][_0x85d9b0(0x3b4)]((_0x1efef6,_0x5d2436)=>{const _0x144e5d=_0x85d9b0;if(_0x1efef6['type']!==_0x1d7efa[_0x144e5d(0x449)][_0x144e5d(0x2e4)]||_0x5d2436!=null&&_0x5d2436[_0x144e5d(0x279)]||_0x5d2436!=null&&_0x5d2436[_0x144e5d(0x2ec)])return;let _0x4943a6=_0x1efef6[_0x144e5d(0x1fc)];if((_0x4943a6==null?void 0x0:_0x4943a6[_0x144e5d(0x20e)])!==this[_0x144e5d(0x2c1)])return;let _0x14b374=_0x1efef6,_0x3346bd=this['_compressMutationService'][_0x144e5d(0x252)][_0x144e5d(0x245)](this[_0x144e5d(0x4ec)]['interceptor']['getInterceptPoints']()[_0x144e5d(0x3e5)])([_0x14b374],this[_0x144e5d(0x203)])||[_0x14b374];this[_0x144e5d(0x3e2)](_0x3346bd[0x0]);})),_0xe02369;}};_0x360e2c=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa['Inject'])(_0x1c67cc['CompressMutationService'])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['RevisionService'])),_0x34b040(0x7,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x8,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x9,_0x1d7efa['ILogService']),_0x34b040(0xa,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0xb,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x360e2c);let _0xe87472=class extends _0x4f7486{constructor(_0x34eedd,_0x2d2cfb,_0x3e891a,_0x45ea54,_0xeaf77d,_0x44e168,_0x4e5da4,_0x260ddd,_0x50cfd6,_0x5e5c3b,_0xf08b82,_0x4f43d5,_0x4f64d1,_0x7198b0,_0x275b63){const _0x485df8=_0x412385;super(_0x34eedd,_0x3e891a,_0x2d2cfb,_0x45ea54,_0xeaf77d,_0x44e168,_0x4e5da4,_0x50cfd6,_0x5e5c3b,_0xf08b82,_0x4f43d5,_0x4f64d1,_0x7198b0,_0x275b63),this[_0x485df8(0x2c1)]=_0x34eedd,this[_0x485df8(0x2db)]=_0x2d2cfb,this[_0x485df8(0x4ce)]=_0x260ddd;}[_0x412385(0x503)](){const _0x29f45c=_0x412385;let _0x34086e=super[_0x29f45c(0x503)]();return _0x34086e['onTransformSelections']=_0x4d32ec=>this[_0x29f45c(0x4ce)][_0x29f45c(0x3d7)](_0x4d32ec),_0x34086e;}async[_0x412385(0x2f8)](){const _0x43411b=_0x412385;let _0x143ce9=await super[_0x43411b(0x2f8)]();return this['disposeWithMe'](this[_0x43411b(0x4ed)][_0x43411b(0x3b4)]((_0x335862,_0x37c9e1)=>{const _0x4989f4=_0x43411b;if(_0x335862[_0x4989f4(0x2db)]!==_0x1d7efa[_0x4989f4(0x449)][_0x4989f4(0x2e4)]||_0x37c9e1!=null&&_0x37c9e1[_0x4989f4(0x279)]||_0x37c9e1!=null&&_0x37c9e1[_0x4989f4(0x2ec)])return;let _0x66569b=_0x335862[_0x4989f4(0x1fc)];if((_0x66569b==null?void 0x0:_0x66569b[_0x4989f4(0x20e)])!==this[_0x4989f4(0x2c1)])return;let _0x337416=_0x335862,_0x4dc1bf=this[_0x4989f4(0x4ec)][_0x4989f4(0x252)][_0x4989f4(0x245)](this[_0x4989f4(0x4ec)][_0x4989f4(0x252)][_0x4989f4(0x2e7)]()['COMPRESS_MUTATION_SEND'])([_0x337416],this[_0x4989f4(0x203)])||[_0x337416];this[_0x4989f4(0x3e2)](_0x4dc1bf[0x0]);})),_0x143ce9;}};_0xe87472=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa['Inject'])(_0x1c67cc[_0x412385(0x212)])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0x6,(0x0,_0x1d7efa['Inject'])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x7,(0x0,_0x1d7efa['Inject'])(_0x36c805)),_0x34b040(0x8,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x9,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0xa,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xb,_0x1d7efa['ICommandService']),_0x34b040(0xc,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xe,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0xe87472);let _0x5cc1fb=class extends _0x4f7486{constructor(_0x11cad6,_0x2b0f7c,_0x421858,_0x23f497,_0x1a4c40,_0x4584c4,_0x40db83,_0x4af898,_0x216c5d,_0x1123bc,_0x22c84d,_0x360b21,_0x5ec26a,_0x1fcad5){const _0x2f17cf=_0x412385;super(_0x11cad6,_0x421858,_0x2b0f7c,_0x23f497,_0x1a4c40,_0x4584c4,_0x40db83,_0x4af898,_0x216c5d,_0x1123bc,_0x22c84d,_0x360b21,_0x5ec26a,_0x1fcad5),this[_0x2f17cf(0x2c1)]=_0x11cad6,this['type']=_0x2b0f7c;}async[_0x412385(0x2f8)](){const _0x2c4243=_0x412385;let _0x337be2=await super[_0x2c4243(0x2f8)]();return this['disposeWithMe'](this['_commandService'][_0x2c4243(0x3b4)]((_0x4f0ee1,_0x56dc24)=>{const _0x56ddec=_0x2c4243;if(_0x4f0ee1[_0x56ddec(0x2db)]!==_0x1d7efa[_0x56ddec(0x449)]['MUTATION']||_0x56dc24!=null&&_0x56dc24[_0x56ddec(0x279)]||_0x56dc24!=null&&_0x56dc24[_0x56ddec(0x2ec)])return;let _0x271b97=_0x4f0ee1['params'];if((_0x271b97==null?void 0x0:_0x271b97[_0x56ddec(0x20e)])!==this[_0x56ddec(0x2c1)])return;let _0x405f05=_0x4f0ee1,_0x532e37=this[_0x56ddec(0x4ec)][_0x56ddec(0x252)][_0x56ddec(0x245)](this['_compressMutationService']['interceptor'][_0x56ddec(0x2e7)]()[_0x56ddec(0x3e5)])([_0x405f05],this[_0x56ddec(0x203)])||[_0x405f05];this[_0x56ddec(0x3e2)](_0x532e37[0x0]);})),_0x337be2;}};_0x5cc1fb=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['CompressMutationService'])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0x6,(0x0,_0x1d7efa['Inject'])(_0x1c67cc['RevisionService'])),_0x34b040(0x7,(0x0,_0x1d7efa['Inject'])(_0x14986c)),_0x34b040(0x8,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x9,_0x1d7efa['ILogService']),_0x34b040(0xa,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0xb,_0x1d7efa['IPermissionService']),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xd,(0x0,_0x1d7efa['Optional'])(_0xad368b))],_0x5cc1fb);let _0x3673f5=class extends _0x4f7486{constructor(_0x5ce996,_0x320cb5,_0x1bb55b,_0x5ee096,_0xadafbf,_0x12b3c6,_0x1ba5e9,_0xb07814,_0xddc2da,_0x392fdb,_0x79ca4c,_0x37d18f,_0x1891bc,_0x532a10){const _0x322d47=_0x412385;super(_0x5ce996,_0x1bb55b,_0x320cb5,_0x5ee096,_0xadafbf,_0x12b3c6,_0x1ba5e9,_0xb07814,_0xddc2da,_0x392fdb,_0x79ca4c,_0x37d18f,_0x1891bc,_0x532a10),this['unitID']=_0x5ce996,this[_0x322d47(0x2db)]=_0x320cb5;}async[_0x412385(0x2f8)](){const _0x14f4d0=_0x412385;let _0x1ca62f=await super[_0x14f4d0(0x2f8)]();return this[_0x14f4d0(0x34e)](this[_0x14f4d0(0x4ed)]['onMutationExecutedForCollab']((_0x101ffc,_0x5644be)=>{const _0x5267a6=_0x14f4d0;if(_0x101ffc[_0x5267a6(0x2db)]!==_0x1d7efa[_0x5267a6(0x449)][_0x5267a6(0x2e4)]||_0x5644be!=null&&_0x5644be[_0x5267a6(0x279)]||_0x5644be!=null&&_0x5644be[_0x5267a6(0x2ec)])return;let _0x53cd31=_0x101ffc[_0x5267a6(0x1fc)];if((_0x53cd31==null?void 0x0:_0x53cd31[_0x5267a6(0x20e)])!==this['unitID'])return;let _0xba5430=_0x101ffc,_0x3c95a6=this[_0x5267a6(0x4ec)][_0x5267a6(0x252)][_0x5267a6(0x245)](this[_0x5267a6(0x4ec)][_0x5267a6(0x252)][_0x5267a6(0x2e7)]()[_0x5267a6(0x3e5)])([_0xba5430],this[_0x5267a6(0x203)])||[_0xba5430];this[_0x5267a6(0x3e2)](_0x3c95a6[0x0]);})),_0x1ca62f;}};_0x3673f5=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x212)])),_0x34b040(0x5,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x3b7)])),_0x34b040(0x7,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x8,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x9,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0xa,_0x1d7efa['ICommandService']),_0x34b040(0xb,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xd,(0x0,_0x1d7efa['Optional'])(_0xad368b))],_0x3673f5);let _0x5e1218=class extends _0x4f7486{constructor(_0x41c4a6,_0x3a682c,_0x56d2aa,_0x31024d,_0x10f0c6,_0x2e44a1,_0x3b42ae,_0x3956b1,_0x2e3fca,_0x3e3dcb,_0x3f64ef,_0x137e16,_0x2755b1,_0x305858){const _0x3dec09=_0x412385;super(_0x41c4a6,_0x56d2aa,_0x3a682c,_0x31024d,_0x10f0c6,_0x2e44a1,_0x3b42ae,_0x3956b1,_0x2e3fca,_0x3e3dcb,_0x3f64ef,_0x137e16,_0x2755b1,_0x305858),this[_0x3dec09(0x2c1)]=_0x41c4a6,this[_0x3dec09(0x2db)]=_0x3a682c;}async[_0x412385(0x2f8)](){const _0x19fd11=_0x412385;let _0x1f4283=await super['_init']();return this[_0x19fd11(0x34e)](this['_commandService'][_0x19fd11(0x3b4)]((_0xabf4f0,_0x31e02a)=>{const _0x47874b=_0x19fd11;if(_0xabf4f0[_0x47874b(0x2db)]!==_0x1d7efa[_0x47874b(0x449)][_0x47874b(0x2e4)]||_0x31e02a!=null&&_0x31e02a[_0x47874b(0x279)]||_0x31e02a!=null&&_0x31e02a[_0x47874b(0x2ec)])return;let _0xd41b2c=_0xabf4f0[_0x47874b(0x1fc)];if((_0xd41b2c==null?void 0x0:_0xd41b2c[_0x47874b(0x20e)])!==this['unitID'])return;let _0x36c305=_0xabf4f0,_0x39c8d2=this[_0x47874b(0x4ec)][_0x47874b(0x252)][_0x47874b(0x245)](this[_0x47874b(0x4ec)][_0x47874b(0x252)][_0x47874b(0x2e7)]()['COMPRESS_MUTATION_SEND'])([_0x36c305],this[_0x47874b(0x203)])||[_0x36c305];this[_0x47874b(0x3e2)](_0x39c8d2[0x0]);})),_0x1f4283;}};_0x5e1218=_0xb83a([_0x34b040(0x3,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['CompressMutationService'])),_0x34b040(0x5,(0x0,_0x1d7efa['Inject'])(_0x1d7efa['LocaleService'])),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc['RevisionService'])),_0x34b040(0x7,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x8,_0x1d7efa['IUniverInstanceService']),_0x34b040(0x9,_0x1d7efa['ILogService']),_0x34b040(0xa,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0xb,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0xc,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4f19a3)),_0x34b040(0xd,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x5e1218);let _0x4b44da=(0x0,_0x1d7efa[_0x412385(0x36f)])('univer-pro.collaboration-client.network-condition.service');function _0x99dcc1(_0x1545a5){const _0x6634d6=_0x412385;let _0x56b46e=_0x1545a5[_0x6634d6(0x35c)],_0x1495fd=JSON['parse'](_0x56b46e);switch(_0x1495fd[_0x6634d6(0x509)]){case _0x22ed46[_0x6634d6(0x21f)][_0x6634d6(0x380)]:case _0x22ed46[_0x6634d6(0x21f)][_0x6634d6(0x3e7)]:{let _0x56a331=_0x1495fd[_0x6634d6(0x4e4)];return{..._0x1495fd,'data':_0x56a331,'cmd':_0x1495fd['cmd']};}case _0x22ed46[_0x6634d6(0x21f)]['JOIN']:{let _0x4dfb43=_0x1495fd[_0x6634d6(0x36b)];return{..._0x1495fd,'data':_0x4dfb43,'cmd':_0x1495fd['cmd']};}case _0x22ed46[_0x6634d6(0x21f)][_0x6634d6(0x26d)]:{let _0x12c47f=_0x1495fd['collaMsg'];switch(_0x12c47f['eventID']){case _0x1c67cc['CollaborationEvent'][_0x6634d6(0x287)]:var _0x308031;return{..._0x1495fd,'data':{..._0x12c47f,'data':(_0x308031=_0x12c47f[_0x6634d6(0x2ed)])==null?void 0x0:_0x308031['cs']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc['CollaborationEvent']['CHANGESET_ACK']:var _0x5c97a0;return{..._0x1495fd,'data':{..._0x12c47f,'data':(_0x5c97a0=_0x12c47f[_0x6634d6(0x2af)])==null?void 0x0:_0x5c97a0['cs']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x4ee)]:var _0x219516;return{..._0x1495fd,'data':{..._0x12c47f,'data':(_0x219516=_0x12c47f[_0x6634d6(0x2fd)])==null?void 0x0:_0x219516['cs']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x47f)]:var _0x18a027;return{..._0x1495fd,'data':{..._0x12c47f,'data':(_0x18a027=_0x12c47f[_0x6634d6(0x40e)])==null?void 0x0:_0x18a027['cs']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc['CollaborationEvent'][_0x6634d6(0x29a)]:var _0x374e19;return{..._0x1495fd,'data':{..._0x12c47f,'data':(_0x374e19=_0x12c47f['csShouldRetryEvent'])==null?void 0x0:_0x374e19['cs']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x1e2)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x4a6)]},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)]['USERS_ENTER']:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x4e5)]},'cmd':_0x1495fd['cmd']};case _0x1c67cc[_0x6634d6(0x48b)]['USERS_LEAVE']:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f['leaveEvent']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x4f1)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x4e7)]},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x253)]:case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x3ad)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f['liveShareOperation']},'cmd':_0x1495fd['cmd']};case _0x1c67cc[_0x6634d6(0x48b)]['LIVESHARE_TERMINATE']:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x4e7)]},'cmd':_0x1495fd['cmd']};case _0x1c67cc['CollaborationEvent'][_0x6634d6(0x41a)]:return{..._0x1495fd,'data':_0x12c47f,'cmd':_0x1495fd['cmd']};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x4f3)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f['commentUpdateEvent']},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x480)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x439)]},'cmd':_0x1495fd['cmd']};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x308)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x34d)]},'cmd':_0x1495fd[_0x6634d6(0x509)]};case _0x1c67cc[_0x6634d6(0x48b)][_0x6634d6(0x285)]:return{..._0x1495fd,'data':{..._0x12c47f,'data':_0x12c47f[_0x6634d6(0x50f)]},'cmd':_0x1495fd[_0x6634d6(0x509)]};default:return _0x1495fd;}}default:return _0x1495fd;}}function _0x203404(_0x27acca){const _0x4defaa=_0x412385;switch(_0x27acca[_0x4defaa(0x509)]){case _0x22ed46[_0x4defaa(0x21f)]['HEARTBEAT']:case _0x22ed46['CombCmd'][_0x4defaa(0x3e7)]:return JSON[_0x4defaa(0x26a)]({'cmd':_0x27acca[_0x4defaa(0x509)],'routeKey':_0x27acca[_0x4defaa(0x3e4)]});case _0x22ed46[_0x4defaa(0x21f)][_0x4defaa(0x265)]:{let _0x17db0d;switch(_0x27acca['data'][_0x4defaa(0x251)]){case _0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x1e2)]:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x1e2)],'updateCursorEvent':_0x27acca['data'][_0x4defaa(0x35c)]};break;case _0x1c67cc['CollaborationEvent'][_0x4defaa(0x381)]:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x381)],'leaveEvent':_0x27acca[_0x4defaa(0x35c)][_0x4defaa(0x35c)]};break;case _0x1c67cc[_0x4defaa(0x48b)]['USERS_ENTER']:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x2ea)],'joinEvent':_0x27acca[_0x4defaa(0x35c)][_0x4defaa(0x35c)]};break;case _0x1c67cc['CollaborationEvent'][_0x4defaa(0x4f1)]:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x4f1)],'liveShareNewHost':_0x27acca[_0x4defaa(0x35c)][_0x4defaa(0x35c)]};break;case _0x1c67cc['CollaborationEvent'][_0x4defaa(0x3ad)]:_0x17db0d={'eventID':_0x1c67cc['CollaborationEvent'][_0x4defaa(0x3ad)],'liveShareOperation':_0x27acca[_0x4defaa(0x35c)][_0x4defaa(0x35c)]};break;case _0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x26e)]:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x27acca[_0x4defaa(0x35c)][_0x4defaa(0x35c)]};break;case _0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x267)]:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x27acca['data'][_0x4defaa(0x35c)]};break;case _0x1c67cc[_0x4defaa(0x48b)]['LIVESHARE_FETCH_OPERATIONS']:_0x17db0d={'eventID':_0x1c67cc[_0x4defaa(0x48b)][_0x4defaa(0x253)]};break;default:_0x17db0d={'eventID':_0x27acca[_0x4defaa(0x35c)]['eventID']};}return JSON[_0x4defaa(0x26a)]({'cmd':_0x27acca['cmd'],'routeKey':_0x27acca[_0x4defaa(0x3e4)],'collaMsg':_0x17db0d});}case _0x22ed46['CombCmd'][_0x4defaa(0x202)]:return JSON['stringify']({'cmd':_0x27acca[_0x4defaa(0x509)],'routeKey':_0x27acca[_0x4defaa(0x3e4)],'joinReq':_0x27acca[_0x4defaa(0x35c)]});case _0x22ed46[_0x4defaa(0x21f)][_0x4defaa(0x340)]:return JSON[_0x4defaa(0x26a)]({'cmd':_0x27acca[_0x4defaa(0x509)],'routeKey':_0x27acca[_0x4defaa(0x3e4)],'leaveReq':_0x27acca[_0x4defaa(0x35c)]});default:throw Error(_0x4defaa(0x2d4));}}let _0x796d28=(0x0,_0x1d7efa['createIdentifier'])(_0x412385(0x1c3));function _0x49a4bb(_0x1eca77,_0x89b8ed,_0x3a2609){const _0x14e33a=_0x412385;return _0x1eca77+'/'+_0x89b8ed+_0x14e33a(0x3e3)+_0x3a2609+_0x14e33a(0x288);}let _0x191d68=class extends _0x1d7efa[_0x412385(0x392)]{constructor(_0x3b33d4,_0xc12955,_0x187d52,_0xd25d56,_0x4767a0){const _0x3f1778=_0x412385;super(),this[_0x3f1778(0x22c)]=_0x3b33d4,this[_0x3f1778(0x508)]=_0xc12955,this[_0x3f1778(0x309)]=_0x187d52,this['_logService']=_0xd25d56,this[_0x3f1778(0x200)]=_0x4767a0;}[_0x412385(0x275)](_0x185349){const _0x54015f=_0x412385;let _0x29249e=this[_0x54015f(0x22c)][_0x54015f(0x354)](_0x43a4f4[_0x54015f(0x3f8)]);if(!_0x29249e)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x4595f0=_0x29249e[_0x54015f(0x46a)](_0x185349);if(!_0x4595f0)throw Error(_0x54015f(0x383));let _0x5a8593=new _0x1d7efa[(_0x54015f(0x40f))](),_0x1516c5=new _0x150fe7[(_0x54015f(0x3a1))]();_0x5a8593['add'](_0x4595f0[_0x54015f(0x3cb)][_0x54015f(0x349)](_0x1ff8aa=>_0x1516c5[_0x54015f(0x1e1)](_0x1ff8aa))),_0x5a8593[_0x54015f(0x506)]((0x0,_0x1d7efa['toDisposable'])(()=>_0x1516c5[_0x54015f(0x468)]()));let _0x408e31=new _0x150fe7[(_0x54015f(0x3a1))]();_0x5a8593['add'](_0x4595f0[_0x54015f(0x32b)][_0x54015f(0x349)](_0x5618ca=>_0x408e31[_0x54015f(0x1e1)](_0x5618ca))),_0x5a8593['add']((0x0,_0x1d7efa[_0x54015f(0x496)])(()=>_0x408e31[_0x54015f(0x468)]()));let _0x10185a=new _0x150fe7[(_0x54015f(0x3a1))]();_0x5a8593[_0x54015f(0x506)](_0x4595f0['message$'][_0x54015f(0x349)](_0x5a6d25=>{const _0x2007dc=_0x54015f;let _0x1edc9f=_0x99dcc1(_0x5a6d25);_0x10185a[_0x2007dc(0x1e1)](_0x1edc9f);})),_0x5a8593['add']((0x0,_0x1d7efa[_0x54015f(0x496)])(()=>_0x10185a['complete']()));let _0x2264c4,_0x7ed07c=()=>{const _0x121819=_0x54015f;_0x408e31[_0x121819(0x1e1)](new Event(_0x121819(0x396))),_0x1516c5['next'](new Event('connection\x20error')),_0x2264c4['close']();};return _0x2264c4={'memberID':'','close$':_0x1516c5[_0x54015f(0x20b)](),'error$':_0x408e31['asObservable'](),'open$':_0x4595f0['open$'],'message$':_0x10185a[_0x54015f(0x20b)](),'send':_0x287ca0=>{const _0x199109=_0x54015f;if(_0x287ca0['cmd']===_0x22ed46[_0x199109(0x21f)][_0x199109(0x265)]){if(_0x287ca0[_0x199109(0x35c)][_0x199109(0x251)]===_0x1c67cc['CollaborationEvent']['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2264c4,_0x287ca0[_0x199109(0x35c)])[_0x199109(0x1c5)](_0x26efbc=>{const _0x447c84=_0x199109;this[_0x447c84(0x3a7)][_0x447c84(0x441)](_0x26efbc),_0x7ed07c();});return;}if(_0x287ca0['data'][_0x199109(0x251)]===_0x1c67cc[_0x199109(0x48b)]['FETCH_MISSING']){let _0x2345ea=_0x287ca0[_0x199109(0x35c)];this['_fetchMissChangesets'](_0x2345ea)[_0x199109(0x510)](_0x410bc0=>{const _0x264493=_0x199109;_0x10185a[_0x264493(0x1e1)]({'cmd':_0x22ed46[_0x264493(0x21f)][_0x264493(0x26d)],'code':_0x22ed46['CmdRspCode']['OK'],'routeKey':_0x2345ea[_0x264493(0x35c)]['unitID'],'routeType':'','data':{'eventID':_0x1c67cc['CollaborationEvent'][_0x264493(0x211)],'data':{'changesets':_0x410bc0}}});})[_0x199109(0x1c5)](_0x17b9b1=>{const _0x2a1d4a=_0x199109;this[_0x2a1d4a(0x3a7)][_0x2a1d4a(0x441)](_0x17b9b1),_0x7ed07c();});return;}}_0x4595f0['send'](_0x203404(_0x287ca0));},'close':()=>{const _0x51425a=_0x54015f;_0x4595f0[_0x51425a(0x448)](),_0x5a8593[_0x51425a(0x20d)]();}},_0x2264c4;}async[_0x412385(0x3fd)](_0x58f1e3,_0x23195d){const _0x5a50dd=_0x412385;let {unitType:_0x307b12,unitID:_0x1f7f63,changeset:_0x314386}=_0x23195d[_0x5a50dd(0x35c)],_0x1eda8f={'unitID':_0x1f7f63,'memberID':_0x58f1e3['memberID'],'type':_0x307b12,'changeset':(0x0,_0x1c67cc[_0x5a50dd(0x50d)])(_0x314386)},_0x5355ae=this[_0x5a50dd(0x309)][_0x5a50dd(0x447)](_0x5270c6),_0x2efd39=_0x49a4bb((_0x5355ae==null?void 0x0:_0x5355ae[_0x5a50dd(0x37f)])??_0x5a50dd(0x512),_0x307b12,_0x1f7f63);try{await this[_0x5a50dd(0x508)]['post'](_0x2efd39,{'body':_0x1eda8f});}catch(_0x149afd){throw this[_0x5a50dd(0x3a7)][_0x5a50dd(0x441)]('[CollaborationSession]',_0x5a50dd(0x458)),_0x149afd;}}async[_0x412385(0x4de)](_0x2b3557){const _0x358451=_0x412385;let {unitID:_0xe8d1c4,from:_0x4fef82,to:_0x175a12,unitType:_0x554104}=_0x2b3557[_0x358451(0x35c)];return(await this[_0x358451(0x200)][_0x358451(0x2f1)]({'metadata':void 0x0},{'unitID':_0xe8d1c4,'type':_0x554104,'from':_0x4fef82,'to':_0x175a12}))['changesets'][_0x358451(0x3e6)](_0x1caf07=>((_0x1caf07[_0x358451(0x2ff)]===null||_0x1caf07[_0x358451(0x2ff)]===void 0x0)&&(_0x1caf07[_0x358451(0x2ff)]=[]),_0x1caf07));}};_0x191d68=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4[_0x412385(0x1fd)])),_0x34b040(0x2,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x3,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x4,_0x1c67cc[_0x412385(0x4f7)])],_0x191d68);let _0x5a21f9=(0x0,_0x1d7efa['createIdentifier'])('univer-pro.collaboration-client-adapter-service');function _0x22b4af(_0x4adfe4={}){const _0x5cdad9=_0x412385;return _0x4adfe4[_0x5cdad9(0x416)]?{'resolveUnit':_0x4adfe4['resolveUnit']}:{'resolveUnit':_0x26280f=>({'target':{'unitId':_0x26280f[_0x5cdad9(0x20e)],'unitType':_0x26280f[_0x5cdad9(0x4ac)]}})};}function _0x394b99(_0x376add,_0x6c9810,_0x5ac23f){const _0x299c0c=_0x412385;let _0x42bff6=_0x5ac23f[_0x299c0c(0x50e)]['endpoint'];if(_0x42bff6!=null&&_0x42bff6[_0x299c0c(0x35e)]()==='')throw Error(_0x299c0c(0x3b8));if(!_0x5ac23f[_0x299c0c(0x50e)][_0x299c0c(0x20e)])throw Error(_0x299c0c(0x1ce));return{'localUnitId':_0x376add,'unitType':_0x6c9810,'target':{'endpoint':_0x42bff6,'unitId':_0x5ac23f[_0x299c0c(0x50e)][_0x299c0c(0x20e)],'unitType':_0x5ac23f['target'][_0x299c0c(0x4ac)]??_0x6c9810},'changeset':_0x5ac23f[_0x299c0c(0x280)]};}let _0x2a70ee=class extends _0x1d7efa[_0x412385(0x392)]{constructor(_0x4bcc65,_0x1ed90b,_0x2acf31,_0x126f2e,_0x184e62,_0x15de3b,_0x2bc89e){const _0x10bd7e=_0x412385;super(),this[_0x10bd7e(0x22c)]=_0x4bcc65,this['_logService']=_0x1ed90b,this[_0x10bd7e(0x309)]=_0x2acf31,this[_0x10bd7e(0x4e3)]=_0x126f2e,this[_0x10bd7e(0x373)]=_0x184e62,this[_0x10bd7e(0x4b0)]=_0x15de3b,this[_0x10bd7e(0x3c2)]=_0x2bc89e,_0x4a1990(this,_0x10bd7e(0x2a3),new Map()),_0x4a1990(this,'_pendingSessions',new Map()),_0x4a1990(this,'_sessionChannels',new Map()),_0x4a1990(this,_0x10bd7e(0x420),new Map()),_0x4a1990(this,_0x10bd7e(0x472),this[_0x10bd7e(0x382)](void 0x0)[_0x10bd7e(0x472)]['asObservable']()),_0x4a1990(this,_0x10bd7e(0x2de),new _0x150fe7[(_0x10bd7e(0x385))](0x0)),_0x4a1990(this,_0x10bd7e(0x236),this[_0x10bd7e(0x2de)][_0x10bd7e(0x20b)]()),this[_0x10bd7e(0x291)]();}[_0x412385(0x291)](){const _0x464b12=_0x412385;this[_0x464b12(0x3c2)]&&this[_0x464b12(0x34e)](this[_0x464b12(0x3c2)][_0x464b12(0x260)][_0x464b12(0x349)](_0x227c44=>{const _0x12b146=_0x464b12;_0x227c44&&this[_0x12b146(0x2d1)](),_0x227c44||this['_socketChannels']['forEach'](_0x58d8a7=>this[_0x12b146(0x453)](_0x58d8a7));}));}[_0x412385(0x20d)](){const _0x133227=_0x412385;super[_0x133227(0x20d)](),this[_0x133227(0x420)][_0x133227(0x303)](_0x5e7765=>{const _0x261672=_0x133227;var _0x30d649,_0x51c271;(_0x30d649=_0x5e7765[_0x261672(0x2be)])==null||_0x30d649['unsubscribe'](),_0x5e7765['socketMessageSubscription']=null,this[_0x261672(0x504)](_0x5e7765),this[_0x261672(0x434)](_0x5e7765),this['_clearHeartbeatTimer'](_0x5e7765),(_0x51c271=_0x5e7765[_0x261672(0x472)][_0x261672(0x450)]())==null||_0x51c271[_0x261672(0x448)](),_0x5e7765[_0x261672(0x472)][_0x261672(0x468)]();}),this[_0x133227(0x420)][_0x133227(0x519)](),this[_0x133227(0x2a3)][_0x133227(0x303)](_0x33554a=>_0x33554a[_0x133227(0x20d)]()),this['_sessions']['clear'](),this[_0x133227(0x2e9)]['clear'](),this[_0x133227(0x2de)][_0x133227(0x468)]();}async[_0x412385(0x358)](_0x33988f,_0x4e8efa){const _0x5d5785=_0x412385;if(this[_0x5d5785(0x2a3)]['has'](_0x33988f))return this[_0x5d5785(0x2a3)][_0x5d5785(0x354)](_0x33988f);let _0xcec335=this['_pendingSessions']['get'](_0x33988f);if(_0xcec335)return _0xcec335;let _0x2c82c7=this[_0x5d5785(0x4af)](_0x33988f,_0x4e8efa);this[_0x5d5785(0x4a1)][_0x5d5785(0x446)](_0x33988f,_0x2c82c7);try{return await _0x2c82c7;}finally{this['_pendingSessions'][_0x5d5785(0x45c)](_0x33988f);}}async[_0x412385(0x4af)](_0x8651e5,_0x320547){const _0x414192=_0x412385;let _0xe454ed=await this[_0x414192(0x395)](_0x8651e5,_0x320547),_0x3e2d86=this['_getSocketChannel'](_0xe454ed[_0x414192(0x50e)][_0x414192(0x35b)]);this['_tryEnsureSocket'](_0x3e2d86);let _0x192973=this[_0x414192(0x22c)][_0x414192(0x268)](_0x1c43ab,_0xe454ed,_0x3e2d86[_0x414192(0x472)]['asObservable']());return this[_0x414192(0x2a3)][_0x414192(0x446)](_0x8651e5,_0x192973),this[_0x414192(0x2e9)]['set'](_0x8651e5,_0x3e2d86[_0x414192(0x4b9)]),_0x192973;}[_0x412385(0x405)](_0x55adc5){const _0x3f8c31=_0x412385;let _0x183389=this['_sessions'][_0x3f8c31(0x354)](_0x55adc5),_0x175cc0=this['_sessionChannels'][_0x3f8c31(0x354)](_0x55adc5);if(_0x183389&&(this['_sessions'][_0x3f8c31(0x45c)](_0x55adc5),this[_0x3f8c31(0x2e9)][_0x3f8c31(0x45c)](_0x55adc5),_0x183389[_0x3f8c31(0x448)]()),_0x175cc0&&!this['_hasSessionsForEndpoint'](_0x175cc0)){var _0x2840ca;let _0x49261f=this[_0x3f8c31(0x420)][_0x3f8c31(0x354)](_0x175cc0);_0x49261f==null||(_0x2840ca=_0x49261f['socket$']['getValue']())==null||_0x2840ca[_0x3f8c31(0x448)]();}}['reconnect'](){const _0x1cf3fe=_0x412385;(this[_0x1cf3fe(0x420)]['size']?[...this[_0x1cf3fe(0x420)]['values']()]:[this['_getSocketChannel'](void 0x0)])[_0x1cf3fe(0x303)](_0x257360=>{const _0xc541c2=_0x1cf3fe;_0x257360[_0xc541c2(0x2ba)]=0x0,this[_0xc541c2(0x504)](_0x257360),this[_0xc541c2(0x1f2)](_0x257360);});}['_clearRetryConnectingTimer'](_0x4f221d){const _0x35a1c8=_0x412385;_0x4f221d[_0x35a1c8(0x445)]!=null&&(clearTimeout(_0x4f221d['retryConnectingTimer']),_0x4f221d[_0x35a1c8(0x445)]=null);}async[_0x412385(0x4b3)](_0x2ecfcd){const _0x2b71e5=_0x412385;let _0x491a82=this[_0x2b71e5(0x309)][_0x2b71e5(0x447)](_0x5270c6),_0xd1f6e0=_0x2ecfcd[_0x2b71e5(0x35b)]??(_0x491a82==null?void 0x0:_0x491a82[_0x2b71e5(0x2a4)])??_0x2b71e5(0x399),_0x531516=await this['_socketService'][_0x2b71e5(0x46a)](_0xd1f6e0);return _0x2ecfcd[_0x2b71e5(0x25d)]=_0x531516,_0x531516;}async[_0x412385(0x3e9)](_0x13ca44){const _0x4962ae=_0x412385;try{let _0x2416c3=_0x13ca44[_0x4962ae(0x472)][_0x4962ae(0x450)]()??_0x13ca44[_0x4962ae(0x25d)]??await this[_0x4962ae(0x4b3)](_0x13ca44);if(_0x2416c3){var _0x2c7c7d;let _0x18ee48=_0x2416c3[_0x4962ae(0x401)];_0x2416c3[_0x4962ae(0x401)]=_0x6b9420=>(_0x6b9420[_0x4962ae(0x509)]!==_0x22ed46[_0x4962ae(0x21f)]['LEAVE']&&this[_0x4962ae(0x44f)](_0x13ca44),_0x18ee48[_0x4962ae(0x1d1)](_0x2416c3,[_0x6b9420])),(_0x2c7c7d=_0x13ca44[_0x4962ae(0x2be)])==null||_0x2c7c7d[_0x4962ae(0x3c6)](),_0x13ca44['socketMessageSubscription']=null,_0x13ca44[_0x4962ae(0x2be)]=_0x2416c3[_0x4962ae(0x3ab)]['subscribe'](_0x2ddf45=>this[_0x4962ae(0x327)](_0x13ca44,_0x2416c3,_0x2ddf45)),_0x2416c3[_0x4962ae(0x32b)][_0x4962ae(0x21b)]((0x0,_0x6241f['take'])(0x1))[_0x4962ae(0x349)](_0x36be1c=>this[_0x4962ae(0x3a7)][_0x4962ae(0x441)](_0x4962ae(0x38d),_0x36be1c)),_0x2416c3['open$']['pipe']((0x0,_0x6241f[_0x4962ae(0x43a)])(0x1))[_0x4962ae(0x349)](()=>{const _0x5d0c49=_0x4962ae;this[_0x5d0c49(0x4d3)](_0x13ca44,_0x2416c3);}),_0x2416c3['close$'][_0x4962ae(0x21b)]((0x0,_0x6241f[_0x4962ae(0x43a)])(0x1))[_0x4962ae(0x349)](_0x16049a=>{const _0x34dd98=_0x4962ae;this[_0x34dd98(0x3a7)]['debug']('[CollaborationSessionService]','socket\x20close',_0x16049a),this['_onConnectionFailed'](_0x13ca44);});}}catch(_0x2e0c96){this['_logService'][_0x4962ae(0x441)](_0x2e0c96),this[_0x4962ae(0x216)](_0x13ca44);}}[_0x412385(0x4d3)](_0x14a4ac,_0x366ef1){const _0x319c27=_0x412385;this[_0x319c27(0x3a7)]['debug'](_0x319c27(0x36d),_0x319c27(0x30d)),_0x366ef1[_0x319c27(0x401)]({'cmd':_0x22ed46[_0x319c27(0x21f)][_0x319c27(0x3e7)]}),this[_0x319c27(0x44f)](_0x14a4ac);}[_0x412385(0x453)](_0x2bc14c){const _0x47bc4a=_0x412385;_0x2bc14c[_0x47bc4a(0x4a8)]=!0x1,_0x2bc14c[_0x47bc4a(0x25d)]=null,this[_0x47bc4a(0x2de)][_0x47bc4a(0x1e1)](0x2),_0x2bc14c[_0x47bc4a(0x472)][_0x47bc4a(0x1e1)](null),this[_0x47bc4a(0x434)](_0x2bc14c),this[_0x47bc4a(0x1f8)](_0x2bc14c);}['_onConnectionFailed'](_0x301042){const _0xe681ed=_0x412385;this[_0xe681ed(0x453)](_0x301042),this[_0xe681ed(0x4cd)](_0x301042[_0xe681ed(0x4b9)])&&(_0x301042[_0xe681ed(0x2ba)]<(this['_configService'][_0xe681ed(0x447)](_0xe681ed(0x25f))??0x3)?(this[_0xe681ed(0x373)][_0xe681ed(0x30b)]({'id':_0xe681ed(0x29b)}),this[_0xe681ed(0x1f2)](_0x301042)):this[_0xe681ed(0x373)]['emitEvent']({'id':_0xe681ed(0x4f6)}));}['_tryReconnect'](_0x2b5c1d){const _0x5028d8=_0x412385;let _0x2e73ac=_0x2b5c1d[_0x5028d8(0x2ba)],_0x38fba4=this[_0x5028d8(0x309)]['getConfig'](_0x5270c6),_0x4effe0=_0x2e73ac===0x0?0x0:((_0x38fba4==null?void 0x0:_0x38fba4[_0x5028d8(0x3f5)])??0x4e20)*0x2**_0x2e73ac;_0x2b5c1d[_0x5028d8(0x445)]=setTimeout(()=>{const _0x16cbe5=_0x5028d8;clearTimeout(_0x2b5c1d[_0x16cbe5(0x445)]),_0x2b5c1d[_0x16cbe5(0x445)]=null,this[_0x16cbe5(0x3e9)](_0x2b5c1d);},_0x4effe0),_0x2b5c1d[_0x5028d8(0x2ba)]+=0x1;}async[_0x412385(0x395)](_0x3540b1,_0x6016e4){const _0x2b9bb0=_0x412385;return _0x394b99(_0x3540b1,_0x6016e4,await this[_0x2b9bb0(0x4b0)][_0x2b9bb0(0x416)]({'unitId':_0x3540b1,'unitType':_0x6016e4}));}[_0x412385(0x327)](_0x418322,_0x3789bb,_0x495d32){const _0x5695b6=_0x412385;let {cmd:_0x1a06a4}=_0x495d32;_0x1a06a4===_0x22ed46['CombCmd'][_0x5695b6(0x3e7)]&&!_0x418322['socketReady']&&(_0x3789bb[_0x5695b6(0x24a)]=_0x495d32['data'][_0x5695b6(0x24a)],_0x418322[_0x5695b6(0x2ba)]=0x0,_0x418322[_0x5695b6(0x472)][_0x5695b6(0x1e1)](_0x3789bb),this['_status$'][_0x5695b6(0x1e1)](0x3),_0x418322[_0x5695b6(0x4a8)]=!0x0,_0x418322[_0x5695b6(0x25d)]=null),_0x1a06a4===_0x22ed46['CombCmd']['HEARTBEAT']&&this[_0x5695b6(0x434)](_0x418322),this[_0x5695b6(0x44f)](_0x418322);}['_hasSessionsForEndpoint'](_0x4121b4){const _0x3d0f3b=_0x412385;return[...this[_0x3d0f3b(0x2e9)][_0x3d0f3b(0x48d)]()][_0x3d0f3b(0x23d)](_0x5b567b=>_0x5b567b===_0x4121b4);}['_getSocketChannel'](_0x532f5e){const _0x3b323e=_0x412385;let _0x510fd1=_0x532f5e??'',_0x9a0742=this[_0x3b323e(0x420)][_0x3b323e(0x354)](_0x510fd1);if(_0x9a0742)return _0x9a0742;let _0x4e15a7={'endpointKey':_0x510fd1,'endpoint':_0x532f5e,'socket$':new _0x150fe7[(_0x3b323e(0x385))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x510fd1,_0x4e15a7),_0x4e15a7;}[_0x412385(0x44f)](_0x4b32af){const _0x19aa2f=_0x412385;this['_clearHeartbeatTimer'](_0x4b32af),_0x4b32af['sendHeartbeatTimer']=setTimeout(()=>this[_0x19aa2f(0x2a7)](_0x4b32af),this[_0x19aa2f(0x309)][_0x19aa2f(0x447)](_0x19aa2f(0x415))??0x7530);}[_0x412385(0x2a7)](_0x2d6805){const _0x3304ba=_0x412385;_0x2d6805[_0x3304ba(0x472)]['getValue']()[_0x3304ba(0x401)]({'cmd':_0x22ed46['CombCmd'][_0x3304ba(0x380)]}),this[_0x3304ba(0x49a)](_0x2d6805);}[_0x412385(0x49a)](_0x52da04){const _0x18efb2=_0x412385;_0x52da04[_0x18efb2(0x513)]=setTimeout(()=>this[_0x18efb2(0x216)](_0x52da04),this[_0x18efb2(0x309)]['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x412385(0x1f8)](_0x4567a8){const _0x334174=_0x412385;_0x4567a8[_0x334174(0x329)]!=null&&(clearTimeout(_0x4567a8[_0x334174(0x329)]),_0x4567a8[_0x334174(0x329)]=null);}['_clearTimeoutTimer'](_0x212d2e){const _0x5bd6dc=_0x412385;_0x212d2e[_0x5bd6dc(0x513)]!=null&&(clearTimeout(_0x212d2e[_0x5bd6dc(0x513)]),_0x212d2e['timeoutTimer']=null);}};_0x2a70ee=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x1,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x2,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x3,_0x796d28),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x14986c)),_0x34b040(0x5,_0x5a21f9),_0x34b040(0x6,(0x0,_0x1d7efa[_0x412385(0x361)])(_0x4b44da))],_0x2a70ee);let _0x15d399=class extends _0x1d7efa[_0x412385(0x281)]{constructor(_0x5584e8,_0x2457fe,_0x275683,_0x588594){const _0x762ec3=_0x412385;var _0x4724c1;super(),this[_0x762ec3(0x22c)]=_0x5584e8,this[_0x762ec3(0x3d1)]=_0x2457fe,this['_configService']=_0x275683,this[_0x762ec3(0x203)]=_0x588594,_0x4a1990(this,'_entities',new Map()),_0x4a1990(this,_0x762ec3(0x283),new _0x150fe7[(_0x762ec3(0x3a1))]()),_0x4a1990(this,_0x762ec3(0x438),this[_0x762ec3(0x283)][_0x762ec3(0x20b)]()),((_0x4724c1=this[_0x762ec3(0x309)]['getConfig'](_0x762ec3(0x2f6)))==null?void 0x0:_0x4724c1[_0x762ec3(0x1c9)])!==!0x1&&this[_0x762ec3(0x2f8)]();}[_0x412385(0x20d)](){const _0x5be477=_0x412385;super[_0x5be477(0x20d)](),this[_0x5be477(0x1c6)]['forEach'](_0x16a6de=>_0x16a6de[_0x5be477(0x20d)]()),this[_0x5be477(0x1c6)][_0x5be477(0x519)]();}[_0x412385(0x1b6)](_0x15bb55){const _0x5ea612=_0x412385;return this[_0x5ea612(0x1c6)][_0x5ea612(0x354)](_0x15bb55)??null;}[_0x412385(0x3f0)](_0x138e26){const _0x41ef84=_0x412385;let _0x36392a=this['getCollabEntity'](_0x138e26);return _0x36392a?(0x0,_0x150fe7['of'])(_0x36392a):this[_0x41ef84(0x283)]['pipe']((0x0,_0x6241f[_0x41ef84(0x49e)])(_0x461307=>_0x461307[_0x41ef84(0x2c1)]===_0x138e26));}['readyForCollab'](_0x231304){const _0x3b62f3=_0x412385;return(0x0,_0x150fe7[_0x3b62f3(0x23b)])(this[_0x3b62f3(0x3f0)](_0x231304)[_0x3b62f3(0x21b)]((0x0,_0x6241f['map'])(()=>void 0x0)));}[_0x412385(0x2f8)](){const _0x13f09c=_0x412385;this[_0x13f09c(0x203)][_0x13f09c(0x1fa)](_0x1d7efa[_0x13f09c(0x339)][_0x13f09c(0x2d7)])[_0x13f09c(0x21b)]((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this[_0x13f09c(0x3d0)]),(0x0,_0x6241f[_0x13f09c(0x40a)])(0x10))['subscribe'](async _0x41b69d=>{const _0x425a40=_0x13f09c;let _0x2cd9e1=_0x41b69d[_0x425a40(0x315)][_0x425a40(0x335)](),_0x4d84ba=await this['_startCollaboration'](_0x2cd9e1,_0x1d7efa[_0x425a40(0x339)][_0x425a40(0x2d7)]);this[_0x425a40(0x1c6)]['set'](_0x2cd9e1,_0x4d84ba);}),this[_0x13f09c(0x203)][_0x13f09c(0x1fa)](_0x1d7efa[_0x13f09c(0x339)]['UNIVER_DOC'])['pipe']((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this['dispose$']),(0x0,_0x6241f['delay'])(0x10))['pipe']((0x0,_0x6241f[_0x13f09c(0x49e)])(_0x18bb3c=>!_0x18bb3c[_0x13f09c(0x315)][_0x13f09c(0x335)]()['startsWith']('__')))[_0x13f09c(0x349)](async _0x2f4e55=>{const _0x42168e=_0x13f09c;let _0xb1c316=_0x2f4e55[_0x42168e(0x315)][_0x42168e(0x335)](),_0x2885e9=await this['_startCollaboration'](_0xb1c316,_0x1d7efa[_0x42168e(0x339)][_0x42168e(0x48a)]);this['_entities'][_0x42168e(0x446)](_0xb1c316,_0x2885e9);}),this[_0x13f09c(0x203)][_0x13f09c(0x1fa)](_0x1d7efa['UniverInstanceType'][_0x13f09c(0x22e)])[_0x13f09c(0x21b)]((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this['dispose$']),(0x0,_0x6241f[_0x13f09c(0x40a)])(0x10))[_0x13f09c(0x349)](async _0x5dfe92=>{const _0x399e6f=_0x13f09c;let _0x188c14=_0x5dfe92[_0x399e6f(0x315)][_0x399e6f(0x335)](),_0x33898f=await this['_startCollaboration'](_0x188c14,_0x1d7efa['UniverInstanceType'][_0x399e6f(0x22e)]);this[_0x399e6f(0x1c6)]['set'](_0x188c14,_0x33898f);}),this['_univerInstanceService'][_0x13f09c(0x1fa)](_0x1d7efa[_0x13f09c(0x339)]['UNIVER_BOARD'])[_0x13f09c(0x21b)]((0x0,_0x150fe7['takeUntil'])(this['dispose$']),(0x0,_0x6241f[_0x13f09c(0x40a)])(0x10))[_0x13f09c(0x349)](async _0x25ea0d=>{const _0x400bf1=_0x13f09c;let _0x4fb2dc=_0x25ea0d['unit'][_0x400bf1(0x335)](),_0x38345f=await this[_0x400bf1(0x1bb)](_0x4fb2dc,_0x1d7efa[_0x400bf1(0x339)][_0x400bf1(0x1ad)]);this['_entities'][_0x400bf1(0x446)](_0x4fb2dc,_0x38345f);}),this[_0x13f09c(0x203)][_0x13f09c(0x1fa)](_0x1d7efa['UniverInstanceType'][_0x13f09c(0x242)])[_0x13f09c(0x21b)]((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this[_0x13f09c(0x3d0)]),(0x0,_0x6241f[_0x13f09c(0x40a)])(0x10))[_0x13f09c(0x349)](async _0x221404=>{const _0xaabfa6=_0x13f09c;let _0x1dc376=_0x221404[_0xaabfa6(0x315)][_0xaabfa6(0x335)](),_0x2d4df6=await this[_0xaabfa6(0x1bb)](_0x1dc376,_0x1d7efa[_0xaabfa6(0x339)][_0xaabfa6(0x242)]);this[_0xaabfa6(0x1c6)][_0xaabfa6(0x446)](_0x1dc376,_0x2d4df6);}),this[_0x13f09c(0x203)][_0x13f09c(0x1fa)](_0x1d7efa[_0x13f09c(0x339)]['UNIVER_PDF'])[_0x13f09c(0x21b)]((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this[_0x13f09c(0x3d0)]),(0x0,_0x6241f[_0x13f09c(0x40a)])(0x10))[_0x13f09c(0x349)](async _0x47c86a=>{const _0x8bce04=_0x13f09c;let _0x131574=_0x47c86a[_0x8bce04(0x315)]['getUnitId'](),_0x188767=await this[_0x8bce04(0x1bb)](_0x131574,_0x1d7efa[_0x8bce04(0x339)]['UNIVER_PDF']);this[_0x8bce04(0x1c6)][_0x8bce04(0x446)](_0x131574,_0x188767);}),(0x0,_0x150fe7[_0x13f09c(0x1ab)])(this[_0x13f09c(0x203)][_0x13f09c(0x248)](_0x1d7efa[_0x13f09c(0x339)]['UNIVER_SHEET']),this[_0x13f09c(0x203)][_0x13f09c(0x248)](_0x1d7efa[_0x13f09c(0x339)][_0x13f09c(0x48a)]),this[_0x13f09c(0x203)][_0x13f09c(0x248)](_0x1d7efa['UniverInstanceType'][_0x13f09c(0x22e)]),this[_0x13f09c(0x203)][_0x13f09c(0x248)](_0x1d7efa[_0x13f09c(0x339)][_0x13f09c(0x1ad)]),this[_0x13f09c(0x203)][_0x13f09c(0x248)](_0x1d7efa[_0x13f09c(0x339)][_0x13f09c(0x242)]),this[_0x13f09c(0x203)]['getTypeOfUnitDisposed$'](_0x1d7efa['UniverInstanceType']['UNIVER_PDF']))[_0x13f09c(0x21b)]((0x0,_0x150fe7[_0x13f09c(0x2d6)])(this[_0x13f09c(0x3d0)]))[_0x13f09c(0x349)](_0x159fa3=>{const _0x540ad8=_0x13f09c;let _0x1c72f2=_0x159fa3[_0x540ad8(0x335)](),_0x300f59=this['_entities'][_0x540ad8(0x354)](_0x1c72f2);_0x300f59&&(_0x300f59['dispose'](),this['_entities'][_0x540ad8(0x45c)](_0x1c72f2));});}async['_startCollaboration'](_0x59b9a7,_0x197021){const _0x39e723=_0x412385;let _0x41d31c=await this[_0x39e723(0x3d1)][_0x39e723(0x358)](_0x59b9a7),_0x1c8583=this[_0x39e723(0x22c)][_0x39e723(0x268)](this[_0x39e723(0x3f7)](_0x197021),_0x59b9a7,_0x197021,_0x41d31c);return await _0x1c8583[_0x39e723(0x2cb)](),this[_0x39e723(0x283)][_0x39e723(0x1e1)](_0x1c8583),_0x1c8583;}[_0x412385(0x3f7)](_0x216962){const _0xd2075c=_0x412385;switch(_0x216962){case _0x1d7efa['UniverInstanceType'][_0xd2075c(0x48a)]:return _0x49af8e;case _0x1d7efa['UniverInstanceType'][_0xd2075c(0x2d7)]:return _0xe87472;case _0x1d7efa[_0xd2075c(0x339)]['UNIVER_SLIDE']:return _0x5cc1fb;case _0x1d7efa[_0xd2075c(0x339)][_0xd2075c(0x1ad)]:return _0x3673f5;case _0x1d7efa['UniverInstanceType'][_0xd2075c(0x242)]:return _0x360e2c;case _0x1d7efa[_0xd2075c(0x339)][_0xd2075c(0x4d8)]:return _0x5e1218;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x216962);}}};_0x15d399=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['Injector'])),_0x34b040(0x1,(0x0,_0x1d7efa['Inject'])(_0x2a70ee)),_0x34b040(0x2,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x3,_0x1d7efa[_0x412385(0x289)])],_0x15d399);var _0x17ce84=_0x412385(0x4f5),_0x41a5ba=_0x412385(0x47a);let _0x3f9bbe=class extends _0x1d7efa['Disposable']{constructor(_0x26ce21,_0x6b6f25){const _0x45c093=_0x412385;super(),this[_0x45c093(0x203)]=_0x26ce21,this[_0x45c093(0x309)]=_0x6b6f25,this[_0x45c093(0x2f8)]();}[_0x412385(0x2f8)](){const _0x56945b=_0x412385;this[_0x56945b(0x34e)](this[_0x56945b(0x203)][_0x56945b(0x4c4)][_0x56945b(0x349)](()=>{const _0x2afd9e=_0x56945b;let _0x5ae1a2=this[_0x2afd9e(0x203)]['getFocusedUnit'](),_0x39b24e=this[_0x2afd9e(0x309)][_0x2afd9e(0x447)](_0x2afd9e(0x320))??_0x2afd9e(0x3d4);_0x5ae1a2 instanceof _0x1d7efa[_0x2afd9e(0x273)]&&(_0x39b24e=_0x5ae1a2[_0x2afd9e(0x49f)]),document[_0x2afd9e(0x4fa)]=_0x39b24e;}));}};_0x3f9bbe=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x1,_0x1d7efa[_0x412385(0x44b)])],_0x3f9bbe);let _0x14a2d0=(0x0,_0x1d7efa[_0x412385(0x36f)])(_0x412385(0x422)),_0x27bb8b=class{constructor(_0x46e69f,_0x2492c2,_0x272027){const _0x38e09f=_0x412385;this['_httpService']=_0x46e69f,this[_0x38e09f(0x309)]=_0x2492c2,this[_0x38e09f(0x203)]=_0x272027;}[_0x412385(0x2f0)](){const _0x47712a=_0x412385;return this[_0x47712a(0x377)]()['attachment']??{};}async[_0x412385(0x24b)](_0x3e80bd){const _0x4339a3=_0x412385;let _0x5b84c7=this[_0x4339a3(0x2f0)]();if(_0x2b7258(_0x3e80bd,_0x5b84c7),_0x5b84c7[_0x4339a3(0x1b5)])return _0x5b84c7[_0x4339a3(0x1b5)](_0x3e80bd);let _0x39a57f=await this[_0x4339a3(0x31a)](_0x3e80bd);return{'id':_0x39a57f,'name':_0x3e80bd[_0x4339a3(0x49f)],'mimeType':_0x3e80bd[_0x4339a3(0x2db)],'size':_0x3e80bd[_0x4339a3(0x2e8)],'sourceType':_0x1d7efa[_0x4339a3(0x402)][_0x4339a3(0x35a)],'source':_0x39a57f};}async['getAttachmentUrl'](_0x34e405,_0x4af4f6){const _0x1fbf2e=_0x412385;if(_0x4af4f6!==_0x1d7efa['ImageSourceType']['UUID'])return _0x34e405;let _0x35693e=(await this['_httpService']['get'](this[_0x1fbf2e(0x3cc)]()[_0x1fbf2e(0x518)](_0x1fbf2e(0x482),_0x34e405)))[_0x1fbf2e(0x34b)];if(_0x35693e[_0x1fbf2e(0x441)]&&_0x35693e[_0x1fbf2e(0x441)][_0x1fbf2e(0x28c)]!==_0x22ed46['ErrorCode']['OK'])throw _0x35693e[_0x1fbf2e(0x441)];if(!_0x35693e[_0x1fbf2e(0x1cd)])throw Error(_0x1fbf2e(0x1ed));return(0x0,_0x1d7efa[_0x1fbf2e(0x1f1)])(_0x35693e['url'],this[_0x1fbf2e(0x1e8)]());}async[_0x412385(0x31a)](_0x5ea5d6){const _0x546cc6=_0x412385;let _0x31ba69=this[_0x546cc6(0x203)][_0x546cc6(0x32f)](),_0x57a2b8=_0x31ba69==null?void 0x0:_0x31ba69[_0x546cc6(0x335)]();if(!_0x57a2b8)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x546bac=new FormData();_0x546bac['append'](_0x546cc6(0x313),_0x5ea5d6);let _0x2248aa=this[_0x546cc6(0x1fe)]()+_0x546cc6(0x2a5)+_0x5ea5d6[_0x546cc6(0x2e8)]['toString']()+_0x546cc6(0x256)+_0x22ed46['FileSource'][_0x546cc6(0x4d7)]+'&assign='+encodeURIComponent(_0x57a2b8),_0x2727ab=(await this[_0x546cc6(0x508)]['post'](_0x2248aa,{'body':_0x546bac}))[_0x546cc6(0x34b)][_0x546cc6(0x3b9)];if(typeof _0x2727ab!='string'||!_0x2727ab)throw Error(_0x546cc6(0x41b));return _0x2727ab;}[_0x412385(0x1fe)](){const _0x5ab9fc=_0x412385;return this[_0x5ab9fc(0x377)]()['uploadFileServerUrl']??'/universer-api/stream/file/upload';}[_0x412385(0x3cc)](){const _0xa93f22=_0x412385;return this['_getConfig']()[_0xa93f22(0x23c)]??_0xa93f22(0x29d);}[_0x412385(0x1e8)](){const _0x32ee22=_0x412385;let _0x353113=this[_0x32ee22(0x377)]();return _0x353113['downloadEndpointUrl']?_0x353113[_0x32ee22(0x43c)]:typeof location<'u'?location[_0x32ee22(0x45d)]:_0x353113[_0x32ee22(0x25c)]??'';}[_0x412385(0x377)](){const _0x5ab654=_0x412385;return this[_0x5ab654(0x309)][_0x5ab654(0x447)](_0x5ab654(0x2f6))??{};}};_0x27bb8b=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4['HTTPService'])),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x44b)])),_0x34b040(0x2,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x289)]))],_0x27bb8b);function _0x2b7258(_0x1be20b,_0x495467){const _0x28eb8f=_0x412385;var _0x857d67;if(_0x495467[_0x28eb8f(0x4d5)]!=null&&_0x1be20b[_0x28eb8f(0x2e8)]>_0x495467['maxSize'])throw Error(_0x28eb8f(0x1cb));if((_0x857d67=_0x495467['accept'])!=null&&_0x857d67[_0x28eb8f(0x372)]&&!_0x495467[_0x28eb8f(0x209)][_0x28eb8f(0x23d)](_0x5cb41e=>_0x1be20b[_0x28eb8f(0x2db)]===_0x5cb41e||_0x1be20b[_0x28eb8f(0x49f)][_0x28eb8f(0x400)](_0x5cb41e)||_0x5cb41e['endsWith']('/*')&&_0x1be20b[_0x28eb8f(0x2db)][_0x28eb8f(0x333)](_0x5cb41e[_0x28eb8f(0x353)](0x0,-0x1))))throw Error(_0x28eb8f(0x3f4));}let _0x2fe2cf=class{constructor(_0x4942e5,_0x1b7349,_0x3edea5){const _0x10789b=_0x412385;this[_0x10789b(0x309)]=_0x4942e5,this[_0x10789b(0x508)]=_0x1b7349,this[_0x10789b(0x489)]=_0x3edea5,this[_0x10789b(0x2cb)]();}[_0x412385(0x2cb)](){const _0x5ec173=_0x412385;this[_0x5ec173(0x508)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4993f8,_0xdcea35)=>_0xdcea35(_0x4993f8)[_0x5ec173(0x21b)]((0x0,_0x150fe7[_0x5ec173(0x24e)])(async _0x331ad4=>{const _0x3cda64=_0x5ec173;let _0xbd7768=_0x331ad4;if(_0xbd7768[_0x3cda64(0x34f)]===0x191){if(typeof window>'u')throw Error(_0x3cda64(0x306));if(window[_0x3cda64(0x1dc)](this[_0x3cda64(0x489)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x497afb=window[_0x3cda64(0x208)](window['location']['href']);window[_0x3cda64(0x36e)][_0x3cda64(0x43d)]=this[_0x3cda64(0x1c2)]()+_0x3cda64(0x272)+_0x497afb;}}return _0xbd7768;}))});}[_0x412385(0x1c2)](){const _0xfa827e=_0x412385;let _0xb21127=this[_0xfa827e(0x309)]['getConfig'](_0x5270c6);return(_0xb21127==null?void 0x0:_0xb21127['loginUrlKey'])??_0xfa827e(0x3b0);}};_0x2fe2cf=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4[_0x412385(0x1fd)])),_0x34b040(0x2,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x47e)]))],_0x2fe2cf);let _0x21b3b7=class extends _0x1d7efa[_0x412385(0x392)]{constructor(_0x10c7cf,_0x6427bf){const _0x344716=_0x412385;super(),this[_0x344716(0x421)]=_0x10c7cf,this[_0x344716(0x309)]=_0x6427bf,_0x4a1990(this,'_cfgEnableObjInherit',!0x1),this[_0x344716(0x46d)]();}[_0x412385(0x46d)](){const _0x253e29=_0x412385;let _0x868488=this;this[_0x253e29(0x34e)](this['_HTTPService'][_0x253e29(0x1ec)]({'priority':0x3e7,'interceptor':(0x0,_0x43a4f4[_0x253e29(0x3a2)])({'isMatch'(_0x91735a){const _0x15cfb5=_0x253e29;var _0x1576bb;if(_0x91735a['method']==='POST'&&(_0x1576bb=_0x91735a[_0x15cfb5(0x368)])!=null&&_0x1576bb[_0x15cfb5(0x34b)]){let {objectID:_0x51f16c,objectType:_0x246156}=_0x91735a['requestParams'][_0x15cfb5(0x34b)]||{};if(!_0x51f16c||_0x246156===void 0x0)return!0x1;let _0x39a0f5=_0x868488[_0x15cfb5(0x1b4)]()+'/'+_0x246156+'/object/'+encodeURIComponent(_0x51f16c)+'/allowed';if(_0x91735a['url']===_0x39a0f5)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a3c22){const _0x10611c=_0x253e29;var _0x40373f;return(_0x40373f=_0x4a3c22[_0x10611c(0x368)])==null?void 0x0:_0x40373f[_0x10611c(0x34b)];},'mergeParamsToRequest'(_0x593bf1,_0x140675){const _0x4a14aa=_0x253e29;let _0x17dbd0=_0x868488[_0x4a14aa(0x1b4)]()+_0x4a14aa(0x3c5),_0x5a506f=_0x593bf1[_0x4a14aa(0x4a9)]((_0x4e4d74,_0x4b9565)=>{const _0x163d87=_0x4a14aa;let {unitID:_0xb61771,objectID:_0x1da910,objectType:_0x36dac7,actions:_0x1adb7b}=_0x4b9565;return _0x4e4d74[_0xb61771]||(_0x4e4d74[_0xb61771]=Object['create'](null)),_0x4e4d74[_0xb61771][_0x1da910]||(_0x4e4d74[_0xb61771][_0x1da910]={'objectID':_0x1da910,'objectType':_0x36dac7,'actions':[]}),_0x4e4d74[_0xb61771][_0x1da910][_0x163d87(0x1aa)]['push'](..._0x1adb7b),_0x4e4d74;},Object[_0x4a14aa(0x355)](null)),_0x11144b=[];for(let _0xa865ba in _0x5a506f)for(let _0x2d0462 in _0x5a506f[_0xa865ba]){let {actions:_0x5d9d57,objectType:_0x4bb4c9}=_0x5a506f[_0xa865ba][_0x2d0462],_0x3ef7a1=[...new Set(_0x5d9d57)];_0x11144b[_0x4a14aa(0x1e0)]({'unitID':_0xa865ba,'objectID':_0x2d0462,'objectType':_0x4bb4c9,'actions':_0x3ef7a1});}return new _0x43a4f4['HTTPRequest'](_0x4a14aa(0x44e),_0x17dbd0,{'headers':_0x140675[_0x4a14aa(0x204)],'withCredentials':_0x140675[_0x4a14aa(0x2d3)],'responseType':_0x140675[_0x4a14aa(0x2bd)],'body':{'requests':_0x11144b}});}},{'distributeResult'(_0x1c18c9,_0xa334ec){const _0x21a20e=_0x253e29;let {objectActions:_0x1a664e}=_0x1c18c9;return _0xa334ec[_0x21a20e(0x3e6)](_0x2ec356=>{const _0x2d2dcf=_0x21a20e;let {unitID:_0x14de91,objectID:_0x1c0e41,actions:_0x35f4c6}=_0x2ec356,_0x54889a=_0x1a664e[_0x2d2dcf(0x451)](_0x302385=>_0x302385[_0x2d2dcf(0x2c1)]===_0x14de91&&_0x302385[_0x2d2dcf(0x322)]===_0x1c0e41);return{'config':_0x2ec356,'result':{'actions':_0x35f4c6[_0x2d2dcf(0x3e6)](_0xf5fe4c=>_0x54889a==null?void 0x0:_0x54889a[_0x2d2dcf(0x1aa)]['find'](_0x47a5c9=>_0x47a5c9[_0x2d2dcf(0x33b)]===_0xf5fe4c))[_0x2d2dcf(0x49e)](_0x581fbc=>!!_0x581fbc),'error':_0x1c18c9[_0x2d2dcf(0x441)]}};});}})}));}[_0x412385(0x1b4)](){const _0x1c7444=_0x412385;let _0x3d97b1=this['_configService'][_0x1c7444(0x447)](_0x5270c6);return(_0x3d97b1==null?void 0x0:_0x3d97b1[_0x1c7444(0x3b1)])??_0x1c7444(0x384);}async['create'](_0x2d626c){const _0x306d46=_0x412385;let _0x22263c=this['_getAPIPrefixPath']()+'/'+_0x2d626c[_0x306d46(0x409)]+_0x306d46(0x1ff);return(await this['_HTTPService'][_0x306d46(0x1d9)](_0x22263c,{'body':_0x2d626c}))[_0x306d46(0x34b)][_0x306d46(0x322)]||'';}async[_0x412385(0x2f9)](_0x119768){const _0x4105c0=_0x412385;let _0x502be6=this['_getAPIPrefixPath']()+_0x4105c0(0x24c);return(await this[_0x4105c0(0x421)]['post'](_0x502be6,{'body':_0x119768}))[_0x4105c0(0x34b)][_0x4105c0(0x310)];}async[_0x412385(0x3de)](_0x37a963){const _0x78cf0e=_0x412385;var _0x229198;let _0x3a7e46=this[_0x78cf0e(0x1b4)]()+'/'+_0x37a963[_0x78cf0e(0x409)]+_0x78cf0e(0x2c0)+encodeURIComponent(_0x37a963[_0x78cf0e(0x322)]),_0x2e5968=await this[_0x78cf0e(0x421)][_0x78cf0e(0x390)](_0x3a7e46,{'body':_0x37a963});if((_0x2e5968==null||(_0x229198=_0x2e5968[_0x78cf0e(0x34b)])==null||(_0x229198=_0x229198['error'])==null?void 0x0:_0x229198[_0x78cf0e(0x28c)])!==0x1)throw Error(_0x78cf0e(0x243));}async[_0x412385(0x410)](_0x4ed15a){const _0x53d0c2=_0x412385;let _0x25f31c=this['_getAPIPrefixPath']()+'/'+_0x4ed15a[_0x53d0c2(0x409)]+_0x53d0c2(0x2c0)+encodeURIComponent(_0x4ed15a[_0x53d0c2(0x322)])+_0x53d0c2(0x462);return(await this['_HTTPService'][_0x53d0c2(0x1d9)](_0x25f31c,{'body':_0x4ed15a}))[_0x53d0c2(0x34b)]['actions'];}async[_0x412385(0x2e0)](_0x37da08){const _0x4a1a6b=_0x412385;let _0x5715c5=this[_0x4a1a6b(0x1b4)]()+'/-/object/-/batch_allowed';return(await this[_0x4a1a6b(0x421)][_0x4a1a6b(0x1d9)](_0x5715c5,{'body':{'requests':_0x37da08}}))[_0x4a1a6b(0x34b)][_0x4a1a6b(0x2aa)];}async['listRoles'](_0x76c692){const _0x5bd84d=_0x412385;let _0x292439=this['_getAPIPrefixPath']()+'/'+_0x76c692['objectType']+_0x5bd84d(0x2e3),_0x475d64=await this[_0x5bd84d(0x421)][_0x5bd84d(0x1d9)](_0x292439,{'body':_0x76c692});return{'roles':_0x475d64['body'][_0x5bd84d(0x40c)],'actions':_0x475d64[_0x5bd84d(0x34b)][_0x5bd84d(0x1aa)]};}async['deleteCollaborator'](_0x42e127){const _0x54a3ef=_0x412385;let _0x3c0aa5=this['_getAPIPrefixPath']()+_0x54a3ef(0x398);await this[_0x54a3ef(0x421)][_0x54a3ef(0x45c)](_0x3c0aa5,{'params':{'collaboratorID':_0x42e127[_0x54a3ef(0x3d8)],'objectID':_0x42e127['objectID'],'unitID':_0x42e127['unitID']}});}async['updateCollaborator'](_0x11338d){const _0x415340=_0x412385;let _0xaf2857=this[_0x415340(0x1b4)]()+_0x415340(0x398);await this[_0x415340(0x421)][_0x415340(0x4db)](_0xaf2857,{'body':_0x11338d});}async[_0x412385(0x4ad)](_0x24e5b4){const _0x17087c=_0x412385;let _0x5529e5=this['_getAPIPrefixPath']()+_0x17087c(0x398);await this['_HTTPService']['post'](_0x5529e5,{'body':_0x24e5b4});}async[_0x412385(0x374)](_0x3987b7){const _0x51e94a=_0x412385;let _0xa6c93f=this[_0x51e94a(0x1b4)]()+_0x51e94a(0x398),_0x42b070=await this[_0x51e94a(0x421)][_0x51e94a(0x354)](_0xa6c93f,{'params':{'objectID':_0x3987b7['objectID'],'unitID':_0x3987b7[_0x51e94a(0x2c1)]}});return this[_0x51e94a(0x24d)](_0x42b070[_0x51e94a(0x34b)][_0x51e94a(0x485)]??!0x1),_0x42b070['body'][_0x51e94a(0x2ae)];}async[_0x412385(0x491)](_0x5289e3){const _0xdb3ce4=_0x412385;let _0x132f07=this[_0xdb3ce4(0x1b4)]()+_0xdb3ce4(0x398);await this['_HTTPService'][_0xdb3ce4(0x390)](_0x132f07,{'body':_0x5289e3});}[_0x412385(0x24d)](_0x310d4b){const _0x55bc9b=_0x412385;this[_0x55bc9b(0x38f)]=_0x310d4b;}[_0x412385(0x27f)](){const _0x4567e1=_0x412385;return this[_0x4567e1(0x38f)];}};_0x21b3b7=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa['Inject'])(_0x43a4f4[_0x412385(0x1fd)])),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['IConfigService']))],_0x21b3b7);function _0x336126(_0x538ef0){const _0x1213e7=_0x412385;return _0x538ef0 instanceof Uint8Array||ArrayBuffer['isView'](_0x538ef0)&&_0x538ef0[_0x1213e7(0x3db)][_0x1213e7(0x49f)]===_0x1213e7(0x3d5)&&_0x1213e7(0x24f)in _0x538ef0&&_0x538ef0[_0x1213e7(0x24f)]===0x1;}let _0x5cf274=_0x3de9ab=>_0x3de9ab?'\x22'+_0x3de9ab+'\x22\x20':'';function _0x563fc2(_0x168cf6,_0x312a1d=''){const _0x5d5dd1=_0x412385;if(typeof _0x168cf6!=_0x5d5dd1(0x343))throw TypeError(_0x5cf274(_0x312a1d)+_0x5d5dd1(0x2a6)+typeof _0x168cf6);if(!Number['isSafeInteger'](_0x168cf6)||_0x168cf6<0x0)throw RangeError(_0x5cf274(_0x312a1d)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x168cf6);return _0x168cf6;}function _0x3a73aa(_0x3f6b24,_0x5b9ea5,_0x2ace72=''){const _0x4d203a=_0x412385;if(_0x336126(_0x3f6b24)&&(_0x5b9ea5===void 0x0||_0x3f6b24[_0x4d203a(0x372)]===_0x5b9ea5))return _0x3f6b24;_0x5b9ea5!==void 0x0&&_0x563fc2(_0x5b9ea5,_0x4d203a(0x372));let _0xe4967f=_0x336126(_0x3f6b24),_0x2c5e40=_0x5b9ea5===void 0x0?'':_0x4d203a(0x2eb)+_0x5b9ea5,_0x430684=_0xe4967f?_0x4d203a(0x2a9)+_0x3f6b24[_0x4d203a(0x372)]:_0x4d203a(0x4f4)+typeof _0x3f6b24,_0x39d9d5=_0x5cf274(_0x2ace72)+_0x4d203a(0x40d)+_0x2c5e40+_0x4d203a(0x41f)+_0x430684;throw _0xe4967f?RangeError(_0x39d9d5):TypeError(_0x39d9d5);}function _0x25f493(_0x45e368){const _0x3e23f5=_0x412385;return new Uint32Array(_0x45e368['buffer'],_0x45e368[_0x3e23f5(0x1d4)],Math[_0x3e23f5(0x1c1)](_0x45e368[_0x3e23f5(0x502)]/0x4));}function _0x5b65b3(..._0x3f4e44){const _0x1ccf84=_0x412385;for(let _0x1f1239=0x0;_0x1f1239<_0x3f4e44[_0x1ccf84(0x372)];_0x1f1239++)_0x3f4e44[_0x1f1239][_0x1ccf84(0x4ae)](0x0);}let _0x40f39c=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x5671c6(_0xb49ed9){return _0xb49ed9<<0x18&0xff000000|_0xb49ed9<<0x8&0xff0000|_0xb49ed9>>>0x8&0xff00|_0xb49ed9>>>0x18&0xff;}function _0x24aa1e(_0x5346e2){const _0x681a73=_0x412385;for(let _0x30eb42=0x0;_0x30eb42<_0x5346e2[_0x681a73(0x372)];_0x30eb42++)_0x5346e2[_0x30eb42]=_0x5671c6(_0x5346e2[_0x30eb42]);return _0x5346e2;}let _0x40f2f4=_0x40f39c?_0x3a2ce7=>_0x3a2ce7:_0x24aa1e;function _0x334f98(_0x533cc6){const _0x30eca5=_0x412385;if(typeof _0x533cc6!='string')throw TypeError(_0x30eca5(0x201));return new Uint8Array(new TextEncoder()['encode'](_0x533cc6));}function _0x27bc83(_0x411668,_0x2c6d2b){const _0x2d3a7d=_0x412385;return!_0x411668[_0x2d3a7d(0x502)]||!_0x2c6d2b[_0x2d3a7d(0x502)]?!0x1:_0x411668['buffer']===_0x2c6d2b[_0x2d3a7d(0x1da)]&&_0x411668[_0x2d3a7d(0x1d4)]<_0x2c6d2b[_0x2d3a7d(0x1d4)]+_0x2c6d2b[_0x2d3a7d(0x502)]&&_0x2c6d2b[_0x2d3a7d(0x1d4)]<_0x411668[_0x2d3a7d(0x1d4)]+_0x411668[_0x2d3a7d(0x502)];}function _0x4b29ef(_0x384172,_0x40fb64){const _0x4fa491=_0x412385;if(_0x27bc83(_0x384172,_0x40fb64)&&_0x384172[_0x4fa491(0x1d4)]<_0x40fb64[_0x4fa491(0x1d4)])throw Error(_0x4fa491(0x325));}function _0x20418d(..._0x4208c9){const _0x1efcd4=_0x412385;let _0x4a2bd0=0x0;for(let _0x4169e0=0x0;_0x4169e0<_0x4208c9[_0x1efcd4(0x372)];_0x4169e0++){let _0x18e4c5=_0x4208c9[_0x4169e0];_0x3a73aa(_0x18e4c5),_0x4a2bd0+=_0x18e4c5['length'];}let _0x208c4f=new Uint8Array(_0x4a2bd0);for(let _0x385199=0x0,_0xc38013=0x0;_0x385199<_0x4208c9[_0x1efcd4(0x372)];_0x385199++){let _0x5c92b1=_0x4208c9[_0x385199];_0x208c4f[_0x1efcd4(0x446)](_0x5c92b1,_0xc38013),_0xc38013+=_0x5c92b1[_0x1efcd4(0x372)];}return _0x208c4f;}let _0x2ae7c2=(_0x5beb12,_0x39c1c3)=>{const _0x51ed37=_0x412385;function _0x3a19c5(_0x31a7fa,..._0x3ca70c){const _0x1c578c=_0x28e1;if(_0x3a73aa(_0x31a7fa,void 0x0,_0x1c578c(0x4ca)),_0x5beb12['nonceLength']!==void 0x0){let _0x495df1=_0x3ca70c[0x0];_0x3a73aa(_0x495df1,_0x5beb12['varSizeNonce']?void 0x0:_0x5beb12[_0x1c578c(0x2c2)],_0x1c578c(0x483));}let _0x46087d=_0x5beb12[_0x1c578c(0x2fc)],_0x176e13=_0x5beb12[_0x1c578c(0x2c2)]===void 0x0?0x0:0x1;if(!_0x5beb12[_0x1c578c(0x1eb)]){for(let _0xe33ab4=_0x176e13;_0xe33ab4<_0x3ca70c[_0x1c578c(0x372)];_0xe33ab4++)if(_0x336126(_0x3ca70c[_0xe33ab4]))throw Error(_0x1c578c(0x493));}_0x5beb12[_0x1c578c(0x1eb)]&&_0x3ca70c[_0x176e13]!==void 0x0&&_0x3a73aa(_0x3ca70c[_0x176e13],void 0x0,_0x1c578c(0x1f9));let _0x17b638=_0x39c1c3(_0x31a7fa,..._0x3ca70c),_0x3ef346=(_0x1c1c48,_0x481218)=>{const _0x3179a9=_0x1c578c;if(_0x481218!==void 0x0){if(_0x1c1c48!==0x2)throw Error(_0x3179a9(0x501));_0x3a73aa(_0x481218,void 0x0,_0x3179a9(0x3ef));}},_0x56e365=!0x1;return{'encrypt'(_0x1b5203,_0x834101){const _0x33c4ab=_0x1c578c;if(_0x56e365)throw Error(_0x33c4ab(0x2e6));return _0x56e365=!0x0,_0x3a73aa(_0x1b5203,void 0x0,_0x33c4ab(0x35c)),_0x3ef346(_0x17b638['encrypt'][_0x33c4ab(0x372)],_0x834101),_0x17b638[_0x33c4ab(0x33e)](_0x1b5203,_0x834101);},'decrypt'(_0x5203de,_0x46f7b8){const _0x511b1d=_0x1c578c;if(_0x3a73aa(_0x5203de,void 0x0,'data'),_0x46087d&&_0x5203de[_0x511b1d(0x372)]<_0x46087d)throw Error(_0x511b1d(0x387)+_0x46087d);return _0x3ef346(_0x17b638[_0x511b1d(0x45a)][_0x511b1d(0x372)],_0x46f7b8),_0x17b638[_0x511b1d(0x45a)](_0x5203de,_0x46f7b8);}};}return Object[_0x51ed37(0x2cc)](_0x3a19c5,_0x5beb12),_0x3a19c5;};function _0x58f170(_0x162e08,_0x5b96a3,_0x2a7ffa=!0x0){if(_0x5b96a3===void 0x0)return new Uint8Array(_0x162e08);if(_0x3a73aa(_0x5b96a3,_0x162e08,'output'),_0x2a7ffa&&!_0x1d4b26(_0x5b96a3))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x5b96a3;}function _0x1d4b26(_0x28cbfc){const _0xfa7566=_0x412385;return _0x28cbfc[_0xfa7566(0x1d4)]%0x4==0x0;}function _0x147cdd(_0x2bc5ad){return Uint8Array['from'](_0x3a73aa(_0x2bc5ad));}function _0x47659f(_0x4d9652=0x20){const _0x394ac8=_0x412385;_0x563fc2(_0x4d9652,'bytesLength');let _0x142ef4=typeof globalThis==_0x394ac8(0x42c)?globalThis['crypto']:null;if(typeof(_0x142ef4==null?void 0x0:_0x142ef4[_0x394ac8(0x2fb)])!=_0x394ac8(0x3b3))throw Error(_0x394ac8(0x1bc));if(_0x4d9652>0x10000)throw RangeError('\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20'+_0x4d9652);return _0x142ef4[_0x394ac8(0x2fb)](new Uint8Array(_0x4d9652));}function _0x2e04eb(_0x592de7){const _0x10d0d6=_0x412385;if(![0x10,0x18,0x20]['includes'](_0x592de7[_0x10d0d6(0x372)]))throw Error(_0x10d0d6(0x261)+_0x592de7['length']);}function _0x5753f0(_0x3725c3){return _0x3725c3<<0x1^0x11b&-(_0x3725c3>>0x7);}function _0x15865b(_0x3a4b48,_0x3257aa){let _0x5186f1=0x0;for(;_0x3257aa>0x0;_0x3257aa>>=0x1)_0x5186f1^=_0x3a4b48&-(_0x3257aa&0x1),_0x3a4b48=_0x5753f0(_0x3a4b48);return _0x5186f1;}let _0x51c189=((()=>{let _0x4a4b50=new Uint8Array(0x100);for(let _0x5a8265=0x0,_0x5d6a83=0x1;_0x5a8265<0x100;_0x5a8265++,_0x5d6a83^=_0x5753f0(_0x5d6a83))_0x4a4b50[_0x5a8265]=_0x5d6a83;let _0x1e0f18=new Uint8Array(0x100);_0x1e0f18[0x0]=0x63;for(let _0x3a6cd8=0x0;_0x3a6cd8<0xff;_0x3a6cd8++){let _0x2ccc4c=_0x4a4b50[0xff-_0x3a6cd8];_0x2ccc4c|=_0x2ccc4c<<0x8,_0x1e0f18[_0x4a4b50[_0x3a6cd8]]=(_0x2ccc4c^_0x2ccc4c>>0x4^_0x2ccc4c>>0x5^_0x2ccc4c>>0x6^_0x2ccc4c>>0x7^0x63)&0xff;}return _0x5b65b3(_0x4a4b50),_0x1e0f18;})()),_0x18d086=_0x51c189['map']((_0x2a231d,_0x15a5ec)=>_0x51c189['indexOf'](_0x15a5ec)),_0x18bcf0=_0x2d6c7e=>_0x2d6c7e<<0x18|_0x2d6c7e>>>0x8,_0x4b6387=_0x4682a6=>_0x4682a6<<0x8|_0x4682a6>>>0x18;function _0x382871(_0x5def4e,_0x5d6379){const _0x5b8f69=_0x412385;if(_0x5def4e['length']!==0x100)throw Error(_0x5b8f69(0x4c3));let _0x96b000=new Uint32Array(0x100)[_0x5b8f69(0x3e6)]((_0xc0b376,_0xa301b4)=>_0x5d6379(_0x5def4e[_0xa301b4])),_0x292a34=_0x96b000[_0x5b8f69(0x3e6)](_0x4b6387),_0x1c7706=_0x292a34['map'](_0x4b6387),_0x405f6c=_0x1c7706['map'](_0x4b6387),_0x5cecb6=new Uint32Array(0x10000),_0x17c05e=new Uint32Array(0x10000),_0x735d40=new Uint16Array(0x10000);for(let _0x1d59b4=0x0;_0x1d59b4<0x100;_0x1d59b4++)for(let _0x1a8893=0x0;_0x1a8893<0x100;_0x1a8893++){let _0x555689=_0x1d59b4*0x100+_0x1a8893;_0x5cecb6[_0x555689]=_0x96b000[_0x1d59b4]^_0x292a34[_0x1a8893],_0x17c05e[_0x555689]=_0x1c7706[_0x1d59b4]^_0x405f6c[_0x1a8893],_0x735d40[_0x555689]=_0x5def4e[_0x1d59b4]<<0x8|_0x5def4e[_0x1a8893];}return{'sbox':_0x5def4e,'sbox2':_0x735d40,'T0':_0x96b000,'T1':_0x292a34,'T2':_0x1c7706,'T3':_0x405f6c,'T01':_0x5cecb6,'T23':_0x17c05e};}let _0x2882f6=_0x382871(_0x51c189,_0x36a0c7=>_0x15865b(_0x36a0c7,0x3)<<0x18|_0x36a0c7<<0x10|_0x36a0c7<<0x8|_0x15865b(_0x36a0c7,0x2)),_0x12ca6b=_0x382871(_0x18d086,_0x3c3bb9=>_0x15865b(_0x3c3bb9,0xb)<<0x18|_0x15865b(_0x3c3bb9,0xd)<<0x10|_0x15865b(_0x3c3bb9,0x9)<<0x8|_0x15865b(_0x3c3bb9,0xe)),_0x520487=((()=>{let _0x30a4fd=new Uint8Array(0x10);for(let _0x5be4f9=0x0,_0x46cb33=0x1;_0x5be4f9<0x10;_0x5be4f9++,_0x46cb33=_0x5753f0(_0x46cb33))_0x30a4fd[_0x5be4f9]=_0x46cb33;return _0x30a4fd;})());function _0xdf0289(_0x1b24cd){const _0x19fcec=_0x412385;_0x3a73aa(_0x1b24cd);let _0x4687fe=_0x1b24cd[_0x19fcec(0x372)];_0x2e04eb(_0x1b24cd);let {sbox2:_0x46752c}=_0x2882f6,_0x3d1242=[];(!_0x40f39c||!_0x1d4b26(_0x1b24cd))&&_0x3d1242[_0x19fcec(0x1e0)](_0x1b24cd=_0x147cdd(_0x1b24cd));let _0x5679df=_0x40f2f4(_0x25f493(_0x1b24cd)),_0x344e32=_0x5679df['length'],_0x36d31b=_0x51409e=>_0x2dab9b(_0x46752c,_0x51409e,_0x51409e,_0x51409e,_0x51409e),_0x29cac1=new Uint32Array(_0x4687fe+0x1c);_0x29cac1[_0x19fcec(0x446)](_0x5679df);for(let _0x1ca8d0=_0x344e32;_0x1ca8d0<_0x29cac1['length'];_0x1ca8d0++){let _0x5c3050=_0x29cac1[_0x1ca8d0-0x1];_0x1ca8d0%_0x344e32===0x0?_0x5c3050=_0x36d31b(_0x18bcf0(_0x5c3050))^_0x520487[_0x1ca8d0/_0x344e32-0x1]:_0x344e32>0x6&&_0x1ca8d0%_0x344e32===0x4&&(_0x5c3050=_0x36d31b(_0x5c3050)),_0x29cac1[_0x1ca8d0]=_0x29cac1[_0x1ca8d0-_0x344e32]^_0x5c3050;}return _0x5b65b3(..._0x3d1242),_0x29cac1;}function _0x41837d(_0x2f4694){const _0x5cef20=_0x412385;let _0x535107=_0xdf0289(_0x2f4694),_0xae5a62=_0x535107[_0x5cef20(0x353)](),_0x21a7c4=_0x535107['length'],{sbox2:_0xc80da4}=_0x2882f6,{T0:_0x2f553c,T1:_0x59b6b2,T2:_0x5a3168,T3:_0x216ec7}=_0x12ca6b;for(let _0x2c84b9=0x0;_0x2c84b9<_0x21a7c4;_0x2c84b9+=0x4)for(let _0x4140f4=0x0;_0x4140f4<0x4;_0x4140f4++)_0xae5a62[_0x2c84b9+_0x4140f4]=_0x535107[_0x21a7c4-_0x2c84b9-0x4+_0x4140f4];_0x5b65b3(_0x535107);for(let _0x595b46=0x4;_0x595b46<_0x21a7c4-0x4;_0x595b46++){let _0x3b79f5=_0xae5a62[_0x595b46],_0x4b597b=_0x2dab9b(_0xc80da4,_0x3b79f5,_0x3b79f5,_0x3b79f5,_0x3b79f5);_0xae5a62[_0x595b46]=_0x2f553c[_0x4b597b&0xff]^_0x59b6b2[_0x4b597b>>>0x8&0xff]^_0x5a3168[_0x4b597b>>>0x10&0xff]^_0x216ec7[_0x4b597b>>>0x18];}return _0xae5a62;}function _0x12187c(_0x573963,_0x50ef48,_0x5499e7,_0x44dcc7,_0x33eaa5,_0x228bd2){return _0x573963[_0x5499e7<<0x8&0xff00|_0x44dcc7>>>0x8&0xff]^_0x50ef48[_0x33eaa5>>>0x8&0xff00|_0x228bd2>>>0x18&0xff];}function _0x2dab9b(_0x29dd28,_0x326928,_0x5941d6,_0x43c705,_0x315f15){return _0x29dd28[_0x326928&0xff|_0x5941d6&0xff00]|_0x29dd28[_0x43c705>>>0x10&0xff|_0x315f15>>>0x10&0xff00]<<0x10;}function _0x302ebe(_0x115d80,_0x325687,_0x220113,_0x2dc280,_0x2b6885){const _0x37ac98=_0x412385;let {sbox2:_0x31fda4,T01:_0x4e6601,T23:_0x18cff7}=_0x2882f6,_0x265497=0x0;_0x325687^=_0x115d80[_0x265497++],_0x220113^=_0x115d80[_0x265497++],_0x2dc280^=_0x115d80[_0x265497++],_0x2b6885^=_0x115d80[_0x265497++];let _0x516b06=_0x115d80[_0x37ac98(0x372)]/0x4-0x2;for(let _0x2f5c6e=0x0;_0x2f5c6e<_0x516b06;_0x2f5c6e++){let _0x11df4a=_0x115d80[_0x265497++]^_0x12187c(_0x4e6601,_0x18cff7,_0x325687,_0x220113,_0x2dc280,_0x2b6885),_0x1387da=_0x115d80[_0x265497++]^_0x12187c(_0x4e6601,_0x18cff7,_0x220113,_0x2dc280,_0x2b6885,_0x325687),_0x5a5a49=_0x115d80[_0x265497++]^_0x12187c(_0x4e6601,_0x18cff7,_0x2dc280,_0x2b6885,_0x325687,_0x220113),_0x2775cf=_0x115d80[_0x265497++]^_0x12187c(_0x4e6601,_0x18cff7,_0x2b6885,_0x325687,_0x220113,_0x2dc280);_0x325687=_0x11df4a,_0x220113=_0x1387da,_0x2dc280=_0x5a5a49,_0x2b6885=_0x2775cf;}return{'s0':_0x115d80[_0x265497++]^_0x2dab9b(_0x31fda4,_0x325687,_0x220113,_0x2dc280,_0x2b6885),'s1':_0x115d80[_0x265497++]^_0x2dab9b(_0x31fda4,_0x220113,_0x2dc280,_0x2b6885,_0x325687),'s2':_0x115d80[_0x265497++]^_0x2dab9b(_0x31fda4,_0x2dc280,_0x2b6885,_0x325687,_0x220113),'s3':_0x115d80[_0x265497++]^_0x2dab9b(_0x31fda4,_0x2b6885,_0x325687,_0x220113,_0x2dc280)};}function _0x5f20d0(_0x42ef5d,_0x47b797,_0x5c14c8,_0x2c695a,_0x463fce){const _0x49ed9e=_0x412385;let {sbox2:_0x5a857b,T01:_0x2fb6b3,T23:_0x67a97d}=_0x12ca6b,_0x114d09=0x0;_0x47b797^=_0x42ef5d[_0x114d09++],_0x5c14c8^=_0x42ef5d[_0x114d09++],_0x2c695a^=_0x42ef5d[_0x114d09++],_0x463fce^=_0x42ef5d[_0x114d09++];let _0x1181cb=_0x42ef5d[_0x49ed9e(0x372)]/0x4-0x2;for(let _0x5cc68c=0x0;_0x5cc68c<_0x1181cb;_0x5cc68c++){let _0x1fb684=_0x42ef5d[_0x114d09++]^_0x12187c(_0x2fb6b3,_0x67a97d,_0x47b797,_0x463fce,_0x2c695a,_0x5c14c8),_0x36ce7b=_0x42ef5d[_0x114d09++]^_0x12187c(_0x2fb6b3,_0x67a97d,_0x5c14c8,_0x47b797,_0x463fce,_0x2c695a),_0x3275c4=_0x42ef5d[_0x114d09++]^_0x12187c(_0x2fb6b3,_0x67a97d,_0x2c695a,_0x5c14c8,_0x47b797,_0x463fce),_0x1b1550=_0x42ef5d[_0x114d09++]^_0x12187c(_0x2fb6b3,_0x67a97d,_0x463fce,_0x2c695a,_0x5c14c8,_0x47b797);_0x47b797=_0x1fb684,_0x5c14c8=_0x36ce7b,_0x2c695a=_0x3275c4,_0x463fce=_0x1b1550;}return{'s0':_0x42ef5d[_0x114d09++]^_0x2dab9b(_0x5a857b,_0x47b797,_0x463fce,_0x2c695a,_0x5c14c8),'s1':_0x42ef5d[_0x114d09++]^_0x2dab9b(_0x5a857b,_0x5c14c8,_0x47b797,_0x463fce,_0x2c695a),'s2':_0x42ef5d[_0x114d09++]^_0x2dab9b(_0x5a857b,_0x2c695a,_0x5c14c8,_0x47b797,_0x463fce),'s3':_0x42ef5d[_0x114d09++]^_0x2dab9b(_0x5a857b,_0x463fce,_0x2c695a,_0x5c14c8,_0x47b797)};}function _0x3df4da(_0x110599,_0x5d6245){const _0x48af05=_0x412385;if(_0x3a73aa(_0x110599),_0x110599[_0x48af05(0x372)]%0x10!=0x0)throw Error(_0x48af05(0x38e));_0x5d6245!==void 0x0&&(_0x58f170(_0x110599[_0x48af05(0x372)],_0x5d6245),_0x4b29ef(_0x110599,_0x5d6245));}function _0x591be4(_0x16e52c,_0x5c7ccb,_0x133760){const _0x5327cf=_0x412385;_0x3a73aa(_0x16e52c);let _0x39d310=_0x16e52c[_0x5327cf(0x372)],_0x576162=_0x39d310%0x10;if(!_0x5c7ccb&&_0x576162!==0x0)throw Error(_0x5327cf(0x271));if(_0x5c7ccb){let _0x50d565=0x10-_0x576162;_0x50d565||=0x10,_0x39d310+=_0x50d565;}return _0x133760!==void 0x0&&(_0x58f170(_0x39d310,_0x133760),_0x4b29ef(_0x16e52c,_0x133760)),_0x39d310;}function _0x283486(_0x1ebc4d,_0x5bef3d,_0x9d2d72){_0x9d2d72===void 0x0&&(_0x9d2d72=new Uint8Array(_0x5bef3d)),(!_0x40f39c||!_0x1d4b26(_0x1ebc4d))&&(_0x1ebc4d=_0x147cdd(_0x1ebc4d));let _0x5ba77a=_0x25f493(_0x9d2d72);return{'b':_0x1ebc4d,'o':_0x5ba77a,'out':_0x9d2d72};}function _0xe40cac(_0x371133,_0x4c24d3){const _0x551b35=_0x412385;if(!_0x4c24d3)return _0x371133;let _0x3eb202=_0x371133[_0x551b35(0x372)];if(_0x3eb202===0x0)throw Error(_0x551b35(0x258));let _0x225ff8=_0x371133[_0x3eb202-0x1],_0x4de51a=0x1;_0x4de51a&=_0x225ff8-0x1>>>0x1f^0x1,_0x4de51a&=0x10-_0x225ff8>>>0x1f^0x1;for(let _0x1b48e9=0x0;_0x1b48e9<0x10;_0x1b48e9++){let _0x13ff1c=_0x1b48e9-_0x225ff8>>>0x1f,_0x3e303f=+((_0x371133[_0x3eb202-0x1-_0x1b48e9]^_0x225ff8)===0x0);_0x4de51a&=_0x3e303f|_0x13ff1c^0x1;}if(!_0x4de51a)throw Error(_0x551b35(0x4d6));return _0x371133[_0x551b35(0x39f)](0x0,_0x3eb202-_0x225ff8);}function _0xe326a7(_0x2f8af6){const _0x4427c5=_0x412385;let _0x3ae357=new Uint8Array(0x10),_0x42b90d=_0x25f493(_0x3ae357);_0x3ae357[_0x4427c5(0x446)](_0x2f8af6);let _0x3f1eb1=0x10-_0x2f8af6['length'];for(let _0x2b6baf=0x10-_0x3f1eb1;_0x2b6baf<0x10;_0x2b6baf++)_0x3ae357[_0x2b6baf]=_0x3f1eb1;return _0x42b90d;}let _0x2b6ee4=_0x2ae7c2({'blockSize':0x10,'nonceLength':0x10},function(_0x3a3748,_0x5eeaad,_0x3e22b1={}){const _0x1f148b=_0x412385;let _0x14c742=!_0x3e22b1[_0x1f148b(0x2d9)];return{'encrypt'(_0x50903f,_0x3a99a6){const _0x1df79b=_0x1f148b;let _0xdd1b3d=_0x591be4(_0x50903f,_0x14c742,_0x3a99a6),_0x376bd5=_0xdf0289(_0x3a3748),{b:_0x3356f2,o:_0x3b3717,out:_0x4900ad}=_0x283486(_0x50903f,_0xdd1b3d,_0x3a99a6),_0x27823a=_0x25f493(_0x3356f2);_0x40f2f4(_0x27823a);let _0x4fed43=_0x5eeaad,_0x44e131=[_0x376bd5];(!_0x40f39c||!_0x1d4b26(_0x4fed43))&&_0x44e131['push'](_0x4fed43=_0x147cdd(_0x4fed43));let _0x1eaaf9=_0x25f493(_0x4fed43);_0x40f2f4(_0x1eaaf9);let _0x521884=_0x1eaaf9[0x0],_0x1f9c3c=_0x1eaaf9[0x1],_0x5224a9=_0x1eaaf9[0x2],_0xaa8a59=_0x1eaaf9[0x3],_0x1b65ae=0x0;for(;_0x1b65ae+0x4<=_0x27823a[_0x1df79b(0x372)];)_0x521884^=_0x27823a[_0x1b65ae+0x0],_0x1f9c3c^=_0x27823a[_0x1b65ae+0x1],_0x5224a9^=_0x27823a[_0x1b65ae+0x2],_0xaa8a59^=_0x27823a[_0x1b65ae+0x3],{s0:_0x521884,s1:_0x1f9c3c,s2:_0x5224a9,s3:_0xaa8a59}=_0x302ebe(_0x376bd5,_0x521884,_0x1f9c3c,_0x5224a9,_0xaa8a59),_0x3b3717[_0x1b65ae++]=_0x521884,_0x3b3717[_0x1b65ae++]=_0x1f9c3c,_0x3b3717[_0x1b65ae++]=_0x5224a9,_0x3b3717[_0x1b65ae++]=_0xaa8a59;if(_0x14c742){let _0x1079f4=_0xe326a7(_0x50903f['subarray'](_0x1b65ae*0x4));_0x40f2f4(_0x1079f4),_0x521884^=_0x1079f4[0x0],_0x1f9c3c^=_0x1079f4[0x1],_0x5224a9^=_0x1079f4[0x2],_0xaa8a59^=_0x1079f4[0x3],{s0:_0x521884,s1:_0x1f9c3c,s2:_0x5224a9,s3:_0xaa8a59}=_0x302ebe(_0x376bd5,_0x521884,_0x1f9c3c,_0x5224a9,_0xaa8a59),_0x3b3717[_0x1b65ae++]=_0x521884,_0x3b3717[_0x1b65ae++]=_0x1f9c3c,_0x3b3717[_0x1b65ae++]=_0x5224a9,_0x3b3717[_0x1b65ae++]=_0xaa8a59,_0x5b65b3(_0x1079f4);}return _0x40f2f4(_0x3b3717),_0x5b65b3(..._0x44e131),_0x3356f2!==_0x50903f&&_0x5b65b3(_0x3356f2),_0x4900ad;},'decrypt'(_0x243066,_0x1d6c55){const _0x31665c=_0x1f148b;_0x3df4da(_0x243066,_0x1d6c55);let _0x8fbf91=_0x41837d(_0x3a3748);_0x1d6c55===void 0x0&&(_0x1d6c55=new Uint8Array(_0x243066[_0x31665c(0x372)]));let _0x2fc0f5=_0x5eeaad,_0x121d9a=[_0x8fbf91];(!_0x40f39c||!_0x1d4b26(_0x2fc0f5))&&_0x121d9a[_0x31665c(0x1e0)](_0x2fc0f5=_0x147cdd(_0x2fc0f5));let _0x1ef13c=_0x25f493(_0x2fc0f5);_0x40f2f4(_0x1ef13c),(!_0x40f39c||!_0x1d4b26(_0x243066))&&_0x121d9a[_0x31665c(0x1e0)](_0x243066=_0x147cdd(_0x243066));let _0x2264f6=_0x25f493(_0x243066),_0x45f166=_0x25f493(_0x1d6c55);_0x40f2f4(_0x2264f6);let _0x1bdaea=_0x1ef13c[0x0],_0x2e5fa3=_0x1ef13c[0x1],_0x2cc1d3=_0x1ef13c[0x2],_0x5249d0=_0x1ef13c[0x3];for(let _0x21f439=0x0;_0x21f439+0x4<=_0x2264f6[_0x31665c(0x372)];){let _0x5e98df=_0x1bdaea,_0x2aa3a4=_0x2e5fa3,_0x53e8b3=_0x2cc1d3,_0x11881b=_0x5249d0;_0x1bdaea=_0x2264f6[_0x21f439+0x0],_0x2e5fa3=_0x2264f6[_0x21f439+0x1],_0x2cc1d3=_0x2264f6[_0x21f439+0x2],_0x5249d0=_0x2264f6[_0x21f439+0x3];let {s0:_0x10b52e,s1:_0x3ef275,s2:_0x1d3ffb,s3:_0x13c87c}=_0x5f20d0(_0x8fbf91,_0x1bdaea,_0x2e5fa3,_0x2cc1d3,_0x5249d0);_0x45f166[_0x21f439++]=_0x10b52e^_0x5e98df,_0x45f166[_0x21f439++]=_0x3ef275^_0x2aa3a4,_0x45f166[_0x21f439++]=_0x1d3ffb^_0x53e8b3,_0x45f166[_0x21f439++]=_0x13c87c^_0x11881b;}return _0x40f2f4(_0x45f166),_0x5b65b3(..._0x121d9a),_0xe40cac(_0x1d6c55,_0x14c742);}};});function _0x53261c(_0x4bad28){const _0x46e1e9=_0x412385;let _0x1b6649=atob(_0x4bad28),_0x2ebff8=new Uint8Array(_0x1b6649['length']);for(let _0xb2690=0x0;_0xb2690<_0x1b6649[_0x46e1e9(0x372)];_0xb2690++)_0x2ebff8[_0xb2690]=_0x1b6649[_0x46e1e9(0x2da)](_0xb2690);return _0x2ebff8;}function _0x205afc(_0x54c839){const _0x31fd75=_0x412385;let _0x226f15='';for(let _0x2b99d5=0x0;_0x2b99d5<_0x54c839[_0x31fd75(0x372)];_0x2b99d5++)_0x226f15+=String['fromCharCode'](_0x54c839[_0x2b99d5]);return btoa(_0x226f15);}function _0x7c8b6f(_0x1cab43,_0x263f15){const _0x1f66fa=_0x412385;let _0xd8d12=_0x53261c(_0x263f15),_0x3afbbb=_0x47659f(0x10);return _0x205afc(_0x20418d(_0x3afbbb,_0x2b6ee4(_0xd8d12,_0x3afbbb)[_0x1f66fa(0x33e)](_0x334f98(_0x1cab43))));}function _0x24602a(){const _0x53d4e8=_0x412385;let _0x327cbd=(0x0,_0x125bc9['getGlobalObject'])()[_0x53d4e8(0x511)];if(typeof window<'u'&&window[_0x53d4e8(0x36e)]!==void 0x0&&_0x327cbd){let _0x4aa286={'time':Math[_0x53d4e8(0x1c1)](Date[_0x53d4e8(0x31d)]()/0x3e8),'domain':location[_0x53d4e8(0x2b7)]};return _0x7c8b6f(JSON['stringify'](_0x4aa286),_0x327cbd);}}let _0x21f7f4=class{constructor(_0x59a5b4){const _0xf3bc23=_0x412385;this['_httpService']=_0x59a5b4,this[_0xf3bc23(0x346)]();}['_initRequestHeader'](){const _0x110beb=_0x412385;this[_0x110beb(0x508)][_0x110beb(0x1ec)]({'interceptor':(_0x41c62f,_0x2e4c13)=>{const _0x27a61f=_0x110beb;let _0x29acbb=_0x24602a();return _0x29acbb&&_0x41c62f['headers']['set'](_0x27a61f(0x3df),_0x29acbb),_0x2e4c13(_0x41c62f);}});}};_0x21f7f4=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4[_0x412385(0x1fd)]))],_0x21f7f4);let _0x5f37a7=class extends _0x1d7efa['RxDisposable']{constructor(_0x12fe86,_0x35dc3e,_0x5b722e){const _0x5a1f08=_0x412385;super(),this[_0x5a1f08(0x3a7)]=_0x12fe86,this[_0x5a1f08(0x456)]=_0x35dc3e,this[_0x5a1f08(0x1e5)]=_0x5b722e,_0x4a1990(this,_0x5a1f08(0x3c4),new _0x150fe7[(_0x5a1f08(0x385))](null)),_0x4a1990(this,_0x5a1f08(0x29c),new _0x150fe7[(_0x5a1f08(0x3a1))]()),_0x4a1990(this,_0x5a1f08(0x4df),this[_0x5a1f08(0x3c4)]['asObservable']()),_0x4a1990(this,_0x5a1f08(0x3fc),this['_unitLoaded$'][_0x5a1f08(0x20b)]());}[_0x412385(0x20d)](){const _0x3a2a53=_0x412385;super[_0x3a2a53(0x20d)](),this[_0x3a2a53(0x29c)][_0x3a2a53(0x468)](),this[_0x3a2a53(0x3c4)][_0x3a2a53(0x468)]();}async[_0x412385(0x430)](_0x31c1d9,_0x49edfa,_0x41aa83,_0x15e417){const _0x5aa70d=_0x412385;this[_0x5aa70d(0x3c4)][_0x5aa70d(0x1e1)]({'unitId':_0x31c1d9,'type':_0x49edfa,'subUnitId':_0x15e417});let _0x259162=null;switch(_0x49edfa){case _0x1d7efa[_0x5aa70d(0x339)][_0x5aa70d(0x2d7)]:_0x259162=await this[_0x5aa70d(0x456)][_0x5aa70d(0x338)](_0x31c1d9,_0x41aa83,void 0x0,{'initialSubUnitId':_0x15e417});break;case _0x1d7efa['UniverInstanceType'][_0x5aa70d(0x48a)]:_0x259162=await this[_0x5aa70d(0x456)][_0x5aa70d(0x403)](_0x31c1d9,_0x41aa83);break;case _0x1d7efa[_0x5aa70d(0x339)]['UNIVER_SLIDE']:_0x259162=await this[_0x5aa70d(0x456)]['loadSlide'](_0x31c1d9,_0x41aa83);break;case _0x1d7efa[_0x5aa70d(0x339)][_0x5aa70d(0x1ad)]:_0x259162=await this[_0x5aa70d(0x456)]['loadBoard'](_0x31c1d9,_0x41aa83);break;case _0x1d7efa[_0x5aa70d(0x339)][_0x5aa70d(0x242)]:_0x259162=await this[_0x5aa70d(0x456)][_0x5aa70d(0x3a4)](_0x31c1d9,_0x41aa83);break;case _0x1d7efa[_0x5aa70d(0x339)][_0x5aa70d(0x4d8)]:_0x259162=await this[_0x5aa70d(0x456)][_0x5aa70d(0x4bb)](_0x31c1d9,_0x41aa83);break;default:this[_0x5aa70d(0x3a7)]['error'](_0x5aa70d(0x1c4),_0x5aa70d(0x206));}return _0x259162&&this['_unitLoaded$'][_0x5aa70d(0x1e1)](_0x259162),_0x259162;}async[_0x412385(0x22d)](_0xacc866,_0xcd152e,_0x45e652){const _0x2ca27c=_0x412385;var _0x3f1a68;this[_0x2ca27c(0x3c4)]['next']({'unitId':_0xacc866,'type':_0xcd152e,'subUnitId':_0x45e652});let _0x440116=0x0,_0x5d645c=await((_0x3f1a68=this['_localCacheService'])==null?void 0x0:_0x3f1a68[_0x2ca27c(0x3e0)](_0xacc866));return _0x5d645c&&(_0x5d645c[_0x2ca27c(0x1bf)]||_0x5d645c[_0x2ca27c(0x2ff)][_0x2ca27c(0x372)]!==0x0)&&(_0x440116=_0x5d645c['rev']),_0x440116===0x0&&this[_0x2ca27c(0x3a7)][_0x2ca27c(0x2e2)]('[DataLoaderService]',_0x2ca27c(0x214)),this[_0x2ca27c(0x430)](_0xacc866,_0xcd152e,_0x440116,_0x45e652);}};_0x5f37a7=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1c67cc[_0x412385(0x28d)])),_0x34b040(0x2,(0x0,_0x1d7efa[_0x412385(0x361)])(_0xad368b))],_0x5f37a7);let _0x1cc496=class{constructor(_0x40b918,_0x4df321,_0x6afc37){const _0x45dc29=_0x412385;this[_0x45dc29(0x508)]=_0x40b918,this[_0x45dc29(0x309)]=_0x4df321,this['_univerInstanceService']=_0x6afc37,_0x4a1990(this,_0x45dc29(0x378),0x0),_0x4a1990(this,'_change$',new _0x150fe7[(_0x45dc29(0x3a1))]()),_0x4a1990(this,_0x45dc29(0x226),this[_0x45dc29(0x2dd)]),_0x4a1990(this,'_imageSourceCache',new Map());}[_0x412385(0x1db)](_0x1229f8){const _0x31f29b=_0x412385;this['_waitCount']=_0x1229f8,this[_0x31f29b(0x2dd)][_0x31f29b(0x1e1)](_0x1229f8);}['getImageSourceCache'](_0x24fe01,_0x4adfc4){const _0xadf797=_0x412385;if(_0x4adfc4===_0x1d7efa[_0xadf797(0x402)][_0xadf797(0x4c0)]){let _0x370d5c=new Image();return _0x370d5c[_0xadf797(0x1f7)]=_0x24fe01,_0x370d5c;}return this['_imageSourceCache']['get'](_0x24fe01);}[_0x412385(0x371)](_0x4c1ffb,_0x8f831,_0x3188f7){const _0x2d6d61=_0x412385;_0x8f831!==_0x1d7efa[_0x2d6d61(0x402)][_0x2d6d61(0x4c0)]&&_0x3188f7!=null&&this[_0x2d6d61(0x2df)][_0x2d6d61(0x446)](_0x4c1ffb,_0x3188f7);}async[_0x412385(0x44a)](_0x47bac1){const _0x5ec55b=_0x412385;try{let _0x38b8f3=this[_0x5ec55b(0x27c)](this['_getSignURL'](),''+_0x47bac1),_0xfbf043=(await this[_0x5ec55b(0x508)]['get'](_0x38b8f3))[_0x5ec55b(0x34b)];if(_0xfbf043[_0x5ec55b(0x441)]&&_0xfbf043[_0x5ec55b(0x441)][_0x5ec55b(0x28c)]===_0x22ed46['ErrorCode']['OK']){let _0x184dda=(0x0,_0x1d7efa[_0x5ec55b(0x1f1)])(_0xfbf043['url'],this[_0x5ec55b(0x1e8)]());return Promise['resolve'](_0x184dda);}return Promise[_0x5ec55b(0x295)](_0xfbf043[_0x5ec55b(0x441)]);}catch(_0x5f3a74){return Promise[_0x5ec55b(0x295)](_0x5f3a74);}}async[_0x412385(0x470)](_0x5a9031){const _0x4d0b80=_0x412385;let _0x45c812='';if(!_0x58c71b[_0x4d0b80(0x244)][_0x4d0b80(0x2f3)](_0x5a9031[_0x4d0b80(0x2db)]))return this[_0x4d0b80(0x3bc)](),Promise[_0x4d0b80(0x295)](Error(_0x1d7efa[_0x4d0b80(0x366)][_0x4d0b80(0x1f3)]));if(_0x5a9031[_0x4d0b80(0x2e8)]>(0x0,_0x58c71b[_0x4d0b80(0x304)])())return this[_0x4d0b80(0x3bc)](),Promise[_0x4d0b80(0x295)](Error(_0x1d7efa[_0x4d0b80(0x366)]['ERROR_EXCEED_SIZE']));try{let _0x4549a6=new FormData();_0x4549a6[_0x4d0b80(0x4b2)](_0x4d0b80(0x313),_0x5a9031);let _0x3d9ad2=this[_0x4d0b80(0x203)][_0x4d0b80(0x32f)](),_0x40b246=_0x3d9ad2==null?void 0x0:_0x3d9ad2[_0x4d0b80(0x335)]();if(!_0x40b246)throw Error(_0x4d0b80(0x486));let _0x1f8e3a=this[_0x4d0b80(0x1fe)]()+_0x4d0b80(0x2a5)+_0x5a9031['size'][_0x4d0b80(0x3aa)]()+_0x4d0b80(0x256)+_0x22ed46[_0x4d0b80(0x393)][_0x4d0b80(0x4d7)]+'&assign='+encodeURIComponent(_0x40b246),_0x539a4c={'body':_0x4549a6},_0x1802c6=(await this[_0x4d0b80(0x508)][_0x4d0b80(0x1d9)](_0x1f8e3a,_0x539a4c))[_0x4d0b80(0x34b)];if(typeof _0x1802c6[_0x4d0b80(0x3b9)]!='string')return this[_0x4d0b80(0x3bc)](),Promise[_0x4d0b80(0x295)](Error(_0x1d7efa[_0x4d0b80(0x366)]['ERROR_IMAGE']));_0x45c812=_0x1802c6[_0x4d0b80(0x3b9)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x1d7efa[_0x4d0b80(0x366)][_0x4d0b80(0x32d)]));}return new Promise((_0x112609,_0x11df66)=>{let _0x3097fb=new FileReader();_0x3097fb['readAsDataURL'](_0x5a9031),_0x3097fb['onload']=_0x20051d=>{const _0xec08b6=_0x28e1;var _0x1defa8;let _0x43def1=(_0x1defa8=_0x20051d[_0xec08b6(0x50e)])==null?void 0x0:_0x1defa8[_0xec08b6(0x22a)];if(_0x43def1==null){this[_0xec08b6(0x3bc)](),_0x11df66(Error(_0x1d7efa[_0xec08b6(0x366)][_0xec08b6(0x32d)]));return;}_0x112609({'imageId':(0x0,_0x1d7efa['generateRandomId'])(0x6),'imageSourceType':_0x1d7efa['ImageSourceType'][_0xec08b6(0x35a)],'source':_0x45c812,'base64Cache':_0x43def1,'status':_0x1d7efa[_0xec08b6(0x366)]['SUCCUSS']}),this[_0xec08b6(0x3bc)]();};});}[_0x412385(0x1fe)](){const _0x47479d=_0x412385;let _0x53957a=this[_0x47479d(0x309)]['getConfig'](_0x5270c6);return(_0x53957a==null?void 0x0:_0x53957a[_0x47479d(0x25c)])??'/universer-api/stream/file/upload';}[_0x412385(0x3cc)](){const _0x4c76a8=_0x412385;let _0x28b9fd=this[_0x4c76a8(0x309)][_0x4c76a8(0x447)](_0x5270c6);return(_0x28b9fd==null?void 0x0:_0x28b9fd[_0x4c76a8(0x23c)])??'/universer-api/file/{fileID}/sign-url';}[_0x412385(0x1e8)](){const _0x4aa4e5=_0x412385;let _0x2d3057=this['_configService'][_0x4aa4e5(0x447)](_0x5270c6);return(_0x2d3057==null?void 0x0:_0x2d3057[_0x4aa4e5(0x43c)])??location[_0x4aa4e5(0x45d)];}[_0x412385(0x27c)](_0xaef7fa,_0x408485){const _0xb54b4f=_0x412385;return _0xaef7fa[_0xb54b4f(0x518)](_0xb54b4f(0x482),_0x408485);}[_0x412385(0x3bc)](){const _0x590136=_0x412385;--this['_waitCount'],this['_change$']['next'](this[_0x590136(0x378)]);}};_0x1cc496=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4['HTTPService'])),_0x34b040(0x1,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x2,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x289)]))],_0x1cc496);let _0x13da4a=class{constructor(_0xf26897,_0x51678b){const _0x21de22=_0x412385;this[_0x21de22(0x309)]=_0xf26897,this[_0x21de22(0x421)]=_0x51678b;}[_0x412385(0x1b4)](){const _0x3e6dcd=_0x412385;let _0x4bb8e0=this[_0x3e6dcd(0x309)]['getConfig'](_0x5270c6);return(_0x4bb8e0==null?void 0x0:_0x4bb8e0['authzUrl'])??_0x3e6dcd(0x384);}async[_0x412385(0x2f9)](_0x3caab6){const _0x420774=_0x412385;let _0x59f2a3=this[_0x420774(0x1b4)]()+_0x420774(0x398);return{'list':[{'title':_0x420774(0x1ba),'mentions':(await this[_0x420774(0x421)]['get'](_0x59f2a3,{'params':{'objectID':_0x3caab6[_0x420774(0x20e)],'unitID':_0x3caab6[_0x420774(0x20e)]}}))[_0x420774(0x34b)][_0x420774(0x2ae)][_0x420774(0x3e6)](_0x4da12b=>({'objectId':_0x4da12b['id'],'name':_0x4da12b[_0x420774(0x39e)][_0x420774(0x49f)],'metadata':{'icon':_0x4da12b[_0x420774(0x39e)][_0x420774(0x331)]},'label':_0x4da12b['subject'][_0x420774(0x49f)],'objectType':_0x1d7efa['MentionType'][_0x420774(0x4da)]})),'metadata':{},'type':_0x1d7efa[_0x420774(0x297)][_0x420774(0x4da)]}]};}};_0x13da4a=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa[_0x412385(0x44b)])),_0x34b040(0x1,(0x0,_0x1d7efa['Inject'])(_0x43a4f4[_0x412385(0x1fd)]))],_0x13da4a);let _0x132b81=class extends _0x1d7efa[_0x412385(0x281)]{constructor(_0x589195,_0x21b3ec,_0x22a417,_0xcc04ca,_0x17da84,_0x2a3e45){const _0x23d46a=_0x412385;super(),this[_0x23d46a(0x22c)]=_0x589195,this[_0x23d46a(0x203)]=_0x21b3ec,this[_0x23d46a(0x435)]=_0x22a417,this[_0x23d46a(0x432)]=_0xcc04ca,this[_0x23d46a(0x516)]=_0x17da84,this[_0x23d46a(0x373)]=_0x2a3e45,_0x4a1990(this,_0x23d46a(0x433),new Set()),this[_0x23d46a(0x34e)](()=>this[_0x23d46a(0x433)][_0x23d46a(0x519)]()),this['disposeWithMe'](_0xa9fc9a(this[_0x23d46a(0x203)])[_0x23d46a(0x349)](({unitId:_0x5586f3})=>this[_0x23d46a(0x433)][_0x23d46a(0x45c)](_0x5586f3))),this[_0x23d46a(0x51b)](),this['_initCloseConn'](),[_0x1d7efa[_0x23d46a(0x339)][_0x23d46a(0x48a)],_0x1d7efa['UniverInstanceType'][_0x23d46a(0x22e)],_0x1d7efa[_0x23d46a(0x339)][_0x23d46a(0x242)],_0x1d7efa[_0x23d46a(0x339)][_0x23d46a(0x1ad)]][_0x23d46a(0x303)](_0x459584=>{const _0x434885=_0x23d46a;this[_0x434885(0x34e)](this[_0x434885(0x203)][_0x434885(0x248)](_0x459584)[_0x434885(0x349)](_0x507f3c=>{const _0xe01577=_0x434885;this[_0xe01577(0x433)][_0xe01577(0x506)](_0x507f3c[_0xe01577(0x335)]()),this[_0xe01577(0x22c)]['get'](_0x1d7efa[_0xe01577(0x425)])[_0xe01577(0x39b)](_0x507f3c['getUnitId']());}));});}[_0x412385(0x2ee)](){const _0x4f0999=_0x412385;let _0x9d8d3=async(_0x498417,_0x34cd2b)=>{const _0x273844=_0x28e1;let _0x3de1d5=await this['_collaborationSessionService'][_0x273844(0x358)](_0x498417);this['_disposed']||this['_closedUnits'][_0x273844(0x47d)](_0x498417)||!this[_0x273844(0x203)][_0x273844(0x36c)](_0x498417)||_0x3de1d5[_0x273844(0x38a)][_0x273844(0x21b)]((0x0,_0x6241f[_0x273844(0x49e)])(_0x4f9b1d=>_0x4f9b1d['eventID']===_0x1c67cc[_0x273844(0x48b)][_0x273844(0x308)]),(0x0,_0x6241f['takeUntil'])((0x0,_0x150fe7[_0x273844(0x1ab)])(this[_0x273844(0x3d0)],this[_0x273844(0x203)][_0x273844(0x2d8)][_0x273844(0x21b)]((0x0,_0x6241f[_0x273844(0x49e)])(_0x751fd5=>_0x751fd5[_0x273844(0x335)]()===_0x498417)))))[_0x273844(0x349)](_0x7d2329=>{const _0x407444=_0x273844;let {reason:_0x535d97}=_0x7d2329[_0x407444(0x35c)];this[_0x407444(0x373)][_0x407444(0x30b)]({'id':_0x407444(0x440),'data':_0x535d97}),this[_0x407444(0x433)]['add'](_0x498417),this['_injector'][_0x407444(0x354)](_0x1d7efa['ObjectPermissionService'])[_0x407444(0x39b)](_0x498417);let _0x3b2e45=_0x5003bd(_0x34cd2b);_0x3b2e45!=null&&this['_updateUnitPermissionPoint'](_0x498417,_0x3b2e45,_0x22ed46[_0x407444(0x2cf)]['Edit'],!0x1),this['_collaborationSessionService'][_0x407444(0x405)](_0x498417);});};_0xa9fc9a(this[_0x4f0999(0x203)])[_0x4f0999(0x21b)]((0x0,_0x6241f[_0x4f0999(0x49e)])(({unitId:_0x250ef9})=>!(0x0,_0x1d7efa[_0x4f0999(0x431)])(_0x250ef9)),(0x0,_0x6241f['takeUntil'])(this[_0x4f0999(0x3d0)]))['subscribe'](({type:_0x37ecba,unitId:_0x627f7b})=>{const _0x31022a=_0x4f0999;_0x9d8d3(_0x627f7b,_0x37ecba)[_0x31022a(0x1c5)](_0x430e3e=>this[_0x31022a(0x22c)][_0x31022a(0x354)](_0x1d7efa[_0x31022a(0x34a)])[_0x31022a(0x441)](_0x430e3e));});}[_0x412385(0x51b)](){const _0xec0820=_0x412385;let _0x53e65e=async(_0x2934a6,_0x2e7737)=>{const _0x714579=_0x28e1;let _0x138f1c=await this[_0x714579(0x516)]['requireSession'](_0x2934a6);if(!(this[_0x714579(0x21a)]||this[_0x714579(0x433)][_0x714579(0x47d)](_0x2934a6)||!this[_0x714579(0x203)]['getUnit'](_0x2934a6))){if(_0x2e7737===_0x1d7efa['UniverInstanceType'][_0x714579(0x2d7)]){let _0x556095=this['_injector'][_0x714579(0x354)](_0x7fdba4[_0x714579(0x397)]);await _0x556095[_0x714579(0x20c)](_0x2934a6),_0x138f1c[_0x714579(0x38a)][_0x714579(0x21b)]((0x0,_0x6241f[_0x714579(0x49e)])(_0x546eaf=>_0x546eaf['eventID']===_0x1c67cc[_0x714579(0x48b)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x6241f[_0x714579(0x2d6)])((0x0,_0x150fe7[_0x714579(0x1ab)])(this['dispose$'],_0x138f1c['event$'][_0x714579(0x21b)]((0x0,_0x6241f['filter'])(_0x2c0fad=>_0x2c0fad[_0x714579(0x251)]===_0x1c67cc[_0x714579(0x48b)][_0x714579(0x308)])),this[_0x714579(0x203)][_0x714579(0x2d8)][_0x714579(0x21b)]((0x0,_0x6241f[_0x714579(0x49e)])(_0x52b986=>_0x52b986[_0x714579(0x335)]()===_0x2934a6)))))['subscribe'](_0x31733e=>{const _0x158948=_0x714579;let {objectId:_0x14ca0f}=_0x31733e['data'];_0x14ca0f===_0x2934a6?_0x556095['initWorkbookPermissionChange'](_0x2934a6):_0x556095[_0x158948(0x2ef)](_0x2934a6,_0x14ca0f);});return;}_0x138f1c[_0x714579(0x38a)][_0x714579(0x21b)]((0x0,_0x6241f[_0x714579(0x49e)])(_0x5bb4d9=>_0x5bb4d9['eventID']===_0x1c67cc[_0x714579(0x48b)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x6241f[_0x714579(0x2d6)])((0x0,_0x150fe7[_0x714579(0x1ab)])(this[_0x714579(0x3d0)],_0x138f1c['event$'][_0x714579(0x21b)]((0x0,_0x6241f['filter'])(_0x2228ce=>_0x2228ce['eventID']===_0x1c67cc[_0x714579(0x48b)][_0x714579(0x308)])),this['_univerInstanceService']['unitDisposed$'][_0x714579(0x21b)]((0x0,_0x6241f['filter'])(_0x28162c=>_0x28162c[_0x714579(0x335)]()===_0x2934a6)))))[_0x714579(0x349)](()=>{const _0x41e338=_0x714579;this[_0x41e338(0x247)](_0x2934a6,_0x2e7737)[_0x41e338(0x1c5)](_0x13830d=>this[_0x41e338(0x22c)][_0x41e338(0x354)](_0x1d7efa[_0x41e338(0x34a)])[_0x41e338(0x441)](_0x13830d));}),await this[_0x714579(0x247)](_0x2934a6,_0x2e7737);}};_0xa9fc9a(this[_0xec0820(0x203)])[_0xec0820(0x21b)]((0x0,_0x6241f[_0xec0820(0x49e)])(({unitId:_0x1e75eb})=>!(0x0,_0x1d7efa[_0xec0820(0x431)])(_0x1e75eb)),(0x0,_0x6241f[_0xec0820(0x2d6)])(this['dispose$']))[_0xec0820(0x349)](({type:_0x509a1f,unitId:_0x572e8d})=>{const _0x175320=_0xec0820;_0x53e65e(_0x572e8d,_0x509a1f)['catch'](_0x52e3e7=>this[_0x175320(0x22c)][_0x175320(0x354)](_0x1d7efa[_0x175320(0x34a)])[_0x175320(0x441)](_0x52e3e7));});}async['_refreshUnitPermission'](_0x2786f6,_0x9f6ae4){const _0x305c10=_0x412385;let _0x506f37=_0x5003bd(_0x9f6ae4);if(_0x506f37==null)return;let _0x4d4fb5=this['_injector'][_0x305c10(0x354)](_0x1d7efa['ObjectPermissionService']);if(_0x4d4fb5[_0x305c10(0x3d9)]({'unitId':_0x2786f6,'objectId':_0x2786f6,'objectType':_0x506f37})){await _0x4d4fb5[_0x305c10(0x394)](_0x2786f6);return;}let _0x2fe9a2=this['_getUnitPermissionPoints'](_0x2786f6,_0x506f37);if(!_0x2fe9a2['length'])return;let _0x4e9ea8=await this[_0x305c10(0x432)][_0x305c10(0x410)]({'objectID':_0x2786f6,'objectType':_0x506f37,'unitID':_0x2786f6,'actions':_0x2fe9a2[_0x305c10(0x3e6)](({action:_0x129b22})=>_0x129b22)});this['_disposed']||this[_0x305c10(0x433)][_0x305c10(0x47d)](_0x2786f6)||!this['_univerInstanceService'][_0x305c10(0x36c)](_0x2786f6)||_0x4e9ea8[_0x305c10(0x303)](_0xb3ec66=>{const _0xeb739=_0x305c10;let _0x5329e7=_0xb3ec66[_0xeb739(0x33b)],_0x1d8037=_0xb3ec66[_0xeb739(0x410)];_0x5329e7!=null&&_0x1d8037!=null&&_0x2fe9a2['filter'](_0x2b694d=>_0x2b694d['action']===_0x5329e7)['forEach'](_0x406544=>this['_permissionService'][_0xeb739(0x389)](_0x406544['id'],_0x1d8037));});}[_0x412385(0x33d)](_0x184cf6,_0x44320c){const _0x1cfc58=_0x412385;let _0x44898c=[];return this['_permissionService'][_0x1cfc58(0x350)]()[_0x1cfc58(0x303)]((_0xfc4ee9,_0x2bc097)=>{const _0xcac446=_0x1cfc58;_0xfc4ee9[_0xcac446(0x349)](_0x7e1dd8=>{const _0x4a367e=_0xcac446;_0x7e1dd8[_0x4a367e(0x2db)]===_0x44320c&&_0x4a367e(0x20e)in _0x7e1dd8&&_0x7e1dd8[_0x4a367e(0x20e)]===_0x184cf6&&(!('objectId'in _0x7e1dd8)||_0x7e1dd8['objectId']===_0x184cf6)&&_0x44898c['push']({'id':_0x2bc097,'action':_0x7e1dd8[_0x4a367e(0x2e1)]});})[_0xcac446(0x3c6)]();}),_0x44898c;}[_0x412385(0x27d)](_0x3d553c,_0x4d7988,_0x5ba379,_0x433c72){const _0x4f73b0=_0x412385;this[_0x4f73b0(0x435)][_0x4f73b0(0x350)]()[_0x4f73b0(0x303)]((_0x566b32,_0x2157f0)=>{const _0x39791e=_0x4f73b0;let _0x52ca11=!0x1;_0x566b32['subscribe'](_0x30efef=>{const _0x1e73c8=_0x28e1;_0x52ca11=_0x30efef[_0x1e73c8(0x2db)]===_0x4d7988&&_0x30efef[_0x1e73c8(0x2e1)]===_0x5ba379&&_0x1e73c8(0x20e)in _0x30efef&&_0x30efef[_0x1e73c8(0x20e)]===_0x3d553c&&(!(_0x1e73c8(0x2ac)in _0x30efef)||_0x30efef['objectId']===_0x3d553c);})[_0x39791e(0x3c6)](),_0x52ca11&&this['_permissionService']['updatePermissionPoint'](_0x2157f0,_0x433c72);});}};_0x132b81=_0xb83a([_0x34b040(0x0,(0x0,_0x1d7efa['Inject'])(_0x1d7efa[_0x412385(0x3da)])),_0x34b040(0x1,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x2,_0x1d7efa[_0x412385(0x452)]),_0x34b040(0x3,_0x1d7efa[_0x412385(0x3ee)]),_0x34b040(0x4,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x2a70ee)),_0x34b040(0x5,(0x0,_0x1d7efa['Inject'])(_0x14986c))],_0x132b81);function _0xa9fc9a(_0x1e735f){const _0x700f98=_0x412385;return(0x0,_0x150fe7['merge'])(...[_0x1d7efa[_0x700f98(0x339)][_0x700f98(0x2d7)],_0x1d7efa[_0x700f98(0x339)][_0x700f98(0x48a)],_0x1d7efa[_0x700f98(0x339)][_0x700f98(0x22e)],_0x1d7efa[_0x700f98(0x339)]['UNIVER_BOARD'],_0x1d7efa[_0x700f98(0x339)][_0x700f98(0x242)]][_0x700f98(0x3e6)](_0x588434=>_0x1e735f[_0x700f98(0x1fa)](_0x588434)[_0x700f98(0x21b)]((0x0,_0x6241f[_0x700f98(0x3e6)])(_0x4a5528=>({'type':_0x588434,'unitId':_0x4a5528[_0x700f98(0x315)][_0x700f98(0x335)]()})))));}function _0x5003bd(_0x219a54){const _0x421a0b=_0x412385;switch(_0x219a54){case _0x1d7efa[_0x421a0b(0x339)][_0x421a0b(0x2d7)]:return _0x22ed46[_0x421a0b(0x32a)]['Workbook'];case _0x1d7efa['UniverInstanceType'][_0x421a0b(0x48a)]:return _0x22ed46['UnitObject'][_0x421a0b(0x307)];case _0x1d7efa[_0x421a0b(0x339)]['UNIVER_SLIDE']:return _0x22ed46[_0x421a0b(0x32a)][_0x421a0b(0x2b0)];case _0x1d7efa[_0x421a0b(0x339)]['UNIVER_BOARD']:return _0x22ed46[_0x421a0b(0x32a)][_0x421a0b(0x298)];case _0x1d7efa[_0x421a0b(0x339)][_0x421a0b(0x242)]:return _0x22ed46[_0x421a0b(0x32a)][_0x421a0b(0x28f)];default:return;}}let _0x60cadc=class{constructor(_0x8de4e,_0x2a7a66){const _0x414199=_0x412385;this[_0x414199(0x309)]=_0x8de4e,this['_httpService']=_0x2a7a66;}async[_0x412385(0x4c8)](_0x68f0c3,_0x290882){const _0x4dd4f3=_0x412385;var _0x400976;let {unitID:_0x307418,type:_0x2be3fd,revision:_0x276dc5=0x0}=_0x290882,_0x4e9917=this[_0x4dd4f3(0x4f8)]()+'/'+_0x2be3fd+_0x4dd4f3(0x3e3)+_0x307418+_0x4dd4f3(0x1ee)+_0x276dc5,_0x4f2fe6=(await this[_0x4dd4f3(0x508)][_0x4dd4f3(0x354)](_0x4e9917))[_0x4dd4f3(0x34b)],_0x4f91d0=(_0x400976=_0x4f2fe6[_0x4dd4f3(0x257)])==null?void 0x0:_0x400976[_0x4dd4f3(0x464)];if(_0x4f91d0){let _0x41d4f8=_0x4f91d0==null?void 0x0:_0x4f91d0[_0x4dd4f3(0x27a)];_0x4f91d0['originalMeta']=_0x1c67cc[_0x4dd4f3(0x386)]['encode']((0x0,_0x1c67cc[_0x4dd4f3(0x234)])(_0x41d4f8)),Object[_0x4dd4f3(0x266)](_0x4f91d0['sheets'])[_0x4dd4f3(0x303)](([,_0x10e4df])=>{const _0x21b9b=_0x4dd4f3;let _0x1dd518=_0x10e4df[_0x21b9b(0x27a)];_0x10e4df['originalMeta']=_0x1c67cc[_0x21b9b(0x386)][_0x21b9b(0x43e)]((0x0,_0x1c67cc[_0x21b9b(0x234)])(_0x1dd518));});}return _0x4f2fe6;}async[_0x412385(0x367)](_0x225ee8,_0x3106d7){const _0x4c80a7=_0x412385;let {unitID:_0x1ab280,type:_0x430a97,blockID:_0x4f7407}=_0x3106d7,_0x56d3cd=this[_0x4c80a7(0x341)]()+'/'+_0x430a97+_0x4c80a7(0x3e3)+_0x1ab280+_0x4c80a7(0x357)+_0x4f7407;return(await this[_0x4c80a7(0x508)][_0x4c80a7(0x354)](_0x56d3cd))[_0x4c80a7(0x34b)];}async[_0x412385(0x411)](_0x513a96,_0x225447){const _0x540c2c=_0x412385;let {unitID:_0x22d44b,type:_0x3c2230,blockID:_0x1392fd}=_0x225447,_0x2e5469=this[_0x540c2c(0x341)]()+'/block/'+_0x3c2230+_0x540c2c(0x3e3)+_0x22d44b+_0x540c2c(0x357)+_0x1392fd;return(await this[_0x540c2c(0x508)][_0x540c2c(0x354)](_0x2e5469))[_0x540c2c(0x34b)];}async[_0x412385(0x2f1)](_0x57352c,_0x45c34b){const _0x441efb=_0x412385;let {unitID:_0x4da712,type:_0x4fc5d1,from:_0x6e8d6c,to:_0xc9465e}=_0x45c34b,_0x1741fa=this[_0x441efb(0x341)]()+'/'+_0x4fc5d1+'/unit/'+_0x4da712+'/fetchmissing?from='+_0x6e8d6c+_0x441efb(0x28b)+_0xc9465e;return(await this[_0x441efb(0x508)][_0x441efb(0x354)](_0x1741fa))[_0x441efb(0x34b)];}[_0x412385(0x4f8)](){const _0x4f1170=_0x412385;return this[_0x4f1170(0x309)]['getConfig'](_0x4f1170(0x428))??this[_0x4f1170(0x341)]();}[_0x412385(0x341)](){const _0x448f96=_0x412385;let _0x11ff9c=this[_0x448f96(0x309)][_0x448f96(0x447)](_0x5270c6);return(_0x11ff9c==null?void 0x0:_0x11ff9c[_0x448f96(0x254)])??'/universer-api/snapshot';}async['getResourcesRequest'](_0x3ad5b8,_0x3d97fd){const _0xf59687=_0x412385;let _0x5f27bb=_0xf59687(0x4b4)+_0x3d97fd[_0xf59687(0x2db)]+_0xf59687(0x3e3)+_0x3d97fd[_0xf59687(0x2c1)]+_0xf59687(0x2c6);return(await this['_httpService'][_0xf59687(0x354)](_0x5f27bb,{'params':{'resourceId':JSON[_0xf59687(0x26a)](_0x3d97fd['resourceIDs'])}}))[_0xf59687(0x34b)];}[_0x412385(0x423)](){const _0x12da6a=_0x412385;throw Error(_0x12da6a(0x375));}['updateSnapshot'](){const _0x43e524=_0x412385;throw Error(_0x43e524(0x375));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x1f03c6=_0x412385;throw Error(_0x1f03c6(0x375));}[_0x412385(0x2a8)](){const _0x575495=_0x412385;throw Error(_0x575495(0x375));}[_0x412385(0x42a)](){const _0x1b9311=_0x412385;throw Error(_0x1b9311(0x375));}};_0x60cadc=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x44b)]),_0x34b040(0x1,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x43a4f4[_0x412385(0x1fd)]))],_0x60cadc);let _0xffd41=class extends _0x1d7efa[_0x412385(0x1ae)]{constructor(_0x57f310,_0x4e8f09,_0x467473,_0x4e66fc,_0x5edd2,_0x1d2a31){const _0x5ee53e=_0x412385;super(_0x57f310,_0x4e8f09,_0x467473,_0x4e66fc),this['_transformService']=_0x5edd2,this[_0x5ee53e(0x3a7)]=_0x1d2a31;}[_0x412385(0x2f2)](_0x4fe41c,_0x46a847){const _0x4d73ae=_0x412385;let _0x5185aa=this[_0x4d73ae(0x284)](_0x4fe41c);if(_0x5185aa)try{let _0x1eb944=this[_0x4d73ae(0x500)](_0x5185aa,_0x46a847);this[_0x4d73ae(0x3be)](_0x4fe41c,_0x1eb944);}catch(_0xaed6a8){this['_logService'][_0x4d73ae(0x441)](_0x4d73ae(0x363),_0xaed6a8),this[_0x4d73ae(0x443)](_0x4fe41c);}let _0x56691d=this[_0x4d73ae(0x466)](_0x4fe41c);if(_0x56691d)try{let _0x18a5a8=this[_0x4d73ae(0x500)](_0x56691d,_0x46a847);this['_substituteRedoStack'](_0x4fe41c,_0x18a5a8);}catch(_0x2c5963){this[_0x4d73ae(0x3a7)][_0x4d73ae(0x441)](_0x2c5963),this[_0x4d73ae(0x3e8)](_0x4fe41c);}}[_0x412385(0x443)](_0x5463c4){const _0x10c46d=_0x412385;let _0x3f2e1b=this[_0x10c46d(0x284)](_0x5463c4);_0x3f2e1b&&(_0x3f2e1b['length']=0x0,this['_updateStatus']());}['_clearRedo'](_0x25ef6a){const _0x12b883=_0x412385;let _0x4da19a=this['_getRedoStack'](_0x25ef6a);_0x4da19a&&(_0x4da19a['length']=0x0,this[_0x12b883(0x3b5)]());}[_0x412385(0x3be)](_0xa5bcf3,_0x5776e9){const _0x39fe21=_0x412385;this[_0x39fe21(0x1d7)][_0x39fe21(0x446)](_0xa5bcf3,_0x5776e9),this[_0x39fe21(0x3b5)]();}[_0x412385(0x2b6)](_0xe154b7,_0x434d6e){const _0x3549fe=_0x412385;this[_0x3549fe(0x3d6)][_0x3549fe(0x446)](_0xe154b7,_0x434d6e),this[_0x3549fe(0x3b5)]();}[_0x412385(0x500)](_0x5439e5,_0x18eab0){const _0x1dfe93=_0x412385;let _0x4c905c=[],_0x1e4deb=_0x18eab0,_0x14495b=_0x18eab0;for(let _0x1298ba=_0x5439e5[_0x1dfe93(0x372)]-0x1;_0x1298ba>=0x0;_0x1298ba--){let {unitID:_0xb84229,undoMutations:_0x9ecb53,redoMutations:_0x1b1593}=_0x5439e5[_0x1298ba],_0x520cc6=this[_0x1dfe93(0x347)][_0x1dfe93(0x414)](_0x1e4deb,_0x9ecb53),_0x58e0a2=this[_0x1dfe93(0x347)]['transformMutationsWithChangeset'](_0x14495b,_0x1b1593);if((0x0,_0x1c67cc[_0x1dfe93(0x41d)])(_0x520cc6)||(0x0,_0x1c67cc['isTransformMutationsWithChangesetFailure'])(_0x58e0a2)){this[_0x1dfe93(0x3a7)]['error'](_0x1dfe93(0x363),_0x1dfe93(0x2ce),_0x520cc6,_0x58e0a2);break;}_0x1e4deb=_0x520cc6[_0x1dfe93(0x26c)],_0x14495b=_0x58e0a2[_0x1dfe93(0x26c)],_0x4c905c[_0x1dfe93(0x1e0)]({'unitID':_0xb84229,'undoMutations':_0x520cc6[_0x1dfe93(0x220)],'redoMutations':_0x58e0a2['m2Prime']});}return _0x4c905c[_0x1dfe93(0x4ef)]();}};_0xffd41=_0xb83a([_0x34b040(0x0,_0x1d7efa[_0x412385(0x289)]),_0x34b040(0x1,_0x1d7efa[_0x412385(0x20f)]),_0x34b040(0x2,_0x1d7efa[_0x412385(0x342)]),_0x34b040(0x3,_0x1d7efa['IConfigService']),_0x34b040(0x4,_0x1c67cc[_0x412385(0x4f0)]),_0x34b040(0x5,_0x1d7efa['ILogService'])],_0xffd41);let _0x12ac83=class extends _0x1d7efa[_0x412385(0x4ab)]{constructor(_0x3809ff=_0x27aef1,_0xda5f4b,_0x38b3fc,_0x1dccfa){const _0x337303=_0x412385;super(),this[_0x337303(0x314)]=_0x3809ff,this[_0x337303(0x3a7)]=_0xda5f4b,this[_0x337303(0x22c)]=_0x38b3fc,this[_0x337303(0x309)]=_0x1dccfa;let {..._0x1f4876}=(0x0,_0x1d7efa[_0x337303(0x1ab)])({},_0x27aef1,this[_0x337303(0x314)]);if(!_0x1f4876[_0x337303(0x3f9)])throw Error(_0x337303(0x48c));this['_config']=_0x1f4876,this['_configService'][_0x337303(0x1af)](_0x5270c6,_0x1f4876);}[_0x412385(0x4fb)](){const _0x510a3e=_0x412385;this['_configService'][_0x510a3e(0x1af)](_0x1d7efa['OBJECT_PERMISSION_CONFIG_KEY'],this[_0x510a3e(0x314)][_0x510a3e(0x215)]??[]),this[_0x510a3e(0x40b)](),this[_0x510a3e(0x311)]();}['_registerDependencies'](){const _0x27cd04=_0x412385;var _0x566802,_0x9fb9a1;this[_0x27cd04(0x22c)][_0x27cd04(0x47d)](_0x1d7efa[_0x27cd04(0x1ea)])&&this[_0x27cd04(0x3a7)][_0x27cd04(0x441)](_0x27cd04(0x4c1),_0x27cd04(0x478));let _0x35c755=(0x0,_0x1d7efa['mergeOverrideWithDependencies'])([[_0x1d7efa[_0x27cd04(0x1ea)],{'useClass':_0xffd41}],[_0x5a21f9,{'useValue':_0x22b4af()}],[_0x2a70ee],[_0x2cad2f],[_0x36c805],[_0x2fe2cf],[_0x21f7f4],[_0x201c58],[_0x132b81],[_0x14986c],[_0x5f37a7],[_0x796d28,{'useClass':this[_0x27cd04(0x314)][_0x27cd04(0x3f9)]}],[_0x1c67cc[_0x27cd04(0x4f7)],{'useClass':_0x60cadc}],[_0x1d7efa[_0x27cd04(0x3ee)],{'useClass':_0x21b3b7}],[_0x1d7efa['IImageIoService'],{'useClass':_0x1cc496}],[_0x14a2d0,{'useClass':_0x27bb8b}],[_0x1d7efa[_0x27cd04(0x1b1)],{'useClass':_0x13da4a}],[_0x15d399],[_0x3f9bbe]],(_0x566802=this[_0x27cd04(0x314)])==null?void 0x0:_0x566802[_0x27cd04(0x1a8)]);if(!((_0x9fb9a1=this[_0x27cd04(0x314)])!=null&&_0x9fb9a1[_0x27cd04(0x238)])){let _0x5a965d=_0x35c755[_0x27cd04(0x39a)](([_0x3ba271])=>_0x3ba271===_0x4f19a3);_0x5a965d!==-0x1&&_0x35c755[_0x27cd04(0x46b)](_0x5a965d,0x1);}(0x0,_0x1d7efa[_0x27cd04(0x3c9)])(this['_injector'],_0x35c755);}[_0x412385(0x311)](){const _0x16a04f=_0x412385;var _0x3ed5e7,_0x2d03e6;if(this[_0x16a04f(0x22c)][_0x16a04f(0x354)](_0x43a4f4[_0x16a04f(0x1fd)])[_0x16a04f(0x1ec)]({'priority':0x14,'interceptor':(0x0,_0x43a4f4[_0x16a04f(0x223)])({'maxParallel':0x6})}),!((_0x3ed5e7=this[_0x16a04f(0x314)])!=null&&_0x3ed5e7[_0x16a04f(0x2c9)])){var _0x5d614d;(_0x5d614d=this[_0x16a04f(0x22c)][_0x16a04f(0x354)](_0xad368b,_0x1d7efa['Quantity'][_0x16a04f(0x3b2)]))==null||_0x5d614d['disableLocalCache']();}(_0x2d03e6=this[_0x16a04f(0x314)])!=null&&_0x2d03e6[_0x16a04f(0x391)]&&(0x0,_0x1d7efa[_0x16a04f(0x1c8)])(this[_0x16a04f(0x22c)],[[_0x2fe2cf]]),(0x0,_0x1d7efa['touchDependencies'])(this['_injector'],[[_0x21f7f4],[_0x15d399],[_0x132b81]]);}};_0x4a1990(_0x12ac83,_0x412385(0x4c5),_0x412385(0x37d)),_0x4a1990(_0x12ac83,'packageName',_0x17ce84),_0x4a1990(_0x12ac83,_0x412385(0x473),_0x41a5ba),_0x12ac83=_0xb83a([(0x0,_0x1d7efa[_0x412385(0x1b8)])(_0x125bc9[_0x412385(0x33a)],_0x43a4f4[_0x412385(0x4bc)],_0x1c67cc[_0x412385(0x29e)]),_0x34b040(0x1,_0x1d7efa[_0x412385(0x34a)]),_0x34b040(0x2,(0x0,_0x1d7efa[_0x412385(0x471)])(_0x1d7efa['Injector'])),_0x34b040(0x3,_0x1d7efa[_0x412385(0x44b)])],_0x12ac83),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x1e4),{'enumerable':!0x0,'get':function(){return _0x21b3b7;}}),Object['defineProperty'](_0x2ce8a2,_0x412385(0x29f),{'enumerable':!0x0,'get':function(){return _0x4ebb61;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x356),{'enumerable':!0x0,'get':function(){return _0x35a2a7;}}),Object['defineProperty'](_0x2ce8a2,_0x412385(0x3ec),{'enumerable':!0x0,'get':function(){return _0x360e2c;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x43f),{'enumerable':!0x0,'get':function(){return _0x3673f5;}}),_0x2ce8a2[_0x412385(0x359)]=_0x5270c6,Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x1b0),{'enumerable':!0x0,'get':function(){return _0x27bb8b;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x15d399;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x323),{'enumerable':!0x0,'get':function(){return _0x4f7486;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x282),{'enumerable':!0x0,'get':function(){return _0x1cc496;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x406),{'enumerable':!0x0,'get':function(){return _0x1c43ab;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x2a70ee;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x191d68;}}),_0x2ce8a2[_0x412385(0x1d5)]=_0x559ad3,_0x2ce8a2['CollaborationUIEventId']=_0x8e2800,_0x2ce8a2[_0x412385(0x379)]=_0x14986c,Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x239),{'enumerable':!0x0,'get':function(){return _0xffd41;}}),_0x2ce8a2[_0x412385(0x481)]=_0x201c58,Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x235),{'enumerable':!0x0,'get':function(){return _0x1ab0fd;}}),_0x2ce8a2[_0x412385(0x2d0)]=_0x412385(0x399),_0x2ce8a2['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x412385(0x3a3),_0x2ce8a2['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x419),{'enumerable':!0x0,'get':function(){return _0x5f37a7;}}),Object['defineProperty'](_0x2ce8a2,_0x412385(0x2fe),{'enumerable':!0x0,'get':function(){return _0x49af8e;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x376),{'enumerable':!0x0,'get':function(){return _0x1c1054;}}),_0x2ce8a2['HEARTBEAT_INTERVAL_KEY']=_0x412385(0x415),_0x2ce8a2[_0x412385(0x42e)]=_0x412385(0x317),_0x2ce8a2[_0x412385(0x2bb)]=_0x14a2d0,_0x2ce8a2[_0x412385(0x299)]=_0x5a21f9,_0x2ce8a2[_0x412385(0x484)]=_0x796d28,_0x2ce8a2[_0x412385(0x49b)]=_0xad368b,_0x2ce8a2[_0x412385(0x219)]=_0x4b44da,_0x2ce8a2[_0x412385(0x4fe)]=_0x4f19a3,_0x2ce8a2['LOCAL_CACHE_INTERVAL']=0x3e8,_0x2ce8a2[_0x412385(0x2ad)]=_0x412385(0x263),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x499),{'enumerable':!0x0,'get':function(){return _0x2cad2f;}}),Object['defineProperty'](_0x2ce8a2,_0x412385(0x45e),{'enumerable':!0x0,'get':function(){return _0x13da4a;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x431128;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x3bf),{'enumerable':!0x0,'get':function(){return _0x5e1218;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'PendingState',{'enumerable':!0x0,'get':function(){return _0x2ff232;}}),_0x2ce8a2['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x412385(0x1fb),_0x2ce8a2['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x412385(0x25f),_0x2ce8a2[_0x412385(0x2d2)]=_0x2ff20c,Object[_0x412385(0x4a7)](_0x2ce8a2,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe87472;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0x36c805;}}),Object['defineProperty'](_0x2ce8a2,_0x412385(0x498),{'enumerable':!0x0,'get':function(){return _0x5cc1fb;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x407),{'enumerable':!0x0,'get':function(){return _0x60cadc;}}),Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x4d1),{'enumerable':!0x0,'get':function(){return _0x4960c5;}}),_0x2ce8a2['UnitStatus']=_0x50845d,Object[_0x412385(0x4a7)](_0x2ce8a2,_0x412385(0x274),{'enumerable':!0x0,'get':function(){return _0x12ac83;}}),_0x2ce8a2[_0x412385(0x417)]=_0x22b4af,_0x2ce8a2[_0x412385(0x334)]=_0x99dcc1,_0x2ce8a2[_0x412385(0x45f)]=_0x39aca3,_0x2ce8a2['serializeCombRequest']=_0x203404;}));
1
+ function _0x5846(_0x26e98c,_0xc5fb52){_0x26e98c=_0x26e98c-0xa0;const _0x1d68cc=_0x1d68();let _0x584617=_0x1d68cc[_0x26e98c];return _0x584617;}(function(_0x1cbd75,_0x1a6dc2){const _0x47a3cb=_0x5846,_0xb5e2a0=_0x1cbd75();while(!![]){try{const _0x480106=-parseInt(_0x47a3cb(0xd1))/0x1*(parseInt(_0x47a3cb(0x321))/0x2)+-parseInt(_0x47a3cb(0x282))/0x3+parseInt(_0x47a3cb(0x34f))/0x4+-parseInt(_0x47a3cb(0x1bf))/0x5+parseInt(_0x47a3cb(0x261))/0x6+parseInt(_0x47a3cb(0x2cb))/0x7+-parseInt(_0x47a3cb(0x367))/0x8*(-parseInt(_0x47a3cb(0x3a6))/0x9);if(_0x480106===_0x1a6dc2)break;else _0xb5e2a0['push'](_0xb5e2a0['shift']());}catch(_0x186ca9){_0xb5e2a0['push'](_0xb5e2a0['shift']());}}}(_0x1d68,0x5d33b),function(_0x1ad5c9,_0x11ebf3){const _0x2ce33b=_0x5846;typeof exports=='object'&&typeof module<'u'?_0x11ebf3(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==_0x2ce33b(0x36a)&&define[_0x2ce33b(0x176)]?define([_0x2ce33b(0x28f),_0x2ce33b(0x1b9),_0x2ce33b(0x2bb),_0x2ce33b(0x2af),'@univerjs/sheets',_0x2ce33b(0x3bb),_0x2ce33b(0x129),_0x2ce33b(0x166),_0x2ce33b(0x16a),_0x2ce33b(0xdf),_0x2ce33b(0x34c),_0x2ce33b(0x127),_0x2ce33b(0x350)],_0x11ebf3):(_0x1ad5c9=typeof globalThis<'u'?globalThis:_0x1ad5c9||self,_0x11ebf3(_0x1ad5c9[_0x2ce33b(0xf1)]={},_0x1ad5c9[_0x2ce33b(0x21a)],_0x1ad5c9['UniverCore'],_0x1ad5c9[_0x2ce33b(0x27d)],_0x1ad5c9[_0x2ce33b(0x400)],_0x1ad5c9['rxjs'],_0x1ad5c9[_0x2ce33b(0x102)],_0x1ad5c9['UniverTelemetry'],_0x1ad5c9['rxjs'][_0x2ce33b(0x15d)],_0x1ad5c9['UniverProSlides'],_0x1ad5c9['UniverNetwork'],_0x1ad5c9[_0x2ce33b(0x25b)],_0x1ad5c9[_0x2ce33b(0xbe)]));}(this,function(_0x25ed14,_0x3a5734,_0x433f65,_0xaa3595,_0x6a2ac6,_0x450705,_0x4ed0d4,_0x133d94,_0x223d83,_0x255f6e,_0x544d24,_0x224431,_0x21f767){const _0x4fa2a5=_0x5846;Object[_0x4fa2a5(0x3b2)](_0x25ed14,Symbol['toStringTag'],{'value':_0x4fa2a5(0x255)});let _0x18fed6=_0x4fa2a5(0x1b0),_0x474e89={};function _0x178ce8(_0x437834){const _0x26f55b=_0x4fa2a5;return JSON[_0x26f55b(0x3be)](_0x437834)[_0x26f55b(0x208)];}function _0x1bbce0(_0x4a359f){'@babel/helpers - typeof';const _0x43d8f5=_0x4fa2a5;return _0x1bbce0=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x43d8f5(0x1f3)?function(_0x4abe6c){return typeof _0x4abe6c;}:function(_0xe2ae05){const _0x48cc20=_0x43d8f5;return _0xe2ae05&&typeof Symbol=='function'&&_0xe2ae05[_0x48cc20(0x383)]===Symbol&&_0xe2ae05!==Symbol[_0x48cc20(0x408)]?'symbol':typeof _0xe2ae05;},_0x1bbce0(_0x4a359f);}function _0x1c1f5b(_0x26bdb0,_0x36ed97){const _0xaa7475=_0x4fa2a5;if(_0x1bbce0(_0x26bdb0)!=_0xaa7475(0x221)||!_0x26bdb0)return _0x26bdb0;var _0x357b3f=_0x26bdb0[Symbol['toPrimitive']];if(_0x357b3f!==void 0x0){var _0x39f954=_0x357b3f['call'](_0x26bdb0,_0x36ed97||_0xaa7475(0x115));if(_0x1bbce0(_0x39f954)!=_0xaa7475(0x221))return _0x39f954;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x36ed97===_0xaa7475(0x265)?String:Number)(_0x26bdb0);}function _0x15a735(_0x36b884){const _0x34d550=_0x4fa2a5;var _0x2d8eca=_0x1c1f5b(_0x36b884,_0x34d550(0x265));return _0x1bbce0(_0x2d8eca)==_0x34d550(0x1f3)?_0x2d8eca:_0x2d8eca+'';}function _0x5aacdf(_0x132579,_0x4e4439,_0xc120e){const _0x5c814f=_0x4fa2a5;return(_0x4e4439=_0x15a735(_0x4e4439))in _0x132579?Object[_0x5c814f(0x3b2)](_0x132579,_0x4e4439,{'value':_0xc120e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x132579[_0x4e4439]=_0xc120e,_0x132579;}let _0x5eefb9=function(_0x5ad0ba){const _0x1b6426=_0x4fa2a5;return _0x5ad0ba['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5ad0ba[_0x1b6426(0x2d0)]=_0x1b6426(0x2d0),_0x5ad0ba[_0x1b6426(0x414)]=_0x1b6426(0x414),_0x5ad0ba['CONFLICT_CACHE_CLEAR_FAILED']='CONFLICT_CACHE_CLEAR_FAILED',_0x5ad0ba[_0x1b6426(0x34e)]=_0x1b6426(0x34e),_0x5ad0ba[_0x1b6426(0x145)]=_0x1b6426(0x145),_0x5ad0ba[_0x1b6426(0x183)]=_0x1b6426(0x183),_0x5ad0ba[_0x1b6426(0x2bc)]=_0x1b6426(0x2bc),_0x5ad0ba[_0x1b6426(0x289)]=_0x1b6426(0x289),_0x5ad0ba[_0x1b6426(0x360)]='SUBMIT_CHANGESET_TIMEOUT',_0x5ad0ba;}({});var _0x483ee6=class{constructor(){const _0x422065=_0x4fa2a5;_0x5aacdf(this,_0x422065(0x13f),new _0x450705[(_0x422065(0x155))]()),_0x5aacdf(this,_0x422065(0x1eb),this['_event$'][_0x422065(0x343)]());}[_0x4fa2a5(0x2cf)](_0x4ed385){const _0xbf9832=_0x4fa2a5;this['_event$'][_0xbf9832(0x163)](_0x4ed385);}},_0x49219e=class{constructor(){const _0x3d51d7=_0x4fa2a5;_0x5aacdf(this,_0x3d51d7(0x393),new _0x450705[(_0x3d51d7(0x155))]()),_0x5aacdf(this,_0x3d51d7(0x247),this[_0x3d51d7(0x393)]['asObservable']());}['onCommentUpdate'](_0x533e60){const _0x3c7f3c=_0x4fa2a5;this[_0x3c7f3c(0x393)][_0x3c7f3c(0x163)](_0x533e60);}};function _0x374c65(_0x1e9ff1,_0x2193ba){return function(_0x1dece3,_0x36acbe){_0x2193ba(_0x1dece3,_0x36acbe,_0x1e9ff1);};}function _0x13514e(_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2){const _0x2fb153=_0x4fa2a5;var _0x3e74df=arguments[_0x2fb153(0x208)],_0xa11729=_0x3e74df<0x3?_0x13546f:_0x49bcc2===null?_0x49bcc2=Object[_0x2fb153(0x1cb)](_0x13546f,_0x1ffdf5):_0x49bcc2,_0x137ec0;if(typeof Reflect==_0x2fb153(0x221)&&typeof Reflect[_0x2fb153(0x294)]==_0x2fb153(0x36a))_0xa11729=Reflect[_0x2fb153(0x294)](_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2);else{for(var _0x103d96=_0x65371e[_0x2fb153(0x208)]-0x1;_0x103d96>=0x0;_0x103d96--)(_0x137ec0=_0x65371e[_0x103d96])&&(_0xa11729=(_0x3e74df<0x3?_0x137ec0(_0xa11729):_0x3e74df>0x3?_0x137ec0(_0x13546f,_0x1ffdf5,_0xa11729):_0x137ec0(_0x13546f,_0x1ffdf5))||_0xa11729);}return _0x3e74df>0x3&&_0xa11729&&Object['defineProperty'](_0x13546f,_0x1ffdf5,_0xa11729),_0xa11729;}let _0x54117e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x78809c){const _0x364a7c=_0x4fa2a5;super(),this[_0x364a7c(0x3f3)]=_0x78809c,_0x5aacdf(this,'_roomMembers',new Map()),_0x5aacdf(this,'_roomCreated$',new _0x450705[(_0x364a7c(0x155))]()),this[_0x364a7c(0x413)]((0x0,_0x450705[_0x364a7c(0x298)])(this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0xb4)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x50011a=>_0x50011a[_0x364a7c(0xed)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x237)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x589dcf=>_0x589dcf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)]['UNIVER_BOARD'])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x3d38cf=>_0x3d38cf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x146)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x18560c=>_0x18560c['getUnitId']())))[_0x364a7c(0x252)](_0x45bb92=>this[_0x364a7c(0x10f)](_0x45bb92)));}[_0x4fa2a5(0x26d)](_0x3acdb1){const _0x3a65f1=_0x4fa2a5;return this[_0x3a65f1(0x20e)][_0x3a65f1(0x1de)](_0x3acdb1)?(0x0,_0x450705['of'])(this[_0x3a65f1(0x20e)][_0x3a65f1(0x2c0)](_0x3acdb1)):this[_0x3a65f1(0x34b)][_0x3a65f1(0x192)]((0x0,_0x223d83['map'])(_0xdcb2c5=>{const _0x19efd9=_0x3a65f1;if(_0xdcb2c5===_0x3acdb1)return this['_roomMembers'][_0x19efd9(0x2c0)](_0xdcb2c5);}));}[_0x4fa2a5(0x31a)](_0xbd486f,_0x3bb74d){const _0x47f17b=_0x4fa2a5;let _0xac009=this['_roomMembers'][_0x47f17b(0x2c0)](_0xbd486f);_0xac009||(_0xac009=new _0x5109ef(),this[_0x47f17b(0x20e)][_0x47f17b(0x10c)](_0xbd486f,_0xac009),this[_0x47f17b(0x34b)]['next'](_0xbd486f)),_0xac009[_0x47f17b(0x31a)](_0x3bb74d);}[_0x4fa2a5(0x2e3)](_0x2e7840,_0x2b0188){const _0xc4d8bb=_0x4fa2a5;let _0x355e36=this[_0xc4d8bb(0x20e)][_0xc4d8bb(0x2c0)](_0x2e7840);_0x355e36&&_0x355e36['removeMember'](_0x2b0188);}[_0x4fa2a5(0x379)](_0x150014){const _0x5df899=_0x4fa2a5;return this[_0x5df899(0x20e)][_0x5df899(0x2c0)](_0x150014);}[_0x4fa2a5(0x251)](_0x5623c0,_0x4264a4){const _0x5964ae=_0x4fa2a5;let _0x42eee2=this['_roomMembers'][_0x5964ae(0x2c0)](_0x5623c0);if(_0x42eee2)return _0x42eee2[_0x5964ae(0x251)](_0x4264a4);}[_0x4fa2a5(0x10f)](_0x1d4ba9){const _0x3d8170=_0x4fa2a5;let _0x4d6961=this[_0x3d8170(0x20e)][_0x3d8170(0x2c0)](_0x1d4ba9);_0x4d6961&&(_0x4d6961[_0x3d8170(0x3b4)](),this[_0x3d8170(0x20e)][_0x3d8170(0x3ae)](_0x1d4ba9));}[_0x4fa2a5(0x3b4)](){const _0x4e468a=_0x4fa2a5;this[_0x4e468a(0x20e)]['forEach'](_0x29ca23=>_0x29ca23[_0x4e468a(0x3b4)]()),this['_roomMembers'][_0x4e468a(0x2f9)](),this[_0x4e468a(0x34b)][_0x4e468a(0x410)]();}};_0x54117e=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)])],_0x54117e);var _0x5109ef=class extends _0x433f65['Disposable']{constructor(..._0x3808c8){const _0x345d8d=_0x4fa2a5;super(..._0x3808c8),_0x5aacdf(this,'_members',new Map()),_0x5aacdf(this,'_members$',new _0x450705[(_0x345d8d(0x1f8))](this[_0x345d8d(0x30e)])),_0x5aacdf(this,_0x345d8d(0x1c2),this[_0x345d8d(0x39d)]['asObservable']());}['dispose'](){const _0x2d1d48=_0x4fa2a5;this[_0x2d1d48(0x30e)][_0x2d1d48(0x2f9)](),this[_0x2d1d48(0x39d)]['complete']();}[_0x4fa2a5(0x31a)](_0xad6860){const _0x355691=_0x4fa2a5;this[_0x355691(0x30e)][_0x355691(0x10c)](_0xad6860[_0x355691(0x38b)],_0xad6860),this['_emitMembers']();}[_0x4fa2a5(0x2e3)](_0x120759){const _0x4731c6=_0x4fa2a5;this['_members'][_0x4731c6(0x3ae)](_0x120759),this[_0x4731c6(0x331)]();}[_0x4fa2a5(0x251)](_0x171b4e){const _0xf8d2dc=_0x4fa2a5;return this[_0xf8d2dc(0x30e)]['get'](_0x171b4e);}[_0x4fa2a5(0x287)](){const _0x44d30c=_0x4fa2a5;return Array[_0x44d30c(0x33e)](this[_0x44d30c(0x30e)][_0x44d30c(0x168)]());}['_emitMembers'](){const _0x11c440=_0x4fa2a5;this[_0x11c440(0x39d)]['next'](this[_0x11c440(0x30e)]);}};function _0x761a72(_0x1b293f,_0x5b75d1){const _0x3beb8f=_0x4fa2a5;if(_0x2beb81(_0x1b293f))return _0x5b75d1;if(_0x5b75d1[_0x3beb8f(0x130)]===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x22d)]){let _0x1cdf32=_0x364415(_0x1b293f),_0x3a0a65=_0x5b75d1;return{..._0x3a0a65,'data':{..._0x3a0a65[_0x3beb8f(0x2c7)],'unitID':_0x1b293f['target'][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0x3a0a65[_0x3beb8f(0x2c7)]['unitType'],'changeset':_0x1cdf32['toRemote'](_0x3a0a65['data'][_0x3beb8f(0xf9)],_0x116dcb(_0x1b293f))}};}if(_0x5b75d1['eventID']===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x1e1)]){let _0xe52ed6=_0x5b75d1;return{..._0xe52ed6,'data':{..._0xe52ed6['data'],'unitID':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0xe52ed6[_0x3beb8f(0x2c7)][_0x3beb8f(0x10a)]}};}return _0x5b75d1;}function _0x450cf8(_0x5bec97,_0x3736d9){const _0x59b73d=_0x4fa2a5;if(_0x2beb81(_0x5bec97))return[_0x3736d9];switch(_0x3736d9['eventID']){case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x24f)]:return[_0x1d2b0e(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x2ec)]:return[_0x270e93(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)]['CHANGESET_SHOULD_RETRY']:return[_0x2b6d9f(_0x5bec97,_0x3736d9)];default:return[_0x3736d9];}}function _0x2beb81(_0x53bfc4){const _0x49b4d7=_0x4fa2a5;return _0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x13a)]==null&&_0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x229)]===_0x53bfc4[_0x49b4d7(0x1d3)]&&!_0x53bfc4['changeset'];}function _0x1d2b0e(_0x30cce4,_0x4b182f){const _0x54c378=_0x4fa2a5;return{..._0x4b182f,'data':(0x0,_0x3a5734[_0x54c378(0x26e)])(_0x4fae39(_0x30cce4,(0x0,_0x3a5734[_0x54c378(0x111)])(_0x4b182f[_0x54c378(0x2c7)])))};}function _0x2b6d9f(_0x134169,_0x27f523){return{..._0x27f523,'data':_0x4fae39(_0x134169,_0x27f523['data'])};}function _0x270e93(_0x443d70,_0x4ce018){const _0x182655=_0x4fa2a5;let _0x4d3da0=_0x4ce018[_0x182655(0x2c7)];return{..._0x4ce018,'data':{..._0x4d3da0,'changesets':_0x4d3da0[_0x182655(0x386)]['map'](_0x1f3e06=>(0x0,_0x3a5734[_0x182655(0x26e)])(_0x4fae39(_0x443d70,(0x0,_0x3a5734[_0x182655(0x111)])(_0x1f3e06))))}};}function _0x4fae39(_0x347cd2,_0x3a9041){const _0x51d7e5=_0x4fa2a5;return _0x364415(_0x347cd2)[_0x51d7e5(0x263)](_0x3a9041,_0x116dcb(_0x347cd2));}function _0x364415(_0x2d48a2){const _0x289424=_0x4fa2a5;if(!_0x2d48a2[_0x289424(0xf9)])throw Error(_0x289424(0x1f9));return _0x2d48a2[_0x289424(0xf9)];}function _0x116dcb(_0x1db490){const _0x5b8fb5=_0x4fa2a5;return{'localUnitId':_0x1db490[_0x5b8fb5(0x1d3)],'unitType':_0x1db490[_0x5b8fb5(0x10a)],'target':_0x1db490['target']};}let _0x151b7d=function(_0x2b8311){const _0x18509f=_0x4fa2a5;return _0x2b8311[_0x2b8311[_0x18509f(0x392)]=0x0]=_0x18509f(0x392),_0x2b8311[_0x2b8311[_0x18509f(0x32d)]=0x1]='JOINING',_0x2b8311[_0x2b8311[_0x18509f(0x2b6)]=0x2]='OFFLINE',_0x2b8311[_0x2b8311[_0x18509f(0xfb)]=0x3]='ONLINE',_0x2b8311;}({}),_0x2c41c2={[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x13d)]]:_0x4fa2a5(0x404),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x3e7)]]:_0x4fa2a5(0x245),[_0x4ed0d4[_0x4fa2a5(0x27a)]['JOIN_ROOM_NOT_EXISTS']]:_0x4fa2a5(0x419),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x1c5)]]:_0x4fa2a5(0x3b6),[_0x4ed0d4[_0x4fa2a5(0x27a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4fa2a5(0x346)},_0x45e291=class extends _0x433f65[_0x4fa2a5(0x24b)]{get['sessionStatus'](){const _0x40d3fe=_0x4fa2a5;return this[_0x40d3fe(0x3cb)]['getValue']();}constructor(_0x3657f7,_0x1ab513,_0x116dcf,_0x3779a2,_0x2a932c,_0x2fc035,_0x119940,_0x39ca04){const _0x4f9419=_0x4fa2a5;super(),this[_0x4f9419(0x37d)]=_0x3657f7,this[_0x4f9419(0x314)]=_0x116dcf,this[_0x4f9419(0x1a9)]=_0x3779a2,this[_0x4f9419(0x31f)]=_0x2a932c,this[_0x4f9419(0x385)]=_0x2fc035,this['_collaborationUIEventService']=_0x119940,this[_0x4f9419(0x2e8)]=_0x39ca04,_0x5aacdf(this,_0x4f9419(0x3cb),new _0x450705[(_0x4f9419(0x1f8))](0x0)),_0x5aacdf(this,_0x4f9419(0x199),this[_0x4f9419(0x3cb)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x13f),new _0x450705[(_0x4f9419(0x155))]()),_0x5aacdf(this,'event$',this[_0x4f9419(0x13f)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x313),void 0x0),_0x5aacdf(this,_0x4f9419(0x20f),void 0x0),_0x5aacdf(this,'_collaborationTimeoutTimer',void 0x0),_0x5aacdf(this,_0x4f9419(0x230),!0x1),_0x5aacdf(this,_0x4f9419(0x27b),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x1ab513['pipe']((0x0,_0x450705[_0x4f9419(0x1c3)])(this[_0x4f9419(0xc4)]))[_0x4f9419(0x252)](_0x4b2096=>{const _0x2aeb7f=_0x4f9419;if(_0x4b2096!==void 0x0){if(this[_0x2aeb7f(0x313)]=_0x4b2096,_0x4b2096)this[_0x2aeb7f(0x3d5)](_0x4b2096),this[_0x2aeb7f(0x20f)]=_0x4b2096[_0x2aeb7f(0x197)]['subscribe'](_0x1989b2=>{const _0x431274=_0x2aeb7f;_0x1989b2[_0x431274(0x231)]===this[_0x431274(0x37d)][_0x431274(0x24c)][_0x431274(0x229)]&&this[_0x431274(0x14c)](_0x1989b2);});else{var _0x20eaa9;this[_0x2aeb7f(0xa2)](),this['_sessionStatus$'][_0x2aeb7f(0x163)](0x2),(_0x20eaa9=this[_0x2aeb7f(0x20f)])==null||_0x20eaa9[_0x2aeb7f(0x3ba)](),this[_0x2aeb7f(0x20f)]=null;}}});}[_0x4fa2a5(0x250)](){const _0x457764=_0x4fa2a5;var _0x49d26d;return((_0x49d26d=this['_socket'])==null?void 0x0:_0x49d26d[_0x457764(0x38b)])??null;}[_0x4fa2a5(0x3b4)](){const _0x3113c6=_0x4fa2a5;super[_0x3113c6(0x3b4)](),this['close'](),this[_0x3113c6(0xc4)]['next'](),this[_0x3113c6(0xc4)]['complete']();}[_0x4fa2a5(0x17d)](){const _0x11d444=_0x4fa2a5;var _0x5da65e;this[_0x11d444(0xa2)](),(_0x5da65e=this['_socket'])==null||_0x5da65e['send']({'cmd':_0x4ed0d4[_0x11d444(0x35a)][_0x11d444(0xc9)],'data':{'roomID':this['_identity'][_0x11d444(0x24c)]['unitId']}}),this[_0x11d444(0x13f)][_0x11d444(0x410)](),this[_0x11d444(0x3cb)]['complete']();}[_0x4fa2a5(0x14c)](_0x519431){const _0xdf7c04=_0x4fa2a5;_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x22e)]?this['_onJoinRoomEvent'](_0x519431):_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x1f4)]&&this[_0xdf7c04(0x3e9)](_0x519431);}['_joinRoom'](_0x409ad6){const _0x305856=_0x4fa2a5;this[_0x305856(0x3cb)][_0x305856(0x163)](0x1),_0x409ad6[_0x305856(0x402)]({'cmd':_0x4ed0d4[_0x305856(0x35a)][_0x305856(0x22e)],'routeKey':this[_0x305856(0x37d)][_0x305856(0x24c)][_0x305856(0x229)],'routeType':'','data':{'rooms':[{'roomID':this[_0x305856(0x37d)]['target'][_0x305856(0x229)]}]}});}[_0x4fa2a5(0x194)](_0x57b64c){const _0x4307e6=_0x4fa2a5;var _0x4c9344;if(_0x57b64c['code']in _0x2c41c2){this[_0x4307e6(0x347)]['emitEvent']({'id':_0x4307e6(0x183),'data':_0x2c41c2[_0x57b64c[_0x4307e6(0xb6)]]}),this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x2);return;}this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x3);let _0x247502=(_0x4c9344=_0x57b64c['data']['roomInfos'][this[_0x4307e6(0x37d)][_0x4307e6(0x24c)][_0x4307e6(0x229)]])==null?void 0x0:_0x4c9344[_0x4307e6(0xbb)];_0x247502&&_0x247502[_0x4307e6(0x1d2)](_0x4ebcc0=>this[_0x4307e6(0x31f)][_0x4307e6(0x31a)](this['_identity'][_0x4307e6(0x1d3)],_0x4ebcc0));}[_0x4fa2a5(0x3e9)](_0x37a88e){const _0x4d0661=_0x4fa2a5;try{let _0xfe344=_0x450cf8(this['_identity'],_0x37a88e[_0x4d0661(0x2c7)]);for(let _0xef6fa6 of _0xfe344)switch(_0xef6fa6[_0x4d0661(0x130)]){case _0x3a5734['CollaborationEvent'][_0x4d0661(0xce)]:this['_onUserJoin'](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x1d9)]:this[_0x4d0661(0xfc)](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734['CollaborationEvent'][_0x4d0661(0x370)]:case _0x3a5734[_0x4d0661(0xec)]['CHANGESET_SHOULD_RETRY']:this[_0x4d0661(0x122)](),this['_clearCollaborationTimeoutTimer'](),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x3f9)]:this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x4d0661(0x3c2)+JSON[_0x4d0661(0x3be)](_0xef6fa6)),this['_event$'][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x128)]:this['_commentService'][_0x4d0661(0x3ad)](_0xef6fa6[_0x4d0661(0x2c7)]),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;default:this['_event$'][_0x4d0661(0x163)](_0xef6fa6);}}catch(_0x394c71){this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x394c71,_0x37a88e);}}[_0x4fa2a5(0x25a)](_0x8ae9a2){const _0x3756a5=_0x4fa2a5;this[_0x3756a5(0x31f)][_0x3756a5(0x31a)](this[_0x3756a5(0x37d)][_0x3756a5(0x1d3)],_0x8ae9a2[_0x3756a5(0x2c7)]);}['_onUserLeave'](_0x5323ee){const _0x1afc2c=_0x4fa2a5;this['_memberService']['removeMember'](this[_0x1afc2c(0x37d)][_0x1afc2c(0x1d3)],_0x5323ee[_0x1afc2c(0x2c7)][_0x1afc2c(0x38b)]);}async[_0x4fa2a5(0x402)](_0x30e30c,_0x59e224){const _0x55801d=_0x4fa2a5;if(this[_0x55801d(0xb9)]!==0x3||!this[_0x55801d(0x313)])throw Error(_0x55801d(0x3a4));try{let _0x35e72d=_0x761a72(this[_0x55801d(0x37d)],_0x30e30c);_0x35e72d[_0x55801d(0x130)]===_0x3a5734[_0x55801d(0xec)][_0x55801d(0x22d)]&&(this[_0x55801d(0x25c)](),this['_startTelemetryCollaborationNewChangeset'](_0x35e72d)),this[_0x55801d(0x313)][_0x55801d(0x402)]({'cmd':_0x4ed0d4[_0x55801d(0x35a)]['INGEST'],'routeKey':this[_0x55801d(0x37d)][_0x55801d(0x24c)][_0x55801d(0x229)],'routeType':'','data':_0x35e72d});}catch(_0x31b2f5){this[_0x55801d(0x314)][_0x55801d(0x187)](_0x31b2f5);}}[_0x4fa2a5(0x25c)](){const _0x484f8e=_0x4fa2a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x5b6d49=_0x5846;this[_0x5b6d49(0x2d7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x484f8e(0x107))??0x4e20);}[_0x4fa2a5(0x19c)](){const _0x35dd3e=_0x4fa2a5;this[_0x35dd3e(0x2d7)]&&=(clearTimeout(this[_0x35dd3e(0x2d7)]),null);}[_0x4fa2a5(0x3af)](_0xb09fe1){const _0x3eec05=_0x4fa2a5;if(!this['_shouldReportTelemetry'])return;let {data:_0x3c2ce3}=_0xb09fe1,{unitID:_0x33dd1c,changeset:_0x37d2f8}=_0x3c2ce3,{mutations:_0x59a6db,type:_0x4a3324}=_0x37d2f8;this[_0x3eec05(0x27b)]={'unitId':_0x33dd1c,'type':_0x4a3324,'startTime':performance[_0x3eec05(0x3f4)](),'stopTime':0x0,'duration':0x0,'size':_0x178ce8(_0x59a6db)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2872ab=_0x4fa2a5;if(this[_0x2872ab(0x230)]){if(!this['_telemetryInfo']){this[_0x2872ab(0x314)][_0x2872ab(0x187)](_0x2872ab(0x21e),_0x2872ab(0x39c));return;}this['_telemetryInfo'][_0x2872ab(0x241)]=performance[_0x2872ab(0x3f4)](),this[_0x2872ab(0x27b)][_0x2872ab(0x411)]=this['_telemetryInfo'][_0x2872ab(0x241)]-this[_0x2872ab(0x27b)][_0x2872ab(0x2fa)],this[_0x2872ab(0x2e8)][_0x2872ab(0x113)](_0x2872ab(0x1e0),this['_telemetryInfo']),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3987dd=_0x4fa2a5;this[_0x3987dd(0x27b)]=null;}};_0x45e291=_0x13514e([_0x374c65(0x2,_0x433f65['ILogService']),_0x374c65(0x3,_0x433f65['IConfigService']),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x54117e)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x49219e)),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x133d94['ITelemetryService']))],_0x45e291);let _0x471235=(0x0,_0x433f65[_0x4fa2a5(0xad)])('collaboration-client.local-cache-service');function _0x12d23(_0x59377c){return'unit-cache-'+_0x59377c;}function _0x2552c9(_0x16abab){const _0x4c626d=_0x4fa2a5;let {unitID:_0x128dd4,mutations:_0x3bc2d3}=_0x16abab;return{'unitId':_0x128dd4,'subUnitId':_0x3bc2d3[_0x4c626d(0x208)]>0x0?_0x3bc2d3[0x0][_0x4c626d(0x206)][_0x4c626d(0x110)]:null};}let _0x41b88d=class{constructor(_0x2ca3e4,_0x389ef8,_0x4309ff){const _0x5e68c0=_0x4fa2a5;this['_injector']=_0x2ca3e4,this['_transformService']=_0x389ef8,this[_0x5e68c0(0x175)]=_0x4309ff;}['transformSelections'](_0x420aac){const _0x374f75=_0x4fa2a5;var _0xd2f423,_0x48cfe1;let _0x536a9d=this['_injector'][_0x374f75(0x2c0)](_0x6a2ac6[_0x374f75(0x25e)]),{unitId:_0x467184,subUnitId:_0x4c1554}=_0x2552c9(_0x420aac),_0x4f84b4=_0x536a9d==null?void 0x0:_0x536a9d[_0x374f75(0x2eb)](_0x467184)['getCurrentSelections'](),_0xae9448=(_0xd2f423=this[_0x374f75(0x175)][_0x374f75(0x2df)](_0x467184))==null||(_0xd2f423=_0xd2f423[_0x374f75(0xfd)]())==null?void 0x0:_0xd2f423[_0x374f75(0x339)]();if(_0x4f84b4[_0x374f75(0x208)]===0x0||!_0x467184||!_0x4c1554)return;let _0x335cf0=[{'id':_0x6a2ac6[_0x374f75(0x29e)]['id'],'params':{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x433f65[_0x374f75(0x23d)][_0x374f75(0x30f)](_0x4f84b4)}}],_0x4bb417=this[_0x374f75(0x324)]['transformMutationsWithChangeset'](_0x420aac,_0x335cf0);if(!(0x0,_0x3a5734[_0x374f75(0xe3)])(_0x4bb417))throw _0x4bb417[_0x374f75(0x187)];let _0x2298c1=(_0x48cfe1=_0x4bb417[_0x374f75(0x259)][0x0])==null||(_0x48cfe1=_0x48cfe1['params'])==null?void 0x0:_0x48cfe1['selections'];if(Array[_0x374f75(0x1f7)](_0x2298c1)&&_0x2298c1[_0x374f75(0x208)]){if(_0x2298c1[_0x374f75(0x208)]===_0x335cf0[0x0]['params'][_0x374f75(0x159)]['length']&&_0x2298c1[_0x374f75(0x139)]((_0x6f4b48,_0x507abd)=>_0x433f65[_0x374f75(0x2d2)]['equals'](_0x6f4b48[_0x374f75(0xcb)],_0x335cf0[0x0][_0x374f75(0x206)][_0x374f75(0x159)][_0x507abd][_0x374f75(0xcb)])))return;this[_0x374f75(0x40f)][_0x374f75(0x2c0)](_0x433f65[_0x374f75(0x16d)])[_0x374f75(0x2bd)](_0x6a2ac6[_0x374f75(0x29e)]['id'],{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x2298c1});}}};_0x41b88d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x39b)])],_0x41b88d);let _0x4aaa76=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x31d)),_0x1af2a5=function(_0x52cdd0){const _0x2584c3=_0x4fa2a5;return _0x52cdd0[_0x52cdd0[_0x2584c3(0x1cc)]=0x0]=_0x2584c3(0x1cc),_0x52cdd0[_0x52cdd0['OTHER_CLIENTS_EDITING']=0x1]=_0x2584c3(0x409),_0x52cdd0;}({});function _0x2786b9(_0x1e2017){const _0x93d29c=_0x4fa2a5;var _0x42ec96;return!!((_0x42ec96=_0x1e2017[_0x93d29c(0x206)])!=null&&_0x42ec96['__splitChunk__']);}let _0x2d94c0=new Set([_0x6a2ac6[_0x4fa2a5(0x13b)]['id']]),_0xebbaea=new Set([_0x255f6e[_0x4fa2a5(0x3f8)]['id'],_0x255f6e[_0x4fa2a5(0x371)]['id'],_0x255f6e[_0x4fa2a5(0xf7)]['id'],_0x255f6e[_0x4fa2a5(0x167)]['id']]);function _0x23a530(_0x1d6bfd,_0x3fbe2f=_0x2d94c0){const _0x347fe9=_0x4fa2a5;let _0x54c855=[];for(let _0x4ef12b of _0x1d6bfd){if(_0x3fbe2f['has'](_0x4ef12b['id'])){if(_0x54c855[_0x347fe9(0x208)]>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}if(_0x2786b9(_0x4ef12b)){if(_0x54c855['length']>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}_0x54c855[_0x347fe9(0x227)](_0x4ef12b);}return _0x54c855;}function _0x3b283c(_0x4c71fa,_0x353c4e,_0x5e398d,_0x38d08f,_0x2b48ac){const _0x377a77=_0x4fa2a5;let _0x42e379=_0x23a530(_0x4c71fa),_0x240e76=_0x2b48ac[_0x377a77(0x3b3)](),_0x367ccb=(_0x240e76==null?void 0x0:_0x240e76['userID'])??_0x377a77(0x281),_0x21c39e=(_0x240e76==null?void 0x0:_0x240e76[_0x377a77(0x38b)])??'unknown';return{'changeset':{'unitID':_0x353c4e,'type':(0x0,_0x3a5734[_0x377a77(0x3fb)])(_0x5e398d[_0x377a77(0x3c3)](_0x353c4e)),'baseRev':_0x38d08f['getCurrentRevOfUnit'](_0x353c4e),'revision':0x0,'userID':_0x367ccb,'memberID':_0x21c39e,'mutations':_0x42e379},'pendingMutations':_0x4c71fa[_0x377a77(0x1b2)](_0x42e379[_0x377a77(0x208)])};}let _0x5b1810=_0x3b283c;function _0x1cafbd(_0x2659f5,_0x331d2f,_0x360bc8,_0x19c09b,_0xe06320){const _0x1f2355=_0x4fa2a5;let _0x1f51a6=_0x23a530(_0x2659f5,_0xebbaea),_0x5586bd=_0xe06320['getCurrentUser'](),_0x11584d=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x161)])??_0x1f2355(0x281),_0x2da08f=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x38b)])??_0x1f2355(0x281);return{'changeset':{'unitID':_0x331d2f,'type':(0x0,_0x3a5734[_0x1f2355(0x3fb)])(_0x360bc8[_0x1f2355(0x3c3)](_0x331d2f)),'baseRev':_0x19c09b[_0x1f2355(0x36f)](_0x331d2f),'revision':0x0,'userID':_0x11584d,'memberID':_0x2da08f,'mutations':_0x1f51a6},'pendingMutations':_0x2659f5[_0x1f2355(0x1b2)](_0x1f51a6[_0x1f2355(0x208)])};}function _0x33f309(_0x97a916,_0x267b92,_0x563ba6,_0x2bd6d6,_0x34e6b5){const _0x258b69=_0x4fa2a5;let _0xd47a59=_0x97a916[_0x258b69(0xa0)]((_0x52799c,_0x4295db)=>{const _0x4b3b40=_0x258b69;let _0x4ced80=_0x52799c[_0x52799c[_0x4b3b40(0x208)]-0x1],{id:_0x3f51be}=_0x4ced80??{},{id:_0x273da5,type:_0xa25d0d}=_0x4295db,_0x183dd9=_0x4295db[_0x4b3b40(0x206)];if(_0x3f51be&&_0x3f51be!==_0x273da5)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3f51be+_0x4b3b40(0x296)+_0x273da5+'.');if(!_0x4ced80)return[{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9['unitId'],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];let _0x3b0c8c=_0x4ced80[_0x4b3b40(0x206)];return _0x1f406a(_0x3b0c8c,_0x183dd9)?[..._0x52799c[_0x4b3b40(0x1b2)](0x0,-0x1),{..._0x4ced80,'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x433f65[_0x4b3b40(0x152)][_0x4b3b40(0x357)](_0x3b0c8c[_0x4b3b40(0x30a)],_0x183dd9[_0x4b3b40(0x30a)])}}]:[..._0x52799c,{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];},[]),_0x20fc7d=_0x34e6b5[_0x258b69(0x3b3)](),_0x7fdb8b=(_0x20fc7d==null?void 0x0:_0x20fc7d[_0x258b69(0x161)])??_0x258b69(0x281),_0x35a75d=(_0x20fc7d==null?void 0x0:_0x20fc7d['memberID'])??_0x258b69(0x281);return{'changeset':{'unitID':_0x267b92,'type':(0x0,_0x3a5734[_0x258b69(0x3fb)])(_0x563ba6[_0x258b69(0x3c3)](_0x267b92)),'baseRev':_0x2bd6d6[_0x258b69(0x36f)](_0x267b92),'revision':0x0,'userID':_0x7fdb8b,'memberID':_0x35a75d,'mutations':_0xd47a59},'pendingMutations':_0x97a916[_0x258b69(0x1b2)](_0x97a916['length'])};}function _0x1f406a(_0x4d70e5,_0x44700a){const _0x2bf64c=_0x4fa2a5;return!_0x11f43a(_0x4d70e5)&&!_0x11f43a(_0x44700a)&&_0x1979fd(_0x4d70e5[_0x2bf64c(0x30a)],_0x44700a[_0x2bf64c(0x30a)]);}function _0x11f43a(_0x12da7b){const _0x547dc8=_0x4fa2a5;return _0x12da7b[_0x547dc8(0x1a6)]!==void 0x0;}function _0x1979fd(_0x2f04f1,_0x3271e4){return _0x297b4a(_0x2f04f1)&&_0x297b4a(_0x3271e4)&&!_0x276fdb(_0x2f04f1)&&!_0x276fdb(_0x3271e4)&&!_0x26c8a3(_0x2f04f1)&&!_0x26c8a3(_0x3271e4);}function _0x297b4a(_0x55088a){const _0x1bd725=_0x4fa2a5;return _0x5c43bb(_0x55088a)[_0x1bd725(0x2b5)](_0x306220=>_0x3032f7(_0x306220)&&_0x306220['et']==='text-x');}function _0x26c8a3(_0x3fcf96){const _0x2169f3=_0x4fa2a5;return _0x5c43bb(_0x3fcf96)[_0x2169f3(0x2b5)](_0x27eaf7=>Array[_0x2169f3(0x1f7)](_0x27eaf7)||typeof _0x27eaf7==_0x2169f3(0x265)||typeof _0x27eaf7==_0x2169f3(0x374));}function _0x276fdb(_0x484a4d){const _0x593333=_0x4fa2a5;return _0x5c43bb(_0x484a4d)[_0x593333(0x2b5)](_0x32c705=>!_0x3032f7(_0x32c705)||_0x32c705['et']!==_0x593333(0x32f)||!Array[_0x593333(0x1f7)](_0x32c705['e'])?!0x1:_0x32c705['e'][_0x593333(0x2b5)](_0xe48d47=>!_0x3032f7(_0xe48d47)||!_0x3032f7(_0xe48d47['body'])?!0x1:Object[_0x593333(0x408)]['hasOwnProperty'][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'tables')||Object[_0x593333(0x408)][_0x593333(0x3a0)]['call'](_0xe48d47[_0x593333(0x280)],_0x593333(0x2db))||Object[_0x593333(0x408)][_0x593333(0x3a0)][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'blockRanges')));}function _0x5c43bb(_0x2b7cbb){const _0x296b0c=_0x4fa2a5;if(!Array[_0x296b0c(0x1f7)](_0x2b7cbb))return[];let _0x1f8d97=_0x2b7cbb['includes'](_0x296b0c(0x280))?_0x2b7cbb:_0x2b7cbb[_0x296b0c(0x101)](_0x4c9cca=>Array['isArray'](_0x4c9cca)&&_0x4c9cca[_0x296b0c(0x3ce)](_0x296b0c(0x280)));if(!Array['isArray'](_0x1f8d97))return[];let _0x2eade3=_0x1f8d97['indexOf']('body');return _0x2eade3===-0x1?[]:_0x1f8d97[_0x296b0c(0x1b2)](_0x2eade3+0x1);}function _0x3032f7(_0x4933aa){const _0x4c8900=_0x4fa2a5;return typeof _0x4933aa==_0x4c8900(0x221)&&!!_0x4933aa&&!Array[_0x4c8900(0x1f7)](_0x4933aa);}function _0x3e6378(_0x490abc,_0x9d61dd){const _0x41b0e9=_0x4fa2a5;let _0x222ff5=new _0x450705[(_0x41b0e9(0x337))](0x1);return setTimeout(()=>_0x222ff5['next'](_0x9d61dd),_0x490abc),_0x222ff5[_0x41b0e9(0x343)]()[_0x41b0e9(0x192)]((0x0,_0x450705[_0x41b0e9(0x3b1)])(0x1));}var _0x12ed9d,_0x2acb98,_0x413c1b;let _0x34aefb=function(_0x408003){const _0x5de86b=_0x4fa2a5;return _0x408003['NOT_COLLAB']=_0x5de86b(0x234),_0x408003['SYNCED']='synced',_0x408003[_0x5de86b(0x2e6)]=_0x5de86b(0x23c),_0x408003['AWAITING']=_0x5de86b(0x253),_0x408003[_0x5de86b(0x2f2)]=_0x5de86b(0x3db),_0x408003[_0x5de86b(0x1d0)]='fetch_missing',_0x408003[_0x5de86b(0x34e)]='conflict',_0x408003[_0x5de86b(0x2b6)]=_0x5de86b(0x233),_0x408003;}({}),_0x206406=0x4e20,_0x49318e=0x2bf20;var _0xfca92=class{constructor(_0x2714b0,_0x253db1,_0x47fd72,_0x2eb151,_0x32755f,_0xe63ae1,_0x40a2f2,_0x347ca7,_0x4bb0d0){const _0x2c7862=_0x4fa2a5;this[_0x2c7862(0x210)]=_0x2714b0,this['type']=_0x253db1,this['_handler']=_0x32755f,this[_0x2c7862(0x1ee)]=_0xe63ae1,this[_0x2c7862(0x26f)]=_0x40a2f2,this['_revisionService']=_0x347ca7,this[_0x2c7862(0x304)]=_0x4bb0d0,_0x5aacdf(this,'_awaitingChangeset',null),_0x5aacdf(this,_0x2c7862(0x2e1),[]),this['_awaitingChangeset']=_0x47fd72,this[_0x2c7862(0x2e1)]=_0x2eb151;}[_0x4fa2a5(0x217)](_0x381eb5){const _0x563742=_0x4fa2a5;let _0x112cc8=this['_revisionService'][_0x563742(0x36f)](this[_0x563742(0x210)]);return _0x381eb5[_0x563742(0x3bf)]>_0x112cc8+0x1&&(this[_0x563742(0x384)][_0x563742(0xea)]({'from':_0x112cc8,'to':_0x381eb5[_0x563742(0x3bf)]-0x1}),!0x0);}[_0x4fa2a5(0x31b)](_0x319d0f){const _0x238ac6=_0x4fa2a5;this[_0x238ac6(0x26f)]['transformUndoRedo'](this[_0x238ac6(0x210)],_0x319d0f);}[_0x4fa2a5(0x311)](_0x2a047e){const _0x345ded=_0x4fa2a5;var _0x504690,_0x48253d;(_0x504690=(_0x48253d=this[_0x345ded(0x384)])['onTransformSelections'])==null||_0x504690[_0x345ded(0x2e5)](_0x48253d,_0x2a047e);}[_0x4fa2a5(0x236)](_0x2f5ada){const _0x363598=_0x4fa2a5;var _0x196dd6,_0x248540;return((_0x196dd6=(_0x248540=this[_0x363598(0x384)])[_0x363598(0xba)])==null?void 0x0:_0x196dd6['call'](_0x248540,_0x2f5ada))??null;}['_transformIMECache'](_0x2b12e7){const _0x3c57ed=_0x4fa2a5;var _0x526f7,_0x409d62;return(_0x526f7=(_0x409d62=this[_0x3c57ed(0x384)])['onTransformIME'])==null?void 0x0:_0x526f7[_0x3c57ed(0x2e5)](_0x409d62,_0x2b12e7);}[_0x4fa2a5(0x25d)](_0x1f6806){const _0x1e3e23=_0x4fa2a5;var _0x51be8b,_0x4c4ecc;return(_0x51be8b=(_0x4c4ecc=this[_0x1e3e23(0x384)])['onTransformState'])==null?void 0x0:_0x51be8b[_0x1e3e23(0x2e5)](_0x4c4ecc,_0x1f6806);}[_0x4fa2a5(0x1e3)](_0x38e3a1){const _0x1ad7fb=_0x4fa2a5;var _0x2685da,_0x3d695c;return((_0x2685da=(_0x3d695c=this[_0x1ad7fb(0x384)])[_0x1ad7fb(0x1af)])==null?void 0x0:_0x2685da[_0x1ad7fb(0x2e5)](_0x3d695c,_0x38e3a1))??_0x38e3a1;}[_0x4fa2a5(0x2f7)](_0x4e1478){const _0x13fc92=_0x4fa2a5;var _0x3c8036,_0x343a59;return((_0x3c8036=(_0x343a59=this[_0x13fc92(0x384)])[_0x13fc92(0x116)])==null?void 0x0:_0x3c8036[_0x13fc92(0x2e5)](_0x343a59,_0x4e1478))??_0x4e1478;}['_syncEditingCollabCursor'](_0x3089f5){const _0x2a6f21=_0x4fa2a5;if(this['type']===_0x433f65['UniverInstanceType'][_0x2a6f21(0x237)]){let {unitID:_0xdce07,mutations:_0x4b9876,memberID:_0x4d129c}=_0x3089f5,_0x48d4b9=_0x4b9876[_0x2a6f21(0x208)]>0x0?_0x4b9876[0x0]['params'][_0x2a6f21(0x1ba)]:[];if(Array[_0x2a6f21(0x1f7)](_0x48d4b9)&&_0x48d4b9['length']>0x0){var _0x1f238d,_0x46ba33;(_0x1f238d=(_0x46ba33=this['_handler'])[_0x2a6f21(0x256)])==null||_0x1f238d['call'](_0x46ba33,{'unitID':_0xdce07,'memberID':_0x4d129c,'textRanges':_0x48d4b9});}}}[_0x4fa2a5(0xc0)](){const _0x27007c=_0x4fa2a5;var _0x2121bf;(_0x2121bf=this[_0x27007c(0x304)])==null||_0x2121bf['updateOfflineData'](this[_0x27007c(0x210)],this[_0x27007c(0x3c6)],this[_0x27007c(0x2fe)],this[_0x27007c(0x2e1)]);}[_0x4fa2a5(0x28c)](){const _0x478fc6=_0x4fa2a5;return this[_0x478fc6(0x141)][_0x478fc6(0x36f)](this[_0x478fc6(0x210)]);}['_incrementRevisionNumber'](){const _0x247791=_0x4fa2a5;this[_0x247791(0x141)][_0x247791(0xf6)](this[_0x247791(0x210)]);}[_0x4fa2a5(0x19a)](_0x635a59){const _0x2068f4=_0x4fa2a5;let _0x4e855a=this[_0x2068f4(0x1e3)](_0x635a59);_0x4e855a=this['_transformRemoteChangesetByStateCache'](_0x4e855a);let _0x46f0d0=this[_0x2068f4(0x236)](_0x4e855a),_0x202910=(0x0,_0x433f65[_0x2068f4(0x1e5)])(_0x4e855a[_0x2068f4(0x2d5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x202910['result'])throw _0x46f0d0==null||_0x46f0d0[_0x2068f4(0x369)](),_0x202910['error']instanceof Error?_0x202910[_0x2068f4(0x187)]:Error(_0x202910[_0x2068f4(0x187)]??'[CollaborationState]:\x20apply\x20error!');_0x46f0d0==null||_0x46f0d0[_0x2068f4(0x38c)](),this[_0x2068f4(0x38e)](_0x4e855a),this[_0x2068f4(0x25d)](_0x4e855a),this[_0x2068f4(0x31b)](_0x635a59),this[_0x2068f4(0x311)](_0x4e855a),this[_0x2068f4(0x174)](_0x4e855a),this[_0x2068f4(0xb5)]();}};let _0x4f3cea=class extends _0xfca92{constructor(_0x558be1,_0x377a1f,_0xed7e54,_0x142012,_0x314cb9,_0x3c6b13,_0x5ac759,_0x28915c,_0x257d15,_0x54dd5f){const _0x1dc13c=_0x4fa2a5;super(_0x558be1,_0x377a1f,null,[],_0xed7e54,_0x5ac759,_0x3c6b13,_0x142012,_0x54dd5f),this[_0x1dc13c(0x40f)]=_0x314cb9,this[_0x1dc13c(0x314)]=_0x28915c,this[_0x1dc13c(0x324)]=_0x257d15,this['localCacheService']=_0x54dd5f,_0x5aacdf(this,'status',_0x1dc13c(0x1cd));}['appendMutation'](_0x30a24a){const _0x1017c4=_0x4fa2a5;let _0xfc7700=this[_0x1017c4(0x40f)][_0x1017c4(0x11d)](_0x2845dd,this[_0x1017c4(0x210)],this['type'],[_0x30a24a],this[_0x1017c4(0x384)]);return _0xfc7700[_0x1017c4(0x39a)](),_0xfc7700[_0x1017c4(0xc0)](),_0xfc7700;}[_0x4fa2a5(0x24a)](_0x5b5a75){const _0x4ca84c=_0x4fa2a5;if(this[_0x4ca84c(0x217)](_0x5b5a75))return this['_injector'][_0x4ca84c(0x11d)](_0x1ba45e,this[_0x4ca84c(0x210)],this[_0x4ca84c(0x3c6)],null,[],null,[_0x5b5a75],this['_handler']);try{let _0x41198b=this[_0x4ca84c(0x324)]['transformMutationsWithChangeset'](_0x5b5a75,[_0x3a5734['EmptyMutationInfo']]);if((0x0,_0x3a5734['isTransformMutationsWithChangesetSuccess'])(_0x41198b)){let {c1Prime:_0x39ec58}=_0x41198b;return this['_executeRemoteChangeset'](_0x39ec58),this;}throw _0x41198b[_0x4ca84c(0x187)];}catch(_0xaaf94c){return this['_logService'][_0x4ca84c(0x187)](_0xaaf94c),this[_0x4ca84c(0xae)](!0x1);}}['_onConflict'](_0x4c10d9){const _0x5bb5a8=_0x4fa2a5;return this[_0x5bb5a8(0x40f)]['createInstance'](_0x7d595b,this['unitID'],this[_0x5bb5a8(0x3c6)],null,[],this[_0x5bb5a8(0x384)],_0x4c10d9);}[_0x4fa2a5(0xb1)](_0x5d0fca){const _0x1fac14=_0x4fa2a5;if(_0x5d0fca[_0x1fac14(0x3bf)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4fa2a5(0x18d)](){const _0xd22d33=_0x4fa2a5;throw Error(_0xd22d33(0xd3));}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){const _0x44ff1a=_0x4fa2a5;return this[_0x44ff1a(0x40f)][_0x44ff1a(0x11d)](_0x5a97ff,this['unitID'],this[_0x44ff1a(0x3c6)],null,[],this[_0x44ff1a(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4fa2a5(0x1ab)](){const _0xadc7d0=_0x4fa2a5;let _0x43e9c8=this[_0xadc7d0(0x141)][_0xadc7d0(0x36f)](this[_0xadc7d0(0x210)]);return this[_0xadc7d0(0x384)]['onMissingChangesets']({'from':_0x43e9c8,'to':0x0}),this[_0xadc7d0(0x40f)]['createInstance'](_0x1ba45e,this[_0xadc7d0(0x210)],this[_0xadc7d0(0x3c6)],null,[],null,[],this[_0xadc7d0(0x384)]);}};_0x4f3cea=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f3cea);let _0x2845dd=_0x12ed9d=class extends _0xfca92{constructor(_0x2ff4ce,_0x566013,_0x1caab2,_0x228065,_0x2fd929,_0x1938f6,_0x27ac8f,_0x416b0a,_0x13c931,_0x3d6a5a,_0x28909f,_0x5c8c7a,_0x14c554,_0x44d389){const _0x48f0f3=_0x4fa2a5;super(_0x2ff4ce,_0x566013,null,_0x1caab2,_0x228065,_0x13c931,_0x14c554,_0x1938f6,_0x44d389),this['_injector']=_0x2fd929,this[_0x48f0f3(0xdb)]=_0x27ac8f,this[_0x48f0f3(0x314)]=_0x416b0a,this[_0x48f0f3(0x1a9)]=_0x3d6a5a,this['_transformService']=_0x28909f,this['_univerInstanceService']=_0x5c8c7a,_0x5aacdf(this,_0x48f0f3(0x1e8),_0x48f0f3(0x23c)),_0x5aacdf(this,_0x48f0f3(0x14f),null),_0x5aacdf(this,'_sendingTimer',null);}[_0x4fa2a5(0x407)](_0x555a7e){const _0x29e96a=_0x4fa2a5;return this['_pendingMutations']['push'](_0x555a7e),this[_0x29e96a(0xc0)](),this;}[_0x4fa2a5(0x24a)](_0x1d7935){const _0x3a1e59=_0x4fa2a5;if(this[_0x3a1e59(0x217)](_0x1d7935))return this[_0x3a1e59(0x2c2)](),this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x1ba45e,this[_0x3a1e59(0x210)],this['type'],null,this['_pendingMutations'],null,[_0x1d7935],this[_0x3a1e59(0x384)]);try{let _0x460d18=this[_0x3a1e59(0x324)][_0x3a1e59(0x2ad)](_0x1d7935,this[_0x3a1e59(0x2e1)]);if((0x0,_0x3a5734[_0x3a1e59(0xe3)])(_0x460d18)){let {c1Prime:_0x1b4fbd,m2Prime:_0x240038}=_0x460d18;this[_0x3a1e59(0x19a)](_0x1b4fbd);let _0x32cfb4=this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x12ed9d,this[_0x3a1e59(0x210)],this[_0x3a1e59(0x3c6)],_0x240038,this[_0x3a1e59(0x384)]);this[_0x3a1e59(0x2c2)]();let _0x460c7a=new Date()[_0x3a1e59(0x28b)](),_0x1c9e61=this[_0x3a1e59(0x14f)]?Math['max'](this[_0x3a1e59(0x14f)]-_0x460c7a,0x0):this[_0x3a1e59(0x189)]();return _0x32cfb4[_0x3a1e59(0x39a)](_0x1c9e61),_0x32cfb4;}throw _0x460d18[_0x3a1e59(0x187)];}catch(_0x341d57){return this['_logService'][_0x3a1e59(0x187)](_0x341d57),this[_0x3a1e59(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0x497080){const _0x269969=_0x4fa2a5;if(_0x497080[_0x269969(0x3bf)]<=this[_0x269969(0x28c)]())return this;throw Error(_0x269969(0x1a1));}[_0x4fa2a5(0x18d)](){const _0x59b374=_0x4fa2a5;throw Error(_0x59b374(0x3fa));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x47d494=_0x4fa2a5;return this[_0x47d494(0x2c2)](),this[_0x47d494(0x40f)][_0x47d494(0x11d)](_0x5a97ff,this[_0x47d494(0x210)],this[_0x47d494(0x3c6)],null,this[_0x47d494(0x2e1)],this['_handler']);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x39a)](_0xdba75b){const _0x2321dc=_0x4fa2a5;let _0x20b5e7=_0xdba75b??this[_0x2321dc(0x189)]();this[_0x2321dc(0x14f)]=new Date()['getTime']()+_0x20b5e7,this[_0x2321dc(0x10e)]=setTimeout(()=>{const _0x472163=_0x2321dc;this[_0x472163(0x2c2)]();let _0xa90c34=null;switch(this['type']){case _0x433f65['UniverInstanceType'][_0x472163(0xb4)]:_0xa90c34=_0x3b283c(this['_pendingMutations'],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_DOC']:_0xa90c34=this['_pendingMutations'][_0x472163(0x139)](_0x394eda=>_0x394eda['id']===_0xaa3595[_0x472163(0x184)]['id'])?_0x33f309(this['_pendingMutations'],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this['_userManagerService']):_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)][_0x472163(0xcd)]:_0xa90c34=_0x1cafbd(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_PDF']:_0xa90c34=_0x5b1810(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)]['UNIVER_BASE']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this['_revisionService'],this[_0x472163(0xdb)]);break;default:throw Error(_0x472163(0x355)+this['type']+_0x472163(0x283));}let {changeset:_0x2207c4,pendingMutations:_0x4f330e}=_0xa90c34;this[_0x472163(0x384)][_0x472163(0x2d9)](_0x2207c4);let _0x4f702f=_0x4f330e['length']?this['_injector'][_0x472163(0x11d)](_0x16395e,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,_0x4f330e,this['_handler'],void 0x0):this[_0x472163(0x40f)][_0x472163(0x11d)](_0x42f6fe,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,this[_0x472163(0x384)]);_0x4f702f[_0x472163(0xc0)](),this['_handler']['onStateChange'](this,_0x4f702f);},_0x20b5e7);}['_getSendChangesetTimeout'](){const _0x1294ad=_0x4fa2a5;let _0x3aca28=this[_0x1294ad(0x1a9)][_0x1294ad(0xd7)](_0x18fed6);return(_0x3aca28==null?void 0x0:_0x3aca28[_0x1294ad(0x138)])??0x7d0;}[_0x4fa2a5(0x3e0)](){const _0x2b04a4=_0x4fa2a5;throw Error(_0x2b04a4(0x19f));}['_clearScheduledTask'](){const _0x271cd1=_0x4fa2a5;this[_0x271cd1(0x10e)]!=null&&(clearTimeout(this[_0x271cd1(0x10e)]),this[_0x271cd1(0x10e)]=null);}[_0x4fa2a5(0xae)](_0x23a1ec){const _0x13ad5a=_0x4fa2a5;return this[_0x13ad5a(0x2c2)](),this[_0x13ad5a(0x40f)][_0x13ad5a(0x11d)](_0x7d595b,this['unitID'],this[_0x13ad5a(0x3c6)],null,this[_0x13ad5a(0x2e1)],this[_0x13ad5a(0x384)],_0x23a1ec);}};_0x2845dd=_0x12ed9d=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x3b8)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x8,_0x433f65['ICommandService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x2845dd);let _0x42f6fe=_0x2acb98=class extends _0xfca92{constructor(_0x412df1,_0x29b40d,_0x54058b,_0x65886a,_0x45db62,_0xdb789c,_0x56ee38,_0x3fd21a,_0x479316,_0x271db1,_0x108b6f){const _0x1a156e=_0x4fa2a5;super(_0x412df1,_0x29b40d,_0x54058b,[],_0x65886a,_0x56ee38,_0x271db1,_0xdb789c,_0x108b6f),this[_0x1a156e(0x40f)]=_0x45db62,this['_logService']=_0x3fd21a,this['_transformService']=_0x479316,_0x5aacdf(this,_0x1a156e(0x1e8),_0x1a156e(0x253)),_0x5aacdf(this,_0x1a156e(0x22f),0x0),_0x5aacdf(this,_0x1a156e(0x31c),0x0),_0x5aacdf(this,_0x1a156e(0x359),void 0x0),_0x5aacdf(this,_0x1a156e(0x3a2),void 0x0);}[_0x4fa2a5(0x407)](_0x5a4972){const _0x2fb417=_0x4fa2a5;this[_0x2fb417(0x2c2)]();let _0x45434b=this[_0x2fb417(0x40f)][_0x2fb417(0x11d)](_0x16395e,this[_0x2fb417(0x210)],this[_0x2fb417(0x3c6)],this[_0x2fb417(0x2fe)],[_0x5a4972],this[_0x2fb417(0x384)],this[_0x2fb417(0x359)]);return _0x45434b[_0x2fb417(0xc0)](),_0x45434b;}[_0x4fa2a5(0x24a)](_0x980301){const _0x19b569=_0x4fa2a5;if(this[_0x19b569(0x217)](_0x980301))return this[_0x19b569(0x2c2)](),this['_injector'][_0x19b569(0x11d)](_0x1ba45e,this['unitID'],this[_0x19b569(0x3c6)],this[_0x19b569(0x2fe)],[],null,[_0x980301],this[_0x19b569(0x384)]);try{let _0x4aa265=this[_0x19b569(0x324)][_0x19b569(0x142)]([_0x980301],[this[_0x19b569(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x19b569(0x153)])(_0x4aa265)){let {c1Prime:_0x45d187,c2Prime:_0x7c3b8c}=_0x4aa265;this[_0x19b569(0x19a)](_0x45d187[0x0]),_0x7c3b8c[0x0]['baseRev']=this[_0x19b569(0x28c)](),this[_0x19b569(0x2c2)]();let _0x1472b6=this[_0x19b569(0x40f)][_0x19b569(0x11d)](_0x2acb98,this[_0x19b569(0x210)],this[_0x19b569(0x3c6)],_0x7c3b8c[0x0],this[_0x19b569(0x384)]);return _0x1472b6[_0x19b569(0xc0)](),_0x1472b6;}throw _0x4aa265[_0x19b569(0x187)];}catch(_0x1a1141){return this[_0x19b569(0x314)][_0x19b569(0x187)](_0x1a1141),this[_0x19b569(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0xcafcd2){const _0x551b57=_0x4fa2a5;this[_0x551b57(0x2c2)]();let _0x7019aa=this[_0x551b57(0x141)][_0x551b57(0x36f)](this['unitID']);if(_0xcafcd2[_0x551b57(0x3bf)]<=_0x7019aa)return this;if(this['_checkMissing'](_0xcafcd2))return this[_0x551b57(0x40f)][_0x551b57(0x11d)](_0x1ba45e,this['unitID'],this[_0x551b57(0x3c6)],this['_awaitingChangeset'],[],_0xcafcd2[_0x551b57(0x3bf)],[],this[_0x551b57(0x384)]);this['_incrementRevisionNumber']();let _0x20cc9c=this['_injector'][_0x551b57(0x11d)](_0x4f3cea,this['unitID'],this[_0x551b57(0x3c6)],this[_0x551b57(0x384)]);return _0x20cc9c[_0x551b57(0xc0)](),_0x20cc9c;}[_0x4fa2a5(0x18d)](_0x3f62cc){const _0x54827d=_0x4fa2a5;return this[_0x54827d(0xae)](!!(_0x3f62cc!=null&&_0x3f62cc[_0x54827d(0x30b)]));}['onRemoteRetry'](_0x1a7919){const _0x28f01c=_0x4fa2a5;return this[_0x28f01c(0x31c)]>_0x49318e?this[_0x28f01c(0x299)]():(this[_0x28f01c(0x359)]=_0x3e6378(this[_0x28f01c(0x22f)],{'timeout':this[_0x28f01c(0x22f)],'reqId':_0x1a7919[_0x28f01c(0x1f2)]}),this[_0x28f01c(0x3a2)]=this[_0x28f01c(0x359)][_0x28f01c(0x252)](({reqId:_0x4fb407,timeout:_0x4777a3})=>{const _0x5060f6=_0x28f01c;this[_0x5060f6(0x3fc)](_0x4fb407,_0x4777a3);}),this);}[_0x4fa2a5(0x299)](){const _0x5b25d9=_0x4fa2a5;return this[_0x5b25d9(0x2c2)](),this[_0x5b25d9(0x40f)][_0x5b25d9(0x11d)](_0x5a97ff,this[_0x5b25d9(0x210)],this[_0x5b25d9(0x3c6)],this[_0x5b25d9(0x2fe)],[],this[_0x5b25d9(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x3691dc=_0x4fa2a5;this[_0x3691dc(0x384)][_0x3691dc(0x2d9)](this['_awaitingChangeset']);}[_0x4fa2a5(0xae)](_0x15f03c){const _0x4af36e=_0x4fa2a5;return this[_0x4af36e(0x2c2)](),this[_0x4af36e(0x40f)][_0x4af36e(0x11d)](_0x7d595b,this[_0x4af36e(0x210)],this[_0x4af36e(0x3c6)],this[_0x4af36e(0x2fe)],[],this[_0x4af36e(0x384)],_0x15f03c);}['_resendWithTimeout'](_0x526cc0,_0x1873fd){const _0x1007fb=_0x4fa2a5;var _0x595df8;_0x526cc0===((_0x595df8=this[_0x1007fb(0x2fe)])==null?void 0x0:_0x595df8['reqId'])&&(this[_0x1007fb(0x3e0)](),this[_0x1007fb(0x22f)]=_0x1873fd===0x0?0x3e8:Math[_0x1007fb(0x21c)](_0x1873fd*0x2,_0x206406),this['_maxTotalRetryTimeout']+=this[_0x1007fb(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x3b9353=_0x4fa2a5;var _0x58e728;(_0x58e728=this[_0x3b9353(0x3a2)])==null||_0x58e728[_0x3b9353(0x3ba)](),this[_0x3b9353(0x22f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x42f6fe=_0x2acb98=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x42f6fe);let _0x16395e=_0x413c1b=class extends _0xfca92{constructor(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x19d286,_0x2d9e31,_0x2023df,_0x157c9b,_0x39585b,_0x44b53f,_0x176fdb,_0x2b04d5){const _0x55805a=_0x4fa2a5;super(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x157c9b,_0x176fdb,_0x2023df,_0x2b04d5),this[_0x55805a(0x40f)]=_0x2d9e31,this['_logService']=_0x39585b,this[_0x55805a(0x324)]=_0x44b53f,this[_0x55805a(0x405)]=_0x2b04d5,_0x5aacdf(this,_0x55805a(0x1e8),_0x55805a(0x3db)),_0x5aacdf(this,_0x55805a(0x22f),0x0),_0x5aacdf(this,_0x55805a(0x31c),0x0),_0x5aacdf(this,_0x55805a(0x359),void 0x0),_0x5aacdf(this,'_sender',void 0x0),_0x19d286&&(this[_0x55805a(0x359)]=_0x19d286,this[_0x55805a(0x3a2)]=this[_0x55805a(0x359)][_0x55805a(0x252)](({reqId:_0x59d23f,timeout:_0x425849})=>{const _0x30c12f=_0x55805a;this[_0x30c12f(0x3fc)](_0x59d23f,_0x425849);}));}[_0x4fa2a5(0x407)](_0x2b2b67){const _0x1c1f1f=_0x4fa2a5;return this[_0x1c1f1f(0x2e1)][_0x1c1f1f(0x227)](_0x2b2b67),this;}[_0x4fa2a5(0x24a)](_0x1f36f4){const _0x1200f2=_0x4fa2a5;if(this['_checkMissing'](_0x1f36f4))return this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)][_0x1200f2(0x11d)](_0x1ba45e,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],this[_0x1200f2(0x2fe)],this[_0x1200f2(0x2e1)],null,[_0x1f36f4],this['_handler']);try{let _0x282cf0=this[_0x1200f2(0x324)]['transformChangesets']([_0x1f36f4],[this[_0x1200f2(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x1200f2(0x153)])(_0x282cf0)){let {c1Prime:_0x281417,c2Prime:_0x550dce}=_0x282cf0,_0x15468b=this[_0x1200f2(0x324)]['transformMutationsWithChangeset'](_0x281417[0x0],this[_0x1200f2(0x2e1)]);if((0x0,_0x3a5734[_0x1200f2(0xe3)])(_0x15468b)){let {c1Prime:_0x41ad90,m2Prime:_0x13e2da}=_0x15468b;return this[_0x1200f2(0x19a)](_0x41ad90),_0x550dce[0x0][_0x1200f2(0x3a5)]=this[_0x1200f2(0x28c)](),this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)]['createInstance'](_0x413c1b,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],_0x550dce[0x0],_0x13e2da,this[_0x1200f2(0x384)],void 0x0);}throw _0x15468b[_0x1200f2(0x187)];}throw _0x282cf0['error'];}catch(_0x39adf5){return this[_0x1200f2(0x314)]['error'](_0x39adf5),this['_onConflict'](!0x1);}}[_0x4fa2a5(0xb1)](_0x47c6c4){const _0x58efc8=_0x4fa2a5;this[_0x58efc8(0x2c2)]();let _0x1aa767=this[_0x58efc8(0x28c)]();if(_0x47c6c4['revision']<=_0x1aa767)return this;if(this[_0x58efc8(0x217)](_0x47c6c4))return this[_0x58efc8(0x40f)][_0x58efc8(0x11d)](_0x1ba45e,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this['_awaitingChangeset'],this[_0x58efc8(0x2e1)],_0x47c6c4[_0x58efc8(0x3bf)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x4bc93e=this['_injector'][_0x58efc8(0x11d)](_0x2845dd,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this[_0x58efc8(0x2e1)],this['_handler']);return _0x4bc93e[_0x58efc8(0x39a)](),_0x4bc93e['_updateLocalCache'](),_0x4bc93e;}[_0x4fa2a5(0x18d)](_0x42fddc){const _0x177a31=_0x4fa2a5;return this[_0x177a31(0xae)](!!(_0x42fddc!=null&&_0x42fddc['isPermissionRej']));}[_0x4fa2a5(0xdd)](_0x21bf9d){const _0x18e4cf=_0x4fa2a5;return this['_maxTotalRetryTimeout']>_0x49318e?this['toggleOffline']():(this[_0x18e4cf(0x359)]=_0x3e6378(this[_0x18e4cf(0x22f)],{'timeout':this['_resendTimeout'],'reqId':_0x21bf9d[_0x18e4cf(0x1f2)]}),this[_0x18e4cf(0x3a2)]=this[_0x18e4cf(0x359)]['subscribe'](({reqId:_0x158aaf,timeout:_0x442d18})=>{const _0x50be43=_0x18e4cf;this[_0x50be43(0x3fc)](_0x158aaf,_0x442d18);}),this);}[_0x4fa2a5(0x299)](){const _0xe21395=_0x4fa2a5;return this[_0xe21395(0x2c2)](),this[_0xe21395(0x40f)][_0xe21395(0x11d)](_0x5a97ff,this[_0xe21395(0x210)],this['type'],this[_0xe21395(0x2fe)],this[_0xe21395(0x2e1)],this[_0xe21395(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x496980=_0x4fa2a5;this[_0x496980(0x384)][_0x496980(0x2d9)](this[_0x496980(0x2fe)]);}['_onConflict'](_0x5a287f){const _0x52860a=_0x4fa2a5;return this[_0x52860a(0x2c2)](),this[_0x52860a(0x40f)][_0x52860a(0x11d)](_0x7d595b,this[_0x52860a(0x210)],this[_0x52860a(0x3c6)],null,this['_pendingMutations'],this['_handler'],_0x5a287f);}[_0x4fa2a5(0x3fc)](_0x2d20fe,_0x146132){const _0x365d15=_0x4fa2a5;var _0x49aeca;_0x2d20fe===((_0x49aeca=this[_0x365d15(0x2fe)])==null?void 0x0:_0x49aeca['reqId'])&&(this[_0x365d15(0x3e0)](),this[_0x365d15(0x22f)]=_0x146132===0x0?0x3e8:Math[_0x365d15(0x21c)](_0x146132*0x2,_0x206406),this[_0x365d15(0x31c)]+=this[_0x365d15(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x5d00ff=_0x4fa2a5;var _0x7a2048;(_0x7a2048=this['_sender'])==null||_0x7a2048['unsubscribe'](),this[_0x5d00ff(0x22f)]=0x0,this[_0x5d00ff(0x31c)]=0x0;}};_0x16395e=_0x413c1b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x471235))],_0x16395e);let _0x7d595b=class extends _0xfca92{constructor(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x5e7fb1=!0x1,_0x37d2fb,_0x244301,_0x4205d0,_0x5619cd,_0x34bda0,_0x477e8e,_0x35b3e0){const _0x1b9831=_0x4fa2a5;super(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x244301,_0x4205d0,_0x5619cd,_0x35b3e0),this[_0x1b9831(0x3de)]=_0x5e7fb1,this['_permissionService']=_0x37d2fb,this[_0x1b9831(0x267)]=_0x34bda0,this[_0x1b9831(0x347)]=_0x477e8e,this[_0x1b9831(0x405)]=_0x35b3e0,_0x5aacdf(this,_0x1b9831(0x1e8),_0x1b9831(0x3c5)),this[_0x1b9831(0x16f)](),this[_0x1b9831(0x3c1)](),this['_prepareConflictRecovery']();}[_0x4fa2a5(0x407)](){return this;}[_0x4fa2a5(0x24a)](){return this;}['onRemoteAck'](){return this;}[_0x4fa2a5(0x18d)](){return this;}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){return this;}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x3e0)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x4fa2a5(0x23a)](){const _0xf33b3d=_0x4fa2a5;var _0x2ef1d2,_0xf85e7d;await((_0x2ef1d2=this['_localCacheService'])==null||(_0xf85e7d=_0x2ef1d2[_0xf33b3d(0x372)])==null?void 0x0:_0xf85e7d['call'](_0x2ef1d2,this[_0xf33b3d(0x210)],_0xf33b3d(0x3c5))[_0xf33b3d(0x1a4)](()=>void 0x0));try{var _0x9b0359;await((_0x9b0359=this['_localCacheService'])==null?void 0x0:_0x9b0359['clearOfflineData'](this[_0xf33b3d(0x210)]));}catch{this[_0xf33b3d(0x347)][_0xf33b3d(0x2cf)]({'id':_0xf33b3d(0x3d2),'unitID':this[_0xf33b3d(0x210)]});return;}this['_showConflictNotification']();}[_0x4fa2a5(0x3c1)](){const _0x462645=_0x4fa2a5;this[_0x462645(0x347)][_0x462645(0x2cf)]({'id':_0x462645(0x414)});}[_0x4fa2a5(0x1e6)](){const _0x4ef465=_0x4fa2a5;this[_0x4ef465(0x3de)]?this[_0x4ef465(0x347)][_0x4ef465(0x2cf)]({'id':'PERMISSION_DENIED'}):this[_0x4ef465(0x347)]['emitEvent']({'id':_0x4ef465(0x34e)});}[_0x4fa2a5(0x16f)](){const _0x2d42bb=_0x4fa2a5;this[_0x2d42bb(0x3c9)][_0x2d42bb(0x28e)](new _0x6a2ac6[(_0x2d42bb(0x37a))](this[_0x2d42bb(0x210)])['id'],!0x1);}};_0x7d595b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IPermissionService'])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0xb,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x7d595b);let _0x5a97ff=class extends _0xfca92{constructor(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0x58513b,_0x5896ac,_0xd2b46c,_0x3fecbf,_0x973ddb){super(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0xd2b46c,_0x3fecbf,_0x5896ac,_0x973ddb),this['_injector']=_0x58513b,_0x5aacdf(this,'status','offline');}[_0x4fa2a5(0x407)](_0xeabb13){const _0x3ac63b=_0x4fa2a5;return this[_0x3ac63b(0x2e1)]['push'](_0xeabb13),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x446445){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4fa2a5(0xb1)](){const _0x353c34=_0x4fa2a5;throw Error(_0x353c34(0x223));}[_0x4fa2a5(0x18d)](){const _0x523e3c=_0x4fa2a5;throw Error(_0x523e3c(0xf2));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){return this;}['toggleOnline'](){const _0x48829e=_0x4fa2a5;let {_injector:_0x4ddb64,_pendingMutations:_0x410785,_awaitingChangeset:_0x5ecd21,unitID:_0x55afc3,_handler:_0x3d0fb3,type:_0x195ea6}=this,_0x2ba566=_0x2acb52(_0x4ddb64,_0x55afc3,_0x195ea6,_0x5ecd21,_0x410785,_0x3d0fb3);return _0x2ba566 instanceof _0x2845dd?_0x2ba566[_0x48829e(0x39a)]():(_0x2ba566 instanceof _0x16395e||_0x2ba566 instanceof _0x42f6fe)&&_0x2ba566['resend'](),_0x2ba566;}[_0x4fa2a5(0x3e0)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5a97ff=_0x13514e([_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x5a97ff);let _0x1ba45e=class extends _0xfca92{constructor(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0x2ccc45,_0x39da7d,_0xec1a0e,_0x124930,_0x1311d3,_0x335a7,_0x2b99b9,_0x462013,_0x54325f,_0x1fbc8a){const _0x1d62c2=_0x4fa2a5;super(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0xec1a0e,_0x2b99b9,_0x462013,_0x1311d3,_0x1fbc8a),this[_0x1d62c2(0x1c8)]=_0x2ccc45,this['_queuedRemoteChangesets']=_0x39da7d,this['_injector']=_0x124930,this[_0x1d62c2(0x314)]=_0x335a7,this[_0x1d62c2(0x324)]=_0x54325f,this[_0x1d62c2(0x405)]=_0x1fbc8a,_0x5aacdf(this,_0x1d62c2(0x1e8),_0x1d62c2(0x248));}['onMissedChangesetFetched'](_0x371bf1){const _0x2351de=_0x4fa2a5;try{if(this[_0x2351de(0x2c1)](_0x371bf1)[_0x2351de(0x1e7)])throw Error(_0x2351de(0x352));if(this[_0x2351de(0x2c1)]([...this['_queuedRemoteChangesets']][_0x2351de(0x242)]((_0x185032,_0x96cb3e)=>_0x185032[_0x2351de(0x3bf)]-_0x96cb3e['revision']))[_0x2351de(0x1e7)])return this[_0x2351de(0x273)]=[],this[_0x2351de(0xc0)](),this[_0x2351de(0x384)][_0x2351de(0xea)]({'from':this[_0x2351de(0x28c)](),'to':0x0}),this;let _0x2ff04c=this[_0x2351de(0x2fe)],_0x20c899=this[_0x2351de(0x2e1)],_0x101f78;if(_0x2ff04c&&_0x20c899['length']!==0x0)_0x101f78=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x16395e,this[_0x2351de(0x210)],this['type'],_0x2ff04c,_0x20c899,this[_0x2351de(0x384)],void 0x0);else{if(_0x2ff04c&&_0x20c899['length']===0x0)_0x2ff04c[_0x2351de(0x3a5)]=this[_0x2351de(0x28c)](),_0x101f78=this[_0x2351de(0x40f)]['createInstance'](_0x42f6fe,this['unitID'],this[_0x2351de(0x3c6)],_0x2ff04c,this[_0x2351de(0x384)]);else{if(_0x20c899[_0x2351de(0x208)]!==0x0){let _0x48a36f=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x2845dd,this['unitID'],this[_0x2351de(0x3c6)],_0x20c899,this[_0x2351de(0x384)]);_0x48a36f[_0x2351de(0x39a)](),_0x101f78=_0x48a36f;}else _0x101f78=this['_injector'][_0x2351de(0x11d)](_0x4f3cea,this[_0x2351de(0x210)],this[_0x2351de(0x3c6)],this['_handler']);}}return _0x101f78[_0x2351de(0xc0)](),_0x101f78;}catch(_0x4797c1){return this['_logService'][_0x2351de(0x187)](_0x2351de(0x15a),_0x2351de(0x16c),_0x4797c1),this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x7d595b,this['unitID'],this['type'],this[_0x2351de(0x2fe)],this[_0x2351de(0x2e1)],this[_0x2351de(0x384)],!0x1);}}[_0x4fa2a5(0x2c1)](_0x5b7078){const _0x3724c7=_0x4fa2a5;this[_0x3724c7(0x26b)]();for(let _0x3f3a7f=0x0;_0x3f3a7f<_0x5b7078[_0x3724c7(0x208)];_0x3f3a7f++){let _0xe2a1b5=_0x5b7078[_0x3f3a7f],_0x428da4=this['_getCurrentRevision']();if(!(_0xe2a1b5[_0x3724c7(0x3bf)]<=_0x428da4)){if(_0xe2a1b5[_0x3724c7(0x3bf)]>_0x428da4+0x1)return{'missingChangesets':!0x0};if(this[_0x3724c7(0x191)](_0xe2a1b5)){this['_acknowledgeAwaiting']();continue;}this[_0x3724c7(0x292)](_0xe2a1b5),this[_0x3724c7(0x26b)]();}}return{'missingChangesets':!0x1};}[_0x4fa2a5(0x292)](_0x4c2022){const _0x168a70=_0x4fa2a5;let _0x3885f1=_0x4c2022,_0x330534=this[_0x168a70(0x2fe)];if(_0x330534){let _0x275f2f=this['_transformService'][_0x168a70(0x142)]([_0x4c2022],[_0x330534],!0x1);if(!(0x0,_0x3a5734[_0x168a70(0x153)])(_0x275f2f))throw _0x275f2f[_0x168a70(0x187)];_0x3885f1=_0x275f2f[_0x168a70(0x3ab)][0x0],_0x330534=_0x275f2f[_0x168a70(0x2be)][0x0];}let _0x49154f=this[_0x168a70(0x2e1)];if(_0x49154f[_0x168a70(0x208)]){let _0x32bd43=this[_0x168a70(0x324)]['transformMutationsWithChangeset'](_0x3885f1,_0x49154f);if(!(0x0,_0x3a5734[_0x168a70(0xe3)])(_0x32bd43))throw _0x32bd43[_0x168a70(0x187)];_0x3885f1=_0x32bd43['c1Prime'],_0x49154f=_0x32bd43['m2Prime'];}this[_0x168a70(0x19a)](_0x3885f1),_0x330534&&(_0x330534[_0x168a70(0x3a5)]=this[_0x168a70(0x28c)]()),this[_0x168a70(0x2fe)]=_0x330534,this[_0x168a70(0x2e1)]=_0x49154f;}[_0x4fa2a5(0x26b)](){const _0x4d0e30=_0x4fa2a5;if(!this[_0x4d0e30(0x2fe)]||this[_0x4d0e30(0x1c8)]==null)return;let _0x52340d=this[_0x4d0e30(0x28c)]();if(this[_0x4d0e30(0x1c8)]<=_0x52340d)throw Error(_0x4d0e30(0x1db)+this['_acknowledgedAwaitingRevision']+'.');this[_0x4d0e30(0x1c8)]===_0x52340d+0x1&&this[_0x4d0e30(0xc3)]();}['_acknowledgeAwaiting'](){const _0x594a56=_0x4fa2a5;this[_0x594a56(0xb5)](),this[_0x594a56(0x2fe)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x4fa2a5(0x191)](_0x483e92){const _0x27502=_0x4fa2a5;let _0x6da977=this[_0x27502(0x2fe)];return!_0x6da977||!_0x6da977['sid']||_0x6da977['reqId']===null||_0x6da977['reqId']===void 0x0?!0x1:_0x483e92['unitID']===_0x6da977[_0x27502(0x210)]&&_0x483e92['sid']===_0x6da977[_0x27502(0x2d4)]&&_0x483e92[_0x27502(0x1f2)]===_0x6da977[_0x27502(0x1f2)];}[_0x4fa2a5(0x3e0)](){const _0x28cafb=_0x4fa2a5;throw Error(_0x28cafb(0x1f6));}[_0x4fa2a5(0x407)](_0x173702){const _0x14d387=_0x4fa2a5;return this[_0x14d387(0x2e1)][_0x14d387(0x227)](_0x173702),this;}[_0x4fa2a5(0x24a)](_0xa6b8ce){const _0x41b0e4=_0x4fa2a5;return this[_0x41b0e4(0x273)][_0x41b0e4(0x227)](_0xa6b8ce),this;}[_0x4fa2a5(0xb1)](_0x109c36){const _0x4ef822=_0x4fa2a5;if(this[_0x4ef822(0x2fe)]){let _0x1190ee=this['_getCurrentRevision']();return _0x109c36['revision']<=_0x1190ee||(_0x1190ee+0x1===_0x109c36[_0x4ef822(0x3bf)]?(this[_0x4ef822(0xb5)](),this[_0x4ef822(0x2fe)]=null,this[_0x4ef822(0x1c8)]=null):this[_0x4ef822(0x1c8)]=_0x109c36[_0x4ef822(0x3bf)]),this;}if(_0x109c36['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x4ef822(0x2ae));}[_0x4fa2a5(0x18d)](_0x135069){const _0x16fb60=_0x4fa2a5;return this[_0x16fb60(0xae)](!!(_0x135069!=null&&_0x135069[_0x16fb60(0x30b)]));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x392819=_0x4fa2a5;return this[_0x392819(0x40f)][_0x392819(0x11d)](_0x5a97ff,this[_0x392819(0x210)],this[_0x392819(0x3c6)],this['_awaitingChangeset'],this[_0x392819(0x2e1)],this[_0x392819(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0xae)](_0x58daba){const _0x355db3=_0x4fa2a5;return this['_injector'][_0x355db3(0x11d)](_0x7d595b,this[_0x355db3(0x210)],this[_0x355db3(0x3c6)],this[_0x355db3(0x2fe)],this['_pendingMutations'],this['_handler'],_0x58daba);}};_0x1ba45e=_0x13514e([_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,_0x3a5734['ITransformService']),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1ba45e);function _0x2acb52(_0x1f5b4c,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96){const _0x18a051=_0x4fa2a5;return _0x20080d&&_0x4db5fa[_0x18a051(0x208)]?_0x1f5b4c[_0x18a051(0x11d)](_0x16395e,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96,void 0x0):_0x20080d?_0x1f5b4c[_0x18a051(0x11d)](_0x42f6fe,_0x40ac0c,_0x560a9c,_0x20080d,_0x2f3f96):_0x4db5fa['length']?_0x1f5b4c[_0x18a051(0x11d)](_0x2845dd,_0x40ac0c,_0x560a9c,_0x4db5fa,_0x2f3f96):_0x1f5b4c['createInstance'](_0x4f3cea,_0x40ac0c,_0x560a9c,_0x2f3f96);}let _0x18d3ff=class extends _0x433f65[_0x4fa2a5(0x24b)]{get[_0x4fa2a5(0x1be)](){const _0x9f7812=_0x4fa2a5;return this[_0x9f7812(0xda)];}constructor(_0x5e91c8,_0x3fb652,_0x31802b,_0x48af4b,_0x2b57b4,_0x295ed8,_0x12d838,_0x4011da,_0x3a1638,_0x5420a8,_0x2efb3f,_0x108ecf,_0x1ecc3c,_0x1c76bb){const _0x4a5792=_0x4fa2a5;super(),this[_0x4a5792(0x210)]=_0x5e91c8,this[_0x4a5792(0x277)]=_0x3fb652,this[_0x4a5792(0x1ca)]=_0x31802b,this[_0x4a5792(0x40f)]=_0x48af4b,this['_compressMutationService']=_0x2b57b4,this['_localeService']=_0x295ed8,this['_revisionService']=_0x12d838,this[_0x4a5792(0x258)]=_0x4011da,this['_univerInstanceService']=_0x3a1638,this[_0x4a5792(0x314)]=_0x5420a8,this[_0x4a5792(0x1ee)]=_0x2efb3f,this['_permissionService']=_0x108ecf,this[_0x4a5792(0x3c0)]=_0x1ecc3c,this[_0x4a5792(0x304)]=_0x1c76bb,_0x5aacdf(this,_0x4a5792(0x276),new _0x450705[(_0x4a5792(0x1f8))](null)),_0x5aacdf(this,'state$',this[_0x4a5792(0x276)][_0x4a5792(0x343)]()),_0x5aacdf(this,_0x4a5792(0xda),void 0x0),_0x5aacdf(this,'_collaborationPaused',!0x1),_0x5aacdf(this,_0x4a5792(0x106),''),_0x5aacdf(this,_0x4a5792(0x2a8),0x0),_0x5aacdf(this,_0x4a5792(0x1ed),this[_0x4a5792(0x340)]['pipe']((0x0,_0x450705[_0x4a5792(0x224)])(_0x3d81f7=>_0x3d81f7?_0x3d81f7[_0x4a5792(0x1e8)]:'offline'),(0x0,_0x450705[_0x4a5792(0xd4)])({'bufferSize':0x1,'refCount':!0x0}))),_0x5aacdf(this,_0x4a5792(0x222),!0x1),_0x5aacdf(this,_0x4a5792(0x2fc),[]);}async[_0x4fa2a5(0x2ef)](){const _0x49ed79=_0x4fa2a5;if(this['state'])throw Error(_0x49ed79(0x318));await this[_0x49ed79(0x29b)]();}[_0x4fa2a5(0x323)](){return this['_collaborationPaused']=!0x0,(0x0,_0x433f65['toDisposable'])(()=>{const _0x58df83=_0x5846;this[_0x58df83(0x1bd)]=!0x1,this[_0x58df83(0x3df)]();});}[_0x4fa2a5(0x336)](_0x482c2f){const _0x53a8d5=_0x4fa2a5;this[_0x53a8d5(0x35d)](_0x482c2f);}[_0x4fa2a5(0x3d6)](_0x467bf5){const _0x2e72a2=_0x4fa2a5;this[_0x2e72a2(0xda)]=_0x467bf5,this[_0x2e72a2(0x276)]['next'](_0x467bf5);}async[_0x4fa2a5(0x29b)](){const _0x59e2ff=_0x4fa2a5;if(this[_0x59e2ff(0x3d6)](await this[_0x59e2ff(0xb2)]()),this[_0x59e2ff(0x3c0)]){var _0xa395d0;(_0xa395d0=this[_0x59e2ff(0x3c0)])==null||_0xa395d0[_0x59e2ff(0x216)](this[_0x59e2ff(0x210)]),this[_0x59e2ff(0x413)](this[_0x59e2ff(0x3c0)][_0x59e2ff(0x330)](this['unitID'])[_0x59e2ff(0x252)](_0x3d2553=>{const _0x5c0f44=_0x59e2ff;this[_0x5c0f44(0x314)][_0x5c0f44(0x23b)]('[CollaborationEntity]',_0x5c0f44(0x2c6),_0x3d2553),_0x3d2553===0x1?(this['_eventService'][_0x5c0f44(0x2cf)]({'id':_0x5c0f44(0x3f0)}),this[_0x5c0f44(0x3c9)]['updatePermissionPoint'](new _0x6a2ac6['WorkbookEditablePermission'](this[_0x5c0f44(0x210)])['id'],!0x1),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x1)):(this[_0x5c0f44(0x3c9)][_0x5c0f44(0x28e)](new _0x6a2ac6[(_0x5c0f44(0x37a))](this[_0x5c0f44(0x210)])['id'],!0x0),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x0));}));}let _0x1f915c=!0x1;return this[_0x59e2ff(0x413)](this[_0x59e2ff(0x277)][_0x59e2ff(0x199)]['subscribe'](_0x232a78=>{const _0x227c94=_0x59e2ff;_0x232a78===0x3?this[_0x227c94(0x1e4)](_0x1f915c):_0x232a78===0x2&&(_0x1f915c=!0x0,this[_0x227c94(0x3ac)]());})),this['disposeWithMe'](this[_0x59e2ff(0x277)][_0x59e2ff(0x1eb)][_0x59e2ff(0x252)](_0x107add=>{const _0x4be6c2=_0x59e2ff;try{switch(_0x107add[_0x4be6c2(0x130)]){case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x24f)]:this[_0x4be6c2(0x368)]((0x0,_0x3a5734['parseProtocolChangeset'])(_0x107add[_0x4be6c2(0x2c7)]));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x370)]:this[_0x4be6c2(0x30c)](_0x107add['data']);break;case _0x3a5734['CollaborationEvent'][_0x4be6c2(0x373)]:this[_0x4be6c2(0x144)]();break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x20b)]:this['_onRemoteRetry'](_0x107add['data']);break;case _0x3a5734['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x4be6c2(0x1c6)](_0x107add['data'][_0x4be6c2(0x386)]['map'](_0x508fec=>(0x0,_0x3a5734['parseProtocolChangeset'])(_0x508fec)));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x19e)]:this[_0x4be6c2(0x144)]({'isPermissionRej':!0x0});break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x406)]:}}catch(_0x34f17a){throw console[_0x4be6c2(0x187)](_0x4be6c2(0x1ce),_0x34f17a),_0x34f17a;}})),this[_0x59e2ff(0xda)];}[_0x4fa2a5(0xc1)](){const _0x49d109=_0x4fa2a5;this[_0x49d109(0x222)]=!0x1;}[_0x4fa2a5(0x1b8)](){const _0x267dd3=_0x4fa2a5;if(this[_0x267dd3(0x222)])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[_0x267dd3(0x222)]=!0x0;}[_0x4fa2a5(0x35d)](_0x525b05){const _0x447f48=_0x4fa2a5;this[_0x447f48(0x1b8)](),this['_updateState'](this[_0x447f48(0xda)][_0x447f48(0x407)](_0x525b05)),this[_0x447f48(0xc1)]();}[_0x4fa2a5(0x368)](_0x209f79){const _0x5f0b8d=_0x4fa2a5;if(!(_0x209f79[_0x5f0b8d(0x3bf)]<=this['_revisionService'][_0x5f0b8d(0x36f)](this['unitID']))){if(this[_0x5f0b8d(0x1bd)]){this[_0x5f0b8d(0x2fc)][_0x5f0b8d(0x227)](_0x209f79);return;}this[_0x5f0b8d(0x2dc)](_0x209f79);}}[_0x4fa2a5(0x3df)](){const _0xd903b0=_0x4fa2a5;this[_0xd903b0(0x2fc)][_0xd903b0(0x1d2)](_0x2fe6dc=>this[_0xd903b0(0x2dc)](_0x2fe6dc)),this[_0xd903b0(0x2fc)]=[];}[_0x4fa2a5(0x2dc)](_0x1886c7){const _0x5b6a2a=_0x4fa2a5;let _0x1a8cff=this[_0x5b6a2a(0x396)][_0x5b6a2a(0x2c4)][_0x5b6a2a(0x285)](this[_0x5b6a2a(0x396)]['interceptor'][_0x5b6a2a(0x193)]()[_0x5b6a2a(0x198)])(_0x1886c7[_0x5b6a2a(0x2d5)],null)||_0x1886c7[_0x5b6a2a(0x2d5)],_0x36cf13={..._0x1886c7,'mutations':_0x1a8cff};this['_lockTransition'](),this[_0x5b6a2a(0x3d6)](this[_0x5b6a2a(0xda)][_0x5b6a2a(0x24a)](_0x36cf13)),this[_0x5b6a2a(0xc1)]();}[_0x4fa2a5(0x30c)](_0x18778d){const _0xf24840=_0x4fa2a5;this['_lockTransition'](),this['_updateState'](this[_0xf24840(0xda)][_0xf24840(0xb1)](_0x18778d)),this[_0xf24840(0xc1)]();}[_0x4fa2a5(0x144)](_0x495e4b){const _0x42dcf2=_0x4fa2a5;this[_0x42dcf2(0x1b8)](),this[_0x42dcf2(0x3d6)](this[_0x42dcf2(0xda)][_0x42dcf2(0x18d)](_0x495e4b)),this['_unlockTransition']();}[_0x4fa2a5(0x288)](_0x37d364){const _0x5b6493=_0x4fa2a5;this[_0x5b6493(0x1b8)](),this[_0x5b6493(0x3d6)](this[_0x5b6493(0xda)][_0x5b6493(0xdd)](_0x37d364)),this[_0x5b6493(0xc1)]();}[_0x4fa2a5(0x1c6)](_0x21d156){const _0x347696=_0x4fa2a5;if(!(this[_0x347696(0xda)]instanceof _0x1ba45e))throw TypeError(_0x347696(0x11a));let _0x36d653=_0x21d156[_0x347696(0x224)](_0x27ccf8=>{const _0x1932a6=_0x347696;let _0x34b58c=this['_compressMutationService'][_0x1932a6(0x2c4)][_0x1932a6(0x285)](this[_0x1932a6(0x396)][_0x1932a6(0x2c4)]['getInterceptPoints']()[_0x1932a6(0x198)])(_0x27ccf8[_0x1932a6(0x2d5)],null)||_0x27ccf8[_0x1932a6(0x2d5)];return{..._0x27ccf8,'mutations':_0x34b58c};});this[_0x347696(0x1b8)](),this[_0x347696(0x3d6)](this[_0x347696(0xda)][_0x347696(0x188)](_0x36d653)),this[_0x347696(0xc1)]();}[_0x4fa2a5(0x3ac)](){const _0x41c9be=_0x4fa2a5;this[_0x41c9be(0x1b8)](),this[_0x41c9be(0x3d6)](this[_0x41c9be(0xda)][_0x41c9be(0x299)]()),this[_0x41c9be(0xc1)]();}['_toggleOnline'](_0xe46577=!0x1){const _0xc041a4=_0x4fa2a5;this['_lockTransition'](),this[_0xc041a4(0x3d6)](this[_0xc041a4(0xda)][_0xc041a4(0xa6)]()),this[_0xc041a4(0xc1)]();let _0x24d116=this[_0xc041a4(0xda)];_0xe46577&&_0x24d116 instanceof _0x4f3cea&&(this[_0xc041a4(0x1b8)](),this[_0xc041a4(0x3d6)](_0x24d116[_0xc041a4(0x1ab)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x48c9d6=>{const _0x3a0a17=_0x5846;this[_0x3a0a17(0x277)][_0x3a0a17(0x199)][_0x3a0a17(0x192)]((0x0,_0x450705['take'])(0x1))[_0x3a0a17(0x252)](async _0x59a15c=>{const _0x928b4d=_0x3a0a17;_0x48c9d6(await this[_0x928b4d(0xe0)](_0x59a15c===0x3));});});}[_0x4fa2a5(0x1b3)](){let _0x460ee5=this['unitID'];return{'onStateChange':(_0x57f8dc,_0x274e55)=>{const _0x30eee7=_0x5846;if(_0x57f8dc!==this[_0x30eee7(0xda)])throw Error(_0x30eee7(0x2ca)+_0x57f8dc[_0x30eee7(0x1e8)]+'\x0aAfter:\x20'+_0x274e55[_0x30eee7(0x1e8)]+'\x0aCurrent:\x20'+this[_0x30eee7(0xda)][_0x30eee7(0x1e8)]);this[_0x30eee7(0x3d6)](_0x274e55);},'onSendChangeset':_0x42d62c=>{const _0x197a26=_0x5846;_0x42d62c[_0x197a26(0x2d4)]||(_0x42d62c[_0x197a26(0x2d4)]=this[_0x197a26(0x106)],_0x42d62c['reqId']=++this[_0x197a26(0x2a8)]);let _0x278c72={'eventID':_0x3a5734[_0x197a26(0xec)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x42d62c[_0x197a26(0x210)],'unitType':this[_0x197a26(0x1ca)],'changeset':_0x42d62c,'memberID':this[_0x197a26(0x277)]['getMemberID']()}};this['session'][_0x197a26(0x402)](_0x278c72,this[_0x197a26(0x210)]);},'onMissingChangesets':({from:_0x2cf068,to:_0x31f80e})=>{const _0xd97d0e=_0x5846;this[_0xd97d0e(0x314)][_0xd97d0e(0x23b)](_0xd97d0e(0x20c),'fetching\x20missing\x20changesets\x20from\x20'+_0x2cf068+_0xd97d0e(0x2b2)+_0x31f80e);let _0x8e654f={'eventID':_0x3a5734['CollaborationEvent'][_0xd97d0e(0x1e1)],'data':{'unitID':_0x460ee5,'unitType':this[_0xd97d0e(0x1ca)],'from':_0x2cf068,'to':_0x31f80e}};this[_0xd97d0e(0x277)]['send'](_0x8e654f,this['unitID']);}};}async[_0x4fa2a5(0xe0)](_0x1ae4e5){const _0x30c612=_0x4fa2a5;var _0x4ba55d;let _0x1e11ef=await((_0x4ba55d=this[_0x30c612(0x304)])==null?void 0x0:_0x4ba55d['loadOfflineData'](this[_0x30c612(0x210)])),_0x37b514=(_0x1e11ef==null?void 0x0:_0x1e11ef[_0x30c612(0x2d5)])??[],_0x4c4985=(_0x1e11ef==null?void 0x0:_0x1e11ef['awaitingChangeset'])??null,_0x36e0b1=!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x2d4)])&&!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x1f2)]);this[_0x30c612(0x106)]=_0x36e0b1?_0x4c4985[_0x30c612(0x2d4)]:(0x0,_0x3a5734[_0x30c612(0x257)])(),this[_0x30c612(0x2a8)]=_0x36e0b1?_0x4c4985[_0x30c612(0x1f2)]:0x0;let _0x5a52cf=this[_0x30c612(0x210)];try{this[_0x30c612(0x1c7)](_0x4c4985,_0x37b514);}catch(_0x134aa2){this[_0x30c612(0x314)][_0x30c612(0x187)](_0x134aa2);}let _0x406027=this[_0x30c612(0x1b3)]();if(_0x1ae4e5){let _0x4db187=_0x2acb52(this['_injector'],_0x5a52cf,this['_type'],_0x4c4985,_0x37b514,_0x406027);return _0x4db187 instanceof _0x2845dd?_0x4db187['_schedule']():(_0x4db187 instanceof _0x16395e||_0x4db187 instanceof _0x42f6fe)&&_0x4db187[_0x30c612(0x3e0)](),_0x4db187;}return this[_0x30c612(0x40f)][_0x30c612(0x11d)](_0x5a97ff,_0x5a52cf,this[_0x30c612(0x1ca)],_0x4c4985,_0x37b514,_0x406027);}[_0x4fa2a5(0x1c7)](_0xa9e19d,_0x347dac){const _0x17ba9e=_0x4fa2a5;var _0x434c89,_0x320481;let _0x346156=this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['fetchThroughInterceptors'](this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['getInterceptPoints']()[_0x17ba9e(0x198)]);(_0x434c89=_0x346156((_0xa9e19d==null?void 0x0:_0xa9e19d[_0x17ba9e(0x2d5)])||[],null))==null||_0x434c89[_0x17ba9e(0x1d2)](_0x2a53e5=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x2a53e5['id'],_0x2a53e5[_0x17ba9e(0x206)])),(_0x320481=_0x346156(_0x347dac||[],null))==null||_0x320481['forEach'](_0x5ef6b3=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x5ef6b3['id'],_0x5ef6b3[_0x17ba9e(0x206)]));}};_0x18d3ff=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x18d3ff);let _0x31d725=class extends _0x18d3ff{constructor(_0x54a0b2,_0x16cb1c,_0x3741ab,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x2b8ca3,_0x17faf5,_0x8a8c6d){const _0xac01a5=_0x4fa2a5;super(_0x54a0b2,_0x3741ab,_0x16cb1c,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x17faf5,_0x8a8c6d),this['unitID']=_0x54a0b2,this[_0xac01a5(0x3c6)]=_0x16cb1c,this[_0xac01a5(0x38a)]=_0x2b8ca3,_0x5aacdf(this,'_handlerCallback',null);}[_0x4fa2a5(0x264)](_0x5e7d6c){this['_handlerCallback']=_0x5e7d6c;}[_0x4fa2a5(0x3b4)](){const _0x37b6a4=_0x4fa2a5;this[_0x37b6a4(0x3aa)]=null,super[_0x37b6a4(0x3b4)]();}[_0x4fa2a5(0x1b3)](){const _0x11f51a=_0x4fa2a5;let _0x38e045=super[_0x11f51a(0x1b3)]();return _0x38e045[_0x11f51a(0x2ac)]=_0x409ce1=>{const _0x46298d=_0x11f51a;var _0x3cf94c,_0x3380a1;return(_0x3cf94c=this['_handlerCallback'])==null||(_0x3380a1=_0x3cf94c['onTransformIME'])==null?void 0x0:_0x3380a1[_0x46298d(0x2e5)](_0x3cf94c,_0x409ce1);},_0x38e045[_0x11f51a(0x19b)]=_0x44ca74=>{const _0x661a2c=_0x11f51a;var _0x29061c,_0x47ab5b;return(_0x29061c=this[_0x661a2c(0x3aa)])==null||(_0x47ab5b=_0x29061c[_0x661a2c(0x19b)])==null?void 0x0:_0x47ab5b['call'](_0x29061c,_0x44ca74);},_0x38e045[_0x11f51a(0xba)]=_0x506fdc=>{const _0x1065c1=_0x11f51a;var _0x3bd9a0,_0x78d32d;return((_0x3bd9a0=this[_0x1065c1(0x3aa)])==null||(_0x78d32d=_0x3bd9a0[_0x1065c1(0xba)])==null?void 0x0:_0x78d32d['call'](_0x3bd9a0,_0x506fdc))??null;},_0x38e045[_0x11f51a(0xfa)]=_0x9af00d=>{const _0x140cb9=_0x11f51a;var _0x2b3aad,_0x42f299;return(_0x2b3aad=this[_0x140cb9(0x3aa)])==null||(_0x42f299=_0x2b3aad[_0x140cb9(0xfa)])==null?void 0x0:_0x42f299['call'](_0x2b3aad,_0x9af00d);},_0x38e045[_0x11f51a(0x256)]=_0xa60236=>{const _0x3872ff=_0x11f51a;var _0x316031,_0x74268f;return(_0x316031=this[_0x3872ff(0x3aa)])==null||(_0x74268f=_0x316031[_0x3872ff(0x256)])==null?void 0x0:_0x74268f[_0x3872ff(0x2e5)](_0x316031,_0xa60236);},_0x38e045[_0x11f51a(0x1af)]=_0x50de6f=>{const _0x558ab3=_0x11f51a;var _0x457f78,_0xba37d8;return((_0x457f78=this[_0x558ab3(0x3aa)])==null||(_0xba37d8=_0x457f78[_0x558ab3(0x1af)])==null?void 0x0:_0xba37d8['call'](_0x457f78,_0x50de6f))??_0x50de6f;},_0x38e045['onTransformRemoteChangesetByStateCache']=_0x2741ea=>{const _0x305d5e=_0x11f51a;var _0x115a69,_0x3c9173;return((_0x115a69=this[_0x305d5e(0x3aa)])==null||(_0x3c9173=_0x115a69[_0x305d5e(0x116)])==null?void 0x0:_0x3c9173[_0x305d5e(0x2e5)](_0x115a69,_0x2741ea))??_0x2741ea;},_0x38e045;}async[_0x4fa2a5(0x29b)](){const _0x33f79e=_0x4fa2a5;let _0x16ed21=await super[_0x33f79e(0x29b)]();return this[_0x33f79e(0x413)](this[_0x33f79e(0x38a)][_0x33f79e(0x147)]['subscribe'](_0x57b1f4=>{const _0x291739=_0x33f79e;if(_0x57b1f4==null||_0x57b1f4[_0x291739(0x229)]!==this[_0x291739(0x210)])return;let {commandId:_0x5c29b8,redoState:_0xa04936,unitId:_0x470bb7}=_0x57b1f4,_0x5a27df={'id':_0x5c29b8,'type':_0x433f65[_0x291739(0x390)]['MUTATION'],'params':{'unitId':_0x470bb7,'actions':_0xa04936[_0x291739(0x30a)],'textRanges':null}};this[_0x291739(0x35d)](_0x5a27df);})),this[_0x33f79e(0x413)](this[_0x33f79e(0x1ee)][_0x33f79e(0x117)]((_0x197b4f,_0x14b81b)=>{const _0x328129=_0x33f79e;if(_0x197b4f['type']!==_0x433f65[_0x328129(0x390)][_0x328129(0x157)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x416)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x2fb)]||_0x197b4f['id']===_0xaa3595[_0x328129(0x184)]['id'])return;let _0x5d7eab=_0x197b4f['params'];if((_0x5d7eab==null?void 0x0:_0x5d7eab[_0x328129(0x229)])!==this[_0x328129(0x210)])return;let _0x54cdd3=_0x197b4f,_0x502231=this[_0x328129(0x396)]['interceptor'][_0x328129(0x285)](this[_0x328129(0x396)][_0x328129(0x2c4)]['getInterceptPoints']()[_0x328129(0x376)])([_0x54cdd3],this['_univerInstanceService'])||[_0x54cdd3];this['_onLocalMutation'](_0x502231[0x0]);})),_0x16ed21;}};_0x31d725=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0xaa3595[_0x4fa2a5(0x1fc)])),_0x374c65(0xd,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x31d725);let _0x53717a=class extends _0x18d3ff{constructor(_0x1863fa,_0x4889d5,_0x1ab233,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5){const _0xec55b0=_0x4fa2a5;super(_0x1863fa,_0x1ab233,_0x4889d5,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5),this[_0xec55b0(0x210)]=_0x1863fa,this['type']=_0x4889d5;}async['_init'](){const _0x45ffc3=_0x4fa2a5;let _0x5d3c23=await super[_0x45ffc3(0x29b)]();return this[_0x45ffc3(0x413)](this[_0x45ffc3(0x1ee)][_0x45ffc3(0x117)]((_0x53c3cc,_0x16bc48)=>{const _0x54f89c=_0x45ffc3;if(_0x53c3cc[_0x54f89c(0x3c6)]!==_0x433f65['CommandType'][_0x54f89c(0x157)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x416)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x2fb)])return;let _0x5e7229=_0x53c3cc[_0x54f89c(0x206)];if((_0x5e7229==null?void 0x0:_0x5e7229['unitId'])!==this[_0x54f89c(0x210)])return;let _0x29c35a=_0x53c3cc,_0x3066f0=this[_0x54f89c(0x396)][_0x54f89c(0x2c4)][_0x54f89c(0x285)](this[_0x54f89c(0x396)][_0x54f89c(0x2c4)]['getInterceptPoints']()[_0x54f89c(0x376)])([_0x29c35a],this['_univerInstanceService'])||[_0x29c35a];this[_0x54f89c(0x35d)](_0x3066f0[0x0]);})),_0x5d3c23;}};_0x53717a=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x53717a);let _0x89772b=class extends _0x18d3ff{constructor(_0x41af6d,_0x5ab735,_0x508180,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x1e397a,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9){const _0x11ac25=_0x4fa2a5;super(_0x41af6d,_0x508180,_0x5ab735,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9),this[_0x11ac25(0x210)]=_0x41af6d,this[_0x11ac25(0x3c6)]=_0x5ab735,this['_sheetTransformSelectionsService']=_0x1e397a;}[_0x4fa2a5(0x1b3)](){const _0xd1535e=_0x4fa2a5;let _0x4b7711=super[_0xd1535e(0x1b3)]();return _0x4b7711[_0xd1535e(0xfa)]=_0x1bafb4=>this[_0xd1535e(0xb0)]['transformSelections'](_0x1bafb4),_0x4b7711;}async['_init'](){const _0x326279=_0x4fa2a5;let _0x1190aa=await super[_0x326279(0x29b)]();return this[_0x326279(0x413)](this[_0x326279(0x1ee)]['onMutationExecutedForCollab']((_0x2cc799,_0x5d207c)=>{const _0x15be00=_0x326279;if(_0x2cc799['type']!==_0x433f65[_0x15be00(0x390)]['MUTATION']||_0x5d207c!=null&&_0x5d207c[_0x15be00(0x416)]||_0x5d207c!=null&&_0x5d207c['onlyLocal'])return;let _0x3e65c0=_0x2cc799[_0x15be00(0x206)];if((_0x3e65c0==null?void 0x0:_0x3e65c0['unitId'])!==this[_0x15be00(0x210)])return;let _0x1d5c82=_0x2cc799,_0x385f02=this[_0x15be00(0x396)][_0x15be00(0x2c4)][_0x15be00(0x285)](this[_0x15be00(0x396)]['interceptor'][_0x15be00(0x193)]()[_0x15be00(0x376)])([_0x1d5c82],this[_0x15be00(0x3f3)])||[_0x1d5c82];this[_0x15be00(0x35d)](_0x385f02[0x0]);})),_0x1190aa;}};_0x89772b=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x41b88d)),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x89772b);let _0x1b8073=class extends _0x18d3ff{constructor(_0x37c8a2,_0x20f801,_0x57d21b,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4){const _0x5504b6=_0x4fa2a5;super(_0x37c8a2,_0x57d21b,_0x20f801,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4),this['unitID']=_0x37c8a2,this[_0x5504b6(0x3c6)]=_0x20f801;}async[_0x4fa2a5(0x29b)](){const _0x5c0b07=_0x4fa2a5;let _0x3a8a7c=await super[_0x5c0b07(0x29b)]();return this['disposeWithMe'](this[_0x5c0b07(0x1ee)]['onMutationExecutedForCollab']((_0xd067c6,_0x2b6288)=>{const _0x5028e6=_0x5c0b07;if(_0xd067c6['type']!==_0x433f65[_0x5028e6(0x390)][_0x5028e6(0x157)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x416)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x2fb)])return;let _0x2a0284=_0xd067c6['params'];if((_0x2a0284==null?void 0x0:_0x2a0284[_0x5028e6(0x229)])!==this['unitID'])return;let _0x2af4fc=_0xd067c6,_0x10962b=this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x285)](this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x193)]()[_0x5028e6(0x376)])([_0x2af4fc],this[_0x5028e6(0x3f3)])||[_0x2af4fc];this[_0x5028e6(0x35d)](_0x10962b[0x0]);})),_0x3a8a7c;}};_0x1b8073=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1b8073);let _0x1dc09d=class extends _0x18d3ff{constructor(_0x345549,_0x659245,_0x35e89f,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a){const _0x5c50e1=_0x4fa2a5;super(_0x345549,_0x35e89f,_0x659245,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a),this[_0x5c50e1(0x210)]=_0x345549,this[_0x5c50e1(0x3c6)]=_0x659245;}async['_init'](){const _0x24bcc9=_0x4fa2a5;let _0x138e75=await super[_0x24bcc9(0x29b)]();return this['disposeWithMe'](this[_0x24bcc9(0x1ee)][_0x24bcc9(0x117)]((_0x76ee44,_0x3271ec)=>{const _0x53ee80=_0x24bcc9;if(_0x76ee44['type']!==_0x433f65[_0x53ee80(0x390)][_0x53ee80(0x157)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x416)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x2fb)])return;let _0x31c6d5=_0x76ee44[_0x53ee80(0x206)];if((_0x31c6d5==null?void 0x0:_0x31c6d5['unitId'])!==this['unitID'])return;let _0x2693fc=_0x76ee44,_0x2bed9e=this[_0x53ee80(0x396)]['interceptor'][_0x53ee80(0x285)](this[_0x53ee80(0x396)][_0x53ee80(0x2c4)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2693fc],this['_univerInstanceService'])||[_0x2693fc];this[_0x53ee80(0x35d)](_0x2bed9e[0x0]);})),_0x138e75;}};_0x1dc09d=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1dc09d);let _0x25572c=class extends _0x18d3ff{constructor(_0x4b0eba,_0x1c5aec,_0x47e610,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426){super(_0x4b0eba,_0x47e610,_0x1c5aec,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426),this['unitID']=_0x4b0eba,this['type']=_0x1c5aec;}async['_init'](){const _0x3f8781=_0x4fa2a5;let _0x239e44=await super[_0x3f8781(0x29b)]();return this[_0x3f8781(0x413)](this['_commandService']['onMutationExecutedForCollab']((_0x4caafc,_0x1d6851)=>{const _0x543dca=_0x3f8781;if(_0x4caafc['type']!==_0x433f65[_0x543dca(0x390)][_0x543dca(0x157)]||_0x1d6851!=null&&_0x1d6851['fromCollab']||_0x1d6851!=null&&_0x1d6851[_0x543dca(0x2fb)])return;let _0xe952cc=_0x4caafc[_0x543dca(0x206)];if((_0xe952cc==null?void 0x0:_0xe952cc['unitId'])!==this[_0x543dca(0x210)])return;let _0x626fa=_0x4caafc,_0x19731d=this[_0x543dca(0x396)][_0x543dca(0x2c4)]['fetchThroughInterceptors'](this[_0x543dca(0x396)][_0x543dca(0x2c4)][_0x543dca(0x193)]()[_0x543dca(0x376)])([_0x626fa],this[_0x543dca(0x3f3)])||[_0x626fa];this[_0x543dca(0x35d)](_0x19731d[0x0]);})),_0x239e44;}};_0x25572c=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65['ICommandService']),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x25572c);let _0x43e589=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0xd6));function _0x18ff47(_0x1dfa86){const _0x5b6676=_0x4fa2a5;let _0x53170c=_0x1dfa86[_0x5b6676(0x2c7)],_0x3fe055=JSON[_0x5b6676(0x200)](_0x53170c);switch(_0x3fe055[_0x5b6676(0x20a)]){case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x14b)]:case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x215)]:{let _0x43a200=_0x3fe055[_0x5b6676(0x156)];return{..._0x3fe055,'data':_0x43a200,'cmd':_0x3fe055[_0x5b6676(0x20a)]};}case _0x4ed0d4['CombCmd']['JOIN']:{let _0x5cdbc7=_0x3fe055[_0x5b6676(0x1ec)];return{..._0x3fe055,'data':_0x5cdbc7,'cmd':_0x3fe055['cmd']};}case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x1f4)]:{let _0x241d1e=_0x3fe055[_0x5b6676(0x244)];switch(_0x241d1e[_0x5b6676(0x130)]){case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x19e)]:var _0x2da991;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x2da991=_0x241d1e['permissionRejEvent'])==null?void 0x0:_0x2da991['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x370)]:var _0x520034;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x520034=_0x241d1e[_0x5b6676(0xf8)])==null?void 0x0:_0x520034['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x24f)]:var _0x3c4985;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x3c4985=_0x241d1e[_0x5b6676(0x14d)])==null?void 0x0:_0x3c4985['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x373)]:var _0x32bedd;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x32bedd=_0x241d1e['csRejEvent'])==null?void 0x0:_0x32bedd['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x20b)]:var _0x58efe7;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x58efe7=_0x241d1e[_0x5b6676(0xbf)])==null?void 0x0:_0x58efe7['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x2c5)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['updateCursorEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0xce)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x14e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x1d9)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x36e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_NEW_HOST']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_FETCH_OPERATIONS']:case _0x3a5734['CollaborationEvent'][_0x5b6676(0xd2)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3da)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_TERMINATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x3f9)]:return{..._0x3fe055,'data':_0x241d1e,'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['COMMENT_UPDATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3d9)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x136)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0xc8)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['SHOULD_CLOSE_CONN']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x2f0)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x406)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['uniscriptRunEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};default:return _0x3fe055;}}default:return _0x3fe055;}}function _0xe30654(_0x599f4d){const _0x3bd712=_0x4fa2a5;switch(_0x599f4d[_0x3bd712(0x20a)]){case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x14b)]:case _0x4ed0d4[_0x3bd712(0x35a)]['HELLO']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)]});case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x207)]:{let _0x5ceedb;switch(_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x130)]){case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2c5)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x2c5)],'updateCursorEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)],'leaveEvent':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['USERS_ENTER']:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0xce)],'joinEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)],'liveShareNewHost':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)],'liveShareOperation':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_TERMINATE']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2a5)],'liveShareTerminate':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x599f4d[_0x3bd712(0x2c7)]['data']};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x164)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x164)]};break;default:_0x5ceedb={'eventID':_0x599f4d['data'][_0x3bd712(0x130)]};}return JSON['stringify']({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'collaMsg':_0x5ceedb});}case _0x4ed0d4[_0x3bd712(0x35a)]['JOIN']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'joinReq':_0x599f4d['data']});case _0x4ed0d4[_0x3bd712(0x35a)]['LEAVE']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d['cmd'],'routeKey':_0x599f4d[_0x3bd712(0x231)],'leaveReq':_0x599f4d[_0x3bd712(0x2c7)]});default:throw Error(_0x3bd712(0xa1));}}let _0x1121da=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x1a7));function _0x5c47b5(_0xfc5ac3,_0x179ed1,_0x59e9fb){const _0x322c0c=_0x4fa2a5;return _0xfc5ac3+'/'+_0x179ed1+_0x322c0c(0x394)+_0x59e9fb+_0x322c0c(0x2b7);}let _0x28996e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x3ccef8,_0x5c662d,_0x4d4b88,_0x2de870,_0x3d92fb){const _0x2c64d8=_0x4fa2a5;super(),this[_0x2c64d8(0x40f)]=_0x3ccef8,this[_0x2c64d8(0x33c)]=_0x5c662d,this[_0x2c64d8(0x1a9)]=_0x4d4b88,this[_0x2c64d8(0x314)]=_0x2de870,this[_0x2c64d8(0x120)]=_0x3d92fb;}[_0x4fa2a5(0x37f)](_0x3f9e2d){const _0x1cf71a=_0x4fa2a5;let _0x453e3e=this[_0x1cf71a(0x40f)]['get'](_0x544d24['ISocketService']);if(!_0x453e3e)throw Error(_0x1cf71a(0x17c));let _0x2bde4d=_0x453e3e[_0x1cf71a(0x21f)](_0x3f9e2d);if(!_0x2bde4d)throw Error(_0x1cf71a(0x2a3));let _0xa787=new _0x433f65[(_0x1cf71a(0x238))](),_0x513475=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x33d)]['subscribe'](_0x3e293a=>_0x513475[_0x1cf71a(0x163)](_0x3e293a))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x513475[_0x1cf71a(0x410)]()));let _0x2d7a02=new _0x450705[(_0x1cf71a(0x155))]();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d['error$']['subscribe'](_0x3b18c2=>_0x2d7a02[_0x1cf71a(0x163)](_0x3b18c2))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x2d7a02[_0x1cf71a(0x410)]()));let _0x3d9a5d=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x197)][_0x1cf71a(0x252)](_0x439ae8=>{const _0x161340=_0x1cf71a;let _0x556779=_0x18ff47(_0x439ae8);_0x3d9a5d[_0x161340(0x163)](_0x556779);})),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x3d9a5d[_0x1cf71a(0x410)]()));let _0x4a0ffb,_0x4385f9=()=>{const _0x47445e=_0x1cf71a;_0x2d7a02['next'](new Event(_0x47445e(0x27f))),_0x513475[_0x47445e(0x163)](new Event(_0x47445e(0x27f))),_0x4a0ffb[_0x47445e(0x17d)]();};return _0x4a0ffb={'memberID':'','close$':_0x513475['asObservable'](),'error$':_0x2d7a02['asObservable'](),'open$':_0x2bde4d[_0x1cf71a(0x2ff)],'message$':_0x3d9a5d['asObservable'](),'send':_0x17ecf8=>{const _0x1acc71=_0x1cf71a;if(_0x17ecf8[_0x1acc71(0x20a)]===_0x4ed0d4[_0x1acc71(0x35a)][_0x1acc71(0x207)]){if(_0x17ecf8['data'][_0x1acc71(0x130)]===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x22d)]){this[_0x1acc71(0x335)](_0x4a0ffb,_0x17ecf8[_0x1acc71(0x2c7)])[_0x1acc71(0x1a4)](_0x10c083=>{this['_logService']['error'](_0x10c083),_0x4385f9();});return;}if(_0x17ecf8[_0x1acc71(0x2c7)]['eventID']===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x1e1)]){let _0x122850=_0x17ecf8[_0x1acc71(0x2c7)];this['_fetchMissChangesets'](_0x122850)['then'](_0x3b8800=>{const _0x22a9ec=_0x1acc71;_0x3d9a5d['next']({'cmd':_0x4ed0d4[_0x22a9ec(0x35a)][_0x22a9ec(0x1f4)],'code':_0x4ed0d4[_0x22a9ec(0x27a)]['OK'],'routeKey':_0x122850[_0x22a9ec(0x2c7)][_0x22a9ec(0x210)],'routeType':'','data':{'eventID':_0x3a5734[_0x22a9ec(0xec)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3b8800}}});})[_0x1acc71(0x1a4)](_0x9c3400=>{const _0x491d3b=_0x1acc71;this[_0x491d3b(0x314)]['error'](_0x9c3400),_0x4385f9();});return;}}_0x2bde4d[_0x1acc71(0x402)](_0xe30654(_0x17ecf8));},'close':()=>{const _0x4e15e4=_0x1cf71a;_0x2bde4d[_0x4e15e4(0x17d)](),_0xa787[_0x4e15e4(0x3b4)]();}},_0x4a0ffb;}async[_0x4fa2a5(0x335)](_0x35a73b,_0x2db676){const _0x6092b6=_0x4fa2a5;let {unitType:_0x5d4690,unitID:_0x30b878,changeset:_0x369136}=_0x2db676[_0x6092b6(0x2c7)],_0x392a6e={'unitID':_0x30b878,'memberID':_0x35a73b[_0x6092b6(0x38b)],'type':_0x5d4690,'changeset':(0x0,_0x3a5734[_0x6092b6(0x26e)])(_0x369136)},_0x5c63a9=this[_0x6092b6(0x1a9)][_0x6092b6(0xd7)](_0x18fed6),_0x415c5a=_0x5c47b5((_0x5c63a9==null?void 0x0:_0x5c63a9[_0x6092b6(0x378)])??_0x6092b6(0x361),_0x5d4690,_0x30b878);try{await this[_0x6092b6(0x33c)][_0x6092b6(0x201)](_0x415c5a,{'body':_0x392a6e});}catch(_0x1722cf){throw this[_0x6092b6(0x314)][_0x6092b6(0x187)](_0x6092b6(0x21e),'submit\x20changeset\x20error!'),_0x1722cf;}}async[_0x4fa2a5(0x182)](_0x4cf506){const _0x8cc18c=_0x4fa2a5;let {unitID:_0xf7f3af,from:_0x28b707,to:_0x5af570,unitType:_0x10ecbf}=_0x4cf506[_0x8cc18c(0x2c7)];return(await this[_0x8cc18c(0x120)][_0x8cc18c(0x1df)]({'metadata':void 0x0},{'unitID':_0xf7f3af,'type':_0x10ecbf,'from':_0x28b707,'to':_0x5af570}))['changesets'][_0x8cc18c(0x224)](_0x250cec=>((_0x250cec['mutations']===null||_0x250cec[_0x8cc18c(0x2d5)]===void 0x0)&&(_0x250cec[_0x8cc18c(0x2d5)]=[]),_0x250cec));}};_0x28996e=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65['ILogService']),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0xb8)])],_0x28996e);let _0x2a5cd3=(0x0,_0x433f65[_0x4fa2a5(0xad)])('univer-pro.collaboration-client-adapter-service');function _0x200c62(_0x2b460d={}){const _0x3c5864=_0x4fa2a5;return _0x2b460d[_0x3c5864(0x33f)]?{'resolveUnit':_0x2b460d[_0x3c5864(0x33f)]}:{'resolveUnit':_0xe78064=>({'target':{'unitId':_0xe78064[_0x3c5864(0x229)],'unitType':_0xe78064[_0x3c5864(0x10a)]}})};}function _0x5dcc79(_0x3443a8,_0x50a49f,_0x31fb8){const _0xdb97f7=_0x4fa2a5;let _0x5c4506=_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x13a)];if(_0x5c4506!=null&&_0x5c4506[_0xdb97f7(0x1c1)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x229)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x3443a8,'unitType':_0x50a49f,'target':{'endpoint':_0x5c4506,'unitId':_0x31fb8[_0xdb97f7(0x24c)]['unitId'],'unitType':_0x31fb8[_0xdb97f7(0x24c)]['unitType']??_0x50a49f},'changeset':_0x31fb8[_0xdb97f7(0xf9)]};}let _0x2b5c76=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x28945f,_0x1becdd,_0x3b9c84,_0x2d374a,_0x4dc1bb,_0x470aac,_0x521b84){const _0x1909de=_0x4fa2a5;super(),this['_injector']=_0x28945f,this[_0x1909de(0x314)]=_0x1becdd,this[_0x1909de(0x1a9)]=_0x3b9c84,this['_socketService']=_0x2d374a,this[_0x1909de(0x347)]=_0x4dc1bb,this[_0x1909de(0x134)]=_0x470aac,this[_0x1909de(0x3dc)]=_0x521b84,_0x5aacdf(this,_0x1909de(0x342),new Map()),_0x5aacdf(this,_0x1909de(0x209),new Map()),_0x5aacdf(this,_0x1909de(0x1e2),new Map()),_0x5aacdf(this,_0x1909de(0x32c),new Map()),_0x5aacdf(this,_0x1909de(0x103),this[_0x1909de(0x1d4)](void 0x0)[_0x1909de(0x103)][_0x1909de(0x343)]()),_0x5aacdf(this,_0x1909de(0x3d1),new _0x450705[(_0x1909de(0x1f8))](0x0)),_0x5aacdf(this,_0x1909de(0x1ed),this[_0x1909de(0x3d1)][_0x1909de(0x343)]()),this[_0x1909de(0x1a3)]();}[_0x4fa2a5(0x1a3)](){const _0x5805cf=_0x4fa2a5;this[_0x5805cf(0x3dc)]&&this['disposeWithMe'](this[_0x5805cf(0x3dc)][_0x5805cf(0x403)][_0x5805cf(0x252)](_0x59a303=>{const _0xc1cf05=_0x5805cf;_0x59a303&&this[_0xc1cf05(0x332)](),_0x59a303||this[_0xc1cf05(0x32c)][_0xc1cf05(0x1d2)](_0x5ee5a9=>this[_0xc1cf05(0x254)](_0x5ee5a9));}));}[_0x4fa2a5(0x3b4)](){const _0x1468e9=_0x4fa2a5;super['dispose'](),this['_socketChannels']['forEach'](_0x10d91f=>{const _0x549f82=_0x5846;var _0x1f7197,_0x193f03;(_0x1f7197=_0x10d91f[_0x549f82(0x12d)])==null||_0x1f7197[_0x549f82(0x3ba)](),_0x10d91f['socketMessageSubscription']=null,this[_0x549f82(0xe8)](_0x10d91f),this[_0x549f82(0x1d8)](_0x10d91f),this[_0x549f82(0x12a)](_0x10d91f),(_0x193f03=_0x10d91f[_0x549f82(0x103)][_0x549f82(0x3ee)]())==null||_0x193f03[_0x549f82(0x17d)](),_0x10d91f[_0x549f82(0x103)][_0x549f82(0x410)]();}),this[_0x1468e9(0x32c)][_0x1468e9(0x2f9)](),this['_sessions']['forEach'](_0x181eab=>_0x181eab[_0x1468e9(0x3b4)]()),this[_0x1468e9(0x342)][_0x1468e9(0x2f9)](),this['_sessionChannels'][_0x1468e9(0x2f9)](),this[_0x1468e9(0x3d1)][_0x1468e9(0x410)]();}async[_0x4fa2a5(0x40c)](_0x58d040,_0x260e26){const _0x33cf1c=_0x4fa2a5;if(this[_0x33cf1c(0x342)][_0x33cf1c(0x1de)](_0x58d040))return this[_0x33cf1c(0x342)][_0x33cf1c(0x2c0)](_0x58d040);let _0x3275a9=this[_0x33cf1c(0x209)][_0x33cf1c(0x2c0)](_0x58d040);if(_0x3275a9)return _0x3275a9;let _0x203412=this[_0x33cf1c(0x35c)](_0x58d040,_0x260e26);this[_0x33cf1c(0x209)][_0x33cf1c(0x10c)](_0x58d040,_0x203412);try{return await _0x203412;}finally{this[_0x33cf1c(0x209)][_0x33cf1c(0x3ae)](_0x58d040);}}async[_0x4fa2a5(0x35c)](_0x109ecd,_0x1904e4){const _0x5ef0c5=_0x4fa2a5;let _0x2679b9=await this[_0x5ef0c5(0x27e)](_0x109ecd,_0x1904e4),_0x2b864f=this['_getSocketChannel'](_0x2679b9[_0x5ef0c5(0x24c)][_0x5ef0c5(0x13a)]);this['_tryEnsureSocket'](_0x2b864f);let _0x4884e3=this['_injector'][_0x5ef0c5(0x11d)](_0x45e291,_0x2679b9,_0x2b864f['socket$'][_0x5ef0c5(0x343)]());return this[_0x5ef0c5(0x342)][_0x5ef0c5(0x10c)](_0x109ecd,_0x4884e3),this[_0x5ef0c5(0x1e2)]['set'](_0x109ecd,_0x2b864f[_0x5ef0c5(0x11b)]),_0x4884e3;}[_0x4fa2a5(0x284)](_0x562da1){const _0x2a869c=_0x4fa2a5;let _0x26cc30=this[_0x2a869c(0x342)][_0x2a869c(0x2c0)](_0x562da1),_0x3217ed=this[_0x2a869c(0x1e2)][_0x2a869c(0x2c0)](_0x562da1);if(_0x26cc30&&(this[_0x2a869c(0x342)]['delete'](_0x562da1),this[_0x2a869c(0x1e2)][_0x2a869c(0x3ae)](_0x562da1),_0x26cc30['close']()),_0x3217ed&&!this[_0x2a869c(0xab)](_0x3217ed)){var _0x1f774b;let _0x2298c4=this[_0x2a869c(0x32c)][_0x2a869c(0x2c0)](_0x3217ed);_0x2298c4==null||(_0x1f774b=_0x2298c4[_0x2a869c(0x103)][_0x2a869c(0x3ee)]())==null||_0x1f774b[_0x2a869c(0x17d)]();}}[_0x4fa2a5(0x332)](){const _0x3b757e=_0x4fa2a5;(this[_0x3b757e(0x32c)][_0x3b757e(0x1dd)]?[...this[_0x3b757e(0x32c)][_0x3b757e(0x168)]()]:[this[_0x3b757e(0x1d4)](void 0x0)])['forEach'](_0x3c488c=>{const _0x43d4ea=_0x3b757e;_0x3c488c[_0x43d4ea(0x3e6)]=0x0,this[_0x43d4ea(0xe8)](_0x3c488c),this[_0x43d4ea(0xaf)](_0x3c488c);});}[_0x4fa2a5(0xe8)](_0x133ffe){const _0x37ca9c=_0x4fa2a5;_0x133ffe[_0x37ca9c(0x18c)]!=null&&(clearTimeout(_0x133ffe[_0x37ca9c(0x18c)]),_0x133ffe[_0x37ca9c(0x18c)]=null);}async[_0x4fa2a5(0x114)](_0x370195){const _0x427cb9=_0x4fa2a5;let _0x404e4d=this[_0x427cb9(0x1a9)][_0x427cb9(0xd7)](_0x18fed6),_0x2a1e5c=_0x370195[_0x427cb9(0x13a)]??(_0x404e4d==null?void 0x0:_0x404e4d[_0x427cb9(0x2e9)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x4f23de=await this['_socketService'][_0x427cb9(0x21f)](_0x2a1e5c);return _0x370195[_0x427cb9(0xbd)]=_0x4f23de,_0x4f23de;}async[_0x4fa2a5(0x2b9)](_0x24d930){const _0x2c006c=_0x4fa2a5;try{let _0x2f56aa=_0x24d930[_0x2c006c(0x103)][_0x2c006c(0x3ee)]()??_0x24d930['candidateSocket']??await this[_0x2c006c(0x114)](_0x24d930);if(_0x2f56aa){var _0x938e69;let _0x2b9155=_0x2f56aa[_0x2c006c(0x402)];_0x2f56aa[_0x2c006c(0x402)]=_0x1aa686=>(_0x1aa686[_0x2c006c(0x20a)]!==_0x4ed0d4[_0x2c006c(0x35a)][_0x2c006c(0xc9)]&&this['_rescheduleHeartbeat'](_0x24d930),_0x2b9155['apply'](_0x2f56aa,[_0x1aa686])),(_0x938e69=_0x24d930[_0x2c006c(0x12d)])==null||_0x938e69[_0x2c006c(0x3ba)](),_0x24d930[_0x2c006c(0x12d)]=null,_0x24d930[_0x2c006c(0x12d)]=_0x2f56aa[_0x2c006c(0x197)][_0x2c006c(0x252)](_0x17ef04=>this[_0x2c006c(0x35b)](_0x24d930,_0x2f56aa,_0x17ef04)),_0x2f56aa[_0x2c006c(0x124)][_0x2c006c(0x192)]((0x0,_0x223d83['take'])(0x1))[_0x2c006c(0x252)](_0x149f2c=>this[_0x2c006c(0x314)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x149f2c)),_0x2f56aa[_0x2c006c(0x2ff)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](()=>{const _0xdc2553=_0x2c006c;this[_0xdc2553(0x14a)](_0x24d930,_0x2f56aa);}),_0x2f56aa[_0x2c006c(0x33d)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](_0xd30b66=>{const _0x339330=_0x2c006c;this[_0x339330(0x314)][_0x339330(0x23b)](_0x339330(0x418),_0x339330(0x38d),_0xd30b66),this['_onConnectionFailed'](_0x24d930);});}}catch(_0x2a90fb){this[_0x2c006c(0x314)][_0x2c006c(0x187)](_0x2a90fb),this['_onConnectionFailed'](_0x24d930);}}['_onConnectionOpen'](_0x13a19c,_0x31cd85){const _0x3e87f1=_0x4fa2a5;this[_0x3e87f1(0x314)]['debug']('[CollaborationSessionService]','socket\x20open.'),_0x31cd85[_0x3e87f1(0x402)]({'cmd':_0x4ed0d4[_0x3e87f1(0x35a)][_0x3e87f1(0x215)]}),this['_rescheduleHeartbeat'](_0x13a19c);}[_0x4fa2a5(0x254)](_0x40aea7){const _0x24ea5c=_0x4fa2a5;_0x40aea7[_0x24ea5c(0x226)]=!0x1,_0x40aea7['candidateSocket']=null,this['_status$'][_0x24ea5c(0x163)](0x2),_0x40aea7[_0x24ea5c(0x103)][_0x24ea5c(0x163)](null),this['_clearTimeoutTimer'](_0x40aea7),this[_0x24ea5c(0x12a)](_0x40aea7);}['_onConnectionFailed'](_0x156b82){const _0x1b8ba4=_0x4fa2a5;this[_0x1b8ba4(0x254)](_0x156b82),this[_0x1b8ba4(0xab)](_0x156b82[_0x1b8ba4(0x11b)])&&(_0x156b82['retryCount']<(this[_0x1b8ba4(0x1a9)][_0x1b8ba4(0xd7)](_0x1b8ba4(0x3cf))??0x3)?(this['_collaborationUIEventService'][_0x1b8ba4(0x2cf)]({'id':_0x1b8ba4(0x2bc)}),this[_0x1b8ba4(0xaf)](_0x156b82)):this[_0x1b8ba4(0x347)]['emitEvent']({'id':_0x1b8ba4(0x289)}));}[_0x4fa2a5(0xaf)](_0x173c98){const _0x31bca3=_0x4fa2a5;let _0x49b827=_0x173c98[_0x31bca3(0x3e6)],_0x5b2b34=this[_0x31bca3(0x1a9)]['getConfig'](_0x18fed6),_0xf494e3=_0x49b827===0x0?0x0:((_0x5b2b34==null?void 0x0:_0x5b2b34[_0x31bca3(0xa8)])??0x4e20)*0x2**_0x49b827;_0x173c98['retryConnectingTimer']=setTimeout(()=>{const _0x46b07b=_0x31bca3;clearTimeout(_0x173c98[_0x46b07b(0x18c)]),_0x173c98[_0x46b07b(0x18c)]=null,this[_0x46b07b(0x2b9)](_0x173c98);},_0xf494e3),_0x173c98[_0x31bca3(0x3e6)]+=0x1;}async[_0x4fa2a5(0x27e)](_0x503a40,_0x5ba38b){const _0x2e850c=_0x4fa2a5;return _0x5dcc79(_0x503a40,_0x5ba38b,await this[_0x2e850c(0x134)][_0x2e850c(0x33f)]({'unitId':_0x503a40,'unitType':_0x5ba38b}));}[_0x4fa2a5(0x35b)](_0x47ea34,_0x221091,_0x7ceafc){const _0xa5200=_0x4fa2a5;let {cmd:_0x110169}=_0x7ceafc;_0x110169===_0x4ed0d4[_0xa5200(0x35a)][_0xa5200(0x215)]&&!_0x47ea34['socketReady']&&(_0x221091[_0xa5200(0x38b)]=_0x7ceafc[_0xa5200(0x2c7)][_0xa5200(0x38b)],_0x47ea34[_0xa5200(0x3e6)]=0x0,_0x47ea34['socket$']['next'](_0x221091),this[_0xa5200(0x3d1)]['next'](0x3),_0x47ea34['socketReady']=!0x0,_0x47ea34[_0xa5200(0xbd)]=null),_0x110169===_0x4ed0d4[_0xa5200(0x35a)]['HEARTBEAT']&&this['_clearTimeoutTimer'](_0x47ea34),this[_0xa5200(0x36b)](_0x47ea34);}[_0x4fa2a5(0xab)](_0x46a21a){const _0x51d57f=_0x4fa2a5;return[...this[_0x51d57f(0x1e2)]['values']()][_0x51d57f(0x2b5)](_0x2a7850=>_0x2a7850===_0x46a21a);}[_0x4fa2a5(0x1d4)](_0x1ad0f1){const _0x8ec492=_0x4fa2a5;let _0x39f1b3=_0x1ad0f1??'',_0x17691f=this[_0x8ec492(0x32c)][_0x8ec492(0x2c0)](_0x39f1b3);if(_0x17691f)return _0x17691f;let _0x3eeb56={'endpointKey':_0x39f1b3,'endpoint':_0x1ad0f1,'socket$':new _0x450705[(_0x8ec492(0x1f8))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x8ec492(0x32c)][_0x8ec492(0x10c)](_0x39f1b3,_0x3eeb56),_0x3eeb56;}[_0x4fa2a5(0x36b)](_0x2a7875){const _0x3fd774=_0x4fa2a5;this[_0x3fd774(0x12a)](_0x2a7875),_0x2a7875['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2a7875),this[_0x3fd774(0x1a9)][_0x3fd774(0xd7)]('HEARTBEAT_INTERVAL')??0x7530);}[_0x4fa2a5(0x290)](_0x2cff23){const _0x439817=_0x4fa2a5;_0x2cff23[_0x439817(0x103)][_0x439817(0x3ee)]()[_0x439817(0x402)]({'cmd':_0x4ed0d4[_0x439817(0x35a)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2cff23);}[_0x4fa2a5(0xef)](_0x5af192){const _0x4fac99=_0x4fa2a5;_0x5af192['timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](_0x5af192),this[_0x4fac99(0x1a9)][_0x4fac99(0xd7)](_0x4fac99(0x107))??0x4e20);}[_0x4fa2a5(0x12a)](_0x37505a){const _0xc3bd7d=_0x4fa2a5;_0x37505a[_0xc3bd7d(0x25f)]!=null&&(clearTimeout(_0x37505a[_0xc3bd7d(0x25f)]),_0x37505a[_0xc3bd7d(0x25f)]=null);}[_0x4fa2a5(0x1d8)](_0x344f08){const _0x2b197c=_0x4fa2a5;_0x344f08[_0x2b197c(0x344)]!=null&&(clearTimeout(_0x344f08[_0x2b197c(0x344)]),_0x344f08[_0x2b197c(0x344)]=null);}};_0x2b5c76=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,_0x433f65['ILogService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x1121da),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x5,_0x2a5cd3),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x43e589))],_0x2b5c76);let _0x39314f=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x147a91,_0x4e95b2,_0x7ecc26,_0xe0d28f){const _0x2cc805=_0x4fa2a5;var _0x4a81f0;super(),this[_0x2cc805(0x40f)]=_0x147a91,this[_0x2cc805(0x297)]=_0x4e95b2,this[_0x2cc805(0x1a9)]=_0x7ecc26,this[_0x2cc805(0x3f3)]=_0xe0d28f,_0x5aacdf(this,_0x2cc805(0x33a),new Map()),_0x5aacdf(this,_0x2cc805(0x3bd),new _0x450705[(_0x2cc805(0x155))]()),_0x5aacdf(this,_0x2cc805(0x334),this[_0x2cc805(0x3bd)][_0x2cc805(0x343)]()),((_0x4a81f0=this[_0x2cc805(0x1a9)][_0x2cc805(0xd7)](_0x2cc805(0x1b0)))==null?void 0x0:_0x4a81f0[_0x2cc805(0x239)])!==!0x1&&this[_0x2cc805(0x29b)]();}[_0x4fa2a5(0x3b4)](){const _0x2e5ffc=_0x4fa2a5;super['dispose'](),this[_0x2e5ffc(0x33a)][_0x2e5ffc(0x1d2)](_0x290b9e=>_0x290b9e['dispose']()),this['_entities'][_0x2e5ffc(0x2f9)]();}['getCollabEntity'](_0x242a22){const _0x44693e=_0x4fa2a5;return this[_0x44693e(0x33a)][_0x44693e(0x2c0)](_0x242a22)??null;}[_0x4fa2a5(0x3d0)](_0x4f666b){const _0x2583b1=_0x4fa2a5;let _0xd10e91=this[_0x2583b1(0x381)](_0x4f666b);return _0xd10e91?(0x0,_0x450705['of'])(_0xd10e91):this[_0x2583b1(0x3bd)][_0x2583b1(0x192)]((0x0,_0x223d83[_0x2583b1(0x260)])(_0x403cad=>_0x403cad[_0x2583b1(0x210)]===_0x4f666b));}[_0x4fa2a5(0x1fe)](_0x59298d){const _0x4b6a6a=_0x4fa2a5;return(0x0,_0x450705[_0x4b6a6a(0x3d7)])(this[_0x4b6a6a(0x3d0)](_0x59298d)['pipe']((0x0,_0x223d83[_0x4b6a6a(0x224)])(()=>void 0x0)));}['_init'](){const _0x133693=_0x4fa2a5;this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x4f2ba0=>{const _0x426666=_0x133693;let _0x5a526e=_0x4f2ba0['unit'][_0x426666(0xed)](),_0x19ee73=await this[_0x426666(0x105)](_0x5a526e,_0x433f65[_0x426666(0xa5)][_0x426666(0xb4)]);this['_entities'][_0x426666(0x10c)](_0x5a526e,_0x19ee73);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x237)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x192)]((0x0,_0x223d83[_0x133693(0x260)])(_0xbb659b=>!_0xbb659b[_0x133693(0xa4)][_0x133693(0xed)]()[_0x133693(0x143)]('__')))[_0x133693(0x252)](async _0x34fe18=>{const _0x5a5e50=_0x133693;let _0x59a7fc=_0x34fe18[_0x5a5e50(0xa4)][_0x5a5e50(0xed)](),_0x43f561=await this[_0x5a5e50(0x105)](_0x59a7fc,_0x433f65[_0x5a5e50(0xa5)][_0x5a5e50(0x237)]);this[_0x5a5e50(0x33a)][_0x5a5e50(0x10c)](_0x59a7fc,_0x43f561);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x114ed1=>{const _0x2fa3bf=_0x133693;let _0x50fb77=_0x114ed1[_0x2fa3bf(0xa4)][_0x2fa3bf(0xed)](),_0x3a9996=await this[_0x2fa3bf(0x105)](_0x50fb77,_0x433f65[_0x2fa3bf(0xa5)]['UNIVER_SLIDE']);this['_entities'][_0x2fa3bf(0x10c)](_0x50fb77,_0x3a9996);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x169)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x21d190=>{const _0x34301d=_0x133693;let _0x55de0d=_0x21d190[_0x34301d(0xa4)]['getUnitId'](),_0x48ee21=await this[_0x34301d(0x105)](_0x55de0d,_0x433f65['UniverInstanceType']['UNIVER_BOARD']);this[_0x34301d(0x33a)][_0x34301d(0x10c)](_0x55de0d,_0x48ee21);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)])['pipe']((0x0,_0x450705['takeUntil'])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x2404b1=>{const _0x147291=_0x133693;let _0x327331=_0x2404b1[_0x147291(0xa4)][_0x147291(0xed)](),_0xad5c33=await this[_0x147291(0x105)](_0x327331,_0x433f65[_0x147291(0xa5)][_0x147291(0x146)]);this['_entities'][_0x147291(0x10c)](_0x327331,_0xad5c33);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x3ff)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x4646ab=>{const _0x2d4862=_0x133693;let _0x7468b7=_0x4646ab['unit']['getUnitId'](),_0x390f34=await this[_0x2d4862(0x105)](_0x7468b7,_0x433f65[_0x2d4862(0xa5)][_0x2d4862(0x3ff)]);this['_entities'][_0x2d4862(0x10c)](_0x7468b7,_0x390f34);}),(0x0,_0x450705['merge'])(this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)]['UNIVER_DOC']),this[_0x133693(0x3f3)]['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65['UniverInstanceType']['UNIVER_BOARD']),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)]),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65['UniverInstanceType'][_0x133693(0x3ff)]))[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]))[_0x133693(0x252)](_0x14430f=>{const _0xf8c77d=_0x133693;let _0x488407=_0x14430f[_0xf8c77d(0xed)](),_0x2f8823=this[_0xf8c77d(0x33a)]['get'](_0x488407);_0x2f8823&&(_0x2f8823['dispose'](),this['_entities'][_0xf8c77d(0x3ae)](_0x488407));});}async['_startCollaboration'](_0x2e517f,_0x31f940){const _0x426b4f=_0x4fa2a5;let _0x369b2e=await this['_collabSessionService'][_0x426b4f(0x40c)](_0x2e517f),_0x28434c=this[_0x426b4f(0x40f)][_0x426b4f(0x11d)](this[_0x426b4f(0x3d4)](_0x31f940),_0x2e517f,_0x31f940,_0x369b2e);return await _0x28434c[_0x426b4f(0x2ef)](),this[_0x426b4f(0x3bd)][_0x426b4f(0x163)](_0x28434c),_0x28434c;}[_0x4fa2a5(0x3d4)](_0x1a2cc9){const _0x35ab52=_0x4fa2a5;switch(_0x1a2cc9){case _0x433f65[_0x35ab52(0xa5)]['UNIVER_DOC']:return _0x31d725;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0xb4)]:return _0x89772b;case _0x433f65['UniverInstanceType'][_0x35ab52(0xcd)]:return _0x1b8073;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x169)]:return _0x1dc09d;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x146)]:return _0x53717a;case _0x433f65['UniverInstanceType'][_0x35ab52(0x3ff)]:return _0x25572c;default:throw Error(_0x35ab52(0x2fd)+_0x1a2cc9);}}};_0x39314f=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x2b5c76)),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x39b)])],_0x39314f);var _0x434948=_0x4fa2a5(0x1c4),_0x11be1f='1.0.2';let _0x1c06e7=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x48f311,_0x221e06){const _0x5696d0=_0x4fa2a5;super(),this[_0x5696d0(0x3f3)]=_0x48f311,this['_configService']=_0x221e06,this[_0x5696d0(0x29b)]();}[_0x4fa2a5(0x29b)](){const _0x510e2e=_0x4fa2a5;this['disposeWithMe'](this['_univerInstanceService'][_0x510e2e(0x2d6)]['subscribe'](()=>{const _0x11c353=_0x510e2e;let _0x2179e4=this['_univerInstanceService'][_0x11c353(0x2f5)](),_0x5f584c=this[_0x11c353(0x1a9)][_0x11c353(0xd7)](_0x11c353(0x2d3))??_0x11c353(0x22b);_0x2179e4 instanceof _0x433f65['Workbook']&&(_0x5f584c=_0x2179e4[_0x11c353(0x341)]),document[_0x11c353(0x22a)]=_0x5f584c;}));}};_0x1c06e7=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)])],_0x1c06e7);let _0x495c62=(0x0,_0x433f65[_0x4fa2a5(0xad)])('base-ui.attachment-io.service'),_0x3f38f5=class{constructor(_0x5bf7c4,_0xe3df97,_0x491ea4){const _0x325555=_0x4fa2a5;this['_httpService']=_0x5bf7c4,this[_0x325555(0x1a9)]=_0xe3df97,this[_0x325555(0x3f3)]=_0x491ea4;}[_0x4fa2a5(0x3fd)](){const _0xc1cc09=_0x4fa2a5;return this[_0xc1cc09(0x1e9)]()[_0xc1cc09(0x3a8)]??{};}async[_0x4fa2a5(0x12f)](_0x5b84bc){const _0x42b627=_0x4fa2a5;let _0x50e668=this[_0x42b627(0x3fd)]();if(_0xca792d(_0x5b84bc,_0x50e668),_0x50e668[_0x42b627(0x24e)])return _0x50e668[_0x42b627(0x24e)](_0x5b84bc);let _0xe389c9=await this[_0x42b627(0x2e2)](_0x5b84bc);return{'id':_0xe389c9,'name':_0x5b84bc[_0x42b627(0x341)],'mimeType':_0x5b84bc[_0x42b627(0x3c6)],'size':_0x5b84bc[_0x42b627(0x1dd)],'sourceType':_0x433f65['ImageSourceType'][_0x42b627(0x2b3)],'source':_0xe389c9};}async[_0x4fa2a5(0x41a)](_0x6f07f9,_0x56a7fc){const _0xda000=_0x4fa2a5;if(_0x56a7fc!==_0x433f65[_0xda000(0x17b)][_0xda000(0x2b3)])return _0x6f07f9;let _0x1a3db5=(await this[_0xda000(0x33c)][_0xda000(0x2c0)](this['_getSignURL']()[_0xda000(0x3cd)](_0xda000(0x30d),_0x6f07f9)))[_0xda000(0x280)];if(_0x1a3db5['error']&&_0x1a3db5['error'][_0xda000(0xb6)]!==_0x4ed0d4[_0xda000(0x326)]['OK'])throw _0x1a3db5['error'];if(!_0x1a3db5[_0xda000(0x345)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x433f65[_0xda000(0x28a)])(_0x1a3db5['url'],this[_0xda000(0x2d1)]());}async[_0x4fa2a5(0x2e2)](_0x387e7b){const _0x5d6cbc=_0x4fa2a5;let _0x3ea207=this[_0x5d6cbc(0x3f3)][_0x5d6cbc(0x2f5)](),_0x42cf06=_0x3ea207==null?void 0x0:_0x3ea207['getUnitId']();if(!_0x42cf06)throw Error(_0x5d6cbc(0x1b5));let _0x5eb983=new FormData();_0x5eb983[_0x5d6cbc(0x3c4)](_0x5d6cbc(0x173),_0x387e7b);let _0x9e8135=this['_getUploadFileURL']()+_0x5d6cbc(0x131)+_0x387e7b['size'][_0x5d6cbc(0x172)]()+_0x5d6cbc(0x19d)+_0x4ed0d4[_0x5d6cbc(0x158)][_0x5d6cbc(0x375)]+'&assign='+encodeURIComponent(_0x42cf06),_0x41c8ad=(await this['_httpService'][_0x5d6cbc(0x201)](_0x9e8135,{'body':_0x5eb983}))[_0x5d6cbc(0x280)][_0x5d6cbc(0x219)];if(typeof _0x41c8ad!=_0x5d6cbc(0x265)||!_0x41c8ad)throw Error(_0x5d6cbc(0x3b9));return _0x41c8ad;}['_getUploadFileURL'](){const _0x53594d=_0x4fa2a5;return this[_0x53594d(0x1e9)]()[_0x53594d(0x2de)]??_0x53594d(0x329);}[_0x4fa2a5(0x2f6)](){const _0x8e98f7=_0x4fa2a5;return this[_0x8e98f7(0x1e9)]()[_0x8e98f7(0x362)]??_0x8e98f7(0x338);}['_getDownloadEndpointURL'](){const _0x5d2fee=_0x4fa2a5;let _0x518409=this[_0x5d2fee(0x1e9)]();return _0x518409[_0x5d2fee(0x18f)]?_0x518409['downloadEndpointUrl']:typeof location<'u'?location[_0x5d2fee(0x1b7)]:_0x518409[_0x5d2fee(0x2de)]??'';}['_getConfig'](){const _0x39dba5=_0x4fa2a5;return this[_0x39dba5(0x1a9)]['getConfig'](_0x39dba5(0x1b0))??{};}};_0x3f38f5=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x39b)]))],_0x3f38f5);function _0xca792d(_0x485c20,_0xc051ed){const _0x1e0b9f=_0x4fa2a5;var _0x3ffe86;if(_0xc051ed[_0x1e0b9f(0x37c)]!=null&&_0x485c20['size']>_0xc051ed['maxSize'])throw Error(_0x1e0b9f(0x2f8));if((_0x3ffe86=_0xc051ed[_0x1e0b9f(0x3d3)])!=null&&_0x3ffe86[_0x1e0b9f(0x208)]&&!_0xc051ed['accept'][_0x1e0b9f(0x2b5)](_0x508ae9=>_0x485c20[_0x1e0b9f(0x3c6)]===_0x508ae9||_0x485c20[_0x1e0b9f(0x341)][_0x1e0b9f(0x171)](_0x508ae9)||_0x508ae9[_0x1e0b9f(0x171)]('/*')&&_0x485c20[_0x1e0b9f(0x3c6)][_0x1e0b9f(0x143)](_0x508ae9[_0x1e0b9f(0x1b2)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x4aff48=class{constructor(_0x3ec08a,_0x18b991,_0x8b8416){const _0x44505f=_0x4fa2a5;this[_0x44505f(0x1a9)]=_0x3ec08a,this['_httpService']=_0x18b991,this[_0x44505f(0x26a)]=_0x8b8416,this[_0x44505f(0x2ef)]();}[_0x4fa2a5(0x2ef)](){const _0x14f2cb=_0x4fa2a5;this[_0x14f2cb(0x33c)][_0x14f2cb(0x3f1)]({'priority':0x1,'interceptor':(_0x3c0fcc,_0x5561a9)=>_0x5561a9(_0x3c0fcc)['pipe']((0x0,_0x450705[_0x14f2cb(0x1c9)])(async _0x1a99c2=>{const _0x3b0c4e=_0x14f2cb;let _0x774a82=_0x1a99c2;if(_0x774a82[_0x3b0c4e(0x1e8)]===0x191){if(typeof window>'u')throw Error(_0x3b0c4e(0x1fa));if(window[_0x3b0c4e(0x165)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x296b69=window[_0x3b0c4e(0x351)](window[_0x3b0c4e(0x31e)]['href']);window[_0x3b0c4e(0x31e)][_0x3b0c4e(0x3f2)]=this['_getLoginPath']()+_0x3b0c4e(0x1d5)+_0x296b69;}}return _0x774a82;}))});}[_0x4fa2a5(0xfe)](){const _0x45ce31=_0x4fa2a5;let _0x4c8c33=this['_configService'][_0x45ce31(0xd7)](_0x18fed6);return(_0x4c8c33==null?void 0x0:_0x4c8c33[_0x45ce31(0x310)])??_0x45ce31(0x363);}};_0x4aff48=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24['HTTPService'])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)]))],_0x4aff48);let _0x5b1470=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x5cab58,_0x4c1a96){const _0x330fb4=_0x4fa2a5;super(),this[_0x330fb4(0x2c9)]=_0x5cab58,this[_0x330fb4(0x1a9)]=_0x4c1a96,_0x5aacdf(this,_0x330fb4(0x315),!0x1),this[_0x330fb4(0x2ba)]();}[_0x4fa2a5(0x2ba)](){const _0xf79993=_0x4fa2a5;let _0x1ea0f3=this;this[_0xf79993(0x413)](this[_0xf79993(0x2c9)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x544d24['MergeInterceptorFactory'])({'isMatch'(_0x59caae){const _0x2245ee=_0xf79993;var _0x180caf;if(_0x59caae[_0x2245ee(0x12b)]===_0x2245ee(0x365)&&(_0x180caf=_0x59caae[_0x2245ee(0xc7)])!=null&&_0x180caf[_0x2245ee(0x280)]){let {objectID:_0x27a6b4,objectType:_0x2d5779}=_0x59caae[_0x2245ee(0xc7)]['body']||{};if(!_0x27a6b4||_0x2d5779===void 0x0)return!0x1;let _0x3a5e98=_0x1ea0f3[_0x2245ee(0x213)]()+'/'+_0x2d5779+'/object/'+encodeURIComponent(_0x27a6b4)+_0x2245ee(0x123);if(_0x59caae[_0x2245ee(0x345)]===_0x3a5e98)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x34b67f){const _0x5bddb6=_0xf79993;var _0x9e0fbf;return(_0x9e0fbf=_0x34b67f['requestParams'])==null?void 0x0:_0x9e0fbf[_0x5bddb6(0x280)];},'mergeParamsToRequest'(_0x3388bd,_0x242116){const _0x240687=_0xf79993;let _0x5d65fc=_0x1ea0f3[_0x240687(0x213)]()+_0x240687(0xd8),_0x1b78c8=_0x3388bd['reduce']((_0x4f3b85,_0x21b233)=>{const _0x542db5=_0x240687;let {unitID:_0x270cae,objectID:_0x3e9468,objectType:_0x36eaf7,actions:_0x163ae9}=_0x21b233;return _0x4f3b85[_0x270cae]||(_0x4f3b85[_0x270cae]=Object[_0x542db5(0x1a2)](null)),_0x4f3b85[_0x270cae][_0x3e9468]||(_0x4f3b85[_0x270cae][_0x3e9468]={'objectID':_0x3e9468,'objectType':_0x36eaf7,'actions':[]}),_0x4f3b85[_0x270cae][_0x3e9468]['actions'][_0x542db5(0x227)](..._0x163ae9),_0x4f3b85;},Object['create'](null)),_0x5dc823=[];for(let _0x420e09 in _0x1b78c8)for(let _0x9da7b9 in _0x1b78c8[_0x420e09]){let {actions:_0x127cc0,objectType:_0xb66477}=_0x1b78c8[_0x420e09][_0x9da7b9],_0x474ed9=[...new Set(_0x127cc0)];_0x5dc823['push']({'unitID':_0x420e09,'objectID':_0x9da7b9,'objectType':_0xb66477,'actions':_0x474ed9});}return new _0x544d24[(_0x240687(0x204))](_0x240687(0x365),_0x5d65fc,{'headers':_0x242116[_0x240687(0x17e)],'withCredentials':_0x242116[_0x240687(0x13e)],'responseType':_0x242116[_0x240687(0x3c7)],'body':{'requests':_0x5dc823}});}},{'distributeResult'(_0x14cb78,_0x210add){let {objectActions:_0x5daeee}=_0x14cb78;return _0x210add['map'](_0x1cf044=>{const _0x25aa00=_0x5846;let {unitID:_0x212002,objectID:_0x307eb2,actions:_0x52a02b}=_0x1cf044,_0x3d8656=_0x5daeee[_0x25aa00(0x101)](_0x47b701=>_0x47b701[_0x25aa00(0x210)]===_0x212002&&_0x47b701[_0x25aa00(0x2e7)]===_0x307eb2);return{'config':_0x1cf044,'result':{'actions':_0x52a02b['map'](_0x33d0c9=>_0x3d8656==null?void 0x0:_0x3d8656[_0x25aa00(0x30a)][_0x25aa00(0x101)](_0x5dbc8e=>_0x5dbc8e['action']===_0x33d0c9))['filter'](_0x1676c1=>!!_0x1676c1),'error':_0x14cb78['error']}};});}})}));}[_0x4fa2a5(0x213)](){const _0x5b21c7=_0x4fa2a5;let _0xcabaaa=this[_0x5b21c7(0x1a9)][_0x5b21c7(0xd7)](_0x18fed6);return(_0xcabaaa==null?void 0x0:_0xcabaaa[_0x5b21c7(0x301)])??_0x5b21c7(0xca);}async['create'](_0x47e23a){const _0x4a170e=_0x4fa2a5;let _0x23345b=this[_0x4a170e(0x213)]()+'/'+_0x47e23a[_0x4a170e(0xeb)]+'/object';return(await this[_0x4a170e(0x2c9)][_0x4a170e(0x201)](_0x23345b,{'body':_0x47e23a}))[_0x4a170e(0x280)]['objectID']||'';}async[_0x4fa2a5(0x2d8)](_0x37e8ec){const _0x354e95=_0x4fa2a5;let _0x523627=this[_0x354e95(0x213)]()+_0x354e95(0x308);return(await this['_HTTPService'][_0x354e95(0x201)](_0x523627,{'body':_0x37e8ec}))['body'][_0x354e95(0x34a)];}async[_0x4fa2a5(0x148)](_0x4aad78){const _0x4bd44f=_0x4fa2a5;var _0xcc9826;let _0x3eb861=this['_getAPIPrefixPath']()+'/'+_0x4aad78[_0x4bd44f(0xeb)]+_0x4bd44f(0x316)+encodeURIComponent(_0x4aad78[_0x4bd44f(0x2e7)]),_0x8ad2aa=await this[_0x4bd44f(0x2c9)]['put'](_0x3eb861,{'body':_0x4aad78});if((_0x8ad2aa==null||(_0xcc9826=_0x8ad2aa[_0x4bd44f(0x280)])==null||(_0xcc9826=_0xcc9826[_0x4bd44f(0x187)])==null?void 0x0:_0xcc9826[_0x4bd44f(0xb6)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x4fa2a5(0x137)](_0x49004d){const _0x2ae321=_0x4fa2a5;let _0x2d9a40=this[_0x2ae321(0x213)]()+'/'+_0x49004d[_0x2ae321(0xeb)]+_0x2ae321(0x316)+encodeURIComponent(_0x49004d['objectID'])+'/allowed';return(await this['_HTTPService'][_0x2ae321(0x201)](_0x2d9a40,{'body':_0x49004d}))[_0x2ae321(0x280)]['actions'];}async[_0x4fa2a5(0xe6)](_0x256246){const _0x562b2b=_0x4fa2a5;let _0x3a9814=this[_0x562b2b(0x213)]()+_0x562b2b(0xd8);return(await this[_0x562b2b(0x2c9)][_0x562b2b(0x201)](_0x3a9814,{'body':{'requests':_0x256246}}))[_0x562b2b(0x280)][_0x562b2b(0x2a4)];}async['listRoles'](_0x59451d){const _0x287b8f=_0x4fa2a5;let _0x585fac=this[_0x287b8f(0x213)]()+'/'+_0x59451d['objectType']+'/role',_0x4387c7=await this[_0x287b8f(0x2c9)][_0x287b8f(0x201)](_0x585fac,{'body':_0x59451d});return{'roles':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x348)],'actions':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x30a)]};}async[_0x4fa2a5(0x179)](_0x34b7c0){const _0x436391=_0x4fa2a5;let _0x333372=this[_0x436391(0x213)]()+_0x436391(0x225);await this[_0x436391(0x2c9)][_0x436391(0x3ae)](_0x333372,{'params':{'collaboratorID':_0x34b7c0[_0x436391(0x389)],'objectID':_0x34b7c0[_0x436391(0x2e7)],'unitID':_0x34b7c0[_0x436391(0x210)]}});}async[_0x4fa2a5(0x3e2)](_0x8e4296){const _0x15509f=_0x4fa2a5;let _0x9faf30=this[_0x15509f(0x213)]()+'/collaborator';await this[_0x15509f(0x2c9)]['patch'](_0x9faf30,{'body':_0x8e4296});}async[_0x4fa2a5(0x181)](_0x4df8dc){const _0x3ca48c=_0x4fa2a5;let _0x5da32a=this['_getAPIPrefixPath']()+_0x3ca48c(0x225);await this[_0x3ca48c(0x2c9)][_0x3ca48c(0x201)](_0x5da32a,{'body':_0x4df8dc});}async[_0x4fa2a5(0x266)](_0x152511){const _0x32834c=_0x4fa2a5;let _0x4249dd=this[_0x32834c(0x213)]()+_0x32834c(0x225),_0x38ec51=await this['_HTTPService'][_0x32834c(0x2c0)](_0x4249dd,{'params':{'objectID':_0x152511['objectID'],'unitID':_0x152511[_0x32834c(0x210)]}});return this['setCfgEnableObjInherit'](_0x38ec51[_0x32834c(0x280)][_0x32834c(0x3b7)]??!0x1),_0x38ec51[_0x32834c(0x280)]['collaborators'];}async[_0x4fa2a5(0x2ce)](_0xdd7918){const _0x56245a=_0x4fa2a5;let _0x583e1c=this[_0x56245a(0x213)]()+'/collaborator';await this['_HTTPService'][_0x56245a(0x2e0)](_0x583e1c,{'body':_0xdd7918});}['setCfgEnableObjInherit'](_0x1bc54e){const _0x53a67d=_0x4fa2a5;this[_0x53a67d(0x315)]=_0x1bc54e;}[_0x4fa2a5(0x36c)](){return this['_cfgEnableObjInherit'];}};_0x5b1470=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)]))],_0x5b1470);function _0x66f7a1(_0x45def9){const _0x2694ad=_0x4fa2a5;return _0x45def9 instanceof Uint8Array||ArrayBuffer['isView'](_0x45def9)&&_0x45def9['constructor']['name']===_0x2694ad(0xde)&&_0x2694ad(0x23f)in _0x45def9&&_0x45def9[_0x2694ad(0x23f)]===0x1;}let _0x41d565=_0x4863e2=>_0x4863e2?'\x22'+_0x4863e2+'\x22\x20':'';function _0x42aebd(_0x17c1f8,_0x1857b4=''){const _0x50a949=_0x4fa2a5;if(typeof _0x17c1f8!=_0x50a949(0x374))throw TypeError(_0x41d565(_0x1857b4)+'expected\x20number,\x20got\x20'+typeof _0x17c1f8);if(!Number['isSafeInteger'](_0x17c1f8)||_0x17c1f8<0x0)throw RangeError(_0x41d565(_0x1857b4)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x17c1f8);return _0x17c1f8;}function _0x9aeef9(_0x22800f,_0x2fde33,_0x524e73=''){const _0x391569=_0x4fa2a5;if(_0x66f7a1(_0x22800f)&&(_0x2fde33===void 0x0||_0x22800f['length']===_0x2fde33))return _0x22800f;_0x2fde33!==void 0x0&&_0x42aebd(_0x2fde33,'length');let _0x10a2c4=_0x66f7a1(_0x22800f),_0x3cb26c=_0x2fde33===void 0x0?'':_0x391569(0x39e)+_0x2fde33,_0x33aaea=_0x10a2c4?_0x391569(0xd5)+_0x22800f[_0x391569(0x208)]:'type='+typeof _0x22800f,_0x56bf05=_0x41d565(_0x524e73)+'expected\x20Uint8Array'+_0x3cb26c+_0x391569(0x154)+_0x33aaea;throw _0x10a2c4?RangeError(_0x56bf05):TypeError(_0x56bf05);}function _0x10e10c(_0x8f8e20){const _0x5bac0e=_0x4fa2a5;return new Uint32Array(_0x8f8e20['buffer'],_0x8f8e20[_0x5bac0e(0x272)],Math['floor'](_0x8f8e20[_0x5bac0e(0x29a)]/0x4));}function _0x39afad(..._0xe1b20){const _0x546635=_0x4fa2a5;for(let _0x1bce7f=0x0;_0x1bce7f<_0xe1b20[_0x546635(0x208)];_0x1bce7f++)_0xe1b20[_0x1bce7f]['fill'](0x0);}let _0x6c24=new Uint8Array(new Uint32Array([0x11223344])[_0x4fa2a5(0x18e)])[0x0]===0x44;function _0x372bc6(_0x57266c){return _0x57266c<<0x18&0xff000000|_0x57266c<<0x8&0xff0000|_0x57266c>>>0x8&0xff00|_0x57266c>>>0x18&0xff;}function _0x44655d(_0x5e3073){for(let _0x29f2f2=0x0;_0x29f2f2<_0x5e3073['length'];_0x29f2f2++)_0x5e3073[_0x29f2f2]=_0x372bc6(_0x5e3073[_0x29f2f2]);return _0x5e3073;}let _0x3f32bc=_0x6c24?_0x2d4fba=>_0x2d4fba:_0x44655d;function _0x38f376(_0x3f6cd2){const _0x428784=_0x4fa2a5;if(typeof _0x3f6cd2!='string')throw TypeError(_0x428784(0x275));return new Uint8Array(new TextEncoder()[_0x428784(0x382)](_0x3f6cd2));}function _0x30a19e(_0x1d8591,_0x53a145){const _0x2b62c1=_0x4fa2a5;return!_0x1d8591[_0x2b62c1(0x29a)]||!_0x53a145[_0x2b62c1(0x29a)]?!0x1:_0x1d8591[_0x2b62c1(0x18e)]===_0x53a145[_0x2b62c1(0x18e)]&&_0x1d8591['byteOffset']<_0x53a145[_0x2b62c1(0x272)]+_0x53a145[_0x2b62c1(0x29a)]&&_0x53a145[_0x2b62c1(0x272)]<_0x1d8591[_0x2b62c1(0x272)]+_0x1d8591[_0x2b62c1(0x29a)];}function _0x33d077(_0x1158ce,_0x3e8b67){const _0xdb53cc=_0x4fa2a5;if(_0x30a19e(_0x1158ce,_0x3e8b67)&&_0x1158ce[_0xdb53cc(0x272)]<_0x3e8b67[_0xdb53cc(0x272)])throw Error(_0xdb53cc(0x2b4));}function _0x24f204(..._0x2dc00b){const _0x22518f=_0x4fa2a5;let _0x4962af=0x0;for(let _0xcb11dc=0x0;_0xcb11dc<_0x2dc00b['length'];_0xcb11dc++){let _0x1769c2=_0x2dc00b[_0xcb11dc];_0x9aeef9(_0x1769c2),_0x4962af+=_0x1769c2[_0x22518f(0x208)];}let _0x23e741=new Uint8Array(_0x4962af);for(let _0x3c517b=0x0,_0x5a09a3=0x0;_0x3c517b<_0x2dc00b[_0x22518f(0x208)];_0x3c517b++){let _0x4449f3=_0x2dc00b[_0x3c517b];_0x23e741[_0x22518f(0x10c)](_0x4449f3,_0x5a09a3),_0x5a09a3+=_0x4449f3[_0x22518f(0x208)];}return _0x23e741;}let _0x28f13a=(_0x1278b0,_0x1a76a5)=>{const _0x2533f2=_0x4fa2a5;function _0x5582af(_0x208196,..._0x39c876){const _0x5abcba=_0x5846;if(_0x9aeef9(_0x208196,void 0x0,_0x5abcba(0x41b)),_0x1278b0['nonceLength']!==void 0x0){let _0x3f5344=_0x39c876[0x0];_0x9aeef9(_0x3f5344,_0x1278b0[_0x5abcba(0x262)]?void 0x0:_0x1278b0[_0x5abcba(0xdc)],_0x5abcba(0x305));}let _0x41296b=_0x1278b0[_0x5abcba(0x18a)],_0x56d60a=_0x1278b0[_0x5abcba(0xdc)]===void 0x0?0x0:0x1;if(!_0x1278b0[_0x5abcba(0x395)]){for(let _0x570b3c=_0x56d60a;_0x570b3c<_0x39c876['length'];_0x570b3c++)if(_0x66f7a1(_0x39c876[_0x570b3c]))throw Error('AAD\x20not\x20supported');}_0x1278b0[_0x5abcba(0x395)]&&_0x39c876[_0x56d60a]!==void 0x0&&_0x9aeef9(_0x39c876[_0x56d60a],void 0x0,_0x5abcba(0x196));let _0xb4e6c7=_0x1a76a5(_0x208196,..._0x39c876),_0xcb4fdb=(_0x24c26d,_0xd9c8aa)=>{const _0x38f8e8=_0x5abcba;if(_0xd9c8aa!==void 0x0){if(_0x24c26d!==0x2)throw Error(_0x38f8e8(0x11c));_0x9aeef9(_0xd9c8aa,void 0x0,'output');}},_0x1cf0e3=!0x1;return{'encrypt'(_0xe12c8c,_0xf820c6){const _0x1eded5=_0x5abcba;if(_0x1cf0e3)throw Error(_0x1eded5(0x38f));return _0x1cf0e3=!0x0,_0x9aeef9(_0xe12c8c,void 0x0,'data'),_0xcb4fdb(_0xb4e6c7['encrypt'][_0x1eded5(0x208)],_0xf820c6),_0xb4e6c7['encrypt'](_0xe12c8c,_0xf820c6);},'decrypt'(_0x13ec72,_0x5efa21){const _0x290705=_0x5abcba;if(_0x9aeef9(_0x13ec72,void 0x0,_0x290705(0x2c7)),_0x41296b&&_0x13ec72[_0x290705(0x208)]<_0x41296b)throw Error('\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength='+_0x41296b);return _0xcb4fdb(_0xb4e6c7[_0x290705(0x12e)][_0x290705(0x208)],_0x5efa21),_0xb4e6c7[_0x290705(0x12e)](_0x13ec72,_0x5efa21);}};}return Object[_0x2533f2(0x317)](_0x5582af,_0x1278b0),_0x5582af;};function _0x5e877e(_0x94847c,_0x3a1ce4,_0x1a265d=!0x0){const _0xdc5890=_0x4fa2a5;if(_0x3a1ce4===void 0x0)return new Uint8Array(_0x94847c);if(_0x9aeef9(_0x3a1ce4,_0x94847c,_0xdc5890(0x307)),_0x1a265d&&!_0x541e5f(_0x3a1ce4))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x3a1ce4;}function _0x541e5f(_0x5dbbcb){const _0x4cbbd2=_0x4fa2a5;return _0x5dbbcb[_0x4cbbd2(0x272)]%0x4==0x0;}function _0x17e0a5(_0x2b84c6){return Uint8Array['from'](_0x9aeef9(_0x2b84c6));}function _0x381ba2(_0x4fd5d5=0x20){const _0x5a5766=_0x4fa2a5;_0x42aebd(_0x4fd5d5,_0x5a5766(0x1a5));let _0x486543=typeof globalThis==_0x5a5766(0x221)?globalThis[_0x5a5766(0xcc)]:null;if(typeof(_0x486543==null?void 0x0:_0x486543[_0x5a5766(0x190)])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x4fd5d5>0x10000)throw RangeError(_0x5a5766(0x302)+_0x4fd5d5);return _0x486543[_0x5a5766(0x190)](new Uint8Array(_0x4fd5d5));}function _0x15ba46(_0x22ab0f){const _0x50e852=_0x4fa2a5;if(![0x10,0x18,0x20][_0x50e852(0x3ce)](_0x22ab0f[_0x50e852(0x208)]))throw Error(_0x50e852(0x1b6)+_0x22ab0f['length']);}function _0x511e71(_0x267b7e){return _0x267b7e<<0x1^0x11b&-(_0x267b7e>>0x7);}function _0x2ad33e(_0x5967e1,_0x10c9e3){let _0x566963=0x0;for(;_0x10c9e3>0x0;_0x10c9e3>>=0x1)_0x566963^=_0x5967e1&-(_0x10c9e3&0x1),_0x5967e1=_0x511e71(_0x5967e1);return _0x566963;}let _0x1be0a3=((()=>{let _0x277c91=new Uint8Array(0x100);for(let _0x123655=0x0,_0x56e1dc=0x1;_0x123655<0x100;_0x123655++,_0x56e1dc^=_0x511e71(_0x56e1dc))_0x277c91[_0x123655]=_0x56e1dc;let _0x291482=new Uint8Array(0x100);_0x291482[0x0]=0x63;for(let _0x28faa8=0x0;_0x28faa8<0xff;_0x28faa8++){let _0x4fd8e2=_0x277c91[0xff-_0x28faa8];_0x4fd8e2|=_0x4fd8e2<<0x8,_0x291482[_0x277c91[_0x28faa8]]=(_0x4fd8e2^_0x4fd8e2>>0x4^_0x4fd8e2>>0x5^_0x4fd8e2>>0x6^_0x4fd8e2>>0x7^0x63)&0xff;}return _0x39afad(_0x277c91),_0x291482;})()),_0x12c2d1=_0x1be0a3[_0x4fa2a5(0x224)]((_0x276075,_0x3bd99f)=>_0x1be0a3[_0x4fa2a5(0x3e1)](_0x3bd99f)),_0x3e91ed=_0x4007f=>_0x4007f<<0x18|_0x4007f>>>0x8,_0x2ebf87=_0x268244=>_0x268244<<0x8|_0x268244>>>0x18;function _0x5cb8b1(_0x253f9c,_0x40841f){const _0xdd543f=_0x4fa2a5;if(_0x253f9c[_0xdd543f(0x208)]!==0x100)throw Error(_0xdd543f(0x37b));let _0x22fb50=new Uint32Array(0x100)['map']((_0xfd826e,_0xa638ce)=>_0x40841f(_0x253f9c[_0xa638ce])),_0xc6223c=_0x22fb50['map'](_0x2ebf87),_0x1b5f6c=_0xc6223c['map'](_0x2ebf87),_0x520d28=_0x1b5f6c[_0xdd543f(0x224)](_0x2ebf87),_0x5b50bc=new Uint32Array(0x10000),_0x1c3da7=new Uint32Array(0x10000),_0x122a31=new Uint16Array(0x10000);for(let _0x11a4b2=0x0;_0x11a4b2<0x100;_0x11a4b2++)for(let _0x305263=0x0;_0x305263<0x100;_0x305263++){let _0x8551ee=_0x11a4b2*0x100+_0x305263;_0x5b50bc[_0x8551ee]=_0x22fb50[_0x11a4b2]^_0xc6223c[_0x305263],_0x1c3da7[_0x8551ee]=_0x1b5f6c[_0x11a4b2]^_0x520d28[_0x305263],_0x122a31[_0x8551ee]=_0x253f9c[_0x11a4b2]<<0x8|_0x253f9c[_0x305263];}return{'sbox':_0x253f9c,'sbox2':_0x122a31,'T0':_0x22fb50,'T1':_0xc6223c,'T2':_0x1b5f6c,'T3':_0x520d28,'T01':_0x5b50bc,'T23':_0x1c3da7};}let _0x4fb346=_0x5cb8b1(_0x1be0a3,_0x2cae9b=>_0x2ad33e(_0x2cae9b,0x3)<<0x18|_0x2cae9b<<0x10|_0x2cae9b<<0x8|_0x2ad33e(_0x2cae9b,0x2)),_0x1f171e=_0x5cb8b1(_0x12c2d1,_0x2d98f8=>_0x2ad33e(_0x2d98f8,0xb)<<0x18|_0x2ad33e(_0x2d98f8,0xd)<<0x10|_0x2ad33e(_0x2d98f8,0x9)<<0x8|_0x2ad33e(_0x2d98f8,0xe)),_0x48b978=((()=>{let _0x13cef6=new Uint8Array(0x10);for(let _0x1cc35a=0x0,_0x296ec5=0x1;_0x1cc35a<0x10;_0x1cc35a++,_0x296ec5=_0x511e71(_0x296ec5))_0x13cef6[_0x1cc35a]=_0x296ec5;return _0x13cef6;})());function _0x996450(_0x27de13){const _0x560af2=_0x4fa2a5;_0x9aeef9(_0x27de13);let _0x370b6d=_0x27de13[_0x560af2(0x208)];_0x15ba46(_0x27de13);let {sbox2:_0x4e4d84}=_0x4fb346,_0x3e548f=[];(!_0x6c24||!_0x541e5f(_0x27de13))&&_0x3e548f[_0x560af2(0x227)](_0x27de13=_0x17e0a5(_0x27de13));let _0xded20d=_0x3f32bc(_0x10e10c(_0x27de13)),_0xbd30ef=_0xded20d[_0x560af2(0x208)],_0xb82a8=_0x4bf6af=>_0xcc15aa(_0x4e4d84,_0x4bf6af,_0x4bf6af,_0x4bf6af,_0x4bf6af),_0x4050f0=new Uint32Array(_0x370b6d+0x1c);_0x4050f0[_0x560af2(0x10c)](_0xded20d);for(let _0x71333d=_0xbd30ef;_0x71333d<_0x4050f0['length'];_0x71333d++){let _0x974034=_0x4050f0[_0x71333d-0x1];_0x71333d%_0xbd30ef===0x0?_0x974034=_0xb82a8(_0x3e91ed(_0x974034))^_0x48b978[_0x71333d/_0xbd30ef-0x1]:_0xbd30ef>0x6&&_0x71333d%_0xbd30ef===0x4&&(_0x974034=_0xb82a8(_0x974034)),_0x4050f0[_0x71333d]=_0x4050f0[_0x71333d-_0xbd30ef]^_0x974034;}return _0x39afad(..._0x3e548f),_0x4050f0;}function _0xbf30f9(_0x255025){const _0x686dcf=_0x4fa2a5;let _0x2a0a58=_0x996450(_0x255025),_0x46cf0e=_0x2a0a58[_0x686dcf(0x1b2)](),_0x29431b=_0x2a0a58[_0x686dcf(0x208)],{sbox2:_0x2d3ed9}=_0x4fb346,{T0:_0x436809,T1:_0x36f200,T2:_0x2980e7,T3:_0x3a12de}=_0x1f171e;for(let _0x7b5061=0x0;_0x7b5061<_0x29431b;_0x7b5061+=0x4)for(let _0x52acac=0x0;_0x52acac<0x4;_0x52acac++)_0x46cf0e[_0x7b5061+_0x52acac]=_0x2a0a58[_0x29431b-_0x7b5061-0x4+_0x52acac];_0x39afad(_0x2a0a58);for(let _0xd2071=0x4;_0xd2071<_0x29431b-0x4;_0xd2071++){let _0x5b72fd=_0x46cf0e[_0xd2071],_0x2b42df=_0xcc15aa(_0x2d3ed9,_0x5b72fd,_0x5b72fd,_0x5b72fd,_0x5b72fd);_0x46cf0e[_0xd2071]=_0x436809[_0x2b42df&0xff]^_0x36f200[_0x2b42df>>>0x8&0xff]^_0x2980e7[_0x2b42df>>>0x10&0xff]^_0x3a12de[_0x2b42df>>>0x18];}return _0x46cf0e;}function _0x4a3c47(_0x233b85,_0x11f9bb,_0x934b55,_0x25134a,_0x15f2f1,_0x9d1b45){return _0x233b85[_0x934b55<<0x8&0xff00|_0x25134a>>>0x8&0xff]^_0x11f9bb[_0x15f2f1>>>0x8&0xff00|_0x9d1b45>>>0x18&0xff];}function _0xcc15aa(_0x35adb6,_0x3d2281,_0x44cf4e,_0x2560c0,_0x3ac240){return _0x35adb6[_0x3d2281&0xff|_0x44cf4e&0xff00]|_0x35adb6[_0x2560c0>>>0x10&0xff|_0x3ac240>>>0x10&0xff00]<<0x10;}function _0x4b1787(_0x9f406,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df){let {sbox2:_0x424451,T01:_0x5076fa,T23:_0x5b4a5a}=_0x4fb346,_0x1349f7=0x0;_0x3d28ce^=_0x9f406[_0x1349f7++],_0x7b339^=_0x9f406[_0x1349f7++],_0x2968e7^=_0x9f406[_0x1349f7++],_0x4b21df^=_0x9f406[_0x1349f7++];let _0x5a4327=_0x9f406['length']/0x4-0x2;for(let _0x45be64=0x0;_0x45be64<_0x5a4327;_0x45be64++){let _0x477429=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),_0x57597d=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),_0x4d7ad8=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),_0x218fdc=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7);_0x3d28ce=_0x477429,_0x7b339=_0x57597d,_0x2968e7=_0x4d7ad8,_0x4b21df=_0x218fdc;}return{'s0':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),'s1':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),'s2':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),'s3':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7)};}function _0x44b129(_0x23eafb,_0x2227a5,_0x54fb49,_0x1a4896,_0x478fb4){const _0xf1d553=_0x4fa2a5;let {sbox2:_0x2be31c,T01:_0x392f60,T23:_0x2881bd}=_0x1f171e,_0x5c953b=0x0;_0x2227a5^=_0x23eafb[_0x5c953b++],_0x54fb49^=_0x23eafb[_0x5c953b++],_0x1a4896^=_0x23eafb[_0x5c953b++],_0x478fb4^=_0x23eafb[_0x5c953b++];let _0x312ab5=_0x23eafb[_0xf1d553(0x208)]/0x4-0x2;for(let _0x122f49=0x0;_0x122f49<_0x312ab5;_0x122f49++){let _0x2da6be=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),_0x508763=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),_0x1cb58f=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),_0x227cc9=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5);_0x2227a5=_0x2da6be,_0x54fb49=_0x508763,_0x1a4896=_0x1cb58f,_0x478fb4=_0x227cc9;}return{'s0':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),'s1':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),'s2':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),'s3':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5)};}function _0x2aa85d(_0x19a8c7,_0x32bfc0){const _0x2bb7d7=_0x4fa2a5;if(_0x9aeef9(_0x19a8c7),_0x19a8c7[_0x2bb7d7(0x208)]%0x10!=0x0)throw Error(_0x2bb7d7(0x1ae));_0x32bfc0!==void 0x0&&(_0x5e877e(_0x19a8c7[_0x2bb7d7(0x208)],_0x32bfc0),_0x33d077(_0x19a8c7,_0x32bfc0));}function _0x2cb0cc(_0x392e32,_0x141d97,_0x32d3ea){const _0x464291=_0x4fa2a5;_0x9aeef9(_0x392e32);let _0x5be1f3=_0x392e32[_0x464291(0x208)],_0x333bb3=_0x5be1f3%0x10;if(!_0x141d97&&_0x333bb3!==0x0)throw Error('plaintext\x20must\x20be\x20multiple\x20of\x2016');if(_0x141d97){let _0x255e8f=0x10-_0x333bb3;_0x255e8f||=0x10,_0x5be1f3+=_0x255e8f;}return _0x32d3ea!==void 0x0&&(_0x5e877e(_0x5be1f3,_0x32d3ea),_0x33d077(_0x392e32,_0x32d3ea)),_0x5be1f3;}function _0x38bc57(_0x165c4e,_0x42a5c1,_0x51d518){_0x51d518===void 0x0&&(_0x51d518=new Uint8Array(_0x42a5c1)),(!_0x6c24||!_0x541e5f(_0x165c4e))&&(_0x165c4e=_0x17e0a5(_0x165c4e));let _0xd1f02=_0x10e10c(_0x51d518);return{'b':_0x165c4e,'o':_0xd1f02,'out':_0x51d518};}function _0x2bb417(_0x3717b7,_0x37d1bf){const _0x2231ed=_0x4fa2a5;if(!_0x37d1bf)return _0x3717b7;let _0xabbc35=_0x3717b7['length'];if(_0xabbc35===0x0)throw Error(_0x2231ed(0x2ea));let _0x3a4d62=_0x3717b7[_0xabbc35-0x1],_0x2a9d86=0x1;_0x2a9d86&=_0x3a4d62-0x1>>>0x1f^0x1,_0x2a9d86&=0x10-_0x3a4d62>>>0x1f^0x1;for(let _0x2e75ee=0x0;_0x2e75ee<0x10;_0x2e75ee++){let _0x451984=_0x2e75ee-_0x3a4d62>>>0x1f,_0x4d5c37=+((_0x3717b7[_0xabbc35-0x1-_0x2e75ee]^_0x3a4d62)===0x0);_0x2a9d86&=_0x4d5c37|_0x451984^0x1;}if(!_0x2a9d86)throw Error(_0x2231ed(0x1bc));return _0x3717b7[_0x2231ed(0x398)](0x0,_0xabbc35-_0x3a4d62);}function _0x1d2973(_0x2d0d66){const _0x45f036=_0x4fa2a5;let _0x1d3c3a=new Uint8Array(0x10),_0x2a1e01=_0x10e10c(_0x1d3c3a);_0x1d3c3a[_0x45f036(0x10c)](_0x2d0d66);let _0x2e591e=0x10-_0x2d0d66[_0x45f036(0x208)];for(let _0x2c915=0x10-_0x2e591e;_0x2c915<0x10;_0x2c915++)_0x1d3c3a[_0x2c915]=_0x2e591e;return _0x2a1e01;}let _0x2b7111=_0x28f13a({'blockSize':0x10,'nonceLength':0x10},function(_0x55335c,_0x3e7687,_0x49df19={}){const _0x39de58=_0x4fa2a5;let _0x350ce2=!_0x49df19[_0x39de58(0x35e)];return{'encrypt'(_0x7d8e14,_0x388409){const _0x2e629f=_0x39de58;let _0x4c67cf=_0x2cb0cc(_0x7d8e14,_0x350ce2,_0x388409),_0x507bd3=_0x996450(_0x55335c),{b:_0x4c8f4c,o:_0x5f34fd,out:_0x932166}=_0x38bc57(_0x7d8e14,_0x4c67cf,_0x388409),_0x4caf25=_0x10e10c(_0x4c8f4c);_0x3f32bc(_0x4caf25);let _0x5f27db=_0x3e7687,_0x233edc=[_0x507bd3];(!_0x6c24||!_0x541e5f(_0x5f27db))&&_0x233edc[_0x2e629f(0x227)](_0x5f27db=_0x17e0a5(_0x5f27db));let _0x246193=_0x10e10c(_0x5f27db);_0x3f32bc(_0x246193);let _0x552ec0=_0x246193[0x0],_0x1a8ffd=_0x246193[0x1],_0x118cd1=_0x246193[0x2],_0x2b8cbc=_0x246193[0x3],_0x1adf15=0x0;for(;_0x1adf15+0x4<=_0x4caf25[_0x2e629f(0x208)];)_0x552ec0^=_0x4caf25[_0x1adf15+0x0],_0x1a8ffd^=_0x4caf25[_0x1adf15+0x1],_0x118cd1^=_0x4caf25[_0x1adf15+0x2],_0x2b8cbc^=_0x4caf25[_0x1adf15+0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc;if(_0x350ce2){let _0x4f05a4=_0x1d2973(_0x7d8e14[_0x2e629f(0x398)](_0x1adf15*0x4));_0x3f32bc(_0x4f05a4),_0x552ec0^=_0x4f05a4[0x0],_0x1a8ffd^=_0x4f05a4[0x1],_0x118cd1^=_0x4f05a4[0x2],_0x2b8cbc^=_0x4f05a4[0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc,_0x39afad(_0x4f05a4);}return _0x3f32bc(_0x5f34fd),_0x39afad(..._0x233edc),_0x4c8f4c!==_0x7d8e14&&_0x39afad(_0x4c8f4c),_0x932166;},'decrypt'(_0x798f23,_0x9a40bd){const _0x20b6a5=_0x39de58;_0x2aa85d(_0x798f23,_0x9a40bd);let _0x57e33b=_0xbf30f9(_0x55335c);_0x9a40bd===void 0x0&&(_0x9a40bd=new Uint8Array(_0x798f23['length']));let _0x136d58=_0x3e7687,_0x70af0d=[_0x57e33b];(!_0x6c24||!_0x541e5f(_0x136d58))&&_0x70af0d[_0x20b6a5(0x227)](_0x136d58=_0x17e0a5(_0x136d58));let _0x1fde1f=_0x10e10c(_0x136d58);_0x3f32bc(_0x1fde1f),(!_0x6c24||!_0x541e5f(_0x798f23))&&_0x70af0d[_0x20b6a5(0x227)](_0x798f23=_0x17e0a5(_0x798f23));let _0x38ea7c=_0x10e10c(_0x798f23),_0x50ad17=_0x10e10c(_0x9a40bd);_0x3f32bc(_0x38ea7c);let _0xa0c74a=_0x1fde1f[0x0],_0x3d92a8=_0x1fde1f[0x1],_0x5c523d=_0x1fde1f[0x2],_0x15c11d=_0x1fde1f[0x3];for(let _0x1a0f9c=0x0;_0x1a0f9c+0x4<=_0x38ea7c[_0x20b6a5(0x208)];){let _0x14dab0=_0xa0c74a,_0x5d58df=_0x3d92a8,_0x37348c=_0x5c523d,_0x111fdc=_0x15c11d;_0xa0c74a=_0x38ea7c[_0x1a0f9c+0x0],_0x3d92a8=_0x38ea7c[_0x1a0f9c+0x1],_0x5c523d=_0x38ea7c[_0x1a0f9c+0x2],_0x15c11d=_0x38ea7c[_0x1a0f9c+0x3];let {s0:_0x58048c,s1:_0x16ab14,s2:_0x46cbcd,s3:_0x286f3c}=_0x44b129(_0x57e33b,_0xa0c74a,_0x3d92a8,_0x5c523d,_0x15c11d);_0x50ad17[_0x1a0f9c++]=_0x58048c^_0x14dab0,_0x50ad17[_0x1a0f9c++]=_0x16ab14^_0x5d58df,_0x50ad17[_0x1a0f9c++]=_0x46cbcd^_0x37348c,_0x50ad17[_0x1a0f9c++]=_0x286f3c^_0x111fdc;}return _0x3f32bc(_0x50ad17),_0x39afad(..._0x70af0d),_0x2bb417(_0x9a40bd,_0x350ce2);}};});function _0x4a357b(_0x4c1dd8){const _0x4a69a2=_0x4fa2a5;let _0x506e34=atob(_0x4c1dd8),_0x15a89a=new Uint8Array(_0x506e34['length']);for(let _0x85363b=0x0;_0x85363b<_0x506e34[_0x4a69a2(0x208)];_0x85363b++)_0x15a89a[_0x85363b]=_0x506e34[_0x4a69a2(0x1a0)](_0x85363b);return _0x15a89a;}function _0x1e1e57(_0x2ac82a){const _0xa1300=_0x4fa2a5;let _0x1bcb9d='';for(let _0x264517=0x0;_0x264517<_0x2ac82a[_0xa1300(0x208)];_0x264517++)_0x1bcb9d+=String['fromCharCode'](_0x2ac82a[_0x264517]);return btoa(_0x1bcb9d);}function _0x3e87cc(_0x37ca8b,_0x85ac32){const _0x231b11=_0x4fa2a5;let _0x258c9e=_0x4a357b(_0x85ac32),_0x4d9a3d=_0x381ba2(0x10);return _0x1e1e57(_0x24f204(_0x4d9a3d,_0x2b7111(_0x258c9e,_0x4d9a3d)[_0x231b11(0x1ff)](_0x38f376(_0x37ca8b))));}function _0x582dbe(){const _0x18de8f=_0x4fa2a5;let _0x5506ef=(0x0,_0x224431[_0x18de8f(0x112)])()[_0x18de8f(0xe2)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5506ef){let _0x1fc186={'time':Math['floor'](Date[_0x18de8f(0x3f4)]()/0x3e8),'domain':location[_0x18de8f(0x125)]};return _0x3e87cc(JSON[_0x18de8f(0x3be)](_0x1fc186),_0x5506ef);}}let _0x2a10c7=class{constructor(_0x3dc080){const _0x194ead=_0x4fa2a5;this[_0x194ead(0x33c)]=_0x3dc080,this[_0x194ead(0x150)]();}['_initRequestHeader'](){const _0x33ab45=_0x4fa2a5;this[_0x33ab45(0x33c)][_0x33ab45(0x3f1)]({'interceptor':(_0x2060d6,_0x142c48)=>{const _0x36ed41=_0x33ab45;let _0x3234ce=_0x582dbe();return _0x3234ce&&_0x2060d6[_0x36ed41(0x17e)]['set'](_0x36ed41(0x2f3),_0x3234ce),_0x142c48(_0x2060d6);}});}};_0x2a10c7=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x2a10c7);let _0x4f0cf4=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x346ce8,_0x374d7c,_0x263488){const _0x23ac41=_0x4fa2a5;super(),this[_0x23ac41(0x314)]=_0x346ce8,this[_0x23ac41(0xff)]=_0x374d7c,this[_0x23ac41(0x304)]=_0x263488,_0x5aacdf(this,_0x23ac41(0x218),new _0x450705[(_0x23ac41(0x1f8))](null)),_0x5aacdf(this,'_unitLoaded$',new _0x450705[(_0x23ac41(0x155))]()),_0x5aacdf(this,_0x23ac41(0x3f5),this[_0x23ac41(0x218)][_0x23ac41(0x343)]()),_0x5aacdf(this,_0x23ac41(0x21d),this[_0x23ac41(0x220)][_0x23ac41(0x343)]());}[_0x4fa2a5(0x3b4)](){const _0x3ad2ac=_0x4fa2a5;super[_0x3ad2ac(0x3b4)](),this[_0x3ad2ac(0x220)][_0x3ad2ac(0x410)](),this[_0x3ad2ac(0x218)]['complete']();}async[_0x4fa2a5(0x177)](_0x28c302,_0xcc0f12,_0x18eb7f,_0x590452){const _0x2b1a08=_0x4fa2a5;this[_0x2b1a08(0x218)][_0x2b1a08(0x163)]({'unitId':_0x28c302,'type':_0xcc0f12,'subUnitId':_0x590452});let _0x370c22=null;switch(_0xcc0f12){case _0x433f65['UniverInstanceType'][_0x2b1a08(0xb4)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0xf0)](_0x28c302,_0x18eb7f,void 0x0,{'initialSubUnitId':_0x590452});break;case _0x433f65['UniverInstanceType'][_0x2b1a08(0x237)]:_0x370c22=await this['_snapshotService'][_0x2b1a08(0x2ed)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0xcd)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x126)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x169)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBoard'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x146)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBase'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x3ff)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x3cc)](_0x28c302,_0x18eb7f);break;default:this[_0x2b1a08(0x314)][_0x2b1a08(0x187)](_0x2b1a08(0x2a6),_0x2b1a08(0x327));}return _0x370c22&&this['_unitLoaded$'][_0x2b1a08(0x163)](_0x370c22),_0x370c22;}async[_0x4fa2a5(0x312)](_0x3bd510,_0x45cff8,_0x68fe01){const _0x3f3356=_0x4fa2a5;var _0x5880a6;this[_0x3f3356(0x218)][_0x3f3356(0x163)]({'unitId':_0x3bd510,'type':_0x45cff8,'subUnitId':_0x68fe01});let _0x3c5bb1=0x0,_0x25f299=await((_0x5880a6=this[_0x3f3356(0x304)])==null?void 0x0:_0x5880a6['loadOfflineData'](_0x3bd510));return _0x25f299&&(_0x25f299[_0x3f3356(0x391)]||_0x25f299['mutations'][_0x3f3356(0x208)]!==0x0)&&(_0x3c5bb1=_0x25f299[_0x3f3356(0xf5)]),_0x3c5bb1===0x0&&this[_0x3f3356(0x314)][_0x3f3356(0x23b)](_0x3f3356(0x2a6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3f3356(0x177)](_0x3bd510,_0x45cff8,_0x3c5bb1,_0x68fe01);}};_0x4f0cf4=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x2a1)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f0cf4);let _0x55876d=class{constructor(_0x41680f,_0x10f0ba,_0x3cb1ef){const _0x437afe=_0x4fa2a5;this['_httpService']=_0x41680f,this['_configService']=_0x10f0ba,this[_0x437afe(0x3f3)]=_0x3cb1ef,_0x5aacdf(this,'_waitCount',0x0),_0x5aacdf(this,_0x437afe(0x415),new _0x450705[(_0x437afe(0x155))]()),_0x5aacdf(this,_0x437afe(0x322),this[_0x437afe(0x415)]),_0x5aacdf(this,_0x437afe(0x271),new Map());}[_0x4fa2a5(0x149)](_0x1437fd){const _0x454090=_0x4fa2a5;this[_0x454090(0x133)]=_0x1437fd,this['_change$'][_0x454090(0x163)](_0x1437fd);}[_0x4fa2a5(0x118)](_0x279a05,_0x2d012f){const _0x58f93f=_0x4fa2a5;if(_0x2d012f===_0x433f65[_0x58f93f(0x17b)]['BASE64']){let _0x13e129=new Image();return _0x13e129[_0x58f93f(0x28d)]=_0x279a05,_0x13e129;}return this[_0x58f93f(0x271)][_0x58f93f(0x2c0)](_0x279a05);}[_0x4fa2a5(0xc2)](_0x1b4d47,_0x51cbab,_0x173a25){const _0x193f78=_0x4fa2a5;_0x51cbab!==_0x433f65[_0x193f78(0x17b)]['BASE64']&&_0x173a25!=null&&this['_imageSourceCache'][_0x193f78(0x10c)](_0x1b4d47,_0x173a25);}async[_0x4fa2a5(0x397)](_0x395d1b){const _0x48c20c=_0x4fa2a5;try{let _0x8bb483=this[_0x48c20c(0x3b0)](this[_0x48c20c(0x2f6)](),''+_0x395d1b),_0x496be0=(await this['_httpService']['get'](_0x8bb483))[_0x48c20c(0x280)];if(_0x496be0['error']&&_0x496be0[_0x48c20c(0x187)][_0x48c20c(0xb6)]===_0x4ed0d4['ErrorCode']['OK']){let _0x5383c9=(0x0,_0x433f65['resolveWithBasePath'])(_0x496be0['url'],this[_0x48c20c(0x2d1)]());return Promise[_0x48c20c(0x140)](_0x5383c9);}return Promise['reject'](_0x496be0[_0x48c20c(0x187)]);}catch(_0x59d559){return Promise[_0x48c20c(0x170)](_0x59d559);}}async[_0x4fa2a5(0x132)](_0x4b592e){const _0x57c80c=_0x4fa2a5;let _0xfd4c26='';if(!_0x21f767[_0x57c80c(0x2dd)]['includes'](_0x4b592e[_0x57c80c(0x3c6)]))return this['_decreaseWaiting'](),Promise[_0x57c80c(0x170)](Error(_0x433f65['ImageUploadStatusType'][_0x57c80c(0x212)]));if(_0x4b592e[_0x57c80c(0x1dd)]>(0x0,_0x21f767[_0x57c80c(0x1fb)])())return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x319)]));try{let _0x44ddc4=new FormData();_0x44ddc4[_0x57c80c(0x3c4)](_0x57c80c(0x173),_0x4b592e);let _0x583de1=this[_0x57c80c(0x3f3)][_0x57c80c(0x2f5)](),_0x4ca7ba=_0x583de1==null?void 0x0:_0x583de1[_0x57c80c(0xed)]();if(!_0x4ca7ba)throw Error(_0x57c80c(0x2a9));let _0x319913=this[_0x57c80c(0x3dd)]()+'?size='+_0x4b592e[_0x57c80c(0x1dd)]['toString']()+_0x57c80c(0x19d)+_0x4ed0d4[_0x57c80c(0x158)]['UnitEmbedded']+_0x57c80c(0x180)+encodeURIComponent(_0x4ca7ba),_0x1997e1={'body':_0x44ddc4},_0x15a5e1=(await this['_httpService'][_0x57c80c(0x201)](_0x319913,_0x1997e1))['body'];if(typeof _0x15a5e1['FileId']!=_0x57c80c(0x265))return this[_0x57c80c(0x388)](),Promise[_0x57c80c(0x170)](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x1cf)]));_0xfd4c26=_0x15a5e1['FileId'];}catch{return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)]['ERROR_IMAGE']));}return new Promise((_0x2f5aba,_0x1b8b7c)=>{const _0x4fc8de=_0x57c80c;let _0x585083=new FileReader();_0x585083['readAsDataURL'](_0x4b592e),_0x585083[_0x4fc8de(0xf3)]=_0x3b8a34=>{const _0x46ee09=_0x4fc8de;var _0x517af7;let _0x42cd53=(_0x517af7=_0x3b8a34[_0x46ee09(0x24c)])==null?void 0x0:_0x517af7['result'];if(_0x42cd53==null){this[_0x46ee09(0x388)](),_0x1b8b7c(Error(_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x1cf)]));return;}_0x2f5aba({'imageId':(0x0,_0x433f65[_0x46ee09(0xb7)])(0x6),'imageSourceType':_0x433f65[_0x46ee09(0x17b)][_0x46ee09(0x2b3)],'source':_0xfd4c26,'base64Cache':_0x42cd53,'status':_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x109)]}),this[_0x46ee09(0x388)]();};});}[_0x4fa2a5(0x3dd)](){const _0xfca754=_0x4fa2a5;let _0x48ecc3=this[_0xfca754(0x1a9)]['getConfig'](_0x18fed6);return(_0x48ecc3==null?void 0x0:_0x48ecc3[_0xfca754(0x2de)])??'/universer-api/stream/file/upload';}[_0x4fa2a5(0x2f6)](){const _0x3ed238=_0x4fa2a5;let _0x1f11a4=this['_configService'][_0x3ed238(0xd7)](_0x18fed6);return(_0x1f11a4==null?void 0x0:_0x1f11a4['signUrlServerUrl'])??_0x3ed238(0x338);}[_0x4fa2a5(0x2d1)](){const _0x1021a3=_0x4fa2a5;let _0x211fcf=this[_0x1021a3(0x1a9)]['getConfig'](_0x18fed6);return(_0x211fcf==null?void 0x0:_0x211fcf[_0x1021a3(0x18f)])??location[_0x1021a3(0x1b7)];}[_0x4fa2a5(0x3b0)](_0x3b18bd,_0x501555){const _0x4bd075=_0x4fa2a5;return _0x3b18bd[_0x4bd075(0x3cd)](_0x4bd075(0x30d),_0x501555);}[_0x4fa2a5(0x388)](){const _0x186817=_0x4fa2a5;--this[_0x186817(0x133)],this['_change$']['next'](this[_0x186817(0x133)]);}};_0x55876d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IUniverInstanceService']))],_0x55876d);let _0x1e046a=class{constructor(_0x4b52c5,_0x12e510){const _0x139615=_0x4fa2a5;this[_0x139615(0x1a9)]=_0x4b52c5,this[_0x139615(0x2c9)]=_0x12e510;}[_0x4fa2a5(0x213)](){const _0x492a67=_0x4fa2a5;let _0x5424de=this[_0x492a67(0x1a9)][_0x492a67(0xd7)](_0x18fed6);return(_0x5424de==null?void 0x0:_0x5424de[_0x492a67(0x301)])??_0x492a67(0xca);}async[_0x4fa2a5(0x2d8)](_0x204eb4){const _0xcfe38f=_0x4fa2a5;let _0x3021d5=this[_0xcfe38f(0x213)]()+_0xcfe38f(0x225);return{'list':[{'title':_0xcfe38f(0x2ee),'mentions':(await this[_0xcfe38f(0x2c9)][_0xcfe38f(0x2c0)](_0x3021d5,{'params':{'objectID':_0x204eb4[_0xcfe38f(0x229)],'unitID':_0x204eb4[_0xcfe38f(0x229)]}}))[_0xcfe38f(0x280)][_0xcfe38f(0x195)]['map'](_0x9e7654=>({'objectId':_0x9e7654['id'],'name':_0x9e7654[_0xcfe38f(0x3bc)]['name'],'metadata':{'icon':_0x9e7654[_0xcfe38f(0x3bc)]['avatar']},'label':_0x9e7654[_0xcfe38f(0x3bc)][_0xcfe38f(0x341)],'objectType':_0x433f65['MentionType'][_0xcfe38f(0x1d7)]})),'metadata':{},'type':_0x433f65[_0xcfe38f(0x35f)][_0xcfe38f(0x1d7)]}]};}};_0x1e046a=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x1e046a);let _0x151d68=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x1fef3e,_0xc362b,_0x10e084,_0x31c88b,_0x5e3c64,_0x5d10ed){const _0x28844d=_0x4fa2a5;super(),this[_0x28844d(0x40f)]=_0x1fef3e,this[_0x28844d(0x3f3)]=_0xc362b,this[_0x28844d(0x3c9)]=_0x10e084,this[_0x28844d(0x2a2)]=_0x31c88b,this[_0x28844d(0x119)]=_0x5e3c64,this[_0x28844d(0x347)]=_0x5d10ed,_0x5aacdf(this,_0x28844d(0x249),new Set()),this[_0x28844d(0x413)](()=>this[_0x28844d(0x249)][_0x28844d(0x2f9)]()),this[_0x28844d(0x413)](_0x298028(this[_0x28844d(0x3f3)])[_0x28844d(0x252)](({unitId:_0x505f2f})=>this[_0x28844d(0x249)][_0x28844d(0x3ae)](_0x505f2f))),this[_0x28844d(0x186)](),this[_0x28844d(0x1f1)](),[_0x433f65[_0x28844d(0xa5)][_0x28844d(0x237)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0xcd)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x146)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x169)]][_0x28844d(0x1d2)](_0x43a6c9=>{const _0x35b67a=_0x28844d;this['disposeWithMe'](this[_0x35b67a(0x3f3)][_0x35b67a(0x40e)](_0x43a6c9)['subscribe'](_0x1366d4=>{const _0x5d3a40=_0x35b67a;this['_closedUnits'][_0x5d3a40(0x21b)](_0x1366d4[_0x5d3a40(0xed)]()),this[_0x5d3a40(0x40f)][_0x5d3a40(0x2c0)](_0x433f65[_0x5d3a40(0x15c)])[_0x5d3a40(0x286)](_0x1366d4[_0x5d3a40(0xed)]());}));});}[_0x4fa2a5(0x1f1)](){const _0x3a3aaf=_0x4fa2a5;let _0x29b3a0=async(_0x48057e,_0x46b4ec)=>{const _0x4350a2=_0x5846;let _0x2173e8=await this[_0x4350a2(0x119)][_0x4350a2(0x40c)](_0x48057e);this[_0x4350a2(0x18b)]||this[_0x4350a2(0x249)]['has'](_0x48057e)||!this['_univerInstanceService'][_0x4350a2(0x2df)](_0x48057e)||_0x2173e8[_0x4350a2(0x1eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x16ed23=>_0x16ed23[_0x4350a2(0x130)]===_0x3a5734[_0x4350a2(0xec)][_0x4350a2(0x3ef)]),(0x0,_0x223d83[_0x4350a2(0x1c3)])((0x0,_0x450705['merge'])(this[_0x4350a2(0xc4)],this['_univerInstanceService'][_0x4350a2(0x3eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x54fdba=>_0x54fdba['getUnitId']()===_0x48057e)))))[_0x4350a2(0x252)](_0xbb233=>{const _0x307500=_0x4350a2;let {reason:_0x52b78a}=_0xbb233[_0x307500(0x2c7)];this[_0x307500(0x347)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x52b78a}),this[_0x307500(0x249)]['add'](_0x48057e),this['_injector'][_0x307500(0x2c0)](_0x433f65[_0x307500(0x15c)])[_0x307500(0x286)](_0x48057e);let _0x2b1cc6=_0x3d16ab(_0x46b4ec);_0x2b1cc6!=null&&this[_0x307500(0x303)](_0x48057e,_0x2b1cc6,_0x4ed0d4[_0x307500(0x17f)][_0x307500(0x268)],!0x1),this['_collaborationSessionService'][_0x307500(0x284)](_0x48057e);});};_0x298028(this[_0x3a3aaf(0x3f3)])[_0x3a3aaf(0x192)]((0x0,_0x223d83[_0x3a3aaf(0x260)])(({unitId:_0x135563})=>!(0x0,_0x433f65['isInternalEditorID'])(_0x135563)),(0x0,_0x223d83[_0x3a3aaf(0x1c3)])(this['dispose$']))[_0x3a3aaf(0x252)](({type:_0x1a3f5,unitId:_0xd8a18b})=>{const _0x457280=_0x3a3aaf;_0x29b3a0(_0xd8a18b,_0x1a3f5)[_0x457280(0x1a4)](_0x107f7a=>this[_0x457280(0x40f)][_0x457280(0x2c0)](_0x433f65['ILogService'])[_0x457280(0x187)](_0x107f7a));});}[_0x4fa2a5(0x186)](){const _0x22d873=_0x4fa2a5;let _0xb6dfbc=async(_0xd1196f,_0x1af461)=>{const _0x239792=_0x5846;let _0x5a73c5=await this['_collaborationSessionService'][_0x239792(0x40c)](_0xd1196f);if(!(this[_0x239792(0x18b)]||this[_0x239792(0x249)][_0x239792(0x1de)](_0xd1196f)||!this['_univerInstanceService'][_0x239792(0x2df)](_0xd1196f))){if(_0x1af461===_0x433f65[_0x239792(0xa5)][_0x239792(0xb4)]){let _0x4f2648=this[_0x239792(0x40f)][_0x239792(0x2c0)](_0x6a2ac6['SheetPermissionInitController']);await _0x4f2648[_0x239792(0x2f4)](_0xd1196f),_0x5a73c5[_0x239792(0x1eb)][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5054dc=>_0x5054dc[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5['event$'][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x36fbee=>_0x36fbee[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x3ef)])),this[_0x239792(0x3f3)][_0x239792(0x3eb)][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x22a505=>_0x22a505[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](_0x530a61=>{const _0x367084=_0x239792;let {objectId:_0x677f8e}=_0x530a61['data'];_0x677f8e===_0xd1196f?_0x4f2648['initWorkbookPermissionChange'](_0xd1196f):_0x4f2648[_0x367084(0x40a)](_0xd1196f,_0x677f8e);});return;}_0x5a73c5['event$']['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x1a2fc9=>_0x1a2fc9[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5[_0x239792(0x1eb)]['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x2d3fa3=>_0x2d3fa3[_0x239792(0x130)]===_0x3a5734[_0x239792(0xec)][_0x239792(0x3ef)])),this[_0x239792(0x3f3)]['unitDisposed$'][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5f2ebc=>_0x5f2ebc[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](()=>{const _0x185572=_0x239792;this[_0x185572(0x2b8)](_0xd1196f,_0x1af461)[_0x185572(0x1a4)](_0x102a02=>this[_0x185572(0x40f)][_0x185572(0x2c0)](_0x433f65[_0x185572(0x1b1)])['error'](_0x102a02));}),await this[_0x239792(0x2b8)](_0xd1196f,_0x1af461);}};_0x298028(this[_0x22d873(0x3f3)])[_0x22d873(0x192)]((0x0,_0x223d83['filter'])(({unitId:_0x1a440f})=>!(0x0,_0x433f65[_0x22d873(0x412)])(_0x1a440f)),(0x0,_0x223d83[_0x22d873(0x1c3)])(this[_0x22d873(0xc4)]))[_0x22d873(0x252)](({type:_0x2476ce,unitId:_0x44bd48})=>{const _0x2de8e1=_0x22d873;_0xb6dfbc(_0x44bd48,_0x2476ce)[_0x2de8e1(0x1a4)](_0x514826=>this[_0x2de8e1(0x40f)][_0x2de8e1(0x2c0)](_0x433f65[_0x2de8e1(0x1b1)])[_0x2de8e1(0x187)](_0x514826));});}async[_0x4fa2a5(0x2b8)](_0x3ab792,_0x16eab5){const _0x3f9d5e=_0x4fa2a5;let _0x4ab38e=_0x3d16ab(_0x16eab5);if(_0x4ab38e==null)return;let _0x40fa0d=this[_0x3f9d5e(0x40f)][_0x3f9d5e(0x2c0)](_0x433f65['ObjectPermissionService']);if(_0x40fa0d['supports']({'unitId':_0x3ab792,'objectId':_0x3ab792,'objectType':_0x4ab38e})){await _0x40fa0d['refreshUnit'](_0x3ab792);return;}let _0x5f0621=this[_0x3f9d5e(0x13c)](_0x3ab792,_0x4ab38e);if(!_0x5f0621[_0x3f9d5e(0x208)])return;let _0x222a99=await this[_0x3f9d5e(0x2a2)][_0x3f9d5e(0x137)]({'objectID':_0x3ab792,'objectType':_0x4ab38e,'unitID':_0x3ab792,'actions':_0x5f0621[_0x3f9d5e(0x224)](({action:_0x58cada})=>_0x58cada)});this[_0x3f9d5e(0x18b)]||this[_0x3f9d5e(0x249)][_0x3f9d5e(0x1de)](_0x3ab792)||!this[_0x3f9d5e(0x3f3)][_0x3f9d5e(0x2df)](_0x3ab792)||_0x222a99[_0x3f9d5e(0x1d2)](_0x27c379=>{const _0x7941c1=_0x3f9d5e;let _0x2c1911=_0x27c379[_0x7941c1(0x1d1)],_0x4bb9b2=_0x27c379['allowed'];_0x2c1911!=null&&_0x4bb9b2!=null&&_0x5f0621['filter'](_0x13b3ee=>_0x13b3ee[_0x7941c1(0x1d1)]===_0x2c1911)[_0x7941c1(0x1d2)](_0x357527=>this[_0x7941c1(0x3c9)]['updatePermissionPoint'](_0x357527['id'],_0x4bb9b2));});}[_0x4fa2a5(0x13c)](_0x30e326,_0xcfaff3){const _0x4342e0=_0x4fa2a5;let _0x583037=[];return this[_0x4342e0(0x3c9)][_0x4342e0(0x2a7)]()[_0x4342e0(0x1d2)]((_0x210e94,_0x46e0fb)=>{const _0x6b4f93=_0x4342e0;_0x210e94[_0x6b4f93(0x252)](_0x3cc629=>{const _0xf4eb3d=_0x6b4f93;_0x3cc629[_0xf4eb3d(0x3c6)]===_0xcfaff3&&_0xf4eb3d(0x229)in _0x3cc629&&_0x3cc629[_0xf4eb3d(0x229)]===_0x30e326&&(!(_0xf4eb3d(0x3b5)in _0x3cc629)||_0x3cc629[_0xf4eb3d(0x3b5)]===_0x30e326)&&_0x583037['push']({'id':_0x46e0fb,'action':_0x3cc629['subType']});})[_0x6b4f93(0x3ba)]();}),_0x583037;}['_updateUnitPermissionPoint'](_0x18af0f,_0x2f7ee9,_0x2fdc86,_0x3c3bb8){const _0x4e258d=_0x4fa2a5;this[_0x4e258d(0x3c9)][_0x4e258d(0x2a7)]()[_0x4e258d(0x1d2)]((_0x22a915,_0x47c51d)=>{const _0x435c2c=_0x4e258d;let _0x667087=!0x1;_0x22a915[_0x435c2c(0x252)](_0x346ffe=>{const _0x181d7a=_0x435c2c;_0x667087=_0x346ffe[_0x181d7a(0x3c6)]===_0x2f7ee9&&_0x346ffe[_0x181d7a(0x2da)]===_0x2fdc86&&_0x181d7a(0x229)in _0x346ffe&&_0x346ffe[_0x181d7a(0x229)]===_0x18af0f&&(!('objectId'in _0x346ffe)||_0x346ffe[_0x181d7a(0x3b5)]===_0x18af0f);})[_0x435c2c(0x3ba)](),_0x667087&&this[_0x435c2c(0x3c9)][_0x435c2c(0x28e)](_0x47c51d,_0x3c3bb8);});}};_0x151d68=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x3ed)]),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x2b5c76)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6))],_0x151d68);function _0x298028(_0x1f4429){const _0x84f9ed=_0x4fa2a5;return(0x0,_0x450705[_0x84f9ed(0x298)])(...[_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SHEET'],_0x433f65[_0x84f9ed(0xa5)][_0x84f9ed(0x237)],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SLIDE'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BOARD'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BASE']][_0x84f9ed(0x224)](_0x5ee4a3=>_0x1f4429[_0x84f9ed(0x1bb)](_0x5ee4a3)['pipe']((0x0,_0x223d83[_0x84f9ed(0x224)])(_0x3244f2=>({'type':_0x5ee4a3,'unitId':_0x3244f2[_0x84f9ed(0xa4)]['getUnitId']()})))));}function _0x3d16ab(_0x579a97){const _0x56d354=_0x4fa2a5;switch(_0x579a97){case _0x433f65[_0x56d354(0xa5)]['UNIVER_SHEET']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x269)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_DOC']:return _0x4ed0d4[_0x56d354(0x23e)]['Document'];case _0x433f65[_0x56d354(0xa5)]['UNIVER_SLIDE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3a7)];case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x211)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_BASE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3f7)];default:return;}}let _0x557990=class{constructor(_0x10814c,_0x1d5d08){const _0x54e3dc=_0x4fa2a5;this[_0x54e3dc(0x1a9)]=_0x10814c,this['_httpService']=_0x1d5d08;}async['getUnitOnRev'](_0x43f941,_0x842129){const _0x5ec2b3=_0x4fa2a5;var _0x294723;let {unitID:_0x579180,type:_0xe657d3,revision:_0x172eb0=0x0}=_0x842129,_0x149cf2=this[_0x5ec2b3(0x1dc)]()+'/'+_0xe657d3+_0x5ec2b3(0x394)+_0x579180+_0x5ec2b3(0x29c)+_0x172eb0,_0x4668b9=(await this[_0x5ec2b3(0x33c)][_0x5ec2b3(0x2c0)](_0x149cf2))[_0x5ec2b3(0x280)],_0x5826b1=(_0x294723=_0x4668b9[_0x5ec2b3(0x3a9)])==null?void 0x0:_0x294723['workbook'];if(_0x5826b1){let _0x1c52db=_0x5826b1==null?void 0x0:_0x5826b1[_0x5ec2b3(0x32e)];_0x5826b1[_0x5ec2b3(0x32e)]=_0x3a5734['textEncoder'][_0x5ec2b3(0x382)]((0x0,_0x3a5734['b64DecodeUnicode'])(_0x1c52db)),Object[_0x5ec2b3(0x1a8)](_0x5826b1[_0x5ec2b3(0xe5)])['forEach'](([,_0x54a7a0])=>{const _0x4098de=_0x5ec2b3;let _0x3359b6=_0x54a7a0[_0x4098de(0x32e)];_0x54a7a0[_0x4098de(0x32e)]=_0x3a5734[_0x4098de(0x2bf)][_0x4098de(0x382)]((0x0,_0x3a5734[_0x4098de(0xd9)])(_0x3359b6));});}return _0x4668b9;}async['getSheetBlock'](_0x2d2149,_0xe63271){const _0x382d77=_0x4fa2a5;let {unitID:_0x28a3d0,type:_0x372184,blockID:_0x117a96}=_0xe63271,_0x48fbfa=this[_0x382d77(0x202)]()+'/'+_0x372184+_0x382d77(0x394)+_0x28a3d0+_0x382d77(0x104)+_0x117a96;return(await this[_0x382d77(0x33c)]['get'](_0x48fbfa))[_0x382d77(0x280)];}async[_0x4fa2a5(0x135)](_0x5bf04f,_0x242a9f){const _0x5770ce=_0x4fa2a5;let {unitID:_0x1cf6b7,type:_0x243683,blockID:_0x5b10c9}=_0x242a9f,_0x461f6d=this['_getAPIPrefix']()+_0x5770ce(0x104)+_0x243683+'/unit/'+_0x1cf6b7+_0x5770ce(0x104)+_0x5b10c9;return(await this['_httpService'][_0x5770ce(0x2c0)](_0x461f6d))[_0x5770ce(0x280)];}async['fetchMissingChangesets'](_0x212e49,_0x544af6){const _0x35ee11=_0x4fa2a5;let {unitID:_0x515b2e,type:_0x24e589,from:_0x2501c5,to:_0xd2037b}=_0x544af6,_0x2e84c0=this[_0x35ee11(0x202)]()+'/'+_0x24e589+'/unit/'+_0x515b2e+_0x35ee11(0xd0)+_0x2501c5+'&to='+_0xd2037b;return(await this[_0x35ee11(0x33c)][_0x35ee11(0x2c0)](_0x2e84c0))[_0x35ee11(0x280)];}['getSnapshotAPIPath'](){const _0x495c82=_0x4fa2a5;return this['_configService'][_0x495c82(0xd7)](_0x495c82(0xa7))??this[_0x495c82(0x202)]();}['_getAPIPrefix'](){const _0x1a4a2d=_0x4fa2a5;let _0x4bef65=this[_0x1a4a2d(0x1a9)][_0x1a4a2d(0xd7)](_0x18fed6);return(_0x4bef65==null?void 0x0:_0x4bef65['snapshotServerUrl'])??_0x1a4a2d(0x205);}async[_0x4fa2a5(0x278)](_0x56f845,_0x3140a9){const _0x560b80=_0x4fa2a5;let _0x132e25=_0x560b80(0xa3)+_0x3140a9[_0x560b80(0x3c6)]+_0x560b80(0x394)+_0x3140a9[_0x560b80(0x210)]+_0x560b80(0x1f0);return(await this[_0x560b80(0x33c)]['get'](_0x132e25,{'params':{'resourceId':JSON[_0x560b80(0x3be)](_0x3140a9[_0x560b80(0x349)])}}))[_0x560b80(0x280)];}[_0x4fa2a5(0x306)](){const _0x36ece3=_0x4fa2a5;throw Error(_0x36ece3(0x295));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4fa2a5(0x3e4)](){const _0x514cd1=_0x4fa2a5;throw Error(_0x514cd1(0x295));}[_0x4fa2a5(0x333)](){const _0x48182c=_0x4fa2a5;throw Error(_0x48182c(0x295));}['copyFileMeta'](){const _0x274b25=_0x4fa2a5;throw Error(_0x274b25(0x295));}[_0x4fa2a5(0x356)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x557990=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)]))],_0x557990);let _0x274b20=class extends _0x433f65[_0x4fa2a5(0xcf)]{constructor(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0,_0x28bca1,_0x1b43b2){const _0x27f620=_0x4fa2a5;super(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0),this['_transformService']=_0x28bca1,this[_0x27f620(0x314)]=_0x1b43b2;}[_0x4fa2a5(0x3e5)](_0x23a4be,_0x5a6b62){const _0x1782ce=_0x4fa2a5;let _0x4c6279=this[_0x1782ce(0x22c)](_0x23a4be);if(_0x4c6279)try{let _0x593214=this[_0x1782ce(0x1d6)](_0x4c6279,_0x5a6b62);this[_0x1782ce(0x20d)](_0x23a4be,_0x593214);}catch(_0x385e98){this['_logService']['error']('[CollaborationUndoRedoService]',_0x385e98),this[_0x1782ce(0x279)](_0x23a4be);}let _0x1aecfa=this[_0x1782ce(0x2cd)](_0x23a4be);if(_0x1aecfa)try{let _0xf9e458=this[_0x1782ce(0x1d6)](_0x1aecfa,_0x5a6b62);this[_0x1782ce(0x24d)](_0x23a4be,_0xf9e458);}catch(_0x139d99){this['_logService'][_0x1782ce(0x187)](_0x139d99),this[_0x1782ce(0x40d)](_0x23a4be);}}[_0x4fa2a5(0x279)](_0x42f5ed){let _0x53d353=this['_getUndoStack'](_0x42f5ed);_0x53d353&&(_0x53d353['length']=0x0,this['_updateStatus']());}[_0x4fa2a5(0x40d)](_0x59f914){const _0x1983e9=_0x4fa2a5;let _0x3bd86f=this[_0x1983e9(0x2cd)](_0x59f914);_0x3bd86f&&(_0x3bd86f[_0x1983e9(0x208)]=0x0,this[_0x1983e9(0x2a0)]());}[_0x4fa2a5(0x20d)](_0x32b1c3,_0xa54aae){const _0x2cc760=_0x4fa2a5;this[_0x2cc760(0x29f)][_0x2cc760(0x10c)](_0x32b1c3,_0xa54aae),this[_0x2cc760(0x2a0)]();}['_substituteRedoStack'](_0x2f7e04,_0x2f6fb8){const _0x3cc10d=_0x4fa2a5;this[_0x3cc10d(0x270)][_0x3cc10d(0x10c)](_0x2f7e04,_0x2f6fb8),this[_0x3cc10d(0x2a0)]();}['_transformStack'](_0x12c790,_0x5a479a){const _0x2fcbf1=_0x4fa2a5;let _0x1dee6a=[],_0x219243=_0x5a479a,_0x413ffc=_0x5a479a;for(let _0x49421a=_0x12c790[_0x2fcbf1(0x208)]-0x1;_0x49421a>=0x0;_0x49421a--){let {unitID:_0x2245a2,undoMutations:_0xf59a8f,redoMutations:_0x71adc0}=_0x12c790[_0x49421a],_0x5f41ff=this['_transformService'][_0x2fcbf1(0x2ad)](_0x219243,_0xf59a8f),_0x36b5db=this[_0x2fcbf1(0x324)][_0x2fcbf1(0x2ad)](_0x413ffc,_0x71adc0);if((0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x5f41ff)||(0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x36b5db)){this[_0x2fcbf1(0x314)][_0x2fcbf1(0x187)](_0x2fcbf1(0x1fd),'transformStack\x20failed!',_0x5f41ff,_0x36b5db);break;}_0x219243=_0x5f41ff[_0x2fcbf1(0x3ab)],_0x413ffc=_0x36b5db[_0x2fcbf1(0x3ab)],_0x1dee6a['push']({'unitID':_0x2245a2,'undoMutations':_0x5f41ff[_0x2fcbf1(0x259)],'redoMutations':_0x36b5db[_0x2fcbf1(0x259)]});}return _0x1dee6a[_0x2fcbf1(0xf4)]();}};_0x274b20=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65['ICommandService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x214)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x5,_0x433f65['ILogService'])],_0x274b20);let _0x4489be=class extends _0x433f65[_0x4fa2a5(0xac)]{constructor(_0x3875ad=_0x474e89,_0x713ac2,_0x35a0ec,_0x2b7094){const _0x2dd630=_0x4fa2a5;super(),this[_0x2dd630(0xc6)]=_0x3875ad,this[_0x2dd630(0x314)]=_0x713ac2,this[_0x2dd630(0x40f)]=_0x35a0ec,this[_0x2dd630(0x1a9)]=_0x2b7094;let {..._0x237ba6}=(0x0,_0x433f65['merge'])({},_0x474e89,this[_0x2dd630(0xc6)]);if(!_0x237ba6[_0x2dd630(0x33b)])throw Error(_0x2dd630(0xb3));this[_0x2dd630(0xc6)]=_0x237ba6,this[_0x2dd630(0x1a9)][_0x2dd630(0x40b)](_0x18fed6,_0x237ba6);}[_0x4fa2a5(0x309)](){const _0xf2102e=_0x4fa2a5;this['_configService'][_0xf2102e(0x40b)](_0x433f65[_0xf2102e(0x36d)],this[_0xf2102e(0xc6)][_0xf2102e(0xaa)]??[]),this[_0xf2102e(0xee)](),this[_0xf2102e(0x10d)]();}[_0x4fa2a5(0xee)](){const _0x3e80ae=_0x4fa2a5;var _0x513f35,_0x57cc03;this[_0x3e80ae(0x40f)]['has'](_0x433f65[_0x3e80ae(0x380)])&&this[_0x3e80ae(0x314)][_0x3e80ae(0x187)](_0x3e80ae(0x3ea),_0x3e80ae(0x3a3));let _0x175992=(0x0,_0x433f65[_0x3e80ae(0xe4)])([[_0x433f65[_0x3e80ae(0x380)],{'useClass':_0x274b20}],[_0x2a5cd3,{'useValue':_0x200c62()}],[_0x2b5c76],[_0x54117e],[_0x41b88d],[_0x4aff48],[_0x2a10c7],[_0x49219e],[_0x151d68],[_0x483ee6],[_0x4f0cf4],[_0x1121da,{'useClass':this[_0x3e80ae(0xc6)]['socketService']}],[_0x3a5734['ISnapshotServerService'],{'useClass':_0x557990}],[_0x433f65[_0x3e80ae(0x3ed)],{'useClass':_0x5b1470}],[_0x433f65[_0x3e80ae(0x151)],{'useClass':_0x55876d}],[_0x495c62,{'useClass':_0x3f38f5}],[_0x433f65[_0x3e80ae(0x39f)],{'useClass':_0x1e046a}],[_0x39314f],[_0x1c06e7]],(_0x513f35=this['_config'])==null?void 0x0:_0x513f35['override']);if(!((_0x57cc03=this[_0x3e80ae(0xc6)])!=null&&_0x57cc03[_0x3e80ae(0x10b)])){let _0x119a87=_0x175992['findIndex'](([_0x141ba5])=>_0x141ba5===_0x4aaa76);_0x119a87!==-0x1&&_0x175992[_0x3e80ae(0x27c)](_0x119a87,0x1);}(0x0,_0x433f65[_0x3e80ae(0x399)])(this[_0x3e80ae(0x40f)],_0x175992);}['_initDependencies'](){const _0x440beb=_0x4fa2a5;var _0x5425b2,_0x132acb;if(this['_injector'][_0x440beb(0x2c0)](_0x544d24[_0x440beb(0x320)])[_0x440beb(0x3f1)]({'priority':0x14,'interceptor':(0x0,_0x544d24[_0x440beb(0x16b)])({'maxParallel':0x6})}),!((_0x5425b2=this['_config'])!=null&&_0x5425b2[_0x440beb(0x12c)])){var _0x5544a5;(_0x5544a5=this[_0x440beb(0x40f)]['get'](_0x471235,_0x433f65[_0x440beb(0x2e4)][_0x440beb(0x1aa)]))==null||_0x5544a5[_0x440beb(0x246)]();}(_0x132acb=this['_config'])!=null&&_0x132acb['enableAuthServer']&&(0x0,_0x433f65[_0x440beb(0x2b1)])(this[_0x440beb(0x40f)],[[_0x4aff48]]),(0x0,_0x433f65[_0x440beb(0x2b1)])(this['_injector'],[[_0x2a10c7],[_0x39314f],[_0x151d68]]);}};_0x5aacdf(_0x4489be,_0x4fa2a5(0x3ec),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x5aacdf(_0x4489be,_0x4fa2a5(0x2c3),_0x434948),_0x5aacdf(_0x4489be,_0x4fa2a5(0x401),_0x11be1f),_0x4489be=_0x13514e([(0x0,_0x433f65['DependentOn'])(_0x224431[_0x4fa2a5(0x15f)],_0x544d24[_0x4fa2a5(0x3e8)],_0x3a5734[_0x4fa2a5(0x3ca)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)])],_0x4489be),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ef),{'enumerable':!0x0,'get':function(){return _0x5b1470;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x34d),{'enumerable':!0x0,'get':function(){return _0x42f6fe;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x328),{'enumerable':!0x0,'get':function(){return _0x16395e;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15b),{'enumerable':!0x0,'get':function(){return _0x53717a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15e),{'enumerable':!0x0,'get':function(){return _0x1dc09d;}}),_0x25ed14[_0x4fa2a5(0x162)]=_0x18fed6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x293),{'enumerable':!0x0,'get':function(){return _0x3f38f5;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x240),{'enumerable':!0x0,'get':function(){return _0x39314f;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x17a),{'enumerable':!0x0,'get':function(){return _0x18d3ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x291),{'enumerable':!0x0,'get':function(){return _0x55876d;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x45e291;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x32a),{'enumerable':!0x0,'get':function(){return _0x2b5c76;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x3a1),{'enumerable':!0x0,'get':function(){return _0x28996e;}}),_0x25ed14[_0x4fa2a5(0x1f5)]=_0x34aefb,_0x25ed14[_0x4fa2a5(0x203)]=_0x5eefb9,_0x25ed14[_0x4fa2a5(0x3d8)]=_0x483ee6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x300),{'enumerable':!0x0,'get':function(){return _0x274b20;}}),_0x25ed14['CommentService']=_0x49219e,Object[_0x4fa2a5(0x3b2)](_0x25ed14,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x7d595b;}}),_0x25ed14[_0x4fa2a5(0x121)]=_0x4fa2a5(0x3e3),_0x25ed14[_0x4fa2a5(0x1ea)]=_0x4fa2a5(0x37e),_0x25ed14[_0x4fa2a5(0x353)]=_0x4fa2a5(0x417),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe9),{'enumerable':!0x0,'get':function(){return _0x4f0cf4;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x243),{'enumerable':!0x0,'get':function(){return _0x31d725;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11f),{'enumerable':!0x0,'get':function(){return _0x1ba45e;}}),_0x25ed14['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x25ed14[_0x4fa2a5(0x185)]=_0x4fa2a5(0x107),_0x25ed14['IAttachmentIoService']=_0x495c62,_0x25ed14[_0x4fa2a5(0x3c8)]=_0x2a5cd3,_0x25ed14[_0x4fa2a5(0x3f6)]=_0x1121da,_0x25ed14[_0x4fa2a5(0x3fe)]=_0x471235,_0x25ed14[_0x4fa2a5(0x1ad)]=_0x43e589,_0x25ed14[_0x4fa2a5(0x364)]=_0x4aaa76,_0x25ed14['LOCAL_CACHE_INTERVAL']=0x3e8,_0x25ed14['LOCAL_CACHE_INTERVAL_KEY']=_0x4fa2a5(0x358),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x1b4),{'enumerable':!0x0,'get':function(){return _0x54117e;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x387),{'enumerable':!0x0,'get':function(){return _0x1e046a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ac),{'enumerable':!0x0,'get':function(){return _0x5a97ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe7),{'enumerable':!0x0,'get':function(){return _0x25572c;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x354),{'enumerable':!0x0,'get':function(){return _0x2845dd;}}),_0x25ed14['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x4fa2a5(0xc5),_0x25ed14[_0x4fa2a5(0x235)]='RETRY_CONNECTING_MAX_COUNT',_0x25ed14['SessionStatus']=_0x151b7d,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x2c8),{'enumerable':!0x0,'get':function(){return _0x89772b;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11e),{'enumerable':!0x0,'get':function(){return _0x41b88d;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x160),{'enumerable':!0x0,'get':function(){return _0x1b8073;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xa9),{'enumerable':!0x0,'get':function(){return _0x557990;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4f3cea;}}),_0x25ed14[_0x4fa2a5(0xe1)]=_0x1af2a5,Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x232),{'enumerable':!0x0,'get':function(){return _0x4489be;}}),_0x25ed14['createUniverCollaborationAdapter']=_0x200c62,_0x25ed14[_0x4fa2a5(0x1c0)]=_0x18ff47,_0x25ed14[_0x4fa2a5(0x2ab)]=_0x12d23,_0x25ed14[_0x4fa2a5(0x2f1)]=_0xe30654;}));function _0x1d68(){const _0x3abf33=['backupOfflineData','CHANGESET_REJ','number','UnitEmbedded','COMPRESS_MUTATION_SEND','isTransformMutationsWithChangesetFailure','collabSubmitChangesetUrl','getRoom','WorkbookEditablePermission','wrong\x20sbox\x20length','maxSize','_identity','/universer-api/uniscript','_doCreateSocket','IUndoRedoService','getCollabEntity','encode','constructor','_handler','_commentService','changesets','MentionIoHttpService','_decreaseWaiting','collaboratorID','_docStateChangeManagerService','memberID','commit','socket\x20close','_transformIMECache','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','CommandType','awaitingChangeset','IDLE','_commentUpdate$','/unit/','withAAD','_compressMutationService','getImage','subarray','registerDependencies','_schedule','IUniverInstanceService','telemetry\x20info\x20is\x20not\x20initialized','_members$','\x20of\x20length\x20','IMentionIOService','hasOwnProperty','CollaborationSocketService','_sender','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','baseRev','9dUgQEE','Slide','attachment','snapshot','_handlerCallback','c1Prime','_toggleOffline','onCommentUpdate','delete','_startTelemetryCollaborationNewChangeset','_replaceFileID','take','defineProperty','getCurrentUser','dispose','objectId','session.room-permission-denied','cfgEnableObjInherit','UserManagerService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','unsubscribe','rxjs','subject','_entityInit$','stringify','revision','_singleActiveUnitService','_showConflictProcessingNotification','save\x20fail\x20reason\x20is\x20','getUnitType','append','conflict','type','responseType','ICollaborationClientAdapterService','_permissionService','UniverCollaborationPlugin','_sessionStatus$','loadPdf','replace','includes','RETRY_CONNECTING_MAX_COUNT','getCollabEntity$','_status$','CONFLICT_CACHE_CLEAR_FAILED','accept','_getCtorByUniverInstanceType','_joinRoom','_updateState','firstValueFrom','CollaborationUIEventService','commentUpdateEvent','liveShareOperation','awaiting_with_pending','_networkConditionService','_getUploadFileURL','_isPermissionRej','_exhaustRemoteChangesetQueue','resend','indexOf','updateCollaborator','ws://127.0.0.1:8000/universer-api/comb/connect','saveSheetBlock','transformUndoRedo','retryCount','JOIN_ROOM_FULL','UniverNetworkPlugin','_onRecvEvent','[UniverCollaborationClientPlugin]','unitDisposed$','pluginName','IAuthzIoService','getValue','SHOULD_CLOSE_CONN','OTHER_CLIENT_EDITING','registerHTTPInterceptor','href','_univerInstanceService','now','unitInfo$','ICollaborationSocketService','Base','AddSlidePageMutation','MSG_FOR_ERROR','[PendingState]:\x20received\x20rejection.','mapDocumentTypeToUniverInstanceType','_resendWithTimeout','getUploadOptions','ILocalCacheService','UNIVER_PDF','UniverSheets','version','send','online$','session.join-failed','localCacheService','UNISCRIPT_RUN','appendMutation','prototype','OTHER_CLIENTS_EDITING','refreshPermission','setConfig','requireSession','_clearRedo','getTypeOfUnitDisposed$','_injector','complete','duration','isInternalEditorID','disposeWithMe','CONFLICT_PROCESSING','_change$','fromCollab','/universer-api/user/session-ticket','[CollaborationSessionService]','session.room-not-exists','getAttachmentUrl','key','reduce','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','/universer-api/snapshot/','unit','UniverInstanceType','toggleOnline','SNAPSHOT_URL_KEY','retryConnectingInterval','SnapshotServerOverHTTPService','objectPermissionTypes','_hasSessionsForEndpoint','Plugin','createIdentifier','_onConflict','_tryReconnect','_sheetTransformSelectionsService','onRemoteAck','_createInitialState','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','UNIVER_SHEET','_incrementRevisionNumber','code','generateRandomId','ISnapshotServerService','sessionStatus','onPrepareTransformSelections','members','RevisionService','candidateSocket','UniverDrawing','csShouldRetryEvent','_updateLocalCache','_unlockTransition','addImageSourceCache','_acknowledgeAwaiting','dispose$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_config','requestParams','updatePermissionObjEvent','LEAVE','/universer-api/authz','range','crypto','UNIVER_SLIDE','USERS_ENTER','LocalUndoRedoService','/fetchmissing?from=','9EXhpDO','LIVESHARE_OPERATION','[SyncedState]:\x20received\x20rejection.','shareReplay','length=','univer-pro.collaboration-client.network-condition.service','getConfig','/-/object/-/batch_allowed','b64DecodeUnicode','_state','_userManagerService','nonceLength','onRemoteRetry','Uint8Array','@univerjs-pro/slides','_createInitialStateImpl','UnitStatus','__Key__','isTransformMutationsWithChangesetSuccess','mergeOverrideWithDependencies','sheets','batchAllowed','PdfCollaborationEntity','_clearRetryConnectingTimer','DataLoaderService','onMissingChangesets','objectType','CollaborationEvent','getUnitId','_registerDependencies','_waitForHeartbeatResponse','loadSheet','UniverProCollaborationClient','[OfflineState]:\x20received\x20rejection.','onload','reverse','rev','incrementRevOfUnit','MoveSlidePageMutation','csAckEvent','changeset','onTransformSelections','ONLINE','_onUserLeave','getActiveSheet','_getLoginPath','_snapshotService','liveShareNewHost','find','UniverProtocol','socket$','/block/','_startCollaboration','_changesetSessionId','HEARTBEAT_TIMEOUT','LIVESHARE_NEW_HOST','SUCCUSS','unitType','enableSingleActiveInstanceLock','set','_initDependencies','_sendingTimer','_removeRoom','subUnitId','parseProtocolChangeset','getGlobalObject','capture','_createSocket','default','onTransformRemoteChangesetByStateCache','onMutationExecutedForCollab','getImageSourceCache','_collaborationSessionService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endpointKey','cipher\x20output\x20not\x20supported','createInstance','SheetTransformSelectionsService','FetchingMissState','_snapshotServerService','DEFAULT_COLLAB_WEB_SOCKET_URL','_stopTelemetryCollaborationNewChangeset','/allowed','error$','hostname','loadSlide','@univerjs-pro/license','COMMENT_UPDATE','@univerjs/protocol','_clearHeartbeatTimer','method','enableOfflineEditing','socketMessageSubscription','decrypt','saveAttachment','eventID','?size=','saveImage','_waitCount','_adapter','getDeserializedSheetBlock','UPDATE_PERMISSION_OBJ','allowed','sendChangesetTimeout','every','endpoint','InsertSheetMutation','_getUnitPermissionPoints','FAIL','withCredentials','_event$','resolve','_revisionService','transformChangesets','startsWith','_onRemoteRejected','CLOSE_ROOM','UNIVER_BASE','docStateChange$','update','setWaitCount','_onConnectionOpen','HEARTBEAT','_onCombEvent','newCsEvent','joinEvent','_scheduleCompleteTimestamp','_initRequestHeader','IImageIoService','JSONX','isTransformChangesetsSuccess',',\x20got\x20','Subject','infoRsp','MUTATION','FileSource','selections','[FetchMissState]','BaseCollaborationEntity','ObjectPermissionService','operators','BoardCollaborationEntity','UniverLicensePlugin','SlideCollaborationEntity','userID','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','next','LIVESHARE_FETCH_OPERATIONS','confirm','@univerjs/telemetry','RemoveSlidePageMutation','values','UNIVER_BOARD','rxjs/operators','ThresholdInterceptorFactory','failed\x20to\x20apply\x20missed\x20changesets!','ICommandService','delay','_disableEditing','reject','endsWith','toString','file','_syncEditingCollabCursor','_instanceService','amd','loadUnitOfRevision','Inject','deleteCollaborator','CollaborationEntity','ImageSourceType','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','close','headers','UnitAction','&assign=','createCollaborator','_fetchMissChangesets','JOIN_ROOM_FAILED','RichTextEditingMutation','HEARTBEAT_TIMEOUT_KEY','_initUnitPermissionChange','error','onMissedChangesetFetched','_getSendChangesetTimeout','tagLength','_disposed','retryConnectingTimer','onRemoteRej','buffer','downloadEndpointUrl','getRandomValues','_isEchoedAwaitingChangeset','pipe','getInterceptPoints','_onJoinRoomEvent','collaborators','AAD','message$','COMPRESS_MUTATION_APPLY','sessionStatus$','_executeRemoteChangeset','onTransformState','_clearCollaborationTimeoutTimer','&source=','PERMISSION_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','charCodeAt','[PendingState]:\x20received\x20acknowledgement.','create','_listenToNetworkCondition','catch','bytesLength','isCompositionEnd','univer-pro.collaboration-client-socket-service','entries','_configService','OPTIONAL','fetchMiss','OfflineState','INetworkConditionService','ciphertext\x20must\x20be\x20multiple\x20of\x2016','onTransformRemoteChangesetByIMECache','collaboration-client.config','ILogService','slice','_createHandler','MemberService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','origin','_lockTransition','@univerjs-pro/collaboration','textRanges','getTypeOfUnitAdded$','aes:\x20bad\x20decrypt','_collaborationPaused','state','468080jxhwNn','deserializeToCombResponse','trim','members$','takeUntil','@univerjs-pro/collaboration-client','JOIN_ROOM_PERMISSION_DENIED','_onFetchMissResult','_replayCachedMutations','_acknowledgedAwaitingRevision','concatMap','_type','getOwnPropertyDescriptor','NO_OTHER_CLIENTS_EDITING','synced','Error\x20on\x20receiving\x20event','ERROR_IMAGE','FETCH_MISS','action','forEach','localUnitId','_getSocketChannel','?url=','_transformStack','PERSON','_clearTimeoutTimer','USERS_LEAVE','CompressMutationService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getSnapshotAPIPath','size','has','fetchMissingChangesets','collaboration_new_changeset','FETCH_MISSING','_sessionChannels','_transformRemoteChangesetByIMECache','_toggleOnline','sequenceExecute','_showConflictNotification','missingChangesets','status','_getConfig','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','joinRsp','status$','_commandService','AuthzIoHttpService','/resources','_initCloseConn','reqId','symbol','RECV','CollaborationStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isArray','BehaviorSubject','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getDrawingImageAllowSize','DocStateChangeManagerService','[CollaborationUndoRedoService]','readyForCollab','encrypt','parse','post','_getAPIPrefix','CollaborationUIEventId','HTTPRequest','/universer-api/snapshot','params','INGEST','length','_pendingSessions','cmd','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_substituteUndoStack','_roomMembers','_socketMessageSubscription','unitID','Board','ERROR_IMAGE_TYPE','_getAPIPrefixPath','IContextService','HELLO','editingUnit','_checkMissing','_unitInfo$','FileId','UniverProCollaboration','add','min','unitLoaded$','[CollaborationSession]','createSocket','_unitLoaded$','object','_transitionLocked','[OfflineState]:\x20received\x20acknowledgement.','map','/collaborator','socketReady','push','toDisposable','unitId','title','Univer','_getUndoStack','SUBMIT_CHANGESET','JOIN','_resendTimeout','_shouldReportTelemetry','routeKey','UniverCollaborationClientPlugin','offline','not_collab','RETRY_CONNECTING_MAX_COUNT_KEY','_prepareTransformSelections','UNIVER_DOC','DisposableCollection','enableCollaboration','_prepareConflictRecovery','debug','pending','Tools','UnitObject','BYTES_PER_ELEMENT','CollaborationController','stopTime','sort','DocCollaborationEntity','collaMsg','session.room-full','disableLocalCache','commentUpdate$','fetch_missing','_closedUnits','onRemoteChangeset','RxDisposable','target','_substituteRedoStack','upload','NEW_CHANGESETS','getMemberID','getMember','subscribe','awaiting','_onOffline','Module','onSyncEditingCollabCursor','uuidv4','_eventService','m2Prime','_onUserJoin','UniverProLicense','_scheduleCollaborationTimeoutTimer','_transformStateCache','SheetsSelectionsService','sendHeartbeatTimer','filter','162540ZWNvGP','varSizeNonce','toLocal','addHandlerCallback','string','listCollaborators','_localeService','Edit','Workbook','localeService','_acknowledgeAwaitingIfReady','IPermissionService','waitForRoom$','parseChangesetToProtocol','_undoRedoService','_redoStacks','_imageSourceCache','byteOffset','_queuedRemoteChangesets','Injector','string\x20expected','_state$','session','getResourcesRequest','_clearUndo','CmdRspCode','_telemetryInfo','splice','UniverDocs','_resolveSessionIdentity','connection\x20error','body','unknown','1311633zRFGMv','\x20in\x20_schedule.','closeSession','fetchThroughInterceptors','clearUnit','getAllMembers','_onRemoteRetry','SOCKET_FAILED','resolveWithBasePath','getTime','_getCurrentRevision','src','updatePermissionPoint','exports','_sendHeartbeat','CollaborationImageIoService','_transformAndApplyRemoteChangeset','CollaborationAttachmentIoService','decorate','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','\x20-\x20','_collabSessionService','merge','toggleOffline','byteLength','_init','/rev/','ImageUploadStatusType','SetSelectionsOperation','_undoStacks','_updateStatus','SnapshotService','_authzIoService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','objectActions','LIVESHARE_TERMINATE','[DataLoaderService]','getAllPermissionPoint','_changesetReqId','unitId\x20is\x20not\x20found','IConfigService','getLocalCacheKey','onTransformIME','transformMutationsWithChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','@univerjs/docs','setShowComponents','touchDependencies','\x20to\x20','UUID','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','some','OFFLINE','/new_changes','_refreshUnitPermission','_tryEnsureSocket','_initMergeInterceptor','@univerjs/core','SOCKET_FAILED_RETRY','executeCommand','c2Prime','textEncoder','get','_handleRemoteChangesets','_clearScheduledTask','packageName','interceptor','UPDATE_CURSOR','editing\x20status\x20changed\x20to','data','SheetCollaborationEntity','_HTTPService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','2601410KJEeIf','ITransformService','_getRedoStack','putCollaborators','emitEvent','PERMISSION_DENIED','_getDownloadEndpointURL','Rectangle','DEFAULT_FILE_NAME','sid','mutations','focused$','_collaborationTimeoutTimer','list','onSendChangeset','subType','columnGroups','_applyRemoteChangeset','DRAWING_IMAGE_ALLOW_IMAGE_LIST','uploadFileServerUrl','getUnit','put','_pendingMutations','_upload','removeMember','Quantity','call','PENDING','objectID','_telemetryService','collabWebSocketUrl','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','getWorkbookSelections','PSEUDO_FETCH_MISSING_RESULT','loadDoc','People','init','shouldCloseConn','serializeCombRequest','AWAITING_WITH_PENDING','x-univer-host','initWorkbookPermissionChange','getFocusedUnit','_getSignURL','_transformRemoteChangesetByStateCache','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','clear','startTime','onlyLocal','_remoteChangesetQueue','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_awaitingChangeset','open$','CollaborativeUndoRedoService','authzUrl','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','_updateUnitPermissionPoint','_localCacheService','nonce','saveSnapshot','output','/-/object/list','onStarting','actions','isPermissionRej','_onRemoteACK','{fileID}','_members','deepClone','loginUrlKey','_transformSelections','loadUnit','_socket','_logService','_cfgEnableObjInherit','/object/','assign','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ERROR_EXCEED_SIZE','updateMember','_transformUndoredo','_maxTotalRetryTimeout','univer-pro.collaboration-client.single-active-unit-service','location','_memberService','HTTPService','88562OYHEqS','change$','pauseCollaboration','_transformService','Disposable','ErrorCode','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','AwaitingWithPendingState','/universer-api/stream/file/upload','CollaborationSessionService','Optional','_socketChannels','JOINING','originalMeta','text-x','getUnitStatus$','_emitMembers','reconnect','saveChangeset','entityInit$','_submitChangeset','onLocalMutation','ReplaySubject','/universer-api/file/{fileID}/sign-url','getSheetId','_entities','socketService','_httpService','close$','from','resolveUnit','state$','name','_sessions','asObservable','timeoutTimer','url','session.room-cnt-exceeds','_collaborationUIEventService','roles','resourceIDs','objects','_roomCreated$','@univerjs/network','AwaitingState','CONFLICT','1378056ngeUVI','@univerjs/drawing','encodeURIComponent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','DEFAULT_WS_SESSION_TICKET_URL','PendingState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getLatestCsReqIdBySid','compose','LOCAL_CACHE_INTERVAL','_resendTimer','CombCmd','_onMessage','_createSession','_onLocalMutation','disablePadding','MentionType','SUBMIT_CHANGESET_TIMEOUT','/universer-api/comb','signUrlServerUrl','/universer-api/oidc/authpage','ISingleActiveUnitService','POST','LocaleService','4543016AMkCkt','_onRemoteChangeset','rollback','function','_rescheduleHeartbeat','getCfgEnableObjInherit','OBJECT_PERMISSION_CONFIG_KEY','leaveEvent','getCurrentRevOfUnit','CHANGESET_ACK','EnsureSlideMasterPageMutation'];_0x1d68=function(){return _0x3abf33;};return _0x1d68();}