@univerjs-pro/collaboration-client 1.0.0 → 1.0.1

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(_0x5d41f9,_0x1f3449){const _0x557d7b=_0x328a,_0x2069f1=_0x5d41f9();while(!![]){try{const _0xde426a=-parseInt(_0x557d7b(0x29d))/0x1+-parseInt(_0x557d7b(0x2d3))/0x2+parseInt(_0x557d7b(0x359))/0x3*(-parseInt(_0x557d7b(0x2d5))/0x4)+-parseInt(_0x557d7b(0x16d))/0x5+-parseInt(_0x557d7b(0x38f))/0x6*(-parseInt(_0x557d7b(0x22a))/0x7)+parseInt(_0x557d7b(0x37b))/0x8*(parseInt(_0x557d7b(0x297))/0x9)+parseInt(_0x557d7b(0x41c))/0xa;if(_0xde426a===_0x1f3449)break;else _0x2069f1['push'](_0x2069f1['shift']());}catch(_0x1a442e){_0x2069f1['push'](_0x2069f1['shift']());}}}(_0x3671,0xbb312),function(_0x3e0c36,_0x23a2f7){const _0x10629f=_0x328a;typeof exports==_0x10629f(0x26e)&&typeof module<'u'?_0x23a2f7(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==_0x10629f(0x474)&&define[_0x10629f(0x3f7)]?define([_0x10629f(0x1b6),_0x10629f(0x367),_0x10629f(0x27c),_0x10629f(0x156),_0x10629f(0x1d5),_0x10629f(0x374),_0x10629f(0x3d1),_0x10629f(0x2df),_0x10629f(0x263),_0x10629f(0x246),_0x10629f(0x1bc),_0x10629f(0x24c),_0x10629f(0x1ee)],_0x23a2f7):(_0x3e0c36=typeof globalThis<'u'?globalThis:_0x3e0c36||self,_0x23a2f7(_0x3e0c36[_0x10629f(0x288)]={},_0x3e0c36['UniverProCollaboration'],_0x3e0c36[_0x10629f(0x153)],_0x3e0c36['UniverDocs'],_0x3e0c36[_0x10629f(0x119)],_0x3e0c36['rxjs'],_0x3e0c36[_0x10629f(0x1b2)],_0x3e0c36[_0x10629f(0x3bd)],_0x3e0c36[_0x10629f(0x374)]['operators'],_0x3e0c36[_0x10629f(0x1d9)],_0x3e0c36[_0x10629f(0x285)],_0x3e0c36[_0x10629f(0x125)],_0x3e0c36[_0x10629f(0x40f)]));}(this,function(_0x27ec94,_0x5199be,_0x4b2515,_0x120ed0,_0x4ea268,_0xccd21e,_0x349630,_0x3ca46c,_0x2c33e8,_0x471a79,_0x530da8,_0x3ed42b,_0x443efc){const _0x9884d2=_0x328a;Object[_0x9884d2(0x1ce)](_0x27ec94,Symbol['toStringTag'],{'value':_0x9884d2(0x3a0)});let _0x3c0330=_0x9884d2(0x3c1),_0xa070fb={};function _0x3edac7(_0x2f3b25){const _0x284ec1=_0x9884d2;return JSON[_0x284ec1(0x3ee)](_0x2f3b25)['length'];}function _0xbbfc1d(_0x334e0c){'@babel/helpers - typeof';const _0x113da6=_0x9884d2;return _0xbbfc1d=typeof Symbol==_0x113da6(0x474)&&typeof Symbol[_0x113da6(0x37e)]==_0x113da6(0x3ab)?function(_0x1f0765){return typeof _0x1f0765;}:function(_0x2da0db){const _0x5ad084=_0x113da6;return _0x2da0db&&typeof Symbol==_0x5ad084(0x474)&&_0x2da0db[_0x5ad084(0x11a)]===Symbol&&_0x2da0db!==Symbol['prototype']?'symbol':typeof _0x2da0db;},_0xbbfc1d(_0x334e0c);}function _0x1685ec(_0x4449c8,_0x5f1454){const _0x3daeb4=_0x9884d2;if(_0xbbfc1d(_0x4449c8)!=_0x3daeb4(0x26e)||!_0x4449c8)return _0x4449c8;var _0x312b62=_0x4449c8[Symbol[_0x3daeb4(0x28a)]];if(_0x312b62!==void 0x0){var _0x516cd9=_0x312b62[_0x3daeb4(0x43d)](_0x4449c8,_0x5f1454||'default');if(_0xbbfc1d(_0x516cd9)!=_0x3daeb4(0x26e))return _0x516cd9;throw TypeError(_0x3daeb4(0x129));}return(_0x5f1454===_0x3daeb4(0x212)?String:Number)(_0x4449c8);}function _0x2c1259(_0x805b6c){const _0x1c366c=_0x9884d2;var _0xefed27=_0x1685ec(_0x805b6c,'string');return _0xbbfc1d(_0xefed27)==_0x1c366c(0x3ab)?_0xefed27:_0xefed27+'';}function _0x60128a(_0x32986f,_0x46e5eb,_0x9c5410){const _0x5c2cf0=_0x9884d2;return(_0x46e5eb=_0x2c1259(_0x46e5eb))in _0x32986f?Object[_0x5c2cf0(0x1ce)](_0x32986f,_0x46e5eb,{'value':_0x9c5410,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32986f[_0x46e5eb]=_0x9c5410,_0x32986f;}let _0x491b70=function(_0x5e0f1b){const _0x163610=_0x9884d2;return _0x5e0f1b['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5e0f1b[_0x163610(0x1f9)]=_0x163610(0x1f9),_0x5e0f1b[_0x163610(0x296)]=_0x163610(0x296),_0x5e0f1b['CONFLICT_CACHE_CLEAR_FAILED']=_0x163610(0x260),_0x5e0f1b[_0x163610(0x24a)]=_0x163610(0x24a),_0x5e0f1b['CLOSE_ROOM']=_0x163610(0x345),_0x5e0f1b[_0x163610(0x44e)]=_0x163610(0x44e),_0x5e0f1b['SOCKET_FAILED_RETRY']=_0x163610(0x3a2),_0x5e0f1b[_0x163610(0x163)]=_0x163610(0x163),_0x5e0f1b[_0x163610(0x3db)]='SUBMIT_CHANGESET_TIMEOUT',_0x5e0f1b;}({});var _0xeca6ce=class{constructor(){const _0x305bfd=_0x9884d2;_0x60128a(this,_0x305bfd(0x3f8),new _0xccd21e[(_0x305bfd(0x200))]()),_0x60128a(this,'event$',this[_0x305bfd(0x3f8)]['asObservable']());}[_0x9884d2(0x1db)](_0x229be6){const _0x3b4597=_0x9884d2;this[_0x3b4597(0x3f8)][_0x3b4597(0x17e)](_0x229be6);}},_0x16a8e3=class{constructor(){const _0x3afdff=_0x9884d2;_0x60128a(this,'_commentUpdate$',new _0xccd21e[(_0x3afdff(0x200))]()),_0x60128a(this,'commentUpdate$',this[_0x3afdff(0x44a)][_0x3afdff(0x43c)]());}['onCommentUpdate'](_0x185f18){const _0x1bde87=_0x9884d2;this[_0x1bde87(0x44a)]['next'](_0x185f18);}};function _0x3b5628(_0x22c973,_0x24d50f){return function(_0x4f3fe3,_0x581892){_0x24d50f(_0x4f3fe3,_0x581892,_0x22c973);};}function _0x33ad5b(_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8){const _0x4af901=_0x9884d2;var _0x1b1f95=arguments['length'],_0x53af28=_0x1b1f95<0x3?_0x5454ad:_0x4423c8===null?_0x4423c8=Object[_0x4af901(0x13f)](_0x5454ad,_0x1be3b1):_0x4423c8,_0x2d52b9;if(typeof Reflect==_0x4af901(0x26e)&&typeof Reflect[_0x4af901(0x2c0)]==_0x4af901(0x474))_0x53af28=Reflect['decorate'](_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8);else{for(var _0x293edd=_0x145fb3['length']-0x1;_0x293edd>=0x0;_0x293edd--)(_0x2d52b9=_0x145fb3[_0x293edd])&&(_0x53af28=(_0x1b1f95<0x3?_0x2d52b9(_0x53af28):_0x1b1f95>0x3?_0x2d52b9(_0x5454ad,_0x1be3b1,_0x53af28):_0x2d52b9(_0x5454ad,_0x1be3b1))||_0x53af28);}return _0x1b1f95>0x3&&_0x53af28&&Object[_0x4af901(0x1ce)](_0x5454ad,_0x1be3b1,_0x53af28),_0x53af28;}let _0x50f206=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x4cd417){const _0x1f32e4=_0x9884d2;super(),this['_univerInstanceService']=_0x4cd417,_0x60128a(this,_0x1f32e4(0x2f8),new Map()),_0x60128a(this,'_roomCreated$',new _0xccd21e[(_0x1f32e4(0x200))]()),this[_0x1f32e4(0x472)]((0x0,_0xccd21e[_0x1f32e4(0x448)])(this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)]['UNIVER_SHEET'])['pipe']((0x0,_0x2c33e8['map'])(_0x5cc4a9=>_0x5cc4a9[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x10f)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x1996a3=>_0x1996a3['getUnitId']())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515['UniverInstanceType'][_0x1f32e4(0x339)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x40c809=>_0x40c809[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x267)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x327d34=>_0x327d34[_0x1f32e4(0x413)]())))[_0x1f32e4(0x23b)](_0x58562a=>this[_0x1f32e4(0x29c)](_0x58562a)));}[_0x9884d2(0x392)](_0x389bcd){const _0x1d0a20=_0x9884d2;return this[_0x1d0a20(0x2f8)]['has'](_0x389bcd)?(0x0,_0xccd21e['of'])(this['_roomMembers'][_0x1d0a20(0x2eb)](_0x389bcd)):this[_0x1d0a20(0x350)][_0x1d0a20(0x486)]((0x0,_0x2c33e8[_0x1d0a20(0x333)])(_0x483201=>{const _0x1e56c3=_0x1d0a20;if(_0x483201===_0x389bcd)return this['_roomMembers'][_0x1e56c3(0x2eb)](_0x483201);}));}['updateMember'](_0x4ef1c2,_0x2d0c8e){const _0x2d9744=_0x9884d2;let _0x324644=this['_roomMembers'][_0x2d9744(0x2eb)](_0x4ef1c2);_0x324644||(_0x324644=new _0x361b33(),this[_0x2d9744(0x2f8)]['set'](_0x4ef1c2,_0x324644),this[_0x2d9744(0x350)][_0x2d9744(0x17e)](_0x4ef1c2)),_0x324644[_0x2d9744(0x2d4)](_0x2d0c8e);}['removeMember'](_0x5cd723,_0x1950e7){const _0x5ae998=_0x9884d2;let _0x50f80d=this[_0x5ae998(0x2f8)]['get'](_0x5cd723);_0x50f80d&&_0x50f80d[_0x5ae998(0x110)](_0x1950e7);}[_0x9884d2(0x45d)](_0x2ec5c2){const _0x49b6fd=_0x9884d2;return this[_0x49b6fd(0x2f8)][_0x49b6fd(0x2eb)](_0x2ec5c2);}[_0x9884d2(0x1e1)](_0x4bfdc6,_0x21f9b3){const _0x900b69=_0x9884d2;let _0x31b98e=this[_0x900b69(0x2f8)][_0x900b69(0x2eb)](_0x4bfdc6);if(_0x31b98e)return _0x31b98e[_0x900b69(0x1e1)](_0x21f9b3);}[_0x9884d2(0x29c)](_0x2bac59){const _0x29d5fa=_0x9884d2;let _0x1b13a0=this[_0x29d5fa(0x2f8)]['get'](_0x2bac59);_0x1b13a0&&(_0x1b13a0[_0x29d5fa(0x314)](),this[_0x29d5fa(0x2f8)][_0x29d5fa(0x287)](_0x2bac59));}[_0x9884d2(0x314)](){const _0x3059d0=_0x9884d2;this[_0x3059d0(0x2f8)][_0x3059d0(0x1e3)](_0x23c006=>_0x23c006[_0x3059d0(0x314)]()),this['_roomMembers'][_0x3059d0(0x214)](),this[_0x3059d0(0x350)][_0x3059d0(0x41f)]();}};_0x50f206=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x405)])],_0x50f206);var _0x361b33=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(..._0xd6def7){const _0xb998ca=_0x9884d2;super(..._0xd6def7),_0x60128a(this,'_members',new Map()),_0x60128a(this,_0xb998ca(0x32c),new _0xccd21e['BehaviorSubject'](this[_0xb998ca(0x1f0)])),_0x60128a(this,'members$',this[_0xb998ca(0x32c)][_0xb998ca(0x43c)]());}['dispose'](){const _0x148145=_0x9884d2;this['_members']['clear'](),this[_0x148145(0x32c)][_0x148145(0x41f)]();}[_0x9884d2(0x2d4)](_0x45add4){const _0x3822e0=_0x9884d2;this[_0x3822e0(0x1f0)][_0x3822e0(0x41e)](_0x45add4[_0x3822e0(0x417)],_0x45add4),this[_0x3822e0(0x121)]();}['removeMember'](_0x5a1ff1){const _0x1e3682=_0x9884d2;this[_0x1e3682(0x1f0)][_0x1e3682(0x287)](_0x5a1ff1),this[_0x1e3682(0x121)]();}[_0x9884d2(0x1e1)](_0x5e20cc){const _0x4f0d1c=_0x9884d2;return this[_0x4f0d1c(0x1f0)]['get'](_0x5e20cc);}[_0x9884d2(0x3c4)](){const _0x56e609=_0x9884d2;return Array[_0x56e609(0x178)](this['_members'][_0x56e609(0x1f3)]());}[_0x9884d2(0x121)](){const _0x5a5068=_0x9884d2;this[_0x5a5068(0x32c)][_0x5a5068(0x17e)](this[_0x5a5068(0x1f0)]);}};function _0x17beb4(_0x323e1d,_0x353213){const _0x55e6f4=_0x9884d2;if(_0x57c9b8(_0x323e1d))return _0x353213;if(_0x353213['eventID']===_0x5199be[_0x55e6f4(0x261)][_0x55e6f4(0x209)]){let _0x572194=_0x5453e8(_0x323e1d),_0x561983=_0x353213;return{..._0x561983,'data':{..._0x561983['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x3f0)],'unitType':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x294)]??_0x561983['data']['unitType'],'changeset':_0x572194['toRemote'](_0x561983[_0x55e6f4(0x1b4)][_0x55e6f4(0x166)],_0x1acbbf(_0x323e1d))}};}if(_0x353213[_0x55e6f4(0x1b3)]===_0x5199be['CollaborationEvent'][_0x55e6f4(0x318)]){let _0x285f5c=_0x353213;return{..._0x285f5c,'data':{..._0x285f5c['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)]['unitId'],'unitType':_0x323e1d[_0x55e6f4(0x479)]['unitType']??_0x285f5c[_0x55e6f4(0x1b4)][_0x55e6f4(0x294)]}};}return _0x353213;}function _0x1441b1(_0x5bf069,_0x13bf88){const _0x43433a=_0x9884d2;if(_0x57c9b8(_0x5bf069))return[_0x13bf88];switch(_0x13bf88[_0x43433a(0x1b3)]){case _0x5199be[_0x43433a(0x261)]['NEW_CHANGESETS']:return[_0x5428aa(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x18e)]:return[_0x2ffb12(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x238)]:return[_0x4893b9(_0x5bf069,_0x13bf88)];default:return[_0x13bf88];}}function _0x57c9b8(_0x47e813){const _0x45f1d=_0x9884d2;return _0x47e813[_0x45f1d(0x479)][_0x45f1d(0x13b)]==null&&_0x47e813[_0x45f1d(0x479)][_0x45f1d(0x3f0)]===_0x47e813[_0x45f1d(0x2be)]&&!_0x47e813[_0x45f1d(0x166)];}function _0x5428aa(_0x17de18,_0x36b94e){const _0x434c5a=_0x9884d2;return{..._0x36b94e,'data':(0x0,_0x5199be[_0x434c5a(0x21a)])(_0x70e246(_0x17de18,(0x0,_0x5199be[_0x434c5a(0x22c)])(_0x36b94e[_0x434c5a(0x1b4)])))};}function _0x4893b9(_0x569776,_0x56db55){return{..._0x56db55,'data':_0x70e246(_0x569776,_0x56db55['data'])};}function _0x2ffb12(_0x2e888b,_0xa6dad2){const _0x324788=_0x9884d2;let _0xf2d938=_0xa6dad2[_0x324788(0x1b4)];return{..._0xa6dad2,'data':{..._0xf2d938,'changesets':_0xf2d938[_0x324788(0x3cd)][_0x324788(0x333)](_0x276145=>(0x0,_0x5199be['parseChangesetToProtocol'])(_0x70e246(_0x2e888b,(0x0,_0x5199be['parseProtocolChangeset'])(_0x276145))))}};}function _0x70e246(_0xa509bc,_0x1b3cc1){const _0x496533=_0x9884d2;return _0x5453e8(_0xa509bc)[_0x496533(0x396)](_0x1b3cc1,_0x1acbbf(_0xa509bc));}function _0x5453e8(_0x2ec3fa){const _0x403bf6=_0x9884d2;if(!_0x2ec3fa[_0x403bf6(0x166)])throw Error(_0x403bf6(0x241));return _0x2ec3fa[_0x403bf6(0x166)];}function _0x1acbbf(_0x354c5f){const _0x26d162=_0x9884d2;return{'localUnitId':_0x354c5f[_0x26d162(0x2be)],'unitType':_0x354c5f[_0x26d162(0x294)],'target':_0x354c5f[_0x26d162(0x479)]};}let _0x5089ce=function(_0x35e7c6){const _0x5d786b=_0x9884d2;return _0x35e7c6[_0x35e7c6[_0x5d786b(0x1d7)]=0x0]=_0x5d786b(0x1d7),_0x35e7c6[_0x35e7c6[_0x5d786b(0x401)]=0x1]=_0x5d786b(0x401),_0x35e7c6[_0x35e7c6['OFFLINE']=0x2]='OFFLINE',_0x35e7c6[_0x35e7c6[_0x5d786b(0x1d6)]=0x3]=_0x5d786b(0x1d6),_0x35e7c6;}({}),_0x1f73eb={[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x346)]]:'session.join-failed',[_0x349630[_0x9884d2(0x440)]['JOIN_ROOM_FULL']]:_0x9884d2(0x115),[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x13d)]]:_0x9884d2(0x113),[_0x349630['CmdRspCode'][_0x9884d2(0x1f2)]]:'session.room-permission-denied',[_0x349630[_0x9884d2(0x440)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x9884d2(0x459)},_0x188c53=class extends _0x4b2515[_0x9884d2(0x190)]{get[_0x9884d2(0x2e5)](){const _0xdeba48=_0x9884d2;return this[_0xdeba48(0x250)][_0xdeba48(0x383)]();}constructor(_0x3328e5,_0x41f739,_0x54e447,_0x16b47c,_0x4f8fc2,_0x19f651,_0x116cee,_0x34deb2){const _0x22668a=_0x9884d2;super(),this[_0x22668a(0x1fd)]=_0x3328e5,this[_0x22668a(0x344)]=_0x54e447,this[_0x22668a(0x3c6)]=_0x16b47c,this[_0x22668a(0x13c)]=_0x4f8fc2,this['_commentService']=_0x19f651,this['_collaborationUIEventService']=_0x116cee,this[_0x22668a(0x3d8)]=_0x34deb2,_0x60128a(this,_0x22668a(0x250),new _0xccd21e[(_0x22668a(0x379))](0x0)),_0x60128a(this,_0x22668a(0x148),this[_0x22668a(0x250)][_0x22668a(0x43c)]()),_0x60128a(this,_0x22668a(0x3f8),new _0xccd21e[(_0x22668a(0x200))]()),_0x60128a(this,_0x22668a(0x2e6),this['_event$'][_0x22668a(0x43c)]()),_0x60128a(this,'_socket',void 0x0),_0x60128a(this,_0x22668a(0x1a5),void 0x0),_0x60128a(this,_0x22668a(0x36d),void 0x0),_0x60128a(this,_0x22668a(0x1c6),!0x1),_0x60128a(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x41f739['pipe']((0x0,_0xccd21e['takeUntil'])(this[_0x22668a(0x36c)]))[_0x22668a(0x23b)](_0x3dcdec=>{const _0x24100c=_0x22668a;if(_0x3dcdec!==void 0x0){if(this[_0x24100c(0x160)]=_0x3dcdec,_0x3dcdec)this[_0x24100c(0x306)](_0x3dcdec),this[_0x24100c(0x1a5)]=_0x3dcdec[_0x24100c(0x400)]['subscribe'](_0x4db2ef=>{const _0x4028ef=_0x24100c;_0x4db2ef[_0x4028ef(0x3f4)]===this['_identity'][_0x4028ef(0x479)]['unitId']&&this[_0x4028ef(0x33d)](_0x4db2ef);});else{var _0x1df242;this[_0x24100c(0x426)](),this['_sessionStatus$'][_0x24100c(0x17e)](0x2),(_0x1df242=this[_0x24100c(0x1a5)])==null||_0x1df242[_0x24100c(0x29f)](),this[_0x24100c(0x1a5)]=null;}}});}[_0x9884d2(0x444)](){const _0x7823af=_0x9884d2;var _0x51c1c5;return((_0x51c1c5=this['_socket'])==null?void 0x0:_0x51c1c5[_0x7823af(0x417)])??null;}['dispose'](){const _0x36f7d9=_0x9884d2;super['dispose'](),this[_0x36f7d9(0x243)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x17e)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x41f)]();}[_0x9884d2(0x243)](){const _0x456ccd=_0x9884d2;var _0x44f8b7;this[_0x456ccd(0x426)](),(_0x44f8b7=this[_0x456ccd(0x160)])==null||_0x44f8b7[_0x456ccd(0x2d6)]({'cmd':_0x349630[_0x456ccd(0x293)][_0x456ccd(0x2fc)],'data':{'roomID':this[_0x456ccd(0x1fd)][_0x456ccd(0x479)][_0x456ccd(0x3f0)]}}),this[_0x456ccd(0x3f8)]['complete'](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x16cfb1){const _0x1a92c2=_0x9884d2;_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)][_0x1a92c2(0x213)]?this[_0x1a92c2(0x2b7)](_0x16cfb1):_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)]['RECV']&&this[_0x1a92c2(0x418)](_0x16cfb1);}['_joinRoom'](_0x16abef){const _0x1bcd09=_0x9884d2;this['_sessionStatus$']['next'](0x1),_0x16abef[_0x1bcd09(0x2d6)]({'cmd':_0x349630[_0x1bcd09(0x293)][_0x1bcd09(0x213)],'routeKey':this['_identity'][_0x1bcd09(0x479)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1bcd09(0x479)][_0x1bcd09(0x3f0)]}]}});}[_0x9884d2(0x2b7)](_0x125217){const _0x333da2=_0x9884d2;var _0x51e532;if(_0x125217[_0x333da2(0x3f6)]in _0x1f73eb){this['_collaborationUIEventService'][_0x333da2(0x1db)]({'id':'JOIN_ROOM_FAILED','data':_0x1f73eb[_0x125217['code']]}),this[_0x333da2(0x250)][_0x333da2(0x17e)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x18cd46=(_0x51e532=_0x125217[_0x333da2(0x1b4)][_0x333da2(0x3b4)][this['_identity'][_0x333da2(0x479)][_0x333da2(0x3f0)]])==null?void 0x0:_0x51e532['members'];_0x18cd46&&_0x18cd46[_0x333da2(0x1e3)](_0x4bfff7=>this['_memberService'][_0x333da2(0x2d4)](this[_0x333da2(0x1fd)][_0x333da2(0x2be)],_0x4bfff7));}[_0x9884d2(0x418)](_0x390f25){const _0x26bdca=_0x9884d2;try{let _0x4389aa=_0x1441b1(this[_0x26bdca(0x1fd)],_0x390f25[_0x26bdca(0x1b4)]);for(let _0x41a542 of _0x4389aa)switch(_0x41a542[_0x26bdca(0x1b3)]){case _0x5199be[_0x26bdca(0x261)]['USERS_ENTER']:this[_0x26bdca(0x274)](_0x41a542),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x197)]:this['_onUserLeave'](_0x41a542),this[_0x26bdca(0x3f8)]['next'](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1f7)]:case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x238)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x26bdca(0x30b)](),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1b1)]:this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0x26bdca(0x1d1)+JSON[_0x26bdca(0x3ee)](_0x41a542)),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x3df)]:this[_0x26bdca(0x31f)][_0x26bdca(0x445)](_0x41a542[_0x26bdca(0x1b4)]),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;default:this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);}}catch(_0xcf2cfe){this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0xcf2cfe,_0x390f25);}}['_onUserJoin'](_0x4fed8e){const _0x4b61a2=_0x9884d2;this[_0x4b61a2(0x13c)][_0x4b61a2(0x2d4)](this[_0x4b61a2(0x1fd)][_0x4b61a2(0x2be)],_0x4fed8e[_0x4b61a2(0x1b4)]);}['_onUserLeave'](_0x4ceeeb){const _0x2fa8fb=_0x9884d2;this[_0x2fa8fb(0x13c)][_0x2fa8fb(0x110)](this[_0x2fa8fb(0x1fd)][_0x2fa8fb(0x2be)],_0x4ceeeb['data']['memberID']);}async[_0x9884d2(0x2d6)](_0x3569e7,_0x382908){const _0x4d6609=_0x9884d2;if(this[_0x4d6609(0x2e5)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0xfe0bf4=_0x17beb4(this[_0x4d6609(0x1fd)],_0x3569e7);_0xfe0bf4['eventID']===_0x5199be['CollaborationEvent'][_0x4d6609(0x209)]&&(this[_0x4d6609(0x399)](),this[_0x4d6609(0x157)](_0xfe0bf4)),this[_0x4d6609(0x160)][_0x4d6609(0x2d6)]({'cmd':_0x349630[_0x4d6609(0x293)]['INGEST'],'routeKey':this[_0x4d6609(0x1fd)][_0x4d6609(0x479)][_0x4d6609(0x3f0)],'routeType':'','data':_0xfe0bf4});}catch(_0x567545){this['_logService']['error'](_0x567545);}}[_0x9884d2(0x399)](){const _0x20855c=_0x9884d2;this[_0x20855c(0x36d)]=setTimeout(()=>{const _0x4345f5=_0x20855c;this[_0x4345f5(0x36d)]=null,this[_0x4345f5(0x427)][_0x4345f5(0x1db)]({'id':_0x4345f5(0x3db)});},this[_0x20855c(0x3c6)][_0x20855c(0x32f)](_0x20855c(0x207))??0x4e20);}[_0x9884d2(0x30b)](){const _0x202a8e=_0x9884d2;this[_0x202a8e(0x36d)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x9884d2(0x157)](_0x12a38e){const _0x58aa6b=_0x9884d2;if(!this[_0x58aa6b(0x1c6)])return;let {data:_0x111d58}=_0x12a38e,{unitID:_0x407241,changeset:_0x20f267}=_0x111d58,{mutations:_0x5af8a7,type:_0x42d901}=_0x20f267;this[_0x58aa6b(0x111)]={'unitId':_0x407241,'type':_0x42d901,'startTime':performance[_0x58aa6b(0x17d)](),'stopTime':0x0,'duration':0x0,'size':_0x3edac7(_0x5af8a7)};}[_0x9884d2(0x20c)](){const _0x157b65=_0x9884d2;if(this[_0x157b65(0x1c6)]){if(!this[_0x157b65(0x111)]){this[_0x157b65(0x344)][_0x157b65(0x1b5)](_0x157b65(0x192),_0x157b65(0x26d));return;}this[_0x157b65(0x111)][_0x157b65(0x471)]=performance[_0x157b65(0x17d)](),this[_0x157b65(0x111)][_0x157b65(0x226)]=this[_0x157b65(0x111)][_0x157b65(0x471)]-this[_0x157b65(0x111)][_0x157b65(0x3e4)],this[_0x157b65(0x3d8)][_0x157b65(0x252)](_0x157b65(0x33e),this[_0x157b65(0x111)]),this[_0x157b65(0x111)]=null;}}[_0x9884d2(0x426)](){this['_telemetryInfo']=null;}};_0x188c53=_0x33ad5b([_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x50f206)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x16a8e3)),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ca46c[_0x9884d2(0x47c)]))],_0x188c53);let _0x2b4688=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x364));function _0x41bf27(_0x144972){const _0x26cd95=_0x9884d2;return _0x26cd95(0x184)+_0x144972;}function _0x116324(_0x2f1878){const _0x2284a9=_0x9884d2;let {unitID:_0x14735a,mutations:_0x276379}=_0x2f1878;return{'unitId':_0x14735a,'subUnitId':_0x276379['length']>0x0?_0x276379[0x0][_0x2284a9(0x3f5)][_0x2284a9(0x488)]:null};}let _0x2326c2=class{constructor(_0x2f2be1,_0x4d7d67,_0x5b342d){const _0x253ca1=_0x9884d2;this[_0x253ca1(0x46a)]=_0x2f2be1,this[_0x253ca1(0x2a6)]=_0x4d7d67,this[_0x253ca1(0x26c)]=_0x5b342d;}['transformSelections'](_0x598e45){const _0x4270a0=_0x9884d2;var _0x1147b6,_0x388580;let _0x2dac76=this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4ea268[_0x4270a0(0x34c)]),{unitId:_0x4bd23b,subUnitId:_0x1a1958}=_0x116324(_0x598e45),_0x312573=_0x2dac76==null?void 0x0:_0x2dac76[_0x4270a0(0x316)](_0x4bd23b)[_0x4270a0(0x204)](),_0x3963b9=(_0x1147b6=this['_instanceService'][_0x4270a0(0x380)](_0x4bd23b))==null||(_0x1147b6=_0x1147b6[_0x4270a0(0x470)]())==null?void 0x0:_0x1147b6['getSheetId']();if(_0x312573[_0x4270a0(0x147)]===0x0||!_0x4bd23b||!_0x1a1958)return;let _0x51ba0a=[{'id':_0x4ea268[_0x4270a0(0x20a)]['id'],'params':{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4b2515[_0x4270a0(0x1a2)][_0x4270a0(0x2ee)](_0x312573)}}],_0x35f34d=this[_0x4270a0(0x2a6)]['transformMutationsWithChangeset'](_0x598e45,_0x51ba0a);if(!(0x0,_0x5199be[_0x4270a0(0x358)])(_0x35f34d))throw _0x35f34d['error'];let _0x4bf711=(_0x388580=_0x35f34d['m2Prime'][0x0])==null||(_0x388580=_0x388580[_0x4270a0(0x3f5)])==null?void 0x0:_0x388580['selections'];if(Array[_0x4270a0(0x3cb)](_0x4bf711)&&_0x4bf711[_0x4270a0(0x147)]){if(_0x4bf711['length']===_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections']['length']&&_0x4bf711['every']((_0x18bae7,_0x5a510e)=>_0x4b2515[_0x4270a0(0x2a3)]['equals'](_0x18bae7[_0x4270a0(0x1e6)],_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections'][_0x5a510e][_0x4270a0(0x1e6)])))return;this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4b2515[_0x4270a0(0x16b)])[_0x4270a0(0x47a)](_0x4ea268[_0x4270a0(0x20a)]['id'],{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4bf711});}}};_0x2326c2=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x5199be['ITransformService']),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x405)])],_0x2326c2);let _0x55fbad=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1c0)),_0xa9151d=function(_0x5f1a02){const _0x5717fd=_0x9884d2;return _0x5f1a02[_0x5f1a02['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5717fd(0x326),_0x5f1a02[_0x5f1a02['OTHER_CLIENTS_EDITING']=0x1]=_0x5717fd(0x3a5),_0x5f1a02;}({});function _0x21a96d(_0x5b4fe3){const _0x4c94b2=_0x9884d2;var _0x2d1321;return!!((_0x2d1321=_0x5b4fe3[_0x4c94b2(0x3f5)])!=null&&_0x2d1321[_0x4c94b2(0x336)]);}let _0xd9ab7a=new Set([_0x4ea268['InsertSheetMutation']['id']]),_0x5bc0ca=new Set([_0x471a79[_0x9884d2(0x441)]['id'],_0x471a79['EnsureSlideMasterPageMutation']['id'],_0x471a79[_0x9884d2(0x14d)]['id'],_0x471a79[_0x9884d2(0x3d5)]['id']]);function _0x331267(_0x47a1d7,_0x5b4ee4=_0xd9ab7a){const _0x2846f6=_0x9884d2;let _0x1112a9=[];for(let _0x56ae63 of _0x47a1d7){if(_0x5b4ee4[_0x2846f6(0x40a)](_0x56ae63['id'])){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}if(_0x21a96d(_0x56ae63)){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);}return _0x1112a9;}function _0xd48940(_0x2f6cc1,_0x180d16,_0x2cec70,_0xc278c4,_0x1b867c){const _0xde0724=_0x9884d2;let _0x205c62=_0x331267(_0x2f6cc1),_0x4e4ebb=_0x1b867c[_0xde0724(0x203)](),_0x36de35=(_0x4e4ebb==null?void 0x0:_0x4e4ebb[_0xde0724(0x36b)])??_0xde0724(0x1a8),_0x2cd25c=(_0x4e4ebb==null?void 0x0:_0x4e4ebb['memberID'])??_0xde0724(0x1a8);return{'changeset':{'unitID':_0x180d16,'type':(0x0,_0x5199be[_0xde0724(0x433)])(_0x2cec70['getUnitType'](_0x180d16)),'baseRev':_0xc278c4[_0xde0724(0x421)](_0x180d16),'revision':0x0,'userID':_0x36de35,'memberID':_0x2cd25c,'mutations':_0x205c62},'pendingMutations':_0x2f6cc1[_0xde0724(0x3d6)](_0x205c62[_0xde0724(0x147)])};}let _0x583864=_0xd48940;function _0x1fdd81(_0x28b4ff,_0x3314cc,_0x5d8dad,_0x325b1d,_0x30ff46){const _0x45a2dd=_0x9884d2;let _0x7c0c75=_0x331267(_0x28b4ff,_0x5bc0ca),_0x18aefa=_0x30ff46[_0x45a2dd(0x203)](),_0x1aa80a=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x36b)])??_0x45a2dd(0x1a8),_0x111963=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x417)])??_0x45a2dd(0x1a8);return{'changeset':{'unitID':_0x3314cc,'type':(0x0,_0x5199be['mapDocumentTypeToUniverInstanceType'])(_0x5d8dad[_0x45a2dd(0x429)](_0x3314cc)),'baseRev':_0x325b1d['getCurrentRevOfUnit'](_0x3314cc),'revision':0x0,'userID':_0x1aa80a,'memberID':_0x111963,'mutations':_0x7c0c75},'pendingMutations':_0x28b4ff['slice'](_0x7c0c75['length'])};}function _0x23ac61(_0x296586,_0x57fe11,_0x34d7ef,_0xb63f61,_0x3e94a6){const _0x31c924=_0x9884d2;let _0x372146=_0x296586['reduce']((_0x97f275,_0x1f403f)=>{const _0x4cb02e=_0x328a;let _0x42036e=_0x97f275[_0x97f275['length']-0x1],{id:_0x24937a}=_0x42036e??{},{id:_0x1fb9cd,type:_0x27d312}=_0x1f403f,_0x47fe1f=_0x1f403f[_0x4cb02e(0x3f5)];if(_0x24937a&&_0x24937a!==_0x1fb9cd)throw Error(_0x4cb02e(0x3ed)+_0x24937a+_0x4cb02e(0x1ca)+_0x1fb9cd+'.');if(!_0x42036e)return[{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];let _0x2344f8=_0x42036e[_0x4cb02e(0x3f5)];return _0x454968(_0x2344f8,_0x47fe1f)?[..._0x97f275[_0x4cb02e(0x3d6)](0x0,-0x1),{..._0x42036e,'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f['unitId'],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x4b2515[_0x4cb02e(0x19a)]['compose'](_0x2344f8[_0x4cb02e(0x37a)],_0x47fe1f[_0x4cb02e(0x37a)])}}]:[..._0x97f275,{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f['textRanges'],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];},[]),_0x325a41=_0x3e94a6['getCurrentUser'](),_0x16f8fc=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x36b)])??_0x31c924(0x1a8),_0x264aed=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x417)])??'unknown';return{'changeset':{'unitID':_0x57fe11,'type':(0x0,_0x5199be[_0x31c924(0x433)])(_0x34d7ef[_0x31c924(0x429)](_0x57fe11)),'baseRev':_0xb63f61[_0x31c924(0x421)](_0x57fe11),'revision':0x0,'userID':_0x16f8fc,'memberID':_0x264aed,'mutations':_0x372146},'pendingMutations':_0x296586[_0x31c924(0x3d6)](_0x296586[_0x31c924(0x147)])};}function _0x454968(_0xf36500,_0x3510da){const _0x1b3af1=_0x9884d2;return!_0x5af5a8(_0xf36500)&&!_0x5af5a8(_0x3510da)&&_0x31b485(_0xf36500[_0x1b3af1(0x37a)],_0x3510da[_0x1b3af1(0x37a)]);}function _0x5af5a8(_0x275338){const _0x345f2a=_0x9884d2;return _0x275338[_0x345f2a(0x3e6)]!==void 0x0;}function _0x31b485(_0x566e08,_0x69f0d8){return _0x1d625f(_0x566e08)&&_0x1d625f(_0x69f0d8)&&!_0x567205(_0x566e08)&&!_0x567205(_0x69f0d8)&&!_0xa2447e(_0x566e08)&&!_0xa2447e(_0x69f0d8);}function _0x1d625f(_0x449392){const _0x17d5dc=_0x9884d2;return _0x566349(_0x449392)[_0x17d5dc(0x3e3)](_0x50bf05=>_0xf69dff(_0x50bf05)&&_0x50bf05['et']===_0x17d5dc(0x28f));}function _0xa2447e(_0x189c80){const _0x17c5ee=_0x9884d2;return _0x566349(_0x189c80)['some'](_0x31940b=>Array[_0x17c5ee(0x3cb)](_0x31940b)||typeof _0x31940b==_0x17c5ee(0x212)||typeof _0x31940b==_0x17c5ee(0x266));}function _0x567205(_0x4e6d92){const _0x4097e7=_0x9884d2;return _0x566349(_0x4e6d92)['some'](_0x4c63a8=>!_0xf69dff(_0x4c63a8)||_0x4c63a8['et']!==_0x4097e7(0x28f)||!Array[_0x4097e7(0x3cb)](_0x4c63a8['e'])?!0x1:_0x4c63a8['e'][_0x4097e7(0x3e3)](_0x2e4785=>!_0xf69dff(_0x2e4785)||!_0xf69dff(_0x2e4785[_0x4097e7(0x450)])?!0x1:Object[_0x4097e7(0x167)][_0x4097e7(0x30e)][_0x4097e7(0x43d)](_0x2e4785[_0x4097e7(0x450)],'tables')||Object['prototype'][_0x4097e7(0x30e)]['call'](_0x2e4785['body'],_0x4097e7(0x35c))||Object[_0x4097e7(0x167)][_0x4097e7(0x30e)]['call'](_0x2e4785[_0x4097e7(0x450)],_0x4097e7(0x324))));}function _0x566349(_0x57a02a){const _0x971bf3=_0x9884d2;if(!Array[_0x971bf3(0x3cb)](_0x57a02a))return[];let _0x142d23=_0x57a02a[_0x971bf3(0x473)](_0x971bf3(0x450))?_0x57a02a:_0x57a02a[_0x971bf3(0x34a)](_0x10955d=>Array[_0x971bf3(0x3cb)](_0x10955d)&&_0x10955d[_0x971bf3(0x473)](_0x971bf3(0x450)));if(!Array[_0x971bf3(0x3cb)](_0x142d23))return[];let _0x3000c0=_0x142d23[_0x971bf3(0x172)](_0x971bf3(0x450));return _0x3000c0===-0x1?[]:_0x142d23[_0x971bf3(0x3d6)](_0x3000c0+0x1);}function _0xf69dff(_0x2b96bd){const _0x54b936=_0x9884d2;return typeof _0x2b96bd==_0x54b936(0x26e)&&!!_0x2b96bd&&!Array[_0x54b936(0x3cb)](_0x2b96bd);}function _0x415646(_0x52f55d,_0x3b32a3){const _0x4d6866=_0x9884d2;let _0x5e1520=new _0xccd21e[(_0x4d6866(0x375))](0x1);return setTimeout(()=>_0x5e1520[_0x4d6866(0x17e)](_0x3b32a3),_0x52f55d),_0x5e1520[_0x4d6866(0x43c)]()['pipe']((0x0,_0xccd21e[_0x4d6866(0x1dc)])(0x1));}var _0x5e05f6,_0x25d68a,_0x1aa808;let _0x500434=function(_0x4c3ad0){const _0x3c4fa1=_0x9884d2;return _0x4c3ad0[_0x3c4fa1(0x3dd)]='not_collab',_0x4c3ad0['SYNCED']=_0x3c4fa1(0x443),_0x4c3ad0['PENDING']=_0x3c4fa1(0x1a3),_0x4c3ad0[_0x3c4fa1(0x452)]=_0x3c4fa1(0x1cf),_0x4c3ad0['AWAITING_WITH_PENDING']=_0x3c4fa1(0x283),_0x4c3ad0[_0x3c4fa1(0x338)]=_0x3c4fa1(0x2dc),_0x4c3ad0['CONFLICT']=_0x3c4fa1(0x1bf),_0x4c3ad0['OFFLINE']=_0x3c4fa1(0x219),_0x4c3ad0;}({}),_0x5b1e26=0x4e20,_0x11c58e=0x2bf20;var _0x26e5b5=class{constructor(_0x59b3ec,_0x3a0fb3,_0x237086,_0x685c24,_0x4abec9,_0x412b01,_0x43fd0d,_0x4489b5,_0x1fbcb8){const _0xae4397=_0x9884d2;this[_0xae4397(0x258)]=_0x59b3ec,this[_0xae4397(0x415)]=_0x3a0fb3,this[_0xae4397(0x3f2)]=_0x4abec9,this['_commandService']=_0x412b01,this[_0xae4397(0x25b)]=_0x43fd0d,this[_0xae4397(0x196)]=_0x4489b5,this['_localCacheService']=_0x1fbcb8,_0x60128a(this,_0xae4397(0x402),null),_0x60128a(this,_0xae4397(0x44f),[]),this[_0xae4397(0x402)]=_0x237086,this['_pendingMutations']=_0x685c24;}['_checkMissing'](_0x40d468){const _0x54a183=_0x9884d2;let _0x370816=this[_0x54a183(0x196)]['getCurrentRevOfUnit'](this[_0x54a183(0x258)]);return _0x40d468['revision']>_0x370816+0x1&&(this[_0x54a183(0x3f2)][_0x54a183(0x228)]({'from':_0x370816,'to':_0x40d468[_0x54a183(0x2f4)]-0x1}),!0x0);}[_0x9884d2(0x244)](_0x549ae2){const _0x1c45c2=_0x9884d2;this[_0x1c45c2(0x25b)][_0x1c45c2(0x3b7)](this['unitID'],_0x549ae2);}[_0x9884d2(0x233)](_0x3b5ab9){const _0x231bfd=_0x9884d2;var _0x1f3ab4,_0x64701f;(_0x1f3ab4=(_0x64701f=this['_handler'])[_0x231bfd(0x3c2)])==null||_0x1f3ab4['call'](_0x64701f,_0x3b5ab9);}['_prepareTransformSelections'](_0x4b581a){const _0x186a58=_0x9884d2;var _0x4266fa,_0x22d74f;return((_0x4266fa=(_0x22d74f=this['_handler'])[_0x186a58(0x3da)])==null?void 0x0:_0x4266fa['call'](_0x22d74f,_0x4b581a))??null;}[_0x9884d2(0x3d0)](_0x44adb0){const _0x131ffa=_0x9884d2;var _0x48aafb,_0xa8d939;return(_0x48aafb=(_0xa8d939=this[_0x131ffa(0x3f2)])[_0x131ffa(0x31a)])==null?void 0x0:_0x48aafb['call'](_0xa8d939,_0x44adb0);}[_0x9884d2(0x369)](_0x1a423e){const _0x52c039=_0x9884d2;var _0x385062,_0xe3e5b1;return(_0x385062=(_0xe3e5b1=this[_0x52c039(0x3f2)])[_0x52c039(0x330)])==null?void 0x0:_0x385062[_0x52c039(0x43d)](_0xe3e5b1,_0x1a423e);}['_transformRemoteChangesetByIMECache'](_0x34d1fb){const _0xeee69a=_0x9884d2;var _0x3d9487,_0x45a58a;return((_0x3d9487=(_0x45a58a=this[_0xeee69a(0x3f2)])[_0xeee69a(0x311)])==null?void 0x0:_0x3d9487[_0xeee69a(0x43d)](_0x45a58a,_0x34d1fb))??_0x34d1fb;}[_0x9884d2(0x362)](_0x322c9b){const _0x17be89=_0x9884d2;var _0x41d443,_0x6375b7;return((_0x41d443=(_0x6375b7=this[_0x17be89(0x3f2)])[_0x17be89(0x206)])==null?void 0x0:_0x41d443[_0x17be89(0x43d)](_0x6375b7,_0x322c9b))??_0x322c9b;}[_0x9884d2(0x476)](_0x45f5dc){const _0x20fd80=_0x9884d2;if(this[_0x20fd80(0x415)]===_0x4b2515[_0x20fd80(0x223)][_0x20fd80(0x10f)]){let {unitID:_0xb29239,mutations:_0x2f4384,memberID:_0x1adfc3}=_0x45f5dc,_0x2169a3=_0x2f4384[_0x20fd80(0x147)]>0x0?_0x2f4384[0x0][_0x20fd80(0x3f5)][_0x20fd80(0x229)]:[];if(Array[_0x20fd80(0x3cb)](_0x2169a3)&&_0x2169a3[_0x20fd80(0x147)]>0x0){var _0x128ca5,_0x1710b1;(_0x128ca5=(_0x1710b1=this[_0x20fd80(0x3f2)])['onSyncEditingCollabCursor'])==null||_0x128ca5[_0x20fd80(0x43d)](_0x1710b1,{'unitID':_0xb29239,'memberID':_0x1adfc3,'textRanges':_0x2169a3});}}}['_updateLocalCache'](){const _0x1eaf8d=_0x9884d2;var _0x12a7db;(_0x12a7db=this[_0x1eaf8d(0x323)])==null||_0x12a7db['updateOfflineData'](this[_0x1eaf8d(0x258)],this['type'],this[_0x1eaf8d(0x402)],this[_0x1eaf8d(0x44f)]);}[_0x9884d2(0x21d)](){const _0x58dc3a=_0x9884d2;return this[_0x58dc3a(0x196)][_0x58dc3a(0x421)](this[_0x58dc3a(0x258)]);}['_incrementRevisionNumber'](){const _0x5855f1=_0x9884d2;this['_revisionService'][_0x5855f1(0x404)](this['unitID']);}['_executeRemoteChangeset'](_0x4fed3a){const _0x2dca5b=_0x9884d2;let _0x4d4a85=this[_0x2dca5b(0x3ba)](_0x4fed3a);_0x4d4a85=this[_0x2dca5b(0x362)](_0x4d4a85);let _0x5a4edc=this[_0x2dca5b(0x1d3)](_0x4d4a85),_0x1c5d1c=(0x0,_0x4b2515[_0x2dca5b(0x3d4)])(_0x4d4a85[_0x2dca5b(0x25c)],this[_0x2dca5b(0x2ef)],{'fromCollab':!0x0});if(!_0x1c5d1c[_0x2dca5b(0x312)])throw _0x5a4edc==null||_0x5a4edc['rollback'](),_0x1c5d1c[_0x2dca5b(0x1b5)]instanceof Error?_0x1c5d1c['error']:Error(_0x1c5d1c[_0x2dca5b(0x1b5)]??_0x2dca5b(0x308));_0x5a4edc==null||_0x5a4edc[_0x2dca5b(0x120)](),this[_0x2dca5b(0x3d0)](_0x4d4a85),this[_0x2dca5b(0x369)](_0x4d4a85),this[_0x2dca5b(0x244)](_0x4fed3a),this['_transformSelections'](_0x4d4a85),this['_syncEditingCollabCursor'](_0x4d4a85),this[_0x2dca5b(0x301)]();}};let _0x57c5eb=class extends _0x26e5b5{constructor(_0x4e67c2,_0x59283d,_0x3eb65b,_0x5ed7ab,_0x4bc597,_0x87df29,_0x4fad72,_0x17e8d5,_0x578edc,_0x1f4939){const _0x42edb3=_0x9884d2;super(_0x4e67c2,_0x59283d,null,[],_0x3eb65b,_0x4fad72,_0x87df29,_0x5ed7ab,_0x1f4939),this[_0x42edb3(0x46a)]=_0x4bc597,this[_0x42edb3(0x344)]=_0x17e8d5,this['_transformService']=_0x578edc,this['localCacheService']=_0x1f4939,_0x60128a(this,_0x42edb3(0x45f),'synced');}[_0x9884d2(0x3ea)](_0x52d705){const _0x2207f1=_0x9884d2;let _0x45db65=this[_0x2207f1(0x46a)]['createInstance'](_0x27ecb8,this[_0x2207f1(0x258)],this[_0x2207f1(0x415)],[_0x52d705],this[_0x2207f1(0x3f2)]);return _0x45db65['_schedule'](),_0x45db65[_0x2207f1(0x34f)](),_0x45db65;}['onRemoteChangeset'](_0x36d36e){const _0x5e0fc5=_0x9884d2;if(this['_checkMissing'](_0x36d36e))return this['_injector'][_0x5e0fc5(0x40d)](_0x394019,this[_0x5e0fc5(0x258)],this[_0x5e0fc5(0x415)],null,[],null,[_0x36d36e],this['_handler']);try{let _0x438edb=this[_0x5e0fc5(0x2a6)][_0x5e0fc5(0x457)](_0x36d36e,[_0x5199be[_0x5e0fc5(0x182)]]);if((0x0,_0x5199be[_0x5e0fc5(0x358)])(_0x438edb)){let {c1Prime:_0x1ed816}=_0x438edb;return this[_0x5e0fc5(0x24d)](_0x1ed816),this;}throw _0x438edb['error'];}catch(_0x26b39e){return this['_logService'][_0x5e0fc5(0x1b5)](_0x26b39e),this['_onConflict'](!0x1);}}[_0x9884d2(0x143)](_0x3ecea5){const _0x282eae=_0x9884d2;return this[_0x282eae(0x46a)]['createInstance'](_0x4b9c5b,this[_0x282eae(0x258)],this[_0x282eae(0x415)],null,[],this[_0x282eae(0x3f2)],_0x3ecea5);}['onRemoteAck'](_0x300aa5){const _0x47e78e=_0x9884d2;if(_0x300aa5['revision']<=this[_0x47e78e(0x21d)]())return this;throw Error(_0x47e78e(0x2ed));}['onRemoteRej'](){const _0x9bb747=_0x9884d2;throw Error(_0x9bb747(0x2d2));}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x53b312=_0x9884d2;return this[_0x53b312(0x46a)][_0x53b312(0x40d)](_0x20a1e1,this[_0x53b312(0x258)],this['type'],null,[],this['_handler']);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x496089=_0x9884d2;throw Error(_0x496089(0x225));}[_0x9884d2(0x15d)](){const _0x2a3c5d=_0x9884d2;let _0x2f6df4=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2a3c5d(0x258)]);return this[_0x2a3c5d(0x3f2)][_0x2a3c5d(0x228)]({'from':_0x2f6df4,'to':0x0}),this[_0x2a3c5d(0x46a)][_0x2a3c5d(0x40d)](_0x394019,this[_0x2a3c5d(0x258)],this[_0x2a3c5d(0x415)],null,[],null,[],this[_0x2a3c5d(0x3f2)]);}};_0x57c5eb=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x57c5eb);let _0x27ecb8=_0x5e05f6=class extends _0x26e5b5{constructor(_0x13ba07,_0x523be8,_0x2bf74f,_0x3c2f40,_0x5e298f,_0xf9ff7e,_0x19aa01,_0xff4b1c,_0x2e1f7d,_0x46e01d,_0x4e597c,_0x2e7cce,_0x3991e6,_0x1c7c6c){const _0xc8ed98=_0x9884d2;super(_0x13ba07,_0x523be8,null,_0x2bf74f,_0x3c2f40,_0x2e1f7d,_0x3991e6,_0xf9ff7e,_0x1c7c6c),this['_injector']=_0x5e298f,this[_0xc8ed98(0x1c5)]=_0x19aa01,this['_logService']=_0xff4b1c,this[_0xc8ed98(0x3c6)]=_0x46e01d,this[_0xc8ed98(0x2a6)]=_0x4e597c,this[_0xc8ed98(0x118)]=_0x2e7cce,_0x60128a(this,_0xc8ed98(0x45f),_0xc8ed98(0x1a3)),_0x60128a(this,_0xc8ed98(0x453),null),_0x60128a(this,'_sendingTimer',null);}[_0x9884d2(0x3ea)](_0x13d40d){const _0x5c7aa0=_0x9884d2;return this[_0x5c7aa0(0x44f)]['push'](_0x13d40d),this[_0x5c7aa0(0x34f)](),this;}[_0x9884d2(0x32d)](_0x144ed3){const _0x5ce221=_0x9884d2;if(this[_0x5ce221(0x2db)](_0x144ed3))return this['_clearScheduledTask'](),this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x394019,this['unitID'],this[_0x5ce221(0x415)],null,this['_pendingMutations'],null,[_0x144ed3],this[_0x5ce221(0x3f2)]);try{let _0x4a4f28=this[_0x5ce221(0x2a6)][_0x5ce221(0x457)](_0x144ed3,this[_0x5ce221(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x4a4f28)){let {c1Prime:_0x4a3344,m2Prime:_0x1aa0d0}=_0x4a4f28;this['_executeRemoteChangeset'](_0x4a3344);let _0x3d8d3b=this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x5e05f6,this[_0x5ce221(0x258)],this[_0x5ce221(0x415)],_0x1aa0d0,this['_handler']);this[_0x5ce221(0x3eb)]();let _0xc96928=new Date()[_0x5ce221(0x1c7)](),_0x1fa90a=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5ce221(0x453)]-_0xc96928,0x0):this[_0x5ce221(0x11b)]();return _0x3d8d3b[_0x5ce221(0x334)](_0x1fa90a),_0x3d8d3b;}throw _0x4a4f28[_0x5ce221(0x1b5)];}catch(_0x3ecf87){return this[_0x5ce221(0x344)][_0x5ce221(0x1b5)](_0x3ecf87),this[_0x5ce221(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x160a1d){const _0x153e11=_0x9884d2;if(_0x160a1d[_0x153e11(0x2f4)]<=this['_getCurrentRevision']())return this;throw Error(_0x153e11(0x2c5));}[_0x9884d2(0x21f)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x46ae34=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x46ae34(0x40d)](_0x20a1e1,this[_0x46ae34(0x258)],this[_0x46ae34(0x415)],null,this[_0x46ae34(0x44f)],this[_0x46ae34(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x334)](_0x55d7cd){const _0x46134b=_0x9884d2;let _0x30d90f=_0x55d7cd??this[_0x46134b(0x11b)]();this['_scheduleCompleteTimestamp']=new Date()['getTime']()+_0x30d90f,this[_0x46134b(0x36a)]=setTimeout(()=>{const _0x411eb3=_0x46134b;this[_0x411eb3(0x3eb)]();let _0x54a717=null;switch(this['type']){case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x465)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)]['UNIVER_DOC']:_0x54a717=this[_0x411eb3(0x44f)]['every'](_0xfc2cc4=>_0xfc2cc4['id']===_0x120ed0['RichTextEditingMutation']['id'])?_0x23ac61(this[_0x411eb3(0x44f)],this['unitID'],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]):_0xd48940(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x281)]:_0x54a717=_0x1fdd81(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515['UniverInstanceType'][_0x411eb3(0x1b9)]:_0x54a717=_0x583864(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515['UniverInstanceType']['UNIVER_BOARD']:_0x54a717=_0xd48940(this[_0x411eb3(0x44f)],this['unitID'],this['_univerInstanceService'],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x267)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this['_revisionService'],this[_0x411eb3(0x1c5)]);break;default:throw Error(_0x411eb3(0x42b)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x2f50d4,pendingMutations:_0x2816a8}=_0x54a717;this[_0x411eb3(0x3f2)]['onSendChangeset'](_0x2f50d4);let _0x568d11=_0x2816a8[_0x411eb3(0x147)]?this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x1e3872,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,_0x2816a8,this[_0x411eb3(0x3f2)],void 0x0):this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x57ae4a,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,this['_handler']);_0x568d11[_0x411eb3(0x34f)](),this[_0x411eb3(0x3f2)][_0x411eb3(0x171)](this,_0x568d11);},_0x30d90f);}[_0x9884d2(0x11b)](){const _0x35a2d9=_0x9884d2;let _0x1c595e=this[_0x35a2d9(0x3c6)][_0x35a2d9(0x32f)](_0x3c0330);return(_0x1c595e==null?void 0x0:_0x1c595e[_0x35a2d9(0x1df)])??0x7d0;}[_0x9884d2(0x1fc)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x13b932=_0x9884d2;this[_0x13b932(0x36a)]!=null&&(clearTimeout(this[_0x13b932(0x36a)]),this['_sendingTimer']=null);}[_0x9884d2(0x143)](_0x2c93df){const _0x2f9e73=_0x9884d2;return this[_0x2f9e73(0x3eb)](),this['_injector'][_0x2f9e73(0x40d)](_0x4b9c5b,this[_0x2f9e73(0x258)],this['type'],null,this[_0x2f9e73(0x44f)],this[_0x2f9e73(0x3f2)],_0x2c93df);}};_0x27ecb8=_0x5e05f6=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x169)])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0xa,_0x5199be['ITransformService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x27ecb8);let _0x57ae4a=_0x25d68a=class extends _0x26e5b5{constructor(_0x180175,_0x4e6460,_0x103a8a,_0x41fc57,_0x2d7d7b,_0xbd2d3c,_0x19ba92,_0x39f69f,_0x52778a,_0x36ff7a,_0x12ae4a){const _0x2cdfeb=_0x9884d2;super(_0x180175,_0x4e6460,_0x103a8a,[],_0x41fc57,_0x19ba92,_0x36ff7a,_0xbd2d3c,_0x12ae4a),this[_0x2cdfeb(0x46a)]=_0x2d7d7b,this['_logService']=_0x39f69f,this['_transformService']=_0x52778a,_0x60128a(this,_0x2cdfeb(0x45f),_0x2cdfeb(0x1cf)),_0x60128a(this,_0x2cdfeb(0x269),0x0),_0x60128a(this,_0x2cdfeb(0x300),0x0),_0x60128a(this,_0x2cdfeb(0x425),void 0x0),_0x60128a(this,_0x2cdfeb(0x14a),void 0x0);}['appendMutation'](_0x2ff023){const _0x255c75=_0x9884d2;this[_0x255c75(0x3eb)]();let _0x3118b4=this['_injector'][_0x255c75(0x40d)](_0x1e3872,this['unitID'],this[_0x255c75(0x415)],this['_awaitingChangeset'],[_0x2ff023],this[_0x255c75(0x3f2)],this[_0x255c75(0x425)]);return _0x3118b4['_updateLocalCache'](),_0x3118b4;}[_0x9884d2(0x32d)](_0x262a6e){const _0x360299=_0x9884d2;if(this[_0x360299(0x2db)](_0x262a6e))return this[_0x360299(0x3eb)](),this['_injector']['createInstance'](_0x394019,this[_0x360299(0x258)],this[_0x360299(0x415)],this[_0x360299(0x402)],[],null,[_0x262a6e],this['_handler']);try{let _0x2aef68=this['_transformService']['transformChangesets']([_0x262a6e],[this[_0x360299(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x2aef68)){let {c1Prime:_0x3062f0,c2Prime:_0x4b0b68}=_0x2aef68;this['_executeRemoteChangeset'](_0x3062f0[0x0]),_0x4b0b68[0x0][_0x360299(0x1d4)]=this['_getCurrentRevision'](),this[_0x360299(0x3eb)]();let _0x22d8ab=this[_0x360299(0x46a)][_0x360299(0x40d)](_0x25d68a,this[_0x360299(0x258)],this[_0x360299(0x415)],_0x4b0b68[0x0],this['_handler']);return _0x22d8ab['_updateLocalCache'](),_0x22d8ab;}throw _0x2aef68[_0x360299(0x1b5)];}catch(_0x3e2744){return this['_logService'][_0x360299(0x1b5)](_0x3e2744),this[_0x360299(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x43d502){const _0x5623cd=_0x9884d2;this['_clearScheduledTask']();let _0x1cbfaa=this[_0x5623cd(0x196)][_0x5623cd(0x421)](this[_0x5623cd(0x258)]);if(_0x43d502[_0x5623cd(0x2f4)]<=_0x1cbfaa)return this;if(this[_0x5623cd(0x2db)](_0x43d502))return this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x394019,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x43d502['revision'],[],this[_0x5623cd(0x3f2)]);this[_0x5623cd(0x301)]();let _0x593297=this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x57c5eb,this[_0x5623cd(0x258)],this[_0x5623cd(0x415)],this[_0x5623cd(0x3f2)]);return _0x593297[_0x5623cd(0x34f)](),_0x593297;}[_0x9884d2(0x21f)](_0x20fef7){const _0x5c7def=_0x9884d2;return this[_0x5c7def(0x143)](!!(_0x20fef7!=null&&_0x20fef7[_0x5c7def(0x439)]));}['onRemoteRetry'](_0x22f515){const _0x3a992a=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x3a992a(0x3ec)]():(this[_0x3a992a(0x425)]=_0x415646(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x22f515[_0x3a992a(0x12c)]}),this[_0x3a992a(0x14a)]=this[_0x3a992a(0x425)][_0x3a992a(0x23b)](({reqId:_0x5605b8,timeout:_0x42707a})=>{const _0x4b6056=_0x3a992a;this[_0x4b6056(0x447)](_0x5605b8,_0x42707a);}),this);}['toggleOffline'](){const _0x12d032=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x12d032(0x40d)](_0x20a1e1,this['unitID'],this[_0x12d032(0x415)],this[_0x12d032(0x402)],[],this[_0x12d032(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x8780e7=_0x9884d2;this['_handler'][_0x8780e7(0x15f)](this[_0x8780e7(0x402)]);}[_0x9884d2(0x143)](_0x4444aa){const _0x2c7942=_0x9884d2;return this['_clearScheduledTask'](),this[_0x2c7942(0x46a)][_0x2c7942(0x40d)](_0x4b9c5b,this[_0x2c7942(0x258)],this[_0x2c7942(0x415)],this['_awaitingChangeset'],[],this[_0x2c7942(0x3f2)],_0x4444aa);}[_0x9884d2(0x447)](_0x4fd463,_0x23d1b6){const _0x132069=_0x9884d2;var _0x471b8c;_0x4fd463===((_0x471b8c=this['_awaitingChangeset'])==null?void 0x0:_0x471b8c[_0x132069(0x12c)])&&(this[_0x132069(0x1fc)](),this[_0x132069(0x269)]=_0x23d1b6===0x0?0x3e8:Math[_0x132069(0x231)](_0x23d1b6*0x2,_0x5b1e26),this[_0x132069(0x300)]+=this[_0x132069(0x269)]);}[_0x9884d2(0x3eb)](){const _0x176019=_0x9884d2;var _0x3c3163;(_0x3c3163=this['_sender'])==null||_0x3c3163[_0x176019(0x29f)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x57ae4a=_0x25d68a=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x57ae4a);let _0x1e3872=_0x1aa808=class extends _0x26e5b5{constructor(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x560c27,_0x3ca60a,_0x22e410,_0x20d452,_0x1b58c8,_0x32588e,_0x1ee5a6,_0x3f7175){const _0x17e121=_0x9884d2;super(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x20d452,_0x1ee5a6,_0x22e410,_0x3f7175),this[_0x17e121(0x46a)]=_0x3ca60a,this[_0x17e121(0x344)]=_0x1b58c8,this['_transformService']=_0x32588e,this['localCacheService']=_0x3f7175,_0x60128a(this,_0x17e121(0x45f),_0x17e121(0x283)),_0x60128a(this,_0x17e121(0x269),0x0),_0x60128a(this,'_maxTotalRetryTimeout',0x0),_0x60128a(this,_0x17e121(0x425),void 0x0),_0x60128a(this,_0x17e121(0x14a),void 0x0),_0x560c27&&(this[_0x17e121(0x425)]=_0x560c27,this[_0x17e121(0x14a)]=this['_resendTimer']['subscribe'](({reqId:_0x3aba34,timeout:_0x8922ae})=>{const _0x334cbc=_0x17e121;this[_0x334cbc(0x447)](_0x3aba34,_0x8922ae);}));}[_0x9884d2(0x3ea)](_0x31f260){const _0x51a130=_0x9884d2;return this[_0x51a130(0x44f)][_0x51a130(0x42c)](_0x31f260),this;}['onRemoteChangeset'](_0x3c9ef9){const _0x5a7e72=_0x9884d2;if(this['_checkMissing'](_0x3c9ef9))return this[_0x5a7e72(0x3eb)](),this['_injector'][_0x5a7e72(0x40d)](_0x394019,this[_0x5a7e72(0x258)],this[_0x5a7e72(0x415)],this['_awaitingChangeset'],this[_0x5a7e72(0x44f)],null,[_0x3c9ef9],this[_0x5a7e72(0x3f2)]);try{let _0x1938d4=this[_0x5a7e72(0x2a6)][_0x5a7e72(0x270)]([_0x3c9ef9],[this[_0x5a7e72(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x1938d4)){let {c1Prime:_0x5a3057,c2Prime:_0x503401}=_0x1938d4,_0x15b627=this['_transformService'][_0x5a7e72(0x457)](_0x5a3057[0x0],this[_0x5a7e72(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x15b627)){let {c1Prime:_0x1dff4d,m2Prime:_0x32fb21}=_0x15b627;return this[_0x5a7e72(0x24d)](_0x1dff4d),_0x503401[0x0][_0x5a7e72(0x1d4)]=this['_getCurrentRevision'](),this[_0x5a7e72(0x3eb)](),this[_0x5a7e72(0x46a)][_0x5a7e72(0x40d)](_0x1aa808,this['unitID'],this['type'],_0x503401[0x0],_0x32fb21,this[_0x5a7e72(0x3f2)],void 0x0);}throw _0x15b627[_0x5a7e72(0x1b5)];}throw _0x1938d4[_0x5a7e72(0x1b5)];}catch(_0xcb0eed){return this[_0x5a7e72(0x344)]['error'](_0xcb0eed),this['_onConflict'](!0x1);}}[_0x9884d2(0x2de)](_0x1b88f1){const _0xddd303=_0x9884d2;this[_0xddd303(0x3eb)]();let _0x3f2bff=this[_0xddd303(0x21d)]();if(_0x1b88f1['revision']<=_0x3f2bff)return this;if(this[_0xddd303(0x2db)](_0x1b88f1))return this[_0xddd303(0x46a)][_0xddd303(0x40d)](_0x394019,this['unitID'],this[_0xddd303(0x415)],this['_awaitingChangeset'],this['_pendingMutations'],_0x1b88f1[_0xddd303(0x2f4)],[],this[_0xddd303(0x3f2)]);this[_0xddd303(0x301)]();let _0x5ac893=this['_injector'][_0xddd303(0x40d)](_0x27ecb8,this[_0xddd303(0x258)],this[_0xddd303(0x415)],this['_pendingMutations'],this[_0xddd303(0x3f2)]);return _0x5ac893['_schedule'](),_0x5ac893['_updateLocalCache'](),_0x5ac893;}['onRemoteRej'](_0x40cc90){const _0x4a52e2=_0x9884d2;return this[_0x4a52e2(0x143)](!!(_0x40cc90!=null&&_0x40cc90[_0x4a52e2(0x439)]));}['onRemoteRetry'](_0x3fd1aa){const _0x1a3b89=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x1a3b89(0x3ec)]():(this[_0x1a3b89(0x425)]=_0x415646(this[_0x1a3b89(0x269)],{'timeout':this[_0x1a3b89(0x269)],'reqId':_0x3fd1aa['reqId']}),this[_0x1a3b89(0x14a)]=this[_0x1a3b89(0x425)][_0x1a3b89(0x23b)](({reqId:_0x21ab13,timeout:_0x3df606})=>{const _0xc1ea77=_0x1a3b89;this[_0xc1ea77(0x447)](_0x21ab13,_0x3df606);}),this);}[_0x9884d2(0x3ec)](){const _0x133e14=_0x9884d2;return this[_0x133e14(0x3eb)](),this[_0x133e14(0x46a)][_0x133e14(0x40d)](_0x20a1e1,this[_0x133e14(0x258)],this[_0x133e14(0x415)],this[_0x133e14(0x402)],this[_0x133e14(0x44f)],this[_0x133e14(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x5424ec=_0x9884d2;this[_0x5424ec(0x3f2)][_0x5424ec(0x15f)](this['_awaitingChangeset']);}['_onConflict'](_0x47c18a){const _0x23123d=_0x9884d2;return this[_0x23123d(0x3eb)](),this[_0x23123d(0x46a)]['createInstance'](_0x4b9c5b,this[_0x23123d(0x258)],this[_0x23123d(0x415)],null,this[_0x23123d(0x44f)],this[_0x23123d(0x3f2)],_0x47c18a);}[_0x9884d2(0x447)](_0x32a38f,_0x30773c){const _0x571ae4=_0x9884d2;var _0x3ebb03;_0x32a38f===((_0x3ebb03=this[_0x571ae4(0x402)])==null?void 0x0:_0x3ebb03[_0x571ae4(0x12c)])&&(this['resend'](),this[_0x571ae4(0x269)]=_0x30773c===0x0?0x3e8:Math[_0x571ae4(0x231)](_0x30773c*0x2,_0x5b1e26),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x9884d2(0x3eb)](){const _0x53d6b2=_0x9884d2;var _0x4d080a;(_0x4d080a=this[_0x53d6b2(0x14a)])==null||_0x4d080a[_0x53d6b2(0x29f)](),this[_0x53d6b2(0x269)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e3872=_0x1aa808=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x1e3872);let _0x4b9c5b=class extends _0x26e5b5{constructor(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x326fa5=!0x1,_0x197bcc,_0x23ae37,_0xe51963,_0x4bc507,_0x5388dd,_0xbc9eb2,_0xab6356){const _0x50f092=_0x9884d2;super(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x23ae37,_0xe51963,_0x4bc507,_0xab6356),this['_isPermissionRej']=_0x326fa5,this[_0x50f092(0x2ba)]=_0x197bcc,this['_localeService']=_0x5388dd,this['_collaborationUIEventService']=_0xbc9eb2,this['localCacheService']=_0xab6356,_0x60128a(this,_0x50f092(0x45f),_0x50f092(0x1bf)),this[_0x50f092(0x149)](),this['_showConflictProcessingNotification'](),this['_prepareConflictRecovery']();}[_0x9884d2(0x3ea)](){return this;}['onRemoteChangeset'](){return this;}[_0x9884d2(0x2de)](){return this;}[_0x9884d2(0x21f)](){return this;}[_0x9884d2(0x39b)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x34cec3=_0x9884d2;throw Error(_0x34cec3(0x320));}async[_0x9884d2(0x259)](){const _0x3862dd=_0x9884d2;var _0x4562d8,_0x722370;await((_0x4562d8=this[_0x3862dd(0x323)])==null||(_0x722370=_0x4562d8[_0x3862dd(0x25d)])==null?void 0x0:_0x722370['call'](_0x4562d8,this[_0x3862dd(0x258)],_0x3862dd(0x1bf))[_0x3862dd(0x2d9)](()=>void 0x0));try{var _0x5076fc;await((_0x5076fc=this[_0x3862dd(0x323)])==null?void 0x0:_0x5076fc[_0x3862dd(0x21c)](this['unitID']));}catch{this[_0x3862dd(0x427)][_0x3862dd(0x1db)]({'id':_0x3862dd(0x260),'unitID':this['unitID']});return;}this[_0x3862dd(0x428)]();}[_0x9884d2(0x35b)](){const _0x321d4a=_0x9884d2;this[_0x321d4a(0x427)][_0x321d4a(0x1db)]({'id':_0x321d4a(0x296)});}[_0x9884d2(0x428)](){const _0x640f17=_0x9884d2;this['_isPermissionRej']?this[_0x640f17(0x427)]['emitEvent']({'id':_0x640f17(0x1f9)}):this[_0x640f17(0x427)][_0x640f17(0x1db)]({'id':_0x640f17(0x24a)});}['_disableEditing'](){const _0x31c305=_0x9884d2;this[_0x31c305(0x2ba)][_0x31c305(0x2c7)](new _0x4ea268[(_0x31c305(0x34e))](this['unitID'])['id'],!0x1);}};_0x4b9c5b=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IPermissionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515['IUndoRedoService']),_0x3b5628(0x9,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0xb,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x4b9c5b);let _0x20a1e1=class extends _0x26e5b5{constructor(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3625ee,_0x1de92b,_0x3cbd68,_0x93d6a1,_0x45a137){const _0x200071=_0x9884d2;super(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3cbd68,_0x93d6a1,_0x1de92b,_0x45a137),this[_0x200071(0x46a)]=_0x3625ee,_0x60128a(this,_0x200071(0x45f),_0x200071(0x219));}['appendMutation'](_0x307747){const _0x368033=_0x9884d2;return this[_0x368033(0x44f)][_0x368033(0x42c)](_0x307747),this[_0x368033(0x34f)](),this;}['onRemoteChangeset'](_0x35d57c){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x9884d2(0x2de)](){const _0x1bad45=_0x9884d2;throw Error(_0x1bad45(0x43a));}['onRemoteRej'](){const _0x11f3a2=_0x9884d2;throw Error(_0x11f3a2(0x1e4));}['onRemoteRetry'](){return this;}[_0x9884d2(0x3ec)](){return this;}['toggleOnline'](){const _0x274484=_0x9884d2;let {_injector:_0x334bc7,_pendingMutations:_0x47e987,_awaitingChangeset:_0x3939a1,unitID:_0x145129,_handler:_0x533ca2,type:_0x4291ea}=this,_0x560bee=_0x2f4bec(_0x334bc7,_0x145129,_0x4291ea,_0x3939a1,_0x47e987,_0x533ca2);return _0x560bee instanceof _0x27ecb8?_0x560bee[_0x274484(0x334)]():(_0x560bee instanceof _0x1e3872||_0x560bee instanceof _0x57ae4a)&&_0x560bee['resend'](),_0x560bee;}['resend'](){const _0x13fea1=_0x9884d2;throw Error(_0x13fea1(0x3a4));}};_0x20a1e1=_0x33ad5b([_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x9,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x20a1e1);let _0x394019=class extends _0x26e5b5{constructor(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1125ac,_0x5cc252,_0x1044d9,_0x51f1d9,_0x85aa8,_0x23d3a6,_0x20ee28,_0xe0b3a,_0x178df5,_0x5c00d9){const _0x1c4e63=_0x9884d2;super(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1044d9,_0x20ee28,_0xe0b3a,_0x85aa8,_0x5c00d9),this[_0x1c4e63(0x3bb)]=_0x1125ac,this[_0x1c4e63(0x282)]=_0x5cc252,this[_0x1c4e63(0x46a)]=_0x51f1d9,this['_logService']=_0x23d3a6,this['_transformService']=_0x178df5,this[_0x1c4e63(0x43b)]=_0x5c00d9,_0x60128a(this,_0x1c4e63(0x45f),_0x1c4e63(0x2dc));}['onMissedChangesetFetched'](_0x4632bf){const _0x1f8642=_0x9884d2;try{if(this[_0x1f8642(0x1c4)](_0x4632bf)['missingChangesets'])throw Error(_0x1f8642(0x481));if(this['_handleRemoteChangesets']([...this[_0x1f8642(0x282)]][_0x1f8642(0x122)]((_0x4cfb1f,_0x4442f3)=>_0x4cfb1f['revision']-_0x4442f3['revision']))[_0x1f8642(0x2fb)])return this[_0x1f8642(0x282)]=[],this[_0x1f8642(0x34f)](),this[_0x1f8642(0x3f2)][_0x1f8642(0x228)]({'from':this[_0x1f8642(0x21d)](),'to':0x0}),this;let _0x53d16d=this[_0x1f8642(0x402)],_0x398153=this['_pendingMutations'],_0x2a67e2;if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]!==0x0)_0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x1e3872,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,_0x398153,this['_handler'],void 0x0);else{if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]===0x0)_0x53d16d[_0x1f8642(0x1d4)]=this[_0x1f8642(0x21d)](),_0x2a67e2=this['_injector'][_0x1f8642(0x40d)](_0x57ae4a,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,this[_0x1f8642(0x3f2)]);else{if(_0x398153[_0x1f8642(0x147)]!==0x0){let _0x1ece0e=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x27ecb8,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],_0x398153,this[_0x1f8642(0x3f2)]);_0x1ece0e[_0x1f8642(0x334)](),_0x2a67e2=_0x1ece0e;}else _0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x57c5eb,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this['_handler']);}}return _0x2a67e2[_0x1f8642(0x34f)](),_0x2a67e2;}catch(_0x19b2a3){return this['_logService'][_0x1f8642(0x1b5)](_0x1f8642(0x30c),_0x1f8642(0x3cf),_0x19b2a3),this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x4b9c5b,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this[_0x1f8642(0x402)],this[_0x1f8642(0x44f)],this[_0x1f8642(0x3f2)],!0x1);}}[_0x9884d2(0x1c4)](_0x3a4af5){const _0x184b88=_0x9884d2;this['_acknowledgeAwaitingIfReady']();for(let _0x4d45fa=0x0;_0x4d45fa<_0x3a4af5[_0x184b88(0x147)];_0x4d45fa++){let _0x18a521=_0x3a4af5[_0x4d45fa],_0x1498a6=this[_0x184b88(0x21d)]();if(!(_0x18a521[_0x184b88(0x2f4)]<=_0x1498a6)){if(_0x18a521['revision']>_0x1498a6+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x18a521)){this[_0x184b88(0x463)]();continue;}this[_0x184b88(0x21b)](_0x18a521),this[_0x184b88(0x3fd)]();}}return{'missingChangesets':!0x1};}[_0x9884d2(0x21b)](_0x3b94f1){const _0x2434d4=_0x9884d2;let _0x171d77=_0x3b94f1,_0x310eab=this['_awaitingChangeset'];if(_0x310eab){let _0x2283d7=this[_0x2434d4(0x2a6)][_0x2434d4(0x270)]([_0x3b94f1],[_0x310eab],!0x1);if(!(0x0,_0x5199be[_0x2434d4(0x387)])(_0x2283d7))throw _0x2283d7['error'];_0x171d77=_0x2283d7[_0x2434d4(0x25e)][0x0],_0x310eab=_0x2283d7['c2Prime'][0x0];}let _0x158fed=this[_0x2434d4(0x44f)];if(_0x158fed['length']){let _0x3b5963=this['_transformService']['transformMutationsWithChangeset'](_0x171d77,_0x158fed);if(!(0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x3b5963))throw _0x3b5963[_0x2434d4(0x1b5)];_0x171d77=_0x3b5963[_0x2434d4(0x25e)],_0x158fed=_0x3b5963['m2Prime'];}this[_0x2434d4(0x24d)](_0x171d77),_0x310eab&&(_0x310eab[_0x2434d4(0x1d4)]=this[_0x2434d4(0x21d)]()),this[_0x2434d4(0x402)]=_0x310eab,this[_0x2434d4(0x44f)]=_0x158fed;}[_0x9884d2(0x3fd)](){const _0x1ba19d=_0x9884d2;if(!this[_0x1ba19d(0x402)]||this[_0x1ba19d(0x3bb)]==null)return;let _0xe3012f=this[_0x1ba19d(0x21d)]();if(this[_0x1ba19d(0x3bb)]<=_0xe3012f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x1ba19d(0x3bb)]+'.');this[_0x1ba19d(0x3bb)]===_0xe3012f+0x1&&this[_0x1ba19d(0x463)]();}['_acknowledgeAwaiting'](){const _0x3a8205=_0x9884d2;this[_0x3a8205(0x301)](),this[_0x3a8205(0x402)]=null,this[_0x3a8205(0x3bb)]=null;}[_0x9884d2(0x272)](_0x5b18cf){const _0x5d6082=_0x9884d2;let _0x162b69=this[_0x5d6082(0x402)];return!_0x162b69||!_0x162b69[_0x5d6082(0x356)]||_0x162b69[_0x5d6082(0x12c)]===null||_0x162b69[_0x5d6082(0x12c)]===void 0x0?!0x1:_0x5b18cf[_0x5d6082(0x258)]===_0x162b69[_0x5d6082(0x258)]&&_0x5b18cf[_0x5d6082(0x356)]===_0x162b69[_0x5d6082(0x356)]&&_0x5b18cf[_0x5d6082(0x12c)]===_0x162b69[_0x5d6082(0x12c)];}[_0x9884d2(0x1fc)](){const _0x56e788=_0x9884d2;throw Error(_0x56e788(0x1e2));}[_0x9884d2(0x3ea)](_0x1b410d){const _0x151e77=_0x9884d2;return this[_0x151e77(0x44f)]['push'](_0x1b410d),this;}['onRemoteChangeset'](_0x143726){const _0x5da245=_0x9884d2;return this[_0x5da245(0x282)][_0x5da245(0x42c)](_0x143726),this;}[_0x9884d2(0x2de)](_0x3d5528){const _0x1bb96b=_0x9884d2;if(this[_0x1bb96b(0x402)]){let _0x25b2bb=this[_0x1bb96b(0x21d)]();return _0x3d5528[_0x1bb96b(0x2f4)]<=_0x25b2bb||(_0x25b2bb+0x1===_0x3d5528[_0x1bb96b(0x2f4)]?(this[_0x1bb96b(0x301)](),this[_0x1bb96b(0x402)]=null,this[_0x1bb96b(0x3bb)]=null):this[_0x1bb96b(0x3bb)]=_0x3d5528[_0x1bb96b(0x2f4)]),this;}if(_0x3d5528[_0x1bb96b(0x2f4)]<=this[_0x1bb96b(0x21d)]())return this;throw Error(_0x1bb96b(0x211));}['onRemoteRej'](_0x539054){const _0x4e3b22=_0x9884d2;return this[_0x4e3b22(0x143)](!!(_0x539054!=null&&_0x539054[_0x4e3b22(0x439)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x51ffa7=_0x9884d2;return this[_0x51ffa7(0x46a)][_0x51ffa7(0x40d)](_0x20a1e1,this['unitID'],this[_0x51ffa7(0x415)],this[_0x51ffa7(0x402)],this[_0x51ffa7(0x44f)],this[_0x51ffa7(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x143)](_0x269fca){const _0x1cf3b1=_0x9884d2;return this[_0x1cf3b1(0x46a)][_0x1cf3b1(0x40d)](_0x4b9c5b,this['unitID'],this[_0x1cf3b1(0x415)],this[_0x1cf3b1(0x402)],this[_0x1cf3b1(0x44f)],this[_0x1cf3b1(0x3f2)],_0x269fca);}};_0x394019=_0x33ad5b([_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IUndoRedoService']),_0x3b5628(0xc,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x394019);function _0x2f4bec(_0xa2deea,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf){const _0x2aa35f=_0x9884d2;return _0x116220&&_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea[_0x2aa35f(0x40d)](_0x1e3872,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf,void 0x0):_0x116220?_0xa2deea[_0x2aa35f(0x40d)](_0x57ae4a,_0x130de3,_0x4d4f16,_0x116220,_0x2f3acf):_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea['createInstance'](_0x27ecb8,_0x130de3,_0x4d4f16,_0x2472b2,_0x2f3acf):_0xa2deea[_0x2aa35f(0x40d)](_0x57c5eb,_0x130de3,_0x4d4f16,_0x2f3acf);}let _0xe2b433=class extends _0x4b2515['RxDisposable']{get[_0x9884d2(0x144)](){const _0x28ed07=_0x9884d2;return this[_0x28ed07(0x237)];}constructor(_0xc7b9d0,_0x1ff7d7,_0x57f758,_0x5ca1d1,_0x553546,_0x401a89,_0x3586ff,_0x228d6a,_0x2a081b,_0xb67ded,_0x3cb9fd,_0x28ec7e,_0x2aeb6d,_0x70edf6){const _0x2df4dd=_0x9884d2;super(),this[_0x2df4dd(0x258)]=_0xc7b9d0,this['session']=_0x1ff7d7,this[_0x2df4dd(0x3e2)]=_0x57f758,this[_0x2df4dd(0x46a)]=_0x5ca1d1,this['_compressMutationService']=_0x553546,this[_0x2df4dd(0x1f4)]=_0x401a89,this[_0x2df4dd(0x196)]=_0x3586ff,this[_0x2df4dd(0x186)]=_0x228d6a,this[_0x2df4dd(0x118)]=_0x2a081b,this[_0x2df4dd(0x344)]=_0xb67ded,this[_0x2df4dd(0x2ef)]=_0x3cb9fd,this['_permissionService']=_0x28ec7e,this['_singleActiveUnitService']=_0x2aeb6d,this[_0x2df4dd(0x323)]=_0x70edf6,_0x60128a(this,_0x2df4dd(0x29b),new _0xccd21e[(_0x2df4dd(0x379))](null)),_0x60128a(this,_0x2df4dd(0x416),this['_state$'][_0x2df4dd(0x43c)]()),_0x60128a(this,'_state',void 0x0),_0x60128a(this,_0x2df4dd(0x355),!0x1),_0x60128a(this,'_changesetSessionId',''),_0x60128a(this,_0x2df4dd(0x28d),0x0),_0x60128a(this,_0x2df4dd(0x298),this[_0x2df4dd(0x416)][_0x2df4dd(0x486)]((0x0,_0xccd21e[_0x2df4dd(0x333)])(_0x2376f8=>_0x2376f8?_0x2376f8[_0x2df4dd(0x45f)]:_0x2df4dd(0x219)),(0x0,_0xccd21e['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x60128a(this,_0x2df4dd(0x2fe),!0x1),_0x60128a(this,_0x2df4dd(0x26f),[]);}async['init'](){const _0x4fc8da=_0x9884d2;if(this[_0x4fc8da(0x144)])throw Error(_0x4fc8da(0x3c3));await this[_0x4fc8da(0x386)]();}[_0x9884d2(0x1c3)](){const _0xfcfaa8=_0x9884d2;return this[_0xfcfaa8(0x355)]=!0x0,(0x0,_0x4b2515[_0xfcfaa8(0x299)])(()=>{const _0x352fe3=_0xfcfaa8;this['_collaborationPaused']=!0x1,this[_0x352fe3(0x46e)]();});}[_0x9884d2(0x2e2)](_0x4075d9){const _0x531846=_0x9884d2;this[_0x531846(0x17a)](_0x4075d9);}[_0x9884d2(0x3ad)](_0x51c65a){const _0x4f3121=_0x9884d2;this[_0x4f3121(0x237)]=_0x51c65a,this[_0x4f3121(0x29b)]['next'](_0x51c65a);}async[_0x9884d2(0x386)](){const _0x19a05a=_0x9884d2;if(this[_0x19a05a(0x3ad)](await this[_0x19a05a(0x2f2)]()),this['_singleActiveUnitService']){var _0x25ed18;(_0x25ed18=this['_singleActiveUnitService'])==null||_0x25ed18[_0x19a05a(0x191)](this['unitID']),this[_0x19a05a(0x472)](this[_0x19a05a(0x20f)][_0x19a05a(0x3e0)](this[_0x19a05a(0x258)])[_0x19a05a(0x23b)](_0x31ff01=>{const _0x2acbe1=_0x19a05a;this[_0x2acbe1(0x344)]['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x31ff01),_0x31ff01===0x1?(this['_eventService'][_0x2acbe1(0x1db)]({'id':_0x2acbe1(0x3c7)}),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x1),this['_permissionService'][_0x2acbe1(0x124)](!0x1)):(this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x0),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x124)](!0x0));}));}let _0x30a5f9=!0x1;return this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['sessionStatus$'][_0x19a05a(0x23b)](_0x367c9d=>{const _0x3a8552=_0x19a05a;_0x367c9d===0x3?this['_toggleOnline'](_0x30a5f9):_0x367c9d===0x2&&(_0x30a5f9=!0x0,this[_0x3a8552(0x39d)]());})),this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['event$'][_0x19a05a(0x23b)](_0x2fdd04=>{const _0x22e5b9=_0x19a05a;try{switch(_0x2fdd04[_0x22e5b9(0x1b3)]){case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x41b)]:this['_onRemoteChangeset']((0x0,_0x5199be['parseProtocolChangeset'])(_0x2fdd04[_0x22e5b9(0x1b4)]));break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x1f7)]:this['_onRemoteACK'](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x19d)]:this[_0x22e5b9(0x468)]();break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x238)]:this[_0x22e5b9(0x3f3)](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x18e)]:this['_onFetchMissResult'](_0x2fdd04[_0x22e5b9(0x1b4)][_0x22e5b9(0x3cd)][_0x22e5b9(0x333)](_0xa0c399=>(0x0,_0x5199be[_0x22e5b9(0x22c)])(_0xa0c399)));break;case _0x5199be[_0x22e5b9(0x261)]['PERMISSION_REJ']:this[_0x22e5b9(0x468)]({'isPermissionRej':!0x0});break;case _0x5199be['CollaborationEvent'][_0x22e5b9(0x32a)]:}}catch(_0x4ff8b5){throw console[_0x22e5b9(0x1b5)](_0x22e5b9(0x1e5),_0x4ff8b5),_0x4ff8b5;}})),this['_state'];}['_unlockTransition'](){const _0xc864c=_0x9884d2;this[_0xc864c(0x2fe)]=!0x1;}[_0x9884d2(0x436)](){const _0x499860=_0x9884d2;if(this[_0x499860(0x2fe)])throw Error(_0x499860(0x37d));this[_0x499860(0x2fe)]=!0x0;}[_0x9884d2(0x17a)](_0xc9b537){const _0x466af0=_0x9884d2;this[_0x466af0(0x436)](),this[_0x466af0(0x3ad)](this['_state'][_0x466af0(0x3ea)](_0xc9b537)),this[_0x466af0(0x33b)]();}[_0x9884d2(0x3a3)](_0x21de25){const _0x534203=_0x9884d2;if(!(_0x21de25[_0x534203(0x2f4)]<=this[_0x534203(0x196)][_0x534203(0x421)](this[_0x534203(0x258)]))){if(this[_0x534203(0x355)]){this[_0x534203(0x26f)][_0x534203(0x42c)](_0x21de25);return;}this[_0x534203(0x179)](_0x21de25);}}['_exhaustRemoteChangesetQueue'](){const _0x41c6f0=_0x9884d2;this[_0x41c6f0(0x26f)][_0x41c6f0(0x1e3)](_0x3ad973=>this[_0x41c6f0(0x179)](_0x3ad973)),this[_0x41c6f0(0x26f)]=[];}[_0x9884d2(0x179)](_0x1a0b91){const _0x269bde=_0x9884d2;let _0x16064d=this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x18d)](this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x176)]()[_0x269bde(0x1d2)])(_0x1a0b91[_0x269bde(0x25c)],null)||_0x1a0b91[_0x269bde(0x25c)],_0x3ca999={..._0x1a0b91,'mutations':_0x16064d};this[_0x269bde(0x436)](),this[_0x269bde(0x3ad)](this[_0x269bde(0x237)][_0x269bde(0x32d)](_0x3ca999)),this[_0x269bde(0x33b)]();}[_0x9884d2(0x393)](_0x1ad769){const _0x986858=_0x9884d2;this[_0x986858(0x436)](),this[_0x986858(0x3ad)](this['_state']['onRemoteAck'](_0x1ad769)),this[_0x986858(0x33b)]();}['_onRemoteRejected'](_0x5ea219){const _0x35019c=_0x9884d2;this[_0x35019c(0x436)](),this[_0x35019c(0x3ad)](this[_0x35019c(0x237)][_0x35019c(0x21f)](_0x5ea219)),this[_0x35019c(0x33b)]();}[_0x9884d2(0x3f3)](_0x319b36){const _0x4cd980=_0x9884d2;this['_lockTransition'](),this[_0x4cd980(0x3ad)](this['_state'][_0x4cd980(0x39b)](_0x319b36)),this[_0x4cd980(0x33b)]();}[_0x9884d2(0x146)](_0x3bb68f){const _0x36c404=_0x9884d2;if(!(this['_state']instanceof _0x394019))throw TypeError(_0x36c404(0x20b));let _0x2448a9=_0x3bb68f[_0x36c404(0x333)](_0x25e174=>{const _0x397b86=_0x36c404;let _0x138642=this[_0x397b86(0x188)][_0x397b86(0x395)]['fetchThroughInterceptors'](this[_0x397b86(0x188)][_0x397b86(0x395)]['getInterceptPoints']()[_0x397b86(0x1d2)])(_0x25e174[_0x397b86(0x25c)],null)||_0x25e174[_0x397b86(0x25c)];return{..._0x25e174,'mutations':_0x138642};});this[_0x36c404(0x436)](),this[_0x36c404(0x3ad)](this[_0x36c404(0x237)][_0x36c404(0x128)](_0x2448a9)),this[_0x36c404(0x33b)]();}[_0x9884d2(0x39d)](){const _0xcbac54=_0x9884d2;this[_0xcbac54(0x436)](),this[_0xcbac54(0x3ad)](this[_0xcbac54(0x237)][_0xcbac54(0x3ec)]()),this[_0xcbac54(0x33b)]();}[_0x9884d2(0x1c9)](_0x5d5b96=!0x1){const _0x536ad7=_0x9884d2;this[_0x536ad7(0x436)](),this[_0x536ad7(0x3ad)](this[_0x536ad7(0x237)][_0x536ad7(0x357)]()),this[_0x536ad7(0x33b)]();let _0xec24a2=this['_state'];_0x5d5b96&&_0xec24a2 instanceof _0x57c5eb&&(this[_0x536ad7(0x436)](),this['_updateState'](_0xec24a2[_0x536ad7(0x15d)]()),this[_0x536ad7(0x33b)]());}async[_0x9884d2(0x2f2)](){return new Promise(_0xa33ae2=>{const _0x11f756=_0x328a;this['session']['sessionStatus$'][_0x11f756(0x486)]((0x0,_0xccd21e['take'])(0x1))[_0x11f756(0x23b)](async _0x1de063=>{_0xa33ae2(await this['_createInitialStateImpl'](_0x1de063===0x3));});});}[_0x9884d2(0x18c)](){let _0xa1268=this['unitID'];return{'onStateChange':(_0x21e2a2,_0x4cd637)=>{const _0x5edfc9=_0x328a;if(_0x21e2a2!==this['_state'])throw Error(_0x5edfc9(0x1e0)+_0x21e2a2[_0x5edfc9(0x45f)]+_0x5edfc9(0x2cd)+_0x4cd637[_0x5edfc9(0x45f)]+_0x5edfc9(0x16a)+this[_0x5edfc9(0x237)][_0x5edfc9(0x45f)]);this[_0x5edfc9(0x3ad)](_0x4cd637);},'onSendChangeset':_0x2dd10e=>{const _0xfdebb1=_0x328a;_0x2dd10e[_0xfdebb1(0x356)]||(_0x2dd10e['sid']=this['_changesetSessionId'],_0x2dd10e[_0xfdebb1(0x12c)]=++this[_0xfdebb1(0x28d)]);let _0x3405f2={'eventID':_0x5199be[_0xfdebb1(0x261)][_0xfdebb1(0x209)],'data':{'unitID':_0x2dd10e[_0xfdebb1(0x258)],'unitType':this[_0xfdebb1(0x3e2)],'changeset':_0x2dd10e,'memberID':this[_0xfdebb1(0x28b)][_0xfdebb1(0x444)]()}};this[_0xfdebb1(0x28b)][_0xfdebb1(0x2d6)](_0x3405f2,this[_0xfdebb1(0x258)]);},'onMissingChangesets':({from:_0x2de9f3,to:_0x17889e})=>{const _0x316483=_0x328a;this['_logService'][_0x316483(0x348)](_0x316483(0x239),_0x316483(0x370)+_0x2de9f3+'\x20to\x20'+_0x17889e);let _0x2c59fc={'eventID':_0x5199be[_0x316483(0x261)][_0x316483(0x318)],'data':{'unitID':_0xa1268,'unitType':this['_type'],'from':_0x2de9f3,'to':_0x17889e}};this[_0x316483(0x28b)][_0x316483(0x2d6)](_0x2c59fc,this[_0x316483(0x258)]);}};}async['_createInitialStateImpl'](_0x39b4a9){const _0x3e2f7f=_0x9884d2;var _0xb7ce5;let _0x2e856e=await((_0xb7ce5=this[_0x3e2f7f(0x323)])==null?void 0x0:_0xb7ce5[_0x3e2f7f(0x469)](this[_0x3e2f7f(0x258)])),_0x43550d=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x25c)])??[],_0x4b1bda=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x232)])??null,_0x338b11=!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x356)])&&!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x12c)]);this[_0x3e2f7f(0x1aa)]=_0x338b11?_0x4b1bda[_0x3e2f7f(0x356)]:(0x0,_0x5199be[_0x3e2f7f(0x39a)])(),this['_changesetReqId']=_0x338b11?_0x4b1bda[_0x3e2f7f(0x12c)]:0x0;let _0x2854f8=this[_0x3e2f7f(0x258)];try{this[_0x3e2f7f(0x313)](_0x4b1bda,_0x43550d);}catch(_0x12cb3b){this[_0x3e2f7f(0x344)][_0x3e2f7f(0x1b5)](_0x12cb3b);}let _0xbe27b=this[_0x3e2f7f(0x18c)]();if(_0x39b4a9){let _0x13eac3=_0x2f4bec(this[_0x3e2f7f(0x46a)],_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);return _0x13eac3 instanceof _0x27ecb8?_0x13eac3[_0x3e2f7f(0x334)]():(_0x13eac3 instanceof _0x1e3872||_0x13eac3 instanceof _0x57ae4a)&&_0x13eac3['resend'](),_0x13eac3;}return this[_0x3e2f7f(0x46a)][_0x3e2f7f(0x40d)](_0x20a1e1,_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);}['_replayCachedMutations'](_0x2b87df,_0x56e89d){const _0x34ea08=_0x9884d2;var _0x6398ea,_0x26f60b;let _0xf3da4e=this['_compressMutationService'][_0x34ea08(0x395)][_0x34ea08(0x18d)](this['_compressMutationService'][_0x34ea08(0x395)]['getInterceptPoints']()[_0x34ea08(0x1d2)]);(_0x6398ea=_0xf3da4e((_0x2b87df==null?void 0x0:_0x2b87df[_0x34ea08(0x25c)])||[],null))==null||_0x6398ea[_0x34ea08(0x1e3)](_0x39599f=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x39599f['id'],_0x39599f[_0x34ea08(0x3f5)])),(_0x26f60b=_0xf3da4e(_0x56e89d||[],null))==null||_0x26f60b[_0x34ea08(0x1e3)](_0x2dab0d=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x2dab0d['id'],_0x2dab0d[_0x34ea08(0x3f5)]));}};_0xe2b433=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0xe2b433);let _0x94e744=class extends _0xe2b433{constructor(_0x2af5ac,_0x1e39f3,_0x4823f8,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x296926,_0x5e272f,_0xdde246){const _0x2d40eb=_0x9884d2;super(_0x2af5ac,_0x4823f8,_0x1e39f3,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x5e272f,_0xdde246),this['unitID']=_0x2af5ac,this[_0x2d40eb(0x415)]=_0x1e39f3,this[_0x2d40eb(0x3a8)]=_0x296926,_0x60128a(this,'_handlerCallback',null);}[_0x9884d2(0x22d)](_0x572928){this['_handlerCallback']=_0x572928;}['dispose'](){const _0x4123dc=_0x9884d2;this['_handlerCallback']=null,super[_0x4123dc(0x314)]();}[_0x9884d2(0x18c)](){const _0x16d545=_0x9884d2;let _0x575102=super['_createHandler']();return _0x575102['onTransformIME']=_0x2ec0d4=>{const _0x348eae=_0x328a;var _0x4f72d3,_0x560a37;return(_0x4f72d3=this[_0x348eae(0x3c5)])==null||(_0x560a37=_0x4f72d3[_0x348eae(0x31a)])==null?void 0x0:_0x560a37[_0x348eae(0x43d)](_0x4f72d3,_0x2ec0d4);},_0x575102[_0x16d545(0x330)]=_0x458d26=>{const _0x44dc76=_0x16d545;var _0x5c06dd,_0x587442;return(_0x5c06dd=this['_handlerCallback'])==null||(_0x587442=_0x5c06dd[_0x44dc76(0x330)])==null?void 0x0:_0x587442[_0x44dc76(0x43d)](_0x5c06dd,_0x458d26);},_0x575102[_0x16d545(0x3da)]=_0x2b004e=>{const _0x24cf9c=_0x16d545;var _0x2a21d4,_0x376c6a;return((_0x2a21d4=this[_0x24cf9c(0x3c5)])==null||(_0x376c6a=_0x2a21d4['onPrepareTransformSelections'])==null?void 0x0:_0x376c6a[_0x24cf9c(0x43d)](_0x2a21d4,_0x2b004e))??null;},_0x575102[_0x16d545(0x3c2)]=_0x5bfad7=>{const _0x2cffcd=_0x16d545;var _0x34ace1,_0xac5bf7;return(_0x34ace1=this[_0x2cffcd(0x3c5)])==null||(_0xac5bf7=_0x34ace1[_0x2cffcd(0x3c2)])==null?void 0x0:_0xac5bf7[_0x2cffcd(0x43d)](_0x34ace1,_0x5bfad7);},_0x575102['onSyncEditingCollabCursor']=_0x1d6325=>{const _0x1180eb=_0x16d545;var _0x1465ae,_0x1ecd1e;return(_0x1465ae=this[_0x1180eb(0x3c5)])==null||(_0x1ecd1e=_0x1465ae[_0x1180eb(0x3cc)])==null?void 0x0:_0x1ecd1e[_0x1180eb(0x43d)](_0x1465ae,_0x1d6325);},_0x575102[_0x16d545(0x311)]=_0x14f3f9=>{const _0x6aa338=_0x16d545;var _0x793da4,_0x5b49e0;return((_0x793da4=this[_0x6aa338(0x3c5)])==null||(_0x5b49e0=_0x793da4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b49e0[_0x6aa338(0x43d)](_0x793da4,_0x14f3f9))??_0x14f3f9;},_0x575102['onTransformRemoteChangesetByStateCache']=_0x31e4af=>{const _0x6392d8=_0x16d545;var _0x8decc2,_0x33f126;return((_0x8decc2=this[_0x6392d8(0x3c5)])==null||(_0x33f126=_0x8decc2[_0x6392d8(0x206)])==null?void 0x0:_0x33f126[_0x6392d8(0x43d)](_0x8decc2,_0x31e4af))??_0x31e4af;},_0x575102;}async[_0x9884d2(0x386)](){const _0x3b5556=_0x9884d2;let _0x147c0d=await super['_init']();return this[_0x3b5556(0x472)](this[_0x3b5556(0x3a8)][_0x3b5556(0x27b)][_0x3b5556(0x23b)](_0x5c99ac=>{const _0x3573e0=_0x3b5556;if(_0x5c99ac==null||_0x5c99ac[_0x3573e0(0x3f0)]!==this[_0x3573e0(0x258)])return;let {commandId:_0x35db53,redoState:_0x3049b3,unitId:_0x2a1e37}=_0x5c99ac,_0x3d4a9a={'id':_0x35db53,'type':_0x4b2515[_0x3573e0(0x389)][_0x3573e0(0x46f)],'params':{'unitId':_0x2a1e37,'actions':_0x3049b3[_0x3573e0(0x37a)],'textRanges':null}};this['_onLocalMutation'](_0x3d4a9a);})),this[_0x3b5556(0x472)](this[_0x3b5556(0x2ef)][_0x3b5556(0x1cd)]((_0x3ae6b9,_0x4463f8)=>{const _0x1a012e=_0x3b5556;if(_0x3ae6b9[_0x1a012e(0x415)]!==_0x4b2515[_0x1a012e(0x389)][_0x1a012e(0x46f)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x371)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x1ba)]||_0x3ae6b9['id']===_0x120ed0[_0x1a012e(0x16f)]['id'])return;let _0xfe2257=_0x3ae6b9[_0x1a012e(0x3f5)];if((_0xfe2257==null?void 0x0:_0xfe2257['unitId'])!==this[_0x1a012e(0x258)])return;let _0x5cd73f=_0x3ae6b9,_0x216451=this[_0x1a012e(0x188)][_0x1a012e(0x395)][_0x1a012e(0x18d)](this['_compressMutationService'][_0x1a012e(0x395)][_0x1a012e(0x176)]()[_0x1a012e(0x139)])([_0x5cd73f],this[_0x1a012e(0x118)])||[_0x5cd73f];this[_0x1a012e(0x17a)](_0x216451[0x0]);})),_0x147c0d;}};_0x94e744=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['Injector'])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Inject'])(_0x120ed0[_0x9884d2(0x279)])),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x94e744);let _0x24daae=class extends _0xe2b433{constructor(_0x25d113,_0x1097f9,_0x4b3115,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc){const _0x1d8611=_0x9884d2;super(_0x25d113,_0x4b3115,_0x1097f9,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc),this[_0x1d8611(0x258)]=_0x25d113,this['type']=_0x1097f9;}async[_0x9884d2(0x386)](){const _0x36c4c8=_0x9884d2;let _0xedcf31=await super['_init']();return this[_0x36c4c8(0x472)](this[_0x36c4c8(0x2ef)][_0x36c4c8(0x1cd)]((_0x1605c1,_0x1e0d08)=>{const _0x12b996=_0x36c4c8;if(_0x1605c1[_0x12b996(0x415)]!==_0x4b2515[_0x12b996(0x389)][_0x12b996(0x46f)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x371)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x1ba)])return;let _0x40211e=_0x1605c1[_0x12b996(0x3f5)];if((_0x40211e==null?void 0x0:_0x40211e['unitId'])!==this[_0x12b996(0x258)])return;let _0x174a90=_0x1605c1,_0x2bf63f=this[_0x12b996(0x188)]['interceptor'][_0x12b996(0x18d)](this['_compressMutationService'][_0x12b996(0x395)][_0x12b996(0x176)]()[_0x12b996(0x139)])([_0x174a90],this[_0x12b996(0x118)])||[_0x174a90];this[_0x12b996(0x17a)](_0x2bf63f[0x0]);})),_0xedcf31;}};_0x24daae=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x24daae);let _0xe8b1d4=class extends _0xe2b433{constructor(_0x2fdbbd,_0x199b88,_0x1096de,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x592310,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d){const _0xec093b=_0x9884d2;super(_0x2fdbbd,_0x1096de,_0x199b88,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d),this[_0xec093b(0x258)]=_0x2fdbbd,this[_0xec093b(0x415)]=_0x199b88,this[_0xec093b(0x2e1)]=_0x592310;}[_0x9884d2(0x18c)](){const _0xceed92=_0x9884d2;let _0x3bafdc=super[_0xceed92(0x18c)]();return _0x3bafdc[_0xceed92(0x3c2)]=_0x2a5c37=>this['_sheetTransformSelectionsService'][_0xceed92(0x378)](_0x2a5c37),_0x3bafdc;}async[_0x9884d2(0x386)](){const _0x2a7bb1=_0x9884d2;let _0x274d95=await super['_init']();return this[_0x2a7bb1(0x472)](this[_0x2a7bb1(0x2ef)][_0x2a7bb1(0x1cd)]((_0x727565,_0xe933a8)=>{const _0x5a1a0f=_0x2a7bb1;if(_0x727565[_0x5a1a0f(0x415)]!==_0x4b2515[_0x5a1a0f(0x389)][_0x5a1a0f(0x46f)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x371)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x1ba)])return;let _0x2bc7e0=_0x727565[_0x5a1a0f(0x3f5)];if((_0x2bc7e0==null?void 0x0:_0x2bc7e0[_0x5a1a0f(0x3f0)])!==this[_0x5a1a0f(0x258)])return;let _0x327762=_0x727565,_0x5be8f2=this[_0x5a1a0f(0x188)][_0x5a1a0f(0x395)][_0x5a1a0f(0x18d)](this['_compressMutationService']['interceptor'][_0x5a1a0f(0x176)]()[_0x5a1a0f(0x139)])([_0x327762],this[_0x5a1a0f(0x118)])||[_0x327762];this[_0x5a1a0f(0x17a)](_0x5be8f2[0x0]);})),_0x274d95;}};_0xe8b1d4=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x2326c2)),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0xe8b1d4);let _0x3a9411=class extends _0xe2b433{constructor(_0x45bcfd,_0x4334af,_0x3fda22,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578){const _0x5855e3=_0x9884d2;super(_0x45bcfd,_0x3fda22,_0x4334af,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578),this[_0x5855e3(0x258)]=_0x45bcfd,this['type']=_0x4334af;}async['_init'](){const _0x46d8be=_0x9884d2;let _0x59223a=await super[_0x46d8be(0x386)]();return this[_0x46d8be(0x472)](this[_0x46d8be(0x2ef)][_0x46d8be(0x1cd)]((_0x2a687a,_0xe7f08f)=>{const _0xf4b19e=_0x46d8be;if(_0x2a687a[_0xf4b19e(0x415)]!==_0x4b2515[_0xf4b19e(0x389)][_0xf4b19e(0x46f)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x371)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x1ba)])return;let _0x196946=_0x2a687a[_0xf4b19e(0x3f5)];if((_0x196946==null?void 0x0:_0x196946[_0xf4b19e(0x3f0)])!==this[_0xf4b19e(0x258)])return;let _0x235949=_0x2a687a,_0x4fd273=this[_0xf4b19e(0x188)]['interceptor'][_0xf4b19e(0x18d)](this[_0xf4b19e(0x188)][_0xf4b19e(0x395)][_0xf4b19e(0x176)]()[_0xf4b19e(0x139)])([_0x235949],this[_0xf4b19e(0x118)])||[_0x235949];this[_0xf4b19e(0x17a)](_0x4fd273[0x0]);})),_0x59223a;}};_0x3a9411=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x3a9411);let _0x4deb99=class extends _0xe2b433{constructor(_0x2d5626,_0x24df18,_0x38a190,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946){const _0x1a9c72=_0x9884d2;super(_0x2d5626,_0x38a190,_0x24df18,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946),this[_0x1a9c72(0x258)]=_0x2d5626,this[_0x1a9c72(0x415)]=_0x24df18;}async[_0x9884d2(0x386)](){const _0x113e73=_0x9884d2;let _0x5b479b=await super[_0x113e73(0x386)]();return this[_0x113e73(0x472)](this[_0x113e73(0x2ef)][_0x113e73(0x1cd)]((_0x201929,_0x5b4b90)=>{const _0x4e6d6c=_0x113e73;if(_0x201929[_0x4e6d6c(0x415)]!==_0x4b2515[_0x4e6d6c(0x389)][_0x4e6d6c(0x46f)]||_0x5b4b90!=null&&_0x5b4b90[_0x4e6d6c(0x371)]||_0x5b4b90!=null&&_0x5b4b90['onlyLocal'])return;let _0x13a315=_0x201929[_0x4e6d6c(0x3f5)];if((_0x13a315==null?void 0x0:_0x13a315['unitId'])!==this[_0x4e6d6c(0x258)])return;let _0x5dfae5=_0x201929,_0x24247d=this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x18d)](this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x176)]()[_0x4e6d6c(0x139)])([_0x5dfae5],this[_0x4e6d6c(0x118)])||[_0x5dfae5];this[_0x4e6d6c(0x17a)](_0x24247d[0x0]);})),_0x5b479b;}};_0x4deb99=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x4deb99);let _0x2226d9=class extends _0xe2b433{constructor(_0x39bacc,_0x4963e3,_0x137430,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b){const _0x9ac04b=_0x9884d2;super(_0x39bacc,_0x137430,_0x4963e3,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b),this['unitID']=_0x39bacc,this[_0x9ac04b(0x415)]=_0x4963e3;}async['_init'](){const _0x5b4c2a=_0x9884d2;let _0x620ab5=await super[_0x5b4c2a(0x386)]();return this[_0x5b4c2a(0x472)](this[_0x5b4c2a(0x2ef)][_0x5b4c2a(0x1cd)]((_0x31c8a0,_0x503ce1)=>{const _0x2c6d9c=_0x5b4c2a;if(_0x31c8a0[_0x2c6d9c(0x415)]!==_0x4b2515['CommandType']['MUTATION']||_0x503ce1!=null&&_0x503ce1['fromCollab']||_0x503ce1!=null&&_0x503ce1[_0x2c6d9c(0x1ba)])return;let _0x5842ac=_0x31c8a0[_0x2c6d9c(0x3f5)];if((_0x5842ac==null?void 0x0:_0x5842ac[_0x2c6d9c(0x3f0)])!==this[_0x2c6d9c(0x258)])return;let _0x4c325a=_0x31c8a0,_0x48f578=this['_compressMutationService'][_0x2c6d9c(0x395)][_0x2c6d9c(0x18d)](this[_0x2c6d9c(0x188)][_0x2c6d9c(0x395)][_0x2c6d9c(0x176)]()['COMPRESS_MUTATION_SEND'])([_0x4c325a],this[_0x2c6d9c(0x118)])||[_0x4c325a];this[_0x2c6d9c(0x17a)](_0x48f578[0x0]);})),_0x620ab5;}};_0x2226d9=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515['ICommandService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x2226d9);let _0x3ce8fd=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1d8));function _0x36e901(_0x280e88){const _0x7fdfa7=_0x9884d2;let _0x2ea195=_0x280e88[_0x7fdfa7(0x1b4)],_0x3f48d9=JSON['parse'](_0x2ea195);switch(_0x3f48d9['cmd']){case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x280)]:case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x35a)]:{let _0x2c5fe7=_0x3f48d9['infoRsp'];return{..._0x3f48d9,'data':_0x2c5fe7,'cmd':_0x3f48d9['cmd']};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x213)]:{let _0x372532=_0x3f48d9[_0x7fdfa7(0x3b8)];return{..._0x3f48d9,'data':_0x372532,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x2c1)]:{let _0x4122f9=_0x3f48d9[_0x7fdfa7(0x3a9)];switch(_0x4122f9['eventID']){case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x384)]:var _0x148b50;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x148b50=_0x4122f9[_0x7fdfa7(0x26a)])==null?void 0x0:_0x148b50['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f7)]:var _0x2dd5e7;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2dd5e7=_0x4122f9['csAckEvent'])==null?void 0x0:_0x2dd5e7['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be['CollaborationEvent']['NEW_CHANGESETS']:var _0x5607e8;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x5607e8=_0x4122f9[_0x7fdfa7(0x3ef)])==null?void 0x0:_0x5607e8['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['CHANGESET_REJ']:var _0x507131;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x507131=_0x4122f9[_0x7fdfa7(0x34b)])==null?void 0x0:_0x507131['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x238)]:var _0x2b1979;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2b1979=_0x4122f9[_0x7fdfa7(0x11c)])==null?void 0x0:_0x2b1979['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f5)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x1f8)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x377)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x2e7)]},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x197)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['leaveEvent']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x460)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)]['LIVESHARE_FETCH_OPERATIONS']:case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x44c)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x419)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x3f9)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['MSG_FOR_ERROR']:return{..._0x3f48d9,'data':_0x4122f9,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['COMMENT_UPDATE']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x13a)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['UPDATE_PERMISSION_OBJ']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x278)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x478)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['shouldCloseConn']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x32a)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x366)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};default:return _0x3f48d9;}}default:return _0x3f48d9;}}function _0x320ae2(_0x3dc493){const _0x1db023=_0x9884d2;switch(_0x3dc493[_0x1db023(0x35f)]){case _0x349630[_0x1db023(0x293)][_0x1db023(0x280)]:case _0x349630[_0x1db023(0x293)]['HELLO']:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493['routeKey']});case _0x349630['CombCmd'][_0x1db023(0x198)]:{let _0x4de506;switch(_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b3)]){case _0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)],'updateCursorEvent':_0x3dc493['data']['data']};break;case _0x5199be[_0x1db023(0x261)]['USERS_LEAVE']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)]['USERS_LEAVE'],'leaveEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x377)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x377)],'joinEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent'][_0x1db023(0x460)]:_0x4de506={'eventID':_0x5199be['CollaborationEvent'][_0x1db023(0x460)],'liveShareNewHost':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_OPERATION']:_0x4de506={'eventID':_0x5199be['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)],'liveShareTerminate':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x14e)],'liveShareRequestHost':_0x3dc493['data'][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]};break;default:_0x4de506={'eventID':_0x3dc493['data']['eventID']};}return JSON['stringify']({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'collaMsg':_0x4de506});}case _0x349630[_0x1db023(0x293)][_0x1db023(0x213)]:return JSON['stringify']({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'joinReq':_0x3dc493[_0x1db023(0x1b4)]});case _0x349630[_0x1db023(0x293)][_0x1db023(0x2fc)]:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'leaveReq':_0x3dc493['data']});default:throw Error(_0x1db023(0x2e8));}}let _0x4f7089=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x236));function _0x91aa4f(_0x130d95,_0x1cfb53,_0x7f067a){const _0x431a88=_0x9884d2;return _0x130d95+'/'+_0x1cfb53+_0x431a88(0x3b3)+_0x7f067a+_0x431a88(0x3c9);}let _0x1df3dc=class extends _0x4b2515['Disposable']{constructor(_0x32437f,_0x1adece,_0x38bc9d,_0x38b53e,_0x62919){const _0x21482e=_0x9884d2;super(),this[_0x21482e(0x46a)]=_0x32437f,this['_httpService']=_0x1adece,this[_0x21482e(0x3c6)]=_0x38bc9d,this[_0x21482e(0x344)]=_0x38b53e,this[_0x21482e(0x331)]=_0x62919;}['_doCreateSocket'](_0x57a379){const _0x30d7e3=_0x9884d2;let _0x169deb=this[_0x30d7e3(0x46a)][_0x30d7e3(0x2eb)](_0x530da8[_0x30d7e3(0x19f)]);if(!_0x169deb)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5c2ffb=_0x169deb[_0x30d7e3(0x3b2)](_0x57a379);if(!_0x5c2ffb)throw Error(_0x30d7e3(0x44d));let _0xf8d825=new _0x4b2515[(_0x30d7e3(0x277))](),_0x2e59c1=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb['close$'][_0x30d7e3(0x23b)](_0x549212=>_0x2e59c1[_0x30d7e3(0x17e)](_0x549212))),_0xf8d825['add']((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x2e59c1[_0x30d7e3(0x41f)]()));let _0x236b20=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x199)][_0x30d7e3(0x23b)](_0x44f913=>_0x236b20[_0x30d7e3(0x17e)](_0x44f913))),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515['toDisposable'])(()=>_0x236b20[_0x30d7e3(0x41f)]()));let _0x21e5a4=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x400)][_0x30d7e3(0x23b)](_0x5f46dd=>{const _0xf03245=_0x30d7e3;let _0x1031ac=_0x36e901(_0x5f46dd);_0x21e5a4[_0xf03245(0x17e)](_0x1031ac);})),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x21e5a4[_0x30d7e3(0x41f)]()));let _0x449514,_0x20b06b=()=>{const _0x102195=_0x30d7e3;_0x236b20[_0x102195(0x17e)](new Event('connection\x20error')),_0x2e59c1[_0x102195(0x17e)](new Event(_0x102195(0x130))),_0x449514[_0x102195(0x243)]();};return _0x449514={'memberID':'','close$':_0x2e59c1['asObservable'](),'error$':_0x236b20[_0x30d7e3(0x43c)](),'open$':_0x5c2ffb[_0x30d7e3(0x265)],'message$':_0x21e5a4[_0x30d7e3(0x43c)](),'send':_0x313295=>{const _0x99a789=_0x30d7e3;if(_0x313295[_0x99a789(0x35f)]===_0x349630[_0x99a789(0x293)][_0x99a789(0x198)]){if(_0x313295[_0x99a789(0x1b4)]['eventID']===_0x5199be[_0x99a789(0x261)][_0x99a789(0x209)]){this[_0x99a789(0x2c9)](_0x449514,_0x313295[_0x99a789(0x1b4)])[_0x99a789(0x2d9)](_0x509579=>{const _0x3885c4=_0x99a789;this[_0x3885c4(0x344)]['error'](_0x509579),_0x20b06b();});return;}if(_0x313295['data'][_0x99a789(0x1b3)]===_0x5199be[_0x99a789(0x261)][_0x99a789(0x318)]){let _0xbf2899=_0x313295[_0x99a789(0x1b4)];this[_0x99a789(0x3c0)](_0xbf2899)[_0x99a789(0x2b5)](_0x255bb7=>{const _0x106f20=_0x99a789;_0x21e5a4[_0x106f20(0x17e)]({'cmd':_0x349630[_0x106f20(0x293)]['RECV'],'code':_0x349630[_0x106f20(0x440)]['OK'],'routeKey':_0xbf2899[_0x106f20(0x1b4)][_0x106f20(0x258)],'routeType':'','data':{'eventID':_0x5199be[_0x106f20(0x261)][_0x106f20(0x18e)],'data':{'changesets':_0x255bb7}}});})['catch'](_0x113b42=>{const _0x567b81=_0x99a789;this[_0x567b81(0x344)]['error'](_0x113b42),_0x20b06b();});return;}}_0x5c2ffb[_0x99a789(0x2d6)](_0x320ae2(_0x313295));},'close':()=>{const _0x465d27=_0x30d7e3;_0x5c2ffb[_0x465d27(0x243)](),_0xf8d825[_0x465d27(0x314)]();}},_0x449514;}async[_0x9884d2(0x2c9)](_0x1a0829,_0x4c994a){const _0xb97675=_0x9884d2;let {unitType:_0x4d4036,unitID:_0x4a5a44,changeset:_0x528e9a}=_0x4c994a['data'],_0x122aa4={'unitID':_0x4a5a44,'memberID':_0x1a0829[_0xb97675(0x417)],'type':_0x4d4036,'changeset':(0x0,_0x5199be[_0xb97675(0x21a)])(_0x528e9a)},_0x1f4f4d=this['_configService']['getConfig'](_0x3c0330),_0x436f30=_0x91aa4f((_0x1f4f4d==null?void 0x0:_0x1f4f4d[_0xb97675(0x3c8)])??_0xb97675(0x485),_0x4d4036,_0x4a5a44);try{await this[_0xb97675(0x1d0)][_0xb97675(0x31b)](_0x436f30,{'body':_0x122aa4});}catch(_0x155549){throw this['_logService'][_0xb97675(0x1b5)]('[CollaborationSession]',_0xb97675(0x290)),_0x155549;}}async[_0x9884d2(0x3c0)](_0x4681f8){const _0x19b578=_0x9884d2;let {unitID:_0x86b1f2,from:_0x42002f,to:_0x5e7b31,unitType:_0x5d2651}=_0x4681f8[_0x19b578(0x1b4)];return(await this[_0x19b578(0x331)][_0x19b578(0x30d)]({'metadata':void 0x0},{'unitID':_0x86b1f2,'type':_0x5d2651,'from':_0x42002f,'to':_0x5e7b31}))['changesets']['map'](_0x34cb36=>((_0x34cb36['mutations']===null||_0x34cb36[_0x19b578(0x25c)]===void 0x0)&&(_0x34cb36[_0x19b578(0x25c)]=[]),_0x34cb36));}};_0x1df3dc=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x4,_0x5199be['ISnapshotServerService'])],_0x1df3dc);let _0x14183e=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x18b));function _0x8c16f0(_0x15162c={}){const _0x2c8c03=_0x9884d2;return _0x15162c['resolveUnit']?{'resolveUnit':_0x15162c['resolveUnit']}:{'resolveUnit':_0xf7315b=>({'target':{'unitId':_0xf7315b[_0x2c8c03(0x3f0)],'unitType':_0xf7315b[_0x2c8c03(0x294)]}})};}function _0x163e78(_0x292dd3,_0x404ee5,_0x282c45){const _0x187b88=_0x9884d2;let _0x5919b9=_0x282c45[_0x187b88(0x479)]['endpoint'];if(_0x5919b9!=null&&_0x5919b9[_0x187b88(0x2c4)]()==='')throw Error(_0x187b88(0x29a));if(!_0x282c45[_0x187b88(0x479)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x292dd3,'unitType':_0x404ee5,'target':{'endpoint':_0x5919b9,'unitId':_0x282c45[_0x187b88(0x479)][_0x187b88(0x3f0)],'unitType':_0x282c45[_0x187b88(0x479)][_0x187b88(0x294)]??_0x404ee5},'changeset':_0x282c45[_0x187b88(0x166)]};}let _0x283d67=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x33c3a5,_0x4d2567,_0x4c0374,_0x429065,_0xb88d64,_0x4312d2,_0x2ee563){const _0x576a62=_0x9884d2;super(),this[_0x576a62(0x46a)]=_0x33c3a5,this['_logService']=_0x4d2567,this[_0x576a62(0x3c6)]=_0x4c0374,this[_0x576a62(0x159)]=_0x429065,this[_0x576a62(0x427)]=_0xb88d64,this['_adapter']=_0x4312d2,this[_0x576a62(0x185)]=_0x2ee563,_0x60128a(this,_0x576a62(0x175),new Map()),_0x60128a(this,_0x576a62(0x3de),new Map()),_0x60128a(this,_0x576a62(0x3a1),new Map()),_0x60128a(this,'_socketChannels',new Map()),_0x60128a(this,_0x576a62(0x352),this[_0x576a62(0x132)](void 0x0)['socket$'][_0x576a62(0x43c)]()),_0x60128a(this,_0x576a62(0x310),new _0xccd21e['BehaviorSubject'](0x0)),_0x60128a(this,'status$',this['_status$'][_0x576a62(0x43c)]()),this[_0x576a62(0x17f)]();}[_0x9884d2(0x17f)](){const _0x5511d9=_0x9884d2;this['_networkConditionService']&&this[_0x5511d9(0x472)](this['_networkConditionService'][_0x5511d9(0x2bf)][_0x5511d9(0x23b)](_0xa6e86=>{const _0xf2b175=_0x5511d9;_0xa6e86&&this[_0xf2b175(0x158)](),_0xa6e86||this[_0xf2b175(0x397)]['forEach'](_0x3abeed=>this[_0xf2b175(0x216)](_0x3abeed));}));}[_0x9884d2(0x314)](){const _0x4ed839=_0x9884d2;super[_0x4ed839(0x314)](),this[_0x4ed839(0x397)][_0x4ed839(0x1e3)](_0x216968=>{const _0x297bf8=_0x4ed839;var _0x4318c0,_0xfa6c6a;(_0x4318c0=_0x216968[_0x297bf8(0x390)])==null||_0x4318c0[_0x297bf8(0x29f)](),_0x216968['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x216968),this[_0x297bf8(0x309)](_0x216968),this[_0x297bf8(0x1a6)](_0x216968),(_0xfa6c6a=_0x216968['socket$'][_0x297bf8(0x383)]())==null||_0xfa6c6a[_0x297bf8(0x243)](),_0x216968['socket$'][_0x297bf8(0x41f)]();}),this['_socketChannels'][_0x4ed839(0x214)](),this[_0x4ed839(0x175)][_0x4ed839(0x1e3)](_0x3b1985=>_0x3b1985['dispose']()),this[_0x4ed839(0x175)]['clear'](),this[_0x4ed839(0x3a1)][_0x4ed839(0x214)](),this['_status$']['complete']();}async[_0x9884d2(0x1a4)](_0x4b265c,_0x53efb6){const _0x5f0503=_0x9884d2;if(this['_sessions'][_0x5f0503(0x40a)](_0x4b265c))return this[_0x5f0503(0x175)][_0x5f0503(0x2eb)](_0x4b265c);let _0x4f8d9b=this['_pendingSessions'][_0x5f0503(0x2eb)](_0x4b265c);if(_0x4f8d9b)return _0x4f8d9b;let _0x17e2f6=this[_0x5f0503(0x47b)](_0x4b265c,_0x53efb6);this[_0x5f0503(0x3de)][_0x5f0503(0x41e)](_0x4b265c,_0x17e2f6);try{return await _0x17e2f6;}finally{this[_0x5f0503(0x3de)][_0x5f0503(0x287)](_0x4b265c);}}async['_createSession'](_0x5f523a,_0xfd5ca0){const _0xd28c36=_0x9884d2;let _0x5b88e4=await this[_0xd28c36(0x1a1)](_0x5f523a,_0xfd5ca0),_0x1f511f=this[_0xd28c36(0x132)](_0x5b88e4['target']['endpoint']);this[_0xd28c36(0x23a)](_0x1f511f);let _0x242dd2=this[_0xd28c36(0x46a)][_0xd28c36(0x40d)](_0x188c53,_0x5b88e4,_0x1f511f[_0xd28c36(0x352)][_0xd28c36(0x43c)]());return this[_0xd28c36(0x175)][_0xd28c36(0x41e)](_0x5f523a,_0x242dd2),this['_sessionChannels'][_0xd28c36(0x41e)](_0x5f523a,_0x1f511f['endpointKey']),_0x242dd2;}['closeSession'](_0xdb0608){const _0x49dd17=_0x9884d2;let _0x1f50f6=this['_sessions'][_0x49dd17(0x2eb)](_0xdb0608),_0x63df11=this['_sessionChannels'][_0x49dd17(0x2eb)](_0xdb0608);if(_0x1f50f6&&(this[_0x49dd17(0x175)][_0x49dd17(0x287)](_0xdb0608),this[_0x49dd17(0x3a1)]['delete'](_0xdb0608),_0x1f50f6[_0x49dd17(0x243)]()),_0x63df11&&!this[_0x49dd17(0x271)](_0x63df11)){var _0x1ff0c3;let _0x4d77f3=this[_0x49dd17(0x397)][_0x49dd17(0x2eb)](_0x63df11);_0x4d77f3==null||(_0x1ff0c3=_0x4d77f3[_0x49dd17(0x352)][_0x49dd17(0x383)]())==null||_0x1ff0c3[_0x49dd17(0x243)]();}}['reconnect'](){const _0x5787ee=_0x9884d2;(this['_socketChannels']['size']?[...this['_socketChannels']['values']()]:[this[_0x5787ee(0x132)](void 0x0)])['forEach'](_0x432e8b=>{const _0x5c0b59=_0x5787ee;_0x432e8b[_0x5c0b59(0x2d0)]=0x0,this['_clearRetryConnectingTimer'](_0x432e8b),this['_tryReconnect'](_0x432e8b);});}[_0x9884d2(0x141)](_0x41100b){const _0xe515e=_0x9884d2;_0x41100b[_0xe515e(0x117)]!=null&&(clearTimeout(_0x41100b[_0xe515e(0x117)]),_0x41100b['retryConnectingTimer']=null);}async[_0x9884d2(0x2e3)](_0x419d73){const _0x5b007d=_0x9884d2;let _0x5a006b=this[_0x5b007d(0x3c6)][_0x5b007d(0x32f)](_0x3c0330),_0x40de5e=_0x419d73['endpoint']??(_0x5a006b==null?void 0x0:_0x5a006b[_0x5b007d(0x430)])??_0x5b007d(0x3fb),_0x1c76b4=await this[_0x5b007d(0x159)]['createSocket'](_0x40de5e);return _0x419d73[_0x5b007d(0x127)]=_0x1c76b4,_0x1c76b4;}async[_0x9884d2(0x23a)](_0x51c6a2){const _0x231436=_0x9884d2;try{let _0x520b3c=_0x51c6a2['socket$'][_0x231436(0x383)]()??_0x51c6a2[_0x231436(0x127)]??await this[_0x231436(0x2e3)](_0x51c6a2);if(_0x520b3c){var _0x3c45e6;let _0x2a79cb=_0x520b3c['send'];_0x520b3c['send']=_0x36b545=>(_0x36b545['cmd']!==_0x349630['CombCmd'][_0x231436(0x2fc)]&&this[_0x231436(0x36e)](_0x51c6a2),_0x2a79cb[_0x231436(0x349)](_0x520b3c,[_0x36b545])),(_0x3c45e6=_0x51c6a2[_0x231436(0x390)])==null||_0x3c45e6[_0x231436(0x29f)](),_0x51c6a2[_0x231436(0x390)]=null,_0x51c6a2[_0x231436(0x390)]=_0x520b3c[_0x231436(0x400)][_0x231436(0x23b)](_0x269594=>this[_0x231436(0x136)](_0x51c6a2,_0x520b3c,_0x269594)),_0x520b3c['error$']['pipe']((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0xafd6ce=>this[_0x231436(0x344)][_0x231436(0x1b5)](_0x231436(0x25f),_0xafd6ce)),_0x520b3c[_0x231436(0x265)][_0x231436(0x486)]((0x0,_0x2c33e8['take'])(0x1))[_0x231436(0x23b)](()=>{const _0x10694f=_0x231436;this[_0x10694f(0x1fe)](_0x51c6a2,_0x520b3c);}),_0x520b3c[_0x231436(0x484)][_0x231436(0x486)]((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0x220fcb=>{const _0x76858c=_0x231436;this['_logService'][_0x76858c(0x348)](_0x76858c(0x2b6),'socket\x20close',_0x220fcb),this['_onConnectionFailed'](_0x51c6a2);});}}catch(_0x4d8b16){this['_logService'][_0x231436(0x1b5)](_0x4d8b16),this[_0x231436(0x19c)](_0x51c6a2);}}['_onConnectionOpen'](_0x224e3c,_0x1186fc){const _0x5020b1=_0x9884d2;this[_0x5020b1(0x344)][_0x5020b1(0x348)]('[CollaborationSessionService]',_0x5020b1(0x18a)),_0x1186fc[_0x5020b1(0x2d6)]({'cmd':_0x349630[_0x5020b1(0x293)]['HELLO']}),this[_0x5020b1(0x36e)](_0x224e3c);}[_0x9884d2(0x216)](_0x35dcb3){const _0x354a56=_0x9884d2;_0x35dcb3['socketReady']=!0x1,_0x35dcb3[_0x354a56(0x127)]=null,this[_0x354a56(0x310)][_0x354a56(0x17e)](0x2),_0x35dcb3[_0x354a56(0x352)][_0x354a56(0x17e)](null),this[_0x354a56(0x309)](_0x35dcb3),this[_0x354a56(0x1a6)](_0x35dcb3);}[_0x9884d2(0x19c)](_0x3e7655){const _0x426f6a=_0x9884d2;this[_0x426f6a(0x216)](_0x3e7655),this[_0x426f6a(0x271)](_0x3e7655[_0x426f6a(0x2a8)])&&(_0x3e7655[_0x426f6a(0x2d0)]<(this[_0x426f6a(0x3c6)][_0x426f6a(0x32f)](_0x426f6a(0x458))??0x3)?(this['_collaborationUIEventService'][_0x426f6a(0x1db)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x3e7655)):this[_0x426f6a(0x427)][_0x426f6a(0x1db)]({'id':_0x426f6a(0x163)}));}[_0x9884d2(0x2ea)](_0x17439a){const _0x45b1df=_0x9884d2;let _0x2ddcca=_0x17439a[_0x45b1df(0x2d0)],_0x3e0cb4=this[_0x45b1df(0x3c6)][_0x45b1df(0x32f)](_0x3c0330),_0x3aecc6=_0x2ddcca===0x0?0x0:((_0x3e0cb4==null?void 0x0:_0x3e0cb4[_0x45b1df(0x483)])??0x4e20)*0x2**_0x2ddcca;_0x17439a['retryConnectingTimer']=setTimeout(()=>{const _0x1124cc=_0x45b1df;clearTimeout(_0x17439a[_0x1124cc(0x117)]),_0x17439a[_0x1124cc(0x117)]=null,this[_0x1124cc(0x23a)](_0x17439a);},_0x3aecc6),_0x17439a[_0x45b1df(0x2d0)]+=0x1;}async[_0x9884d2(0x1a1)](_0x2d2ff8,_0x5a35ea){const _0x1ec27e=_0x9884d2;return _0x163e78(_0x2d2ff8,_0x5a35ea,await this[_0x1ec27e(0x42a)][_0x1ec27e(0x329)]({'unitId':_0x2d2ff8,'unitType':_0x5a35ea}));}['_onMessage'](_0x263751,_0x3a8811,_0x1dea63){const _0x2ed5d2=_0x9884d2;let {cmd:_0x1dcca1}=_0x1dea63;_0x1dcca1===_0x349630[_0x2ed5d2(0x293)]['HELLO']&&!_0x263751['socketReady']&&(_0x3a8811[_0x2ed5d2(0x417)]=_0x1dea63[_0x2ed5d2(0x1b4)][_0x2ed5d2(0x417)],_0x263751[_0x2ed5d2(0x2d0)]=0x0,_0x263751[_0x2ed5d2(0x352)][_0x2ed5d2(0x17e)](_0x3a8811),this[_0x2ed5d2(0x310)][_0x2ed5d2(0x17e)](0x3),_0x263751[_0x2ed5d2(0x351)]=!0x0,_0x263751[_0x2ed5d2(0x127)]=null),_0x1dcca1===_0x349630[_0x2ed5d2(0x293)][_0x2ed5d2(0x280)]&&this[_0x2ed5d2(0x309)](_0x263751),this[_0x2ed5d2(0x36e)](_0x263751);}[_0x9884d2(0x271)](_0x6619b6){const _0xc31e31=_0x9884d2;return[...this[_0xc31e31(0x3a1)]['values']()]['some'](_0x47f76d=>_0x47f76d===_0x6619b6);}[_0x9884d2(0x132)](_0x1c53e5){const _0x4fd072=_0x9884d2;let _0x13b26d=_0x1c53e5??'',_0x398980=this[_0x4fd072(0x397)][_0x4fd072(0x2eb)](_0x13b26d);if(_0x398980)return _0x398980;let _0xa7e94b={'endpointKey':_0x13b26d,'endpoint':_0x1c53e5,'socket$':new _0xccd21e[(_0x4fd072(0x379))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4fd072(0x397)][_0x4fd072(0x41e)](_0x13b26d,_0xa7e94b),_0xa7e94b;}['_rescheduleHeartbeat'](_0x5cd700){const _0x479fc6=_0x9884d2;this[_0x479fc6(0x1a6)](_0x5cd700),_0x5cd700[_0x479fc6(0x12f)]=setTimeout(()=>this[_0x479fc6(0x31c)](_0x5cd700),this[_0x479fc6(0x3c6)][_0x479fc6(0x32f)](_0x479fc6(0x3bc))??0x7530);}['_sendHeartbeat'](_0x2e5bad){const _0x6f7f3e=_0x9884d2;_0x2e5bad[_0x6f7f3e(0x352)]['getValue']()[_0x6f7f3e(0x2d6)]({'cmd':_0x349630[_0x6f7f3e(0x293)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2e5bad);}[_0x9884d2(0x2cc)](_0x41dd83){const _0x24f6e2=_0x9884d2;_0x41dd83[_0x24f6e2(0x2ca)]=setTimeout(()=>this[_0x24f6e2(0x19c)](_0x41dd83),this[_0x24f6e2(0x3c6)][_0x24f6e2(0x32f)](_0x24f6e2(0x207))??0x4e20);}['_clearHeartbeatTimer'](_0x45efdd){const _0x361ab8=_0x9884d2;_0x45efdd[_0x361ab8(0x12f)]!=null&&(clearTimeout(_0x45efdd[_0x361ab8(0x12f)]),_0x45efdd[_0x361ab8(0x12f)]=null);}['_clearTimeoutTimer'](_0x4d2c24){const _0x40e942=_0x9884d2;_0x4d2c24[_0x40e942(0x2ca)]!=null&&(clearTimeout(_0x4d2c24[_0x40e942(0x2ca)]),_0x4d2c24[_0x40e942(0x2ca)]=null);}};_0x283d67=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x3,_0x4f7089),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x5,_0x14183e),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ce8fd))],_0x283d67);let _0x4809ba=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x134365,_0x210a1e,_0x15caca,_0x50580a){const _0x149089=_0x9884d2;var _0x2c8958;super(),this['_injector']=_0x134365,this['_collabSessionService']=_0x210a1e,this[_0x149089(0x3c6)]=_0x15caca,this[_0x149089(0x118)]=_0x50580a,_0x60128a(this,_0x149089(0x1cc),new Map()),_0x60128a(this,_0x149089(0x482),new _0xccd21e[(_0x149089(0x200))]()),_0x60128a(this,_0x149089(0x3be),this['_entityInit$'][_0x149089(0x43c)]()),((_0x2c8958=this[_0x149089(0x3c6)]['getConfig'](_0x149089(0x3c1)))==null?void 0x0:_0x2c8958[_0x149089(0x2a9)])!==!0x1&&this['_init']();}[_0x9884d2(0x314)](){const _0x113111=_0x9884d2;super[_0x113111(0x314)](),this[_0x113111(0x1cc)][_0x113111(0x1e3)](_0x2bed69=>_0x2bed69[_0x113111(0x314)]()),this[_0x113111(0x1cc)][_0x113111(0x214)]();}[_0x9884d2(0x16c)](_0x436773){const _0x1d5249=_0x9884d2;return this[_0x1d5249(0x1cc)]['get'](_0x436773)??null;}[_0x9884d2(0x406)](_0x305589){const _0x376278=_0x9884d2;let _0x37185a=this[_0x376278(0x16c)](_0x305589);return _0x37185a?(0x0,_0xccd21e['of'])(_0x37185a):this[_0x376278(0x482)][_0x376278(0x486)]((0x0,_0x2c33e8[_0x376278(0x10d)])(_0x4afbd6=>_0x4afbd6['unitID']===_0x305589));}[_0x9884d2(0x23c)](_0xb3d4d9){const _0x158b39=_0x9884d2;return(0x0,_0xccd21e[_0x158b39(0x224)])(this['getCollabEntity$'](_0xb3d4d9)[_0x158b39(0x486)]((0x0,_0x2c33e8['map'])(()=>void 0x0)));}['_init'](){const _0x512cb5=_0x9884d2;this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x3b4602=>{const _0xf13bd7=_0x512cb5;let _0x5d9045=_0x3b4602['unit'][_0xf13bd7(0x413)](),_0x587f90=await this[_0xf13bd7(0x477)](_0x5d9045,_0x4b2515[_0xf13bd7(0x223)]['UNIVER_SHEET']);this[_0xf13bd7(0x1cc)][_0xf13bd7(0x41e)](_0x5d9045,_0x587f90);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x10f)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x486)]((0x0,_0x2c33e8[_0x512cb5(0x10d)])(_0x1a2f50=>!_0x1a2f50[_0x512cb5(0x145)][_0x512cb5(0x413)]()['startsWith']('__')))['subscribe'](async _0x118cf6=>{const _0x594eb5=_0x512cb5;let _0x2a1158=_0x118cf6[_0x594eb5(0x145)][_0x594eb5(0x413)](),_0x1355c1=await this['_startCollaboration'](_0x2a1158,_0x4b2515[_0x594eb5(0x223)][_0x594eb5(0x10f)]);this['_entities'][_0x594eb5(0x41e)](_0x2a1158,_0x1355c1);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_SLIDE'])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x6d07a9=>{const _0x1010da=_0x512cb5;let _0x4100ed=_0x6d07a9['unit'][_0x1010da(0x413)](),_0x470474=await this[_0x1010da(0x477)](_0x4100ed,_0x4b2515[_0x1010da(0x223)][_0x1010da(0x281)]);this[_0x1010da(0x1cc)][_0x1010da(0x41e)](_0x4100ed,_0x470474);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x339)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x387225=>{const _0x538ab3=_0x512cb5;let _0x532432=_0x387225[_0x538ab3(0x145)][_0x538ab3(0x413)](),_0x9e8928=await this[_0x538ab3(0x477)](_0x532432,_0x4b2515[_0x538ab3(0x223)][_0x538ab3(0x339)]);this[_0x538ab3(0x1cc)][_0x538ab3(0x41e)](_0x532432,_0x9e8928);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x267)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']),(0x0,_0x2c33e8['delay'])(0x10))['subscribe'](async _0x56fecc=>{const _0x43f387=_0x512cb5;let _0x77a74b=_0x56fecc['unit']['getUnitId'](),_0x3559fa=await this[_0x43f387(0x477)](_0x77a74b,_0x4b2515[_0x43f387(0x223)][_0x43f387(0x267)]);this[_0x43f387(0x1cc)][_0x43f387(0x41e)](_0x77a74b,_0x3559fa);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515['UniverInstanceType'][_0x512cb5(0x1b9)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x265bba=>{const _0x526f11=_0x512cb5;let _0x44e276=_0x265bba[_0x526f11(0x145)]['getUnitId'](),_0x58ec7a=await this[_0x526f11(0x477)](_0x44e276,_0x4b2515[_0x526f11(0x223)]['UNIVER_PDF']);this['_entities'][_0x526f11(0x41e)](_0x44e276,_0x58ec7a);}),(0x0,_0xccd21e[_0x512cb5(0x448)])(this[_0x512cb5(0x118)]['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_DOC']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515['UniverInstanceType']['UNIVER_SLIDE']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x339)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x267)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x1b9)]))[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']))[_0x512cb5(0x23b)](_0x237064=>{const _0x3e1af6=_0x512cb5;let _0x4f3342=_0x237064[_0x3e1af6(0x413)](),_0x2867db=this['_entities'][_0x3e1af6(0x2eb)](_0x4f3342);_0x2867db&&(_0x2867db[_0x3e1af6(0x314)](),this[_0x3e1af6(0x1cc)][_0x3e1af6(0x287)](_0x4f3342));});}async[_0x9884d2(0x477)](_0x2da858,_0x53a8fa){const _0xcbc4bc=_0x9884d2;let _0xb192af=await this[_0xcbc4bc(0x455)][_0xcbc4bc(0x1a4)](_0x2da858),_0x5ca766=this[_0xcbc4bc(0x46a)][_0xcbc4bc(0x40d)](this['_getCtorByUniverInstanceType'](_0x53a8fa),_0x2da858,_0x53a8fa,_0xb192af);return await _0x5ca766[_0xcbc4bc(0x2ce)](),this[_0xcbc4bc(0x482)][_0xcbc4bc(0x17e)](_0x5ca766),_0x5ca766;}[_0x9884d2(0x40b)](_0x3533cf){const _0x4a7871=_0x9884d2;switch(_0x3533cf){case _0x4b2515[_0x4a7871(0x223)]['UNIVER_DOC']:return _0x94e744;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x465)]:return _0xe8b1d4;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_SLIDE']:return _0x3a9411;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x339)]:return _0x4deb99;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_BASE']:return _0x24daae;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x1b9)]:return _0x2226d9;default:throw Error(_0x4a7871(0x451)+_0x3533cf);}}};_0x4809ba=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x405)])],_0x4809ba);var _0x3ff4bc='@univerjs-pro/collaboration-client',_0x303b92=_0x9884d2(0x14f);let _0x2fc493=class extends _0x4b2515['Disposable']{constructor(_0x211476,_0x2137a2){const _0x3ea04f=_0x9884d2;super(),this['_univerInstanceService']=_0x211476,this[_0x3ea04f(0x3c6)]=_0x2137a2,this['_init']();}['_init'](){const _0x18646f=_0x9884d2;this[_0x18646f(0x472)](this[_0x18646f(0x118)]['focused$'][_0x18646f(0x23b)](()=>{const _0x2447f1=_0x18646f;let _0x2a5812=this[_0x2447f1(0x118)][_0x2447f1(0x340)](),_0x43d363=this[_0x2447f1(0x3c6)][_0x2447f1(0x32f)]('DEFAULT_FILE_NAME')??_0x2447f1(0x39f);_0x2a5812 instanceof _0x4b2515[_0x2447f1(0x3b5)]&&(_0x43d363=_0x2a5812['name']),document[_0x2447f1(0x420)]=_0x43d363;}));}};_0x2fc493=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)])],_0x2fc493);let _0x5e4e05=(0x0,_0x4b2515[_0x9884d2(0x2c3)])('base-ui.attachment-io.service'),_0x5b1674=class{constructor(_0x13c454,_0x11be8a,_0x480864){const _0x2e06b9=_0x9884d2;this[_0x2e06b9(0x1d0)]=_0x13c454,this[_0x2e06b9(0x3c6)]=_0x11be8a,this[_0x2e06b9(0x118)]=_0x480864;}['getUploadOptions'](){const _0x395082=_0x9884d2;return this[_0x395082(0x13e)]()[_0x395082(0x11e)]??{};}async[_0x9884d2(0x248)](_0x308a27){const _0x409072=_0x9884d2;let _0xb864ae=this[_0x409072(0x2b9)]();if(_0x1b7456(_0x308a27,_0xb864ae),_0xb864ae[_0x409072(0x247)])return _0xb864ae[_0x409072(0x247)](_0x308a27);let _0x49af20=await this[_0x409072(0x1dd)](_0x308a27);return{'id':_0x49af20,'name':_0x308a27['name'],'mimeType':_0x308a27[_0x409072(0x415)],'size':_0x308a27['size'],'sourceType':_0x4b2515[_0x409072(0x3fe)][_0x409072(0x46c)],'source':_0x49af20};}async[_0x9884d2(0x161)](_0x37683d,_0x623fb7){const _0x598a1d=_0x9884d2;if(_0x623fb7!==_0x4b2515[_0x598a1d(0x3fe)]['UUID'])return _0x37683d;let _0x44d161=(await this[_0x598a1d(0x1d0)][_0x598a1d(0x2eb)](this['_getSignURL']()[_0x598a1d(0x3b0)](_0x598a1d(0x2e9),_0x37683d)))[_0x598a1d(0x450)];if(_0x44d161[_0x598a1d(0x1b5)]&&_0x44d161[_0x598a1d(0x1b5)][_0x598a1d(0x3f6)]!==_0x349630[_0x598a1d(0x328)]['OK'])throw _0x44d161[_0x598a1d(0x1b5)];if(!_0x44d161[_0x598a1d(0x424)])throw Error(_0x598a1d(0x253));return(0x0,_0x4b2515[_0x598a1d(0x302)])(_0x44d161[_0x598a1d(0x424)],this['_getDownloadEndpointURL']());}async[_0x9884d2(0x1dd)](_0x1351ab){const _0x22b842=_0x9884d2;let _0xa30f0e=this[_0x22b842(0x118)][_0x22b842(0x340)](),_0x9fe994=_0xa30f0e==null?void 0x0:_0xa30f0e[_0x22b842(0x413)]();if(!_0x9fe994)throw Error(_0x22b842(0x33f));let _0x147d83=new FormData();_0x147d83['append'](_0x22b842(0x23e),_0x1351ab);let _0xab3e31=this['_getUploadFileURL']()+_0x22b842(0x295)+_0x1351ab[_0x22b842(0x442)][_0x22b842(0x353)]()+'&source='+_0x349630[_0x22b842(0x3a6)][_0x22b842(0x14c)]+'&assign='+encodeURIComponent(_0x9fe994),_0x4619ad=(await this['_httpService'][_0x22b842(0x31b)](_0xab3e31,{'body':_0x147d83}))[_0x22b842(0x450)][_0x22b842(0x414)];if(typeof _0x4619ad!='string'||!_0x4619ad)throw Error(_0x22b842(0x22f));return _0x4619ad;}[_0x9884d2(0x264)](){const _0x32a014=_0x9884d2;return this[_0x32a014(0x13e)]()[_0x32a014(0x431)]??_0x32a014(0x42f);}[_0x9884d2(0x322)](){const _0x4642ad=_0x9884d2;return this['_getConfig']()[_0x4642ad(0x218)]??'/universer-api/file/{fileID}/sign-url';}[_0x9884d2(0x337)](){const _0x3f188c=_0x9884d2;let _0x2edee1=this[_0x3f188c(0x13e)]();return _0x2edee1[_0x3f188c(0x47d)]?_0x2edee1[_0x3f188c(0x47d)]:typeof location<'u'?location[_0x3f188c(0x142)]:_0x2edee1[_0x3f188c(0x431)]??'';}['_getConfig'](){const _0x5a5ef5=_0x9884d2;return this[_0x5a5ef5(0x3c6)][_0x5a5ef5(0x32f)](_0x5a5ef5(0x3c1))??{};}};_0x5b1674=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0x5b1674);function _0x1b7456(_0x3f2a01,_0x3bef62){const _0x2b73d8=_0x9884d2;var _0x4ef5f5;if(_0x3bef62[_0x2b73d8(0x3e5)]!=null&&_0x3f2a01[_0x2b73d8(0x442)]>_0x3bef62[_0x2b73d8(0x3e5)])throw Error(_0x2b73d8(0x15a));if((_0x4ef5f5=_0x3bef62[_0x2b73d8(0x40c)])!=null&&_0x4ef5f5[_0x2b73d8(0x147)]&&!_0x3bef62[_0x2b73d8(0x40c)][_0x2b73d8(0x3e3)](_0x2d41ff=>_0x3f2a01[_0x2b73d8(0x415)]===_0x2d41ff||_0x3f2a01[_0x2b73d8(0x114)]['endsWith'](_0x2d41ff)||_0x2d41ff[_0x2b73d8(0x2a5)]('/*')&&_0x3f2a01[_0x2b73d8(0x415)][_0x2b73d8(0x12b)](_0x2d41ff[_0x2b73d8(0x3d6)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x324e1c=class{constructor(_0x44fa07,_0x436277,_0x31fcde){const _0x38d7e8=_0x9884d2;this['_configService']=_0x44fa07,this[_0x38d7e8(0x1d0)]=_0x436277,this['localeService']=_0x31fcde,this[_0x38d7e8(0x2ce)]();}[_0x9884d2(0x2ce)](){const _0x4fae09=_0x9884d2;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3c41e3,_0x35b35f)=>_0x35b35f(_0x3c41e3)['pipe']((0x0,_0xccd21e[_0x4fae09(0x1ef)])(async _0x2d4706=>{const _0x229e33=_0x4fae09;let _0x2ce203=_0x2d4706;if(_0x2ce203[_0x229e33(0x45f)]===0x191){if(typeof window>'u')throw Error(_0x229e33(0x41a));if(window[_0x229e33(0x27d)](this['localeService']['t'](_0x229e33(0x1eb)))){let _0x37c0ff=window['encodeURIComponent'](window[_0x229e33(0x2b2)]['href']);window[_0x229e33(0x2b2)]['href']=this[_0x229e33(0x315)]()+'?url='+_0x37c0ff;}}return _0x2ce203;}))});}[_0x9884d2(0x315)](){const _0x1122b6=_0x9884d2;let _0x16d12b=this[_0x1122b6(0x3c6)][_0x1122b6(0x32f)](_0x3c0330);return(_0x16d12b==null?void 0x0:_0x16d12b[_0x1122b6(0x45c)])??'/universer-api/oidc/authpage';}};_0x324e1c=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)]))],_0x324e1c);let _0x15f3fe=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x18c2f4,_0x3c12ae){const _0x1d893a=_0x9884d2;super(),this['_HTTPService']=_0x18c2f4,this['_configService']=_0x3c12ae,_0x60128a(this,_0x1d893a(0x3d9),!0x1),this[_0x1d893a(0x3a7)]();}[_0x9884d2(0x3a7)](){const _0x387c52=_0x9884d2;let _0x43e5b2=this;this[_0x387c52(0x472)](this[_0x387c52(0x480)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x530da8[_0x387c52(0x2ac)])({'isMatch'(_0x35845e){const _0x2a4838=_0x387c52;var _0x580e8b;if(_0x35845e[_0x2a4838(0x449)]===_0x2a4838(0x2c8)&&(_0x580e8b=_0x35845e[_0x2a4838(0x138)])!=null&&_0x580e8b[_0x2a4838(0x450)]){let {objectID:_0x59a132,objectType:_0x4fbdf1}=_0x35845e['requestParams'][_0x2a4838(0x450)]||{};if(!_0x59a132||_0x4fbdf1===void 0x0)return!0x1;let _0x3c1823=_0x43e5b2['_getAPIPrefixPath']()+'/'+_0x4fbdf1+_0x2a4838(0x2a1)+encodeURIComponent(_0x59a132)+_0x2a4838(0x17b);if(_0x35845e['url']===_0x3c1823)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x530550){const _0x75e5df=_0x387c52;var _0x6bb710;return(_0x6bb710=_0x530550[_0x75e5df(0x138)])==null?void 0x0:_0x6bb710[_0x75e5df(0x450)];},'mergeParamsToRequest'(_0x552eb4,_0x4b2f65){const _0x35eb09=_0x387c52;let _0x2214f0=_0x43e5b2[_0x35eb09(0x133)]()+_0x35eb09(0x183),_0x261b38=_0x552eb4['reduce']((_0x53eb4b,_0x410e19)=>{const _0x115f25=_0x35eb09;let {unitID:_0x70140e,objectID:_0xd6b2c7,objectType:_0x288cfe,actions:_0x3bf78e}=_0x410e19;return _0x53eb4b[_0x70140e]||(_0x53eb4b[_0x70140e]=Object[_0x115f25(0x173)](null)),_0x53eb4b[_0x70140e][_0xd6b2c7]||(_0x53eb4b[_0x70140e][_0xd6b2c7]={'objectID':_0xd6b2c7,'objectType':_0x288cfe,'actions':[]}),_0x53eb4b[_0x70140e][_0xd6b2c7][_0x115f25(0x37a)][_0x115f25(0x42c)](..._0x3bf78e),_0x53eb4b;},Object[_0x35eb09(0x173)](null)),_0x4b07ac=[];for(let _0x94ea31 in _0x261b38)for(let _0x12490f in _0x261b38[_0x94ea31]){let {actions:_0xd732bd,objectType:_0x48eac6}=_0x261b38[_0x94ea31][_0x12490f],_0x45e2f2=[...new Set(_0xd732bd)];_0x4b07ac['push']({'unitID':_0x94ea31,'objectID':_0x12490f,'objectType':_0x48eac6,'actions':_0x45e2f2});}return new _0x530da8['HTTPRequest'](_0x35eb09(0x2c8),_0x2214f0,{'headers':_0x4b2f65[_0x35eb09(0x112)],'withCredentials':_0x4b2f65['withCredentials'],'responseType':_0x4b2f65['responseType'],'body':{'requests':_0x4b07ac}});}},{'distributeResult'(_0x240549,_0x5874b4){let {objectActions:_0x3121b7}=_0x240549;return _0x5874b4['map'](_0x54c3b3=>{const _0x5c1274=_0x328a;let {unitID:_0x10dafb,objectID:_0x5f17ce,actions:_0x2ef637}=_0x54c3b3,_0x5a233c=_0x3121b7[_0x5c1274(0x34a)](_0x1cec5b=>_0x1cec5b[_0x5c1274(0x258)]===_0x10dafb&&_0x1cec5b['objectID']===_0x5f17ce);return{'config':_0x54c3b3,'result':{'actions':_0x2ef637['map'](_0x20042e=>_0x5a233c==null?void 0x0:_0x5a233c[_0x5c1274(0x37a)][_0x5c1274(0x34a)](_0x2587c6=>_0x2587c6['action']===_0x20042e))['filter'](_0x25f8d6=>!!_0x25f8d6),'error':_0x240549['error']}};});}})}));}[_0x9884d2(0x133)](){const _0x4783cc=_0x9884d2;let _0x6049e0=this[_0x4783cc(0x3c6)][_0x4783cc(0x32f)](_0x3c0330);return(_0x6049e0==null?void 0x0:_0x6049e0[_0x4783cc(0x2d7)])??'/universer-api/authz';}async['create'](_0x3bc20f){const _0x529388=_0x9884d2;let _0x166965=this['_getAPIPrefixPath']()+'/'+_0x3bc20f[_0x529388(0x46b)]+_0x529388(0x2dd);return(await this[_0x529388(0x480)][_0x529388(0x31b)](_0x166965,{'body':_0x3bc20f}))['body'][_0x529388(0x475)]||'';}async[_0x9884d2(0x240)](_0x258047){const _0x25f78c=_0x9884d2;let _0x28d150=this[_0x25f78c(0x133)]()+_0x25f78c(0x2cb);return(await this[_0x25f78c(0x480)]['post'](_0x28d150,{'body':_0x258047}))[_0x25f78c(0x450)]['objects'];}async[_0x9884d2(0x3fa)](_0xb88fa5){const _0x580ed2=_0x9884d2;var _0x3ecdf5;let _0x5c3d51=this[_0x580ed2(0x133)]()+'/'+_0xb88fa5['objectType']+_0x580ed2(0x2a1)+encodeURIComponent(_0xb88fa5['objectID']),_0x4c87a1=await this[_0x580ed2(0x480)][_0x580ed2(0x26b)](_0x5c3d51,{'body':_0xb88fa5});if((_0x4c87a1==null||(_0x3ecdf5=_0x4c87a1[_0x580ed2(0x450)])==null||(_0x3ecdf5=_0x3ecdf5[_0x580ed2(0x1b5)])==null?void 0x0:_0x3ecdf5[_0x580ed2(0x3f6)])!==0x1)throw Error(_0x580ed2(0x140));}async['allowed'](_0x365764){const _0x901640=_0x9884d2;let _0x27a3a3=this[_0x901640(0x133)]()+'/'+_0x365764[_0x901640(0x46b)]+_0x901640(0x2a1)+encodeURIComponent(_0x365764['objectID'])+_0x901640(0x17b);return(await this[_0x901640(0x480)][_0x901640(0x31b)](_0x27a3a3,{'body':_0x365764}))[_0x901640(0x450)][_0x901640(0x37a)];}async['batchAllowed'](_0x1744fa){const _0x58ee39=_0x9884d2;let _0x3720d9=this['_getAPIPrefixPath']()+_0x58ee39(0x183);return(await this[_0x58ee39(0x480)]['post'](_0x3720d9,{'body':{'requests':_0x1744fa}}))[_0x58ee39(0x450)][_0x58ee39(0x152)];}async['listRoles'](_0x5ce200){const _0x1d521e=_0x9884d2;let _0x1adbaf=this[_0x1d521e(0x133)]()+'/'+_0x5ce200['objectType']+_0x1d521e(0x438),_0x1c5c94=await this[_0x1d521e(0x480)][_0x1d521e(0x31b)](_0x1adbaf,{'body':_0x5ce200});return{'roles':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x242)],'actions':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x37a)]};}async[_0x9884d2(0x466)](_0x43ca4a){const _0xb2cac9=_0x9884d2;let _0x44fb18=this['_getAPIPrefixPath']()+_0xb2cac9(0x275);await this['_HTTPService'][_0xb2cac9(0x287)](_0x44fb18,{'params':{'collaboratorID':_0x43ca4a[_0xb2cac9(0x394)],'objectID':_0x43ca4a[_0xb2cac9(0x475)],'unitID':_0x43ca4a['unitID']}});}async[_0x9884d2(0x126)](_0x2c7165){const _0x3fab53=_0x9884d2;let _0x3312e9=this['_getAPIPrefixPath']()+_0x3fab53(0x275);await this[_0x3fab53(0x480)]['patch'](_0x3312e9,{'body':_0x2c7165});}async[_0x9884d2(0x256)](_0xcc2c87){const _0x39dae5=_0x9884d2;let _0x406b55=this[_0x39dae5(0x133)]()+_0x39dae5(0x275);await this[_0x39dae5(0x480)][_0x39dae5(0x31b)](_0x406b55,{'body':_0xcc2c87});}async[_0x9884d2(0x38c)](_0x41942b){const _0x47ce56=_0x9884d2;let _0x544439=this[_0x47ce56(0x133)]()+_0x47ce56(0x275),_0x5f138a=await this['_HTTPService'][_0x47ce56(0x2eb)](_0x544439,{'params':{'objectID':_0x41942b[_0x47ce56(0x475)],'unitID':_0x41942b[_0x47ce56(0x258)]}});return this[_0x47ce56(0x245)](_0x5f138a[_0x47ce56(0x450)]['cfgEnableObjInherit']??!0x1),_0x5f138a[_0x47ce56(0x450)][_0x47ce56(0x3ff)];}async[_0x9884d2(0x2b4)](_0x260fcd){const _0x32f597=_0x9884d2;let _0x51d5d8=this[_0x32f597(0x133)]()+'/collaborator';await this[_0x32f597(0x480)][_0x32f597(0x26b)](_0x51d5d8,{'body':_0x260fcd});}[_0x9884d2(0x245)](_0x29e572){this['_cfgEnableObjInherit']=_0x29e572;}['getCfgEnableObjInherit'](){const _0x33815e=_0x9884d2;return this[_0x33815e(0x3d9)];}};_0x15f3fe=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IConfigService']))],_0x15f3fe);function _0x384d25(_0x527497){const _0x5630ff=_0x9884d2;return _0x527497 instanceof Uint8Array||ArrayBuffer['isView'](_0x527497)&&_0x527497[_0x5630ff(0x11a)][_0x5630ff(0x114)]===_0x5630ff(0x487)&&_0x5630ff(0x1ae)in _0x527497&&_0x527497['BYTES_PER_ELEMENT']===0x1;}let _0x5b4ae0=_0x22d729=>_0x22d729?'\x22'+_0x22d729+'\x22\x20':'';function _0x4fb7a8(_0x527d9,_0x8c229c=''){const _0x2e7b1d=_0x9884d2;if(typeof _0x527d9!=_0x2e7b1d(0x266))throw TypeError(_0x5b4ae0(_0x8c229c)+'expected\x20number,\x20got\x20'+typeof _0x527d9);if(!Number[_0x2e7b1d(0x131)](_0x527d9)||_0x527d9<0x0)throw RangeError(_0x5b4ae0(_0x8c229c)+_0x2e7b1d(0x14b)+_0x527d9);return _0x527d9;}function _0x5022ca(_0x1e12f7,_0x3e8cb1,_0x5da82f=''){const _0x31b033=_0x9884d2;if(_0x384d25(_0x1e12f7)&&(_0x3e8cb1===void 0x0||_0x1e12f7[_0x31b033(0x147)]===_0x3e8cb1))return _0x1e12f7;_0x3e8cb1!==void 0x0&&_0x4fb7a8(_0x3e8cb1,_0x31b033(0x147));let _0x121841=_0x384d25(_0x1e12f7),_0xdd3c9f=_0x3e8cb1===void 0x0?'':_0x31b033(0x123)+_0x3e8cb1,_0x4df749=_0x121841?'length='+_0x1e12f7[_0x31b033(0x147)]:_0x31b033(0x332)+typeof _0x1e12f7,_0x479d2c=_0x5b4ae0(_0x5da82f)+_0x31b033(0x381)+_0xdd3c9f+_0x31b033(0x31d)+_0x4df749;throw _0x121841?RangeError(_0x479d2c):TypeError(_0x479d2c);}function _0x199311(_0x5cdce4){const _0x1d6bc3=_0x9884d2;return new Uint32Array(_0x5cdce4[_0x1d6bc3(0x2ab)],_0x5cdce4[_0x1d6bc3(0x28c)],Math[_0x1d6bc3(0x2bd)](_0x5cdce4[_0x1d6bc3(0x37f)]/0x4));}function _0x57dbaa(..._0x3f21e7){const _0x348d63=_0x9884d2;for(let _0xe31dc9=0x0;_0xe31dc9<_0x3f21e7[_0x348d63(0x147)];_0xe31dc9++)_0x3f21e7[_0xe31dc9][_0x348d63(0x249)](0x0);}let _0x129fb4=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2d4194(_0x5a9acc){return _0x5a9acc<<0x18&0xff000000|_0x5a9acc<<0x8&0xff0000|_0x5a9acc>>>0x8&0xff00|_0x5a9acc>>>0x18&0xff;}function _0x4dbcec(_0x2dade7){const _0x34df53=_0x9884d2;for(let _0x2f50be=0x0;_0x2f50be<_0x2dade7[_0x34df53(0x147)];_0x2f50be++)_0x2dade7[_0x2f50be]=_0x2d4194(_0x2dade7[_0x2f50be]);return _0x2dade7;}let _0x5f5a67=_0x129fb4?_0x52086a=>_0x52086a:_0x4dbcec;function _0x37b28a(_0x3e0585){const _0x5da1be=_0x9884d2;if(typeof _0x3e0585!=_0x5da1be(0x212))throw TypeError(_0x5da1be(0x168));return new Uint8Array(new TextEncoder()['encode'](_0x3e0585));}function _0x2e1fb6(_0x8ba964,_0xa1e50f){const _0x2f6a45=_0x9884d2;return!_0x8ba964['byteLength']||!_0xa1e50f['byteLength']?!0x1:_0x8ba964[_0x2f6a45(0x2ab)]===_0xa1e50f[_0x2f6a45(0x2ab)]&&_0x8ba964[_0x2f6a45(0x28c)]<_0xa1e50f[_0x2f6a45(0x28c)]+_0xa1e50f[_0x2f6a45(0x37f)]&&_0xa1e50f['byteOffset']<_0x8ba964[_0x2f6a45(0x28c)]+_0x8ba964['byteLength'];}function _0x3920fa(_0x58f3b4,_0x991d25){const _0x28af28=_0x9884d2;if(_0x2e1fb6(_0x58f3b4,_0x991d25)&&_0x58f3b4[_0x28af28(0x28c)]<_0x991d25[_0x28af28(0x28c)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x10db65(..._0x3f9026){const _0x3f578c=_0x9884d2;let _0x2be5f8=0x0;for(let _0x53f88f=0x0;_0x53f88f<_0x3f9026[_0x3f578c(0x147)];_0x53f88f++){let _0x3d3122=_0x3f9026[_0x53f88f];_0x5022ca(_0x3d3122),_0x2be5f8+=_0x3d3122[_0x3f578c(0x147)];}let _0x118bd3=new Uint8Array(_0x2be5f8);for(let _0x32075f=0x0,_0x3d22bd=0x0;_0x32075f<_0x3f9026[_0x3f578c(0x147)];_0x32075f++){let _0x4ec53e=_0x3f9026[_0x32075f];_0x118bd3[_0x3f578c(0x41e)](_0x4ec53e,_0x3d22bd),_0x3d22bd+=_0x4ec53e[_0x3f578c(0x147)];}return _0x118bd3;}let _0x22a48f=(_0x4d17ad,_0x5a89e8)=>{const _0x204b69=_0x9884d2;function _0x4788e5(_0x46e618,..._0x1a76df){const _0x3db422=_0x328a;if(_0x5022ca(_0x46e618,void 0x0,_0x3db422(0x365)),_0x4d17ad[_0x3db422(0x335)]!==void 0x0){let _0x5d91c9=_0x1a76df[0x0];_0x5022ca(_0x5d91c9,_0x4d17ad[_0x3db422(0x1c2)]?void 0x0:_0x4d17ad[_0x3db422(0x335)],_0x3db422(0x15b));}let _0x4d6db7=_0x4d17ad[_0x3db422(0x221)],_0x45a823=_0x4d17ad[_0x3db422(0x335)]===void 0x0?0x0:0x1;if(!_0x4d17ad['withAAD']){for(let _0x5058c3=_0x45a823;_0x5058c3<_0x1a76df[_0x3db422(0x147)];_0x5058c3++)if(_0x384d25(_0x1a76df[_0x5058c3]))throw Error(_0x3db422(0x284));}_0x4d17ad[_0x3db422(0x20d)]&&_0x1a76df[_0x45a823]!==void 0x0&&_0x5022ca(_0x1a76df[_0x45a823],void 0x0,'AAD');let _0x44bb78=_0x5a89e8(_0x46e618,..._0x1a76df),_0x35faa0=(_0x39fd85,_0x1560ec)=>{const _0x504c2a=_0x3db422;if(_0x1560ec!==void 0x0){if(_0x39fd85!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x5022ca(_0x1560ec,void 0x0,_0x504c2a(0x1ed));}},_0x7bfdf=!0x1;return{'encrypt'(_0x33b7a9,_0x398b10){const _0x1ac072=_0x3db422;if(_0x7bfdf)throw Error(_0x1ac072(0x2ad));return _0x7bfdf=!0x0,_0x5022ca(_0x33b7a9,void 0x0,'data'),_0x35faa0(_0x44bb78[_0x1ac072(0x391)][_0x1ac072(0x147)],_0x398b10),_0x44bb78[_0x1ac072(0x391)](_0x33b7a9,_0x398b10);},'decrypt'(_0x2482d0,_0x1260d3){const _0x3f9fe5=_0x3db422;if(_0x5022ca(_0x2482d0,void 0x0,_0x3f9fe5(0x1b4)),_0x4d6db7&&_0x2482d0[_0x3f9fe5(0x147)]<_0x4d6db7)throw Error(_0x3f9fe5(0x319)+_0x4d6db7);return _0x35faa0(_0x44bb78[_0x3f9fe5(0x205)]['length'],_0x1260d3),_0x44bb78[_0x3f9fe5(0x205)](_0x2482d0,_0x1260d3);}};}return Object[_0x204b69(0x276)](_0x4788e5,_0x4d17ad),_0x4788e5;};function _0x10294a(_0x6d8277,_0x387d3d,_0x2dbadb=!0x0){const _0x232224=_0x9884d2;if(_0x387d3d===void 0x0)return new Uint8Array(_0x6d8277);if(_0x5022ca(_0x387d3d,_0x6d8277,'output'),_0x2dbadb&&!_0x50253f(_0x387d3d))throw Error(_0x232224(0x227));return _0x387d3d;}function _0x50253f(_0x4dd8cd){const _0x30829b=_0x9884d2;return _0x4dd8cd[_0x30829b(0x28c)]%0x4==0x0;}function _0x2cad28(_0x4b05ad){return Uint8Array['from'](_0x5022ca(_0x4b05ad));}function _0x49b1fc(_0xd25560=0x20){const _0x529d98=_0x9884d2;_0x4fb7a8(_0xd25560,'bytesLength');let _0x4ea7e0=typeof globalThis==_0x529d98(0x26e)?globalThis[_0x529d98(0x3ae)]:null;if(typeof(_0x4ea7e0==null?void 0x0:_0x4ea7e0[_0x529d98(0x1c8)])!=_0x529d98(0x474))throw Error(_0x529d98(0x407));if(_0xd25560>0x10000)throw RangeError(_0x529d98(0x19e)+_0xd25560);return _0x4ea7e0[_0x529d98(0x1c8)](new Uint8Array(_0xd25560));}function _0x3b137f(_0x319d71){const _0x3569a7=_0x9884d2;if(![0x10,0x18,0x20]['includes'](_0x319d71[_0x3569a7(0x147)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x319d71[_0x3569a7(0x147)]);}function _0x28c7a1(_0x3ac7e4){return _0x3ac7e4<<0x1^0x11b&-(_0x3ac7e4>>0x7);}function _0x406fc2(_0x463f6b,_0x5bc642){let _0x2449c8=0x0;for(;_0x5bc642>0x0;_0x5bc642>>=0x1)_0x2449c8^=_0x463f6b&-(_0x5bc642&0x1),_0x463f6b=_0x28c7a1(_0x463f6b);return _0x2449c8;}let _0xf00a23=((()=>{let _0x18cf91=new Uint8Array(0x100);for(let _0x5965f8=0x0,_0x1bf7b6=0x1;_0x5965f8<0x100;_0x5965f8++,_0x1bf7b6^=_0x28c7a1(_0x1bf7b6))_0x18cf91[_0x5965f8]=_0x1bf7b6;let _0x96eaa4=new Uint8Array(0x100);_0x96eaa4[0x0]=0x63;for(let _0x3a8287=0x0;_0x3a8287<0xff;_0x3a8287++){let _0x505896=_0x18cf91[0xff-_0x3a8287];_0x505896|=_0x505896<<0x8,_0x96eaa4[_0x18cf91[_0x3a8287]]=(_0x505896^_0x505896>>0x4^_0x505896>>0x5^_0x505896>>0x6^_0x505896>>0x7^0x63)&0xff;}return _0x57dbaa(_0x18cf91),_0x96eaa4;})()),_0x2984fc=_0xf00a23[_0x9884d2(0x333)]((_0x389279,_0x59f16f)=>_0xf00a23[_0x9884d2(0x172)](_0x59f16f)),_0x2047a0=_0x3848d0=>_0x3848d0<<0x18|_0x3848d0>>>0x8,_0x5f4f0e=_0x1790ea=>_0x1790ea<<0x8|_0x1790ea>>>0x18;function _0x1a4579(_0x1a1949,_0x5486f0){const _0x4e0f68=_0x9884d2;if(_0x1a1949[_0x4e0f68(0x147)]!==0x100)throw Error(_0x4e0f68(0x368));let _0x2dc52a=new Uint32Array(0x100)[_0x4e0f68(0x333)]((_0x3f8c9a,_0x537f1b)=>_0x5486f0(_0x1a1949[_0x537f1b])),_0x487d14=_0x2dc52a['map'](_0x5f4f0e),_0x562ffd=_0x487d14[_0x4e0f68(0x333)](_0x5f4f0e),_0x17dfd6=_0x562ffd['map'](_0x5f4f0e),_0x396ac6=new Uint32Array(0x10000),_0x16227a=new Uint32Array(0x10000),_0x489ba9=new Uint16Array(0x10000);for(let _0x1f9126=0x0;_0x1f9126<0x100;_0x1f9126++)for(let _0x116141=0x0;_0x116141<0x100;_0x116141++){let _0x95d21a=_0x1f9126*0x100+_0x116141;_0x396ac6[_0x95d21a]=_0x2dc52a[_0x1f9126]^_0x487d14[_0x116141],_0x16227a[_0x95d21a]=_0x562ffd[_0x1f9126]^_0x17dfd6[_0x116141],_0x489ba9[_0x95d21a]=_0x1a1949[_0x1f9126]<<0x8|_0x1a1949[_0x116141];}return{'sbox':_0x1a1949,'sbox2':_0x489ba9,'T0':_0x2dc52a,'T1':_0x487d14,'T2':_0x562ffd,'T3':_0x17dfd6,'T01':_0x396ac6,'T23':_0x16227a};}let _0xd1fae5=_0x1a4579(_0xf00a23,_0x37cdd4=>_0x406fc2(_0x37cdd4,0x3)<<0x18|_0x37cdd4<<0x10|_0x37cdd4<<0x8|_0x406fc2(_0x37cdd4,0x2)),_0x38ea3f=_0x1a4579(_0x2984fc,_0x35dd7e=>_0x406fc2(_0x35dd7e,0xb)<<0x18|_0x406fc2(_0x35dd7e,0xd)<<0x10|_0x406fc2(_0x35dd7e,0x9)<<0x8|_0x406fc2(_0x35dd7e,0xe)),_0x123c1d=((()=>{let _0xc39ceb=new Uint8Array(0x10);for(let _0x38c0da=0x0,_0x51f38f=0x1;_0x38c0da<0x10;_0x38c0da++,_0x51f38f=_0x28c7a1(_0x51f38f))_0xc39ceb[_0x38c0da]=_0x51f38f;return _0xc39ceb;})());function _0x4362e7(_0x565fb5){const _0x4f3c96=_0x9884d2;_0x5022ca(_0x565fb5);let _0x4c8b29=_0x565fb5['length'];_0x3b137f(_0x565fb5);let {sbox2:_0x7ae62}=_0xd1fae5,_0x15010a=[];(!_0x129fb4||!_0x50253f(_0x565fb5))&&_0x15010a[_0x4f3c96(0x42c)](_0x565fb5=_0x2cad28(_0x565fb5));let _0x2bccd9=_0x5f5a67(_0x199311(_0x565fb5)),_0x4ced2=_0x2bccd9['length'],_0x1d35c4=_0x7de057=>_0x4e69e5(_0x7ae62,_0x7de057,_0x7de057,_0x7de057,_0x7de057),_0x1e9602=new Uint32Array(_0x4c8b29+0x1c);_0x1e9602[_0x4f3c96(0x41e)](_0x2bccd9);for(let _0x27cd9f=_0x4ced2;_0x27cd9f<_0x1e9602[_0x4f3c96(0x147)];_0x27cd9f++){let _0x208e86=_0x1e9602[_0x27cd9f-0x1];_0x27cd9f%_0x4ced2===0x0?_0x208e86=_0x1d35c4(_0x2047a0(_0x208e86))^_0x123c1d[_0x27cd9f/_0x4ced2-0x1]:_0x4ced2>0x6&&_0x27cd9f%_0x4ced2===0x4&&(_0x208e86=_0x1d35c4(_0x208e86)),_0x1e9602[_0x27cd9f]=_0x1e9602[_0x27cd9f-_0x4ced2]^_0x208e86;}return _0x57dbaa(..._0x15010a),_0x1e9602;}function _0x1f98ed(_0x5efc76){let _0x352827=_0x4362e7(_0x5efc76),_0x417a56=_0x352827['slice'](),_0x5b7ddb=_0x352827['length'],{sbox2:_0x5ae301}=_0xd1fae5,{T0:_0x3a6ebd,T1:_0x26d5b9,T2:_0x1d85b4,T3:_0x4483df}=_0x38ea3f;for(let _0x2068f3=0x0;_0x2068f3<_0x5b7ddb;_0x2068f3+=0x4)for(let _0x452e31=0x0;_0x452e31<0x4;_0x452e31++)_0x417a56[_0x2068f3+_0x452e31]=_0x352827[_0x5b7ddb-_0x2068f3-0x4+_0x452e31];_0x57dbaa(_0x352827);for(let _0x13543f=0x4;_0x13543f<_0x5b7ddb-0x4;_0x13543f++){let _0x6d214c=_0x417a56[_0x13543f],_0x2d8517=_0x4e69e5(_0x5ae301,_0x6d214c,_0x6d214c,_0x6d214c,_0x6d214c);_0x417a56[_0x13543f]=_0x3a6ebd[_0x2d8517&0xff]^_0x26d5b9[_0x2d8517>>>0x8&0xff]^_0x1d85b4[_0x2d8517>>>0x10&0xff]^_0x4483df[_0x2d8517>>>0x18];}return _0x417a56;}function _0x4d7535(_0x7a615a,_0x55cafd,_0x1f1e73,_0x3fb21b,_0x4b917c,_0x592921){return _0x7a615a[_0x1f1e73<<0x8&0xff00|_0x3fb21b>>>0x8&0xff]^_0x55cafd[_0x4b917c>>>0x8&0xff00|_0x592921>>>0x18&0xff];}function _0x4e69e5(_0x4bd7cb,_0x586108,_0x4f743f,_0x2cce92,_0x151f3f){return _0x4bd7cb[_0x586108&0xff|_0x4f743f&0xff00]|_0x4bd7cb[_0x2cce92>>>0x10&0xff|_0x151f3f>>>0x10&0xff00]<<0x10;}function _0x51944f(_0x37b714,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671){const _0x2079a2=_0x9884d2;let {sbox2:_0x5888b1,T01:_0x336c48,T23:_0x3e6256}=_0xd1fae5,_0x13e475=0x0;_0xc530b1^=_0x37b714[_0x13e475++],_0x158fdc^=_0x37b714[_0x13e475++],_0xaf1e79^=_0x37b714[_0x13e475++],_0x4a9671^=_0x37b714[_0x13e475++];let _0x9fb9ea=_0x37b714[_0x2079a2(0x147)]/0x4-0x2;for(let _0x4f6c2a=0x0;_0x4f6c2a<_0x9fb9ea;_0x4f6c2a++){let _0x185aff=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),_0x4604c4=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),_0x891d18=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),_0x103678=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79);_0xc530b1=_0x185aff,_0x158fdc=_0x4604c4,_0xaf1e79=_0x891d18,_0x4a9671=_0x103678;}return{'s0':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),'s1':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),'s2':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),'s3':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79)};}function _0x491d38(_0x1dbdbb,_0x2d15b8,_0x539442,_0x427711,_0x500a10){const _0x4e00cf=_0x9884d2;let {sbox2:_0x47de4e,T01:_0x391c1d,T23:_0x4de135}=_0x38ea3f,_0x5a21fc=0x0;_0x2d15b8^=_0x1dbdbb[_0x5a21fc++],_0x539442^=_0x1dbdbb[_0x5a21fc++],_0x427711^=_0x1dbdbb[_0x5a21fc++],_0x500a10^=_0x1dbdbb[_0x5a21fc++];let _0x1bc109=_0x1dbdbb[_0x4e00cf(0x147)]/0x4-0x2;for(let _0x456665=0x0;_0x456665<_0x1bc109;_0x456665++){let _0x4ebcd8=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x2d15b8,_0x500a10,_0x427711,_0x539442),_0x48b991=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x539442,_0x2d15b8,_0x500a10,_0x427711),_0x45d548=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x427711,_0x539442,_0x2d15b8,_0x500a10),_0x51a9a6=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x500a10,_0x427711,_0x539442,_0x2d15b8);_0x2d15b8=_0x4ebcd8,_0x539442=_0x48b991,_0x427711=_0x45d548,_0x500a10=_0x51a9a6;}return{'s0':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x2d15b8,_0x500a10,_0x427711,_0x539442),'s1':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x539442,_0x2d15b8,_0x500a10,_0x427711),'s2':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x427711,_0x539442,_0x2d15b8,_0x500a10),'s3':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x500a10,_0x427711,_0x539442,_0x2d15b8)};}function _0x2f8f97(_0x29b2e1,_0x206e6c){const _0x1e551b=_0x9884d2;if(_0x5022ca(_0x29b2e1),_0x29b2e1['length']%0x10!=0x0)throw Error(_0x1e551b(0x385));_0x206e6c!==void 0x0&&(_0x10294a(_0x29b2e1[_0x1e551b(0x147)],_0x206e6c),_0x3920fa(_0x29b2e1,_0x206e6c));}function _0x1b8a16(_0x26bf17,_0x8ed2c,_0x444115){const _0x364610=_0x9884d2;_0x5022ca(_0x26bf17);let _0x500e90=_0x26bf17[_0x364610(0x147)],_0x15f519=_0x500e90%0x10;if(!_0x8ed2c&&_0x15f519!==0x0)throw Error(_0x364610(0x1e8));if(_0x8ed2c){let _0x106079=0x10-_0x15f519;_0x106079||=0x10,_0x500e90+=_0x106079;}return _0x444115!==void 0x0&&(_0x10294a(_0x500e90,_0x444115),_0x3920fa(_0x26bf17,_0x444115)),_0x500e90;}function _0x2d8cc4(_0x37faaa,_0x2a3208,_0x32841e){_0x32841e===void 0x0&&(_0x32841e=new Uint8Array(_0x2a3208)),(!_0x129fb4||!_0x50253f(_0x37faaa))&&(_0x37faaa=_0x2cad28(_0x37faaa));let _0x2a637b=_0x199311(_0x32841e);return{'b':_0x37faaa,'o':_0x2a637b,'out':_0x32841e};}function _0x1886b6(_0x5a11ce,_0x452e43){const _0x846b2a=_0x9884d2;if(!_0x452e43)return _0x5a11ce;let _0x4a081f=_0x5a11ce[_0x846b2a(0x147)];if(_0x4a081f===0x0)throw Error(_0x846b2a(0x2c6));let _0x2c01b3=_0x5a11ce[_0x4a081f-0x1],_0x4fe5fc=0x1;_0x4fe5fc&=_0x2c01b3-0x1>>>0x1f^0x1,_0x4fe5fc&=0x10-_0x2c01b3>>>0x1f^0x1;for(let _0x883c31=0x0;_0x883c31<0x10;_0x883c31++){let _0x1dbd53=_0x883c31-_0x2c01b3>>>0x1f,_0x5bc462=+((_0x5a11ce[_0x4a081f-0x1-_0x883c31]^_0x2c01b3)===0x0);_0x4fe5fc&=_0x5bc462|_0x1dbd53^0x1;}if(!_0x4fe5fc)throw Error(_0x846b2a(0x372));return _0x5a11ce[_0x846b2a(0x2af)](0x0,_0x4a081f-_0x2c01b3);}function _0x31d810(_0x49258c){const _0x18be91=_0x9884d2;let _0x34b36b=new Uint8Array(0x10),_0x28ed17=_0x199311(_0x34b36b);_0x34b36b[_0x18be91(0x41e)](_0x49258c);let _0x586cea=0x10-_0x49258c['length'];for(let _0x1cbb4e=0x10-_0x586cea;_0x1cbb4e<0x10;_0x1cbb4e++)_0x34b36b[_0x1cbb4e]=_0x586cea;return _0x28ed17;}let _0x3222fd=_0x22a48f({'blockSize':0x10,'nonceLength':0x10},function(_0x30bf1a,_0x4a66e9,_0x3d41c6={}){const _0x3a8a1d=_0x9884d2;let _0x279fd8=!_0x3d41c6[_0x3a8a1d(0x257)];return{'encrypt'(_0x51c26b,_0xd406c8){const _0x1915cb=_0x3a8a1d;let _0x48b13d=_0x1b8a16(_0x51c26b,_0x279fd8,_0xd406c8),_0x37a532=_0x4362e7(_0x30bf1a),{b:_0x11790b,o:_0x5a64a0,out:_0x102252}=_0x2d8cc4(_0x51c26b,_0x48b13d,_0xd406c8),_0x5baa4d=_0x199311(_0x11790b);_0x5f5a67(_0x5baa4d);let _0x25e57b=_0x4a66e9,_0x1c68ea=[_0x37a532];(!_0x129fb4||!_0x50253f(_0x25e57b))&&_0x1c68ea[_0x1915cb(0x42c)](_0x25e57b=_0x2cad28(_0x25e57b));let _0x3a5880=_0x199311(_0x25e57b);_0x5f5a67(_0x3a5880);let _0x2b0876=_0x3a5880[0x0],_0x2dda49=_0x3a5880[0x1],_0x55c3c3=_0x3a5880[0x2],_0x15a056=_0x3a5880[0x3],_0x259aba=0x0;for(;_0x259aba+0x4<=_0x5baa4d['length'];)_0x2b0876^=_0x5baa4d[_0x259aba+0x0],_0x2dda49^=_0x5baa4d[_0x259aba+0x1],_0x55c3c3^=_0x5baa4d[_0x259aba+0x2],_0x15a056^=_0x5baa4d[_0x259aba+0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056;if(_0x279fd8){let _0x287963=_0x31d810(_0x51c26b[_0x1915cb(0x2af)](_0x259aba*0x4));_0x5f5a67(_0x287963),_0x2b0876^=_0x287963[0x0],_0x2dda49^=_0x287963[0x1],_0x55c3c3^=_0x287963[0x2],_0x15a056^=_0x287963[0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056,_0x57dbaa(_0x287963);}return _0x5f5a67(_0x5a64a0),_0x57dbaa(..._0x1c68ea),_0x11790b!==_0x51c26b&&_0x57dbaa(_0x11790b),_0x102252;},'decrypt'(_0x19d969,_0x2d94bf){const _0x3fb934=_0x3a8a1d;_0x2f8f97(_0x19d969,_0x2d94bf);let _0x4cdfa3=_0x1f98ed(_0x30bf1a);_0x2d94bf===void 0x0&&(_0x2d94bf=new Uint8Array(_0x19d969['length']));let _0x48d5af=_0x4a66e9,_0x1f7542=[_0x4cdfa3];(!_0x129fb4||!_0x50253f(_0x48d5af))&&_0x1f7542[_0x3fb934(0x42c)](_0x48d5af=_0x2cad28(_0x48d5af));let _0x54d23f=_0x199311(_0x48d5af);_0x5f5a67(_0x54d23f),(!_0x129fb4||!_0x50253f(_0x19d969))&&_0x1f7542[_0x3fb934(0x42c)](_0x19d969=_0x2cad28(_0x19d969));let _0x301998=_0x199311(_0x19d969),_0x21b196=_0x199311(_0x2d94bf);_0x5f5a67(_0x301998);let _0x176189=_0x54d23f[0x0],_0x37f3f7=_0x54d23f[0x1],_0x3f201c=_0x54d23f[0x2],_0x4b3390=_0x54d23f[0x3];for(let _0x391a18=0x0;_0x391a18+0x4<=_0x301998[_0x3fb934(0x147)];){let _0x85bf6=_0x176189,_0x1ef441=_0x37f3f7,_0xdbf05d=_0x3f201c,_0x324356=_0x4b3390;_0x176189=_0x301998[_0x391a18+0x0],_0x37f3f7=_0x301998[_0x391a18+0x1],_0x3f201c=_0x301998[_0x391a18+0x2],_0x4b3390=_0x301998[_0x391a18+0x3];let {s0:_0x2638a7,s1:_0x542288,s2:_0x3efa7a,s3:_0x5e05fb}=_0x491d38(_0x4cdfa3,_0x176189,_0x37f3f7,_0x3f201c,_0x4b3390);_0x21b196[_0x391a18++]=_0x2638a7^_0x85bf6,_0x21b196[_0x391a18++]=_0x542288^_0x1ef441,_0x21b196[_0x391a18++]=_0x3efa7a^_0xdbf05d,_0x21b196[_0x391a18++]=_0x5e05fb^_0x324356;}return _0x5f5a67(_0x21b196),_0x57dbaa(..._0x1f7542),_0x1886b6(_0x2d94bf,_0x279fd8);}};});function _0x3359ac(_0x52b4f0){const _0x4eda45=_0x9884d2;let _0x29cc9a=atob(_0x52b4f0),_0x270383=new Uint8Array(_0x29cc9a['length']);for(let _0xa9e425=0x0;_0xa9e425<_0x29cc9a[_0x4eda45(0x147)];_0xa9e425++)_0x270383[_0xa9e425]=_0x29cc9a[_0x4eda45(0x3b6)](_0xa9e425);return _0x270383;}function _0x1a34fd(_0x5ec56c){const _0x1f8cfc=_0x9884d2;let _0x3affb4='';for(let _0x248148=0x0;_0x248148<_0x5ec56c[_0x1f8cfc(0x147)];_0x248148++)_0x3affb4+=String[_0x1f8cfc(0x361)](_0x5ec56c[_0x248148]);return btoa(_0x3affb4);}function _0x1aa085(_0x1f823c,_0x473214){let _0x27f66f=_0x3359ac(_0x473214),_0x149dd0=_0x49b1fc(0x10);return _0x1a34fd(_0x10db65(_0x149dd0,_0x3222fd(_0x27f66f,_0x149dd0)['encrypt'](_0x37b28a(_0x1f823c))));}function _0x8ac433(){const _0x2879d8=_0x9884d2;let _0x42be0b=(0x0,_0x3ed42b[_0x2879d8(0x151)])()[_0x2879d8(0x2f1)];if(typeof window<'u'&&window[_0x2879d8(0x2b2)]!==void 0x0&&_0x42be0b){let _0x21c9cb={'time':Math['floor'](Date[_0x2879d8(0x17d)]()/0x3e8),'domain':location[_0x2879d8(0x217)]};return _0x1aa085(JSON['stringify'](_0x21c9cb),_0x42be0b);}}let _0x3796aa=class{constructor(_0x1212a2){const _0x5d574a=_0x9884d2;this[_0x5d574a(0x1d0)]=_0x1212a2,this[_0x5d574a(0x11d)]();}[_0x9884d2(0x11d)](){const _0x416b5e=_0x9884d2;this[_0x416b5e(0x1d0)]['registerHTTPInterceptor']({'interceptor':(_0x23cc69,_0x4042e3)=>{const _0x3618db=_0x416b5e;let _0x4ec9ef=_0x8ac433();return _0x4ec9ef&&_0x23cc69[_0x3618db(0x112)][_0x3618db(0x41e)](_0x3618db(0x303),_0x4ec9ef),_0x4042e3(_0x23cc69);}});}};_0x3796aa=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3796aa);let _0x125829=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x43d198,_0x5c4a24,_0x38c38d){const _0x9e81bf=_0x9884d2;super(),this[_0x9e81bf(0x344)]=_0x43d198,this[_0x9e81bf(0x403)]=_0x5c4a24,this[_0x9e81bf(0x323)]=_0x38c38d,_0x60128a(this,_0x9e81bf(0x342),new _0xccd21e['BehaviorSubject'](null)),_0x60128a(this,_0x9e81bf(0x412),new _0xccd21e[(_0x9e81bf(0x200))]()),_0x60128a(this,'unitInfo$',this[_0x9e81bf(0x342)][_0x9e81bf(0x43c)]()),_0x60128a(this,_0x9e81bf(0x347),this['_unitLoaded$'][_0x9e81bf(0x43c)]());}[_0x9884d2(0x314)](){const _0x540ebb=_0x9884d2;super[_0x540ebb(0x314)](),this[_0x540ebb(0x412)][_0x540ebb(0x41f)](),this['_unitInfo$'][_0x540ebb(0x41f)]();}async[_0x9884d2(0x21e)](_0x24904d,_0x3ea8c5,_0x232b8f,_0x348b4c){const _0x9c475f=_0x9884d2;this[_0x9c475f(0x342)][_0x9c475f(0x17e)]({'unitId':_0x24904d,'type':_0x3ea8c5,'subUnitId':_0x348b4c});let _0x114f39=null;switch(_0x3ea8c5){case _0x4b2515[_0x9c475f(0x223)]['UNIVER_SHEET']:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x134)](_0x24904d,_0x232b8f,void 0x0,{'initialSubUnitId':_0x348b4c});break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x10f)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x373)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x281)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x28e)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x339)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x194)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x267)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x273)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x1b9)]:_0x114f39=await this[_0x9c475f(0x403)]['loadPdf'](_0x24904d,_0x232b8f);break;default:this[_0x9c475f(0x344)][_0x9c475f(0x1b5)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x114f39&&this[_0x9c475f(0x412)]['next'](_0x114f39),_0x114f39;}async[_0x9884d2(0x325)](_0x32bdeb,_0x46b11e,_0x3403aa){const _0x131074=_0x9884d2;var _0x1a7b7c;this[_0x131074(0x342)]['next']({'unitId':_0x32bdeb,'type':_0x46b11e,'subUnitId':_0x3403aa});let _0x3ac2c4=0x0,_0x30198e=await((_0x1a7b7c=this[_0x131074(0x323)])==null?void 0x0:_0x1a7b7c['loadOfflineData'](_0x32bdeb));return _0x30198e&&(_0x30198e['awaitingChangeset']||_0x30198e[_0x131074(0x25c)]['length']!==0x0)&&(_0x3ac2c4=_0x30198e[_0x131074(0x317)]),_0x3ac2c4===0x0&&this[_0x131074(0x344)]['debug'](_0x131074(0x27f),_0x131074(0x30a)),this['loadUnitOfRevision'](_0x32bdeb,_0x46b11e,_0x3ac2c4,_0x3403aa);}};_0x125829=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x1,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x15e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x125829);let _0xd196db=class{constructor(_0x4cb106,_0x3dcf86,_0x1fe643){const _0x47439e=_0x9884d2;this[_0x47439e(0x1d0)]=_0x4cb106,this[_0x47439e(0x3c6)]=_0x3dcf86,this['_univerInstanceService']=_0x1fe643,_0x60128a(this,'_waitCount',0x0),_0x60128a(this,_0x47439e(0x3b9),new _0xccd21e[(_0x47439e(0x200))]()),_0x60128a(this,_0x47439e(0x2d1),this[_0x47439e(0x3b9)]),_0x60128a(this,_0x47439e(0x2a2),new Map());}[_0x9884d2(0x435)](_0x5352af){const _0x29fe70=_0x9884d2;this[_0x29fe70(0x222)]=_0x5352af,this[_0x29fe70(0x3b9)][_0x29fe70(0x17e)](_0x5352af);}[_0x9884d2(0x1bb)](_0x2e40a6,_0x8bedba){const _0x4a4941=_0x9884d2;if(_0x8bedba===_0x4b2515['ImageSourceType'][_0x4a4941(0x2ae)]){let _0x4c50b4=new Image();return _0x4c50b4[_0x4a4941(0x3ce)]=_0x2e40a6,_0x4c50b4;}return this['_imageSourceCache']['get'](_0x2e40a6);}[_0x9884d2(0x2f9)](_0x1bc409,_0x80df13,_0x25adf9){const _0x1ac03d=_0x9884d2;_0x80df13!==_0x4b2515[_0x1ac03d(0x3fe)][_0x1ac03d(0x2ae)]&&_0x25adf9!=null&&this[_0x1ac03d(0x2a2)][_0x1ac03d(0x41e)](_0x1bc409,_0x25adf9);}async['getImage'](_0x9e27a0){const _0x500369=_0x9884d2;try{let _0x23fbc8=this[_0x500369(0x40e)](this[_0x500369(0x322)](),''+_0x9e27a0),_0x31dd26=(await this[_0x500369(0x1d0)][_0x500369(0x2eb)](_0x23fbc8))[_0x500369(0x450)];if(_0x31dd26[_0x500369(0x1b5)]&&_0x31dd26['error'][_0x500369(0x3f6)]===_0x349630[_0x500369(0x328)]['OK']){let _0x50db3c=(0x0,_0x4b2515[_0x500369(0x302)])(_0x31dd26[_0x500369(0x424)],this['_getDownloadEndpointURL']());return Promise[_0x500369(0x382)](_0x50db3c);}return Promise['reject'](_0x31dd26['error']);}catch(_0x33eaa9){return Promise[_0x500369(0x1e9)](_0x33eaa9);}}async['saveImage'](_0x572bc5){const _0x48290d=_0x9884d2;let _0x5d33b5='';if(!_0x443efc[_0x48290d(0x210)][_0x48290d(0x473)](_0x572bc5[_0x48290d(0x415)]))return this['_decreaseWaiting'](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)]['ERROR_IMAGE_TYPE']));if(_0x572bc5[_0x48290d(0x442)]>(0x0,_0x443efc['getDrawingImageAllowSize'])())return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType'][_0x48290d(0x34d)]));try{let _0x36e749=new FormData();_0x36e749[_0x48290d(0x422)](_0x48290d(0x23e),_0x572bc5);let _0x1c0d08=this[_0x48290d(0x118)]['getFocusedUnit'](),_0x5554e4=_0x1c0d08==null?void 0x0:_0x1c0d08[_0x48290d(0x413)]();if(!_0x5554e4)throw Error('unitId\x20is\x20not\x20found');let _0x1727b9=this[_0x48290d(0x264)]()+_0x48290d(0x295)+_0x572bc5['size'][_0x48290d(0x353)]()+_0x48290d(0x408)+_0x349630[_0x48290d(0x3a6)][_0x48290d(0x14c)]+_0x48290d(0x2b3)+encodeURIComponent(_0x5554e4),_0x1f6874={'body':_0x36e749},_0x4fef35=(await this[_0x48290d(0x1d0)][_0x48290d(0x31b)](_0x1727b9,_0x1f6874))[_0x48290d(0x450)];if(typeof _0x4fef35[_0x48290d(0x414)]!=_0x48290d(0x212))return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType']['ERROR_IMAGE']));_0x5d33b5=_0x4fef35[_0x48290d(0x414)];}catch{return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)][_0x48290d(0x2b0)]));}return new Promise((_0x54c188,_0x8d644c)=>{const _0x492b67=_0x48290d;let _0x180dd9=new FileReader();_0x180dd9[_0x492b67(0x461)](_0x572bc5),_0x180dd9[_0x492b67(0x2ec)]=_0x380732=>{const _0x5c68a3=_0x492b67;var _0x524f8c;let _0x489fac=(_0x524f8c=_0x380732[_0x5c68a3(0x479)])==null?void 0x0:_0x524f8c[_0x5c68a3(0x312)];if(_0x489fac==null){this[_0x5c68a3(0x1ab)](),_0x8d644c(Error(_0x4b2515[_0x5c68a3(0x12e)][_0x5c68a3(0x2b0)]));return;}_0x54c188({'imageId':(0x0,_0x4b2515[_0x5c68a3(0x12d)])(0x6),'imageSourceType':_0x4b2515[_0x5c68a3(0x3fe)][_0x5c68a3(0x46c)],'source':_0x5d33b5,'base64Cache':_0x489fac,'status':_0x4b2515['ImageUploadStatusType'][_0x5c68a3(0x3b1)]}),this['_decreaseWaiting']();};});}[_0x9884d2(0x264)](){const _0x456b94=_0x9884d2;let _0x4f3351=this[_0x456b94(0x3c6)][_0x456b94(0x32f)](_0x3c0330);return(_0x4f3351==null?void 0x0:_0x4f3351['uploadFileServerUrl'])??_0x456b94(0x42f);}['_getSignURL'](){const _0x5af503=_0x9884d2;let _0x26a074=this['_configService'][_0x5af503(0x32f)](_0x3c0330);return(_0x26a074==null?void 0x0:_0x26a074[_0x5af503(0x218)])??_0x5af503(0x202);}[_0x9884d2(0x337)](){const _0x411e20=_0x9884d2;let _0x37f85b=this[_0x411e20(0x3c6)][_0x411e20(0x32f)](_0x3c0330);return(_0x37f85b==null?void 0x0:_0x37f85b[_0x411e20(0x47d)])??location[_0x411e20(0x142)];}['_replaceFileID'](_0x540b48,_0x21c618){const _0x559814=_0x9884d2;return _0x540b48[_0x559814(0x3b0)](_0x559814(0x2e9),_0x21c618);}[_0x9884d2(0x1ab)](){const _0xb46e5=_0x9884d2;--this[_0xb46e5(0x222)],this['_change$'][_0xb46e5(0x17e)](this[_0xb46e5(0x222)]);}};_0xd196db=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0xd196db);let _0x4ca05f=class{constructor(_0x2f7ebd,_0x3ee934){const _0x2c600e=_0x9884d2;this[_0x2c600e(0x3c6)]=_0x2f7ebd,this[_0x2c600e(0x480)]=_0x3ee934;}[_0x9884d2(0x133)](){const _0x521b89=_0x9884d2;let _0x52dfe1=this[_0x521b89(0x3c6)][_0x521b89(0x32f)](_0x3c0330);return(_0x52dfe1==null?void 0x0:_0x52dfe1[_0x521b89(0x2d7)])??'/universer-api/authz';}async[_0x9884d2(0x240)](_0x3e54a5){const _0x69916f=_0x9884d2;let _0x28cb5b=this[_0x69916f(0x133)]()+_0x69916f(0x275);return{'list':[{'title':_0x69916f(0x1a0),'mentions':(await this[_0x69916f(0x480)][_0x69916f(0x2eb)](_0x28cb5b,{'params':{'objectID':_0x3e54a5[_0x69916f(0x3f0)],'unitID':_0x3e54a5[_0x69916f(0x3f0)]}}))[_0x69916f(0x450)][_0x69916f(0x3ff)]['map'](_0x32fa25=>({'objectId':_0x32fa25['id'],'name':_0x32fa25[_0x69916f(0x43e)]['name'],'metadata':{'icon':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x220)]},'label':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x114)],'objectType':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]})),'metadata':{},'type':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]}]};}};_0x4ca05f=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x4ca05f);let _0x1f63f8=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x36538f,_0xc72752,_0x5c6cc4,_0x28592d,_0x1b15c0,_0x597c6e){const _0x273b51=_0x9884d2;super(),this[_0x273b51(0x46a)]=_0x36538f,this[_0x273b51(0x118)]=_0xc72752,this[_0x273b51(0x2ba)]=_0x5c6cc4,this[_0x273b51(0x2cf)]=_0x28592d,this[_0x273b51(0x3e9)]=_0x1b15c0,this[_0x273b51(0x427)]=_0x597c6e,_0x60128a(this,_0x273b51(0x16e),new Set()),this['disposeWithMe'](()=>this[_0x273b51(0x16e)][_0x273b51(0x214)]()),this[_0x273b51(0x472)](_0x47ca4d(this[_0x273b51(0x118)])[_0x273b51(0x23b)](({unitId:_0x459c1a})=>this[_0x273b51(0x16e)][_0x273b51(0x287)](_0x459c1a))),this[_0x273b51(0x2fa)](),this[_0x273b51(0x1b0)](),[_0x4b2515[_0x273b51(0x223)][_0x273b51(0x10f)],_0x4b2515[_0x273b51(0x223)]['UNIVER_SLIDE'],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x267)],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x339)]]['forEach'](_0x4d1996=>{const _0x4dbd99=_0x273b51;this[_0x4dbd99(0x472)](this[_0x4dbd99(0x118)][_0x4dbd99(0x47f)](_0x4d1996)[_0x4dbd99(0x23b)](_0x59616f=>{const _0x14e049=_0x4dbd99;this['_closedUnits'][_0x14e049(0x2a4)](_0x59616f[_0x14e049(0x413)]()),this[_0x14e049(0x46a)][_0x14e049(0x2eb)](_0x4b2515[_0x14e049(0x234)])[_0x14e049(0x321)](_0x59616f[_0x14e049(0x413)]());}));});}[_0x9884d2(0x1b0)](){const _0x475c4c=_0x9884d2;let _0x57b77e=async(_0x48ea8c,_0x33d52e)=>{const _0x299d1b=_0x328a;let _0x250676=await this['_collaborationSessionService'][_0x299d1b(0x1a4)](_0x48ea8c);this['_disposed']||this['_closedUnits'][_0x299d1b(0x40a)](_0x48ea8c)||!this['_univerInstanceService'][_0x299d1b(0x380)](_0x48ea8c)||_0x250676[_0x299d1b(0x2e6)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x55cf3f=>_0x55cf3f['eventID']===_0x5199be['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,_0x2c33e8[_0x299d1b(0x29e)])((0x0,_0xccd21e[_0x299d1b(0x448)])(this[_0x299d1b(0x36c)],this['_univerInstanceService'][_0x299d1b(0x462)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x16878e=>_0x16878e[_0x299d1b(0x413)]()===_0x48ea8c)))))['subscribe'](_0x13e5bf=>{const _0x107666=_0x299d1b;let {reason:_0x784f50}=_0x13e5bf[_0x107666(0x1b4)];this[_0x107666(0x427)]['emitEvent']({'id':_0x107666(0x345),'data':_0x784f50}),this[_0x107666(0x16e)]['add'](_0x48ea8c),this[_0x107666(0x46a)][_0x107666(0x2eb)](_0x4b2515[_0x107666(0x234)])['clearUnit'](_0x48ea8c);let _0x870033=_0x303f38(_0x33d52e);_0x870033!=null&&this[_0x107666(0x2a0)](_0x48ea8c,_0x870033,_0x349630[_0x107666(0x305)]['Edit'],!0x1),this[_0x107666(0x3e9)]['closeSession'](_0x48ea8c);});};_0x47ca4d(this['_univerInstanceService'])[_0x475c4c(0x486)]((0x0,_0x2c33e8[_0x475c4c(0x10d)])(({unitId:_0x19f0e1})=>!(0x0,_0x4b2515[_0x475c4c(0x262)])(_0x19f0e1)),(0x0,_0x2c33e8[_0x475c4c(0x29e)])(this[_0x475c4c(0x36c)]))['subscribe'](({type:_0x369563,unitId:_0x2da34c})=>{const _0x1392a8=_0x475c4c;_0x57b77e(_0x2da34c,_0x369563)[_0x1392a8(0x2d9)](_0x344098=>this['_injector'][_0x1392a8(0x2eb)](_0x4b2515[_0x1392a8(0x39c)])[_0x1392a8(0x1b5)](_0x344098));});}[_0x9884d2(0x2fa)](){const _0x48b481=_0x9884d2;let _0x2f46ff=async(_0x81b961,_0x7006e3)=>{const _0x1dc654=_0x328a;let _0x3407f9=await this[_0x1dc654(0x3e9)]['requireSession'](_0x81b961);if(!(this['_disposed']||this[_0x1dc654(0x16e)][_0x1dc654(0x40a)](_0x81b961)||!this['_univerInstanceService']['getUnit'](_0x81b961))){if(_0x7006e3===_0x4b2515[_0x1dc654(0x223)][_0x1dc654(0x465)]){let _0x3e9d2e=this['_injector'][_0x1dc654(0x2eb)](_0x4ea268[_0x1dc654(0x17c)]);await _0x3e9d2e[_0x1dc654(0x3d7)](_0x81b961),_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3af2df=>_0x3af2df[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x2c33e8['takeUntil'])((0x0,_0xccd21e[_0x1dc654(0x448)])(this['dispose$'],_0x3407f9[_0x1dc654(0x2e6)]['pipe']((0x0,_0x2c33e8['filter'])(_0x4181c2=>_0x4181c2[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this['_univerInstanceService'][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x14b736=>_0x14b736['getUnitId']()===_0x81b961)))))['subscribe'](_0x23621c=>{const _0x3e6f1a=_0x1dc654;let {objectId:_0xa5e028}=_0x23621c[_0x3e6f1a(0x1b4)];_0xa5e028===_0x81b961?_0x3e9d2e[_0x3e6f1a(0x3d7)](_0x81b961):_0x3e9d2e['refreshPermission'](_0x81b961,_0xa5e028);});return;}_0x3407f9['event$'][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x563411=>_0x563411[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x456)]),(0x0,_0x2c33e8[_0x1dc654(0x29e)])((0x0,_0xccd21e['merge'])(this[_0x1dc654(0x36c)],_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3a3c12=>_0x3a3c12[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this[_0x1dc654(0x118)][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8['filter'])(_0x1a23ed=>_0x1a23ed[_0x1dc654(0x413)]()===_0x81b961)))))['subscribe'](()=>{const _0x293e92=_0x1dc654;this[_0x293e92(0x45a)](_0x81b961,_0x7006e3)['catch'](_0x2c7964=>this[_0x293e92(0x46a)][_0x293e92(0x2eb)](_0x4b2515[_0x293e92(0x39c)])[_0x293e92(0x1b5)](_0x2c7964));}),await this['_refreshUnitPermission'](_0x81b961,_0x7006e3);}};_0x47ca4d(this[_0x48b481(0x118)])[_0x48b481(0x486)]((0x0,_0x2c33e8[_0x48b481(0x10d)])(({unitId:_0x5a4ed0})=>!(0x0,_0x4b2515[_0x48b481(0x262)])(_0x5a4ed0)),(0x0,_0x2c33e8[_0x48b481(0x29e)])(this[_0x48b481(0x36c)]))['subscribe'](({type:_0x4dcfe9,unitId:_0x3d3c1f})=>{const _0x3791a3=_0x48b481;_0x2f46ff(_0x3d3c1f,_0x4dcfe9)[_0x3791a3(0x2d9)](_0x53207a=>this[_0x3791a3(0x46a)][_0x3791a3(0x2eb)](_0x4b2515['ILogService'])[_0x3791a3(0x1b5)](_0x53207a));});}async[_0x9884d2(0x45a)](_0x3bb401,_0x1e73ea){const _0x4f7882=_0x9884d2;let _0x548e3d=_0x303f38(_0x1e73ea);if(_0x548e3d==null)return;let _0x315b1e=this['_injector'][_0x4f7882(0x2eb)](_0x4b2515[_0x4f7882(0x234)]);if(_0x315b1e['supports']({'unitId':_0x3bb401,'objectId':_0x3bb401,'objectType':_0x548e3d})){await _0x315b1e['refreshUnit'](_0x3bb401);return;}let _0x520597=this[_0x4f7882(0x411)](_0x3bb401,_0x548e3d);if(!_0x520597['length'])return;let _0x475ac2=await this[_0x4f7882(0x2cf)][_0x4f7882(0x354)]({'objectID':_0x3bb401,'objectType':_0x548e3d,'unitID':_0x3bb401,'actions':_0x520597[_0x4f7882(0x333)](({action:_0x4e9943})=>_0x4e9943)});this[_0x4f7882(0x409)]||this[_0x4f7882(0x16e)]['has'](_0x3bb401)||!this[_0x4f7882(0x118)][_0x4f7882(0x380)](_0x3bb401)||_0x475ac2['forEach'](_0x2d484f=>{const _0x533396=_0x4f7882;let _0x5a8aea=_0x2d484f[_0x533396(0x2e4)],_0x3a4360=_0x2d484f[_0x533396(0x354)];_0x5a8aea!=null&&_0x3a4360!=null&&_0x520597[_0x533396(0x10d)](_0x49d6fa=>_0x49d6fa['action']===_0x5a8aea)['forEach'](_0x59509f=>this['_permissionService'][_0x533396(0x2c7)](_0x59509f['id'],_0x3a4360));});}[_0x9884d2(0x411)](_0x49411d,_0x3c1f39){const _0x41835d=_0x9884d2;let _0x14d61d=[];return this[_0x41835d(0x2ba)]['getAllPermissionPoint']()[_0x41835d(0x1e3)]((_0x110844,_0x58f2ec)=>{const _0x30c005=_0x41835d;_0x110844[_0x30c005(0x23b)](_0x3a83f7=>{const _0x2f98d3=_0x30c005;_0x3a83f7['type']===_0x3c1f39&&_0x2f98d3(0x3f0)in _0x3a83f7&&_0x3a83f7[_0x2f98d3(0x3f0)]===_0x49411d&&(!(_0x2f98d3(0x1ac)in _0x3a83f7)||_0x3a83f7[_0x2f98d3(0x1ac)]===_0x49411d)&&_0x14d61d[_0x2f98d3(0x42c)]({'id':_0x58f2ec,'action':_0x3a83f7[_0x2f98d3(0x189)]});})[_0x30c005(0x29f)]();}),_0x14d61d;}['_updateUnitPermissionPoint'](_0x50837b,_0x362cdf,_0x56e313,_0x2fa248){this['_permissionService']['getAllPermissionPoint']()['forEach']((_0x1d5386,_0x50770f)=>{const _0x1dfab2=_0x328a;let _0x4c154a=!0x1;_0x1d5386[_0x1dfab2(0x23b)](_0x1a9477=>{const _0x325ee0=_0x1dfab2;_0x4c154a=_0x1a9477['type']===_0x362cdf&&_0x1a9477[_0x325ee0(0x189)]===_0x56e313&&_0x325ee0(0x3f0)in _0x1a9477&&_0x1a9477['unitId']===_0x50837b&&(!(_0x325ee0(0x1ac)in _0x1a9477)||_0x1a9477[_0x325ee0(0x1ac)]===_0x50837b);})[_0x1dfab2(0x29f)](),_0x4c154a&&this[_0x1dfab2(0x2ba)][_0x1dfab2(0x2c7)](_0x50770f,_0x2fa248);});}};_0x1f63f8=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x1bd)]),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce))],_0x1f63f8);function _0x47ca4d(_0x5b5c72){const _0x4927be=_0x9884d2;return(0x0,_0xccd21e[_0x4927be(0x448)])(...[_0x4b2515['UniverInstanceType'][_0x4927be(0x465)],_0x4b2515[_0x4927be(0x223)]['UNIVER_DOC'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x281)],_0x4b2515[_0x4927be(0x223)]['UNIVER_BOARD'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x267)]][_0x4927be(0x333)](_0x4e3638=>_0x5b5c72[_0x4927be(0x3bf)](_0x4e3638)[_0x4927be(0x486)]((0x0,_0x2c33e8[_0x4927be(0x333)])(_0x2fb8b2=>({'type':_0x4e3638,'unitId':_0x2fb8b2['unit']['getUnitId']()})))));}function _0x303f38(_0x3f6cd5){const _0x39eb41=_0x9884d2;switch(_0x3f6cd5){case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x465)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x3b5)];case _0x4b2515[_0x39eb41(0x223)]['UNIVER_DOC']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x30f)];case _0x4b2515['UniverInstanceType']['UNIVER_SLIDE']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x1c1)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x339)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x343)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x267)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x251)];default:return;}}let _0x3759f0=class{constructor(_0x2df99e,_0x4e61e5){const _0x22e021=_0x9884d2;this['_configService']=_0x2df99e,this[_0x22e021(0x1d0)]=_0x4e61e5;}async[_0x9884d2(0x37c)](_0x18f557,_0x3941c9){const _0x174d37=_0x9884d2;var _0x4c02d9;let {unitID:_0x2890a3,type:_0x25ee22,revision:_0x367eac=0x0}=_0x3941c9,_0x51542e=this[_0x174d37(0x19b)]()+'/'+_0x25ee22+_0x174d37(0x3b3)+_0x2890a3+_0x174d37(0x2b8)+_0x367eac,_0x5369bd=(await this[_0x174d37(0x1d0)][_0x174d37(0x2eb)](_0x51542e))[_0x174d37(0x450)],_0x5682ff=(_0x4c02d9=_0x5369bd['snapshot'])==null?void 0x0:_0x4c02d9['workbook'];if(_0x5682ff){let _0x55f800=_0x5682ff==null?void 0x0:_0x5682ff[_0x174d37(0x2f6)];_0x5682ff[_0x174d37(0x2f6)]=_0x5199be[_0x174d37(0x32e)][_0x174d37(0x2d8)]((0x0,_0x5199be[_0x174d37(0x22e)])(_0x55f800)),Object[_0x174d37(0x38e)](_0x5682ff[_0x174d37(0x3dc)])[_0x174d37(0x1e3)](([,_0x4767c6])=>{const _0x51b12b=_0x174d37;let _0x50ffb9=_0x4767c6[_0x51b12b(0x2f6)];_0x4767c6[_0x51b12b(0x2f6)]=_0x5199be['textEncoder'][_0x51b12b(0x2d8)]((0x0,_0x5199be[_0x51b12b(0x22e)])(_0x50ffb9));});}return _0x5369bd;}async[_0x9884d2(0x3f1)](_0x45498d,_0x46e407){const _0x4cb191=_0x9884d2;let {unitID:_0x24f4e2,type:_0xf65912,blockID:_0x24e691}=_0x46e407,_0x3db3ee=this['_getAPIPrefix']()+'/'+_0xf65912+_0x4cb191(0x3b3)+_0x24f4e2+_0x4cb191(0x292)+_0x24e691;return(await this[_0x4cb191(0x1d0)][_0x4cb191(0x2eb)](_0x3db3ee))[_0x4cb191(0x450)];}async[_0x9884d2(0x116)](_0x4bc811,_0xd51d38){const _0x275c35=_0x9884d2;let {unitID:_0x11315f,type:_0x2e454b,blockID:_0x349478}=_0xd51d38,_0x122ffe=this[_0x275c35(0x33a)]()+_0x275c35(0x292)+_0x2e454b+_0x275c35(0x3b3)+_0x11315f+'/block/'+_0x349478;return(await this[_0x275c35(0x1d0)]['get'](_0x122ffe))['body'];}async['fetchMissingChangesets'](_0x14ccad,_0x3bf85e){const _0x122ac4=_0x9884d2;let {unitID:_0x180041,type:_0x54236c,from:_0x1f94fa,to:_0x3bc63c}=_0x3bf85e,_0x15c0f8=this[_0x122ac4(0x33a)]()+'/'+_0x54236c+_0x122ac4(0x3b3)+_0x180041+_0x122ac4(0x135)+_0x1f94fa+'&to='+_0x3bc63c;return(await this[_0x122ac4(0x1d0)][_0x122ac4(0x2eb)](_0x15c0f8))[_0x122ac4(0x450)];}['getSnapshotAPIPath'](){const _0x30c191=_0x9884d2;return this[_0x30c191(0x3c6)][_0x30c191(0x32f)](_0x30c191(0x360))??this[_0x30c191(0x33a)]();}[_0x9884d2(0x33a)](){const _0x19da2b=_0x9884d2;let _0x49db98=this[_0x19da2b(0x3c6)]['getConfig'](_0x3c0330);return(_0x49db98==null?void 0x0:_0x49db98[_0x19da2b(0x1ea)])??'/universer-api/snapshot';}async[_0x9884d2(0x423)](_0x2efb17,_0x5ea722){const _0x5755d6=_0x9884d2;let _0x3b5ede=_0x5755d6(0x434)+_0x5ea722[_0x5755d6(0x415)]+_0x5755d6(0x3b3)+_0x5ea722[_0x5755d6(0x258)]+_0x5755d6(0x254);return(await this['_httpService'][_0x5755d6(0x2eb)](_0x3b5ede,{'params':{'resourceId':JSON[_0x5755d6(0x3ee)](_0x5ea722[_0x5755d6(0x2f3)])}}))[_0x5755d6(0x450)];}[_0x9884d2(0x27e)](){const _0x459c07=_0x9884d2;throw Error(_0x459c07(0x195));}[_0x9884d2(0x38b)](){const _0x5728e2=_0x9884d2;throw Error(_0x5728e2(0x195));}['saveSheetBlock'](){const _0xbfcd3e=_0x9884d2;throw Error(_0xbfcd3e(0x195));}[_0x9884d2(0x3d3)](){const _0x3c2bd1=_0x9884d2;throw Error(_0x3c2bd1(0x195));}[_0x9884d2(0x388)](){const _0x5f198c=_0x9884d2;throw Error(_0x5f198c(0x195));}[_0x9884d2(0x137)](){const _0x1391d7=_0x9884d2;throw Error(_0x1391d7(0x195));}};_0x3759f0=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3759f0);let _0x594d01=class extends _0x4b2515[_0x9884d2(0x162)]{constructor(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32,_0x18ed86,_0x313ee8){super(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32),this['_transformService']=_0x18ed86,this['_logService']=_0x313ee8;}[_0x9884d2(0x3b7)](_0x1ef529,_0x190029){const _0xe4c610=_0x9884d2;let _0x1f90b1=this[_0xe4c610(0x39e)](_0x1ef529);if(_0x1f90b1)try{let _0x34c59b=this[_0xe4c610(0x20e)](_0x1f90b1,_0x190029);this[_0xe4c610(0x454)](_0x1ef529,_0x34c59b);}catch(_0x4f2ed0){this['_logService']['error'](_0xe4c610(0x15c),_0x4f2ed0),this[_0xe4c610(0x36f)](_0x1ef529);}let _0x48b331=this[_0xe4c610(0x2f7)](_0x1ef529);if(_0x48b331)try{let _0x4086a3=this[_0xe4c610(0x20e)](_0x48b331,_0x190029);this[_0xe4c610(0x42d)](_0x1ef529,_0x4086a3);}catch(_0x2e1cd9){this[_0xe4c610(0x344)]['error'](_0x2e1cd9),this['_clearRedo'](_0x1ef529);}}['_clearUndo'](_0x5c0bdf){const _0x4e8968=_0x9884d2;let _0x660e94=this[_0x4e8968(0x39e)](_0x5c0bdf);_0x660e94&&(_0x660e94[_0x4e8968(0x147)]=0x0,this[_0x4e8968(0x1b8)]());}[_0x9884d2(0x1ad)](_0x6d7bcd){const _0x327eae=_0x9884d2;let _0x1f0322=this[_0x327eae(0x2f7)](_0x6d7bcd);_0x1f0322&&(_0x1f0322[_0x327eae(0x147)]=0x0,this[_0x327eae(0x1b8)]());}[_0x9884d2(0x454)](_0x1e5bc8,_0x468e70){const _0x2cbbd4=_0x9884d2;this[_0x2cbbd4(0x327)][_0x2cbbd4(0x41e)](_0x1e5bc8,_0x468e70),this[_0x2cbbd4(0x1b8)]();}[_0x9884d2(0x42d)](_0x3f0c5a,_0x3e4d1e){const _0x3b5025=_0x9884d2;this[_0x3b5025(0x3e7)][_0x3b5025(0x41e)](_0x3f0c5a,_0x3e4d1e),this['_updateStatus']();}[_0x9884d2(0x20e)](_0x2eec3a,_0x509516){const _0x3bffc8=_0x9884d2;let _0x55018e=[],_0x27f77b=_0x509516,_0x571840=_0x509516;for(let _0x4c94fd=_0x2eec3a['length']-0x1;_0x4c94fd>=0x0;_0x4c94fd--){let {unitID:_0x3dc502,undoMutations:_0x23448e,redoMutations:_0x33906f}=_0x2eec3a[_0x4c94fd],_0x3d3659=this[_0x3bffc8(0x2a6)][_0x3bffc8(0x457)](_0x27f77b,_0x23448e),_0x4bacf2=this['_transformService'][_0x3bffc8(0x457)](_0x571840,_0x33906f);if((0x0,_0x5199be[_0x3bffc8(0x1af)])(_0x3d3659)||(0x0,_0x5199be['isTransformMutationsWithChangesetFailure'])(_0x4bacf2)){this['_logService'][_0x3bffc8(0x1b5)](_0x3bffc8(0x15c),_0x3bffc8(0x47e),_0x3d3659,_0x4bacf2);break;}_0x27f77b=_0x3d3659[_0x3bffc8(0x25e)],_0x571840=_0x4bacf2[_0x3bffc8(0x25e)],_0x55018e[_0x3bffc8(0x42c)]({'unitID':_0x3dc502,'undoMutations':_0x3d3659[_0x3bffc8(0x230)],'redoMutations':_0x4bacf2['m2Prime']});}return _0x55018e[_0x3bffc8(0x12a)]();}};_0x594d01=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x25a)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,_0x5199be['ITransformService']),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x39c)])],_0x594d01);let _0x673142=class extends _0x4b2515['Plugin']{constructor(_0x11c4e7=_0xa070fb,_0x227483,_0x359c68,_0x2a9762){const _0x26ba67=_0x9884d2;super(),this[_0x26ba67(0x437)]=_0x11c4e7,this[_0x26ba67(0x344)]=_0x227483,this[_0x26ba67(0x46a)]=_0x359c68,this[_0x26ba67(0x3c6)]=_0x2a9762;let {..._0x1204c1}=(0x0,_0x4b2515['merge'])({},_0xa070fb,this['_config']);if(!_0x1204c1[_0x26ba67(0x11f)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x1204c1,this[_0x26ba67(0x3c6)][_0x26ba67(0x398)](_0x3c0330,_0x1204c1);}[_0x9884d2(0x235)](){const _0x3d8b53=_0x9884d2;this[_0x3d8b53(0x3c6)][_0x3d8b53(0x398)](_0x4b2515[_0x3d8b53(0x2aa)],this[_0x3d8b53(0x437)]['objectPermissionTypes']??[]),this[_0x3d8b53(0x2f0)](),this['_initDependencies']();}[_0x9884d2(0x2f0)](){const _0x327d3b=_0x9884d2;var _0x559ef9,_0x2acdec;this[_0x327d3b(0x46a)][_0x327d3b(0x40a)](_0x4b2515[_0x327d3b(0x201)])&&this[_0x327d3b(0x344)][_0x327d3b(0x1b5)](_0x327d3b(0x2bc),_0x327d3b(0x155));let _0x188f45=(0x0,_0x4b2515[_0x327d3b(0x45e)])([[_0x4b2515[_0x327d3b(0x201)],{'useClass':_0x594d01}],[_0x14183e,{'useValue':_0x8c16f0()}],[_0x283d67],[_0x50f206],[_0x2326c2],[_0x324e1c],[_0x3796aa],[_0x16a8e3],[_0x1f63f8],[_0xeca6ce],[_0x125829],[_0x4f7089,{'useClass':this[_0x327d3b(0x437)][_0x327d3b(0x11f)]}],[_0x5199be['ISnapshotServerService'],{'useClass':_0x3759f0}],[_0x4b2515[_0x327d3b(0x1bd)],{'useClass':_0x15f3fe}],[_0x4b2515[_0x327d3b(0x304)],{'useClass':_0xd196db}],[_0x5e4e05,{'useClass':_0x5b1674}],[_0x4b2515[_0x327d3b(0x3aa)],{'useClass':_0x4ca05f}],[_0x4809ba],[_0x2fc493]],(_0x559ef9=this['_config'])==null?void 0x0:_0x559ef9[_0x327d3b(0x1b7)]);if(!((_0x2acdec=this[_0x327d3b(0x437)])!=null&&_0x2acdec[_0x327d3b(0x2fd)])){let _0x5e950a=_0x188f45[_0x327d3b(0x3e1)](([_0x410ed4])=>_0x410ed4===_0x55fbad);_0x5e950a!==-0x1&&_0x188f45[_0x327d3b(0x289)](_0x5e950a,0x1);}(0x0,_0x4b2515['registerDependencies'])(this[_0x327d3b(0x46a)],_0x188f45);}[_0x9884d2(0x31e)](){const _0x315c4c=_0x9884d2;var _0x4947f0,_0x20d2fe;if(this['_injector'][_0x315c4c(0x2eb)](_0x530da8[_0x315c4c(0x24e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x530da8[_0x315c4c(0x10e)])({'maxParallel':0x6})}),!((_0x4947f0=this[_0x315c4c(0x437)])!=null&&_0x4947f0[_0x315c4c(0x268)])){var _0x2ed8f6;(_0x2ed8f6=this[_0x315c4c(0x46a)]['get'](_0x2b4688,_0x4b2515['Quantity']['OPTIONAL']))==null||_0x2ed8f6[_0x315c4c(0x2da)]();}(_0x20d2fe=this[_0x315c4c(0x437)])!=null&&_0x20d2fe[_0x315c4c(0x208)]&&(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this[_0x315c4c(0x46a)],[[_0x324e1c]]),(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this['_injector'],[[_0x3796aa],[_0x4809ba],[_0x1f63f8]]);}};_0x60128a(_0x673142,'pluginName',_0x9884d2(0x187)),_0x60128a(_0x673142,_0x9884d2(0x3ac),_0x3ff4bc),_0x60128a(_0x673142,_0x9884d2(0x42e),_0x303b92),_0x673142=_0x33ad5b([(0x0,_0x4b2515[_0x9884d2(0x1f1)])(_0x3ed42b[_0x9884d2(0x170)],_0x530da8[_0x9884d2(0x467)],_0x5199be['UniverCollaborationPlugin']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x3,_0x4b2515['IConfigService'])],_0x673142),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1ff),{'enumerable':!0x0,'get':function(){return _0x15f3fe;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x23d),{'enumerable':!0x0,'get':function(){return _0x57ae4a;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1be),{'enumerable':!0x0,'get':function(){return _0x1e3872;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1a9),{'enumerable':!0x0,'get':function(){return _0x24daae;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3af),{'enumerable':!0x0,'get':function(){return _0x4deb99;}}),_0x27ec94[_0x9884d2(0x18f)]=_0x3c0330,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x174),{'enumerable':!0x0,'get':function(){return _0x5b1674;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x446),{'enumerable':!0x0,'get':function(){return _0x4809ba;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x464),{'enumerable':!0x0,'get':function(){return _0xe2b433;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x38d),{'enumerable':!0x0,'get':function(){return _0xd196db;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x188c53;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35e),{'enumerable':!0x0,'get':function(){return _0x283d67;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1da),{'enumerable':!0x0,'get':function(){return _0x1df3dc;}}),_0x27ec94['CollaborationStatus']=_0x500434,_0x27ec94['CollaborationUIEventId']=_0x491b70,_0x27ec94[_0x9884d2(0x43f)]=_0xeca6ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x594d01;}}),_0x27ec94[_0x9884d2(0x286)]=_0x16a8e3,Object['defineProperty'](_0x27ec94,_0x9884d2(0x165),{'enumerable':!0x0,'get':function(){return _0x4b9c5b;}}),_0x27ec94[_0x9884d2(0x1f6)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x27ec94[_0x9884d2(0x291)]=_0x9884d2(0x432),_0x27ec94[_0x9884d2(0x2ff)]=_0x9884d2(0x24b),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x41d),{'enumerable':!0x0,'get':function(){return _0x125829;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x193),{'enumerable':!0x0,'get':function(){return _0x94e744;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x181),{'enumerable':!0x0,'get':function(){return _0x394019;}}),_0x27ec94['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x27ec94[_0x9884d2(0x3d2)]=_0x9884d2(0x207),_0x27ec94[_0x9884d2(0x1a7)]=_0x5e4e05,_0x27ec94[_0x9884d2(0x255)]=_0x14183e,_0x27ec94[_0x9884d2(0x27a)]=_0x4f7089,_0x27ec94[_0x9884d2(0x22b)]=_0x2b4688,_0x27ec94['INetworkConditionService']=_0x3ce8fd,_0x27ec94[_0x9884d2(0x177)]=_0x55fbad,_0x27ec94[_0x9884d2(0x1fa)]=0x3e8,_0x27ec94[_0x9884d2(0x33c)]=_0x9884d2(0x1fa),Object['defineProperty'](_0x27ec94,'MemberService',{'enumerable':!0x0,'get':function(){return _0x50f206;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35d),{'enumerable':!0x0,'get':function(){return _0x4ca05f;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x23f),{'enumerable':!0x0,'get':function(){return _0x20a1e1;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x3e8),{'enumerable':!0x0,'get':function(){return _0x2226d9;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x164),{'enumerable':!0x0,'get':function(){return _0x27ecb8;}}),_0x27ec94[_0x9884d2(0x410)]=_0x9884d2(0x307),_0x27ec94[_0x9884d2(0x2f5)]='RETRY_CONNECTING_MAX_COUNT',_0x27ec94['SessionStatus']=_0x5089ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe8b1d4;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x150),{'enumerable':!0x0,'get':function(){return _0x2326c2;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3ca),{'enumerable':!0x0,'get':function(){return _0x3a9411;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1e7),{'enumerable':!0x0,'get':function(){return _0x3759f0;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x363),{'enumerable':!0x0,'get':function(){return _0x57c5eb;}}),_0x27ec94[_0x9884d2(0x215)]=_0xa9151d,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x44b),{'enumerable':!0x0,'get':function(){return _0x673142;}}),_0x27ec94[_0x9884d2(0x2a7)]=_0x8c16f0,_0x27ec94[_0x9884d2(0x180)]=_0x36e901,_0x27ec94[_0x9884d2(0x24f)]=_0x41bf27,_0x27ec94['serializeCombRequest']=_0x320ae2;}));function _0x328a(_0x46b701,_0x13a21b){_0x46b701=_0x46b701-0x10d;const _0x3671a5=_0x3671();let _0x328ad9=_0x3671a5[_0x46b701];return _0x328ad9;}function _0x3671(){const _0x31c495=['Rectangle','add','endsWith','_transformService','createUniverCollaborationAdapter','endpointKey','enableCollaboration','OBJECT_PERMISSION_CONFIG_KEY','buffer','MergeInterceptorFactory','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','BASE64','subarray','ERROR_IMAGE','LIVESHARE_FETCH_OPERATIONS','location','&assign=','putCollaborators','then','[CollaborationSessionService]','_onJoinRoomEvent','/rev/','getUploadOptions','_permissionService','touchDependencies','[UniverCollaborationClientPlugin]','floor','localUnitId','online$','decorate','RECV','IPermissionService','createIdentifier','trim','[PendingState]:\x20received\x20acknowledgement.','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','updatePermissionPoint','POST','_submitChangeset','timeoutTimer','/-/object/list','_waitForHeartbeatResponse','\x0aAfter:\x20','init','_authzIoService','retryCount','change$','[SyncedState]:\x20received\x20rejection.','2348528SEsToC','updateMember','39328PLNIqq','send','authzUrl','encode','catch','disableLocalCache','_checkMissing','fetch_missing','/object','onRemoteAck','@univerjs/telemetry','Inject','_sheetTransformSelectionsService','onLocalMutation','_createSocket','action','sessionStatus','event$','joinEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','{fileID}','_tryReconnect','get','onload','[SyncedState]:\x20received\x20acknowledgement.','deepClone','_commandService','_registerDependencies','__Key__','_createInitialState','resourceIDs','revision','RETRY_CONNECTING_MAX_COUNT_KEY','originalMeta','_getRedoStack','_roomMembers','addImageSourceCache','_initUnitPermissionChange','missingChangesets','LEAVE','enableSingleActiveInstanceLock','_transitionLocked','DEFAULT_WS_SESSION_TICKET_URL','_maxTotalRetryTimeout','_incrementRevisionNumber','resolveWithBasePath','x-univer-host','IImageIoService','UnitAction','_joinRoom','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationState]:\x20apply\x20error!','_clearTimeoutTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearCollaborationTimeoutTimer','[FetchMissState]','fetchMissingChangesets','hasOwnProperty','Document','_status$','onTransformRemoteChangesetByIMECache','result','_replayCachedMutations','dispose','_getLoginPath','getWorkbookSelections','rev','FETCH_MISSING','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','onTransformIME','post','_sendHeartbeat',',\x20got\x20','_initDependencies','_commentService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','clearUnit','_getSignURL','_localCacheService','blockRanges','loadUnit','NO_OTHER_CLIENTS_EDITING','_undoStacks','ErrorCode','resolveUnit','UNISCRIPT_RUN','LocaleService','_members$','onRemoteChangeset','textEncoder','getConfig','onTransformState','_snapshotServerService','type=','map','_schedule','nonceLength','__splitChunk__','_getDownloadEndpointURL','FETCH_MISS','UNIVER_BOARD','_getAPIPrefix','_unlockTransition','LOCAL_CACHE_INTERVAL_KEY','_onCombEvent','collaboration_new_changeset','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getFocusedUnit','IConfigService','_unitInfo$','Board','_logService','CLOSE_ROOM','FAIL','unitLoaded$','debug','apply','find','csRejEvent','SheetsSelectionsService','ERROR_EXCEED_SIZE','WorkbookEditablePermission','_updateLocalCache','_roomCreated$','socketReady','socket$','toString','allowed','_collaborationPaused','sid','toggleOnline','isTransformMutationsWithChangesetSuccess','168zMqoHt','HELLO','_showConflictProcessingNotification','columnGroups','MentionIoHttpService','CollaborationSessionService','cmd','SNAPSHOT_URL_KEY','fromCharCode','_transformRemoteChangesetByStateCache','SyncedState','collaboration-client.local-cache-service','key','uniscriptRunEvent','@univerjs-pro/collaboration','wrong\x20sbox\x20length','_transformStateCache','_sendingTimer','userID','dispose$','_collaborationTimeoutTimer','_rescheduleHeartbeat','_clearUndo','fetching\x20missing\x20changesets\x20from\x20','fromCollab','aes:\x20bad\x20decrypt','loadDoc','rxjs','ReplaySubject','CompressMutationService','USERS_ENTER','transformSelections','BehaviorSubject','actions','2456FZXkad','getUnitOnRev','[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.','iterator','byteLength','getUnit','expected\x20Uint8Array','resolve','getValue','PERMISSION_REJ','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_init','isTransformChangesetsSuccess','copyFileMeta','CommandType','MentionType','updateSnapshot','listCollaborators','CollaborationImageIoService','entries','6uNUVAg','socketMessageSubscription','encrypt','waitForRoom$','_onRemoteACK','collaboratorID','interceptor','toLocal','_socketChannels','setConfig','_scheduleCollaborationTimeoutTimer','uuidv4','onRemoteRetry','ILogService','_toggleOffline','_getUndoStack','Univer','Module','_sessionChannels','SOCKET_FAILED_RETRY','_onRemoteChangeset','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENTS_EDITING','FileSource','_initMergeInterceptor','_docStateChangeManagerService','collaMsg','IMentionIOService','symbol','packageName','_updateState','crypto','BoardCollaborationEntity','replace','SUCCUSS','createSocket','/unit/','roomInfos','Workbook','charCodeAt','transformUndoRedo','joinRsp','_change$','_transformRemoteChangesetByIMECache','_acknowledgedAwaitingRevision','HEARTBEAT_INTERVAL','UniverTelemetry','entityInit$','getTypeOfUnitAdded$','_fetchMissChangesets','collaboration-client.config','onTransformSelections','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getAllMembers','_handlerCallback','_configService','OTHER_CLIENT_EDITING','collabSubmitChangesetUrl','/new_changes','SlideCollaborationEntity','isArray','onSyncEditingCollabCursor','changesets','src','failed\x20to\x20apply\x20missed\x20changesets!','_transformIMECache','@univerjs/protocol','HEARTBEAT_TIMEOUT_KEY','saveChangeset','sequenceExecute','RemoveSlidePageMutation','slice','initWorkbookPermissionChange','_telemetryService','_cfgEnableObjInherit','onPrepareTransformSelections','SUBMIT_CHANGESET_TIMEOUT','sheets','NOT_COLLAB','_pendingSessions','COMMENT_UPDATE','getUnitStatus$','findIndex','_type','some','startTime','maxSize','isCompositionEnd','_redoStacks','PdfCollaborationEntity','_collaborationSessionService','appendMutation','_clearScheduledTask','toggleOffline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','stringify','newCsEvent','unitId','getSheetBlock','_handler','_onRemoteRetry','routeKey','params','code','amd','_event$','LIVESHARE_TERMINATE','update','ws://127.0.0.1:8000/universer-api/comb/connect','delay','_acknowledgeAwaitingIfReady','ImageSourceType','collaborators','message$','JOINING','_awaitingChangeset','_snapshotService','incrementRevOfUnit','IUniverInstanceService','getCollabEntity$','crypto.getRandomValues\x20must\x20be\x20defined','&source=','_disposed','has','_getCtorByUniverInstanceType','accept','createInstance','_replaceFileID','UniverDrawing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_getUnitPermissionPoints','_unitLoaded$','getUnitId','FileId','type','state$','memberID','_onRecvEvent','liveShareOperation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','NEW_CHANGESETS','15404570DVakeQ','DataLoaderService','set','complete','title','getCurrentRevOfUnit','append','getResourcesRequest','url','_resendTimer','_throwTelemetryCollaborationNewChangeset','_collaborationUIEventService','_showConflictNotification','getUnitType','_adapter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','push','_substituteRedoStack','version','/universer-api/stream/file/upload','collabWebSocketUrl','uploadFileServerUrl','/universer-api/uniscript','mapDocumentTypeToUniverInstanceType','/universer-api/snapshot/','setWaitCount','_lockTransition','_config','/role','isPermissionRej','[OfflineState]:\x20received\x20acknowledgement.','localCacheService','asObservable','call','subject','CollaborationUIEventService','CmdRspCode','AddSlidePageMutation','size','synced','getMemberID','onCommentUpdate','CollaborationController','_resendWithTimeout','merge','method','_commentUpdate$','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','JOIN_ROOM_FAILED','_pendingMutations','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AWAITING','_scheduleCompleteTimestamp','_substituteUndoStack','_collabSessionService','UPDATE_PERMISSION_OBJ','transformMutationsWithChangeset','RETRY_CONNECTING_MAX_COUNT','session.room-cnt-exceeds','_refreshUnitPermission','PERSON','loginUrlKey','getRoom','mergeOverrideWithDependencies','status','LIVESHARE_NEW_HOST','readAsDataURL','unitDisposed$','_acknowledgeAwaiting','CollaborationEntity','UNIVER_SHEET','deleteCollaborator','UniverNetworkPlugin','_onRemoteRejected','loadOfflineData','_injector','objectType','UUID','Injector','_exhaustRemoteChangesetQueue','MUTATION','getActiveSheet','stopTime','disposeWithMe','includes','function','objectID','_syncEditingCollabCursor','_startCollaboration','SHOULD_CLOSE_CONN','target','executeCommand','_createSession','ITelemetryService','downloadEndpointUrl','transformStack\x20failed!','getTypeOfUnitDisposed$','_HTTPService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_entityInit$','retryConnectingInterval','close$','/universer-api/comb','pipe','Uint8Array','subUnitId','filter','ThresholdInterceptorFactory','UNIVER_DOC','removeMember','_telemetryInfo','headers','session.room-not-exists','name','session.room-full','getDeserializedSheetBlock','retryConnectingTimer','_univerInstanceService','UniverSheets','constructor','_getSendChangesetTimeout','csShouldRetryEvent','_initRequestHeader','attachment','socketService','commit','_emitMembers','sort','\x20of\x20length\x20','setShowComponents','UniverProLicense','updateCollaborator','candidateSocket','onMissedChangesetFetched','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reverse','startsWith','reqId','generateRandomId','ImageUploadStatusType','sendHeartbeatTimer','connection\x20error','isSafeInteger','_getSocketChannel','_getAPIPrefixPath','loadSheet','/fetchmissing?from=','_onMessage','getLatestCsReqIdBySid','requestParams','COMPRESS_MUTATION_SEND','commentUpdateEvent','endpoint','_memberService','JOIN_ROOM_NOT_EXISTS','_getConfig','getOwnPropertyDescriptor','Failed\x20to\x20update\x20permission\x20point','_clearRetryConnectingTimer','origin','_onConflict','state','unit','_onFetchMissResult','length','sessionStatus$','_disableEditing','_sender','expected\x20integer\x20>=\x200,\x20got\x20','UnitEmbedded','MoveSlidePageMutation','LIVESHARE_REQUEST_HOST','1.0.1','SheetTransformSelectionsService','getGlobalObject','objectActions','UniverCore','UnitObject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/docs','_startTelemetryCollaborationNewChangeset','reconnect','_socketService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','nonce','[CollaborationUndoRedoService]','fetchMiss','SnapshotService','onSendChangeset','_socket','getAttachmentUrl','LocalUndoRedoService','SOCKET_FAILED','PendingState','ConflictState','changeset','prototype','string\x20expected','UserManagerService','\x0aCurrent:\x20','ICommandService','getCollabEntity','2124510UZAnPm','_closedUnits','RichTextEditingMutation','UniverLicensePlugin','onStateChange','indexOf','create','CollaborationAttachmentIoService','_sessions','getInterceptPoints','ISingleActiveUnitService','from','_applyRemoteChangeset','_onLocalMutation','/allowed','SheetPermissionInitController','now','next','_listenToNetworkCondition','deserializeToCombResponse','FetchingMissState','EmptyMutationInfo','/-/object/-/batch_allowed','unit-cache-','_networkConditionService','_eventService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_compressMutationService','subType','socket\x20open.','univer-pro.collaboration-client-adapter-service','_createHandler','fetchThroughInterceptors','PSEUDO_FETCH_MISSING_RESULT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RxDisposable','editingUnit','[CollaborationSession]','DocCollaborationEntity','loadBoard','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_revisionService','USERS_LEAVE','INGEST','error$','JSONX','getSnapshotAPIPath','_onConnectionFailed','CHANGESET_REJ','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','ISocketService','People','_resolveSessionIdentity','Tools','pending','requireSession','_socketMessageSubscription','_clearHeartbeatTimer','IAttachmentIoService','unknown','BaseCollaborationEntity','_changesetSessionId','_decreaseWaiting','objectId','_clearRedo','BYTES_PER_ELEMENT','isTransformMutationsWithChangesetFailure','_initCloseConn','MSG_FOR_ERROR','UniverProtocol','eventID','data','error','exports','override','_updateStatus','UNIVER_PDF','onlyLocal','getImageSourceCache','@univerjs/network','IAuthzIoService','AwaitingWithPendingState','conflict','univer-pro.collaboration-client.single-active-unit-service','Slide','varSizeNonce','pauseCollaboration','_handleRemoteChangesets','_userManagerService','_shouldReportTelemetry','getTime','getRandomValues','_toggleOnline','\x20-\x20','Disposable','_entities','onMutationExecutedForCollab','defineProperty','awaiting','_httpService','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_APPLY','_prepareTransformSelections','baseRev','@univerjs/sheets','ONLINE','IDLE','univer-pro.collaboration-client.network-condition.service','UniverProSlides','CollaborationSocketService','emitEvent','take','_upload','Optional','sendChangesetTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getMember','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','[OfflineState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','range','SnapshotServerOverHTTPService','plaintext\x20must\x20be\x20multiple\x20of\x2016','reject','snapshotServerUrl','collaboration-client.auth.needGotoLoginAlert','ITransformService','output','@univerjs/drawing','concatMap','_members','DependentOn','JOIN_ROOM_PERMISSION_DENIED','values','_localeService','UPDATE_CURSOR','DEFAULT_COLLAB_WEB_SOCKET_URL','CHANGESET_ACK','updateCursorEvent','PERMISSION_DENIED','LOCAL_CACHE_INTERVAL','RevisionService','resend','_identity','_onConnectionOpen','AuthzIoHttpService','Subject','IUndoRedoService','/universer-api/file/{fileID}/sign-url','getCurrentUser','getCurrentSelections','decrypt','onTransformRemoteChangesetByStateCache','HEARTBEAT_TIMEOUT','enableAuthServer','SUBMIT_CHANGESET','SetSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_stopTelemetryCollaborationNewChangeset','withAAD','_transformStack','_singleActiveUnitService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','string','JOIN','clear','UnitStatus','_onOffline','hostname','signUrlServerUrl','offline','parseChangesetToProtocol','_transformAndApplyRemoteChangeset','clearOfflineData','_getCurrentRevision','loadUnitOfRevision','onRemoteRej','avatar','tagLength','_waitCount','UniverInstanceType','firstValueFrom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','duration','invalid\x20output,\x20must\x20be\x20aligned','onMissingChangesets','textRanges','9516808hMAjGi','ILocalCacheService','parseProtocolChangeset','addHandlerCallback','b64DecodeUnicode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','m2Prime','min','awaitingChangeset','_transformSelections','ObjectPermissionService','onStarting','univer-pro.collaboration-client-socket-service','_state','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_tryEnsureSocket','subscribe','readyForCollab','AwaitingState','file','OfflineState','list','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','roles','close','_transformUndoredo','setCfgEnableObjInherit','@univerjs-pro/slides','upload','saveAttachment','fill','CONFLICT','/universer-api/user/session-ticket','@univerjs-pro/license','_executeRemoteChangeset','HTTPService','getLocalCacheKey','_sessionStatus$','Base','capture','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/resources','ICollaborationClientAdapterService','createCollaborator','disablePadding','unitID','_prepareConflictRecovery','IContextService','_undoRedoService','mutations','backupOfflineData','c1Prime','[CollaborationSessionService]:\x20socket\x20error','CONFLICT_CACHE_CLEAR_FAILED','CollaborationEvent','isInternalEditorID','rxjs/operators','_getUploadFileURL','open$','number','UNIVER_BASE','enableOfflineEditing','_resendTimeout','permissionRejEvent','put','_instanceService','telemetry\x20info\x20is\x20not\x20initialized','object','_remoteChangesetQueue','transformChangesets','_hasSessionsForEndpoint','_isEchoedAwaitingChangeset','loadBase','_onUserJoin','/collaborator','assign','DisposableCollection','updatePermissionObjEvent','DocStateChangeManagerService','ICollaborationSocketService','docStateChange$','@univerjs/core','confirm','saveSnapshot','[DataLoaderService]','HEARTBEAT','UNIVER_SLIDE','_queuedRemoteChangesets','awaiting_with_pending','AAD\x20not\x20supported','UniverNetwork','CommentService','delete','UniverProCollaborationClient','splice','toPrimitive','session','byteOffset','_changesetReqId','loadSlide','text-x','submit\x20changeset\x20error!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/block/','CombCmd','unitType','?size=','CONFLICT_PROCESSING','28467kFJqGf','status$','toDisposable','COLLABORATION_ENDPOINT_INVALID','_state$','_removeRoom','954546eyIeth','takeUntil','unsubscribe','_updateUnitPermissionPoint','/object/','_imageSourceCache'];_0x3671=function(){return _0x31c495;};return _0x3671();}