@univerjs-pro/collaboration-client 0.22.0 → 0.22.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 (57) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -1
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/sk-SK.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +11 -11
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3817(_0x4bf68c,_0x2f5501){_0x4bf68c=_0x4bf68c-0x17e;const _0x4e0160=_0x4e01();let _0x38173b=_0x4e0160[_0x4bf68c];return _0x38173b;}function _0x4e01(){const _0x1a212c=['snapshot','[PendingState]:\x20received\x20rejection.','_sendingTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','AwaitingState','_replaceFileID','COMPRESS_MUTATION_APPLY','onTransformRemoteChangesetByIMECache','commentUpdate$','getActiveSheet','_status$','unitId','isArray','forEach','compose','FETCH_MISSING','HELLO','_shouldReportTelemetry','fetchMiss','IPermissionService','_checkMissing','_onUserLeave','UniverProLicense','CollaborationUIEventId','_telemetryService','_handler','equals','result','_acknowledgeAwaiting','_undoStacks','6BSioIJ','_removeRoom','LocalUndoRedoService','onMutationExecutedForCollab','deserializeToCombResponse','refreshPermission','nonceLength','href','CmdRspCode','requestParams','PendingState','_timeoutTimer','SUCCUSS','_submitChangeset','onRemoteChangeset','People','startTime','getUnitType','AuthzIoHttpService','subarray','CommentService','addHandlerCallback','UniverProCollaborationClient','_commentUpdate$','enableAuthServer','ImageSourceType','HEARTBEAT','textEncoder','pauseCollaboration','not_collab','/object','positive\x20integer\x20expected,\x20got\x20','[SyncedState]:\x20received\x20acknowledgement.','IConfigService','PERMISSION_DENIED','_entityInit$','routeKey','transformStack\x20failed!','conflict','delete','entries','CollaborationSessionService','_executeRemoteChangeset','output','_onOffline','ws://127.0.0.1:8000/universer-api/comb/connect','socketService','[SyncedState]:\x20received\x20rejection.','_createInitialStateImpl','_type','_replayCachedMutations','_localeService','members','SHOULD_CLOSE_CONN','send','asObservable','_incrementRevisionNumber','HEARTBEAT_TIMEOUT_KEY','2219497nKQhwk','_socketMessageSubscription','isPermissionRej','close','UniverProtocol','POST','toString','saveChangeset','1147131LEBBOx','ImageUploadStatusType','INGEST','copyFileMeta','_toggleOffline','_onMessage','filter','loadUnit','getTypeOfUnitDisposed$','_clearHeartbeatTimer','_listenToNetworkCondition','getFocusedUnit','[PendingState]:\x20received\x20acknowledgement.','SOCKET_FAILED','/block/','PENDING','[OfflineState]:\x20received\x20rejection.','_telemetryInfo','CollaborationController','_transformAndApplyRemoteChangeset','PERSON','COMPRESS_MUTATION_SEND','cfgEnableObjInherit','IMentionIOService','originalMeta','_collaborationTimeoutTimer','packageName','_transformRemoteChangesetByIMECache','uploadFileServerUrl','_stopTelemetryCollaborationNewChangeset','getRandomValues','collaboration_new_changeset','_throwTelemetryCollaborationNewChangeset','_socket$','Quantity','LocaleService','key','_socketService','_acknowledgeAwaitingIfReady','listCollaborators','_transformIMECache','findIndex','onCommentUpdate','next','_exhaustRemoteChangesetQueue','_eventService','HTTPService','set','NOT_COLLAB','_decreaseWaiting','/allowed','find','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','enableOfflineEditing','concatMap','loadUnitOfRevision','localCacheService','onTransformRemoteChangesetByStateCache','_handlerCallback','_retryConnectingTimer','_updateState','_onRemoteRetry','AWAITING','UnitStatus','cmd','/-/object/-/batch_allowed','SetSelectionsOperation','sendChangesetTimeout','_sendHeartbeat','enableCollaboration','mapDocumentTypeToUniverInstanceType','DocCollaborationEntity','_init','BASE64','then','2196795qMsxMj','collaMsg','encrypt','CollaborationEvent','put','length','_startTelemetryCollaborationNewChangeset','getUnit','onload','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_DOC','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','enableSingleActiveInstanceLock','decrypt','_roomCreated$','/unit/','uuidv4','missingChangesets','_schedule','expected\x20Uint8Array','init','collabWebSocketUrl','DEFAULT_COLLAB_WEB_SOCKET_URL','assign','ERROR_IMAGE_TYPE','_onRecvEvent','OFFLINE','_onRemoteRejected','action','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','subUnitId','tagLength','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','JOIN_ROOM_FULL','objects','univer-pro.collaboration-client-socket-service','memberID','_onRemoteACK','registerHTTPInterceptor','csAckEvent','ReplaySubject','getValue','state$','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_cfgEnableObjInherit','resolve','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onRemoteAck','[CollaborationState]:\x20apply\x20error!','serializeCombRequest','JOIN','getInterceptPoints','_resendTimer','m2Prime','file','socket\x20close','@univerjs/sheets','_sheetTransformSelectionsService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','onSendChangeset','LEAVE','toPrimitive','encodeURIComponent','_imageSourceCache','slice','string','_change$','IImageIoService','snapshotServerUrl','shareReplay','univer-pro.collaboration-client.single-active-unit-service','isTransformMutationsWithChangesetSuccess','DataLoaderService','UNISCRIPT_RUN','ILogService','COMMENT_UPDATE','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','PERMISSION_REJ','_emitMembers','now','_sessionStatus$','update','isInternalEditorID','getTime','dispose$','readAsDataURL','buffer','length=','_createInitialState','synced','_onConnectionFailed','[CollaborationSession]','takeUntil','/universer-api/oidc/authpage','_unlockTransition','toDisposable','sessionStatus$','exports','reject','data','_getCtorByUniverInstanceType','userID','/universer-api/user/session-ticket','isSafeInteger','awaitingChangeset','fetch_missing','SnapshotService','_waitCount','localeService','c1Prime','_compressMutationService','_acknowledgedAwaitingRevision','resourceIDs','stringify','pipe','_socketReady','_rescheduleHeartbeat','_httpService','collaboration-client.config','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_logService','_transformStateCache','getCurrentUser','session.room-permission-denied','[UniverCollaborationClientPlugin]','_transformService','number\x20expected,\x20got\x20','getMember','BYTES_PER_ELEMENT','loadOfflineData','_queuedRemoteChangesets','connection\x20error','FileId','JOIN_ROOM_PERMISSION_DENIED','RECV','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','createCollaborator','getDeserializedSheetBlock','UniverDocs','_getRedoStack','awaiting_with_pending','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onLocalMutation','CompressMutationService','_collaborationPaused','telemetry\x20info\x20is\x20not\x20initialized','sessionStatus','&to=','_substituteRedoStack','?url=','_networkConditionService','4RUaols','@univerjs/docs','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','_initDependencies','[DataLoaderService]','close$','3654215CQEQAn','\x20-\x20','waitForRoom$','@univerjs-pro/license','joinRsp','signUrlServerUrl','transformSelections','min','focused$','[OfflineState]:\x20received\x20acknowledgement.','UniverNetworkPlugin','loadDoc','_state$','online$','method','CommandType','fromCollab','LIVESHARE_REQUEST_HOST','updateCursorEvent','_clearScheduledTask','code','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_updateStatus','fetching\x20missing\x20changesets\x20from\x20','debug','title','_clearLocalCache','socket\x20open.','IDLE','batchAllowed','getCurrentRevOfUnit','_getDownloadEndpointURL',',\x20got\x20','removeMember','LIVESHARE_FETCH_OPERATIONS','[FetchMissState]','size','getCfgEnableObjInherit','Disposable','requireSession','_changesetReqId','_clearCollaborationTimeoutTimer','default','override','isTransformMutationsWithChangesetFailure','objectType','onMissedChangesetFetched','@univerjs/core','_undoRedoService','save\x20fail\x20reason\x20is\x20','_remoteChangesetQueue','append','IAuthzIoService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','baseRev','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','&source=','createInstance','_registerDependencies','OTHER_CLIENTS_EDITING','_doCreateSocket','_fetchMissChangesets','get','/resources','merge','headers','SheetCollaborationEntity','unit','sort','SYNCED','commentUpdateEvent','UniverInstanceType','USERS_ENTER','error$','LIVESHARE_NEW_HOST','prototype','_onFetchMissResult','fetchThroughInterceptors','UPDATE_PERMISSION_OBJ','16265160yCwFvX','?size=','_snapshotService','_transformRemoteChangesetByStateCache','target','getWorkbookSelections','_initMergeInterceptor','mutations','onRemoteRej','getMemberID','fetchMissingChangesets','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitId','_entities','/universer-api/file/{fileID}/sign-url','UNIVER_COLLABORATION_CLIENT_PLUGIN','deleteCollaborator','CollaborationSession','clear','_snapshotServerService','_transformUndoredo','Optional','CollaborationEntity','updateOfflineData','transformUndoRedo','replace','\x0aCurrent:\x20','_getSendChangesetTimeout','unitInfo$','_applyRemoteChangeset','pending','_pendingMutations','readyForCollab','_userManagerService','_HTTPService','parseProtocolChangeset','ICollaborationSocketService','unit-cache-','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_singleActiveUnitService','_getAPIPrefixPath','responseType','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_getCurrentRevision','message$','BehaviorSubject','CombCmd','CHANGESET_ACK','_initRequestHeader','_maxTotalRetryTimeout','univer-pro.collaboration-client.network-condition.service','post','byteLength','_onConnectionOpen','unknown','AwaitingWithPendingState','getImageSourceCache','SNAPSHOT_URL_KEY','_onConflict','objectActions','_handleRemoteChangesets','add','onStateChange','UNIVER_SHEET','/new_changes','HEARTBEAT_TIMEOUT','JOIN_ROOM_NOT_EXISTS','submit\x20changeset\x20error!','ITransformService','UPDATE_CURSOR','rxjs','session.room-not-exists','toHex','_members$','UUID','/-/object/list','string\x20expected','SessionStatus','number','_univerInstanceService','location','_collaborationSessionService','closeSession','_clearRetryConnectingTimer','4625960CcnzJN','from','_toggleOnline','FAIL','url','Tools','floor','_waitForHeartbeatResponse','session.room-cnt-exceeds','_transformSelections','/collaborator','OTHER_CLIENT_EDITING','has','getConfig','_updateLocalCache','eventID','symbol','resend','selections','fromHex','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','status','EmptyMutationInfo','IUndoRedoService','unsubscribe','updatePermissionPoint','loginUrlKey','rev','UniverNetwork','LIVESHARE_OPERATION','ThresholdInterceptorFactory','crypto.getRandomValues\x20must\x20be\x20defined','[CollaborationEntity]','create','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','onMissingChangesets','_roomMembers','0.22.0','/universer-api/authz','ISingleActiveUnitService','DisposableCollection','_createHandler','ITelemetryService','list','IUniverInstanceService','NO_OTHER_CLIENTS_EDITING','MemberService','\x20to\x20','_sendHeartbeatTimer','ErrorCode','__splitChunk__','_instanceService','/universer-api/comb','_awaitingChangeset','@univerjs-pro/collaboration','/fetchmissing?from=','_getSignURL','setCfgEnableObjInherit','HEARTBEAT_INTERVAL','ISocketService','_syncEditingCollabCursor','_showConflictNotification','saveImage','sheets','UniverLicensePlugin','\x20in\x20_schedule.','getSheetBlock','Uint8Array','Wrong\x20sbox\x20length','DEFAULT_WS_SESSION_TICKET_URL','newCsEvent','encode','_getUndoStack','awaiting','RETRY_CONNECTING_MAX_COUNT','_state','/universer-api/snapshot','_injector','splice','_permissionService','getUnitOnRev','Inject','reqId','onRemoteRetry','GLOBAL_ROOMS_CNT_EXCEEDS','auth.needGotoLoginAlert','authzUrl','resolveWithBasePath','complete','UniverCollaborationClientPlugin','leaveEvent','getGlobalObject','defineProperty','cipher\x20output\x20not\x20supported','Error\x20on\x20receiving\x20event','getUnitStatus$','_getAPIPrefix','_collaborationUIEventService','createIdentifier','session','getLatestCsReqIdBySid','UniverProCollaboration','LIVESHARE_TERMINATE','onTransformIME','RevisionService','sequenceExecute','_unitID','getTypeOfUnitAdded$','getCollabEntity','capture','setWaitCount','_memberService','getOwnPropertyDescriptor','indexOf','_localCacheService','parse','CHANGESET_REJ','textRanges','CollaborationSocketService','_lockTransition','@univerjs/telemetry','executeCommand','registerDependencies','[OfflineState]:\x20received\x20changeset.','CHANGESET_SHOULD_RETRY','object','firstValueFrom','nonce','reverse','shouldCloseConn','isTransformChangesetsSuccess','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','members$','onlyLocal','setCurrentUser','UniverDrawing','reconnect','_isEchoedAwaitingChangeset','ONLINE','onSyncEditingCollabCursor','_candidateSocket','2ghFEzY','_tryEnsureSocket','includes','interceptor','WorkbookEditablePermission','/universer-api/uniscript','subject','disposeWithMe','collabSubmitChangesetUrl','hostname','_collabSessionService','error','_clearRedo','disablePadding','failed\x20to\x20apply\x20missed\x20changesets!','UniverCore','_event$','reduce','_scheduleCollaborationTimeoutTimer','open$','change$','sid','editing\x20status\x20changed\x20to','_configService','RxDisposable','_members','collaboratorID','createSocket','updateCollaborator','dispose','PSEUDO_FETCH_MISSING_RESULT','UnitEmbedded','MSG_FOR_ERROR','status$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','updatePermissionObjEvent','AAD','FETCH_MISS','apply','onTransformState','UserManagerService','_config','SOCKET_FAILED_RETRY','ERROR_EXCEED_SIZE','body','/role','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_isPermissionRej','[CollaborationSessionService]','max','editingUnit','DEFAULT_FILE_NAME','updateMember','UniverCollaborationPlugin','_commandService','@univerjs-pro/collaboration-client','onLocalMutation','Univer','_changesetSessionId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','uniscriptRunEvent','AWAITING_WITH_PENDING','event$','_transformStack','_substituteUndoStack','unitId\x20is\x20not\x20found','649678jlGtUZ','_revisionService','getRoom','DependentOn','state','take','map','revision','transformChangesets','ERROR_IMAGE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','touchDependencies','_unitInfo$','fromCharCode','getSnapshotAPIPath','CollaborativeUndoRedoService','setShowComponents','amd','IContextService','_sessions','_retryCount','\x20of\x20length\x20','push','SheetTransformSelectionsService','_disableEditing','/object/','deepClone','toggleOffline','JSONX','b64DecodeUnicode','listRoles','toggleOnline','/universer-api/stream/file/upload','liveShareOperation','getImage','_onJoinRoomEvent','actions','delay','range','RichTextEditingMutation','duration','_redoStacks','saveSnapshot','setConfig','NEW_CHANGESETS','USERS_LEAVE','JOINING','stopTime','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CLOSE_ROOM','[CollaborationSessionService]:\x20socket\x20error','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','INetworkConditionService','_socket','SUBMIT_CHANGESET','function','withCredentials','objectID','_initUnitPermissionChange','{fileID}','call','JOIN_ROOM_FAILED','params','emitEvent','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_clearTimeoutTimer','incrementRevOfUnit','_initCloseConn','type','@univerjs/protocol','loadSheet','subscribe','getCollabEntity$','getAllMembers','socket$','_resendTimeout','[CollaborationUndoRedoService]','_transitionLocked','byteOffset','ISnapshotServerService','onTransformSelections','_getLoginPath','unitID','_scheduleCompleteTimestamp','ICommandService','constructor','src','every','transformMutationsWithChangeset','FetchingMissState','name','startsWith','getDrawingImageAllowSize','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CONFLICT','offline','Injector','_startCollaboration','_sender','Subject','OfflineState','_tryReconnect','version','operators','MUTATION','/rev/','LOCAL_CACHE_INTERVAL','_resendWithTimeout','appendMutation','/universer-api/snapshot/','[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.'];_0x4e01=function(){return _0x1a212c;};return _0x4e01();}(function(_0x25cc60,_0x138838){const _0x35ccb3=_0x3817,_0xf39741=_0x25cc60();while(!![]){try{const _0x516c4e=-parseInt(_0x35ccb3(0x32d))/0x1*(-parseInt(_0x35ccb3(0x36f))/0x2)+parseInt(_0x35ccb3(0x489))/0x3+-parseInt(_0x35ccb3(0x1f7))/0x4*(-parseInt(_0x35ccb3(0x1fd))/0x5)+parseInt(_0x35ccb3(0x3fc))/0x6*(-parseInt(_0x35ccb3(0x436))/0x7)+parseInt(_0x35ccb3(0x2a0))/0x8+-parseInt(_0x35ccb3(0x43e))/0x9+-parseInt(_0x35ccb3(0x24c))/0xa;if(_0x516c4e===_0x138838)break;else _0xf39741['push'](_0xf39741['shift']());}catch(_0x552c16){_0xf39741['push'](_0xf39741['shift']());}}}(_0x4e01,0x975d1),function(_0x3800bd,_0x25b9f4){const _0x5a035e=_0x3817;typeof exports==_0x5a035e(0x31d)&&typeof module<'u'?_0x25b9f4(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/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define==_0x5a035e(0x3a6)&&define[_0x5a035e(0x380)]?define([_0x5a035e(0x1c1),_0x5a035e(0x2d6),_0x5a035e(0x22c),_0x5a035e(0x1f8),_0x5a035e(0x198),_0x5a035e(0x292),_0x5a035e(0x3b4),_0x5a035e(0x318),'rxjs/operators','@univerjs/network',_0x5a035e(0x200),'@univerjs/drawing'],_0x25b9f4):(_0x3800bd=typeof globalThis<'u'?globalThis:_0x3800bd||self,_0x25b9f4(_0x3800bd[_0x5a035e(0x412)]={},_0x3800bd[_0x5a035e(0x305)],_0x3800bd[_0x5a035e(0x33c)],_0x3800bd[_0x5a035e(0x1ea)],_0x3800bd['UniverSheets'],_0x3800bd['rxjs'],_0x3800bd[_0x5a035e(0x43a)],_0x3800bd['UniverTelemetry'],_0x3800bd[_0x5a035e(0x292)][_0x5a035e(0x3d6)],_0x3800bd[_0x5a035e(0x2bc)],_0x3800bd[_0x5a035e(0x3f4)],_0x3800bd[_0x5a035e(0x327)]));}(this,function(_0x57bbdc,_0x25767b,_0x38d3af,_0x545c79,_0x4606ad,_0x282118,_0x3eeea2,_0x5bc536,_0xecc1b5,_0x41d52c,_0x4e563e,_0x295307){const _0x124287=_0x3817;Object['defineProperty'](_0x57bbdc,Symbol['toStringTag'],{'value':'Module'});let _0x4e50db=_0x124287(0x429),_0x472429=0x4e20;function _0x59413a(_0x272547){const _0x436c6a=_0x124287;return JSON[_0x436c6a(0x1d1)](_0x272547)[_0x436c6a(0x48e)];}function _0x3d221a(_0x179d43){'@babel/helpers - typeof';const _0x5933a9=_0x124287;return _0x3d221a=typeof Symbol==_0x5933a9(0x3a6)&&typeof Symbol['iterator']==_0x5933a9(0x2b0)?function(_0x1ea1d3){return typeof _0x1ea1d3;}:function(_0x199065){const _0x203232=_0x5933a9;return _0x199065&&typeof Symbol==_0x203232(0x3a6)&&_0x199065[_0x203232(0x3c4)]===Symbol&&_0x199065!==Symbol[_0x203232(0x248)]?'symbol':typeof _0x199065;},_0x3d221a(_0x179d43);}function _0x3f6656(_0x185534,_0x3ac953){const _0x3e85ad=_0x124287;if(_0x3d221a(_0x185534)!=_0x3e85ad(0x31d)||!_0x185534)return _0x185534;var _0x526469=_0x185534[Symbol[_0x3e85ad(0x19d)]];if(_0x526469!==void 0x0){var _0xfba06=_0x526469['call'](_0x185534,_0x3ac953||_0x3e85ad(0x227));if(_0x3d221a(_0xfba06)!='object')return _0xfba06;throw TypeError(_0x3e85ad(0x212));}return(_0x3ac953===_0x3e85ad(0x1a1)?String:Number)(_0x185534);}function _0x51d5c7(_0x14d067){const _0x1b419c=_0x124287;var _0x195da2=_0x3f6656(_0x14d067,_0x1b419c(0x1a1));return _0x3d221a(_0x195da2)=='symbol'?_0x195da2:_0x195da2+'';}function _0x50ece2(_0x3675d2,_0x5afb34,_0x2f549f){const _0x3aa7c0=_0x124287;return(_0x5afb34=_0x51d5c7(_0x5afb34))in _0x3675d2?Object[_0x3aa7c0(0x2fc)](_0x3675d2,_0x5afb34,{'value':_0x2f549f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3675d2[_0x5afb34]=_0x2f549f,_0x3675d2;}let _0x5d149d=function(_0x809ed5){const _0x5903c4=_0x124287;return _0x809ed5['OTHER_CLIENT_EDITING']=_0x5903c4(0x2ab),_0x809ed5[_0x5903c4(0x41e)]='PERMISSION_DENIED',_0x809ed5[_0x5903c4(0x3cd)]=_0x5903c4(0x3cd),_0x809ed5[_0x5903c4(0x3a0)]=_0x5903c4(0x3a0),_0x809ed5[_0x5903c4(0x3ac)]=_0x5903c4(0x3ac),_0x809ed5[_0x5903c4(0x357)]=_0x5903c4(0x357),_0x809ed5['SOCKET_FAILED']=_0x5903c4(0x44b),_0x809ed5['SUBMIT_CHANGESET_TIMEOUT']='SUBMIT_CHANGESET_TIMEOUT',_0x809ed5;}({});var _0x3b3560=class{constructor(){const _0x22bdae=_0x124287;_0x50ece2(this,'_event$',new _0x282118[(_0x22bdae(0x3d2))]()),_0x50ece2(this,_0x22bdae(0x36b),this['_event$'][_0x22bdae(0x433)]());}['emitEvent'](_0x59bb77){const _0x14eeca=_0x124287;this[_0x14eeca(0x33d)]['next'](_0x59bb77);}},_0x3b9fd8=class{constructor(){const _0x17e3db=_0x124287;_0x50ece2(this,_0x17e3db(0x413),new _0x282118[(_0x17e3db(0x3d2))]()),_0x50ece2(this,_0x17e3db(0x3e6),this[_0x17e3db(0x413)][_0x17e3db(0x433)]());}[_0x124287(0x468)](_0x203dd1){const _0x1c8602=_0x124287;this[_0x1c8602(0x413)][_0x1c8602(0x469)](_0x203dd1);}};function _0x22bf51(_0x37e5e5,_0x2470bc){return function(_0x34c6d7,_0x19292c){_0x2470bc(_0x34c6d7,_0x19292c,_0x37e5e5);};}function _0x131186(_0x3824a5,_0x1c3b07,_0x111418,_0x15a19c){const _0x3316ec=_0x124287;var _0x2aa971=arguments[_0x3316ec(0x48e)],_0x3cb356=_0x2aa971<0x3?_0x1c3b07:_0x15a19c===null?_0x15a19c=Object[_0x3316ec(0x310)](_0x1c3b07,_0x111418):_0x15a19c,_0x51ac7d;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3316ec(0x3a6))_0x3cb356=Reflect['decorate'](_0x3824a5,_0x1c3b07,_0x111418,_0x15a19c);else{for(var _0x30a1e4=_0x3824a5[_0x3316ec(0x48e)]-0x1;_0x30a1e4>=0x0;_0x30a1e4--)(_0x51ac7d=_0x3824a5[_0x30a1e4])&&(_0x3cb356=(_0x2aa971<0x3?_0x51ac7d(_0x3cb356):_0x2aa971>0x3?_0x51ac7d(_0x1c3b07,_0x111418,_0x3cb356):_0x51ac7d(_0x1c3b07,_0x111418))||_0x3cb356);}return _0x2aa971>0x3&&_0x3cb356&&Object['defineProperty'](_0x1c3b07,_0x111418,_0x3cb356),_0x3cb356;}let _0x59032e=class extends _0x38d3af[_0x124287(0x223)]{constructor(_0x1229d1,_0x12a1fc){const _0x1868e1=_0x124287;super(),this[_0x1868e1(0x29b)]=_0x1229d1,this['_userManagerService']=_0x12a1fc,_0x50ece2(this,_0x1868e1(0x2c4),new Map()),_0x50ece2(this,_0x1868e1(0x497),new _0x282118[(_0x1868e1(0x3d2))]()),this[_0x1868e1(0x334)]((0x0,_0x282118[_0x1868e1(0x23d)])(this['_univerInstanceService'][_0x1868e1(0x446)](_0x38d3af[_0x1868e1(0x244)][_0x1868e1(0x28b)])[_0x1868e1(0x1d2)]((0x0,_0xecc1b5[_0x1868e1(0x375)])(_0x5c946e=>_0x5c946e[_0x1868e1(0x258)]())),this[_0x1868e1(0x29b)][_0x1868e1(0x446)](_0x38d3af[_0x1868e1(0x244)][_0x1868e1(0x493)])[_0x1868e1(0x1d2)]((0x0,_0xecc1b5['map'])(_0x4484fb=>_0x4484fb[_0x1868e1(0x258)]())))[_0x1868e1(0x3b6)](_0x31752e=>this[_0x1868e1(0x3fd)](_0x31752e)));}[_0x124287(0x1ff)](_0x504fe7){const _0x15c72e=_0x124287;return this['_roomMembers'][_0x15c72e(0x2ac)](_0x504fe7)?(0x0,_0x282118['of'])(this[_0x15c72e(0x2c4)][_0x15c72e(0x23b)](_0x504fe7)):this[_0x15c72e(0x497)]['pipe']((0x0,_0xecc1b5[_0x15c72e(0x375)])(_0x4bc06a=>{const _0x4e65ce=_0x15c72e;if(_0x4bc06a===_0x504fe7)return this['_roomMembers'][_0x4e65ce(0x23b)](_0x4bc06a);}));}[_0x124287(0x326)](_0x302342){const _0x4d9a10=_0x124287;this[_0x4d9a10(0x26d)]['setCurrentUser'](_0x302342);}['getCurrentUser'](){const _0x3be880=_0x124287;return this[_0x3be880(0x26d)]['getCurrentUser']();}[_0x124287(0x361)](_0x14a9d2,_0x537160){const _0x2de558=_0x124287;let _0x5a7e1f=this[_0x2de558(0x2c4)]['get'](_0x14a9d2);_0x5a7e1f||(_0x5a7e1f=new _0x10ba4b(),this[_0x2de558(0x2c4)][_0x2de558(0x46d)](_0x14a9d2,_0x5a7e1f),this[_0x2de558(0x497)][_0x2de558(0x469)](_0x14a9d2)),_0x5a7e1f[_0x2de558(0x361)](_0x537160);}['removeMember'](_0x120739,_0x1e5ebd){const _0x41534b=_0x124287;let _0x2ad165=this[_0x41534b(0x2c4)][_0x41534b(0x23b)](_0x120739);_0x2ad165&&_0x2ad165[_0x41534b(0x21e)](_0x1e5ebd);}[_0x124287(0x371)](_0x2ffd18){const _0x6204c=_0x124287;return this[_0x6204c(0x2c4)]['get'](_0x2ffd18);}[_0x124287(0x1df)](_0x5c4496,_0x202d29){const _0x3e6b95=_0x124287;let _0x7080ec=this['_roomMembers'][_0x3e6b95(0x23b)](_0x5c4496);if(_0x7080ec)return _0x7080ec[_0x3e6b95(0x1df)](_0x202d29);}[_0x124287(0x3fd)](_0x1a4800){const _0x3f9e35=_0x124287;let _0x258fe0=this[_0x3f9e35(0x2c4)][_0x3f9e35(0x23b)](_0x1a4800);_0x258fe0&&(_0x258fe0['dispose'](),this['_roomMembers'][_0x3f9e35(0x423)](_0x1a4800));}[_0x124287(0x34a)](){const _0x141edd=_0x124287;this['_roomMembers'][_0x141edd(0x3eb)](_0x4f0f25=>_0x4f0f25[_0x141edd(0x34a)]()),this[_0x141edd(0x2c4)][_0x141edd(0x25e)](),this[_0x141edd(0x497)][_0x141edd(0x2f8)]();}};_0x59032e=_0x131186([_0x22bf51(0x0,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0x1,(0x0,_0x38d3af['Inject'])(_0x38d3af[_0x124287(0x355)]))],_0x59032e);var _0x10ba4b=class extends _0x38d3af['Disposable']{constructor(..._0x5e0dc0){const _0x1c6333=_0x124287;super(..._0x5e0dc0),_0x50ece2(this,_0x1c6333(0x346),new Map()),_0x50ece2(this,'_members$',new _0x282118['BehaviorSubject'](this[_0x1c6333(0x346)])),_0x50ece2(this,_0x1c6333(0x324),this[_0x1c6333(0x295)]['asObservable']());}[_0x124287(0x34a)](){const _0x564ad9=_0x124287;this[_0x564ad9(0x346)][_0x564ad9(0x25e)](),this[_0x564ad9(0x295)][_0x564ad9(0x2f8)]();}[_0x124287(0x361)](_0x285ab0){const _0x279807=_0x124287;this['_members'][_0x279807(0x46d)](_0x285ab0[_0x279807(0x184)],_0x285ab0),this['_emitMembers']();}[_0x124287(0x21e)](_0x39d798){const _0x439c19=_0x124287;this[_0x439c19(0x346)][_0x439c19(0x423)](_0x39d798),this[_0x439c19(0x1ae)]();}[_0x124287(0x1df)](_0x5e3ba1){const _0x3d26c2=_0x124287;return this[_0x3d26c2(0x346)][_0x3d26c2(0x23b)](_0x5e3ba1);}[_0x124287(0x3b8)](){const _0xa5be78=_0x124287;return Array[_0xa5be78(0x2a1)](this[_0xa5be78(0x346)]['values']());}['_emitMembers'](){const _0x1720b4=_0x124287;this['_members$'][_0x1720b4(0x469)](this[_0x1720b4(0x346)]);}};let _0x510b1c=function(_0x13f519){const _0x1c94f8=_0x124287;return _0x13f519[_0x13f519[_0x1c94f8(0x219)]=0x0]='IDLE',_0x13f519[_0x13f519[_0x1c94f8(0x39d)]=0x1]=_0x1c94f8(0x39d),_0x13f519[_0x13f519[_0x1c94f8(0x4a3)]=0x2]='OFFLINE',_0x13f519[_0x13f519[_0x1c94f8(0x32a)]=0x3]='ONLINE',_0x13f519;}({}),_0x31aca8={[_0x3eeea2[_0x124287(0x404)][_0x124287(0x2a3)]]:'session.join-failed',[_0x3eeea2[_0x124287(0x404)][_0x124287(0x181)]]:'session.room-full',[_0x3eeea2[_0x124287(0x404)][_0x124287(0x28e)]]:_0x124287(0x293),[_0x3eeea2[_0x124287(0x404)][_0x124287(0x1e5)]]:_0x124287(0x1db),[_0x3eeea2[_0x124287(0x404)][_0x124287(0x2f4)]]:_0x124287(0x2a8)},_0x3be262=class extends _0x38d3af[_0x124287(0x345)]{get[_0x124287(0x1f2)](){const _0x5669fd=_0x124287;return this[_0x5669fd(0x1b0)][_0x5669fd(0x189)]();}constructor(_0x2e7fdc,_0x1e4680,_0x3a7aa3,_0x390860,_0x3be8fd,_0x229190,_0x32a0d3,_0x460d92){const _0x20d5a9=_0x124287;super(),this[_0x20d5a9(0x30a)]=_0x2e7fdc,this[_0x20d5a9(0x1d8)]=_0x3a7aa3,this[_0x20d5a9(0x344)]=_0x390860,this['_memberService']=_0x3be8fd,this['_commentService']=_0x229190,this[_0x20d5a9(0x301)]=_0x32a0d3,this['_telemetryService']=_0x460d92,_0x50ece2(this,_0x20d5a9(0x1b0),new _0x282118['BehaviorSubject'](0x0)),_0x50ece2(this,_0x20d5a9(0x1c0),this[_0x20d5a9(0x1b0)][_0x20d5a9(0x433)]()),_0x50ece2(this,'_event$',new _0x282118[(_0x20d5a9(0x3d2))]()),_0x50ece2(this,'event$',this['_event$'][_0x20d5a9(0x433)]()),_0x50ece2(this,_0x20d5a9(0x3a4),void 0x0),_0x50ece2(this,_0x20d5a9(0x437),void 0x0),_0x50ece2(this,_0x20d5a9(0x457),void 0x0),_0x50ece2(this,'_shouldReportTelemetry',!0x1),_0x50ece2(this,_0x20d5a9(0x44f),null),this[_0x20d5a9(0x3ef)]=!!this[_0x20d5a9(0x3f6)],_0x1e4680[_0x20d5a9(0x1d2)]((0x0,_0x282118[_0x20d5a9(0x1bc)])(this['dispose$']))['subscribe'](_0x535f17=>{const _0xb5c633=_0x20d5a9;if(_0x535f17!==void 0x0){if(this['_socket']=_0x535f17,_0x535f17)this['_joinRoom'](_0x535f17),this[_0xb5c633(0x437)]=_0x535f17[_0xb5c633(0x278)][_0xb5c633(0x3b6)](_0x145de8=>{const _0x4eab09=_0xb5c633;_0x145de8[_0x4eab09(0x420)]===this[_0x4eab09(0x30a)]&&this['_onCombEvent'](_0x145de8);});else{var _0x5cec8c;this[_0xb5c633(0x45e)](),this['_sessionStatus$'][_0xb5c633(0x469)](0x2),(_0x5cec8c=this['_socketMessageSubscription'])==null||_0x5cec8c['unsubscribe'](),this['_socketMessageSubscription']=null;}}});}[_0x124287(0x255)](){const _0x3066a4=_0x124287;var _0x420d99,_0x5bbb09;return(_0x420d99=(_0x5bbb09=this[_0x3066a4(0x3a4)])==null?void 0x0:_0x5bbb09[_0x3066a4(0x184)])==null?null:_0x420d99;}[_0x124287(0x34a)](){const _0x4b829a=_0x124287;super[_0x4b829a(0x34a)](),this[_0x4b829a(0x439)](),this['dispose$'][_0x4b829a(0x469)](),this[_0x4b829a(0x1b4)][_0x4b829a(0x2f8)]();}['close'](){const _0x35a3f8=_0x124287;var _0x1c02b8,_0x375198;this[_0x35a3f8(0x45e)](),(_0x1c02b8=this[_0x35a3f8(0x3a4)])==null||_0x1c02b8[_0x35a3f8(0x432)]({'cmd':_0x3eeea2['CombCmd'][_0x35a3f8(0x19c)],'data':{'roomID':this[_0x35a3f8(0x30a)]}}),(_0x375198=this[_0x35a3f8(0x3a4)])==null||_0x375198[_0x35a3f8(0x439)](),this[_0x35a3f8(0x33d)]['complete'](),this[_0x35a3f8(0x1b0)][_0x35a3f8(0x2f8)]();}['_onCombEvent'](_0x1fa679){const _0x587241=_0x124287;_0x1fa679[_0x587241(0x47e)]===_0x3eeea2['CombCmd'][_0x587241(0x192)]?this[_0x587241(0x392)](_0x1fa679):_0x1fa679[_0x587241(0x47e)]===_0x3eeea2[_0x587241(0x27a)][_0x587241(0x1e6)]&&this[_0x587241(0x4a2)](_0x1fa679);}['_joinRoom'](_0x703d8f){const _0x38bcd1=_0x124287;this['_sessionStatus$'][_0x38bcd1(0x469)](0x1),_0x703d8f[_0x38bcd1(0x432)]({'cmd':_0x3eeea2['CombCmd'][_0x38bcd1(0x192)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x38bcd1(0x30a)]}]}});}[_0x124287(0x392)](_0x1ee63d){const _0x2c56d0=_0x124287;var _0x11e8f7;if(_0x1ee63d[_0x2c56d0(0x211)]in _0x31aca8){this[_0x2c56d0(0x301)][_0x2c56d0(0x3ae)]({'id':_0x2c56d0(0x3ac),'data':_0x31aca8[_0x1ee63d[_0x2c56d0(0x211)]]}),this[_0x2c56d0(0x1b0)]['next'](0x2);return;}this[_0x2c56d0(0x1b0)][_0x2c56d0(0x469)](0x3);let _0x252715=(_0x11e8f7=_0x1ee63d['data']['roomInfos'][this[_0x2c56d0(0x30a)]])==null?void 0x0:_0x11e8f7[_0x2c56d0(0x430)];_0x252715&&_0x252715['forEach'](_0x53ac10=>this[_0x2c56d0(0x30f)][_0x2c56d0(0x361)](this[_0x2c56d0(0x30a)],_0x53ac10));}[_0x124287(0x4a2)](_0x1a70d0){const _0x2c5535=_0x124287;try{let _0x4e5439=_0x1a70d0['data'];switch(_0x4e5439['eventID']){case _0x25767b[_0x2c5535(0x48c)][_0x2c5535(0x245)]:this['_onUserJoin'](_0x4e5439),this[_0x2c5535(0x33d)]['next'](_0x4e5439);break;case _0x25767b[_0x2c5535(0x48c)]['USERS_LEAVE']:this[_0x2c5535(0x3f3)](_0x4e5439),this[_0x2c5535(0x33d)][_0x2c5535(0x469)](_0x4e5439);break;case _0x25767b['CollaborationEvent'][_0x2c5535(0x27b)]:case _0x25767b['CollaborationEvent'][_0x2c5535(0x31c)]:this[_0x2c5535(0x45b)](),this[_0x2c5535(0x226)](),this[_0x2c5535(0x33d)][_0x2c5535(0x469)](_0x4e5439);break;case _0x25767b[_0x2c5535(0x48c)][_0x2c5535(0x34d)]:this['_logService']['error'](_0x2c5535(0x22e)+JSON[_0x2c5535(0x1d1)](_0x4e5439)),this[_0x2c5535(0x33d)][_0x2c5535(0x469)](_0x4e5439);break;case _0x25767b['CollaborationEvent'][_0x2c5535(0x1ab)]:this['_commentService'][_0x2c5535(0x468)](_0x4e5439[_0x2c5535(0x1c3)]),this[_0x2c5535(0x33d)][_0x2c5535(0x469)](_0x4e5439);break;default:this[_0x2c5535(0x33d)]['next'](_0x4e5439);}}catch(_0x432dde){this[_0x2c5535(0x1d8)][_0x2c5535(0x338)](_0x432dde,_0x1a70d0);}}['_onUserJoin'](_0x18d474){const _0x4e5978=_0x124287;this[_0x4e5978(0x30f)][_0x4e5978(0x361)](this[_0x4e5978(0x30a)],_0x18d474[_0x4e5978(0x1c3)]);}['_onUserLeave'](_0x30e849){const _0xba1a5c=_0x124287;this[_0xba1a5c(0x30f)][_0xba1a5c(0x21e)](this[_0xba1a5c(0x30a)],_0x30e849['data'][_0xba1a5c(0x184)]);}async[_0x124287(0x432)](_0x49e289,_0x52d4b4){const _0x4a1d76=_0x124287;if(this[_0x4a1d76(0x1f2)]!==0x3||!this[_0x4a1d76(0x3a4)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x49e289[_0x4a1d76(0x2af)]===_0x25767b['CollaborationEvent'][_0x4a1d76(0x3a5)]&&(this[_0x4a1d76(0x33f)](),this[_0x4a1d76(0x48f)](_0x49e289)),this['_socket'][_0x4a1d76(0x432)]({'cmd':_0x3eeea2['CombCmd'][_0x4a1d76(0x440)],'routeKey':_0x52d4b4,'routeType':'','data':_0x49e289});}catch(_0x5aba09){this[_0x4a1d76(0x1d8)]['error'](_0x5aba09);}}[_0x124287(0x33f)](){const _0x5f256e=_0x124287;var _0x33e2b1;this[_0x5f256e(0x457)]=setTimeout(()=>{const _0x1e19be=_0x5f256e;this['_collaborationTimeoutTimer']=null,this[_0x1e19be(0x301)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x33e2b1=this[_0x5f256e(0x344)][_0x5f256e(0x2ad)](_0x5f256e(0x28d)))==null?_0x472429:_0x33e2b1);}[_0x124287(0x226)](){const _0x97963d=_0x124287;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x97963d(0x457)]),this[_0x97963d(0x457)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x13f895){const _0x36badc=_0x124287;if(!this[_0x36badc(0x3ef)])return;let {data:_0x58d7d0}=_0x13f895,{unitID:_0x4248ca,changeset:_0x3b2f07}=_0x58d7d0,{mutations:_0x1e9cc9,type:_0x4b9d1f}=_0x3b2f07;this[_0x36badc(0x44f)]={'unitId':_0x4248ca,'type':_0x4b9d1f,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x59413a(_0x1e9cc9)};}[_0x124287(0x45b)](){const _0x4beccc=_0x124287;if(this[_0x4beccc(0x3ef)]){if(!this[_0x4beccc(0x44f)]){this[_0x4beccc(0x1d8)]['error'](_0x4beccc(0x1bb),_0x4beccc(0x1f1));return;}this[_0x4beccc(0x44f)][_0x4beccc(0x39e)]=performance[_0x4beccc(0x1af)](),this[_0x4beccc(0x44f)][_0x4beccc(0x397)]=this[_0x4beccc(0x44f)][_0x4beccc(0x39e)]-this[_0x4beccc(0x44f)][_0x4beccc(0x40c)],this[_0x4beccc(0x3f6)][_0x4beccc(0x30d)](_0x4beccc(0x45d),this[_0x4beccc(0x44f)]),this[_0x4beccc(0x44f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x528248=_0x124287;this[_0x528248(0x44f)]=null;}};_0x3be262=_0x131186([_0x22bf51(0x2,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0x3,_0x38d3af['IConfigService']),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x59032e)),_0x22bf51(0x5,(0x0,_0x38d3af['Inject'])(_0x3b9fd8)),_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x3b3560)),_0x22bf51(0x7,(0x0,_0x38d3af[_0x124287(0x261)])(_0x5bc536[_0x124287(0x2ca)]))],_0x3be262);let _0x19c832=(0x0,_0x38d3af[_0x124287(0x302)])('collaboration-client.local-cache-service');function _0x150d9d(_0x3371a2){const _0xad008c=_0x124287;return _0xad008c(0x271)+_0x3371a2;}function _0x174995(_0x287b2a){const _0x18e498=_0x124287;let {unitID:_0x126353,mutations:_0x420c43}=_0x287b2a;return{'unitId':_0x126353,'subUnitId':_0x420c43['length']>0x0?_0x420c43[0x0][_0x18e498(0x3ad)][_0x18e498(0x17e)]:null};}let _0x108e5e=class{constructor(_0x5c915f,_0x2b38fe,_0x305f23){const _0x1daab8=_0x124287;this['_injector']=_0x5c915f,this['_transformService']=_0x2b38fe,this[_0x1daab8(0x2d3)]=_0x305f23;}['transformSelections'](_0xc0b27){const _0xea17f9=_0x124287;var _0x4a0b7a,_0x5aee73;let _0xc6f0e9=this[_0xea17f9(0x2ed)][_0xea17f9(0x23b)](_0x4606ad['SheetsSelectionsService']),{unitId:_0xa4eed2,subUnitId:_0x133ef3}=_0x174995(_0xc0b27),_0x41bc7b=_0xc6f0e9==null?void 0x0:_0xc6f0e9[_0xea17f9(0x251)](_0xa4eed2)['getCurrentSelections'](),_0x38d75a=(_0x4a0b7a=this[_0xea17f9(0x2d3)][_0xea17f9(0x490)](_0xa4eed2))==null||(_0x4a0b7a=_0x4a0b7a[_0xea17f9(0x3e7)]())==null?void 0x0:_0x4a0b7a['getSheetId']();if(_0x41bc7b[_0xea17f9(0x48e)]===0x0||!_0xa4eed2||!_0x133ef3)return;let _0x307c5c=[{'id':_0x4606ad['SetSelectionsOperation']['id'],'params':{'unitId':_0xa4eed2,'subUnitId':_0x38d75a,'selections':_0x38d3af[_0xea17f9(0x2a5)][_0xea17f9(0x389)](_0x41bc7b)}}],_0x463bc7=this['_transformService'][_0xea17f9(0x3c7)](_0xc0b27,_0x307c5c);if(!(0x0,_0x25767b[_0xea17f9(0x1a7)])(_0x463bc7))throw _0x463bc7[_0xea17f9(0x338)];let _0x3a7ce9=(_0x5aee73=_0x463bc7[_0xea17f9(0x195)][0x0])==null||(_0x5aee73=_0x5aee73['params'])==null?void 0x0:_0x5aee73[_0xea17f9(0x2b2)];if(Array[_0xea17f9(0x3ea)](_0x3a7ce9)&&_0x3a7ce9[_0xea17f9(0x48e)]){if(_0x3a7ce9[_0xea17f9(0x48e)]===_0x307c5c[0x0][_0xea17f9(0x3ad)]['selections'][_0xea17f9(0x48e)]&&_0x3a7ce9[_0xea17f9(0x3c6)]((_0x1d5d95,_0x491ad7)=>_0x38d3af['Rectangle'][_0xea17f9(0x3f8)](_0x1d5d95[_0xea17f9(0x395)],_0x307c5c[0x0][_0xea17f9(0x3ad)][_0xea17f9(0x2b2)][_0x491ad7][_0xea17f9(0x395)])))return;this['_injector']['get'](_0x38d3af[_0xea17f9(0x3c3)])[_0xea17f9(0x319)](_0x4606ad[_0xea17f9(0x480)]['id'],{'unitId':_0xa4eed2,'subUnitId':_0x38d75a,'selections':_0x3a7ce9});}}};_0x108e5e=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x1,_0x25767b[_0x124287(0x290)]),_0x22bf51(0x2,_0x38d3af['IUniverInstanceService'])],_0x108e5e);let _0x1f80e9=(0x0,_0x38d3af['createIdentifier'])(_0x124287(0x1a6)),_0x1cff2f=function(_0xb18bd3){const _0x3acef8=_0x124287;return _0xb18bd3[_0xb18bd3[_0x3acef8(0x2cd)]=0x0]=_0x3acef8(0x2cd),_0xb18bd3[_0xb18bd3[_0x3acef8(0x238)]=0x1]=_0x3acef8(0x238),_0xb18bd3;}({}),_0xc791ca=_0x124287(0x1d6);Symbol(_0xc791ca);let _0x3a2680={};function _0x47a917(_0x1e2c89){const _0x490399=_0x124287;var _0x22652;return!!((_0x22652=_0x1e2c89[_0x490399(0x3ad)])!=null&&_0x22652[_0x490399(0x2d2)]);}let _0x5d1b12=new Set([_0x4606ad['InsertSheetMutation']['id']]);function _0x3fc0b1(_0x5a0e00,_0x5358da,_0x4a9a1,_0x1f995e,_0x1e453a){const _0x2e3798=_0x124287;var _0x432276,_0x362129,_0x14301f,_0x269795;let _0x58a90d=[];for(let _0x2296c5 of _0x5a0e00){if(_0x5d1b12[_0x2e3798(0x2ac)](_0x2296c5['id'])){if(_0x58a90d[_0x2e3798(0x48e)]>0x0)break;_0x58a90d[_0x2e3798(0x385)](_0x2296c5);break;}if(_0x47a917(_0x2296c5)){if(_0x58a90d[_0x2e3798(0x48e)]>0x0)break;_0x58a90d[_0x2e3798(0x385)](_0x2296c5);break;}_0x58a90d[_0x2e3798(0x385)](_0x2296c5);}let _0x4401b4=(_0x432276=(_0x362129=_0x1e453a['getCurrentUser']())==null?void 0x0:_0x362129[_0x2e3798(0x1c5)])==null?_0x2e3798(0x282):_0x432276,_0x30a86f=(_0x14301f=(_0x269795=_0x1e453a[_0x2e3798(0x1da)]())==null?void 0x0:_0x269795[_0x2e3798(0x184)])==null?_0x2e3798(0x282):_0x14301f;return{'changeset':{'unitID':_0x5358da,'type':(0x0,_0x25767b[_0x2e3798(0x484)])(_0x4a9a1[_0x2e3798(0x40d)](_0x5358da)),'baseRev':_0x1f995e[_0x2e3798(0x21b)](_0x5358da),'revision':0x0,'userID':_0x4401b4,'memberID':_0x30a86f,'mutations':_0x58a90d},'pendingMutations':_0x5a0e00[_0x2e3798(0x1a0)](_0x58a90d['length'])};}function _0x48e9f2(_0x3aad93,_0x101b76,_0x50e5e1,_0x496808,_0x4af8cb){const _0x40c7aa=_0x124287;var _0x4a3f5a,_0x563691,_0x2e20ed,_0x3e0ca0;let _0x1249ed=[_0x3aad93[_0x40c7aa(0x33e)]((_0xc8626e,_0x3bd19c)=>{const _0x1481cc=_0x40c7aa;var _0x2b27ba;let {id:_0x479df1}=_0xc8626e,{id:_0x980ba6,type:_0x2dfdae}=_0x3bd19c,_0x40d291=(_0x2b27ba=_0xc8626e[_0x1481cc(0x3ad)])==null?{'actions':null}:_0x2b27ba,_0xc2ab86=_0x3bd19c[_0x1481cc(0x3ad)];if(_0x479df1&&_0x479df1!==_0x980ba6)throw Error(_0x1481cc(0x257)+_0x479df1+_0x1481cc(0x1fe)+_0x980ba6+'.');return{..._0xc8626e,'id':_0x980ba6,'type':_0x2dfdae,'params':{'unitId':_0xc2ab86[_0x1481cc(0x3e9)],'textRanges':_0xc2ab86[_0x1481cc(0x315)],'actions':_0x38d3af[_0x1481cc(0x38b)][_0x1481cc(0x3ec)](_0x40d291[_0x1481cc(0x393)],_0xc2ab86[_0x1481cc(0x393)])}};},{})],_0x39f349=(_0x4a3f5a=(_0x563691=_0x4af8cb[_0x40c7aa(0x1da)]())==null?void 0x0:_0x563691[_0x40c7aa(0x1c5)])==null?_0x40c7aa(0x282):_0x4a3f5a,_0x5efeaf=(_0x2e20ed=(_0x3e0ca0=_0x4af8cb[_0x40c7aa(0x1da)]())==null?void 0x0:_0x3e0ca0[_0x40c7aa(0x184)])==null?_0x40c7aa(0x282):_0x2e20ed;return{'changeset':{'unitID':_0x101b76,'type':(0x0,_0x25767b['mapDocumentTypeToUniverInstanceType'])(_0x50e5e1['getUnitType'](_0x101b76)),'baseRev':_0x496808['getCurrentRevOfUnit'](_0x101b76),'revision':0x0,'userID':_0x39f349,'memberID':_0x5efeaf,'mutations':_0x1249ed},'pendingMutations':[]};}function _0xf06eea(_0x817b93,_0x2f5637){const _0x303731=_0x124287;let _0x4f7ce7=new _0x282118[(_0x303731(0x188))](0x1);return setTimeout(()=>_0x4f7ce7['next'](_0x2f5637),_0x817b93),_0x4f7ce7[_0x303731(0x433)]()['pipe']((0x0,_0x282118[_0x303731(0x374)])(0x1));}var _0x36637f,_0x1b6f2e,_0x2f13b0;let _0x5cf168=function(_0x19de4f){const _0x50a1ba=_0x124287;return _0x19de4f[_0x50a1ba(0x46e)]=_0x50a1ba(0x419),_0x19de4f[_0x50a1ba(0x242)]='synced',_0x19de4f[_0x50a1ba(0x44d)]=_0x50a1ba(0x26a),_0x19de4f[_0x50a1ba(0x47c)]=_0x50a1ba(0x2e9),_0x19de4f[_0x50a1ba(0x36a)]=_0x50a1ba(0x1ec),_0x19de4f[_0x50a1ba(0x352)]=_0x50a1ba(0x1c9),_0x19de4f[_0x50a1ba(0x3cd)]='conflict',_0x19de4f[_0x50a1ba(0x4a3)]=_0x50a1ba(0x3ce),_0x19de4f;}({}),_0x3ea5c4=0x4e20,_0x3b6510=0x2bf20;var _0x82d669=class{constructor(_0x104f29,_0x33d7c8,_0x5b299f,_0x28725d,_0x4e79f6,_0x4abaac,_0x2dd1ac,_0x4d1edc,_0x40801e){const _0xae9136=_0x124287;this[_0xae9136(0x3c1)]=_0x104f29,this['type']=_0x33d7c8,this[_0xae9136(0x3f7)]=_0x4e79f6,this[_0xae9136(0x363)]=_0x4abaac,this[_0xae9136(0x22d)]=_0x2dd1ac,this[_0xae9136(0x370)]=_0x4d1edc,this['_localCacheService']=_0x40801e,_0x50ece2(this,_0xae9136(0x2d5),null),_0x50ece2(this,_0xae9136(0x26b),[]),this[_0xae9136(0x2d5)]=_0x5b299f,this[_0xae9136(0x26b)]=_0x28725d;}['_checkMissing'](_0x5ef20d){const _0x26d4eb=_0x124287;let _0x2d09e0=this[_0x26d4eb(0x370)]['getCurrentRevOfUnit'](this[_0x26d4eb(0x3c1)]);return _0x5ef20d[_0x26d4eb(0x376)]>_0x2d09e0+0x1?(this[_0x26d4eb(0x3f7)][_0x26d4eb(0x2c3)]({'from':_0x2d09e0,'to':_0x5ef20d[_0x26d4eb(0x376)]-0x1}),!0x0):!0x1;}[_0x124287(0x260)](_0x323548){const _0x34a843=_0x124287;this[_0x34a843(0x22d)][_0x34a843(0x264)](this[_0x34a843(0x3c1)],_0x323548);}[_0x124287(0x2a9)](_0x3cd157){const _0x3fa04a=_0x124287;var _0x2c8ce4,_0x44f8a3;(_0x2c8ce4=(_0x44f8a3=this[_0x3fa04a(0x3f7)])['onTransformSelections'])==null||_0x2c8ce4[_0x3fa04a(0x3ab)](_0x44f8a3,_0x3cd157);}['_transformIMECache'](_0x484c53){const _0x206350=_0x124287;var _0x2cf8fe,_0x54abb3;return(_0x2cf8fe=(_0x54abb3=this[_0x206350(0x3f7)])[_0x206350(0x307)])==null?void 0x0:_0x2cf8fe[_0x206350(0x3ab)](_0x54abb3,_0x484c53);}['_transformStateCache'](_0x48f8cf){const _0x4477d4=_0x124287;var _0x4a167c,_0x35ac44;return(_0x4a167c=(_0x35ac44=this[_0x4477d4(0x3f7)])[_0x4477d4(0x354)])==null?void 0x0:_0x4a167c[_0x4477d4(0x3ab)](_0x35ac44,_0x48f8cf);}[_0x124287(0x459)](_0x1b6339){const _0x27a360=_0x124287;var _0x5b2df2,_0x1d2bba,_0x4b3989;return(_0x5b2df2=(_0x1d2bba=(_0x4b3989=this[_0x27a360(0x3f7)])[_0x27a360(0x3e5)])==null?void 0x0:_0x1d2bba[_0x27a360(0x3ab)](_0x4b3989,_0x1b6339))==null?_0x1b6339:_0x5b2df2;}[_0x124287(0x24f)](_0x238322){const _0x31114e=_0x124287;var _0x17ccf7,_0x100b9e,_0x2b682c;return(_0x17ccf7=(_0x100b9e=(_0x2b682c=this['_handler'])[_0x31114e(0x477)])==null?void 0x0:_0x100b9e[_0x31114e(0x3ab)](_0x2b682c,_0x238322))==null?_0x238322:_0x17ccf7;}[_0x124287(0x2dc)](_0x2fe389){const _0x32c55a=_0x124287;if(this[_0x32c55a(0x3b3)]===_0x38d3af[_0x32c55a(0x244)][_0x32c55a(0x493)]){let {unitID:_0x57850a,mutations:_0x43e5d6,memberID:_0x2246c7}=_0x2fe389,_0x633e76=_0x43e5d6['length']>0x0?_0x43e5d6[0x0][_0x32c55a(0x3ad)][_0x32c55a(0x315)]:[];if(Array[_0x32c55a(0x3ea)](_0x633e76)&&_0x633e76['length']>0x0){var _0x1885e0,_0x3429e4;(_0x1885e0=(_0x3429e4=this[_0x32c55a(0x3f7)])[_0x32c55a(0x32b)])==null||_0x1885e0['call'](_0x3429e4,{'unitID':_0x57850a,'memberID':_0x2246c7,'textRanges':_0x633e76});}}}[_0x124287(0x2ae)](){const _0x40286d=_0x124287;var _0x3970d4;(_0x3970d4=this['_localCacheService'])==null||_0x3970d4[_0x40286d(0x263)](this['unitID'],this[_0x40286d(0x3b3)],this[_0x40286d(0x2d5)],this[_0x40286d(0x26b)]);}[_0x124287(0x277)](){const _0x10a020=_0x124287;return this[_0x10a020(0x370)][_0x10a020(0x21b)](this['unitID']);}[_0x124287(0x434)](){const _0x15989b=_0x124287;this['_revisionService'][_0x15989b(0x3b1)](this['unitID']);}['_executeRemoteChangeset'](_0x487912){const _0x1a9e48=_0x124287;let _0x1f81da=this[_0x1a9e48(0x459)](_0x487912);_0x1f81da=this[_0x1a9e48(0x24f)](_0x1f81da);let _0x542286=(0x0,_0x38d3af[_0x1a9e48(0x309)])(_0x1f81da[_0x1a9e48(0x253)],this[_0x1a9e48(0x363)],{'fromCollab':!0x0});if(!_0x542286[_0x1a9e48(0x3f9)]){var _0xd9d13b;throw _0x542286[_0x1a9e48(0x338)]instanceof Error?_0x542286[_0x1a9e48(0x338)]:Error((_0xd9d13b=_0x542286[_0x1a9e48(0x338)])==null?_0x1a9e48(0x190):_0xd9d13b);}this[_0x1a9e48(0x466)](_0x1f81da),this[_0x1a9e48(0x1d9)](_0x1f81da),this[_0x1a9e48(0x260)](_0x487912),this['_transformSelections'](_0x1f81da),this[_0x1a9e48(0x2dc)](_0x1f81da),this['_incrementRevisionNumber']();}};let _0x4e4794=class extends _0x82d669{constructor(_0x53d4be,_0x438b18,_0x56e3ec,_0x2c0a65,_0x1d6c28,_0x182326,_0x33b946,_0x562f4d,_0x2d9aaa,_0x558a45){const _0x222017=_0x124287;super(_0x53d4be,_0x438b18,null,[],_0x56e3ec,_0x33b946,_0x182326,_0x2c0a65,_0x558a45),this['_injector']=_0x1d6c28,this['_logService']=_0x562f4d,this[_0x222017(0x1dd)]=_0x2d9aaa,this[_0x222017(0x476)]=_0x558a45,_0x50ece2(this,'status',_0x222017(0x1b9));}[_0x124287(0x3db)](_0x49f82f){const _0x44c346=_0x124287;let _0x1535ef=this['_injector'][_0x44c346(0x236)](_0x2411fe,this[_0x44c346(0x3c1)],this[_0x44c346(0x3b3)],[_0x49f82f],this[_0x44c346(0x3f7)]);return _0x1535ef[_0x44c346(0x49b)](),_0x1535ef[_0x44c346(0x2ae)](),_0x1535ef;}[_0x124287(0x40a)](_0x14fc77){const _0x5d407a=_0x124287;if(this['_checkMissing'](_0x14fc77))return this[_0x5d407a(0x2ed)][_0x5d407a(0x236)](_0xfc54a4,this['unitID'],this[_0x5d407a(0x3b3)],null,[],null,[_0x14fc77],this['_handler']);try{let _0x4df1d3=this['_transformService'][_0x5d407a(0x3c7)](_0x14fc77,[_0x25767b[_0x5d407a(0x2b6)]]);if((0x0,_0x25767b['isTransformMutationsWithChangesetSuccess'])(_0x4df1d3)){let {c1Prime:_0x378230}=_0x4df1d3;return this[_0x5d407a(0x426)](_0x378230),this;}throw _0x4df1d3[_0x5d407a(0x338)];}catch(_0x289fba){return this['_logService'][_0x5d407a(0x338)](_0x289fba),this[_0x5d407a(0x286)](!0x1);}}[_0x124287(0x286)](_0x3e570b){const _0x277e83=_0x124287;return this['_injector']['createInstance'](_0x5171e4,this[_0x277e83(0x3c1)],this['type'],null,[],this[_0x277e83(0x3f7)],_0x3e570b);}[_0x124287(0x18f)](_0x89858a){const _0x1e825d=_0x124287;if(_0x89858a[_0x1e825d(0x376)]<=this[_0x1e825d(0x277)]())return this;throw Error(_0x1e825d(0x41c));}['onRemoteRej'](){const _0x3b73a7=_0x124287;throw Error(_0x3b73a7(0x42b));}['onRemoteRetry'](){return this;}[_0x124287(0x38a)](){const _0x42491e=_0x124287;return this[_0x42491e(0x2ed)][_0x42491e(0x236)](_0x24826c,this[_0x42491e(0x3c1)],this[_0x42491e(0x3b3)],null,[],this[_0x42491e(0x3f7)]);}[_0x124287(0x38e)](){return this;}['resend'](){const _0x10120a=_0x124287;throw Error(_0x10120a(0x272));}[_0x124287(0x3f0)](){const _0x22152b=_0x124287;let _0x4ea946=this['_revisionService']['getCurrentRevOfUnit'](this[_0x22152b(0x3c1)]);return this[_0x22152b(0x3f7)][_0x22152b(0x2c3)]({'from':_0x4ea946,'to':0x0}),this[_0x22152b(0x2ed)]['createInstance'](_0xfc54a4,this[_0x22152b(0x3c1)],this['type'],null,[],null,[],this['_handler']);}};_0x4e4794=_0x131186([_0x22bf51(0x3,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x5,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0x6,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0x7,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0x8,_0x25767b[_0x124287(0x290)]),_0x22bf51(0x9,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x4e4794);let _0x2411fe=_0x36637f=class extends _0x82d669{constructor(_0x3a6705,_0x516d9d,_0x406b6b,_0x5995f9,_0x3dce77,_0x431907,_0x33e3e7,_0x5eec73,_0x453a7c,_0x21f112,_0x5ea26b,_0x58e9f9,_0x44cc67,_0x1778c8){const _0x3a45d6=_0x124287;super(_0x3a6705,_0x516d9d,null,_0x406b6b,_0x5995f9,_0x453a7c,_0x44cc67,_0x431907,_0x1778c8),this[_0x3a45d6(0x2ed)]=_0x3dce77,this[_0x3a45d6(0x30f)]=_0x33e3e7,this[_0x3a45d6(0x1d8)]=_0x5eec73,this[_0x3a45d6(0x344)]=_0x21f112,this[_0x3a45d6(0x1dd)]=_0x5ea26b,this[_0x3a45d6(0x29b)]=_0x58e9f9,_0x50ece2(this,_0x3a45d6(0x2b5),_0x3a45d6(0x26a)),_0x50ece2(this,_0x3a45d6(0x3c2),null),_0x50ece2(this,_0x3a45d6(0x3e0),null);}['appendMutation'](_0x3356c9){const _0x49cbd2=_0x124287;return this[_0x49cbd2(0x26b)][_0x49cbd2(0x385)](_0x3356c9),this[_0x49cbd2(0x2ae)](),this;}['onRemoteChangeset'](_0x3d383c){const _0x17cd59=_0x124287;if(this[_0x17cd59(0x3f2)](_0x3d383c))return this[_0x17cd59(0x210)](),this[_0x17cd59(0x2ed)][_0x17cd59(0x236)](_0xfc54a4,this[_0x17cd59(0x3c1)],this[_0x17cd59(0x3b3)],null,this[_0x17cd59(0x26b)],null,[_0x3d383c],this['_handler']);try{let _0x4f8b22=this[_0x17cd59(0x1dd)]['transformMutationsWithChangeset'](_0x3d383c,this[_0x17cd59(0x26b)]);if((0x0,_0x25767b[_0x17cd59(0x1a7)])(_0x4f8b22)){let {c1Prime:_0x5cf104,m2Prime:_0x51fd19}=_0x4f8b22;this[_0x17cd59(0x426)](_0x5cf104);let _0x1497aa=this[_0x17cd59(0x2ed)][_0x17cd59(0x236)](_0x36637f,this[_0x17cd59(0x3c1)],this[_0x17cd59(0x3b3)],_0x51fd19,this[_0x17cd59(0x3f7)]);this[_0x17cd59(0x210)]();let _0x465b8b=new Date()[_0x17cd59(0x1b3)](),_0x151caa=this[_0x17cd59(0x3c2)]?Math[_0x17cd59(0x35e)](this[_0x17cd59(0x3c2)]-_0x465b8b,0x0):this[_0x17cd59(0x267)]();return _0x1497aa[_0x17cd59(0x49b)](_0x151caa),_0x1497aa;}throw _0x4f8b22[_0x17cd59(0x338)];}catch(_0xa4ad26){return this[_0x17cd59(0x1d8)][_0x17cd59(0x338)](_0xa4ad26),this[_0x17cd59(0x286)](!0x1);}}[_0x124287(0x18f)](_0x4c8d1c){const _0xf07e41=_0x124287;if(_0x4c8d1c[_0xf07e41(0x376)]<=this['_getCurrentRevision']())return this;throw Error(_0xf07e41(0x44a));}[_0x124287(0x254)](){const _0x370a4b=_0x124287;throw Error(_0x370a4b(0x3df));}[_0x124287(0x2f3)](){return this;}[_0x124287(0x38a)](){const _0x533b95=_0x124287;return this['_clearScheduledTask'](),this[_0x533b95(0x2ed)][_0x533b95(0x236)](_0x24826c,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x533b95(0x3f7)]);}['toggleOnline'](){return this;}[_0x124287(0x49b)](_0x3bb75a){const _0x4e1beb=_0x124287;let _0x5311fa=_0x3bb75a==null?this[_0x4e1beb(0x267)]():_0x3bb75a;this['_scheduleCompleteTimestamp']=new Date()[_0x4e1beb(0x1b3)]()+_0x5311fa,this[_0x4e1beb(0x3e0)]=setTimeout(()=>{const _0x158bb5=_0x4e1beb;this[_0x158bb5(0x210)]();let _0x19174b=null;switch(this[_0x158bb5(0x3b3)]){case _0x38d3af[_0x158bb5(0x244)][_0x158bb5(0x28b)]:_0x19174b=_0x3fc0b1(this[_0x158bb5(0x26b)],this[_0x158bb5(0x3c1)],this[_0x158bb5(0x29b)],this[_0x158bb5(0x370)],this[_0x158bb5(0x30f)]);break;case _0x38d3af['UniverInstanceType']['UNIVER_DOC']:_0x19174b=this['_pendingMutations'][_0x158bb5(0x3c6)](_0x36dd7f=>_0x36dd7f['id']===_0x545c79[_0x158bb5(0x396)]['id'])?_0x48e9f2(this[_0x158bb5(0x26b)],this['unitID'],this[_0x158bb5(0x29b)],this['_revisionService'],this[_0x158bb5(0x30f)]):_0x3fc0b1(this[_0x158bb5(0x26b)],this[_0x158bb5(0x3c1)],this[_0x158bb5(0x29b)],this[_0x158bb5(0x370)],this['_memberService']);break;default:throw Error(_0x158bb5(0x1ed)+this['type']+_0x158bb5(0x2e1));}let {changeset:_0x3d3074,pendingMutations:_0x250032}=_0x19174b;this[_0x158bb5(0x3f7)]['onSendChangeset'](_0x3d3074);let _0x5ae1c9=_0x250032[_0x158bb5(0x48e)]?this[_0x158bb5(0x2ed)]['createInstance'](_0x348457,this[_0x158bb5(0x3c1)],this[_0x158bb5(0x3b3)],_0x3d3074,_0x250032,this[_0x158bb5(0x3f7)],void 0x0):this[_0x158bb5(0x2ed)][_0x158bb5(0x236)](_0x5d6712,this[_0x158bb5(0x3c1)],this[_0x158bb5(0x3b3)],_0x3d3074,this['_handler']);_0x5ae1c9[_0x158bb5(0x2ae)](),this['_handler'][_0x158bb5(0x28a)](this,_0x5ae1c9);},_0x5311fa);}[_0x124287(0x267)](){const _0x33653f=_0x124287;var _0x1ab99a;let _0x30dc9c=this[_0x33653f(0x344)]['getConfig'](_0xc791ca);return(_0x1ab99a=_0x30dc9c==null?void 0x0:_0x30dc9c[_0x33653f(0x481)])==null?0x7d0:_0x1ab99a;}[_0x124287(0x2b1)](){const _0x29d75a=_0x124287;throw Error(_0x29d75a(0x2b4));}['_clearScheduledTask'](){const _0x485b11=_0x124287;this[_0x485b11(0x3e0)]!=null&&(clearTimeout(this[_0x485b11(0x3e0)]),this[_0x485b11(0x3e0)]=null);}['_onConflict'](_0x33f24a){const _0x4e7bc0=_0x124287;return this[_0x4e7bc0(0x210)](),this[_0x4e7bc0(0x2ed)][_0x4e7bc0(0x236)](_0x5171e4,this['unitID'],this[_0x4e7bc0(0x3b3)],null,this[_0x4e7bc0(0x26b)],this['_handler'],_0x33f24a);}};_0x2411fe=_0x36637f=_0x131186([_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['Injector'])),_0x22bf51(0x5,(0x0,_0x38d3af['Inject'])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x59032e)),_0x22bf51(0x7,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0x8,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0x9,_0x38d3af['IConfigService']),_0x22bf51(0xa,_0x25767b['ITransformService']),_0x22bf51(0xb,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0xc,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0xd,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x2411fe);let _0x5d6712=_0x1b6f2e=class extends _0x82d669{constructor(_0x2665fa,_0x3b3d08,_0x47c80b,_0x5dc2de,_0x3ce72c,_0x96488f,_0x4b218f,_0xa7bd25,_0x34077d,_0x1124d9,_0x45c521){const _0x29b73b=_0x124287;super(_0x2665fa,_0x3b3d08,_0x47c80b,[],_0x5dc2de,_0x4b218f,_0x1124d9,_0x96488f,_0x45c521),this[_0x29b73b(0x2ed)]=_0x3ce72c,this[_0x29b73b(0x1d8)]=_0xa7bd25,this['_transformService']=_0x34077d,_0x50ece2(this,'status',_0x29b73b(0x2e9)),_0x50ece2(this,'_resendTimeout',0x0),_0x50ece2(this,_0x29b73b(0x27d),0x0),_0x50ece2(this,_0x29b73b(0x194),void 0x0),_0x50ece2(this,_0x29b73b(0x3d1),void 0x0);}[_0x124287(0x3db)](_0x5b4a5e){const _0x37dae9=_0x124287;this[_0x37dae9(0x210)]();let _0xf5ceaf=this[_0x37dae9(0x2ed)][_0x37dae9(0x236)](_0x348457,this[_0x37dae9(0x3c1)],this[_0x37dae9(0x3b3)],this[_0x37dae9(0x2d5)],[_0x5b4a5e],this['_handler'],this[_0x37dae9(0x194)]);return _0xf5ceaf[_0x37dae9(0x2ae)](),_0xf5ceaf;}[_0x124287(0x40a)](_0x5284b8){const _0x25abd1=_0x124287;if(this[_0x25abd1(0x3f2)](_0x5284b8))return this[_0x25abd1(0x210)](),this[_0x25abd1(0x2ed)][_0x25abd1(0x236)](_0xfc54a4,this[_0x25abd1(0x3c1)],this['type'],this['_awaitingChangeset'],[],null,[_0x5284b8],this['_handler']);try{let _0x91b702=this[_0x25abd1(0x1dd)]['transformChangesets']([_0x5284b8],[this['_awaitingChangeset']],!0x1);if((0x0,_0x25767b[_0x25abd1(0x322)])(_0x91b702)){let {c1Prime:_0x17bfea,c2Prime:_0x52898a}=_0x91b702;this['_executeRemoteChangeset'](_0x17bfea[0x0]),_0x52898a[0x0]['baseRev']=this[_0x25abd1(0x277)](),this[_0x25abd1(0x210)]();let _0x5215f9=this[_0x25abd1(0x2ed)]['createInstance'](_0x1b6f2e,this['unitID'],this['type'],_0x52898a[0x0],this[_0x25abd1(0x3f7)]);return _0x5215f9['_updateLocalCache'](),_0x5215f9;}throw _0x91b702['error'];}catch(_0x3c317a){return this[_0x25abd1(0x1d8)]['error'](_0x3c317a),this['_onConflict'](!0x1);}}[_0x124287(0x18f)](_0x4dae28){const _0x4a2a5f=_0x124287;this[_0x4a2a5f(0x210)]();let _0x7cc1da=this['_revisionService'][_0x4a2a5f(0x21b)](this[_0x4a2a5f(0x3c1)]);if(_0x4dae28[_0x4a2a5f(0x376)]<=_0x7cc1da)return this;if(this[_0x4a2a5f(0x3f2)](_0x4dae28))return this[_0x4a2a5f(0x2ed)][_0x4a2a5f(0x236)](_0xfc54a4,this[_0x4a2a5f(0x3c1)],this[_0x4a2a5f(0x3b3)],this[_0x4a2a5f(0x2d5)],[],_0x4dae28[_0x4a2a5f(0x376)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x1fcd97=this['_injector']['createInstance'](_0x4e4794,this[_0x4a2a5f(0x3c1)],this[_0x4a2a5f(0x3b3)],this[_0x4a2a5f(0x3f7)]);return _0x1fcd97[_0x4a2a5f(0x2ae)](),_0x1fcd97;}[_0x124287(0x254)](_0x48ebf4){const _0xdfe388=_0x124287;return this[_0xdfe388(0x286)](!!(_0x48ebf4!=null&&_0x48ebf4['isPermissionRej']));}[_0x124287(0x2f3)](_0x45c2d6){const _0x31b311=_0x124287;return this['_maxTotalRetryTimeout']>_0x3b6510?this[_0x31b311(0x38a)]():(this['_resendTimer']=_0xf06eea(this['_resendTimeout'],{'timeout':this[_0x31b311(0x3ba)],'reqId':_0x45c2d6['reqId']}),this[_0x31b311(0x3d1)]=this['_resendTimer'][_0x31b311(0x3b6)](({reqId:_0x47a28f,timeout:_0x68bd02})=>{const _0x59502e=_0x31b311;this[_0x59502e(0x3da)](_0x47a28f,_0x68bd02);}),this);}['toggleOffline'](){const _0x31c5d7=_0x124287;return this[_0x31c5d7(0x210)](),this[_0x31c5d7(0x2ed)][_0x31c5d7(0x236)](_0x24826c,this[_0x31c5d7(0x3c1)],this['type'],this[_0x31c5d7(0x2d5)],[],this[_0x31c5d7(0x3f7)]);}[_0x124287(0x38e)](){return this;}[_0x124287(0x2b1)](){const _0xb48f91=_0x124287;this[_0xb48f91(0x3f7)][_0xb48f91(0x19b)](this[_0xb48f91(0x2d5)]);}[_0x124287(0x286)](_0x8d595d){const _0x32d173=_0x124287;return this['_clearScheduledTask'](),this[_0x32d173(0x2ed)][_0x32d173(0x236)](_0x5171e4,this[_0x32d173(0x3c1)],this[_0x32d173(0x3b3)],this['_awaitingChangeset'],[],this[_0x32d173(0x3f7)],_0x8d595d);}['_resendWithTimeout'](_0x25a423,_0x5df4df){const _0x5f5644=_0x124287;var _0x3b1450;_0x25a423===((_0x3b1450=this[_0x5f5644(0x2d5)])==null?void 0x0:_0x3b1450['reqId'])&&(this[_0x5f5644(0x2b1)](),this[_0x5f5644(0x3ba)]=_0x5df4df===0x0?0x3e8:Math[_0x5f5644(0x204)](_0x5df4df*0x2,_0x3ea5c4),this[_0x5f5644(0x27d)]+=this[_0x5f5644(0x3ba)]);}['_clearScheduledTask'](){const _0x10e1a3=_0x124287;var _0x524d8a;(_0x524d8a=this[_0x10e1a3(0x3d1)])==null||_0x524d8a[_0x10e1a3(0x2b8)](),this[_0x10e1a3(0x3ba)]=0x0,this[_0x10e1a3(0x27d)]=0x0;}};_0x5d6712=_0x1b6f2e=_0x131186([_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x5,(0x0,_0x38d3af['Inject'])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0x6,_0x38d3af['ICommandService']),_0x22bf51(0x7,_0x38d3af['ILogService']),_0x22bf51(0x8,_0x25767b[_0x124287(0x290)]),_0x22bf51(0x9,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0xa,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x5d6712);let _0x348457=_0x2f13b0=class extends _0x82d669{constructor(_0x10d82e,_0x2afa24,_0x3a300f,_0x5ab727,_0x5b8166,_0x314678,_0x2c74fa,_0x37055d,_0x1de362,_0x493760,_0x24e4c5,_0x1fcd78,_0x4840fd){const _0x52006b=_0x124287;super(_0x10d82e,_0x2afa24,_0x3a300f,_0x5ab727,_0x5b8166,_0x1de362,_0x1fcd78,_0x37055d,_0x4840fd),this[_0x52006b(0x2ed)]=_0x2c74fa,this[_0x52006b(0x1d8)]=_0x493760,this[_0x52006b(0x1dd)]=_0x24e4c5,this[_0x52006b(0x476)]=_0x4840fd,_0x50ece2(this,'status',_0x52006b(0x1ec)),_0x50ece2(this,_0x52006b(0x3ba),0x0),_0x50ece2(this,_0x52006b(0x27d),0x0),_0x50ece2(this,'_resendTimer',void 0x0),_0x50ece2(this,'_sender',void 0x0),_0x314678&&(this['_resendTimer']=_0x314678,this[_0x52006b(0x3d1)]=this[_0x52006b(0x194)][_0x52006b(0x3b6)](({reqId:_0x3dea1a,timeout:_0x36fad1})=>{this['_resendWithTimeout'](_0x3dea1a,_0x36fad1);}));}[_0x124287(0x3db)](_0xafe9f7){const _0x31fce1=_0x124287;return this['_pendingMutations'][_0x31fce1(0x385)](_0xafe9f7),this;}['onRemoteChangeset'](_0x18df8f){const _0x360115=_0x124287;if(this[_0x360115(0x3f2)](_0x18df8f))return this[_0x360115(0x210)](),this[_0x360115(0x2ed)][_0x360115(0x236)](_0xfc54a4,this[_0x360115(0x3c1)],this[_0x360115(0x3b3)],this['_awaitingChangeset'],this[_0x360115(0x26b)],null,[_0x18df8f],this[_0x360115(0x3f7)]);try{let _0x5a1ccf=this[_0x360115(0x1dd)][_0x360115(0x377)]([_0x18df8f],[this[_0x360115(0x2d5)]],!0x1);if((0x0,_0x25767b[_0x360115(0x322)])(_0x5a1ccf)){let {c1Prime:_0x4df958,c2Prime:_0x4bfd38}=_0x5a1ccf,_0x42659f=this[_0x360115(0x1dd)]['transformMutationsWithChangeset'](_0x4df958[0x0],this[_0x360115(0x26b)]);if((0x0,_0x25767b[_0x360115(0x1a7)])(_0x42659f)){let {c1Prime:_0x28ee0d,m2Prime:_0x17c4b6}=_0x42659f;return this[_0x360115(0x426)](_0x28ee0d),_0x4bfd38[0x0][_0x360115(0x233)]=this['_getCurrentRevision'](),this[_0x360115(0x210)](),this[_0x360115(0x2ed)][_0x360115(0x236)](_0x2f13b0,this['unitID'],this[_0x360115(0x3b3)],_0x4bfd38[0x0],_0x17c4b6,this['_handler'],void 0x0);}throw _0x42659f['error'];}throw _0x5a1ccf[_0x360115(0x338)];}catch(_0x19ad1b){return this[_0x360115(0x1d8)][_0x360115(0x338)](_0x19ad1b),this[_0x360115(0x286)](!0x1);}}[_0x124287(0x18f)](_0x284193){const _0x477eb7=_0x124287;this[_0x477eb7(0x210)]();let _0x1d906c=this[_0x477eb7(0x277)]();if(_0x284193[_0x477eb7(0x376)]<=_0x1d906c)return this;if(this['_checkMissing'](_0x284193))return this['_injector'][_0x477eb7(0x236)](_0xfc54a4,this[_0x477eb7(0x3c1)],this[_0x477eb7(0x3b3)],this['_awaitingChangeset'],this[_0x477eb7(0x26b)],_0x284193[_0x477eb7(0x376)],[],this['_handler']);this['_incrementRevisionNumber']();let _0xf49ef9=this['_injector']['createInstance'](_0x2411fe,this['unitID'],this['type'],this[_0x477eb7(0x26b)],this[_0x477eb7(0x3f7)]);return _0xf49ef9['_schedule'](),_0xf49ef9[_0x477eb7(0x2ae)](),_0xf49ef9;}['onRemoteRej'](_0x2feec1){const _0x510ee1=_0x124287;return this[_0x510ee1(0x286)](!!(_0x2feec1!=null&&_0x2feec1[_0x510ee1(0x438)]));}[_0x124287(0x2f3)](_0x17dd0e){const _0x4865bf=_0x124287;return this[_0x4865bf(0x27d)]>_0x3b6510?this[_0x4865bf(0x38a)]():(this[_0x4865bf(0x194)]=_0xf06eea(this[_0x4865bf(0x3ba)],{'timeout':this['_resendTimeout'],'reqId':_0x17dd0e['reqId']}),this['_sender']=this[_0x4865bf(0x194)][_0x4865bf(0x3b6)](({reqId:_0x4c7cae,timeout:_0x68e263})=>{const _0x4c2d49=_0x4865bf;this[_0x4c2d49(0x3da)](_0x4c7cae,_0x68e263);}),this);}[_0x124287(0x38a)](){const _0x5d023e=_0x124287;return this[_0x5d023e(0x210)](),this[_0x5d023e(0x2ed)][_0x5d023e(0x236)](_0x24826c,this[_0x5d023e(0x3c1)],this[_0x5d023e(0x3b3)],this[_0x5d023e(0x2d5)],this['_pendingMutations'],this[_0x5d023e(0x3f7)]);}[_0x124287(0x38e)](){return this;}[_0x124287(0x2b1)](){const _0x2af994=_0x124287;this[_0x2af994(0x3f7)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x124287(0x286)](_0x2dac5d){const _0xe80cff=_0x124287;return this[_0xe80cff(0x210)](),this['_injector'][_0xe80cff(0x236)](_0x5171e4,this[_0xe80cff(0x3c1)],this['type'],null,this[_0xe80cff(0x26b)],this[_0xe80cff(0x3f7)],_0x2dac5d);}[_0x124287(0x3da)](_0x48630d,_0x1d02f6){const _0x21b2f3=_0x124287;var _0x8c9f7;_0x48630d===((_0x8c9f7=this[_0x21b2f3(0x2d5)])==null?void 0x0:_0x8c9f7['reqId'])&&(this[_0x21b2f3(0x2b1)](),this[_0x21b2f3(0x3ba)]=_0x1d02f6===0x0?0x3e8:Math['min'](_0x1d02f6*0x2,_0x3ea5c4),this['_maxTotalRetryTimeout']+=this[_0x21b2f3(0x3ba)]);}['_clearScheduledTask'](){const _0x4507d9=_0x124287;var _0x2e0f28;(_0x2e0f28=this[_0x4507d9(0x3d1)])==null||_0x2e0f28[_0x4507d9(0x2b8)](),this['_resendTimeout']=0x0,this[_0x4507d9(0x27d)]=0x0;}};_0x348457=_0x2f13b0=_0x131186([_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x7,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0x8,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0x9,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0xa,_0x25767b['ITransformService']),_0x22bf51(0xb,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0xc,(0x0,_0x38d3af['Optional'])(_0x19c832))],_0x348457);let _0x5171e4=class extends _0x82d669{constructor(_0x73801d,_0xa31f59,_0x134ab8,_0x1ccf88,_0x1cdd22,_0x1ec46b=!0x1,_0x2a4ef7,_0x151e99,_0x2db95d,_0x25293d,_0x543635,_0x426ea0,_0x2458d6){const _0x415157=_0x124287;super(_0x73801d,_0xa31f59,_0x134ab8,_0x1ccf88,_0x1cdd22,_0x151e99,_0x2db95d,_0x25293d,_0x2458d6),this['_isPermissionRej']=_0x1ec46b,this['_permissionService']=_0x2a4ef7,this[_0x415157(0x42f)]=_0x543635,this[_0x415157(0x301)]=_0x426ea0,this[_0x415157(0x476)]=_0x2458d6,_0x50ece2(this,'status',_0x415157(0x422)),this[_0x415157(0x2dd)](),this[_0x415157(0x217)](),this[_0x415157(0x387)]();}[_0x124287(0x3db)](){return this;}[_0x124287(0x40a)](){return this;}[_0x124287(0x18f)](){return this;}['onRemoteRej'](){return this;}[_0x124287(0x2f3)](){return this;}[_0x124287(0x38a)](){return this;}[_0x124287(0x38e)](){return this;}['resend'](){const _0x34d29e=_0x124287;throw Error(_0x34d29e(0x379));}[_0x124287(0x217)](){const _0xb22869=_0x124287;var _0x5e645c;(_0x5e645c=this[_0xb22869(0x312)])==null||_0x5e645c['updateOfflineData'](this[_0xb22869(0x3c1)],this[_0xb22869(0x3b3)],null,[]);}[_0x124287(0x2dd)](){const _0x337a12=_0x124287;this[_0x337a12(0x35c)]?this['_collaborationUIEventService']['emitEvent']({'id':_0x337a12(0x41e)}):this[_0x337a12(0x301)][_0x337a12(0x3ae)]({'id':_0x337a12(0x3cd)});}['_disableEditing'](){const _0x38c47e=_0x124287;this[_0x38c47e(0x2ef)][_0x38c47e(0x2b9)](new _0x4606ad[(_0x38c47e(0x331))](this[_0x38c47e(0x3c1)])['id'],!0x1);}};_0x5171e4=_0x131186([_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3f1)])),_0x22bf51(0x7,_0x38d3af['ICommandService']),_0x22bf51(0x8,_0x38d3af['IUndoRedoService']),_0x22bf51(0x9,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0xa,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['LocaleService'])),_0x22bf51(0xb,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x3b3560)),_0x22bf51(0xc,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x5171e4);let _0x24826c=class extends _0x82d669{constructor(_0xf39431,_0x56176b,_0x1546b0,_0x2e5ffc,_0xfa4838,_0x246ac8,_0x4353b7,_0x5ec223,_0x5e2463,_0x253741){const _0x565f06=_0x124287;super(_0xf39431,_0x56176b,_0x1546b0,_0x2e5ffc,_0xfa4838,_0x5ec223,_0x5e2463,_0x4353b7,_0x253741),this[_0x565f06(0x2ed)]=_0x246ac8,_0x50ece2(this,_0x565f06(0x2b5),'offline');}[_0x124287(0x3db)](_0x80886a){const _0x225ef8=_0x124287;return this[_0x225ef8(0x26b)]['push'](_0x80886a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x569456){const _0x11b75d=_0x124287;throw Error(_0x11b75d(0x31b));}[_0x124287(0x18f)](){const _0x600a0=_0x124287;throw Error(_0x600a0(0x206));}[_0x124287(0x254)](){const _0x35e5b7=_0x124287;throw Error(_0x35e5b7(0x44e));}[_0x124287(0x2f3)](){return this;}[_0x124287(0x38a)](){return this;}[_0x124287(0x38e)](){const _0x279de9=_0x124287;let {_injector:_0x2647b7,_pendingMutations:_0x49b56d,_awaitingChangeset:_0x4008c5,unitID:_0x15f818,_handler:_0x1571e6,type:_0x4c4298}=this,_0x53d18c=_0x1be2e5(_0x2647b7,_0x15f818,_0x4c4298,_0x4008c5,_0x49b56d,_0x1571e6);return _0x53d18c instanceof _0x2411fe?_0x53d18c[_0x279de9(0x49b)]():(_0x53d18c instanceof _0x348457||_0x53d18c instanceof _0x5d6712)&&_0x53d18c[_0x279de9(0x2b1)](),_0x53d18c;}['resend'](){const _0x4c301f=_0x124287;throw Error(_0x4c301f(0x492));}};_0x24826c=_0x131186([_0x22bf51(0x5,(0x0,_0x38d3af['Inject'])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x6,(0x0,_0x38d3af['Inject'])(_0x25767b[_0x124287(0x308)])),_0x22bf51(0x7,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0x8,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0x9,(0x0,_0x38d3af['Optional'])(_0x19c832))],_0x24826c);let _0xfc54a4=class extends _0x82d669{constructor(_0xac67fe,_0x3294dc,_0x1e46e7,_0xaf0e8c,_0x518428,_0x599f5b,_0x3fbc2f,_0xacb1ff,_0x4fcfcb,_0x1f632b,_0xe0fe8b,_0x496277,_0x33c834,_0x38dd40){const _0x401195=_0x124287;super(_0xac67fe,_0x3294dc,_0x1e46e7,_0xaf0e8c,_0x3fbc2f,_0xe0fe8b,_0x496277,_0x4fcfcb,_0x38dd40),this[_0x401195(0x1cf)]=_0x518428,this['_queuedRemoteChangesets']=_0x599f5b,this[_0x401195(0x2ed)]=_0xacb1ff,this[_0x401195(0x1d8)]=_0x1f632b,this[_0x401195(0x1dd)]=_0x33c834,this[_0x401195(0x476)]=_0x38dd40,_0x50ece2(this,_0x401195(0x2b5),_0x401195(0x1c9));}[_0x124287(0x22b)](_0x57b5df){const _0x126faf=_0x124287;try{if(this['_handleRemoteChangesets'](_0x57b5df)[_0x126faf(0x49a)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x126faf(0x288)]([...this[_0x126faf(0x1e2)]][_0x126faf(0x241)]((_0x52a577,_0xab584b)=>_0x52a577[_0x126faf(0x376)]-_0xab584b[_0x126faf(0x376)]))[_0x126faf(0x49a)])return this[_0x126faf(0x1e2)]=[],this['_updateLocalCache'](),this[_0x126faf(0x3f7)][_0x126faf(0x2c3)]({'from':this[_0x126faf(0x277)](),'to':0x0}),this;let _0x1c0b8a=this[_0x126faf(0x2d5)],_0x53e241=this[_0x126faf(0x26b)],_0x46d3e0;if(_0x1c0b8a&&_0x53e241[_0x126faf(0x48e)]!==0x0)_0x46d3e0=this[_0x126faf(0x2ed)]['createInstance'](_0x348457,this[_0x126faf(0x3c1)],this[_0x126faf(0x3b3)],_0x1c0b8a,_0x53e241,this[_0x126faf(0x3f7)],void 0x0);else{if(_0x1c0b8a&&_0x53e241[_0x126faf(0x48e)]===0x0)_0x1c0b8a[_0x126faf(0x233)]=this[_0x126faf(0x277)](),_0x46d3e0=this[_0x126faf(0x2ed)][_0x126faf(0x236)](_0x5d6712,this[_0x126faf(0x3c1)],this[_0x126faf(0x3b3)],_0x1c0b8a,this[_0x126faf(0x3f7)]);else{if(_0x53e241['length']!==0x0){let _0x10855d=this[_0x126faf(0x2ed)][_0x126faf(0x236)](_0x2411fe,this['unitID'],this[_0x126faf(0x3b3)],_0x53e241,this[_0x126faf(0x3f7)]);_0x10855d['_schedule'](),_0x46d3e0=_0x10855d;}else _0x46d3e0=this[_0x126faf(0x2ed)][_0x126faf(0x236)](_0x4e4794,this['unitID'],this[_0x126faf(0x3b3)],this[_0x126faf(0x3f7)]);}}return _0x46d3e0['_updateLocalCache'](),_0x46d3e0;}catch(_0x45bbf5){return this[_0x126faf(0x1d8)][_0x126faf(0x338)](_0x126faf(0x220),_0x126faf(0x33b),_0x45bbf5),this['_injector'][_0x126faf(0x236)](_0x5171e4,this[_0x126faf(0x3c1)],this[_0x126faf(0x3b3)],this[_0x126faf(0x2d5)],this[_0x126faf(0x26b)],this[_0x126faf(0x3f7)],!0x1);}}[_0x124287(0x288)](_0x3af63b){const _0x3e11ab=_0x124287;this[_0x3e11ab(0x464)]();for(let _0x1bfda3=0x0;_0x1bfda3<_0x3af63b['length'];_0x1bfda3++){let _0x45e86a=_0x3af63b[_0x1bfda3],_0x1aeac8=this[_0x3e11ab(0x277)]();if(!(_0x45e86a[_0x3e11ab(0x376)]<=_0x1aeac8)){if(_0x45e86a[_0x3e11ab(0x376)]>_0x1aeac8+0x1)return{'missingChangesets':!0x0};if(this[_0x3e11ab(0x329)](_0x45e86a)){this[_0x3e11ab(0x3fa)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x45e86a),this[_0x3e11ab(0x464)]();}}return{'missingChangesets':!0x1};}[_0x124287(0x451)](_0x514ebb){const _0x28c44c=_0x124287;let _0x2a1ca6=_0x514ebb,_0x253efc=this['_awaitingChangeset'];if(_0x253efc){let _0x14bf05=this[_0x28c44c(0x1dd)][_0x28c44c(0x377)]([_0x514ebb],[_0x253efc],!0x1);if(!(0x0,_0x25767b[_0x28c44c(0x322)])(_0x14bf05))throw _0x14bf05[_0x28c44c(0x338)];_0x2a1ca6=_0x14bf05[_0x28c44c(0x1cd)][0x0],_0x253efc=_0x14bf05['c2Prime'][0x0];}let _0x73bb44=this[_0x28c44c(0x26b)];if(_0x73bb44[_0x28c44c(0x48e)]){let _0x48ae91=this[_0x28c44c(0x1dd)][_0x28c44c(0x3c7)](_0x2a1ca6,_0x73bb44);if(!(0x0,_0x25767b[_0x28c44c(0x1a7)])(_0x48ae91))throw _0x48ae91[_0x28c44c(0x338)];_0x2a1ca6=_0x48ae91[_0x28c44c(0x1cd)],_0x73bb44=_0x48ae91['m2Prime'];}this[_0x28c44c(0x426)](_0x2a1ca6),_0x253efc&&(_0x253efc[_0x28c44c(0x233)]=this['_getCurrentRevision']()),this[_0x28c44c(0x2d5)]=_0x253efc,this['_pendingMutations']=_0x73bb44;}['_acknowledgeAwaitingIfReady'](){const _0xb76594=_0x124287;if(!this[_0xb76594(0x2d5)]||this[_0xb76594(0x1cf)]==null)return;let _0x5d96e0=this[_0xb76594(0x277)]();if(this[_0xb76594(0x1cf)]<=_0x5d96e0)throw Error(_0xb76594(0x323)+this[_0xb76594(0x1cf)]+'.');this[_0xb76594(0x1cf)]===_0x5d96e0+0x1&&this[_0xb76594(0x3fa)]();}[_0x124287(0x3fa)](){const _0x2cf1e8=_0x124287;this['_incrementRevisionNumber'](),this[_0x2cf1e8(0x2d5)]=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x39da92){const _0x3dfc3d=_0x124287;let _0x3795dc=this[_0x3dfc3d(0x2d5)];return!_0x3795dc||!_0x3795dc[_0x3dfc3d(0x342)]||_0x3795dc[_0x3dfc3d(0x2f2)]===null||_0x3795dc['reqId']===void 0x0?!0x1:_0x39da92[_0x3dfc3d(0x3c1)]===_0x3795dc[_0x3dfc3d(0x3c1)]&&_0x39da92[_0x3dfc3d(0x342)]===_0x3795dc[_0x3dfc3d(0x342)]&&_0x39da92['reqId']===_0x3795dc['reqId'];}[_0x124287(0x2b1)](){const _0x192176=_0x124287;throw Error(_0x192176(0x1d7));}[_0x124287(0x3db)](_0x3014c4){const _0x123993=_0x124287;return this[_0x123993(0x26b)][_0x123993(0x385)](_0x3014c4),this;}[_0x124287(0x40a)](_0x26e9c3){const _0x57f403=_0x124287;return this[_0x57f403(0x1e2)][_0x57f403(0x385)](_0x26e9c3),this;}[_0x124287(0x18f)](_0x5edfc4){const _0x2be68a=_0x124287;if(this[_0x2be68a(0x2d5)]){let _0xf271b2=this[_0x2be68a(0x277)]();return _0x5edfc4[_0x2be68a(0x376)]<=_0xf271b2||(_0xf271b2+0x1===_0x5edfc4[_0x2be68a(0x376)]?(this[_0x2be68a(0x434)](),this[_0x2be68a(0x2d5)]=null,this[_0x2be68a(0x1cf)]=null):this[_0x2be68a(0x1cf)]=_0x5edfc4[_0x2be68a(0x376)]),this;}if(_0x5edfc4[_0x2be68a(0x376)]<=this[_0x2be68a(0x277)]())return this;throw Error(_0x2be68a(0x494));}[_0x124287(0x254)](_0x24f33e){const _0x32a7eb=_0x124287;return this[_0x32a7eb(0x286)](!!(_0x24f33e!=null&&_0x24f33e[_0x32a7eb(0x438)]));}[_0x124287(0x2f3)](){return this;}[_0x124287(0x38a)](){const _0x20e178=_0x124287;return this[_0x20e178(0x2ed)][_0x20e178(0x236)](_0x24826c,this['unitID'],this[_0x20e178(0x3b3)],this[_0x20e178(0x2d5)],this[_0x20e178(0x26b)],this['_handler']);}['toggleOnline'](){return this;}[_0x124287(0x286)](_0x1e91a4){const _0x17f60f=_0x124287;return this[_0x17f60f(0x2ed)][_0x17f60f(0x236)](_0x5171e4,this['unitID'],this['type'],this[_0x17f60f(0x2d5)],this[_0x17f60f(0x26b)],this[_0x17f60f(0x3f7)],_0x1e91a4);}};_0xfc54a4=_0x131186([_0x22bf51(0x7,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x8,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b['RevisionService'])),_0x22bf51(0x9,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0xa,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0xb,_0x38d3af[_0x124287(0x2b7)]),_0x22bf51(0xc,_0x25767b[_0x124287(0x290)]),_0x22bf51(0xd,(0x0,_0x38d3af['Optional'])(_0x19c832))],_0xfc54a4);function _0x1be2e5(_0x419a3c,_0x42ac00,_0x555e6a,_0x415cb9,_0x52fefa,_0x288d1c){const _0x1cc4ec=_0x124287;return _0x415cb9&&_0x52fefa[_0x1cc4ec(0x48e)]?_0x419a3c[_0x1cc4ec(0x236)](_0x348457,_0x42ac00,_0x555e6a,_0x415cb9,_0x52fefa,_0x288d1c,void 0x0):_0x415cb9?_0x419a3c[_0x1cc4ec(0x236)](_0x5d6712,_0x42ac00,_0x555e6a,_0x415cb9,_0x288d1c):_0x52fefa[_0x1cc4ec(0x48e)]?_0x419a3c[_0x1cc4ec(0x236)](_0x2411fe,_0x42ac00,_0x555e6a,_0x52fefa,_0x288d1c):_0x419a3c['createInstance'](_0x4e4794,_0x42ac00,_0x555e6a,_0x288d1c);}let _0x5817aa=class extends _0x38d3af[_0x124287(0x345)]{get[_0x124287(0x373)](){return this['_state'];}constructor(_0x1a6596,_0x374b5f,_0x316473,_0x4880bd,_0x5156fc,_0x4b968e,_0x2982c0,_0xa2020c,_0x5bea0c,_0x523e3a,_0x4cbebe,_0x47361a,_0x19f0c1,_0x3d3bd9){const _0x40d0b4=_0x124287;super(),this['unitID']=_0x1a6596,this[_0x40d0b4(0x303)]=_0x374b5f,this['_type']=_0x316473,this[_0x40d0b4(0x2ed)]=_0x4880bd,this[_0x40d0b4(0x1ce)]=_0x5156fc,this[_0x40d0b4(0x42f)]=_0x4b968e,this[_0x40d0b4(0x370)]=_0x2982c0,this['_eventService']=_0xa2020c,this['_univerInstanceService']=_0x5bea0c,this[_0x40d0b4(0x1d8)]=_0x523e3a,this[_0x40d0b4(0x363)]=_0x4cbebe,this[_0x40d0b4(0x2ef)]=_0x47361a,this[_0x40d0b4(0x273)]=_0x19f0c1,this['_localCacheService']=_0x3d3bd9,_0x50ece2(this,_0x40d0b4(0x209),new _0x282118['BehaviorSubject'](null)),_0x50ece2(this,_0x40d0b4(0x18a),this[_0x40d0b4(0x209)][_0x40d0b4(0x433)]()),_0x50ece2(this,_0x40d0b4(0x2eb),void 0x0),_0x50ece2(this,'_collaborationPaused',!0x1),_0x50ece2(this,_0x40d0b4(0x367),''),_0x50ece2(this,'_changesetReqId',0x0),_0x50ece2(this,_0x40d0b4(0x34e),this['state$'][_0x40d0b4(0x1d2)]((0x0,_0x282118[_0x40d0b4(0x375)])(_0x18a5dd=>_0x18a5dd?_0x18a5dd[_0x40d0b4(0x2b5)]:_0x40d0b4(0x3ce)),(0x0,_0x282118[_0x40d0b4(0x1a5)])(0x1))),_0x50ece2(this,_0x40d0b4(0x3bc),!0x1),_0x50ece2(this,_0x40d0b4(0x22f),[]);}async[_0x124287(0x49d)](){const _0x4d1792=_0x124287;if(this['state'])throw Error(_0x4d1792(0x368));await this[_0x4d1792(0x486)]();}[_0x124287(0x418)](){const _0x36e9ae=_0x124287;return this[_0x36e9ae(0x1f0)]=!0x0,(0x0,_0x38d3af['toDisposable'])(()=>{const _0x518ea6=_0x36e9ae;this[_0x518ea6(0x1f0)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x124287(0x365)](_0x5974ec){const _0x241331=_0x124287;this[_0x241331(0x1ee)](_0x5974ec);}[_0x124287(0x47a)](_0x4a437b){const _0x1f4301=_0x124287;this[_0x1f4301(0x2eb)]=_0x4a437b,this['_state$'][_0x1f4301(0x469)](_0x4a437b);}async[_0x124287(0x486)](){const _0x38c7c1=_0x124287;if(this[_0x38c7c1(0x47a)](await this[_0x38c7c1(0x1b8)]()),this[_0x38c7c1(0x273)]){var _0x8a9603;(_0x8a9603=this[_0x38c7c1(0x273)])==null||_0x8a9603[_0x38c7c1(0x35f)](this['unitID']),this['disposeWithMe'](this[_0x38c7c1(0x273)][_0x38c7c1(0x2ff)](this['unitID'])[_0x38c7c1(0x3b6)](_0x5778c2=>{const _0x5da15d=_0x38c7c1;this['_logService'][_0x5da15d(0x215)](_0x5da15d(0x2c0),_0x5da15d(0x343),_0x5778c2),_0x5778c2===0x1?(this[_0x5da15d(0x46b)][_0x5da15d(0x3ae)]({'id':_0x5da15d(0x2ab)}),this[_0x5da15d(0x2ef)][_0x5da15d(0x2b9)](new _0x4606ad[(_0x5da15d(0x331))](this[_0x5da15d(0x3c1)])['id'],!0x1),this[_0x5da15d(0x2ef)]['setShowComponents'](!0x1)):(this[_0x5da15d(0x2ef)][_0x5da15d(0x2b9)](new _0x4606ad[(_0x5da15d(0x331))](this[_0x5da15d(0x3c1)])['id'],!0x0),this[_0x5da15d(0x2ef)][_0x5da15d(0x37f)](!0x0));}));}let _0x50dbcf=!0x1;return this[_0x38c7c1(0x334)](this[_0x38c7c1(0x303)][_0x38c7c1(0x1c0)][_0x38c7c1(0x3b6)](_0x2ecc23=>{_0x2ecc23===0x3?this['_toggleOnline'](_0x50dbcf):_0x2ecc23===0x2&&(_0x50dbcf=!0x0,this['_toggleOffline']());})),this[_0x38c7c1(0x334)](this['session'][_0x38c7c1(0x36b)][_0x38c7c1(0x3b6)](_0x2a2f7e=>{const _0x5b647e=_0x38c7c1;try{switch(_0x2a2f7e[_0x5b647e(0x2af)]){case _0x25767b[_0x5b647e(0x48c)]['NEW_CHANGESETS']:this['_onRemoteChangeset']((0x0,_0x25767b[_0x5b647e(0x26f)])(_0x2a2f7e[_0x5b647e(0x1c3)]));break;case _0x25767b[_0x5b647e(0x48c)][_0x5b647e(0x27b)]:this[_0x5b647e(0x185)](_0x2a2f7e[_0x5b647e(0x1c3)]);break;case _0x25767b[_0x5b647e(0x48c)][_0x5b647e(0x314)]:this[_0x5b647e(0x4a4)]();break;case _0x25767b[_0x5b647e(0x48c)]['CHANGESET_SHOULD_RETRY']:this['_onRemoteRetry'](_0x2a2f7e[_0x5b647e(0x1c3)]);break;case _0x25767b[_0x5b647e(0x48c)][_0x5b647e(0x34b)]:this[_0x5b647e(0x249)](_0x2a2f7e['data']['changesets'][_0x5b647e(0x375)](_0x549a50=>(0x0,_0x25767b[_0x5b647e(0x26f)])(_0x549a50)));break;case _0x25767b['CollaborationEvent'][_0x5b647e(0x1ad)]:this[_0x5b647e(0x4a4)]({'isPermissionRej':!0x0});break;case _0x25767b[_0x5b647e(0x48c)]['UNISCRIPT_RUN']:break;}}catch(_0x26dcc1){throw console[_0x5b647e(0x338)](_0x5b647e(0x2fe),_0x26dcc1),_0x26dcc1;}})),this[_0x38c7c1(0x2eb)];}['_unlockTransition'](){const _0x1bdce5=_0x124287;this[_0x1bdce5(0x3bc)]=!0x1;}[_0x124287(0x317)](){const _0x375dcc=_0x124287;if(this[_0x375dcc(0x3bc)])throw Error(_0x375dcc(0x3dd));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x47b181){const _0x5ac513=_0x124287;this['_lockTransition'](),this[_0x5ac513(0x47a)](this[_0x5ac513(0x2eb)][_0x5ac513(0x3db)](_0x47b181)),this[_0x5ac513(0x1be)]();}['_onRemoteChangeset'](_0x2270f7){const _0x323a0b=_0x124287;if(!(_0x2270f7['revision']<=this['_revisionService'][_0x323a0b(0x21b)](this['unitID']))){if(this[_0x323a0b(0x1f0)]){this['_remoteChangesetQueue'][_0x323a0b(0x385)](_0x2270f7);return;}this['_applyRemoteChangeset'](_0x2270f7);}}[_0x124287(0x46a)](){const _0x5575f2=_0x124287;this[_0x5575f2(0x22f)][_0x5575f2(0x3eb)](_0x4f107a=>this[_0x5575f2(0x269)](_0x4f107a)),this[_0x5575f2(0x22f)]=[];}[_0x124287(0x269)](_0x29ef46){const _0x4fdad=_0x124287;let _0x104611=this[_0x4fdad(0x1ce)][_0x4fdad(0x330)][_0x4fdad(0x24a)](this['_compressMutationService']['interceptor'][_0x4fdad(0x193)]()[_0x4fdad(0x3e4)])(_0x29ef46[_0x4fdad(0x253)],null)||_0x29ef46[_0x4fdad(0x253)],_0x1d933f={..._0x29ef46,'mutations':_0x104611};this[_0x4fdad(0x317)](),this[_0x4fdad(0x47a)](this[_0x4fdad(0x2eb)][_0x4fdad(0x40a)](_0x1d933f)),this[_0x4fdad(0x1be)]();}[_0x124287(0x185)](_0x1e2679){const _0x51944e=_0x124287;this[_0x51944e(0x317)](),this[_0x51944e(0x47a)](this[_0x51944e(0x2eb)][_0x51944e(0x18f)](_0x1e2679)),this[_0x51944e(0x1be)]();}[_0x124287(0x4a4)](_0x8d5fc4){const _0x12e3e2=_0x124287;this['_lockTransition'](),this[_0x12e3e2(0x47a)](this[_0x12e3e2(0x2eb)]['onRemoteRej'](_0x8d5fc4)),this[_0x12e3e2(0x1be)]();}[_0x124287(0x47b)](_0x4ecf46){const _0x1b652c=_0x124287;this[_0x1b652c(0x317)](),this[_0x1b652c(0x47a)](this[_0x1b652c(0x2eb)]['onRemoteRetry'](_0x4ecf46)),this[_0x1b652c(0x1be)]();}[_0x124287(0x249)](_0x279722){const _0x5adaea=_0x124287;if(!(this['_state']instanceof _0xfc54a4))throw TypeError(_0x5adaea(0x3cc));let _0x3f3842=_0x279722[_0x5adaea(0x375)](_0x3b4735=>{const _0x9de909=_0x5adaea;let _0x587e81=this[_0x9de909(0x1ce)][_0x9de909(0x330)][_0x9de909(0x24a)](this[_0x9de909(0x1ce)][_0x9de909(0x330)][_0x9de909(0x193)]()['COMPRESS_MUTATION_APPLY'])(_0x3b4735[_0x9de909(0x253)],null)||_0x3b4735[_0x9de909(0x253)];return{..._0x3b4735,'mutations':_0x587e81};});this[_0x5adaea(0x317)](),this[_0x5adaea(0x47a)](this[_0x5adaea(0x2eb)][_0x5adaea(0x22b)](_0x3f3842)),this[_0x5adaea(0x1be)]();}[_0x124287(0x442)](){const _0x5ab3d8=_0x124287;this[_0x5ab3d8(0x317)](),this['_updateState'](this[_0x5ab3d8(0x2eb)][_0x5ab3d8(0x38a)]()),this[_0x5ab3d8(0x1be)]();}[_0x124287(0x2a2)](_0x39814f=!0x1){const _0x30197b=_0x124287;this['_lockTransition'](),this['_updateState'](this[_0x30197b(0x2eb)]['toggleOnline']()),this[_0x30197b(0x1be)]();let _0x2de0c1=this[_0x30197b(0x2eb)];_0x39814f&&_0x2de0c1 instanceof _0x4e4794&&(this[_0x30197b(0x317)](),this[_0x30197b(0x47a)](_0x2de0c1[_0x30197b(0x3f0)]()),this[_0x30197b(0x1be)]());}async['_createInitialState'](){return new Promise(_0x7d6ec0=>{const _0x498f27=_0x3817;this[_0x498f27(0x303)][_0x498f27(0x1c0)][_0x498f27(0x1d2)]((0x0,_0x282118[_0x498f27(0x374)])(0x1))[_0x498f27(0x3b6)](async _0x4365f2=>{const _0x393b2d=_0x498f27;_0x7d6ec0(await this[_0x393b2d(0x42c)](_0x4365f2===0x3));});});}[_0x124287(0x2c9)](){const _0x11bb83=_0x124287;let _0x1c0040=this[_0x11bb83(0x3c1)];return{'onStateChange':(_0x32f7d5,_0x11f73c)=>{const _0x52701f=_0x11bb83;if(_0x32f7d5!==this[_0x52701f(0x2eb)])throw Error(_0x52701f(0x3e1)+_0x32f7d5[_0x52701f(0x2b5)]+'\x0aAfter:\x20'+_0x11f73c[_0x52701f(0x2b5)]+_0x52701f(0x266)+this['_state']['status']);this['_updateState'](_0x11f73c);},'onSendChangeset':_0x59fb97=>{const _0x12421e=_0x11bb83;_0x59fb97[_0x12421e(0x342)]||(_0x59fb97['sid']=this[_0x12421e(0x367)],_0x59fb97['reqId']=++this[_0x12421e(0x225)]);let _0x7ad9b6={'eventID':_0x25767b['CollaborationEvent'][_0x12421e(0x3a5)],'data':{'unitID':_0x59fb97[_0x12421e(0x3c1)],'unitType':this[_0x12421e(0x42d)],'changeset':_0x59fb97,'memberID':this[_0x12421e(0x303)][_0x12421e(0x255)]()}};this[_0x12421e(0x303)][_0x12421e(0x432)](_0x7ad9b6,this[_0x12421e(0x3c1)]);},'onMissingChangesets':({from:_0x23c705,to:_0x20982e})=>{const _0x2ec1fc=_0x11bb83;this[_0x2ec1fc(0x1d8)][_0x2ec1fc(0x215)](_0x2ec1fc(0x2c0),_0x2ec1fc(0x214)+_0x23c705+_0x2ec1fc(0x2cf)+_0x20982e);let _0x43fb03={'eventID':_0x25767b[_0x2ec1fc(0x48c)]['FETCH_MISSING'],'data':{'unitID':_0x1c0040,'unitType':this['_type'],'from':_0x23c705,'to':_0x20982e}};this[_0x2ec1fc(0x303)][_0x2ec1fc(0x432)](_0x43fb03,this['unitID']);}};}async[_0x124287(0x42c)](_0x2f478c){const _0x32056a=_0x124287;var _0x27ba06,_0xc88ff2,_0x1b2c1f;let _0x185167=await((_0x27ba06=this['_localCacheService'])==null?void 0x0:_0x27ba06['loadOfflineData'](this[_0x32056a(0x3c1)])),_0x243b1d=(_0xc88ff2=_0x185167==null?void 0x0:_0x185167[_0x32056a(0x253)])==null?[]:_0xc88ff2,_0x32abf3=(_0x1b2c1f=_0x185167==null?void 0x0:_0x185167[_0x32056a(0x1c8)])==null?null:_0x1b2c1f,_0x250740=!!(_0x32abf3!=null&&_0x32abf3[_0x32056a(0x342)])&&!!(_0x32abf3!=null&&_0x32abf3[_0x32056a(0x2f2)]);this[_0x32056a(0x367)]=_0x250740?_0x32abf3['sid']:(0x0,_0x25767b[_0x32056a(0x499)])(),this[_0x32056a(0x225)]=_0x250740?_0x32abf3[_0x32056a(0x2f2)]:0x0;let _0x36edad=this[_0x32056a(0x3c1)];try{this['_replayCachedMutations'](_0x32abf3,_0x243b1d);}catch(_0x4ddfb3){this[_0x32056a(0x1d8)][_0x32056a(0x338)](_0x4ddfb3);}let _0x2c5774=this[_0x32056a(0x2c9)]();if(_0x2f478c){let _0x1585c2=_0x1be2e5(this[_0x32056a(0x2ed)],_0x36edad,this[_0x32056a(0x42d)],_0x32abf3,_0x243b1d,_0x2c5774);return _0x1585c2 instanceof _0x2411fe?_0x1585c2[_0x32056a(0x49b)]():(_0x1585c2 instanceof _0x348457||_0x1585c2 instanceof _0x5d6712)&&_0x1585c2[_0x32056a(0x2b1)](),_0x1585c2;}return this[_0x32056a(0x2ed)][_0x32056a(0x236)](_0x24826c,_0x36edad,this[_0x32056a(0x42d)],_0x32abf3,_0x243b1d,_0x2c5774);}[_0x124287(0x42e)](_0x2d2212,_0xb0f3a7){const _0x5e7291=_0x124287;var _0xfe8f7c,_0x5509c8;let _0x56e027=this[_0x5e7291(0x1ce)][_0x5e7291(0x330)]['fetchThroughInterceptors'](this[_0x5e7291(0x1ce)][_0x5e7291(0x330)][_0x5e7291(0x193)]()[_0x5e7291(0x3e4)]);(_0xfe8f7c=_0x56e027((_0x2d2212==null?void 0x0:_0x2d2212[_0x5e7291(0x253)])||[],null))==null||_0xfe8f7c[_0x5e7291(0x3eb)](_0x2b4f55=>this['_commandService'][_0x5e7291(0x319)](_0x2b4f55['id'],_0x2b4f55[_0x5e7291(0x3ad)])),(_0x5509c8=_0x56e027(_0xb0f3a7||[],null))==null||_0x5509c8['forEach'](_0x421e80=>this[_0x5e7291(0x363)][_0x5e7291(0x319)](_0x421e80['id'],_0x421e80[_0x5e7291(0x3ad)]));}};_0x5817aa=_0x131186([_0x22bf51(0x3,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['Injector'])),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x1ef)])),_0x22bf51(0x5,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['LocaleService'])),_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b['RevisionService'])),_0x22bf51(0x7,(0x0,_0x38d3af['Inject'])(_0x3b3560)),_0x22bf51(0x8,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0x9,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0xa,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0xb,_0x38d3af[_0x124287(0x3f1)]),_0x22bf51(0xc,(0x0,_0x38d3af[_0x124287(0x261)])(_0x1f80e9)),_0x22bf51(0xd,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x5817aa);let _0x4f76be=class extends _0x5817aa{constructor(_0x18b12a,_0x2caafd,_0x2f48f9,_0x3ac192,_0x5e7adf,_0x3904ca,_0x41df91,_0x2d2342,_0x3be0a7,_0x2959f2,_0x4de400,_0x508605,_0x4f0690,_0x48be3e){const _0x245cb1=_0x124287;super(_0x18b12a,_0x2f48f9,_0x2caafd,_0x3ac192,_0x5e7adf,_0x3904ca,_0x41df91,_0x2d2342,_0x3be0a7,_0x2959f2,_0x4de400,_0x508605,_0x4f0690,_0x48be3e),this['unitID']=_0x18b12a,this['type']=_0x2caafd,_0x50ece2(this,_0x245cb1(0x478),null);}[_0x124287(0x411)](_0x16c8b4){const _0x475fbc=_0x124287;this[_0x475fbc(0x478)]=_0x16c8b4;}[_0x124287(0x34a)](){const _0x2ba968=_0x124287;this[_0x2ba968(0x478)]=null,super[_0x2ba968(0x34a)]();}['_createHandler'](){const _0x17c107=_0x124287;let _0x5a7a63=super['_createHandler']();return _0x5a7a63[_0x17c107(0x307)]=_0x3feed6=>{const _0x4f741c=_0x17c107;var _0x434e19,_0x5abe20;return(_0x434e19=this[_0x4f741c(0x478)])==null||(_0x5abe20=_0x434e19['onTransformIME'])==null?void 0x0:_0x5abe20[_0x4f741c(0x3ab)](_0x434e19,_0x3feed6);},_0x5a7a63[_0x17c107(0x354)]=_0xb3c1b4=>{const _0x20bd92=_0x17c107;var _0x2f1f8f,_0x4d3fa4;return(_0x2f1f8f=this[_0x20bd92(0x478)])==null||(_0x4d3fa4=_0x2f1f8f[_0x20bd92(0x354)])==null?void 0x0:_0x4d3fa4['call'](_0x2f1f8f,_0xb3c1b4);},_0x5a7a63[_0x17c107(0x3bf)]=_0x139c85=>{const _0xab8f3e=_0x17c107;var _0x55c55b,_0x3743b4;return(_0x55c55b=this[_0xab8f3e(0x478)])==null||(_0x3743b4=_0x55c55b['onTransformSelections'])==null?void 0x0:_0x3743b4['call'](_0x55c55b,_0x139c85);},_0x5a7a63[_0x17c107(0x32b)]=_0x370531=>{const _0x192cd5=_0x17c107;var _0x2d4cc8,_0x56f4a3;return(_0x2d4cc8=this[_0x192cd5(0x478)])==null||(_0x56f4a3=_0x2d4cc8[_0x192cd5(0x32b)])==null?void 0x0:_0x56f4a3[_0x192cd5(0x3ab)](_0x2d4cc8,_0x370531);},_0x5a7a63[_0x17c107(0x3e5)]=_0x50976d=>{const _0x58a1d8=_0x17c107;var _0x41a503,_0x428a21,_0x568aa1;if(!((_0x41a503=this[_0x58a1d8(0x478)])!=null&&_0x41a503[_0x58a1d8(0x3e5)]))throw Error(_0x58a1d8(0x180));return(_0x428a21=this[_0x58a1d8(0x478)])==null||(_0x568aa1=_0x428a21[_0x58a1d8(0x3e5)])==null?void 0x0:_0x568aa1[_0x58a1d8(0x3ab)](_0x428a21,_0x50976d);},_0x5a7a63[_0x17c107(0x477)]=_0x5e776d=>{const _0x5e6e19=_0x17c107;var _0x4ca2cd,_0x2a95ad,_0x23933d;if(!((_0x4ca2cd=this['_handlerCallback'])!=null&&_0x4ca2cd[_0x5e6e19(0x477)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x2a95ad=this[_0x5e6e19(0x478)])==null||(_0x23933d=_0x2a95ad[_0x5e6e19(0x477)])==null?void 0x0:_0x23933d['call'](_0x2a95ad,_0x5e776d);},_0x5a7a63;}async[_0x124287(0x486)](){const _0x551495=_0x124287;let _0x2cb424=await super['_init']();return this[_0x551495(0x334)](this[_0x551495(0x363)][_0x551495(0x3ff)]((_0x2dc6c9,_0x2292c1)=>{const _0x50ea75=_0x551495;if(_0x2dc6c9[_0x50ea75(0x3b3)]!==_0x38d3af[_0x50ea75(0x20c)][_0x50ea75(0x3d7)]||_0x2292c1!=null&&_0x2292c1[_0x50ea75(0x20d)]||_0x2292c1!=null&&_0x2292c1[_0x50ea75(0x325)]||_0x2dc6c9['id']===_0x545c79[_0x50ea75(0x396)]['id'])return;let _0x3eca6f=_0x2dc6c9[_0x50ea75(0x3ad)];if((_0x3eca6f==null?void 0x0:_0x3eca6f[_0x50ea75(0x3e9)])!==this['unitID'])return;let _0x365a89=_0x2dc6c9,_0x4c1179=this[_0x50ea75(0x1ce)][_0x50ea75(0x330)]['fetchThroughInterceptors'](this[_0x50ea75(0x1ce)][_0x50ea75(0x330)]['getInterceptPoints']()[_0x50ea75(0x453)])([_0x365a89],this[_0x50ea75(0x29b)])||[_0x365a89];this[_0x50ea75(0x1ee)](_0x4c1179[0x0]);})),_0x2cb424;}};_0x4f76be=_0x131186([_0x22bf51(0x3,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x1ef)])),_0x22bf51(0x5,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['LocaleService'])),_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b['RevisionService'])),_0x22bf51(0x7,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x3b3560)),_0x22bf51(0x8,_0x38d3af['IUniverInstanceService']),_0x22bf51(0x9,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0xa,_0x38d3af[_0x124287(0x3c3)]),_0x22bf51(0xb,_0x38d3af[_0x124287(0x3f1)]),_0x22bf51(0xc,(0x0,_0x38d3af[_0x124287(0x261)])(_0x1f80e9)),_0x22bf51(0xd,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x4f76be);let _0xc23225=class extends _0x5817aa{constructor(_0x3db9d4,_0x30a439,_0x4ac6fe,_0x58b488,_0xbe0c21,_0xf6b556,_0x39d852,_0x59b6b8,_0x57fd09,_0x32aeeb,_0x2c1341,_0x308272,_0x37a79b,_0xac6192,_0x132f3a){const _0x55953c=_0x124287;super(_0x3db9d4,_0x4ac6fe,_0x30a439,_0x58b488,_0xbe0c21,_0xf6b556,_0x39d852,_0x57fd09,_0x32aeeb,_0x2c1341,_0x308272,_0x37a79b,_0xac6192,_0x132f3a),this[_0x55953c(0x3c1)]=_0x3db9d4,this['type']=_0x30a439,this['_sheetTransformSelectionsService']=_0x59b6b8;}[_0x124287(0x2c9)](){const _0x59b41e=_0x124287;let _0x2b0148=super[_0x59b41e(0x2c9)]();return _0x2b0148[_0x59b41e(0x3bf)]=_0x4e59c1=>this[_0x59b41e(0x199)][_0x59b41e(0x203)](_0x4e59c1),_0x2b0148;}async[_0x124287(0x486)](){const _0x12df9c=_0x124287;let _0x3729f6=await super[_0x12df9c(0x486)]();return this[_0x12df9c(0x334)](this[_0x12df9c(0x363)][_0x12df9c(0x3ff)]((_0x41263c,_0x369073)=>{const _0x178516=_0x12df9c;if(_0x41263c[_0x178516(0x3b3)]!==_0x38d3af[_0x178516(0x20c)][_0x178516(0x3d7)]||_0x369073!=null&&_0x369073['fromCollab']||_0x369073!=null&&_0x369073[_0x178516(0x325)])return;let _0x99c9f5=_0x41263c[_0x178516(0x3ad)];if((_0x99c9f5==null?void 0x0:_0x99c9f5[_0x178516(0x3e9)])!==this[_0x178516(0x3c1)])return;let _0x28f5fb=_0x41263c,_0x2eaf36=this[_0x178516(0x1ce)][_0x178516(0x330)][_0x178516(0x24a)](this[_0x178516(0x1ce)][_0x178516(0x330)][_0x178516(0x193)]()[_0x178516(0x453)])([_0x28f5fb],this[_0x178516(0x29b)])||[_0x28f5fb];this[_0x178516(0x1ee)](_0x2eaf36[0x0]);})),_0x3729f6;}};_0xc23225=_0x131186([_0x22bf51(0x3,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['Injector'])),_0x22bf51(0x4,(0x0,_0x38d3af['Inject'])(_0x25767b[_0x124287(0x1ef)])),_0x22bf51(0x5,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x461)])),_0x22bf51(0x6,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b['RevisionService'])),_0x22bf51(0x7,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x108e5e)),_0x22bf51(0x8,(0x0,_0x38d3af['Inject'])(_0x3b3560)),_0x22bf51(0x9,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0xa,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0xb,_0x38d3af['ICommandService']),_0x22bf51(0xc,_0x38d3af['IPermissionService']),_0x22bf51(0xd,(0x0,_0x38d3af[_0x124287(0x261)])(_0x1f80e9)),_0x22bf51(0xe,(0x0,_0x38d3af['Optional'])(_0x19c832))],_0xc23225);let _0x530693=(0x0,_0x38d3af[_0x124287(0x302)])(_0x124287(0x27e));function _0x1195e2(_0x4fbd34){const _0x472e2d=_0x124287;let _0x198e72=_0x4fbd34[_0x472e2d(0x1c3)],_0x240eaf=JSON[_0x472e2d(0x313)](_0x198e72);switch(_0x240eaf[_0x472e2d(0x47e)]){case _0x3eeea2[_0x472e2d(0x27a)][_0x472e2d(0x416)]:case _0x3eeea2[_0x472e2d(0x27a)][_0x472e2d(0x3ee)]:{let _0x3d69e8=_0x240eaf['infoRsp'];return{..._0x240eaf,'data':_0x3d69e8,'cmd':_0x240eaf[_0x472e2d(0x47e)]};}case _0x3eeea2['CombCmd'][_0x472e2d(0x192)]:{let _0x47309f=_0x240eaf[_0x472e2d(0x201)];return{..._0x240eaf,'data':_0x47309f,'cmd':_0x240eaf[_0x472e2d(0x47e)]};}case _0x3eeea2[_0x472e2d(0x27a)]['RECV']:{let _0x10af82=_0x240eaf[_0x472e2d(0x48a)];switch(_0x10af82['eventID']){case _0x25767b[_0x472e2d(0x48c)]['PERMISSION_REJ']:var _0x4de959;return{..._0x240eaf,'data':{..._0x10af82,'data':(_0x4de959=_0x10af82['permissionRejEvent'])==null?void 0x0:_0x4de959['cs']},'cmd':_0x240eaf['cmd']};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x27b)]:var _0x2dea35;return{..._0x240eaf,'data':{..._0x10af82,'data':(_0x2dea35=_0x10af82[_0x472e2d(0x187)])==null?void 0x0:_0x2dea35['cs']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b['CollaborationEvent'][_0x472e2d(0x39b)]:var _0x5da07e;return{..._0x240eaf,'data':{..._0x10af82,'data':(_0x5da07e=_0x10af82[_0x472e2d(0x2e6)])==null?void 0x0:_0x5da07e['cs']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x314)]:var _0x35606f;return{..._0x240eaf,'data':{..._0x10af82,'data':(_0x35606f=_0x10af82['csRejEvent'])==null?void 0x0:_0x35606f['cs']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x31c)]:var _0x69f5d0;return{..._0x240eaf,'data':{..._0x10af82,'data':(_0x69f5d0=_0x10af82['csShouldRetryEvent'])==null?void 0x0:_0x69f5d0['cs']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x291)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x20f)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b['CollaborationEvent']['USERS_ENTER']:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82['joinEvent']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x39c)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x2fa)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x247)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82['liveShareNewHost']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x21f)]:case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x2bd)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x390)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)]['LIVESHARE_TERMINATE']:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82['liveShareNewHost']},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x34d)]:return{..._0x240eaf,'data':_0x10af82,'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x1ab)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x243)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b['CollaborationEvent'][_0x472e2d(0x24b)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x350)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x431)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x321)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};case _0x25767b[_0x472e2d(0x48c)][_0x472e2d(0x1a9)]:return{..._0x240eaf,'data':{..._0x10af82,'data':_0x10af82[_0x472e2d(0x369)]},'cmd':_0x240eaf[_0x472e2d(0x47e)]};default:return _0x240eaf;}}default:return _0x240eaf;}}function _0x12070a(_0x1a0ae5){const _0x567fcc=_0x124287;switch(_0x1a0ae5['cmd']){case _0x3eeea2[_0x567fcc(0x27a)][_0x567fcc(0x416)]:case _0x3eeea2[_0x567fcc(0x27a)]['HELLO']:return JSON[_0x567fcc(0x1d1)]({'cmd':_0x1a0ae5[_0x567fcc(0x47e)],'routeKey':_0x1a0ae5['routeKey']});case _0x3eeea2[_0x567fcc(0x27a)][_0x567fcc(0x440)]:{let _0x5b1d5f;switch(_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x2af)]){case _0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x291)]:_0x5b1d5f={'eventID':_0x25767b['CollaborationEvent'][_0x567fcc(0x291)],'updateCursorEvent':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x1c3)]};break;case _0x25767b[_0x567fcc(0x48c)]['USERS_LEAVE']:_0x5b1d5f={'eventID':_0x25767b['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x1c3)]};break;case _0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x245)]:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)]['USERS_ENTER'],'joinEvent':_0x1a0ae5[_0x567fcc(0x1c3)]['data']};break;case _0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x247)]:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x247)],'liveShareNewHost':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x1c3)]};break;case _0x25767b['CollaborationEvent'][_0x567fcc(0x2bd)]:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x2bd)],'liveShareOperation':_0x1a0ae5['data'][_0x567fcc(0x1c3)]};break;case _0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x306)]:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x1c3)]};break;case _0x25767b[_0x567fcc(0x48c)]['LIVESHARE_REQUEST_HOST']:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x20e)],'liveShareRequestHost':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x1c3)]};break;case _0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x21f)]:_0x5b1d5f={'eventID':_0x25767b[_0x567fcc(0x48c)][_0x567fcc(0x21f)]};break;default:_0x5b1d5f={'eventID':_0x1a0ae5[_0x567fcc(0x1c3)][_0x567fcc(0x2af)]};}return JSON[_0x567fcc(0x1d1)]({'cmd':_0x1a0ae5[_0x567fcc(0x47e)],'routeKey':_0x1a0ae5['routeKey'],'collaMsg':_0x5b1d5f});}case _0x3eeea2[_0x567fcc(0x27a)][_0x567fcc(0x192)]:return JSON[_0x567fcc(0x1d1)]({'cmd':_0x1a0ae5['cmd'],'routeKey':_0x1a0ae5['routeKey'],'joinReq':_0x1a0ae5['data']});case _0x3eeea2[_0x567fcc(0x27a)][_0x567fcc(0x19c)]:return JSON[_0x567fcc(0x1d1)]({'cmd':_0x1a0ae5[_0x567fcc(0x47e)],'routeKey':_0x1a0ae5[_0x567fcc(0x420)],'leaveReq':_0x1a0ae5[_0x567fcc(0x1c3)]});default:throw Error(_0x567fcc(0x1e7));}}let _0x3a6db1=(0x0,_0x38d3af[_0x124287(0x302)])(_0x124287(0x183));function _0x4514b1(_0x578970,_0x205b87,_0x409a5c){const _0x5c8d5e=_0x124287;return _0x578970+'/'+_0x205b87+_0x5c8d5e(0x498)+_0x409a5c+_0x5c8d5e(0x28c);}let _0x441833=class extends _0x38d3af['Disposable']{constructor(_0x337641,_0x4d3086,_0x48071f,_0x390018,_0x4d74a8){const _0x2fa99f=_0x124287;super(),this[_0x2fa99f(0x2ed)]=_0x337641,this[_0x2fa99f(0x1d5)]=_0x4d3086,this[_0x2fa99f(0x344)]=_0x48071f,this[_0x2fa99f(0x1d8)]=_0x390018,this[_0x2fa99f(0x25f)]=_0x4d74a8;}[_0x124287(0x239)](_0x47230b){const _0x117152=_0x124287;let _0x5893b9=this[_0x117152(0x2ed)][_0x117152(0x23b)](_0x41d52c[_0x117152(0x2db)]);if(!_0x5893b9)throw Error(_0x117152(0x1ac));let _0x5b917a=_0x5893b9[_0x117152(0x348)](_0x47230b);if(!_0x5b917a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x42bfb0=new _0x38d3af[(_0x117152(0x2c8))](),_0x1a3b73=new _0x282118[(_0x117152(0x3d2))]();_0x42bfb0[_0x117152(0x289)](_0x5b917a[_0x117152(0x1fc)][_0x117152(0x3b6)](_0x1fdee6=>_0x1a3b73[_0x117152(0x469)](_0x1fdee6))),_0x42bfb0[_0x117152(0x289)]((0x0,_0x38d3af[_0x117152(0x1bf)])(()=>_0x1a3b73[_0x117152(0x2f8)]()));let _0x32e3f7=new _0x282118[(_0x117152(0x3d2))]();_0x42bfb0[_0x117152(0x289)](_0x5b917a['error$'][_0x117152(0x3b6)](_0x1bd3cc=>_0x32e3f7[_0x117152(0x469)](_0x1bd3cc))),_0x42bfb0[_0x117152(0x289)]((0x0,_0x38d3af[_0x117152(0x1bf)])(()=>_0x32e3f7['complete']()));let _0x533ae4=new _0x282118[(_0x117152(0x3d2))]();_0x42bfb0[_0x117152(0x289)](_0x5b917a[_0x117152(0x278)][_0x117152(0x3b6)](_0x39bdd0=>{const _0x3bb895=_0x117152;let _0x11c9f5=_0x1195e2(_0x39bdd0);_0x533ae4[_0x3bb895(0x469)](_0x11c9f5);})),_0x42bfb0['add']((0x0,_0x38d3af[_0x117152(0x1bf)])(()=>_0x533ae4[_0x117152(0x2f8)]()));let _0x281192,_0x3e0946=()=>{const _0x41d876=_0x117152;_0x32e3f7[_0x41d876(0x469)](new Event(_0x41d876(0x1e3))),_0x1a3b73['next'](new Event(_0x41d876(0x1e3))),_0x281192[_0x41d876(0x439)]();};return _0x281192={'memberID':'','close$':_0x1a3b73['asObservable'](),'error$':_0x32e3f7['asObservable'](),'open$':_0x5b917a[_0x117152(0x340)],'message$':_0x533ae4[_0x117152(0x433)](),'send':_0x49ea00=>{const _0x3f3fca=_0x117152;if(_0x49ea00['cmd']===_0x3eeea2[_0x3f3fca(0x27a)][_0x3f3fca(0x440)]){if(_0x49ea00[_0x3f3fca(0x1c3)]['eventID']===_0x25767b[_0x3f3fca(0x48c)][_0x3f3fca(0x3a5)]){this[_0x3f3fca(0x409)](_0x281192,_0x49ea00[_0x3f3fca(0x1c3)])['catch'](_0x44d4b9=>{const _0x57bcb9=_0x3f3fca;this[_0x57bcb9(0x1d8)]['error'](_0x44d4b9),_0x3e0946();});return;}if(_0x49ea00[_0x3f3fca(0x1c3)][_0x3f3fca(0x2af)]===_0x25767b[_0x3f3fca(0x48c)][_0x3f3fca(0x3ed)]){let _0x32bf1e=_0x49ea00[_0x3f3fca(0x1c3)];this[_0x3f3fca(0x23a)](_0x32bf1e)[_0x3f3fca(0x488)](_0xa5bf66=>{const _0x59b08f=_0x3f3fca;_0x533ae4[_0x59b08f(0x469)]({'cmd':_0x3eeea2[_0x59b08f(0x27a)][_0x59b08f(0x1e6)],'code':_0x3eeea2['CmdRspCode']['OK'],'routeKey':_0x32bf1e[_0x59b08f(0x1c3)][_0x59b08f(0x3c1)],'routeType':'','data':{'eventID':_0x25767b['CollaborationEvent'][_0x59b08f(0x34b)],'data':{'changesets':_0xa5bf66}}});})['catch'](_0x322ea9=>{this['_logService']['error'](_0x322ea9),_0x3e0946();});return;}}_0x5b917a[_0x3f3fca(0x432)](_0x12070a(_0x49ea00));},'close':()=>{const _0x3a13ce=_0x117152;_0x5b917a[_0x3a13ce(0x439)](),_0x42bfb0[_0x3a13ce(0x34a)]();}},_0x281192;}async[_0x124287(0x409)](_0xd28028,_0x580637){const _0x4b3be1=_0x124287;var _0x3f2c0e;let {unitType:_0x353a08,unitID:_0x164a47,changeset:_0x4d33b9}=_0x580637[_0x4b3be1(0x1c3)],_0x361ef1={'unitID':_0x164a47,'memberID':_0xd28028['memberID'],'type':_0x353a08,'changeset':(0x0,_0x25767b['parseChangesetToProtocol'])(_0x4d33b9)},_0x53ffb3=this[_0x4b3be1(0x344)][_0x4b3be1(0x2ad)](_0xc791ca),_0x20d89a=_0x4514b1((_0x3f2c0e=_0x53ffb3==null?void 0x0:_0x53ffb3[_0x4b3be1(0x335)])==null?_0x4b3be1(0x2d4):_0x3f2c0e,_0x353a08,_0x164a47);try{await this[_0x4b3be1(0x1d5)]['post'](_0x20d89a,{'body':_0x361ef1});}catch(_0x46d6c9){throw this['_logService']['error'](_0x4b3be1(0x1bb),_0x4b3be1(0x28f)),_0x46d6c9;}}async[_0x124287(0x23a)](_0x2278b3){const _0x497d30=_0x124287;let {unitID:_0x4708c0,from:_0x4fc23e,to:_0x1f301a,unitType:_0x5d7c5a}=_0x2278b3[_0x497d30(0x1c3)];return(await this['_snapshotServerService'][_0x497d30(0x256)]({'metadata':void 0x0},{'unitID':_0x4708c0,'type':_0x5d7c5a,'from':_0x4fc23e,'to':_0x1f301a}))['changesets'][_0x497d30(0x375)](_0xd53370=>((_0xd53370[_0x497d30(0x253)]===null||_0xd53370[_0x497d30(0x253)]===void 0x0)&&(_0xd53370['mutations']=[]),_0xd53370));}};_0x441833=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['Injector'])),_0x22bf51(0x1,(0x0,_0x38d3af['Inject'])(_0x41d52c[_0x124287(0x46c)])),_0x22bf51(0x2,_0x38d3af[_0x124287(0x41d)]),_0x22bf51(0x3,_0x38d3af['ILogService']),_0x22bf51(0x4,_0x25767b[_0x124287(0x3be)])],_0x441833);let _0x4bcb39=class extends _0x38d3af[_0x124287(0x223)]{get[_0x124287(0x3a4)](){const _0x1df060=_0x124287;return this[_0x1df060(0x45f)]['getValue']();}constructor(_0x10aca2,_0x1e34e4,_0x36d5b6,_0xa97c10,_0x4ff9fe,_0x476e50){const _0x31d47a=_0x124287;super(),this[_0x31d47a(0x2ed)]=_0x10aca2,this[_0x31d47a(0x1d8)]=_0x1e34e4,this[_0x31d47a(0x344)]=_0x36d5b6,this[_0x31d47a(0x463)]=_0xa97c10,this[_0x31d47a(0x301)]=_0x4ff9fe,this['_networkConditionService']=_0x476e50,_0x50ece2(this,_0x31d47a(0x45f),new _0x282118[(_0x31d47a(0x279))](void 0x0)),_0x50ece2(this,_0x31d47a(0x3b9),this[_0x31d47a(0x45f)][_0x31d47a(0x433)]()),_0x50ece2(this,_0x31d47a(0x32c),null),_0x50ece2(this,_0x31d47a(0x382),new Map()),_0x50ece2(this,_0x31d47a(0x3e8),new _0x282118['BehaviorSubject'](0x0)),_0x50ece2(this,_0x31d47a(0x34e),this[_0x31d47a(0x3e8)][_0x31d47a(0x433)]()),_0x50ece2(this,_0x31d47a(0x1d3),!0x1),_0x50ece2(this,_0x31d47a(0x479),void 0x0),_0x50ece2(this,_0x31d47a(0x383),0x0),_0x50ece2(this,_0x31d47a(0x2d0),void 0x0),_0x50ece2(this,_0x31d47a(0x407),void 0x0),this[_0x31d47a(0x448)]();}[_0x124287(0x448)](){const _0x40c1ed=_0x124287;this[_0x40c1ed(0x1f6)]&&this[_0x40c1ed(0x334)](this[_0x40c1ed(0x1f6)][_0x40c1ed(0x20a)][_0x40c1ed(0x3b6)](_0x56ab1a=>{const _0xd3fc8a=_0x40c1ed;_0x56ab1a&&!this['_socket']&&this[_0xd3fc8a(0x328)](),_0x56ab1a||this[_0xd3fc8a(0x428)]();}));}[_0x124287(0x34a)](){const _0x4993d4=_0x124287;super[_0x4993d4(0x34a)](),this['_clearRetryConnectingTimer'](),this[_0x4993d4(0x3b0)](),this[_0x4993d4(0x447)](),this[_0x4993d4(0x382)][_0x4993d4(0x3eb)](_0x4aaa55=>_0x4aaa55[_0x4993d4(0x34a)]()),this[_0x4993d4(0x382)][_0x4993d4(0x25e)](),this['_status$'][_0x4993d4(0x2f8)]();}async[_0x124287(0x224)](_0x1a78d9){const _0x17414b=_0x124287;if(this['_sessions'][_0x17414b(0x2ac)](_0x1a78d9))return this['_sessions'][_0x17414b(0x23b)](_0x1a78d9);this[_0x17414b(0x32e)]();let _0xa8962e=this[_0x17414b(0x2ed)][_0x17414b(0x236)](_0x3be262,_0x1a78d9,this[_0x17414b(0x45f)][_0x17414b(0x433)]());return this[_0x17414b(0x382)][_0x17414b(0x46d)](_0x1a78d9,_0xa8962e),_0xa8962e;}[_0x124287(0x29e)](_0x8a8be3){const _0x96ea78=_0x124287;let _0x294fa6=this[_0x96ea78(0x382)][_0x96ea78(0x23b)](_0x8a8be3);if(_0x294fa6&&(this[_0x96ea78(0x382)][_0x96ea78(0x423)](_0x8a8be3),_0x294fa6[_0x96ea78(0x439)]()),!this[_0x96ea78(0x382)][_0x96ea78(0x221)]){var _0x236aad;(_0x236aad=this[_0x96ea78(0x3a4)])==null||_0x236aad[_0x96ea78(0x439)]();}}['reconnect'](){const _0x3e04c8=_0x124287;this[_0x3e04c8(0x383)]=0x0,this[_0x3e04c8(0x29f)](),this[_0x3e04c8(0x3d4)]();}[_0x124287(0x29f)](){const _0x32a7fa=_0x124287;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x32a7fa(0x479)]),this[_0x32a7fa(0x479)]=null);}async['_createSocket'](){const _0x276ba5=_0x124287;var _0x50a933;let _0x5e0fc0=this['_configService'][_0x276ba5(0x2ad)](_0xc791ca),_0xc3b1c3=(_0x50a933=_0x5e0fc0==null?void 0x0:_0x5e0fc0[_0x276ba5(0x49e)])==null?_0x4e50db:_0x50a933,_0x5ed882=await this['_socketService'][_0x276ba5(0x348)](_0xc3b1c3);return this[_0x276ba5(0x32c)]=_0x5ed882,_0x5ed882;}async[_0x124287(0x32e)](){const _0x323ace=_0x124287;try{var _0x1ebcc4,_0x3519a1;let _0x31bf87=(_0x1ebcc4=(_0x3519a1=this[_0x323ace(0x3a4)])==null?this['_candidateSocket']:_0x3519a1)==null?await this['_createSocket']():_0x1ebcc4;if(_0x31bf87){let _0x1490b3=_0x31bf87[_0x323ace(0x432)];_0x31bf87[_0x323ace(0x432)]=_0x3d4644=>(_0x3d4644[_0x323ace(0x47e)]!==_0x3eeea2[_0x323ace(0x27a)]['LEAVE']&&this[_0x323ace(0x1d4)](),_0x1490b3[_0x323ace(0x353)](_0x31bf87,[_0x3d4644])),_0x31bf87[_0x323ace(0x278)][_0x323ace(0x3b6)](_0x10e281=>this[_0x323ace(0x443)](_0x31bf87,_0x10e281)),_0x31bf87[_0x323ace(0x246)][_0x323ace(0x1d2)]((0x0,_0xecc1b5['take'])(0x1))[_0x323ace(0x3b6)](_0x19c6ed=>this[_0x323ace(0x1d8)][_0x323ace(0x338)](_0x323ace(0x3a1),_0x19c6ed)),_0x31bf87[_0x323ace(0x340)][_0x323ace(0x1d2)]((0x0,_0xecc1b5[_0x323ace(0x374)])(0x1))['subscribe'](()=>{const _0x55d60b=_0x323ace;this[_0x55d60b(0x281)](_0x31bf87);}),_0x31bf87[_0x323ace(0x1fc)]['pipe']((0x0,_0xecc1b5[_0x323ace(0x374)])(0x1))[_0x323ace(0x3b6)](_0x1ce48a=>{const _0x543f9b=_0x323ace;this[_0x543f9b(0x1d8)][_0x543f9b(0x215)](_0x543f9b(0x35d),_0x543f9b(0x197),_0x1ce48a),this[_0x543f9b(0x1ba)]();});}}catch(_0x845be9){this[_0x323ace(0x1d8)]['error'](_0x845be9),this['_onConnectionFailed']();}}[_0x124287(0x281)](_0x5d5e65){const _0x3a47d2=_0x124287;this[_0x3a47d2(0x1d8)][_0x3a47d2(0x215)](_0x3a47d2(0x35d),_0x3a47d2(0x218)),_0x5d5e65[_0x3a47d2(0x432)]({'cmd':_0x3eeea2[_0x3a47d2(0x27a)][_0x3a47d2(0x3ee)]}),this['_rescheduleHeartbeat']();}[_0x124287(0x428)](){const _0x1a891e=_0x124287;this[_0x1a891e(0x1d3)]=!0x1,this['_candidateSocket']=null,this['_status$']['next'](0x2),this['_socket$']['next'](null),this[_0x1a891e(0x3b0)](),this['_clearHeartbeatTimer']();}[_0x124287(0x1ba)](){const _0x4fb238=_0x124287;var _0x49fd83;this[_0x4fb238(0x428)](),this[_0x4fb238(0x383)]<((_0x49fd83=this[_0x4fb238(0x344)][_0x4fb238(0x2ad)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x49fd83)?(this[_0x4fb238(0x301)][_0x4fb238(0x3ae)]({'id':_0x4fb238(0x357)}),this[_0x4fb238(0x3d4)]()):this[_0x4fb238(0x301)]['emitEvent']({'id':_0x4fb238(0x44b)});}[_0x124287(0x3d4)](){const _0xa4112=_0x124287;var _0x259158;let _0x387bde=this[_0xa4112(0x383)],_0x345a90=this['_configService'][_0xa4112(0x2ad)](_0xc791ca),_0x4681f7=_0x387bde===0x0?0x0:((_0x259158=_0x345a90==null?void 0x0:_0x345a90['retryConnectingInterval'])==null?0x4e20:_0x259158)*0x2**_0x387bde;this['_retryConnectingTimer']=setTimeout(()=>{const _0x1f2a3e=_0xa4112;clearTimeout(this['_retryConnectingTimer']),this[_0x1f2a3e(0x479)]=null,this[_0x1f2a3e(0x32e)]();},_0x4681f7),this[_0xa4112(0x383)]+=0x1;}[_0x124287(0x443)](_0x5e891b,_0x26b910){const _0x5c3d7a=_0x124287;let {cmd:_0x58d38f}=_0x26b910;_0x58d38f===_0x3eeea2[_0x5c3d7a(0x27a)][_0x5c3d7a(0x3ee)]&&!this[_0x5c3d7a(0x1d3)]&&(_0x5e891b[_0x5c3d7a(0x184)]=_0x26b910[_0x5c3d7a(0x1c3)][_0x5c3d7a(0x184)],this[_0x5c3d7a(0x45f)][_0x5c3d7a(0x469)](_0x5e891b),this[_0x5c3d7a(0x3e8)][_0x5c3d7a(0x469)](0x3),this[_0x5c3d7a(0x1d3)]=!0x0,this[_0x5c3d7a(0x32c)]=null),_0x58d38f===_0x3eeea2[_0x5c3d7a(0x27a)][_0x5c3d7a(0x416)]&&this[_0x5c3d7a(0x3b0)](),this['_rescheduleHeartbeat']();}[_0x124287(0x1d4)](){const _0x46840b=_0x124287;var _0x3216e4;this[_0x46840b(0x447)](),this[_0x46840b(0x2d0)]=setTimeout(()=>this[_0x46840b(0x482)](),(_0x3216e4=this[_0x46840b(0x344)][_0x46840b(0x2ad)](_0x46840b(0x2da)))==null?0x7530:_0x3216e4);}[_0x124287(0x482)](){const _0x552459=_0x124287;this[_0x552459(0x3a4)][_0x552459(0x432)]({'cmd':_0x3eeea2[_0x552459(0x27a)][_0x552459(0x416)]}),this[_0x552459(0x2a7)]();}[_0x124287(0x2a7)](){const _0x1fe879=_0x124287;var _0x1d0a4f;this['_timeoutTimer']=setTimeout(()=>this[_0x1fe879(0x1ba)](),(_0x1d0a4f=this[_0x1fe879(0x344)]['getConfig'](_0x1fe879(0x28d)))==null?_0x472429:_0x1d0a4f);}[_0x124287(0x447)](){const _0x2a4e6e=_0x124287;this[_0x2a4e6e(0x2d0)]!=null&&(clearTimeout(this[_0x2a4e6e(0x2d0)]),this[_0x2a4e6e(0x2d0)]=null);}[_0x124287(0x3b0)](){const _0x41acb1=_0x124287;this[_0x41acb1(0x407)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};_0x4bcb39=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af['Injector'])),_0x22bf51(0x1,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0x2,_0x38d3af[_0x124287(0x41d)]),_0x22bf51(0x3,_0x3a6db1),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x3b3560)),_0x22bf51(0x5,(0x0,_0x38d3af[_0x124287(0x261)])(_0x530693))],_0x4bcb39);let _0x3499dc=class extends _0x38d3af['RxDisposable']{constructor(_0x2085ad,_0x5d2ed4,_0x4728b8,_0x12ad26){const _0x123682=_0x124287;var _0x52ac02;super(),this[_0x123682(0x2ed)]=_0x2085ad,this[_0x123682(0x337)]=_0x5d2ed4,this[_0x123682(0x344)]=_0x4728b8,this[_0x123682(0x29b)]=_0x12ad26,_0x50ece2(this,_0x123682(0x259),new Map()),_0x50ece2(this,_0x123682(0x41f),new _0x282118[(_0x123682(0x3d2))]()),_0x50ece2(this,'entityInit$',this[_0x123682(0x41f)]['asObservable']()),((_0x52ac02=this[_0x123682(0x344)][_0x123682(0x2ad)]('collaboration-client.config'))==null?void 0x0:_0x52ac02[_0x123682(0x483)])!==!0x1&&this[_0x123682(0x486)]();}[_0x124287(0x34a)](){const _0x24e9c5=_0x124287;super[_0x24e9c5(0x34a)](),this[_0x24e9c5(0x259)][_0x24e9c5(0x3eb)](_0x4814d4=>_0x4814d4[_0x24e9c5(0x34a)]()),this['_entities'][_0x24e9c5(0x25e)]();}['getCollabEntity'](_0x5a5c04){const _0x54970f=_0x124287;var _0x32927d;return(_0x32927d=this[_0x54970f(0x259)]['get'](_0x5a5c04))==null?null:_0x32927d;}['getCollabEntity$'](_0x42ebb2){const _0x519755=_0x124287;let _0x2a9603=this[_0x519755(0x30c)](_0x42ebb2);return _0x2a9603?(0x0,_0x282118['of'])(_0x2a9603):this[_0x519755(0x41f)][_0x519755(0x1d2)]((0x0,_0xecc1b5[_0x519755(0x444)])(_0x1ee387=>_0x1ee387['unitID']===_0x42ebb2));}[_0x124287(0x26c)](_0x50eb4d){const _0xc7f510=_0x124287;return(0x0,_0x282118[_0xc7f510(0x31e)])(this[_0xc7f510(0x3b7)](_0x50eb4d)[_0xc7f510(0x1d2)]((0x0,_0xecc1b5[_0xc7f510(0x375)])(()=>void 0x0)));}[_0x124287(0x486)](){const _0x4a78da=_0x124287;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x38d3af[_0x4a78da(0x244)][_0x4a78da(0x28b)])[_0x4a78da(0x1d2)]((0x0,_0x282118[_0x4a78da(0x1bc)])(this['dispose$']),(0x0,_0xecc1b5[_0x4a78da(0x394)])(0x10))[_0x4a78da(0x3b6)](async _0xaf98e0=>{const _0x5163d7=_0x4a78da;let _0x4654e9=_0xaf98e0[_0x5163d7(0x240)][_0x5163d7(0x258)](),_0x32d08f=await this[_0x5163d7(0x3d0)](_0x4654e9,_0x38d3af[_0x5163d7(0x244)][_0x5163d7(0x28b)]);this[_0x5163d7(0x259)]['set'](_0x4654e9,_0x32d08f);}),this['_univerInstanceService'][_0x4a78da(0x30b)](_0x38d3af[_0x4a78da(0x244)][_0x4a78da(0x493)])[_0x4a78da(0x1d2)]((0x0,_0x282118['takeUntil'])(this[_0x4a78da(0x1b4)]),(0x0,_0xecc1b5[_0x4a78da(0x394)])(0x10))[_0x4a78da(0x1d2)]((0x0,_0xecc1b5[_0x4a78da(0x444)])(_0x587498=>!_0x587498['unit']['getUnitId']()[_0x4a78da(0x3ca)]('__')))['subscribe'](async _0x5f618a=>{const _0xac7e50=_0x4a78da;let _0x36ef05=_0x5f618a[_0xac7e50(0x240)][_0xac7e50(0x258)](),_0x33257e=await this[_0xac7e50(0x3d0)](_0x36ef05,_0x38d3af[_0xac7e50(0x244)][_0xac7e50(0x493)]);this[_0xac7e50(0x259)][_0xac7e50(0x46d)](_0x36ef05,_0x33257e);}),(0x0,_0x282118[_0x4a78da(0x23d)])(this[_0x4a78da(0x29b)]['getTypeOfUnitDisposed$'](_0x38d3af[_0x4a78da(0x244)][_0x4a78da(0x28b)]),this[_0x4a78da(0x29b)][_0x4a78da(0x446)](_0x38d3af['UniverInstanceType'][_0x4a78da(0x493)]))['pipe']((0x0,_0x282118[_0x4a78da(0x1bc)])(this[_0x4a78da(0x1b4)]))[_0x4a78da(0x3b6)](_0x3962ec=>{const _0x3061cd=_0x4a78da;let _0x206b5b=_0x3962ec[_0x3061cd(0x258)](),_0x1f484e=this[_0x3061cd(0x259)][_0x3061cd(0x23b)](_0x206b5b);_0x1f484e&&(_0x1f484e[_0x3061cd(0x34a)](),this[_0x3061cd(0x259)]['delete'](_0x206b5b));});}async['_startCollaboration'](_0x48b4ab,_0x3a9b0c){const _0x45c464=_0x124287;let _0x211063=await this[_0x45c464(0x337)]['requireSession'](_0x48b4ab),_0x3f6cc2=this[_0x45c464(0x2ed)][_0x45c464(0x236)](this[_0x45c464(0x1c4)](_0x3a9b0c),_0x48b4ab,_0x3a9b0c,_0x211063);return await _0x3f6cc2[_0x45c464(0x49d)](),this[_0x45c464(0x41f)][_0x45c464(0x469)](_0x3f6cc2),_0x3f6cc2;}[_0x124287(0x1c4)](_0x4cae98){const _0x445f55=_0x124287;switch(_0x4cae98){case _0x38d3af['UniverInstanceType']['UNIVER_DOC']:return _0x4f76be;case _0x38d3af[_0x445f55(0x244)]['UNIVER_SHEET']:return _0xc23225;default:throw Error(_0x445f55(0x18e)+_0x4cae98);}}};_0x3499dc=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x4bcb39)),_0x22bf51(0x2,_0x38d3af['IConfigService']),_0x22bf51(0x3,_0x38d3af[_0x124287(0x2cc)])],_0x3499dc);var _0x3119c7=_0x124287(0x364),_0x10ce9f=_0x124287(0x2c5);let _0x14ab70=class extends _0x38d3af['Disposable']{constructor(_0x19d707,_0x4efd70){const _0xa635b3=_0x124287;super(),this['_univerInstanceService']=_0x19d707,this[_0xa635b3(0x344)]=_0x4efd70,this[_0xa635b3(0x486)]();}[_0x124287(0x486)](){const _0x5e1fb1=_0x124287;this['disposeWithMe'](this[_0x5e1fb1(0x29b)][_0x5e1fb1(0x205)]['subscribe'](()=>{const _0x43a97e=_0x5e1fb1;var _0x53f9f6;let _0x20f305=this[_0x43a97e(0x29b)][_0x43a97e(0x449)](),_0x34a7c3=(_0x53f9f6=this[_0x43a97e(0x344)][_0x43a97e(0x2ad)](_0x43a97e(0x360)))==null?_0x43a97e(0x366):_0x53f9f6;_0x20f305 instanceof _0x38d3af['Workbook']&&(_0x34a7c3=_0x20f305[_0x43a97e(0x3c9)]),document[_0x43a97e(0x216)]=_0x34a7c3;}));}};_0x14ab70=_0x131186([_0x22bf51(0x0,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0x1,_0x38d3af[_0x124287(0x41d)])],_0x14ab70);let _0x4a34d9=class{constructor(_0x50a75e,_0x20b730,_0x15d2d6){const _0x5cbd0e=_0x124287;this[_0x5cbd0e(0x344)]=_0x50a75e,this[_0x5cbd0e(0x1d5)]=_0x20b730,this[_0x5cbd0e(0x1cc)]=_0x15d2d6,this[_0x5cbd0e(0x49d)]();}[_0x124287(0x49d)](){const _0x46fdaa=_0x124287;this[_0x46fdaa(0x1d5)][_0x46fdaa(0x186)]({'priority':0x1,'interceptor':(_0x59660f,_0x343974)=>_0x343974(_0x59660f)[_0x46fdaa(0x1d2)]((0x0,_0x282118[_0x46fdaa(0x474)])(async _0x55f205=>{const _0x377a8d=_0x46fdaa;let _0x444012=_0x55f205;if(_0x444012[_0x377a8d(0x2b5)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0x377a8d(0x1cc)]['t'](_0x377a8d(0x2f5)))){let _0x1f0200=window[_0x377a8d(0x19e)](window['location'][_0x377a8d(0x403)]);window[_0x377a8d(0x29c)]['href']=this[_0x377a8d(0x3c0)]()+_0x377a8d(0x1f5)+_0x1f0200;}}return _0x444012;}))});}[_0x124287(0x3c0)](){const _0x4b7bd1=_0x124287;var _0x5585f1;let _0x43aa01=this['_configService'][_0x4b7bd1(0x2ad)](_0xc791ca);return(_0x5585f1=_0x43aa01==null?void 0x0:_0x43aa01[_0x4b7bd1(0x2ba)])==null?_0x4b7bd1(0x1bd):_0x5585f1;}};_0x4a34d9=_0x131186([_0x22bf51(0x0,_0x38d3af['IConfigService']),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x41d52c[_0x124287(0x46c)])),_0x22bf51(0x2,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x461)]))],_0x4a34d9);let _0x457782=class extends _0x38d3af[_0x124287(0x223)]{constructor(_0x2a2b3c,_0x1e15b4){const _0x2ded8e=_0x124287;super(),this[_0x2ded8e(0x26e)]=_0x2a2b3c,this['_configService']=_0x1e15b4,_0x50ece2(this,_0x2ded8e(0x18c),!0x1),this[_0x2ded8e(0x252)]();}[_0x124287(0x252)](){const _0x2cb42a=_0x124287;let _0x511b07=this;this[_0x2cb42a(0x334)](this[_0x2cb42a(0x26e)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x41d52c['MergeInterceptorFactory'])({'isMatch'(_0x56171f){const _0x31e8c6=_0x2cb42a;var _0x5cdeb6;if(_0x56171f[_0x31e8c6(0x20b)]===_0x31e8c6(0x43b)&&(_0x5cdeb6=_0x56171f[_0x31e8c6(0x405)])!=null&&_0x5cdeb6[_0x31e8c6(0x359)]){let {objectID:_0x86ef23,objectType:_0x123026}=_0x56171f[_0x31e8c6(0x405)][_0x31e8c6(0x359)]||{};if(!_0x86ef23||_0x123026===void 0x0)return!0x1;let _0x1994ba=_0x511b07[_0x31e8c6(0x274)]()+'/'+_0x123026+_0x31e8c6(0x388)+_0x86ef23+_0x31e8c6(0x470);if(_0x56171f[_0x31e8c6(0x2a4)]===_0x1994ba)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x100ae9){const _0x5de0ae=_0x2cb42a;var _0x3ed7a1;return(_0x3ed7a1=_0x100ae9['requestParams'])==null?void 0x0:_0x3ed7a1[_0x5de0ae(0x359)];},'mergeParamsToRequest'(_0x2dafa6,_0x527e16){const _0x2a64ad=_0x2cb42a;let _0x254a45=_0x511b07['_getAPIPrefixPath']()+_0x2a64ad(0x47f),_0x550550=_0x2dafa6[_0x2a64ad(0x33e)]((_0x585e0d,_0x459b8f)=>{const _0x3537d9=_0x2a64ad;let {unitID:_0x5eb176,objectID:_0x5a5219,objectType:_0x18d2aa,actions:_0x166a75}=_0x459b8f;return _0x585e0d[_0x5eb176]||(_0x585e0d[_0x5eb176]={}),_0x585e0d[_0x5eb176][_0x5a5219]||(_0x585e0d[_0x5eb176][_0x5a5219]={'objectID':_0x5a5219,'objectType':_0x18d2aa,'actions':[]}),_0x585e0d[_0x5eb176][_0x5a5219][_0x3537d9(0x393)]['push'](..._0x166a75),_0x585e0d;},{}),_0x52a123=[];for(let _0x3abbf2 in _0x550550)for(let _0x42046f in _0x550550[_0x3abbf2]){let {actions:_0x5177db,objectType:_0x519557}=_0x550550[_0x3abbf2][_0x42046f],_0x231086=[...new Set(_0x5177db)];_0x52a123[_0x2a64ad(0x385)]({'unitID':_0x3abbf2,'objectID':_0x42046f,'objectType':_0x519557,'actions':_0x231086});}return new _0x41d52c['HTTPRequest']('POST',_0x254a45,{'headers':_0x527e16[_0x2a64ad(0x23e)],'withCredentials':_0x527e16[_0x2a64ad(0x3a7)],'responseType':_0x527e16[_0x2a64ad(0x275)],'body':{'requests':_0x52a123}});}},{'distributeResult'(_0x2bd0df,_0x42f67a){const _0xecf6ff=_0x2cb42a;let {objectActions:_0x34715d}=_0x2bd0df;return _0x42f67a[_0xecf6ff(0x375)](_0x272cdd=>{const _0x30e3af=_0xecf6ff;let {unitID:_0x2a4f61,objectID:_0xe9947f,actions:_0x6f7e94}=_0x272cdd,_0x3b7001=_0x34715d[_0x30e3af(0x471)](_0xae9ba0=>_0xae9ba0[_0x30e3af(0x3c1)]===_0x2a4f61&&_0xae9ba0['objectID']===_0xe9947f);return{'config':_0x272cdd,'result':{'actions':_0x6f7e94['map'](_0xc8eac5=>_0x3b7001==null?void 0x0:_0x3b7001[_0x30e3af(0x393)][_0x30e3af(0x471)](_0x3c7e54=>_0x3c7e54[_0x30e3af(0x4a5)]===_0xc8eac5))[_0x30e3af(0x444)](_0x19db51=>!!_0x19db51),'error':_0x2bd0df[_0x30e3af(0x338)]}};});}})}));}[_0x124287(0x274)](){const _0x2cee12=_0x124287;var _0x30056a;let _0x536067=this['_configService'][_0x2cee12(0x2ad)](_0xc791ca);return(_0x30056a=_0x536067==null?void 0x0:_0x536067[_0x2cee12(0x2f6)])==null?'/universer-api/authz':_0x30056a;}async[_0x124287(0x2c1)](_0x398e2e){const _0x489bff=_0x124287;let _0x303fd0=this[_0x489bff(0x274)]()+'/'+_0x398e2e[_0x489bff(0x22a)]+_0x489bff(0x41a);return(await this['_HTTPService'][_0x489bff(0x27f)](_0x303fd0,{'body':_0x398e2e}))['body'][_0x489bff(0x3a8)]||'';}async[_0x124287(0x2cb)](_0x1f827e){const _0x48fa8a=_0x124287;let _0x27eb9c=this[_0x48fa8a(0x274)]()+_0x48fa8a(0x297);return(await this['_HTTPService'][_0x48fa8a(0x27f)](_0x27eb9c,{'body':_0x1f827e}))[_0x48fa8a(0x359)][_0x48fa8a(0x182)];}async[_0x124287(0x1b1)](_0x7308d4){const _0x26c2a4=_0x124287;var _0x3f4dd3;let _0x10a56f=this[_0x26c2a4(0x274)]()+'/'+_0x7308d4['objectType']+_0x26c2a4(0x388)+_0x7308d4[_0x26c2a4(0x3a8)],_0x5f3366=await this[_0x26c2a4(0x26e)][_0x26c2a4(0x48d)](_0x10a56f,{'body':_0x7308d4});if((_0x5f3366==null||(_0x3f4dd3=_0x5f3366['body'])==null||(_0x3f4dd3=_0x3f4dd3['error'])==null?void 0x0:_0x3f4dd3[_0x26c2a4(0x211)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async['allowed'](_0x13cdd6){const _0xad3b4=_0x124287;let _0x165c24=this['_getAPIPrefixPath']()+'/'+_0x13cdd6[_0xad3b4(0x22a)]+_0xad3b4(0x388)+_0x13cdd6[_0xad3b4(0x3a8)]+_0xad3b4(0x470);return(await this[_0xad3b4(0x26e)]['post'](_0x165c24,{'body':_0x13cdd6}))[_0xad3b4(0x359)][_0xad3b4(0x393)];}async[_0x124287(0x21a)](_0x2f8df1){const _0x1cca97=_0x124287;let _0x2fe801=this[_0x1cca97(0x274)]()+_0x1cca97(0x47f);return(await this[_0x1cca97(0x26e)]['post'](_0x2fe801,{'body':{'requests':_0x2f8df1}}))['body'][_0x1cca97(0x287)];}async[_0x124287(0x38d)](_0x51903f){const _0x3dd49b=_0x124287;let _0x1d4ab=this[_0x3dd49b(0x274)]()+'/'+_0x51903f[_0x3dd49b(0x22a)]+_0x3dd49b(0x35a),_0x25c2a0=await this[_0x3dd49b(0x26e)][_0x3dd49b(0x27f)](_0x1d4ab,{'body':_0x51903f});return{'roles':_0x25c2a0[_0x3dd49b(0x359)]['roles'],'actions':_0x25c2a0['body'][_0x3dd49b(0x393)]};}async[_0x124287(0x25c)](_0x429756){const _0x105694=_0x124287;let _0x306a8d=this[_0x105694(0x274)]()+_0x105694(0x2aa);await this[_0x105694(0x26e)]['delete'](_0x306a8d,{'params':{'collaboratorID':_0x429756[_0x105694(0x347)],'objectID':_0x429756['objectID'],'unitID':_0x429756[_0x105694(0x3c1)]}});}async[_0x124287(0x349)](_0xf5c96f){const _0x1b9119=_0x124287;let _0x443a78=this['_getAPIPrefixPath']()+_0x1b9119(0x2aa);await this[_0x1b9119(0x26e)]['patch'](_0x443a78,{'body':_0xf5c96f});}async[_0x124287(0x1e8)](_0x41a132){const _0x58c9ed=_0x124287;let _0x19275b=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x58c9ed(0x26e)][_0x58c9ed(0x27f)](_0x19275b,{'body':_0x41a132});}async[_0x124287(0x465)](_0x3e4daa){const _0x24af75=_0x124287;var _0x31ff8e;let _0x1d1c12=this['_getAPIPrefixPath']()+'/collaborator',_0xf4d31c=await this[_0x24af75(0x26e)][_0x24af75(0x23b)](_0x1d1c12,{'params':{'objectID':_0x3e4daa['objectID'],'unitID':_0x3e4daa[_0x24af75(0x3c1)]}});return this['setCfgEnableObjInherit']((_0x31ff8e=_0xf4d31c[_0x24af75(0x359)][_0x24af75(0x454)])==null?!0x1:_0x31ff8e),_0xf4d31c['body']['collaborators'];}async['putCollaborators'](_0x2d0ea0){const _0x499027=_0x124287;let _0x37d87b=this[_0x499027(0x274)]()+_0x499027(0x2aa);await this['_HTTPService'][_0x499027(0x48d)](_0x37d87b,{'body':_0x2d0ea0});}[_0x124287(0x2d9)](_0x30694f){const _0x206d28=_0x124287;this[_0x206d28(0x18c)]=_0x30694f;}[_0x124287(0x222)](){const _0x1d95e0=_0x124287;return this[_0x1d95e0(0x18c)];}};_0x457782=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af['Inject'])(_0x41d52c[_0x124287(0x46c)])),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x41d)]))],_0x457782);function _0x37a8eb(_0x5126bf){const _0x3d81bc=_0x124287;return _0x5126bf instanceof Uint8Array||ArrayBuffer['isView'](_0x5126bf)&&_0x5126bf[_0x3d81bc(0x3c4)][_0x3d81bc(0x3c9)]===_0x3d81bc(0x2e3)&&_0x3d81bc(0x1e0)in _0x5126bf&&_0x5126bf['BYTES_PER_ELEMENT']===0x1;}function _0xb5d903(_0x30cb7c){const _0x17b298=_0x124287;if(typeof _0x30cb7c!=_0x17b298(0x29a))throw TypeError(_0x17b298(0x1de)+typeof _0x30cb7c);if(!Number[_0x17b298(0x1c7)](_0x30cb7c)||_0x30cb7c<0x0)throw RangeError(_0x17b298(0x41b)+_0x30cb7c);}function _0x2000fe(_0x2691e3,_0x495b80,_0x2388e7=''){const _0xff89f8=_0x124287;let _0x19792a=_0x37a8eb(_0x2691e3),_0x43bbfd=_0x2691e3==null?void 0x0:_0x2691e3[_0xff89f8(0x48e)],_0x496db3=_0x495b80!==void 0x0;if(!_0x19792a||_0x496db3&&_0x43bbfd!==_0x495b80){let _0x1c535a=_0x2388e7&&'\x22'+_0x2388e7+'\x22\x20',_0x3bf196=_0x496db3?_0xff89f8(0x384)+_0x495b80:'',_0x16a63a=_0x19792a?_0xff89f8(0x1b7)+_0x43bbfd:'type='+typeof _0x2691e3,_0x10e3d1=_0x1c535a+_0xff89f8(0x49c)+_0x3bf196+_0xff89f8(0x21d)+_0x16a63a;throw _0x19792a?RangeError(_0x10e3d1):TypeError(_0x10e3d1);}return _0x2691e3;}function _0x439993(_0x191192){const _0xb00533=_0x124287;return new Uint32Array(_0x191192[_0xb00533(0x1b6)],_0x191192['byteOffset'],Math['floor'](_0x191192[_0xb00533(0x280)]/0x4));}function _0x39382e(..._0x2049d1){const _0x3bc190=_0x124287;for(let _0x577a36=0x0;_0x577a36<_0x2049d1[_0x3bc190(0x48e)];_0x577a36++)_0x2049d1[_0x577a36]['fill'](0x0);}let _0x429043=new Uint8Array(new Uint32Array([0x11223344])[_0x124287(0x1b6)])[0x0]===0x44,_0x8ab090=_0x507f43=>_0x507f43<<0x18&0xff000000|_0x507f43<<0x8&0xff0000|_0x507f43>>>0x8&0xff00|_0x507f43>>>0x18&0xff,_0x307d64=_0x429043?_0x15bffd=>_0x15bffd:_0x568aa7=>{const _0x153cde=_0x124287;for(let _0x5614f1=0x0;_0x5614f1<_0x568aa7[_0x153cde(0x48e)];_0x5614f1++)_0x568aa7[_0x5614f1]=_0x8ab090(_0x568aa7[_0x5614f1]);return _0x568aa7;};typeof Uint8Array[_0x124287(0x2a1)]([])[_0x124287(0x294)]==_0x124287(0x3a6)&&Uint8Array[_0x124287(0x2b3)];function _0x678b7(_0x2261cc){const _0x2c6cd1=_0x124287;if(typeof _0x2261cc!=_0x2c6cd1(0x1a1))throw TypeError(_0x2c6cd1(0x298));return new Uint8Array(new TextEncoder()[_0x2c6cd1(0x2e7)](_0x2261cc));}function _0xbbbe1e(_0x185655,_0x367216){const _0x5c6dac=_0x124287;return!_0x185655[_0x5c6dac(0x280)]||!_0x367216[_0x5c6dac(0x280)]?!0x1:_0x185655['buffer']===_0x367216[_0x5c6dac(0x1b6)]&&_0x185655['byteOffset']<_0x367216[_0x5c6dac(0x3bd)]+_0x367216[_0x5c6dac(0x280)]&&_0x367216[_0x5c6dac(0x3bd)]<_0x185655[_0x5c6dac(0x3bd)]+_0x185655[_0x5c6dac(0x280)];}function _0x2aade4(_0x3bf098,_0x2703b5){const _0x3767a7=_0x124287;if(_0xbbbe1e(_0x3bf098,_0x2703b5)&&_0x3bf098[_0x3767a7(0x3bd)]<_0x2703b5[_0x3767a7(0x3bd)])throw Error(_0x3767a7(0x19a));}function _0x4634bd(..._0x1cddc7){const _0x3db245=_0x124287;let _0x435987=0x0;for(let _0x4b1403=0x0;_0x4b1403<_0x1cddc7[_0x3db245(0x48e)];_0x4b1403++){let _0x4b6aff=_0x1cddc7[_0x4b1403];_0x2000fe(_0x4b6aff),_0x435987+=_0x4b6aff[_0x3db245(0x48e)];}let _0x43aa41=new Uint8Array(_0x435987);for(let _0x36c3ce=0x0,_0x3b626b=0x0;_0x36c3ce<_0x1cddc7[_0x3db245(0x48e)];_0x36c3ce++){let _0x1f993f=_0x1cddc7[_0x36c3ce];_0x43aa41[_0x3db245(0x46d)](_0x1f993f,_0x3b626b),_0x3b626b+=_0x1f993f['length'];}return _0x43aa41;}let _0x25ee87=(_0x58ec97,_0x543d85)=>{const _0x2c2534=_0x124287;function _0x30a8d5(_0x4d2c63,..._0x20ec34){const _0x40ee9c=_0x3817;if(_0x2000fe(_0x4d2c63,void 0x0,_0x40ee9c(0x462)),_0x58ec97[_0x40ee9c(0x402)]!==void 0x0){let _0x155b35=_0x20ec34[0x0];_0x2000fe(_0x155b35,_0x58ec97['varSizeNonce']?void 0x0:_0x58ec97[_0x40ee9c(0x402)],_0x40ee9c(0x31f));}let _0x304595=_0x58ec97[_0x40ee9c(0x17f)];_0x304595&&_0x20ec34[0x1]!==void 0x0&&_0x2000fe(_0x20ec34[0x1],void 0x0,_0x40ee9c(0x351));let _0x1c7476=_0x543d85(_0x4d2c63,..._0x20ec34),_0x4b94f4=(_0x19bc2e,_0x106c44)=>{const _0x9cb3dd=_0x40ee9c;if(_0x106c44!==void 0x0){if(_0x19bc2e!==0x2)throw Error(_0x9cb3dd(0x2fd));_0x2000fe(_0x106c44,void 0x0,'output');}},_0x3b7208=!0x1;return{'encrypt'(_0x31d53d,_0x4d32ee){const _0x389da3=_0x40ee9c;if(_0x3b7208)throw Error(_0x389da3(0x34f));return _0x3b7208=!0x0,_0x2000fe(_0x31d53d),_0x4b94f4(_0x1c7476['encrypt'][_0x389da3(0x48e)],_0x4d32ee),_0x1c7476[_0x389da3(0x48b)](_0x31d53d,_0x4d32ee);},'decrypt'(_0x27f78e,_0x394558){const _0xc41bb4=_0x40ee9c;if(_0x2000fe(_0x27f78e),_0x304595&&_0x27f78e[_0xc41bb4(0x48e)]<_0x304595)throw Error(_0xc41bb4(0x35b)+_0x304595);return _0x4b94f4(_0x1c7476[_0xc41bb4(0x496)]['length'],_0x394558),_0x1c7476['decrypt'](_0x27f78e,_0x394558);}};}return Object[_0x2c2534(0x4a0)](_0x30a8d5,_0x58ec97),_0x30a8d5;};function _0x38f5c0(_0x542a02,_0xae4ab0,_0x4315e0=!0x0){const _0x57e737=_0x124287;if(_0xae4ab0===void 0x0)return new Uint8Array(_0x542a02);if(_0x2000fe(_0xae4ab0,void 0x0,_0x57e737(0x427)),_0xae4ab0[_0x57e737(0x48e)]!==_0x542a02)throw Error(_0x57e737(0x4a6)+_0x542a02+',\x20got:\x20'+_0xae4ab0[_0x57e737(0x48e)]);if(_0x4315e0&&!_0x2e250b(_0xae4ab0))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0xae4ab0;}function _0x2e250b(_0x185065){const _0x50a1e1=_0x124287;return _0x185065[_0x50a1e1(0x3bd)]%0x4==0x0;}function _0x488346(_0x5b326f){const _0x55d34d=_0x124287;return Uint8Array[_0x55d34d(0x2a1)](_0x2000fe(_0x5b326f));}function _0x38a85f(_0x2f726a=0x20){const _0x3240d1=_0x124287;_0xb5d903(_0x2f726a);let _0x4b9d0d=typeof globalThis==_0x3240d1(0x31d)?globalThis['crypto']:null;if(typeof(_0x4b9d0d==null?void 0x0:_0x4b9d0d[_0x3240d1(0x45c)])!=_0x3240d1(0x3a6))throw Error(_0x3240d1(0x2bf));return _0x4b9d0d['getRandomValues'](new Uint8Array(_0x2f726a));}function _0x5c17a2(_0xbe01d7){const _0x44d4f1=_0x124287;if(![0x10,0x18,0x20]['includes'](_0xbe01d7[_0x44d4f1(0x48e)]))throw Error(_0x44d4f1(0x472)+_0xbe01d7[_0x44d4f1(0x48e)]);}function _0x4683f5(_0x4f6d91){return _0x4f6d91<<0x1^0x11b&-(_0x4f6d91>>0x7);}function _0x5738f8(_0x4d9b83,_0x5614ce){let _0x7bade4=0x0;for(;_0x5614ce>0x0;_0x5614ce>>=0x1)_0x7bade4^=_0x4d9b83&-(_0x5614ce&0x1),_0x4d9b83=_0x4683f5(_0x4d9b83);return _0x7bade4;}let _0x31bd7f=((()=>{let _0x2305ab=new Uint8Array(0x100);for(let _0x321a68=0x0,_0x424839=0x1;_0x321a68<0x100;_0x321a68++,_0x424839^=_0x4683f5(_0x424839))_0x2305ab[_0x321a68]=_0x424839;let _0xbbd105=new Uint8Array(0x100);_0xbbd105[0x0]=0x63;for(let _0x216ba9=0x0;_0x216ba9<0xff;_0x216ba9++){let _0xa04393=_0x2305ab[0xff-_0x216ba9];_0xa04393|=_0xa04393<<0x8,_0xbbd105[_0x2305ab[_0x216ba9]]=(_0xa04393^_0xa04393>>0x4^_0xa04393>>0x5^_0xa04393>>0x6^_0xa04393>>0x7^0x63)&0xff;}return _0x39382e(_0x2305ab),_0xbbd105;})()),_0x27c0d2=_0x31bd7f['map']((_0x211fc3,_0x1d5bc7)=>_0x31bd7f[_0x124287(0x311)](_0x1d5bc7)),_0x2d60da=_0x39d003=>_0x39d003<<0x18|_0x39d003>>>0x8,_0xce2746=_0x57ee67=>_0x57ee67<<0x8|_0x57ee67>>>0x18;function _0x2862db(_0x2e2cc5,_0x65c070){const _0x282f40=_0x124287;if(_0x2e2cc5[_0x282f40(0x48e)]!==0x100)throw Error(_0x282f40(0x2e4));let _0x283070=new Uint32Array(0x100)[_0x282f40(0x375)]((_0x113b6c,_0x4d98f7)=>_0x65c070(_0x2e2cc5[_0x4d98f7])),_0x4376bd=_0x283070[_0x282f40(0x375)](_0xce2746),_0x57e248=_0x4376bd['map'](_0xce2746),_0x296a65=_0x57e248[_0x282f40(0x375)](_0xce2746),_0x20fe63=new Uint32Array(0x100*0x100),_0x3d5010=new Uint32Array(0x100*0x100),_0x3f9fa3=new Uint16Array(0x100*0x100);for(let _0x1da99c=0x0;_0x1da99c<0x100;_0x1da99c++)for(let _0xedfa9=0x0;_0xedfa9<0x100;_0xedfa9++){let _0x3e1b4c=_0x1da99c*0x100+_0xedfa9;_0x20fe63[_0x3e1b4c]=_0x283070[_0x1da99c]^_0x4376bd[_0xedfa9],_0x3d5010[_0x3e1b4c]=_0x57e248[_0x1da99c]^_0x296a65[_0xedfa9],_0x3f9fa3[_0x3e1b4c]=_0x2e2cc5[_0x1da99c]<<0x8|_0x2e2cc5[_0xedfa9];}return{'sbox':_0x2e2cc5,'sbox2':_0x3f9fa3,'T0':_0x283070,'T1':_0x4376bd,'T2':_0x57e248,'T3':_0x296a65,'T01':_0x20fe63,'T23':_0x3d5010};}let _0x46d6d0=_0x2862db(_0x31bd7f,_0x1d78b1=>_0x5738f8(_0x1d78b1,0x3)<<0x18|_0x1d78b1<<0x10|_0x1d78b1<<0x8|_0x5738f8(_0x1d78b1,0x2)),_0x1692af=_0x2862db(_0x27c0d2,_0x470186=>_0x5738f8(_0x470186,0xb)<<0x18|_0x5738f8(_0x470186,0xd)<<0x10|_0x5738f8(_0x470186,0x9)<<0x8|_0x5738f8(_0x470186,0xe)),_0x11e4bc=((()=>{let _0x7207b1=new Uint8Array(0x10);for(let _0x148a30=0x0,_0x4333c1=0x1;_0x148a30<0x10;_0x148a30++,_0x4333c1=_0x4683f5(_0x4333c1))_0x7207b1[_0x148a30]=_0x4333c1;return _0x7207b1;})());function _0x4e5fe5(_0x3fd478){const _0x143928=_0x124287;_0x2000fe(_0x3fd478);let _0x3ff70d=_0x3fd478['length'];_0x5c17a2(_0x3fd478);let {sbox2:_0x23892b}=_0x46d6d0,_0x1a637b=[];(!_0x429043||!_0x2e250b(_0x3fd478))&&_0x1a637b[_0x143928(0x385)](_0x3fd478=_0x488346(_0x3fd478));let _0x33e08f=_0x307d64(_0x439993(_0x3fd478)),_0x141b17=_0x33e08f[_0x143928(0x48e)],_0x18a920=_0x56d0c7=>_0x5b797d(_0x23892b,_0x56d0c7,_0x56d0c7,_0x56d0c7,_0x56d0c7),_0x186994=new Uint32Array(_0x3ff70d+0x1c);_0x186994[_0x143928(0x46d)](_0x33e08f);for(let _0x3bb059=_0x141b17;_0x3bb059<_0x186994[_0x143928(0x48e)];_0x3bb059++){let _0x1b64da=_0x186994[_0x3bb059-0x1];_0x3bb059%_0x141b17===0x0?_0x1b64da=_0x18a920(_0x2d60da(_0x1b64da))^_0x11e4bc[_0x3bb059/_0x141b17-0x1]:_0x141b17>0x6&&_0x3bb059%_0x141b17===0x4&&(_0x1b64da=_0x18a920(_0x1b64da)),_0x186994[_0x3bb059]=_0x186994[_0x3bb059-_0x141b17]^_0x1b64da;}return _0x39382e(..._0x1a637b),_0x186994;}function _0xf0276b(_0x45d061){const _0x3794be=_0x124287;let _0x225bfd=_0x4e5fe5(_0x45d061),_0x26a2da=_0x225bfd[_0x3794be(0x1a0)](),_0x42f2aa=_0x225bfd['length'],{sbox2:_0x4a64bf}=_0x46d6d0,{T0:_0x53f4c1,T1:_0x48564f,T2:_0x370140,T3:_0x1bce6d}=_0x1692af;for(let _0x1e93aa=0x0;_0x1e93aa<_0x42f2aa;_0x1e93aa+=0x4)for(let _0x31d12a=0x0;_0x31d12a<0x4;_0x31d12a++)_0x26a2da[_0x1e93aa+_0x31d12a]=_0x225bfd[_0x42f2aa-_0x1e93aa-0x4+_0x31d12a];_0x39382e(_0x225bfd);for(let _0x256044=0x4;_0x256044<_0x42f2aa-0x4;_0x256044++){let _0x55415a=_0x26a2da[_0x256044],_0x307f7a=_0x5b797d(_0x4a64bf,_0x55415a,_0x55415a,_0x55415a,_0x55415a);_0x26a2da[_0x256044]=_0x53f4c1[_0x307f7a&0xff]^_0x48564f[_0x307f7a>>>0x8&0xff]^_0x370140[_0x307f7a>>>0x10&0xff]^_0x1bce6d[_0x307f7a>>>0x18];}return _0x26a2da;}function _0x53ca69(_0x579dda,_0x3e0225,_0x3c9f23,_0x5f3f41,_0x20d26c,_0x45272c){return _0x579dda[_0x3c9f23<<0x8&0xff00|_0x5f3f41>>>0x8&0xff]^_0x3e0225[_0x20d26c>>>0x8&0xff00|_0x45272c>>>0x18&0xff];}function _0x5b797d(_0x4466ab,_0x17e1c0,_0xe6ed0b,_0xe9617e,_0x36aae4){return _0x4466ab[_0x17e1c0&0xff|_0xe6ed0b&0xff00]|_0x4466ab[_0xe9617e>>>0x10&0xff|_0x36aae4>>>0x10&0xff00]<<0x10;}function _0x5ddd91(_0xe33b06,_0x5efb54,_0x4afcdc,_0x3d728c,_0x59fd3b){let {sbox2:_0x169b3a,T01:_0xfa5e1,T23:_0xfb2571}=_0x46d6d0,_0xe684e0=0x0;_0x5efb54^=_0xe33b06[_0xe684e0++],_0x4afcdc^=_0xe33b06[_0xe684e0++],_0x3d728c^=_0xe33b06[_0xe684e0++],_0x59fd3b^=_0xe33b06[_0xe684e0++];let _0x278e56=_0xe33b06['length']/0x4-0x2;for(let _0x185774=0x0;_0x185774<_0x278e56;_0x185774++){let _0x2b05b2=_0xe33b06[_0xe684e0++]^_0x53ca69(_0xfa5e1,_0xfb2571,_0x5efb54,_0x4afcdc,_0x3d728c,_0x59fd3b),_0x274de6=_0xe33b06[_0xe684e0++]^_0x53ca69(_0xfa5e1,_0xfb2571,_0x4afcdc,_0x3d728c,_0x59fd3b,_0x5efb54),_0x1f29e6=_0xe33b06[_0xe684e0++]^_0x53ca69(_0xfa5e1,_0xfb2571,_0x3d728c,_0x59fd3b,_0x5efb54,_0x4afcdc),_0x50ae7a=_0xe33b06[_0xe684e0++]^_0x53ca69(_0xfa5e1,_0xfb2571,_0x59fd3b,_0x5efb54,_0x4afcdc,_0x3d728c);_0x5efb54=_0x2b05b2,_0x4afcdc=_0x274de6,_0x3d728c=_0x1f29e6,_0x59fd3b=_0x50ae7a;}return{'s0':_0xe33b06[_0xe684e0++]^_0x5b797d(_0x169b3a,_0x5efb54,_0x4afcdc,_0x3d728c,_0x59fd3b),'s1':_0xe33b06[_0xe684e0++]^_0x5b797d(_0x169b3a,_0x4afcdc,_0x3d728c,_0x59fd3b,_0x5efb54),'s2':_0xe33b06[_0xe684e0++]^_0x5b797d(_0x169b3a,_0x3d728c,_0x59fd3b,_0x5efb54,_0x4afcdc),'s3':_0xe33b06[_0xe684e0++]^_0x5b797d(_0x169b3a,_0x59fd3b,_0x5efb54,_0x4afcdc,_0x3d728c)};}function _0x3a7bbf(_0x3156dc,_0x5349ed,_0x1a3240,_0x5bc84f,_0x14a86e){const _0x593f80=_0x124287;let {sbox2:_0x2cd8f2,T01:_0x11e9ce,T23:_0x221e9c}=_0x1692af,_0x295706=0x0;_0x5349ed^=_0x3156dc[_0x295706++],_0x1a3240^=_0x3156dc[_0x295706++],_0x5bc84f^=_0x3156dc[_0x295706++],_0x14a86e^=_0x3156dc[_0x295706++];let _0x4122a2=_0x3156dc[_0x593f80(0x48e)]/0x4-0x2;for(let _0x421058=0x0;_0x421058<_0x4122a2;_0x421058++){let _0x587478=_0x3156dc[_0x295706++]^_0x53ca69(_0x11e9ce,_0x221e9c,_0x5349ed,_0x14a86e,_0x5bc84f,_0x1a3240),_0x4a0c9a=_0x3156dc[_0x295706++]^_0x53ca69(_0x11e9ce,_0x221e9c,_0x1a3240,_0x5349ed,_0x14a86e,_0x5bc84f),_0xdc35cf=_0x3156dc[_0x295706++]^_0x53ca69(_0x11e9ce,_0x221e9c,_0x5bc84f,_0x1a3240,_0x5349ed,_0x14a86e),_0x22d43d=_0x3156dc[_0x295706++]^_0x53ca69(_0x11e9ce,_0x221e9c,_0x14a86e,_0x5bc84f,_0x1a3240,_0x5349ed);_0x5349ed=_0x587478,_0x1a3240=_0x4a0c9a,_0x5bc84f=_0xdc35cf,_0x14a86e=_0x22d43d;}return{'s0':_0x3156dc[_0x295706++]^_0x5b797d(_0x2cd8f2,_0x5349ed,_0x14a86e,_0x5bc84f,_0x1a3240),'s1':_0x3156dc[_0x295706++]^_0x5b797d(_0x2cd8f2,_0x1a3240,_0x5349ed,_0x14a86e,_0x5bc84f),'s2':_0x3156dc[_0x295706++]^_0x5b797d(_0x2cd8f2,_0x5bc84f,_0x1a3240,_0x5349ed,_0x14a86e),'s3':_0x3156dc[_0x295706++]^_0x5b797d(_0x2cd8f2,_0x14a86e,_0x5bc84f,_0x1a3240,_0x5349ed)};}function _0x103754(_0x2d1d6c){const _0x453a87=_0x124287;if(_0x2000fe(_0x2d1d6c),_0x2d1d6c[_0x453a87(0x48e)]%0x10!=0x0)throw Error(_0x453a87(0x1f9));}function _0x34d7d4(_0x5b309c,_0x40d20d,_0x1540ed){const _0x1e0ee5=_0x124287;_0x2000fe(_0x5b309c);let _0x159867=_0x5b309c[_0x1e0ee5(0x48e)],_0x4b4c69=_0x159867%0x10;if(!_0x40d20d&&_0x4b4c69!==0x0)throw Error(_0x1e0ee5(0x2c2));if(_0x40d20d){let _0x10596c=0x10-_0x4b4c69;_0x10596c||(_0x10596c=0x10),_0x159867+=_0x10596c;}_0x1540ed=_0x38f5c0(_0x159867,_0x1540ed),_0x2aade4(_0x5b309c,_0x1540ed),(!_0x429043||!_0x2e250b(_0x5b309c))&&(_0x5b309c=_0x488346(_0x5b309c));let _0x47c401=_0x439993(_0x5b309c);return _0x307d64(_0x47c401),{'b':_0x47c401,'o':_0x439993(_0x1540ed),'out':_0x1540ed};}function _0x24f746(_0x506895,_0x208b32){const _0x18be43=_0x124287;if(!_0x208b32)return _0x506895;let _0x194578=_0x506895['length'];if(_0x194578===0x0)throw Error(_0x18be43(0x18b));let _0x5ec741=_0x506895[_0x194578-0x1],_0xaec479=0x1;_0xaec479&=_0x5ec741-0x1>>>0x1f^0x1,_0xaec479&=0x10-_0x5ec741>>>0x1f^0x1;for(let _0x31e2b=0x0;_0x31e2b<0x10;_0x31e2b++){let _0x7f2abf=_0x31e2b-_0x5ec741>>>0x1f,_0x142364=+((_0x506895[_0x194578-0x1-_0x31e2b]^_0x5ec741)===0x0);_0xaec479&=_0x142364|_0x7f2abf^0x1;}if(!_0xaec479)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x506895[_0x18be43(0x40f)](0x0,_0x194578-_0x5ec741);}function _0x499294(_0x290068){const _0x4cac81=_0x124287;let _0x599460=new Uint8Array(0x10),_0x1ed487=_0x439993(_0x599460);_0x599460[_0x4cac81(0x46d)](_0x290068);let _0x28ea49=0x10-_0x290068[_0x4cac81(0x48e)];for(let _0x5898e3=0x10-_0x28ea49;_0x5898e3<0x10;_0x5898e3++)_0x599460[_0x5898e3]=_0x28ea49;return _0x1ed487;}let _0x4ecd36=_0x25ee87({'blockSize':0x10,'nonceLength':0x10},function(_0x5a5a73,_0x9a31f5,_0x2ec8df={}){const _0x1db367=_0x124287;let _0x2fbcd7=!_0x2ec8df[_0x1db367(0x33a)];return{'encrypt'(_0x409252,_0x18653b){const _0x325cb8=_0x1db367;let _0x5ca9cc=_0x4e5fe5(_0x5a5a73),{b:_0xeb5672,o:_0x54c16b,out:_0x298501}=_0x34d7d4(_0x409252,_0x2fbcd7,_0x18653b),_0xe79d78=_0x9a31f5,_0x1b9f1d=[_0x5ca9cc];(!_0x429043||!_0x2e250b(_0xe79d78))&&_0x1b9f1d['push'](_0xe79d78=_0x488346(_0xe79d78));let _0x39f48c=_0x439993(_0xe79d78);_0x307d64(_0x39f48c);let _0x107a82=_0x39f48c[0x0],_0x4d9f67=_0x39f48c[0x1],_0x2f4953=_0x39f48c[0x2],_0x5e05c3=_0x39f48c[0x3],_0x44f9df=0x0;for(;_0x44f9df+0x4<=_0xeb5672[_0x325cb8(0x48e)];)_0x107a82^=_0xeb5672[_0x44f9df+0x0],_0x4d9f67^=_0xeb5672[_0x44f9df+0x1],_0x2f4953^=_0xeb5672[_0x44f9df+0x2],_0x5e05c3^=_0xeb5672[_0x44f9df+0x3],{s0:_0x107a82,s1:_0x4d9f67,s2:_0x2f4953,s3:_0x5e05c3}=_0x5ddd91(_0x5ca9cc,_0x107a82,_0x4d9f67,_0x2f4953,_0x5e05c3),_0x54c16b[_0x44f9df++]=_0x107a82,_0x54c16b[_0x44f9df++]=_0x4d9f67,_0x54c16b[_0x44f9df++]=_0x2f4953,_0x54c16b[_0x44f9df++]=_0x5e05c3;if(_0x2fbcd7){let _0x3982d1=_0x499294(_0x409252[_0x325cb8(0x40f)](_0x44f9df*0x4));_0x307d64(_0x3982d1),_0x107a82^=_0x3982d1[0x0],_0x4d9f67^=_0x3982d1[0x1],_0x2f4953^=_0x3982d1[0x2],_0x5e05c3^=_0x3982d1[0x3],{s0:_0x107a82,s1:_0x4d9f67,s2:_0x2f4953,s3:_0x5e05c3}=_0x5ddd91(_0x5ca9cc,_0x107a82,_0x4d9f67,_0x2f4953,_0x5e05c3),_0x54c16b[_0x44f9df++]=_0x107a82,_0x54c16b[_0x44f9df++]=_0x4d9f67,_0x54c16b[_0x44f9df++]=_0x2f4953,_0x54c16b[_0x44f9df++]=_0x5e05c3;}return _0x307d64(_0x54c16b),_0x39382e(..._0x1b9f1d),_0x298501;},'decrypt'(_0x3ea120,_0xe48ed6){const _0x2f3814=_0x1db367;_0x103754(_0x3ea120);let _0x32ffbf=_0xf0276b(_0x5a5a73),_0x2c62c3=_0x9a31f5,_0x2a0e27=[_0x32ffbf];(!_0x429043||!_0x2e250b(_0x2c62c3))&&_0x2a0e27['push'](_0x2c62c3=_0x488346(_0x2c62c3));let _0x179d68=_0x439993(_0x2c62c3);_0x307d64(_0x179d68),_0xe48ed6=_0x38f5c0(_0x3ea120[_0x2f3814(0x48e)],_0xe48ed6),_0x2aade4(_0x3ea120,_0xe48ed6),(!_0x429043||!_0x2e250b(_0x3ea120))&&_0x2a0e27[_0x2f3814(0x385)](_0x3ea120=_0x488346(_0x3ea120));let _0x145dbf=_0x439993(_0x3ea120),_0x181964=_0x439993(_0xe48ed6);_0x307d64(_0x145dbf);let _0x2b8b75=_0x179d68[0x0],_0x3f4bfe=_0x179d68[0x1],_0x54b7aa=_0x179d68[0x2],_0x2281f9=_0x179d68[0x3];for(let _0x436c87=0x0;_0x436c87+0x4<=_0x145dbf[_0x2f3814(0x48e)];){let _0x1c5cb8=_0x2b8b75,_0x12d883=_0x3f4bfe,_0x235990=_0x54b7aa,_0x24050c=_0x2281f9;_0x2b8b75=_0x145dbf[_0x436c87+0x0],_0x3f4bfe=_0x145dbf[_0x436c87+0x1],_0x54b7aa=_0x145dbf[_0x436c87+0x2],_0x2281f9=_0x145dbf[_0x436c87+0x3];let {s0:_0x4b652,s1:_0x19340c,s2:_0x36c8ce,s3:_0x3f6b99}=_0x3a7bbf(_0x32ffbf,_0x2b8b75,_0x3f4bfe,_0x54b7aa,_0x2281f9);_0x181964[_0x436c87++]=_0x4b652^_0x1c5cb8,_0x181964[_0x436c87++]=_0x19340c^_0x12d883,_0x181964[_0x436c87++]=_0x36c8ce^_0x235990,_0x181964[_0x436c87++]=_0x3f6b99^_0x24050c;}return _0x307d64(_0x181964),_0x39382e(..._0x2a0e27),_0x24f746(_0xe48ed6,_0x2fbcd7);}};});function _0x55abf2(_0x10c8ae){const _0x5adf00=_0x124287;let _0x2de433=atob(_0x10c8ae),_0x5f5474=new Uint8Array(_0x2de433[_0x5adf00(0x48e)]);for(let _0x97f6d0=0x0;_0x97f6d0<_0x2de433[_0x5adf00(0x48e)];_0x97f6d0++)_0x5f5474[_0x97f6d0]=_0x2de433['charCodeAt'](_0x97f6d0);return _0x5f5474;}function _0x36faa3(_0xea2cbb){const _0x37bc4d=_0x124287;let _0x38b271='';for(let _0x26bd7a=0x0;_0x26bd7a<_0xea2cbb[_0x37bc4d(0x48e)];_0x26bd7a++)_0x38b271+=String[_0x37bc4d(0x37c)](_0xea2cbb[_0x26bd7a]);return btoa(_0x38b271);}function _0x35717c(_0xd721a4,_0x535bf3){const _0x371ac7=_0x124287;let _0x3ced10=_0x55abf2(_0x535bf3),_0x15d3a1=_0x38a85f(0x10);return _0x36faa3(_0x4634bd(_0x15d3a1,_0x4ecd36(_0x3ced10,_0x15d3a1)[_0x371ac7(0x48b)](_0x678b7(_0xd721a4))));}function _0x4e0581(){const _0x396250=_0x124287;let _0x42368a=(0x0,_0x4e563e[_0x396250(0x2fb)])()['__Key__'];if(typeof window<'u'&&window[_0x396250(0x29c)]!==void 0x0&&_0x42368a){let _0x3afda2={'time':Math[_0x396250(0x2a6)](Date[_0x396250(0x1af)]()/0x3e8),'domain':location[_0x396250(0x336)]};return _0x35717c(JSON['stringify'](_0x3afda2),_0x42368a);}}let _0x3798e2=class{constructor(_0x8f0511){const _0x1f2581=_0x124287;this[_0x1f2581(0x1d5)]=_0x8f0511,this[_0x1f2581(0x27c)]();}[_0x124287(0x27c)](){const _0x30ed28=_0x124287;this[_0x30ed28(0x1d5)][_0x30ed28(0x186)]({'interceptor':(_0x3707cb,_0x16b722)=>{let _0x27695c=_0x4e0581();return _0x27695c&&_0x3707cb['headers']['set']('x-univer-host',_0x27695c),_0x16b722(_0x3707cb);}});}};_0x3798e2=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x41d52c[_0x124287(0x46c)]))],_0x3798e2);let _0x243636=class extends _0x38d3af['RxDisposable']{constructor(_0x3f7677,_0x5c8442,_0x488d66){const _0x492e25=_0x124287;super(),this[_0x492e25(0x1d8)]=_0x3f7677,this['_snapshotService']=_0x5c8442,this[_0x492e25(0x312)]=_0x488d66,_0x50ece2(this,_0x492e25(0x37b),new _0x282118[(_0x492e25(0x279))](null)),_0x50ece2(this,_0x492e25(0x268),this[_0x492e25(0x37b)][_0x492e25(0x433)]());}async['loadUnitOfRevision'](_0x7c7c66,_0x1bfe60,_0x33bc49){const _0x2e6d37=_0x124287;this[_0x2e6d37(0x37b)][_0x2e6d37(0x469)]({'unitId':_0x7c7c66,'type':_0x1bfe60});let _0x5402fb=null;switch(_0x1bfe60){case _0x38d3af['UniverInstanceType'][_0x2e6d37(0x28b)]:_0x5402fb=await this[_0x2e6d37(0x24e)][_0x2e6d37(0x3b5)](_0x7c7c66,_0x33bc49);break;case _0x38d3af[_0x2e6d37(0x244)][_0x2e6d37(0x493)]:_0x5402fb=await this[_0x2e6d37(0x24e)][_0x2e6d37(0x208)](_0x7c7c66,_0x33bc49);break;default:this[_0x2e6d37(0x1d8)][_0x2e6d37(0x338)](_0x2e6d37(0x1fb),_0x2e6d37(0x276));break;}return _0x5402fb;}async[_0x124287(0x445)](_0x438b05,_0x4aa168,_0x1e4c7f){const _0x4aface=_0x124287;var _0x385bf3;this['_unitInfo$'][_0x4aface(0x469)]({'unitId':_0x438b05,'type':_0x4aa168,'subUnitId':_0x1e4c7f});let _0x1e87a2=0x0,_0x77adb4=await((_0x385bf3=this[_0x4aface(0x312)])==null?void 0x0:_0x385bf3[_0x4aface(0x1e1)](_0x438b05));return _0x77adb4&&(_0x77adb4['awaitingChangeset']||_0x77adb4['mutations'][_0x4aface(0x48e)]!==0x0)&&(_0x1e87a2=_0x77adb4[_0x4aface(0x2bb)]),_0x1e87a2===0x0&&this['_logService'][_0x4aface(0x215)]('[DataLoaderService]',_0x4aface(0x232)),this[_0x4aface(0x475)](_0x438b05,_0x4aa168,_0x1e87a2);}};_0x243636=_0x131186([_0x22bf51(0x0,_0x38d3af[_0x124287(0x1aa)]),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x25767b[_0x124287(0x1ca)])),_0x22bf51(0x2,(0x0,_0x38d3af[_0x124287(0x261)])(_0x19c832))],_0x243636);let _0x1b0329=class{constructor(_0x3d5f9b,_0x27cb6d,_0x11a253){const _0x471e5c=_0x124287;this['_httpService']=_0x3d5f9b,this[_0x471e5c(0x344)]=_0x27cb6d,this['_univerInstanceService']=_0x11a253,_0x50ece2(this,'_waitCount',0x0),_0x50ece2(this,'_change$',new _0x282118[(_0x471e5c(0x3d2))]()),_0x50ece2(this,_0x471e5c(0x341),this[_0x471e5c(0x1a2)]),_0x50ece2(this,_0x471e5c(0x19f),new Map());}[_0x124287(0x30e)](_0x3e4f50){const _0x536a99=_0x124287;this[_0x536a99(0x1cb)]=_0x3e4f50,this['_change$'][_0x536a99(0x469)](_0x3e4f50);}[_0x124287(0x284)](_0x2537aa,_0x56bd17){const _0x205a26=_0x124287;if(_0x56bd17===_0x295307[_0x205a26(0x415)][_0x205a26(0x487)]){let _0x61f36e=new Image();return _0x61f36e[_0x205a26(0x3c5)]=_0x2537aa,_0x61f36e;}return this['_imageSourceCache']['get'](_0x2537aa);}['addImageSourceCache'](_0x59f0bd,_0x2605a9,_0x1ac9b0){const _0x174178=_0x124287;_0x2605a9===_0x295307['ImageSourceType'][_0x174178(0x487)]||_0x1ac9b0==null||this['_imageSourceCache']['set'](_0x59f0bd,_0x1ac9b0);}async[_0x124287(0x391)](_0x12a623){const _0x417657=_0x124287;try{let _0x47bae0=this[_0x417657(0x3e3)](this[_0x417657(0x2d8)](),''+_0x12a623),_0x3573d1=(await this['_httpService'][_0x417657(0x23b)](_0x47bae0))[_0x417657(0x359)];if(_0x3573d1[_0x417657(0x338)]&&_0x3573d1['error'][_0x417657(0x211)]===_0x3eeea2[_0x417657(0x2d1)]['OK']){let _0x36fbe9=(0x0,_0x38d3af[_0x417657(0x2f7)])(_0x3573d1[_0x417657(0x2a4)],this[_0x417657(0x21c)]());return Promise[_0x417657(0x18d)](_0x36fbe9);}return Promise[_0x417657(0x1c2)](_0x3573d1[_0x417657(0x338)]);}catch(_0x543630){return Promise[_0x417657(0x1c2)](_0x543630);}}async[_0x124287(0x2de)](_0x346e45){const _0x50e7b4=_0x124287;let _0x5053e7='';if(!_0x295307[_0x50e7b4(0x3af)][_0x50e7b4(0x32f)](_0x346e45[_0x50e7b4(0x3b3)]))return this['_decreaseWaiting'](),Promise[_0x50e7b4(0x1c2)](Error(_0x295307['ImageUploadStatusType'][_0x50e7b4(0x4a1)]));if(_0x346e45[_0x50e7b4(0x221)]>(0x0,_0x295307[_0x50e7b4(0x3cb)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x295307['ImageUploadStatusType'][_0x50e7b4(0x358)]));try{let _0x27617a=new FormData();_0x27617a[_0x50e7b4(0x230)](_0x50e7b4(0x196),_0x346e45);let _0x49631a=this[_0x50e7b4(0x29b)][_0x50e7b4(0x449)](),_0x494b84=_0x49631a==null?void 0x0:_0x49631a[_0x50e7b4(0x258)]();if(!_0x494b84)throw Error(_0x50e7b4(0x36e));let _0x3da916=this['_getUploadFileURL']()+_0x50e7b4(0x24d)+_0x346e45[_0x50e7b4(0x221)][_0x50e7b4(0x43c)]()+_0x50e7b4(0x235)+_0x3eeea2['FileSource'][_0x50e7b4(0x34c)]+'&assign='+encodeURIComponent(_0x494b84),_0x3f5b48={'body':_0x27617a},_0x140768=(await this[_0x50e7b4(0x1d5)][_0x50e7b4(0x27f)](_0x3da916,_0x3f5b48))[_0x50e7b4(0x359)];if(typeof _0x140768[_0x50e7b4(0x1e4)]!=_0x50e7b4(0x1a1))return this[_0x50e7b4(0x46f)](),Promise[_0x50e7b4(0x1c2)](Error(_0x295307[_0x50e7b4(0x43f)][_0x50e7b4(0x378)]));_0x5053e7=_0x140768[_0x50e7b4(0x1e4)];}catch{return this[_0x50e7b4(0x46f)](),Promise['reject'](Error(_0x295307['ImageUploadStatusType'][_0x50e7b4(0x378)]));}return new Promise((_0x189987,_0x4243e3)=>{const _0x48db7d=_0x50e7b4;let _0x4cd2e7=new FileReader();_0x4cd2e7[_0x48db7d(0x1b5)](_0x346e45),_0x4cd2e7[_0x48db7d(0x491)]=_0x32527c=>{const _0x3e6a0e=_0x48db7d;var _0x3cee2a;let _0x4b9ac1=(_0x3cee2a=_0x32527c[_0x3e6a0e(0x250)])==null?void 0x0:_0x3cee2a[_0x3e6a0e(0x3f9)];if(_0x4b9ac1==null){this[_0x3e6a0e(0x46f)](),_0x4243e3(Error(_0x295307[_0x3e6a0e(0x43f)][_0x3e6a0e(0x378)]));return;}_0x189987({'imageId':(0x0,_0x38d3af['generateRandomId'])(0x6),'imageSourceType':_0x295307['ImageSourceType'][_0x3e6a0e(0x296)],'source':_0x5053e7,'base64Cache':_0x4b9ac1,'status':_0x295307[_0x3e6a0e(0x43f)][_0x3e6a0e(0x408)]}),this[_0x3e6a0e(0x46f)]();};});}['_getUploadFileURL'](){const _0x1c38c2=_0x124287;var _0x14e3d9;let _0x3f2c6f=this[_0x1c38c2(0x344)]['getConfig'](_0xc791ca);return(_0x14e3d9=_0x3f2c6f==null?void 0x0:_0x3f2c6f[_0x1c38c2(0x45a)])==null?_0x1c38c2(0x38f):_0x14e3d9;}[_0x124287(0x2d8)](){const _0x315692=_0x124287;var _0x45f340;let _0x257e59=this['_configService'][_0x315692(0x2ad)](_0xc791ca);return(_0x45f340=_0x257e59==null?void 0x0:_0x257e59[_0x315692(0x202)])==null?_0x315692(0x25a):_0x45f340;}[_0x124287(0x21c)](){var _0x1679e3;let _0x3beb1c=this['_configService']['getConfig'](_0xc791ca);return(_0x1679e3=_0x3beb1c==null?void 0x0:_0x3beb1c['downloadEndpointUrl'])==null?location['origin']:_0x1679e3;}[_0x124287(0x3e3)](_0x27bab6,_0x44ecfc){const _0x42560c=_0x124287;return _0x27bab6[_0x42560c(0x265)](_0x42560c(0x3aa),_0x44ecfc);}[_0x124287(0x46f)](){const _0x2da54a=_0x124287;--this[_0x2da54a(0x1cb)],this[_0x2da54a(0x1a2)][_0x2da54a(0x469)](this['_waitCount']);}};_0x1b0329=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x41d52c[_0x124287(0x46c)])),_0x22bf51(0x1,_0x38d3af[_0x124287(0x41d)]),_0x22bf51(0x2,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x2cc)]))],_0x1b0329);let _0x5ec726=class{constructor(_0x48155b,_0x43927c){const _0x80155d=_0x124287;this[_0x80155d(0x344)]=_0x48155b,this[_0x80155d(0x26e)]=_0x43927c;}['_getAPIPrefixPath'](){const _0x534e2a=_0x124287;var _0x5ec41a;let _0x3aa3ef=this['_configService'][_0x534e2a(0x2ad)](_0xc791ca);return(_0x5ec41a=_0x3aa3ef==null?void 0x0:_0x3aa3ef[_0x534e2a(0x2f6)])==null?_0x534e2a(0x2c6):_0x5ec41a;}async[_0x124287(0x2cb)](_0x30a87d){const _0x417401=_0x124287;let _0x2c1352=this[_0x417401(0x274)]()+_0x417401(0x2aa);return{'list':[{'title':_0x417401(0x40b),'mentions':(await this['_HTTPService'][_0x417401(0x23b)](_0x2c1352,{'params':{'objectID':_0x30a87d[_0x417401(0x3e9)],'unitID':_0x30a87d[_0x417401(0x3e9)]}}))[_0x417401(0x359)]['collaborators'][_0x417401(0x375)](_0x21e277=>({'objectId':_0x21e277['id'],'name':_0x21e277[_0x417401(0x333)]['name'],'metadata':{'icon':_0x21e277[_0x417401(0x333)]['avatar']},'label':_0x21e277['subject'][_0x417401(0x3c9)],'objectType':_0x38d3af['MentionType'][_0x417401(0x452)]})),'metadata':{},'type':_0x38d3af['MentionType']['PERSON']}]};}};_0x5ec726=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x41d)])),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x41d52c[_0x124287(0x46c)]))],_0x5ec726);let _0x4a6076=class extends _0x38d3af['RxDisposable']{constructor(_0x5bff88,_0x20d4a8,_0x42648b,_0x4fda3a,_0x2f0d77){const _0x4f2638=_0x124287;super(),this[_0x4f2638(0x2ed)]=_0x5bff88,this[_0x4f2638(0x29b)]=_0x20d4a8,this[_0x4f2638(0x2ef)]=_0x42648b,this[_0x4f2638(0x29d)]=_0x4fda3a,this[_0x4f2638(0x301)]=_0x2f0d77,this[_0x4f2638(0x3a9)](),this[_0x4f2638(0x3b2)]();}[_0x124287(0x3b2)](){const _0x970195=_0x124287;let _0x324ca7=async _0x2b6fee=>{const _0x48d944=_0x3817;(await this[_0x48d944(0x29d)][_0x48d944(0x224)](_0x2b6fee))['event$'][_0x48d944(0x1d2)]((0x0,_0xecc1b5[_0x48d944(0x444)])(_0x554ba9=>_0x554ba9[_0x48d944(0x2af)]===_0x25767b[_0x48d944(0x48c)]['SHOULD_CLOSE_CONN']),(0x0,_0xecc1b5[_0x48d944(0x1bc)])(this[_0x48d944(0x1b4)]))[_0x48d944(0x3b6)](_0x56b0b1=>{const _0x4e0a4b=_0x48d944;let {reason:_0x559c5b}=_0x56b0b1[_0x4e0a4b(0x1c3)];this[_0x4e0a4b(0x301)][_0x4e0a4b(0x3ae)]({'id':_0x4e0a4b(0x3a0),'data':_0x559c5b}),this['_permissionService'][_0x4e0a4b(0x2b9)](new _0x4606ad[(_0x4e0a4b(0x331))](_0x2b6fee)['id'],!0x1),this['_collaborationSessionService'][_0x4e0a4b(0x29e)](_0x2b6fee);});};(0x0,_0x282118[_0x970195(0x23d)])(this[_0x970195(0x29b)][_0x970195(0x30b)](_0x38d3af[_0x970195(0x244)][_0x970195(0x28b)]),this[_0x970195(0x29b)]['getTypeOfUnitAdded$'](_0x38d3af[_0x970195(0x244)][_0x970195(0x493)]))[_0x970195(0x1d2)]((0x0,_0xecc1b5[_0x970195(0x375)])(_0x226515=>_0x226515[_0x970195(0x240)][_0x970195(0x258)]()),(0x0,_0xecc1b5[_0x970195(0x444)])(_0x2d110b=>!(0x0,_0x38d3af[_0x970195(0x1b2)])(_0x2d110b)),(0x0,_0xecc1b5['takeUntil'])(this['dispose$']))['subscribe'](_0x4492fb=>{_0x324ca7(_0x4492fb);});}['_initUnitPermissionChange'](){const _0x2741ee=_0x124287;let _0x1473a6=async _0x23b583=>{const _0x5dbccb=_0x3817;let _0x1a189e=await this[_0x5dbccb(0x29d)]['requireSession'](_0x23b583),_0x1e6580=this['_injector']['get'](_0x4606ad['SheetPermissionInitController']);_0x1a189e[_0x5dbccb(0x36b)][_0x5dbccb(0x1d2)]((0x0,_0xecc1b5[_0x5dbccb(0x444)])(_0x50b7f2=>_0x50b7f2[_0x5dbccb(0x2af)]===_0x25767b[_0x5dbccb(0x48c)][_0x5dbccb(0x24b)]),(0x0,_0xecc1b5[_0x5dbccb(0x1bc)])(this[_0x5dbccb(0x1b4)]))[_0x5dbccb(0x3b6)](_0x4192c4=>{const _0x1f700a=_0x5dbccb;let {objectId:_0x1ea1fe}=_0x4192c4[_0x1f700a(0x1c3)];_0x1ea1fe===_0x23b583?_0x1e6580['initWorkbookPermissionChange'](_0x23b583):_0x1e6580[_0x1f700a(0x401)](_0x23b583,_0x1ea1fe);});};(0x0,_0x282118[_0x2741ee(0x23d)])(this[_0x2741ee(0x29b)][_0x2741ee(0x30b)](_0x38d3af[_0x2741ee(0x244)][_0x2741ee(0x28b)]))[_0x2741ee(0x1d2)]((0x0,_0xecc1b5[_0x2741ee(0x375)])(_0x2460ec=>_0x2460ec[_0x2741ee(0x240)]['getUnitId']()),(0x0,_0xecc1b5['filter'])(_0x197361=>!(0x0,_0x38d3af[_0x2741ee(0x1b2)])(_0x197361)),(0x0,_0xecc1b5[_0x2741ee(0x1bc)])(this[_0x2741ee(0x1b4)]))['subscribe'](_0x16f833=>{_0x1473a6(_0x16f833);});}};_0x4a6076=_0x131186([_0x22bf51(0x0,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x1,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0x2,_0x38d3af['IPermissionService']),_0x22bf51(0x3,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x4bcb39)),_0x22bf51(0x4,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x3b3560))],_0x4a6076);let _0x59efae=class{constructor(_0x4e5815,_0x2c3257){const _0x2f2fbc=_0x124287;this['_configService']=_0x4e5815,this[_0x2f2fbc(0x1d5)]=_0x2c3257;}async[_0x124287(0x2f0)](_0x47c881,_0x213bdf){const _0x30a01e=_0x124287;var _0x3977c0;let {unitID:_0x1ae996,type:_0x41cd79,revision:_0x407460=0x0}=_0x213bdf,_0x2d3be4=this[_0x30a01e(0x37d)]()+'/'+_0x41cd79+'/unit/'+_0x1ae996+_0x30a01e(0x3d8)+_0x407460,_0x5e1238=(await this[_0x30a01e(0x1d5)][_0x30a01e(0x23b)](_0x2d3be4))['body'],_0x13f00a=(_0x3977c0=_0x5e1238[_0x30a01e(0x3de)])==null?void 0x0:_0x3977c0['workbook'];if(_0x13f00a){let _0x4e1bc5=_0x13f00a==null?void 0x0:_0x13f00a['originalMeta'];_0x13f00a[_0x30a01e(0x456)]=_0x25767b[_0x30a01e(0x417)][_0x30a01e(0x2e7)]((0x0,_0x25767b[_0x30a01e(0x38c)])(_0x4e1bc5)),Object[_0x30a01e(0x424)](_0x13f00a[_0x30a01e(0x2df)])[_0x30a01e(0x3eb)](([,_0x3c1261])=>{const _0x4cb6d3=_0x30a01e;let _0x249b0c=_0x3c1261[_0x4cb6d3(0x456)];_0x3c1261[_0x4cb6d3(0x456)]=_0x25767b[_0x4cb6d3(0x417)]['encode']((0x0,_0x25767b[_0x4cb6d3(0x38c)])(_0x249b0c));});}return _0x5e1238;}async[_0x124287(0x2e2)](_0x49aa53,_0x4c6cdc){const _0x54a276=_0x124287;let {unitID:_0x4f0a56,type:_0x5e4662,blockID:_0x19b6c3}=_0x4c6cdc,_0x20f7ab=this[_0x54a276(0x300)]()+'/'+_0x5e4662+_0x54a276(0x498)+_0x4f0a56+_0x54a276(0x44c)+_0x19b6c3;return(await this[_0x54a276(0x1d5)][_0x54a276(0x23b)](_0x20f7ab))[_0x54a276(0x359)];}async[_0x124287(0x1e9)](_0x5d76fc,_0x257451){const _0x420372=_0x124287;let {unitID:_0x536a3a,type:_0x5a74da,blockID:_0x4214d3}=_0x257451,_0x3511f8=this[_0x420372(0x300)]()+'/block/'+_0x5a74da+_0x420372(0x498)+_0x536a3a+_0x420372(0x44c)+_0x4214d3;return(await this['_httpService'][_0x420372(0x23b)](_0x3511f8))[_0x420372(0x359)];}async[_0x124287(0x256)](_0x8dc28f,_0xfcc741){const _0x275fe7=_0x124287;let {unitID:_0x29ec5f,type:_0x15767d,from:_0x3497ef,to:_0x35c9f9}=_0xfcc741,_0x5d5661=this['_getAPIPrefix']()+'/'+_0x15767d+_0x275fe7(0x498)+_0x29ec5f+_0x275fe7(0x2d7)+_0x3497ef+_0x275fe7(0x1f3)+_0x35c9f9;return(await this[_0x275fe7(0x1d5)][_0x275fe7(0x23b)](_0x5d5661))['body'];}['getSnapshotAPIPath'](){const _0xd137a5=_0x124287;var _0x3a0558;return(_0x3a0558=this[_0xd137a5(0x344)]['getConfig'](_0xd137a5(0x285)))==null?this[_0xd137a5(0x300)]():_0x3a0558;}[_0x124287(0x300)](){const _0x94344=_0x124287;var _0x320db1;let _0x3ab357=this[_0x94344(0x344)][_0x94344(0x2ad)](_0xc791ca);return(_0x320db1=_0x3ab357==null?void 0x0:_0x3ab357[_0x94344(0x1a4)])==null?_0x94344(0x2ec):_0x320db1;}async['getResourcesRequest'](_0x397b17,_0x2b74e3){const _0x55eb33=_0x124287;let _0x5be569=_0x55eb33(0x3dc)+_0x2b74e3[_0x55eb33(0x3b3)]+_0x55eb33(0x498)+_0x2b74e3['unitID']+_0x55eb33(0x23c);return(await this['_httpService']['get'](_0x5be569,{'params':{'resourceId':JSON[_0x55eb33(0x1d1)](_0x2b74e3[_0x55eb33(0x1d0)])}}))['body'];}[_0x124287(0x399)](){const _0x488537=_0x124287;throw Error(_0x488537(0x234));}['updateSnapshot'](){const _0x3edd74=_0x124287;throw Error(_0x3edd74(0x234));}['saveSheetBlock'](){const _0x5add3d=_0x124287;throw Error(_0x5add3d(0x234));}[_0x124287(0x43d)](){const _0x5cc086=_0x124287;throw Error(_0x5cc086(0x234));}[_0x124287(0x441)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x124287(0x304)](){const _0x52f1a8=_0x124287;throw Error(_0x52f1a8(0x234));}};_0x59efae=_0x131186([_0x22bf51(0x0,_0x38d3af[_0x124287(0x41d)]),_0x22bf51(0x1,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x41d52c['HTTPService']))],_0x59efae);let _0x310e51=class extends _0x38d3af[_0x124287(0x3fe)]{constructor(_0x24116e,_0x59235b,_0x14f6ae,_0xd0fa0c,_0x6fea4a){super(_0x24116e,_0x59235b,_0x14f6ae),this['_transformService']=_0xd0fa0c,this['_logService']=_0x6fea4a;}[_0x124287(0x264)](_0xa6cd8c,_0x53d1c5){const _0x12426f=_0x124287;let _0x2e9ac2=this[_0x12426f(0x2e8)](_0xa6cd8c);if(_0x2e9ac2)try{let _0x2b4221=this[_0x12426f(0x36c)](_0x2e9ac2,_0x53d1c5);this['_substituteUndoStack'](_0xa6cd8c,_0x2b4221);}catch(_0x373eb6){this['_logService'][_0x12426f(0x338)](_0x12426f(0x3bb),_0x373eb6),this['_clearUndo'](_0xa6cd8c);}let _0x3d44a8=this[_0x12426f(0x1eb)](_0xa6cd8c);if(_0x3d44a8)try{let _0x3a2167=this[_0x12426f(0x36c)](_0x3d44a8,_0x53d1c5);this[_0x12426f(0x1f4)](_0xa6cd8c,_0x3a2167);}catch(_0x4c5557){this[_0x12426f(0x1d8)][_0x12426f(0x338)](_0x4c5557),this[_0x12426f(0x339)](_0xa6cd8c);}}['_clearUndo'](_0x5152a3){const _0x3169ba=_0x124287;let _0x1c19bf=this[_0x3169ba(0x2e8)](_0x5152a3);_0x1c19bf&&(_0x1c19bf[_0x3169ba(0x48e)]=0x0,this['_updateStatus']());}[_0x124287(0x339)](_0x499453){const _0x40570e=_0x124287;let _0xd08746=this[_0x40570e(0x1eb)](_0x499453);_0xd08746&&(_0xd08746['length']=0x0,this[_0x40570e(0x213)]());}[_0x124287(0x36d)](_0x5571ef,_0x3a5652){const _0x9a76e4=_0x124287;this[_0x9a76e4(0x3fb)][_0x9a76e4(0x46d)](_0x5571ef,_0x3a5652),this['_updateStatus']();}[_0x124287(0x1f4)](_0x1d8299,_0x25cfb2){const _0x1adfd5=_0x124287;this[_0x1adfd5(0x398)]['set'](_0x1d8299,_0x25cfb2),this[_0x1adfd5(0x213)]();}[_0x124287(0x36c)](_0x2fef69,_0xa4fb41){const _0x2c0629=_0x124287;let _0x46d787=[],_0x42c290=_0xa4fb41,_0x3ac7b6=_0xa4fb41;for(let _0x242c00=_0x2fef69[_0x2c0629(0x48e)]-0x1;_0x242c00>=0x0;_0x242c00--){let {unitID:_0x369b2b,undoMutations:_0x39742b,redoMutations:_0x306d62}=_0x2fef69[_0x242c00],_0x56335e=this['_transformService'][_0x2c0629(0x3c7)](_0x42c290,_0x39742b),_0x2cfbba=this[_0x2c0629(0x1dd)][_0x2c0629(0x3c7)](_0x3ac7b6,_0x306d62);if((0x0,_0x25767b[_0x2c0629(0x229)])(_0x56335e)||(0x0,_0x25767b[_0x2c0629(0x229)])(_0x2cfbba)){this[_0x2c0629(0x1d8)][_0x2c0629(0x338)]('[CollaborationUndoRedoService]',_0x2c0629(0x421),_0x56335e,_0x2cfbba);break;}_0x42c290=_0x56335e[_0x2c0629(0x1cd)],_0x3ac7b6=_0x2cfbba[_0x2c0629(0x1cd)],_0x46d787[_0x2c0629(0x385)]({'unitID':_0x369b2b,'undoMutations':_0x56335e[_0x2c0629(0x195)],'redoMutations':_0x2cfbba[_0x2c0629(0x195)]});}return _0x46d787[_0x2c0629(0x320)]();}};_0x310e51=_0x131186([_0x22bf51(0x0,_0x38d3af[_0x124287(0x2cc)]),_0x22bf51(0x1,_0x38d3af['ICommandService']),_0x22bf51(0x2,_0x38d3af[_0x124287(0x381)]),_0x22bf51(0x3,_0x25767b[_0x124287(0x290)]),_0x22bf51(0x4,_0x38d3af[_0x124287(0x1aa)])],_0x310e51);let _0x475d98=class extends _0x38d3af['Plugin']{constructor(_0x428b5a={},_0x5df9f6,_0x11091b,_0x44141d){const _0x561538=_0x124287;super(),this['_config']=_0x428b5a,this['_logService']=_0x5df9f6,this[_0x561538(0x2ed)]=_0x11091b,this[_0x561538(0x344)]=_0x44141d;let {..._0x209110}=(0x0,_0x38d3af[_0x561538(0x23d)])({},_0x3a2680,_0x428b5a);if(!_0x209110[_0x561538(0x42a)])throw Error(_0x561538(0x3a2));this[_0x561538(0x356)]=_0x209110,this[_0x561538(0x344)][_0x561538(0x39a)](_0xc791ca,_0x209110);}['onStarting'](){const _0x365b63=_0x124287;this[_0x365b63(0x237)](),this[_0x365b63(0x1fa)]();}[_0x124287(0x237)](){const _0x3ba38d=_0x124287;var _0x4d929f,_0x2d05fd;this[_0x3ba38d(0x2ed)]['has'](_0x38d3af[_0x3ba38d(0x2b7)])&&this[_0x3ba38d(0x1d8)][_0x3ba38d(0x338)](_0x3ba38d(0x1dc),_0x3ba38d(0x39f));let _0x391c02=(0x0,_0x38d3af['mergeOverrideWithDependencies'])([[_0x38d3af[_0x3ba38d(0x2b7)],{'useClass':_0x310e51}],[_0x4bcb39],[_0x59032e],[_0x108e5e],[_0x4a34d9],[_0x3798e2],[_0x3b9fd8],[_0x4a6076],[_0x3b3560],[_0x243636],[_0x3a6db1,{'useClass':this['_config'][_0x3ba38d(0x42a)]}],[_0x25767b[_0x3ba38d(0x3be)],{'useClass':_0x59efae}],[_0x38d3af[_0x3ba38d(0x231)],{'useClass':_0x457782}],[_0x295307[_0x3ba38d(0x1a3)],{'useClass':_0x1b0329}],[_0x38d3af[_0x3ba38d(0x455)],{'useClass':_0x5ec726}],[_0x3499dc],[_0x14ab70]],(_0x4d929f=this[_0x3ba38d(0x356)])==null?void 0x0:_0x4d929f[_0x3ba38d(0x228)]);if(!((_0x2d05fd=this[_0x3ba38d(0x356)])!=null&&_0x2d05fd[_0x3ba38d(0x495)])){let _0x5ae0cd=_0x391c02[_0x3ba38d(0x467)](([_0x25772c])=>_0x25772c===_0x1f80e9);_0x5ae0cd!==-0x1&&_0x391c02[_0x3ba38d(0x2ee)](_0x5ae0cd,0x1);}(0x0,_0x38d3af[_0x3ba38d(0x31a)])(this[_0x3ba38d(0x2ed)],_0x391c02);}[_0x124287(0x1fa)](){const _0x41682b=_0x124287;var _0x351875,_0x2f340d;if(this[_0x41682b(0x2ed)][_0x41682b(0x23b)](_0x41d52c[_0x41682b(0x46c)])[_0x41682b(0x186)]({'priority':0x14,'interceptor':(0x0,_0x41d52c[_0x41682b(0x2be)])({'maxParallel':0x6})}),!((_0x351875=this[_0x41682b(0x356)])!=null&&_0x351875[_0x41682b(0x473)])){var _0x8552cd;(_0x8552cd=this['_injector']['get'](_0x19c832,_0x38d3af[_0x41682b(0x460)]['OPTIONAL']))==null||_0x8552cd['disableLocalCache']();}(_0x2f340d=this['_config'])!=null&&_0x2f340d[_0x41682b(0x414)]&&(0x0,_0x38d3af[_0x41682b(0x37a)])(this[_0x41682b(0x2ed)],[[_0x4a34d9]]),(0x0,_0x38d3af['touchDependencies'])(this[_0x41682b(0x2ed)],[[_0x3798e2],[_0x3499dc],[_0x4a6076]]);}};_0x50ece2(_0x475d98,'pluginName',_0x124287(0x25b)),_0x50ece2(_0x475d98,_0x124287(0x458),_0x3119c7),_0x50ece2(_0x475d98,_0x124287(0x3d5),_0x10ce9f),_0x475d98=_0x131186([(0x0,_0x38d3af[_0x124287(0x372)])(_0x4e563e[_0x124287(0x2e0)],_0x25767b[_0x124287(0x362)],_0x41d52c[_0x124287(0x207)]),_0x22bf51(0x1,_0x38d3af['ILogService']),_0x22bf51(0x2,(0x0,_0x38d3af[_0x124287(0x2f1)])(_0x38d3af[_0x124287(0x3cf)])),_0x22bf51(0x3,_0x38d3af[_0x124287(0x41d)])],_0x475d98),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x40e),{'enumerable':!0x0,'get':function(){return _0x457782;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x3e2),{'enumerable':!0x0,'get':function(){return _0x5d6712;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x283),{'enumerable':!0x0,'get':function(){return _0x348457;}}),_0x57bbdc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0xc791ca,Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x450),{'enumerable':!0x0,'get':function(){return _0x3499dc;}}),Object['defineProperty'](_0x57bbdc,_0x124287(0x262),{'enumerable':!0x0,'get':function(){return _0x5817aa;}}),Object[_0x124287(0x2fc)](_0x57bbdc,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0x1b0329;}}),Object['defineProperty'](_0x57bbdc,_0x124287(0x25d),{'enumerable':!0x0,'get':function(){return _0x3be262;}}),Object['defineProperty'](_0x57bbdc,_0x124287(0x425),{'enumerable':!0x0,'get':function(){return _0x4bcb39;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x316),{'enumerable':!0x0,'get':function(){return _0x441833;}}),_0x57bbdc['CollaborationStatus']=_0x5cf168,_0x57bbdc[_0x124287(0x3f5)]=_0x5d149d,_0x57bbdc['CollaborationUIEventService']=_0x3b3560,Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x37e),{'enumerable':!0x0,'get':function(){return _0x310e51;}}),_0x57bbdc[_0x124287(0x410)]=_0x3b9fd8,Object[_0x124287(0x2fc)](_0x57bbdc,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x5171e4;}}),_0x57bbdc[_0x124287(0x49f)]=_0x4e50db,_0x57bbdc['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x124287(0x332),_0x57bbdc[_0x124287(0x2e5)]=_0x124287(0x1c6),Object['defineProperty'](_0x57bbdc,_0x124287(0x1a8),{'enumerable':!0x0,'get':function(){return _0x243636;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x485),{'enumerable':!0x0,'get':function(){return _0x4f76be;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x3c8),{'enumerable':!0x0,'get':function(){return _0xfc54a4;}}),_0x57bbdc['HEARTBEAT_INTERVAL_KEY']=_0x124287(0x2da),_0x57bbdc[_0x124287(0x435)]=_0x124287(0x28d),_0x57bbdc[_0x124287(0x270)]=_0x3a6db1,_0x57bbdc['ILocalCacheService']=_0x19c832,_0x57bbdc[_0x124287(0x3a3)]=_0x530693,_0x57bbdc[_0x124287(0x2c7)]=_0x1f80e9,_0x57bbdc[_0x124287(0x3d9)]=0x3e8,_0x57bbdc['LOCAL_CACHE_INTERVAL_KEY']=_0x124287(0x3d9),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x2ce),{'enumerable':!0x0,'get':function(){return _0x59032e;}}),Object[_0x124287(0x2fc)](_0x57bbdc,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x5ec726;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x3d3),{'enumerable':!0x0,'get':function(){return _0x24826c;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x406),{'enumerable':!0x0,'get':function(){return _0x2411fe;}}),_0x57bbdc['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x57bbdc['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x124287(0x2ea),_0x57bbdc[_0x124287(0x299)]=_0x510b1c,Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x23f),{'enumerable':!0x0,'get':function(){return _0xc23225;}}),Object[_0x124287(0x2fc)](_0x57bbdc,_0x124287(0x386),{'enumerable':!0x0,'get':function(){return _0x108e5e;}}),Object[_0x124287(0x2fc)](_0x57bbdc,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x59efae;}}),Object[_0x124287(0x2fc)](_0x57bbdc,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4e4794;}}),_0x57bbdc[_0x124287(0x47d)]=_0x1cff2f,Object['defineProperty'](_0x57bbdc,_0x124287(0x2f9),{'enumerable':!0x0,'get':function(){return _0x475d98;}}),_0x57bbdc[_0x124287(0x400)]=_0x1195e2,_0x57bbdc['getLocalCacheKey']=_0x150d9d,_0x57bbdc[_0x124287(0x191)]=_0x12070a;}));
1
+ function _0x489a(){const _0x1b3066=['constructor','_clearCollaborationTimeoutTimer','UNIVER_DOC','/object/','1293093Bnxcrr','_members','_shouldReportTelemetry','_acknowledgeAwaitingIfReady','sessionStatus','&assign=','collaboration-client.config','CombCmd','_throwTelemetryCollaborationNewChangeset','CONFLICT','objectActions','sort','SetSelectionsOperation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','@univerjs/telemetry','_members$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_fetchMissChangesets','_redoStacks','transformChangesets','_initRequestHeader','CollaborationUIEventService','FAIL','Uint8Array','error','_clearScheduledTask','data','Module','_sheetTransformSelectionsService','/universer-api/comb','SHOULD_CLOSE_CONN','putCollaborators','isInternalEditorID','_createSocket','_onLocalMutation','_cfgEnableObjInherit','JOIN_ROOM_FULL','_stopTelemetryCollaborationNewChangeset','target','set','_roomMembers','SNAPSHOT_URL_KEY','@univerjs/sheets','_init','close','getUnitId','resolve','ERROR_IMAGE_TYPE','_getDownloadEndpointURL','getInterceptPoints','[CollaborationSessionService]:\x20socket\x20error','_state$','UniverTelemetry','&source=','number','_handlerCallback','_queuedRemoteChangesets','RETRY_CONNECTING_MAX_COUNT','has','?url=','onRemoteRetry','getAllMembers','updateOfflineData','DocCollaborationEntity','getActiveSheet','141350lJHHZs','_sendHeartbeat','ImageUploadStatusType','_getUploadFileURL','PERSON','transformStack\x20failed!','Failed\x20to\x20update\x20permission\x20point','slice','awaiting','actions','offline','appendMutation','onRemoteChangeset','nonceLength','_emitMembers','MSG_FOR_ERROR','CollaborationImageIoService','transformSelections','_retryConnectingTimer','_sender','getRandomValues','revision','_exhaustRemoteChangesetQueue','SheetsSelectionsService','Optional','updateCursorEvent','6554264oLOpAZ','/role','PERMISSION_REJ','JOIN','IConfigService','socket\x20open.','_roomCreated$','SheetTransformSelectionsService','reqId','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','IUniverInstanceService','send','getCurrentSelections','UnitStatus','generateRandomId','list','addHandlerCallback','_waitForHeartbeatResponse','call','parseChangesetToProtocol','INGEST','fromCharCode','_joinRoom','transformMutationsWithChangeset','onTransformRemoteChangesetByStateCache','originalMeta','put','UniverProtocol','updateSnapshot','_replayCachedMutations','permissionRejEvent','HELLO','_pendingMutations','/universer-api/stream/file/upload','_changesetSessionId','_imageSourceCache','_networkConditionService','getGlobalObject','updatePermissionObjEvent','changesets','_isEchoedAwaitingChangeset','_collaborationUIEventService','csRejEvent','dispose$','getLocalCacheKey','getOwnPropertyDescriptor','_resendTimeout','_unitInfo$','SyncedState','ISnapshotServerService','min','_onUserJoin','\x0aAfter:\x20','_transformRemoteChangesetByStateCache','patch','output','UniverLicensePlugin','nonce','ThresholdInterceptorFactory','UNISCRIPT_RUN','{fileID}','listRoles','getSheetId','subarray','_transformStateCache','_commandService','Workbook','onMissingChangesets','_timeoutTimer','ERROR_IMAGE','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_event$','univer-pro.collaboration-client-socket-service','subject','HEARTBEAT_INTERVAL','_createInitialStateImpl','_onCombEvent','online$','decrypt','_scheduleCompleteTimestamp','pending','m2Prime','FETCH_MISS','_HTTPService','_submitChangeset','x-univer-host','collabSubmitChangesetUrl','getFocusedUnit','touchDependencies','leaveEvent','crypto','isView','ITelemetryService','readyForCollab','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[PendingState]:\x20received\x20rejection.','_socketService','toStringTag','ErrorCode','onload','RECV','length','/collaborator','EmptyMutationInfo','UniverNetwork','c1Prime','init','0.22.1','UPDATE_PERMISSION_OBJ','filter','_getSendChangesetTimeout','loadUnit','clear','responseType','expected\x20Uint8Array','_transformIMECache','routeKey','fetchMiss','_onConnectionFailed','loginUrlKey','getCurrentRevOfUnit','deleteCollaborator','LOCAL_CACHE_INTERVAL_KEY','shouldCloseConn','_getRedoStack','charCodeAt','joinRsp','UNIVER_SHEET','MUTATION','_substituteRedoStack','/unit/','_changesetReqId','isSafeInteger','_type','_compressMutationService','CollaborativeUndoRedoService','@univerjs/docs','LOCAL_CACHE_INTERVAL','key','ONLINE','onLocalMutation','csAckEvent','take','_onJoinRoomEvent','@univerjs/core','withCredentials','requestParams','_applyRemoteChangeset','Injector','UniverDocs','getMemberID','size','confirm','[OfflineState]:\x20received\x20rejection.','NO_OTHER_CLIENTS_EDITING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_entities','getCurrentUser','every','_waitCount','snapshotServerUrl','&to=','_clearHeartbeatTimer','_change$','onTransformIME','MentionType','_httpService','_updateLocalCache','onStateChange','USERS_ENTER','iterator','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_updateStatus','_schedule','_permissionService','_transitionLocked','error$','__Key__','packageName','override','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','/universer-api/oidc/authpage','getImage','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','/-/object/-/batch_allowed','\x0aCurrent:\x20','sessionStatus$','stringify','collaborators','resolveWithBasePath','loadUnitOfRevision','AwaitingWithPendingState','_substituteUndoStack','getCollabEntity$','pluginName','emitEvent','Error\x20on\x20receiving\x20event','Rectangle','defineProperty','/universer-api/snapshot/','CollaborationSessionService','COMPRESS_MUTATION_APPLY','_checkMissing','InsertSheetMutation','getRoom','FileSource','_userManagerService','ICommandService','ConflictState','_sessionStatus$','liveShareNewHost','floor','_collabSessionService','NOT_COLLAB','varSizeNonce','_executeRemoteChangeset','_localeService','getUnitType','function','transformUndoRedo','range','body','CLOSE_ROOM','LocaleService','isTransformMutationsWithChangesetFailure','decorate','fromHex','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','Subject','rev','INetworkConditionService','CommentService','/allowed','state','isTransformMutationsWithChangesetSuccess','_undoRedoService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getMember','CollaborationSocketService','fetch_missing','objectType','fetchThroughInterceptors','session.join-failed','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_snapshotServerService','unsubscribe','setWaitCount','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','closeSession','_candidateSocket','enableSingleActiveInstanceLock','_onMessage','_onRemoteRejected','_onRemoteACK','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','takeUntil','_logService','getValue','prototype','encode','HTTPService','SessionStatus','push','_transformUndoredo','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_scheduleCollaborationTimeoutTimer','startsWith','AWAITING','/resources','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_getSignURL','params','downloadEndpointUrl','_transformAndApplyRemoteChangeset','_createInitialState','UniverSheets','pauseCollaboration','resourceIDs','symbol','AWAITING_WITH_PENDING','_doCreateSocket','ITransformService','_resendTimer','_onFetchMissResult','@univerjs/drawing','5979EzynOZ','debug','PENDING','toDisposable','ImageSourceType','saveSheetBlock','onCommentUpdate','event$','OTHER_CLIENT_EDITING','ILogService','allowed','getSheetBlock','merge','hostname','joinEvent','onSendChangeset','interceptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onRecvEvent','removeMember','HTTPRequest','string\x20expected','onlyLocal','failed\x20to\x20apply\x20missed\x20changesets!','?size=','CompressMutationService','JSONX','socketService','_initMergeInterceptor','_clearUndo','_collaborationPaused','onRemoteRej','_initDependencies','_eventService','UniverCore','get','_remoteChangesetQueue','type','_localCacheService','getTime','enableAuthServer','newCsEvent','IUndoRedoService','ERROR_EXCEED_SIZE','_acknowledgeAwaiting','complete','[CollaborationSessionService]','_entityInit$','unit','_transformRemoteChangesetByIMECache','6eHHXbm','BYTES_PER_ELEMENT','_lockTransition','cfgEnableObjInherit','string','src','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','5917780TuoiCA','localCacheService','UniverProCollaborationClient','setCurrentUser','UniverProLicense','focused$','_unitID','enableOfflineEditing','reject','selections','BASE64','_socketReady','state$','[OfflineState]:\x20received\x20changeset.','_awaitingChangeset','_transformStack','_transformService','dispose','@univerjs-pro/collaboration','_retryCount','onSyncEditingCollabCursor','map','cmd','apply','_registerDependencies','byteLength','rxjs','getImageSourceCache','HEARTBEAT_TIMEOUT_KEY','HEARTBEAT','not_collab','CHANGESET_SHOULD_RETRY','COMMENT_UPDATE','aes/pkcs7:\x20wrong\x20padding','findIndex','PendingState','collabWebSocketUrl','Quantity','onMissedChangesetFetched','_sessions','AAD','CommandType','NEW_CHANGESETS','CollaborationEntity','shareReplay','_clearRetryConnectingTimer','session.room-not-exists','IContextService','_getLoginPath','HEARTBEAT_TIMEOUT','__splitChunk__','baseRev','assign','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_listenToNetworkCondition','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','LEAVE','getResourcesRequest','onTransformSelections','uploadFileServerUrl','rxjs/operators','UniverNetworkPlugin','IImageIoService','_socketMessageSubscription','_clearTimeoutTimer','positive\x20integer\x20expected,\x20got\x20','byteOffset','CHANGESET_REJ','_startCollaboration','updatePermissionPoint','signUrlServerUrl','onRemoteAck','CHANGESET_ACK','LIVESHARE_OPERATION','firstValueFrom','subUnitId','ILocalCacheService','objects','missingChangesets','isTransformChangesetsSuccess','_collaborationSessionService','collaboratorID','cipher\x20output\x20not\x20supported','delay','People','saveChangeset','RxDisposable','getUnitStatus$','then','LIVESHARE_FETCH_OPERATIONS','_revisionService','/rev/','title','SheetPermissionInitController','synced','objectID','SUBMIT_CHANGESET','fromCollab','collaMsg','executeCommand','_maxTotalRetryTimeout','commentUpdateEvent','compose','reduce','name','create','entries','[SyncedState]:\x20received\x20acknowledgement.','telemetry\x20info\x20is\x20not\x20initialized','[CollaborationUndoRedoService]','JOIN_ROOM_FAILED','@univerjs/network','_getCtorByUniverInstanceType','/fetchmissing?from=','_tryEnsureSocket','toString','/universer-api/authz','UnitEmbedded','capture','CollaborationStatus','connection\x20error','forEach','_instanceService','_injector','toggleOffline','authzUrl','IAuthzIoService','_getUndoStack','DEFAULT_FILE_NAME','UNIVER_COLLABORATION_CLIENT_PLUGIN','buffer','_onConflict','operators','fetchMissingChangesets','_disableEditing','_onConnectionOpen','unitID','getTypeOfUnitAdded$','/universer-api/snapshot','getLatestCsReqIdBySid','unitId\x20is\x20not\x20found','subscribe','sendChangesetTimeout','updateMember','_getAPIPrefix','SYNCED','textRanges','uniscriptRunEvent','object','sequenceExecute','members','_onUserLeave','href','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','auth.needGotoLoginAlert','_memberService','add','retryConnectingInterval','OFFLINE','awaitingChangeset','setCfgEnableObjInherit','message$','mutations','setConfig','_snapshotService','_getAPIPrefixPath','765842DZRbLh','open$','addImageSourceCache','/block/','_acknowledgedAwaitingRevision','FileId','updateCollaborator','_socket','pipe','values','ISingleActiveUnitService','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','CollaborationEvent','IDLE','_unlockTransition','file','editingUnit','userID','session.room-full','_socket$','SOCKET_FAILED_RETRY','\x20to\x20','70sUuOUL','createSocket','sheets','submit\x20changeset\x20error!','toggleOnline','unit-cache-','disposeWithMe','concatMap','_showConflictNotification','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_rescheduleHeartbeat','Wrong\x20sbox\x20length','getWorkbookSelections','USERS_LEAVE','9cKLBef','conflict','AwaitingState','_tryReconnect','JOIN_ROOM_PERMISSION_DENIED','12KFARET','indexOf','socket$','WorkbookEditablePermission','reverse','url','UUID','loadDoc','batchAllowed','unitInfo$','UniverCollaborationClientPlugin','localeService','crypto.getRandomValues\x20must\x20be\x20defined','catch','invalid\x20output,\x20must\x20be\x20aligned','now','PERMISSION_DENIED','RevisionService','_state','disableLocalCache','[OfflineState]:\x20received\x20acknowledgement.','_handleRemoteChangesets','OTHER_CLIENTS_EDITING','ReplaySubject','Inject','UniverInstanceType','resend','getDeserializedSheetBlock','deepClone','sid','Disposable','IMentionIOService','POST','liveShareOperation','\x20-\x20','OPTIONAL','startTime','_isPermissionRej','\x20of\x20length\x20','_handler','mapDocumentTypeToUniverInstanceType','3516480oLQJOZ','_status$','JOIN_ROOM_NOT_EXISTS','_resendWithTimeout','close$','_decreaseWaiting','HEARTBEAT_INTERVAL_KEY','uuidv4','workbook','JOINING','LIVESHARE_REQUEST_HOST','_createHandler','csShouldRetryEvent','parseProtocolChangeset','onTransformRemoteChangesetByIMECache','_toggleOffline','memberID','_sendingTimer','isPermissionRej','SUBMIT_CHANGESET_TIMEOUT','delete','UniverDrawing','commentUpdate$','[PendingState]:\x20received\x20acknowledgement.','onStarting','getUnit','next','LIVESHARE_NEW_HOST','createIdentifier','isArray','members$','_onRemoteRetry','from','post','append','collaboration_new_changeset','_incrementRevisionNumber','registerDependencies','[CollaborationSession]','tagLength','registerHTTPInterceptor','getCollabEntity','_collaborationTimeoutTimer','toHex','snapshot','save\x20fail\x20reason\x20is\x20','textEncoder','_univerInstanceService','getConfig','code','[DataLoaderService]','loadOfflineData','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','equals','_startTelemetryCollaborationNewChangeset','_telemetryInfo','UPDATE_CURSOR','_getCurrentRevision','editing\x20status\x20changed\x20to','createInstance','AuthzIoHttpService','_initUnitPermissionChange','MemberService','requireSession','eventID','IPermissionService','unknown','_updateState','includes','asObservable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','number\x20expected,\x20got\x20','headers','CollaborationController','RichTextEditingMutation','getTypeOfUnitDisposed$','_clearLocalCache','readAsDataURL','find','method','@univerjs-pro/license','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_undoStacks','status','_config','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','SOCKET_FAILED','infoRsp','session','stopTime','LIVESHARE_TERMINATE','b64DecodeUnicode','getSnapshotAPIPath','COMPRESS_MUTATION_SEND','CmdRspCode','fetching\x20missing\x20changesets\x20from\x20','_clearRedo','BehaviorSubject','_initCloseConn','unitId','encrypt','_sendHeartbeatTimer','_commentUpdate$','[CollaborationEntity]','_configService','encodeURIComponent','FETCH_MISSING','_telemetryService','location','[CollaborationState]:\x20apply\x20error!','awaiting_with_pending','getDrawingImageAllowSize','socket\x20close','Univer','exports','_transformSelections','Plugin','_onOffline','change$'];_0x489a=function(){return _0x1b3066;};return _0x489a();}function _0x20b8(_0xf8a862,_0x18bef8){_0xf8a862=_0xf8a862-0x1f0;const _0x489ae7=_0x489a();let _0x20b83c=_0x489ae7[_0xf8a862];return _0x20b83c;}(function(_0x3db299,_0x55ecf8){const _0x414f2b=_0x20b8,_0x3af16f=_0x3db299();while(!![]){try{const _0x151386=parseInt(_0x414f2b(0x2fb))/0x1*(parseInt(_0x414f2b(0x3f0))/0x2)+-parseInt(_0x414f2b(0x4a7))/0x3*(parseInt(_0x414f2b(0x403))/0x4)+parseInt(_0x414f2b(0x42c))/0x5+parseInt(_0x414f2b(0x32d))/0x6*(-parseInt(_0x414f2b(0x3da))/0x7)+parseInt(_0x414f2b(0x502))/0x8*(parseInt(_0x414f2b(0x3fe))/0x9)+-parseInt(_0x414f2b(0x4e8))/0xa+parseInt(_0x414f2b(0x334))/0xb;if(_0x151386===_0x55ecf8)break;else _0x3af16f['push'](_0x3af16f['shift']());}catch(_0xb540cb){_0x3af16f['push'](_0x3af16f['shift']());}}}(_0x489a,0xd04c6),function(_0x134601,_0x1628cc){const _0x280d9e=_0x20b8;typeof exports=='object'&&typeof module<'u'?_0x1628cc(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/network`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define==_0x280d9e(0x2b7)&&define['amd']?define([_0x280d9e(0x49e),_0x280d9e(0x346),_0x280d9e(0x26d),_0x280d9e(0x265),_0x280d9e(0x4d1),_0x280d9e(0x34e),'@univerjs/protocol',_0x280d9e(0x4b5),_0x280d9e(0x370),_0x280d9e(0x3a3),_0x280d9e(0x47c),_0x280d9e(0x2fa)],_0x1628cc):(_0x134601=typeof globalThis<'u'?globalThis:_0x134601||self,_0x1628cc(_0x134601[_0x280d9e(0x336)]={},_0x134601['UniverProCollaboration'],_0x134601[_0x280d9e(0x31d)],_0x134601[_0x280d9e(0x272)],_0x134601[_0x280d9e(0x2f1)],_0x134601[_0x280d9e(0x34e)],_0x134601[_0x280d9e(0x1f7)],_0x134601[_0x280d9e(0x4db)],_0x134601[_0x280d9e(0x34e)][_0x280d9e(0x3b8)],_0x134601[_0x280d9e(0x245)],_0x134601[_0x280d9e(0x338)],_0x134601[_0x280d9e(0x441)]));}(this,function(_0x34a032,_0x2b4fec,_0x1f27ed,_0x3b0f13,_0x47a016,_0xd93cf,_0x26034e,_0x416cdb,_0x4f33c6,_0x2514fd,_0x98661d,_0x310bbf){const _0x5e5e22=_0x20b8;Object[_0x5e5e22(0x2a3)](_0x34a032,Symbol[_0x5e5e22(0x23e)],{'value':_0x5e5e22(0x4c2)});let _0x505fc1='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1589e0=0x4e20;function _0x22fab6(_0x5f0812){const _0x5ae1d1=_0x5e5e22;return JSON[_0x5ae1d1(0x298)](_0x5f0812)[_0x5ae1d1(0x242)];}function _0x5c19c3(_0x344009){'@babel/helpers - typeof';const _0x23451e=_0x5e5e22;return _0x5c19c3=typeof Symbol==_0x23451e(0x2b7)&&typeof Symbol[_0x23451e(0x287)]==_0x23451e(0x2f4)?function(_0xf0a54a){return typeof _0xf0a54a;}:function(_0x391451){const _0x5b7c26=_0x23451e;return _0x391451&&typeof Symbol==_0x5b7c26(0x2b7)&&_0x391451[_0x5b7c26(0x4a3)]===Symbol&&_0x391451!==Symbol[_0x5b7c26(0x2e0)]?_0x5b7c26(0x2f4):typeof _0x391451;},_0x5c19c3(_0x344009);}function _0x8dd928(_0x1dcf91,_0x3d83f5){const _0x51479c=_0x5e5e22;if(_0x5c19c3(_0x1dcf91)!=_0x51479c(0x3c8)||!_0x1dcf91)return _0x1dcf91;var _0x5f11c7=_0x1dcf91[Symbol['toPrimitive']];if(_0x5f11c7!==void 0x0){var _0x512b62=_0x5f11c7['call'](_0x1dcf91,_0x3d83f5||'default');if(_0x5c19c3(_0x512b62)!=_0x51479c(0x3c8))return _0x512b62;throw TypeError(_0x51479c(0x30c));}return(_0x3d83f5===_0x51479c(0x331)?String:Number)(_0x1dcf91);}function _0x29a4d8(_0x3b6bbe){const _0x548a68=_0x5e5e22;var _0x851b7=_0x8dd928(_0x3b6bbe,_0x548a68(0x331));return _0x5c19c3(_0x851b7)=='symbol'?_0x851b7:_0x851b7+'';}function _0x5886a9(_0x4f042a,_0xc2b6f5,_0x19cab8){const _0x2babe2=_0x5e5e22;return(_0xc2b6f5=_0x29a4d8(_0xc2b6f5))in _0x4f042a?Object[_0x2babe2(0x2a3)](_0x4f042a,_0xc2b6f5,{'value':_0x19cab8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f042a[_0xc2b6f5]=_0x19cab8,_0x4f042a;}let _0x3d6a45=function(_0x5566ef){const _0x53aa4c=_0x5e5e22;return _0x5566ef[_0x53aa4c(0x303)]=_0x53aa4c(0x303),_0x5566ef[_0x53aa4c(0x413)]=_0x53aa4c(0x413),_0x5566ef['CONFLICT']=_0x53aa4c(0x4b0),_0x5566ef[_0x53aa4c(0x2bb)]='CLOSE_ROOM',_0x5566ef[_0x53aa4c(0x3a2)]=_0x53aa4c(0x3a2),_0x5566ef[_0x53aa4c(0x3ee)]=_0x53aa4c(0x3ee),_0x5566ef[_0x53aa4c(0x482)]='SOCKET_FAILED',_0x5566ef[_0x53aa4c(0x43f)]=_0x53aa4c(0x43f),_0x5566ef;}({});var _0x2af8d7=class{constructor(){const _0x1218e8=_0x5e5e22;_0x5886a9(this,_0x1218e8(0x223),new _0xd93cf[(_0x1218e8(0x2c2))]()),_0x5886a9(this,_0x1218e8(0x302),this['_event$']['asObservable']());}[_0x5e5e22(0x2a0)](_0x1f487b){const _0x5a05c3=_0x5e5e22;this['_event$'][_0x5a05c3(0x446)](_0x1f487b);}},_0x5909a8=class{constructor(){const _0x112d50=_0x5e5e22;_0x5886a9(this,_0x112d50(0x492),new _0xd93cf[(_0x112d50(0x2c2))]()),_0x5886a9(this,_0x112d50(0x442),this[_0x112d50(0x492)]['asObservable']());}[_0x5e5e22(0x301)](_0x274a2b){const _0x4ffbeb=_0x5e5e22;this[_0x4ffbeb(0x492)][_0x4ffbeb(0x446)](_0x274a2b);}};function _0x26ba80(_0x2b2316,_0xbc2cf9){return function(_0x2debda,_0x508061){_0xbc2cf9(_0x2debda,_0x508061,_0x2b2316);};}function _0x28d1a4(_0x18b782,_0xba7453,_0x482d4c,_0xe141fa){const _0x57570f=_0x5e5e22;var _0x388aa8=arguments[_0x57570f(0x242)],_0x1fb2c4=_0x388aa8<0x3?_0xba7453:_0xe141fa===null?_0xe141fa=Object[_0x57570f(0x209)](_0xba7453,_0x482d4c):_0xe141fa,_0x543ea3;if(typeof Reflect==_0x57570f(0x3c8)&&typeof Reflect['decorate']==_0x57570f(0x2b7))_0x1fb2c4=Reflect[_0x57570f(0x2be)](_0x18b782,_0xba7453,_0x482d4c,_0xe141fa);else{for(var _0x438ada=_0x18b782['length']-0x1;_0x438ada>=0x0;_0x438ada--)(_0x543ea3=_0x18b782[_0x438ada])&&(_0x1fb2c4=(_0x388aa8<0x3?_0x543ea3(_0x1fb2c4):_0x388aa8>0x3?_0x543ea3(_0xba7453,_0x482d4c,_0x1fb2c4):_0x543ea3(_0xba7453,_0x482d4c))||_0x1fb2c4);}return _0x388aa8>0x3&&_0x1fb2c4&&Object[_0x57570f(0x2a3)](_0xba7453,_0x482d4c,_0x1fb2c4),_0x1fb2c4;}let _0x3aba96=class extends _0x1f27ed[_0x5e5e22(0x421)]{constructor(_0x1fd2df,_0x1da321){const _0x138a92=_0x5e5e22;super(),this['_univerInstanceService']=_0x1fd2df,this[_0x138a92(0x2ab)]=_0x1da321,_0x5886a9(this,_0x138a92(0x4cf),new Map()),_0x5886a9(this,_0x138a92(0x508),new _0xd93cf[(_0x138a92(0x2c2))]()),this[_0x138a92(0x3f6)]((0x0,_0xd93cf[_0x138a92(0x307)])(this['_univerInstanceService'][_0x138a92(0x477)](_0x1f27ed[_0x138a92(0x41c)][_0x138a92(0x25c)])[_0x138a92(0x3e2)]((0x0,_0x4f33c6[_0x138a92(0x349)])(_0x40dd9b=>_0x40dd9b[_0x138a92(0x4d4)]())),this[_0x138a92(0x45b)][_0x138a92(0x477)](_0x1f27ed['UniverInstanceType']['UNIVER_DOC'])[_0x138a92(0x3e2)]((0x0,_0x4f33c6['map'])(_0x186cfd=>_0x186cfd[_0x138a92(0x4d4)]())))[_0x138a92(0x3c1)](_0x5e0226=>this['_removeRoom'](_0x5e0226)));}['waitForRoom$'](_0x5b6481){const _0xc27428=_0x5e5e22;return this['_roomMembers'][_0xc27428(0x4e1)](_0x5b6481)?(0x0,_0xd93cf['of'])(this[_0xc27428(0x4cf)][_0xc27428(0x31e)](_0x5b6481)):this[_0xc27428(0x508)]['pipe']((0x0,_0x4f33c6['map'])(_0x17b9c5=>{const _0x3e40aa=_0xc27428;if(_0x17b9c5===_0x5b6481)return this['_roomMembers'][_0x3e40aa(0x31e)](_0x17b9c5);}));}[_0x5e5e22(0x337)](_0x5a64cf){const _0x2f2d46=_0x5e5e22;this[_0x2f2d46(0x2ab)][_0x2f2d46(0x337)](_0x5a64cf);}[_0x5e5e22(0x27a)](){const _0x42c6ac=_0x5e5e22;return this[_0x42c6ac(0x2ab)]['getCurrentUser']();}['updateMember'](_0x407cd5,_0x5d096c){const _0x1d5122=_0x5e5e22;let _0x3d57c5=this[_0x1d5122(0x4cf)][_0x1d5122(0x31e)](_0x407cd5);_0x3d57c5||(_0x3d57c5=new _0x3c1229(),this[_0x1d5122(0x4cf)][_0x1d5122(0x4ce)](_0x407cd5,_0x3d57c5),this[_0x1d5122(0x508)]['next'](_0x407cd5)),_0x3d57c5['updateMember'](_0x5d096c);}[_0x5e5e22(0x30e)](_0xc347fb,_0x5373f8){const _0x10a14b=_0x5e5e22;let _0xad6aec=this[_0x10a14b(0x4cf)][_0x10a14b(0x31e)](_0xc347fb);_0xad6aec&&_0xad6aec['removeMember'](_0x5373f8);}[_0x5e5e22(0x2a9)](_0x26a576){const _0x2facb6=_0x5e5e22;return this[_0x2facb6(0x4cf)][_0x2facb6(0x31e)](_0x26a576);}[_0x5e5e22(0x2cb)](_0x4136d2,_0x752b6e){const _0x3351cb=_0x5e5e22;let _0xa393a8=this[_0x3351cb(0x4cf)][_0x3351cb(0x31e)](_0x4136d2);if(_0xa393a8)return _0xa393a8[_0x3351cb(0x2cb)](_0x752b6e);}['_removeRoom'](_0xbd1532){const _0x4fc3ef=_0x5e5e22;let _0x52b3ab=this[_0x4fc3ef(0x4cf)]['get'](_0xbd1532);_0x52b3ab&&(_0x52b3ab[_0x4fc3ef(0x345)](),this['_roomMembers'][_0x4fc3ef(0x440)](_0xbd1532));}[_0x5e5e22(0x345)](){const _0x81ead6=_0x5e5e22;this[_0x81ead6(0x4cf)]['forEach'](_0x22eded=>_0x22eded[_0x81ead6(0x345)]()),this['_roomMembers']['clear'](),this[_0x81ead6(0x508)][_0x81ead6(0x328)]();}};_0x3aba96=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed['IUniverInstanceService']),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['UserManagerService']))],_0x3aba96);var _0x3c1229=class extends _0x1f27ed['Disposable']{constructor(..._0x463834){const _0x5ae67b=_0x5e5e22;super(..._0x463834),_0x5886a9(this,_0x5ae67b(0x4a8),new Map()),_0x5886a9(this,'_members$',new _0xd93cf[(_0x5ae67b(0x48d))](this[_0x5ae67b(0x4a8)])),_0x5886a9(this,_0x5ae67b(0x44a),this[_0x5ae67b(0x4b6)][_0x5ae67b(0x471)]());}[_0x5e5e22(0x345)](){const _0x5e21c2=_0x5e5e22;this[_0x5e21c2(0x4a8)]['clear'](),this[_0x5e21c2(0x4b6)][_0x5e21c2(0x328)]();}[_0x5e5e22(0x3c3)](_0x8829e0){const _0x3658ad=_0x5e5e22;this[_0x3658ad(0x4a8)][_0x3658ad(0x4ce)](_0x8829e0[_0x3658ad(0x43c)],_0x8829e0),this[_0x3658ad(0x4f6)]();}[_0x5e5e22(0x30e)](_0x3a9d46){const _0x6134de=_0x5e5e22;this[_0x6134de(0x4a8)]['delete'](_0x3a9d46),this['_emitMembers']();}[_0x5e5e22(0x2cb)](_0x20859b){const _0x47a4f9=_0x5e5e22;return this[_0x47a4f9(0x4a8)][_0x47a4f9(0x31e)](_0x20859b);}[_0x5e5e22(0x4e4)](){const _0x54ff3d=_0x5e5e22;return Array[_0x54ff3d(0x44c)](this['_members'][_0x54ff3d(0x3e3)]());}['_emitMembers'](){const _0x29aacb=_0x5e5e22;this['_members$'][_0x29aacb(0x446)](this[_0x29aacb(0x4a8)]);}};let _0x4cf53d=function(_0x44afc9){const _0x419103=_0x5e5e22;return _0x44afc9[_0x44afc9[_0x419103(0x3e7)]=0x0]=_0x419103(0x3e7),_0x44afc9[_0x44afc9[_0x419103(0x435)]=0x1]=_0x419103(0x435),_0x44afc9[_0x44afc9[_0x419103(0x3d2)]=0x2]=_0x419103(0x3d2),_0x44afc9[_0x44afc9[_0x419103(0x268)]=0x3]=_0x419103(0x268),_0x44afc9;}({}),_0x4088c5={[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x4bd)]]:_0x5e5e22(0x2d0),[_0x26034e['CmdRspCode'][_0x5e5e22(0x4cb)]]:_0x5e5e22(0x3ec),[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x42e)]]:_0x5e5e22(0x362),[_0x26034e[_0x5e5e22(0x48a)][_0x5e5e22(0x402)]]:'session.room-permission-denied',[_0x26034e[_0x5e5e22(0x48a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'},_0x56a6c2=class extends _0x1f27ed[_0x5e5e22(0x38a)]{get[_0x5e5e22(0x4ab)](){const _0x52d28b=_0x5e5e22;return this[_0x52d28b(0x2ae)][_0x52d28b(0x2df)]();}constructor(_0x333657,_0x5c3a2e,_0x55abca,_0x32f75b,_0x136e97,_0x286597,_0x5123a7,_0x4982fa){const _0x3dd31e=_0x5e5e22;super(),this[_0x3dd31e(0x33a)]=_0x333657,this[_0x3dd31e(0x2de)]=_0x55abca,this[_0x3dd31e(0x494)]=_0x32f75b,this[_0x3dd31e(0x3cf)]=_0x136e97,this['_commentService']=_0x286597,this['_collaborationUIEventService']=_0x5123a7,this[_0x3dd31e(0x497)]=_0x4982fa,_0x5886a9(this,'_sessionStatus$',new _0xd93cf['BehaviorSubject'](0x0)),_0x5886a9(this,_0x3dd31e(0x297),this['_sessionStatus$'][_0x3dd31e(0x471)]()),_0x5886a9(this,_0x3dd31e(0x223),new _0xd93cf['Subject']()),_0x5886a9(this,'event$',this[_0x3dd31e(0x223)][_0x3dd31e(0x471)]()),_0x5886a9(this,_0x3dd31e(0x3e1),void 0x0),_0x5886a9(this,_0x3dd31e(0x373),void 0x0),_0x5886a9(this,'_collaborationTimeoutTimer',void 0x0),_0x5886a9(this,_0x3dd31e(0x4a9),!0x1),_0x5886a9(this,'_telemetryInfo',null),this[_0x3dd31e(0x4a9)]=!!this[_0x3dd31e(0x497)],_0x5c3a2e[_0x3dd31e(0x3e2)]((0x0,_0xd93cf[_0x3dd31e(0x2dd)])(this['dispose$']))[_0x3dd31e(0x3c1)](_0x5f0efb=>{const _0x3f4a5f=_0x3dd31e;if(_0x5f0efb!==void 0x0){if(this['_socket']=_0x5f0efb,_0x5f0efb)this['_joinRoom'](_0x5f0efb),this[_0x3f4a5f(0x373)]=_0x5f0efb[_0x3f4a5f(0x3d5)]['subscribe'](_0x12ef15=>{const _0x2807a7=_0x3f4a5f;_0x12ef15['routeKey']===this[_0x2807a7(0x33a)]&&this['_onCombEvent'](_0x12ef15);});else{var _0x413376;this[_0x3f4a5f(0x4af)](),this[_0x3f4a5f(0x2ae)]['next'](0x2),(_0x413376=this[_0x3f4a5f(0x373)])==null||_0x413376[_0x3f4a5f(0x2d3)](),this[_0x3f4a5f(0x373)]=null;}}});}[_0x5e5e22(0x273)](){const _0x74fe34=_0x5e5e22;var _0x299649,_0x26d01c;return(_0x299649=(_0x26d01c=this[_0x74fe34(0x3e1)])==null?void 0x0:_0x26d01c[_0x74fe34(0x43c)])==null?null:_0x299649;}[_0x5e5e22(0x345)](){const _0x4f6972=_0x5e5e22;super[_0x4f6972(0x345)](),this[_0x4f6972(0x4d3)](),this[_0x4f6972(0x207)][_0x4f6972(0x446)](),this[_0x4f6972(0x207)][_0x4f6972(0x328)]();}[_0x5e5e22(0x4d3)](){const _0x561c32=_0x5e5e22;var _0x600c8a,_0x55eb6d;this[_0x561c32(0x4af)](),(_0x600c8a=this['_socket'])==null||_0x600c8a[_0x561c32(0x50d)]({'cmd':_0x26034e[_0x561c32(0x4ae)][_0x561c32(0x36c)],'data':{'roomID':this[_0x561c32(0x33a)]}}),(_0x55eb6d=this[_0x561c32(0x3e1)])==null||_0x55eb6d[_0x561c32(0x4d3)](),this[_0x561c32(0x223)][_0x561c32(0x328)](),this[_0x561c32(0x2ae)]['complete']();}[_0x5e5e22(0x228)](_0x20bcd3){const _0x5a094e=_0x5e5e22;_0x20bcd3[_0x5a094e(0x34a)]===_0x26034e[_0x5a094e(0x4ae)][_0x5a094e(0x505)]?this[_0x5a094e(0x26c)](_0x20bcd3):_0x20bcd3[_0x5a094e(0x34a)]===_0x26034e[_0x5a094e(0x4ae)][_0x5a094e(0x241)]&&this['_onRecvEvent'](_0x20bcd3);}[_0x5e5e22(0x1f2)](_0x9cd14e){const _0x1c2775=_0x5e5e22;this[_0x1c2775(0x2ae)]['next'](0x1),_0x9cd14e[_0x1c2775(0x50d)]({'cmd':_0x26034e[_0x1c2775(0x4ae)]['JOIN'],'routeKey':this[_0x1c2775(0x33a)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1c2775(0x33a)]}]}});}[_0x5e5e22(0x26c)](_0x4e44dc){const _0x7ec08b=_0x5e5e22;var _0x11bba9;if(_0x4e44dc['code']in _0x4088c5){this['_collaborationUIEventService'][_0x7ec08b(0x2a0)]({'id':_0x7ec08b(0x3a2),'data':_0x4088c5[_0x4e44dc[_0x7ec08b(0x45d)]]}),this[_0x7ec08b(0x2ae)][_0x7ec08b(0x446)](0x2);return;}this[_0x7ec08b(0x2ae)][_0x7ec08b(0x446)](0x3);let _0x9fc4e8=(_0x11bba9=_0x4e44dc[_0x7ec08b(0x4c1)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x11bba9[_0x7ec08b(0x3ca)];_0x9fc4e8&&_0x9fc4e8[_0x7ec08b(0x3ad)](_0x2711fb=>this['_memberService'][_0x7ec08b(0x3c3)](this[_0x7ec08b(0x33a)],_0x2711fb));}[_0x5e5e22(0x30d)](_0x4a1fc4){const _0x4e51c1=_0x5e5e22;try{let _0x507f60=_0x4a1fc4[_0x4e51c1(0x4c1)];switch(_0x507f60[_0x4e51c1(0x46c)]){case _0x2b4fec[_0x4e51c1(0x3e6)][_0x4e51c1(0x286)]:this[_0x4e51c1(0x20f)](_0x507f60),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)]['USERS_LEAVE']:this[_0x4e51c1(0x3cb)](_0x507f60),this['_event$'][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)]['CHANGESET_ACK']:case _0x2b4fec['CollaborationEvent'][_0x4e51c1(0x353)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x4e51c1(0x4a4)](),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec[_0x4e51c1(0x3e6)][_0x4e51c1(0x4f7)]:this['_logService'][_0x4e51c1(0x4bf)](_0x4e51c1(0x459)+JSON[_0x4e51c1(0x298)](_0x507f60)),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;case _0x2b4fec['CollaborationEvent'][_0x4e51c1(0x354)]:this['_commentService'][_0x4e51c1(0x301)](_0x507f60['data']),this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);break;default:this[_0x4e51c1(0x223)][_0x4e51c1(0x446)](_0x507f60);}}catch(_0x76468f){this['_logService'][_0x4e51c1(0x4bf)](_0x76468f,_0x4a1fc4);}}['_onUserJoin'](_0x3463e7){const _0x2d7893=_0x5e5e22;this['_memberService']['updateMember'](this[_0x2d7893(0x33a)],_0x3463e7['data']);}[_0x5e5e22(0x3cb)](_0x41202f){const _0x43ac88=_0x5e5e22;this[_0x43ac88(0x3cf)][_0x43ac88(0x30e)](this[_0x43ac88(0x33a)],_0x41202f[_0x43ac88(0x4c1)]['memberID']);}async['send'](_0x4843f6,_0x4c047e){const _0x2dcf0=_0x5e5e22;if(this[_0x2dcf0(0x4ab)]!==0x3||!this[_0x2dcf0(0x3e1)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4843f6[_0x2dcf0(0x46c)]===_0x2b4fec[_0x2dcf0(0x3e6)]['SUBMIT_CHANGESET']&&(this[_0x2dcf0(0x2e7)](),this[_0x2dcf0(0x462)](_0x4843f6)),this[_0x2dcf0(0x3e1)][_0x2dcf0(0x50d)]({'cmd':_0x26034e['CombCmd'][_0x2dcf0(0x1f0)],'routeKey':_0x4c047e,'routeType':'','data':_0x4843f6});}catch(_0x107fe5){this[_0x2dcf0(0x2de)][_0x2dcf0(0x4bf)](_0x107fe5);}}['_scheduleCollaborationTimeoutTimer'](){const _0x52edff=_0x5e5e22;var _0x143f95;this[_0x52edff(0x456)]=setTimeout(()=>{const _0x566726=_0x52edff;this[_0x566726(0x456)]=null,this[_0x566726(0x205)][_0x566726(0x2a0)]({'id':_0x566726(0x43f)});},(_0x143f95=this[_0x52edff(0x494)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?_0x1589e0:_0x143f95);}[_0x5e5e22(0x4a4)](){const _0xb29d3e=_0x5e5e22;this[_0xb29d3e(0x456)]&&(clearTimeout(this[_0xb29d3e(0x456)]),this[_0xb29d3e(0x456)]=null);}[_0x5e5e22(0x462)](_0x1cf77a){const _0x4cbaac=_0x5e5e22;if(!this[_0x4cbaac(0x4a9)])return;let {data:_0x16573d}=_0x1cf77a,{unitID:_0x4232fc,changeset:_0x16acf6}=_0x16573d,{mutations:_0x3685c3,type:_0x1d0ade}=_0x16acf6;this[_0x4cbaac(0x463)]={'unitId':_0x4232fc,'type':_0x1d0ade,'startTime':performance[_0x4cbaac(0x412)](),'stopTime':0x0,'duration':0x0,'size':_0x22fab6(_0x3685c3)};}[_0x5e5e22(0x4cc)](){const _0x15840c=_0x5e5e22;if(this['_shouldReportTelemetry']){if(!this[_0x15840c(0x463)]){this['_logService'][_0x15840c(0x4bf)](_0x15840c(0x452),_0x15840c(0x3a0));return;}this[_0x15840c(0x463)]['stopTime']=performance[_0x15840c(0x412)](),this[_0x15840c(0x463)]['duration']=this['_telemetryInfo'][_0x15840c(0x485)]-this[_0x15840c(0x463)][_0x15840c(0x427)],this[_0x15840c(0x497)][_0x15840c(0x3aa)](_0x15840c(0x44f),this[_0x15840c(0x463)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3b18b9=_0x5e5e22;this[_0x3b18b9(0x463)]=null;}};_0x56a6c2=_0x28d1a4([_0x26ba80(0x2,_0x1f27ed['ILogService']),_0x26ba80(0x3,_0x1f27ed['IConfigService']),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3aba96)),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x5909a8)),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x416cdb[_0x5e5e22(0x238)]))],_0x56a6c2);let _0x33d8de=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('collaboration-client.local-cache-service');function _0x1b3860(_0x3ff10d){const _0x2cb97e=_0x5e5e22;return _0x2cb97e(0x3f5)+_0x3ff10d;}function _0x4835f7(_0x13b09b){const _0x500b48=_0x5e5e22;let {unitID:_0x1b39c6,mutations:_0x1ccae3}=_0x13b09b;return{'unitId':_0x1b39c6,'subUnitId':_0x1ccae3[_0x500b48(0x242)]>0x0?_0x1ccae3[0x0][_0x500b48(0x2ed)][_0x500b48(0x37f)]:null};}let _0x3ede5e=class{constructor(_0x4ff527,_0x47ca19,_0x155283){const _0x5bc0ba=_0x5e5e22;this[_0x5bc0ba(0x3af)]=_0x4ff527,this[_0x5bc0ba(0x344)]=_0x47ca19,this['_instanceService']=_0x155283;}[_0x5e5e22(0x4f9)](_0x5ad625){const _0x55b546=_0x5e5e22;var _0x1b1146,_0x2d1278;let _0x3657b3=this[_0x55b546(0x3af)][_0x55b546(0x31e)](_0x47a016[_0x55b546(0x4ff)]),{unitId:_0x507a5e,subUnitId:_0x3e6091}=_0x4835f7(_0x5ad625),_0x1d2084=_0x3657b3==null?void 0x0:_0x3657b3[_0x55b546(0x3fc)](_0x507a5e)[_0x55b546(0x50e)](),_0x3ce161=(_0x1b1146=this[_0x55b546(0x3ae)][_0x55b546(0x445)](_0x507a5e))==null||(_0x1b1146=_0x1b1146[_0x55b546(0x4e7)]())==null?void 0x0:_0x1b1146[_0x55b546(0x21a)]();if(_0x1d2084[_0x55b546(0x242)]===0x0||!_0x507a5e||!_0x3e6091)return;let _0x3823a5=[{'id':_0x47a016[_0x55b546(0x4b3)]['id'],'params':{'unitId':_0x507a5e,'subUnitId':_0x3ce161,'selections':_0x1f27ed['Tools'][_0x55b546(0x41f)](_0x1d2084)}}],_0x516dc0=this[_0x55b546(0x344)][_0x55b546(0x1f3)](_0x5ad625,_0x3823a5);if(!(0x0,_0x2b4fec[_0x55b546(0x2c8)])(_0x516dc0))throw _0x516dc0[_0x55b546(0x4bf)];let _0x3b5963=(_0x2d1278=_0x516dc0[_0x55b546(0x22d)][0x0])==null||(_0x2d1278=_0x2d1278['params'])==null?void 0x0:_0x2d1278[_0x55b546(0x33d)];if(Array[_0x55b546(0x449)](_0x3b5963)&&_0x3b5963[_0x55b546(0x242)]){if(_0x3b5963[_0x55b546(0x242)]===_0x3823a5[0x0][_0x55b546(0x2ed)][_0x55b546(0x33d)][_0x55b546(0x242)]&&_0x3b5963[_0x55b546(0x27b)]((_0x4e767c,_0x7f986)=>_0x1f27ed[_0x55b546(0x2a2)][_0x55b546(0x461)](_0x4e767c[_0x55b546(0x2b9)],_0x3823a5[0x0]['params']['selections'][_0x7f986][_0x55b546(0x2b9)])))return;this[_0x55b546(0x3af)]['get'](_0x1f27ed['ICommandService'])[_0x55b546(0x397)](_0x47a016[_0x55b546(0x4b3)]['id'],{'unitId':_0x507a5e,'subUnitId':_0x3ce161,'selections':_0x3b5963});}}};_0x3ede5e=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x50c)])],_0x3ede5e);let _0xf1640f=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('univer-pro.collaboration-client.single-active-unit-service'),_0x15dbc9=function(_0x265d76){const _0x279d42=_0x5e5e22;return _0x265d76[_0x265d76[_0x279d42(0x277)]=0x0]=_0x279d42(0x277),_0x265d76[_0x265d76[_0x279d42(0x419)]=0x1]=_0x279d42(0x419),_0x265d76;}({}),_0x5df009=_0x5e5e22(0x4ad);Symbol(_0x5df009);let _0x5b799f={};function _0x274714(_0x4b7b6d){const _0x4b6fa7=_0x5e5e22;var _0x2c2e45;return!!((_0x2c2e45=_0x4b7b6d[_0x4b6fa7(0x2ed)])!=null&&_0x2c2e45[_0x4b6fa7(0x366)]);}let _0x38d6a7=new Set([_0x47a016[_0x5e5e22(0x2a8)]['id']]);function _0x4c9235(_0x2b021a,_0x1279d2,_0x52b8a7,_0x146af1,_0x5ec913){const _0x1013ac=_0x5e5e22;var _0x5766dc,_0x58a5d9,_0x4b18c8,_0x4e1e07;let _0x17cac3=[];for(let _0xcb5d1f of _0x2b021a){if(_0x38d6a7[_0x1013ac(0x4e1)](_0xcb5d1f['id'])){if(_0x17cac3[_0x1013ac(0x242)]>0x0)break;_0x17cac3[_0x1013ac(0x2e4)](_0xcb5d1f);break;}if(_0x274714(_0xcb5d1f)){if(_0x17cac3[_0x1013ac(0x242)]>0x0)break;_0x17cac3['push'](_0xcb5d1f);break;}_0x17cac3[_0x1013ac(0x2e4)](_0xcb5d1f);}let _0xe1803d=(_0x5766dc=(_0x58a5d9=_0x5ec913['getCurrentUser']())==null?void 0x0:_0x58a5d9[_0x1013ac(0x3eb)])==null?_0x1013ac(0x46e):_0x5766dc,_0x191fe8=(_0x4b18c8=(_0x4e1e07=_0x5ec913[_0x1013ac(0x27a)]())==null?void 0x0:_0x4e1e07[_0x1013ac(0x43c)])==null?'unknown':_0x4b18c8;return{'changeset':{'unitID':_0x1279d2,'type':(0x0,_0x2b4fec[_0x1013ac(0x42b)])(_0x52b8a7[_0x1013ac(0x2b6)](_0x1279d2)),'baseRev':_0x146af1[_0x1013ac(0x255)](_0x1279d2),'revision':0x0,'userID':_0xe1803d,'memberID':_0x191fe8,'mutations':_0x17cac3},'pendingMutations':_0x2b021a[_0x1013ac(0x4ef)](_0x17cac3[_0x1013ac(0x242)])};}function _0x42b846(_0x37767a,_0x2c3ade,_0x1a123e,_0x2bc88a,_0x26d1ce){const _0x4afabd=_0x5e5e22;var _0xbc01a9,_0x1f88fd,_0x5e9dc5,_0x323ef0;let _0x1dbc52=[_0x37767a[_0x4afabd(0x39b)]((_0x188754,_0x8b569d)=>{const _0x1faa7b=_0x4afabd;var _0x800e19;let {id:_0x39f892}=_0x188754,{id:_0x54a404,type:_0xbb5786}=_0x8b569d,_0x19bfe2=(_0x800e19=_0x188754[_0x1faa7b(0x2ed)])==null?{'actions':null}:_0x800e19,_0x4e34e6=_0x8b569d['params'];if(_0x39f892&&_0x39f892!==_0x54a404)throw Error(_0x1faa7b(0x288)+_0x39f892+_0x1faa7b(0x425)+_0x54a404+'.');return{..._0x188754,'id':_0x54a404,'type':_0xbb5786,'params':{'unitId':_0x4e34e6[_0x1faa7b(0x48f)],'textRanges':_0x4e34e6[_0x1faa7b(0x3c6)],'actions':_0x1f27ed[_0x1faa7b(0x315)][_0x1faa7b(0x39a)](_0x19bfe2[_0x1faa7b(0x4f1)],_0x4e34e6[_0x1faa7b(0x4f1)])}};},{})],_0x5a1f50=(_0xbc01a9=(_0x1f88fd=_0x26d1ce[_0x4afabd(0x27a)]())==null?void 0x0:_0x1f88fd['userID'])==null?_0x4afabd(0x46e):_0xbc01a9,_0x32e78c=(_0x5e9dc5=(_0x323ef0=_0x26d1ce[_0x4afabd(0x27a)]())==null?void 0x0:_0x323ef0['memberID'])==null?_0x4afabd(0x46e):_0x5e9dc5;return{'changeset':{'unitID':_0x2c3ade,'type':(0x0,_0x2b4fec[_0x4afabd(0x42b)])(_0x1a123e[_0x4afabd(0x2b6)](_0x2c3ade)),'baseRev':_0x2bc88a['getCurrentRevOfUnit'](_0x2c3ade),'revision':0x0,'userID':_0x5a1f50,'memberID':_0x32e78c,'mutations':_0x1dbc52},'pendingMutations':[]};}function _0x564c43(_0x3afa5d,_0xf32c68){const _0x340130=_0x5e5e22;let _0x18cb94=new _0xd93cf[(_0x340130(0x41a))](0x1);return setTimeout(()=>_0x18cb94[_0x340130(0x446)](_0xf32c68),_0x3afa5d),_0x18cb94[_0x340130(0x471)]()[_0x340130(0x3e2)]((0x0,_0xd93cf[_0x340130(0x26b)])(0x1));}var _0x1393a6,_0x37525e,_0x354c96;let _0x5788d6=function(_0x3ac5f7){const _0x4850c9=_0x5e5e22;return _0x3ac5f7[_0x4850c9(0x2b2)]=_0x4850c9(0x352),_0x3ac5f7[_0x4850c9(0x3c5)]='synced',_0x3ac5f7[_0x4850c9(0x2fd)]=_0x4850c9(0x22c),_0x3ac5f7[_0x4850c9(0x2e9)]=_0x4850c9(0x4f0),_0x3ac5f7[_0x4850c9(0x2f5)]='awaiting_with_pending',_0x3ac5f7[_0x4850c9(0x22e)]=_0x4850c9(0x2cd),_0x3ac5f7[_0x4850c9(0x4b0)]='conflict',_0x3ac5f7[_0x4850c9(0x3d2)]=_0x4850c9(0x4f2),_0x3ac5f7;}({}),_0x18dc3c=0x4e20,_0xadf4c=0x2bf20;var _0x280124=class{constructor(_0x10b39e,_0x1af1a6,_0x5d2298,_0x157293,_0x21e479,_0x2d5ba8,_0x1afe1d,_0x52562a,_0x3761b1){const _0x2b3665=_0x5e5e22;this[_0x2b3665(0x3bc)]=_0x10b39e,this[_0x2b3665(0x320)]=_0x1af1a6,this[_0x2b3665(0x42a)]=_0x21e479,this[_0x2b3665(0x21d)]=_0x2d5ba8,this[_0x2b3665(0x2c9)]=_0x1afe1d,this[_0x2b3665(0x38e)]=_0x52562a,this[_0x2b3665(0x321)]=_0x3761b1,_0x5886a9(this,_0x2b3665(0x342),null),_0x5886a9(this,_0x2b3665(0x1fc),[]),this[_0x2b3665(0x342)]=_0x5d2298,this[_0x2b3665(0x1fc)]=_0x157293;}['_checkMissing'](_0x59dfc3){const _0x191948=_0x5e5e22;let _0x417271=this[_0x191948(0x38e)][_0x191948(0x255)](this['unitID']);return _0x59dfc3[_0x191948(0x4fd)]>_0x417271+0x1?(this[_0x191948(0x42a)]['onMissingChangesets']({'from':_0x417271,'to':_0x59dfc3[_0x191948(0x4fd)]-0x1}),!0x0):!0x1;}[_0x5e5e22(0x2e5)](_0x305668){const _0x2b6fd1=_0x5e5e22;this[_0x2b6fd1(0x2c9)][_0x2b6fd1(0x2b8)](this[_0x2b6fd1(0x3bc)],_0x305668);}['_transformSelections'](_0x3fc924){const _0x29cf86=_0x5e5e22;var _0x100800,_0x28a3ad;(_0x100800=(_0x28a3ad=this[_0x29cf86(0x42a)])[_0x29cf86(0x36e)])==null||_0x100800['call'](_0x28a3ad,_0x3fc924);}[_0x5e5e22(0x250)](_0x1b5cc1){const _0xcb5f83=_0x5e5e22;var _0x375e1a,_0x9d37b7;return(_0x375e1a=(_0x9d37b7=this[_0xcb5f83(0x42a)])[_0xcb5f83(0x281)])==null?void 0x0:_0x375e1a[_0xcb5f83(0x514)](_0x9d37b7,_0x1b5cc1);}[_0x5e5e22(0x21c)](_0x29951a){const _0x35d97e=_0x5e5e22;var _0x469f21,_0x3a5482;return(_0x469f21=(_0x3a5482=this[_0x35d97e(0x42a)])['onTransformState'])==null?void 0x0:_0x469f21['call'](_0x3a5482,_0x29951a);}[_0x5e5e22(0x32c)](_0x33f413){const _0x26b1cd=_0x5e5e22;var _0x4c30c0,_0xf9a427,_0x1af4c4;return(_0x4c30c0=(_0xf9a427=(_0x1af4c4=this[_0x26b1cd(0x42a)])[_0x26b1cd(0x43a)])==null?void 0x0:_0xf9a427['call'](_0x1af4c4,_0x33f413))==null?_0x33f413:_0x4c30c0;}[_0x5e5e22(0x211)](_0x109d8c){const _0x2cf325=_0x5e5e22;var _0x2b445b,_0x5b15bd,_0x1bbee6;return(_0x2b445b=(_0x5b15bd=(_0x1bbee6=this['_handler'])[_0x2cf325(0x1f4)])==null?void 0x0:_0x5b15bd[_0x2cf325(0x514)](_0x1bbee6,_0x109d8c))==null?_0x109d8c:_0x2b445b;}['_syncEditingCollabCursor'](_0x5eee33){const _0x62d896=_0x5e5e22;if(this[_0x62d896(0x320)]===_0x1f27ed[_0x62d896(0x41c)][_0x62d896(0x4a5)]){let {unitID:_0x515c03,mutations:_0x56efb8,memberID:_0x2d04cc}=_0x5eee33,_0x293b07=_0x56efb8[_0x62d896(0x242)]>0x0?_0x56efb8[0x0][_0x62d896(0x2ed)][_0x62d896(0x3c6)]:[];if(Array[_0x62d896(0x449)](_0x293b07)&&_0x293b07[_0x62d896(0x242)]>0x0){var _0x3a6268,_0x39837d;(_0x3a6268=(_0x39837d=this[_0x62d896(0x42a)])[_0x62d896(0x348)])==null||_0x3a6268[_0x62d896(0x514)](_0x39837d,{'unitID':_0x515c03,'memberID':_0x2d04cc,'textRanges':_0x293b07});}}}[_0x5e5e22(0x284)](){const _0x537f8c=_0x5e5e22;var _0x5c00bd;(_0x5c00bd=this['_localCacheService'])==null||_0x5c00bd[_0x537f8c(0x4e5)](this['unitID'],this[_0x537f8c(0x320)],this[_0x537f8c(0x342)],this[_0x537f8c(0x1fc)]);}[_0x5e5e22(0x465)](){const _0x1dce31=_0x5e5e22;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x1dce31(0x3bc)]);}['_incrementRevisionNumber'](){const _0x579110=_0x5e5e22;this[_0x579110(0x38e)]['incrementRevOfUnit'](this[_0x579110(0x3bc)]);}[_0x5e5e22(0x2b4)](_0x50363b){const _0x1dee5f=_0x5e5e22;let _0xf2213a=this[_0x1dee5f(0x32c)](_0x50363b);_0xf2213a=this[_0x1dee5f(0x211)](_0xf2213a);let _0x2e4a3f=(0x0,_0x1f27ed[_0x1dee5f(0x3c9)])(_0xf2213a['mutations'],this[_0x1dee5f(0x21d)],{'fromCollab':!0x0});if(!_0x2e4a3f['result']){var _0x1a5635;throw _0x2e4a3f[_0x1dee5f(0x4bf)]instanceof Error?_0x2e4a3f[_0x1dee5f(0x4bf)]:Error((_0x1a5635=_0x2e4a3f[_0x1dee5f(0x4bf)])==null?_0x1dee5f(0x499):_0x1a5635);}this['_transformIMECache'](_0xf2213a),this[_0x1dee5f(0x21c)](_0xf2213a),this[_0x1dee5f(0x2e5)](_0x50363b),this[_0x1dee5f(0x49f)](_0xf2213a),this['_syncEditingCollabCursor'](_0xf2213a),this[_0x1dee5f(0x450)]();}};let _0x165a95=class extends _0x280124{constructor(_0x5bbba4,_0x6abcb,_0x37a35a,_0x40af7e,_0x2f7a50,_0x4e59ed,_0x393f86,_0x1cb1ae,_0x5b584c,_0x5add7c){const _0x3c9804=_0x5e5e22;super(_0x5bbba4,_0x6abcb,null,[],_0x37a35a,_0x393f86,_0x4e59ed,_0x40af7e,_0x5add7c),this[_0x3c9804(0x3af)]=_0x2f7a50,this[_0x3c9804(0x2de)]=_0x1cb1ae,this['_transformService']=_0x5b584c,this[_0x3c9804(0x335)]=_0x5add7c,_0x5886a9(this,_0x3c9804(0x47f),_0x3c9804(0x392));}['appendMutation'](_0x88e443){const _0x2e15c8=_0x5e5e22;let _0x321df7=this[_0x2e15c8(0x3af)]['createInstance'](_0x552ece,this[_0x2e15c8(0x3bc)],this[_0x2e15c8(0x320)],[_0x88e443],this['_handler']);return _0x321df7['_schedule'](),_0x321df7[_0x2e15c8(0x284)](),_0x321df7;}[_0x5e5e22(0x4f4)](_0x58b79f){const _0x5ab5ec=_0x5e5e22;if(this[_0x5ab5ec(0x2a7)](_0x58b79f))return this[_0x5ab5ec(0x3af)][_0x5ab5ec(0x467)](_0x272441,this[_0x5ab5ec(0x3bc)],this[_0x5ab5ec(0x320)],null,[],null,[_0x58b79f],this['_handler']);try{let _0x273b99=this['_transformService']['transformMutationsWithChangeset'](_0x58b79f,[_0x2b4fec[_0x5ab5ec(0x244)]]);if((0x0,_0x2b4fec[_0x5ab5ec(0x2c8)])(_0x273b99)){let {c1Prime:_0x4707ad}=_0x273b99;return this[_0x5ab5ec(0x2b4)](_0x4707ad),this;}throw _0x273b99[_0x5ab5ec(0x4bf)];}catch(_0x8a3eb5){return this[_0x5ab5ec(0x2de)][_0x5ab5ec(0x4bf)](_0x8a3eb5),this[_0x5ab5ec(0x3b7)](!0x1);}}[_0x5e5e22(0x3b7)](_0x270838){const _0x1fb409=_0x5e5e22;return this[_0x1fb409(0x3af)]['createInstance'](_0x2d8e7b,this['unitID'],this[_0x1fb409(0x320)],null,[],this[_0x1fb409(0x42a)],_0x270838);}['onRemoteAck'](_0x2653f4){const _0xee33f7=_0x5e5e22;if(_0x2653f4[_0xee33f7(0x4fd)]<=this[_0xee33f7(0x465)]())return this;throw Error(_0xee33f7(0x39f));}[_0x5e5e22(0x31a)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5e5e22(0x3b0)](){const _0x100d10=_0x5e5e22;return this[_0x100d10(0x3af)]['createInstance'](_0x73123,this[_0x100d10(0x3bc)],this[_0x100d10(0x320)],null,[],this['_handler']);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x13ade6=_0x5e5e22;throw Error(_0x13ade6(0x369));}[_0x5e5e22(0x252)](){const _0x2defb0=_0x5e5e22;let _0x54c705=this[_0x2defb0(0x38e)]['getCurrentRevOfUnit'](this[_0x2defb0(0x3bc)]);return this[_0x2defb0(0x42a)][_0x2defb0(0x21f)]({'from':_0x54c705,'to':0x0}),this[_0x2defb0(0x3af)]['createInstance'](_0x272441,this[_0x2defb0(0x3bc)],this[_0x2defb0(0x320)],null,[],null,[],this[_0x2defb0(0x42a)]);}};_0x165a95=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed['Inject'])(_0x2b4fec['RevisionService'])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0x6,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x7,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x8,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x9,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x165a95);let _0x552ece=_0x1393a6=class extends _0x280124{constructor(_0x26d416,_0x45609f,_0x199f74,_0x5d46cf,_0x5a127a,_0x5c981c,_0x4458b7,_0x4e2528,_0x5eb4eb,_0x2fb208,_0x402468,_0x51c8f3,_0x5a1be6,_0x45c32e){const _0x242775=_0x5e5e22;super(_0x26d416,_0x45609f,null,_0x199f74,_0x5d46cf,_0x5eb4eb,_0x5a1be6,_0x5c981c,_0x45c32e),this[_0x242775(0x3af)]=_0x5a127a,this['_memberService']=_0x4458b7,this[_0x242775(0x2de)]=_0x4e2528,this[_0x242775(0x494)]=_0x2fb208,this['_transformService']=_0x402468,this[_0x242775(0x45b)]=_0x51c8f3,_0x5886a9(this,_0x242775(0x47f),_0x242775(0x22c)),_0x5886a9(this,_0x242775(0x22b),null),_0x5886a9(this,_0x242775(0x43d),null);}[_0x5e5e22(0x4f3)](_0x42e423){const _0x56f5b3=_0x5e5e22;return this[_0x56f5b3(0x1fc)]['push'](_0x42e423),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x215724){const _0x237ce0=_0x5e5e22;if(this[_0x237ce0(0x2a7)](_0x215724))return this[_0x237ce0(0x4c0)](),this[_0x237ce0(0x3af)][_0x237ce0(0x467)](_0x272441,this[_0x237ce0(0x3bc)],this[_0x237ce0(0x320)],null,this[_0x237ce0(0x1fc)],null,[_0x215724],this[_0x237ce0(0x42a)]);try{let _0x110a9a=this[_0x237ce0(0x344)][_0x237ce0(0x1f3)](_0x215724,this[_0x237ce0(0x1fc)]);if((0x0,_0x2b4fec['isTransformMutationsWithChangesetSuccess'])(_0x110a9a)){let {c1Prime:_0x580dc9,m2Prime:_0x7823a7}=_0x110a9a;this[_0x237ce0(0x2b4)](_0x580dc9);let _0x36fbc5=this[_0x237ce0(0x3af)][_0x237ce0(0x467)](_0x1393a6,this[_0x237ce0(0x3bc)],this[_0x237ce0(0x320)],_0x7823a7,this[_0x237ce0(0x42a)]);this[_0x237ce0(0x4c0)]();let _0x56d372=new Date()[_0x237ce0(0x322)](),_0x3948a0=this[_0x237ce0(0x22b)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x56d372,0x0):this['_getSendChangesetTimeout']();return _0x36fbc5['_schedule'](_0x3948a0),_0x36fbc5;}throw _0x110a9a[_0x237ce0(0x4bf)];}catch(_0x2f40fb){return this[_0x237ce0(0x2de)][_0x237ce0(0x4bf)](_0x2f40fb),this[_0x237ce0(0x3b7)](!0x1);}}[_0x5e5e22(0x37b)](_0x1c9c57){const _0xf86a75=_0x5e5e22;if(_0x1c9c57[_0xf86a75(0x4fd)]<=this['_getCurrentRevision']())return this;throw Error(_0xf86a75(0x443));}[_0x5e5e22(0x31a)](){const _0x332eb2=_0x5e5e22;throw Error(_0x332eb2(0x23c));}[_0x5e5e22(0x4e3)](){return this;}[_0x5e5e22(0x3b0)](){const _0x6a25d=_0x5e5e22;return this[_0x6a25d(0x4c0)](),this[_0x6a25d(0x3af)][_0x6a25d(0x467)](_0x73123,this[_0x6a25d(0x3bc)],this[_0x6a25d(0x320)],null,this[_0x6a25d(0x1fc)],this[_0x6a25d(0x42a)]);}['toggleOnline'](){return this;}[_0x5e5e22(0x28a)](_0x5e5510){const _0x7d3447=_0x5e5e22;let _0x207cbc=_0x5e5510==null?this[_0x7d3447(0x24b)]():_0x5e5510;this[_0x7d3447(0x22b)]=new Date()[_0x7d3447(0x322)]()+_0x207cbc,this[_0x7d3447(0x43d)]=setTimeout(()=>{const _0x747bfb=_0x7d3447;this['_clearScheduledTask']();let _0x5cad81=null;switch(this[_0x747bfb(0x320)]){case _0x1f27ed[_0x747bfb(0x41c)][_0x747bfb(0x25c)]:_0x5cad81=_0x4c9235(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this[_0x747bfb(0x38e)],this[_0x747bfb(0x3cf)]);break;case _0x1f27ed['UniverInstanceType'][_0x747bfb(0x4a5)]:_0x5cad81=this[_0x747bfb(0x1fc)][_0x747bfb(0x27b)](_0x558e33=>_0x558e33['id']===_0x3b0f13[_0x747bfb(0x476)]['id'])?_0x42b846(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this[_0x747bfb(0x38e)],this['_memberService']):_0x4c9235(this[_0x747bfb(0x1fc)],this[_0x747bfb(0x3bc)],this[_0x747bfb(0x45b)],this['_revisionService'],this['_memberService']);break;default:throw Error(_0x747bfb(0x4b4)+this[_0x747bfb(0x320)]+'\x20in\x20_schedule.');}let {changeset:_0x24e9d5,pendingMutations:_0x193535}=_0x5cad81;this[_0x747bfb(0x42a)][_0x747bfb(0x30a)](_0x24e9d5);let _0x5ad39a=_0x193535['length']?this['_injector'][_0x747bfb(0x467)](_0x2aa7cb,this[_0x747bfb(0x3bc)],this['type'],_0x24e9d5,_0x193535,this[_0x747bfb(0x42a)],void 0x0):this[_0x747bfb(0x3af)][_0x747bfb(0x467)](_0x41bca9,this[_0x747bfb(0x3bc)],this['type'],_0x24e9d5,this[_0x747bfb(0x42a)]);_0x5ad39a['_updateLocalCache'](),this[_0x747bfb(0x42a)][_0x747bfb(0x285)](this,_0x5ad39a);},_0x207cbc);}['_getSendChangesetTimeout'](){const _0x3a00e6=_0x5e5e22;var _0x1a902b;let _0x43ef5a=this[_0x3a00e6(0x494)][_0x3a00e6(0x45c)](_0x5df009);return(_0x1a902b=_0x43ef5a==null?void 0x0:_0x43ef5a[_0x3a00e6(0x3c2)])==null?0x7d0:_0x1a902b;}['resend'](){const _0x383832=_0x5e5e22;throw Error(_0x383832(0x2d5));}[_0x5e5e22(0x4c0)](){const _0x512366=_0x5e5e22;this[_0x512366(0x43d)]!=null&&(clearTimeout(this[_0x512366(0x43d)]),this[_0x512366(0x43d)]=null);}['_onConflict'](_0x3a618f){const _0x45f287=_0x5e5e22;return this[_0x45f287(0x4c0)](),this[_0x45f287(0x3af)]['createInstance'](_0x2d8e7b,this[_0x45f287(0x3bc)],this[_0x45f287(0x320)],null,this[_0x45f287(0x1fc)],this[_0x45f287(0x42a)],_0x3a618f);}};_0x552ece=_0x1393a6=_0x28d1a4([_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['RevisionService'])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3aba96)),_0x26ba80(0x7,_0x1f27ed['ILogService']),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0xa,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0xc,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x552ece);let _0x41bca9=_0x37525e=class extends _0x280124{constructor(_0x5e930a,_0x5937ef,_0x2acae1,_0x5445e2,_0x51b50,_0x43b7b6,_0x4f7c4d,_0x1defc9,_0x56982a,_0x584412,_0x3fd763){const _0x5b6579=_0x5e5e22;super(_0x5e930a,_0x5937ef,_0x2acae1,[],_0x5445e2,_0x4f7c4d,_0x584412,_0x43b7b6,_0x3fd763),this[_0x5b6579(0x3af)]=_0x51b50,this['_logService']=_0x1defc9,this[_0x5b6579(0x344)]=_0x56982a,_0x5886a9(this,_0x5b6579(0x47f),_0x5b6579(0x4f0)),_0x5886a9(this,'_resendTimeout',0x0),_0x5886a9(this,'_maxTotalRetryTimeout',0x0),_0x5886a9(this,_0x5b6579(0x2f8),void 0x0),_0x5886a9(this,_0x5b6579(0x4fb),void 0x0);}[_0x5e5e22(0x4f3)](_0x147c42){const _0x3b06f3=_0x5e5e22;this[_0x3b06f3(0x4c0)]();let _0x19e9f2=this[_0x3b06f3(0x3af)][_0x3b06f3(0x467)](_0x2aa7cb,this['unitID'],this[_0x3b06f3(0x320)],this['_awaitingChangeset'],[_0x147c42],this[_0x3b06f3(0x42a)],this['_resendTimer']);return _0x19e9f2[_0x3b06f3(0x284)](),_0x19e9f2;}[_0x5e5e22(0x4f4)](_0x211ab6){const _0x260a56=_0x5e5e22;if(this[_0x260a56(0x2a7)](_0x211ab6))return this[_0x260a56(0x4c0)](),this[_0x260a56(0x3af)][_0x260a56(0x467)](_0x272441,this['unitID'],this[_0x260a56(0x320)],this[_0x260a56(0x342)],[],null,[_0x211ab6],this[_0x260a56(0x42a)]);try{let _0x4c859b=this[_0x260a56(0x344)][_0x260a56(0x4ba)]([_0x211ab6],[this[_0x260a56(0x342)]],!0x1);if((0x0,_0x2b4fec[_0x260a56(0x383)])(_0x4c859b)){let {c1Prime:_0x59ef67,c2Prime:_0x33c68c}=_0x4c859b;this[_0x260a56(0x2b4)](_0x59ef67[0x0]),_0x33c68c[0x0][_0x260a56(0x367)]=this[_0x260a56(0x465)](),this[_0x260a56(0x4c0)]();let _0x48c982=this['_injector'][_0x260a56(0x467)](_0x37525e,this[_0x260a56(0x3bc)],this['type'],_0x33c68c[0x0],this[_0x260a56(0x42a)]);return _0x48c982[_0x260a56(0x284)](),_0x48c982;}throw _0x4c859b[_0x260a56(0x4bf)];}catch(_0x123a83){return this[_0x260a56(0x2de)][_0x260a56(0x4bf)](_0x123a83),this[_0x260a56(0x3b7)](!0x1);}}[_0x5e5e22(0x37b)](_0x2def95){const _0x5efb8c=_0x5e5e22;this[_0x5efb8c(0x4c0)]();let _0x4d149b=this[_0x5efb8c(0x38e)][_0x5efb8c(0x255)](this['unitID']);if(_0x2def95[_0x5efb8c(0x4fd)]<=_0x4d149b)return this;if(this['_checkMissing'](_0x2def95))return this[_0x5efb8c(0x3af)][_0x5efb8c(0x467)](_0x272441,this[_0x5efb8c(0x3bc)],this[_0x5efb8c(0x320)],this[_0x5efb8c(0x342)],[],_0x2def95[_0x5efb8c(0x4fd)],[],this[_0x5efb8c(0x42a)]);this[_0x5efb8c(0x450)]();let _0x339ff1=this[_0x5efb8c(0x3af)][_0x5efb8c(0x467)](_0x165a95,this[_0x5efb8c(0x3bc)],this[_0x5efb8c(0x320)],this[_0x5efb8c(0x42a)]);return _0x339ff1[_0x5efb8c(0x284)](),_0x339ff1;}[_0x5e5e22(0x31a)](_0xf27148){const _0x44889c=_0x5e5e22;return this['_onConflict'](!!(_0xf27148!=null&&_0xf27148[_0x44889c(0x43e)]));}[_0x5e5e22(0x4e3)](_0x1655ca){const _0x285c95=_0x5e5e22;return this['_maxTotalRetryTimeout']>_0xadf4c?this[_0x285c95(0x3b0)]():(this[_0x285c95(0x2f8)]=_0x564c43(this[_0x285c95(0x20a)],{'timeout':this[_0x285c95(0x20a)],'reqId':_0x1655ca['reqId']}),this[_0x285c95(0x4fb)]=this['_resendTimer']['subscribe'](({reqId:_0x502408,timeout:_0x57ca4f})=>{const _0x4ba7d1=_0x285c95;this[_0x4ba7d1(0x42f)](_0x502408,_0x57ca4f);}),this);}[_0x5e5e22(0x3b0)](){const _0x54f63e=_0x5e5e22;return this[_0x54f63e(0x4c0)](),this[_0x54f63e(0x3af)][_0x54f63e(0x467)](_0x73123,this[_0x54f63e(0x3bc)],this[_0x54f63e(0x320)],this[_0x54f63e(0x342)],[],this[_0x54f63e(0x42a)]);}['toggleOnline'](){return this;}[_0x5e5e22(0x41d)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x13abd9){const _0x312a38=_0x5e5e22;return this[_0x312a38(0x4c0)](),this[_0x312a38(0x3af)]['createInstance'](_0x2d8e7b,this[_0x312a38(0x3bc)],this['type'],this[_0x312a38(0x342)],[],this[_0x312a38(0x42a)],_0x13abd9);}[_0x5e5e22(0x42f)](_0x38e879,_0x53122d){const _0x2f00c9=_0x5e5e22;var _0x475a32;_0x38e879===((_0x475a32=this['_awaitingChangeset'])==null?void 0x0:_0x475a32[_0x2f00c9(0x50a)])&&(this[_0x2f00c9(0x41d)](),this[_0x2f00c9(0x20a)]=_0x53122d===0x0?0x3e8:Math[_0x2f00c9(0x20e)](_0x53122d*0x2,_0x18dc3c),this[_0x2f00c9(0x398)]+=this[_0x2f00c9(0x20a)]);}[_0x5e5e22(0x4c0)](){const _0x2bc4e6=_0x5e5e22;var _0x42ade9;(_0x42ade9=this[_0x2bc4e6(0x4fb)])==null||_0x42ade9['unsubscribe'](),this[_0x2bc4e6(0x20a)]=0x0,this[_0x2bc4e6(0x398)]=0x0;}};_0x41bca9=_0x37525e=_0x28d1a4([_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x6,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x7,_0x1f27ed['ILogService']),_0x26ba80(0x8,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0xa,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x41bca9);let _0x2aa7cb=_0x354c96=class extends _0x280124{constructor(_0x2f4efd,_0x232293,_0x3e06c2,_0x1dc56c,_0x2278e7,_0x4af2d5,_0x58e32,_0x51e8c5,_0x413134,_0x4b2287,_0x1a0277,_0x31638d,_0x307eee){const _0x9d4985=_0x5e5e22;super(_0x2f4efd,_0x232293,_0x3e06c2,_0x1dc56c,_0x2278e7,_0x413134,_0x31638d,_0x51e8c5,_0x307eee),this[_0x9d4985(0x3af)]=_0x58e32,this[_0x9d4985(0x2de)]=_0x4b2287,this[_0x9d4985(0x344)]=_0x1a0277,this[_0x9d4985(0x335)]=_0x307eee,_0x5886a9(this,'status',_0x9d4985(0x49a)),_0x5886a9(this,_0x9d4985(0x20a),0x0),_0x5886a9(this,_0x9d4985(0x398),0x0),_0x5886a9(this,_0x9d4985(0x2f8),void 0x0),_0x5886a9(this,'_sender',void 0x0),_0x4af2d5&&(this['_resendTimer']=_0x4af2d5,this['_sender']=this[_0x9d4985(0x2f8)][_0x9d4985(0x3c1)](({reqId:_0x42e99b,timeout:_0x4b3dec})=>{const _0x401445=_0x9d4985;this[_0x401445(0x42f)](_0x42e99b,_0x4b3dec);}));}[_0x5e5e22(0x4f3)](_0x45f97d){const _0x59efbb=_0x5e5e22;return this['_pendingMutations'][_0x59efbb(0x2e4)](_0x45f97d),this;}['onRemoteChangeset'](_0x25fda8){const _0x2ceff3=_0x5e5e22;if(this[_0x2ceff3(0x2a7)](_0x25fda8))return this[_0x2ceff3(0x4c0)](),this['_injector']['createInstance'](_0x272441,this[_0x2ceff3(0x3bc)],this[_0x2ceff3(0x320)],this[_0x2ceff3(0x342)],this[_0x2ceff3(0x1fc)],null,[_0x25fda8],this[_0x2ceff3(0x42a)]);try{let _0x513b69=this[_0x2ceff3(0x344)][_0x2ceff3(0x4ba)]([_0x25fda8],[this[_0x2ceff3(0x342)]],!0x1);if((0x0,_0x2b4fec[_0x2ceff3(0x383)])(_0x513b69)){let {c1Prime:_0x50a5c7,c2Prime:_0x3c3d1c}=_0x513b69,_0x3c3c0e=this['_transformService'][_0x2ceff3(0x1f3)](_0x50a5c7[0x0],this['_pendingMutations']);if((0x0,_0x2b4fec['isTransformMutationsWithChangesetSuccess'])(_0x3c3c0e)){let {c1Prime:_0x3d1c89,m2Prime:_0x43183c}=_0x3c3c0e;return this[_0x2ceff3(0x2b4)](_0x3d1c89),_0x3c3d1c[0x0][_0x2ceff3(0x367)]=this['_getCurrentRevision'](),this[_0x2ceff3(0x4c0)](),this[_0x2ceff3(0x3af)][_0x2ceff3(0x467)](_0x354c96,this['unitID'],this[_0x2ceff3(0x320)],_0x3c3d1c[0x0],_0x43183c,this[_0x2ceff3(0x42a)],void 0x0);}throw _0x3c3c0e[_0x2ceff3(0x4bf)];}throw _0x513b69[_0x2ceff3(0x4bf)];}catch(_0x10bd80){return this[_0x2ceff3(0x2de)]['error'](_0x10bd80),this[_0x2ceff3(0x3b7)](!0x1);}}['onRemoteAck'](_0xe2fd3f){const _0x311477=_0x5e5e22;this[_0x311477(0x4c0)]();let _0x285e00=this['_getCurrentRevision']();if(_0xe2fd3f[_0x311477(0x4fd)]<=_0x285e00)return this;if(this[_0x311477(0x2a7)](_0xe2fd3f))return this[_0x311477(0x3af)]['createInstance'](_0x272441,this['unitID'],this[_0x311477(0x320)],this[_0x311477(0x342)],this[_0x311477(0x1fc)],_0xe2fd3f[_0x311477(0x4fd)],[],this[_0x311477(0x42a)]);this[_0x311477(0x450)]();let _0x4465da=this[_0x311477(0x3af)][_0x311477(0x467)](_0x552ece,this[_0x311477(0x3bc)],this['type'],this[_0x311477(0x1fc)],this[_0x311477(0x42a)]);return _0x4465da[_0x311477(0x28a)](),_0x4465da['_updateLocalCache'](),_0x4465da;}[_0x5e5e22(0x31a)](_0x46d8eb){const _0x323243=_0x5e5e22;return this[_0x323243(0x3b7)](!!(_0x46d8eb!=null&&_0x46d8eb[_0x323243(0x43e)]));}[_0x5e5e22(0x4e3)](_0x35728e){const _0x171a49=_0x5e5e22;return this[_0x171a49(0x398)]>_0xadf4c?this[_0x171a49(0x3b0)]():(this[_0x171a49(0x2f8)]=_0x564c43(this['_resendTimeout'],{'timeout':this[_0x171a49(0x20a)],'reqId':_0x35728e[_0x171a49(0x50a)]}),this[_0x171a49(0x4fb)]=this[_0x171a49(0x2f8)]['subscribe'](({reqId:_0x4a68e4,timeout:_0x30239d})=>{const _0x2aea74=_0x171a49;this[_0x2aea74(0x42f)](_0x4a68e4,_0x30239d);}),this);}[_0x5e5e22(0x3b0)](){const _0x1b444a=_0x5e5e22;return this[_0x1b444a(0x4c0)](),this[_0x1b444a(0x3af)]['createInstance'](_0x73123,this[_0x1b444a(0x3bc)],this[_0x1b444a(0x320)],this[_0x1b444a(0x342)],this[_0x1b444a(0x1fc)],this[_0x1b444a(0x42a)]);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x746d30=_0x5e5e22;this[_0x746d30(0x42a)][_0x746d30(0x30a)](this[_0x746d30(0x342)]);}['_onConflict'](_0x4391aa){const _0x2933b7=_0x5e5e22;return this[_0x2933b7(0x4c0)](),this[_0x2933b7(0x3af)][_0x2933b7(0x467)](_0x2d8e7b,this[_0x2933b7(0x3bc)],this[_0x2933b7(0x320)],null,this[_0x2933b7(0x1fc)],this[_0x2933b7(0x42a)],_0x4391aa);}['_resendWithTimeout'](_0x56c2f5,_0xd3ad0c){const _0x5767c1=_0x5e5e22;var _0x5e4de6;_0x56c2f5===((_0x5e4de6=this[_0x5767c1(0x342)])==null?void 0x0:_0x5e4de6['reqId'])&&(this[_0x5767c1(0x41d)](),this[_0x5767c1(0x20a)]=_0xd3ad0c===0x0?0x3e8:Math[_0x5767c1(0x20e)](_0xd3ad0c*0x2,_0x18dc3c),this[_0x5767c1(0x398)]+=this[_0x5767c1(0x20a)]);}[_0x5e5e22(0x4c0)](){const _0x2c3dd6=_0x5e5e22;var _0x16a773;(_0x16a773=this[_0x2c3dd6(0x4fb)])==null||_0x16a773[_0x2c3dd6(0x2d3)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x2aa7cb=_0x354c96=_0x28d1a4([_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x9,_0x1f27ed['ILogService']),_0x26ba80(0xa,_0x2b4fec[_0x5e5e22(0x2f7)]),_0x26ba80(0xb,_0x1f27ed['IUndoRedoService']),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x2aa7cb);let _0x2d8e7b=class extends _0x280124{constructor(_0x4f2c01,_0x562e34,_0x41f88d,_0x3117b5,_0x37e9dd,_0x35e825=!0x1,_0x31259f,_0x384f67,_0x31cc31,_0x24d850,_0x1dd836,_0x2ed07a,_0x10eeb4){const _0x5c7586=_0x5e5e22;super(_0x4f2c01,_0x562e34,_0x41f88d,_0x3117b5,_0x37e9dd,_0x384f67,_0x31cc31,_0x24d850,_0x10eeb4),this[_0x5c7586(0x428)]=_0x35e825,this[_0x5c7586(0x28b)]=_0x31259f,this[_0x5c7586(0x2b5)]=_0x1dd836,this[_0x5c7586(0x205)]=_0x2ed07a,this[_0x5c7586(0x335)]=_0x10eeb4,_0x5886a9(this,_0x5c7586(0x47f),_0x5c7586(0x3ff)),this[_0x5c7586(0x3f8)](),this['_clearLocalCache'](),this[_0x5c7586(0x3ba)]();}[_0x5e5e22(0x4f3)](){return this;}[_0x5e5e22(0x4f4)](){return this;}[_0x5e5e22(0x37b)](){return this;}[_0x5e5e22(0x31a)](){return this;}['onRemoteRetry'](){return this;}[_0x5e5e22(0x3b0)](){return this;}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x41d)](){const _0x5e152d=_0x5e5e22;throw Error(_0x5e152d(0x23b));}[_0x5e5e22(0x478)](){const _0x3f16a3=_0x5e5e22;var _0x427c15;(_0x427c15=this['_localCacheService'])==null||_0x427c15[_0x3f16a3(0x4e5)](this['unitID'],this[_0x3f16a3(0x320)],null,[]);}[_0x5e5e22(0x3f8)](){const _0xb85299=_0x5e5e22;this[_0xb85299(0x428)]?this[_0xb85299(0x205)][_0xb85299(0x2a0)]({'id':_0xb85299(0x413)}):this['_collaborationUIEventService'][_0xb85299(0x2a0)]({'id':_0xb85299(0x4b0)});}[_0x5e5e22(0x3ba)](){const _0x55da0b=_0x5e5e22;this[_0x55da0b(0x28b)][_0x55da0b(0x379)](new _0x47a016['WorkbookEditablePermission'](this[_0x55da0b(0x3bc)])['id'],!0x1);}};_0x2d8e7b=_0x28d1a4([_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x46d)])),_0x26ba80(0x7,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0x8,_0x1f27ed['IUndoRedoService']),_0x26ba80(0x9,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0xa,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0xb,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x2d8e7b);let _0x73123=class extends _0x280124{constructor(_0x53bdab,_0x2e2718,_0x537a12,_0x233a35,_0x1a66ca,_0x4dcb85,_0x5cb38d,_0x175396,_0x1389d4,_0x805c32){const _0x3c484f=_0x5e5e22;super(_0x53bdab,_0x2e2718,_0x537a12,_0x233a35,_0x1a66ca,_0x175396,_0x1389d4,_0x5cb38d,_0x805c32),this[_0x3c484f(0x3af)]=_0x4dcb85,_0x5886a9(this,_0x3c484f(0x47f),'offline');}[_0x5e5e22(0x4f3)](_0x3ba07b){const _0x285d92=_0x5e5e22;return this[_0x285d92(0x1fc)][_0x285d92(0x2e4)](_0x3ba07b),this[_0x285d92(0x284)](),this;}[_0x5e5e22(0x4f4)](_0x5b10ea){const _0x383aeb=_0x5e5e22;throw Error(_0x383aeb(0x341));}[_0x5e5e22(0x37b)](){const _0x301af3=_0x5e5e22;throw Error(_0x301af3(0x417));}[_0x5e5e22(0x31a)](){const _0x21baa0=_0x5e5e22;throw Error(_0x21baa0(0x276));}[_0x5e5e22(0x4e3)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x519972=_0x5e5e22;let {_injector:_0x30a982,_pendingMutations:_0x444e48,_awaitingChangeset:_0x2c506d,unitID:_0x99cbac,_handler:_0x4b8a5c,type:_0x4ccafe}=this,_0x4d3530=_0x4de551(_0x30a982,_0x99cbac,_0x4ccafe,_0x2c506d,_0x444e48,_0x4b8a5c);return _0x4d3530 instanceof _0x552ece?_0x4d3530['_schedule']():(_0x4d3530 instanceof _0x2aa7cb||_0x4d3530 instanceof _0x41bca9)&&_0x4d3530[_0x519972(0x41d)](),_0x4d3530;}[_0x5e5e22(0x41d)](){const _0x59f175=_0x5e5e22;throw Error(_0x59f175(0x2c0));}};_0x73123=_0x28d1a4([_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x6,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,_0x1f27ed['ICommandService']),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x325)]),_0x26ba80(0x9,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x73123);let _0x272441=class extends _0x280124{constructor(_0x319f2e,_0x1e9ed6,_0x506d25,_0x5cd987,_0x5c1e5e,_0x27a757,_0x307091,_0x3e0085,_0x408afd,_0x182d5e,_0x5e342a,_0x156cf2,_0x2c4c24,_0x1f3d21){const _0x142a7e=_0x5e5e22;super(_0x319f2e,_0x1e9ed6,_0x506d25,_0x5cd987,_0x307091,_0x5e342a,_0x156cf2,_0x408afd,_0x1f3d21),this[_0x142a7e(0x3de)]=_0x5c1e5e,this[_0x142a7e(0x4df)]=_0x27a757,this[_0x142a7e(0x3af)]=_0x3e0085,this[_0x142a7e(0x2de)]=_0x182d5e,this['_transformService']=_0x2c4c24,this[_0x142a7e(0x335)]=_0x1f3d21,_0x5886a9(this,_0x142a7e(0x47f),_0x142a7e(0x2cd));}[_0x5e5e22(0x35a)](_0x52ead5){const _0x23ea43=_0x5e5e22;try{if(this[_0x23ea43(0x418)](_0x52ead5)[_0x23ea43(0x382)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x23ea43(0x4b2)]((_0xa65301,_0x32df84)=>_0xa65301[_0x23ea43(0x4fd)]-_0x32df84[_0x23ea43(0x4fd)]))[_0x23ea43(0x382)])return this[_0x23ea43(0x4df)]=[],this[_0x23ea43(0x284)](),this[_0x23ea43(0x42a)][_0x23ea43(0x21f)]({'from':this[_0x23ea43(0x465)](),'to':0x0}),this;let _0x130291=this[_0x23ea43(0x342)],_0x5e928b=this[_0x23ea43(0x1fc)],_0x5ddfdf;if(_0x130291&&_0x5e928b[_0x23ea43(0x242)]!==0x0)_0x5ddfdf=this['_injector'][_0x23ea43(0x467)](_0x2aa7cb,this[_0x23ea43(0x3bc)],this['type'],_0x130291,_0x5e928b,this[_0x23ea43(0x42a)],void 0x0);else{if(_0x130291&&_0x5e928b[_0x23ea43(0x242)]===0x0)_0x130291[_0x23ea43(0x367)]=this['_getCurrentRevision'](),_0x5ddfdf=this[_0x23ea43(0x3af)]['createInstance'](_0x41bca9,this['unitID'],this[_0x23ea43(0x320)],_0x130291,this[_0x23ea43(0x42a)]);else{if(_0x5e928b[_0x23ea43(0x242)]!==0x0){let _0x15cfc1=this[_0x23ea43(0x3af)][_0x23ea43(0x467)](_0x552ece,this[_0x23ea43(0x3bc)],this[_0x23ea43(0x320)],_0x5e928b,this[_0x23ea43(0x42a)]);_0x15cfc1['_schedule'](),_0x5ddfdf=_0x15cfc1;}else _0x5ddfdf=this['_injector'][_0x23ea43(0x467)](_0x165a95,this[_0x23ea43(0x3bc)],this['type'],this[_0x23ea43(0x42a)]);}}return _0x5ddfdf[_0x23ea43(0x284)](),_0x5ddfdf;}catch(_0x24fd46){return this[_0x23ea43(0x2de)]['error']('[FetchMissState]',_0x23ea43(0x312),_0x24fd46),this['_injector'][_0x23ea43(0x467)](_0x2d8e7b,this['unitID'],this[_0x23ea43(0x320)],this[_0x23ea43(0x342)],this['_pendingMutations'],this[_0x23ea43(0x42a)],!0x1);}}[_0x5e5e22(0x418)](_0x59f7de){const _0x83755c=_0x5e5e22;this[_0x83755c(0x4aa)]();for(let _0x4e1d55=0x0;_0x4e1d55<_0x59f7de['length'];_0x4e1d55++){let _0x4426a0=_0x59f7de[_0x4e1d55],_0x528509=this['_getCurrentRevision']();if(!(_0x4426a0[_0x83755c(0x4fd)]<=_0x528509)){if(_0x4426a0['revision']>_0x528509+0x1)return{'missingChangesets':!0x0};if(this[_0x83755c(0x204)](_0x4426a0)){this[_0x83755c(0x327)]();continue;}this[_0x83755c(0x2ef)](_0x4426a0),this[_0x83755c(0x4aa)]();}}return{'missingChangesets':!0x1};}[_0x5e5e22(0x2ef)](_0x3cae8c){const _0x35bce2=_0x5e5e22;let _0x574d6a=_0x3cae8c,_0x31100a=this[_0x35bce2(0x342)];if(_0x31100a){let _0x58dbcc=this[_0x35bce2(0x344)][_0x35bce2(0x4ba)]([_0x3cae8c],[_0x31100a],!0x1);if(!(0x0,_0x2b4fec[_0x35bce2(0x383)])(_0x58dbcc))throw _0x58dbcc['error'];_0x574d6a=_0x58dbcc[_0x35bce2(0x246)][0x0],_0x31100a=_0x58dbcc['c2Prime'][0x0];}let _0x649d58=this['_pendingMutations'];if(_0x649d58[_0x35bce2(0x242)]){let _0xbde29=this[_0x35bce2(0x344)][_0x35bce2(0x1f3)](_0x574d6a,_0x649d58);if(!(0x0,_0x2b4fec[_0x35bce2(0x2c8)])(_0xbde29))throw _0xbde29['error'];_0x574d6a=_0xbde29['c1Prime'],_0x649d58=_0xbde29[_0x35bce2(0x22d)];}this['_executeRemoteChangeset'](_0x574d6a),_0x31100a&&(_0x31100a['baseRev']=this[_0x35bce2(0x465)]()),this[_0x35bce2(0x342)]=_0x31100a,this[_0x35bce2(0x1fc)]=_0x649d58;}['_acknowledgeAwaitingIfReady'](){const _0x2403fb=_0x5e5e22;if(!this[_0x2403fb(0x342)]||this[_0x2403fb(0x3de)]==null)return;let _0x17727f=this[_0x2403fb(0x465)]();if(this[_0x2403fb(0x3de)]<=_0x17727f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x2403fb(0x3de)]+'.');this[_0x2403fb(0x3de)]===_0x17727f+0x1&&this[_0x2403fb(0x327)]();}[_0x5e5e22(0x327)](){const _0x474047=_0x5e5e22;this['_incrementRevisionNumber'](),this[_0x474047(0x342)]=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x1f551a){const _0x5da56a=_0x5e5e22;let _0x371c87=this['_awaitingChangeset'];return!_0x371c87||!_0x371c87[_0x5da56a(0x420)]||_0x371c87[_0x5da56a(0x50a)]===null||_0x371c87['reqId']===void 0x0?!0x1:_0x1f551a[_0x5da56a(0x3bc)]===_0x371c87[_0x5da56a(0x3bc)]&&_0x1f551a[_0x5da56a(0x420)]===_0x371c87[_0x5da56a(0x420)]&&_0x1f551a['reqId']===_0x371c87[_0x5da56a(0x50a)];}[_0x5e5e22(0x41d)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5e5e22(0x4f3)](_0x238851){const _0x363317=_0x5e5e22;return this['_pendingMutations'][_0x363317(0x2e4)](_0x238851),this;}['onRemoteChangeset'](_0x43e143){const _0xad30c0=_0x5e5e22;return this[_0xad30c0(0x4df)][_0xad30c0(0x2e4)](_0x43e143),this;}[_0x5e5e22(0x37b)](_0x4a0ff4){const _0x24752c=_0x5e5e22;if(this[_0x24752c(0x342)]){let _0x16836d=this[_0x24752c(0x465)]();return _0x4a0ff4[_0x24752c(0x4fd)]<=_0x16836d||(_0x16836d+0x1===_0x4a0ff4[_0x24752c(0x4fd)]?(this[_0x24752c(0x450)](),this['_awaitingChangeset']=null,this[_0x24752c(0x3de)]=null):this[_0x24752c(0x3de)]=_0x4a0ff4['revision']),this;}if(_0x4a0ff4[_0x24752c(0x4fd)]<=this[_0x24752c(0x465)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x5e5e22(0x31a)](_0x1713af){const _0x4e068d=_0x5e5e22;return this[_0x4e068d(0x3b7)](!!(_0x1713af!=null&&_0x1713af[_0x4e068d(0x43e)]));}[_0x5e5e22(0x4e3)](){return this;}[_0x5e5e22(0x3b0)](){const _0x423ef2=_0x5e5e22;return this['_injector'][_0x423ef2(0x467)](_0x73123,this[_0x423ef2(0x3bc)],this[_0x423ef2(0x320)],this['_awaitingChangeset'],this[_0x423ef2(0x1fc)],this['_handler']);}[_0x5e5e22(0x3f4)](){return this;}[_0x5e5e22(0x3b7)](_0x1fa469){const _0x33b3ee=_0x5e5e22;return this[_0x33b3ee(0x3af)][_0x33b3ee(0x467)](_0x2d8e7b,this['unitID'],this[_0x33b3ee(0x320)],this[_0x33b3ee(0x342)],this[_0x33b3ee(0x1fc)],this[_0x33b3ee(0x42a)],_0x1fa469);}};_0x272441=_0x28d1a4([_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x8,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['RevisionService'])),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed['IUndoRedoService']),_0x26ba80(0xc,_0x2b4fec['ITransformService']),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x272441);function _0x4de551(_0x2a299d,_0xe373ec,_0x167462,_0x5a1697,_0x3659c0,_0x440b85){const _0x520879=_0x5e5e22;return _0x5a1697&&_0x3659c0[_0x520879(0x242)]?_0x2a299d['createInstance'](_0x2aa7cb,_0xe373ec,_0x167462,_0x5a1697,_0x3659c0,_0x440b85,void 0x0):_0x5a1697?_0x2a299d[_0x520879(0x467)](_0x41bca9,_0xe373ec,_0x167462,_0x5a1697,_0x440b85):_0x3659c0[_0x520879(0x242)]?_0x2a299d['createInstance'](_0x552ece,_0xe373ec,_0x167462,_0x3659c0,_0x440b85):_0x2a299d[_0x520879(0x467)](_0x165a95,_0xe373ec,_0x167462,_0x440b85);}let _0xe7bc8f=class extends _0x1f27ed[_0x5e5e22(0x38a)]{get[_0x5e5e22(0x2c7)](){const _0x37c9e=_0x5e5e22;return this[_0x37c9e(0x415)];}constructor(_0x46f544,_0x212e7a,_0x152a54,_0x7989cd,_0x463d59,_0x4fcadb,_0x287188,_0x5902d4,_0x332a92,_0x41e891,_0x49b95d,_0x3679e2,_0x13716c,_0x22dc7e){const _0x143a1f=_0x5e5e22;super(),this[_0x143a1f(0x3bc)]=_0x46f544,this[_0x143a1f(0x484)]=_0x212e7a,this[_0x143a1f(0x262)]=_0x152a54,this[_0x143a1f(0x3af)]=_0x7989cd,this[_0x143a1f(0x263)]=_0x463d59,this[_0x143a1f(0x2b5)]=_0x4fcadb,this['_revisionService']=_0x287188,this[_0x143a1f(0x31c)]=_0x5902d4,this[_0x143a1f(0x45b)]=_0x332a92,this[_0x143a1f(0x2de)]=_0x41e891,this[_0x143a1f(0x21d)]=_0x49b95d,this['_permissionService']=_0x3679e2,this['_singleActiveUnitService']=_0x13716c,this[_0x143a1f(0x321)]=_0x22dc7e,_0x5886a9(this,_0x143a1f(0x4da),new _0xd93cf[(_0x143a1f(0x48d))](null)),_0x5886a9(this,_0x143a1f(0x340),this['_state$']['asObservable']()),_0x5886a9(this,_0x143a1f(0x415),void 0x0),_0x5886a9(this,_0x143a1f(0x319),!0x1),_0x5886a9(this,_0x143a1f(0x1fe),''),_0x5886a9(this,_0x143a1f(0x260),0x0),_0x5886a9(this,'status$',this[_0x143a1f(0x340)][_0x143a1f(0x3e2)]((0x0,_0xd93cf[_0x143a1f(0x349)])(_0x5c4cf8=>_0x5c4cf8?_0x5c4cf8['status']:'offline'),(0x0,_0xd93cf[_0x143a1f(0x360)])(0x1))),_0x5886a9(this,_0x143a1f(0x28c),!0x1),_0x5886a9(this,_0x143a1f(0x31f),[]);}async[_0x5e5e22(0x247)](){const _0xd9d6f8=_0x5e5e22;if(this[_0xd9d6f8(0x2c7)])throw Error(_0xd9d6f8(0x3f9));await this[_0xd9d6f8(0x4d2)]();}[_0x5e5e22(0x2f2)](){const _0x412666=_0x5e5e22;return this[_0x412666(0x319)]=!0x0,(0x0,_0x1f27ed['toDisposable'])(()=>{const _0x5e4029=_0x412666;this[_0x5e4029(0x319)]=!0x1,this[_0x5e4029(0x4fe)]();});}[_0x5e5e22(0x269)](_0x40ecd5){const _0x1dd826=_0x5e5e22;this[_0x1dd826(0x4c9)](_0x40ecd5);}[_0x5e5e22(0x46f)](_0x5cb4d1){const _0x52bf3a=_0x5e5e22;this[_0x52bf3a(0x415)]=_0x5cb4d1,this[_0x52bf3a(0x4da)][_0x52bf3a(0x446)](_0x5cb4d1);}async[_0x5e5e22(0x4d2)](){const _0x12a13b=_0x5e5e22;if(this[_0x12a13b(0x46f)](await this[_0x12a13b(0x2f0)]()),this['_singleActiveUnitService']){var _0xc1cb6a;(_0xc1cb6a=this['_singleActiveUnitService'])==null||_0xc1cb6a[_0x12a13b(0x3ea)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x12a13b(0x38b)](this[_0x12a13b(0x3bc)])[_0x12a13b(0x3c1)](_0x11e76d=>{const _0x16d6d0=_0x12a13b;this[_0x16d6d0(0x2de)][_0x16d6d0(0x2fc)](_0x16d6d0(0x493),_0x16d6d0(0x466),_0x11e76d),_0x11e76d===0x1?(this['_eventService'][_0x16d6d0(0x2a0)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x16d6d0(0x28b)][_0x16d6d0(0x379)](new _0x47a016[(_0x16d6d0(0x406))](this[_0x16d6d0(0x3bc)])['id'],!0x1),this[_0x16d6d0(0x28b)]['setShowComponents'](!0x1)):(this[_0x16d6d0(0x28b)][_0x16d6d0(0x379)](new _0x47a016['WorkbookEditablePermission'](this[_0x16d6d0(0x3bc)])['id'],!0x0),this[_0x16d6d0(0x28b)]['setShowComponents'](!0x0));}));}let _0x45cdc7=!0x1;return this['disposeWithMe'](this[_0x12a13b(0x484)][_0x12a13b(0x297)][_0x12a13b(0x3c1)](_0x537ff1=>{const _0x3a542=_0x12a13b;_0x537ff1===0x3?this['_toggleOnline'](_0x45cdc7):_0x537ff1===0x2&&(_0x45cdc7=!0x0,this[_0x3a542(0x43b)]());})),this[_0x12a13b(0x3f6)](this[_0x12a13b(0x484)][_0x12a13b(0x302)][_0x12a13b(0x3c1)](_0xeb05c9=>{const _0x276532=_0x12a13b;try{switch(_0xeb05c9[_0x276532(0x46c)]){case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x35e)]:this['_onRemoteChangeset']((0x0,_0x2b4fec['parseProtocolChangeset'])(_0xeb05c9[_0x276532(0x4c1)]));break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x37c)]:this[_0x276532(0x2db)](_0xeb05c9[_0x276532(0x4c1)]);break;case _0x2b4fec[_0x276532(0x3e6)]['CHANGESET_REJ']:this[_0x276532(0x2da)]();break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x353)]:this['_onRemoteRetry'](_0xeb05c9[_0x276532(0x4c1)]);break;case _0x2b4fec[_0x276532(0x3e6)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x276532(0x2f9)](_0xeb05c9[_0x276532(0x4c1)]['changesets'][_0x276532(0x349)](_0x583381=>(0x0,_0x2b4fec[_0x276532(0x439)])(_0x583381)));break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x504)]:this[_0x276532(0x2da)]({'isPermissionRej':!0x0});break;case _0x2b4fec[_0x276532(0x3e6)][_0x276532(0x217)]:break;}}catch(_0x1c4ada){throw console[_0x276532(0x4bf)](_0x276532(0x2a1),_0x1c4ada),_0x1c4ada;}})),this[_0x12a13b(0x415)];}[_0x5e5e22(0x3e8)](){const _0x410fb0=_0x5e5e22;this[_0x410fb0(0x28c)]=!0x1;}[_0x5e5e22(0x32f)](){const _0x317eb1=_0x5e5e22;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x317eb1(0x28c)]=!0x0;}[_0x5e5e22(0x4c9)](_0x2178cb){const _0x4c571c=_0x5e5e22;this['_lockTransition'](),this[_0x4c571c(0x46f)](this[_0x4c571c(0x415)][_0x4c571c(0x4f3)](_0x2178cb)),this[_0x4c571c(0x3e8)]();}['_onRemoteChangeset'](_0x57fe69){const _0x4ce80a=_0x5e5e22;if(!(_0x57fe69['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x4ce80a(0x3bc)]))){if(this[_0x4ce80a(0x319)]){this[_0x4ce80a(0x31f)][_0x4ce80a(0x2e4)](_0x57fe69);return;}this['_applyRemoteChangeset'](_0x57fe69);}}[_0x5e5e22(0x4fe)](){const _0x5759a5=_0x5e5e22;this[_0x5759a5(0x31f)][_0x5759a5(0x3ad)](_0x58d854=>this[_0x5759a5(0x270)](_0x58d854)),this['_remoteChangesetQueue']=[];}[_0x5e5e22(0x270)](_0x492ca4){const _0x2790d4=_0x5e5e22;let _0x5ade3f=this[_0x2790d4(0x263)][_0x2790d4(0x30b)]['fetchThroughInterceptors'](this[_0x2790d4(0x263)][_0x2790d4(0x30b)][_0x2790d4(0x4d8)]()[_0x2790d4(0x2a6)])(_0x492ca4[_0x2790d4(0x3d6)],null)||_0x492ca4['mutations'],_0x3320d1={..._0x492ca4,'mutations':_0x5ade3f};this['_lockTransition'](),this[_0x2790d4(0x46f)](this[_0x2790d4(0x415)][_0x2790d4(0x4f4)](_0x3320d1)),this[_0x2790d4(0x3e8)]();}['_onRemoteACK'](_0x4664f7){const _0x2572f0=_0x5e5e22;this['_lockTransition'](),this[_0x2572f0(0x46f)](this[_0x2572f0(0x415)][_0x2572f0(0x37b)](_0x4664f7)),this[_0x2572f0(0x3e8)]();}[_0x5e5e22(0x2da)](_0x9af049){const _0x313039=_0x5e5e22;this[_0x313039(0x32f)](),this[_0x313039(0x46f)](this[_0x313039(0x415)][_0x313039(0x31a)](_0x9af049)),this[_0x313039(0x3e8)]();}[_0x5e5e22(0x44b)](_0x1938c2){const _0x3cc3cf=_0x5e5e22;this[_0x3cc3cf(0x32f)](),this[_0x3cc3cf(0x46f)](this[_0x3cc3cf(0x415)][_0x3cc3cf(0x4e3)](_0x1938c2)),this[_0x3cc3cf(0x3e8)]();}[_0x5e5e22(0x2f9)](_0x514cb9){const _0x41e0d3=_0x5e5e22;if(!(this[_0x41e0d3(0x415)]instanceof _0x272441))throw TypeError(_0x41e0d3(0x333));let _0xc60808=_0x514cb9['map'](_0x49ccd5=>{const _0x217e85=_0x41e0d3;let _0x169146=this[_0x217e85(0x263)]['interceptor'][_0x217e85(0x2cf)](this['_compressMutationService'][_0x217e85(0x30b)][_0x217e85(0x4d8)]()['COMPRESS_MUTATION_APPLY'])(_0x49ccd5[_0x217e85(0x3d6)],null)||_0x49ccd5[_0x217e85(0x3d6)];return{..._0x49ccd5,'mutations':_0x169146};});this[_0x41e0d3(0x32f)](),this[_0x41e0d3(0x46f)](this[_0x41e0d3(0x415)]['onMissedChangesetFetched'](_0xc60808)),this['_unlockTransition']();}[_0x5e5e22(0x43b)](){const _0x518a88=_0x5e5e22;this[_0x518a88(0x32f)](),this['_updateState'](this[_0x518a88(0x415)][_0x518a88(0x3b0)]()),this[_0x518a88(0x3e8)]();}['_toggleOnline'](_0xcb535b=!0x1){const _0x3128ae=_0x5e5e22;this['_lockTransition'](),this[_0x3128ae(0x46f)](this['_state'][_0x3128ae(0x3f4)]()),this[_0x3128ae(0x3e8)]();let _0x400a6a=this[_0x3128ae(0x415)];_0xcb535b&&_0x400a6a instanceof _0x165a95&&(this['_lockTransition'](),this['_updateState'](_0x400a6a[_0x3128ae(0x252)]()),this['_unlockTransition']());}async[_0x5e5e22(0x2f0)](){return new Promise(_0x5c1686=>{const _0x2ed0e2=_0x20b8;this[_0x2ed0e2(0x484)][_0x2ed0e2(0x297)][_0x2ed0e2(0x3e2)]((0x0,_0xd93cf['take'])(0x1))[_0x2ed0e2(0x3c1)](async _0x515fc6=>{_0x5c1686(await this['_createInitialStateImpl'](_0x515fc6===0x3));});});}[_0x5e5e22(0x437)](){const _0x308f47=_0x5e5e22;let _0x460c89=this[_0x308f47(0x3bc)];return{'onStateChange':(_0x1bdaec,_0x6f6d39)=>{const _0x825adf=_0x308f47;if(_0x1bdaec!==this['_state'])throw Error(_0x825adf(0x23a)+_0x1bdaec[_0x825adf(0x47f)]+_0x825adf(0x210)+_0x6f6d39[_0x825adf(0x47f)]+_0x825adf(0x296)+this['_state']['status']);this[_0x825adf(0x46f)](_0x6f6d39);},'onSendChangeset':_0x550a82=>{const _0x19d0cb=_0x308f47;_0x550a82[_0x19d0cb(0x420)]||(_0x550a82[_0x19d0cb(0x420)]=this[_0x19d0cb(0x1fe)],_0x550a82['reqId']=++this[_0x19d0cb(0x260)]);let _0x2cca15={'eventID':_0x2b4fec['CollaborationEvent'][_0x19d0cb(0x394)],'data':{'unitID':_0x550a82[_0x19d0cb(0x3bc)],'unitType':this['_type'],'changeset':_0x550a82,'memberID':this[_0x19d0cb(0x484)][_0x19d0cb(0x273)]()}};this['session']['send'](_0x2cca15,this[_0x19d0cb(0x3bc)]);},'onMissingChangesets':({from:_0x52e1c8,to:_0x5d6f4f})=>{const _0x137e19=_0x308f47;this[_0x137e19(0x2de)][_0x137e19(0x2fc)](_0x137e19(0x493),_0x137e19(0x48b)+_0x52e1c8+_0x137e19(0x3ef)+_0x5d6f4f);let _0x3df7cf={'eventID':_0x2b4fec['CollaborationEvent'][_0x137e19(0x496)],'data':{'unitID':_0x460c89,'unitType':this[_0x137e19(0x262)],'from':_0x52e1c8,'to':_0x5d6f4f}};this[_0x137e19(0x484)][_0x137e19(0x50d)](_0x3df7cf,this[_0x137e19(0x3bc)]);}};}async[_0x5e5e22(0x227)](_0x31de02){const _0x2d6009=_0x5e5e22;var _0x5e76fe,_0x1816b2,_0x208cf0;let _0x5a28ed=await((_0x5e76fe=this[_0x2d6009(0x321)])==null?void 0x0:_0x5e76fe['loadOfflineData'](this[_0x2d6009(0x3bc)])),_0xac5db4=(_0x1816b2=_0x5a28ed==null?void 0x0:_0x5a28ed[_0x2d6009(0x3d6)])==null?[]:_0x1816b2,_0x19c03d=(_0x208cf0=_0x5a28ed==null?void 0x0:_0x5a28ed[_0x2d6009(0x3d3)])==null?null:_0x208cf0,_0x2d96a1=!!(_0x19c03d!=null&&_0x19c03d['sid'])&&!!(_0x19c03d!=null&&_0x19c03d[_0x2d6009(0x50a)]);this[_0x2d6009(0x1fe)]=_0x2d96a1?_0x19c03d['sid']:(0x0,_0x2b4fec[_0x2d6009(0x433)])(),this[_0x2d6009(0x260)]=_0x2d96a1?_0x19c03d[_0x2d6009(0x50a)]:0x0;let _0x5831ff=this[_0x2d6009(0x3bc)];try{this[_0x2d6009(0x1f9)](_0x19c03d,_0xac5db4);}catch(_0x559c34){this['_logService'][_0x2d6009(0x4bf)](_0x559c34);}let _0xb4ac73=this['_createHandler']();if(_0x31de02){let _0x2f139f=_0x4de551(this[_0x2d6009(0x3af)],_0x5831ff,this[_0x2d6009(0x262)],_0x19c03d,_0xac5db4,_0xb4ac73);return _0x2f139f instanceof _0x552ece?_0x2f139f[_0x2d6009(0x28a)]():(_0x2f139f instanceof _0x2aa7cb||_0x2f139f instanceof _0x41bca9)&&_0x2f139f['resend'](),_0x2f139f;}return this[_0x2d6009(0x3af)][_0x2d6009(0x467)](_0x73123,_0x5831ff,this[_0x2d6009(0x262)],_0x19c03d,_0xac5db4,_0xb4ac73);}[_0x5e5e22(0x1f9)](_0xe8613,_0xbcb89d){const _0x31982f=_0x5e5e22;var _0x22cc7b,_0x33c753;let _0x1d52fc=this[_0x31982f(0x263)][_0x31982f(0x30b)][_0x31982f(0x2cf)](this['_compressMutationService'][_0x31982f(0x30b)][_0x31982f(0x4d8)]()[_0x31982f(0x2a6)]);(_0x22cc7b=_0x1d52fc((_0xe8613==null?void 0x0:_0xe8613[_0x31982f(0x3d6)])||[],null))==null||_0x22cc7b[_0x31982f(0x3ad)](_0x30bda6=>this['_commandService'][_0x31982f(0x397)](_0x30bda6['id'],_0x30bda6[_0x31982f(0x2ed)])),(_0x33c753=_0x1d52fc(_0xbcb89d||[],null))==null||_0x33c753[_0x31982f(0x3ad)](_0x440cf3=>this[_0x31982f(0x21d)]['executeCommand'](_0x440cf3['id'],_0x440cf3[_0x31982f(0x2ed)]));}};_0xe7bc8f=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed['Inject'])(_0x2af8d7)),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0xc,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0xf1640f)),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0xe7bc8f);let _0x6949ae=class extends _0xe7bc8f{constructor(_0x518281,_0x16700a,_0x449ee3,_0x200597,_0x495b75,_0x2b4b2a,_0x1aa232,_0x3da9e3,_0x1fbe7e,_0x3c466f,_0x35f30a,_0x2848dc,_0x306106,_0x30c362){const _0x2daf1b=_0x5e5e22;super(_0x518281,_0x449ee3,_0x16700a,_0x200597,_0x495b75,_0x2b4b2a,_0x1aa232,_0x3da9e3,_0x1fbe7e,_0x3c466f,_0x35f30a,_0x2848dc,_0x306106,_0x30c362),this[_0x2daf1b(0x3bc)]=_0x518281,this[_0x2daf1b(0x320)]=_0x16700a,_0x5886a9(this,'_handlerCallback',null);}[_0x5e5e22(0x512)](_0x45a9ae){const _0x3ae752=_0x5e5e22;this[_0x3ae752(0x4de)]=_0x45a9ae;}[_0x5e5e22(0x345)](){const _0x4bfa47=_0x5e5e22;this[_0x4bfa47(0x4de)]=null,super[_0x4bfa47(0x345)]();}['_createHandler'](){const _0x4039ad=_0x5e5e22;let _0x250011=super[_0x4039ad(0x437)]();return _0x250011[_0x4039ad(0x281)]=_0x1c511c=>{const _0x42ebc2=_0x4039ad;var _0xbd65e9,_0x57b849;return(_0xbd65e9=this[_0x42ebc2(0x4de)])==null||(_0x57b849=_0xbd65e9[_0x42ebc2(0x281)])==null?void 0x0:_0x57b849['call'](_0xbd65e9,_0x1c511c);},_0x250011['onTransformState']=_0x2fb867=>{const _0x1ee544=_0x4039ad;var _0x106a4d,_0x5633a4;return(_0x106a4d=this[_0x1ee544(0x4de)])==null||(_0x5633a4=_0x106a4d['onTransformState'])==null?void 0x0:_0x5633a4['call'](_0x106a4d,_0x2fb867);},_0x250011['onTransformSelections']=_0xec46d4=>{const _0x3e5822=_0x4039ad;var _0x118af4,_0x37e644;return(_0x118af4=this[_0x3e5822(0x4de)])==null||(_0x37e644=_0x118af4['onTransformSelections'])==null?void 0x0:_0x37e644[_0x3e5822(0x514)](_0x118af4,_0xec46d4);},_0x250011[_0x4039ad(0x348)]=_0x251aa3=>{const _0x4cbf92=_0x4039ad;var _0x2b0d7d,_0x5c4e9c;return(_0x2b0d7d=this[_0x4cbf92(0x4de)])==null||(_0x5c4e9c=_0x2b0d7d[_0x4cbf92(0x348)])==null?void 0x0:_0x5c4e9c[_0x4cbf92(0x514)](_0x2b0d7d,_0x251aa3);},_0x250011[_0x4039ad(0x43a)]=_0x297b9d=>{const _0x4319ed=_0x4039ad;var _0x395079,_0x1bd325,_0x7965a6;if(!((_0x395079=this[_0x4319ed(0x4de)])!=null&&_0x395079[_0x4319ed(0x43a)]))throw Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x1bd325=this[_0x4319ed(0x4de)])==null||(_0x7965a6=_0x1bd325[_0x4319ed(0x43a)])==null?void 0x0:_0x7965a6['call'](_0x1bd325,_0x297b9d);},_0x250011['onTransformRemoteChangesetByStateCache']=_0x3ad315=>{const _0x4d4ef0=_0x4039ad;var _0x1faf32,_0x50a324,_0x26d6a5;if(!((_0x1faf32=this[_0x4d4ef0(0x4de)])!=null&&_0x1faf32[_0x4d4ef0(0x1f4)]))throw Error(_0x4d4ef0(0x50b));return(_0x50a324=this[_0x4d4ef0(0x4de)])==null||(_0x26d6a5=_0x50a324[_0x4d4ef0(0x1f4)])==null?void 0x0:_0x26d6a5['call'](_0x50a324,_0x3ad315);},_0x250011;}async[_0x5e5e22(0x4d2)](){const _0x44a6c7=_0x5e5e22;let _0x16adf9=await super[_0x44a6c7(0x4d2)]();return this[_0x44a6c7(0x3f6)](this[_0x44a6c7(0x21d)]['onMutationExecutedForCollab']((_0x5e010b,_0x4a68be)=>{const _0x3b13e3=_0x44a6c7;if(_0x5e010b[_0x3b13e3(0x320)]!==_0x1f27ed[_0x3b13e3(0x35d)][_0x3b13e3(0x25d)]||_0x4a68be!=null&&_0x4a68be[_0x3b13e3(0x395)]||_0x4a68be!=null&&_0x4a68be[_0x3b13e3(0x311)]||_0x5e010b['id']===_0x3b0f13['RichTextEditingMutation']['id'])return;let _0x11102a=_0x5e010b['params'];if((_0x11102a==null?void 0x0:_0x11102a[_0x3b13e3(0x48f)])!==this['unitID'])return;let _0x3df307=_0x5e010b,_0x4070d4=this[_0x3b13e3(0x263)][_0x3b13e3(0x30b)][_0x3b13e3(0x2cf)](this[_0x3b13e3(0x263)][_0x3b13e3(0x30b)][_0x3b13e3(0x4d8)]()[_0x3b13e3(0x489)])([_0x3df307],this[_0x3b13e3(0x45b)])||[_0x3df307];this['_onLocalMutation'](_0x4070d4[0x0]);})),_0x16adf9;}};_0x6949ae=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x8,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xb,_0x1f27ed['IPermissionService']),_0x26ba80(0xc,(0x0,_0x1f27ed['Optional'])(_0xf1640f)),_0x26ba80(0xd,(0x0,_0x1f27ed['Optional'])(_0x33d8de))],_0x6949ae);let _0x30b4f8=class extends _0xe7bc8f{constructor(_0x58a3db,_0x37ede6,_0x3ca146,_0xf41710,_0x278c93,_0x554b2e,_0x49d890,_0x5d6bd8,_0x1a281d,_0x28f508,_0x420fec,_0x55bc63,_0x37f375,_0x1f7fb8,_0x305d52){const _0x47bcce=_0x5e5e22;super(_0x58a3db,_0x3ca146,_0x37ede6,_0xf41710,_0x278c93,_0x554b2e,_0x49d890,_0x1a281d,_0x28f508,_0x420fec,_0x55bc63,_0x37f375,_0x1f7fb8,_0x305d52),this[_0x47bcce(0x3bc)]=_0x58a3db,this[_0x47bcce(0x320)]=_0x37ede6,this[_0x47bcce(0x4c3)]=_0x5d6bd8;}[_0x5e5e22(0x437)](){const _0x554f88=_0x5e5e22;let _0x211973=super['_createHandler']();return _0x211973[_0x554f88(0x36e)]=_0x29ffdc=>this[_0x554f88(0x4c3)]['transformSelections'](_0x29ffdc),_0x211973;}async[_0x5e5e22(0x4d2)](){const _0x5bde42=_0x5e5e22;let _0xa4ec1c=await super[_0x5bde42(0x4d2)]();return this[_0x5bde42(0x3f6)](this[_0x5bde42(0x21d)]['onMutationExecutedForCollab']((_0x4d8538,_0x34751f)=>{const _0x157d3f=_0x5bde42;if(_0x4d8538[_0x157d3f(0x320)]!==_0x1f27ed['CommandType']['MUTATION']||_0x34751f!=null&&_0x34751f['fromCollab']||_0x34751f!=null&&_0x34751f['onlyLocal'])return;let _0x3a168e=_0x4d8538[_0x157d3f(0x2ed)];if((_0x3a168e==null?void 0x0:_0x3a168e[_0x157d3f(0x48f)])!==this[_0x157d3f(0x3bc)])return;let _0x5e8682=_0x4d8538,_0x4edabc=this[_0x157d3f(0x263)][_0x157d3f(0x30b)]['fetchThroughInterceptors'](this[_0x157d3f(0x263)][_0x157d3f(0x30b)][_0x157d3f(0x4d8)]()['COMPRESS_MUTATION_SEND'])([_0x5e8682],this['_univerInstanceService'])||[_0x5e8682];this['_onLocalMutation'](_0x4edabc[0x0]);})),_0xa4ec1c;}};_0x30b4f8=_0x28d1a4([_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x4,(0x0,_0x1f27ed['Inject'])(_0x2b4fec[_0x5e5e22(0x314)])),_0x26ba80(0x5,(0x0,_0x1f27ed['Inject'])(_0x1f27ed[_0x5e5e22(0x2bc)])),_0x26ba80(0x6,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec[_0x5e5e22(0x414)])),_0x26ba80(0x7,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3ede5e)),_0x26ba80(0x8,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x9,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0xa,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0xb,_0x1f27ed[_0x5e5e22(0x2ac)]),_0x26ba80(0xc,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0xd,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0xf1640f)),_0x26ba80(0xe,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x30b4f8);let _0x3aac02=(0x0,_0x1f27ed[_0x5e5e22(0x448)])('univer-pro.collaboration-client.network-condition.service');function _0xc94ca9(_0x30d63e){const _0x5817cc=_0x5e5e22;let _0x41f590=_0x30d63e[_0x5817cc(0x4c1)],_0x50f122=JSON['parse'](_0x41f590);switch(_0x50f122[_0x5817cc(0x34a)]){case _0x26034e[_0x5817cc(0x4ae)][_0x5817cc(0x351)]:case _0x26034e[_0x5817cc(0x4ae)]['HELLO']:{let _0x586c42=_0x50f122[_0x5817cc(0x483)];return{..._0x50f122,'data':_0x586c42,'cmd':_0x50f122[_0x5817cc(0x34a)]};}case _0x26034e[_0x5817cc(0x4ae)][_0x5817cc(0x505)]:{let _0x440737=_0x50f122[_0x5817cc(0x25b)];return{..._0x50f122,'data':_0x440737,'cmd':_0x50f122[_0x5817cc(0x34a)]};}case _0x26034e['CombCmd']['RECV']:{let _0x5a71c3=_0x50f122[_0x5817cc(0x396)];switch(_0x5a71c3[_0x5817cc(0x46c)]){case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x504)]:var _0x19c3c9;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x19c3c9=_0x5a71c3[_0x5817cc(0x1fa)])==null?void 0x0:_0x19c3c9['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x37c)]:var _0x86917a;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x86917a=_0x5a71c3[_0x5817cc(0x26a)])==null?void 0x0:_0x86917a['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)]['NEW_CHANGESETS']:var _0x10767b;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x10767b=_0x5a71c3[_0x5817cc(0x324)])==null?void 0x0:_0x10767b['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x377)]:var _0x20025b;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x20025b=_0x5a71c3[_0x5817cc(0x206)])==null?void 0x0:_0x20025b['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x353)]:var _0x1fc8af;return{..._0x50f122,'data':{..._0x5a71c3,'data':(_0x1fc8af=_0x5a71c3[_0x5817cc(0x438)])==null?void 0x0:_0x1fc8af['cs']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x464)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x501)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent']['USERS_ENTER']:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x309)]},'cmd':_0x50f122['cmd']};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x3fd)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x235)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x447)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x2af)]},'cmd':_0x50f122['cmd']};case _0x2b4fec[_0x5817cc(0x3e6)]['LIVESHARE_FETCH_OPERATIONS']:case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x37d)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x424)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x486)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3['liveShareNewHost']},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x4f7)]:return{..._0x50f122,'data':_0x5a71c3,'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x354)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x399)]},'cmd':_0x50f122['cmd']};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x249)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x202)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};case _0x2b4fec[_0x5817cc(0x3e6)][_0x5817cc(0x4c5)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x258)]},'cmd':_0x50f122['cmd']};case _0x2b4fec['CollaborationEvent'][_0x5817cc(0x217)]:return{..._0x50f122,'data':{..._0x5a71c3,'data':_0x5a71c3[_0x5817cc(0x3c7)]},'cmd':_0x50f122[_0x5817cc(0x34a)]};default:return _0x50f122;}}default:return _0x50f122;}}function _0x4e9c33(_0x125b52){const _0x8c4251=_0x5e5e22;switch(_0x125b52[_0x8c4251(0x34a)]){case _0x26034e[_0x8c4251(0x4ae)][_0x8c4251(0x351)]:case _0x26034e['CombCmd'][_0x8c4251(0x1fb)]:return JSON[_0x8c4251(0x298)]({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)]});case _0x26034e[_0x8c4251(0x4ae)]['INGEST']:{let _0x10e0a7;switch(_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x46c)]){case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x464)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x464)],'updateCursorEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x3fd)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x3fd)],'leaveEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x286)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x286)],'joinEvent':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x447)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x447)],'liveShareNewHost':_0x125b52[_0x8c4251(0x4c1)]['data']};break;case _0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x37d)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x486)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x436)]:_0x10e0a7={'eventID':_0x2b4fec['CollaborationEvent'][_0x8c4251(0x436)],'liveShareRequestHost':_0x125b52[_0x8c4251(0x4c1)][_0x8c4251(0x4c1)]};break;case _0x2b4fec['CollaborationEvent'][_0x8c4251(0x38d)]:_0x10e0a7={'eventID':_0x2b4fec[_0x8c4251(0x3e6)][_0x8c4251(0x38d)]};break;default:_0x10e0a7={'eventID':_0x125b52['data'][_0x8c4251(0x46c)]};}return JSON['stringify']({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)],'collaMsg':_0x10e0a7});}case _0x26034e['CombCmd']['JOIN']:return JSON['stringify']({'cmd':_0x125b52['cmd'],'routeKey':_0x125b52[_0x8c4251(0x251)],'joinReq':_0x125b52[_0x8c4251(0x4c1)]});case _0x26034e[_0x8c4251(0x4ae)][_0x8c4251(0x36c)]:return JSON[_0x8c4251(0x298)]({'cmd':_0x125b52[_0x8c4251(0x34a)],'routeKey':_0x125b52[_0x8c4251(0x251)],'leaveReq':_0x125b52[_0x8c4251(0x4c1)]});default:throw Error(_0x8c4251(0x36b));}}let _0xb9cf3b=(0x0,_0x1f27ed[_0x5e5e22(0x448)])(_0x5e5e22(0x224));function _0x95807c(_0x368469,_0x2dd766,_0x48eae9){return _0x368469+'/'+_0x2dd766+'/unit/'+_0x48eae9+'/new_changes';}let _0x274b64=class extends _0x1f27ed['Disposable']{constructor(_0x50fe13,_0x593cd7,_0x2ff4c6,_0x1e7e39,_0x864dfb){const _0x458943=_0x5e5e22;super(),this[_0x458943(0x3af)]=_0x50fe13,this[_0x458943(0x283)]=_0x593cd7,this['_configService']=_0x2ff4c6,this['_logService']=_0x1e7e39,this[_0x458943(0x2d2)]=_0x864dfb;}[_0x5e5e22(0x2f6)](_0x571eb7){const _0x2b0cbf=_0x5e5e22;let _0x15c50c=this[_0x2b0cbf(0x3af)][_0x2b0cbf(0x31e)](_0x2514fd['ISocketService']);if(!_0x15c50c)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x1d0062=_0x15c50c[_0x2b0cbf(0x3f1)](_0x571eb7);if(!_0x1d0062)throw Error(_0x2b0cbf(0x47d));let _0x37a68c=new _0x1f27ed['DisposableCollection'](),_0x4a9365=new _0xd93cf['Subject']();_0x37a68c['add'](_0x1d0062[_0x2b0cbf(0x430)][_0x2b0cbf(0x3c1)](_0x2816ab=>_0x4a9365['next'](_0x2816ab))),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x4a9365[_0x2b0cbf(0x328)]()));let _0x557106=new _0xd93cf['Subject']();_0x37a68c[_0x2b0cbf(0x3d0)](_0x1d0062[_0x2b0cbf(0x28d)]['subscribe'](_0x1a1798=>_0x557106[_0x2b0cbf(0x446)](_0x1a1798))),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x557106[_0x2b0cbf(0x328)]()));let _0x2382b2=new _0xd93cf['Subject']();_0x37a68c[_0x2b0cbf(0x3d0)](_0x1d0062['message$']['subscribe'](_0x17aacb=>{let _0x4757ad=_0xc94ca9(_0x17aacb);_0x2382b2['next'](_0x4757ad);})),_0x37a68c[_0x2b0cbf(0x3d0)]((0x0,_0x1f27ed[_0x2b0cbf(0x2fe)])(()=>_0x2382b2[_0x2b0cbf(0x328)]()));let _0x2e38a7,_0x27659e=()=>{const _0x6e81=_0x2b0cbf;_0x557106[_0x6e81(0x446)](new Event(_0x6e81(0x3ac))),_0x4a9365['next'](new Event(_0x6e81(0x3ac))),_0x2e38a7['close']();};return _0x2e38a7={'memberID':'','close$':_0x4a9365[_0x2b0cbf(0x471)](),'error$':_0x557106[_0x2b0cbf(0x471)](),'open$':_0x1d0062[_0x2b0cbf(0x3db)],'message$':_0x2382b2[_0x2b0cbf(0x471)](),'send':_0xab1870=>{const _0x56a56c=_0x2b0cbf;if(_0xab1870[_0x56a56c(0x34a)]===_0x26034e[_0x56a56c(0x4ae)]['INGEST']){if(_0xab1870[_0x56a56c(0x4c1)][_0x56a56c(0x46c)]===_0x2b4fec['CollaborationEvent'][_0x56a56c(0x394)]){this[_0x56a56c(0x230)](_0x2e38a7,_0xab1870[_0x56a56c(0x4c1)])[_0x56a56c(0x410)](_0x2ce1eb=>{const _0x536ced=_0x56a56c;this[_0x536ced(0x2de)][_0x536ced(0x4bf)](_0x2ce1eb),_0x27659e();});return;}if(_0xab1870['data']['eventID']===_0x2b4fec['CollaborationEvent'][_0x56a56c(0x496)]){let _0x4cdd4b=_0xab1870[_0x56a56c(0x4c1)];this[_0x56a56c(0x4b8)](_0x4cdd4b)[_0x56a56c(0x38c)](_0x5a4547=>{const _0x2891b8=_0x56a56c;_0x2382b2[_0x2891b8(0x446)]({'cmd':_0x26034e[_0x2891b8(0x4ae)]['RECV'],'code':_0x26034e[_0x2891b8(0x48a)]['OK'],'routeKey':_0x4cdd4b[_0x2891b8(0x4c1)]['unitID'],'routeType':'','data':{'eventID':_0x2b4fec['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5a4547}}});})[_0x56a56c(0x410)](_0x119789=>{const _0x5c76cd=_0x56a56c;this[_0x5c76cd(0x2de)][_0x5c76cd(0x4bf)](_0x119789),_0x27659e();});return;}}_0x1d0062[_0x56a56c(0x50d)](_0x4e9c33(_0xab1870));},'close':()=>{const _0x10afcd=_0x2b0cbf;_0x1d0062[_0x10afcd(0x4d3)](),_0x37a68c[_0x10afcd(0x345)]();}},_0x2e38a7;}async[_0x5e5e22(0x230)](_0x60d1c3,_0x49ab07){const _0x3bd551=_0x5e5e22;var _0x3ac24e;let {unitType:_0x1b2098,unitID:_0x50f7,changeset:_0x28e4e9}=_0x49ab07['data'],_0x27b181={'unitID':_0x50f7,'memberID':_0x60d1c3['memberID'],'type':_0x1b2098,'changeset':(0x0,_0x2b4fec[_0x3bd551(0x515)])(_0x28e4e9)},_0x43b622=this[_0x3bd551(0x494)][_0x3bd551(0x45c)](_0x5df009),_0x5bbb41=_0x95807c((_0x3ac24e=_0x43b622==null?void 0x0:_0x43b622[_0x3bd551(0x232)])==null?_0x3bd551(0x4c4):_0x3ac24e,_0x1b2098,_0x50f7);try{await this['_httpService'][_0x3bd551(0x44d)](_0x5bbb41,{'body':_0x27b181});}catch(_0x2e482e){throw this[_0x3bd551(0x2de)]['error'](_0x3bd551(0x452),_0x3bd551(0x3f3)),_0x2e482e;}}async[_0x5e5e22(0x4b8)](_0x1b5b9d){const _0x4b7c43=_0x5e5e22;let {unitID:_0x39c742,from:_0x2df859,to:_0x232a91,unitType:_0x317a31}=_0x1b5b9d[_0x4b7c43(0x4c1)];return(await this[_0x4b7c43(0x2d2)][_0x4b7c43(0x3b9)]({'metadata':void 0x0},{'unitID':_0x39c742,'type':_0x317a31,'from':_0x2df859,'to':_0x232a91}))[_0x4b7c43(0x203)][_0x4b7c43(0x349)](_0x5312f1=>((_0x5312f1[_0x4b7c43(0x3d6)]===null||_0x5312f1[_0x4b7c43(0x3d6)]===void 0x0)&&(_0x5312f1[_0x4b7c43(0x3d6)]=[]),_0x5312f1));}};_0x274b64=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['Injector'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)])),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x3,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x4,_0x2b4fec[_0x5e5e22(0x20d)])],_0x274b64);let _0x3b7eb8=class extends _0x1f27ed[_0x5e5e22(0x421)]{get[_0x5e5e22(0x3e1)](){return this['_socket$']['getValue']();}constructor(_0xe0ca36,_0x11d8ce,_0x5df35e,_0x2a9efa,_0xfc47bb,_0x411e2e){const _0x291d38=_0x5e5e22;super(),this[_0x291d38(0x3af)]=_0xe0ca36,this[_0x291d38(0x2de)]=_0x11d8ce,this[_0x291d38(0x494)]=_0x5df35e,this[_0x291d38(0x23d)]=_0x2a9efa,this[_0x291d38(0x205)]=_0xfc47bb,this['_networkConditionService']=_0x411e2e,_0x5886a9(this,_0x291d38(0x3ed),new _0xd93cf[(_0x291d38(0x48d))](void 0x0)),_0x5886a9(this,_0x291d38(0x405),this['_socket$'][_0x291d38(0x471)]()),_0x5886a9(this,_0x291d38(0x2d7),null),_0x5886a9(this,_0x291d38(0x35b),new Map()),_0x5886a9(this,_0x291d38(0x42d),new _0xd93cf[(_0x291d38(0x48d))](0x0)),_0x5886a9(this,'status$',this[_0x291d38(0x42d)][_0x291d38(0x471)]()),_0x5886a9(this,_0x291d38(0x33f),!0x1),_0x5886a9(this,_0x291d38(0x4fa),void 0x0),_0x5886a9(this,_0x291d38(0x347),0x0),_0x5886a9(this,'_sendHeartbeatTimer',void 0x0),_0x5886a9(this,_0x291d38(0x220),void 0x0),this['_listenToNetworkCondition']();}[_0x5e5e22(0x36a)](){const _0x248d17=_0x5e5e22;this['_networkConditionService']&&this[_0x248d17(0x3f6)](this[_0x248d17(0x200)][_0x248d17(0x229)][_0x248d17(0x3c1)](_0x273c05=>{const _0x144ac9=_0x248d17;_0x273c05&&!this[_0x144ac9(0x3e1)]&&this['reconnect'](),_0x273c05||this[_0x144ac9(0x4a1)]();}));}[_0x5e5e22(0x345)](){const _0x285827=_0x5e5e22;super[_0x285827(0x345)](),this[_0x285827(0x361)](),this['_clearTimeoutTimer'](),this[_0x285827(0x27f)](),this[_0x285827(0x35b)][_0x285827(0x3ad)](_0x3e8b50=>_0x3e8b50['dispose']()),this[_0x285827(0x35b)][_0x285827(0x24d)](),this[_0x285827(0x42d)][_0x285827(0x328)]();}async['requireSession'](_0x15ea25){const _0x394be1=_0x5e5e22;if(this['_sessions'][_0x394be1(0x4e1)](_0x15ea25))return this[_0x394be1(0x35b)][_0x394be1(0x31e)](_0x15ea25);this[_0x394be1(0x3a6)]();let _0x5489c2=this[_0x394be1(0x3af)][_0x394be1(0x467)](_0x56a6c2,_0x15ea25,this['_socket$']['asObservable']());return this[_0x394be1(0x35b)][_0x394be1(0x4ce)](_0x15ea25,_0x5489c2),_0x5489c2;}[_0x5e5e22(0x2d6)](_0x172889){const _0x31925e=_0x5e5e22;let _0x288fb3=this[_0x31925e(0x35b)]['get'](_0x172889);if(_0x288fb3&&(this[_0x31925e(0x35b)][_0x31925e(0x440)](_0x172889),_0x288fb3['close']()),!this['_sessions'][_0x31925e(0x274)]){var _0x326be6;(_0x326be6=this[_0x31925e(0x3e1)])==null||_0x326be6[_0x31925e(0x4d3)]();}}['reconnect'](){const _0xd459d0=_0x5e5e22;this[_0xd459d0(0x347)]=0x0,this[_0xd459d0(0x361)](),this[_0xd459d0(0x401)]();}[_0x5e5e22(0x361)](){const _0x34d37d=_0x5e5e22;this[_0x34d37d(0x4fa)]!=null&&(clearTimeout(this[_0x34d37d(0x4fa)]),this[_0x34d37d(0x4fa)]=null);}async[_0x5e5e22(0x4c8)](){const _0x131647=_0x5e5e22;var _0x4c4f7b;let _0x386e02=this[_0x131647(0x494)][_0x131647(0x45c)](_0x5df009),_0x4af040=(_0x4c4f7b=_0x386e02==null?void 0x0:_0x386e02[_0x131647(0x358)])==null?_0x505fc1:_0x4c4f7b,_0x3716b1=await this[_0x131647(0x23d)]['createSocket'](_0x4af040);return this[_0x131647(0x2d7)]=_0x3716b1,_0x3716b1;}async[_0x5e5e22(0x3a6)](){const _0x190799=_0x5e5e22;try{var _0x524f2b,_0x236e3b;let _0x250881=(_0x524f2b=(_0x236e3b=this[_0x190799(0x3e1)])==null?this[_0x190799(0x2d7)]:_0x236e3b)==null?await this[_0x190799(0x4c8)]():_0x524f2b;if(_0x250881){let _0x1b99f4=_0x250881[_0x190799(0x50d)];_0x250881[_0x190799(0x50d)]=_0x5c1b84=>(_0x5c1b84[_0x190799(0x34a)]!==_0x26034e[_0x190799(0x4ae)][_0x190799(0x36c)]&&this[_0x190799(0x3fa)](),_0x1b99f4[_0x190799(0x34b)](_0x250881,[_0x5c1b84])),_0x250881[_0x190799(0x3d5)]['subscribe'](_0x2b917b=>this[_0x190799(0x2d9)](_0x250881,_0x2b917b)),_0x250881['error$'][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](_0x485a72=>this['_logService'][_0x190799(0x4bf)](_0x190799(0x4d9),_0x485a72)),_0x250881[_0x190799(0x3db)][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](()=>{const _0xaa1516=_0x190799;this[_0xaa1516(0x3bb)](_0x250881);}),_0x250881['close$'][_0x190799(0x3e2)]((0x0,_0x4f33c6[_0x190799(0x26b)])(0x1))[_0x190799(0x3c1)](_0x234ee4=>{const _0x460e02=_0x190799;this['_logService'][_0x460e02(0x2fc)](_0x460e02(0x329),_0x460e02(0x49c),_0x234ee4),this[_0x460e02(0x253)]();});}}catch(_0x24d1ad){this['_logService']['error'](_0x24d1ad),this[_0x190799(0x253)]();}}[_0x5e5e22(0x3bb)](_0x2a9c65){const _0x17d1f1=_0x5e5e22;this['_logService'][_0x17d1f1(0x2fc)](_0x17d1f1(0x329),_0x17d1f1(0x507)),_0x2a9c65[_0x17d1f1(0x50d)]({'cmd':_0x26034e['CombCmd'][_0x17d1f1(0x1fb)]}),this[_0x17d1f1(0x3fa)]();}[_0x5e5e22(0x4a1)](){const _0x2f6d55=_0x5e5e22;this['_socketReady']=!0x1,this[_0x2f6d55(0x2d7)]=null,this['_status$']['next'](0x2),this[_0x2f6d55(0x3ed)][_0x2f6d55(0x446)](null),this[_0x2f6d55(0x374)](),this[_0x2f6d55(0x27f)]();}[_0x5e5e22(0x253)](){const _0x3507be=_0x5e5e22;var _0x27827b;this[_0x3507be(0x4a1)](),this['_retryCount']<((_0x27827b=this[_0x3507be(0x494)][_0x3507be(0x45c)](_0x3507be(0x4e0)))==null?0x3:_0x27827b)?(this[_0x3507be(0x205)]['emitEvent']({'id':_0x3507be(0x3ee)}),this[_0x3507be(0x401)]()):this[_0x3507be(0x205)]['emitEvent']({'id':_0x3507be(0x482)});}['_tryReconnect'](){const _0xb59a11=_0x5e5e22;var _0x2485b3;let _0xd96bb9=this[_0xb59a11(0x347)],_0x136ae2=this['_configService']['getConfig'](_0x5df009),_0x4ee322=_0xd96bb9===0x0?0x0:((_0x2485b3=_0x136ae2==null?void 0x0:_0x136ae2[_0xb59a11(0x3d1)])==null?0x4e20:_0x2485b3)*0x2**_0xd96bb9;this['_retryConnectingTimer']=setTimeout(()=>{const _0x3afc27=_0xb59a11;clearTimeout(this['_retryConnectingTimer']),this[_0x3afc27(0x4fa)]=null,this[_0x3afc27(0x3a6)]();},_0x4ee322),this['_retryCount']+=0x1;}[_0x5e5e22(0x2d9)](_0x15d7a8,_0x703343){const _0x2ba1e8=_0x5e5e22;let {cmd:_0x40dfc2}=_0x703343;_0x40dfc2===_0x26034e[_0x2ba1e8(0x4ae)][_0x2ba1e8(0x1fb)]&&!this['_socketReady']&&(_0x15d7a8[_0x2ba1e8(0x43c)]=_0x703343[_0x2ba1e8(0x4c1)]['memberID'],this[_0x2ba1e8(0x3ed)][_0x2ba1e8(0x446)](_0x15d7a8),this['_status$'][_0x2ba1e8(0x446)](0x3),this[_0x2ba1e8(0x33f)]=!0x0,this[_0x2ba1e8(0x2d7)]=null),_0x40dfc2===_0x26034e[_0x2ba1e8(0x4ae)][_0x2ba1e8(0x351)]&&this[_0x2ba1e8(0x374)](),this[_0x2ba1e8(0x3fa)]();}[_0x5e5e22(0x3fa)](){const _0x2a3669=_0x5e5e22;var _0x1505e2;this[_0x2a3669(0x27f)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x1505e2=this[_0x2a3669(0x494)][_0x2a3669(0x45c)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x1505e2);}[_0x5e5e22(0x4e9)](){const _0x52b010=_0x5e5e22;this['_socket'][_0x52b010(0x50d)]({'cmd':_0x26034e[_0x52b010(0x4ae)][_0x52b010(0x351)]}),this[_0x52b010(0x513)]();}['_waitForHeartbeatResponse'](){const _0x4dd68c=_0x5e5e22;var _0x5dbf49;this[_0x4dd68c(0x220)]=setTimeout(()=>this[_0x4dd68c(0x253)](),(_0x5dbf49=this[_0x4dd68c(0x494)]['getConfig'](_0x4dd68c(0x365)))==null?_0x1589e0:_0x5dbf49);}[_0x5e5e22(0x27f)](){const _0x3bb3bc=_0x5e5e22;this[_0x3bb3bc(0x491)]!=null&&(clearTimeout(this[_0x3bb3bc(0x491)]),this[_0x3bb3bc(0x491)]=null);}[_0x5e5e22(0x374)](){const _0x1713bc=_0x5e5e22;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1713bc(0x220)]),this[_0x1713bc(0x220)]=null);}};_0x3b7eb8=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x3,_0xb9cf3b),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7)),_0x26ba80(0x5,(0x0,_0x1f27ed['Optional'])(_0x3aac02))],_0x3b7eb8);let _0x4efdf8=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x48da8a,_0x3f423d,_0x2e91e5,_0x4f8b92){const _0x96a3b=_0x5e5e22;var _0x434111;super(),this[_0x96a3b(0x3af)]=_0x48da8a,this[_0x96a3b(0x2b1)]=_0x3f423d,this[_0x96a3b(0x494)]=_0x2e91e5,this['_univerInstanceService']=_0x4f8b92,_0x5886a9(this,_0x96a3b(0x279),new Map()),_0x5886a9(this,_0x96a3b(0x32a),new _0xd93cf[(_0x96a3b(0x2c2))]()),_0x5886a9(this,'entityInit$',this[_0x96a3b(0x32a)]['asObservable']()),((_0x434111=this[_0x96a3b(0x494)]['getConfig'](_0x96a3b(0x4ad)))==null?void 0x0:_0x434111['enableCollaboration'])!==!0x1&&this[_0x96a3b(0x4d2)]();}['dispose'](){const _0x2ddce9=_0x5e5e22;super[_0x2ddce9(0x345)](),this['_entities'][_0x2ddce9(0x3ad)](_0x3f3d39=>_0x3f3d39['dispose']()),this[_0x2ddce9(0x279)][_0x2ddce9(0x24d)]();}['getCollabEntity'](_0x4183b7){const _0x38cf50=_0x5e5e22;var _0x5ecd19;return(_0x5ecd19=this[_0x38cf50(0x279)][_0x38cf50(0x31e)](_0x4183b7))==null?null:_0x5ecd19;}[_0x5e5e22(0x29e)](_0x33c140){const _0xaa1504=_0x5e5e22;let _0x38b02b=this[_0xaa1504(0x455)](_0x33c140);return _0x38b02b?(0x0,_0xd93cf['of'])(_0x38b02b):this[_0xaa1504(0x32a)]['pipe']((0x0,_0x4f33c6['filter'])(_0x3f8a32=>_0x3f8a32['unitID']===_0x33c140));}[_0x5e5e22(0x239)](_0x4a29b5){const _0x294ac4=_0x5e5e22;return(0x0,_0xd93cf[_0x294ac4(0x37e)])(this[_0x294ac4(0x29e)](_0x4a29b5)[_0x294ac4(0x3e2)]((0x0,_0x4f33c6[_0x294ac4(0x349)])(()=>void 0x0)));}[_0x5e5e22(0x4d2)](){const _0x39029b=_0x5e5e22;this[_0x39029b(0x45b)][_0x39029b(0x3bd)](_0x1f27ed['UniverInstanceType'][_0x39029b(0x25c)])['pipe']((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]),(0x0,_0x4f33c6[_0x39029b(0x387)])(0x10))[_0x39029b(0x3c1)](async _0x42f034=>{const _0x395566=_0x39029b;let _0x5277f7=_0x42f034['unit'][_0x395566(0x4d4)](),_0x42f2f9=await this['_startCollaboration'](_0x5277f7,_0x1f27ed['UniverInstanceType'][_0x395566(0x25c)]);this[_0x395566(0x279)][_0x395566(0x4ce)](_0x5277f7,_0x42f2f9);}),this[_0x39029b(0x45b)][_0x39029b(0x3bd)](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x4a5)])[_0x39029b(0x3e2)]((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]),(0x0,_0x4f33c6[_0x39029b(0x387)])(0x10))[_0x39029b(0x3e2)]((0x0,_0x4f33c6[_0x39029b(0x24a)])(_0x3fb865=>!_0x3fb865[_0x39029b(0x32b)][_0x39029b(0x4d4)]()[_0x39029b(0x2e8)]('__')))['subscribe'](async _0x306da0=>{const _0x34f1ac=_0x39029b;let _0x187e01=_0x306da0[_0x34f1ac(0x32b)]['getUnitId'](),_0x59ac5f=await this[_0x34f1ac(0x378)](_0x187e01,_0x1f27ed[_0x34f1ac(0x41c)][_0x34f1ac(0x4a5)]);this[_0x34f1ac(0x279)]['set'](_0x187e01,_0x59ac5f);}),(0x0,_0xd93cf[_0x39029b(0x307)])(this[_0x39029b(0x45b)]['getTypeOfUnitDisposed$'](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x25c)]),this[_0x39029b(0x45b)][_0x39029b(0x477)](_0x1f27ed[_0x39029b(0x41c)][_0x39029b(0x4a5)]))[_0x39029b(0x3e2)]((0x0,_0xd93cf[_0x39029b(0x2dd)])(this[_0x39029b(0x207)]))[_0x39029b(0x3c1)](_0x4ca212=>{const _0x8e057f=_0x39029b;let _0x1fe313=_0x4ca212[_0x8e057f(0x4d4)](),_0x5865f0=this[_0x8e057f(0x279)][_0x8e057f(0x31e)](_0x1fe313);_0x5865f0&&(_0x5865f0[_0x8e057f(0x345)](),this[_0x8e057f(0x279)]['delete'](_0x1fe313));});}async[_0x5e5e22(0x378)](_0x1123b3,_0x3b498d){const _0x4d0609=_0x5e5e22;let _0x38abd6=await this[_0x4d0609(0x2b1)]['requireSession'](_0x1123b3),_0x3d890e=this[_0x4d0609(0x3af)]['createInstance'](this[_0x4d0609(0x3a4)](_0x3b498d),_0x1123b3,_0x3b498d,_0x38abd6);return await _0x3d890e[_0x4d0609(0x247)](),this[_0x4d0609(0x32a)][_0x4d0609(0x446)](_0x3d890e),_0x3d890e;}[_0x5e5e22(0x3a4)](_0x4d94f7){const _0x37da4a=_0x5e5e22;switch(_0x4d94f7){case _0x1f27ed[_0x37da4a(0x41c)]['UNIVER_DOC']:return _0x6949ae;case _0x1f27ed[_0x37da4a(0x41c)][_0x37da4a(0x25c)]:return _0x30b4f8;default:throw Error(_0x37da4a(0x2d1)+_0x4d94f7);}}};_0x4efdf8=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3b7eb8)),_0x26ba80(0x2,_0x1f27ed['IConfigService']),_0x26ba80(0x3,_0x1f27ed['IUniverInstanceService'])],_0x4efdf8);var _0x189f56='@univerjs-pro/collaboration-client',_0x4b9248=_0x5e5e22(0x248);let _0x33fd88=class extends _0x1f27ed['Disposable']{constructor(_0x748e65,_0x123296){const _0x33936d=_0x5e5e22;super(),this[_0x33936d(0x45b)]=_0x748e65,this[_0x33936d(0x494)]=_0x123296,this[_0x33936d(0x4d2)]();}['_init'](){const _0x293148=_0x5e5e22;this[_0x293148(0x3f6)](this['_univerInstanceService'][_0x293148(0x339)]['subscribe'](()=>{const _0x1aef05=_0x293148;var _0x5dd251;let _0x20bf34=this[_0x1aef05(0x45b)][_0x1aef05(0x233)](),_0x2413f4=(_0x5dd251=this[_0x1aef05(0x494)][_0x1aef05(0x45c)](_0x1aef05(0x3b4)))==null?_0x1aef05(0x49d):_0x5dd251;_0x20bf34 instanceof _0x1f27ed[_0x1aef05(0x21e)]&&(_0x2413f4=_0x20bf34[_0x1aef05(0x39c)]),document[_0x1aef05(0x390)]=_0x2413f4;}));}};_0x33fd88=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x1,_0x1f27ed['IConfigService'])],_0x33fd88);let _0x3e8a84=class{constructor(_0x328bac,_0x5aaf1b,_0x4a8682){const _0x22a500=_0x5e5e22;this[_0x22a500(0x494)]=_0x328bac,this[_0x22a500(0x283)]=_0x5aaf1b,this[_0x22a500(0x40e)]=_0x4a8682,this[_0x22a500(0x247)]();}[_0x5e5e22(0x247)](){const _0x569475=_0x5e5e22;this['_httpService'][_0x569475(0x454)]({'priority':0x1,'interceptor':(_0x644e42,_0x2dcf75)=>_0x2dcf75(_0x644e42)[_0x569475(0x3e2)]((0x0,_0xd93cf[_0x569475(0x3f7)])(async _0x4c9809=>{const _0x451875=_0x569475;let _0x3e305c=_0x4c9809;if(_0x3e305c[_0x451875(0x47f)]===0x191){if(typeof window>'u')throw Error(_0x451875(0x3cd));if(window[_0x451875(0x275)](this[_0x451875(0x40e)]['t'](_0x451875(0x3ce)))){let _0x56b566=window[_0x451875(0x495)](window['location'][_0x451875(0x3cc)]);window['location'][_0x451875(0x3cc)]=this[_0x451875(0x364)]()+_0x451875(0x4e2)+_0x56b566;}}return _0x3e305c;}))});}[_0x5e5e22(0x364)](){const _0xc00d34=_0x5e5e22;var _0x984ec9;let _0x3424a=this['_configService'][_0xc00d34(0x45c)](_0x5df009);return(_0x984ec9=_0x3424a==null?void 0x0:_0x3424a[_0xc00d34(0x254)])==null?_0xc00d34(0x292):_0x984ec9;}};_0x3e8a84=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)])),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x2bc)]))],_0x3e8a84);let _0x1ac39c=class extends _0x1f27ed['Disposable']{constructor(_0x34b03d,_0x22c0bb){const _0x34e7a9=_0x5e5e22;super(),this[_0x34e7a9(0x22f)]=_0x34b03d,this[_0x34e7a9(0x494)]=_0x22c0bb,_0x5886a9(this,_0x34e7a9(0x4ca),!0x1),this[_0x34e7a9(0x317)]();}[_0x5e5e22(0x317)](){const _0x26eac5=_0x5e5e22;let _0x114369=this;this[_0x26eac5(0x3f6)](this[_0x26eac5(0x22f)][_0x26eac5(0x454)]({'priority':0x3e7,'interceptor':(0x0,_0x2514fd['MergeInterceptorFactory'])({'isMatch'(_0x240ace){const _0x2f826f=_0x26eac5;var _0x4d6bee;if(_0x240ace[_0x2f826f(0x47b)]===_0x2f826f(0x423)&&(_0x4d6bee=_0x240ace[_0x2f826f(0x26f)])!=null&&_0x4d6bee[_0x2f826f(0x2ba)]){let {objectID:_0x2c0041,objectType:_0x23bfd6}=_0x240ace[_0x2f826f(0x26f)][_0x2f826f(0x2ba)]||{};if(!_0x2c0041||_0x23bfd6===void 0x0)return!0x1;let _0x50d163=_0x114369[_0x2f826f(0x3d9)]()+'/'+_0x23bfd6+'/object/'+_0x2c0041+_0x2f826f(0x2c6);if(_0x240ace[_0x2f826f(0x408)]===_0x50d163)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bf2aa){const _0x5bb3d4=_0x26eac5;var _0x52dcd5;return(_0x52dcd5=_0x2bf2aa[_0x5bb3d4(0x26f)])==null?void 0x0:_0x52dcd5[_0x5bb3d4(0x2ba)];},'mergeParamsToRequest'(_0x5aa904,_0x4b4873){const _0x1ecc17=_0x26eac5;let _0x5999ed=_0x114369[_0x1ecc17(0x3d9)]()+'/-/object/-/batch_allowed',_0x37a65a=_0x5aa904[_0x1ecc17(0x39b)]((_0x25d527,_0x1836ba)=>{let {unitID:_0x3a1456,objectID:_0x104497,objectType:_0x132d33,actions:_0x4ab7d5}=_0x1836ba;return _0x25d527[_0x3a1456]||(_0x25d527[_0x3a1456]={}),_0x25d527[_0x3a1456][_0x104497]||(_0x25d527[_0x3a1456][_0x104497]={'objectID':_0x104497,'objectType':_0x132d33,'actions':[]}),_0x25d527[_0x3a1456][_0x104497]['actions']['push'](..._0x4ab7d5),_0x25d527;},{}),_0x4b8f08=[];for(let _0x420b34 in _0x37a65a)for(let _0x5af3a7 in _0x37a65a[_0x420b34]){let {actions:_0xf26133,objectType:_0x1e4604}=_0x37a65a[_0x420b34][_0x5af3a7],_0x2a4fa3=[...new Set(_0xf26133)];_0x4b8f08[_0x1ecc17(0x2e4)]({'unitID':_0x420b34,'objectID':_0x5af3a7,'objectType':_0x1e4604,'actions':_0x2a4fa3});}return new _0x2514fd[(_0x1ecc17(0x30f))](_0x1ecc17(0x423),_0x5999ed,{'headers':_0x4b4873[_0x1ecc17(0x474)],'withCredentials':_0x4b4873[_0x1ecc17(0x26e)],'responseType':_0x4b4873[_0x1ecc17(0x24e)],'body':{'requests':_0x4b8f08}});}},{'distributeResult'(_0x5a5b64,_0x3353c4){const _0xc80f07=_0x26eac5;let {objectActions:_0x4c870e}=_0x5a5b64;return _0x3353c4[_0xc80f07(0x349)](_0xc45dbb=>{const _0x669fb2=_0xc80f07;let {unitID:_0x100038,objectID:_0x5a1516,actions:_0x20a996}=_0xc45dbb,_0x4129e5=_0x4c870e[_0x669fb2(0x47a)](_0x1fb896=>_0x1fb896[_0x669fb2(0x3bc)]===_0x100038&&_0x1fb896['objectID']===_0x5a1516);return{'config':_0xc45dbb,'result':{'actions':_0x20a996[_0x669fb2(0x349)](_0x15ced0=>_0x4129e5==null?void 0x0:_0x4129e5['actions'][_0x669fb2(0x47a)](_0x543773=>_0x543773['action']===_0x15ced0))[_0x669fb2(0x24a)](_0x28f555=>!!_0x28f555),'error':_0x5a5b64['error']}};});}})}));}[_0x5e5e22(0x3d9)](){const _0x40b008=_0x5e5e22;var _0xb03268;let _0x424d79=this[_0x40b008(0x494)][_0x40b008(0x45c)](_0x5df009);return(_0xb03268=_0x424d79==null?void 0x0:_0x424d79[_0x40b008(0x3b1)])==null?'/universer-api/authz':_0xb03268;}async[_0x5e5e22(0x39d)](_0x323794){const _0x2b04ea=_0x5e5e22;let _0x4b71e3=this['_getAPIPrefixPath']()+'/'+_0x323794[_0x2b04ea(0x2ce)]+'/object';return(await this[_0x2b04ea(0x22f)][_0x2b04ea(0x44d)](_0x4b71e3,{'body':_0x323794}))[_0x2b04ea(0x2ba)][_0x2b04ea(0x393)]||'';}async[_0x5e5e22(0x511)](_0x3b2556){const _0x5bb70f=_0x5e5e22;let _0x12d49e=this[_0x5bb70f(0x3d9)]()+'/-/object/list';return(await this[_0x5bb70f(0x22f)]['post'](_0x12d49e,{'body':_0x3b2556}))[_0x5bb70f(0x2ba)][_0x5bb70f(0x381)];}async['update'](_0x164b65){const _0x41530e=_0x5e5e22;var _0x59d52e;let _0x281f01=this[_0x41530e(0x3d9)]()+'/'+_0x164b65['objectType']+_0x41530e(0x4a6)+_0x164b65['objectID'],_0x2bd981=await this[_0x41530e(0x22f)]['put'](_0x281f01,{'body':_0x164b65});if((_0x2bd981==null||(_0x59d52e=_0x2bd981['body'])==null||(_0x59d52e=_0x59d52e[_0x41530e(0x4bf)])==null?void 0x0:_0x59d52e[_0x41530e(0x45d)])!==0x1)throw Error(_0x41530e(0x4ee));}async[_0x5e5e22(0x305)](_0x361493){const _0x38664b=_0x5e5e22;let _0x488d19=this[_0x38664b(0x3d9)]()+'/'+_0x361493[_0x38664b(0x2ce)]+_0x38664b(0x4a6)+_0x361493[_0x38664b(0x393)]+_0x38664b(0x2c6);return(await this[_0x38664b(0x22f)][_0x38664b(0x44d)](_0x488d19,{'body':_0x361493}))[_0x38664b(0x2ba)]['actions'];}async[_0x5e5e22(0x40b)](_0x5e9b99){const _0xb0202c=_0x5e5e22;let _0x36aa25=this[_0xb0202c(0x3d9)]()+_0xb0202c(0x295);return(await this['_HTTPService'][_0xb0202c(0x44d)](_0x36aa25,{'body':{'requests':_0x5e9b99}}))[_0xb0202c(0x2ba)][_0xb0202c(0x4b1)];}async[_0x5e5e22(0x219)](_0x22276f){const _0x3c753e=_0x5e5e22;let _0x1b0e93=this['_getAPIPrefixPath']()+'/'+_0x22276f[_0x3c753e(0x2ce)]+_0x3c753e(0x503),_0xa61842=await this[_0x3c753e(0x22f)][_0x3c753e(0x44d)](_0x1b0e93,{'body':_0x22276f});return{'roles':_0xa61842[_0x3c753e(0x2ba)]['roles'],'actions':_0xa61842[_0x3c753e(0x2ba)]['actions']};}async[_0x5e5e22(0x256)](_0x17613f){const _0xde2149=_0x5e5e22;let _0x5d36bc=this[_0xde2149(0x3d9)]()+_0xde2149(0x243);await this[_0xde2149(0x22f)][_0xde2149(0x440)](_0x5d36bc,{'params':{'collaboratorID':_0x17613f[_0xde2149(0x385)],'objectID':_0x17613f[_0xde2149(0x393)],'unitID':_0x17613f['unitID']}});}async[_0x5e5e22(0x3e0)](_0x5eec94){const _0x12205d=_0x5e5e22;let _0x1d33a6=this[_0x12205d(0x3d9)]()+'/collaborator';await this[_0x12205d(0x22f)][_0x12205d(0x212)](_0x1d33a6,{'body':_0x5eec94});}async['createCollaborator'](_0x576d5c){const _0x306c67=_0x5e5e22;let _0x2df1db=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x306c67(0x22f)][_0x306c67(0x44d)](_0x2df1db,{'body':_0x576d5c});}async['listCollaborators'](_0x15f217){const _0x1dfc7c=_0x5e5e22;var _0x953357;let _0x4c42ae=this['_getAPIPrefixPath']()+'/collaborator',_0x3cf4eb=await this[_0x1dfc7c(0x22f)][_0x1dfc7c(0x31e)](_0x4c42ae,{'params':{'objectID':_0x15f217[_0x1dfc7c(0x393)],'unitID':_0x15f217['unitID']}});return this['setCfgEnableObjInherit']((_0x953357=_0x3cf4eb['body'][_0x1dfc7c(0x330)])==null?!0x1:_0x953357),_0x3cf4eb['body'][_0x1dfc7c(0x299)];}async[_0x5e5e22(0x4c6)](_0x4bff62){const _0x2dbe00=_0x5e5e22;let _0x90e357=this[_0x2dbe00(0x3d9)]()+_0x2dbe00(0x243);await this[_0x2dbe00(0x22f)][_0x2dbe00(0x1f6)](_0x90e357,{'body':_0x4bff62});}[_0x5e5e22(0x3d4)](_0x5b6d85){const _0x2aa458=_0x5e5e22;this[_0x2aa458(0x4ca)]=_0x5b6d85;}['getCfgEnableObjInherit'](){const _0x4ad6da=_0x5e5e22;return this[_0x4ad6da(0x4ca)];}};_0x1ac39c=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x2514fd['HTTPService'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['IConfigService']))],_0x1ac39c);function _0x4b8c1e(_0x1acb69){const _0x281f55=_0x5e5e22;return _0x1acb69 instanceof Uint8Array||ArrayBuffer[_0x281f55(0x237)](_0x1acb69)&&_0x1acb69['constructor'][_0x281f55(0x39c)]===_0x281f55(0x4be)&&_0x281f55(0x32e)in _0x1acb69&&_0x1acb69['BYTES_PER_ELEMENT']===0x1;}function _0x4dad3a(_0x5d7322){const _0x1f5dd2=_0x5e5e22;if(typeof _0x5d7322!=_0x1f5dd2(0x4dd))throw TypeError(_0x1f5dd2(0x473)+typeof _0x5d7322);if(!Number[_0x1f5dd2(0x261)](_0x5d7322)||_0x5d7322<0x0)throw RangeError(_0x1f5dd2(0x375)+_0x5d7322);}function _0x139d92(_0x36ccb1,_0xeab8ac,_0x5e1ea4=''){const _0x1b4cb5=_0x5e5e22;let _0xc84b09=_0x4b8c1e(_0x36ccb1),_0x3a8782=_0x36ccb1==null?void 0x0:_0x36ccb1[_0x1b4cb5(0x242)],_0x5430d1=_0xeab8ac!==void 0x0;if(!_0xc84b09||_0x5430d1&&_0x3a8782!==_0xeab8ac){let _0x1d72e3=_0x5e1ea4&&'\x22'+_0x5e1ea4+'\x22\x20',_0x1e1981=_0x5430d1?_0x1b4cb5(0x429)+_0xeab8ac:'',_0x415b88=_0xc84b09?'length='+_0x3a8782:'type='+typeof _0x36ccb1,_0x1dd1eb=_0x1d72e3+_0x1b4cb5(0x24f)+_0x1e1981+',\x20got\x20'+_0x415b88;throw _0xc84b09?RangeError(_0x1dd1eb):TypeError(_0x1dd1eb);}return _0x36ccb1;}function _0x33a411(_0x278dd7){const _0x4e0841=_0x5e5e22;return new Uint32Array(_0x278dd7['buffer'],_0x278dd7['byteOffset'],Math[_0x4e0841(0x2b0)](_0x278dd7[_0x4e0841(0x34d)]/0x4));}function _0x1a116c(..._0x453969){const _0xaddc09=_0x5e5e22;for(let _0x317df1=0x0;_0x317df1<_0x453969[_0xaddc09(0x242)];_0x317df1++)_0x453969[_0x317df1]['fill'](0x0);}let _0x3c590d=new Uint8Array(new Uint32Array([0x11223344])[_0x5e5e22(0x3b6)])[0x0]===0x44,_0x1cb3b0=_0x5daabc=>_0x5daabc<<0x18&0xff000000|_0x5daabc<<0x8&0xff0000|_0x5daabc>>>0x8&0xff00|_0x5daabc>>>0x18&0xff,_0x4431af=_0x3c590d?_0x1f4553=>_0x1f4553:_0x28b450=>{const _0x348f8c=_0x5e5e22;for(let _0xd7d355=0x0;_0xd7d355<_0x28b450[_0x348f8c(0x242)];_0xd7d355++)_0x28b450[_0xd7d355]=_0x1cb3b0(_0x28b450[_0xd7d355]);return _0x28b450;};typeof Uint8Array['from']([])[_0x5e5e22(0x457)]=='function'&&Uint8Array[_0x5e5e22(0x2bf)];function _0x588247(_0x4c4c47){const _0x132594=_0x5e5e22;if(typeof _0x4c4c47!=_0x132594(0x331))throw TypeError(_0x132594(0x310));return new Uint8Array(new TextEncoder()['encode'](_0x4c4c47));}function _0x5514c1(_0x54da97,_0x2afa7b){const _0x1de2a9=_0x5e5e22;return!_0x54da97[_0x1de2a9(0x34d)]||!_0x2afa7b[_0x1de2a9(0x34d)]?!0x1:_0x54da97[_0x1de2a9(0x3b6)]===_0x2afa7b[_0x1de2a9(0x3b6)]&&_0x54da97[_0x1de2a9(0x376)]<_0x2afa7b[_0x1de2a9(0x376)]+_0x2afa7b[_0x1de2a9(0x34d)]&&_0x2afa7b[_0x1de2a9(0x376)]<_0x54da97['byteOffset']+_0x54da97[_0x1de2a9(0x34d)];}function _0x42c1cd(_0x3841c2,_0x55ebf7){const _0x4815e6=_0x5e5e22;if(_0x5514c1(_0x3841c2,_0x55ebf7)&&_0x3841c2[_0x4815e6(0x376)]<_0x55ebf7[_0x4815e6(0x376)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x4494fc(..._0xe601e2){const _0x1cb054=_0x5e5e22;let _0x32d663=0x0;for(let _0x420e0c=0x0;_0x420e0c<_0xe601e2[_0x1cb054(0x242)];_0x420e0c++){let _0x4a82a0=_0xe601e2[_0x420e0c];_0x139d92(_0x4a82a0),_0x32d663+=_0x4a82a0[_0x1cb054(0x242)];}let _0x263320=new Uint8Array(_0x32d663);for(let _0x2cb474=0x0,_0x53d384=0x0;_0x2cb474<_0xe601e2[_0x1cb054(0x242)];_0x2cb474++){let _0xd71579=_0xe601e2[_0x2cb474];_0x263320[_0x1cb054(0x4ce)](_0xd71579,_0x53d384),_0x53d384+=_0xd71579[_0x1cb054(0x242)];}return _0x263320;}let _0x3cbd57=(_0x4c0e29,_0x15056f)=>{const _0x208ff3=_0x5e5e22;function _0x196936(_0x47a64a,..._0x320c2c){const _0x3b224b=_0x20b8;if(_0x139d92(_0x47a64a,void 0x0,_0x3b224b(0x267)),_0x4c0e29[_0x3b224b(0x4f5)]!==void 0x0){let _0x14f4ab=_0x320c2c[0x0];_0x139d92(_0x14f4ab,_0x4c0e29[_0x3b224b(0x2b3)]?void 0x0:_0x4c0e29[_0x3b224b(0x4f5)],_0x3b224b(0x215));}let _0x1f50e9=_0x4c0e29[_0x3b224b(0x453)];_0x1f50e9&&_0x320c2c[0x1]!==void 0x0&&_0x139d92(_0x320c2c[0x1],void 0x0,_0x3b224b(0x35c));let _0x651ea4=_0x15056f(_0x47a64a,..._0x320c2c),_0x3a7507=(_0x250aad,_0x4327be)=>{const _0x375f92=_0x3b224b;if(_0x4327be!==void 0x0){if(_0x250aad!==0x2)throw Error(_0x375f92(0x386));_0x139d92(_0x4327be,void 0x0,'output');}},_0xe35a03=!0x1;return{'encrypt'(_0x3a3e6d,_0x6059d9){const _0x104007=_0x3b224b;if(_0xe35a03)throw Error(_0x104007(0x294));return _0xe35a03=!0x0,_0x139d92(_0x3a3e6d),_0x3a7507(_0x651ea4[_0x104007(0x490)][_0x104007(0x242)],_0x6059d9),_0x651ea4['encrypt'](_0x3a3e6d,_0x6059d9);},'decrypt'(_0x14f9d9,_0x40f00b){const _0x1edf3c=_0x3b224b;if(_0x139d92(_0x14f9d9),_0x1f50e9&&_0x14f9d9[_0x1edf3c(0x242)]<_0x1f50e9)throw Error(_0x1edf3c(0x481)+_0x1f50e9);return _0x3a7507(_0x651ea4[_0x1edf3c(0x22a)]['length'],_0x40f00b),_0x651ea4[_0x1edf3c(0x22a)](_0x14f9d9,_0x40f00b);}};}return Object[_0x208ff3(0x368)](_0x196936,_0x4c0e29),_0x196936;};function _0x3d6f7b(_0x1d6c89,_0x29d4f2,_0x6b0e6=!0x0){const _0x53985f=_0x5e5e22;if(_0x29d4f2===void 0x0)return new Uint8Array(_0x1d6c89);if(_0x139d92(_0x29d4f2,void 0x0,_0x53985f(0x213)),_0x29d4f2[_0x53985f(0x242)]!==_0x1d6c89)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x1d6c89+',\x20got:\x20'+_0x29d4f2['length']);if(_0x6b0e6&&!_0x177996(_0x29d4f2))throw Error(_0x53985f(0x411));return _0x29d4f2;}function _0x177996(_0x4c212f){const _0x7698af=_0x5e5e22;return _0x4c212f[_0x7698af(0x376)]%0x4==0x0;}function _0x5614cb(_0x509046){return Uint8Array['from'](_0x139d92(_0x509046));}function _0x73e9e9(_0x22cee1=0x20){const _0x17bdfd=_0x5e5e22;_0x4dad3a(_0x22cee1);let _0x5476b8=typeof globalThis==_0x17bdfd(0x3c8)?globalThis[_0x17bdfd(0x236)]:null;if(typeof(_0x5476b8==null?void 0x0:_0x5476b8[_0x17bdfd(0x4fc)])!='function')throw Error(_0x17bdfd(0x40f));return _0x5476b8[_0x17bdfd(0x4fc)](new Uint8Array(_0x22cee1));}function _0x241ae9(_0x5b326f){const _0x442f4b=_0x5e5e22;if(![0x10,0x18,0x20]['includes'](_0x5b326f[_0x442f4b(0x242)]))throw Error(_0x442f4b(0x278)+_0x5b326f[_0x442f4b(0x242)]);}function _0x2ccea2(_0x3ce8d2){return _0x3ce8d2<<0x1^0x11b&-(_0x3ce8d2>>0x7);}function _0x594cc2(_0x6c7bc8,_0x441f03){let _0x51ad2d=0x0;for(;_0x441f03>0x0;_0x441f03>>=0x1)_0x51ad2d^=_0x6c7bc8&-(_0x441f03&0x1),_0x6c7bc8=_0x2ccea2(_0x6c7bc8);return _0x51ad2d;}let _0x3e6fd2=((()=>{let _0x501a01=new Uint8Array(0x100);for(let _0x32c9c3=0x0,_0x50b043=0x1;_0x32c9c3<0x100;_0x32c9c3++,_0x50b043^=_0x2ccea2(_0x50b043))_0x501a01[_0x32c9c3]=_0x50b043;let _0x35baf4=new Uint8Array(0x100);_0x35baf4[0x0]=0x63;for(let _0x33ca9b=0x0;_0x33ca9b<0xff;_0x33ca9b++){let _0x3c627f=_0x501a01[0xff-_0x33ca9b];_0x3c627f|=_0x3c627f<<0x8,_0x35baf4[_0x501a01[_0x33ca9b]]=(_0x3c627f^_0x3c627f>>0x4^_0x3c627f>>0x5^_0x3c627f>>0x6^_0x3c627f>>0x7^0x63)&0xff;}return _0x1a116c(_0x501a01),_0x35baf4;})()),_0x49e1ec=_0x3e6fd2['map']((_0xaef7b2,_0x3fd5de)=>_0x3e6fd2[_0x5e5e22(0x404)](_0x3fd5de)),_0x3b5859=_0x4c9dd1=>_0x4c9dd1<<0x18|_0x4c9dd1>>>0x8,_0x527f95=_0x5e643c=>_0x5e643c<<0x8|_0x5e643c>>>0x18;function _0x551947(_0x2383af,_0x53cd43){const _0x2adf38=_0x5e5e22;if(_0x2383af['length']!==0x100)throw Error(_0x2adf38(0x3fb));let _0x5b0b6c=new Uint32Array(0x100)['map']((_0x2e7a24,_0x4389fe)=>_0x53cd43(_0x2383af[_0x4389fe])),_0x3fbe2f=_0x5b0b6c[_0x2adf38(0x349)](_0x527f95),_0x75064c=_0x3fbe2f[_0x2adf38(0x349)](_0x527f95),_0x483dba=_0x75064c[_0x2adf38(0x349)](_0x527f95),_0x19e972=new Uint32Array(0x100*0x100),_0x7b7660=new Uint32Array(0x100*0x100),_0x2ff015=new Uint16Array(0x100*0x100);for(let _0x4642a5=0x0;_0x4642a5<0x100;_0x4642a5++)for(let _0x42409c=0x0;_0x42409c<0x100;_0x42409c++){let _0x39b870=_0x4642a5*0x100+_0x42409c;_0x19e972[_0x39b870]=_0x5b0b6c[_0x4642a5]^_0x3fbe2f[_0x42409c],_0x7b7660[_0x39b870]=_0x75064c[_0x4642a5]^_0x483dba[_0x42409c],_0x2ff015[_0x39b870]=_0x2383af[_0x4642a5]<<0x8|_0x2383af[_0x42409c];}return{'sbox':_0x2383af,'sbox2':_0x2ff015,'T0':_0x5b0b6c,'T1':_0x3fbe2f,'T2':_0x75064c,'T3':_0x483dba,'T01':_0x19e972,'T23':_0x7b7660};}let _0x3351cd=_0x551947(_0x3e6fd2,_0x1a3ade=>_0x594cc2(_0x1a3ade,0x3)<<0x18|_0x1a3ade<<0x10|_0x1a3ade<<0x8|_0x594cc2(_0x1a3ade,0x2)),_0x17eb6b=_0x551947(_0x49e1ec,_0x375494=>_0x594cc2(_0x375494,0xb)<<0x18|_0x594cc2(_0x375494,0xd)<<0x10|_0x594cc2(_0x375494,0x9)<<0x8|_0x594cc2(_0x375494,0xe)),_0x29bbf3=((()=>{let _0x469527=new Uint8Array(0x10);for(let _0x392ad8=0x0,_0x283f6e=0x1;_0x392ad8<0x10;_0x392ad8++,_0x283f6e=_0x2ccea2(_0x283f6e))_0x469527[_0x392ad8]=_0x283f6e;return _0x469527;})());function _0x900c51(_0x259939){const _0x33ebd7=_0x5e5e22;_0x139d92(_0x259939);let _0x5500b8=_0x259939[_0x33ebd7(0x242)];_0x241ae9(_0x259939);let {sbox2:_0x3e2d11}=_0x3351cd,_0x54b6f8=[];(!_0x3c590d||!_0x177996(_0x259939))&&_0x54b6f8[_0x33ebd7(0x2e4)](_0x259939=_0x5614cb(_0x259939));let _0x2dbd97=_0x4431af(_0x33a411(_0x259939)),_0x541dca=_0x2dbd97[_0x33ebd7(0x242)],_0x225b63=_0x4d9cff=>_0x112ffe(_0x3e2d11,_0x4d9cff,_0x4d9cff,_0x4d9cff,_0x4d9cff),_0x3d8278=new Uint32Array(_0x5500b8+0x1c);_0x3d8278[_0x33ebd7(0x4ce)](_0x2dbd97);for(let _0x5302bd=_0x541dca;_0x5302bd<_0x3d8278['length'];_0x5302bd++){let _0x2b2d94=_0x3d8278[_0x5302bd-0x1];_0x5302bd%_0x541dca===0x0?_0x2b2d94=_0x225b63(_0x3b5859(_0x2b2d94))^_0x29bbf3[_0x5302bd/_0x541dca-0x1]:_0x541dca>0x6&&_0x5302bd%_0x541dca===0x4&&(_0x2b2d94=_0x225b63(_0x2b2d94)),_0x3d8278[_0x5302bd]=_0x3d8278[_0x5302bd-_0x541dca]^_0x2b2d94;}return _0x1a116c(..._0x54b6f8),_0x3d8278;}function _0x395c82(_0x586c2e){const _0x4589c2=_0x5e5e22;let _0x286621=_0x900c51(_0x586c2e),_0x645372=_0x286621[_0x4589c2(0x4ef)](),_0x2d4e85=_0x286621['length'],{sbox2:_0x397bf6}=_0x3351cd,{T0:_0x28087f,T1:_0x21cf54,T2:_0x45011b,T3:_0x294871}=_0x17eb6b;for(let _0x354359=0x0;_0x354359<_0x2d4e85;_0x354359+=0x4)for(let _0xbd47b2=0x0;_0xbd47b2<0x4;_0xbd47b2++)_0x645372[_0x354359+_0xbd47b2]=_0x286621[_0x2d4e85-_0x354359-0x4+_0xbd47b2];_0x1a116c(_0x286621);for(let _0x453929=0x4;_0x453929<_0x2d4e85-0x4;_0x453929++){let _0x3054b4=_0x645372[_0x453929],_0x1dcfd5=_0x112ffe(_0x397bf6,_0x3054b4,_0x3054b4,_0x3054b4,_0x3054b4);_0x645372[_0x453929]=_0x28087f[_0x1dcfd5&0xff]^_0x21cf54[_0x1dcfd5>>>0x8&0xff]^_0x45011b[_0x1dcfd5>>>0x10&0xff]^_0x294871[_0x1dcfd5>>>0x18];}return _0x645372;}function _0x21f73e(_0x2d6b8d,_0x1c24c2,_0x63b661,_0x259851,_0x17d8d3,_0x1aeff9){return _0x2d6b8d[_0x63b661<<0x8&0xff00|_0x259851>>>0x8&0xff]^_0x1c24c2[_0x17d8d3>>>0x8&0xff00|_0x1aeff9>>>0x18&0xff];}function _0x112ffe(_0x33d171,_0x40a212,_0x5cd65c,_0x102357,_0x56eed8){return _0x33d171[_0x40a212&0xff|_0x5cd65c&0xff00]|_0x33d171[_0x102357>>>0x10&0xff|_0x56eed8>>>0x10&0xff00]<<0x10;}function _0x585d0a(_0x1e7bb1,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16){const _0x4e3d82=_0x5e5e22;let {sbox2:_0x3e1c5e,T01:_0x5eb25f,T23:_0x2a3881}=_0x3351cd,_0xb974d6=0x0;_0x515a56^=_0x1e7bb1[_0xb974d6++],_0x53eb6a^=_0x1e7bb1[_0xb974d6++],_0x2d95d3^=_0x1e7bb1[_0xb974d6++],_0x5d1e16^=_0x1e7bb1[_0xb974d6++];let _0x4d1324=_0x1e7bb1[_0x4e3d82(0x242)]/0x4-0x2;for(let _0x39affa=0x0;_0x39affa<_0x4d1324;_0x39affa++){let _0x248fb4=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16),_0x13fd09=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x53eb6a,_0x2d95d3,_0x5d1e16,_0x515a56),_0x3d7548=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x2d95d3,_0x5d1e16,_0x515a56,_0x53eb6a),_0x92f820=_0x1e7bb1[_0xb974d6++]^_0x21f73e(_0x5eb25f,_0x2a3881,_0x5d1e16,_0x515a56,_0x53eb6a,_0x2d95d3);_0x515a56=_0x248fb4,_0x53eb6a=_0x13fd09,_0x2d95d3=_0x3d7548,_0x5d1e16=_0x92f820;}return{'s0':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x515a56,_0x53eb6a,_0x2d95d3,_0x5d1e16),'s1':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x53eb6a,_0x2d95d3,_0x5d1e16,_0x515a56),'s2':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x2d95d3,_0x5d1e16,_0x515a56,_0x53eb6a),'s3':_0x1e7bb1[_0xb974d6++]^_0x112ffe(_0x3e1c5e,_0x5d1e16,_0x515a56,_0x53eb6a,_0x2d95d3)};}function _0x1769b1(_0xbd1177,_0x3a8a2e,_0x15af19,_0x4d6e19,_0x26c208){const _0x4771d6=_0x5e5e22;let {sbox2:_0x2d6037,T01:_0x10fb67,T23:_0x1f95f3}=_0x17eb6b,_0x508a83=0x0;_0x3a8a2e^=_0xbd1177[_0x508a83++],_0x15af19^=_0xbd1177[_0x508a83++],_0x4d6e19^=_0xbd1177[_0x508a83++],_0x26c208^=_0xbd1177[_0x508a83++];let _0x4f4dc4=_0xbd1177[_0x4771d6(0x242)]/0x4-0x2;for(let _0x56fd27=0x0;_0x56fd27<_0x4f4dc4;_0x56fd27++){let _0x1cdd64=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x3a8a2e,_0x26c208,_0x4d6e19,_0x15af19),_0x1f9bd4=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x15af19,_0x3a8a2e,_0x26c208,_0x4d6e19),_0x4fae2b=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x4d6e19,_0x15af19,_0x3a8a2e,_0x26c208),_0x1a2349=_0xbd1177[_0x508a83++]^_0x21f73e(_0x10fb67,_0x1f95f3,_0x26c208,_0x4d6e19,_0x15af19,_0x3a8a2e);_0x3a8a2e=_0x1cdd64,_0x15af19=_0x1f9bd4,_0x4d6e19=_0x4fae2b,_0x26c208=_0x1a2349;}return{'s0':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x3a8a2e,_0x26c208,_0x4d6e19,_0x15af19),'s1':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x15af19,_0x3a8a2e,_0x26c208,_0x4d6e19),'s2':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x4d6e19,_0x15af19,_0x3a8a2e,_0x26c208),'s3':_0xbd1177[_0x508a83++]^_0x112ffe(_0x2d6037,_0x26c208,_0x4d6e19,_0x15af19,_0x3a8a2e)};}function _0x47b031(_0x89237e){const _0x22e625=_0x5e5e22;if(_0x139d92(_0x89237e),_0x89237e[_0x22e625(0x242)]%0x10!=0x0)throw Error(_0x22e625(0x2c1));}function _0x362b1a(_0x1d94f0,_0x81cc8b,_0x1dbfcf){const _0x348e67=_0x5e5e22;_0x139d92(_0x1d94f0);let _0x4505fd=_0x1d94f0[_0x348e67(0x242)],_0xd31505=_0x4505fd%0x10;if(!_0x81cc8b&&_0xd31505!==0x0)throw Error(_0x348e67(0x2e6));if(_0x81cc8b){let _0xf19abc=0x10-_0xd31505;_0xf19abc||(_0xf19abc=0x10),_0x4505fd+=_0xf19abc;}_0x1dbfcf=_0x3d6f7b(_0x4505fd,_0x1dbfcf),_0x42c1cd(_0x1d94f0,_0x1dbfcf),(!_0x3c590d||!_0x177996(_0x1d94f0))&&(_0x1d94f0=_0x5614cb(_0x1d94f0));let _0x68931d=_0x33a411(_0x1d94f0);return _0x4431af(_0x68931d),{'b':_0x68931d,'o':_0x33a411(_0x1dbfcf),'out':_0x1dbfcf};}function _0xba7f96(_0x5e9807,_0x563eb6){const _0x2e03ff=_0x5e5e22;if(!_0x563eb6)return _0x5e9807;let _0xf5e593=_0x5e9807[_0x2e03ff(0x242)];if(_0xf5e593===0x0)throw Error(_0x2e03ff(0x291));let _0x929e78=_0x5e9807[_0xf5e593-0x1],_0x1f9ee3=0x1;_0x1f9ee3&=_0x929e78-0x1>>>0x1f^0x1,_0x1f9ee3&=0x10-_0x929e78>>>0x1f^0x1;for(let _0x50d32d=0x0;_0x50d32d<0x10;_0x50d32d++){let _0x1ef1be=_0x50d32d-_0x929e78>>>0x1f,_0x2ffb01=+((_0x5e9807[_0xf5e593-0x1-_0x50d32d]^_0x929e78)===0x0);_0x1f9ee3&=_0x2ffb01|_0x1ef1be^0x1;}if(!_0x1f9ee3)throw Error(_0x2e03ff(0x355));return _0x5e9807[_0x2e03ff(0x21b)](0x0,_0xf5e593-_0x929e78);}function _0x2521ed(_0x48d796){let _0x1d4b0c=new Uint8Array(0x10),_0x47a13a=_0x33a411(_0x1d4b0c);_0x1d4b0c['set'](_0x48d796);let _0xc478ce=0x10-_0x48d796['length'];for(let _0x3eae7b=0x10-_0xc478ce;_0x3eae7b<0x10;_0x3eae7b++)_0x1d4b0c[_0x3eae7b]=_0xc478ce;return _0x47a13a;}let _0x68299a=_0x3cbd57({'blockSize':0x10,'nonceLength':0x10},function(_0x65d0bc,_0x3370eb,_0x1a2650={}){let _0x52c1a7=!_0x1a2650['disablePadding'];return{'encrypt'(_0x43569e,_0x3fbc91){const _0x4740d9=_0x20b8;let _0x3bebd8=_0x900c51(_0x65d0bc),{b:_0x154723,o:_0x4a55fc,out:_0xa1b0e7}=_0x362b1a(_0x43569e,_0x52c1a7,_0x3fbc91),_0x1e7535=_0x3370eb,_0x47c502=[_0x3bebd8];(!_0x3c590d||!_0x177996(_0x1e7535))&&_0x47c502[_0x4740d9(0x2e4)](_0x1e7535=_0x5614cb(_0x1e7535));let _0x2944bd=_0x33a411(_0x1e7535);_0x4431af(_0x2944bd);let _0x50f0e9=_0x2944bd[0x0],_0x1efed0=_0x2944bd[0x1],_0x579410=_0x2944bd[0x2],_0x1d8c5a=_0x2944bd[0x3],_0x179812=0x0;for(;_0x179812+0x4<=_0x154723[_0x4740d9(0x242)];)_0x50f0e9^=_0x154723[_0x179812+0x0],_0x1efed0^=_0x154723[_0x179812+0x1],_0x579410^=_0x154723[_0x179812+0x2],_0x1d8c5a^=_0x154723[_0x179812+0x3],{s0:_0x50f0e9,s1:_0x1efed0,s2:_0x579410,s3:_0x1d8c5a}=_0x585d0a(_0x3bebd8,_0x50f0e9,_0x1efed0,_0x579410,_0x1d8c5a),_0x4a55fc[_0x179812++]=_0x50f0e9,_0x4a55fc[_0x179812++]=_0x1efed0,_0x4a55fc[_0x179812++]=_0x579410,_0x4a55fc[_0x179812++]=_0x1d8c5a;if(_0x52c1a7){let _0x5d1b0d=_0x2521ed(_0x43569e[_0x4740d9(0x21b)](_0x179812*0x4));_0x4431af(_0x5d1b0d),_0x50f0e9^=_0x5d1b0d[0x0],_0x1efed0^=_0x5d1b0d[0x1],_0x579410^=_0x5d1b0d[0x2],_0x1d8c5a^=_0x5d1b0d[0x3],{s0:_0x50f0e9,s1:_0x1efed0,s2:_0x579410,s3:_0x1d8c5a}=_0x585d0a(_0x3bebd8,_0x50f0e9,_0x1efed0,_0x579410,_0x1d8c5a),_0x4a55fc[_0x179812++]=_0x50f0e9,_0x4a55fc[_0x179812++]=_0x1efed0,_0x4a55fc[_0x179812++]=_0x579410,_0x4a55fc[_0x179812++]=_0x1d8c5a;}return _0x4431af(_0x4a55fc),_0x1a116c(..._0x47c502),_0xa1b0e7;},'decrypt'(_0x4ffbbd,_0x1fc596){const _0x58088e=_0x20b8;_0x47b031(_0x4ffbbd);let _0x1c119b=_0x395c82(_0x65d0bc),_0x10d4ab=_0x3370eb,_0x1de46c=[_0x1c119b];(!_0x3c590d||!_0x177996(_0x10d4ab))&&_0x1de46c[_0x58088e(0x2e4)](_0x10d4ab=_0x5614cb(_0x10d4ab));let _0x25ff6e=_0x33a411(_0x10d4ab);_0x4431af(_0x25ff6e),_0x1fc596=_0x3d6f7b(_0x4ffbbd[_0x58088e(0x242)],_0x1fc596),_0x42c1cd(_0x4ffbbd,_0x1fc596),(!_0x3c590d||!_0x177996(_0x4ffbbd))&&_0x1de46c['push'](_0x4ffbbd=_0x5614cb(_0x4ffbbd));let _0x1b2ad5=_0x33a411(_0x4ffbbd),_0x48ec55=_0x33a411(_0x1fc596);_0x4431af(_0x1b2ad5);let _0x2569fc=_0x25ff6e[0x0],_0x129218=_0x25ff6e[0x1],_0x293f63=_0x25ff6e[0x2],_0x297e50=_0x25ff6e[0x3];for(let _0x40d86a=0x0;_0x40d86a+0x4<=_0x1b2ad5['length'];){let _0x5760ef=_0x2569fc,_0x369b0d=_0x129218,_0x1d469a=_0x293f63,_0x428993=_0x297e50;_0x2569fc=_0x1b2ad5[_0x40d86a+0x0],_0x129218=_0x1b2ad5[_0x40d86a+0x1],_0x293f63=_0x1b2ad5[_0x40d86a+0x2],_0x297e50=_0x1b2ad5[_0x40d86a+0x3];let {s0:_0x1c3b37,s1:_0x52581c,s2:_0x6e1120,s3:_0x576d2f}=_0x1769b1(_0x1c119b,_0x2569fc,_0x129218,_0x293f63,_0x297e50);_0x48ec55[_0x40d86a++]=_0x1c3b37^_0x5760ef,_0x48ec55[_0x40d86a++]=_0x52581c^_0x369b0d,_0x48ec55[_0x40d86a++]=_0x6e1120^_0x1d469a,_0x48ec55[_0x40d86a++]=_0x576d2f^_0x428993;}return _0x4431af(_0x48ec55),_0x1a116c(..._0x1de46c),_0xba7f96(_0x1fc596,_0x52c1a7);}};});function _0xd11113(_0x5aac48){const _0x4065f1=_0x5e5e22;let _0x43d1de=atob(_0x5aac48),_0x29aa78=new Uint8Array(_0x43d1de[_0x4065f1(0x242)]);for(let _0x1a5241=0x0;_0x1a5241<_0x43d1de[_0x4065f1(0x242)];_0x1a5241++)_0x29aa78[_0x1a5241]=_0x43d1de[_0x4065f1(0x25a)](_0x1a5241);return _0x29aa78;}function _0x53cf30(_0x59209c){const _0x51a8b6=_0x5e5e22;let _0x50e89a='';for(let _0x159118=0x0;_0x159118<_0x59209c['length'];_0x159118++)_0x50e89a+=String[_0x51a8b6(0x1f1)](_0x59209c[_0x159118]);return btoa(_0x50e89a);}function _0x56cc80(_0x3d8939,_0x2f37ee){const _0x30b300=_0x5e5e22;let _0x564d73=_0xd11113(_0x2f37ee),_0x406962=_0x73e9e9(0x10);return _0x53cf30(_0x4494fc(_0x406962,_0x68299a(_0x564d73,_0x406962)[_0x30b300(0x490)](_0x588247(_0x3d8939))));}function _0xa257db(){const _0x2a5773=_0x5e5e22;let _0x2fe05e=(0x0,_0x98661d[_0x2a5773(0x201)])()[_0x2a5773(0x28e)];if(typeof window<'u'&&window[_0x2a5773(0x498)]!==void 0x0&&_0x2fe05e){let _0xef52d={'time':Math[_0x2a5773(0x2b0)](Date[_0x2a5773(0x412)]()/0x3e8),'domain':location[_0x2a5773(0x308)]};return _0x56cc80(JSON['stringify'](_0xef52d),_0x2fe05e);}}let _0x2ed573=class{constructor(_0x4d23a1){const _0x115969=_0x5e5e22;this[_0x115969(0x283)]=_0x4d23a1,this[_0x115969(0x4bb)]();}[_0x5e5e22(0x4bb)](){const _0x505c17=_0x5e5e22;this[_0x505c17(0x283)][_0x505c17(0x454)]({'interceptor':(_0x1ebe82,_0x50b5d3)=>{const _0x4a6e8a=_0x505c17;let _0x21be9d=_0xa257db();return _0x21be9d&&_0x1ebe82[_0x4a6e8a(0x474)][_0x4a6e8a(0x4ce)](_0x4a6e8a(0x231),_0x21be9d),_0x50b5d3(_0x1ebe82);}});}};_0x2ed573=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x2ed573);let _0x58d6e4=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x603f55,_0x2151d7,_0x55815c){const _0x572e42=_0x5e5e22;super(),this[_0x572e42(0x2de)]=_0x603f55,this[_0x572e42(0x3d8)]=_0x2151d7,this['_localCacheService']=_0x55815c,_0x5886a9(this,_0x572e42(0x20b),new _0xd93cf['BehaviorSubject'](null)),_0x5886a9(this,_0x572e42(0x40c),this[_0x572e42(0x20b)][_0x572e42(0x471)]());}async[_0x5e5e22(0x29b)](_0xc13eb5,_0x4c669b,_0x4526cd){const _0x307151=_0x5e5e22;this[_0x307151(0x20b)][_0x307151(0x446)]({'unitId':_0xc13eb5,'type':_0x4c669b});let _0x3f821d=null;switch(_0x4c669b){case _0x1f27ed[_0x307151(0x41c)][_0x307151(0x25c)]:_0x3f821d=await this[_0x307151(0x3d8)]['loadSheet'](_0xc13eb5,_0x4526cd);break;case _0x1f27ed[_0x307151(0x41c)][_0x307151(0x4a5)]:_0x3f821d=await this['_snapshotService'][_0x307151(0x40a)](_0xc13eb5,_0x4526cd);break;default:this[_0x307151(0x2de)][_0x307151(0x4bf)](_0x307151(0x45e),_0x307151(0x222));break;}return _0x3f821d;}async[_0x5e5e22(0x24c)](_0x851358,_0x290a15,_0x3bb9c5){const _0x2222d4=_0x5e5e22;var _0xbdd310;this['_unitInfo$'][_0x2222d4(0x446)]({'unitId':_0x851358,'type':_0x290a15,'subUnitId':_0x3bb9c5});let _0x5b4ff9=0x0,_0x7ac6e3=await((_0xbdd310=this[_0x2222d4(0x321)])==null?void 0x0:_0xbdd310[_0x2222d4(0x45f)](_0x851358));return _0x7ac6e3&&(_0x7ac6e3[_0x2222d4(0x3d3)]||_0x7ac6e3[_0x2222d4(0x3d6)][_0x2222d4(0x242)]!==0x0)&&(_0x5b4ff9=_0x7ac6e3[_0x2222d4(0x2c3)]),_0x5b4ff9===0x0&&this['_logService']['debug']('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2222d4(0x29b)](_0x851358,_0x290a15,_0x5b4ff9);}};_0x58d6e4=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2b4fec['SnapshotService'])),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x500)])(_0x33d8de))],_0x58d6e4);let _0x5cb4c5=class{constructor(_0x9a1b51,_0x5b1459,_0x3df14a){const _0x2d5f76=_0x5e5e22;this[_0x2d5f76(0x283)]=_0x9a1b51,this[_0x2d5f76(0x494)]=_0x5b1459,this['_univerInstanceService']=_0x3df14a,_0x5886a9(this,_0x2d5f76(0x27c),0x0),_0x5886a9(this,'_change$',new _0xd93cf[(_0x2d5f76(0x2c2))]()),_0x5886a9(this,_0x2d5f76(0x4a2),this['_change$']),_0x5886a9(this,'_imageSourceCache',new Map());}[_0x5e5e22(0x2d4)](_0x10b51c){const _0x1faf6e=_0x5e5e22;this[_0x1faf6e(0x27c)]=_0x10b51c,this[_0x1faf6e(0x280)][_0x1faf6e(0x446)](_0x10b51c);}[_0x5e5e22(0x34f)](_0x518e9f,_0x5ec0ce){const _0x1f3579=_0x5e5e22;if(_0x5ec0ce===_0x310bbf[_0x1f3579(0x2ff)][_0x1f3579(0x33e)]){let _0x5315c3=new Image();return _0x5315c3[_0x1f3579(0x332)]=_0x518e9f,_0x5315c3;}return this['_imageSourceCache']['get'](_0x518e9f);}[_0x5e5e22(0x3dc)](_0x16b4ab,_0x4abf47,_0x547230){const _0x584d8d=_0x5e5e22;_0x4abf47===_0x310bbf[_0x584d8d(0x2ff)][_0x584d8d(0x33e)]||_0x547230==null||this[_0x584d8d(0x1ff)][_0x584d8d(0x4ce)](_0x16b4ab,_0x547230);}async[_0x5e5e22(0x293)](_0x41e687){const _0x11e24c=_0x5e5e22;try{let _0x109618=this['_replaceFileID'](this[_0x11e24c(0x2ec)](),''+_0x41e687),_0x24a655=(await this['_httpService'][_0x11e24c(0x31e)](_0x109618))[_0x11e24c(0x2ba)];if(_0x24a655['error']&&_0x24a655[_0x11e24c(0x4bf)]['code']===_0x26034e[_0x11e24c(0x23f)]['OK']){let _0xff542c=(0x0,_0x1f27ed[_0x11e24c(0x29a)])(_0x24a655[_0x11e24c(0x408)],this[_0x11e24c(0x4d7)]());return Promise[_0x11e24c(0x4d5)](_0xff542c);}return Promise[_0x11e24c(0x33c)](_0x24a655['error']);}catch(_0x3601aa){return Promise[_0x11e24c(0x33c)](_0x3601aa);}}async['saveImage'](_0x350732){const _0x79bd75=_0x5e5e22;let _0x55773e='';if(!_0x310bbf['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x79bd75(0x470)](_0x350732[_0x79bd75(0x320)]))return this[_0x79bd75(0x431)](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf['ImageUploadStatusType'][_0x79bd75(0x4d6)]));if(_0x350732[_0x79bd75(0x274)]>(0x0,_0x310bbf[_0x79bd75(0x49b)])())return this[_0x79bd75(0x431)](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf[_0x79bd75(0x4ea)][_0x79bd75(0x326)]));try{let _0x489628=new FormData();_0x489628[_0x79bd75(0x44e)](_0x79bd75(0x3e9),_0x350732);let _0x22a027=this[_0x79bd75(0x45b)][_0x79bd75(0x233)](),_0x4d83c4=_0x22a027==null?void 0x0:_0x22a027[_0x79bd75(0x4d4)]();if(!_0x4d83c4)throw Error(_0x79bd75(0x3c0));let _0xb32fcd=this[_0x79bd75(0x4eb)]()+_0x79bd75(0x313)+_0x350732[_0x79bd75(0x274)][_0x79bd75(0x3a7)]()+_0x79bd75(0x4dc)+_0x26034e[_0x79bd75(0x2aa)][_0x79bd75(0x3a9)]+_0x79bd75(0x4ac)+encodeURIComponent(_0x4d83c4),_0x3ea3f4={'body':_0x489628},_0x617de7=(await this[_0x79bd75(0x283)]['post'](_0xb32fcd,_0x3ea3f4))[_0x79bd75(0x2ba)];if(typeof _0x617de7[_0x79bd75(0x3df)]!='string')return this['_decreaseWaiting'](),Promise['reject'](Error(_0x310bbf[_0x79bd75(0x4ea)]['ERROR_IMAGE']));_0x55773e=_0x617de7[_0x79bd75(0x3df)];}catch{return this['_decreaseWaiting'](),Promise[_0x79bd75(0x33c)](Error(_0x310bbf[_0x79bd75(0x4ea)][_0x79bd75(0x221)]));}return new Promise((_0x12a004,_0x35cdb9)=>{const _0x47ca6c=_0x79bd75;let _0x4cb4a2=new FileReader();_0x4cb4a2[_0x47ca6c(0x479)](_0x350732),_0x4cb4a2[_0x47ca6c(0x240)]=_0xe2fff1=>{const _0x55f3a3=_0x47ca6c;var _0x11325c;let _0x20d002=(_0x11325c=_0xe2fff1[_0x55f3a3(0x4cd)])==null?void 0x0:_0x11325c['result'];if(_0x20d002==null){this[_0x55f3a3(0x431)](),_0x35cdb9(Error(_0x310bbf['ImageUploadStatusType'][_0x55f3a3(0x221)]));return;}_0x12a004({'imageId':(0x0,_0x1f27ed[_0x55f3a3(0x510)])(0x6),'imageSourceType':_0x310bbf['ImageSourceType'][_0x55f3a3(0x409)],'source':_0x55773e,'base64Cache':_0x20d002,'status':_0x310bbf[_0x55f3a3(0x4ea)]['SUCCUSS']}),this[_0x55f3a3(0x431)]();};});}['_getUploadFileURL'](){const _0x532e9d=_0x5e5e22;var _0x482ab7;let _0x315d32=this[_0x532e9d(0x494)]['getConfig'](_0x5df009);return(_0x482ab7=_0x315d32==null?void 0x0:_0x315d32[_0x532e9d(0x36f)])==null?_0x532e9d(0x1fd):_0x482ab7;}[_0x5e5e22(0x2ec)](){const _0x1b833d=_0x5e5e22;var _0x1264d9;let _0x42669a=this[_0x1b833d(0x494)][_0x1b833d(0x45c)](_0x5df009);return(_0x1264d9=_0x42669a==null?void 0x0:_0x42669a[_0x1b833d(0x37a)])==null?'/universer-api/file/{fileID}/sign-url':_0x1264d9;}[_0x5e5e22(0x4d7)](){const _0x4ab64b=_0x5e5e22;var _0x49da31;let _0x2f5c58=this[_0x4ab64b(0x494)]['getConfig'](_0x5df009);return(_0x49da31=_0x2f5c58==null?void 0x0:_0x2f5c58[_0x4ab64b(0x2ee)])==null?location['origin']:_0x49da31;}['_replaceFileID'](_0x448ae7,_0x310622){const _0x3b48ec=_0x5e5e22;return _0x448ae7['replace'](_0x3b48ec(0x218),_0x310622);}[_0x5e5e22(0x431)](){const _0x3d7591=_0x5e5e22;--this['_waitCount'],this[_0x3d7591(0x280)][_0x3d7591(0x446)](this[_0x3d7591(0x27c)]);}};_0x5cb4c5=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd['HTTPService'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x50c)]))],_0x5cb4c5);let _0x235451=class{constructor(_0x5f0fdb,_0x400b81){this['_configService']=_0x5f0fdb,this['_HTTPService']=_0x400b81;}[_0x5e5e22(0x3d9)](){const _0x70576a=_0x5e5e22;var _0x2491ed;let _0x3e2a3b=this['_configService'][_0x70576a(0x45c)](_0x5df009);return(_0x2491ed=_0x3e2a3b==null?void 0x0:_0x3e2a3b[_0x70576a(0x3b1)])==null?_0x70576a(0x3a8):_0x2491ed;}async[_0x5e5e22(0x511)](_0x31ecb7){const _0x205276=_0x5e5e22;let _0x2623fc=this['_getAPIPrefixPath']()+_0x205276(0x243);return{'list':[{'title':_0x205276(0x388),'mentions':(await this[_0x205276(0x22f)][_0x205276(0x31e)](_0x2623fc,{'params':{'objectID':_0x31ecb7[_0x205276(0x48f)],'unitID':_0x31ecb7[_0x205276(0x48f)]}}))['body']['collaborators']['map'](_0x5bc737=>({'objectId':_0x5bc737['id'],'name':_0x5bc737[_0x205276(0x225)][_0x205276(0x39c)],'metadata':{'icon':_0x5bc737['subject']['avatar']},'label':_0x5bc737[_0x205276(0x225)]['name'],'objectType':_0x1f27ed[_0x205276(0x282)][_0x205276(0x4ec)]})),'metadata':{},'type':_0x1f27ed[_0x205276(0x282)][_0x205276(0x4ec)]}]};}};_0x235451=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed['IConfigService'])),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x235451);let _0xe5ea54=class extends _0x1f27ed[_0x5e5e22(0x38a)]{constructor(_0x549dc0,_0x31b084,_0x2d1d7f,_0x24e3d3,_0x571fba){const _0x11e328=_0x5e5e22;super(),this[_0x11e328(0x3af)]=_0x549dc0,this['_univerInstanceService']=_0x31b084,this['_permissionService']=_0x2d1d7f,this[_0x11e328(0x384)]=_0x24e3d3,this[_0x11e328(0x205)]=_0x571fba,this[_0x11e328(0x469)](),this[_0x11e328(0x48e)]();}['_initCloseConn'](){const _0x33e45b=_0x5e5e22;let _0x287740=async _0x266258=>{const _0x1aa0c1=_0x20b8;(await this[_0x1aa0c1(0x384)][_0x1aa0c1(0x46b)](_0x266258))[_0x1aa0c1(0x302)][_0x1aa0c1(0x3e2)]((0x0,_0x4f33c6[_0x1aa0c1(0x24a)])(_0x453169=>_0x453169['eventID']===_0x2b4fec[_0x1aa0c1(0x3e6)]['SHOULD_CLOSE_CONN']),(0x0,_0x4f33c6[_0x1aa0c1(0x2dd)])(this[_0x1aa0c1(0x207)]))[_0x1aa0c1(0x3c1)](_0x1eb368=>{const _0x5bbb72=_0x1aa0c1;let {reason:_0x1fc071}=_0x1eb368[_0x5bbb72(0x4c1)];this[_0x5bbb72(0x205)][_0x5bbb72(0x2a0)]({'id':_0x5bbb72(0x2bb),'data':_0x1fc071}),this[_0x5bbb72(0x28b)][_0x5bbb72(0x379)](new _0x47a016[(_0x5bbb72(0x406))](_0x266258)['id'],!0x1),this[_0x5bbb72(0x384)][_0x5bbb72(0x2d6)](_0x266258);});};(0x0,_0xd93cf[_0x33e45b(0x307)])(this[_0x33e45b(0x45b)]['getTypeOfUnitAdded$'](_0x1f27ed[_0x33e45b(0x41c)][_0x33e45b(0x25c)]),this[_0x33e45b(0x45b)][_0x33e45b(0x3bd)](_0x1f27ed[_0x33e45b(0x41c)]['UNIVER_DOC']))[_0x33e45b(0x3e2)]((0x0,_0x4f33c6[_0x33e45b(0x349)])(_0x1aca92=>_0x1aca92['unit'][_0x33e45b(0x4d4)]()),(0x0,_0x4f33c6[_0x33e45b(0x24a)])(_0x21199d=>!(0x0,_0x1f27ed[_0x33e45b(0x4c7)])(_0x21199d)),(0x0,_0x4f33c6['takeUntil'])(this[_0x33e45b(0x207)]))[_0x33e45b(0x3c1)](_0x2013f8=>{_0x287740(_0x2013f8);});}['_initUnitPermissionChange'](){const _0x1f3730=_0x5e5e22;let _0x47b661=async _0x535344=>{const _0x570dfa=_0x20b8;let _0x3af245=await this[_0x570dfa(0x384)][_0x570dfa(0x46b)](_0x535344),_0x133d3f=this['_injector'][_0x570dfa(0x31e)](_0x47a016[_0x570dfa(0x391)]);_0x3af245[_0x570dfa(0x302)][_0x570dfa(0x3e2)]((0x0,_0x4f33c6[_0x570dfa(0x24a)])(_0x3161c1=>_0x3161c1[_0x570dfa(0x46c)]===_0x2b4fec['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x4f33c6[_0x570dfa(0x2dd)])(this[_0x570dfa(0x207)]))[_0x570dfa(0x3c1)](_0x4d51ce=>{const _0x1303f5=_0x570dfa;let {objectId:_0x24962c}=_0x4d51ce[_0x1303f5(0x4c1)];_0x24962c===_0x535344?_0x133d3f['initWorkbookPermissionChange'](_0x535344):_0x133d3f['refreshPermission'](_0x535344,_0x24962c);});};(0x0,_0xd93cf['merge'])(this[_0x1f3730(0x45b)]['getTypeOfUnitAdded$'](_0x1f27ed[_0x1f3730(0x41c)][_0x1f3730(0x25c)]))['pipe']((0x0,_0x4f33c6[_0x1f3730(0x349)])(_0x13b4f7=>_0x13b4f7[_0x1f3730(0x32b)][_0x1f3730(0x4d4)]()),(0x0,_0x4f33c6['filter'])(_0x17e3f4=>!(0x0,_0x1f27ed['isInternalEditorID'])(_0x17e3f4)),(0x0,_0x4f33c6['takeUntil'])(this[_0x1f3730(0x207)]))[_0x1f3730(0x3c1)](_0x3cc17c=>{_0x47b661(_0x3cc17c);});}};_0xe5ea54=_0x28d1a4([_0x26ba80(0x0,(0x0,_0x1f27ed['Inject'])(_0x1f27ed['Injector'])),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x46d)]),_0x26ba80(0x3,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x3b7eb8)),_0x26ba80(0x4,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2af8d7))],_0xe5ea54);let _0x588cac=class{constructor(_0x1cd064,_0x4e2f08){const _0x205630=_0x5e5e22;this[_0x205630(0x494)]=_0x1cd064,this[_0x205630(0x283)]=_0x4e2f08;}async['getUnitOnRev'](_0x516449,_0x1dcfc1){const _0x250e0b=_0x5e5e22;var _0x5f00fa;let {unitID:_0x41d0a7,type:_0x27b91a,revision:_0x30fdbc=0x0}=_0x1dcfc1,_0x3bf3ce=this[_0x250e0b(0x488)]()+'/'+_0x27b91a+_0x250e0b(0x25f)+_0x41d0a7+_0x250e0b(0x38f)+_0x30fdbc,_0x3360bc=(await this[_0x250e0b(0x283)][_0x250e0b(0x31e)](_0x3bf3ce))[_0x250e0b(0x2ba)],_0xf15429=(_0x5f00fa=_0x3360bc[_0x250e0b(0x458)])==null?void 0x0:_0x5f00fa[_0x250e0b(0x434)];if(_0xf15429){let _0x242eba=_0xf15429==null?void 0x0:_0xf15429['originalMeta'];_0xf15429[_0x250e0b(0x1f5)]=_0x2b4fec[_0x250e0b(0x45a)][_0x250e0b(0x2e1)]((0x0,_0x2b4fec[_0x250e0b(0x487)])(_0x242eba)),Object[_0x250e0b(0x39e)](_0xf15429[_0x250e0b(0x3f2)])['forEach'](([,_0xf2627b])=>{const _0x48fc44=_0x250e0b;let _0x180922=_0xf2627b['originalMeta'];_0xf2627b[_0x48fc44(0x1f5)]=_0x2b4fec[_0x48fc44(0x45a)][_0x48fc44(0x2e1)]((0x0,_0x2b4fec[_0x48fc44(0x487)])(_0x180922));});}return _0x3360bc;}async[_0x5e5e22(0x306)](_0x145148,_0x22d4de){const _0x5bb5d7=_0x5e5e22;let {unitID:_0x3f055d,type:_0x2743a7,blockID:_0x16fb4a}=_0x22d4de,_0x206d7e=this['_getAPIPrefix']()+'/'+_0x2743a7+'/unit/'+_0x3f055d+_0x5bb5d7(0x3dd)+_0x16fb4a;return(await this[_0x5bb5d7(0x283)][_0x5bb5d7(0x31e)](_0x206d7e))[_0x5bb5d7(0x2ba)];}async[_0x5e5e22(0x41e)](_0x24e5a5,_0x4005a0){const _0x724376=_0x5e5e22;let {unitID:_0x48099e,type:_0x32dbfd,blockID:_0x15db3b}=_0x4005a0,_0xdc7f9b=this[_0x724376(0x3c4)]()+_0x724376(0x3dd)+_0x32dbfd+'/unit/'+_0x48099e+'/block/'+_0x15db3b;return(await this[_0x724376(0x283)][_0x724376(0x31e)](_0xdc7f9b))['body'];}async[_0x5e5e22(0x3b9)](_0x309783,_0xf013e3){const _0x678081=_0x5e5e22;let {unitID:_0x80a73c,type:_0x27788b,from:_0x1f4feb,to:_0x435bae}=_0xf013e3,_0x22e4fc=this[_0x678081(0x3c4)]()+'/'+_0x27788b+_0x678081(0x25f)+_0x80a73c+_0x678081(0x3a5)+_0x1f4feb+_0x678081(0x27e)+_0x435bae;return(await this[_0x678081(0x283)][_0x678081(0x31e)](_0x22e4fc))[_0x678081(0x2ba)];}[_0x5e5e22(0x488)](){const _0x969d0c=_0x5e5e22;var _0x410317;return(_0x410317=this[_0x969d0c(0x494)][_0x969d0c(0x45c)](_0x969d0c(0x4d0)))==null?this[_0x969d0c(0x3c4)]():_0x410317;}['_getAPIPrefix'](){const _0x73b817=_0x5e5e22;var _0x26b2df;let _0x6a8eb8=this[_0x73b817(0x494)]['getConfig'](_0x5df009);return(_0x26b2df=_0x6a8eb8==null?void 0x0:_0x6a8eb8[_0x73b817(0x27d)])==null?_0x73b817(0x3be):_0x26b2df;}async[_0x5e5e22(0x36d)](_0x222ca5,_0x3b631d){const _0x28daef=_0x5e5e22;let _0x3e5504=_0x28daef(0x2a4)+_0x3b631d[_0x28daef(0x320)]+_0x28daef(0x25f)+_0x3b631d[_0x28daef(0x3bc)]+_0x28daef(0x2ea);return(await this[_0x28daef(0x283)]['get'](_0x3e5504,{'params':{'resourceId':JSON[_0x28daef(0x298)](_0x3b631d[_0x28daef(0x2f3)])}}))['body'];}['saveSnapshot'](){const _0x595d8f=_0x5e5e22;throw Error(_0x595d8f(0x2dc));}[_0x5e5e22(0x1f8)](){const _0x3dbfdd=_0x5e5e22;throw Error(_0x3dbfdd(0x2dc));}[_0x5e5e22(0x300)](){const _0x3374db=_0x5e5e22;throw Error(_0x3374db(0x2dc));}[_0x5e5e22(0x389)](){const _0x4d079d=_0x5e5e22;throw Error(_0x4d079d(0x2dc));}['copyFileMeta'](){const _0x129a4e=_0x5e5e22;throw Error(_0x129a4e(0x2dc));}[_0x5e5e22(0x3bf)](){const _0x381cc4=_0x5e5e22;throw Error(_0x381cc4(0x2dc));}};_0x588cac=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x506)]),_0x26ba80(0x1,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x2514fd[_0x5e5e22(0x2e2)]))],_0x588cac);let _0xdb32aa=class extends _0x1f27ed['LocalUndoRedoService']{constructor(_0x539801,_0x1b19fa,_0xbf9ebe,_0x120232,_0x44c6ff){super(_0x539801,_0x1b19fa,_0xbf9ebe),this['_transformService']=_0x120232,this['_logService']=_0x44c6ff;}['transformUndoRedo'](_0x3ad009,_0x562594){const _0x1b3b35=_0x5e5e22;let _0x46e9ab=this['_getUndoStack'](_0x3ad009);if(_0x46e9ab)try{let _0x49f74c=this['_transformStack'](_0x46e9ab,_0x562594);this[_0x1b3b35(0x29d)](_0x3ad009,_0x49f74c);}catch(_0x5ab8e4){this['_logService'][_0x1b3b35(0x4bf)]('[CollaborationUndoRedoService]',_0x5ab8e4),this[_0x1b3b35(0x318)](_0x3ad009);}let _0x51f46b=this[_0x1b3b35(0x259)](_0x3ad009);if(_0x51f46b)try{let _0x347ed2=this[_0x1b3b35(0x343)](_0x51f46b,_0x562594);this[_0x1b3b35(0x25e)](_0x3ad009,_0x347ed2);}catch(_0x5aa495){this[_0x1b3b35(0x2de)][_0x1b3b35(0x4bf)](_0x5aa495),this[_0x1b3b35(0x48c)](_0x3ad009);}}['_clearUndo'](_0x20d656){const _0x35b3d4=_0x5e5e22;let _0x340a34=this[_0x35b3d4(0x3b3)](_0x20d656);_0x340a34&&(_0x340a34[_0x35b3d4(0x242)]=0x0,this['_updateStatus']());}[_0x5e5e22(0x48c)](_0x12da85){const _0x352d78=_0x5e5e22;let _0x1d8666=this[_0x352d78(0x259)](_0x12da85);_0x1d8666&&(_0x1d8666[_0x352d78(0x242)]=0x0,this[_0x352d78(0x289)]());}['_substituteUndoStack'](_0xfa388f,_0x587a49){const _0x33a28=_0x5e5e22;this[_0x33a28(0x47e)][_0x33a28(0x4ce)](_0xfa388f,_0x587a49),this[_0x33a28(0x289)]();}[_0x5e5e22(0x25e)](_0x22d632,_0x4d095a){const _0x256d3f=_0x5e5e22;this[_0x256d3f(0x4b9)][_0x256d3f(0x4ce)](_0x22d632,_0x4d095a),this[_0x256d3f(0x289)]();}[_0x5e5e22(0x343)](_0x4e0150,_0x1bd2fc){const _0x57bffa=_0x5e5e22;let _0x3e50d5=[],_0x3882be=_0x1bd2fc,_0xca5347=_0x1bd2fc;for(let _0x61b9a5=_0x4e0150[_0x57bffa(0x242)]-0x1;_0x61b9a5>=0x0;_0x61b9a5--){let {unitID:_0x4ad666,undoMutations:_0x2a5201,redoMutations:_0x2b6e4f}=_0x4e0150[_0x61b9a5],_0x2cae6f=this[_0x57bffa(0x344)]['transformMutationsWithChangeset'](_0x3882be,_0x2a5201),_0x25e474=this[_0x57bffa(0x344)][_0x57bffa(0x1f3)](_0xca5347,_0x2b6e4f);if((0x0,_0x2b4fec[_0x57bffa(0x2bd)])(_0x2cae6f)||(0x0,_0x2b4fec[_0x57bffa(0x2bd)])(_0x25e474)){this[_0x57bffa(0x2de)][_0x57bffa(0x4bf)](_0x57bffa(0x3a1),_0x57bffa(0x4ed),_0x2cae6f,_0x25e474);break;}_0x3882be=_0x2cae6f[_0x57bffa(0x246)],_0xca5347=_0x25e474[_0x57bffa(0x246)],_0x3e50d5[_0x57bffa(0x2e4)]({'unitID':_0x4ad666,'undoMutations':_0x2cae6f[_0x57bffa(0x22d)],'redoMutations':_0x25e474[_0x57bffa(0x22d)]});}return _0x3e50d5[_0x57bffa(0x407)]();}};_0xdb32aa=_0x28d1a4([_0x26ba80(0x0,_0x1f27ed[_0x5e5e22(0x50c)]),_0x26ba80(0x1,_0x1f27ed['ICommandService']),_0x26ba80(0x2,_0x1f27ed[_0x5e5e22(0x363)]),_0x26ba80(0x3,_0x2b4fec['ITransformService']),_0x26ba80(0x4,_0x1f27ed['ILogService'])],_0xdb32aa);let _0xb12e48=class extends _0x1f27ed[_0x5e5e22(0x4a0)]{constructor(_0x4abd46={},_0x27a8d2,_0x2ab388,_0x4203e0){const _0xd7e1d9=_0x5e5e22;super(),this['_config']=_0x4abd46,this[_0xd7e1d9(0x2de)]=_0x27a8d2,this[_0xd7e1d9(0x3af)]=_0x2ab388,this['_configService']=_0x4203e0;let {..._0x4bbefb}=(0x0,_0x1f27ed[_0xd7e1d9(0x307)])({},_0x5b799f,_0x4abd46);if(!_0x4bbefb[_0xd7e1d9(0x316)])throw Error(_0xd7e1d9(0x3e5));this['_config']=_0x4bbefb,this['_configService'][_0xd7e1d9(0x3d7)](_0x5df009,_0x4bbefb);}[_0x5e5e22(0x444)](){const _0x19735f=_0x5e5e22;this['_registerDependencies'](),this[_0x19735f(0x31b)]();}[_0x5e5e22(0x34c)](){const _0x5575f4=_0x5e5e22;var _0x2a0b46,_0x330b8a;this[_0x5575f4(0x3af)][_0x5575f4(0x4e1)](_0x1f27ed[_0x5575f4(0x325)])&&this[_0x5575f4(0x2de)][_0x5575f4(0x4bf)]('[UniverCollaborationClientPlugin]',_0x5575f4(0x2ca));let _0x538706=(0x0,_0x1f27ed['mergeOverrideWithDependencies'])([[_0x1f27ed['IUndoRedoService'],{'useClass':_0xdb32aa}],[_0x3b7eb8],[_0x3aba96],[_0x3ede5e],[_0x3e8a84],[_0x2ed573],[_0x5909a8],[_0xe5ea54],[_0x2af8d7],[_0x58d6e4],[_0xb9cf3b,{'useClass':this[_0x5575f4(0x480)][_0x5575f4(0x316)]}],[_0x2b4fec['ISnapshotServerService'],{'useClass':_0x588cac}],[_0x1f27ed[_0x5575f4(0x3b2)],{'useClass':_0x1ac39c}],[_0x310bbf[_0x5575f4(0x372)],{'useClass':_0x5cb4c5}],[_0x1f27ed[_0x5575f4(0x422)],{'useClass':_0x235451}],[_0x4efdf8],[_0x33fd88]],(_0x2a0b46=this[_0x5575f4(0x480)])==null?void 0x0:_0x2a0b46[_0x5575f4(0x290)]);if(!((_0x330b8a=this[_0x5575f4(0x480)])!=null&&_0x330b8a[_0x5575f4(0x2d8)])){let _0x3d2d17=_0x538706[_0x5575f4(0x356)](([_0xd4f8fc])=>_0xd4f8fc===_0xf1640f);_0x3d2d17!==-0x1&&_0x538706['splice'](_0x3d2d17,0x1);}(0x0,_0x1f27ed[_0x5575f4(0x451)])(this[_0x5575f4(0x3af)],_0x538706);}['_initDependencies'](){const _0x58d236=_0x5e5e22;var _0x5baa14,_0x3d1b65;if(this['_injector'][_0x58d236(0x31e)](_0x2514fd[_0x58d236(0x2e2)])[_0x58d236(0x454)]({'priority':0x14,'interceptor':(0x0,_0x2514fd[_0x58d236(0x216)])({'maxParallel':0x6})}),!((_0x5baa14=this['_config'])!=null&&_0x5baa14[_0x58d236(0x33b)])){var _0x506af8;(_0x506af8=this[_0x58d236(0x3af)][_0x58d236(0x31e)](_0x33d8de,_0x1f27ed[_0x58d236(0x359)][_0x58d236(0x426)]))==null||_0x506af8[_0x58d236(0x416)]();}(_0x3d1b65=this[_0x58d236(0x480)])!=null&&_0x3d1b65[_0x58d236(0x323)]&&(0x0,_0x1f27ed['touchDependencies'])(this[_0x58d236(0x3af)],[[_0x3e8a84]]),(0x0,_0x1f27ed[_0x58d236(0x234)])(this['_injector'],[[_0x2ed573],[_0x4efdf8],[_0xe5ea54]]);}};_0x5886a9(_0xb12e48,_0x5e5e22(0x29f),_0x5e5e22(0x3b5)),_0x5886a9(_0xb12e48,_0x5e5e22(0x28f),_0x189f56),_0x5886a9(_0xb12e48,'version',_0x4b9248),_0xb12e48=_0x28d1a4([(0x0,_0x1f27ed['DependentOn'])(_0x98661d[_0x5e5e22(0x214)],_0x2b4fec['UniverCollaborationPlugin'],_0x2514fd[_0x5e5e22(0x371)]),_0x26ba80(0x1,_0x1f27ed[_0x5e5e22(0x304)]),_0x26ba80(0x2,(0x0,_0x1f27ed[_0x5e5e22(0x41b)])(_0x1f27ed[_0x5e5e22(0x271)])),_0x26ba80(0x3,_0x1f27ed[_0x5e5e22(0x506)])],_0xb12e48),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x468),{'enumerable':!0x0,'get':function(){return _0x1ac39c;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x400),{'enumerable':!0x0,'get':function(){return _0x41bca9;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x29c),{'enumerable':!0x0,'get':function(){return _0x2aa7cb;}}),_0x34a032[_0x5e5e22(0x472)]=_0x5df009,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x475),{'enumerable':!0x0,'get':function(){return _0x4efdf8;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x35f),{'enumerable':!0x0,'get':function(){return _0xe7bc8f;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x4f8),{'enumerable':!0x0,'get':function(){return _0x5cb4c5;}}),Object['defineProperty'](_0x34a032,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x56a6c2;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x2a5),{'enumerable':!0x0,'get':function(){return _0x3b7eb8;}}),Object['defineProperty'](_0x34a032,_0x5e5e22(0x2cc),{'enumerable':!0x0,'get':function(){return _0x274b64;}}),_0x34a032[_0x5e5e22(0x3ab)]=_0x5788d6,_0x34a032['CollaborationUIEventId']=_0x3d6a45,_0x34a032[_0x5e5e22(0x4bc)]=_0x2af8d7,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x264),{'enumerable':!0x0,'get':function(){return _0xdb32aa;}}),_0x34a032[_0x5e5e22(0x2c5)]=_0x5909a8,Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x2ad),{'enumerable':!0x0,'get':function(){return _0x2d8e7b;}}),_0x34a032['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x505fc1,_0x34a032[_0x5e5e22(0x2eb)]='/universer-api/uniscript',_0x34a032['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object[_0x5e5e22(0x2a3)](_0x34a032,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x58d6e4;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x4e6),{'enumerable':!0x0,'get':function(){return _0x6949ae;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x272441;}}),_0x34a032[_0x5e5e22(0x432)]=_0x5e5e22(0x226),_0x34a032[_0x5e5e22(0x350)]=_0x5e5e22(0x365),_0x34a032['ICollaborationSocketService']=_0xb9cf3b,_0x34a032[_0x5e5e22(0x380)]=_0x33d8de,_0x34a032[_0x5e5e22(0x2c4)]=_0x3aac02,_0x34a032[_0x5e5e22(0x3e4)]=_0xf1640f,_0x34a032[_0x5e5e22(0x266)]=0x3e8,_0x34a032[_0x5e5e22(0x257)]=_0x5e5e22(0x266),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x46a),{'enumerable':!0x0,'get':function(){return _0x3aba96;}}),Object['defineProperty'](_0x34a032,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x235451;}}),Object['defineProperty'](_0x34a032,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x73123;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x357),{'enumerable':!0x0,'get':function(){return _0x552ece;}}),_0x34a032[_0x5e5e22(0x460)]=_0x5e5e22(0x4b7),_0x34a032['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x5e5e22(0x4e0),_0x34a032[_0x5e5e22(0x2e3)]=_0x4cf53d,Object[_0x5e5e22(0x2a3)](_0x34a032,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x30b4f8;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x509),{'enumerable':!0x0,'get':function(){return _0x3ede5e;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x588cac;}}),Object[_0x5e5e22(0x2a3)](_0x34a032,_0x5e5e22(0x20c),{'enumerable':!0x0,'get':function(){return _0x165a95;}}),_0x34a032[_0x5e5e22(0x50f)]=_0x15dbc9,Object['defineProperty'](_0x34a032,_0x5e5e22(0x40d),{'enumerable':!0x0,'get':function(){return _0xb12e48;}}),_0x34a032['deserializeToCombResponse']=_0xc94ca9,_0x34a032[_0x5e5e22(0x208)]=_0x1b3860,_0x34a032['serializeCombRequest']=_0x4e9c33;}));