@univerjs-pro/collaboration-client 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -1
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -1
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -1
  6. package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +8 -5
  7. package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -1
  8. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -1
  9. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -1
  10. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -1
  11. package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -1
  13. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -1
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -1
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -1
  16. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -1
  17. package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -1
  18. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -1
  19. package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -1
  20. package/lib/types/locale/en-US.d.ts +0 -1
  21. package/lib/types/locale/ru-RU.d.ts +0 -1
  22. package/lib/types/locale/vi-VN.d.ts +0 -1
  23. package/lib/types/locale/zh-TW.d.ts +0 -1
  24. package/lib/types/models/cursor.d.ts +0 -1
  25. package/lib/types/plugin.d.ts +0 -1
  26. package/lib/types/services/auth-server/auth-server.service.d.ts +0 -1
  27. package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -1
  28. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -1
  29. package/lib/types/services/color-assign/color-assign.service.d.ts +0 -1
  30. package/lib/types/services/comment/comment.service.d.ts +0 -1
  31. package/lib/types/services/image-remote/image-io.service.d.ts +0 -1
  32. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -1
  33. package/lib/types/services/local-cache/local-cache.service.d.ts +0 -1
  34. package/lib/types/services/member/member.service.d.ts +0 -1
  35. package/lib/types/services/permission/permission.service.d.ts +0 -1
  36. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -1
  37. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -1
  38. package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -1
  39. package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
  40. package/lib/types/services/socket/serialize.d.ts +0 -1
  41. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -1
  42. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -1
  43. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -1
  44. package/lib/types/services/url/url.service.d.ts +0 -1
  45. package/lib/types/services/url/web-url.service.d.ts +0 -1
  46. package/lib/types/views/components/CollabStatus.d.ts +0 -1
  47. package/lib/types/views/components/CollabStatus.stories.d.ts +0 -1
  48. package/lib/types/views/shapes/doc-collab-cursor.d.ts +2 -2
  49. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -1
  50. package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -1
  51. package/lib/umd/index.js +1 -1
  52. package/package.json +32 -36
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d174b=_0x2798;(function(_0x1d3afd,_0x5f0fc5){const _0x74585d=_0x2798,_0x49943e=_0x1d3afd();while(!![]){try{const _0x2b024f=-parseInt(_0x74585d(0x1ce))/0x1+-parseInt(_0x74585d(0x1d0))/0x2+-parseInt(_0x74585d(0x306))/0x3*(-parseInt(_0x74585d(0x201))/0x4)+-parseInt(_0x74585d(0x3b6))/0x5*(parseInt(_0x74585d(0x141))/0x6)+parseInt(_0x74585d(0x3d1))/0x7*(parseInt(_0x74585d(0x359))/0x8)+-parseInt(_0x74585d(0x3f6))/0x9*(parseInt(_0x74585d(0x27b))/0xa)+parseInt(_0x74585d(0xc5))/0xb;if(_0x2b024f===_0x5f0fc5)break;else _0x49943e['push'](_0x49943e['shift']());}catch(_0x4d8fc9){_0x49943e['push'](_0x49943e['shift']());}}}(_0x1b10,0x9578f));var Bs=Object['defineProperty'],Ws=(_0x22947c,_0x4c1e62,_0x328808)=>_0x4c1e62 in _0x22947c?Bs(_0x22947c,_0x4c1e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328808}):_0x22947c[_0x4c1e62]=_0x328808,l=(_0x18791c,_0xaf3947,_0x1ab6df)=>Ws(_0x18791c,typeof _0xaf3947!='symbol'?_0xaf3947+'':_0xaf3947,_0x1ab6df);import{Disposable as _0x3d777f,toDisposable as _0x521fe6,UniverInstanceType as _0x1851b1,Inject as _0x5b671c,UserManagerService as _0x37f827,IUniverInstanceService as _0x2269ec,createIdentifier as _0x20ae42,DisposableCollection as _0x57d5bc,IConfigService as _0x15fd76,ILogService as _0x50a504,ISnapshotServerService as _0x31fed6,RxDisposable as _0x52c754,LocaleService as _0x35ebff,Injector as _0x49e10e,ILocalStorageService as _0x195f5f,Tools as _0x1053dd,ICommandService as _0x5bc562,JSONX as _0xa7ba5e,CommandType as _0x4d4345,IPermissionService as _0xf5bbc5,IUndoRedoService as _0x5f56c1,sequenceExecute as _0x37a637,OnLifecycle as _0xbfca41,LifecycleStages as _0x5b23af,Optional as _0x466fab,Rectangle as _0x439eae,ThemeService as _0x2191ad,useDependency as _0x3c7014,connectInjector as _0x5578f9,Workbook as _0x391489,textEncoder as _0x52ba54,b64DecodeUnicode as _0x44db7c,LocalUndoRedoService as _0xca3891,IContextService as _0x1a042d,COLORS as _0x375c72,ColorKit as _0x2cf8bf,isInternalEditorID as _0x48cbdf,Plugin as _0x1b986b,IAuthzIoService as _0x120323,mergeOverrideWithDependencies as _0x28386f,DependentOn as _0x34bd97}from'@univerjs/core';import{SheetsSelectionsService as _0x298766,SetSelectionsOperation as _0x32ba42,InsertSheetMutation as _0x3b1722,EmptyMutation as _0x4866a1,WorkbookEditablePermission as _0x56d014,RefRangeService as _0x30eaeb,EffectRefRangId as _0x52a1d4,handleIRemoveRow as _0x17649b,handleIRemoveCol as _0x22e932,handleMoveRange as _0x4e0a2e,handleInsertRow as _0x345f09,handleInsertRangeMoveRight as _0x255bb6,handleInsertRangeMoveDown as _0x3be4c3,handleInsertCol as _0x326930,handleDeleteRangeMoveUp as _0x1ca379,handleDeleteRangeMoveLeft as _0x881384,runRefRangeMutations as _0x43235e,SetWorksheetActivateCommand as _0x1149a2}from'@univerjs/sheets';import{MessageType as _0x17d4c8}from'@univerjs/design';import{IBeforeCloseService as _0x1799ae,IMessageService as _0x1e8990,INotificationService as _0x13435c,useObservable as _0x3425e9,BuiltInUIPart as _0x36ca7a,IUIPartsService as _0xe5448f}from'@univerjs/ui';import{CollaborationEvent as _0x2c65dc,parseChangesetToProtocol as _0x24fcaf,RevisionService as _0x5d7349,isTransformMutationFailure as _0x8ecfd4,isTransformMutationsWithChangesetSuccess as _0x7aa6dd,ITransformService as _0x174d0f,mapDocumentTypeToUniverType as _0x4a7d91,isTransformChangesetsSuccess as _0x5cb55b,CompressMutationService as _0x2224de,parseProtocolChangeset as _0xf28be5,SnapshotService as _0x8be8c0,isTransformMutationsWithChangesetFailure as _0x3d1247,UniverCollaborationPlugin as _0x5889e9}from'@univerjs-pro/collaboration';import{merge as _0x4e0a85,Subject as _0x49ef1a,BehaviorSubject as _0x16da12,distinctUntilChanged as _0x44a041,fromEvent as _0x2a799c,of as _0x1e95ea,takeUntil as _0xf80876,debounceTime as _0x552316,filter as _0x28963b,switchMap as _0x46582b,combineLatest as _0x2d61f0,shareReplay as _0x1c7dea,mapTo as _0x33a766,concatMap as _0x555673}from'rxjs';import{map as _0x120a2e,takeUntil as _0x21a0e1,take as _0x15818d,filter as _0x22c59c,delay as _0x4fe2db,shareReplay as _0x473611,switchMap as _0x6b8f52}from'rxjs/operators';function _0x1b10(){const _0x13d9f2=['location','getRangePointData','_onCursorUpdate','sheetID','onlineStatus','getTypeOfUnitDisposed$','_collabCursorState$','map','verdancy600','enableAuthServer','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_executeRemoteChangeset','_updateLocalCursor','conflict','_hideTimer','_getAnchorBounding','_ws','_getMergeRange','YUUMI_UNABLE_LOAD_URL','clear','stringify','UNAUTHENTICATED','SNAPSHOT_HAS_BEEN_REMOVED','data','ERROR_EXCEED_SIZE','blue400','_handleLeaveEvent','sheets','_showConflictNotification','params','_submitChangeset','unit','_waitCount','_unitStatus','_userManagerService','_docSyncEditingCollabCursorService','_init','_sessions','[PendingState]:\x20received\x20acknowledgement.','transformUndoRedo','_unitOnClients','restore','_HTTPService','url(#off-line-single_clip0_910_343)','_setupBeforeClosingHandler','getCurrentRevForDocument','_redoStacks','_updateStatus','string','_updateCollabCursors','_hover','off-line-single_clip0_910_343','_shapes','UNIVER_DOC','moveTo','_themeService','url(#on-line-single_clip0_910_349)','parse','HEARTBEAT_TIMEOUT','_anchor','editingUnit','collab-text-anchor-','_startDocCollabCursor','AWAITING','onMissingChangesets','_renderManagerService','send','NOT_COLLAB','_type','SUBMIT_CHANGESET','CHANGESET_REVISION_CONFILICT','LIVESHARE_FETCH_OPERATIONS','_socketService','ONLINE','onlineStatusIcon','updatePermissionObjEvent','row','getOffsetConfig','univer-online-status','setCurrentUser','min','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_lockTransition','_collaborationSessionService','getWorkbookSelections','children','status$','_memberService','registerOnClose','_handler','memberID','interceptor','OffLineSingle','[SyncedState]:\x20received\x20rejection.','SNAPSHOT_SERVER_URL_KEY','length','_docSkeletonManagerService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','LICENSE_IMPORT_SIZE_EXCEEDED','_retryConnectingTimer','getSheetBySheetId','all','method','target','requireSession','collabStatus.syncing','getCollabEntity$','_collabCursorController','getCurrentSelections','NO_OTHER_CLIENTS_EDITING','getCurrentUnitForType','_state$','patch','_cursor','/unit/','_transitionLocked','_remoteChangesetQueue','COMPRESS_MUTATION_SEND','loadOfflineData','width','univer-online','[CollaborationSessionService]','onRendered','_color','_getSheetObject','_members','UPDATE_CURSOR','#fff','makeDirty','collaboration.closeRoom','closeSession','1610652HWfiWP','LIVESHARE_REQUEST_HOST','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handleHeartbeatEvent','_logService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','open$','UNDEFINED','_heartbeatTimer','_draw','result','/resources','UNKNOWN_CMD','red300','onStarting','url','collabStatus.conflict','_ensureSubject','closePath','APPLY_NON_SEQUENTIAL_REVISION','MUTATION','collabCursorState$','_initMergeInterceptor','generateRandomId','_onConnectionFailed','path','_colorIndex','setAlpha','_rescheduleHeartbeatEvent','unit-cache-','_onConnectionOpen','_socketReady','_sendHeartbeat','[SyncedState]:\x20received\x20acknowledgement.','push','_clearRedo','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_snapshotService','[OfflineState]:\x20received\x20acknowledgement.','_createSocket','_scheduleTimestamp','save','selection','session.connection-failed','state$','getVpScrollXYInfoByPosToVp','jiqing500','gold400','getRoom','socket\x20open.','awaiting','RETRY_CONNECTING_INTERVAL','_collaborationPaused','onSyncEditingCollabCursor','getMemberID','SEND_CHANGESET_TIMEOUT','xlink:href','_registerRenderDependencies','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL','toggleOffline','getCellPositionByOffset','_joinRoom','_onUserJoin','then','_backgroundColor','HEADER_MENU','_isPermissionRej','set','url(#$1','ERROR_IMAGE_TYPE','_disabled','0\x200\x2016\x2016','OTHER_CLIENTS_EDITING','LIVESHARE_OPERATION','_updateSubUnitFromURLParams','flatMap','infoRsp','saveSnapshot','Error','triggerDblclick','CONNECTOR_DATA_TOO_LARGE','_handleEvent','264utRoYu','_entities','getMember','subscribeEvent','_getSnapshotAPIPrefix','[DataLoaderController]','_session','onlineStatusTitle','top','USERS_ENTER','_waitForHeartbeatResponse','RECV','executeCommand','extend','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','propertyIsEnumerable','_collabSessionService','cmd','COLLAB_WEB_SOCKET_URL','objectActions','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_injector','sheetId','PENDING','conflict.content','localeService','subUnitId','UPDATE_PERMISSION_OBJ','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_onRecvEvent','color','image/jpg','_id','CHANGESET_ACK','getParam','has','_startSheetCollabCursor','resolve','call','_initModules','withCredentials','_getSignURL','replaceState','joinEvent','_updateURLWithCurrentState','routeKey','state','MoveRangeCommandId','HEARTBEAT','originalMeta','change$','\x20-\x20','initWorkbookPermissionChange','_getRedoStack','setShapeProps','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_unlockTransition','/universer-api/stream/file/upload','permission.content','UNIVER_SLIDE','?url=','_getLoginPath','max','/object/','LOGIN_URL_KEY','text','_socket$','[CollaborationUndoRedoService]','includes','/role','_render','saveChangeset','COMMENT_UPDATE','_loadDoc','_clearLocalCache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','setItem','_toggleOnline','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_getCtorByUniverType','FAIL','_range','setUndoRedoMutationParamsCache','allowed','round','removeMember','createSocket','headers','onlyLocal','translate(.97)','toggleOnline','selections','818145NYoRrS','registerRenderModule','FileId','DeleteRangeMoveLeftCommandId','hovered','getActiveRange','createCollaborator','asObservable','loadSheet','svg','currentTheme$','clipPath','_cursors','hide','getInterceptPoints','save\x20fail\x20reason\x20is\x20','incrementRevForDocument','urlChange$','auth.needGotoLoginAlert','updatePermissionPoint','_transformService','_transformPreviousActiveRange','[CollaborationSession]','updateCollaborator','_removeCollabCursors','connection\x20error','_transformIMECache','232981HMrjNi','HELLO','createInstance','_clearOtherTimers','[PendingState]:\x20received\x20rejection.','_lastPointer','onload','_uiPartsService','_hovered','actions','[PendingState]:\x20unhandled\x20univer\x20type:\x20','synced','members','_onMessage','concat','changesets','_sheetTransformSelectionsService','readAsDataURL','subunit','delete','NEW_CHANGESETS','resourceIDs','isPermissionRej','cursorInfo','appendMutation','idSuffix','getAncestorScale','reject','awaitingChangeset','_saveTaskMap','JOINING','collabStatus.synced','_commentUpdate$','updateMember','_cursorInfo$','USERS_LEAVE','_transformSelections','1716471NjgzCJ','_getSendChangesetTimeout','error','[UniverCollaborationClientPlugin]','find','div','pipe','_roomMembers','_applyRemoteChangeset','_checkMissing','sessionStatus$','liveShareNewHost','onCommentUpdate','20107626PkiCtN','unsubscribe','getOwnPropertySymbols','startRow','_imageSourceCache','_localCacheService','_fetchMissChangesets','loadDoc','DeleteRangeMoveUpCommandId','InsertColCommandId','_drawRange','_syncEditingCollabCursor','socket\x20close','_incrementRevisionNumber','_substituteUndoStack','setInterval','\x0aCurrent:\x20','POST','createElement','ACTIVE_UNIT_EVENT_CHANNEL','newCsEvent','_undoRedoService','deepClone','JOIN','dispose$','deleteCollaborator','collaboration.single-unit.warning','Error\x20on\x20receiving\x20event','drawWith','next','_handleHover','disposeWithMe','objectID','_singleActiveUnitService','skeleton','_colorAssignService','collaboration-client.offline-data-not-saved','UUID','defIds','toString','append','_scheduleClearOtherTimer','[CollaborationState]:\x20apply\x20error!','assign','_docTransformSelectionsService','_docStateChangeManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','error$','storage','univer-online-status-icon','collab-text-range-','put','_commentService','_scheduleSaving','apply','image/bmp','onSendChangeset','YUUMI_URL_COL_OUT_OF_RANGE','off-line-single','title','collaborators','/-/object/-/batch_allowed','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_initStatusListener','_onConflict','_replaceFileID','transformSelections','doc.mutation.rich-text-editing','InsertRangeMoveDownCommandId','_transformStack','CONFLICT','eventID','fetch_missing','onRemoteChangeset','list','transformStack\x20failed!','AUTHZ_URL_KEY','activeSheet$','_eventUnsubscribe','findNodePositionByCharIndex','_univerInstanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_document','submit\x20changeset\x20error!','collabStatus.offline','setWaitCount','fetchMissingChangesets','disableLocalCache','getMergeData','M0\x200H16V16H0z','init','onTransformSelections','_clearHeartbeatTimer','colorChannel1','trim','removeParam','popstate','_permissionService','permissionRejEvent','_decreaseWaiting','_onRemoteRejected','getViewport','setParam','on-line-single','_context','focused$','prototype','add','onMissedChangesetFetched','Starting','FETCH_MISSING','searchParams','get','\x0aAfter:\x20','session.will-retry','_clearScheduledTask','_initUnitPermissionChange','type','getCurrentUser','_schedule','_localeService','_removeClearOtherTimer','getOwnPropertyDescriptor','catch','24aLnhxV','ranges','revision','UNIVER_UNKNOWN','_httpService','_cachedData','transformMutationsWithChangeset','\x20in\x20_schedule.','not_collab','_scheduleReconnection','status','whenReady','/-/object/list','Warning','post','getUnitId','_getAPIPrefixPath','startColumn','_getUndoStack','body','encodeURIComponent','_createInitialStateImpl','_getAPIPrefix','_startCollaboration','_registerDependencies','measureText','dispose','update','bottom','isArray','_docSkeleton','m2Prime','defs','on-line-single_clip0_910_349','workbook','_clearCollaborationTimeoutTimer','_getCurrentRevision','getActiveSheet','INGEST','requestParams','_transformUndoRedoStack','fillRule','onTransformRemoteChangesetByIMECache','_createInitialState','startsWith','Univer','replace','APPLY_REVISION_CONFILICT','PERMISSION_DENIED','offline','batchAllowed','getTypeOfUnitAdded$','clearTimeout','contains','_undoStacks','_commandService','newValue','OnLineSingle','_refRangeService','CHANGESET_REJ','_socket','/rev/','_localStorageService','reduce','setActiveRange','_awaitingChangeset','addEventListener','COMPRESS_MUTATION_APPLY','mutations','resend','random','_selfUnitIDs','FETCH_MISS','_anchorDot','INTERNAL_ERROR','transformMutation','responseType','transformIMECache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchThroughInterceptors','_snapshotServerService','currentSkeleton$','snapshot','objects','currentColor','_acknowledgedAwaitingChangeset','_revisionService','_substituteRedoStack','show','pluginName','onMouseMove','_sheetSkeletonManagerService','_onRemoteACK','commentUpdate$','sessionStatus','transformChangesets','_toggleOffline','fill','syncEditingCollabCursor','onRemoteAck','_getUploadFileURL','_event$','_disableEditing','_textBubble','event$','getUnitOnRev','_unitID','height','_urlService','_docTransformIMECacheService','_initStatusComponent','listRoles','[OfflineState]:\x20received\x20rejection.','roomMembers$','_onLocalMutation','range','_notificationService','ERROR_IMAGE','_compressMutationService','_roomMembers$','#FFF','registerBeforeClose','[FetchMissState]','entries','InsertRowCommandId','_saveCache','roomMembers','getCollabEntity','split','_sendingTimer','UNKNOWN_CODE','listCollaborators','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_assignedColors','transformRemoteChangeset','action','onRemoteRej','attrs','forEach','addImageSourceCache','session','872086RvacJh','getUndoRedoMutationParamsCache','1504382UvniQx','NOT_FOUND','getImageSourceCache','_getScale','/allowed','assignAColorForMemberID','exhaustSavingTask','key','setTimeout','csAckEvent','unshift','m1Prime','cursorInfo$','_onJoinRoomEvent','LEAVE','getUnitType','_getSaveTimeout','_tryEnsureSocket','unitID','defineProperty','onCommandExecuted','message$','/collaborator','column','json','image/png','fillText','values','lineTo','conflict.title','onPointerLeave$','close','getConfig','indexOf','univer-online-status-title','_scheduleCollaborationTimeoutTimer','unknown','_send','univer-pro.collaboration-client.single-active-unit-service','_sendHeartbeatTimer','_onCursorDelete','_updateLocalCache','OFFLINE','1em','_onFetchMissResult','_collaborationTimeoutTimer','/block/','rev','getSheetId','4PnOPdy','UNIVER_SHEET','_onCombEvent','onPointerMove$','_entityInit$','_change$','UNRECOGNIZED','addObject','isActive','APPLY_REJECT','icon','_config','_state','src','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','LICENSE_DISTRO_REJECTED','MSG_FOR_ERROR','use','toRgbString','InsertRangeMoveRightCommandId','image/gif','SHOULD_CLOSE_CONN','_removeRoom','APPLY_PERMISSION_DENIED','&to=','className','commentUpdateEvent','awaiting_with_pending','getUnitStatus$','_createHandler','univer-offline','hasOwnProperty','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ALREADY_EXISTS','_onUserLeave','_beforeCloseService','shouldCloseConn','csRejEvent','_sessionStatus$','_configService','unitId','_messageService','_name','_syncEditingCollabCursorService','name','_handleJoinEvent','_online','pushState','history','_drawAnchor','baseRev','addObjects','filter','_exhaustRemoteChangesetQueue','_timeoutTimer','registerComponent','_updateState','/object','_setupSubUnitSync','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','SNAPSHOT_URL_KEY','SNAPSHOT_INVALID_SNAPSHOT','registerRefRange','fromCollab','pending','_labelPosition','LIVESHARE_TERMINATE','displayName','Unknown\x20user','objectType','registerHTTPInterceptor','_initCloseConn','FromArray','rgba(255,\x20255,\x20255,\x200.01)','debug','fillStyle','roles','[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.','userID','editing\x20status\x20changed\x20to','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','clearInterval','IDLE','_loadSheet','getValue','arc','_status$','SUCCUSS','/fetchmissing?from=','close$','updateOfflineData','complete','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationController','_pendingMutations','size','_scheduleHeartbeat','from','function','collabStatus.notCollab','_clearTimeoutTimer','enableSingleActiveInstanceLock','subscribe','encode','_queuedRemoteChangesets','black','_retryCount','PSEUDO_FETCH_MISSING_RESULT','tag','PERMISSION_REJ','onPointerEnter$','href','HEARTBEAT_INTERVAL','_scene','LIVESHARE_NEW_HOST','getFocusedUnit','textRanges','[CollaborationEntity]','_socketMessageSubscription','_http','30mzYNuz','file','purple300','some','_onRemoteChangeset','enableOfflineEditing'];_0x1b10=function(){return _0x13d9f2;};return _0x1b10();}import{IMEInputManagerService as _0x34bf2b,TextSelectionManagerService as _0x2684a6,serializeTextRange as _0x1c3c28,RichTextEditingMutation as _0x257904,DocStateChangeManagerService as _0x199abc,SetTextSelectionsOperation as _0x3741bb,DocSkeletonManagerService as _0x20b350}from'@univerjs/docs';import{HTTPService as _0x45a59b,WebSocketService as _0x260c27,MergeInterceptorFactory as _0x210201,HTTPRequest as _0x5e2413,IHTTPImplementation as _0x5aae1e,XHRHTTPImplementation as _0x52538a,ThresholdInterceptorFactory as _0x50c28f}from'@univerjs/network';import{ImageSourceType as _0x2f95cc,ImageUploadStatusType as _0x55f297,IImageIoService as _0x24c8c0}from'@univerjs/drawing';import{Shape as _0x4a0992,Rect as _0x390a18,Vector2 as _0x3af05d,NodePositionConvertToCursor as _0x45f833,getColor as _0x420307,TEXT_RANGE_LAYER_INDEX as _0x22a117,RegularPolygon as _0x1960e1,IRenderManagerService as _0xa71c3c}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x153292,serializeRangeWithSheet as _0xd693b7}from'@univerjs/engine-formula';import _0x7a8360 from'lodash/debounce';import{VIEWPORT_KEY as _0x94aa38,getCoordByCell as _0x1c49f8,getSheetObject as _0x361cc8,SheetSkeletonManagerService as _0xccc92,SheetPermissionInitController as _0x52d8a4}from'@univerjs/sheets-ui';function _0x2798(_0x3286de,_0x8ba0ea){const _0x1b1041=_0x1b10();return _0x2798=function(_0x279807,_0x520b9d){_0x279807=_0x279807-0xb9;let _0x27ca2a=_0x1b1041[_0x279807];return _0x27ca2a;},_0x2798(_0x3286de,_0x8ba0ea);}import _0x33deb0,{forwardRef as _0xc5b87,useRef as _0x485761,createElement as _0x33566a}from'react';import _0x4b7a4e from'clsx';import{IRemoteInstanceService as _0xd560c9}from'@univerjs/rpc';const Zi=_0x4d174b(0x2e0),Qi='/universer-api/snapshot',en=_0x4d174b(0x23f),tn=_0x4d174b(0x33d),sn=0x7d0,nn=_0x4d174b(0x36b),rn='ws://127.0.0.1:8000/universer-api/comb/connect',on=_0x4d174b(0x273),an=0x7530,Ts=_0x4d174b(0x2bc),Rs=0x2710,cn=_0x4d174b(0x339),hn=0x4e20,ln='RETRY_CONNECTING_MAX_COUNT',_n=0x3,un=_0x4d174b(0x341),dn=0x3e8,mn='COLLAB_SUBMIT_CHANGESET_URL',fn='/universer-api/comb',gn=_0x4d174b(0x399),Sn='/universer-api/oidc/authpage';var Os=(_0x428029=>(_0x428029[_0x428029[_0x4d174b(0x30d)]=0x0]=_0x4d174b(0x30d),_0x428029[_0x428029['OK']=0x1]='OK',_0x428029[_0x428029[_0x4d174b(0x18b)]=0x2]=_0x4d174b(0x18b),_0x428029[_0x428029[_0x4d174b(0x171)]=0x3]=_0x4d174b(0x171),_0x428029[_0x428029['NOT_FOUND']=0x4]=_0x4d174b(0x1d1),_0x428029[_0x428029[_0x4d174b(0x297)]=0x5]=_0x4d174b(0x297),_0x428029[_0x428029[_0x4d174b(0x223)]=0x6]=_0x4d174b(0x223),_0x428029[_0x428029['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x428029[_0x428029[_0x4d174b(0x340)]=0x8]=_0x4d174b(0x340),_0x428029[_0x428029['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x428029[_0x428029[_0x4d174b(0x2c8)]=0x1389]=_0x4d174b(0x2c8),_0x428029[_0x428029[_0x4d174b(0x240)]=0x1771]=_0x4d174b(0x240),_0x428029[_0x428029[_0x4d174b(0x298)]=0x1772]=_0x4d174b(0x298),_0x428029[_0x428029[_0x4d174b(0x20a)]=0x1b59]=_0x4d174b(0x20a),_0x428029[_0x428029[_0x4d174b(0x319)]=0x1b5a]=_0x4d174b(0x319),_0x428029[_0x428029[_0x4d174b(0x170)]=0x1b5b]=_0x4d174b(0x170),_0x428029[_0x428029[_0x4d174b(0x219)]=0x1b5c]=_0x4d174b(0x219),_0x428029[_0x428029[_0x4d174b(0x357)]=0x1f41]=_0x4d174b(0x357),_0x428029[_0x428029['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4d174b(0x20f),_0x428029[_0x428029[_0x4d174b(0x116)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x2e5)]=0x232b]=_0x4d174b(0x2e5),_0x428029[_0x428029['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x211)]=0x232d]=_0x4d174b(0x211),_0x428029[_0x428029[_0x4d174b(0x294)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x428029[_0x428029[_0x4d174b(0xfe)]=0x2712]=_0x4d174b(0xfe),_0x428029[_0x428029[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x428029))(Os||{}),j=(_0x2d2dd0=>(_0x2d2dd0[_0x2d2dd0['UNIVER_UNKNOWN']=0x0]=_0x4d174b(0x144),_0x2d2dd0[_0x2d2dd0['UNIVER_DOC']=0x1]=_0x4d174b(0x2b7),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x202)]=0x2]=_0x4d174b(0x202),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x394)]=0x3]=_0x4d174b(0x394),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2d2dd0))(j||{}),I=(_0x2755ba=>(_0x2755ba[_0x2755ba[_0x4d174b(0x312)]=0x0]=_0x4d174b(0x312),_0x2755ba[_0x2755ba[_0x4d174b(0x3d2)]=0x1]=_0x4d174b(0x3d2),_0x2755ba[_0x2755ba[_0x4d174b(0xdc)]=0x2]=_0x4d174b(0xdc),_0x2755ba[_0x2755ba[_0x4d174b(0x1de)]=0x3]=_0x4d174b(0x1de),_0x2755ba[_0x2755ba[_0x4d174b(0x167)]=0x4]=_0x4d174b(0x167),_0x2755ba[_0x2755ba[_0x4d174b(0x389)]=0x5]=_0x4d174b(0x389),_0x2755ba[_0x2755ba[_0x4d174b(0x364)]=0x6]=_0x4d174b(0x364),_0x2755ba[_0x2755ba[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2755ba))(I||{}),$t=(_0x3e3bd8=>(_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x1c3)]=0x0]=_0x4d174b(0x1c3),_0x3e3bd8[_0x3e3bd8['OK']=0x1]='OK',_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x3aa)]=0x2]=_0x4d174b(0x3aa),_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x207)]=-0x1]='UNRECOGNIZED',_0x3e3bd8))($t||{}),vn=Object[_0x4d174b(0x1e3)],pn=Object[_0x4d174b(0x13f)],In=(_0x53f9fb,_0x1560c4,_0x29736d,_0x5e9847)=>{const _0x1b92b4=_0x4d174b;for(var _0x47c505=_0x5e9847>0x1?void 0x0:_0x5e9847?pn(_0x1560c4,_0x29736d):_0x1560c4,_0x179a66=_0x53f9fb[_0x1b92b4(0x2e1)]-0x1,_0x26f43f;_0x179a66>=0x0;_0x179a66--)(_0x26f43f=_0x53f9fb[_0x179a66])&&(_0x47c505=(_0x5e9847?_0x26f43f(_0x1560c4,_0x29736d,_0x47c505):_0x26f43f(_0x47c505))||_0x47c505);return _0x5e9847&&_0x47c505&&vn(_0x1560c4,_0x29736d,_0x47c505),_0x47c505;},qt=(_0xe1fed7,_0x115e12)=>(_0x4db2ac,_0x20a25d)=>_0x115e12(_0x4db2ac,_0x20a25d,_0xe1fed7);let te=class extends _0x3d777f{constructor(_0x84a8fd,_0xaed6fa){const _0x394555=_0x4d174b;super(),l(this,'_roomMembers',new Map()),(this[_0x394555(0x115)]=_0x84a8fd,this[_0x394555(0x2a4)]=_0xaed6fa,this[_0x394555(0xe4)](_0x521fe6(_0x4e0a85(this[_0x394555(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1['UNIVER_SHEET'])['pipe'](_0x120a2e(_0x5137dd=>_0x5137dd[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x2b7)])[_0x394555(0xbe)](_0x120a2e(_0x5a41d1=>_0x5a41d1[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x394)])[_0x394555(0xbe)](_0x120a2e(_0x2990ce=>_0x2990ce[_0x394555(0x150)]())))[_0x394555(0x269)](_0x1b4146=>this[_0x394555(0x218)](_0x1b4146)))));}['setCurrentUser'](_0x21d2a0){const _0x13bb11=_0x4d174b;this[_0x13bb11(0x2a4)][_0x13bb11(0x2d1)](_0x21d2a0);}[_0x4d174b(0x13b)](){const _0xd602cd=_0x4d174b;return this[_0xd602cd(0x2a4)]['getCurrentUser']();}[_0x4d174b(0x3f2)](_0x56286a,_0x1056c1){const _0x4e4a5b=_0x4d174b;let _0x2bcf62=this[_0x4e4a5b(0xbf)][_0x4e4a5b(0x135)](_0x56286a);_0x2bcf62||(_0x2bcf62=new En(),this[_0x4e4a5b(0xbf)]['set'](_0x56286a,_0x2bcf62)),_0x2bcf62[_0x4e4a5b(0x3f2)](_0x1056c1);}['removeMember'](_0xc76a09,_0x5e38c4){const _0x398022=_0x4d174b,_0x34027e=this['_roomMembers'][_0x398022(0x135)](_0xc76a09);_0x34027e&&_0x34027e[_0x398022(0x3af)](_0x5e38c4);}[_0x4d174b(0x336)](_0x4c2c5b){const _0x128cb1=_0x4d174b;return this[_0x128cb1(0xbf)][_0x128cb1(0x135)](_0x4c2c5b);}[_0x4d174b(0x35b)](_0x20abc9,_0x26997){const _0x56105c=_0x4d174b,_0xc2cd33=this['_roomMembers'][_0x56105c(0x135)](_0x20abc9);if(_0xc2cd33)return _0xc2cd33[_0x56105c(0x35b)](_0x26997);}['_removeRoom'](_0x11abbb){const _0x4585ee=_0x4d174b,_0x255364=this[_0x4585ee(0xbf)][_0x4585ee(0x135)](_0x11abbb);_0x255364&&(_0x255364[_0x4585ee(0x15b)](),this[_0x4585ee(0xbf)]['delete'](_0x11abbb));}['dispose'](){const _0x2189b4=_0x4d174b;this[_0x2189b4(0xbf)][_0x2189b4(0x1cb)](_0x3a8781=>_0x3a8781[_0x2189b4(0x15b)]()),this[_0x2189b4(0xbf)][_0x2189b4(0x295)]();}};te=In([qt(0x0,_0x2269ec),qt(0x1,_0x5b671c(_0x37f827))],te);class En extends _0x3d777f{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x569d33=_0x4d174b;this[_0x569d33(0x300)]['clear']();}[_0x4d174b(0x3f2)](_0x2ae8c5){const _0x4bb8a8=_0x4d174b;this[_0x4bb8a8(0x300)][_0x4bb8a8(0x34a)](_0x2ae8c5[_0x4bb8a8(0x2dc)],_0x2ae8c5);}[_0x4d174b(0x3af)](_0x2655b8){const _0x1d7b6c=_0x4d174b;this['_members'][_0x1d7b6c(0x3e4)](_0x2655b8);}[_0x4d174b(0x35b)](_0x2ace8f){const _0x63d7c9=_0x4d174b;return this[_0x63d7c9(0x300)][_0x63d7c9(0x135)](_0x2ace8f);}}function Cn(_0x240187){const _0x5d3ed3=_0x4d174b;var _0x1b87d1,_0x47976b,_0x430629,_0x5a7898;const _0x5e6f8e=_0x240187[_0x5d3ed3(0x299)],_0x24b3c0=JSON[_0x5d3ed3(0x2bb)](_0x5e6f8e);switch(_0x24b3c0[_0x5d3ed3(0x36a)]){case I[_0x5d3ed3(0x389)]:case I[_0x5d3ed3(0x3d2)]:{const _0x37d44d=_0x24b3c0[_0x5d3ed3(0x353)];return{..._0x24b3c0,'data':_0x37d44d,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0xdc)]:{const _0x3046a7=_0x24b3c0['joinRsp'];return{..._0x24b3c0,'data':_0x3046a7,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0x364)]:{const _0x564c5a=_0x24b3c0['collaMsg'];switch(_0x564c5a[_0x5d3ed3(0x10c)]){case _0x2c65dc['PERMISSION_REJ']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x1b87d1=_0x564c5a[_0x5d3ed3(0x127)])==null?void 0x0:_0x1b87d1['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x37a)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x47976b=_0x564c5a[_0x5d3ed3(0x1d9)])==null?void 0x0:_0x47976b['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3e5)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x430629=_0x564c5a[_0x5d3ed3(0xd9)])==null?void 0x0:_0x430629['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x17c)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x5a7898=_0x564c5a[_0x5d3ed3(0x227)])==null?void 0x0:_0x5a7898['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['UPDATE_CURSOR']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['updateCursorEvent']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x362)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x384)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3f4)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['leaveEvent']},'cmd':_0x24b3c0['cmd']};case _0x2c65dc[_0x5d3ed3(0x275)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x2c9)]:case _0x2c65dc['LIVESHARE_OPERATION']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['liveShareOperation']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['LIVESHARE_TERMINATE']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x212)]:return{..._0x24b3c0,'data':_0x564c5a,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3a1)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x21c)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x374)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x2cd)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['SHOULD_CLOSE_CONN']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x226)]},'cmd':_0x24b3c0['cmd']};default:return _0x24b3c0;}}default:return _0x24b3c0;}}function bn(_0x5eab42){const _0x9148a5=_0x4d174b;switch(_0x5eab42[_0x9148a5(0x36a)]){case I[_0x9148a5(0x389)]:case I['HELLO']:return JSON[_0x9148a5(0x296)]({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)]});case I['INGEST']:{let _0x4de16a;switch(_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x10c)]){case _0x2c65dc[_0x9148a5(0x301)]:{_0x4de16a={'eventID':_0x2c65dc['UPDATE_CURSOR'],'updateCursorEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc['USERS_LEAVE']:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x3f4)],'leaveEvent':_0x5eab42[_0x9148a5(0x299)]['data']};break;}case _0x2c65dc[_0x9148a5(0x362)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x362)],'joinEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x275)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x275)],'liveShareNewHost':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x350)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x350)],'liveShareOperation':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x245)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x245)],'liveShareTerminate':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x307)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x307)],'liveShareRequestHost':_0x5eab42['data'][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x2c9)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x2c9)]};break;}default:_0x4de16a={'eventID':_0x5eab42['data'][_0x9148a5(0x10c)]};}return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'collaMsg':_0x4de16a});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'joinReq':_0x5eab42[_0x9148a5(0x299)]});case I[_0x9148a5(0x1de)]:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42['routeKey'],'leaveReq':_0x5eab42[_0x9148a5(0x299)]});default:throw new Error(_0x9148a5(0x1c5));}}var Tn=Object['defineProperty'],Rn=Object[_0x4d174b(0x13f)],On=(_0x1fb2fe,_0x58f6e3,_0x4a3967,_0x4546b)=>{const _0xd58577=_0x4d174b;for(var _0x15348b=_0x4546b>0x1?void 0x0:_0x4546b?Rn(_0x58f6e3,_0x4a3967):_0x58f6e3,_0x7808a2=_0x1fb2fe[_0xd58577(0x2e1)]-0x1,_0x54a770;_0x7808a2>=0x0;_0x7808a2--)(_0x54a770=_0x1fb2fe[_0x7808a2])&&(_0x15348b=(_0x4546b?_0x54a770(_0x58f6e3,_0x4a3967,_0x15348b):_0x54a770(_0x15348b))||_0x15348b);return _0x4546b&&_0x15348b&&Tn(_0x58f6e3,_0x4a3967,_0x15348b),_0x15348b;},Ee=(_0x5bbf2e,_0x5e8e65)=>(_0x560279,_0x5dbae9)=>_0x5e8e65(_0x560279,_0x5dbae9,_0x5bbf2e);const Ds=_0x20ae42(_0x4d174b(0x23e));function Dn(_0x1fd817,_0x53ecf0,_0x45277d){const _0x9deb63=_0x4d174b;return _0x1fd817+'/'+_0x53ecf0+_0x9deb63(0x2f5)+_0x45277d+'/new_changes';}let vt=class{constructor(_0x42475c,_0xb8e332,_0x535edf,_0x1ea24e,_0x5b3dd9){const _0x4c6268=_0x4d174b;this['_http']=_0x42475c,this[_0x4c6268(0x292)]=_0xb8e332,this[_0x4c6268(0x229)]=_0x535edf,this['_logService']=_0x1ea24e,this[_0x4c6268(0x191)]=_0x5b3dd9;}[_0x4d174b(0x3b0)](_0x1143d7){const _0x31629a=_0x4d174b,_0x36fd61=this[_0x31629a(0x292)][_0x31629a(0x3b0)](_0x1143d7);if(!_0x36fd61)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1bdd58=new _0x57d5bc(),_0x1c2345=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0x25c)][_0x31629a(0x269)](_0x5acdf9=>_0x1c2345['next'](_0x5acdf9)))),_0x1bdd58['add'](_0x521fe6(()=>_0x1c2345[_0x31629a(0x25e)]()));const _0x2af0ba=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0xf4)][_0x31629a(0x269)](_0x3f2d5a=>_0x2af0ba[_0x31629a(0xe2)](_0x3f2d5a)))),_0x1bdd58[_0x31629a(0x130)](_0x521fe6(()=>_0x2af0ba[_0x31629a(0x25e)]()));const _0x556c21=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61['message$'][_0x31629a(0x269)](_0x4b0b4c=>{const _0x235952=Cn(_0x4b0b4c);_0x556c21['next'](_0x235952);}))),_0x1bdd58['add'](_0x521fe6(()=>_0x556c21['complete']()));const _0x15cc0d=()=>{const _0x459391=_0x31629a;_0x2af0ba[_0x459391(0xe2)](new Event(_0x459391(0x3cf))),_0x1c2345[_0x459391(0xe2)](new CloseEvent(_0x459391(0x3cf))),_0x39a0c3[_0x459391(0x1ef)]();},_0x39a0c3={'memberID':'','close$':_0x1c2345[_0x31629a(0x3bd)](),'error$':_0x2af0ba[_0x31629a(0x3bd)](),'open$':_0x36fd61[_0x31629a(0x30c)],'message$':_0x556c21[_0x31629a(0x3bd)](),'send':_0x377789=>{const _0xac9769=_0x31629a;if(_0x377789[_0xac9769(0x36a)]===I[_0xac9769(0x167)]){if(_0x377789['data']['eventID']===_0x2c65dc[_0xac9769(0x2c7)]){this[_0xac9769(0x2a0)](_0x39a0c3,_0x377789[_0xac9769(0x299)])[_0xac9769(0x140)](_0x8fd4aa=>{const _0x5ce2a6=_0xac9769;this[_0x5ce2a6(0x30a)][_0x5ce2a6(0xba)](_0x8fd4aa),_0x15cc0d();});return;}if(_0x377789[_0xac9769(0x299)][_0xac9769(0x10c)]===_0x2c65dc[_0xac9769(0x133)]){const _0x3764e1=_0x377789[_0xac9769(0x299)];this[_0xac9769(0xcb)](_0x3764e1)[_0xac9769(0x346)](_0x1ae01c=>{const _0x2cb990=_0xac9769;_0x556c21[_0x2cb990(0xe2)]({'cmd':I[_0x2cb990(0x364)],'code':$t['OK'],'routeKey':_0x3764e1['data'][_0x2cb990(0x1e2)],'routeType':'','data':{'eventID':_0x2c65dc['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1ae01c}}});})[_0xac9769(0x140)](_0xe6031d=>{this['_logService']['error'](_0xe6031d),_0x15cc0d();});return;}}_0x36fd61[_0xac9769(0x2c4)](bn(_0x377789));},'close':()=>{const _0x5ca0b8=_0x31629a;_0x36fd61['close'](),_0x1bdd58[_0x5ca0b8(0x15b)]();}};return _0x39a0c3;}async[_0x4d174b(0x2a0)](_0x201ecf,_0x26a4f8){const _0x47b60f=_0x4d174b;var _0xb2b1b0;const {unitType:_0x37ba0e,unitID:_0x10f426,changeset:_0x425af7}=_0x26a4f8['data'],_0x586d79={'unitID':_0x10f426,'memberID':_0x201ecf[_0x47b60f(0x2dc)],'type':_0x37ba0e,'changeset':_0x24fcaf(_0x425af7)},_0x1b1470=Dn((_0xb2b1b0=this[_0x47b60f(0x229)][_0x47b60f(0x1f0)](mn))!=null?_0xb2b1b0:fn,_0x37ba0e,_0x10f426);try{await this[_0x47b60f(0x27a)][_0x47b60f(0x14f)](_0x1b1470,{'body':_0x586d79});}catch(_0x4fe784){throw this[_0x47b60f(0x30a)][_0x47b60f(0xba)](_0x47b60f(0x3cc),_0x47b60f(0x118)),_0x4fe784;}}async[_0x4d174b(0xcb)](_0x3c3788){const _0x16efce=_0x4d174b,{unitID:_0x5ca759,from:_0x3125d4,to:_0x3fc59f,unitType:_0x1e5cf1}=_0x3c3788['data'];return(await this[_0x16efce(0x191)][_0x16efce(0x11b)]({'metadata':void 0x0},{'unitID':_0x5ca759,'type':_0x1e5cf1,'from':_0x3125d4,'to':_0x3fc59f}))[_0x16efce(0x3e0)];}};vt=On([Ee(0x0,_0x5b671c(_0x45a59b)),Ee(0x1,_0x5b671c(_0x260c27)),Ee(0x2,_0x15fd76),Ee(0x3,_0x50a504),Ee(0x4,_0x31fed6)],vt);class Ps{constructor(){const _0x38066f=_0x4d174b;l(this,_0x38066f(0x3f1),new _0x49ef1a()),l(this,_0x38066f(0x19e),this['_commentUpdate$'][_0x38066f(0x3bd)]());}[_0x4d174b(0xc4)](_0x58ee77){const _0x1d50a6=_0x4d174b;this[_0x1d50a6(0x3f1)][_0x1d50a6(0xe2)](_0x58ee77);}}var Pn=Object[_0x4d174b(0x1e3)],wn=Object[_0x4d174b(0x13f)],ws=(_0x550767,_0x4bf563,_0x270f22,_0x3ffaa8)=>{const _0xbbd0b6=_0x4d174b;for(var _0x4c5efa=_0x3ffaa8>0x1?void 0x0:_0x3ffaa8?wn(_0x4bf563,_0x270f22):_0x4bf563,_0x511ad3=_0x550767[_0xbbd0b6(0x2e1)]-0x1,_0x45385d;_0x511ad3>=0x0;_0x511ad3--)(_0x45385d=_0x550767[_0x511ad3])&&(_0x4c5efa=(_0x3ffaa8?_0x45385d(_0x4bf563,_0x270f22,_0x4c5efa):_0x45385d(_0x4c5efa))||_0x4c5efa);return _0x3ffaa8&&_0x4c5efa&&Pn(_0x4bf563,_0x270f22,_0x4c5efa),_0x4c5efa;},M=(_0x3c2025,_0x37724e)=>(_0x25cba6,_0x304d04)=>_0x37724e(_0x25cba6,_0x304d04,_0x3c2025),de=(_0x2f151f=>(_0x2f151f[_0x2f151f['IDLE']=0x0]=_0x4d174b(0x255),_0x2f151f[_0x2f151f['JOINING']=0x1]=_0x4d174b(0x3ef),_0x2f151f[_0x2f151f[_0x4d174b(0x1fa)]=0x2]=_0x4d174b(0x1fa),_0x2f151f[_0x2f151f[_0x4d174b(0x2cb)]=0x3]=_0x4d174b(0x2cb),_0x2f151f))(de||{});let pt=class extends _0x52c754{constructor(_0x35df67,_0x2e81ea,_0x11da7a,_0x124e4b,_0xf8dccd,_0x979b5a,_0x55c539,_0x419cc0,_0x2989c9){const _0x175a83=_0x4d174b;super(),l(this,_0x175a83(0x228),new _0x16da12(0x0)),l(this,'sessionStatus$',this[_0x175a83(0x228)]['asObservable']()),l(this,_0x175a83(0x1a6),new _0x49ef1a()),l(this,_0x175a83(0x1a9),this[_0x175a83(0x1a6)][_0x175a83(0x3bd)]()),l(this,_0x175a83(0x17d)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x35df67,this[_0x175a83(0x30a)]=_0x11da7a,this[_0x175a83(0x225)]=_0x124e4b,this[_0x175a83(0x22b)]=_0xf8dccd,this['_configService']=_0x979b5a,this[_0x175a83(0x13d)]=_0x55c539,this[_0x175a83(0x2d9)]=_0x419cc0,this['_commentService']=_0x2989c9,_0x2e81ea['pipe'](_0x21a0e1(this['dispose$']))[_0x175a83(0x269)](_0x103085=>{const _0x36840b=_0x175a83;var _0x1ded2a;typeof _0x103085>'u'||(this[_0x36840b(0x17d)]=_0x103085,_0x103085?(this[_0x36840b(0x344)](_0x103085),this[_0x36840b(0x279)]=this[_0x36840b(0x17d)][_0x36840b(0x1e5)][_0x36840b(0x269)](_0x3f1df2=>{const _0x27d393=_0x36840b;_0x3f1df2[_0x27d393(0x386)]===this['_unitID']&&this[_0x27d393(0x203)](_0x3f1df2);})):(this[_0x36840b(0x228)][_0x36840b(0xe2)](0x2),(_0x1ded2a=this[_0x36840b(0x279)])==null||_0x1ded2a[_0x36840b(0xc6)](),this[_0x36840b(0x279)]=null));}),this[_0x175a83(0xe4)](this[_0x175a83(0x225)][_0x175a83(0x2da)](()=>{const _0x292ac9=_0x175a83;var _0xb0cf29;(_0xb0cf29=this['_socket'])==null||_0xb0cf29[_0x292ac9(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x292ac9(0x1ab)]}});})));}get['sessionStatus'](){const _0x485f83=_0x4d174b;return this[_0x485f83(0x228)][_0x485f83(0x257)]();}[_0x4d174b(0x33c)](){const _0x3b715e=_0x4d174b;var _0x429d9a,_0x2b9889;return(_0x2b9889=(_0x429d9a=this[_0x3b715e(0x17d)])==null?void 0x0:_0x429d9a[_0x3b715e(0x2dc)])!=null?_0x2b9889:null;}[_0x4d174b(0x15b)](){const _0x539aba=_0x4d174b;super[_0x539aba(0x15b)](),this[_0x539aba(0xdd)]['next'](),this['dispose$']['complete']();}[_0x4d174b(0x1ef)](){const _0x2be7c5=_0x4d174b;var _0x425e5b,_0x390cd8;(_0x425e5b=this['_socket'])==null||_0x425e5b[_0x2be7c5(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}}),this[_0x2be7c5(0x1a6)]['complete'](),this[_0x2be7c5(0x228)][_0x2be7c5(0x25e)](),(_0x390cd8=this['_socket'])==null||_0x390cd8[_0x2be7c5(0x1ef)](),this[_0x2be7c5(0x15b)]();}[_0x4d174b(0x203)](_0x42454e){const _0x28a798=_0x4d174b;_0x42454e['cmd']===I[_0x28a798(0xdc)]?this[_0x28a798(0x1dd)](_0x42454e):_0x42454e[_0x28a798(0x36a)]===I[_0x28a798(0x364)]&&this[_0x28a798(0x376)](_0x42454e);}['_joinRoom'](_0x532766){const _0x541728=_0x4d174b;this['_sessionStatus$'][_0x541728(0xe2)](0x1),_0x532766[_0x541728(0x2c4)]({'cmd':I[_0x541728(0xdc)],'routeKey':this[_0x541728(0x1ab)],'routeType':'','data':{'rooms':[{'roomID':this[_0x541728(0x1ab)]}]}});}[_0x4d174b(0x1dd)](_0x4b28de){const _0x44b1a0=_0x4d174b;var _0x374462;if(_0x4b28de['code']===$t[_0x44b1a0(0x3aa)]){this[_0x44b1a0(0x22b)][_0x44b1a0(0x199)]({'type':_0x17d4c8['Warning'],'content':this[_0x44b1a0(0x13d)]['t']('session.room-full')}),this['_sessionStatus$'][_0x44b1a0(0xe2)](0x2);return;}this[_0x44b1a0(0x228)][_0x44b1a0(0xe2)](0x3);const _0x168f34=(_0x374462=_0x4b28de[_0x44b1a0(0x299)]['roomInfos'][this[_0x44b1a0(0x1ab)]])==null?void 0x0:_0x374462[_0x44b1a0(0x3dd)];_0x168f34&&_0x168f34[_0x44b1a0(0x1cb)](_0x55da04=>this['_memberService'][_0x44b1a0(0x3f2)](this[_0x44b1a0(0x1ab)],_0x55da04));}[_0x4d174b(0x376)](_0x3c19be){const _0x158cad=_0x4d174b;try{const _0x4df61a=_0x3c19be[_0x158cad(0x299)];switch(_0x4df61a[_0x158cad(0x10c)]){case _0x2c65dc['USERS_ENTER']:this[_0x158cad(0x345)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3f4)]:this[_0x158cad(0x224)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc['CHANGESET_ACK']:this[_0x158cad(0x164)](),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x212)]:this[_0x158cad(0x30a)][_0x158cad(0xba)](_0x158cad(0x3c5)+JSON[_0x158cad(0x296)](_0x4df61a)),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3a1)]:this[_0x158cad(0xf9)][_0x158cad(0xc4)](_0x4df61a['data']),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;default:this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);}}catch(_0xfc3b3e){this[_0x158cad(0x30a)][_0x158cad(0xba)](_0xfc3b3e,_0x3c19be);}}[_0x4d174b(0x345)](_0x29285b){const _0x3a066f=_0x4d174b;this[_0x3a066f(0x2d9)][_0x3a066f(0x3f2)](this[_0x3a066f(0x1ab)],_0x29285b[_0x3a066f(0x299)]);}[_0x4d174b(0x224)](_0x26a7bd){const _0x559521=_0x4d174b;this[_0x559521(0x2d9)]['removeMember'](this[_0x559521(0x1ab)],_0x26a7bd['data'][_0x559521(0x2dc)]);}async[_0x4d174b(0x2c4)](_0x1c64bc,_0x20b073){const _0x564cc7=_0x4d174b;if(this[_0x564cc7(0x19f)]!==0x3||!this[_0x564cc7(0x17d)])throw new Error(_0x564cc7(0x32a));try{_0x1c64bc[_0x564cc7(0x10c)]===_0x2c65dc[_0x564cc7(0x3e5)]&&this[_0x564cc7(0x1f3)](),this[_0x564cc7(0x17d)][_0x564cc7(0x2c4)]({'cmd':I[_0x564cc7(0x167)],'routeKey':_0x20b073,'routeType':'','data':_0x1c64bc});}catch(_0x55fe34){this['_logService'][_0x564cc7(0xba)](_0x55fe34);}}[_0x4d174b(0x1f3)](){const _0x313c48=_0x4d174b;var _0x385045;this[_0x313c48(0x1fd)]=window[_0x313c48(0x1d8)](()=>{const _0x507cc1=_0x313c48;this[_0x507cc1(0x1fd)]=null,this['_messageService'][_0x507cc1(0x199)]({'type':_0x17d4c8[_0x507cc1(0x355)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x385045=this['_configService'][_0x313c48(0x1f0)](Ts))!=null?_0x385045:Rs);}[_0x4d174b(0x164)](){const _0x390275=_0x4d174b;this[_0x390275(0x1fd)]&&(clearTimeout(this[_0x390275(0x1fd)]),this[_0x390275(0x1fd)]=null);}};pt=ws([M(0x2,_0x50a504),M(0x3,_0x1799ae),M(0x4,_0x1e8990),M(0x5,_0x15fd76),M(0x6,_0x5b671c(_0x35ebff)),M(0x7,_0x5b671c(te)),M(0x8,_0x5b671c(Ps))],pt);let ge=class extends _0x3d777f{constructor(_0x74857d,_0x2795c3,_0x11a8f4,_0x19e23e,_0x5562d0,_0xf43155){const _0x47cebd=_0x4d174b;super(),l(this,'_socket$',new _0x16da12(void 0x0)),l(this,'_sessions',new Map()),l(this,'_status$',new _0x16da12(0x0)),l(this,_0x47cebd(0x2d8),this[_0x47cebd(0x259)][_0x47cebd(0x3bd)]()),l(this,'_socketReady',!0x1),l(this,_0x47cebd(0x1f7)),l(this,'_timeoutTimer'),l(this,_0x47cebd(0x2e6)),l(this,_0x47cebd(0x26d),0x0),(this[_0x47cebd(0x36e)]=_0x74857d,this[_0x47cebd(0x13d)]=_0x2795c3,this[_0x47cebd(0x22b)]=_0x11a8f4,this['_logService']=_0x19e23e,this[_0x47cebd(0x229)]=_0x5562d0,this[_0x47cebd(0x2ca)]=_0xf43155);}get[_0x4d174b(0x17d)](){const _0x360763=_0x4d174b;return this['_socket$'][_0x360763(0x257)]();}['dispose'](){const _0x1df9cf=_0x4d174b;super[_0x1df9cf(0x15b)](),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x1cb)](_0x5f33d7=>_0x5f33d7['dispose']()),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x295)](),this[_0x1df9cf(0x259)]['complete']();}async[_0x4d174b(0x2eb)](_0x30125c){const _0x510fe2=_0x4d174b;if(this[_0x510fe2(0x2a7)]['has'](_0x30125c))return this[_0x510fe2(0x2a7)][_0x510fe2(0x135)](_0x30125c);this['_tryEnsureSocket']();const _0x4f4965=this[_0x510fe2(0x36e)][_0x510fe2(0x3d3)](pt,_0x30125c,this[_0x510fe2(0x39b)][_0x510fe2(0x3bd)]());return this[_0x510fe2(0x2a7)][_0x510fe2(0x34a)](_0x30125c,_0x4f4965),_0x4f4965;}[_0x4d174b(0x305)](_0x3f757f){const _0x38a3b5=_0x4d174b;var _0x2d6ab4;const _0x89e1c3=this[_0x38a3b5(0x2a7)][_0x38a3b5(0x135)](_0x3f757f);_0x89e1c3&&(this[_0x38a3b5(0x2a7)][_0x38a3b5(0x3e4)](_0x3f757f),_0x89e1c3['close']()),this[_0x38a3b5(0x2a7)][_0x38a3b5(0x262)]||(_0x2d6ab4=this[_0x38a3b5(0x17d)])==null||_0x2d6ab4[_0x38a3b5(0x1ef)]();}[_0x4d174b(0x32d)](){const _0x923d36=_0x4d174b;var _0x38d8a0;const _0x15d8d2=(_0x38d8a0=this['_configService']['getConfig'](nn))!=null?_0x38d8a0:rn;return this[_0x923d36(0x2ca)][_0x923d36(0x3b0)](_0x15d8d2);}[_0x4d174b(0x1e1)](){const _0xa35cc0=_0x4d174b;try{const _0x183fcf=this[_0xa35cc0(0x32d)]();if(_0x183fcf){const _0x50a938=_0x183fcf['send'];_0x183fcf['send']=_0x28b939=>(this[_0xa35cc0(0x322)](),_0x50a938[_0xa35cc0(0xfb)](_0x183fcf,[_0x28b939])),_0x183fcf[_0xa35cc0(0x1e5)][_0xa35cc0(0x269)](_0x1528f7=>this[_0xa35cc0(0x3de)](_0x183fcf,_0x1528f7)),_0x183fcf[_0xa35cc0(0xf4)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](_0x2a24a=>this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a24a)),_0x183fcf[_0xa35cc0(0x30c)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](()=>{const _0x566e8d=_0xa35cc0;this[_0x566e8d(0x324)](_0x183fcf);}),_0x183fcf[_0xa35cc0(0x25c)]['pipe'](_0x15818d(0x1))['subscribe'](_0x295482=>{const _0x25cfcd=_0xa35cc0;this[_0x25cfcd(0x30a)][_0x25cfcd(0x24d)]('[CollaborationSessionService]',_0x25cfcd(0xd1),_0x295482),this['_onConnectionFailed']();});}}catch(_0x3374c1){this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)](_0x3374c1),this[_0xa35cc0(0x31e)]();}}[_0x4d174b(0x324)](_0x14d7e1){const _0x40f610=_0x4d174b;this[_0x40f610(0x30a)][_0x40f610(0x24d)](_0x40f610(0x2fc),_0x40f610(0x337)),_0x14d7e1[_0x40f610(0x2c4)]({'cmd':I['HELLO']}),this[_0x40f610(0x322)]();}[_0x4d174b(0x31e)](){const _0x1e9a37=_0x4d174b;var _0x105f05;this[_0x1e9a37(0x259)][_0x1e9a37(0xe2)](0x2),this['_socket$']['next'](null),this[_0x1e9a37(0x267)](),this[_0x1e9a37(0x121)](),this[_0x1e9a37(0x325)]=!0x1,this[_0x1e9a37(0x26d)]<((_0x105f05=this[_0x1e9a37(0x229)]['getConfig'](ln))!=null?_0x105f05:_n)?(this[_0x1e9a37(0x14a)](this[_0x1e9a37(0x26d)]),this[_0x1e9a37(0x26d)]+=0x1):this[_0x1e9a37(0x22b)]['show']({'type':_0x17d4c8['Error'],'content':this[_0x1e9a37(0x13d)]['t'](_0x1e9a37(0x331))});}[_0x4d174b(0x14a)](_0x50d9f0){const _0x47c95d=_0x4d174b;var _0x4ddb4d;const _0x3cf421=((_0x4ddb4d=this[_0x47c95d(0x229)]['getConfig'](cn))!=null?_0x4ddb4d:hn)*0x2**_0x50d9f0;this[_0x47c95d(0x22b)][_0x47c95d(0x199)]({'type':_0x17d4c8[_0x47c95d(0x14e)],'content':this[_0x47c95d(0x13d)]['t'](_0x47c95d(0x137))}),this[_0x47c95d(0x2e6)]=setTimeout(()=>{const _0x2c9e04=_0x47c95d;this[_0x2c9e04(0x1e1)](),clearTimeout(this[_0x2c9e04(0x2e6)]),this[_0x2c9e04(0x2e6)]=null;},_0x3cf421);}[_0x4d174b(0x322)](){const _0x51f18a=_0x4d174b;var _0x5de40f;this[_0x51f18a(0x121)](),this[_0x51f18a(0x1f7)]=setTimeout(()=>this[_0x51f18a(0x326)](),(_0x5de40f=this[_0x51f18a(0x229)]['getConfig'](on))!=null?_0x5de40f:an);}['_sendHeartbeat'](){const _0x2281a5=_0x4d174b;this['_socket'][_0x2281a5(0x2c4)]({'cmd':I[_0x2281a5(0x389)]}),this[_0x2281a5(0x363)]();}[_0x4d174b(0x363)](){const _0x250a72=_0x4d174b;var _0x89e0f8;this[_0x250a72(0x238)]=setTimeout(()=>this[_0x250a72(0x31e)](),(_0x89e0f8=this['_configService'][_0x250a72(0x1f0)](Ts))!=null?_0x89e0f8:Rs);}['_onMessage'](_0x4d1294,_0x2484c9){const _0x3c7248=_0x4d174b,{cmd:_0x25a2a3}=_0x2484c9;_0x25a2a3===I[_0x3c7248(0x3d2)]&&!this['_socketReady']&&(_0x4d1294[_0x3c7248(0x2dc)]=_0x2484c9[_0x3c7248(0x299)]['memberID'],this[_0x3c7248(0x39b)][_0x3c7248(0xe2)](_0x4d1294),this['_status$'][_0x3c7248(0xe2)](0x3),this['_socketReady']=!0x0),_0x25a2a3===I['HEARTBEAT']&&this[_0x3c7248(0x267)](),this[_0x3c7248(0x322)]();}[_0x4d174b(0x121)](){const _0x358e45=_0x4d174b;this[_0x358e45(0x1f7)]!=null&&(clearTimeout(this[_0x358e45(0x1f7)]),this[_0x358e45(0x1f7)]=null);}[_0x4d174b(0x267)](){const _0x9fd372=_0x4d174b;this[_0x9fd372(0x238)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x9fd372(0x238)]=null);}};ge=ws([M(0x0,_0x5b671c(_0x49e10e)),M(0x1,_0x5b671c(_0x35ebff)),M(0x2,_0x1e8990),M(0x3,_0x50a504),M(0x4,_0x15fd76),M(0x5,Ds)],ge);var Nn=Object['defineProperty'],Mn=Object[_0x4d174b(0x13f)],An=(_0x402665,_0x485fed,_0x2d5349,_0x4bcb17)=>{const _0x3b5b82=_0x4d174b;for(var _0x58c876=_0x4bcb17>0x1?void 0x0:_0x4bcb17?Mn(_0x485fed,_0x2d5349):_0x485fed,_0x53b45f=_0x402665[_0x3b5b82(0x2e1)]-0x1,_0x1cde2f;_0x53b45f>=0x0;_0x53b45f--)(_0x1cde2f=_0x402665[_0x53b45f])&&(_0x58c876=(_0x4bcb17?_0x1cde2f(_0x485fed,_0x2d5349,_0x58c876):_0x1cde2f(_0x58c876))||_0x58c876);return _0x4bcb17&&_0x58c876&&Nn(_0x485fed,_0x2d5349,_0x58c876),_0x58c876;},Ce=(_0x53aa70,_0x47d7a1)=>(_0x44bf9a,_0xdb6a2b)=>_0x47d7a1(_0x44bf9a,_0xdb6a2b,_0x53aa70);let O=class extends _0x3d777f{constructor(_0x202f46,_0x127acf,_0x24f30c,_0x31bc95,_0x26af17){const _0x369d52=_0x4d174b;super(),l(this,'_cachedData',new Map()),l(this,_0x369d52(0x3ee),new Map()),l(this,_0x369d52(0x34d),!0x1),(this[_0x369d52(0x229)]=_0x202f46,this[_0x369d52(0x17f)]=_0x127acf,this['_beforeCloseService']=_0x24f30c,this['_localeService']=_0x31bc95,this['_revisionService']=_0x26af17,this[_0x369d52(0x2ae)]());}[_0x4d174b(0x11c)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x4d42fb=_0x4d174b;this[_0x4d42fb(0x34d)]=!0x1;}[_0x4d174b(0x15b)](){const _0x338f20=_0x4d174b;this[_0x338f20(0x1d6)]()[_0x338f20(0x346)](()=>super[_0x338f20(0x15b)]());}async[_0x4d174b(0x2f9)](_0x572a08){const _0x2454ea=_0x4d174b;return this[_0x2454ea(0x34d)]?null:this[_0x2454ea(0x17f)]['getItem'](zt(_0x572a08));}async['saveOfflineData'](_0x4a093c,_0x3d8a46){const _0x519c8d=_0x4d174b;return!!this[_0x519c8d(0x17f)][_0x519c8d(0x3a6)](_0x4a093c,_0x3d8a46);}[_0x4d174b(0x25d)](_0x2e86f3,_0x4340f0,_0x47b4a5,_0x4f10af){const _0xd09bdf=_0x4d174b,_0x30ef61=this[_0xd09bdf(0x197)]['getCurrentRevForDocument'](_0x2e86f3);this['_cachedData'][_0xd09bdf(0x34a)](_0x2e86f3,{'unitID':_0x2e86f3,'type':_0x4340f0,'awaitingChangeset':_0x47b4a5,'mutations':_0x4f10af,'rev':_0x30ef61}),this[_0xd09bdf(0x3ee)][_0xd09bdf(0x37c)](_0x2e86f3)||this[_0xd09bdf(0xfa)](_0x2e86f3);}[_0x4d174b(0xfa)](_0x3d5f0d){const _0x548d35=_0x4d174b,_0x5ef522=this['_getSaveTimeout']();_0x5ef522===0x0?this[_0x548d35(0x1be)](_0x3d5f0d):this[_0x548d35(0x3ee)][_0x548d35(0x34a)](_0x3d5f0d,setTimeout(()=>this[_0x548d35(0x1be)](_0x3d5f0d),_0x5ef522));}[_0x4d174b(0x1e0)](){const _0x226206=_0x4d174b;var _0x5ec1e2;return(_0x5ec1e2=this[_0x226206(0x229)]['getConfig'](un))!=null?_0x5ec1e2:dn;}[_0x4d174b(0x1be)](_0x4ac7d4){const _0xaecec6=_0x4d174b,_0x73e08e=this[_0xaecec6(0x3ee)][_0xaecec6(0x135)](_0x4ac7d4);return _0x73e08e!==void 0x0&&window[_0xaecec6(0x175)](_0x73e08e),this[_0xaecec6(0x17f)][_0xaecec6(0x3a6)](zt(_0x4ac7d4),this[_0xaecec6(0x146)]['get'](_0x4ac7d4))['then'](()=>this[_0xaecec6(0x3ee)]['delete'](_0x4ac7d4));}async['exhaustSavingTask'](){const _0x479f0c=_0x4d174b,_0x1e38a7=[];this[_0x479f0c(0x3ee)][_0x479f0c(0x1cb)]((_0x5b864e,_0x185ccd)=>{const _0x42b3a6=_0x479f0c;window[_0x42b3a6(0x175)](_0x5b864e),_0x1e38a7[_0x42b3a6(0x328)](this[_0x42b3a6(0x1be)](_0x185ccd)[_0x42b3a6(0x346)](()=>{const _0x34212a=_0x42b3a6;this['_saveTaskMap'][_0x34212a(0x3e4)](_0x185ccd);}));}),await Promise[_0x479f0c(0x2e8)](_0x1e38a7);}['_setupBeforeClosingHandler'](){const _0x1cdfa6=_0x4d174b;this[_0x1cdfa6(0xe4)](this[_0x1cdfa6(0x225)][_0x1cdfa6(0x1ba)](()=>{const _0x26dac0=_0x1cdfa6;if(this[_0x26dac0(0x3ee)]['size'])return this[_0x26dac0(0x13d)]['t'](_0x26dac0(0xe9));}));}};O=An([Ce(0x0,_0x15fd76),Ce(0x1,_0x195f5f),Ce(0x2,_0x1799ae),Ce(0x3,_0x5b671c(_0x35ebff)),Ce(0x4,_0x5b671c(_0x5d7349))],O);function zt(_0x153465){const _0x3ec3c2=_0x4d174b;return _0x3ec3c2(0x323)+_0x153465;}const et=_0x20ae42(_0x4d174b(0x1f6));var Ns=(_0x5cddf6=>(_0x5cddf6[_0x5cddf6[_0x4d174b(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5cddf6[_0x5cddf6[_0x4d174b(0x34f)]=0x1]='OTHER_CLIENTS_EDITING',_0x5cddf6))(Ns||{});const Zt=0x7530,Qt=_0x4d174b(0xd8);class yn extends _0x3d777f{constructor(){const _0x271b02=_0x4d174b;super(),l(this,'_id',_0x1053dd[_0x271b02(0x31d)]()),l(this,_0x271b02(0x188),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x271b02(0x30e),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x271b02(0x2a3),new Map()),this[_0x271b02(0x2a6)]();}[_0x4d174b(0x15b)](){const _0xd7ec4a=_0x4d174b;super[_0xd7ec4a(0x15b)](),this[_0xd7ec4a(0x3d4)][_0xd7ec4a(0x1cb)]((_0x42e30a,_0x4ef13f)=>this[_0xd7ec4a(0x13e)](_0x4ef13f)),this[_0xd7ec4a(0x30e)]&&window[_0xd7ec4a(0x254)](this[_0xd7ec4a(0x30e)]);}['getUnitStatus$'](_0x59f66b){const _0x607829=_0x4d174b;return this[_0x607829(0x317)](_0x59f66b)[_0x607829(0xbe)](_0x44a041());}[_0x4d174b(0x2be)](_0x4b3896){const _0x135a1b=_0x4d174b;this[_0x135a1b(0x188)][_0x135a1b(0x262)]===0x0&&this[_0x135a1b(0x263)](),this[_0x135a1b(0x188)]['add'](_0x4b3896),this['_send']({'type':0x0,'memberID':this[_0x135a1b(0x379)],'unitIDs':[_0x4b3896],'isForwarded':!0x1});}['disposeUnit'](_0x4a3c63){const _0x5e8928=_0x4d174b;this[_0x5e8928(0x188)][_0x5e8928(0x3e4)](_0x4a3c63),this['_selfUnitIDs']['size']===0x0&&this[_0x5e8928(0x30e)]&&window[_0x5e8928(0x254)](this[_0x5e8928(0x30e)]);}[_0x4d174b(0x2a6)](){const _0x3056cb=_0x4d174b;this['disposeWithMe'](_0x521fe6(_0x2a799c(window,_0x3056cb(0xf5))[_0x3056cb(0x269)](_0x2adf85=>{const _0x2bd001=_0x3056cb;if(_0x2adf85[_0x2bd001(0x1d7)]!==Qt||!_0x2adf85[_0x2bd001(0x179)])return;const _0x56a0e8=JSON[_0x2bd001(0x2bb)](_0x2adf85[_0x2bd001(0x179)]);this[_0x2bd001(0x358)](_0x56a0e8);}))),window[_0x3056cb(0x183)]('unload',()=>this[_0x3056cb(0x1f5)]({'type':0x1,'memberID':this[_0x3056cb(0x379)],'unitIDs':Array['from'](this[_0x3056cb(0x188)])}));}[_0x4d174b(0x358)](_0x1489af){const _0x2c6fc7=_0x4d174b;switch(_0x1489af[_0x2c6fc7(0x13a)]){case 0x0:this[_0x2c6fc7(0x22f)](_0x1489af);break;case 0x1:this[_0x2c6fc7(0x29c)](_0x1489af);break;case 0x2:this[_0x2c6fc7(0x309)](_0x1489af);break;}}[_0x4d174b(0x22f)](_0x523739){const _0x37d3df=_0x4d174b,{unitIDs:_0x2e1e6b,memberID:_0x51ba12,isForwarded:_0x53013a}=_0x523739;_0x2e1e6b['forEach'](_0x8224da=>{const _0x520166=_0x2798;if(!_0x53013a&&this['_unitOnClients'][_0x520166(0x37c)](_0x8224da)&&this['_ensureSubject'](_0x8224da)[_0x520166(0xe2)](0x1),!this[_0x520166(0x2aa)][_0x520166(0x37c)](_0x8224da)||!this['_unitOnClients'][_0x520166(0x135)](_0x8224da)['has'](_0x51ba12)){const _0x58ec33=this[_0x520166(0x2aa)][_0x520166(0x135)](_0x8224da)||new Set();_0x58ec33['add'](_0x51ba12),this[_0x520166(0x2aa)]['set'](_0x8224da,_0x58ec33),this['_scheduleClearOtherTimer'](_0x51ba12);}}),_0x53013a||this[_0x37d3df(0x1f5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4d174b(0xee)](_0x43e2e0){const _0xf398d2=_0x4d174b;this['_removeClearOtherTimer'](_0x43e2e0);const _0x988d93=window[_0xf398d2(0x1d8)](()=>{const _0x1410cf=_0xf398d2;this['_unitOnClients'][_0x1410cf(0x1cb)](_0x45474c=>{const _0x27c725=_0x1410cf;_0x45474c[_0x27c725(0x3e4)](_0x43e2e0);});},Zt*0x2);this[_0xf398d2(0x3d4)][_0xf398d2(0x34a)](_0x43e2e0,_0x988d93);}[_0x4d174b(0x13e)](_0x3ddc13){const _0x383a4d=_0x4d174b;if(this[_0x383a4d(0x3d4)][_0x383a4d(0x37c)](_0x3ddc13)){const _0x4ded6e=this[_0x383a4d(0x3d4)][_0x383a4d(0x135)](_0x3ddc13);_0x4ded6e&&window[_0x383a4d(0x175)](_0x4ded6e),this[_0x383a4d(0x3d4)][_0x383a4d(0x34a)](_0x3ddc13,null);}}['_handleLeaveEvent'](_0x31f23b){const _0x46457d=_0x4d174b,{memberID:_0x285718,unitIDs:_0x4690ad}=_0x31f23b;_0x4690ad[_0x46457d(0x1cb)](_0x4f7838=>{const _0x1a9070=_0x46457d;var _0x50ec2b;const _0x17b123=this[_0x1a9070(0x2aa)][_0x1a9070(0x135)](_0x4f7838);_0x17b123&&(_0x17b123[_0x1a9070(0x3e4)](_0x285718),(_0x50ec2b=this[_0x1a9070(0x317)](_0x4f7838))==null||_0x50ec2b[_0x1a9070(0xe2)](_0x17b123[_0x1a9070(0x262)]===0x0?0x0:0x1));}),this[_0x46457d(0x13e)](_0x285718);}[_0x4d174b(0x309)](_0x309d26){const _0x39776e=_0x4d174b;this[_0x39776e(0xee)](_0x309d26['memberID']);}[_0x4d174b(0x1f5)](_0x2de315){const _0x5ba895=_0x4d174b;localStorage[_0x5ba895(0x3a6)](Qt,JSON['stringify'](_0x2de315));}[_0x4d174b(0x263)](){const _0x16981b=_0x4d174b;this[_0x16981b(0x30e)]=window[_0x16981b(0xd4)](()=>{const _0x21d07c=_0x16981b;this[_0x21d07c(0x1f5)]({'type':0x2,'memberID':this[_0x21d07c(0x379)]});},Zt);}[_0x4d174b(0x317)](_0x5c7b58){const _0x5011f3=_0x4d174b;return this[_0x5011f3(0x2a3)]['has'](_0x5c7b58)||this[_0x5011f3(0x2a3)][_0x5011f3(0x34a)](_0x5c7b58,new _0x16da12(0x0)),this[_0x5011f3(0x2a3)][_0x5011f3(0x135)](_0x5c7b58);}}var Un=Object[_0x4d174b(0x1e3)],Ln=Object[_0x4d174b(0x13f)],$n=(_0x34314a,_0x1b0cf9,_0x14d78f,_0x122bb8)=>{const _0x4b9496=_0x4d174b;for(var _0x704294=_0x122bb8>0x1?void 0x0:_0x122bb8?Ln(_0x1b0cf9,_0x14d78f):_0x1b0cf9,_0x1dfbb8=_0x34314a[_0x4b9496(0x2e1)]-0x1,_0x32d554;_0x1dfbb8>=0x0;_0x1dfbb8--)(_0x32d554=_0x34314a[_0x1dfbb8])&&(_0x704294=(_0x122bb8?_0x32d554(_0x1b0cf9,_0x14d78f,_0x704294):_0x32d554(_0x704294))||_0x704294);return _0x122bb8&&_0x704294&&Un(_0x1b0cf9,_0x14d78f,_0x704294),_0x704294;},es=(_0x5d1b7a,_0x537f80)=>(_0x5c8e46,_0x12edaa)=>_0x537f80(_0x5c8e46,_0x12edaa,_0x5d1b7a);let Xe=class{constructor(_0x20d63f,_0x503673){const _0x460620=_0x4d174b;this[_0x460620(0x36e)]=_0x20d63f,this[_0x460620(0x3ca)]=_0x503673;}[_0x4d174b(0x18e)](_0x17d19b){const _0x536f3d=_0x4d174b;this[_0x536f3d(0x169)](_0x17d19b),this['_transformPreviousActiveRange'](_0x17d19b);}[_0x4d174b(0x1c7)](_0x54c03d){const _0x59d2b5=_0x4d174b,_0x68164b=this['_injector'][_0x59d2b5(0x135)](_0x34bf2b),{redoCache:_0x1cac8e}=_0x68164b[_0x59d2b5(0x1cf)]();if(_0x1cac8e[_0x59d2b5(0x2e1)]===0x0)return _0x54c03d;let _0x4a551b=_0x1053dd['deepClone'](_0x54c03d['mutations'][0x0]);for(let _0x2065e3=0x0;_0x2065e3<_0x1cac8e[_0x59d2b5(0x2e1)];_0x2065e3++){const _0x985b2f={'id':_0x59d2b5(0x108),'params':{..._0x1cac8e[_0x2065e3]}},_0x282b1f=this[_0x59d2b5(0x3ca)]['transformMutation'](_0x4a551b,_0x985b2f,!0x1);if(_0x8ecfd4(_0x282b1f))throw _0x282b1f[_0x59d2b5(0xba)];_0x4a551b=_0x282b1f['m1Prime'];}return{..._0x1053dd['deepClone'](_0x54c03d),'mutations':[_0x4a551b]};}[_0x4d174b(0x169)](_0x533368){const _0x44cd94=_0x4d174b,_0x32374c=this[_0x44cd94(0x36e)]['get'](_0x34bf2b),{undoCache:_0x19c0c1,redoCache:_0x54bf89}=_0x32374c['getUndoRedoMutationParamsCache']();if(_0x19c0c1[_0x44cd94(0x2e1)]===0x0||_0x54bf89[_0x44cd94(0x2e1)]===0x0)return;const _0x151cc1=[],_0x320640=[];let _0x91d96a=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]),_0x562112=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]);for(let _0x571319=_0x19c0c1[_0x44cd94(0x2e1)]-0x1;_0x571319>=0x0;_0x571319--){const _0x4c677c={'id':_0x44cd94(0x108),'params':{..._0x19c0c1[_0x571319]}},_0xcd297e={'id':_0x44cd94(0x108),'params':{..._0x54bf89[_0x571319]}},_0xe0fffa=this[_0x44cd94(0x3ca)][_0x44cd94(0x18c)](_0x91d96a,_0x4c677c,!0x1),_0x159d5b=this['_transformService'][_0x44cd94(0x18c)](_0x562112,_0xcd297e,!0x1);if(_0x8ecfd4(_0xe0fffa))throw _0xe0fffa['error'];if(_0x8ecfd4(_0x159d5b))throw _0x159d5b[_0x44cd94(0xba)];_0x151cc1[_0x44cd94(0x1da)](_0xe0fffa[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x320640[_0x44cd94(0x1da)](_0x159d5b[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x91d96a=_0xe0fffa[_0x44cd94(0x1db)],_0x562112=_0x159d5b[_0x44cd94(0x1db)];}_0x32374c[_0x44cd94(0x3ac)]({'undoCache':_0x151cc1,'redoCache':_0x320640});}[_0x4d174b(0x3cb)](_0x36f174){const _0x49c0ad=_0x4d174b,_0x29d09d=this[_0x49c0ad(0x36e)]['get'](_0x34bf2b),_0x1464f9=_0x29d09d[_0x49c0ad(0x3bb)]();if(_0x1464f9==null)return;const _0x56c95e=[{'id':_0x49c0ad(0x108),'params':{'unitId':_0x36f174[_0x49c0ad(0x1e2)],'actions':null,'textRanges':[_0x1464f9]}}],_0x283d26=this['_transformService'][_0x49c0ad(0x147)](_0x36f174,_0x56c95e);if(!_0x7aa6dd(_0x283d26))throw _0x283d26['error'];const _0xa622e8=_0x283d26[_0x49c0ad(0x160)][0x0][_0x49c0ad(0x29f)][_0x49c0ad(0x277)];Array['isArray'](_0xa622e8)&&_0xa622e8[_0x49c0ad(0x2e1)]&&_0x29d09d[_0x49c0ad(0x181)](_0xa622e8[0x0]);}};Xe=$n([es(0x0,_0x5b671c(_0x49e10e)),es(0x1,_0x174d0f)],Xe);var jn=Object[_0x4d174b(0x1e3)],xn=Object[_0x4d174b(0x13f)],Hn=(_0x10b896,_0x36d683,_0x3a7575,_0xe852b0)=>{const _0x2c1cab=_0x4d174b;for(var _0x14d4be=_0xe852b0>0x1?void 0x0:_0xe852b0?xn(_0x36d683,_0x3a7575):_0x36d683,_0x521ffb=_0x10b896[_0x2c1cab(0x2e1)]-0x1,_0x457d30;_0x521ffb>=0x0;_0x521ffb--)(_0x457d30=_0x10b896[_0x521ffb])&&(_0x14d4be=(_0xe852b0?_0x457d30(_0x36d683,_0x3a7575,_0x14d4be):_0x457d30(_0x14d4be))||_0x14d4be);return _0xe852b0&&_0x14d4be&&jn(_0x36d683,_0x3a7575,_0x14d4be),_0x14d4be;},ts=(_0x12daa4,_0x3a62f1)=>(_0x17cbc3,_0x4276ee)=>_0x3a62f1(_0x17cbc3,_0x4276ee,_0x12daa4);let Je=class{constructor(_0x15bb2a,_0x5d98f6){const _0x1819b2=_0x4d174b;this[_0x1819b2(0x36e)]=_0x15bb2a,this['_transformService']=_0x5d98f6;}[_0x4d174b(0x107)](_0x4ea180){const _0x549311=_0x4d174b;var _0xc319a9;const _0x123631=this[_0x549311(0x36e)][_0x549311(0x135)](_0x2684a6),_0x220143=(_0xc319a9=_0x123631[_0x549311(0x2ef)]())!=null?_0xc319a9:[],_0xae168c=_0x220143==null?void 0x0:_0x220143[_0x549311(0x288)](_0x1c3c28);if(_0xae168c[_0x549311(0x2e1)]===0x0)return;const _0x4d0e2a=[{'id':_0x549311(0x108),'params':{'unitId':_0x4ea180[_0x549311(0x1e2)],'actions':null,'textRanges':_0xae168c}}],_0x38ce34=this[_0x549311(0x3ca)][_0x549311(0x147)](_0x4ea180,_0x4d0e2a);if(!_0x7aa6dd(_0x38ce34))throw _0x38ce34['error'];const _0x4e9172=_0x38ce34[_0x549311(0x160)][0x0]['params'][_0x549311(0x277)];Array['isArray'](_0x4e9172)&&_0x4e9172[_0x549311(0x2e1)]&&_0x123631['replaceTextRanges'](_0x4e9172,!0x1);}};Je=Hn([ts(0x0,_0x5b671c(_0x49e10e)),ts(0x1,_0x174d0f)],Je);function Ms(_0x506c8f){let _0xb041e4='';for(const _0xbfdbd4 of _0x506c8f){const {startOffset:_0x1f7e8f,endOffset:_0xfd5431,isActive:_0x136f7f}=_0xbfdbd4;_0xb041e4['length']&&(_0xb041e4+=','),_0xb041e4+=_0x1f7e8f+':'+_0xfd5431+':'+(_0x136f7f?'1':'0');}return _0xb041e4;}function kn(_0x272659){const _0x460051=_0x4d174b,_0x7b8407=_0x272659[_0x460051(0x1c1)](','),_0x15d6bc=[];for(const _0x5261df of _0x7b8407){const [_0x3c5b96,_0x4c8251,_0x4dfe96]=_0x5261df[_0x460051(0x1c1)](':');_0x15d6bc['push']({'startOffset':Number(_0x3c5b96),'endOffset':Number(_0x4c8251),'collapsed':_0x3c5b96===_0x4c8251,'isActive':_0x4dfe96==='1'});}return _0x15d6bc[_0x460051(0x27e)](_0x164bcd=>_0x164bcd[_0x460051(0x209)])||(_0x15d6bc[0x0][_0x460051(0x209)]=!0x0),_0x15d6bc;}class jt extends _0x52c754{constructor(){const _0x421ce8=_0x4d174b;super(...arguments),l(this,_0x421ce8(0x287),new _0x16da12(null)),l(this,_0x421ce8(0x31b),this[_0x421ce8(0x287)][_0x421ce8(0x3bd)]());}[_0x4d174b(0x1a3)](_0x3a5ff8){const {unitID:_0x5d7e15,memberID:_0x1fe10a,textRanges:_0x402a5e}=_0x3a5ff8,_0x303109=Ms(_0x402a5e),_0x39af92={'unitID':_0x5d7e15,'memberID':_0x1fe10a,'selection':_0x303109};this['_collabCursorState$']['next'](_0x39af92);}}var Fn=Object[_0x4d174b(0x1e3)],Vn=Object[_0x4d174b(0x13f)],Bn=(_0x21a44e,_0x3f24e8,_0x11bff2,_0x25e8fb)=>{for(var _0x51fd04=_0x25e8fb>0x1?void 0x0:_0x25e8fb?Vn(_0x3f24e8,_0x11bff2):_0x3f24e8,_0x2ae3f2=_0x21a44e['length']-0x1,_0x1a2feb;_0x2ae3f2>=0x0;_0x2ae3f2--)(_0x1a2feb=_0x21a44e[_0x2ae3f2])&&(_0x51fd04=(_0x25e8fb?_0x1a2feb(_0x3f24e8,_0x11bff2,_0x51fd04):_0x1a2feb(_0x51fd04))||_0x51fd04);return _0x25e8fb&&_0x51fd04&&Fn(_0x3f24e8,_0x11bff2,_0x51fd04),_0x51fd04;},ss=(_0x406814,_0x404676)=>(_0x5ee0f6,_0x34400a)=>_0x404676(_0x5ee0f6,_0x34400a,_0x406814);function Wn(_0x316422){const _0x19a0d0=_0x4d174b,{unitID:_0x2083d8,mutations:_0xea64d5}=_0x316422;return{'unitId':_0x2083d8,'subUnitId':_0xea64d5[0x0]['params'][_0x19a0d0(0x373)]};}let qe=class{constructor(_0x5b430a,_0x307395){const _0x33f47d=_0x4d174b;this['_injector']=_0x5b430a,this[_0x33f47d(0x3ca)]=_0x307395;}[_0x4d174b(0x107)](_0x4a565e){const _0x4cb34f=_0x4d174b;var _0x1a86ed,_0x5ab3d0,_0x369339;const _0x46ae4c=this[_0x4cb34f(0x36e)]['get'](_0x298766),{unitId:_0xc9006e,subUnitId:_0x1c963a}=Wn(_0x4a565e),_0x2d2150=_0x46ae4c[_0x4cb34f(0x2d6)](_0xc9006e)[_0x4cb34f(0x2ef)]();if(_0x2d2150[_0x4cb34f(0x2e1)]===0x0||!_0xc9006e||!_0x1c963a)return;const _0x2fbbad=[{'id':_0x32ba42['id'],'params':{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x1053dd[_0x4cb34f(0xdb)](_0x2d2150)}}],_0x103508=this['_transformService'][_0x4cb34f(0x147)](_0x4a565e,_0x2fbbad);if(!_0x7aa6dd(_0x103508))throw _0x103508[_0x4cb34f(0xba)];const _0x42295b=(_0x369339=(_0x5ab3d0=(_0x1a86ed=_0x103508[_0x4cb34f(0x160)][0x0])==null?void 0x0:_0x1a86ed['params'])==null?void 0x0:_0x5ab3d0[_0x4cb34f(0x3b5)])!=null?_0x369339:_0x2d2150;Array['isArray'](_0x42295b)&&_0x42295b[_0x4cb34f(0x2e1)]&&this[_0x4cb34f(0x36e)][_0x4cb34f(0x135)](_0x5bc562)[_0x4cb34f(0x365)](_0x32ba42['id'],{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x42295b});}};qe=Bn([ss(0x0,_0x5b671c(_0x49e10e)),ss(0x1,_0x174d0f)],qe);const Gn=new Set([_0x3b1722['id']]);function is(_0x5cca24,_0x588961,_0x5675f2,_0x5542b6,_0xfc8d22){const _0xedc44d=_0x4d174b;var _0x49d6f6,_0x3b2acc,_0xbe88a2,_0x4afbfd;const _0x1dc6e6=[];for(const _0x5ea2de of _0x5cca24)if(Gn[_0xedc44d(0x37c)](_0x5ea2de['id'])){if(_0x1dc6e6['length']>0x0)break;_0x1dc6e6['push'](_0x5ea2de);break;}else _0x1dc6e6[_0xedc44d(0x328)](_0x5ea2de);const _0x56801f=(_0x3b2acc=(_0x49d6f6=_0xfc8d22['getCurrentUser']())==null?void 0x0:_0x49d6f6[_0xedc44d(0x251)])!=null?_0x3b2acc:'unknown',_0x4642d0=(_0x4afbfd=(_0xbe88a2=_0xfc8d22[_0xedc44d(0x13b)]())==null?void 0x0:_0xbe88a2[_0xedc44d(0x2dc)])!=null?_0x4afbfd:_0xedc44d(0x1f4);return{'changeset':{'unitID':_0x588961,'type':_0x4a7d91(_0x5675f2[_0xedc44d(0x1df)](_0x588961)),'baseRev':_0x5542b6[_0xedc44d(0x2af)](_0x588961),'revision':0x0,'userID':_0x56801f,'memberID':_0x4642d0,'mutations':_0x1dc6e6},'pendingMutations':_0x5cca24['slice'](_0x1dc6e6[_0xedc44d(0x2e1)])};}function Yn(_0x3aa71c,_0x5d9c4d,_0xeaa02f,_0x4360f6,_0x50116b){const _0x20307c=_0x4d174b;var _0x3f13bc,_0x291e37,_0x517364,_0x49df05;const _0x3848cf=[_0x3aa71c[_0x20307c(0x180)]((_0x3d10ba,_0x252c45)=>{const _0x508a5b=_0x20307c;var _0x1388f4;const {id:_0x3e5c2a}=_0x3d10ba,{id:_0x371760,type:_0x2824c7}=_0x252c45,_0x49b0b3=(_0x1388f4=_0x3d10ba['params'])!=null?_0x1388f4:{'actions':null},_0x577164=_0x252c45[_0x508a5b(0x29f)];if(_0x3e5c2a&&_0x3e5c2a!==_0x371760)throw new Error(_0x508a5b(0x390)+_0x3e5c2a+_0x508a5b(0x38c)+_0x371760+'.');return{..._0x3d10ba,'id':_0x371760,'type':_0x2824c7,'params':{'unitId':_0x577164[_0x508a5b(0x22a)],'textRanges':_0x577164[_0x508a5b(0x277)],'actions':_0xa7ba5e[_0x508a5b(0x3a5)](_0x49b0b3['actions'],_0x577164['actions'])}};},{})],_0x565183=(_0x291e37=(_0x3f13bc=_0x50116b['getCurrentUser']())==null?void 0x0:_0x3f13bc[_0x20307c(0x251)])!=null?_0x291e37:_0x20307c(0x1f4),_0x3b48a5=(_0x49df05=(_0x517364=_0x50116b[_0x20307c(0x13b)]())==null?void 0x0:_0x517364['memberID'])!=null?_0x49df05:_0x20307c(0x1f4);return{'changeset':{'unitID':_0x5d9c4d,'type':_0x4a7d91(_0xeaa02f['getUnitType'](_0x5d9c4d)),'baseRev':_0x4360f6[_0x20307c(0x2af)](_0x5d9c4d),'revision':0x0,'userID':_0x565183,'memberID':_0x3b48a5,'mutations':_0x3848cf},'pendingMutations':[]};}const Kn={'id':_0x4866a1['id'],'type':_0x4d4345[_0x4d174b(0x31a)],'params':{}};var Xn=Object['defineProperty'],Jn=Object[_0x4d174b(0x13f)],re=(_0x4ffed7,_0x45c5ca,_0xf725d6,_0x1bdff8)=>{const _0x3d3b0d=_0x4d174b;for(var _0x33cc85=_0x1bdff8>0x1?void 0x0:_0x1bdff8?Jn(_0x45c5ca,_0xf725d6):_0x45c5ca,_0x459003=_0x4ffed7[_0x3d3b0d(0x2e1)]-0x1,_0xe2d039;_0x459003>=0x0;_0x459003--)(_0xe2d039=_0x4ffed7[_0x459003])&&(_0x33cc85=(_0x1bdff8?_0xe2d039(_0x45c5ca,_0xf725d6,_0x33cc85):_0xe2d039(_0x33cc85))||_0x33cc85);return _0x1bdff8&&_0x33cc85&&Xn(_0x45c5ca,_0xf725d6,_0x33cc85),_0x33cc85;},f=(_0x5280bb,_0x4aa9ee)=>(_0x2ca321,_0x3ca1ab)=>_0x4aa9ee(_0x2ca321,_0x3ca1ab,_0x5280bb),P=(_0x39f728=>(_0x39f728['NOT_COLLAB']=_0x4d174b(0x149),_0x39f728['SYNCED']=_0x4d174b(0x3dc),_0x39f728[_0x4d174b(0x370)]='pending',_0x39f728[_0x4d174b(0x2c1)]=_0x4d174b(0x338),_0x39f728['AWAITING_WITH_PENDING']=_0x4d174b(0x21d),_0x39f728[_0x4d174b(0x189)]=_0x4d174b(0x10d),_0x39f728[_0x4d174b(0x10b)]=_0x4d174b(0x28f),_0x39f728['OFFLINE']=_0x4d174b(0x172),_0x39f728))(P||{});class oe{constructor(_0x1e45ef,_0x1da341,_0x1b49a8,_0x39b52f,_0x237bf9,_0x3446ca,_0x41c21a,_0x18813e,_0x2f8c6e){const _0x303df2=_0x4d174b;l(this,'_awaitingChangeset',null),l(this,'_pendingMutations',[]),(this[_0x303df2(0x1e2)]=_0x1e45ef,this['type']=_0x1da341,this['_handler']=_0x237bf9,this[_0x303df2(0x178)]=_0x3446ca,this['_undoRedoService']=_0x41c21a,this['_revisionService']=_0x18813e,this[_0x303df2(0xca)]=_0x2f8c6e,this[_0x303df2(0x182)]=_0x1b49a8,this['_pendingMutations']=_0x39b52f);}['_checkMissing'](_0x1562b9){const _0x3d0620=_0x4d174b,_0x29c91b=this[_0x3d0620(0x197)]['getCurrentRevForDocument'](this[_0x3d0620(0x1e2)]);return _0x1562b9[_0x3d0620(0x143)]>_0x29c91b+0x1?(this['_handler'][_0x3d0620(0x2c2)]({'from':_0x29c91b,'to':_0x1562b9['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x30ed23){const _0x9390e7=_0x4d174b;this[_0x9390e7(0xda)][_0x9390e7(0x2a9)](this[_0x9390e7(0x1e2)],_0x30ed23);}[_0x4d174b(0x3f5)](_0x51c743){const _0x3f311d=_0x4d174b;var _0x24ae21,_0x43b746;(_0x43b746=(_0x24ae21=this[_0x3f311d(0x2db)])[_0x3f311d(0x120)])==null||_0x43b746[_0x3f311d(0x37f)](_0x24ae21,_0x51c743);}[_0x4d174b(0x3d0)](_0x2270a5){const _0x2c5e18=_0x4d174b;var _0xc7b0d1,_0x5f30ae;return(_0x5f30ae=(_0xc7b0d1=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5f30ae[_0x2c5e18(0x37f)](_0xc7b0d1,_0x2270a5);}['_transformRemoteChangesetByIMECache'](_0x1f6d36){const _0x3d1531=_0x4d174b;var _0x432dba,_0x414c97,_0x140647;return(_0x140647=(_0x414c97=(_0x432dba=this[_0x3d1531(0x2db)])[_0x3d1531(0x16b)])==null?void 0x0:_0x414c97[_0x3d1531(0x37f)](_0x432dba,_0x1f6d36))!=null?_0x140647:_0x1f6d36;}[_0x4d174b(0xd0)](_0xb7f3b9){const _0x3e467f=_0x4d174b;var _0x3146f5,_0x40ce74;if(this[_0x3e467f(0x13a)]===j['UNIVER_DOC']){const {unitID:_0x3db759,mutations:_0x5e0fd8,memberID:_0x1eec5a}=_0xb7f3b9,_0x497187=_0x5e0fd8[0x0][_0x3e467f(0x29f)][_0x3e467f(0x277)];Array[_0x3e467f(0x15e)](_0x497187)&&_0x497187[_0x3e467f(0x2e1)]>0x0&&((_0x40ce74=(_0x3146f5=this[_0x3e467f(0x2db)])[_0x3e467f(0x33b)])==null||_0x40ce74[_0x3e467f(0x37f)](_0x3146f5,{'unitID':_0x3db759,'memberID':_0x1eec5a,'textRanges':_0x497187}));}}[_0x4d174b(0x1f9)](){const _0x29e470=_0x4d174b;this[_0x29e470(0xca)][_0x29e470(0x25d)](this[_0x29e470(0x1e2)],this[_0x29e470(0x13a)],this[_0x29e470(0x182)],this[_0x29e470(0x261)]);}['_getCurrentRevision'](){const _0x236be1=_0x4d174b;return this[_0x236be1(0x197)][_0x236be1(0x2af)](this[_0x236be1(0x1e2)]);}[_0x4d174b(0xd2)](){const _0x1c2507=_0x4d174b;this[_0x1c2507(0x197)][_0x1c2507(0x3c6)](this[_0x1c2507(0x1e2)]);}[_0x4d174b(0x28d)](_0x1eaa31){const _0x4f2b7b=_0x4d174b;var _0x3a8089;const _0x30e0a4=this[_0x4f2b7b(0x23d)](_0x1eaa31),_0x31b83b=_0x37a637(_0x30e0a4[_0x4f2b7b(0x185)],this[_0x4f2b7b(0x178)],{'fromCollab':!0x0});if(!_0x31b83b[_0x4f2b7b(0x310)])throw _0x31b83b[_0x4f2b7b(0xba)]instanceof Error?_0x31b83b['error']:new Error((_0x3a8089=_0x31b83b[_0x4f2b7b(0xba)])!=null?_0x3a8089:_0x4f2b7b(0xef));this[_0x4f2b7b(0x3d0)](_0x30e0a4),this['_transformUndoredo'](_0x1eaa31),this[_0x4f2b7b(0x3f5)](_0x30e0a4),this[_0x4f2b7b(0xd0)](_0x30e0a4),this[_0x4f2b7b(0xd2)]();}}let Pe=class extends oe{constructor(_0x2758f7,_0x2fb46a,_0x48745d,_0x1b434e,_0x32675a,_0x11782d,_0x5df27a,_0x18555e,_0x3957fb,_0x55f11f){const _0x2c448b=_0x4d174b;super(_0x2758f7,_0x2fb46a,null,[],_0x48745d,_0x18555e,_0x5df27a,_0x1b434e,_0x32675a),l(this,'status',_0x2c448b(0x3dc)),(this[_0x2c448b(0x36e)]=_0x11782d,this['_logService']=_0x3957fb,this[_0x2c448b(0x3ca)]=_0x55f11f);}['appendMutation'](_0x2fafdd){const _0x145456=_0x4d174b,_0x32a40e=this[_0x145456(0x36e)][_0x145456(0x3d3)](W,this['unitID'],this[_0x145456(0x13a)],[_0x2fafdd],this[_0x145456(0x2db)]);return _0x32a40e[_0x145456(0x13c)](),_0x32a40e[_0x145456(0x1f9)](),_0x32a40e;}[_0x4d174b(0x10e)](_0x544f07){const _0x41b497=_0x4d174b;if(this[_0x41b497(0xc1)](_0x544f07))return this['_injector'][_0x41b497(0x3d3)](Y,this[_0x41b497(0x1e2)],this['type'],null,[],null,[_0x544f07],this[_0x41b497(0x2db)]);try{const _0x125bb7=this[_0x41b497(0x3ca)][_0x41b497(0x147)](_0x544f07,[Kn]);if(_0x7aa6dd(_0x125bb7)){const {c1Prime:_0x7fe45e}=_0x125bb7;return this[_0x41b497(0x28d)](_0x7fe45e),this;}throw _0x125bb7[_0x41b497(0xba)];}catch(_0x1ce068){return this[_0x41b497(0x30a)][_0x41b497(0xba)](_0x1ce068),this[_0x41b497(0x105)](!0x1);}}[_0x4d174b(0x105)](_0x410e74){const _0x5dd346=_0x4d174b;return this[_0x5dd346(0x36e)]['createInstance'](z,this[_0x5dd346(0x1e2)],this['type'],null,[],this[_0x5dd346(0x2db)],_0x410e74);}['onRemoteAck'](){const _0xb0682f=_0x4d174b;throw new Error(_0xb0682f(0x327));}[_0x4d174b(0x1c9)](){const _0x3e28c3=_0x4d174b;throw new Error(_0x3e28c3(0x2df));}[_0x4d174b(0x342)](){const _0x4218bc=_0x4d174b;return this[_0x4218bc(0x36e)][_0x4218bc(0x3d3)](Z,this[_0x4218bc(0x1e2)],this[_0x4218bc(0x13a)],null,[],this['_handler']);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x1835c7=_0x4d174b;throw new Error(_0x1835c7(0xf3));}};Pe=re([f(0x3,_0x5b671c(_0x5d7349)),f(0x4,_0x5b671c(O)),f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5f56c1),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f)],Pe);let W=class extends oe{constructor(_0x1da304,_0x34c15e,_0x3dd954,_0x188ef7,_0x412f0b,_0x32ed0d,_0x42ea32,_0x2b8d16,_0x43e5ad,_0x211d84,_0x22c1fe,_0x5e12f2,_0x3e71b8,_0x1f3542){const _0x1185ce=_0x4d174b;super(_0x1da304,_0x34c15e,null,_0x3dd954,_0x188ef7,_0x211d84,_0x1f3542,_0x32ed0d,_0x42ea32),l(this,_0x1185ce(0x14b),_0x1185ce(0x243)),l(this,_0x1185ce(0x32e),null),l(this,_0x1185ce(0x1c2),null),(this['_injector']=_0x412f0b,this[_0x1185ce(0x2d9)]=_0x2b8d16,this['_logService']=_0x43e5ad,this[_0x1185ce(0x229)]=_0x22c1fe,this[_0x1185ce(0x3ca)]=_0x5e12f2,this['_univerInstanceService']=_0x3e71b8);}[_0x4d174b(0x3e9)](_0x59bfa2){const _0x574074=_0x4d174b;return this[_0x574074(0x261)][_0x574074(0x328)](_0x59bfa2),this[_0x574074(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x1f9aeb){const _0x1f22c6=_0x4d174b;if(this[_0x1f22c6(0xc1)](_0x1f9aeb))return this[_0x1f22c6(0x138)](),this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](Y,this[_0x1f22c6(0x1e2)],this[_0x1f22c6(0x13a)],null,this['_pendingMutations'],null,[_0x1f9aeb],this[_0x1f22c6(0x2db)]);try{const _0x445fc0=this[_0x1f22c6(0x3ca)]['transformMutationsWithChangeset'](_0x1f9aeb,this[_0x1f22c6(0x261)]);if(_0x7aa6dd(_0x445fc0)){const {c1Prime:_0x5595f7,m2Prime:_0xd8effb}=_0x445fc0;this[_0x1f22c6(0x28d)](_0x5595f7);const _0x1735d7=this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](W,this[_0x1f22c6(0x1e2)],this['type'],_0xd8effb,this['_handler']);return this[_0x1f22c6(0x138)](),_0x1735d7['_schedule'](this[_0x1f22c6(0x32e)]?Math[_0x1f22c6(0x397)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1f22c6(0xb9)]()),_0x1735d7;}throw _0x445fc0[_0x1f22c6(0xba)];}catch(_0x41b0b3){return this['_logService'][_0x1f22c6(0xba)](_0x41b0b3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](){const _0x4a6a55=_0x4d174b;throw new Error(_0x4a6a55(0x2a8));}[_0x4d174b(0x1c9)](){const _0x1d753c=_0x4d174b;throw new Error(_0x1d753c(0x3d5));}[_0x4d174b(0x342)](){const _0x3ce1bc=_0x4d174b;return this[_0x3ce1bc(0x138)](),this[_0x3ce1bc(0x36e)][_0x3ce1bc(0x3d3)](Z,this[_0x3ce1bc(0x1e2)],this['type'],null,this[_0x3ce1bc(0x261)],this[_0x3ce1bc(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x13c)](_0x12e2b1){const _0x166a01=_0x4d174b;_0x12e2b1=_0x12e2b1!=null?_0x12e2b1:this[_0x166a01(0xb9)](),this['_scheduleTimestamp']=new Date()['getTime'](),this[_0x166a01(0x1c2)]=setTimeout(()=>{const _0x18f2eb=_0x166a01;this[_0x18f2eb(0x138)]();let _0xa963ce=null;switch(this[_0x18f2eb(0x13a)]){case j[_0x18f2eb(0x202)]:{_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this['_univerInstanceService'],this[_0x18f2eb(0x197)],this['_memberService']);break;}case j[_0x18f2eb(0x2b7)]:{this[_0x18f2eb(0x261)]['every'](_0x2f7702=>_0x2f7702['id']===_0x257904['id'])?_0xa963ce=Yn(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this[_0x18f2eb(0x2d9)]):_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this['_memberService']);break;}default:throw new Error(_0x18f2eb(0x3db)+this['type']+_0x18f2eb(0x148));}const {changeset:_0x38d854,pendingMutations:_0x47cd76}=_0xa963ce;this[_0x18f2eb(0x2db)][_0x18f2eb(0xfd)](_0x38d854);const _0x49afc6=_0x47cd76['length']?this['_injector'][_0x18f2eb(0x3d3)](G,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,_0x47cd76,this[_0x18f2eb(0x2db)]):this[_0x18f2eb(0x36e)][_0x18f2eb(0x3d3)](q,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,this[_0x18f2eb(0x2db)]);_0x49afc6[_0x18f2eb(0x1f9)](),this[_0x18f2eb(0x2db)]['onStateChange'](this,_0x49afc6);},_0x12e2b1);}[_0x4d174b(0xb9)](){const _0x5cf2d8=_0x4d174b;var _0x3a5fb9;return(_0x3a5fb9=this['_configService'][_0x5cf2d8(0x1f0)](tn))!=null?_0x3a5fb9:sn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0xf8af42=_0x4d174b;this[_0xf8af42(0x1c2)]!=null&&(clearTimeout(this[_0xf8af42(0x1c2)]),this[_0xf8af42(0x1c2)]=null);}[_0x4d174b(0x105)](_0x33882b){const _0x13c4a4=_0x4d174b;return this[_0x13c4a4(0x138)](),this[_0x13c4a4(0x36e)][_0x13c4a4(0x3d3)](z,this['unitID'],this[_0x13c4a4(0x13a)],null,this[_0x13c4a4(0x261)],this['_handler'],_0x33882b);}};W=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5b671c(te)),f(0x8,_0x50a504),f(0x9,_0x5bc562),f(0xa,_0x15fd76),f(0xb,_0x174d0f),f(0xc,_0x2269ec),f(0xd,_0x5f56c1)],W);let q=class extends oe{constructor(_0x24e838,_0x573346,_0x370572,_0x40b694,_0x10ec20,_0x1579a7,_0x536b7d,_0x5a1696,_0x58973a,_0x161f3b,_0xc5261e){const _0x28f229=_0x4d174b;super(_0x24e838,_0x573346,_0x370572,[],_0x40b694,_0x5a1696,_0xc5261e,_0x1579a7,_0x536b7d),l(this,'status',_0x28f229(0x338)),(this[_0x28f229(0x36e)]=_0x10ec20,this[_0x28f229(0x30a)]=_0x58973a,this[_0x28f229(0x3ca)]=_0x161f3b);}[_0x4d174b(0x3e9)](_0x3533f0){const _0x1f9061=_0x4d174b,_0x438177=this[_0x1f9061(0x36e)]['createInstance'](G,this[_0x1f9061(0x1e2)],this[_0x1f9061(0x13a)],this[_0x1f9061(0x182)],[_0x3533f0],this[_0x1f9061(0x2db)]);return _0x438177[_0x1f9061(0x1f9)](),_0x438177;}[_0x4d174b(0x10e)](_0x1805fb){const _0x56cad1=_0x4d174b;if(this[_0x56cad1(0xc1)](_0x1805fb))return this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](Y,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],this['_awaitingChangeset'],[],null,[_0x1805fb],this[_0x56cad1(0x2db)]);try{const _0x33659d=this[_0x56cad1(0x3ca)]['transformChangesets']([_0x1805fb],[this[_0x56cad1(0x182)]],!0x1);if(_0x5cb55b(_0x33659d)){const {c1Prime:_0x13d693,c2Prime:_0x49f3ac}=_0x33659d;this['_executeRemoteChangeset'](_0x13d693[0x0]),_0x49f3ac[0x0]['baseRev']=this[_0x56cad1(0x165)]();const _0xc582ab=this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](q,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],_0x49f3ac[0x0],this[_0x56cad1(0x2db)]);return _0xc582ab['_updateLocalCache'](),_0xc582ab;}return this[_0x56cad1(0x105)](!0x1);}catch(_0x1dbbb3){return this[_0x56cad1(0x30a)][_0x56cad1(0xba)](_0x1dbbb3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](_0x5698f0){const _0x5c772b=_0x4d174b,_0x2d8653=this[_0x5c772b(0x197)]['getCurrentRevForDocument'](this[_0x5c772b(0x1e2)]);if(_0x5698f0[_0x5c772b(0x143)]<_0x2d8653-0x1)return this;if(this[_0x5c772b(0xc1)](_0x5698f0))return this['_injector'][_0x5c772b(0x3d3)](Y,this[_0x5c772b(0x1e2)],this['type'],null,[],this[_0x5c772b(0x182)],[],this[_0x5c772b(0x2db)]);this['_incrementRevisionNumber']();const _0x31764b=this[_0x5c772b(0x36e)][_0x5c772b(0x3d3)](Pe,this['unitID'],this[_0x5c772b(0x13a)],this[_0x5c772b(0x2db)]);return _0x31764b[_0x5c772b(0x1f9)](),_0x31764b;}[_0x4d174b(0x1c9)](_0x5bc4fe){const _0x3e7ad0=_0x4d174b;return this[_0x3e7ad0(0x105)](!!(_0x5bc4fe!=null&&_0x5bc4fe[_0x3e7ad0(0x3e7)]));}['toggleOffline'](){const _0x251a6f=_0x4d174b;return this['_injector'][_0x251a6f(0x3d3)](Z,this[_0x251a6f(0x1e2)],this[_0x251a6f(0x13a)],this[_0x251a6f(0x182)],[],this[_0x251a6f(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x54f9f1=_0x4d174b;this[_0x54f9f1(0x2db)]['onSendChangeset'](this[_0x54f9f1(0x182)]);}['_onConflict'](_0x502d98){const _0x417bc9=_0x4d174b;return this[_0x417bc9(0x36e)]['createInstance'](z,this['unitID'],this[_0x417bc9(0x13a)],this[_0x417bc9(0x182)],[],this[_0x417bc9(0x2db)],_0x502d98);}};q=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f),f(0xa,_0x5f56c1)],q);let G=class extends oe{constructor(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0x549025,_0x470fcb,_0x24555f,_0xe7b36c,_0x34aebe,_0x28f137,_0x1255fe){const _0xc7f661=_0x4d174b;super(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0xe7b36c,_0x1255fe,_0x470fcb,_0x24555f),l(this,_0xc7f661(0x14b),_0xc7f661(0x21d)),(this[_0xc7f661(0x36e)]=_0x549025,this['_logService']=_0x34aebe,this[_0xc7f661(0x3ca)]=_0x28f137);}[_0x4d174b(0x3e9)](_0x40920e){const _0x36a9f5=_0x4d174b;return this[_0x36a9f5(0x261)][_0x36a9f5(0x328)](_0x40920e),this;}['onRemoteChangeset'](_0x381311){const _0x24093e=_0x4d174b;if(this[_0x24093e(0xc1)](_0x381311))return this[_0x24093e(0x36e)][_0x24093e(0x3d3)](Y,this['unitID'],this[_0x24093e(0x13a)],this[_0x24093e(0x182)],this['_pendingMutations'],null,[_0x381311],this['_handler']);try{const _0x430618=this['_transformService']['transformChangesets']([_0x381311],[this[_0x24093e(0x182)]],!0x1);if(_0x5cb55b(_0x430618)){const {c1Prime:_0x8d94de,c2Prime:_0x3636b2}=_0x430618,_0x1c752f=this[_0x24093e(0x3ca)][_0x24093e(0x147)](_0x8d94de[0x0],this['_pendingMutations']);if(_0x7aa6dd(_0x1c752f)){const {c1Prime:_0x30d3ad,m2Prime:_0x52e3b2}=_0x1c752f;return this[_0x24093e(0x28d)](_0x30d3ad),_0x3636b2[0x0][_0x24093e(0x234)]=this[_0x24093e(0x165)](),this[_0x24093e(0x36e)][_0x24093e(0x3d3)](G,this[_0x24093e(0x1e2)],this[_0x24093e(0x13a)],_0x3636b2[0x0],_0x52e3b2,this['_handler']);}throw _0x1c752f[_0x24093e(0xba)];}throw _0x430618[_0x24093e(0xba)];}catch(_0x18be07){return this[_0x24093e(0x30a)][_0x24093e(0xba)](_0x18be07),this[_0x24093e(0x105)](!0x1);}}[_0x4d174b(0x1a4)](_0x3a1c8d){const _0x495c76=_0x4d174b;if(this[_0x495c76(0xc1)](_0x3a1c8d))return this[_0x495c76(0x36e)]['createInstance'](Y,this[_0x495c76(0x1e2)],this['type'],null,this[_0x495c76(0x261)],this[_0x495c76(0x182)],[],this[_0x495c76(0x2db)]);this['_incrementRevisionNumber']();const _0x222574=this[_0x495c76(0x36e)][_0x495c76(0x3d3)](W,this['unitID'],this[_0x495c76(0x13a)],this[_0x495c76(0x261)],this[_0x495c76(0x2db)]);return _0x222574[_0x495c76(0x13c)](),_0x222574[_0x495c76(0x1f9)](),_0x222574;}[_0x4d174b(0x1c9)](_0x4a832a){const _0x154767=_0x4d174b;return this[_0x154767(0x105)](!!(_0x4a832a!=null&&_0x4a832a['isPermissionRej']));}[_0x4d174b(0x342)](){const _0x305da3=_0x4d174b;return this[_0x305da3(0x36e)][_0x305da3(0x3d3)](Z,this['unitID'],this['type'],this[_0x305da3(0x182)],this['_pendingMutations'],this[_0x305da3(0x2db)]);}['toggleOnline'](){return this;}[_0x4d174b(0x186)](){const _0x437b13=_0x4d174b;this[_0x437b13(0x2db)][_0x437b13(0xfd)](this['_awaitingChangeset']);}[_0x4d174b(0x105)](_0x142f30){const _0x4bf735=_0x4d174b;return this['_injector'][_0x4bf735(0x3d3)](z,this[_0x4bf735(0x1e2)],this['type'],null,this[_0x4bf735(0x261)],this[_0x4bf735(0x2db)],_0x142f30);}};G=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x50a504),f(0xa,_0x174d0f),f(0xb,_0x5f56c1)],G);let z=class extends oe{constructor(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x7bb888=!0x1,_0x1b1620,_0x36fd21,_0x35a6e9,_0x50ed28,_0x34dccb,_0x4edf45,_0x466d8c){const _0x5d1d17=_0x4d174b;super(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x36fd21,_0x35a6e9,_0x34dccb,_0x50ed28),l(this,'status','conflict'),(this[_0x5d1d17(0x349)]=_0x7bb888,this[_0x5d1d17(0x126)]=_0x1b1620,this[_0x5d1d17(0x13d)]=_0x4edf45,this[_0x5d1d17(0x1b5)]=_0x466d8c,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x5d1d17(0x1a7)]());}[_0x4d174b(0x3e9)](){return this;}[_0x4d174b(0x10e)](){return this;}[_0x4d174b(0x1a4)](){return this;}[_0x4d174b(0x1c9)](){return this;}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x4a6507=_0x4d174b;throw new Error(_0x4a6507(0x2e3));}[_0x4d174b(0x3a3)](){const _0x3d42a3=_0x4d174b;this[_0x3d42a3(0xca)][_0x3d42a3(0x25d)](this[_0x3d42a3(0x1e2)],this[_0x3d42a3(0x13a)],null,[]);}[_0x4d174b(0x29e)](){const _0x8579e8=_0x4d174b;this[_0x8579e8(0x349)]?this[_0x8579e8(0x1b5)]['show']({'title':this[_0x8579e8(0x13d)]['t']('permission.title'),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x393)),'type':_0x8579e8(0xba),'duration':0x0}):this['_notificationService']['show']({'title':this['_localeService']['t'](_0x8579e8(0x1ed)),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x371)),'type':_0x8579e8(0xba),'duration':0x0});}[_0x4d174b(0x1a7)](){const _0x391387=_0x4d174b;this[_0x391387(0x126)]['updatePermissionPoint'](new _0x56d014(this[_0x391387(0x1e2)])['id'],!0x1);}};z=re([f(0x6,_0x5b671c(_0xf5bbc5)),f(0x7,_0x5bc562),f(0x8,_0x5f56c1),f(0x9,_0x5b671c(O)),f(0xa,_0x5b671c(_0x5d7349)),f(0xb,_0x5b671c(_0x35ebff)),f(0xc,_0x13435c)],z);let Z=class extends oe{constructor(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x5678fb,_0x58fc4d,_0x4cfab0,_0x1ad2ab,_0x203994){const _0x398016=_0x4d174b;super(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x1ad2ab,_0x203994,_0x58fc4d,_0x4cfab0),l(this,'status','offline'),this[_0x398016(0x36e)]=_0x5678fb;}[_0x4d174b(0x3e9)](_0xcb35f7){const _0x3bdc53=_0x4d174b;return this[_0x3bdc53(0x261)][_0x3bdc53(0x328)](_0xcb35f7),this[_0x3bdc53(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x292dc4){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x536c48=_0x4d174b;throw new Error(_0x536c48(0x32c));}[_0x4d174b(0x1c9)](){const _0x2a238d=_0x4d174b;throw new Error(_0x2a238d(0x1b1));}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){const _0x3799e3=_0x4d174b,{_injector:_0x5b1400,_pendingMutations:_0x206ac5,_awaitingChangeset:_0xa2418e,unitID:_0x54b9a5,_handler:_0x7406ae,type:_0x3c8318}=this,_0x2e062e=As(_0x5b1400,_0x54b9a5,_0x3c8318,_0xa2418e,_0x206ac5,_0x7406ae);return _0x2e062e instanceof W?_0x2e062e['_schedule']():(_0x2e062e instanceof G||_0x2e062e instanceof q)&&_0x2e062e[_0x3799e3(0x186)](),_0x2e062e;}[_0x4d174b(0x186)](){const _0x1a2d16=_0x4d174b;throw new Error(_0x1a2d16(0x3a4));}};Z=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x5f56c1)],Z);let Y=class extends oe{constructor(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x475b53,_0x5b713f,_0x50890e,_0x5575cc,_0x2e85fa,_0x286733,_0x3d0d1e,_0x2a8506,_0xa0c213,_0x1c08c5){const _0x5909dd=_0x4d174b;super(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x50890e,_0x2a8506,_0xa0c213,_0x2e85fa,_0x286733),l(this,'status',_0x5909dd(0x10d)),(this[_0x5909dd(0x196)]=_0x475b53,this['_queuedRemoteChangesets']=_0x5b713f,this[_0x5909dd(0x36e)]=_0x5575cc,this[_0x5909dd(0x30a)]=_0x3d0d1e,this[_0x5909dd(0x3ca)]=_0x1c08c5);}[_0x4d174b(0x131)](_0x16193b){const _0x135cef=_0x4d174b;try{const _0x2701e7=[..._0x16193b,...this[_0x135cef(0x26b)]],_0x211dbd=[this[_0x135cef(0x182)]||this[_0x135cef(0x196)]][_0x135cef(0x236)](_0x43e074=>!!_0x43e074);let _0x10dc06,_0x2c5283;if(_0x211dbd['length']){const _0x268191=this[_0x135cef(0x3ca)][_0x135cef(0x1a0)](_0x2701e7,_0x211dbd,!0x1);if(!_0x5cb55b(_0x268191))throw _0x268191[_0x135cef(0xba)];_0x10dc06=_0x268191['c1Prime'],_0x2c5283=_0x268191['c2Prime'];}else _0x10dc06=_0x2701e7,_0x2c5283=[];let _0x230890=this['_pendingMutations'];_0x10dc06[_0x135cef(0x1cb)](_0x3a54af=>{const _0x1150d0=_0x135cef;let _0x304a96;if(_0x230890[_0x1150d0(0x2e1)]){const _0x4b0e2b=this[_0x1150d0(0x3ca)][_0x1150d0(0x147)](_0x3a54af,_0x230890);if(!_0x7aa6dd(_0x4b0e2b))throw _0x4b0e2b['error'];_0x304a96=_0x4b0e2b[_0x1150d0(0x2e4)],_0x230890=_0x4b0e2b[_0x1150d0(0x160)];}else _0x304a96=_0x3a54af;this[_0x1150d0(0x28d)](_0x304a96);}),this['_acknowledgedAwaitingChangeset']&&this[_0x135cef(0xd2)](),this[_0x135cef(0x182)]&&_0x2c5283[_0x135cef(0x2e1)]&&(_0x2c5283[0x0][_0x135cef(0x234)]=this['_getCurrentRevision']());let _0x50fbfe;if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]!==0x0)_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](G,this['unitID'],this['type'],_0x2c5283[0x0],_0x230890,this[_0x135cef(0x2db)]);else{if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]===0x0)_0x2c5283[0x0][_0x135cef(0x234)]=this[_0x135cef(0x165)](),_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](q,this['unitID'],this[_0x135cef(0x13a)],_0x2c5283[0x0],this['_handler']);else{if(_0x230890[_0x135cef(0x2e1)]!==0x0){const _0x47b4ae=this[_0x135cef(0x36e)]['createInstance'](W,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],_0x230890,this[_0x135cef(0x2db)]);_0x47b4ae['_schedule'](),_0x50fbfe=_0x47b4ae;}else _0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](Pe,this['unitID'],this[_0x135cef(0x13a)],this[_0x135cef(0x2db)]);}}return _0x50fbfe['_updateLocalCache'](),_0x50fbfe;}catch(_0x24d2b7){return this[_0x135cef(0x30a)][_0x135cef(0xba)](_0x135cef(0x1bb),'failed\x20to\x20apply\x20missed\x20changesets!',_0x24d2b7),this[_0x135cef(0x36e)]['createInstance'](z,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],this[_0x135cef(0x182)],this[_0x135cef(0x261)],this[_0x135cef(0x2db)],!0x1);}}[_0x4d174b(0x186)](){const _0x4400f7=_0x4d174b;throw new Error(_0x4400f7(0x222));}[_0x4d174b(0x3e9)](_0x486a88){const _0xe25d8c=_0x4d174b;return this[_0xe25d8c(0x261)]['push'](_0x486a88),this;}[_0x4d174b(0x10e)](_0xa47d13){const _0x573fe0=_0x4d174b;return this[_0x573fe0(0x26b)][_0x573fe0(0x328)](_0xa47d13),this;}['onRemoteAck'](_0x45fc9c){const _0x48efdb=_0x4d174b;if(this['_awaitingChangeset'])return this[_0x48efdb(0x196)]=this['_awaitingChangeset'],this[_0x48efdb(0x182)]=null,this;throw new Error(_0x48efdb(0x18f));}[_0x4d174b(0x1c9)](_0x5a281d){const _0x48c708=_0x4d174b;return this[_0x48c708(0x105)](!!(_0x5a281d!=null&&_0x5a281d[_0x48c708(0x3e7)]));}[_0x4d174b(0x342)](){const _0x5de17c=_0x4d174b;return this[_0x5de17c(0x36e)][_0x5de17c(0x3d3)](Z,this[_0x5de17c(0x1e2)],this['type'],this[_0x5de17c(0x182)],this[_0x5de17c(0x261)],this[_0x5de17c(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}['_onConflict'](_0x40939b){const _0x26b4de=_0x4d174b;return this[_0x26b4de(0x36e)][_0x26b4de(0x3d3)](z,this[_0x26b4de(0x1e2)],this[_0x26b4de(0x13a)],this[_0x26b4de(0x182)],this['_pendingMutations'],this[_0x26b4de(0x2db)],_0x40939b);}};Y=re([f(0x7,_0x5b671c(_0x49e10e)),f(0x8,_0x5b671c(_0x5d7349)),f(0x9,_0x5b671c(O)),f(0xa,_0x50a504),f(0xb,_0x5bc562),f(0xc,_0x5f56c1),f(0xd,_0x174d0f)],Y);function As(_0x153886,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202){const _0x3db3e1=_0x4d174b;return _0x4f74a9&&_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](G,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202):_0x4f74a9?_0x153886[_0x3db3e1(0x3d3)](q,_0x5ce1f1,_0x335038,_0x4f74a9,_0x476202):_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](W,_0x5ce1f1,_0x335038,_0x1ba5a0,_0x476202):_0x153886[_0x3db3e1(0x3d3)](Pe,_0x5ce1f1,_0x335038,_0x476202);}var qn=Object[_0x4d174b(0x1e3)],zn=Object[_0x4d174b(0x13f)],tt=(_0x2407d7,_0x18db0a,_0x1f005a,_0xec2cbf)=>{for(var _0x4d9a3d=_0xec2cbf>0x1?void 0x0:_0xec2cbf?zn(_0x18db0a,_0x1f005a):_0x18db0a,_0x4d1736=_0x2407d7['length']-0x1,_0x1f0c0c;_0x4d1736>=0x0;_0x4d1736--)(_0x1f0c0c=_0x2407d7[_0x4d1736])&&(_0x4d9a3d=(_0xec2cbf?_0x1f0c0c(_0x18db0a,_0x1f005a,_0x4d9a3d):_0x1f0c0c(_0x4d9a3d))||_0x4d9a3d);return _0xec2cbf&&_0x4d9a3d&&qn(_0x18db0a,_0x1f005a,_0x4d9a3d),_0x4d9a3d;},v=(_0x1955e1,_0x2de62c)=>(_0x11efab,_0x3f7448)=>_0x2de62c(_0x11efab,_0x3f7448,_0x1955e1);let Oe=class extends _0x52c754{constructor(_0x31e9a5,_0x5edadd,_0x1d180a){const _0x2ff23c=_0x4d174b;super(),l(this,_0x2ff23c(0x35a),new Map()),l(this,_0x2ff23c(0x205),new _0x49ef1a()),(this[_0x2ff23c(0x36e)]=_0x31e9a5,this[_0x2ff23c(0x369)]=_0x5edadd,this[_0x2ff23c(0x115)]=_0x1d180a,this[_0x2ff23c(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x25f4f4=_0x4d174b;super['dispose'](),this[_0x25f4f4(0x35a)]['forEach'](_0x2944f3=>_0x2944f3[_0x25f4f4(0x15b)]()),this['_entities'][_0x25f4f4(0x295)]();}[_0x4d174b(0x1c0)](_0x544515){const _0x42196a=_0x4d174b;var _0x12cee8;return(_0x12cee8=this[_0x42196a(0x35a)][_0x42196a(0x135)](_0x544515))!=null?_0x12cee8:null;}[_0x4d174b(0x2ed)](_0x5e6a2c){const _0x191de6=_0x4d174b,_0x37e95c=this[_0x191de6(0x1c0)](_0x5e6a2c);return _0x37e95c?_0x1e95ea(_0x37e95c):this[_0x191de6(0x205)][_0x191de6(0xbe)](_0x22c59c(_0x3814b9=>_0x3814b9['unitID']===_0x5e6a2c));}[_0x4d174b(0x2a6)](){const _0x369207=_0x4d174b;this['_univerInstanceService'][_0x369207(0x174)](_0x1851b1[_0x369207(0x202)])[_0x369207(0xbe)](_0xf80876(this['dispose$']),_0x4fe2db(0x10))['subscribe'](async _0x231cf9=>{const _0x1889a7=_0x369207,_0x20e375=_0x231cf9[_0x1889a7(0x150)](),_0x22ea9a=await this['_startCollaboration'](_0x20e375,j[_0x1889a7(0x202)]);this['_entities'][_0x1889a7(0x34a)](_0x20e375,_0x22ea9a);}),this[_0x369207(0x115)][_0x369207(0x174)](_0x1851b1[_0x369207(0x2b7)])[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]),_0x4fe2db(0x10))[_0x369207(0xbe)](_0x22c59c(_0x52723f=>!_0x52723f['getUnitId']()[_0x369207(0x16d)]('__')))[_0x369207(0x269)](async _0x4bdb16=>{const _0x3b934f=_0x369207,_0x1f9ace=_0x4bdb16[_0x3b934f(0x150)](),_0x32dbb8=await this[_0x3b934f(0x158)](_0x1f9ace,j[_0x3b934f(0x2b7)]);this[_0x3b934f(0x35a)]['set'](_0x1f9ace,_0x32dbb8);}),_0x4e0a85(this[_0x369207(0x115)][_0x369207(0x286)](_0x1851b1['UNIVER_SHEET']),this[_0x369207(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1[_0x369207(0x2b7)]))[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]))[_0x369207(0x269)](_0x46731f=>{const _0x2474fd=_0x369207,_0x3ea938=_0x46731f[_0x2474fd(0x150)](),_0x182bd1=this['_entities'][_0x2474fd(0x135)](_0x3ea938);_0x182bd1&&(_0x182bd1['dispose'](),this[_0x2474fd(0x35a)][_0x2474fd(0x3e4)](_0x3ea938));});}async[_0x4d174b(0x158)](_0xa7e9ae,_0x1e7a2e){const _0x21270b=_0x4d174b,_0x5600a9=await this[_0x21270b(0x369)][_0x21270b(0x2eb)](_0xa7e9ae),_0x40a762=this[_0x21270b(0x36e)]['createInstance'](this[_0x21270b(0x3a9)](_0x1e7a2e),_0xa7e9ae,_0x1e7a2e,_0x5600a9);return await _0x40a762[_0x21270b(0x11f)](),this[_0x21270b(0x205)][_0x21270b(0xe2)](_0x40a762),_0x40a762;}[_0x4d174b(0x3a9)](_0x36d032){const _0x2946aa=_0x4d174b;switch(_0x36d032){case j['UNIVER_DOC']:return It;case j[_0x2946aa(0x202)]:return Et;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x36d032);}}};Oe=tt([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Oe),v(0x0,_0x5b671c(_0x49e10e)),v(0x1,_0x5b671c(ge)),v(0x2,_0x2269ec)],Oe);let ze=class extends _0x52c754{constructor(_0x299006,_0xce6e5f,_0x207ee5,_0x4189c3,_0x15d751,_0x35b285,_0xf3c9d4,_0x3c4d80,_0x5d7b40,_0xcf6dd,_0xc306f0,_0x5c8da3,_0x16a50e){const _0x2190e2=_0x4d174b;super(),l(this,'_state$',new _0x16da12(null)),l(this,_0x2190e2(0x332),this[_0x2190e2(0x2f2)][_0x2190e2(0x3bd)]()),l(this,'_state'),l(this,'_collaborationPaused',!0x1),l(this,'status$',this[_0x2190e2(0x332)][_0x2190e2(0xbe)](_0x120a2e(_0x302888=>_0x302888?_0x302888[_0x2190e2(0x14b)]:P[_0x2190e2(0x1fa)]),_0x473611(0x1))),l(this,_0x2190e2(0x2f6),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x2190e2(0x1e2)]=_0x299006,this[_0x2190e2(0x2c6)]=_0xce6e5f,this['_session']=_0x207ee5,this[_0x2190e2(0x36e)]=_0x4189c3,this[_0x2190e2(0xca)]=_0x15d751,this[_0x2190e2(0x1b7)]=_0x35b285,this[_0x2190e2(0x13d)]=_0xf3c9d4,this[_0x2190e2(0x197)]=_0x3c4d80,this[_0x2190e2(0x30a)]=_0x5d7b40,this['_commandService']=_0xcf6dd,this[_0x2190e2(0x22b)]=_0xc306f0,this['_permissionService']=_0x5c8da3,this[_0x2190e2(0xe6)]=_0x16a50e);}get[_0x4d174b(0x387)](){const _0x1bd0d2=_0x4d174b;return this[_0x1bd0d2(0x20d)];}async[_0x4d174b(0x11f)](){const _0x5ea170=_0x4d174b;if(this[_0x5ea170(0x387)])throw new Error(_0x5ea170(0x367));await this[_0x5ea170(0x2a6)]();}['pauseCollaboration'](){const _0xcc38d5=_0x4d174b;return this[_0xcc38d5(0x33a)]=!0x0,_0x521fe6(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x170471){const _0x4eddf8=_0x4d174b;this['_state']=_0x170471,this[_0x4eddf8(0x2f2)][_0x4eddf8(0xe2)](_0x170471);}async[_0x4d174b(0x2a6)](){const _0x59fc51=_0x4d174b;var _0x4972a5;return this[_0x59fc51(0x23a)](await this[_0x59fc51(0x16c)]()),this['_singleActiveUnitService']&&((_0x4972a5=this[_0x59fc51(0xe6)])==null||_0x4972a5[_0x59fc51(0x2be)](this[_0x59fc51(0x1e2)]),this[_0x59fc51(0xe4)](_0x521fe6(this[_0x59fc51(0xe6)][_0x59fc51(0x21e)](this[_0x59fc51(0x1e2)])['subscribe'](_0x4e489f=>{const _0x3c8326=_0x59fc51;this[_0x3c8326(0x30a)]['debug'](_0x3c8326(0x278),_0x3c8326(0x252),_0x4e489f),_0x4e489f===Ns[_0x3c8326(0x34f)]?(this['_messageService'][_0x3c8326(0x199)]({'content':this['_localeService']['t'](_0x3c8326(0xdf)),'type':_0x17d4c8[_0x3c8326(0x14e)]}),this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this['unitID'])['id'],!0x1)):this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this[_0x3c8326(0x1e2)])['id'],!0x0);})))),this[_0x59fc51(0xe4)](_0x521fe6(this['_session'][_0x59fc51(0xc2)][_0x59fc51(0x269)](_0x9cd4ca=>{const _0x3f464f=_0x59fc51;_0x9cd4ca===de[_0x3f464f(0x2cb)]?this[_0x3f464f(0x3a7)]():_0x9cd4ca===de[_0x3f464f(0x1fa)]&&this[_0x3f464f(0x1a1)]();}))),this['disposeWithMe'](_0x521fe6(this['_session'][_0x59fc51(0x1a9)][_0x59fc51(0x269)](_0x438e23=>{const _0x433581=_0x59fc51;try{switch(_0x438e23['eventID']){case _0x2c65dc[_0x433581(0x3e5)]:{this['_onRemoteChangeset'](_0xf28be5(_0x438e23[_0x433581(0x299)]));break;}case _0x2c65dc[_0x433581(0x37a)]:{this[_0x433581(0x19d)](_0x438e23[_0x433581(0x299)]);break;}case _0x2c65dc[_0x433581(0x17c)]:{this[_0x433581(0x129)]();break;}case _0x2c65dc[_0x433581(0x26e)]:{this['_onFetchMissResult'](_0x438e23[_0x433581(0x299)]['changesets'][_0x433581(0x288)](_0x4c7cb0=>_0xf28be5(_0x4c7cb0)));break;}case _0x2c65dc[_0x433581(0x270)]:this[_0x433581(0x129)]({'isPermissionRej':!0x0});}}catch(_0x2b5124){throw console[_0x433581(0xba)](_0x433581(0xe0),_0x2b5124),_0x2b5124;}}))),this[_0x59fc51(0x20d)];}[_0x4d174b(0x391)](){this['_transitionLocked']=!0x1;}[_0x4d174b(0x2d4)](){const _0x4bd3e9=_0x4d174b;if(this[_0x4bd3e9(0x2f6)])throw new Error(_0x4bd3e9(0x250));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x37fbe5){const _0x5a4acd=_0x4d174b;this[_0x5a4acd(0x2d4)](),this[_0x5a4acd(0x23a)](this['_state'][_0x5a4acd(0x3e9)](_0x37fbe5)),this[_0x5a4acd(0x391)]();}[_0x4d174b(0x27f)](_0x5f0983){const _0x1f6b16=_0x4d174b;if(!(_0x5f0983[_0x1f6b16(0x143)]<=this['_revisionService'][_0x1f6b16(0x2af)](this['unitID']))){if(this['_collaborationPaused']){this[_0x1f6b16(0x2f7)][_0x1f6b16(0x328)](_0x5f0983);return;}this[_0x1f6b16(0xc0)](_0x5f0983);}}[_0x4d174b(0x237)](){const _0x44bca1=_0x4d174b;this[_0x44bca1(0x2f7)][_0x44bca1(0x1cb)](_0x401b18=>this[_0x44bca1(0xc0)](_0x401b18)),this[_0x44bca1(0x2f7)]=[];}[_0x4d174b(0xc0)](_0x2e3cad){const _0x4b3d02=_0x4d174b,_0xa460bb=this[_0x4b3d02(0x1b7)]['interceptor'][_0x4b3d02(0x190)](this[_0x4b3d02(0x1b7)][_0x4b3d02(0x2dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2e3cad['mutations'],null)||_0x2e3cad[_0x4b3d02(0x185)],_0x4641a5={..._0x2e3cad,'mutations':_0xa460bb};this[_0x4b3d02(0x2d4)](),this['_updateState'](this['_state'][_0x4b3d02(0x10e)](_0x4641a5)),this[_0x4b3d02(0x391)]();}[_0x4d174b(0x19d)](_0x44152b){const _0x57cf26=_0x4d174b;this['_lockTransition'](),this['_updateState'](this['_state'][_0x57cf26(0x1a4)](_0x44152b)),this[_0x57cf26(0x391)]();}[_0x4d174b(0x129)](_0x10fc94){const _0x45f6c3=_0x4d174b;this[_0x45f6c3(0x2d4)](),this['_updateState'](this[_0x45f6c3(0x20d)][_0x45f6c3(0x1c9)](_0x10fc94)),this[_0x45f6c3(0x391)]();}[_0x4d174b(0x1fc)](_0x45850e){const _0x18b20f=_0x4d174b;if(!(this[_0x18b20f(0x20d)]instanceof Y))throw new TypeError(_0x18b20f(0x103));const _0x1e4abe=_0x45850e[_0x18b20f(0x288)](_0x1ae8f5=>{const _0x4ebe3f=_0x18b20f,_0x25d10b=this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)][_0x4ebe3f(0x190)](this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)]['getInterceptPoints']()[_0x4ebe3f(0x184)])(_0x1ae8f5[_0x4ebe3f(0x185)],null)||_0x1ae8f5['mutations'];return{..._0x1ae8f5,'mutations':_0x25d10b};});this['_lockTransition'](),this[_0x18b20f(0x23a)](this['_state'][_0x18b20f(0x131)](_0x1e4abe)),this[_0x18b20f(0x391)]();}['_toggleOffline'](){const _0x3169b5=_0x4d174b;this[_0x3169b5(0x2d4)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x3169b5(0x391)]();}[_0x4d174b(0x3a7)](){const _0x3769c4=_0x4d174b;this['_lockTransition'](),this['_updateState'](this[_0x3769c4(0x20d)]['toggleOnline']()),this[_0x3769c4(0x391)]();}async['_createInitialState'](){return new Promise(_0x2d00fd=>{const _0x5efe6c=_0x2798;this['_session'][_0x5efe6c(0xc2)]['pipe'](_0x15818d(0x1))[_0x5efe6c(0x269)](async _0x2fb6a7=>{const _0x5c56e0=_0x5efe6c;_0x2d00fd(await this[_0x5c56e0(0x156)](_0x2fb6a7===de[_0x5c56e0(0x2cb)]));});});}[_0x4d174b(0x21f)](){const _0x592863=_0x4d174b,_0x6fd294=this[_0x592863(0x1e2)];return{'onStateChange':(_0x3d4af2,_0x1ea1da)=>{const _0x33e937=_0x592863;if(_0x3d4af2!==this[_0x33e937(0x20d)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3d4af2[_0x33e937(0x14b)]+_0x33e937(0x136)+_0x1ea1da['status']+_0x33e937(0xd5)+this['_state'][_0x33e937(0x14b)]);this['_updateState'](_0x1ea1da);},'onSendChangeset':_0x234513=>{const _0x380b85=_0x592863,_0x253e31={'eventID':_0x2c65dc[_0x380b85(0x2c7)],'data':{'unitID':_0x234513[_0x380b85(0x1e2)],'unitType':this['_type'],'changeset':_0x234513,'memberID':this[_0x380b85(0x35f)][_0x380b85(0x33c)]()}};this['_session'][_0x380b85(0x2c4)](_0x253e31,this[_0x380b85(0x1e2)]);},'onMissingChangesets':({from:_0x181784,to:_0x377bd2})=>{const _0xba767a=_0x592863;this[_0xba767a(0x30a)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x181784+'\x20to\x20'+_0x377bd2);const _0x2b6e38={'eventID':_0x2c65dc[_0xba767a(0x133)],'data':{'unitID':_0x6fd294,'unitType':this[_0xba767a(0x2c6)],'from':_0x181784,'to':_0x377bd2}};this[_0xba767a(0x35f)][_0xba767a(0x2c4)](_0x2b6e38,this[_0xba767a(0x1e2)]);}};}async[_0x4d174b(0x156)](_0x5bc1fd){const _0x17a469=_0x4d174b;var _0x5cb81d,_0x3de4eb;const _0x5ed90f=await this[_0x17a469(0xca)][_0x17a469(0x2f9)](this[_0x17a469(0x1e2)]),_0xff483d=(_0x5cb81d=_0x5ed90f==null?void 0x0:_0x5ed90f['mutations'])!=null?_0x5cb81d:[],_0x5bb90d=(_0x3de4eb=_0x5ed90f==null?void 0x0:_0x5ed90f['awaitingChangeset'])!=null?_0x3de4eb:null,_0x3afbeb=this['unitID'];try{this['_replayCachedMutations'](_0x5bb90d,_0xff483d);}catch(_0x5a8cf0){this['_logService'][_0x17a469(0xba)](_0x5a8cf0);}const _0x14482c=this[_0x17a469(0x21f)]();if(_0x5bc1fd){const _0x110ef9=As(this['_injector'],_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);return _0x110ef9 instanceof W?_0x110ef9[_0x17a469(0x13c)]():(_0x110ef9 instanceof G||_0x110ef9 instanceof q)&&_0x110ef9[_0x17a469(0x186)](),_0x110ef9;}return this['_injector']['createInstance'](Z,_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);}['_replayCachedMutations'](_0x32451f,_0x5f49b2){const _0x57b35f=_0x4d174b;var _0x4dc607,_0x281cea;const _0x4a1021=this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x190)](this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x3c4)]()['COMPRESS_MUTATION_APPLY']);(_0x4dc607=_0x4a1021((_0x32451f==null?void 0x0:_0x32451f[_0x57b35f(0x185)])||[],null))==null||_0x4dc607[_0x57b35f(0x1cb)](_0x4a66b6=>this[_0x57b35f(0x178)][_0x57b35f(0x365)](_0x4a66b6['id'],_0x4a66b6[_0x57b35f(0x29f)])),(_0x281cea=_0x4a1021(_0x5f49b2||[],null))==null||_0x281cea[_0x57b35f(0x1cb)](_0x339480=>this[_0x57b35f(0x178)]['executeCommand'](_0x339480['id'],_0x339480[_0x57b35f(0x29f)]));}};ze=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x50a504),v(0x9,_0x5bc562),v(0xa,_0x1e8990),v(0xb,_0xf5bbc5),v(0xc,_0x466fab(et))],ze);let It=class extends ze{constructor(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x411428,_0x9a4d4,_0x541059,_0x1f96c7,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f){const _0x3c5dbf=_0x4d174b;super(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f),this[_0x3c5dbf(0x1e2)]=_0xb3555,this['type']=_0x5386c5,this[_0x3c5dbf(0x1cd)]=_0x2b0e46,this[_0x3c5dbf(0xf2)]=_0x411428,this[_0x3c5dbf(0x1ae)]=_0x9a4d4,this[_0x3c5dbf(0xf1)]=_0x541059,this[_0x3c5dbf(0x2a5)]=_0x1f96c7;}[_0x4d174b(0x21f)](){const _0x5931b4=_0x4d174b,_0x2749ac=super['_createHandler']();return _0x2749ac['onTransformIME']=_0x1c0797=>this[_0x5931b4(0x1ae)][_0x5931b4(0x18e)](_0x1c0797),_0x2749ac[_0x5931b4(0x120)]=_0x23b65e=>this[_0x5931b4(0xf1)][_0x5931b4(0x107)](_0x23b65e),_0x2749ac[_0x5931b4(0x33b)]=_0x52bd3e=>this[_0x5931b4(0x2a5)][_0x5931b4(0x1a3)](_0x52bd3e),_0x2749ac['onTransformRemoteChangesetByIMECache']=_0x3ba237=>this[_0x5931b4(0x1ae)][_0x5931b4(0x1c7)](_0x3ba237),_0x2749ac;}async['_init'](){const _0x255671=_0x4d174b,_0xddfd87=await super[_0x255671(0x2a6)]();return this['disposeWithMe'](this['_commandService'][_0x255671(0x1e4)]((_0x48da41,_0x23fa20)=>{const _0x326490=_0x255671;if(_0x48da41['type']!==_0x4d4345[_0x326490(0x31a)]||_0x23fa20!=null&&_0x23fa20['fromCollab']||_0x23fa20!=null&&_0x23fa20[_0x326490(0x3b2)])return;const _0x449d8c=_0x48da41['params'];if((_0x449d8c==null?void 0x0:_0x449d8c[_0x326490(0x22a)])!==this[_0x326490(0x1e2)])return;let _0xa6db38=_0x48da41;if(_0xa6db38['id']===_0x257904['id']){const _0x7528b3=_0xa6db38[_0x326490(0x29f)];_0xa6db38={'id':_0x257904['id'],'type':_0x4d4345[_0x326490(0x31a)],'params':{'unitId':_0x7528b3[_0x326490(0x22a)],'actions':_0x7528b3[_0x326490(0x3da)],'textRanges':null}};}const _0x55cf89=this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x190)](this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x3c4)]()[_0x326490(0x2f8)])([_0xa6db38],null)||[_0xa6db38];this['_onLocalMutation'](_0x55cf89[0x0]);})),_0xddfd87;}};It=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(_0x199abc)),v(0x9,_0x5b671c(Xe)),v(0xa,_0x5b671c(Je)),v(0xb,_0x5b671c(jt)),v(0xc,_0x50a504),v(0xd,_0x5bc562),v(0xe,_0x1e8990),v(0xf,_0xf5bbc5),v(0x10,_0x466fab(et))],It);let Et=class extends ze{constructor(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x319502,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912){const _0x429a6f=_0x4d174b;super(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912),this[_0x429a6f(0x1e2)]=_0x1223b4,this[_0x429a6f(0x13a)]=_0x73e8de,this['session']=_0x3526fc,this[_0x429a6f(0x3e1)]=_0x319502;}[_0x4d174b(0x21f)](){const _0x30eba1=_0x4d174b,_0xe04672=super[_0x30eba1(0x21f)]();return _0xe04672[_0x30eba1(0x120)]=_0x3df2cf=>this[_0x30eba1(0x3e1)][_0x30eba1(0x107)](_0x3df2cf),_0xe04672;}async[_0x4d174b(0x2a6)](){const _0x299a5d=_0x4d174b,_0x5d40ee=await super[_0x299a5d(0x2a6)]();return this['disposeWithMe'](this[_0x299a5d(0x178)][_0x299a5d(0x1e4)]((_0x5d9261,_0x9b5d8f)=>{const _0x42606e=_0x299a5d;if(_0x5d9261[_0x42606e(0x13a)]!==_0x4d4345['MUTATION']||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x242)]||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x3b2)])return;const _0x47de62=_0x5d9261[_0x42606e(0x29f)];if((_0x47de62==null?void 0x0:_0x47de62[_0x42606e(0x22a)])!==this[_0x42606e(0x1e2)])return;const _0x1c3ffe=_0x5d9261,_0x12564d=this[_0x42606e(0x1b7)][_0x42606e(0x2dd)]['fetchThroughInterceptors'](this[_0x42606e(0x1b7)]['interceptor'][_0x42606e(0x3c4)]()[_0x42606e(0x2f8)])([_0x1c3ffe],null)||[_0x1c3ffe];this[_0x42606e(0x1b3)](_0x12564d[0x0]);})),_0x5d40ee;}};Et=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(qe)),v(0x9,_0x50a504),v(0xa,_0x5bc562),v(0xb,_0x1e8990),v(0xc,_0xf5bbc5),v(0xd,_0x466fab(et))],Et);const ns=[_0x4d174b(0x27d),_0x4d174b(0x334),_0x4d174b(0x289),_0x4d174b(0x313),_0x4d174b(0x29b),_0x4d174b(0x335)];class xt extends _0x3d777f{constructor(){const _0x2d33a1=_0x4d174b;super(...arguments),l(this,_0x2d33a1(0x1c6),new Map()),l(this,'_colorIndex',0x0);}[_0x4d174b(0x1d5)](_0x2c7a5b){const _0x47ace6=_0x4d174b;if(this[_0x47ace6(0x1c6)][_0x47ace6(0x37c)](_0x2c7a5b))return this[_0x47ace6(0x1c6)][_0x47ace6(0x135)](_0x2c7a5b);const _0x1a9763=ns[this[_0x47ace6(0x320)]];return this[_0x47ace6(0x320)]=(this[_0x47ace6(0x320)]+0x1)%ns[_0x47ace6(0x2e1)],this[_0x47ace6(0x1c6)][_0x47ace6(0x34a)](_0x2c7a5b,_0x1a9763),_0x1a9763;}}var Zn=Object[_0x4d174b(0x1e3)],Qn=Object['getOwnPropertyDescriptor'],er=(_0x28445c,_0x18b0d0,_0x9406c,_0xad7db3)=>{for(var _0xb2fcc1=_0xad7db3>0x1?void 0x0:_0xad7db3?Qn(_0x18b0d0,_0x9406c):_0x18b0d0,_0xe21dd5=_0x28445c['length']-0x1,_0x47a9f3;_0xe21dd5>=0x0;_0xe21dd5--)(_0x47a9f3=_0x28445c[_0xe21dd5])&&(_0xb2fcc1=(_0xad7db3?_0x47a9f3(_0x18b0d0,_0x9406c,_0xb2fcc1):_0x47a9f3(_0xb2fcc1))||_0xb2fcc1);return _0xad7db3&&_0xb2fcc1&&Zn(_0x18b0d0,_0x9406c,_0xb2fcc1),_0xb2fcc1;},ce=(_0x1487f1,_0x2fe3ed)=>(_0x52877e,_0x2162f2)=>_0x2fe3ed(_0x52877e,_0x2162f2,_0x1487f1);const tr=0x12c,sr=0x64,ir=()=>{let _0x3dc8cb=[],_0x1df939=!0x1;return _0x388666=>{const _0x9f283c=_0x2798;_0x3dc8cb[_0x9f283c(0x328)](_0x388666),_0x1df939||(_0x1df939=!0x0,setTimeout(()=>{const _0xc42898=_0x9f283c;_0x3dc8cb[_0xc42898(0x1cb)](_0x4c8a73=>_0x4c8a73()),_0x3dc8cb=[],_0x1df939=!0x1;}));};};let Ct=class extends _0x52c754{constructor(_0x51f36c,_0x3fb168,_0x44fd1e,_0x41fa3f,_0xcf6515,_0x27a195,_0x30688c,_0x462c82){const _0x55571f=_0x4d174b;super(),l(this,_0x55571f(0x230),!0x1),l(this,_0x55571f(0x2a6),!0x1),l(this,_0x55571f(0x3f3),new _0x16da12(new Map())),l(this,_0x55571f(0x1dc),this[_0x55571f(0x3f3)][_0x55571f(0x3bd)]()),l(this,_0x55571f(0x1b8),new _0x16da12([])),l(this,_0x55571f(0x1b2),this['_roomMembers$'][_0x55571f(0xbe)](_0x552316(tr))),l(this,_0x55571f(0x28e),_0x7a8360((_0xd172c8,_0x4c500b)=>{const _0x545c7c=_0x55571f,_0x5eb5da={'eventID':_0x2c65dc[_0x545c7c(0x301)],'data':{'unitID':this[_0x545c7c(0x1e2)],'memberID':this['_session'][_0x545c7c(0x33c)](),'selection':_0xd693b7(_0xd172c8,_0x4c500b[_0x545c7c(0x1b4)])}};this[_0x545c7c(0x35f)][_0x545c7c(0x2c4)](_0x5eb5da,this[_0x545c7c(0x1e2)]);},sr)),(this[_0x55571f(0x1e2)]=_0x51f36c,this[_0x55571f(0x35f)]=_0x3fb168,this['_injector']=_0x44fd1e,this[_0x55571f(0xe8)]=_0x41fa3f,this[_0x55571f(0x2d9)]=_0xcf6515,this[_0x55571f(0x115)]=_0x27a195,this[_0x55571f(0x178)]=_0x30688c,this[_0x55571f(0x17b)]=_0x462c82);}get[_0x4d174b(0x3e8)](){const _0x3e884e=_0x4d174b;return this[_0x3e884e(0x3f3)][_0x3e884e(0x257)]();}get[_0x4d174b(0x1bf)](){const _0x5a3fde=_0x4d174b;return this[_0x5a3fde(0x1b8)][_0x5a3fde(0x257)]();}[_0x4d174b(0x15b)](){const _0x35f780=_0x4d174b;super[_0x35f780(0x15b)](),this[_0x35f780(0x3f3)][_0x35f780(0xe2)](new Map()),this[_0x35f780(0x3f3)][_0x35f780(0x25e)](),this[_0x35f780(0x1b8)][_0x35f780(0xe2)]([]),this[_0x35f780(0x1b8)][_0x35f780(0x25e)]();}[_0x4d174b(0x11f)](){const _0x52763d=_0x4d174b;this[_0x52763d(0x2a6)]||(this['_init']=!0x0,this[_0x52763d(0x35f)][_0x52763d(0xc2)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x135174=>{const _0x49c06d=_0x52763d;_0x135174===de['ONLINE']?this[_0x49c06d(0x3a7)]():this[_0x49c06d(0x1a1)]();}),this['_session'][_0x52763d(0x1a9)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x316c52=>{const _0x1b62e5=_0x52763d,_0x5b7701=_0x316c52['eventID'];_0x5b7701===_0x2c65dc[_0x1b62e5(0x301)]&&this[_0x1b62e5(0x283)](_0x316c52),_0x5b7701===_0x2c65dc[_0x1b62e5(0x3f4)]&&this[_0x1b62e5(0x1f8)](_0x316c52);}),this['_onRefRangeChange'](),this[_0x52763d(0xe4)](this[_0x52763d(0x178)][_0x52763d(0x1e4)](_0x5a6744=>{const _0x288d25=_0x52763d;if(this['_online']&&_0x5a6744['id']===_0x32ba42['id']&&_0x5a6744[_0x288d25(0x29f)][_0x288d25(0x22a)]===this[_0x288d25(0x1e2)]){const _0x3da4f0=_0x5a6744['params'];this[_0x288d25(0x28e)](_0x3da4f0[_0x288d25(0x373)],_0x3da4f0[_0x288d25(0x3b5)][0x0]);}})));}[_0x4d174b(0x283)](_0x27e27f){const _0x1d9b5c=_0x4d174b;var _0x493a4b,_0x23acc4;const {memberID:_0x2cbbcf,selection:_0x2f90d5}=_0x27e27f[_0x1d9b5c(0x299)],{sheetName:_0x1599f0,range:_0x344d4a}=_0x153292(_0x2f90d5),_0x2f1ce6={'name':(_0x23acc4=(_0x493a4b=this[_0x1d9b5c(0x2d9)][_0x1d9b5c(0x35b)](this[_0x1d9b5c(0x1e2)],_0x2cbbcf))==null?void 0x0:_0x493a4b[_0x1d9b5c(0x22e)])!=null?_0x23acc4:_0x1d9b5c(0x247),'range':this[_0x1d9b5c(0x293)](_0x1599f0,_0x344d4a),'sheetID':_0x1599f0,'color':this[_0x1d9b5c(0xe8)][_0x1d9b5c(0x1d5)](_0x2cbbcf),'selection':_0x2f90d5},_0x5ea376=this[_0x1d9b5c(0x3e8)];_0x5ea376[_0x1d9b5c(0x34a)](_0x2cbbcf,_0x2f1ce6),this[_0x1d9b5c(0x3f3)]['next'](_0x5ea376);}[_0x4d174b(0x1f8)](_0x463c61){const _0xb07c44=_0x4d174b,{memberID:_0x26bd0f}=_0x463c61[_0xb07c44(0x299)],_0x1fdf5d=this['cursorInfo'];_0x1fdf5d['delete'](_0x26bd0f),this[_0xb07c44(0x3f3)][_0xb07c44(0xe2)](_0x1fdf5d);}['_getMergeRange'](_0x234bda,_0x335ef5){const _0x4d6319=_0x4d174b;var _0x512180,_0x100133;const _0x410cc9=(_0x100133=(_0x512180=this[_0x4d6319(0x115)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x512180[_0x4d6319(0x2e7)](_0x234bda))==null?void 0x0:_0x100133[_0x4d6319(0x11d)]();return(_0x410cc9==null?void 0x0:_0x410cc9[_0x4d6319(0xbc)](_0x22737b=>_0x439eae[_0x4d6319(0x176)](_0x22737b,_0x335ef5)))||_0x335ef5;}['_onRefRangeChange'](){const _0x552af0=_0x4d174b,_0x377bbc=new _0x57d5bc(),_0x3814e9=ir(),_0x5c48c9=()=>{const _0x595ede=_0x2798;_0x377bbc['dispose']();const _0xe619f7=(_0x1ad789,_0x444625,_0xd9f226,_0x2e450a)=>{const _0x260243=_0x2798;let _0x3b7ab2=[];switch(_0x1ad789['id']){case _0x52a1d4[_0x260243(0x3b9)]:{_0x3b7ab2=_0x881384(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xcd)]:{_0x3b7ab2=_0x1ca379(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xce)]:{_0x3b7ab2=_0x326930(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x109)]:{_0x3b7ab2=_0x3be4c3(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x215)]:{_0x3b7ab2=_0x255bb6(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x1bd)]:{_0x3b7ab2=_0x345f09(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x388)]:{_0x3b7ab2=_0x4e0a2e(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveColCommandId']:{_0x3b7ab2=_0x22e932(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveRowCommandId']:{_0x3b7ab2=_0x17649b(_0x1ad789,_0x2e450a);break;}}const _0x4dbcb0=_0x43235e(_0x3b7ab2,_0x2e450a),_0x48a02e=this[_0x260243(0x3e8)][_0x260243(0x135)](_0x444625);if(_0x48a02e&&_0x4dbcb0){const _0x49d11f={..._0x48a02e,'range':_0x4dbcb0};this[_0x260243(0x3e8)][_0x260243(0x34a)](_0x444625,_0x49d11f),_0x3814e9(()=>{const _0x255e6a=_0x260243,_0x42f9d6=this[_0x255e6a(0x17b)][_0x255e6a(0x241)](_0x4dbcb0,_0x29652c=>(_0x42f9d6[_0x255e6a(0x15b)](),_0xe619f7(_0x29652c,_0x444625,_0xd9f226,_0x4dbcb0)));_0x377bbc['add'](_0x42f9d6);});}return{'redos':[],'undos':[]};};this[_0x595ede(0x3e8)][_0x595ede(0x1cb)]((_0x345c24,_0x54b252)=>{const _0x250cd6=_0x595ede,{range:_0x2eed8f,sheetID:_0x23f651}=_0x345c24,_0x493a6c=this[_0x250cd6(0x17b)][_0x250cd6(0x241)](_0x2eed8f,_0x10bb89=>(_0x493a6c['dispose'](),_0xe619f7(_0x10bb89,_0x54b252,_0x23f651,_0x2eed8f)));_0x377bbc[_0x250cd6(0x130)](_0x493a6c);});};this[_0x552af0(0xe4)](_0x521fe6(this[_0x552af0(0x3f3)][_0x552af0(0x269)](()=>{_0x5c48c9();})));}[_0x4d174b(0x3a7)](){const _0x539cb5=_0x4d174b;var _0x20f90b,_0x195fa8;if(this[_0x539cb5(0x230)]=!0x0,((_0x20f90b=this[_0x539cb5(0x115)]['getFocusedUnit']())==null?void 0x0:_0x20f90b[_0x539cb5(0x150)]())!==this[_0x539cb5(0x1e2)])return;const _0x39a7d3=(_0x195fa8=this[_0x539cb5(0x36e)][_0x539cb5(0x135)](_0x298766)[_0x539cb5(0x2ef)]())==null?void 0x0:_0x195fa8[0x0],_0x5abcce=this['_univerInstanceService'][_0x539cb5(0x2f1)](_0x1851b1[_0x539cb5(0x202)])[_0x539cb5(0x166)]();_0x39a7d3&&_0x5abcce&&this['_updateLocalCursor'](_0x5abcce['getSheetId'](),_0x39a7d3);}[_0x4d174b(0x1a1)](){const _0x2241ed=_0x4d174b;this[_0x2241ed(0x230)]=!0x1;}};Ct=er([ce(0x2,_0x5b671c(_0x49e10e)),ce(0x3,_0x5b671c(xt)),ce(0x4,_0x5b671c(te)),ce(0x5,_0x2269ec),ce(0x6,_0x5bc562),ce(0x7,_0x5b671c(_0x30eaeb))],Ct);var nr=Object[_0x4d174b(0x1e3)],rr=Object[_0x4d174b(0x13f)],or=(_0x5275b7,_0x3e12b8,_0x2df383,_0x390fb2)=>{const _0x28718c=_0x4d174b;for(var _0x2602db=_0x390fb2>0x1?void 0x0:_0x390fb2?rr(_0x3e12b8,_0x2df383):_0x3e12b8,_0x482993=_0x5275b7[_0x28718c(0x2e1)]-0x1,_0x59b043;_0x482993>=0x0;_0x482993--)(_0x59b043=_0x5275b7[_0x482993])&&(_0x2602db=(_0x390fb2?_0x59b043(_0x3e12b8,_0x2df383,_0x2602db):_0x59b043(_0x2602db))||_0x2602db);return _0x390fb2&&_0x2602db&&nr(_0x3e12b8,_0x2df383,_0x2602db),_0x2602db;},Q=(_0x6e717,_0x1cdc4b)=>(_0x22b788,_0x51edbf)=>_0x1cdc4b(_0x22b788,_0x51edbf,_0x6e717);const ar=0x12c,cr=0x64;let bt=class extends _0x52c754{constructor(_0x5590dd,_0x453e23,_0x14bf44,_0x1b8b11,_0x7ac4a1,_0x11a1c9,_0x41cd75,_0x4bda77,_0x4cb220){const _0x4aa358=_0x4d174b;super(),l(this,'_online',!0x1),l(this,_0x4aa358(0x2a6),!0x1),l(this,'_cursorInfo$',new _0x16da12(new Map())),l(this,_0x4aa358(0x1dc),this[_0x4aa358(0x3f3)][_0x4aa358(0x3bd)]()),l(this,_0x4aa358(0x1b8),new _0x16da12([])),l(this,_0x4aa358(0x1b2),this['_roomMembers$'][_0x4aa358(0xbe)](_0x552316(ar))),l(this,_0x4aa358(0x28e),_0x7a8360(_0x3f994d=>{const _0x2c426d=_0x4aa358,_0x4d0124={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2c426d(0x35f)][_0x2c426d(0x33c)](),'selection':Ms(_0x3f994d)}};this['_session'][_0x2c426d(0x2c4)](_0x4d0124,this[_0x2c426d(0x1e2)]);},cr)),(this[_0x4aa358(0x1e2)]=_0x5590dd,this[_0x4aa358(0x35f)]=_0x453e23,this['_injector']=_0x14bf44,this[_0x4aa358(0xe8)]=_0x1b8b11,this[_0x4aa358(0x2d9)]=_0x7ac4a1,this[_0x4aa358(0x22d)]=_0x11a1c9,this[_0x4aa358(0x3ca)]=_0x41cd75,this[_0x4aa358(0x115)]=_0x4bda77,this['_commandService']=_0x4cb220);}get[_0x4d174b(0x3e8)](){const _0x420823=_0x4d174b;return this[_0x420823(0x3f3)]['getValue']();}get['roomMembers'](){const _0x23862b=_0x4d174b;return this[_0x23862b(0x1b8)][_0x23862b(0x257)]();}[_0x4d174b(0x15b)](){const _0x3bb1be=_0x4d174b;super[_0x3bb1be(0x15b)](),this[_0x3bb1be(0x3f3)][_0x3bb1be(0xe2)](new Map()),this['_cursorInfo$']['complete'](),this[_0x3bb1be(0x1b8)]['next']([]),this[_0x3bb1be(0x1b8)][_0x3bb1be(0x25e)]();}[_0x4d174b(0x11f)](){const _0x4a7b2b=_0x4d174b;this[_0x4a7b2b(0x2a6)]||(this[_0x4a7b2b(0x2a6)]=!0x0,this[_0x4a7b2b(0x35f)]['sessionStatus$'][_0x4a7b2b(0xbe)](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x3a2e3e=>{const _0x5d9bc4=_0x4a7b2b;_0x3a2e3e===de[_0x5d9bc4(0x2cb)]?this['_toggleOnline']():this[_0x5d9bc4(0x1a1)]();}),this[_0x4a7b2b(0x35f)][_0x4a7b2b(0x1a9)]['pipe'](_0xf80876(this['dispose$']))['subscribe'](_0x3ebf78=>{const _0x104f34=_0x4a7b2b,_0x10c581=_0x3ebf78['eventID'];_0x10c581===_0x2c65dc[_0x104f34(0x301)]&&this[_0x104f34(0x283)](_0x3ebf78),_0x10c581===_0x2c65dc[_0x104f34(0x3f4)]&&this['_onCursorDelete'](_0x3ebf78);}),this[_0x4a7b2b(0xe4)](this['_commandService']['onCommandExecuted'](_0x30d700=>{const _0x489768=_0x4a7b2b,_0x21ec91=_0x30d700[_0x489768(0x29f)];_0x21ec91!=null&&this['_online']&&_0x30d700['id']===_0x3741bb['id']&&_0x21ec91[_0x489768(0x22a)]===this[_0x489768(0x1e2)]&&_0x21ec91['isEditing']===!0x1&&this['_updateLocalCursor'](_0x21ec91[_0x489768(0x142)]);})),this[_0x4a7b2b(0x22d)][_0x4a7b2b(0x31b)]['pipe'](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x1828b2=>{const _0x2fdae2=_0x4a7b2b;if((_0x1828b2==null?void 0x0:_0x1828b2[_0x2fdae2(0x1e2)])!==this[_0x2fdae2(0x1e2)])return;const _0x2ddb15={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':_0x1828b2};this[_0x2fdae2(0x283)](_0x2ddb15);}),this[_0x4a7b2b(0xe4)](this['_commandService'][_0x4a7b2b(0x1e4)](_0x17b44d=>{const _0x5b08c2=_0x4a7b2b;if(_0x17b44d[_0x5b08c2(0x29f)]==null)return;const _0x3d0f11=_0x17b44d[_0x5b08c2(0x29f)];if(_0x17b44d['id']!==_0x257904['id']||_0x3d0f11['unitId']!==this[_0x5b08c2(0x1e2)])return;const _0x212afa={'id':_0x5b08c2(0x108),'params':_0x3d0f11},_0x15a60e=this[_0x5b08c2(0x3e8)];for(const [_0x498d5f,_0x425dec]of _0x15a60e){const _0x53e401={'id':_0x5b08c2(0x108),'params':{'unitId':this[_0x5b08c2(0x1e2)],'actions':null,'textRanges':_0x425dec[_0x5b08c2(0x142)]}},_0x1d61e1=this[_0x5b08c2(0x3ca)]['transformMutation'](_0x212afa,_0x53e401,!0x1);if(_0x8ecfd4(_0x1d61e1))throw _0x1d61e1[_0x5b08c2(0xba)];_0x15a60e[_0x5b08c2(0x34a)](_0x498d5f,{..._0x425dec,'ranges':_0x1d61e1[_0x5b08c2(0x160)][_0x5b08c2(0x29f)][_0x5b08c2(0x277)]});}queueMicrotask(()=>{const _0x1157ad=_0x5b08c2;this[_0x1157ad(0x3f3)][_0x1157ad(0xe2)](_0x15a60e);});})));}[_0x4d174b(0x283)](_0x39ac72){const _0xcd400d=_0x4d174b;var _0x43a723,_0x5c98af;const {memberID:_0x8bedb9,selection:_0x459538}=_0x39ac72[_0xcd400d(0x299)],_0x39151f=kn(_0x459538),_0x3dcc0a=(_0x5c98af=(_0x43a723=this[_0xcd400d(0x2d9)][_0xcd400d(0x35b)](this[_0xcd400d(0x1e2)],_0x8bedb9))==null?void 0x0:_0x43a723[_0xcd400d(0x22e)])!=null?_0x5c98af:_0xcd400d(0x247),_0x11a2a5={'color':this[_0xcd400d(0xe8)][_0xcd400d(0x1d5)](_0x8bedb9),'name':_0x3dcc0a,'ranges':_0x39151f},_0x5bce07=this[_0xcd400d(0x3e8)];_0x5bce07['set'](_0x8bedb9,_0x11a2a5),this['_cursorInfo$'][_0xcd400d(0xe2)](_0x5bce07);}[_0x4d174b(0x1f8)](_0xc91159){const _0x3c7faf=_0x4d174b,{memberID:_0x95356e}=_0xc91159[_0x3c7faf(0x299)],_0x4c6c26=this[_0x3c7faf(0x3e8)];_0x4c6c26[_0x3c7faf(0x3e4)](_0x95356e),this[_0x3c7faf(0x3f3)][_0x3c7faf(0xe2)](_0x4c6c26);}[_0x4d174b(0x3a7)](){const _0x4fc97b=_0x4d174b;var _0x2e60c8;if(this[_0x4fc97b(0x230)]=!0x0,((_0x2e60c8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e60c8[_0x4fc97b(0x150)]())!==this[_0x4fc97b(0x1e2)])return;const _0xad46f6=this[_0x4fc97b(0x36e)][_0x4fc97b(0x135)](_0x2684a6)[_0x4fc97b(0x2ef)](),_0x27eea4=_0xad46f6==null?void 0x0:_0xad46f6[_0x4fc97b(0x288)](_0x1c3c28);Array[_0x4fc97b(0x15e)](_0x27eea4)&&_0x27eea4[_0x4fc97b(0x2e1)]>0x0&&this[_0x4fc97b(0x28e)](_0x27eea4);}[_0x4d174b(0x1a1)](){const _0x3abe37=_0x4d174b;this[_0x3abe37(0x230)]=!0x1;}};bt=or([Q(0x2,_0x5b671c(_0x49e10e)),Q(0x3,_0x5b671c(xt)),Q(0x4,_0x5b671c(te)),Q(0x5,_0x5b671c(jt)),Q(0x6,_0x174d0f),Q(0x7,_0x2269ec),Q(0x8,_0x5bc562)],bt);var hr=Object[_0x4d174b(0x1e3)],lr=Object[_0x4d174b(0x13f)],_r=(_0x42b032,_0x467c22,_0x50a7aa,_0x2801cd)=>{const _0x19e847=_0x4d174b;for(var _0x44c376=_0x2801cd>0x1?void 0x0:_0x2801cd?lr(_0x467c22,_0x50a7aa):_0x467c22,_0x49b6dd=_0x42b032[_0x19e847(0x2e1)]-0x1,_0x1a14bb;_0x49b6dd>=0x0;_0x49b6dd--)(_0x1a14bb=_0x42b032[_0x49b6dd])&&(_0x44c376=(_0x2801cd?_0x1a14bb(_0x467c22,_0x50a7aa,_0x44c376):_0x1a14bb(_0x44c376))||_0x44c376);return _0x2801cd&&_0x44c376&&hr(_0x467c22,_0x50a7aa,_0x44c376),_0x44c376;},ct=(_0x1f8188,_0x5f47d2)=>(_0x4af04f,_0x3fea61)=>_0x5f47d2(_0x4af04f,_0x3fea61,_0x1f8188);let me=class extends _0x52c754{constructor(_0x4d2438,_0xd2a5a3,_0x5b241a){const _0x356cac=_0x4d174b;super(),l(this,'_entities',new Map()),l(this,_0x356cac(0x205),new _0x49ef1a()),(this[_0x356cac(0x115)]=_0x4d2438,this[_0x356cac(0x36e)]=_0xd2a5a3,this[_0x356cac(0x369)]=_0x5b241a,this[_0x356cac(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x83369=_0x4d174b;super[_0x83369(0x15b)](),this[_0x83369(0x205)][_0x83369(0x25e)](),this[_0x83369(0x35a)]['forEach'](_0x5d5387=>_0x5d5387[_0x83369(0x15b)]());}['getCollabCursors$'](_0x22c4fb){const _0xaca66c=_0x4d174b;return this[_0xaca66c(0x35a)][_0xaca66c(0x37c)](_0x22c4fb)?this[_0xaca66c(0x35a)][_0xaca66c(0x135)](_0x22c4fb)[_0xaca66c(0x1dc)]:this['_entityInit$'][_0xaca66c(0xbe)](_0x28963b(_0x338422=>_0x338422[_0xaca66c(0x1e2)]===_0x22c4fb),_0x46582b(_0x3609e4=>_0x3609e4[_0xaca66c(0x1dc)]));}[_0x4d174b(0x2a6)](){const _0x295108=_0x4d174b;this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1[_0x295108(0x202)])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](async _0x10cca1=>{const _0x182f86=_0x295108,_0x19a0f2=_0x10cca1[_0x182f86(0x150)](),_0x27c641=await this[_0x182f86(0x37d)](_0x19a0f2);this[_0x182f86(0x205)]['next'](_0x27c641),this[_0x182f86(0x35a)][_0x182f86(0x34a)](_0x19a0f2,_0x27c641);}),this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1['UNIVER_DOC'])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0xbe)](_0x28963b(_0x652056=>!_0x652056['getUnitId']()['startsWith']('__')))[_0x295108(0x269)](async _0x4cc8a3=>{const _0x54638a=_0x295108,_0x43a0d5=_0x4cc8a3['getUnitId'](),_0xc0ef6e=await this['_startDocCollabCursor'](_0x43a0d5);this['_entityInit$']['next'](_0xc0ef6e),this[_0x54638a(0x35a)]['set'](_0x43a0d5,_0xc0ef6e);}),_0x4e0a85(this['_univerInstanceService'][_0x295108(0x286)](_0x1851b1[_0x295108(0x2b7)]),this[_0x295108(0x115)][_0x295108(0x286)](_0x1851b1['UNIVER_SHEET']))['pipe'](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](_0x50bba4=>{const _0x57c2a5=_0x295108,_0x40fa75=_0x50bba4[_0x57c2a5(0x150)](),_0x1c1685=this[_0x57c2a5(0x35a)][_0x57c2a5(0x135)](_0x40fa75);_0x1c1685&&(_0x1c1685['dispose'](),this[_0x57c2a5(0x35a)][_0x57c2a5(0x3e4)](_0x40fa75));});}async['_startSheetCollabCursor'](_0x5741f8){const _0x5ee0e2=_0x4d174b,_0xc1d816=await this[_0x5ee0e2(0x369)]['requireSession'](_0x5741f8),_0x1f3760=this[_0x5ee0e2(0x36e)][_0x5ee0e2(0x3d3)](Ct,_0x5741f8,_0xc1d816);return _0x1f3760['init'](),_0x1f3760;}async[_0x4d174b(0x2c0)](_0x4b5b49){const _0x47b8c6=_0x4d174b,_0x18b7ca=await this[_0x47b8c6(0x369)]['requireSession'](_0x4b5b49),_0x2ede5a=this[_0x47b8c6(0x36e)][_0x47b8c6(0x3d3)](bt,_0x4b5b49,_0x18b7ca);return _0x2ede5a[_0x47b8c6(0x11f)](),_0x2ede5a;}};me=_r([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],me),ct(0x0,_0x2269ec),ct(0x1,_0x5b671c(_0x49e10e)),ct(0x2,_0x5b671c(ge))],me);const we=0x14,rs=0xc8,ht=0x4,ur=0x5;function dr(_0x3c5079,_0x2d5088){const _0x433743=_0x4d174b;let {radius:_0x2762ad,width:_0xef11b4,height:_0x56cb84}=_0x2d5088;_0x2762ad=_0x2762ad!=null?_0x2762ad:0x0,_0xef11b4=_0xef11b4!=null?_0xef11b4:0x1e,_0x56cb84=_0x56cb84!=null?_0x56cb84:0x1e;let _0x5d746f=0x0,_0x5e8a50=0x0,_0x1faacb=0x0;_0x5d746f=_0x5e8a50=_0x1faacb=Math['min'](_0x2762ad,_0xef11b4/0x2,_0x56cb84/0x2),_0x3c5079['beginPath'](),_0x3c5079[_0x433743(0x2b8)](_0x5d746f,0x0),_0x3c5079[_0x433743(0x1ec)](_0xef11b4-_0x5e8a50,0x0),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x5e8a50,_0x5e8a50,_0x5e8a50,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c5079[_0x433743(0x1ec)](_0xef11b4,_0x56cb84-_0x1faacb),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x1faacb,_0x56cb84-_0x1faacb,_0x1faacb,0x0,Math['PI']/0x2,!0x1),_0x3c5079['lineTo'](0x0,_0x56cb84),_0x3c5079['lineTo'](0x0,_0x5d746f),_0x3c5079['arc'](_0x5d746f,_0x5d746f,_0x5d746f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c5079[_0x433743(0x318)](),_0x2d5088[_0x433743(0x1a2)]&&(_0x3c5079[_0x433743(0x32f)](),_0x3c5079[_0x433743(0x24e)]=_0x2d5088[_0x433743(0x1a2)],_0x2d5088[_0x433743(0x16a)]==='evenodd'?_0x3c5079[_0x433743(0x1a2)]('evenodd'):_0x3c5079['fill'](),_0x3c5079['restore']());}class st extends _0x4a0992{constructor(_0xe11e81,_0x272da8){const _0x38f892=_0x4d174b;super(_0xe11e81,_0x272da8),l(this,_0x38f892(0x377)),l(this,'text'),(this[_0x38f892(0x377)]=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x377)],this['text']=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x39a)]);}static[_0x4d174b(0xe1)](_0x41d8e2,_0x176446){const _0x4bfa8f=_0x4d174b,{text:_0x156d1a,color:_0x32e790}=_0x176446;_0x41d8e2['save'](),_0x41d8e2['font']=_0x4bfa8f(0x36d);const _0x3772c3=_0x41d8e2[_0x4bfa8f(0x15a)](_0x156d1a)[_0x4bfa8f(0x2fa)],_0x27439d=Math[_0x4bfa8f(0x2d2)](_0x3772c3+0x2*ht,rs);dr(_0x41d8e2,{'height':we,'radius':0x4,'width':_0x27439d,'fill':_0x32e790,'evented':!0x1}),_0x41d8e2[_0x4bfa8f(0x24e)]=_0x4bfa8f(0x1b9);const _0x4baf55=ht,_0x4b407b=we-ur,_0x142628=rs-0x2*ht;if(_0x3772c3>_0x142628){let _0x44f09e='',_0x3ee199=0x0;for(const _0x467c62 of _0x156d1a){const _0x3d2f47=_0x41d8e2[_0x4bfa8f(0x15a)](_0x467c62)[_0x4bfa8f(0x2fa)];if(_0x3ee199+_0x3d2f47<=_0x142628-_0x41d8e2[_0x4bfa8f(0x15a)]('...')['width'])_0x44f09e+=_0x467c62,_0x3ee199+=_0x3d2f47;else{_0x44f09e+='...';break;}}_0x41d8e2[_0x4bfa8f(0x1ea)](_0x44f09e,_0x4baf55,_0x4b407b);}else _0x41d8e2['fillText'](_0x156d1a,_0x4baf55,_0x4b407b);_0x41d8e2['restore']();}[_0x4d174b(0x30f)](_0x401697){const _0x1f9294=_0x4d174b;st[_0x1f9294(0xe1)](_0x401697,this);}}const mr=0x1,fr=1.5;class gr extends _0x4a0992{constructor(_0x3cf0ea,_0x44123c){const _0x355a35=_0x4d174b;super(_0x3cf0ea,_0x44123c),l(this,_0x355a35(0x2fe)),l(this,_0x355a35(0x3d9),!0x1),l(this,_0x355a35(0x3ab)),l(this,_0x355a35(0x22c),''),l(this,'_labelPosition','top'),l(this,'_backgroundColor'),(_0x44123c&&this[_0x355a35(0x38f)](_0x44123c),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x355a35(0x38f)]({'hovered':!0x0})),this[_0x355a35(0x1ee)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xbca1ce){const _0x3653bf=_0x4d174b;var _0x2e5620,_0x26bcd7,_0x178f79,_0x2760ba,_0x5ac0a1,_0xec6cd9;this[_0x3653bf(0x2fe)]=(_0x2e5620=_0xbca1ce[_0x3653bf(0x377)])!=null?_0x2e5620:this[_0x3653bf(0x2fe)],this[_0x3653bf(0x3d9)]=(_0x26bcd7=_0xbca1ce[_0x3653bf(0x3ba)])!=null?_0x26bcd7:this[_0x3653bf(0x3d9)],this[_0x3653bf(0x3ab)]=(_0x178f79=_0xbca1ce[_0x3653bf(0x1b4)])!=null?_0x178f79:this[_0x3653bf(0x3ab)],this[_0x3653bf(0x22c)]=(_0x2760ba=_0xbca1ce[_0x3653bf(0x22e)])!=null?_0x2760ba:this['_name'],this[_0x3653bf(0x244)]=(_0x5ac0a1=_0xbca1ce['labelPosition'])!=null?_0x5ac0a1:this[_0x3653bf(0x244)],this[_0x3653bf(0x347)]=(_0xec6cd9=_0xbca1ce['backgroundColor'])!=null?_0xec6cd9:this['_backgroundColor'],this['transformByState']({'width':_0xbca1ce['width'],'height':_0xbca1ce[_0x3653bf(0x1ac)]});}[_0x4d174b(0x19b)](_0x328e6f){const _0x219a86=_0x4d174b,{row:_0x5c739d,column:_0x1fa5ba}=_0x328e6f;if(_0x5c739d>=this[_0x219a86(0x3ab)][_0x219a86(0xc8)]&&_0x5c739d<=this[_0x219a86(0x3ab)]['endRow']&&_0x1fa5ba>=this['_range'][_0x219a86(0x152)]&&_0x1fa5ba<=this[_0x219a86(0x3ab)]['endColumn']){this[_0x219a86(0x38f)]({'hovered':!0x0});return;}this[_0x219a86(0x38f)]({'hovered':!0x1});}[_0x4d174b(0x356)](_0x427071){return!0x1;}[_0x4d174b(0x30f)](_0x840be7){const _0x66fc70=_0x4d174b;_0x390a18[_0x66fc70(0xe1)](_0x840be7,{'width':this[_0x66fc70(0x2fa)],'height':this[_0x66fc70(0x1ac)],'strokeWidth':fr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x66fc70(0x347)]}),this[_0x66fc70(0x3d9)]&&(_0x840be7[_0x66fc70(0x32f)](),_0x840be7['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x66fc70(0x15d)?0x0:-we),st['drawWith'](_0x840be7,{'text':this[_0x66fc70(0x22c)],'color':this[_0x66fc70(0x2fe)]}),_0x840be7[_0x66fc70(0x2ab)]());}}var Sr=Object[_0x4d174b(0x1e3)],vr=Object[_0x4d174b(0x13f)],pr=(_0x43fad3,_0x3b8824,_0x309b77,_0x230978)=>{const _0x411c6e=_0x4d174b;for(var _0x5b5e16=_0x230978>0x1?void 0x0:_0x230978?vr(_0x3b8824,_0x309b77):_0x3b8824,_0x23a5b7=_0x43fad3[_0x411c6e(0x2e1)]-0x1,_0x567202;_0x23a5b7>=0x0;_0x23a5b7--)(_0x567202=_0x43fad3[_0x23a5b7])&&(_0x5b5e16=(_0x230978?_0x567202(_0x3b8824,_0x309b77,_0x5b5e16):_0x567202(_0x5b5e16))||_0x5b5e16);return _0x230978&&_0x5b5e16&&Sr(_0x3b8824,_0x309b77,_0x5b5e16),_0x5b5e16;},lt=(_0x307cb8,_0x481ecb)=>(_0x2e42a1,_0x59e497)=>_0x481ecb(_0x2e42a1,_0x59e497,_0x307cb8);const Ir=0x1389;let Tt=class extends _0x52c754{constructor(_0x49fe7c,_0x3db4c9,_0x223182,_0x1e21cd){const _0x57bc39=_0x4d174b;super(),l(this,_0x57bc39(0x3c2),new Set()),l(this,_0x57bc39(0x3d6),null),(this[_0x57bc39(0x12d)]=_0x49fe7c,this[_0x57bc39(0x19c)]=_0x3db4c9,this[_0x57bc39(0x2ee)]=_0x223182,this[_0x57bc39(0x2b9)]=_0x1e21cd,this['_init']());}[_0x4d174b(0x2a6)](){const _0x73ee20=_0x4d174b;this[_0x73ee20(0x19c)]['currentSkeleton$'][_0x73ee20(0xbe)](_0x21a0e1(this[_0x73ee20(0xdd)]),_0x6b8f52(_0x115c15=>{const _0x28eab7=_0x73ee20;if(_0x115c15){const _0x1d3b1b=_0x115c15[_0x28eab7(0x36f)];return _0x2d61f0(this[_0x28eab7(0x2ee)]['getCollabCursors$'](this[_0x28eab7(0x12d)][_0x28eab7(0x22a)]),this[_0x28eab7(0x2b9)][_0x28eab7(0x3c0)])['pipe'](_0x120a2e(([_0x54ae91,_0x1d9fa9])=>{const _0x4ee779=_0x28eab7,_0x7878b3=new Map();return _0x54ae91[_0x4ee779(0x1cb)]((_0x3bbaaa,_0x1176f2)=>{const _0x36544b=_0x4ee779;if(_0x3bbaaa[_0x36544b(0x284)]===_0x1d3b1b){const _0x15adb7={..._0x3bbaaa};_0x15adb7[_0x36544b(0x377)]=_0x1d9fa9[_0x3bbaaa['color']],_0x7878b3[_0x36544b(0x34a)](_0x1176f2,_0x15adb7);}}),{'skeleton':_0x115c15,'cursors':_0x7878b3};}));}return _0x1e95ea({'skeleton':null,'cursors':new Map()});}))[_0x73ee20(0x269)](({skeleton:_0x2aeb39,cursors:_0x4cd046})=>{const _0x2d47eb=_0x73ee20;this[_0x2d47eb(0x3ce)](),_0x2aeb39&&this['_updateCollabCursors'](_0x2aeb39,_0x4cd046);}),this['_sheetSkeletonManagerService'][_0x73ee20(0x192)][_0x73ee20(0x269)](_0x24c1d8=>{const _0x559e59=_0x73ee20;if(_0x24c1d8==null)return;const {skeleton:_0x2e16b9}=_0x24c1d8,{scene:_0x23e585}=this[_0x559e59(0x12d)];_0x23e585[_0x559e59(0x204)][_0x559e59(0x35c)](_0x7a8360(_0x478f81=>{const _0x2ef94c=_0x559e59;var _0x57a64c,_0x393fae;const {offsetX:_0x504ed9,offsetY:_0x3be40c}=_0x478f81,{x:_0x3a5147,y:_0x5e92ec}=_0x23e585[_0x2ef94c(0x210)](_0x3af05d[_0x2ef94c(0x24b)]([_0x504ed9,_0x3be40c])),{scaleX:_0x41246d,scaleY:_0x55f535}=_0x23e585[_0x2ef94c(0x3eb)](),_0x3db744=_0x23e585[_0x2ef94c(0x12a)](_0x94aa38['VIEW_MAIN']),_0x149cd0=_0x23e585[_0x2ef94c(0x333)](_0x3af05d[_0x2ef94c(0x24b)]([_0x3a5147,_0x5e92ec]),_0x3db744),_0x2c048a=_0x2e16b9[_0x2ef94c(0x343)](_0x504ed9,_0x3be40c,_0x41246d,_0x55f535,_0x149cd0);((_0x57a64c=this[_0x2ef94c(0x3d6)])==null?void 0x0:_0x57a64c[_0x2ef94c(0x1e7)])===_0x2c048a[_0x2ef94c(0x1e7)]&&((_0x393fae=this['_lastPointer'])==null?void 0x0:_0x393fae['row'])===_0x2c048a[_0x2ef94c(0x2ce)]||this[_0x2ef94c(0x3c2)]['forEach'](_0x1c37c7=>{_0x1c37c7['onMouseMove'](_0x2c048a);});},0x64));});}[_0x4d174b(0x2b3)](_0x4efbbd,_0x404322){const _0xca21cc=_0x4d174b;var _0x1688fa;const _0x1fccf4=(_0x1688fa=this[_0xca21cc(0x19c)]['getCurrent']())==null?void 0x0:_0x1688fa[_0xca21cc(0xe7)];if(!_0x1fccf4)return;const _0x45ed9c=this[_0xca21cc(0x2ff)]();if(!_0x45ed9c)return;this[_0xca21cc(0x3c2)][_0xca21cc(0x1cb)](_0x358f27=>{const _0x38e500=_0xca21cc;_0x358f27[_0x38e500(0x303)]();});const {scene:_0x306e2a}=_0x45ed9c,_0x5138b7=Er(Array[_0xca21cc(0x264)](_0x404322[_0xca21cc(0x1eb)]()))['map'](_0x209a84=>{const _0x1c4be6=_0xca21cc,{color:_0x4d646c,range:_0xa14b55,name:_0x432cf9,selection:_0x15b0ae,sheetID:_0x481a19}=_0x209a84,{startColumn:_0x93feed,startRow:_0x3ed60d,endColumn:_0x4a7ee1,endRow:_0x374143}=_0xa14b55,_0x2271b0=_0x1c49f8(_0x3ed60d,_0x93feed,_0x306e2a,_0x1fccf4),_0x30a7d8=_0x1c49f8(_0x374143,_0x4a7ee1,_0x306e2a,_0x1fccf4),{columnHeaderHeightAndMarginTop:_0x3aadb3}=_0x1fccf4,{startX:_0x4f2f74,startY:_0x1babf0}=_0x2271b0,{endX:_0x5f015a,endY:_0x4833d7}=_0x30a7d8,_0x508e8f=_0x5f015a-_0x4f2f74,_0x1e2d6f=_0x4833d7-_0x1babf0,_0x43c369={'labelPosition':_0x1babf0-_0x3aadb3>=we?_0x1c4be6(0x361):_0x1c4be6(0x15d),'sheetID':_0x481a19,'range':_0xa14b55,'color':_0x4d646c,'name':_0x432cf9,'selection':_0x15b0ae,'left':_0x4f2f74,'top':_0x1babf0,'width':_0x508e8f,'height':_0x1e2d6f,'evented':!0x1,'zIndex':Ir};return new gr(_0x432cf9,_0x43c369);});_0x306e2a[_0xca21cc(0x235)](_0x5138b7,mr),this[_0xca21cc(0x3c2)]=new Set(_0x5138b7);}[_0x4d174b(0x3ce)](){const _0x532070=_0x4d174b;var _0x2a0dde;(_0x2a0dde=this['_cursors'])==null||_0x2a0dde['forEach'](_0xbcf6f3=>_0xbcf6f3[_0x532070(0x15b)]());}[_0x4d174b(0x2ff)](){const _0x123897=_0x4d174b;return _0x361cc8(this[_0x123897(0x12d)]['unit'],this[_0x123897(0x12d)]);}};Tt=pr([lt(0x1,_0x5b671c(_0xccc92)),lt(0x2,_0x5b671c(me)),lt(0x3,_0x5b671c(_0x2191ad))],Tt);function Er(_0x2a335d){const _0xba3402=_0x4d174b,_0x4c9a01=new Map();return _0x2a335d[_0xba3402(0x1cb)](_0xb81711=>{const _0x29eb6f=_0xba3402;if(_0x4c9a01['has'](_0xb81711['selection'])){const _0x5de168=_0x4c9a01[_0x29eb6f(0x135)](_0xb81711[_0x29eb6f(0x330)]);_0x5de168[_0x29eb6f(0x22e)]+=',\x20'+_0xb81711[_0x29eb6f(0x22e)];}else _0x4c9a01[_0x29eb6f(0x34a)](_0xb81711[_0x29eb6f(0x330)],_0xb81711);}),Array[_0xba3402(0x264)](_0x4c9a01[_0xba3402(0x1eb)]());}var A=function(){const _0x184090=_0x4d174b;return A=Object[_0x184090(0xf0)]||function(_0x31d7e6){const _0x19656f=_0x184090;for(var _0x1b4578,_0xb552db=0x1,_0x2155b5=arguments[_0x19656f(0x2e1)];_0xb552db<_0x2155b5;_0xb552db++){_0x1b4578=arguments[_0xb552db];for(var _0xf30e21 in _0x1b4578)Object[_0x19656f(0x12f)][_0x19656f(0x221)][_0x19656f(0x37f)](_0x1b4578,_0xf30e21)&&(_0x31d7e6[_0xf30e21]=_0x1b4578[_0xf30e21]);}return _0x31d7e6;},A[_0x184090(0xfb)](this,arguments);},Cr=function(_0x3d26e9,_0x33c137){const _0x557564=_0x4d174b;var _0x27463a={};for(var _0x14923e in _0x3d26e9)Object['prototype']['hasOwnProperty'][_0x557564(0x37f)](_0x3d26e9,_0x14923e)&&_0x33c137['indexOf'](_0x14923e)<0x0&&(_0x27463a[_0x14923e]=_0x3d26e9[_0x14923e]);if(_0x3d26e9!=null&&typeof Object['getOwnPropertySymbols']==_0x557564(0x265)){for(var _0x13c8a7=0x0,_0x14923e=Object[_0x557564(0xc7)](_0x3d26e9);_0x13c8a7<_0x14923e['length'];_0x13c8a7++)_0x33c137[_0x557564(0x1f1)](_0x14923e[_0x13c8a7])<0x0&&Object[_0x557564(0x12f)][_0x557564(0x368)][_0x557564(0x37f)](_0x3d26e9,_0x14923e[_0x13c8a7])&&(_0x27463a[_0x14923e[_0x13c8a7]]=_0x3d26e9[_0x14923e[_0x13c8a7]]);}return _0x27463a;},Ht=_0xc5b87(function(_0x840fb8,_0x306105){const _0x40ebef=_0x4d174b;var _0x3ed32c=_0x840fb8[_0x40ebef(0x20b)],_0x3c3d2f=_0x840fb8['id'],_0x3a015b=_0x840fb8[_0x40ebef(0x21b)],_0x5bca80=_0x840fb8[_0x40ebef(0x366)],_0x48c894=Cr(_0x840fb8,[_0x40ebef(0x20b),'id',_0x40ebef(0x21b),'extend']),_0x4e7b3f='univerjs-icon\x20univerjs-icon-'[_0x40ebef(0x3df)](_0x3c3d2f,'\x20')[_0x40ebef(0x3df)](_0x3a015b||'')[_0x40ebef(0x123)](),_0xdb8c8e=_0x485761('_'[_0x40ebef(0x3df)](Rr()));return ys(_0x3ed32c,''[_0x40ebef(0x3df)](_0x3c3d2f),{'defIds':_0x3ed32c[_0x40ebef(0xeb)],'idSuffix':_0xdb8c8e['current']},A({'ref':_0x306105,'className':_0x4e7b3f},_0x48c894),_0x5bca80);});function ys(_0xdb47ad,_0x596681,_0x509eaa,_0x12b036,_0x12efba){const _0x193422=_0x4d174b;return _0x33566a(_0xdb47ad['tag'],A(A({'key':_0x596681},br(_0xdb47ad,_0x509eaa,_0x12efba)),_0x12b036),(Tr(_0xdb47ad,_0x509eaa)[_0x193422(0x2d7)]||[])['map'](function(_0x4cf873,_0x2e6c7c){const _0x293066=_0x193422;return ys(_0x4cf873,''[_0x293066(0x3df)](_0x596681,'-')[_0x293066(0x3df)](_0xdb47ad['tag'],'-')[_0x293066(0x3df)](_0x2e6c7c),_0x509eaa,void 0x0,_0x12efba);}));}function br(_0x48f602,_0x19c41f,_0x5d0bfa){const _0x5ef0e1=_0x4d174b;var _0x293b91=A({},_0x48f602[_0x5ef0e1(0x1ca)]);_0x5d0bfa!=null&&_0x5d0bfa[_0x5ef0e1(0x122)]&&_0x293b91[_0x5ef0e1(0x1a2)]===_0x5ef0e1(0x122)&&(_0x293b91['fill']=_0x5d0bfa[_0x5ef0e1(0x122)]);var _0x474a4d=_0x19c41f['defIds'];return!_0x474a4d||_0x474a4d['length']===0x0||(_0x48f602[_0x5ef0e1(0x26f)]===_0x5ef0e1(0x213)&&_0x293b91[_0x5ef0e1(0x33e)]&&(_0x293b91[_0x5ef0e1(0x33e)]=_0x293b91[_0x5ef0e1(0x33e)]+_0x19c41f[_0x5ef0e1(0x3ea)]),Object['entries'](_0x293b91)[_0x5ef0e1(0x1cb)](function(_0x321f69){const _0x2a7f7c=_0x5ef0e1;var _0x3b4a52=_0x321f69[0x0],_0x32774d=_0x321f69[0x1];typeof _0x32774d==_0x2a7f7c(0x2b2)&&(_0x293b91[_0x3b4a52]=_0x32774d['replace'](/url\(#(.*)\)/,_0x2a7f7c(0x34b)[_0x2a7f7c(0x3df)](_0x19c41f[_0x2a7f7c(0x3ea)],')')));})),_0x293b91;}function Tr(_0xd00680,_0x1d28ef){const _0x3dd8d3=_0x4d174b;var _0x3e44d6,_0x3817d9=_0x1d28ef['defIds'];return!_0x3817d9||_0x3817d9[_0x3dd8d3(0x2e1)]===0x0?_0xd00680:_0xd00680[_0x3dd8d3(0x26f)]===_0x3dd8d3(0x161)&&(!((_0x3e44d6=_0xd00680[_0x3dd8d3(0x2d7)])===null||_0x3e44d6===void 0x0)&&_0x3e44d6[_0x3dd8d3(0x2e1)])?A(A({},_0xd00680),{'children':_0xd00680[_0x3dd8d3(0x2d7)]['map'](function(_0x49e3fa){const _0x1882f1=_0x3dd8d3;return typeof _0x49e3fa['attrs']['id']=='string'&&_0x3817d9&&_0x3817d9['indexOf'](_0x49e3fa['attrs']['id'])>-0x1?A(A({},_0x49e3fa),{'attrs':A(A({},_0x49e3fa[_0x1882f1(0x1ca)]),{'id':_0x49e3fa[_0x1882f1(0x1ca)]['id']+_0x1d28ef[_0x1882f1(0x3ea)]})}):_0x49e3fa;})}):_0xd00680;}function Rr(){const _0x511476=_0x4d174b;return Math[_0x511476(0x187)]()[_0x511476(0xec)](0x24)['substring'](0x2,0x8);}Ht[_0x4d174b(0x246)]='UniverIcon';var Or={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4d174b(0x34e),'width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ad)},'children':[{'tag':'path','attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x375),'strokeLinecap':_0x4d174b(0x3ae),'strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x4d174b(0x11e)}}]}]}],'defIds':[_0x4d174b(0x2b5)]},Us=_0xc5b87(function(_0x309041,_0x4064de){const _0x14b769=_0x4d174b;return _0x33566a(Ht,Object[_0x14b769(0xf0)]({},_0x309041,{'id':_0x14b769(0xff),'ref':_0x4064de,'icon':Or}));});Us['displayName']=_0x4d174b(0x2de);var Dr={'tag':_0x4d174b(0x3bf),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ba)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x3a8),'strokeLinecap':'round','strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':_0x4d174b(0x162)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'fill':_0x4d174b(0x302),'d':_0x4d174b(0x11e),'transform':_0x4d174b(0x3b3)}}]}]}],'defIds':[_0x4d174b(0x162)]},Ls=_0xc5b87(function(_0xbeb061,_0x3ee872){const _0x2450e6=_0x4d174b;return _0x33566a(Ht,Object[_0x2450e6(0xf0)]({},_0xbeb061,{'id':_0x2450e6(0x12c),'ref':_0x3ee872,'icon':Dr}));});Ls[_0x4d174b(0x246)]=_0x4d174b(0x17a);const Pr=_0x4d174b(0xf6),wr=_0x4d174b(0x1f2),Nr=_0x4d174b(0x2d0),Mr=_0x4d174b(0x2fb),Ar=_0x4d174b(0x220),be={'onlineStatusIcon':Pr,'onlineStatusTitle':wr,'onlineStatus':Nr,'online':Mr,'offline':Ar};function yr(_0x2b770d){const _0x2840d9=_0x4d174b;switch(_0x2b770d){case P[_0x2840d9(0x1fa)]:return _0x2840d9(0x119);case P[_0x2840d9(0x10b)]:return _0x2840d9(0x316);case P[_0x2840d9(0x189)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x2840d9(0x266);case P[_0x2840d9(0x370)]:case P[_0x2840d9(0x2c1)]:case P['AWAITING_WITH_PENDING']:return _0x2840d9(0x2ec);case P['SYNCED']:return _0x2840d9(0x3f0);}}function Ur(_0x4b4f1f){const _0x1cfaeb=_0x4d174b,{status$:_0x2cedf4}=_0x4b4f1f,_0x507cf0=_0x3425e9(_0x2cedf4,P['NOT_COLLAB']),_0x10a931=_0x3c7014(_0x35ebff),_0xe12c52=_0x507cf0!==P[_0x1cfaeb(0x1fa)],_0x3c8b67=_0x10a931['t'](yr(_0x507cf0)),_0x2a4018=_0x4b7a4e(be[_0x1cfaeb(0x285)],{[be['online']]:_0xe12c52,[be[_0x1cfaeb(0x172)]]:!_0xe12c52}),_0x224b01=_0xe12c52?_0x33deb0[_0x1cfaeb(0xd7)](Ls,null):_0x33deb0[_0x1cfaeb(0xd7)](Us,null);return _0x33deb0[_0x1cfaeb(0xd7)](_0x1cfaeb(0xbd),{'className':_0x2a4018},_0x33deb0[_0x1cfaeb(0xd7)]('div',{'className':be[_0x1cfaeb(0x2cc)]},_0x224b01),_0x33deb0['createElement']('div',{'className':be[_0x1cfaeb(0x360)]},_0x3c8b67));}var Lr=Object[_0x4d174b(0x1e3)],$r=Object['getOwnPropertyDescriptor'],jr=(_0x4a6c26,_0x5c41ef,_0x7807e1,_0x338606)=>{const _0x3e5efc=_0x4d174b;for(var _0x1b0492=_0x338606>0x1?void 0x0:_0x338606?$r(_0x5c41ef,_0x7807e1):_0x5c41ef,_0x4120f2=_0x4a6c26[_0x3e5efc(0x2e1)]-0x1,_0x4a3df8;_0x4120f2>=0x0;_0x4120f2--)(_0x4a3df8=_0x4a6c26[_0x4120f2])&&(_0x1b0492=(_0x338606?_0x4a3df8(_0x5c41ef,_0x7807e1,_0x1b0492):_0x4a3df8(_0x1b0492))||_0x1b0492);return _0x338606&&_0x1b0492&&Lr(_0x5c41ef,_0x7807e1,_0x1b0492),_0x1b0492;},Ue=(_0xcc0721,_0x54722a)=>(_0x1941be,_0x131069)=>_0x54722a(_0x1941be,_0x131069,_0xcc0721);let He=class extends _0x3d777f{constructor(_0x15e73a,_0x2eb855,_0x548f5e,_0x457fba){const _0x4c4d0c=_0x4d174b;super(),l(this,_0x4c4d0c(0x259),new _0x16da12(P[_0x4c4d0c(0x2c5)])),(this['_univerInstanceService']=_0x15e73a,this[_0x4c4d0c(0x3d8)]=_0x2eb855,this[_0x4c4d0c(0x36e)]=_0x548f5e,this[_0x4c4d0c(0x260)]=_0x457fba,this[_0x4c4d0c(0x1af)](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x293d6a=_0x4d174b;this[_0x293d6a(0xe4)](this[_0x293d6a(0x3d8)][_0x293d6a(0x239)](_0x36ca7a[_0x293d6a(0x348)],()=>_0x5578f9(xr({'status$':this[_0x293d6a(0x259)][_0x293d6a(0x3bd)]()}),this[_0x293d6a(0x36e)])));}[_0x4d174b(0x104)](){const _0x32c74d=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x32c74d(0x115)][_0x32c74d(0x12e)]['pipe'](_0x46582b(()=>{const _0x3d277a=_0x32c74d,_0x5ce6b1=this[_0x3d277a(0x115)][_0x3d277a(0x276)]();return _0x5ce6b1?this['_collaborationController'][_0x3d277a(0x2ed)](_0x5ce6b1[_0x3d277a(0x150)]()):_0x1e95ea(null);}),_0x46582b(_0xbe4d20=>_0xbe4d20?_0xbe4d20[_0x32c74d(0x2d8)]:_0x1e95ea(P['NOT_COLLAB'])))['subscribe'](_0x191a98=>{const _0x51c7df=_0x32c74d;this[_0x51c7df(0x259)][_0x51c7df(0xe2)](_0x191a98);})));}};He=jr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],He),Ue(0x0,_0x2269ec),Ue(0x1,_0xe5448f),Ue(0x2,_0x5b671c(_0x49e10e)),Ue(0x3,_0x5b671c(Oe))],He);function xr(_0x20868a){const {status$:_0x2a746e}=_0x20868a;return function(){const _0x262882=_0x2798;return _0x33deb0[_0x262882(0xd7)](Ur,{'status$':_0x2a746e});};}const $s=_0x20ae42('uni.network.url-service');var Hr=Object[_0x4d174b(0x1e3)],kr=Object[_0x4d174b(0x13f)],Fr=(_0x4959eb,_0x317b75,_0x485dec,_0x502b5f)=>{const _0x270d5a=_0x4d174b;for(var _0x394c60=_0x502b5f>0x1?void 0x0:_0x502b5f?kr(_0x317b75,_0x485dec):_0x317b75,_0x31852a=_0x4959eb[_0x270d5a(0x2e1)]-0x1,_0x4f2e86;_0x31852a>=0x0;_0x31852a--)(_0x4f2e86=_0x4959eb[_0x31852a])&&(_0x394c60=(_0x502b5f?_0x4f2e86(_0x317b75,_0x485dec,_0x394c60):_0x4f2e86(_0x394c60))||_0x394c60);return _0x502b5f&&_0x394c60&&Hr(_0x317b75,_0x485dec,_0x394c60),_0x394c60;},he=(_0x38cdce,_0x17b669)=>(_0x4ba5af,_0x16af7d)=>_0x17b669(_0x4ba5af,_0x16af7d,_0x38cdce);let ke=class extends _0x52c754{constructor(_0x1487f6,_0x4d5921,_0x5cc1c7,_0x315694,_0x2f6468,_0xd8fdf8){const _0x216279=_0x4d174b;super(),this[_0x216279(0x1ad)]=_0x1487f6,this[_0x216279(0x30a)]=_0x4d5921,this[_0x216279(0x178)]=_0x5cc1c7,this['_localCacheService']=_0x315694,this[_0x216279(0x32b)]=_0x2f6468,_0xd8fdf8?_0xd8fdf8==null||_0xd8fdf8[_0x216279(0x14c)]()[_0x216279(0x346)](()=>this[_0x216279(0x2a6)]()):(this[_0x216279(0x30a)][_0x216279(0x24d)](_0x216279(0x35e),_0x216279(0x308)),this[_0x216279(0x2a6)]());}async[_0x4d174b(0x2a6)](){const _0x20a677=_0x4d174b,_0x5266aa=this['_urlService']['getParam'](_0x20a677(0x2a1)),_0x8a9aad=this[_0x20a677(0x1ad)][_0x20a677(0x37b)](_0x20a677(0x13a));if(!_0x5266aa||!_0x8a9aad){this[_0x20a677(0x30a)][_0x20a677(0x24d)](_0x20a677(0x35e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x8a9aad)){case j[_0x20a677(0x202)]:{const _0x2c44f6=await this['_loadSheet'](_0x5266aa);this[_0x20a677(0x23c)](_0x2c44f6);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x5266aa);break;}default:{this[_0x20a677(0x30a)][_0x20a677(0xba)](_0x20a677(0x35e),_0x20a677(0x2d3));break;}}}async[_0x4d174b(0x23c)](_0x3a2d3b){const _0xca1606=_0x4d174b;await this[_0xca1606(0x351)](_0x3a2d3b),_0x3a2d3b[_0xca1606(0x112)][_0xca1606(0xbe)](_0xf80876(this['dispose$']))[_0xca1606(0x269)](_0x47f37f=>{_0x47f37f&&this['_updateURLWithCurrentState'](_0x47f37f);}),this[_0xca1606(0x1ad)]['urlChange$']['pipe'](_0xf80876(this[_0xca1606(0xdd)]))[_0xca1606(0x269)](()=>this[_0xca1606(0x351)](_0x3a2d3b));}[_0x4d174b(0x385)](_0x30d331,_0x310243=!0x1){const _0x303927=_0x4d174b,_0x3a18b7=this['_urlService'][_0x303927(0x37b)](_0x303927(0x3e3));_0x30d331[_0x303927(0x200)]()!==_0x3a18b7&&this[_0x303927(0x1ad)][_0x303927(0x12b)](_0x303927(0x3e3),_0x30d331[_0x303927(0x200)](),_0x310243);}async[_0x4d174b(0x351)](_0x45edd9){const _0x10ab21=_0x4d174b;var _0x52aa25;const _0x29143b=this[_0x10ab21(0x1ad)][_0x10ab21(0x37b)](_0x10ab21(0x3e3));if(!_0x29143b||!_0x45edd9[_0x10ab21(0x2e7)](_0x29143b)){const _0x4b4903=_0x45edd9['getUnhiddenWorksheets']()[0x0],_0x1da3b8=_0x45edd9[_0x10ab21(0x2e7)](_0x4b4903);if(!_0x1da3b8)return;this['_updateURLWithCurrentState'](_0x1da3b8,!0x0),await this['_commandService'][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x4b4903});return;}((_0x52aa25=_0x45edd9[_0x10ab21(0x166)]())==null?void 0x0:_0x52aa25[_0x10ab21(0x200)]())!==_0x29143b&&await this[_0x10ab21(0x178)][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x29143b});}async[_0x4d174b(0x256)](_0x3e7dea){const _0x55ef7b=_0x4d174b;let _0x58f70c=0x0;const _0x1c1afd=await this[_0x55ef7b(0xca)]['loadOfflineData'](_0x3e7dea);return _0x1c1afd&&(_0x1c1afd[_0x55ef7b(0x3ed)]||_0x1c1afd[_0x55ef7b(0x185)][_0x55ef7b(0x2e1)]!==0x0)&&(_0x58f70c=_0x1c1afd[_0x55ef7b(0x1ff)]),_0x58f70c===0x0&&this[_0x55ef7b(0x30a)][_0x55ef7b(0x24d)]('[DataLoaderController]',_0x55ef7b(0x253)),this[_0x55ef7b(0x32b)][_0x55ef7b(0x3be)](_0x3e7dea,_0x58f70c);}async[_0x4d174b(0x3a2)](_0x35cc9d){const _0x3edb0c=_0x4d174b;let _0x51c542=0x0;const _0x156dae=await this[_0x3edb0c(0xca)][_0x3edb0c(0x2f9)](_0x35cc9d);return _0x156dae&&(_0x156dae[_0x3edb0c(0x3ed)]||_0x156dae[_0x3edb0c(0x185)][_0x3edb0c(0x2e1)]!==0x0)&&(_0x51c542=_0x156dae[_0x3edb0c(0x1ff)]),_0x51c542===0x0&&this[_0x3edb0c(0x30a)][_0x3edb0c(0x24d)](_0x3edb0c(0x35e),_0x3edb0c(0x253)),this[_0x3edb0c(0x32b)][_0x3edb0c(0xcc)](_0x35cc9d,_0x51c542);}};ke=Fr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],ke),he(0x0,$s),he(0x1,_0x50a504),he(0x2,_0x5bc562),he(0x3,_0x5b671c(O)),he(0x4,_0x5b671c(_0x8be8c0)),he(0x5,_0x466fab(_0xd560c9))],ke);var Vr=Object['defineProperty'],Br=Object[_0x4d174b(0x13f)],Wr=(_0x2760e2,_0x54c299,_0x1d089b,_0xf5b61b)=>{const _0x305934=_0x4d174b;for(var _0x4d6ece=_0xf5b61b>0x1?void 0x0:_0xf5b61b?Br(_0x54c299,_0x1d089b):_0x54c299,_0x529aaf=_0x2760e2[_0x305934(0x2e1)]-0x1,_0x48a3ad;_0x529aaf>=0x0;_0x529aaf--)(_0x48a3ad=_0x2760e2[_0x529aaf])&&(_0x4d6ece=(_0xf5b61b?_0x48a3ad(_0x54c299,_0x1d089b,_0x4d6ece):_0x48a3ad(_0x4d6ece))||_0x4d6ece);return _0xf5b61b&&_0x4d6ece&&Vr(_0x54c299,_0x1d089b,_0x4d6ece),_0x4d6ece;},os=(_0x32e87c,_0x1274e8)=>(_0x12564a,_0x3c8082)=>_0x1274e8(_0x12564a,_0x3c8082,_0x32e87c);const Gr='DEFAULT_FILE_NAME',Yr=_0x4d174b(0x16e);let Fe=class extends _0x3d777f{constructor(_0x47a93b,_0x3cc56a){const _0x181922=_0x4d174b;super(),this[_0x181922(0x115)]=_0x47a93b,this[_0x181922(0x229)]=_0x3cc56a,this[_0x181922(0x2a6)]();}[_0x4d174b(0x2a6)](){const _0x5342f4=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x5342f4(0x115)]['focused$']['subscribe'](()=>{const _0x2955ca=_0x5342f4;var _0x1f3ae3;const _0x3f3681=this[_0x2955ca(0x115)]['getFocusedUnit']();let _0x487792=(_0x1f3ae3=this['_configService'][_0x2955ca(0x1f0)](Gr))!=null?_0x1f3ae3:Yr;_0x3f3681 instanceof _0x391489&&(_0x487792=_0x3f3681[_0x2955ca(0x22e)]),document[_0x2955ca(0x100)]=_0x487792;})));}};Fe=Wr([_0xbfca41(_0x5b23af['Ready'],Fe),os(0x0,_0x2269ec),os(0x1,_0x15fd76)],Fe);var Kr=Object[_0x4d174b(0x1e3)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x362175,_0x155b50,_0x353363,_0x3eb165)=>{const _0x4dd4ee=_0x4d174b;for(var _0xddbf03=_0x3eb165>0x1?void 0x0:_0x3eb165?Xr(_0x155b50,_0x353363):_0x155b50,_0x1831c1=_0x362175[_0x4dd4ee(0x2e1)]-0x1,_0x306319;_0x1831c1>=0x0;_0x1831c1--)(_0x306319=_0x362175[_0x1831c1])&&(_0xddbf03=(_0x3eb165?_0x306319(_0x155b50,_0x353363,_0xddbf03):_0x306319(_0xddbf03))||_0xddbf03);return _0x3eb165&&_0xddbf03&&Kr(_0x155b50,_0x353363,_0xddbf03),_0xddbf03;},as=(_0x4cd861,_0x36ea31)=>(_0x544a6d,_0xc1be50)=>_0x36ea31(_0x544a6d,_0xc1be50,_0x4cd861);let Rt=class{constructor(_0x3688a0,_0x24fcaa){const _0x4ea54c=_0x4d174b;this[_0x4ea54c(0x229)]=_0x3688a0,this[_0x4ea54c(0x145)]=_0x24fcaa;}async[_0x4d174b(0x1aa)](_0xf9bf98,_0x2b9162){const _0x302430=_0x4d174b;var _0x5ecf7e;const {unitID:_0x1d18d1,type:_0x38f90a,revision:_0xdb6ad6=0x0}=_0x2b9162,_0xce412c=this[_0x302430(0x35d)]()+'/'+_0x38f90a+'/unit/'+_0x1d18d1+_0x302430(0x17e)+_0xdb6ad6,_0xf31f68=(await this[_0x302430(0x145)]['get'](_0xce412c))[_0x302430(0x154)],_0x2a1e0a=(_0x5ecf7e=_0xf31f68[_0x302430(0x193)])==null?void 0x0:_0x5ecf7e[_0x302430(0x163)];if(_0x2a1e0a){const _0x17dc60=_0x2a1e0a==null?void 0x0:_0x2a1e0a[_0x302430(0x38a)],_0x491cf8=_0x52ba54['encode'](_0x44db7c(_0x17dc60));_0x2a1e0a['originalMeta']=_0x491cf8,Object[_0x302430(0x1bc)](_0x2a1e0a[_0x302430(0x29d)])[_0x302430(0x1cb)](([,_0xb94251])=>{const _0x5b06cd=_0x302430,_0x2d8cc8=_0xb94251[_0x5b06cd(0x38a)],_0x5af500=_0x52ba54[_0x5b06cd(0x26a)](_0x44db7c(_0x2d8cc8));_0xb94251[_0x5b06cd(0x38a)]=_0x5af500;});}return _0xf31f68;}async['getSheetBlock'](_0x31fcc5,_0x53c856){const _0xf3564d=_0x4d174b,{unitID:_0x1bd355,type:_0x51a646,blockID:_0x4ff80b}=_0x53c856,_0x1e836c=this[_0xf3564d(0x157)]()+'/'+_0x51a646+_0xf3564d(0x2f5)+_0x1bd355+_0xf3564d(0x1fe)+_0x4ff80b;return(await this['_httpService']['get'](_0x1e836c))['body'];}async[_0x4d174b(0x11b)](_0x2101c2,_0x281add){const _0x19a727=_0x4d174b,{unitID:_0x383ee6,type:_0x25461a,from:_0x387299,to:_0x3387c4}=_0x281add,_0x35afe8=this[_0x19a727(0x157)]()+'/'+_0x25461a+_0x19a727(0x2f5)+_0x383ee6+_0x19a727(0x25b)+_0x387299+_0x19a727(0x21a)+_0x3387c4;return(await this['_httpService']['get'](_0x35afe8))[_0x19a727(0x154)];}[_0x4d174b(0x35d)](){const _0x14fce7=_0x4d174b;var _0x16d970;return(_0x16d970=this['_configService'][_0x14fce7(0x1f0)](en))!=null?_0x16d970:this[_0x14fce7(0x157)]();}['_getAPIPrefix'](){const _0x1e9bc1=_0x4d174b;var _0x47526c;return(_0x47526c=this[_0x1e9bc1(0x229)][_0x1e9bc1(0x1f0)](Zi))!=null?_0x47526c:Qi;}async['getResourcesRequest'](_0x56e2a8,_0x5cd1cb){const _0x45f60f=_0x4d174b,_0x328542='/universer-api/snapshot/'+_0x5cd1cb[_0x45f60f(0x13a)]+_0x45f60f(0x2f5)+_0x5cd1cb[_0x45f60f(0x1e2)]+_0x45f60f(0x311);return(await this[_0x45f60f(0x145)]['get'](_0x328542,{'params':{'resourceId':JSON['stringify'](_0x5cd1cb[_0x45f60f(0x3e6)])}}))[_0x45f60f(0x154)];}[_0x4d174b(0x354)](){const _0x1942c0=_0x4d174b;throw new Error(_0x1942c0(0x30b));}['saveSheetBlock'](){const _0x5ddfc8=_0x4d174b;throw new Error(_0x5ddfc8(0x30b));}[_0x4d174b(0x3a0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=Jr([as(0x0,_0x15fd76),as(0x1,_0x5b671c(_0x45a59b))],Rt);var qr=Object[_0x4d174b(0x1e3)],zr=Object[_0x4d174b(0x13f)],Zr=(_0x1f16ed,_0x5e35f2,_0x192b55,_0x3d64b6)=>{const _0x801a39=_0x4d174b;for(var _0x3c9fab=_0x3d64b6>0x1?void 0x0:_0x3d64b6?zr(_0x5e35f2,_0x192b55):_0x5e35f2,_0x41cbf6=_0x1f16ed[_0x801a39(0x2e1)]-0x1,_0x173568;_0x41cbf6>=0x0;_0x41cbf6--)(_0x173568=_0x1f16ed[_0x41cbf6])&&(_0x3c9fab=(_0x3d64b6?_0x173568(_0x5e35f2,_0x192b55,_0x3c9fab):_0x173568(_0x3c9fab))||_0x3c9fab);return _0x3d64b6&&_0x3c9fab&&qr(_0x5e35f2,_0x192b55,_0x3c9fab),_0x3c9fab;},Te=(_0x10b3e5,_0x149225)=>(_0x2f0540,_0x130ed3)=>_0x149225(_0x2f0540,_0x130ed3,_0x10b3e5);let Ot=class extends _0xca3891{constructor(_0x3e3717,_0x4d67fb,_0x4fa724,_0x1c32ef,_0x3fa252){const _0x17a251=_0x4d174b;super(_0x3e3717,_0x4d67fb,_0x4fa724),this[_0x17a251(0x3ca)]=_0x1c32ef,this[_0x17a251(0x30a)]=_0x3fa252;}[_0x4d174b(0x2a9)](_0x5c862c,_0x54cb19){const _0x5ee210=_0x4d174b,_0x5ec9ed=this[_0x5ee210(0x153)](_0x5c862c);if(_0x5ec9ed)try{const _0x4d30b7=this[_0x5ee210(0x10a)](_0x5ec9ed,_0x54cb19);this[_0x5ee210(0xd3)](_0x5c862c,_0x4d30b7);}catch(_0x2fc881){this[_0x5ee210(0x30a)][_0x5ee210(0xba)](_0x5ee210(0x39c),_0x2fc881),this['_clearUndo'](_0x5c862c);}const _0x16d52d=this['_getRedoStack'](_0x5c862c);if(_0x16d52d)try{const _0x40ef6f=this[_0x5ee210(0x10a)](_0x16d52d,_0x54cb19);this[_0x5ee210(0x198)](_0x5c862c,_0x40ef6f);}catch(_0x23e4b6){this['_logService'][_0x5ee210(0xba)](_0x23e4b6),this[_0x5ee210(0x329)](_0x5c862c);}}['_clearUndo'](_0x2f6b0a){const _0x4be6f7=_0x4d174b,_0x164053=this[_0x4be6f7(0x153)](_0x2f6b0a);_0x164053&&(_0x164053[_0x4be6f7(0x2e1)]=0x0,this['_updateStatus']());}[_0x4d174b(0x329)](_0x3ed24a){const _0xb09014=_0x4d174b,_0x16d9c0=this[_0xb09014(0x38e)](_0x3ed24a);_0x16d9c0&&(_0x16d9c0[_0xb09014(0x2e1)]=0x0,this[_0xb09014(0x2b1)]());}[_0x4d174b(0xd3)](_0x38ab20,_0x9922a1){const _0x52d808=_0x4d174b;this[_0x52d808(0x177)][_0x52d808(0x34a)](_0x38ab20,_0x9922a1),this[_0x52d808(0x2b1)]();}['_substituteRedoStack'](_0x5ba6b3,_0x193e2c){const _0x27f913=_0x4d174b;this[_0x27f913(0x2b0)][_0x27f913(0x34a)](_0x5ba6b3,_0x193e2c),this[_0x27f913(0x2b1)]();}[_0x4d174b(0x10a)](_0x2ce5c8,_0x31a1a1){const _0x5b582e=_0x4d174b,_0x28b59=[];let _0x5f14fd=_0x31a1a1,_0x1e0ff9=_0x31a1a1;for(let _0x3055c0=_0x2ce5c8[_0x5b582e(0x2e1)]-0x1;_0x3055c0>=0x0;_0x3055c0--){const {unitID:_0x2639cf,undoMutations:_0x2fd30f,redoMutations:_0x46583d}=_0x2ce5c8[_0x3055c0],_0x531ac1=this['_transformService'][_0x5b582e(0x147)](_0x5f14fd,_0x2fd30f),_0x4ab571=this[_0x5b582e(0x3ca)]['transformMutationsWithChangeset'](_0x1e0ff9,_0x46583d);if(_0x3d1247(_0x531ac1)||_0x3d1247(_0x4ab571)){this[_0x5b582e(0x30a)][_0x5b582e(0xba)](_0x5b582e(0x39c),_0x5b582e(0x110),_0x531ac1,_0x4ab571);break;}_0x5f14fd=_0x531ac1[_0x5b582e(0x2e4)],_0x1e0ff9=_0x4ab571[_0x5b582e(0x2e4)],_0x28b59[_0x5b582e(0x328)]({'unitID':_0x2639cf,'undoMutations':_0x531ac1['m2Prime'],'redoMutations':_0x4ab571[_0x5b582e(0x160)]});}return _0x28b59['reverse']();}};Ot=Zr([Te(0x0,_0x2269ec),Te(0x1,_0x5bc562),Te(0x2,_0x1a042d),Te(0x3,_0x174d0f),Te(0x4,_0x50a504)],Ot);class Qr extends _0x52c754{constructor(){const _0x2e082a=_0x4d174b;super(),l(this,_0x2e082a(0x3c7)),this[_0x2e082a(0x3c7)]=_0x2a799c(window,_0x2e082a(0x125))[_0x2e082a(0xbe)](_0xf80876(this['dispose$']),_0x1c7dea(0x1),_0x33a766(void 0x0));}[_0x4d174b(0x12b)](_0x4feb92,_0x1397fb,_0x144b30=!0x1){const _0x4385e5=_0x4d174b,_0xcec4b3=new URL(window[_0x4385e5(0x281)][_0x4385e5(0x272)]);_0xcec4b3[_0x4385e5(0x134)][_0x4385e5(0x34a)](_0x4feb92,_0x1397fb),_0x144b30?window[_0x4385e5(0x232)][_0x4385e5(0x383)]('','',_0xcec4b3['toString']()):window[_0x4385e5(0x232)][_0x4385e5(0x231)]('','',_0xcec4b3[_0x4385e5(0xec)]());}[_0x4d174b(0x124)](_0x4ac034,_0x377a7c=!0x1){const _0x7c0e14=_0x4d174b,_0x1415ca=new URL(window[_0x7c0e14(0x281)][_0x7c0e14(0x272)]);_0x1415ca[_0x7c0e14(0x134)][_0x7c0e14(0x3e4)](_0x4ac034),_0x377a7c?window[_0x7c0e14(0x232)][_0x7c0e14(0x383)]('','',_0x1415ca[_0x7c0e14(0xec)]()):window[_0x7c0e14(0x232)][_0x7c0e14(0x231)]('','',_0x1415ca[_0x7c0e14(0xec)]());}[_0x4d174b(0x37b)](_0x1e1feb){const _0x10d51b=_0x4d174b;var _0x53d62f;return(_0x53d62f=new URL(window[_0x10d51b(0x281)][_0x10d51b(0x272)])[_0x10d51b(0x134)]['get'](_0x1e1feb))!=null?_0x53d62f:void 0x0;}}const _t=_0x4d174b(0x2bf),eo=_0x4d174b(0xf7),Le=0x6,to=1.5,ut=0x4,so=1.5,io=_0x4d174b(0x24c);class no{constructor(_0x32a81f,_0x37acd7,_0xa444e8,_0x1e61ca){const _0xa2905e=_0x4d174b;l(this,_0xa2905e(0x2b6),[]),l(this,_0xa2905e(0x2bd),null),l(this,_0xa2905e(0x1a8),null),l(this,_0xa2905e(0x18a),null),l(this,_0xa2905e(0x290),null),l(this,'_eventUnsubscribe',null),(this[_0xa2905e(0x2f4)]=_0x32a81f,this[_0xa2905e(0x274)]=_0x37acd7,this[_0xa2905e(0x15f)]=_0xa444e8,this[_0xa2905e(0x117)]=_0x1e61ca,this[_0xa2905e(0x39f)]());}set[_0x4d174b(0x2b4)](_0x4c063c){const _0x56bedd=_0x4d174b;_0x4c063c?(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)][_0x56bedd(0x3c3)](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)][_0x56bedd(0x199)]()):(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)]['show'](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)]['hide']());}[_0x4d174b(0x15b)](){const _0x4712c6=_0x4d174b;for(const _0x58b79a of this[_0x4712c6(0x2b6)])_0x58b79a['dispose']();this[_0x4712c6(0x1a8)]&&this[_0x4712c6(0x1a8)][_0x4712c6(0x15b)](),this[_0x4712c6(0x18a)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x4712c6(0x2bd)][_0x4712c6(0x15b)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x4d174b(0x39f)](){const _0x3dc542=_0x4d174b,{_docSkeleton:_0x141375,_document:_0x486227}=this,{color:_0x1b34f1,name:_0x39c705,ranges:_0x4311be}=this[_0x3dc542(0x2f4)],_0x23f899=_0x486227[_0x3dc542(0x2cf)](),{docsLeft:_0x1c47b8,docsTop:_0x308dd1}=_0x23f899,_0x3a52fd=new _0x45f833(_0x23f899,_0x141375);for(const {startOffset:_0x132210,endOffset:_0x9194e5,collapsed:_0x3dc468,isActive:_0x44feb9}of _0x4311be){const _0x366e83=_0x141375['findNodePositionByCharIndex'](_0x132210),_0x88a552=_0x141375[_0x3dc542(0x114)](_0x9194e5);if(_0x44feb9){const {contentBoxPointGroup:_0x18e8d9}=_0x3a52fd[_0x3dc542(0x282)](_0x88a552,_0x88a552);if(_0x18e8d9[_0x3dc542(0x2e1)]===0x0)continue;this['_drawAnchor'](_0x1b34f1,_0x18e8d9,_0x1c47b8,_0x308dd1,_0x39c705),this[_0x3dc542(0x113)]=this[_0x3dc542(0xe3)]();}if(!_0x3dc468){const {contentBoxPointGroup:_0x561eaf}=_0x3a52fd[_0x3dc542(0x282)](_0x366e83,_0x88a552);if(_0x561eaf[_0x3dc542(0x2e1)]===0x0)continue;this[_0x3dc542(0xcf)](_0x1b34f1,_0x561eaf,_0x1c47b8,_0x308dd1);}}}[_0x4d174b(0x233)](_0x536560,_0x17b34e,_0x3e09e6,_0x4a66bc,_0x1da390){const _0x299b6f=_0x4d174b,_0x1404c1=this[_0x299b6f(0x291)](_0x17b34e),{left:_0x5226ff,top:_0xffae6,height:_0x331bd6}=_0x1404c1,_0x381a6e=this[_0x299b6f(0x1d3)](),_0x556888=so/_0x381a6e,_0xf0356b=new _0x390a18(_t+_0x1053dd[_0x299b6f(0x31d)](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc,'height':_0x331bd6,'width':to,'fill':_0x536560||_0x420307(_0x375c72['black'],0x0),'strokeWidth':_0x556888,'stroke':io,'evented':!0x0});this[_0x299b6f(0x2bd)]=_0xf0356b,this[_0x299b6f(0x274)][_0x299b6f(0x208)](_0xf0356b,_0x22a117);const _0x1d8098=new _0x390a18(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-ut/0x2,'height':ut,'width':ut,'fill':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'strokeWidth':0x0,'stroke':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'evented':!0x1});this[_0x299b6f(0x18a)]=_0x1d8098,this[_0x299b6f(0x274)]['addObject'](_0x1d8098,_0x22a117);const _0x114dd7=new st(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-we,'text':_0x1da390,'color':_0x536560});this[_0x299b6f(0x1a8)]=_0x114dd7,this['_scene'][_0x299b6f(0x208)](_0x114dd7,_0x22a117),this[_0x299b6f(0x2b4)]=!0x1;}[_0x4d174b(0xe3)](){const _0x51be6b=_0x4d174b,_0x20221b=this[_0x51be6b(0x2bd)][_0x51be6b(0x271)][_0x51be6b(0x35c)](()=>{this['_hover']=!0x0;}),_0x577e32=this[_0x51be6b(0x2bd)][_0x51be6b(0x1ee)][_0x51be6b(0x35c)](()=>{const _0x370526=_0x51be6b;this[_0x370526(0x290)]&&clearTimeout(this[_0x370526(0x290)]),this['_hideTimer']=setTimeout(()=>{const _0xac8c8c=_0x370526;this[_0xac8c8c(0x2b4)]=!0x1;},0x7d0);});return()=>{const _0x432da6=_0x51be6b;_0x20221b[_0x432da6(0xc6)](),_0x577e32[_0x432da6(0xc6)]();};}[_0x4d174b(0xcf)](_0x43d08a,_0x567093,_0x5d9dba,_0x506bfe){const _0x389555=_0x4d174b,_0x472c06=new _0x2cf8bf(_0x43d08a)[_0x389555(0x321)](0.2)[_0x389555(0x214)](),_0x4e36c4=new _0x1960e1(eo+_0x1053dd[_0x389555(0x31d)](Le),{'pointsGroup':_0x567093,'fill':_0x472c06||_0x420307(_0x375c72[_0x389555(0x26c)],0.2),'left':_0x5d9dba,'top':_0x506bfe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x389555(0x2b6)]['push'](_0x4e36c4),this[_0x389555(0x274)]['addObject'](_0x4e36c4,_0x22a117);}[_0x4d174b(0x291)](_0x4ae052){const _0x603fe7=_0x4ae052[0x0],_0x254682=_0x603fe7[0x0],_0xeadaf1=_0x603fe7[0x2],{x:_0x57f7fc,y:_0x17007e}=_0x254682,{x:_0x30d601,y:_0x924f8d}=_0xeadaf1;return{'left':_0x57f7fc,'top':_0x17007e,'width':_0x30d601-_0x57f7fc,'height':_0x924f8d-_0x17007e};}[_0x4d174b(0x1d3)](){const _0x50be3e=_0x4d174b,{scaleX:_0x5a9ac5,scaleY:_0x26ebe4}=this[_0x50be3e(0x274)][_0x50be3e(0x3eb)]();return Math[_0x50be3e(0x397)](_0x5a9ac5,_0x26ebe4);}}var ro=Object[_0x4d174b(0x1e3)],oo=Object[_0x4d174b(0x13f)],ao=(_0x7ee356,_0x1dff31,_0x11e2b9,_0xf24f4e)=>{for(var _0x14fdff=_0xf24f4e>0x1?void 0x0:_0xf24f4e?oo(_0x1dff31,_0x11e2b9):_0x1dff31,_0x1f6fa5=_0x7ee356['length']-0x1,_0x4e6885;_0x1f6fa5>=0x0;_0x1f6fa5--)(_0x4e6885=_0x7ee356[_0x1f6fa5])&&(_0x14fdff=(_0xf24f4e?_0x4e6885(_0x1dff31,_0x11e2b9,_0x14fdff):_0x4e6885(_0x14fdff))||_0x14fdff);return _0xf24f4e&&_0x14fdff&&ro(_0x1dff31,_0x11e2b9,_0x14fdff),_0x14fdff;},$e=(_0x2923c0,_0x24b226)=>(_0x2e60a1,_0x24519d)=>_0x24b226(_0x2e60a1,_0x24519d,_0x2923c0);let Ve=class extends _0x52c754{constructor(_0x3fe818,_0xb11fa0,_0x3f8359,_0x1ed71c,_0x33dd2f){const _0x2e199b=_0x4d174b;super(),l(this,_0x2e199b(0x3c2),[]),(this['_context']=_0x3fe818,this[_0x2e199b(0x2e2)]=_0xb11fa0,this['_collabCursorController']=_0x3f8359,this[_0x2e199b(0x2c3)]=_0x1ed71c,this['_themeService']=_0x33dd2f,this['_init']());}['_init'](){const _0x246c4a=_0x4d174b,_0x23f7d7=this[_0x246c4a(0x12d)][_0x246c4a(0x22a)],_0x2dcff4=this[_0x246c4a(0x2e2)];this[_0x246c4a(0xe4)](_0x2d61f0([this[_0x246c4a(0x2ee)]['getCollabCursors$'](_0x23f7d7),this[_0x246c4a(0x2b9)][_0x246c4a(0x3c0)]])['pipe'](_0x120a2e(([_0x395bc3,_0x1e7968])=>({'skeleton':_0x2dcff4['getSkeleton'](),'cursors':[..._0x395bc3[_0x246c4a(0x1eb)]()][_0x246c4a(0x352)](_0x1421b6=>({..._0x1421b6,'color':_0x1e7968[_0x1421b6[_0x246c4a(0x377)]]}))})))[_0x246c4a(0x269)](_0xfd2039=>{const _0x1d686b=_0x246c4a;if(this[_0x1d686b(0x3ce)](),_0xfd2039){const {skeleton:_0xc7aa88,cursors:_0x57e04f}=_0xfd2039;this[_0x1d686b(0x2b3)](_0xc7aa88,_0x57e04f);}}));}['_updateCollabCursors'](_0x1265fd,_0x4e5309){const _0x41c5fe=_0x4d174b,{scene:_0x91a442,mainComponent:_0x740780}=this['_context'],_0x451c5d=_0x4e5309[_0x41c5fe(0x288)](_0x3396ed=>new no(_0x3396ed,_0x91a442,_0x1265fd,_0x740780));this[_0x41c5fe(0x3c2)]=_0x451c5d;}[_0x4d174b(0x3ce)](){const _0x2b8f1a=_0x4d174b;this[_0x2b8f1a(0x3c2)][_0x2b8f1a(0x1cb)](_0x4cabaf=>_0x4cabaf[_0x2b8f1a(0x15b)]()),this[_0x2b8f1a(0x3c2)]=[];}};Ve=ao([_0xbfca41(_0x5b23af['Steady'],Ve),$e(0x1,_0x5b671c(_0x20b350)),$e(0x2,_0x5b671c(me)),$e(0x3,_0xa71c3c),$e(0x4,_0x5b671c(_0x2191ad))],Ve);var co=Object[_0x4d174b(0x1e3)],ho=Object['getOwnPropertyDescriptor'],lo=(_0x1facc2,_0x32a06c,_0x769da3,_0x1cdc84)=>{for(var _0x53a9e2=_0x1cdc84>0x1?void 0x0:_0x1cdc84?ho(_0x32a06c,_0x769da3):_0x32a06c,_0xabf11d=_0x1facc2['length']-0x1,_0x8fa756;_0xabf11d>=0x0;_0xabf11d--)(_0x8fa756=_0x1facc2[_0xabf11d])&&(_0x53a9e2=(_0x1cdc84?_0x8fa756(_0x32a06c,_0x769da3,_0x53a9e2):_0x8fa756(_0x53a9e2))||_0x53a9e2);return _0x1cdc84&&_0x53a9e2&&co(_0x32a06c,_0x769da3,_0x53a9e2),_0x53a9e2;},dt=(_0x337699,_0x24f7bb)=>(_0x44a871,_0x288478)=>_0x24f7bb(_0x44a871,_0x288478,_0x337699);let Ze=class{constructor(_0x139293,_0x459619,_0x1fa3e0){const _0x5378d7=_0x4d174b;this[_0x5378d7(0x229)]=_0x139293,this[_0x5378d7(0x145)]=_0x459619,this[_0x5378d7(0x372)]=_0x1fa3e0,this[_0x5378d7(0x11f)]();}['init'](){const _0x5d4187=_0x4d174b;this[_0x5d4187(0x145)][_0x5d4187(0x249)]({'priority':0x1,'interceptor':(_0x246ffa,_0x3d9ff2)=>_0x3d9ff2(_0x246ffa)[_0x5d4187(0xbe)](_0x555673(async _0x43343d=>{const _0x496792=_0x5d4187,_0x359992=_0x43343d;if(_0x359992[_0x496792(0x14b)]===0x191&&window['confirm'](this[_0x496792(0x372)]['t'](_0x496792(0x3c8)))){const _0x503daf=window[_0x496792(0x155)](window['location'][_0x496792(0x272)]);window['location']['href']=this['_getLoginPath']()+_0x496792(0x395)+_0x503daf;}return _0x359992;}))});}[_0x4d174b(0x396)](){const _0x4084f9=_0x4d174b;var _0x11323d;return(_0x11323d=this[_0x4084f9(0x229)][_0x4084f9(0x1f0)](gn))!=null?_0x11323d:Sn;}};Ze=lo([dt(0x0,_0x15fd76),dt(0x1,_0x5b671c(_0x45a59b)),dt(0x2,_0x5b671c(_0x35ebff))],Ze);var _o=Object[_0x4d174b(0x1e3)],uo=Object[_0x4d174b(0x13f)],mo=(_0x57b2cd,_0x4442de,_0x55d29d,_0x107ad8)=>{const _0x6cb14a=_0x4d174b;for(var _0x3bc3b8=_0x107ad8>0x1?void 0x0:_0x107ad8?uo(_0x4442de,_0x55d29d):_0x4442de,_0x298d64=_0x57b2cd[_0x6cb14a(0x2e1)]-0x1,_0xa2d7e3;_0x298d64>=0x0;_0x298d64--)(_0xa2d7e3=_0x57b2cd[_0x298d64])&&(_0x3bc3b8=(_0x107ad8?_0xa2d7e3(_0x4442de,_0x55d29d,_0x3bc3b8):_0xa2d7e3(_0x3bc3b8))||_0x3bc3b8);return _0x107ad8&&_0x3bc3b8&&_o(_0x4442de,_0x55d29d,_0x3bc3b8),_0x3bc3b8;},cs=(_0x2c93dc,_0x7b3688)=>(_0x4b103e,_0x32a859)=>_0x7b3688(_0x4b103e,_0x32a859,_0x2c93dc);const fo=_0x4d174b(0x111),go='/universer-api/authz';let Dt=class extends _0x3d777f{constructor(_0x10d3bb,_0x2c375f){const _0x607eb1=_0x4d174b;super(),this[_0x607eb1(0x2ac)]=_0x10d3bb,this[_0x607eb1(0x229)]=_0x2c375f,this[_0x607eb1(0x31c)]();}['_initMergeInterceptor'](){const _0x11ce52=_0x4d174b,_0x4f5c3b=this;this['disposeWithMe'](this[_0x11ce52(0x2ac)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x210201({'isMatch'(_0x28d447){const _0xce233d=_0x11ce52;var _0x41c9a0;if(_0x28d447[_0xce233d(0x2e9)]===_0xce233d(0xd6)&&((_0x41c9a0=_0x28d447[_0xce233d(0x168)])!=null&&_0x41c9a0[_0xce233d(0x154)])){const {objectID:_0x32233b,objectType:_0x14ab60}=_0x28d447[_0xce233d(0x168)]['body']||{};if(!_0x32233b||_0x14ab60===void 0x0)return!0x1;const _0x2a6458=_0x4f5c3b[_0xce233d(0x151)]()+'/'+_0x14ab60+_0xce233d(0x398)+_0x32233b+_0xce233d(0x1d4);if(_0x28d447['url']===_0x2a6458)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d521c){const _0x2f6129=_0x11ce52;var _0x5f2734;return(_0x5f2734=_0x4d521c['requestParams'])==null?void 0x0:_0x5f2734[_0x2f6129(0x154)];},'mergeParamsToRequest'(_0x54fdb2,_0x24b1aa){const _0x1a9fcf=_0x11ce52,_0x712159=_0x4f5c3b[_0x1a9fcf(0x151)]()+_0x1a9fcf(0x102),_0x2dc653=_0x54fdb2['reduce']((_0x302210,_0x11a0b3)=>{const _0x4e19a9=_0x1a9fcf,{unitID:_0x44b69b,objectID:_0x3d0626,objectType:_0x70e56f,actions:_0x289fbe}=_0x11a0b3;return _0x302210[_0x44b69b]||(_0x302210[_0x44b69b]={}),_0x302210[_0x44b69b][_0x3d0626]||(_0x302210[_0x44b69b][_0x3d0626]={'objectID':_0x3d0626,'objectType':_0x70e56f,'actions':[]}),_0x302210[_0x44b69b][_0x3d0626][_0x4e19a9(0x3da)][_0x4e19a9(0x328)](..._0x289fbe),_0x302210;},{}),_0x777543=[];for(const _0x4da79a in _0x2dc653)for(const _0x4b88ac in _0x2dc653[_0x4da79a]){const {actions:_0x4bafcc,objectType:_0x28a13a}=_0x2dc653[_0x4da79a][_0x4b88ac],_0x476271=[...new Set(_0x4bafcc)];_0x777543['push']({'unitID':_0x4da79a,'objectID':_0x4b88ac,'objectType':_0x28a13a,'actions':_0x476271});}return new _0x5e2413('POST',_0x712159,{'headers':_0x24b1aa[_0x1a9fcf(0x3b1)],'withCredentials':_0x24b1aa[_0x1a9fcf(0x381)],'responseType':_0x24b1aa[_0x1a9fcf(0x18d)],'body':{'requests':_0x777543}});}},{'distributeResult'(_0x33a1df,_0x449a6f){const _0x5b8b3a=_0x11ce52,{objectActions:_0x553a67}=_0x33a1df;return _0x449a6f[_0x5b8b3a(0x288)](_0x40e4e2=>{const _0x131058=_0x5b8b3a,{unitID:_0x21d6bd,objectID:_0x57493d,actions:_0x17ab90}=_0x40e4e2,_0x22f402=_0x553a67[_0x131058(0xbc)](_0x43b44f=>_0x43b44f[_0x131058(0x1e2)]===_0x21d6bd&&_0x43b44f[_0x131058(0xe5)]===_0x57493d),_0x2d609a=_0x17ab90[_0x131058(0x288)](_0x142f3e=>_0x22f402==null?void 0x0:_0x22f402['actions']['find'](_0xb67b68=>_0xb67b68[_0x131058(0x1c8)]===_0x142f3e))[_0x131058(0x236)](_0x51fa24=>!!_0x51fa24);return{'config':_0x40e4e2,'result':{'actions':_0x2d609a,'error':_0x33a1df['error']}};});}})}));}[_0x4d174b(0x151)](){const _0x198d29=_0x4d174b;var _0x5068d6;return(_0x5068d6=this[_0x198d29(0x229)][_0x198d29(0x1f0)](fo))!=null?_0x5068d6:go;}async['create'](_0x2434c8){const _0x3066d5=_0x4d174b,_0x116bb5=this[_0x3066d5(0x151)]()+'/'+_0x2434c8[_0x3066d5(0x248)]+_0x3066d5(0x23b);return(await this[_0x3066d5(0x2ac)]['post'](_0x116bb5,{'body':_0x2434c8}))['body'][_0x3066d5(0xe5)]||'';}async[_0x4d174b(0x10f)](_0x2b2846){const _0x468927=_0x4d174b,_0x2f177e=this['_getAPIPrefixPath']()+_0x468927(0x14d);return(await this['_HTTPService'][_0x468927(0x14f)](_0x2f177e,{'body':_0x2b2846}))[_0x468927(0x154)][_0x468927(0x194)];}async[_0x4d174b(0x15c)](_0x1fb778){const _0x14b0ef=_0x4d174b,_0x5c4aaa=this[_0x14b0ef(0x151)]()+'/'+_0x1fb778[_0x14b0ef(0x248)]+_0x14b0ef(0x398)+_0x1fb778[_0x14b0ef(0xe5)];await this[_0x14b0ef(0x2ac)][_0x14b0ef(0xf8)](_0x5c4aaa,{'body':_0x1fb778});}async[_0x4d174b(0x3ad)](_0x4661d1){const _0x5165c5=_0x4d174b,_0x251758=this[_0x5165c5(0x151)]()+'/'+_0x4661d1['objectType']+_0x5165c5(0x398)+_0x4661d1['objectID']+_0x5165c5(0x1d4);return(await this['_HTTPService']['post'](_0x251758,{'body':_0x4661d1}))[_0x5165c5(0x154)][_0x5165c5(0x3da)];}async[_0x4d174b(0x173)](_0x2b92c9){const _0x152272=_0x4d174b,_0x3f43bc=this[_0x152272(0x151)]()+_0x152272(0x102);return(await this[_0x152272(0x2ac)][_0x152272(0x14f)](_0x3f43bc,{'body':{'requests':_0x2b92c9}}))[_0x152272(0x154)][_0x152272(0x36c)];}async[_0x4d174b(0x1b0)](_0x3e0e3c){const _0x423cb5=_0x4d174b,_0xcb0e43=this[_0x423cb5(0x151)]()+'/'+_0x3e0e3c['objectType']+_0x423cb5(0x39e),_0x4123fc=await this[_0x423cb5(0x2ac)][_0x423cb5(0x14f)](_0xcb0e43,{'body':_0x3e0e3c});return{'roles':_0x4123fc[_0x423cb5(0x154)][_0x423cb5(0x24f)],'actions':_0x4123fc[_0x423cb5(0x154)]['actions']};}async[_0x4d174b(0xde)](_0x5b666e){const _0x2d3eb5=_0x4d174b,_0x4d5cd7=this[_0x2d3eb5(0x151)]()+_0x2d3eb5(0x1e6);await this[_0x2d3eb5(0x2ac)][_0x2d3eb5(0x3e4)](_0x4d5cd7,{'params':{'collaboratorID':_0x5b666e['collaboratorID'],'objectID':_0x5b666e[_0x2d3eb5(0xe5)],'unitID':_0x5b666e[_0x2d3eb5(0x1e2)]}});}async[_0x4d174b(0x3cd)](_0xa42bbc){const _0x5abdf6=_0x4d174b,_0x1fe1d5=this['_getAPIPrefixPath']()+_0x5abdf6(0x1e6);await this[_0x5abdf6(0x2ac)][_0x5abdf6(0x2f3)](_0x1fe1d5,{'body':_0xa42bbc});}async[_0x4d174b(0x3bc)](_0x4efa8d){const _0x46d99e=_0x4d174b,_0xc5fd7e=this[_0x46d99e(0x151)]()+_0x46d99e(0x1e6);await this[_0x46d99e(0x2ac)][_0x46d99e(0x14f)](_0xc5fd7e,{'body':_0x4efa8d});}async[_0x4d174b(0x1c4)](_0x4335e1){const _0xef1362=_0x4d174b,_0x47f42e=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0xef1362(0x2ac)][_0xef1362(0x135)](_0x47f42e,{'params':{'objectID':_0x4335e1['objectID'],'unitID':_0x4335e1[_0xef1362(0x1e2)]}}))[_0xef1362(0x154)][_0xef1362(0x101)];}async['putCollaborators'](_0x3b7c8e){const _0x5994d7=_0x4d174b,_0xbde44=this[_0x5994d7(0x151)]()+'/collaborator';await this['_HTTPService']['put'](_0xbde44,{'body':_0x3b7c8e});}};Dt=mo([cs(0x0,_0x5b671c(_0x45a59b)),cs(0x1,_0x5b671c(_0x15fd76))],Dt);var So=Object[_0x4d174b(0x1e3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x41eeff,_0x2c127f,_0x3aea62,_0x4bfddf)=>{for(var _0x372627=_0x4bfddf>0x1?void 0x0:_0x4bfddf?vo(_0x2c127f,_0x3aea62):_0x2c127f,_0x17c001=_0x41eeff['length']-0x1,_0xfbcb8c;_0x17c001>=0x0;_0x17c001--)(_0xfbcb8c=_0x41eeff[_0x17c001])&&(_0x372627=(_0x4bfddf?_0xfbcb8c(_0x2c127f,_0x3aea62,_0x372627):_0xfbcb8c(_0x372627))||_0x372627);return _0x4bfddf&&_0x372627&&So(_0x2c127f,_0x3aea62,_0x372627),_0x372627;},hs=(_0x4cfbc4,_0x767b93)=>(_0x26ca4d,_0x1d1c9e)=>_0x767b93(_0x26ca4d,_0x1d1c9e,_0x4cfbc4);const Io=[_0x4d174b(0x1e9),_0x4d174b(0x28b),_0x4d174b(0x378),_0x4d174b(0x216),_0x4d174b(0xfc)],Eo=0x5*0x400*0x400,Co=_0x4d174b(0x25f),bo=_0x4d174b(0x392),To=_0x4d174b(0x28c),Ro='/universer-api/file/{fileID}/sign-url';let Pt=class{constructor(_0x12f7dc,_0x183b65){const _0x292e85=_0x4d174b;l(this,_0x292e85(0x2a2),0x0),l(this,_0x292e85(0x206),new _0x49ef1a()),l(this,_0x292e85(0x38b),this[_0x292e85(0x206)]),l(this,_0x292e85(0xc9),new Map()),(this[_0x292e85(0x145)]=_0x12f7dc,this[_0x292e85(0x229)]=_0x183b65);}[_0x4d174b(0x11a)](_0x4e4f4f){const _0x3e6c2c=_0x4d174b;this['_waitCount']=_0x4e4f4f,this[_0x3e6c2c(0x206)][_0x3e6c2c(0xe2)](_0x4e4f4f);}[_0x4d174b(0x1d2)](_0x3919c5,_0x31e7b9){const _0x2086be=_0x4d174b;if(_0x31e7b9===_0x2f95cc['BASE64']){const _0x1532f5=new Image();return _0x1532f5[_0x2086be(0x20e)]=_0x3919c5,_0x1532f5;}return this[_0x2086be(0xc9)][_0x2086be(0x135)](_0x3919c5);}[_0x4d174b(0x1cc)](_0x42c8d7,_0x1c7772,_0x1929c0){const _0x3d3109=_0x4d174b;_0x1c7772===_0x2f95cc['BASE64']||_0x1929c0==null||this[_0x3d3109(0xc9)][_0x3d3109(0x34a)](_0x42c8d7,_0x1929c0);}async['getImage'](_0x81063e){const _0x3ad04c=_0x4d174b;try{const _0x19a5a0=this[_0x3ad04c(0x106)](this[_0x3ad04c(0x382)](),''+_0x81063e),_0xee57ac=(await this['_httpService']['get'](_0x19a5a0))[_0x3ad04c(0x154)];return _0xee57ac[_0x3ad04c(0xba)]&&_0xee57ac[_0x3ad04c(0xba)]['code']===Os['OK']?Promise[_0x3ad04c(0x37e)](_0xee57ac[_0x3ad04c(0x315)]):Promise['reject'](_0xee57ac[_0x3ad04c(0xba)]);}catch(_0xa5defa){return Promise[_0x3ad04c(0x3ec)](_0xa5defa);}}async['saveImage'](_0x543f39){const _0x4f438e=_0x4d174b;let _0x74c001='';if(!Io[_0x4f438e(0x39d)](_0x543f39[_0x4f438e(0x13a)]))return this[_0x4f438e(0x128)](),Promise['reject'](new Error(_0x55f297[_0x4f438e(0x34c)]));if(_0x543f39['size']>Eo)return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x29a)]));try{const _0x2f2440=new FormData();_0x2f2440[_0x4f438e(0xed)](_0x4f438e(0x27c),_0x543f39);const _0x2f6fb1=this[_0x4f438e(0x1a5)]()+'?size='+_0x543f39[_0x4f438e(0x262)][_0x4f438e(0xec)](),_0x1cf352=await(await fetch(_0x2f6fb1,{'method':_0x4f438e(0xd6),'body':_0x2f2440}))[_0x4f438e(0x1e8)]();if(typeof _0x1cf352[_0x4f438e(0x3b8)]!='string')return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));_0x74c001=_0x1cf352[_0x4f438e(0x3b8)];}catch{return this[_0x4f438e(0x128)](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));}return new Promise((_0x5665ea,_0x52b3b4)=>{const _0x31850d=_0x4f438e,_0x12f4d8=new FileReader();_0x12f4d8[_0x31850d(0x3e2)](_0x543f39),_0x12f4d8[_0x31850d(0x3d7)]=_0x51b6de=>{const _0x55052e=_0x31850d;var _0x226d39;const _0x341fb6=(_0x226d39=_0x51b6de[_0x55052e(0x2ea)])==null?void 0x0:_0x226d39[_0x55052e(0x310)];if(_0x341fb6==null){this['_decreaseWaiting'](),_0x52b3b4(new Error(_0x55f297[_0x55052e(0x1b6)]));return;}const _0x4d7e12=_0x1053dd[_0x55052e(0x31d)](0x6);_0x5665ea({'imageId':_0x4d7e12,'imageSourceType':_0x2f95cc[_0x55052e(0xea)],'source':_0x74c001,'base64Cache':_0x341fb6,'status':_0x55f297[_0x55052e(0x25a)]}),this[_0x55052e(0x128)]();};});}[_0x4d174b(0x1a5)](){const _0x13b760=_0x4d174b;var _0x591ef4;return(_0x591ef4=this[_0x13b760(0x229)]['getConfig'](Co))!=null?_0x591ef4:bo;}['_getSignURL'](){const _0x244265=_0x4d174b;var _0x4e98d8;return(_0x4e98d8=this[_0x244265(0x229)][_0x244265(0x1f0)](To))!=null?_0x4e98d8:Ro;}[_0x4d174b(0x106)](_0x25e5e8,_0x23b0e9){const _0x4a5f7a=_0x4d174b;return _0x25e5e8[_0x4a5f7a(0x16f)]('{fileID}',_0x23b0e9);}[_0x4d174b(0x128)](){const _0xfe03e5=_0x4d174b;this[_0xfe03e5(0x2a2)]-=0x1,this[_0xfe03e5(0x206)][_0xfe03e5(0xe2)](this[_0xfe03e5(0x2a2)]);}};Pt=po([hs(0x0,_0x5b671c(_0x45a59b)),hs(0x1,_0x15fd76)],Pt);var Oo=Object[_0x4d174b(0x1e3)],Do=Object['getOwnPropertyDescriptor'],Po=(_0x216f9c,_0x47debd,_0x5e8141,_0xe248f7)=>{const _0x1bf043=_0x4d174b;for(var _0x47a77a=_0xe248f7>0x1?void 0x0:_0xe248f7?Do(_0x47debd,_0x5e8141):_0x47debd,_0x153d4f=_0x216f9c[_0x1bf043(0x2e1)]-0x1,_0x449572;_0x153d4f>=0x0;_0x153d4f--)(_0x449572=_0x216f9c[_0x153d4f])&&(_0x47a77a=(_0xe248f7?_0x449572(_0x47debd,_0x5e8141,_0x47a77a):_0x449572(_0x47a77a))||_0x47a77a);return _0xe248f7&&_0x47a77a&&Oo(_0x47debd,_0x5e8141,_0x47a77a),_0x47a77a;},Re=(_0x38b4f6,_0x1c567b)=>(_0x4ad3d1,_0x3617cd)=>_0x1c567b(_0x4ad3d1,_0x3617cd,_0x38b4f6);let Be=class extends _0x52c754{constructor(_0x105696,_0xceb2c6,_0x49b10a,_0x128f29,_0x3f0fe3){const _0x591cfe=_0x4d174b;super(),this['_injector']=_0x105696,this[_0x591cfe(0x115)]=_0xceb2c6,this['_permissionService']=_0x49b10a,this[_0x591cfe(0x2d5)]=_0x128f29,this['_localeService']=_0x3f0fe3,this['_initUnitPermissionChange'](),this[_0x591cfe(0x24a)]();}['_initCloseConn'](){const _0x4b4638=_0x4d174b,_0x5d40a2=async _0x2f816c=>{const _0x525ad4=_0x2798;(await this[_0x525ad4(0x2d5)][_0x525ad4(0x2eb)](_0x2f816c))[_0x525ad4(0x1a9)][_0x525ad4(0xbe)](_0x22c59c(_0x4c1ceb=>_0x4c1ceb['eventID']===_0x2c65dc[_0x525ad4(0x217)]),_0x21a0e1(this[_0x525ad4(0xdd)]))['subscribe'](_0x154798=>{const _0x4a0bef=_0x525ad4,_0x5e2aa1=_0x154798,{reason:_0x1d7a6e}=_0x5e2aa1['data'];this['_injector'][_0x4a0bef(0x135)](_0x1e8990)[_0x4a0bef(0x199)]({'type':_0x17d4c8['Error'],'content':this[_0x4a0bef(0x13d)]['t'](_0x4a0bef(0x304))+'('+_0x1d7a6e+')'}),this[_0x4a0bef(0x126)][_0x4a0bef(0x3c9)](new _0x56d014(_0x2f816c)['id'],!0x1),this[_0x4a0bef(0x2d5)][_0x4a0bef(0x305)](_0x2f816c);});};_0x4e0a85(this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x202)]),this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x2b7)]))['pipe'](_0x120a2e(_0x33f4ca=>_0x33f4ca[_0x4b4638(0x150)]()),_0x22c59c(_0x445f32=>!_0x48cbdf(_0x445f32)),_0x21a0e1(this[_0x4b4638(0xdd)]))[_0x4b4638(0x269)](_0x4fdbb8=>{_0x5d40a2(_0x4fdbb8);});}[_0x4d174b(0x139)](){const _0xcea6b1=_0x4d174b,_0x337ed9=async _0x640fc0=>{const _0x558ef7=_0x2798;(await this[_0x558ef7(0x2d5)][_0x558ef7(0x2eb)](_0x640fc0))[_0x558ef7(0x1a9)][_0x558ef7(0xbe)](_0x22c59c(_0x19738c=>_0x19738c[_0x558ef7(0x10c)]===_0x2c65dc[_0x558ef7(0x374)]),_0x21a0e1(this[_0x558ef7(0xdd)]))[_0x558ef7(0x269)](_0x2899b9=>{const _0x6dd3cd=_0x558ef7,_0x4778c6=_0x2899b9,{objectId:_0x5b9de9}=_0x4778c6[_0x6dd3cd(0x299)];_0x5b9de9===_0x640fc0&&this[_0x6dd3cd(0x36e)][_0x6dd3cd(0x135)](_0x52d8a4)[_0x6dd3cd(0x38d)](_0x640fc0);});};_0x4e0a85(this[_0xcea6b1(0x115)]['getTypeOfUnitAdded$'](_0x1851b1['UNIVER_SHEET']),this['_univerInstanceService'][_0xcea6b1(0x174)](_0x1851b1[_0xcea6b1(0x2b7)]))[_0xcea6b1(0xbe)](_0x120a2e(_0x5c2ff1=>_0x5c2ff1[_0xcea6b1(0x150)]()),_0x22c59c(_0x3aa4be=>!_0x48cbdf(_0x3aa4be)),_0x21a0e1(this[_0xcea6b1(0xdd)]))['subscribe'](_0x4298cd=>{_0x337ed9(_0x4298cd);});}};Be=Po([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Be),Re(0x0,_0x5b671c(_0x49e10e)),Re(0x1,_0x2269ec),Re(0x2,_0xf5bbc5),Re(0x3,_0x5b671c(ge)),Re(0x4,_0x5b671c(_0x35ebff))],Be);var js=Object[_0x4d174b(0x1e3)],wo=Object[_0x4d174b(0x13f)],No=(_0x323000,_0x322804,_0x3fe592)=>_0x322804 in _0x323000?js(_0x323000,_0x322804,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe592}):_0x323000[_0x322804]=_0x3fe592,Mo=(_0x4936db,_0x7d7a25,_0x1e35c3,_0x2969bf)=>{const _0x5f9f7=_0x4d174b;for(var _0x45a81d=_0x2969bf>0x1?void 0x0:_0x2969bf?wo(_0x7d7a25,_0x1e35c3):_0x7d7a25,_0x460dc1=_0x4936db[_0x5f9f7(0x2e1)]-0x1,_0x1b7fa7;_0x460dc1>=0x0;_0x460dc1--)(_0x1b7fa7=_0x4936db[_0x460dc1])&&(_0x45a81d=(_0x2969bf?_0x1b7fa7(_0x7d7a25,_0x1e35c3,_0x45a81d):_0x1b7fa7(_0x45a81d))||_0x45a81d);return _0x2969bf&&_0x45a81d&&js(_0x7d7a25,_0x1e35c3,_0x45a81d),_0x45a81d;},mt=(_0x264c55,_0x3552ce)=>(_0x5a59db,_0x4d2e79)=>_0x3552ce(_0x5a59db,_0x4d2e79,_0x264c55),Ao=(_0x2e2079,_0x38f182,_0x38a0fc)=>No(_0x2e2079,_0x38f182+'',_0x38a0fc);const yo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let wt=class extends _0x1b986b{constructor(_0xc3b997,_0x5a6713,_0x47f0d0,_0xb6891f){const _0x2afb2a=_0x4d174b;super(),this[_0x2afb2a(0x20c)]=_0xc3b997,this[_0x2afb2a(0x30a)]=_0x5a6713,this[_0x2afb2a(0x2c3)]=_0x47f0d0,this[_0x2afb2a(0x36e)]=_0xb6891f;}[_0x4d174b(0x314)](_0x340f70){const _0x43f497=_0x4d174b;this[_0x43f497(0x159)](_0x340f70);}[_0x4d174b(0x2fd)](){const _0x427120=_0x4d174b;this[_0x427120(0x33f)]();}[_0x4d174b(0x159)](_0x3a193d){const _0x17a12d=_0x4d174b;var _0x12bf67,_0x2b1e18,_0x56e7a8,_0x21d839;_0x3a193d[_0x17a12d(0x37c)](_0x5f56c1)&&this[_0x17a12d(0x30a)][_0x17a12d(0xba)](_0x17a12d(0xbb),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2edbe8=[[_0x5f56c1,{'useClass':Ot}],[ge],[xt],[_0x45a59b],[$s,{'useClass':Qr}],[te],[O],[_0x260c27],[qe],[Je],[Xe],[jt],[Ze],[Ps],[Be],[Ds,{'useClass':(_0x2b1e18=(_0x12bf67=this['_config'])==null?void 0x0:_0x12bf67['socketService'])!=null?_0x2b1e18:vt}],[_0x5aae1e,{'useClass':_0x52538a}],[_0x31fed6,{'useClass':Rt}],[_0x120323,{'useClass':Dt}],[_0x24c8c0,{'useClass':Pt}],[Oe],[ke],[He],[Fe],[me]];(_0x56e7a8=this[_0x17a12d(0x20c)])!=null&&_0x56e7a8[_0x17a12d(0x268)]&&_0x2edbe8[_0x17a12d(0x328)]([et,{'useClass':yn}]),_0x2edbe8=_0x28386f(_0x2edbe8,(_0x21d839=this[_0x17a12d(0x20c)])==null?void 0x0:_0x21d839['override']),_0x2edbe8['forEach'](_0x165ff2=>_0x3a193d['add'](_0x165ff2)),this[_0x17a12d(0x380)]();}[_0x4d174b(0x33f)](){const _0x46f73c=_0x4d174b;this['disposeWithMe'](this[_0x46f73c(0x2c3)]['registerRenderModule'](_0x1851b1[_0x46f73c(0x2b7)],[Ve])),this[_0x46f73c(0xe4)](this[_0x46f73c(0x2c3)][_0x46f73c(0x3b7)](_0x1851b1['UNIVER_SHEET'],[Tt]));}[_0x4d174b(0x380)](){const _0x513b9d=_0x4d174b;var _0xdeff0d,_0x1c72d9;this[_0x513b9d(0x36e)][_0x513b9d(0x135)](_0x45a59b)[_0x513b9d(0x249)]({'priority':0x14,'interceptor':_0x50c28f({'maxParallel':0x6})}),(_0xdeff0d=this[_0x513b9d(0x20c)])!=null&&_0xdeff0d[_0x513b9d(0x280)]||this[_0x513b9d(0x36e)][_0x513b9d(0x135)](O)[_0x513b9d(0x11c)](),(_0x1c72d9=this[_0x513b9d(0x20c)])!=null&&_0x1c72d9[_0x513b9d(0x28a)]&&this[_0x513b9d(0x36e)][_0x513b9d(0x135)](Ze);}};Ao(wt,_0x4d174b(0x19a),yo),wt=Mo([_0x34bd97(_0x5889e9),mt(0x1,_0x50a504),mt(0x2,_0xa71c3c),mt(0x3,_0x5b671c(_0x49e10e))],wt);export{fo as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,nn as COLLAB_WEB_SOCKET_URL_KEY,Oe as CollaborationController,pt as CollaborationSession,ge as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Ur as CollaborationStatusDisplay,Ps as CommentService,ke as DataLoaderController,He as DesktopCollaborationStatusDisplayController,on as HEARTBEAT_INTERVAL_KEY,Ts as HEARTBEAT_TIMEOUT_KEY,Ds as ICollaborationSocketService,$s as IURLService,Pt as ImageIoService,un as LOCAL_CACHE_INTERVAL_KEY,gn as LOGIN_URL_KEY,O as LocalCacheService,tn as SEND_CHANGESET_TIMEOUT_KEY,Zi as SNAPSHOT_SERVER_URL_KEY,en as SNAPSHOT_URL_KEY,de as SessionStatus,gr as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,Qr as WebURLService,Cn as deserializeToCombResponse,bn as serializeCombRequest};
1
+ const _0x95d569=_0x163c;(function(_0xdda3ce,_0x1456fb){const _0x19cee6=_0x163c,_0x3e35de=_0xdda3ce();while(!![]){try{const _0x24629b=parseInt(_0x19cee6(0x404))/0x1*(-parseInt(_0x19cee6(0x324))/0x2)+parseInt(_0x19cee6(0x438))/0x3*(-parseInt(_0x19cee6(0x25a))/0x4)+parseInt(_0x19cee6(0x3bd))/0x5*(parseInt(_0x19cee6(0x3b4))/0x6)+-parseInt(_0x19cee6(0x4cc))/0x7*(parseInt(_0x19cee6(0x27c))/0x8)+-parseInt(_0x19cee6(0x357))/0x9+parseInt(_0x19cee6(0x4ac))/0xa+parseInt(_0x19cee6(0x4ed))/0xb;if(_0x24629b===_0x1456fb)break;else _0x3e35de['push'](_0x3e35de['shift']());}catch(_0x4d793e){_0x3e35de['push'](_0x3e35de['shift']());}}}(_0x8441,0x5a176));var Gs=Object[_0x95d569(0x515)],Ys=(_0xb90347,_0x57d218,_0x5e431a)=>_0x57d218 in _0xb90347?Gs(_0xb90347,_0x57d218,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e431a}):_0xb90347[_0x57d218]=_0x5e431a,_=(_0x15282d,_0xd02358,_0x5bd7fc)=>Ys(_0x15282d,typeof _0xd02358!='symbol'?_0xd02358+'':_0xd02358,_0x5bd7fc);import{Disposable as _0x413d3d,toDisposable as _0xb470e0,UniverInstanceType as _0xe799c1,Inject as _0x5e8fa6,UserManagerService as _0x417f49,IUniverInstanceService as _0x4ef500,createIdentifier as _0x475b76,DisposableCollection as _0x47aeff,IConfigService as _0x3e2b80,ILogService as _0x71acc2,ISnapshotServerService as _0xa793c1,RxDisposable as _0x24c298,LocaleService as _0x1dc83a,Injector as _0x1eb3c6,ILocalStorageService as _0x21633c,Tools as _0x23908f,ICommandService as _0x27e3f2,JSONX as _0x2a5840,CommandType as _0x1cc735,IPermissionService as _0x8d48d,IUndoRedoService as _0x2ea03b,sequenceExecute as _0x272391,OnLifecycle as _0x5c6f39,LifecycleStages as _0x34adae,Optional as _0x1116fd,Rectangle as _0x2aeff5,ThemeService as _0x5b696d,useDependency as _0x2f1836,connectInjector as _0x126465,Workbook as _0x17a77e,textEncoder as _0x42a62d,b64DecodeUnicode as _0x3c3c0a,LocalUndoRedoService as _0x3104b9,IContextService as _0x509e12,COLORS as _0x1b2528,ColorKit as _0x1eea5a,fromEventSubject as _0x454b17,isInternalEditorID as _0x545133,Plugin as _0x8ddb93,IAuthzIoService as _0x18103e,mergeOverrideWithDependencies as _0x4a2f3c,DependentOn as _0x24c416}from'@univerjs/core';import{SheetsSelectionsService as _0x530c0c,SetSelectionsOperation as _0x2115a5,InsertSheetMutation as _0x5bfd52,EmptyMutation as _0x46a48b,WorkbookEditablePermission as _0x3fd1e9,RefRangeService as _0x2c38e5,EffectRefRangId as _0x1e9e9d,handleIRemoveRow as _0x47c1cb,handleIRemoveCol as _0x3ed5f0,handleMoveRange as _0x5b26e1,handleInsertRow as _0x507bf2,handleInsertRangeMoveRight as _0x2e1c46,handleInsertRangeMoveDown as _0x5c3a1b,handleInsertCol as _0x221462,handleDeleteRangeMoveUp as _0x4f2846,handleDeleteRangeMoveLeft as _0x2b5c00,runRefRangeMutations as _0x1e8112,SetWorksheetActivateCommand as _0x4b2daa}from'@univerjs/sheets';import{MessageType as _0x3a56fd}from'@univerjs/design';import{IBeforeCloseService as _0x266f0c,IMessageService as _0x514d5b,INotificationService as _0x47d30c,useObservable as _0xa6d173,BuiltInUIPart as _0xf82b66,IUIPartsService as _0x209bf4}from'@univerjs/ui';import{CollaborationEvent as _0x47d699,parseChangesetToProtocol as _0x3046e0,RevisionService as _0xd83bbc,isTransformMutationFailure as _0x587331,isTransformMutationsWithChangesetSuccess as _0x5ceeea,ITransformService as _0x229179,mapDocumentTypeToUniverType as _0xada8ec,isTransformChangesetsSuccess as _0x539e96,CompressMutationService as _0x3a340b,parseProtocolChangeset as _0x173822,SnapshotService as _0x5e6fb8,isTransformMutationsWithChangesetFailure as _0xde97e0,UniverCollaborationPlugin as _0x4b9394}from'@univerjs-pro/collaboration';import{merge as _0x5eefa8,Subject as _0x5c132d,BehaviorSubject as _0x2c389c,distinctUntilChanged as _0xa3ea6c,fromEvent as _0x34fa1e,of as _0x32607c,takeUntil as _0x22e1ca,debounceTime as _0xbd8aa0,filter as _0x1ee8c0,switchMap as _0x150cec,combineLatest as _0x2fb69d,shareReplay as _0x1e9654,mapTo as _0x251474,concatMap as _0x2667fb}from'rxjs';import{map as _0x244108,takeUntil as _0x2ec744,take as _0x15282b,filter as _0x3510ec,delay as _0x33eb0c,shareReplay as _0x8a728f,switchMap as _0x5da1d5,throttleTime as _0x1f4e1c}from'rxjs/operators';import{IMEInputManagerService as _0x6b562c,TextSelectionManagerService as _0x392a29,serializeDocRange as _0x355bf6,RichTextEditingMutation as _0x38d6b6,DocStateChangeManagerService as _0xb758de,SetTextSelectionsOperation as _0x3e2f61,SetDocZoomRatioOperation as _0x137fda,DocSkeletonManagerService as _0x297d18}from'@univerjs/docs';import{HTTPService as _0x35659e,WebSocketService as _0x2f6c9c,MergeInterceptorFactory as _0x407738,HTTPRequest as _0x142df6,IHTTPImplementation as _0x8b7d4b,XHRHTTPImplementation as _0x39693e,ThresholdInterceptorFactory as _0x429f1a}from'@univerjs/network';import{ImageSourceType as _0x5829cc,ImageUploadStatusType as _0x140b1e,IImageIoService as _0x599182}from'@univerjs/drawing';import{Shape as _0x3a4297,Rect as _0x471078,Vector2 as _0x446d21,NodePositionConvertToCursor as _0x5163ff,isValidRectRange as _0x47b1d4,NodePositionConvertToRectRange as _0x35f383,getColor as _0x577f24,TEXT_RANGE_LAYER_INDEX as _0x59542c,RegularPolygon as _0x1ab3f8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x40693e,IRenderManagerService as _0x4db11d}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x34c69e,serializeRangeWithSheet as _0x265771}from'@univerjs/engine-formula';import _0x4e0e0c from'lodash/debounce';import{VIEWPORT_KEY as _0x4c5bc6,getCoordByCell as _0x1fadaf,getSheetObject as _0x4d10db,SheetSkeletonManagerService as _0x400687,SheetPermissionInitController as _0x598be7}from'@univerjs/sheets-ui';import _0x546820,{forwardRef as _0xa3c35e,useRef as _0xab8824,createElement as _0x365726}from'react';import _0x1fa12e from'clsx';import{IRemoteInstanceService as _0x5909c8}from'@univerjs/rpc';const on=_0x95d569(0x3c3),an=_0x95d569(0x2cd),cn=_0x95d569(0x3d1),hn='SEND_CHANGESET_TIMEOUT',_n=0x7d0,ln=_0x95d569(0x4d3),un=_0x95d569(0x280),dn='HEARTBEAT_INTERVAL',mn=0x7530,Os=_0x95d569(0x361),Ds=0x2710,fn=_0x95d569(0x25b),gn=0x4e20,Sn=_0x95d569(0x2f1),pn=0x3,vn=_0x95d569(0x2e4),In=0x3e8,En=_0x95d569(0x416),Cn='/universer-api/comb',bn=_0x95d569(0x518),Rn=_0x95d569(0x45f);var Ps=(_0x5611e3=>(_0x5611e3[_0x5611e3[_0x95d569(0x29a)]=0x0]=_0x95d569(0x29a),_0x5611e3[_0x5611e3['OK']=0x1]='OK',_0x5611e3[_0x5611e3[_0x95d569(0x328)]=0x2]='INTERNAL_ERROR',_0x5611e3[_0x5611e3[_0x95d569(0x243)]=0x3]=_0x95d569(0x243),_0x5611e3[_0x5611e3[_0x95d569(0x36d)]=0x4]=_0x95d569(0x36d),_0x5611e3[_0x5611e3[_0x95d569(0x371)]=0x5]='UNAUTHENTICATED',_0x5611e3[_0x5611e3[_0x95d569(0x1f4)]=0x6]=_0x95d569(0x1f4),_0x5611e3[_0x5611e3[_0x95d569(0x29c)]=0x7]=_0x95d569(0x29c),_0x5611e3[_0x5611e3['TOO_MANY_REQUESTS']=0x8]=_0x95d569(0x34d),_0x5611e3[_0x5611e3[_0x95d569(0x45c)]=0x9]=_0x95d569(0x45c),_0x5611e3[_0x5611e3[_0x95d569(0x3e6)]=0x1389]=_0x95d569(0x3e6),_0x5611e3[_0x5611e3[_0x95d569(0x1de)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5611e3[_0x5611e3[_0x95d569(0x47b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5611e3[_0x5611e3['APPLY_REJECT']=0x1b59]=_0x95d569(0x3a8),_0x5611e3[_0x5611e3[_0x95d569(0x4c0)]=0x1b5a]=_0x95d569(0x4c0),_0x5611e3[_0x5611e3[_0x95d569(0x3c0)]=0x1b5b]=_0x95d569(0x3c0),_0x5611e3[_0x5611e3[_0x95d569(0x444)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5611e3[_0x5611e3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x95d569(0x21c),_0x5611e3[_0x5611e3[_0x95d569(0x4bd)]=0x2329]=_0x95d569(0x4bd),_0x5611e3[_0x5611e3['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x95d569(0x1fd),_0x5611e3[_0x5611e3[_0x95d569(0x2e0)]=0x232b]=_0x95d569(0x2e0),_0x5611e3[_0x5611e3['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5611e3[_0x5611e3[_0x95d569(0x2fa)]=0x232d]=_0x95d569(0x2fa),_0x5611e3[_0x5611e3[_0x95d569(0x45e)]=0x2711]=_0x95d569(0x45e),_0x5611e3[_0x5611e3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x95d569(0x278),_0x5611e3[_0x5611e3[_0x95d569(0x2e1)]=0x2713]=_0x95d569(0x2e1),_0x5611e3[_0x5611e3[_0x95d569(0x299)]=0x2714]=_0x95d569(0x299),_0x5611e3[_0x5611e3['UNRECOGNIZED']=-0x1]=_0x95d569(0x3a3),_0x5611e3))(Ps||{}),x=(_0x483663=>(_0x483663[_0x483663[_0x95d569(0x479)]=0x0]=_0x95d569(0x479),_0x483663[_0x483663[_0x95d569(0x26f)]=0x1]=_0x95d569(0x26f),_0x483663[_0x483663[_0x95d569(0x214)]=0x2]='UNIVER_SHEET',_0x483663[_0x483663['UNIVER_SLIDE']=0x3]=_0x95d569(0x1d6),_0x483663[_0x483663['UNIVER_PROJECT']=0x4]=_0x95d569(0x4c2),_0x483663[_0x483663['UNRECOGNIZED']=-0x1]=_0x95d569(0x3a3),_0x483663))(x||{}),I=(_0x4640a4=>(_0x4640a4[_0x4640a4[_0x95d569(0x2ae)]=0x0]=_0x95d569(0x2ae),_0x4640a4[_0x4640a4[_0x95d569(0x4ce)]=0x1]=_0x95d569(0x4ce),_0x4640a4[_0x4640a4[_0x95d569(0x210)]=0x2]=_0x95d569(0x210),_0x4640a4[_0x4640a4[_0x95d569(0x4db)]=0x3]=_0x95d569(0x4db),_0x4640a4[_0x4640a4[_0x95d569(0x419)]=0x4]=_0x95d569(0x419),_0x4640a4[_0x4640a4[_0x95d569(0x27b)]=0x5]=_0x95d569(0x27b),_0x4640a4[_0x4640a4[_0x95d569(0x25d)]=0x6]=_0x95d569(0x25d),_0x4640a4[_0x4640a4['UNRECOGNIZED']=-0x1]=_0x95d569(0x3a3),_0x4640a4))(I||{}),$t=(_0x80fcbc=>(_0x80fcbc[_0x80fcbc['UNKNOWN_CODE']=0x0]=_0x95d569(0x44e),_0x80fcbc[_0x80fcbc['OK']=0x1]='OK',_0x80fcbc[_0x80fcbc[_0x95d569(0x448)]=0x2]='FAIL',_0x80fcbc[_0x80fcbc[_0x95d569(0x3a3)]=-0x1]=_0x95d569(0x3a3),_0x80fcbc))($t||{}),Tn=Object[_0x95d569(0x515)],On=Object[_0x95d569(0x201)],Dn=(_0x591082,_0x470b1f,_0x4ccbee,_0x3d4328)=>{const _0x396aed=_0x95d569;for(var _0x568473=_0x3d4328>0x1?void 0x0:_0x3d4328?On(_0x470b1f,_0x4ccbee):_0x470b1f,_0x337509=_0x591082[_0x396aed(0x259)]-0x1,_0x41ca52;_0x337509>=0x0;_0x337509--)(_0x41ca52=_0x591082[_0x337509])&&(_0x568473=(_0x3d4328?_0x41ca52(_0x470b1f,_0x4ccbee,_0x568473):_0x41ca52(_0x568473))||_0x568473);return _0x3d4328&&_0x568473&&Tn(_0x470b1f,_0x4ccbee,_0x568473),_0x568473;},Zt=(_0x36f59a,_0x318803)=>(_0x285d33,_0x1372ce)=>_0x318803(_0x285d33,_0x1372ce,_0x36f59a);let ne=class extends _0x413d3d{constructor(_0x46220b,_0x546c81){const _0x299a95=_0x95d569;super(),_(this,_0x299a95(0x372),new Map()),(this[_0x299a95(0x247)]=_0x46220b,this['_userManagerService']=_0x546c81,this['disposeWithMe'](_0xb470e0(_0x5eefa8(this[_0x299a95(0x247)][_0x299a95(0x46d)](_0xe799c1[_0x299a95(0x214)])['pipe'](_0x244108(_0x46e552=>_0x46e552['getUnitId']())),this[_0x299a95(0x247)][_0x299a95(0x46d)](_0xe799c1[_0x299a95(0x26f)])[_0x299a95(0x350)](_0x244108(_0x16796f=>_0x16796f[_0x299a95(0x2a3)]())),this['_univerInstanceService'][_0x299a95(0x46d)](_0xe799c1[_0x299a95(0x1d6)])[_0x299a95(0x350)](_0x244108(_0x13633a=>_0x13633a[_0x299a95(0x2a3)]())))[_0x299a95(0x2e2)](_0x3bc9b4=>this[_0x299a95(0x304)](_0x3bc9b4)))));}[_0x95d569(0x24a)](_0x58de6d){const _0x3068d9=_0x95d569;this['_userManagerService'][_0x3068d9(0x24a)](_0x58de6d);}[_0x95d569(0x32b)](){const _0x267c1f=_0x95d569;return this[_0x267c1f(0x355)][_0x267c1f(0x32b)]();}[_0x95d569(0x275)](_0x24c538,_0x455a94){const _0x1ded70=_0x95d569;let _0xa5b8ee=this[_0x1ded70(0x372)]['get'](_0x24c538);_0xa5b8ee||(_0xa5b8ee=new Pn(),this[_0x1ded70(0x372)][_0x1ded70(0x4b4)](_0x24c538,_0xa5b8ee)),_0xa5b8ee[_0x1ded70(0x275)](_0x455a94);}[_0x95d569(0x2ad)](_0x24ebae,_0x4779fa){const _0x485b40=_0x95d569,_0x584e8f=this[_0x485b40(0x372)][_0x485b40(0x348)](_0x24ebae);_0x584e8f&&_0x584e8f['removeMember'](_0x4779fa);}[_0x95d569(0x37d)](_0x107a6a){const _0x24c933=_0x95d569;return this[_0x24c933(0x372)][_0x24c933(0x348)](_0x107a6a);}[_0x95d569(0x2d3)](_0xedab1d,_0xbc4a6e){const _0x38c226=_0x95d569,_0x5de674=this[_0x38c226(0x372)][_0x38c226(0x348)](_0xedab1d);if(_0x5de674)return _0x5de674[_0x38c226(0x2d3)](_0xbc4a6e);}[_0x95d569(0x304)](_0xc30596){const _0x44dd8c=_0x95d569,_0x3df33f=this[_0x44dd8c(0x372)]['get'](_0xc30596);_0x3df33f&&(_0x3df33f[_0x44dd8c(0x3eb)](),this[_0x44dd8c(0x372)][_0x44dd8c(0x26d)](_0xc30596));}[_0x95d569(0x3eb)](){const _0x41fedf=_0x95d569;this['_roomMembers']['forEach'](_0x4f050c=>_0x4f050c[_0x41fedf(0x3eb)]()),this['_roomMembers'][_0x41fedf(0x344)]();}};ne=Dn([Zt(0x0,_0x4ef500),Zt(0x1,_0x5e8fa6(_0x417f49))],ne);class Pn extends _0x413d3d{constructor(){const _0x418e46=_0x95d569;super(...arguments),_(this,_0x418e46(0x39b),new Map());}['dispose'](){const _0x1261d4=_0x95d569;this[_0x1261d4(0x39b)]['clear']();}[_0x95d569(0x275)](_0xe265c8){const _0x521a3c=_0x95d569;this['_members'][_0x521a3c(0x4b4)](_0xe265c8[_0x521a3c(0x3b5)],_0xe265c8);}['removeMember'](_0x4be64f){const _0x46c259=_0x95d569;this[_0x46c259(0x39b)][_0x46c259(0x26d)](_0x4be64f);}[_0x95d569(0x2d3)](_0x5d28bb){const _0x1f5c63=_0x95d569;return this[_0x1f5c63(0x39b)][_0x1f5c63(0x348)](_0x5d28bb);}}function wn(_0x2fbd11){const _0x9ac642=_0x95d569;var _0x57a2eb,_0x515485,_0x4efd41,_0x307136;const _0x439ad7=_0x2fbd11[_0x9ac642(0x406)],_0x3ea3da=JSON['parse'](_0x439ad7);switch(_0x3ea3da[_0x9ac642(0x3d2)]){case I[_0x9ac642(0x27b)]:case I['HELLO']:{const _0x34d38a=_0x3ea3da['infoRsp'];return{..._0x3ea3da,'data':_0x34d38a,'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};}case I[_0x9ac642(0x210)]:{const _0xc76f9f=_0x3ea3da['joinRsp'];return{..._0x3ea3da,'data':_0xc76f9f,'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};}case I[_0x9ac642(0x25d)]:{const _0x40b5af=_0x3ea3da[_0x9ac642(0x33c)];switch(_0x40b5af['eventID']){case _0x47d699['PERMISSION_REJ']:return{..._0x3ea3da,'data':{..._0x40b5af,'data':(_0x57a2eb=_0x40b5af[_0x9ac642(0x3fe)])==null?void 0x0:_0x57a2eb['cs']},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x4a1)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':(_0x515485=_0x40b5af[_0x9ac642(0x411)])==null?void 0x0:_0x515485['cs']},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699['NEW_CHANGESETS']:return{..._0x3ea3da,'data':{..._0x40b5af,'data':(_0x4efd41=_0x40b5af['newCsEvent'])==null?void 0x0:_0x4efd41['cs']},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x4a0)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':(_0x307136=_0x40b5af[_0x9ac642(0x4bf)])==null?void 0x0:_0x307136['cs']},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699['UPDATE_CURSOR']:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af['updateCursorEvent']},'cmd':_0x3ea3da['cmd']};case _0x47d699[_0x9ac642(0x4c4)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x474)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x204)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x320)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x437)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x35f)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x3ec)]:case _0x47d699['LIVESHARE_OPERATION']:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af['liveShareOperation']},'cmd':_0x3ea3da['cmd']};case _0x47d699[_0x9ac642(0x295)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x35f)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699['MSG_FOR_ERROR']:return{..._0x3ea3da,'data':_0x40b5af,'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x48f)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x3cd)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};case _0x47d699[_0x9ac642(0x50c)]:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x4e6)]},'cmd':_0x3ea3da['cmd']};case _0x47d699['SHOULD_CLOSE_CONN']:return{..._0x3ea3da,'data':{..._0x40b5af,'data':_0x40b5af[_0x9ac642(0x3f5)]},'cmd':_0x3ea3da[_0x9ac642(0x3d2)]};default:return _0x3ea3da;}}default:return _0x3ea3da;}}function Nn(_0x4a7954){const _0x247a57=_0x95d569;switch(_0x4a7954['cmd']){case I['HEARTBEAT']:case I[_0x247a57(0x4ce)]:return JSON[_0x247a57(0x462)]({'cmd':_0x4a7954['cmd'],'routeKey':_0x4a7954['routeKey']});case I[_0x247a57(0x419)]:{let _0x534dd0;switch(_0x4a7954[_0x247a57(0x406)][_0x247a57(0x407)]){case _0x47d699[_0x247a57(0x251)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x251)],'updateCursorEvent':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699['USERS_LEAVE']:{_0x534dd0={'eventID':_0x47d699['USERS_LEAVE'],'leaveEvent':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699[_0x247a57(0x4c4)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x4c4)],'joinEvent':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699['LIVESHARE_NEW_HOST']:{_0x534dd0={'eventID':_0x47d699['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699[_0x247a57(0x39a)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x39a)],'liveShareOperation':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699[_0x247a57(0x295)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x295)],'liveShareTerminate':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699[_0x247a57(0x505)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x505)],'liveShareRequestHost':_0x4a7954[_0x247a57(0x406)][_0x247a57(0x406)]};break;}case _0x47d699[_0x247a57(0x3ec)]:{_0x534dd0={'eventID':_0x47d699[_0x247a57(0x3ec)]};break;}default:_0x534dd0={'eventID':_0x4a7954['data'][_0x247a57(0x407)]};}return JSON[_0x247a57(0x462)]({'cmd':_0x4a7954[_0x247a57(0x3d2)],'routeKey':_0x4a7954[_0x247a57(0x2d8)],'collaMsg':_0x534dd0});}case I[_0x247a57(0x210)]:return JSON[_0x247a57(0x462)]({'cmd':_0x4a7954[_0x247a57(0x3d2)],'routeKey':_0x4a7954[_0x247a57(0x2d8)],'joinReq':_0x4a7954['data']});case I[_0x247a57(0x4db)]:return JSON[_0x247a57(0x462)]({'cmd':_0x4a7954[_0x247a57(0x3d2)],'routeKey':_0x4a7954[_0x247a57(0x2d8)],'leaveReq':_0x4a7954[_0x247a57(0x406)]});default:throw new Error(_0x247a57(0x495));}}var Mn=Object[_0x95d569(0x515)],An=Object['getOwnPropertyDescriptor'],yn=(_0x175551,_0x233a27,_0x2c1168,_0x3063bc)=>{const _0x24ff2e=_0x95d569;for(var _0x483c99=_0x3063bc>0x1?void 0x0:_0x3063bc?An(_0x233a27,_0x2c1168):_0x233a27,_0x4ccd26=_0x175551[_0x24ff2e(0x259)]-0x1,_0x500952;_0x4ccd26>=0x0;_0x4ccd26--)(_0x500952=_0x175551[_0x4ccd26])&&(_0x483c99=(_0x3063bc?_0x500952(_0x233a27,_0x2c1168,_0x483c99):_0x500952(_0x483c99))||_0x483c99);return _0x3063bc&&_0x483c99&&Mn(_0x233a27,_0x2c1168,_0x483c99),_0x483c99;},Te=(_0xe49ceb,_0x2b2c52)=>(_0x55dfb3,_0x337faa)=>_0x2b2c52(_0x55dfb3,_0x337faa,_0xe49ceb);const ws=_0x475b76(_0x95d569(0x47d));function Un(_0x8919af,_0x172274,_0x22360e){const _0x44fdb2=_0x95d569;return _0x8919af+'/'+_0x172274+_0x44fdb2(0x254)+_0x22360e+_0x44fdb2(0x2d6);}let pt=class{constructor(_0x5d888a,_0x5956c3,_0x4e21ac,_0x150e81,_0x29a61e){this['_http']=_0x5d888a,this['_ws']=_0x5956c3,this['_configService']=_0x4e21ac,this['_logService']=_0x150e81,this['_snapshotServerService']=_0x29a61e;}[_0x95d569(0x41e)](_0x159238){const _0x2365ad=_0x95d569,_0x37a143=this[_0x2365ad(0x510)][_0x2365ad(0x41e)](_0x159238);if(!_0x37a143)throw new Error(_0x2365ad(0x306));const _0x48c59d=new _0x47aeff(),_0x54d194=new _0x5c132d();_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(_0x37a143['close$'][_0x2365ad(0x2e2)](_0x2e6729=>_0x54d194[_0x2365ad(0x3fb)](_0x2e6729)))),_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(()=>_0x54d194['complete']()));const _0x115cdc=new _0x5c132d();_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(_0x37a143[_0x2365ad(0x382)]['subscribe'](_0x2fad68=>_0x115cdc[_0x2365ad(0x3fb)](_0x2fad68)))),_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(()=>_0x115cdc[_0x2365ad(0x35d)]()));const _0xbb72e5=new _0x5c132d();_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(_0x37a143[_0x2365ad(0x427)][_0x2365ad(0x2e2)](_0x18c84d=>{const _0x11960c=_0x2365ad,_0x26da07=wn(_0x18c84d);_0xbb72e5[_0x11960c(0x3fb)](_0x26da07);}))),_0x48c59d[_0x2365ad(0x1fe)](_0xb470e0(()=>_0xbb72e5[_0x2365ad(0x35d)]()));const _0x34f22a=()=>{const _0x268bb7=_0x2365ad;_0x115cdc[_0x268bb7(0x3fb)](new Event('connection\x20error')),_0x54d194[_0x268bb7(0x3fb)](new CloseEvent('connection\x20error')),_0x234b0b['close']();},_0x234b0b={'memberID':'','close$':_0x54d194[_0x2365ad(0x4a7)](),'error$':_0x115cdc[_0x2365ad(0x4a7)](),'open$':_0x37a143['open$'],'message$':_0xbb72e5[_0x2365ad(0x4a7)](),'send':_0x20cb71=>{const _0x2faf50=_0x2365ad;if(_0x20cb71[_0x2faf50(0x3d2)]===I['INGEST']){if(_0x20cb71[_0x2faf50(0x406)][_0x2faf50(0x407)]===_0x47d699[_0x2faf50(0x40f)]){this[_0x2faf50(0x1c1)](_0x234b0b,_0x20cb71['data'])['catch'](_0x5a3871=>{this['_logService']['error'](_0x5a3871),_0x34f22a();});return;}if(_0x20cb71[_0x2faf50(0x406)][_0x2faf50(0x407)]===_0x47d699[_0x2faf50(0x359)]){const _0x40e0e9=_0x20cb71[_0x2faf50(0x406)];this[_0x2faf50(0x1e7)](_0x40e0e9)[_0x2faf50(0x363)](_0x3653e1=>{const _0x3f66fb=_0x2faf50;_0xbb72e5[_0x3f66fb(0x3fb)]({'cmd':I[_0x3f66fb(0x25d)],'code':$t['OK'],'routeKey':_0x40e0e9[_0x3f66fb(0x406)][_0x3f66fb(0x422)],'routeType':'','data':{'eventID':_0x47d699[_0x3f66fb(0x2d9)],'data':{'changesets':_0x3653e1}}});})['catch'](_0x5f1bb5=>{const _0x3220e1=_0x2faf50;this[_0x3220e1(0x40c)]['error'](_0x5f1bb5),_0x34f22a();});return;}}_0x37a143[_0x2faf50(0x446)](Nn(_0x20cb71));},'close':()=>{const _0x4fcdef=_0x2365ad;_0x37a143[_0x4fcdef(0x1dd)](),_0x48c59d['dispose']();}};return _0x234b0b;}async[_0x95d569(0x1c1)](_0x9b6bc2,_0x51778e){const _0x372ef8=_0x95d569;var _0x27d641;const {unitType:_0x2b16ca,unitID:_0x2764a6,changeset:_0x231279}=_0x51778e[_0x372ef8(0x406)],_0x51ae6b={'unitID':_0x2764a6,'memberID':_0x9b6bc2[_0x372ef8(0x3b5)],'type':_0x2b16ca,'changeset':_0x3046e0(_0x231279)},_0x432bb7=Un((_0x27d641=this[_0x372ef8(0x4e7)][_0x372ef8(0x3bb)](En))!=null?_0x27d641:Cn,_0x2b16ca,_0x2764a6);try{await this[_0x372ef8(0x454)][_0x372ef8(0x248)](_0x432bb7,{'body':_0x51ae6b});}catch(_0x1013ee){throw this[_0x372ef8(0x40c)][_0x372ef8(0x2c3)](_0x372ef8(0x1c4),_0x372ef8(0x2dd)),_0x1013ee;}}async['_fetchMissChangesets'](_0x3e4f73){const _0x1ef834=_0x95d569,{unitID:_0x252211,from:_0x57fcac,to:_0x26bf27,unitType:_0x19900c}=_0x3e4f73[_0x1ef834(0x406)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x252211,'type':_0x19900c,'from':_0x57fcac,'to':_0x26bf27}))['changesets'];}};pt=yn([Te(0x0,_0x5e8fa6(_0x35659e)),Te(0x1,_0x5e8fa6(_0x2f6c9c)),Te(0x2,_0x3e2b80),Te(0x3,_0x71acc2),Te(0x4,_0xa793c1)],pt);class Ns{constructor(){const _0x14048f=_0x95d569;_(this,_0x14048f(0x2c9),new _0x5c132d()),_(this,_0x14048f(0x321),this[_0x14048f(0x2c9)][_0x14048f(0x4a7)]());}[_0x95d569(0x2a0)](_0x331124){const _0x9e684=_0x95d569;this[_0x9e684(0x2c9)][_0x9e684(0x3fb)](_0x331124);}}var Ln=Object[_0x95d569(0x515)],$n=Object['getOwnPropertyDescriptor'],Ms=(_0x2de05b,_0x3b7f25,_0x50e5e7,_0xdd83f6)=>{const _0xd4ad90=_0x95d569;for(var _0x9111ba=_0xdd83f6>0x1?void 0x0:_0xdd83f6?$n(_0x3b7f25,_0x50e5e7):_0x3b7f25,_0x2d715d=_0x2de05b[_0xd4ad90(0x259)]-0x1,_0x249556;_0x2d715d>=0x0;_0x2d715d--)(_0x249556=_0x2de05b[_0x2d715d])&&(_0x9111ba=(_0xdd83f6?_0x249556(_0x3b7f25,_0x50e5e7,_0x9111ba):_0x249556(_0x9111ba))||_0x9111ba);return _0xdd83f6&&_0x9111ba&&Ln(_0x3b7f25,_0x50e5e7,_0x9111ba),_0x9111ba;},A=(_0x3a6206,_0x141b5c)=>(_0x24c57a,_0x4bd101)=>_0x141b5c(_0x24c57a,_0x4bd101,_0x3a6206),fe=(_0x1e4eaf=>(_0x1e4eaf[_0x1e4eaf['IDLE']=0x0]=_0x95d569(0x2ba),_0x1e4eaf[_0x1e4eaf[_0x95d569(0x4e0)]=0x1]=_0x95d569(0x4e0),_0x1e4eaf[_0x1e4eaf[_0x95d569(0x375)]=0x2]=_0x95d569(0x375),_0x1e4eaf[_0x1e4eaf['ONLINE']=0x3]=_0x95d569(0x281),_0x1e4eaf))(fe||{});let vt=class extends _0x24c298{constructor(_0x30d37f,_0x48fb23,_0x355d92,_0x135d72,_0x3f7163,_0x34f01b,_0x2a9899,_0x3cb5f9,_0x173a15){const _0x3c77e9=_0x95d569;super(),_(this,'_sessionStatus$',new _0x2c389c(0x0)),_(this,_0x3c77e9(0x330),this[_0x3c77e9(0x3e9)][_0x3c77e9(0x4a7)]()),_(this,_0x3c77e9(0x202),new _0x5c132d()),_(this,_0x3c77e9(0x3af),this[_0x3c77e9(0x202)][_0x3c77e9(0x4a7)]()),_(this,_0x3c77e9(0x415)),_(this,_0x3c77e9(0x384)),_(this,_0x3c77e9(0x354)),(this[_0x3c77e9(0x1d8)]=_0x30d37f,this[_0x3c77e9(0x40c)]=_0x355d92,this[_0x3c77e9(0x1cc)]=_0x135d72,this['_messageService']=_0x3f7163,this['_configService']=_0x34f01b,this[_0x3c77e9(0x387)]=_0x2a9899,this[_0x3c77e9(0x1c6)]=_0x3cb5f9,this[_0x3c77e9(0x4f3)]=_0x173a15,_0x48fb23[_0x3c77e9(0x350)](_0x2ec744(this[_0x3c77e9(0x467)]))[_0x3c77e9(0x2e2)](_0x33d6b3=>{const _0x3380cf=_0x3c77e9;var _0x4c07b5;typeof _0x33d6b3>'u'||(this[_0x3380cf(0x415)]=_0x33d6b3,_0x33d6b3?(this[_0x3380cf(0x30e)](_0x33d6b3),this[_0x3380cf(0x384)]=this[_0x3380cf(0x415)][_0x3380cf(0x427)][_0x3380cf(0x2e2)](_0x55cee0=>{const _0x3b6f26=_0x3380cf;_0x55cee0[_0x3b6f26(0x2d8)]===this['_unitID']&&this[_0x3b6f26(0x48a)](_0x55cee0);})):(this[_0x3380cf(0x3e9)]['next'](0x2),(_0x4c07b5=this[_0x3380cf(0x384)])==null||_0x4c07b5[_0x3380cf(0x471)](),this[_0x3380cf(0x384)]=null));}),this['disposeWithMe'](this[_0x3c77e9(0x1cc)]['registerOnClose'](()=>{const _0x4e4379=_0x3c77e9;var _0xaf9415;(_0xaf9415=this[_0x4e4379(0x415)])==null||_0xaf9415[_0x4e4379(0x446)]({'cmd':I[_0x4e4379(0x4db)],'data':{'roomID':this[_0x4e4379(0x1d8)]}});})));}get[_0x95d569(0x2a2)](){const _0xfc41f8=_0x95d569;return this[_0xfc41f8(0x3e9)][_0xfc41f8(0x366)]();}[_0x95d569(0x2b6)](){const _0x13203f=_0x95d569;var _0x2dd8f1,_0x5f1173;return(_0x5f1173=(_0x2dd8f1=this[_0x13203f(0x415)])==null?void 0x0:_0x2dd8f1['memberID'])!=null?_0x5f1173:null;}['dispose'](){const _0x126997=_0x95d569;super[_0x126997(0x3eb)](),this[_0x126997(0x467)]['next'](),this[_0x126997(0x467)][_0x126997(0x35d)]();}[_0x95d569(0x1dd)](){const _0x25f1cc=_0x95d569;var _0x1af58d,_0x30ac5b;(_0x1af58d=this[_0x25f1cc(0x415)])==null||_0x1af58d[_0x25f1cc(0x446)]({'cmd':I[_0x25f1cc(0x4db)],'data':{'roomID':this['_unitID']}}),this[_0x25f1cc(0x202)][_0x25f1cc(0x35d)](),this[_0x25f1cc(0x3e9)][_0x25f1cc(0x35d)](),(_0x30ac5b=this[_0x25f1cc(0x415)])==null||_0x30ac5b['close'](),this[_0x25f1cc(0x3eb)]();}[_0x95d569(0x48a)](_0x1bc963){const _0x49f914=_0x95d569;_0x1bc963['cmd']===I[_0x49f914(0x210)]?this[_0x49f914(0x334)](_0x1bc963):_0x1bc963[_0x49f914(0x3d2)]===I['RECV']&&this[_0x49f914(0x41f)](_0x1bc963);}[_0x95d569(0x30e)](_0x23d5db){const _0x1a6998=_0x95d569;this[_0x1a6998(0x3e9)][_0x1a6998(0x3fb)](0x1),_0x23d5db[_0x1a6998(0x446)]({'cmd':I[_0x1a6998(0x210)],'routeKey':this[_0x1a6998(0x1d8)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1a6998(0x1d8)]}]}});}[_0x95d569(0x334)](_0xe37c1f){const _0x1b4101=_0x95d569;var _0x375e62;if(_0xe37c1f[_0x1b4101(0x2cb)]===$t['FAIL']){this[_0x1b4101(0x290)][_0x1b4101(0x2c1)]({'type':_0x3a56fd['Warning'],'content':this[_0x1b4101(0x387)]['t'](_0x1b4101(0x48d))}),this[_0x1b4101(0x3e9)]['next'](0x2);return;}this[_0x1b4101(0x3e9)][_0x1b4101(0x3fb)](0x3);const _0x200e2c=(_0x375e62=_0xe37c1f['data'][_0x1b4101(0x23f)][this['_unitID']])==null?void 0x0:_0x375e62[_0x1b4101(0x2d1)];_0x200e2c&&_0x200e2c['forEach'](_0x1730ab=>this[_0x1b4101(0x1c6)][_0x1b4101(0x275)](this[_0x1b4101(0x1d8)],_0x1730ab));}[_0x95d569(0x41f)](_0x39b46c){const _0x3672ca=_0x95d569;try{const _0xbc69e5=_0x39b46c[_0x3672ca(0x406)];switch(_0xbc69e5['eventID']){case _0x47d699[_0x3672ca(0x4c4)]:this[_0x3672ca(0x441)](_0xbc69e5),this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);break;case _0x47d699[_0x3672ca(0x204)]:this[_0x3672ca(0x22d)](_0xbc69e5),this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);break;case _0x47d699[_0x3672ca(0x4a1)]:this[_0x3672ca(0x4ef)](),this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);break;case _0x47d699[_0x3672ca(0x3fa)]:this[_0x3672ca(0x40c)][_0x3672ca(0x2c3)](_0x3672ca(0x34a)+JSON[_0x3672ca(0x462)](_0xbc69e5)),this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);break;case _0x47d699[_0x3672ca(0x48f)]:this[_0x3672ca(0x4f3)][_0x3672ca(0x2a0)](_0xbc69e5[_0x3672ca(0x406)]),this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);break;default:this[_0x3672ca(0x202)][_0x3672ca(0x3fb)](_0xbc69e5);}}catch(_0x574a19){this[_0x3672ca(0x40c)]['error'](_0x574a19,_0x39b46c);}}[_0x95d569(0x441)](_0x469778){const _0x469a46=_0x95d569;this[_0x469a46(0x1c6)]['updateMember'](this[_0x469a46(0x1d8)],_0x469778[_0x469a46(0x406)]);}[_0x95d569(0x22d)](_0xf52bd7){const _0x5a6448=_0x95d569;this['_memberService'][_0x5a6448(0x2ad)](this[_0x5a6448(0x1d8)],_0xf52bd7[_0x5a6448(0x406)]['memberID']);}async[_0x95d569(0x446)](_0x1a4e73,_0x18a643){const _0x4c1198=_0x95d569;if(this[_0x4c1198(0x2a2)]!==0x3||!this[_0x4c1198(0x415)])throw new Error(_0x4c1198(0x32d));try{_0x1a4e73[_0x4c1198(0x407)]===_0x47d699['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4c1198(0x415)][_0x4c1198(0x446)]({'cmd':I[_0x4c1198(0x419)],'routeKey':_0x18a643,'routeType':'','data':_0x1a4e73});}catch(_0x5ac469){this[_0x4c1198(0x40c)][_0x4c1198(0x2c3)](_0x5ac469);}}['_scheduleCollaborationTimeoutTimer'](){const _0x188953=_0x95d569;var _0x1639c6;this[_0x188953(0x354)]=window[_0x188953(0x2a1)](()=>{const _0x2c886d=_0x188953;this['_collaborationTimeoutTimer']=null,this[_0x2c886d(0x290)][_0x2c886d(0x2c1)]({'type':_0x3a56fd[_0x2c886d(0x42f)],'content':this['_localeService']['t'](_0x2c886d(0x403))});},(_0x1639c6=this[_0x188953(0x4e7)][_0x188953(0x3bb)](Os))!=null?_0x1639c6:Ds);}[_0x95d569(0x4ef)](){const _0x47992a=_0x95d569;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x47992a(0x354)]),this[_0x47992a(0x354)]=null);}};vt=Ms([A(0x2,_0x71acc2),A(0x3,_0x266f0c),A(0x4,_0x514d5b),A(0x5,_0x3e2b80),A(0x6,_0x5e8fa6(_0x1dc83a)),A(0x7,_0x5e8fa6(ne)),A(0x8,_0x5e8fa6(Ns))],vt);let pe=class extends _0x413d3d{constructor(_0x1aeb67,_0x17b98a,_0x3d4d23,_0x2a4885,_0x5306b1,_0x147d62){const _0x139fc2=_0x95d569;super(),_(this,_0x139fc2(0x47c),new _0x2c389c(void 0x0)),_(this,_0x139fc2(0x367),new Map()),_(this,_0x139fc2(0x2ea),new _0x2c389c(0x0)),_(this,_0x139fc2(0x26a),this[_0x139fc2(0x2ea)][_0x139fc2(0x4a7)]()),_(this,_0x139fc2(0x3cc),!0x1),_(this,_0x139fc2(0x333)),_(this,'_timeoutTimer'),_(this,'_retryConnectingTimer'),_(this,_0x139fc2(0x346),0x0),(this[_0x139fc2(0x418)]=_0x1aeb67,this[_0x139fc2(0x387)]=_0x17b98a,this[_0x139fc2(0x290)]=_0x3d4d23,this[_0x139fc2(0x40c)]=_0x2a4885,this[_0x139fc2(0x4e7)]=_0x5306b1,this[_0x139fc2(0x25f)]=_0x147d62);}get[_0x95d569(0x415)](){const _0x59972a=_0x95d569;return this[_0x59972a(0x47c)][_0x59972a(0x366)]();}[_0x95d569(0x3eb)](){const _0x51a43c=_0x95d569;super['dispose'](),this['_sessions'][_0x51a43c(0x43b)](_0x1ba31c=>_0x1ba31c[_0x51a43c(0x3eb)]()),this['_sessions'][_0x51a43c(0x344)](),this[_0x51a43c(0x2ea)][_0x51a43c(0x35d)]();}async[_0x95d569(0x383)](_0x1b1699){const _0x8c6f97=_0x95d569;if(this['_sessions'][_0x8c6f97(0x200)](_0x1b1699))return this[_0x8c6f97(0x367)][_0x8c6f97(0x348)](_0x1b1699);this['_tryEnsureSocket']();const _0xb9e840=this[_0x8c6f97(0x418)]['createInstance'](vt,_0x1b1699,this['_socket$']['asObservable']());return this['_sessions']['set'](_0x1b1699,_0xb9e840),_0xb9e840;}['closeSession'](_0x219a34){const _0x3d2fe8=_0x95d569;var _0x38a95c;const _0x20df29=this[_0x3d2fe8(0x367)][_0x3d2fe8(0x348)](_0x219a34);_0x20df29&&(this[_0x3d2fe8(0x367)][_0x3d2fe8(0x26d)](_0x219a34),_0x20df29[_0x3d2fe8(0x1dd)]()),this['_sessions']['size']||(_0x38a95c=this['_socket'])==null||_0x38a95c[_0x3d2fe8(0x1dd)]();}['_createSocket'](){const _0xa147dc=_0x95d569;var _0x1e4e59;const _0x1ef480=(_0x1e4e59=this[_0xa147dc(0x4e7)][_0xa147dc(0x3bb)](ln))!=null?_0x1e4e59:un;return this[_0xa147dc(0x25f)][_0xa147dc(0x41e)](_0x1ef480);}[_0x95d569(0x4ca)](){const _0x1b1c4b=_0x95d569;try{const _0x38c28c=this[_0x1b1c4b(0x468)]();if(_0x38c28c){const _0x24e98a=_0x38c28c[_0x1b1c4b(0x446)];_0x38c28c[_0x1b1c4b(0x446)]=_0x7e1b79=>(this[_0x1b1c4b(0x253)](),_0x24e98a[_0x1b1c4b(0x43f)](_0x38c28c,[_0x7e1b79])),_0x38c28c[_0x1b1c4b(0x427)][_0x1b1c4b(0x2e2)](_0x38ab3c=>this[_0x1b1c4b(0x21b)](_0x38c28c,_0x38ab3c)),_0x38c28c[_0x1b1c4b(0x382)][_0x1b1c4b(0x350)](_0x15282b(0x1))['subscribe'](_0x4ed2e8=>this['_logService'][_0x1b1c4b(0x2c3)](_0x1b1c4b(0x4d0),_0x4ed2e8)),_0x38c28c['open$']['pipe'](_0x15282b(0x1))['subscribe'](()=>{const _0x40f4fa=_0x1b1c4b;this[_0x40f4fa(0x2b7)](_0x38c28c);}),_0x38c28c[_0x1b1c4b(0x329)][_0x1b1c4b(0x350)](_0x15282b(0x1))['subscribe'](_0x2157d6=>{const _0x1de4e2=_0x1b1c4b;this[_0x1de4e2(0x40c)]['debug'](_0x1de4e2(0x3f9),_0x1de4e2(0x244),_0x2157d6),this[_0x1de4e2(0x4d8)]();});}}catch(_0x5144eb){this[_0x1b1c4b(0x40c)]['error'](_0x5144eb),this[_0x1b1c4b(0x4d8)]();}}[_0x95d569(0x2b7)](_0x49e23c){const _0x315406=_0x95d569;this[_0x315406(0x40c)]['debug'](_0x315406(0x3f9),'socket\x20open.'),_0x49e23c[_0x315406(0x446)]({'cmd':I[_0x315406(0x4ce)]}),this[_0x315406(0x253)]();}[_0x95d569(0x4d8)](){const _0xd3e679=_0x95d569;var _0x2c443e;this[_0xd3e679(0x2ea)][_0xd3e679(0x3fb)](0x2),this[_0xd3e679(0x47c)]['next'](null),this[_0xd3e679(0x4c7)](),this[_0xd3e679(0x3f8)](),this[_0xd3e679(0x3cc)]=!0x1,this[_0xd3e679(0x346)]<((_0x2c443e=this['_configService'][_0xd3e679(0x3bb)](Sn))!=null?_0x2c443e:pn)?(this[_0xd3e679(0x440)](this['_retryCount']),this['_retryCount']+=0x1):this[_0xd3e679(0x290)][_0xd3e679(0x2c1)]({'type':_0x3a56fd[_0xd3e679(0x42f)],'content':this['_localeService']['t']('session.connection-failed')});}['_scheduleReconnection'](_0x34be44){const _0x453414=_0x95d569;var _0x1bc075;const _0x1e08ad=((_0x1bc075=this[_0x453414(0x4e7)][_0x453414(0x3bb)](fn))!=null?_0x1bc075:gn)*0x2**_0x34be44;this[_0x453414(0x290)][_0x453414(0x2c1)]({'type':_0x3a56fd[_0x453414(0x4a9)],'content':this[_0x453414(0x387)]['t'](_0x453414(0x277))}),this[_0x453414(0x3f0)]=setTimeout(()=>{const _0x17588c=_0x453414;this['_tryEnsureSocket'](),clearTimeout(this[_0x17588c(0x3f0)]),this[_0x17588c(0x3f0)]=null;},_0x1e08ad);}['_rescheduleHeartbeatEvent'](){const _0x5c3411=_0x95d569;var _0x4dc778;this[_0x5c3411(0x3f8)](),this[_0x5c3411(0x333)]=setTimeout(()=>this[_0x5c3411(0x3ba)](),(_0x4dc778=this['_configService'][_0x5c3411(0x3bb)](dn))!=null?_0x4dc778:mn);}[_0x95d569(0x3ba)](){const _0x50311d=_0x95d569;this[_0x50311d(0x415)]['send']({'cmd':I[_0x50311d(0x27b)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0xc0d6c5=_0x95d569;var _0x1b71be;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x1b71be=this[_0xc0d6c5(0x4e7)][_0xc0d6c5(0x3bb)](Os))!=null?_0x1b71be:Ds);}['_onMessage'](_0x1fb79e,_0x27297f){const _0x579ae0=_0x95d569,{cmd:_0x37a91e}=_0x27297f;_0x37a91e===I['HELLO']&&!this['_socketReady']&&(_0x1fb79e[_0x579ae0(0x3b5)]=_0x27297f[_0x579ae0(0x406)][_0x579ae0(0x3b5)],this[_0x579ae0(0x47c)]['next'](_0x1fb79e),this[_0x579ae0(0x2ea)][_0x579ae0(0x3fb)](0x3),this[_0x579ae0(0x3cc)]=!0x0),_0x37a91e===I[_0x579ae0(0x27b)]&&this[_0x579ae0(0x4c7)](),this['_rescheduleHeartbeatEvent']();}[_0x95d569(0x3f8)](){const _0x31dd07=_0x95d569;this[_0x31dd07(0x333)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x31dd07(0x333)]=null);}[_0x95d569(0x4c7)](){const _0xaaa162=_0x95d569;this[_0xaaa162(0x240)]!=null&&(clearTimeout(this[_0xaaa162(0x240)]),this[_0xaaa162(0x240)]=null);}};pe=Ms([A(0x0,_0x5e8fa6(_0x1eb3c6)),A(0x1,_0x5e8fa6(_0x1dc83a)),A(0x2,_0x514d5b),A(0x3,_0x71acc2),A(0x4,_0x3e2b80),A(0x5,ws)],pe);var jn=Object[_0x95d569(0x515)],xn=Object[_0x95d569(0x201)],Hn=(_0x342e4b,_0xb36bc6,_0x159016,_0x341e06)=>{const _0x28619c=_0x95d569;for(var _0x448633=_0x341e06>0x1?void 0x0:_0x341e06?xn(_0xb36bc6,_0x159016):_0xb36bc6,_0x513456=_0x342e4b[_0x28619c(0x259)]-0x1,_0x43d717;_0x513456>=0x0;_0x513456--)(_0x43d717=_0x342e4b[_0x513456])&&(_0x448633=(_0x341e06?_0x43d717(_0xb36bc6,_0x159016,_0x448633):_0x43d717(_0x448633))||_0x448633);return _0x341e06&&_0x448633&&jn(_0xb36bc6,_0x159016,_0x448633),_0x448633;},Oe=(_0xbe13f4,_0x1ea1b2)=>(_0x352831,_0x564756)=>_0x1ea1b2(_0x352831,_0x564756,_0xbe13f4);let D=class extends _0x413d3d{constructor(_0x302802,_0x1a41e5,_0x9c3d8d,_0x2145ed,_0x80ab7c){const _0x54596f=_0x95d569;super(),_(this,_0x54596f(0x4b6),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x54596f(0x4e7)]=_0x302802,this['_localStorageService']=_0x1a41e5,this['_beforeCloseService']=_0x9c3d8d,this[_0x54596f(0x387)]=_0x2145ed,this[_0x54596f(0x2ff)]=_0x80ab7c,this[_0x54596f(0x3ff)]());}['disableLocalCache'](){const _0x1a0915=_0x95d569;this[_0x1a0915(0x487)]=!0x0;}[_0x95d569(0x42c)](){const _0x4841d3=_0x95d569;this[_0x4841d3(0x487)]=!0x1;}['dispose'](){const _0x512253=_0x95d569;this[_0x512253(0x266)]()[_0x512253(0x363)](()=>super[_0x512253(0x3eb)]());}async[_0x95d569(0x3d7)](_0xcfe6ac){const _0x3dfa26=_0x95d569;return this[_0x3dfa26(0x487)]?null:this[_0x3dfa26(0x37e)][_0x3dfa26(0x335)](Qt(_0xcfe6ac));}async[_0x95d569(0x373)](_0x41efec,_0x4e02f6){const _0x512d8c=_0x95d569;return!!this[_0x512d8c(0x37e)][_0x512d8c(0x234)](_0x41efec,_0x4e02f6);}[_0x95d569(0x205)](_0x4d560c,_0x4e69c3,_0x14c1d7,_0x2746df){const _0x3f532f=_0x95d569,_0x219c8c=this['_revisionService'][_0x3f532f(0x270)](_0x4d560c);this[_0x3f532f(0x4b6)][_0x3f532f(0x4b4)](_0x4d560c,{'unitID':_0x4d560c,'type':_0x4e69c3,'awaitingChangeset':_0x14c1d7,'mutations':_0x2746df,'rev':_0x219c8c}),this[_0x3f532f(0x2a9)]['has'](_0x4d560c)||this[_0x3f532f(0x3f2)](_0x4d560c);}[_0x95d569(0x3f2)](_0x3e2a30){const _0x1ad35e=_0x95d569,_0xf6a999=this['_getSaveTimeout']();_0xf6a999===0x0?this[_0x1ad35e(0x36e)](_0x3e2a30):this[_0x1ad35e(0x2a9)][_0x1ad35e(0x4b4)](_0x3e2a30,setTimeout(()=>this[_0x1ad35e(0x36e)](_0x3e2a30),_0xf6a999));}[_0x95d569(0x402)](){const _0x50c57c=_0x95d569;var _0x3c077a;return(_0x3c077a=this[_0x50c57c(0x4e7)][_0x50c57c(0x3bb)](vn))!=null?_0x3c077a:In;}[_0x95d569(0x36e)](_0x15806a){const _0x17bf2f=_0x95d569,_0xa1d1fa=this[_0x17bf2f(0x2a9)][_0x17bf2f(0x348)](_0x15806a);return _0xa1d1fa!==void 0x0&&window[_0x17bf2f(0x225)](_0xa1d1fa),this[_0x17bf2f(0x37e)]['setItem'](Qt(_0x15806a),this[_0x17bf2f(0x4b6)][_0x17bf2f(0x348)](_0x15806a))[_0x17bf2f(0x363)](()=>this[_0x17bf2f(0x2a9)][_0x17bf2f(0x26d)](_0x15806a));}async[_0x95d569(0x266)](){const _0x59117a=_0x95d569,_0x397900=[];this['_saveTaskMap'][_0x59117a(0x43b)]((_0x525dc8,_0x50b164)=>{const _0x3dc47d=_0x59117a;window[_0x3dc47d(0x225)](_0x525dc8),_0x397900[_0x3dc47d(0x1fa)](this[_0x3dc47d(0x36e)](_0x50b164)['then'](()=>{const _0x1ba6af=_0x3dc47d;this[_0x1ba6af(0x2a9)][_0x1ba6af(0x26d)](_0x50b164);}));}),await Promise['all'](_0x397900);}[_0x95d569(0x3ff)](){const _0x40c025=_0x95d569;this['disposeWithMe'](this[_0x40c025(0x1cc)]['registerBeforeClose'](()=>{const _0x191bf9=_0x40c025;if(this[_0x191bf9(0x2a9)][_0x191bf9(0x4bc)])return this['_localeService']['t'](_0x191bf9(0x311));}));}};D=Hn([Oe(0x0,_0x3e2b80),Oe(0x1,_0x21633c),Oe(0x2,_0x266f0c),Oe(0x3,_0x5e8fa6(_0x1dc83a)),Oe(0x4,_0x5e8fa6(_0xd83bbc))],D);function Qt(_0x5502f6){const _0x436197=_0x95d569;return _0x436197(0x33d)+_0x5502f6;}const tt=_0x475b76(_0x95d569(0x4a4));var As=(_0x3554cf=>(_0x3554cf[_0x3554cf[_0x95d569(0x4f7)]=0x0]=_0x95d569(0x4f7),_0x3554cf[_0x3554cf[_0x95d569(0x3aa)]=0x1]=_0x95d569(0x3aa),_0x3554cf))(As||{});const es=0x7530,ts=_0x95d569(0x3fc);class kn extends _0x413d3d{constructor(){const _0x2c7a4d=_0x95d569;super(),_(this,_0x2c7a4d(0x313),_0x23908f['generateRandomId']()),_(this,_0x2c7a4d(0x511),new Set()),_(this,_0x2c7a4d(0x1fc),new Map()),_(this,_0x2c7a4d(0x4fe),null),_(this,_0x2c7a4d(0x26c),new Map()),_(this,_0x2c7a4d(0x22f),new Map()),this[_0x2c7a4d(0x2b0)]();}[_0x95d569(0x3eb)](){const _0x3469dc=_0x95d569;super['dispose'](),this[_0x3469dc(0x26c)][_0x3469dc(0x43b)]((_0x12614f,_0x174926)=>this['_removeClearOtherTimer'](_0x174926)),this[_0x3469dc(0x4fe)]&&window['clearInterval'](this[_0x3469dc(0x4fe)]);}[_0x95d569(0x4f4)](_0x582b43){const _0xfe9cba=_0x95d569;return this['_ensureSubject'](_0x582b43)[_0xfe9cba(0x350)](_0xa3ea6c());}[_0x95d569(0x40b)](_0x11ebd8){const _0x47b382=_0x95d569;this[_0x47b382(0x511)]['size']===0x0&&this[_0x47b382(0x428)](),this['_selfUnitIDs']['add'](_0x11ebd8),this[_0x47b382(0x3a1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x11ebd8],'isForwarded':!0x1});}[_0x95d569(0x2f7)](_0x523512){const _0x3e869a=_0x95d569;this[_0x3e869a(0x511)]['delete'](_0x523512),this[_0x3e869a(0x511)][_0x3e869a(0x4bc)]===0x0&&this[_0x3e869a(0x4fe)]&&window[_0x3e869a(0x414)](this[_0x3e869a(0x4fe)]);}[_0x95d569(0x2b0)](){const _0x5ccf60=_0x95d569;this[_0x5ccf60(0x288)](_0xb470e0(_0x34fa1e(window,'storage')[_0x5ccf60(0x2e2)](_0x297441=>{const _0x21172b=_0x5ccf60;if(_0x297441['key']!==ts||!_0x297441[_0x21172b(0x2ab)])return;const _0x5a0177=JSON[_0x21172b(0x4ff)](_0x297441[_0x21172b(0x2ab)]);this[_0x21172b(0x3dd)](_0x5a0177);}))),window[_0x5ccf60(0x476)](_0x5ccf60(0x368),()=>this[_0x5ccf60(0x3a1)]({'type':0x1,'memberID':this[_0x5ccf60(0x313)],'unitIDs':Array['from'](this[_0x5ccf60(0x511)])}));}[_0x95d569(0x3dd)](_0x194536){const _0xbe1f90=_0x95d569;switch(_0x194536[_0xbe1f90(0x258)]){case 0x0:this[_0xbe1f90(0x34f)](_0x194536);break;case 0x1:this[_0xbe1f90(0x3b6)](_0x194536);break;case 0x2:this[_0xbe1f90(0x255)](_0x194536);break;}}['_handleJoinEvent'](_0x525d45){const _0x22bde2=_0x95d569,{unitIDs:_0x356595,memberID:_0x241f37,isForwarded:_0x4ddfd4}=_0x525d45;_0x356595[_0x22bde2(0x43b)](_0x2d5a7b=>{const _0x591193=_0x22bde2;if(!_0x4ddfd4&&this[_0x591193(0x1fc)][_0x591193(0x200)](_0x2d5a7b)&&this[_0x591193(0x3c4)](_0x2d5a7b)[_0x591193(0x3fb)](0x1),!this[_0x591193(0x1fc)][_0x591193(0x200)](_0x2d5a7b)||!this['_unitOnClients']['get'](_0x2d5a7b)[_0x591193(0x200)](_0x241f37)){const _0x4a79fa=this[_0x591193(0x1fc)][_0x591193(0x348)](_0x2d5a7b)||new Set();_0x4a79fa['add'](_0x241f37),this[_0x591193(0x1fc)]['set'](_0x2d5a7b,_0x4a79fa),this['_scheduleClearOtherTimer'](_0x241f37);}}),_0x4ddfd4||this[_0x22bde2(0x3a1)]({'type':0x0,'memberID':this[_0x22bde2(0x313)],'unitIDs':[...this[_0x22bde2(0x511)]],'isForwarded':!0x0});}[_0x95d569(0x2fc)](_0x2b4cee){const _0x1b6544=_0x95d569;this[_0x1b6544(0x3da)](_0x2b4cee);const _0x29e571=window[_0x1b6544(0x2a1)](()=>{const _0x3137cb=_0x1b6544;this[_0x3137cb(0x1fc)][_0x3137cb(0x43b)](_0x3a09d7=>{_0x3a09d7['delete'](_0x2b4cee);});},es*0x2);this[_0x1b6544(0x26c)][_0x1b6544(0x4b4)](_0x2b4cee,_0x29e571);}['_removeClearOtherTimer'](_0x17c592){const _0x41cfa3=_0x95d569;if(this[_0x41cfa3(0x26c)][_0x41cfa3(0x200)](_0x17c592)){const _0x450910=this['_clearOtherTimers'][_0x41cfa3(0x348)](_0x17c592);_0x450910&&window[_0x41cfa3(0x225)](_0x450910),this[_0x41cfa3(0x26c)]['set'](_0x17c592,null);}}['_handleLeaveEvent'](_0x4f337d){const _0x5c38fa=_0x95d569,{memberID:_0x377fc6,unitIDs:_0x1487d9}=_0x4f337d;_0x1487d9['forEach'](_0x4290ea=>{const _0x4f6ca8=_0x163c;var _0x3b9c01;const _0x1abafd=this[_0x4f6ca8(0x1fc)]['get'](_0x4290ea);_0x1abafd&&(_0x1abafd['delete'](_0x377fc6),(_0x3b9c01=this['_ensureSubject'](_0x4290ea))==null||_0x3b9c01[_0x4f6ca8(0x3fb)](_0x1abafd[_0x4f6ca8(0x4bc)]===0x0?0x0:0x1));}),this[_0x5c38fa(0x3da)](_0x377fc6);}[_0x95d569(0x255)](_0x3660ce){const _0x16e799=_0x95d569;this[_0x16e799(0x2fc)](_0x3660ce[_0x16e799(0x3b5)]);}[_0x95d569(0x3a1)](_0x1728a0){const _0x3070cb=_0x95d569;localStorage[_0x3070cb(0x234)](ts,JSON[_0x3070cb(0x462)](_0x1728a0));}[_0x95d569(0x428)](){const _0xb23daa=_0x95d569;this[_0xb23daa(0x4fe)]=window[_0xb23daa(0x1ff)](()=>{const _0x32bc93=_0xb23daa;this[_0x32bc93(0x3a1)]({'type':0x2,'memberID':this[_0x32bc93(0x313)]});},es);}[_0x95d569(0x3c4)](_0x110765){const _0x649e0=_0x95d569;return this['_unitStatus']['has'](_0x110765)||this['_unitStatus'][_0x649e0(0x4b4)](_0x110765,new _0x2c389c(0x0)),this['_unitStatus'][_0x649e0(0x348)](_0x110765);}}var Fn=Object[_0x95d569(0x515)],Vn=Object[_0x95d569(0x201)],Bn=(_0x2b60ce,_0x15eeef,_0x13e994,_0x562cbd)=>{const _0x4c76a7=_0x95d569;for(var _0x3ff08f=_0x562cbd>0x1?void 0x0:_0x562cbd?Vn(_0x15eeef,_0x13e994):_0x15eeef,_0x57394f=_0x2b60ce[_0x4c76a7(0x259)]-0x1,_0x4bf48a;_0x57394f>=0x0;_0x57394f--)(_0x4bf48a=_0x2b60ce[_0x57394f])&&(_0x3ff08f=(_0x562cbd?_0x4bf48a(_0x15eeef,_0x13e994,_0x3ff08f):_0x4bf48a(_0x3ff08f))||_0x3ff08f);return _0x562cbd&&_0x3ff08f&&Fn(_0x15eeef,_0x13e994,_0x3ff08f),_0x3ff08f;},ss=(_0x4b5b34,_0x30a8d2)=>(_0x532309,_0x3fe066)=>_0x30a8d2(_0x532309,_0x3fe066,_0x4b5b34);let Je=class{constructor(_0x4b3897,_0x2a19da){const _0x31f089=_0x95d569;this[_0x31f089(0x418)]=_0x4b3897,this[_0x31f089(0x36f)]=_0x2a19da;}[_0x95d569(0x362)](_0x2611a2){const _0x4ce1dc=_0x95d569;this[_0x4ce1dc(0x314)](_0x2611a2),this['_transformPreviousActiveRange'](_0x2611a2);}[_0x95d569(0x24b)](_0x54f925){const _0x3f6128=_0x95d569,_0x310288=this[_0x3f6128(0x418)][_0x3f6128(0x348)](_0x6b562c),{redoCache:_0x2b2f60}=_0x310288[_0x3f6128(0x222)]();if(_0x2b2f60[_0x3f6128(0x259)]===0x0)return _0x54f925;let _0x18191e=_0x23908f[_0x3f6128(0x2c5)](_0x54f925['mutations'][0x0]);for(let _0x22dbbe=0x0;_0x22dbbe<_0x2b2f60[_0x3f6128(0x259)];_0x22dbbe++){const _0x30738b={'id':_0x3f6128(0x21e),'params':{..._0x2b2f60[_0x22dbbe]}},_0x10d0ce=this[_0x3f6128(0x36f)][_0x3f6128(0x500)](_0x18191e,_0x30738b,!0x1);if(_0x587331(_0x10d0ce))throw _0x10d0ce[_0x3f6128(0x2c3)];_0x18191e=_0x10d0ce['m1Prime'];}return{..._0x23908f[_0x3f6128(0x2c5)](_0x54f925),'mutations':[_0x18191e]};}['_transformUndoRedoStack'](_0x15083b){const _0x1edafd=_0x95d569,_0x408f59=this[_0x1edafd(0x418)]['get'](_0x6b562c),{undoCache:_0x1894df,redoCache:_0x49c5b6}=_0x408f59[_0x1edafd(0x222)]();if(_0x1894df[_0x1edafd(0x259)]===0x0||_0x49c5b6['length']===0x0)return;const _0x5caf80=[],_0x3abe4c=[];let _0x9e08ca=_0x23908f['deepClone'](_0x15083b[_0x1edafd(0x22b)][0x0]),_0x363b41=_0x23908f[_0x1edafd(0x2c5)](_0x15083b[_0x1edafd(0x22b)][0x0]);for(let _0x5092bf=_0x1894df[_0x1edafd(0x259)]-0x1;_0x5092bf>=0x0;_0x5092bf--){const _0x26b37e={'id':'doc.mutation.rich-text-editing','params':{..._0x1894df[_0x5092bf]}},_0x2e6586={'id':_0x1edafd(0x21e),'params':{..._0x49c5b6[_0x5092bf]}},_0x5436e2=this['_transformService'][_0x1edafd(0x500)](_0x9e08ca,_0x26b37e,!0x1),_0x18234e=this[_0x1edafd(0x36f)][_0x1edafd(0x500)](_0x363b41,_0x2e6586,!0x1);if(_0x587331(_0x5436e2))throw _0x5436e2[_0x1edafd(0x2c3)];if(_0x587331(_0x18234e))throw _0x18234e['error'];_0x5caf80[_0x1edafd(0x2d2)](_0x5436e2['m2Prime'][_0x1edafd(0x315)]),_0x3abe4c[_0x1edafd(0x2d2)](_0x18234e['m2Prime'][_0x1edafd(0x315)]),_0x9e08ca=_0x5436e2[_0x1edafd(0x312)],_0x363b41=_0x18234e[_0x1edafd(0x312)];}_0x408f59[_0x1edafd(0x3ae)]({'undoCache':_0x5caf80,'redoCache':_0x3abe4c});}[_0x95d569(0x3bf)](_0x19f6f9){const _0x114e50=_0x95d569,_0x2067fc=this[_0x114e50(0x418)]['get'](_0x6b562c),_0x175e87=_0x2067fc[_0x114e50(0x3d4)]();if(_0x175e87==null)return;const _0x3f409e=[{'id':_0x114e50(0x21e),'params':{'unitId':_0x19f6f9['unitID'],'actions':null,'textRanges':[_0x175e87]}}],_0x35d59e=this[_0x114e50(0x36f)][_0x114e50(0x2da)](_0x19f6f9,_0x3f409e);if(!_0x5ceeea(_0x35d59e))throw _0x35d59e[_0x114e50(0x2c3)];const _0x174fc3=_0x35d59e[_0x114e50(0x2ce)][0x0][_0x114e50(0x315)][_0x114e50(0x2f5)];Array[_0x114e50(0x3c9)](_0x174fc3)&&_0x174fc3[_0x114e50(0x259)]&&_0x2067fc[_0x114e50(0x3d8)](_0x174fc3[0x0]);}};Je=Bn([ss(0x0,_0x5e8fa6(_0x1eb3c6)),ss(0x1,_0x229179)],Je);var Wn=Object[_0x95d569(0x515)],Gn=Object[_0x95d569(0x201)],Yn=(_0x1cfc49,_0x480bea,_0x30dea0,_0x39ac3e)=>{for(var _0x2b3470=_0x39ac3e>0x1?void 0x0:_0x39ac3e?Gn(_0x480bea,_0x30dea0):_0x480bea,_0x19edaa=_0x1cfc49['length']-0x1,_0xef44a7;_0x19edaa>=0x0;_0x19edaa--)(_0xef44a7=_0x1cfc49[_0x19edaa])&&(_0x2b3470=(_0x39ac3e?_0xef44a7(_0x480bea,_0x30dea0,_0x2b3470):_0xef44a7(_0x2b3470))||_0x2b3470);return _0x39ac3e&&_0x2b3470&&Wn(_0x480bea,_0x30dea0,_0x2b3470),_0x2b3470;},is=(_0x4bd235,_0x4dee4a)=>(_0x5aad4a,_0x1ecf47)=>_0x4dee4a(_0x5aad4a,_0x1ecf47,_0x4bd235);let ze=class{constructor(_0x42f165,_0x135585){const _0x5c84b3=_0x95d569;this[_0x5c84b3(0x418)]=_0x42f165,this[_0x5c84b3(0x36f)]=_0x135585;}[_0x95d569(0x20b)](_0x24f9a0){const _0x3815de=_0x95d569;var _0x465bf0;const _0x35514d=this[_0x3815de(0x418)][_0x3815de(0x348)](_0x392a29),_0x2c7634=(_0x465bf0=_0x35514d[_0x3815de(0x2be)]())!=null?_0x465bf0:[],_0x1e4deb=_0x2c7634==null?void 0x0:_0x2c7634[_0x3815de(0x3cb)](_0x355bf6);if(_0x1e4deb[_0x3815de(0x259)]===0x0)return;const _0x170e46=[{'id':_0x3815de(0x21e),'params':{'unitId':_0x24f9a0[_0x3815de(0x422)],'actions':null,'textRanges':_0x1e4deb}}],_0x183044=this[_0x3815de(0x36f)][_0x3815de(0x2da)](_0x24f9a0,_0x170e46);if(!_0x5ceeea(_0x183044))throw _0x183044[_0x3815de(0x2c3)];const _0x249bda=_0x183044[_0x3815de(0x2ce)][0x0][_0x3815de(0x315)][_0x3815de(0x2f5)];Array[_0x3815de(0x3c9)](_0x249bda)&&_0x249bda[_0x3815de(0x259)]&&_0x35514d[_0x3815de(0x4ee)](_0x249bda,!0x1);}};ze=Yn([is(0x0,_0x5e8fa6(_0x1eb3c6)),is(0x1,_0x229179)],ze);function ys(_0x5779fe){const _0x28909d=_0x95d569;let _0xd78503='';for(const _0x407ecd of _0x5779fe){const {startOffset:_0x118345,endOffset:_0x4988a2,isActive:_0x2827f2}=_0x407ecd;_0xd78503[_0x28909d(0x259)]&&(_0xd78503+=','),_0xd78503+=_0x118345+':'+_0x4988a2+':'+(_0x2827f2?'1':'0');}return _0xd78503;}function Kn(_0x431461){const _0x1371cf=_0x95d569,_0x211376=_0x431461['split'](','),_0x5b2720=[];for(const _0x5a59b4 of _0x211376){const [_0x354da5,_0x466d9a,_0x381ef3]=_0x5a59b4[_0x1371cf(0x480)](':');_0x5b2720['push']({'startOffset':Number(_0x354da5),'endOffset':Number(_0x466d9a),'collapsed':_0x354da5===_0x466d9a,'isActive':_0x381ef3==='1'});}return _0x5b2720['some'](_0x18f577=>_0x18f577[_0x1371cf(0x267)])||(_0x5b2720[0x0]['isActive']=!0x0),_0x5b2720;}class jt extends _0x24c298{constructor(){const _0x1c8cda=_0x95d569;super(...arguments),_(this,_0x1c8cda(0x4fd),new _0x2c389c(null)),_(this,_0x1c8cda(0x21f),this[_0x1c8cda(0x4fd)][_0x1c8cda(0x4a7)]());}[_0x95d569(0x1bf)](_0x42c458){const _0x193083=_0x95d569,{unitID:_0x138a8c,memberID:_0x3412a2,textRanges:_0x48c80c}=_0x42c458,_0x3b49cd=ys(_0x48c80c),_0x456b97={'unitID':_0x138a8c,'memberID':_0x3412a2,'selection':_0x3b49cd};this[_0x193083(0x4fd)][_0x193083(0x3fb)](_0x456b97);}}var Xn=Object[_0x95d569(0x515)],Jn=Object[_0x95d569(0x201)],zn=(_0x48920a,_0x21ea11,_0x41250b,_0x761bd2)=>{for(var _0x5e7c55=_0x761bd2>0x1?void 0x0:_0x761bd2?Jn(_0x21ea11,_0x41250b):_0x21ea11,_0x3243f2=_0x48920a['length']-0x1,_0x3dad75;_0x3243f2>=0x0;_0x3243f2--)(_0x3dad75=_0x48920a[_0x3243f2])&&(_0x5e7c55=(_0x761bd2?_0x3dad75(_0x21ea11,_0x41250b,_0x5e7c55):_0x3dad75(_0x5e7c55))||_0x5e7c55);return _0x761bd2&&_0x5e7c55&&Xn(_0x21ea11,_0x41250b,_0x5e7c55),_0x5e7c55;},ns=(_0x10fe94,_0x2c323f)=>(_0x115ac5,_0x4570f5)=>_0x2c323f(_0x115ac5,_0x4570f5,_0x10fe94);function qn(_0x49e084){const _0x1d4c7f=_0x95d569,{unitID:_0x117f2a,mutations:_0x1cc7e4}=_0x49e084;return{'unitId':_0x117f2a,'subUnitId':_0x1cc7e4[0x0][_0x1d4c7f(0x315)][_0x1d4c7f(0x4f0)]};}let qe=class{constructor(_0x543d3e,_0x1b458b){const _0x182d89=_0x95d569;this['_injector']=_0x543d3e,this[_0x182d89(0x36f)]=_0x1b458b;}[_0x95d569(0x20b)](_0x208975){const _0x447a12=_0x95d569;var _0x4acfcf,_0x3b7f84,_0xd7d27b;const _0x3062e0=this[_0x447a12(0x418)][_0x447a12(0x348)](_0x530c0c),{unitId:_0x5da3e1,subUnitId:_0xa170d9}=qn(_0x208975),_0x158e4f=_0x3062e0[_0x447a12(0x326)](_0x5da3e1)[_0x447a12(0x35e)]();if(_0x158e4f['length']===0x0||!_0x5da3e1||!_0xa170d9)return;const _0x41f119=[{'id':_0x2115a5['id'],'params':{'unitId':_0x5da3e1,'subUnitId':_0xa170d9,'selections':_0x23908f[_0x447a12(0x2c5)](_0x158e4f)}}],_0x71c27d=this[_0x447a12(0x36f)][_0x447a12(0x2da)](_0x208975,_0x41f119);if(!_0x5ceeea(_0x71c27d))throw _0x71c27d[_0x447a12(0x2c3)];const _0x568c83=(_0xd7d27b=(_0x3b7f84=(_0x4acfcf=_0x71c27d[_0x447a12(0x2ce)][0x0])==null?void 0x0:_0x4acfcf[_0x447a12(0x315)])==null?void 0x0:_0x3b7f84[_0x447a12(0x318)])!=null?_0xd7d27b:_0x158e4f;Array[_0x447a12(0x3c9)](_0x568c83)&&_0x568c83[_0x447a12(0x259)]&&this[_0x447a12(0x418)][_0x447a12(0x348)](_0x27e3f2)[_0x447a12(0x32f)](_0x2115a5['id'],{'unitId':_0x5da3e1,'subUnitId':_0xa170d9,'selections':_0x568c83});}};qe=zn([ns(0x0,_0x5e8fa6(_0x1eb3c6)),ns(0x1,_0x229179)],qe);const Zn=new Set([_0x5bfd52['id']]);function rs(_0x24302c,_0x5ac2f5,_0x22d7ef,_0x41b67c,_0x3bc5f8){const _0x3ca9d4=_0x95d569;var _0x42868e,_0x1f3c6f,_0x10caa3,_0x573fd9;const _0x36f0dd=[];for(const _0x468a28 of _0x24302c)if(Zn[_0x3ca9d4(0x200)](_0x468a28['id'])){if(_0x36f0dd['length']>0x0)break;_0x36f0dd[_0x3ca9d4(0x1fa)](_0x468a28);break;}else _0x36f0dd['push'](_0x468a28);const _0x4b68a7=(_0x1f3c6f=(_0x42868e=_0x3bc5f8[_0x3ca9d4(0x32b)]())==null?void 0x0:_0x42868e['userID'])!=null?_0x1f3c6f:_0x3ca9d4(0x3c5),_0x2209ac=(_0x573fd9=(_0x10caa3=_0x3bc5f8[_0x3ca9d4(0x32b)]())==null?void 0x0:_0x10caa3['memberID'])!=null?_0x573fd9:_0x3ca9d4(0x3c5);return{'changeset':{'unitID':_0x5ac2f5,'type':_0xada8ec(_0x22d7ef[_0x3ca9d4(0x32e)](_0x5ac2f5)),'baseRev':_0x41b67c['getCurrentRevForDocument'](_0x5ac2f5),'revision':0x0,'userID':_0x4b68a7,'memberID':_0x2209ac,'mutations':_0x36f0dd},'pendingMutations':_0x24302c['slice'](_0x36f0dd[_0x3ca9d4(0x259)])};}function Qn(_0x21cd1b,_0x2b43be,_0x29e6b3,_0x48a262,_0x5747aa){const _0x50a1da=_0x95d569;var _0x26c0b5,_0x1969d1,_0xbdf30b,_0x35e335;const _0xffa22d=[_0x21cd1b[_0x50a1da(0x447)]((_0x4f26ad,_0x35cfeb)=>{const _0x5c6ef7=_0x50a1da;var _0x1e67d7;const {id:_0x30ffa4}=_0x4f26ad,{id:_0x4c42c1,type:_0x4e1ad6}=_0x35cfeb,_0x482886=(_0x1e67d7=_0x4f26ad[_0x5c6ef7(0x315)])!=null?_0x1e67d7:{'actions':null},_0x1f65d1=_0x35cfeb[_0x5c6ef7(0x315)];if(_0x30ffa4&&_0x30ffa4!==_0x4c42c1)throw new Error(_0x5c6ef7(0x44d)+_0x30ffa4+_0x5c6ef7(0x337)+_0x4c42c1+'.');return{..._0x4f26ad,'id':_0x4c42c1,'type':_0x4e1ad6,'params':{'unitId':_0x1f65d1[_0x5c6ef7(0x489)],'textRanges':_0x1f65d1['textRanges'],'actions':_0x2a5840[_0x5c6ef7(0x212)](_0x482886[_0x5c6ef7(0x42a)],_0x1f65d1[_0x5c6ef7(0x42a)])}};},{})],_0xec1906=(_0x1969d1=(_0x26c0b5=_0x5747aa['getCurrentUser']())==null?void 0x0:_0x26c0b5[_0x50a1da(0x48b)])!=null?_0x1969d1:_0x50a1da(0x3c5),_0x5292a4=(_0x35e335=(_0xbdf30b=_0x5747aa['getCurrentUser']())==null?void 0x0:_0xbdf30b[_0x50a1da(0x3b5)])!=null?_0x35e335:_0x50a1da(0x3c5);return{'changeset':{'unitID':_0x2b43be,'type':_0xada8ec(_0x29e6b3['getUnitType'](_0x2b43be)),'baseRev':_0x48a262[_0x50a1da(0x270)](_0x2b43be),'revision':0x0,'userID':_0xec1906,'memberID':_0x5292a4,'mutations':_0xffa22d},'pendingMutations':[]};}const er={'id':_0x46a48b['id'],'type':_0x1cc735['MUTATION'],'params':{}};var tr=Object[_0x95d569(0x515)],sr=Object['getOwnPropertyDescriptor'],ce=(_0x337e5d,_0x9cb4d0,_0xe7b63b,_0x22274b)=>{const _0x2a94ab=_0x95d569;for(var _0x4da6a5=_0x22274b>0x1?void 0x0:_0x22274b?sr(_0x9cb4d0,_0xe7b63b):_0x9cb4d0,_0x1e1466=_0x337e5d[_0x2a94ab(0x259)]-0x1,_0x31f64a;_0x1e1466>=0x0;_0x1e1466--)(_0x31f64a=_0x337e5d[_0x1e1466])&&(_0x4da6a5=(_0x22274b?_0x31f64a(_0x9cb4d0,_0xe7b63b,_0x4da6a5):_0x31f64a(_0x4da6a5))||_0x4da6a5);return _0x22274b&&_0x4da6a5&&tr(_0x9cb4d0,_0xe7b63b,_0x4da6a5),_0x4da6a5;},f=(_0x13877f,_0x2bbd01)=>(_0x15894a,_0x258e0d)=>_0x2bbd01(_0x15894a,_0x258e0d,_0x13877f),P=(_0x22be66=>(_0x22be66[_0x95d569(0x231)]=_0x95d569(0x3f7),_0x22be66[_0x95d569(0x3f6)]='synced',_0x22be66['PENDING']='pending',_0x22be66['AWAITING']=_0x95d569(0x3a6),_0x22be66[_0x95d569(0x1ed)]='awaiting_with_pending',_0x22be66[_0x95d569(0x1ee)]=_0x95d569(0x423),_0x22be66[_0x95d569(0x284)]='conflict',_0x22be66[_0x95d569(0x375)]=_0x95d569(0x235),_0x22be66))(P||{});class he{constructor(_0x347cb8,_0x337a88,_0x21dfbe,_0x5009e6,_0x27f424,_0x564afe,_0x8d04d8,_0x47e076,_0x235ae0){const _0x2ea5f9=_0x95d569;_(this,_0x2ea5f9(0x3ab),null),_(this,_0x2ea5f9(0x28d),[]),(this[_0x2ea5f9(0x422)]=_0x347cb8,this[_0x2ea5f9(0x258)]=_0x337a88,this['_handler']=_0x27f424,this[_0x2ea5f9(0x27e)]=_0x564afe,this[_0x2ea5f9(0x292)]=_0x8d04d8,this[_0x2ea5f9(0x2ff)]=_0x47e076,this[_0x2ea5f9(0x342)]=_0x235ae0,this[_0x2ea5f9(0x3ab)]=_0x21dfbe,this['_pendingMutations']=_0x5009e6);}[_0x95d569(0x36c)](_0x4faf2a){const _0x432b08=_0x95d569,_0x400569=this[_0x432b08(0x2ff)]['getCurrentRevForDocument'](this[_0x432b08(0x422)]);return _0x4faf2a[_0x432b08(0x217)]>_0x400569+0x1?(this['_handler'][_0x432b08(0x461)]({'from':_0x400569,'to':_0x4faf2a['revision']-0x1}),!0x0):!0x1;}[_0x95d569(0x227)](_0x508089){const _0x5dfb94=_0x95d569;this[_0x5dfb94(0x292)][_0x5dfb94(0x50e)](this[_0x5dfb94(0x422)],_0x508089);}['_transformSelections'](_0x5452bc){const _0x351bb6=_0x95d569;var _0x2a852a,_0x54c32a;(_0x54c32a=(_0x2a852a=this['_handler'])[_0x351bb6(0x4cd)])==null||_0x54c32a[_0x351bb6(0x376)](_0x2a852a,_0x5452bc);}[_0x95d569(0x319)](_0x2be93c){const _0x4d2018=_0x95d569;var _0x4ffe38,_0x23aa48;return(_0x23aa48=(_0x4ffe38=this[_0x4d2018(0x33f)])[_0x4d2018(0x3dc)])==null?void 0x0:_0x23aa48['call'](_0x4ffe38,_0x2be93c);}['_transformRemoteChangesetByIMECache'](_0x393795){const _0x28ee00=_0x95d569;var _0x27e306,_0x380cba,_0x86a647;return(_0x86a647=(_0x380cba=(_0x27e306=this[_0x28ee00(0x33f)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x380cba[_0x28ee00(0x376)](_0x27e306,_0x393795))!=null?_0x86a647:_0x393795;}[_0x95d569(0x282)](_0x55975a){const _0x248d77=_0x95d569;var _0x37cae6,_0x571a05;if(this[_0x248d77(0x258)]===x[_0x248d77(0x26f)]){const {unitID:_0x128638,mutations:_0x5d10e4,memberID:_0x4042d0}=_0x55975a,_0x4e363c=_0x5d10e4[0x0][_0x248d77(0x315)][_0x248d77(0x2f5)];Array[_0x248d77(0x3c9)](_0x4e363c)&&_0x4e363c[_0x248d77(0x259)]>0x0&&((_0x571a05=(_0x37cae6=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x571a05[_0x248d77(0x376)](_0x37cae6,{'unitID':_0x128638,'memberID':_0x4042d0,'textRanges':_0x4e363c}));}}['_updateLocalCache'](){const _0x345ae7=_0x95d569;this[_0x345ae7(0x342)][_0x345ae7(0x205)](this[_0x345ae7(0x422)],this[_0x345ae7(0x258)],this[_0x345ae7(0x3ab)],this['_pendingMutations']);}[_0x95d569(0x27d)](){const _0x4b6e2f=_0x95d569;return this[_0x4b6e2f(0x2ff)][_0x4b6e2f(0x270)](this[_0x4b6e2f(0x422)]);}[_0x95d569(0x20d)](){const _0x5dbb46=_0x95d569;this[_0x5dbb46(0x2ff)][_0x5dbb46(0x232)](this['unitID']);}[_0x95d569(0x478)](_0x29ebc0){const _0x41cfc7=_0x95d569;var _0x2f7bfa;const _0x50d1bc=this[_0x41cfc7(0x309)](_0x29ebc0),_0x4b5b96=_0x272391(_0x50d1bc[_0x41cfc7(0x22b)],this[_0x41cfc7(0x27e)],{'fromCollab':!0x0});if(!_0x4b5b96[_0x41cfc7(0x3ad)])throw _0x4b5b96[_0x41cfc7(0x2c3)]instanceof Error?_0x4b5b96[_0x41cfc7(0x2c3)]:new Error((_0x2f7bfa=_0x4b5b96[_0x41cfc7(0x2c3)])!=null?_0x2f7bfa:'[CollaborationState]:\x20apply\x20error!');this[_0x41cfc7(0x319)](_0x50d1bc),this[_0x41cfc7(0x227)](_0x29ebc0),this[_0x41cfc7(0x369)](_0x50d1bc),this['_syncEditingCollabCursor'](_0x50d1bc),this[_0x41cfc7(0x20d)]();}}let ye=class extends he{constructor(_0x34efd1,_0x510904,_0x5f2721,_0x69a896,_0x1c09fe,_0x548178,_0x153b41,_0x3b19d6,_0x4fd2d2,_0x5a2755){const _0xe30252=_0x95d569;super(_0x34efd1,_0x510904,null,[],_0x5f2721,_0x3b19d6,_0x153b41,_0x69a896,_0x1c09fe),_(this,_0xe30252(0x2f8),_0xe30252(0x1ce)),(this[_0xe30252(0x418)]=_0x548178,this[_0xe30252(0x40c)]=_0x4fd2d2,this[_0xe30252(0x36f)]=_0x5a2755);}['appendMutation'](_0x45684e){const _0x3930b2=_0x95d569,_0x4cc3e8=this['_injector'][_0x3930b2(0x455)](G,this[_0x3930b2(0x422)],this[_0x3930b2(0x258)],[_0x45684e],this['_handler']);return _0x4cc3e8[_0x3930b2(0x2d0)](),_0x4cc3e8['_updateLocalCache'](),_0x4cc3e8;}[_0x95d569(0x365)](_0x193abd){const _0x1e3837=_0x95d569;if(this[_0x1e3837(0x36c)](_0x193abd))return this['_injector'][_0x1e3837(0x455)](K,this['unitID'],this[_0x1e3837(0x258)],null,[],null,[_0x193abd],this[_0x1e3837(0x33f)]);try{const _0xf4e96c=this['_transformService'][_0x1e3837(0x2da)](_0x193abd,[er]);if(_0x5ceeea(_0xf4e96c)){const {c1Prime:_0x307657}=_0xf4e96c;return this[_0x1e3837(0x478)](_0x307657),this;}throw _0xf4e96c[_0x1e3837(0x2c3)];}catch(_0xc63b44){return this[_0x1e3837(0x40c)][_0x1e3837(0x2c3)](_0xc63b44),this[_0x1e3837(0x4c8)](!0x1);}}[_0x95d569(0x4c8)](_0x535078){const _0x4e547c=_0x95d569;return this[_0x4e547c(0x418)][_0x4e547c(0x455)](Z,this[_0x4e547c(0x422)],this[_0x4e547c(0x258)],null,[],this[_0x4e547c(0x33f)],_0x535078);}[_0x95d569(0x233)](){const _0x23e325=_0x95d569;throw new Error(_0x23e325(0x229));}[_0x95d569(0x34c)](){const _0x2e1255=_0x95d569;throw new Error(_0x2e1255(0x3a2));}[_0x95d569(0x43e)](){const _0x23bcc2=_0x95d569;return this['_injector'][_0x23bcc2(0x455)](Q,this['unitID'],this[_0x23bcc2(0x258)],null,[],this[_0x23bcc2(0x33f)]);}['toggleOnline'](){return this;}[_0x95d569(0x385)](){const _0x4eef43=_0x95d569;throw new Error(_0x4eef43(0x3ca));}};ye=ce([f(0x3,_0x5e8fa6(_0xd83bbc)),f(0x4,_0x5e8fa6(D)),f(0x5,_0x5e8fa6(_0x1eb3c6)),f(0x6,_0x2ea03b),f(0x7,_0x27e3f2),f(0x8,_0x71acc2),f(0x9,_0x229179)],ye);let G=class extends he{constructor(_0x4656c9,_0x14ee69,_0x208441,_0x375407,_0x28feac,_0x3acd58,_0x2c72b0,_0x32c5f9,_0x436d2c,_0x293049,_0x175f92,_0x4afdcd,_0x319927,_0x595b06){const _0x4b3538=_0x95d569;super(_0x4656c9,_0x14ee69,null,_0x208441,_0x375407,_0x293049,_0x595b06,_0x3acd58,_0x2c72b0),_(this,_0x4b3538(0x2f8),_0x4b3538(0x264)),_(this,'_scheduleTimestamp',null),_(this,_0x4b3538(0x286),null),(this[_0x4b3538(0x418)]=_0x28feac,this[_0x4b3538(0x1c6)]=_0x32c5f9,this['_logService']=_0x436d2c,this['_configService']=_0x175f92,this[_0x4b3538(0x36f)]=_0x4afdcd,this['_univerInstanceService']=_0x319927);}[_0x95d569(0x1be)](_0x1ecbd9){const _0x36c582=_0x95d569;return this['_pendingMutations'][_0x36c582(0x1fa)](_0x1ecbd9),this[_0x36c582(0x398)](),this;}[_0x95d569(0x365)](_0x1539c6){const _0x2e46e2=_0x95d569;if(this[_0x2e46e2(0x36c)](_0x1539c6))return this['_clearScheduledTask'](),this[_0x2e46e2(0x418)][_0x2e46e2(0x455)](K,this[_0x2e46e2(0x422)],this['type'],null,this['_pendingMutations'],null,[_0x1539c6],this[_0x2e46e2(0x33f)]);try{const _0x5a4af3=this[_0x2e46e2(0x36f)][_0x2e46e2(0x2da)](_0x1539c6,this['_pendingMutations']);if(_0x5ceeea(_0x5a4af3)){const {c1Prime:_0x1991b0,m2Prime:_0x320b86}=_0x5a4af3;this[_0x2e46e2(0x478)](_0x1991b0);const _0x37a7f3=this['_injector'][_0x2e46e2(0x455)](G,this[_0x2e46e2(0x422)],this[_0x2e46e2(0x258)],_0x320b86,this[_0x2e46e2(0x33f)]);return this['_clearScheduledTask'](),_0x37a7f3['_schedule'](this[_0x2e46e2(0x343)]?Math[_0x2e46e2(0x252)](0x0,new Date()[_0x2e46e2(0x347)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x37a7f3;}throw _0x5a4af3[_0x2e46e2(0x2c3)];}catch(_0xd34780){return this['_logService']['error'](_0xd34780),this['_onConflict'](!0x1);}}[_0x95d569(0x233)](){const _0x349508=_0x95d569;throw new Error(_0x349508(0x2db));}[_0x95d569(0x34c)](){const _0x20525b=_0x95d569;throw new Error(_0x20525b(0x2cc));}[_0x95d569(0x43e)](){const _0xe84e0f=_0x95d569;return this[_0xe84e0f(0x4e1)](),this[_0xe84e0f(0x418)][_0xe84e0f(0x455)](Q,this['unitID'],this[_0xe84e0f(0x258)],null,this['_pendingMutations'],this[_0xe84e0f(0x33f)]);}[_0x95d569(0x2b9)](){return this;}[_0x95d569(0x2d0)](_0x4ae2f0){const _0x5098b8=_0x95d569;_0x4ae2f0=_0x4ae2f0!=null?_0x4ae2f0:this['_getSendChangesetTimeout'](),this[_0x5098b8(0x343)]=new Date()[_0x5098b8(0x347)](),this[_0x5098b8(0x286)]=setTimeout(()=>{const _0x4bd4ed=_0x5098b8;this[_0x4bd4ed(0x4e1)]();let _0x207dde=null;switch(this[_0x4bd4ed(0x258)]){case x[_0x4bd4ed(0x214)]:{_0x207dde=rs(this[_0x4bd4ed(0x28d)],this[_0x4bd4ed(0x422)],this['_univerInstanceService'],this['_revisionService'],this[_0x4bd4ed(0x1c6)]);break;}case x[_0x4bd4ed(0x26f)]:{this[_0x4bd4ed(0x28d)][_0x4bd4ed(0x4d6)](_0x1c0e98=>_0x1c0e98['id']===_0x38d6b6['id'])?_0x207dde=Qn(this[_0x4bd4ed(0x28d)],this[_0x4bd4ed(0x422)],this[_0x4bd4ed(0x247)],this['_revisionService'],this[_0x4bd4ed(0x1c6)]):_0x207dde=rs(this[_0x4bd4ed(0x28d)],this[_0x4bd4ed(0x422)],this[_0x4bd4ed(0x247)],this[_0x4bd4ed(0x2ff)],this[_0x4bd4ed(0x1c6)]);break;}default:throw new Error(_0x4bd4ed(0x276)+this['type']+_0x4bd4ed(0x237));}const {changeset:_0x21b29b,pendingMutations:_0x445892}=_0x207dde;this[_0x4bd4ed(0x33f)]['onSendChangeset'](_0x21b29b);const _0x3db034=_0x445892[_0x4bd4ed(0x259)]?this[_0x4bd4ed(0x418)][_0x4bd4ed(0x455)](Y,this[_0x4bd4ed(0x422)],this[_0x4bd4ed(0x258)],_0x21b29b,_0x445892,this[_0x4bd4ed(0x33f)]):this[_0x4bd4ed(0x418)][_0x4bd4ed(0x455)](q,this[_0x4bd4ed(0x422)],this['type'],_0x21b29b,this['_handler']);_0x3db034['_updateLocalCache'](),this['_handler'][_0x4bd4ed(0x4e5)](this,_0x3db034);},_0x4ae2f0);}[_0x95d569(0x2d4)](){const _0x29db6c=_0x95d569;var _0x5e544f;return(_0x5e544f=this[_0x29db6c(0x4e7)][_0x29db6c(0x3bb)](hn))!=null?_0x5e544f:_n;}['resend'](){const _0x9536f1=_0x95d569;throw new Error(_0x9536f1(0x1e2));}[_0x95d569(0x4e1)](){const _0x2b80ac=_0x95d569;this[_0x2b80ac(0x286)]!=null&&(clearTimeout(this[_0x2b80ac(0x286)]),this[_0x2b80ac(0x286)]=null);}[_0x95d569(0x4c8)](_0x3963fc){const _0x2990e4=_0x95d569;return this[_0x2990e4(0x4e1)](),this[_0x2990e4(0x418)][_0x2990e4(0x455)](Z,this['unitID'],this[_0x2990e4(0x258)],null,this[_0x2990e4(0x28d)],this['_handler'],_0x3963fc);}};G=ce([f(0x4,_0x5e8fa6(_0x1eb3c6)),f(0x5,_0x5e8fa6(_0xd83bbc)),f(0x6,_0x5e8fa6(D)),f(0x7,_0x5e8fa6(ne)),f(0x8,_0x71acc2),f(0x9,_0x27e3f2),f(0xa,_0x3e2b80),f(0xb,_0x229179),f(0xc,_0x4ef500),f(0xd,_0x2ea03b)],G);let q=class extends he{constructor(_0x24bfe4,_0x376b2d,_0x2340da,_0x16dd05,_0x9e88ad,_0x42ae00,_0xa43f92,_0x116d7c,_0x3eab48,_0x13ddcf,_0xf96606){const _0xbf06d5=_0x95d569;super(_0x24bfe4,_0x376b2d,_0x2340da,[],_0x16dd05,_0x116d7c,_0xf96606,_0x42ae00,_0xa43f92),_(this,_0xbf06d5(0x2f8),'awaiting'),(this[_0xbf06d5(0x418)]=_0x9e88ad,this[_0xbf06d5(0x40c)]=_0x3eab48,this['_transformService']=_0x13ddcf);}['appendMutation'](_0x4ba9ad){const _0x3dc725=_0x95d569,_0x594df9=this['_injector'][_0x3dc725(0x455)](Y,this[_0x3dc725(0x422)],this[_0x3dc725(0x258)],this[_0x3dc725(0x3ab)],[_0x4ba9ad],this[_0x3dc725(0x33f)]);return _0x594df9[_0x3dc725(0x398)](),_0x594df9;}[_0x95d569(0x365)](_0x7e839){const _0x52c494=_0x95d569;if(this[_0x52c494(0x36c)](_0x7e839))return this[_0x52c494(0x418)][_0x52c494(0x455)](K,this[_0x52c494(0x422)],this[_0x52c494(0x258)],this['_awaitingChangeset'],[],null,[_0x7e839],this[_0x52c494(0x33f)]);try{const _0x6e79c1=this['_transformService'][_0x52c494(0x226)]([_0x7e839],[this['_awaitingChangeset']],!0x1);if(_0x539e96(_0x6e79c1)){const {c1Prime:_0x302ee4,c2Prime:_0x5fc417}=_0x6e79c1;this[_0x52c494(0x478)](_0x302ee4[0x0]),_0x5fc417[0x0][_0x52c494(0x49b)]=this['_getCurrentRevision']();const _0x969ced=this[_0x52c494(0x418)][_0x52c494(0x455)](q,this[_0x52c494(0x422)],this[_0x52c494(0x258)],_0x5fc417[0x0],this[_0x52c494(0x33f)]);return _0x969ced['_updateLocalCache'](),_0x969ced;}return this[_0x52c494(0x4c8)](!0x1);}catch(_0xe03e5f){return this[_0x52c494(0x40c)][_0x52c494(0x2c3)](_0xe03e5f),this[_0x52c494(0x4c8)](!0x1);}}[_0x95d569(0x233)](_0x33bf8f){const _0x1ae6b2=_0x95d569,_0x244f46=this[_0x1ae6b2(0x2ff)]['getCurrentRevForDocument'](this[_0x1ae6b2(0x422)]);if(_0x33bf8f[_0x1ae6b2(0x217)]<_0x244f46-0x1)return this;if(this[_0x1ae6b2(0x36c)](_0x33bf8f))return this['_injector'][_0x1ae6b2(0x455)](K,this[_0x1ae6b2(0x422)],this[_0x1ae6b2(0x258)],null,[],this[_0x1ae6b2(0x3ab)],[],this[_0x1ae6b2(0x33f)]);this[_0x1ae6b2(0x20d)]();const _0x347b6a=this[_0x1ae6b2(0x418)]['createInstance'](ye,this[_0x1ae6b2(0x422)],this[_0x1ae6b2(0x258)],this[_0x1ae6b2(0x33f)]);return _0x347b6a[_0x1ae6b2(0x398)](),_0x347b6a;}[_0x95d569(0x34c)](_0x29d5a6){const _0x480c2e=_0x95d569;return this[_0x480c2e(0x4c8)](!!(_0x29d5a6!=null&&_0x29d5a6[_0x480c2e(0x287)]));}[_0x95d569(0x43e)](){const _0x45c84d=_0x95d569;return this[_0x45c84d(0x418)]['createInstance'](Q,this[_0x45c84d(0x422)],this[_0x45c84d(0x258)],this[_0x45c84d(0x3ab)],[],this[_0x45c84d(0x33f)]);}[_0x95d569(0x2b9)](){return this;}[_0x95d569(0x385)](){const _0x3042e1=_0x95d569;this[_0x3042e1(0x33f)][_0x3042e1(0x2b3)](this[_0x3042e1(0x3ab)]);}[_0x95d569(0x4c8)](_0x3eaef8){const _0x36fb17=_0x95d569;return this[_0x36fb17(0x418)]['createInstance'](Z,this[_0x36fb17(0x422)],this['type'],this[_0x36fb17(0x3ab)],[],this[_0x36fb17(0x33f)],_0x3eaef8);}};q=ce([f(0x4,_0x5e8fa6(_0x1eb3c6)),f(0x5,_0x5e8fa6(_0xd83bbc)),f(0x6,_0x5e8fa6(D)),f(0x7,_0x27e3f2),f(0x8,_0x71acc2),f(0x9,_0x229179),f(0xa,_0x2ea03b)],q);let Y=class extends he{constructor(_0x5959bb,_0xddf7f4,_0x62902a,_0x58ac87,_0x400979,_0x3a68d4,_0x4e00ae,_0x533d94,_0x540464,_0x575389,_0x3a6f12,_0x2ff5be){const _0x30fbe3=_0x95d569;super(_0x5959bb,_0xddf7f4,_0x62902a,_0x58ac87,_0x400979,_0x540464,_0x2ff5be,_0x4e00ae,_0x533d94),_(this,'status','awaiting_with_pending'),(this[_0x30fbe3(0x418)]=_0x3a68d4,this[_0x30fbe3(0x40c)]=_0x575389,this['_transformService']=_0x3a6f12);}[_0x95d569(0x1be)](_0xcc998f){const _0x3ee784=_0x95d569;return this[_0x3ee784(0x28d)][_0x3ee784(0x1fa)](_0xcc998f),this;}[_0x95d569(0x365)](_0x28ce5e){const _0x12f1dd=_0x95d569;if(this['_checkMissing'](_0x28ce5e))return this[_0x12f1dd(0x418)][_0x12f1dd(0x455)](K,this['unitID'],this['type'],this[_0x12f1dd(0x3ab)],this[_0x12f1dd(0x28d)],null,[_0x28ce5e],this[_0x12f1dd(0x33f)]);try{const _0x543fe7=this[_0x12f1dd(0x36f)][_0x12f1dd(0x226)]([_0x28ce5e],[this[_0x12f1dd(0x3ab)]],!0x1);if(_0x539e96(_0x543fe7)){const {c1Prime:_0x14f6f8,c2Prime:_0x2bead2}=_0x543fe7,_0xe89a28=this[_0x12f1dd(0x36f)]['transformMutationsWithChangeset'](_0x14f6f8[0x0],this['_pendingMutations']);if(_0x5ceeea(_0xe89a28)){const {c1Prime:_0xf9bec5,m2Prime:_0x3d1083}=_0xe89a28;return this[_0x12f1dd(0x478)](_0xf9bec5),_0x2bead2[0x0][_0x12f1dd(0x49b)]=this[_0x12f1dd(0x27d)](),this[_0x12f1dd(0x418)][_0x12f1dd(0x455)](Y,this[_0x12f1dd(0x422)],this['type'],_0x2bead2[0x0],_0x3d1083,this['_handler']);}throw _0xe89a28['error'];}throw _0x543fe7[_0x12f1dd(0x2c3)];}catch(_0x17877b){return this['_logService'][_0x12f1dd(0x2c3)](_0x17877b),this[_0x12f1dd(0x4c8)](!0x1);}}['onRemoteAck'](_0x1ce3eb){const _0x57e257=_0x95d569;if(this[_0x57e257(0x36c)](_0x1ce3eb))return this[_0x57e257(0x418)][_0x57e257(0x455)](K,this[_0x57e257(0x422)],this[_0x57e257(0x258)],null,this['_pendingMutations'],this[_0x57e257(0x3ab)],[],this[_0x57e257(0x33f)]);this[_0x57e257(0x20d)]();const _0x9866d8=this[_0x57e257(0x418)]['createInstance'](G,this[_0x57e257(0x422)],this[_0x57e257(0x258)],this[_0x57e257(0x28d)],this[_0x57e257(0x33f)]);return _0x9866d8[_0x57e257(0x2d0)](),_0x9866d8[_0x57e257(0x398)](),_0x9866d8;}['onRemoteRej'](_0x1c644a){const _0x549b1e=_0x95d569;return this[_0x549b1e(0x4c8)](!!(_0x1c644a!=null&&_0x1c644a[_0x549b1e(0x287)]));}[_0x95d569(0x43e)](){const _0x1919f9=_0x95d569;return this[_0x1919f9(0x418)]['createInstance'](Q,this['unitID'],this[_0x1919f9(0x258)],this[_0x1919f9(0x3ab)],this[_0x1919f9(0x28d)],this[_0x1919f9(0x33f)]);}[_0x95d569(0x2b9)](){return this;}[_0x95d569(0x385)](){const _0x24bff2=_0x95d569;this[_0x24bff2(0x33f)][_0x24bff2(0x2b3)](this[_0x24bff2(0x3ab)]);}[_0x95d569(0x4c8)](_0x49388a){const _0x1fcb9f=_0x95d569;return this[_0x1fcb9f(0x418)][_0x1fcb9f(0x455)](Z,this['unitID'],this['type'],null,this[_0x1fcb9f(0x28d)],this[_0x1fcb9f(0x33f)],_0x49388a);}};Y=ce([f(0x5,_0x5e8fa6(_0x1eb3c6)),f(0x6,_0x5e8fa6(_0xd83bbc)),f(0x7,_0x5e8fa6(D)),f(0x8,_0x27e3f2),f(0x9,_0x71acc2),f(0xa,_0x229179),f(0xb,_0x2ea03b)],Y);let Z=class extends he{constructor(_0x4f1933,_0x43241a,_0x11452e,_0x301634,_0x28975a,_0x43b49a=!0x1,_0x1126f8,_0x1bf9c6,_0x2add29,_0x590b29,_0x51c2ab,_0x391536,_0x4d1842){const _0x2231d6=_0x95d569;super(_0x4f1933,_0x43241a,_0x11452e,_0x301634,_0x28975a,_0x1bf9c6,_0x2add29,_0x51c2ab,_0x590b29),_(this,_0x2231d6(0x2f8),_0x2231d6(0x207)),(this['_isPermissionRej']=_0x43b49a,this[_0x2231d6(0x49e)]=_0x1126f8,this['_localeService']=_0x391536,this[_0x2231d6(0x316)]=_0x4d1842,this['_showConflictNotification'](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x95d569(0x1be)](){return this;}[_0x95d569(0x365)](){return this;}[_0x95d569(0x233)](){return this;}[_0x95d569(0x34c)](){return this;}[_0x95d569(0x43e)](){return this;}[_0x95d569(0x2b9)](){return this;}[_0x95d569(0x385)](){const _0x5a640a=_0x95d569;throw new Error(_0x5a640a(0x434));}[_0x95d569(0x514)](){const _0x586b16=_0x95d569;this[_0x586b16(0x342)][_0x586b16(0x205)](this[_0x586b16(0x422)],this[_0x586b16(0x258)],null,[]);}[_0x95d569(0x4c9)](){const _0x5c28d9=_0x95d569;this[_0x5c28d9(0x2e6)]?this[_0x5c28d9(0x316)][_0x5c28d9(0x2c1)]({'title':this['_localeService']['t'](_0x5c28d9(0x4da)),'content':this[_0x5c28d9(0x387)]['t'](_0x5c28d9(0x3d3)),'type':_0x5c28d9(0x2c3),'duration':0x0}):this['_notificationService'][_0x5c28d9(0x2c1)]({'title':this[_0x5c28d9(0x387)]['t']('conflict.title'),'content':this[_0x5c28d9(0x387)]['t'](_0x5c28d9(0x464)),'type':_0x5c28d9(0x2c3),'duration':0x0});}['_disableEditing'](){const _0x30ee7c=_0x95d569;this[_0x30ee7c(0x49e)]['updatePermissionPoint'](new _0x3fd1e9(this[_0x30ee7c(0x422)])['id'],!0x1);}};Z=ce([f(0x6,_0x5e8fa6(_0x8d48d)),f(0x7,_0x27e3f2),f(0x8,_0x2ea03b),f(0x9,_0x5e8fa6(D)),f(0xa,_0x5e8fa6(_0xd83bbc)),f(0xb,_0x5e8fa6(_0x1dc83a)),f(0xc,_0x47d30c)],Z);let Q=class extends he{constructor(_0x379a19,_0x2d24d2,_0x564ce2,_0xd8520d,_0x318bb2,_0x4d7b57,_0x5d2231,_0x163e9a,_0x5364b7,_0x197077){const _0x3b1b4d=_0x95d569;super(_0x379a19,_0x2d24d2,_0x564ce2,_0xd8520d,_0x318bb2,_0x5364b7,_0x197077,_0x5d2231,_0x163e9a),_(this,'status',_0x3b1b4d(0x235)),this[_0x3b1b4d(0x418)]=_0x4d7b57;}[_0x95d569(0x1be)](_0x43e915){const _0x26c945=_0x95d569;return this[_0x26c945(0x28d)]['push'](_0x43e915),this['_updateLocalCache'](),this;}[_0x95d569(0x365)](_0x14248a){const _0x481b9c=_0x95d569;throw new Error(_0x481b9c(0x47e));}[_0x95d569(0x233)](){const _0x159342=_0x95d569;throw new Error(_0x159342(0x353));}['onRemoteRej'](){const _0x30f54d=_0x95d569;throw new Error(_0x30f54d(0x30b));}[_0x95d569(0x43e)](){return this;}[_0x95d569(0x2b9)](){const _0x3a1c21=_0x95d569,{_injector:_0x213032,_pendingMutations:_0x3b6428,_awaitingChangeset:_0x3fcb28,unitID:_0xaaf4b4,_handler:_0xbad142,type:_0x3f54ec}=this,_0x4f1507=Us(_0x213032,_0xaaf4b4,_0x3f54ec,_0x3fcb28,_0x3b6428,_0xbad142);return _0x4f1507 instanceof G?_0x4f1507[_0x3a1c21(0x2d0)]():(_0x4f1507 instanceof Y||_0x4f1507 instanceof q)&&_0x4f1507[_0x3a1c21(0x385)](),_0x4f1507;}[_0x95d569(0x385)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Q=ce([f(0x5,_0x5e8fa6(_0x1eb3c6)),f(0x6,_0x5e8fa6(_0xd83bbc)),f(0x7,_0x5e8fa6(D)),f(0x8,_0x27e3f2),f(0x9,_0x2ea03b)],Q);let K=class extends he{constructor(_0x3775a6,_0x47410c,_0x4c84b1,_0x3f0da5,_0x3f4999,_0x38526a,_0x1f2f97,_0xa911c6,_0x5d1604,_0x2c318a,_0x456363,_0x3896cb,_0x3fbfac,_0x56228e){const _0x4401a6=_0x95d569;super(_0x3775a6,_0x47410c,_0x4c84b1,_0x3f0da5,_0x1f2f97,_0x3896cb,_0x3fbfac,_0x5d1604,_0x2c318a),_(this,'status',_0x4401a6(0x423)),(this[_0x4401a6(0x2c2)]=_0x3f4999,this[_0x4401a6(0x1f3)]=_0x38526a,this[_0x4401a6(0x418)]=_0xa911c6,this[_0x4401a6(0x40c)]=_0x456363,this[_0x4401a6(0x36f)]=_0x56228e);}[_0x95d569(0x456)](_0x31c8e6){const _0x5aedc4=_0x95d569;try{const _0x369c10=[..._0x31c8e6,...this['_queuedRemoteChangesets']],_0x24b46b=[this[_0x5aedc4(0x3ab)]||this['_acknowledgedAwaitingChangeset']][_0x5aedc4(0x1df)](_0x52a4c5=>!!_0x52a4c5);let _0x3834ad,_0x4ceb17;if(_0x24b46b[_0x5aedc4(0x259)]){const _0x34ec45=this[_0x5aedc4(0x36f)][_0x5aedc4(0x226)](_0x369c10,_0x24b46b,!0x1);if(!_0x539e96(_0x34ec45))throw _0x34ec45[_0x5aedc4(0x2c3)];_0x3834ad=_0x34ec45['c1Prime'],_0x4ceb17=_0x34ec45[_0x5aedc4(0x450)];}else _0x3834ad=_0x369c10,_0x4ceb17=[];let _0x526fac=this[_0x5aedc4(0x28d)];_0x3834ad[_0x5aedc4(0x43b)](_0x4e4169=>{const _0x36ea78=_0x5aedc4;let _0x40d798;if(_0x526fac['length']){const _0x2ce300=this[_0x36ea78(0x36f)][_0x36ea78(0x2da)](_0x4e4169,_0x526fac);if(!_0x5ceeea(_0x2ce300))throw _0x2ce300[_0x36ea78(0x2c3)];_0x40d798=_0x2ce300[_0x36ea78(0x469)],_0x526fac=_0x2ce300['m2Prime'];}else _0x40d798=_0x4e4169;this[_0x36ea78(0x478)](_0x40d798);}),this[_0x5aedc4(0x2c2)]&&this[_0x5aedc4(0x20d)](),this[_0x5aedc4(0x3ab)]&&_0x4ceb17['length']&&(_0x4ceb17[0x0][_0x5aedc4(0x49b)]=this[_0x5aedc4(0x27d)]());let _0xad58cb;if(this[_0x5aedc4(0x3ab)]&&_0x526fac[_0x5aedc4(0x259)]!==0x0)_0xad58cb=this['_injector']['createInstance'](Y,this['unitID'],this['type'],_0x4ceb17[0x0],_0x526fac,this[_0x5aedc4(0x33f)]);else{if(this[_0x5aedc4(0x3ab)]&&_0x526fac[_0x5aedc4(0x259)]===0x0)_0x4ceb17[0x0][_0x5aedc4(0x49b)]=this[_0x5aedc4(0x27d)](),_0xad58cb=this[_0x5aedc4(0x418)][_0x5aedc4(0x455)](q,this[_0x5aedc4(0x422)],this[_0x5aedc4(0x258)],_0x4ceb17[0x0],this['_handler']);else{if(_0x526fac[_0x5aedc4(0x259)]!==0x0){const _0x281e01=this[_0x5aedc4(0x418)][_0x5aedc4(0x455)](G,this[_0x5aedc4(0x422)],this[_0x5aedc4(0x258)],_0x526fac,this['_handler']);_0x281e01[_0x5aedc4(0x2d0)](),_0xad58cb=_0x281e01;}else _0xad58cb=this[_0x5aedc4(0x418)]['createInstance'](ye,this[_0x5aedc4(0x422)],this[_0x5aedc4(0x258)],this[_0x5aedc4(0x33f)]);}}return _0xad58cb[_0x5aedc4(0x398)](),_0xad58cb;}catch(_0x13273b){return this['_logService'][_0x5aedc4(0x2c3)](_0x5aedc4(0x4e8),_0x5aedc4(0x38a),_0x13273b),this[_0x5aedc4(0x418)][_0x5aedc4(0x455)](Z,this['unitID'],this[_0x5aedc4(0x258)],this[_0x5aedc4(0x3ab)],this[_0x5aedc4(0x28d)],this[_0x5aedc4(0x33f)],!0x1);}}[_0x95d569(0x385)](){const _0x43684f=_0x95d569;throw new Error(_0x43684f(0x29f));}['appendMutation'](_0x2c2a9e){const _0x4bc1ba=_0x95d569;return this[_0x4bc1ba(0x28d)][_0x4bc1ba(0x1fa)](_0x2c2a9e),this;}[_0x95d569(0x365)](_0x573a21){const _0x1f1a54=_0x95d569;return this[_0x1f1a54(0x1f3)][_0x1f1a54(0x1fa)](_0x573a21),this;}[_0x95d569(0x233)](_0x56eab3){const _0x54b30a=_0x95d569;if(this[_0x54b30a(0x3ab)])return this[_0x54b30a(0x2c2)]=this[_0x54b30a(0x3ab)],this[_0x54b30a(0x3ab)]=null,this;throw new Error(_0x54b30a(0x4ea));}[_0x95d569(0x34c)](_0x35b945){const _0xa66b4b=_0x95d569;return this[_0xa66b4b(0x4c8)](!!(_0x35b945!=null&&_0x35b945[_0xa66b4b(0x287)]));}[_0x95d569(0x43e)](){const _0x134ac8=_0x95d569;return this['_injector'][_0x134ac8(0x455)](Q,this[_0x134ac8(0x422)],this[_0x134ac8(0x258)],this[_0x134ac8(0x3ab)],this[_0x134ac8(0x28d)],this[_0x134ac8(0x33f)]);}[_0x95d569(0x2b9)](){return this;}['_onConflict'](_0x4b1339){const _0xb59533=_0x95d569;return this[_0xb59533(0x418)][_0xb59533(0x455)](Z,this[_0xb59533(0x422)],this[_0xb59533(0x258)],this[_0xb59533(0x3ab)],this[_0xb59533(0x28d)],this[_0xb59533(0x33f)],_0x4b1339);}};K=ce([f(0x7,_0x5e8fa6(_0x1eb3c6)),f(0x8,_0x5e8fa6(_0xd83bbc)),f(0x9,_0x5e8fa6(D)),f(0xa,_0x71acc2),f(0xb,_0x27e3f2),f(0xc,_0x2ea03b),f(0xd,_0x229179)],K);function Us(_0x369dbc,_0x453f27,_0x2f2ac0,_0x2e6161,_0x49bc2d,_0x2ff702){const _0x26d065=_0x95d569;return _0x2e6161&&_0x49bc2d[_0x26d065(0x259)]?_0x369dbc[_0x26d065(0x455)](Y,_0x453f27,_0x2f2ac0,_0x2e6161,_0x49bc2d,_0x2ff702):_0x2e6161?_0x369dbc[_0x26d065(0x455)](q,_0x453f27,_0x2f2ac0,_0x2e6161,_0x2ff702):_0x49bc2d[_0x26d065(0x259)]?_0x369dbc[_0x26d065(0x455)](G,_0x453f27,_0x2f2ac0,_0x49bc2d,_0x2ff702):_0x369dbc[_0x26d065(0x455)](ye,_0x453f27,_0x2f2ac0,_0x2ff702);}var ir=Object[_0x95d569(0x515)],nr=Object[_0x95d569(0x201)],st=(_0x3c2067,_0x47f4bd,_0x529913,_0x107910)=>{const _0xab742c=_0x95d569;for(var _0x154fbd=_0x107910>0x1?void 0x0:_0x107910?nr(_0x47f4bd,_0x529913):_0x47f4bd,_0x47e96f=_0x3c2067[_0xab742c(0x259)]-0x1,_0x1e94c2;_0x47e96f>=0x0;_0x47e96f--)(_0x1e94c2=_0x3c2067[_0x47e96f])&&(_0x154fbd=(_0x107910?_0x1e94c2(_0x47f4bd,_0x529913,_0x154fbd):_0x1e94c2(_0x154fbd))||_0x154fbd);return _0x107910&&_0x154fbd&&ir(_0x47f4bd,_0x529913,_0x154fbd),_0x154fbd;},p=(_0x28c820,_0xd1e854)=>(_0x31d31c,_0x41787b)=>_0xd1e854(_0x31d31c,_0x41787b,_0x28c820);let Me=class extends _0x24c298{constructor(_0x15910a,_0x2b790c,_0x5470bd){const _0x2f5150=_0x95d569;super(),_(this,'_entities',new Map()),_(this,_0x2f5150(0x421),new _0x5c132d()),(this[_0x2f5150(0x418)]=_0x15910a,this[_0x2f5150(0x22a)]=_0x2b790c,this['_univerInstanceService']=_0x5470bd,this[_0x2f5150(0x2b0)]());}['dispose'](){const _0x5c736c=_0x95d569;super['dispose'](),this[_0x5c736c(0x4fa)]['forEach'](_0x3d4b7b=>_0x3d4b7b[_0x5c736c(0x3eb)]()),this[_0x5c736c(0x4fa)][_0x5c736c(0x344)]();}['getCollabEntity'](_0x2ffadf){var _0x183201;return(_0x183201=this['_entities']['get'](_0x2ffadf))!=null?_0x183201:null;}[_0x95d569(0x4df)](_0x1fd891){const _0x51cdca=_0x95d569,_0x3a3afb=this[_0x51cdca(0x4e4)](_0x1fd891);return _0x3a3afb?_0x32607c(_0x3a3afb):this['_entityInit$'][_0x51cdca(0x350)](_0x3510ec(_0x2ecc04=>_0x2ecc04[_0x51cdca(0x422)]===_0x1fd891));}[_0x95d569(0x2b0)](){const _0x1414d0=_0x95d569;this['_univerInstanceService'][_0x1414d0(0x45b)](_0xe799c1['UNIVER_SHEET'])[_0x1414d0(0x350)](_0x22e1ca(this[_0x1414d0(0x467)]),_0x33eb0c(0x10))[_0x1414d0(0x2e2)](async _0x1b8582=>{const _0xeb4d09=_0x1414d0,_0x18c752=_0x1b8582[_0xeb4d09(0x2a3)](),_0x22e6bb=await this[_0xeb4d09(0x494)](_0x18c752,x[_0xeb4d09(0x214)]);this[_0xeb4d09(0x4fa)][_0xeb4d09(0x4b4)](_0x18c752,_0x22e6bb);}),this['_univerInstanceService'][_0x1414d0(0x45b)](_0xe799c1['UNIVER_DOC'])[_0x1414d0(0x350)](_0x22e1ca(this[_0x1414d0(0x467)]),_0x33eb0c(0x10))[_0x1414d0(0x350)](_0x3510ec(_0x4a4c52=>!_0x4a4c52['getUnitId']()[_0x1414d0(0x497)]('__')))[_0x1414d0(0x2e2)](async _0x5238f9=>{const _0x1a40ca=_0x1414d0,_0x3bbac2=_0x5238f9[_0x1a40ca(0x2a3)](),_0xf601ad=await this[_0x1a40ca(0x494)](_0x3bbac2,x['UNIVER_DOC']);this['_entities'][_0x1a40ca(0x4b4)](_0x3bbac2,_0xf601ad);}),_0x5eefa8(this[_0x1414d0(0x247)][_0x1414d0(0x46d)](_0xe799c1[_0x1414d0(0x214)]),this['_univerInstanceService'][_0x1414d0(0x46d)](_0xe799c1[_0x1414d0(0x26f)]))[_0x1414d0(0x350)](_0x22e1ca(this[_0x1414d0(0x467)]))[_0x1414d0(0x2e2)](_0x110880=>{const _0x576d73=_0x1414d0,_0x40413b=_0x110880['getUnitId'](),_0x5474b3=this[_0x576d73(0x4fa)][_0x576d73(0x348)](_0x40413b);_0x5474b3&&(_0x5474b3[_0x576d73(0x3eb)](),this[_0x576d73(0x4fa)][_0x576d73(0x26d)](_0x40413b));});}async[_0x95d569(0x494)](_0x271e12,_0x2fbcb1){const _0x5c2eb1=_0x95d569,_0xd76705=await this[_0x5c2eb1(0x22a)]['requireSession'](_0x271e12),_0x3ee884=this['_injector'][_0x5c2eb1(0x455)](this[_0x5c2eb1(0x20a)](_0x2fbcb1),_0x271e12,_0x2fbcb1,_0xd76705);return await _0x3ee884[_0x5c2eb1(0x390)](),this[_0x5c2eb1(0x421)][_0x5c2eb1(0x3fb)](_0x3ee884),_0x3ee884;}['_getCtorByUniverType'](_0x1915a0){const _0x57abb9=_0x95d569;switch(_0x1915a0){case x[_0x57abb9(0x26f)]:return It;case x['UNIVER_SHEET']:return Et;default:throw new Error(_0x57abb9(0x356)+_0x1915a0);}}};Me=st([_0x5c6f39(_0x34adae['Starting'],Me),p(0x0,_0x5e8fa6(_0x1eb3c6)),p(0x1,_0x5e8fa6(pe)),p(0x2,_0x4ef500)],Me);let Ze=class extends _0x24c298{constructor(_0x656401,_0x3b52d7,_0xc62567,_0x4d565c,_0x44f4ed,_0x357b8e,_0x534a80,_0xb12c06,_0x3f3ce8,_0x303cbc,_0x1719fc,_0x4900fa,_0x329aeb){const _0x41183c=_0x95d569;super(),_(this,_0x41183c(0x4c1),new _0x2c389c(null)),_(this,'state$',this[_0x41183c(0x4c1)]['asObservable']()),_(this,_0x41183c(0x466)),_(this,_0x41183c(0x388),!0x1),_(this,_0x41183c(0x26a),this[_0x41183c(0x1f8)][_0x41183c(0x350)](_0x244108(_0x4642cb=>_0x4642cb?_0x4642cb[_0x41183c(0x2f8)]:P[_0x41183c(0x375)]),_0x8a728f(0x1))),_(this,_0x41183c(0x4d4),!0x1),_(this,_0x41183c(0x425),[]),(this['unitID']=_0x656401,this[_0x41183c(0x216)]=_0x3b52d7,this[_0x41183c(0x35c)]=_0xc62567,this['_injector']=_0x4d565c,this['_localCacheService']=_0x44f4ed,this[_0x41183c(0x3e5)]=_0x357b8e,this[_0x41183c(0x387)]=_0x534a80,this['_revisionService']=_0xb12c06,this[_0x41183c(0x40c)]=_0x3f3ce8,this['_commandService']=_0x303cbc,this[_0x41183c(0x290)]=_0x1719fc,this['_permissionService']=_0x4900fa,this[_0x41183c(0x3c1)]=_0x329aeb);}get[_0x95d569(0x432)](){const _0x54b9b7=_0x95d569;return this[_0x54b9b7(0x466)];}async[_0x95d569(0x390)](){const _0x4cadf6=_0x95d569;if(this[_0x4cadf6(0x432)])throw new Error(_0x4cadf6(0x2fe));await this['_init']();}[_0x95d569(0x1fb)](){const _0x2f927c=_0x95d569;return this[_0x2f927c(0x388)]=!0x0,_0xb470e0(()=>{const _0x495137=_0x2f927c;this[_0x495137(0x388)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x95d569(0x34e)](_0x31494d){const _0xe76ec7=_0x95d569;this[_0xe76ec7(0x466)]=_0x31494d,this[_0xe76ec7(0x4c1)][_0xe76ec7(0x3fb)](_0x31494d);}async[_0x95d569(0x2b0)](){const _0x59a2aa=_0x95d569;var _0x1030af;return this[_0x59a2aa(0x34e)](await this[_0x59a2aa(0x3c7)]()),this[_0x59a2aa(0x3c1)]&&((_0x1030af=this[_0x59a2aa(0x3c1)])==null||_0x1030af[_0x59a2aa(0x40b)](this[_0x59a2aa(0x422)]),this[_0x59a2aa(0x288)](_0xb470e0(this[_0x59a2aa(0x3c1)][_0x59a2aa(0x4f4)](this['unitID'])[_0x59a2aa(0x2e2)](_0x106200=>{const _0x1a15f7=_0x59a2aa;this[_0x1a15f7(0x40c)][_0x1a15f7(0x493)](_0x1a15f7(0x1dc),_0x1a15f7(0x4eb),_0x106200),_0x106200===As[_0x1a15f7(0x3aa)]?(this[_0x1a15f7(0x290)][_0x1a15f7(0x2c1)]({'content':this[_0x1a15f7(0x387)]['t']('collaboration.single-unit.warning'),'type':_0x3a56fd[_0x1a15f7(0x4a9)]}),this[_0x1a15f7(0x49e)][_0x1a15f7(0x23a)](new _0x3fd1e9(this[_0x1a15f7(0x422)])['id'],!0x1)):this[_0x1a15f7(0x49e)][_0x1a15f7(0x23a)](new _0x3fd1e9(this[_0x1a15f7(0x422)])['id'],!0x0);})))),this[_0x59a2aa(0x288)](_0xb470e0(this[_0x59a2aa(0x35c)][_0x59a2aa(0x330)][_0x59a2aa(0x2e2)](_0xe2bb0d=>{const _0x255da8=_0x59a2aa;_0xe2bb0d===fe['ONLINE']?this['_toggleOnline']():_0xe2bb0d===fe['OFFLINE']&&this[_0x255da8(0x305)]();}))),this[_0x59a2aa(0x288)](_0xb470e0(this['_session'][_0x59a2aa(0x3af)][_0x59a2aa(0x2e2)](_0x24b50d=>{const _0x78daf2=_0x59a2aa;try{switch(_0x24b50d['eventID']){case _0x47d699[_0x78daf2(0x4f1)]:{this['_onRemoteChangeset'](_0x173822(_0x24b50d['data']));break;}case _0x47d699[_0x78daf2(0x4a1)]:{this[_0x78daf2(0x4ad)](_0x24b50d[_0x78daf2(0x406)]);break;}case _0x47d699[_0x78daf2(0x4a0)]:{this[_0x78daf2(0x2bd)]();break;}case _0x47d699[_0x78daf2(0x2d9)]:{this[_0x78daf2(0x488)](_0x24b50d[_0x78daf2(0x406)][_0x78daf2(0x457)]['map'](_0x2b7c7d=>_0x173822(_0x2b7c7d)));break;}case _0x47d699[_0x78daf2(0x364)]:this[_0x78daf2(0x2bd)]({'isPermissionRej':!0x0});}}catch(_0x58db47){throw console[_0x78daf2(0x2c3)](_0x78daf2(0x3d6),_0x58db47),_0x58db47;}}))),this[_0x59a2aa(0x466)];}[_0x95d569(0x2f6)](){const _0x1c4b7c=_0x95d569;this[_0x1c4b7c(0x4d4)]=!0x1;}[_0x95d569(0x426)](){const _0x131d17=_0x95d569;if(this[_0x131d17(0x4d4)])throw new Error(_0x131d17(0x30a));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x4fa8c9){const _0x22900e=_0x95d569;this[_0x22900e(0x426)](),this[_0x22900e(0x34e)](this['_state'][_0x22900e(0x1be)](_0x4fa8c9)),this[_0x22900e(0x2f6)]();}[_0x95d569(0x470)](_0x5c2823){const _0x675eb7=_0x95d569;if(!(_0x5c2823['revision']<=this[_0x675eb7(0x2ff)]['getCurrentRevForDocument'](this['unitID']))){if(this[_0x675eb7(0x388)]){this[_0x675eb7(0x425)]['push'](_0x5c2823);return;}this['_applyRemoteChangeset'](_0x5c2823);}}[_0x95d569(0x21d)](){const _0x3d7227=_0x95d569;this[_0x3d7227(0x425)]['forEach'](_0x4e64c0=>this[_0x3d7227(0x50f)](_0x4e64c0)),this['_remoteChangesetQueue']=[];}[_0x95d569(0x50f)](_0x1bac2c){const _0x24d45f=_0x95d569,_0xb39ca2=this['_compressMutationService'][_0x24d45f(0x1da)][_0x24d45f(0x2ed)](this[_0x24d45f(0x3e5)]['interceptor'][_0x24d45f(0x420)]()[_0x24d45f(0x3e2)])(_0x1bac2c[_0x24d45f(0x22b)],null)||_0x1bac2c[_0x24d45f(0x22b)],_0x28ed2a={..._0x1bac2c,'mutations':_0xb39ca2};this[_0x24d45f(0x426)](),this[_0x24d45f(0x34e)](this[_0x24d45f(0x466)][_0x24d45f(0x365)](_0x28ed2a)),this['_unlockTransition']();}[_0x95d569(0x4ad)](_0x5ebe5a){const _0x210b98=_0x95d569;this[_0x210b98(0x426)](),this['_updateState'](this[_0x210b98(0x466)][_0x210b98(0x233)](_0x5ebe5a)),this[_0x210b98(0x2f6)]();}['_onRemoteRejected'](_0x3b6bf2){const _0x3a9aa8=_0x95d569;this[_0x3a9aa8(0x426)](),this['_updateState'](this['_state']['onRemoteRej'](_0x3b6bf2)),this['_unlockTransition']();}[_0x95d569(0x488)](_0x3816f6){const _0x760cd8=_0x95d569;if(!(this[_0x760cd8(0x466)]instanceof K))throw new TypeError(_0x760cd8(0x3b0));const _0x300d9c=_0x3816f6[_0x760cd8(0x3cb)](_0x2bd75a=>{const _0x637dd2=_0x760cd8,_0xb91d25=this['_compressMutationService'][_0x637dd2(0x1da)][_0x637dd2(0x2ed)](this[_0x637dd2(0x3e5)][_0x637dd2(0x1da)][_0x637dd2(0x420)]()[_0x637dd2(0x3e2)])(_0x2bd75a[_0x637dd2(0x22b)],null)||_0x2bd75a['mutations'];return{..._0x2bd75a,'mutations':_0xb91d25};});this['_lockTransition'](),this[_0x760cd8(0x34e)](this[_0x760cd8(0x466)][_0x760cd8(0x456)](_0x300d9c)),this[_0x760cd8(0x2f6)]();}[_0x95d569(0x305)](){const _0x3f90e2=_0x95d569;this['_lockTransition'](),this['_updateState'](this['_state'][_0x3f90e2(0x43e)]()),this[_0x3f90e2(0x2f6)]();}['_toggleOnline'](){const _0x5777d3=_0x95d569;this[_0x5777d3(0x426)](),this[_0x5777d3(0x34e)](this['_state'][_0x5777d3(0x2b9)]()),this[_0x5777d3(0x2f6)]();}async[_0x95d569(0x3c7)](){return new Promise(_0x27ba5d=>{const _0x4649dc=_0x163c;this[_0x4649dc(0x35c)][_0x4649dc(0x330)]['pipe'](_0x15282b(0x1))['subscribe'](async _0x38b72c=>{const _0x196b7e=_0x4649dc;_0x27ba5d(await this['_createInitialStateImpl'](_0x38b72c===fe[_0x196b7e(0x281)]));});});}[_0x95d569(0x47a)](){const _0xa73f6c=_0x95d569,_0x3b7dec=this[_0xa73f6c(0x422)];return{'onStateChange':(_0x576690,_0x22421c)=>{const _0x128916=_0xa73f6c;if(_0x576690!==this['_state'])throw new Error(_0x128916(0x34b)+_0x576690[_0x128916(0x2f8)]+_0x128916(0x1c8)+_0x22421c[_0x128916(0x2f8)]+_0x128916(0x1c2)+this[_0x128916(0x466)][_0x128916(0x2f8)]);this['_updateState'](_0x22421c);},'onSendChangeset':_0x49af12=>{const _0x43c6ca=_0xa73f6c,_0x530cc7={'eventID':_0x47d699['SUBMIT_CHANGESET'],'data':{'unitID':_0x49af12[_0x43c6ca(0x422)],'unitType':this[_0x43c6ca(0x216)],'changeset':_0x49af12,'memberID':this[_0x43c6ca(0x35c)][_0x43c6ca(0x2b6)]()}};this[_0x43c6ca(0x35c)][_0x43c6ca(0x446)](_0x530cc7,this[_0x43c6ca(0x422)]);},'onMissingChangesets':({from:_0x4bd7e0,to:_0x6ea15c})=>{const _0xbd7484=_0xa73f6c;this[_0xbd7484(0x40c)][_0xbd7484(0x493)](_0xbd7484(0x1dc),_0xbd7484(0x2ee)+_0x4bd7e0+_0xbd7484(0x223)+_0x6ea15c);const _0x1a1521={'eventID':_0x47d699[_0xbd7484(0x359)],'data':{'unitID':_0x3b7dec,'unitType':this[_0xbd7484(0x216)],'from':_0x4bd7e0,'to':_0x6ea15c}};this['_session'][_0xbd7484(0x446)](_0x1a1521,this[_0xbd7484(0x422)]);}};}async[_0x95d569(0x317)](_0x45f3e4){const _0xfd1b93=_0x95d569;var _0x4b9c46,_0x469131;const _0x367724=await this[_0xfd1b93(0x342)]['loadOfflineData'](this[_0xfd1b93(0x422)]),_0x260f6d=(_0x4b9c46=_0x367724==null?void 0x0:_0x367724[_0xfd1b93(0x22b)])!=null?_0x4b9c46:[],_0x11c910=(_0x469131=_0x367724==null?void 0x0:_0x367724[_0xfd1b93(0x4ae)])!=null?_0x469131:null,_0x3347f2=this[_0xfd1b93(0x422)];try{this[_0xfd1b93(0x2d5)](_0x11c910,_0x260f6d);}catch(_0x318af5){this[_0xfd1b93(0x40c)]['error'](_0x318af5);}const _0x1fea67=this[_0xfd1b93(0x47a)]();if(_0x45f3e4){const _0x180898=Us(this['_injector'],_0x3347f2,this[_0xfd1b93(0x216)],_0x11c910,_0x260f6d,_0x1fea67);return _0x180898 instanceof G?_0x180898[_0xfd1b93(0x2d0)]():(_0x180898 instanceof Y||_0x180898 instanceof q)&&_0x180898[_0xfd1b93(0x385)](),_0x180898;}return this['_injector'][_0xfd1b93(0x455)](Q,_0x3347f2,this['_type'],_0x11c910,_0x260f6d,_0x1fea67);}[_0x95d569(0x2d5)](_0x5ae110,_0x42dc4){const _0x187c38=_0x95d569;var _0x4ea578,_0x63ed4c;const _0x6c4644=this['_compressMutationService']['interceptor'][_0x187c38(0x2ed)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x187c38(0x3e2)]);(_0x4ea578=_0x6c4644((_0x5ae110==null?void 0x0:_0x5ae110[_0x187c38(0x22b)])||[],null))==null||_0x4ea578[_0x187c38(0x43b)](_0x3144cb=>this[_0x187c38(0x27e)][_0x187c38(0x32f)](_0x3144cb['id'],_0x3144cb['params'])),(_0x63ed4c=_0x6c4644(_0x42dc4||[],null))==null||_0x63ed4c[_0x187c38(0x43b)](_0xb683b9=>this[_0x187c38(0x27e)][_0x187c38(0x32f)](_0xb683b9['id'],_0xb683b9['params']));}};Ze=st([p(0x3,_0x5e8fa6(_0x1eb3c6)),p(0x4,_0x5e8fa6(D)),p(0x5,_0x5e8fa6(_0x3a340b)),p(0x6,_0x5e8fa6(_0x1dc83a)),p(0x7,_0x5e8fa6(_0xd83bbc)),p(0x8,_0x71acc2),p(0x9,_0x27e3f2),p(0xa,_0x514d5b),p(0xb,_0x8d48d),p(0xc,_0x1116fd(tt))],Ze);let It=class extends Ze{constructor(_0x208fe7,_0x203f06,_0x127c30,_0x553edf,_0x1c5e15,_0x5f3d6d,_0x3de97f,_0x3b1d57,_0xdce80f,_0x3f8445,_0x1e3328,_0xedb1eb,_0x2dddbe,_0x210e2a,_0x2a4392,_0x171d1b,_0x1b405d){const _0xd08017=_0x95d569;super(_0x208fe7,_0x203f06,_0x127c30,_0x553edf,_0x1c5e15,_0x5f3d6d,_0x3de97f,_0x3b1d57,_0x2dddbe,_0x210e2a,_0x2a4392,_0x171d1b,_0x1b405d),this[_0xd08017(0x422)]=_0x208fe7,this[_0xd08017(0x258)]=_0x203f06,this['session']=_0x127c30,this[_0xd08017(0x3f1)]=_0xdce80f,this['_docTransformIMECacheService']=_0x3f8445,this[_0xd08017(0x4bb)]=_0x1e3328,this[_0xd08017(0x3c6)]=_0xedb1eb;}[_0x95d569(0x47a)](){const _0x143af2=_0x95d569,_0x2957ef=super[_0x143af2(0x47a)]();return _0x2957ef[_0x143af2(0x3dc)]=_0x532af4=>this['_docTransformIMECacheService'][_0x143af2(0x362)](_0x532af4),_0x2957ef[_0x143af2(0x4cd)]=_0x4545fb=>this[_0x143af2(0x4bb)][_0x143af2(0x20b)](_0x4545fb),_0x2957ef[_0x143af2(0x208)]=_0x27fe99=>this[_0x143af2(0x3c6)][_0x143af2(0x1bf)](_0x27fe99),_0x2957ef['onTransformRemoteChangesetByIMECache']=_0x4041ff=>this[_0x143af2(0x39f)][_0x143af2(0x24b)](_0x4041ff),_0x2957ef;}async[_0x95d569(0x2b0)](){const _0x3c06c3=_0x95d569,_0xf1a11f=await super['_init']();return this[_0x3c06c3(0x288)](this[_0x3c06c3(0x27e)][_0x3c06c3(0x220)]((_0x2aa52d,_0x48dadb)=>{const _0x5e07d=_0x3c06c3;if(_0x2aa52d[_0x5e07d(0x258)]!==_0x1cc735[_0x5e07d(0x1e6)]||_0x48dadb!=null&&_0x48dadb[_0x5e07d(0x41d)]||_0x48dadb!=null&&_0x48dadb[_0x5e07d(0x336)])return;const _0x1bfffa=_0x2aa52d['params'];if((_0x1bfffa==null?void 0x0:_0x1bfffa[_0x5e07d(0x489)])!==this[_0x5e07d(0x422)])return;let _0x407214=_0x2aa52d;if(_0x407214['id']===_0x38d6b6['id']){const _0x3c978a=_0x407214['params'];_0x407214={'id':_0x38d6b6['id'],'type':_0x1cc735['MUTATION'],'params':{'unitId':_0x3c978a[_0x5e07d(0x489)],'actions':_0x3c978a[_0x5e07d(0x42a)],'textRanges':null}};}const _0x28e5e4=this[_0x5e07d(0x3e5)][_0x5e07d(0x1da)][_0x5e07d(0x2ed)](this[_0x5e07d(0x3e5)][_0x5e07d(0x1da)][_0x5e07d(0x420)]()[_0x5e07d(0x391)])([_0x407214],null)||[_0x407214];this[_0x5e07d(0x33b)](_0x28e5e4[0x0]);})),_0xf1a11f;}};It=st([p(0x3,_0x5e8fa6(_0x1eb3c6)),p(0x4,_0x5e8fa6(D)),p(0x5,_0x5e8fa6(_0x3a340b)),p(0x6,_0x5e8fa6(_0x1dc83a)),p(0x7,_0x5e8fa6(_0xd83bbc)),p(0x8,_0x5e8fa6(_0xb758de)),p(0x9,_0x5e8fa6(Je)),p(0xa,_0x5e8fa6(ze)),p(0xb,_0x5e8fa6(jt)),p(0xc,_0x71acc2),p(0xd,_0x27e3f2),p(0xe,_0x514d5b),p(0xf,_0x8d48d),p(0x10,_0x1116fd(tt))],It);let Et=class extends Ze{constructor(_0x93940d,_0x4e5c6b,_0x534001,_0x25732e,_0x1888f5,_0x1a58f4,_0x8e79f2,_0x551693,_0x21500b,_0x1e861f,_0x57100d,_0x4409f3,_0x13b94b,_0x42a66d){const _0x50cc21=_0x95d569;super(_0x93940d,_0x4e5c6b,_0x534001,_0x25732e,_0x1888f5,_0x1a58f4,_0x8e79f2,_0x551693,_0x1e861f,_0x57100d,_0x4409f3,_0x13b94b,_0x42a66d),this[_0x50cc21(0x422)]=_0x93940d,this[_0x50cc21(0x258)]=_0x4e5c6b,this[_0x50cc21(0x2f0)]=_0x534001,this[_0x50cc21(0x45a)]=_0x21500b;}['_createHandler'](){const _0x4ff08e=_0x95d569,_0x103c88=super[_0x4ff08e(0x47a)]();return _0x103c88[_0x4ff08e(0x4cd)]=_0x20f537=>this['_sheetTransformSelectionsService'][_0x4ff08e(0x20b)](_0x20f537),_0x103c88;}async[_0x95d569(0x2b0)](){const _0x6dedef=_0x95d569,_0x68ab7e=await super[_0x6dedef(0x2b0)]();return this[_0x6dedef(0x288)](this[_0x6dedef(0x27e)][_0x6dedef(0x220)]((_0x2f7ae4,_0x543a9a)=>{const _0x59d113=_0x6dedef;if(_0x2f7ae4['type']!==_0x1cc735[_0x59d113(0x1e6)]||_0x543a9a!=null&&_0x543a9a[_0x59d113(0x41d)]||_0x543a9a!=null&&_0x543a9a['onlyLocal'])return;const _0x10ebfb=_0x2f7ae4[_0x59d113(0x315)];if((_0x10ebfb==null?void 0x0:_0x10ebfb[_0x59d113(0x489)])!==this[_0x59d113(0x422)])return;const _0x49b804=_0x2f7ae4,_0x38efcc=this[_0x59d113(0x3e5)]['interceptor'][_0x59d113(0x2ed)](this[_0x59d113(0x3e5)][_0x59d113(0x1da)][_0x59d113(0x420)]()[_0x59d113(0x391)])([_0x49b804],null)||[_0x49b804];this[_0x59d113(0x33b)](_0x38efcc[0x0]);})),_0x68ab7e;}};Et=st([p(0x3,_0x5e8fa6(_0x1eb3c6)),p(0x4,_0x5e8fa6(D)),p(0x5,_0x5e8fa6(_0x3a340b)),p(0x6,_0x5e8fa6(_0x1dc83a)),p(0x7,_0x5e8fa6(_0xd83bbc)),p(0x8,_0x5e8fa6(qe)),p(0x9,_0x71acc2),p(0xa,_0x27e3f2),p(0xb,_0x514d5b),p(0xc,_0x8d48d),p(0xd,_0x1116fd(tt))],Et);const os=[_0x95d569(0x24d),'jiqing500','verdancy600',_0x95d569(0x465),_0x95d569(0x2aa),_0x95d569(0x394)];class xt extends _0x413d3d{constructor(){const _0x53a266=_0x95d569;super(...arguments),_(this,_0x53a266(0x30f),new Map()),_(this,_0x53a266(0x24f),0x0);}[_0x95d569(0x257)](_0x1c5366){const _0x291774=_0x95d569;if(this[_0x291774(0x30f)]['has'](_0x1c5366))return this['_assignedColors'][_0x291774(0x348)](_0x1c5366);const _0x203c21=os[this[_0x291774(0x24f)]];return this[_0x291774(0x24f)]=(this['_colorIndex']+0x1)%os['length'],this[_0x291774(0x30f)]['set'](_0x1c5366,_0x203c21),_0x203c21;}}var rr=Object[_0x95d569(0x515)],or=Object[_0x95d569(0x201)],ar=(_0x137108,_0x48fc45,_0x18ea42,_0x3dbf3c)=>{const _0x41c95e=_0x95d569;for(var _0xbc7177=_0x3dbf3c>0x1?void 0x0:_0x3dbf3c?or(_0x48fc45,_0x18ea42):_0x48fc45,_0x3559fb=_0x137108[_0x41c95e(0x259)]-0x1,_0xc71e6f;_0x3559fb>=0x0;_0x3559fb--)(_0xc71e6f=_0x137108[_0x3559fb])&&(_0xbc7177=(_0x3dbf3c?_0xc71e6f(_0x48fc45,_0x18ea42,_0xbc7177):_0xc71e6f(_0xbc7177))||_0xbc7177);return _0x3dbf3c&&_0xbc7177&&rr(_0x48fc45,_0x18ea42,_0xbc7177),_0xbc7177;},le=(_0x4e1acc,_0x3e2dd9)=>(_0x592415,_0x356131)=>_0x3e2dd9(_0x592415,_0x356131,_0x4e1acc);const cr=0x12c,hr=0x64,_r=()=>{let _0x30e959=[],_0x4f8e01=!0x1;return _0x171e19=>{const _0x126f8b=_0x163c;_0x30e959[_0x126f8b(0x1fa)](_0x171e19),_0x4f8e01||(_0x4f8e01=!0x0,setTimeout(()=>{_0x30e959['forEach'](_0x25ba84=>_0x25ba84()),_0x30e959=[],_0x4f8e01=!0x1;}));};};let Ct=class extends _0x24c298{constructor(_0x149df1,_0x338f50,_0x2c9e4f,_0x376f28,_0x5038ea,_0x1703c1,_0x4b652e,_0x21ca79){const _0x20ba44=_0x95d569;super(),_(this,_0x20ba44(0x496),!0x1),_(this,_0x20ba44(0x2b0),!0x1),_(this,'_cursorInfo$',new _0x2c389c(new Map())),_(this,'cursorInfo$',this[_0x20ba44(0x504)][_0x20ba44(0x4a7)]()),_(this,_0x20ba44(0x45d),new _0x2c389c([])),_(this,'roomMembers$',this[_0x20ba44(0x45d)][_0x20ba44(0x350)](_0xbd8aa0(cr))),_(this,'_updateLocalCursor',_0x4e0e0c((_0x157138,_0x5d6027)=>{const _0x4b5d6b=_0x20ba44,_0xebe955={'eventID':_0x47d699['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x4b5d6b(0x35c)][_0x4b5d6b(0x2b6)](),'selection':_0x265771(_0x157138,_0x5d6027['range'])}};this[_0x4b5d6b(0x35c)][_0x4b5d6b(0x446)](_0xebe955,this[_0x4b5d6b(0x422)]);},hr)),(this['unitID']=_0x149df1,this[_0x20ba44(0x35c)]=_0x338f50,this[_0x20ba44(0x418)]=_0x2c9e4f,this['_colorAssignService']=_0x376f28,this[_0x20ba44(0x1c6)]=_0x5038ea,this[_0x20ba44(0x247)]=_0x1703c1,this[_0x20ba44(0x27e)]=_0x4b652e,this[_0x20ba44(0x4b5)]=_0x21ca79);}get[_0x95d569(0x31f)](){const _0x940096=_0x95d569;return this[_0x940096(0x504)][_0x940096(0x366)]();}get[_0x95d569(0x4fb)](){const _0x30367e=_0x95d569;return this[_0x30367e(0x45d)][_0x30367e(0x366)]();}[_0x95d569(0x3eb)](){const _0x2d4cf7=_0x95d569;super[_0x2d4cf7(0x3eb)](),this[_0x2d4cf7(0x504)]['next'](new Map()),this[_0x2d4cf7(0x504)][_0x2d4cf7(0x35d)](),this[_0x2d4cf7(0x45d)][_0x2d4cf7(0x3fb)]([]),this[_0x2d4cf7(0x45d)]['complete']();}[_0x95d569(0x390)](){const _0x3caf96=_0x95d569;this['_init']||(this[_0x3caf96(0x2b0)]=!0x0,this[_0x3caf96(0x35c)][_0x3caf96(0x330)]['pipe'](_0x22e1ca(this[_0x3caf96(0x467)]))[_0x3caf96(0x2e2)](_0x2e260c=>{const _0x230545=_0x3caf96;_0x2e260c===fe[_0x230545(0x281)]?this['_toggleOnline']():this[_0x230545(0x305)]();}),this[_0x3caf96(0x35c)][_0x3caf96(0x3af)][_0x3caf96(0x350)](_0x22e1ca(this[_0x3caf96(0x467)]))['subscribe'](_0x3e51f6=>{const _0x1cb4cb=_0x3caf96,_0x1b40f3=_0x3e51f6[_0x1cb4cb(0x407)];_0x1b40f3===_0x47d699[_0x1cb4cb(0x251)]&&this[_0x1cb4cb(0x4f5)](_0x3e51f6),_0x1b40f3===_0x47d699[_0x1cb4cb(0x204)]&&this[_0x1cb4cb(0x44a)](_0x3e51f6);}),this[_0x3caf96(0x238)](),this[_0x3caf96(0x288)](this[_0x3caf96(0x27e)][_0x3caf96(0x220)](_0x50e03e=>{const _0x4cc458=_0x3caf96;if(this[_0x4cc458(0x496)]&&_0x50e03e['id']===_0x2115a5['id']&&_0x50e03e[_0x4cc458(0x315)][_0x4cc458(0x489)]===this[_0x4cc458(0x422)]){const _0x338332=_0x50e03e[_0x4cc458(0x315)];this[_0x4cc458(0x246)](_0x338332['subUnitId'],_0x338332[_0x4cc458(0x318)][0x0]);}})));}['_onCursorUpdate'](_0x435137){const _0x2d59f7=_0x95d569;var _0x179f19,_0x519a43;const {memberID:_0x295b22,selection:_0x5cd679}=_0x435137[_0x2d59f7(0x406)],{sheetName:_0x41a9b6,range:_0x904fb1}=_0x34c69e(_0x5cd679),_0x42c32b={'name':(_0x519a43=(_0x179f19=this['_memberService']['getMember'](this[_0x2d59f7(0x422)],_0x295b22))==null?void 0x0:_0x179f19[_0x2d59f7(0x272)])!=null?_0x519a43:'Unknown\x20user','range':this['_getMergeRange'](_0x41a9b6,_0x904fb1),'sheetID':_0x41a9b6,'color':this[_0x2d59f7(0x2b4)][_0x2d59f7(0x257)](_0x295b22),'selection':_0x5cd679},_0x1c2f2d=this[_0x2d59f7(0x31f)];_0x1c2f2d[_0x2d59f7(0x4b4)](_0x295b22,_0x42c32b),this[_0x2d59f7(0x504)][_0x2d59f7(0x3fb)](_0x1c2f2d);}[_0x95d569(0x44a)](_0x17e92e){const _0x46c62b=_0x95d569,{memberID:_0xcbf349}=_0x17e92e[_0x46c62b(0x406)],_0x54fee3=this[_0x46c62b(0x31f)];_0x54fee3[_0x46c62b(0x26d)](_0xcbf349),this['_cursorInfo$'][_0x46c62b(0x3fb)](_0x54fee3);}[_0x95d569(0x49d)](_0x50f457,_0x3f1631){const _0x99b88f=_0x95d569;var _0x9253d0,_0x42c192;const _0xa94f75=(_0x42c192=(_0x9253d0=this[_0x99b88f(0x247)][_0x99b88f(0x452)](this['unitID']))==null?void 0x0:_0x9253d0[_0x99b88f(0x241)](_0x50f457))==null?void 0x0:_0x42c192['getMergeData']();return(_0xa94f75==null?void 0x0:_0xa94f75['find'](_0x555d83=>_0x2aeff5[_0x99b88f(0x345)](_0x555d83,_0x3f1631)))||_0x3f1631;}['_onRefRangeChange'](){const _0x188bbf=_0x95d569,_0x2e9707=new _0x47aeff(),_0x56e56a=_r(),_0x1819e9=()=>{const _0xd70ec1=_0x163c;_0x2e9707[_0xd70ec1(0x3eb)]();const _0x3f06a9=(_0x704195,_0x3a284a,_0x44daa1,_0x3820da)=>{const _0x1353bb=_0xd70ec1;let _0x43bae5=[];switch(_0x704195['id']){case _0x1e9e9d[_0x1353bb(0x28c)]:{_0x43bae5=_0x2b5c00(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x4f6)]:{_0x43bae5=_0x4f2846(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x37b)]:{_0x43bae5=_0x221462(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x1f5)]:{_0x43bae5=_0x5c3a1b(_0x704195,_0x3820da);break;}case _0x1e9e9d['InsertRangeMoveRightCommandId']:{_0x43bae5=_0x2e1c46(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x339)]:{_0x43bae5=_0x507bf2(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x4e9)]:{_0x43bae5=_0x5b26e1(_0x704195,_0x3820da);break;}case _0x1e9e9d['RemoveColCommandId']:{_0x43bae5=_0x3ed5f0(_0x704195,_0x3820da);break;}case _0x1e9e9d[_0x1353bb(0x293)]:{_0x43bae5=_0x47c1cb(_0x704195,_0x3820da);break;}}const _0x1f5bd1=_0x1e8112(_0x43bae5,_0x3820da),_0x351db6=this[_0x1353bb(0x31f)][_0x1353bb(0x348)](_0x3a284a);if(_0x351db6&&_0x1f5bd1){const _0x5a8c7f={..._0x351db6,'range':_0x1f5bd1};this[_0x1353bb(0x31f)]['set'](_0x3a284a,_0x5a8c7f),_0x56e56a(()=>{const _0x1391d4=_0x1353bb,_0x5d1307=this[_0x1391d4(0x4b5)][_0x1391d4(0x477)](_0x1f5bd1,_0x54a180=>(_0x5d1307[_0x1391d4(0x3eb)](),_0x3f06a9(_0x54a180,_0x3a284a,_0x44daa1,_0x1f5bd1)));_0x2e9707[_0x1391d4(0x1fe)](_0x5d1307);});}return{'redos':[],'undos':[]};};this[_0xd70ec1(0x31f)]['forEach']((_0x24570e,_0x4b253b)=>{const _0x507b0d=_0xd70ec1,{range:_0x537808,sheetID:_0xad4ea}=_0x24570e,_0x3aec6c=this['_refRangeService']['registerRefRange'](_0x537808,_0x534414=>(_0x3aec6c['dispose'](),_0x3f06a9(_0x534414,_0x4b253b,_0xad4ea,_0x537808)));_0x2e9707[_0x507b0d(0x1fe)](_0x3aec6c);});};this[_0x188bbf(0x288)](_0xb470e0(this['_cursorInfo$']['subscribe'](()=>{_0x1819e9();})));}[_0x95d569(0x410)](){const _0x2cc1fe=_0x95d569;var _0x41f722,_0x10aa07;if(this['_online']=!0x0,((_0x41f722=this[_0x2cc1fe(0x247)]['getFocusedUnit']())==null?void 0x0:_0x41f722[_0x2cc1fe(0x2a3)]())!==this[_0x2cc1fe(0x422)])return;const _0x4a1383=(_0x10aa07=this[_0x2cc1fe(0x418)][_0x2cc1fe(0x348)](_0x530c0c)['getCurrentSelections']())==null?void 0x0:_0x10aa07[0x0],_0x1466a9=this[_0x2cc1fe(0x247)][_0x2cc1fe(0x4e3)](_0xe799c1[_0x2cc1fe(0x214)])[_0x2cc1fe(0x2c8)]();_0x4a1383&&_0x1466a9&&this[_0x2cc1fe(0x246)](_0x1466a9['getSheetId'](),_0x4a1383);}[_0x95d569(0x305)](){const _0x1995ca=_0x95d569;this[_0x1995ca(0x496)]=!0x1;}};Ct=ar([le(0x2,_0x5e8fa6(_0x1eb3c6)),le(0x3,_0x5e8fa6(xt)),le(0x4,_0x5e8fa6(ne)),le(0x5,_0x4ef500),le(0x6,_0x27e3f2),le(0x7,_0x5e8fa6(_0x2c38e5))],Ct);var lr=Object['defineProperty'],ur=Object[_0x95d569(0x201)],dr=(_0x25be17,_0xa3669a,_0x147750,_0x5acfca)=>{const _0x831e1e=_0x95d569;for(var _0x89a71=_0x5acfca>0x1?void 0x0:_0x5acfca?ur(_0xa3669a,_0x147750):_0xa3669a,_0x29e908=_0x25be17[_0x831e1e(0x259)]-0x1,_0x1ef489;_0x29e908>=0x0;_0x29e908--)(_0x1ef489=_0x25be17[_0x29e908])&&(_0x89a71=(_0x5acfca?_0x1ef489(_0xa3669a,_0x147750,_0x89a71):_0x1ef489(_0x89a71))||_0x89a71);return _0x5acfca&&_0x89a71&&lr(_0xa3669a,_0x147750,_0x89a71),_0x89a71;},te=(_0x204441,_0x465c1a)=>(_0x5c3fc9,_0x3609fd)=>_0x465c1a(_0x5c3fc9,_0x3609fd,_0x204441);const mr=0x12c,fr=0x64;let bt=class extends _0x24c298{constructor(_0x5a0e6d,_0x36ddb5,_0x9c7b79,_0x3732e3,_0x39ac08,_0x4db80b,_0x43072b,_0x4f92c4,_0x4b936d){const _0xbd12d4=_0x95d569;super(),_(this,'_online',!0x1),_(this,_0xbd12d4(0x2b0),!0x1),_(this,_0xbd12d4(0x504),new _0x2c389c(new Map())),_(this,_0xbd12d4(0x2e7),this[_0xbd12d4(0x504)][_0xbd12d4(0x4a7)]()),_(this,'_roomMembers$',new _0x2c389c([])),_(this,_0xbd12d4(0x38f),this['_roomMembers$'][_0xbd12d4(0x350)](_0xbd8aa0(mr))),_(this,_0xbd12d4(0x246),_0x4e0e0c(_0x4ccfc4=>{const _0x36ee29=_0xbd12d4,_0x5d2b21={'eventID':_0x47d699[_0x36ee29(0x251)],'data':{'unitID':this[_0x36ee29(0x422)],'memberID':this['_session'][_0x36ee29(0x2b6)](),'selection':ys(_0x4ccfc4)}};this[_0x36ee29(0x35c)]['send'](_0x5d2b21,this[_0x36ee29(0x422)]);},fr)),(this['unitID']=_0x5a0e6d,this['_session']=_0x36ddb5,this[_0xbd12d4(0x418)]=_0x9c7b79,this[_0xbd12d4(0x2b4)]=_0x3732e3,this[_0xbd12d4(0x1c6)]=_0x39ac08,this[_0xbd12d4(0x358)]=_0x4db80b,this[_0xbd12d4(0x36f)]=_0x43072b,this['_univerInstanceService']=_0x4f92c4,this[_0xbd12d4(0x27e)]=_0x4b936d);}get[_0x95d569(0x31f)](){const _0x2ceeec=_0x95d569;return this[_0x2ceeec(0x504)][_0x2ceeec(0x366)]();}get['roomMembers'](){const _0x127a47=_0x95d569;return this['_roomMembers$'][_0x127a47(0x366)]();}['dispose'](){const _0x100a7b=_0x95d569;super[_0x100a7b(0x3eb)](),this['_cursorInfo$']['next'](new Map()),this[_0x100a7b(0x504)]['complete'](),this[_0x100a7b(0x45d)][_0x100a7b(0x3fb)]([]),this[_0x100a7b(0x45d)][_0x100a7b(0x35d)]();}[_0x95d569(0x390)](){const _0x5d63f8=_0x95d569;this[_0x5d63f8(0x2b0)]||(this[_0x5d63f8(0x2b0)]=!0x0,this[_0x5d63f8(0x35c)][_0x5d63f8(0x330)][_0x5d63f8(0x350)](_0x22e1ca(this[_0x5d63f8(0x467)]))['subscribe'](_0x3b91b0=>{const _0x29323c=_0x5d63f8;_0x3b91b0===fe[_0x29323c(0x281)]?this[_0x29323c(0x410)]():this[_0x29323c(0x305)]();}),this[_0x5d63f8(0x35c)][_0x5d63f8(0x3af)][_0x5d63f8(0x350)](_0x22e1ca(this['dispose$']))[_0x5d63f8(0x2e2)](_0x186710=>{const _0x55bd3a=_0x5d63f8,_0x2b697b=_0x186710[_0x55bd3a(0x407)];_0x2b697b===_0x47d699['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x186710),_0x2b697b===_0x47d699[_0x55bd3a(0x204)]&&this[_0x55bd3a(0x44a)](_0x186710);}),this[_0x5d63f8(0x288)](this['_commandService'][_0x5d63f8(0x220)](_0x376b32=>{const _0x5b487b=_0x5d63f8,_0x3c0ab9=_0x376b32[_0x5b487b(0x315)];_0x3c0ab9!=null&&this[_0x5b487b(0x496)]&&_0x376b32['id']===_0x3e2f61['id']&&_0x3c0ab9['unitId']===this[_0x5b487b(0x422)]&&_0x3c0ab9[_0x5b487b(0x239)]===!0x1&&this[_0x5b487b(0x246)](_0x3c0ab9['ranges']);})),this[_0x5d63f8(0x358)]['collabCursorState$'][_0x5d63f8(0x350)](_0x22e1ca(this[_0x5d63f8(0x467)]))[_0x5d63f8(0x2e2)](_0x545bf4=>{const _0x2022a5=_0x5d63f8;if((_0x545bf4==null?void 0x0:_0x545bf4[_0x2022a5(0x422)])!==this[_0x2022a5(0x422)])return;const _0x435922={'eventID':_0x47d699[_0x2022a5(0x251)],'data':_0x545bf4};this['_onCursorUpdate'](_0x435922);}),this['disposeWithMe'](this[_0x5d63f8(0x27e)][_0x5d63f8(0x220)](_0x20b391=>{const _0x5216ba=_0x5d63f8;if(_0x20b391['params']==null)return;const _0x150fd7=_0x20b391[_0x5216ba(0x315)];if(_0x20b391['id']!==_0x38d6b6['id']||_0x150fd7[_0x5216ba(0x489)]!==this[_0x5216ba(0x422)])return;const _0x112e27={'id':_0x5216ba(0x21e),'params':_0x150fd7},_0x12838f=this['cursorInfo'];for(const [_0x421bc4,_0x5c9dc3]of _0x12838f){const _0x370887={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5c9dc3['ranges']}},_0x41ca1a=this[_0x5216ba(0x36f)]['transformMutation'](_0x112e27,_0x370887,!0x1);if(_0x587331(_0x41ca1a))throw _0x41ca1a['error'];_0x12838f[_0x5216ba(0x4b4)](_0x421bc4,{..._0x5c9dc3,'ranges':_0x41ca1a['m2Prime']['params'][_0x5216ba(0x2f5)]});}queueMicrotask(()=>{const _0x23006f=_0x5216ba;this[_0x23006f(0x504)][_0x23006f(0x3fb)](_0x12838f);});})));}[_0x95d569(0x4f5)](_0x705d7){const _0x56b433=_0x95d569;var _0x2dcaaa,_0x266c29;const {memberID:_0x4acaa7,selection:_0x164c4e}=_0x705d7['data'],_0x1f6c90=Kn(_0x164c4e),_0x59a78c=(_0x266c29=(_0x2dcaaa=this[_0x56b433(0x1c6)][_0x56b433(0x2d3)](this[_0x56b433(0x422)],_0x4acaa7))==null?void 0x0:_0x2dcaaa[_0x56b433(0x272)])!=null?_0x266c29:_0x56b433(0x1e1),_0x42bf67={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4acaa7),'name':_0x59a78c,'ranges':_0x1f6c90},_0x7a6295=this[_0x56b433(0x31f)];_0x7a6295[_0x56b433(0x4b4)](_0x4acaa7,_0x42bf67),this[_0x56b433(0x504)][_0x56b433(0x3fb)](_0x7a6295);}[_0x95d569(0x44a)](_0x46aa80){const _0x490540=_0x95d569,{memberID:_0x490ee7}=_0x46aa80[_0x490540(0x406)],_0x19a87b=this[_0x490540(0x31f)];_0x19a87b['delete'](_0x490ee7),this[_0x490540(0x504)][_0x490540(0x3fb)](_0x19a87b);}[_0x95d569(0x410)](){const _0x3b289f=_0x95d569;var _0x406f04;if(this[_0x3b289f(0x496)]=!0x0,((_0x406f04=this['_univerInstanceService'][_0x3b289f(0x283)]())==null?void 0x0:_0x406f04[_0x3b289f(0x2a3)]())!==this[_0x3b289f(0x422)])return;const _0x4330b2=this[_0x3b289f(0x418)][_0x3b289f(0x348)](_0x392a29)[_0x3b289f(0x2be)](),_0x942748=_0x4330b2==null?void 0x0:_0x4330b2[_0x3b289f(0x3cb)](_0x355bf6);Array['isArray'](_0x942748)&&_0x942748[_0x3b289f(0x259)]>0x0&&this[_0x3b289f(0x246)](_0x942748);}[_0x95d569(0x305)](){const _0x5a214e=_0x95d569;this[_0x5a214e(0x496)]=!0x1;}};bt=dr([te(0x2,_0x5e8fa6(_0x1eb3c6)),te(0x3,_0x5e8fa6(xt)),te(0x4,_0x5e8fa6(ne)),te(0x5,_0x5e8fa6(jt)),te(0x6,_0x229179),te(0x7,_0x4ef500),te(0x8,_0x27e3f2)],bt);var gr=Object[_0x95d569(0x515)],Sr=Object[_0x95d569(0x201)],pr=(_0x1bca35,_0x1a1234,_0x4981c8,_0x35439e)=>{const _0x2b3936=_0x95d569;for(var _0xef35ca=_0x35439e>0x1?void 0x0:_0x35439e?Sr(_0x1a1234,_0x4981c8):_0x1a1234,_0x15a32d=_0x1bca35[_0x2b3936(0x259)]-0x1,_0x3a30ec;_0x15a32d>=0x0;_0x15a32d--)(_0x3a30ec=_0x1bca35[_0x15a32d])&&(_0xef35ca=(_0x35439e?_0x3a30ec(_0x1a1234,_0x4981c8,_0xef35ca):_0x3a30ec(_0xef35ca))||_0xef35ca);return _0x35439e&&_0xef35ca&&gr(_0x1a1234,_0x4981c8,_0xef35ca),_0xef35ca;},ct=(_0x18f044,_0x22ca8c)=>(_0x35a76b,_0x3ddbd4)=>_0x22ca8c(_0x35a76b,_0x3ddbd4,_0x18f044);let ge=class extends _0x24c298{constructor(_0x4934e9,_0x379337,_0x3262a1){const _0x16082d=_0x95d569;super(),_(this,_0x16082d(0x4fa),new Map()),_(this,_0x16082d(0x421),new _0x5c132d()),(this[_0x16082d(0x247)]=_0x4934e9,this[_0x16082d(0x418)]=_0x379337,this[_0x16082d(0x22a)]=_0x3262a1,this[_0x16082d(0x2b0)]());}[_0x95d569(0x3eb)](){const _0x4aed3b=_0x95d569;super['dispose'](),this[_0x4aed3b(0x421)][_0x4aed3b(0x35d)](),this['_entities'][_0x4aed3b(0x43b)](_0x5c4930=>_0x5c4930[_0x4aed3b(0x3eb)]());}[_0x95d569(0x2ec)](_0x500192){const _0x42e693=_0x95d569;return this[_0x42e693(0x4fa)][_0x42e693(0x200)](_0x500192)?this[_0x42e693(0x4fa)][_0x42e693(0x348)](_0x500192)[_0x42e693(0x2e7)]:this['_entityInit$'][_0x42e693(0x350)](_0x1ee8c0(_0x5f0b17=>_0x5f0b17[_0x42e693(0x422)]===_0x500192),_0x150cec(_0x5d7cdf=>_0x5d7cdf[_0x42e693(0x2e7)]));}[_0x95d569(0x2b0)](){const _0x8b8278=_0x95d569;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0xe799c1[_0x8b8278(0x214)])[_0x8b8278(0x350)](_0x22e1ca(this[_0x8b8278(0x467)]))[_0x8b8278(0x2e2)](async _0x4e9e76=>{const _0x25aa03=_0x8b8278,_0x14d2de=_0x4e9e76['getUnitId'](),_0xe65d23=await this['_startSheetCollabCursor'](_0x14d2de);this['_entityInit$'][_0x25aa03(0x3fb)](_0xe65d23),this[_0x25aa03(0x4fa)][_0x25aa03(0x4b4)](_0x14d2de,_0xe65d23);}),this[_0x8b8278(0x247)][_0x8b8278(0x45b)](_0xe799c1[_0x8b8278(0x26f)])['pipe'](_0x22e1ca(this[_0x8b8278(0x467)]))[_0x8b8278(0x350)](_0x1ee8c0(_0x47cad5=>!_0x47cad5[_0x8b8278(0x2a3)]()['startsWith']('__')))[_0x8b8278(0x2e2)](async _0x2aa5bf=>{const _0x41735a=_0x8b8278,_0x5419ec=_0x2aa5bf[_0x41735a(0x2a3)](),_0x17fa90=await this['_startDocCollabCursor'](_0x5419ec);this['_entityInit$'][_0x41735a(0x3fb)](_0x17fa90),this['_entities'][_0x41735a(0x4b4)](_0x5419ec,_0x17fa90);}),_0x5eefa8(this[_0x8b8278(0x247)][_0x8b8278(0x46d)](_0xe799c1[_0x8b8278(0x26f)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xe799c1[_0x8b8278(0x214)]))[_0x8b8278(0x350)](_0x22e1ca(this[_0x8b8278(0x467)]))[_0x8b8278(0x2e2)](_0x5912a3=>{const _0x45308a=_0x8b8278,_0x244ad2=_0x5912a3[_0x45308a(0x2a3)](),_0x29e445=this[_0x45308a(0x4fa)]['get'](_0x244ad2);_0x29e445&&(_0x29e445[_0x45308a(0x3eb)](),this[_0x45308a(0x4fa)][_0x45308a(0x26d)](_0x244ad2));});}async[_0x95d569(0x1ca)](_0x268c1a){const _0x447243=_0x95d569,_0x144bd7=await this[_0x447243(0x22a)][_0x447243(0x383)](_0x268c1a),_0x31f641=this[_0x447243(0x418)][_0x447243(0x455)](Ct,_0x268c1a,_0x144bd7);return _0x31f641[_0x447243(0x390)](),_0x31f641;}async[_0x95d569(0x236)](_0x3a70ca){const _0x5e18d6=_0x95d569,_0x58524c=await this[_0x5e18d6(0x22a)][_0x5e18d6(0x383)](_0x3a70ca),_0x4171d7=this['_injector'][_0x5e18d6(0x455)](bt,_0x3a70ca,_0x58524c);return _0x4171d7['init'](),_0x4171d7;}};ge=pr([_0x5c6f39(_0x34adae[_0x95d569(0x289)],ge),ct(0x0,_0x4ef500),ct(0x1,_0x5e8fa6(_0x1eb3c6)),ct(0x2,_0x5e8fa6(pe))],ge);const Ue=0x14,as=0xc8,ht=0x4,vr=0x5;function Ir(_0x3fa1dd,_0x559dd5){const _0x1984b2=_0x95d569;let {radius:_0xd66e4f,width:_0x56b6d8,height:_0x300ffa}=_0x559dd5;_0xd66e4f=_0xd66e4f!=null?_0xd66e4f:0x0,_0x56b6d8=_0x56b6d8!=null?_0x56b6d8:0x1e,_0x300ffa=_0x300ffa!=null?_0x300ffa:0x1e;let _0x58842c=0x0,_0x201bc2=0x0,_0x1cbe1e=0x0;_0x58842c=_0x201bc2=_0x1cbe1e=Math[_0x1984b2(0x1f2)](_0xd66e4f,_0x56b6d8/0x2,_0x300ffa/0x2),_0x3fa1dd[_0x1984b2(0x50b)](),_0x3fa1dd['moveTo'](_0x58842c,0x0),_0x3fa1dd[_0x1984b2(0x341)](_0x56b6d8-_0x201bc2,0x0),_0x3fa1dd[_0x1984b2(0x2c0)](_0x56b6d8-_0x201bc2,_0x201bc2,_0x201bc2,Math['PI']*0x3/0x2,0x0,!0x1),_0x3fa1dd[_0x1984b2(0x341)](_0x56b6d8,_0x300ffa-_0x1cbe1e),_0x3fa1dd[_0x1984b2(0x2c0)](_0x56b6d8-_0x1cbe1e,_0x300ffa-_0x1cbe1e,_0x1cbe1e,0x0,Math['PI']/0x2,!0x1),_0x3fa1dd[_0x1984b2(0x341)](0x0,_0x300ffa),_0x3fa1dd['lineTo'](0x0,_0x58842c),_0x3fa1dd['arc'](_0x58842c,_0x58842c,_0x58842c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3fa1dd['closePath'](),_0x559dd5[_0x1984b2(0x279)]&&(_0x3fa1dd['save'](),_0x3fa1dd[_0x1984b2(0x38b)]=_0x559dd5[_0x1984b2(0x279)],_0x559dd5[_0x1984b2(0x2ef)]===_0x1984b2(0x451)?_0x3fa1dd['fill']('evenodd'):_0x3fa1dd['fill'](),_0x3fa1dd['restore']());}class it extends _0x3a4297{constructor(_0x4006bc,_0x327521){const _0x29cd9a=_0x95d569;super(_0x4006bc,_0x327521),_(this,_0x29cd9a(0x506)),_(this,_0x29cd9a(0x1c5)),(this[_0x29cd9a(0x506)]=_0x327521==null?void 0x0:_0x327521[_0x29cd9a(0x506)],this[_0x29cd9a(0x1c5)]=_0x327521==null?void 0x0:_0x327521['text']);}static[_0x95d569(0x260)](_0x1b6c4b,_0x1ad50a){const _0x3bba27=_0x95d569,{text:_0x22afdd,color:_0x1babb8}=_0x1ad50a;_0x1b6c4b[_0x3bba27(0x502)](),_0x1b6c4b[_0x3bba27(0x38c)]=_0x3bba27(0x2a8);const _0x6b5d44=_0x1b6c4b[_0x3bba27(0x1f9)](_0x22afdd)[_0x3bba27(0x35a)],_0x5ca4c7=Math[_0x3bba27(0x1f2)](_0x6b5d44+0x2*ht,as);Ir(_0x1b6c4b,{'height':Ue,'radius':0x4,'width':_0x5ca4c7,'fill':_0x1babb8,'evented':!0x1}),_0x1b6c4b['fillStyle']=_0x3bba27(0x1ea);const _0x37f25c=ht,_0x18d299=Ue-vr,_0x525c2=as-0x2*ht;if(_0x6b5d44>_0x525c2){let _0x349f3b='',_0x21cf3a=0x0;for(const _0x490e5e of _0x22afdd){const _0xf17c5a=_0x1b6c4b[_0x3bba27(0x1f9)](_0x490e5e)['width'];if(_0x21cf3a+_0xf17c5a<=_0x525c2-_0x1b6c4b[_0x3bba27(0x1f9)]('...')[_0x3bba27(0x35a)])_0x349f3b+=_0x490e5e,_0x21cf3a+=_0xf17c5a;else{_0x349f3b+='...';break;}}_0x1b6c4b['fillText'](_0x349f3b,_0x37f25c,_0x18d299);}else _0x1b6c4b[_0x3bba27(0x2f2)](_0x22afdd,_0x37f25c,_0x18d299);_0x1b6c4b['restore']();}[_0x95d569(0x29e)](_0x4dd499){it['drawWith'](_0x4dd499,this);}}const Er=0x1,Cr=1.5;class br extends _0x3a4297{constructor(_0x2c0930,_0x137454){const _0x596e74=_0x95d569;super(_0x2c0930,_0x137454),_(this,_0x596e74(0x2e3)),_(this,'_hovered',!0x1),_(this,_0x596e74(0x3b7)),_(this,_0x596e74(0x2c6),''),_(this,_0x596e74(0x1bc),'top'),_(this,'_backgroundColor'),(_0x137454&&this[_0x596e74(0x23b)](_0x137454),this[_0x596e74(0x44b)][_0x596e74(0x262)](()=>this[_0x596e74(0x23b)]({'hovered':!0x0})),this[_0x596e74(0x485)][_0x596e74(0x262)](()=>this[_0x596e74(0x23b)]({'hovered':!0x1})));}[_0x95d569(0x23b)](_0x5ea7f6){const _0x2a4407=_0x95d569;var _0x545e5a,_0x5e829f,_0x2d90a5,_0x18585e,_0x5aa00f,_0x470aa4;this[_0x2a4407(0x2e3)]=(_0x545e5a=_0x5ea7f6[_0x2a4407(0x506)])!=null?_0x545e5a:this[_0x2a4407(0x2e3)],this[_0x2a4407(0x513)]=(_0x5e829f=_0x5ea7f6[_0x2a4407(0x300)])!=null?_0x5e829f:this['_hovered'],this[_0x2a4407(0x3b7)]=(_0x2d90a5=_0x5ea7f6[_0x2a4407(0x429)])!=null?_0x2d90a5:this[_0x2a4407(0x3b7)],this['_name']=(_0x18585e=_0x5ea7f6[_0x2a4407(0x272)])!=null?_0x18585e:this[_0x2a4407(0x2c6)],this[_0x2a4407(0x1bc)]=(_0x5aa00f=_0x5ea7f6[_0x2a4407(0x443)])!=null?_0x5aa00f:this[_0x2a4407(0x1bc)],this[_0x2a4407(0x453)]=(_0x470aa4=_0x5ea7f6['backgroundColor'])!=null?_0x470aa4:this[_0x2a4407(0x453)],this[_0x2a4407(0x2bf)]({'width':_0x5ea7f6[_0x2a4407(0x35a)],'height':_0x5ea7f6[_0x2a4407(0x49c)]});}['onMouseMove'](_0x4f537b){const _0x2eeda3=_0x95d569,{row:_0x536ab2,column:_0x4eb64b}=_0x4f537b;if(_0x536ab2>=this[_0x2eeda3(0x3b7)][_0x2eeda3(0x3a5)]&&_0x536ab2<=this[_0x2eeda3(0x3b7)][_0x2eeda3(0x3e1)]&&_0x4eb64b>=this[_0x2eeda3(0x3b7)][_0x2eeda3(0x4cb)]&&_0x4eb64b<=this[_0x2eeda3(0x3b7)][_0x2eeda3(0x2f9)]){this[_0x2eeda3(0x23b)]({'hovered':!0x0});return;}this[_0x2eeda3(0x23b)]({'hovered':!0x1});}[_0x95d569(0x3d5)](_0x4f7639){return!0x1;}['_draw'](_0x46ac4f){const _0x340962=_0x95d569;_0x471078[_0x340962(0x260)](_0x46ac4f,{'width':this[_0x340962(0x35a)],'height':this[_0x340962(0x49c)],'strokeWidth':Cr,'stroke':this[_0x340962(0x2e3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x340962(0x513)]&&(_0x46ac4f[_0x340962(0x502)](),_0x46ac4f[_0x340962(0x370)](0x1,0x0,0x0,0x1,this[_0x340962(0x35a)],this[_0x340962(0x1bc)]===_0x340962(0x4b7)?0x0:-Ue),it[_0x340962(0x260)](_0x46ac4f,{'text':this[_0x340962(0x2c6)],'color':this[_0x340962(0x2e3)]}),_0x46ac4f[_0x340962(0x4d7)]());}}var Rr=Object['defineProperty'],Tr=Object['getOwnPropertyDescriptor'],Or=(_0x250781,_0x3a0d90,_0xd3f89e,_0x1a0509)=>{const _0x42561c=_0x95d569;for(var _0x56c0a5=_0x1a0509>0x1?void 0x0:_0x1a0509?Tr(_0x3a0d90,_0xd3f89e):_0x3a0d90,_0x234bad=_0x250781[_0x42561c(0x259)]-0x1,_0x97e609;_0x234bad>=0x0;_0x234bad--)(_0x97e609=_0x250781[_0x234bad])&&(_0x56c0a5=(_0x1a0509?_0x97e609(_0x3a0d90,_0xd3f89e,_0x56c0a5):_0x97e609(_0x56c0a5))||_0x56c0a5);return _0x1a0509&&_0x56c0a5&&Rr(_0x3a0d90,_0xd3f89e,_0x56c0a5),_0x56c0a5;},_t=(_0x4f8a66,_0x33acbd)=>(_0x53a5c0,_0x518753)=>_0x33acbd(_0x53a5c0,_0x518753,_0x4f8a66);const Dr=0x1389;let Rt=class extends _0x24c298{constructor(_0xf5a331,_0x3681fd,_0xf8fabf,_0x33856f){const _0x1ca0c2=_0x95d569;super(),_(this,_0x1ca0c2(0x1cd),new Set()),_(this,'_lastPointer',null),(this['_context']=_0xf5a331,this[_0x1ca0c2(0x392)]=_0x3681fd,this[_0x1ca0c2(0x483)]=_0xf8fabf,this[_0x1ca0c2(0x475)]=_0x33856f,this[_0x1ca0c2(0x2b0)]());}[_0x95d569(0x2b0)](){const _0x1dbbf7=_0x95d569;this[_0x1dbbf7(0x392)][_0x1dbbf7(0x463)]['pipe'](_0x2ec744(this['dispose$']),_0x5da1d5(_0x42ba8d=>{const _0x105a86=_0x1dbbf7;if(_0x42ba8d){const _0x1d0ae6=_0x42ba8d[_0x105a86(0x519)];return _0x2fb69d(this[_0x105a86(0x483)][_0x105a86(0x2ec)](this[_0x105a86(0x3e8)][_0x105a86(0x489)]),this[_0x105a86(0x475)][_0x105a86(0x31a)])[_0x105a86(0x350)](_0x244108(([_0x41c3ac,_0x341ae4])=>{const _0x174cc6=_0x105a86,_0x23e1bd=new Map();return _0x41c3ac[_0x174cc6(0x43b)]((_0x24bb2b,_0x43f4d1)=>{const _0xab88fa=_0x174cc6;if(_0x24bb2b[_0xab88fa(0x41a)]===_0x1d0ae6){const _0x18d3be={..._0x24bb2b};_0x18d3be['color']=_0x341ae4[_0x24bb2b[_0xab88fa(0x506)]],_0x23e1bd['set'](_0x43f4d1,_0x18d3be);}}),{'skeleton':_0x42ba8d,'cursors':_0x23e1bd};}));}return _0x32607c({'skeleton':null,'cursors':new Map()});}))[_0x1dbbf7(0x2e2)](({skeleton:_0xfbf728,cursors:_0x2d4044})=>{const _0x5ecc3a=_0x1dbbf7;this['_removeCollabCursors'](),_0xfbf728&&this[_0x5ecc3a(0x516)](_0xfbf728,_0x2d4044);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x240fb5=>{const _0xd05a71=_0x1dbbf7;if(_0x240fb5==null)return;const {skeleton:_0x29af2e}=_0x240fb5,{scene:_0x36878b}=this[_0xd05a71(0x3e8)];_0x36878b['onPointerMove$'][_0xd05a71(0x262)](_0x4e0e0c(_0x2e582a=>{const _0x58e685=_0xd05a71;var _0x3b87de,_0x1a2f96;const {offsetX:_0x122e2e,offsetY:_0xd777cd}=_0x2e582a,{x:_0x2bef8,y:_0x4bc714}=_0x36878b[_0x58e685(0x3e0)](_0x446d21[_0x58e685(0x261)]([_0x122e2e,_0xd777cd])),{scaleX:_0xf6d30e,scaleY:_0x2f2c6d}=_0x36878b[_0x58e685(0x1eb)](),_0x3d216b=_0x36878b[_0x58e685(0x26b)](_0x4c5bc6[_0x58e685(0x44c)]),_0x5c9cb2=_0x36878b[_0x58e685(0x43a)](_0x446d21[_0x58e685(0x261)]([_0x2bef8,_0x4bc714]),_0x3d216b),_0x59a386=_0x29af2e['getCellPositionByOffset'](_0x122e2e,_0xd777cd,_0xf6d30e,_0x2f2c6d,_0x5c9cb2);((_0x3b87de=this[_0x58e685(0x1c0)])==null?void 0x0:_0x3b87de[_0x58e685(0x1cf)])===_0x59a386[_0x58e685(0x1cf)]&&((_0x1a2f96=this[_0x58e685(0x1c0)])==null?void 0x0:_0x1a2f96[_0x58e685(0x49a)])===_0x59a386[_0x58e685(0x49a)]||this[_0x58e685(0x1cd)][_0x58e685(0x43b)](_0x4c88d7=>{const _0xd33e61=_0x58e685;_0x4c88d7[_0xd33e61(0x3b2)](_0x59a386);});},0x64));});}[_0x95d569(0x516)](_0x3162ad,_0x53771f){const _0x2a9bda=_0x95d569;var _0x3e816f;const _0x23c0e0=(_0x3e816f=this[_0x2a9bda(0x392)][_0x2a9bda(0x399)]())==null?void 0x0:_0x3e816f[_0x2a9bda(0x25c)];if(!_0x23c0e0)return;const _0xaa5cd3=this[_0x2a9bda(0x323)]();if(!_0xaa5cd3)return;this[_0x2a9bda(0x1cd)][_0x2a9bda(0x43b)](_0x1d8719=>{const _0x34c618=_0x2a9bda;_0x1d8719[_0x34c618(0x486)]();});const {scene:_0x3f0ea2}=_0xaa5cd3,_0xf5151a=Pr(Array[_0x2a9bda(0x21a)](_0x53771f[_0x2a9bda(0x213)]()))[_0x2a9bda(0x3cb)](_0xb604=>{const _0x2aad6b=_0x2a9bda,{color:_0x75438a,range:_0x34a814,name:_0x45555c,selection:_0x15ad30,sheetID:_0x343b3e}=_0xb604,{startColumn:_0x6ea2da,startRow:_0x24f50c,endColumn:_0x2193c4,endRow:_0x241ba6}=_0x34a814,_0x440409=_0x1fadaf(_0x24f50c,_0x6ea2da,_0x3f0ea2,_0x23c0e0),_0x3db1bd=_0x1fadaf(_0x241ba6,_0x2193c4,_0x3f0ea2,_0x23c0e0),{columnHeaderHeightAndMarginTop:_0x19e019}=_0x23c0e0,{startX:_0x1de530,startY:_0x2775d1}=_0x440409,{endX:_0x57abde,endY:_0x3d63e9}=_0x3db1bd,_0x3608f3=_0x57abde-_0x1de530,_0x5e1ec0=_0x3d63e9-_0x2775d1,_0x290e53={'labelPosition':_0x2775d1-_0x19e019>=Ue?_0x2aad6b(0x40a):'bottom','sheetID':_0x343b3e,'range':_0x34a814,'color':_0x75438a,'name':_0x45555c,'selection':_0x15ad30,'left':_0x1de530,'top':_0x2775d1,'width':_0x3608f3,'height':_0x5e1ec0,'evented':!0x1,'zIndex':Dr};return new br(_0x45555c,_0x290e53);});_0x3f0ea2[_0x2a9bda(0x47f)](_0xf5151a,Er),this[_0x2a9bda(0x1cd)]=new Set(_0xf5151a);}[_0x95d569(0x484)](){const _0x2b2ceb=_0x95d569;var _0x276f03;(_0x276f03=this[_0x2b2ceb(0x1cd)])==null||_0x276f03[_0x2b2ceb(0x43b)](_0xd993f=>_0xd993f[_0x2b2ceb(0x3eb)]());}['_getSheetObject'](){const _0x5111f4=_0x95d569;return _0x4d10db(this[_0x5111f4(0x3e8)][_0x5111f4(0x20f)],this[_0x5111f4(0x3e8)]);}};Rt=Or([_t(0x1,_0x5e8fa6(_0x400687)),_t(0x2,_0x5e8fa6(ge)),_t(0x3,_0x5e8fa6(_0x5b696d))],Rt);function Pr(_0xeb97c6){const _0x782c4f=_0x95d569,_0x459325=new Map();return _0xeb97c6['forEach'](_0x10da53=>{const _0x57ad79=_0x163c;if(_0x459325[_0x57ad79(0x200)](_0x10da53[_0x57ad79(0x3e3)])){const _0xe08f5d=_0x459325[_0x57ad79(0x348)](_0x10da53[_0x57ad79(0x3e3)]);_0xe08f5d['name']+=',\x20'+_0x10da53[_0x57ad79(0x272)];}else _0x459325['set'](_0x10da53['selection'],_0x10da53);}),Array[_0x782c4f(0x21a)](_0x459325[_0x782c4f(0x213)]());}var y=function(){const _0x1cbe1d=_0x95d569;return y=Object[_0x1cbe1d(0x2c7)]||function(_0x463ae0){const _0x5675d1=_0x1cbe1d;for(var _0x316e8a,_0x3e9d50=0x1,_0xab8f4d=arguments[_0x5675d1(0x259)];_0x3e9d50<_0xab8f4d;_0x3e9d50++){_0x316e8a=arguments[_0x3e9d50];for(var _0x29f81e in _0x316e8a)Object['prototype'][_0x5675d1(0x44f)][_0x5675d1(0x376)](_0x316e8a,_0x29f81e)&&(_0x463ae0[_0x29f81e]=_0x316e8a[_0x29f81e]);}return _0x463ae0;},y[_0x1cbe1d(0x43f)](this,arguments);},wr=function(_0x3ddc29,_0x4885da){const _0x14d033=_0x95d569;var _0x4ab1fa={};for(var _0xd6c954 in _0x3ddc29)Object[_0x14d033(0x2a5)]['hasOwnProperty'][_0x14d033(0x376)](_0x3ddc29,_0xd6c954)&&_0x4885da[_0x14d033(0x271)](_0xd6c954)<0x0&&(_0x4ab1fa[_0xd6c954]=_0x3ddc29[_0xd6c954]);if(_0x3ddc29!=null&&typeof Object['getOwnPropertySymbols']==_0x14d033(0x4cf)){for(var _0x228987=0x0,_0xd6c954=Object['getOwnPropertySymbols'](_0x3ddc29);_0x228987<_0xd6c954[_0x14d033(0x259)];_0x228987++)_0x4885da[_0x14d033(0x271)](_0xd6c954[_0x228987])<0x0&&Object[_0x14d033(0x2a5)][_0x14d033(0x1d9)]['call'](_0x3ddc29,_0xd6c954[_0x228987])&&(_0x4ab1fa[_0xd6c954[_0x228987]]=_0x3ddc29[_0xd6c954[_0x228987]]);}return _0x4ab1fa;},Ht=_0xa3c35e(function(_0x538d51,_0x588400){const _0x2c712c=_0x95d569;var _0x1875ad=_0x538d51[_0x2c712c(0x449)],_0x320452=_0x538d51['id'],_0x2d0896=_0x538d51['className'],_0x4faf39=_0x538d51[_0x2c712c(0x2cf)],_0x409612=wr(_0x538d51,[_0x2c712c(0x449),'id','className',_0x2c712c(0x2cf)]),_0x2376a4='univerjs-icon\x20univerjs-icon-'['concat'](_0x320452,'\x20')['concat'](_0x2d0896||'')['trim'](),_0x215007=_0xab8824('_'[_0x2c712c(0x379)](Ar()));return Ls(_0x1875ad,''[_0x2c712c(0x379)](_0x320452),{'defIds':_0x1875ad[_0x2c712c(0x4a3)],'idSuffix':_0x215007[_0x2c712c(0x3df)]},y({'ref':_0x588400,'className':_0x2376a4},_0x409612),_0x4faf39);});function Ls(_0x2f5bdc,_0xb28cee,_0x5108a6,_0x3e3338,_0xfd646b){const _0x1cb7a6=_0x95d569;return _0x365726(_0x2f5bdc[_0x1cb7a6(0x400)],y(y({'key':_0xb28cee},Nr(_0x2f5bdc,_0x5108a6,_0xfd646b)),_0x3e3338),(Mr(_0x2f5bdc,_0x5108a6)[_0x1cb7a6(0x4b3)]||[])[_0x1cb7a6(0x3cb)](function(_0xb01acc,_0x4c62a3){const _0xf3029d=_0x1cb7a6;return Ls(_0xb01acc,''[_0xf3029d(0x379)](_0xb28cee,'-')['concat'](_0x2f5bdc[_0xf3029d(0x400)],'-')[_0xf3029d(0x379)](_0x4c62a3),_0x5108a6,void 0x0,_0xfd646b);}));}function Nr(_0x5d1af2,_0x50d02d,_0x1f0eba){const _0x4aa86b=_0x95d569;var _0x532e25=y({},_0x5d1af2[_0x4aa86b(0x28a)]);_0x1f0eba!=null&&_0x1f0eba[_0x4aa86b(0x1e4)]&&_0x532e25[_0x4aa86b(0x279)]===_0x4aa86b(0x1e4)&&(_0x532e25[_0x4aa86b(0x279)]=_0x1f0eba[_0x4aa86b(0x1e4)]);var _0x596d1b=_0x50d02d[_0x4aa86b(0x4a3)];return!_0x596d1b||_0x596d1b[_0x4aa86b(0x259)]===0x0||(_0x5d1af2[_0x4aa86b(0x400)]===_0x4aa86b(0x1ef)&&_0x532e25['xlink:href']&&(_0x532e25[_0x4aa86b(0x380)]=_0x532e25[_0x4aa86b(0x380)]+_0x50d02d[_0x4aa86b(0x40e)]),Object[_0x4aa86b(0x29b)](_0x532e25)[_0x4aa86b(0x43b)](function(_0x5eafde){const _0x31168b=_0x4aa86b;var _0x5ba308=_0x5eafde[0x0],_0x20fc89=_0x5eafde[0x1];typeof _0x20fc89==_0x31168b(0x3be)&&(_0x532e25[_0x5ba308]=_0x20fc89[_0x31168b(0x43c)](/url\(#(.*)\)/,_0x31168b(0x32a)[_0x31168b(0x379)](_0x50d02d['idSuffix'],')')));})),_0x532e25;}function Mr(_0x2651f7,_0x4d6fb0){const _0x4d4487=_0x95d569;var _0x4a2bc0,_0x20daa5=_0x4d6fb0[_0x4d4487(0x4a3)];return!_0x20daa5||_0x20daa5['length']===0x0?_0x2651f7:_0x2651f7[_0x4d4487(0x400)]===_0x4d4487(0x23c)&&(!((_0x4a2bc0=_0x2651f7['children'])===null||_0x4a2bc0===void 0x0)&&_0x4a2bc0['length'])?y(y({},_0x2651f7),{'children':_0x2651f7[_0x4d4487(0x4b3)][_0x4d4487(0x3cb)](function(_0x32c84d){const _0x4ee909=_0x4d4487;return typeof _0x32c84d[_0x4ee909(0x28a)]['id']=='string'&&_0x20daa5&&_0x20daa5[_0x4ee909(0x271)](_0x32c84d[_0x4ee909(0x28a)]['id'])>-0x1?y(y({},_0x32c84d),{'attrs':y(y({},_0x32c84d[_0x4ee909(0x28a)]),{'id':_0x32c84d[_0x4ee909(0x28a)]['id']+_0x4d6fb0[_0x4ee909(0x40e)]})}):_0x32c84d;})}):_0x2651f7;}function Ar(){const _0x5c0a48=_0x95d569;return Math[_0x5c0a48(0x50d)]()[_0x5c0a48(0x360)](0x24)[_0x5c0a48(0x4ec)](0x2,0x8);}Ht['displayName']=_0x95d569(0x512);var yr={'tag':_0x95d569(0x38e),'attrs':{'fill':_0x95d569(0x412),'viewBox':_0x95d569(0x490),'width':_0x95d569(0x242),'height':_0x95d569(0x242)},'children':[{'tag':'g','attrs':{'clipPath':_0x95d569(0x30d)},'children':[{'tag':_0x95d569(0x409),'attrs':{'stroke':_0x95d569(0x36a),'d':_0x95d569(0x433),'strokeLinecap':_0x95d569(0x4d1),'strokeLinejoin':_0x95d569(0x4d1),'strokeWidth':1.2}}]},{'tag':_0x95d569(0x23c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x95d569(0x27f)},'children':[{'tag':_0x95d569(0x409),'attrs':{'fill':_0x95d569(0x42e),'d':_0x95d569(0x445)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$s=_0xa3c35e(function(_0x38790d,_0x1a8134){const _0x4f89a7=_0x95d569;return _0x365726(Ht,Object[_0x4f89a7(0x2c7)]({},_0x38790d,{'id':'off-line-single','ref':_0x1a8134,'icon':yr}));});$s[_0x95d569(0x1e9)]=_0x95d569(0x374);var Ur={'tag':'svg','attrs':{'fill':_0x95d569(0x412),'viewBox':_0x95d569(0x397),'width':_0x95d569(0x242),'height':_0x95d569(0x242)},'children':[{'tag':'g','attrs':{'clipPath':_0x95d569(0x1bd)},'children':[{'tag':_0x95d569(0x409),'attrs':{'stroke':'currentColor','d':_0x95d569(0x424),'strokeLinecap':_0x95d569(0x4d1),'strokeLinejoin':_0x95d569(0x4d1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x95d569(0x492),'attrs':{'id':_0x95d569(0x218)},'children':[{'tag':_0x95d569(0x409),'attrs':{'fill':_0x95d569(0x42e),'d':_0x95d569(0x445),'transform':_0x95d569(0x3cf)}}]}]}],'defIds':[_0x95d569(0x218)]},js=_0xa3c35e(function(_0x424894,_0xface66){const _0x2a0753=_0x95d569;return _0x365726(Ht,Object[_0x2a0753(0x2c7)]({},_0x424894,{'id':_0x2a0753(0x41c),'ref':_0xface66,'icon':Ur}));});js[_0x95d569(0x1e9)]=_0x95d569(0x431);const Lr='univer-online-status-icon',$r=_0x95d569(0x39e),jr=_0x95d569(0x3ac),xr=_0x95d569(0x2b2),Hr='univer-offline',De={'onlineStatusIcon':Lr,'onlineStatusTitle':$r,'onlineStatus':jr,'online':xr,'offline':Hr};function kr(_0x4c0f97){const _0x11eb10=_0x95d569;switch(_0x4c0f97){case P[_0x11eb10(0x375)]:return _0x11eb10(0x203);case P[_0x11eb10(0x284)]:return'collabStatus.conflict';case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x11eb10(0x231)]:return _0x11eb10(0x24e);case P['PENDING']:case P['AWAITING']:case P[_0x11eb10(0x1ed)]:return _0x11eb10(0x303);case P['SYNCED']:return _0x11eb10(0x37c);}}function Fr(_0x26b68d){const _0x50e5a0=_0x95d569,{status$:_0x1463ce}=_0x26b68d,_0x43b264=_0xa6d173(_0x1463ce,P['NOT_COLLAB']),_0x26bc7b=_0x2f1836(_0x1dc83a),_0x24f0c6=_0x43b264!==P[_0x50e5a0(0x375)],_0xf231d5=_0x26bc7b['t'](kr(_0x43b264)),_0x1d654d=_0x1fa12e(De[_0x50e5a0(0x206)],{[De[_0x50e5a0(0x4c6)]]:_0x24f0c6,[De[_0x50e5a0(0x235)]]:!_0x24f0c6}),_0x413a10=_0x24f0c6?_0x546820[_0x50e5a0(0x4be)](js,null):_0x546820[_0x50e5a0(0x4be)]($s,null);return _0x546820['createElement']('div',{'className':_0x1d654d},_0x546820['createElement']('div',{'className':De[_0x50e5a0(0x2bc)]},_0x413a10),_0x546820[_0x50e5a0(0x4be)](_0x50e5a0(0x296),{'className':De[_0x50e5a0(0x417)]},_0xf231d5));}function _0x163c(_0x99579,_0x2275e4){const _0x84419a=_0x8441();return _0x163c=function(_0x163ca5,_0x3526f0){_0x163ca5=_0x163ca5-0x1bb;let _0x275f23=_0x84419a[_0x163ca5];return _0x275f23;},_0x163c(_0x99579,_0x2275e4);}var Vr=Object[_0x95d569(0x515)],Br=Object[_0x95d569(0x201)],Wr=(_0x75be97,_0x2c0e06,_0x20889e,_0x4df876)=>{const _0xe3b0ac=_0x95d569;for(var _0x41464a=_0x4df876>0x1?void 0x0:_0x4df876?Br(_0x2c0e06,_0x20889e):_0x2c0e06,_0x36d3ec=_0x75be97[_0xe3b0ac(0x259)]-0x1,_0x216dc5;_0x36d3ec>=0x0;_0x36d3ec--)(_0x216dc5=_0x75be97[_0x36d3ec])&&(_0x41464a=(_0x4df876?_0x216dc5(_0x2c0e06,_0x20889e,_0x41464a):_0x216dc5(_0x41464a))||_0x41464a);return _0x4df876&&_0x41464a&&Vr(_0x2c0e06,_0x20889e,_0x41464a),_0x41464a;},$e=(_0x1d6433,_0x5962d3)=>(_0x565207,_0x4f1484)=>_0x5962d3(_0x565207,_0x4f1484,_0x1d6433);let ke=class extends _0x413d3d{constructor(_0x592857,_0x383e6f,_0x16c16f,_0x4eba62){const _0x35d79e=_0x95d569;super(),_(this,_0x35d79e(0x2ea),new _0x2c389c(P[_0x35d79e(0x231)])),(this[_0x35d79e(0x247)]=_0x592857,this[_0x35d79e(0x3db)]=_0x383e6f,this['_injector']=_0x16c16f,this[_0x35d79e(0x3b8)]=_0x4eba62,this[_0x35d79e(0x23d)](),this[_0x35d79e(0x2f3)]());}[_0x95d569(0x23d)](){const _0x1ad26f=_0x95d569;this[_0x1ad26f(0x288)](this[_0x1ad26f(0x3db)]['registerComponent'](_0xf82b66[_0x1ad26f(0x1c7)],()=>_0x126465(Gr({'status$':this[_0x1ad26f(0x2ea)][_0x1ad26f(0x4a7)]()}),this[_0x1ad26f(0x418)])));}[_0x95d569(0x2f3)](){const _0x147672=_0x95d569;this[_0x147672(0x288)](_0xb470e0(this[_0x147672(0x247)][_0x147672(0x1db)]['pipe'](_0x150cec(()=>{const _0x1584f1=_0x147672,_0x155a8b=this[_0x1584f1(0x247)]['getFocusedUnit']();return _0x155a8b?this[_0x1584f1(0x3b8)][_0x1584f1(0x4df)](_0x155a8b[_0x1584f1(0x2a3)]()):_0x32607c(null);}),_0x150cec(_0x57543e=>_0x57543e?_0x57543e[_0x147672(0x26a)]:_0x32607c(P['NOT_COLLAB'])))[_0x147672(0x2e2)](_0x220182=>{const _0x96b986=_0x147672;this[_0x96b986(0x2ea)][_0x96b986(0x3fb)](_0x220182);})));}};ke=Wr([_0x5c6f39(_0x34adae[_0x95d569(0x289)],ke),$e(0x0,_0x4ef500),$e(0x1,_0x209bf4),$e(0x2,_0x5e8fa6(_0x1eb3c6)),$e(0x3,_0x5e8fa6(Me))],ke);function Gr(_0x20ccaa){const {status$:_0x34e9c1}=_0x20ccaa;return function(){const _0x5b6123=_0x163c;return _0x546820[_0x5b6123(0x4be)](Fr,{'status$':_0x34e9c1});};}const xs=_0x475b76(_0x95d569(0x2fd));var Yr=Object[_0x95d569(0x515)],Kr=Object['getOwnPropertyDescriptor'],Xr=(_0x1685f4,_0x284394,_0x14128e,_0x5d89da)=>{const _0x3f25bb=_0x95d569;for(var _0x3763d4=_0x5d89da>0x1?void 0x0:_0x5d89da?Kr(_0x284394,_0x14128e):_0x284394,_0x44f426=_0x1685f4[_0x3f25bb(0x259)]-0x1,_0x596a8d;_0x44f426>=0x0;_0x44f426--)(_0x596a8d=_0x1685f4[_0x44f426])&&(_0x3763d4=(_0x5d89da?_0x596a8d(_0x284394,_0x14128e,_0x3763d4):_0x596a8d(_0x3763d4))||_0x3763d4);return _0x5d89da&&_0x3763d4&&Yr(_0x284394,_0x14128e,_0x3763d4),_0x3763d4;},ue=(_0x18e3da,_0x293270)=>(_0xae1712,_0x2920b3)=>_0x293270(_0xae1712,_0x2920b3,_0x18e3da);let Fe=class extends _0x24c298{constructor(_0x239264,_0x2e7796,_0x2f553a,_0x5425f8,_0x172c2c,_0x58cd14){const _0x5ee177=_0x95d569;super(),this[_0x5ee177(0x396)]=_0x239264,this[_0x5ee177(0x40c)]=_0x2e7796,this[_0x5ee177(0x27e)]=_0x2f553a,this['_localCacheService']=_0x5425f8,this[_0x5ee177(0x395)]=_0x172c2c,_0x58cd14?_0x58cd14==null||_0x58cd14[_0x5ee177(0x37a)]()[_0x5ee177(0x363)](()=>this['_init']()):(this[_0x5ee177(0x40c)][_0x5ee177(0x493)]('[DataLoaderController]',_0x5ee177(0x3b3)),this[_0x5ee177(0x2b0)]());}async[_0x95d569(0x2b0)](){const _0xcbe778=_0x95d569,_0x32353a=this[_0xcbe778(0x396)][_0xcbe778(0x439)](_0xcbe778(0x20f)),_0x5e0955=this[_0xcbe778(0x396)][_0xcbe778(0x439)]('type');if(!_0x32353a||!_0x5e0955){this[_0xcbe778(0x40c)]['debug']('[DataLoaderController]',_0xcbe778(0x491));return;}switch(Number(_0x5e0955)){case x[_0xcbe778(0x214)]:{const _0x5b95cc=await this[_0xcbe778(0x2fb)](_0x32353a);this[_0xcbe778(0x41b)](_0x5b95cc);break;}case x[_0xcbe778(0x26f)]:{await this[_0xcbe778(0x294)](_0x32353a);break;}default:{this[_0xcbe778(0x40c)][_0xcbe778(0x2c3)](_0xcbe778(0x4dd),_0xcbe778(0x381));break;}}}async['_setupSubUnitSync'](_0xdb4fa5){const _0x225ced=_0x95d569;await this[_0x225ced(0x224)](_0xdb4fa5),_0xdb4fa5['activeSheet$'][_0x225ced(0x350)](_0x22e1ca(this[_0x225ced(0x467)]))['subscribe'](_0x491cef=>{const _0x268365=_0x225ced;_0x491cef&&this[_0x268365(0x49f)](_0x491cef);}),this[_0x225ced(0x396)][_0x225ced(0x46e)][_0x225ced(0x350)](_0x22e1ca(this[_0x225ced(0x467)]))['subscribe'](()=>this[_0x225ced(0x224)](_0xdb4fa5));}[_0x95d569(0x49f)](_0x4a3239,_0x18600b=!0x1){const _0x33861d=_0x95d569,_0x2b1b96=this[_0x33861d(0x396)][_0x33861d(0x439)](_0x33861d(0x1d7));_0x4a3239[_0x33861d(0x436)]()!==_0x2b1b96&&this[_0x33861d(0x396)][_0x33861d(0x4b8)](_0x33861d(0x1d7),_0x4a3239[_0x33861d(0x436)](),_0x18600b);}async[_0x95d569(0x224)](_0x3373f7){const _0x25f9f9=_0x95d569;var _0x23c05b;const _0x281e3d=this[_0x25f9f9(0x396)]['getParam']('subunit');if(!_0x281e3d||!_0x3373f7[_0x25f9f9(0x241)](_0x281e3d)){const _0x59104f=_0x3373f7[_0x25f9f9(0x2ac)]()[0x0],_0x30bb3c=_0x3373f7[_0x25f9f9(0x241)](_0x59104f);if(!_0x30bb3c)return;this[_0x25f9f9(0x49f)](_0x30bb3c,!0x0),await this[_0x25f9f9(0x27e)][_0x25f9f9(0x32f)](_0x4b2daa['id'],{'unitId':_0x3373f7['getUnitId'](),'subUnitId':_0x59104f});return;}((_0x23c05b=_0x3373f7[_0x25f9f9(0x2c8)]())==null?void 0x0:_0x23c05b[_0x25f9f9(0x436)]())!==_0x281e3d&&await this[_0x25f9f9(0x27e)][_0x25f9f9(0x32f)](_0x4b2daa['id'],{'unitId':_0x3373f7[_0x25f9f9(0x2a3)](),'subUnitId':_0x281e3d});}async[_0x95d569(0x2fb)](_0x35364d){const _0x2cb674=_0x95d569;let _0x1ab5ff=0x0;const _0x1fd27b=await this[_0x2cb674(0x342)]['loadOfflineData'](_0x35364d);return _0x1fd27b&&(_0x1fd27b[_0x2cb674(0x4ae)]||_0x1fd27b[_0x2cb674(0x22b)][_0x2cb674(0x259)]!==0x0)&&(_0x1ab5ff=_0x1fd27b['rev']),_0x1ab5ff===0x0&&this[_0x2cb674(0x40c)]['debug'](_0x2cb674(0x4dd),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x35364d,_0x1ab5ff);}async['_loadDoc'](_0x337b29){const _0x296214=_0x95d569;let _0x1773e6=0x0;const _0x1291f2=await this[_0x296214(0x342)]['loadOfflineData'](_0x337b29);return _0x1291f2&&(_0x1291f2[_0x296214(0x4ae)]||_0x1291f2[_0x296214(0x22b)]['length']!==0x0)&&(_0x1773e6=_0x1291f2[_0x296214(0x265)]),_0x1773e6===0x0&&this[_0x296214(0x40c)][_0x296214(0x493)]('[DataLoaderController]',_0x296214(0x31b)),this[_0x296214(0x395)][_0x296214(0x3e7)](_0x337b29,_0x1773e6);}};Fe=Xr([_0x5c6f39(_0x34adae[_0x95d569(0x289)],Fe),ue(0x0,xs),ue(0x1,_0x71acc2),ue(0x2,_0x27e3f2),ue(0x3,_0x5e8fa6(D)),ue(0x4,_0x5e8fa6(_0x5e6fb8)),ue(0x5,_0x1116fd(_0x5909c8))],Fe);var Jr=Object['defineProperty'],zr=Object[_0x95d569(0x201)],qr=(_0x1d748f,_0x472a94,_0xb9baea,_0x2f9fe4)=>{for(var _0x1e7859=_0x2f9fe4>0x1?void 0x0:_0x2f9fe4?zr(_0x472a94,_0xb9baea):_0x472a94,_0x54cb30=_0x1d748f['length']-0x1,_0x2b4fd1;_0x54cb30>=0x0;_0x54cb30--)(_0x2b4fd1=_0x1d748f[_0x54cb30])&&(_0x1e7859=(_0x2f9fe4?_0x2b4fd1(_0x472a94,_0xb9baea,_0x1e7859):_0x2b4fd1(_0x1e7859))||_0x1e7859);return _0x2f9fe4&&_0x1e7859&&Jr(_0x472a94,_0xb9baea,_0x1e7859),_0x1e7859;},cs=(_0x3d034f,_0x77c9e7)=>(_0x1c7ccf,_0x354a06)=>_0x77c9e7(_0x1c7ccf,_0x354a06,_0x3d034f);const Zr=_0x95d569(0x3d9),Qr='Univer';let Ve=class extends _0x413d3d{constructor(_0xe81d9e,_0x5b6372){const _0x280346=_0x95d569;super(),this[_0x280346(0x247)]=_0xe81d9e,this[_0x280346(0x4e7)]=_0x5b6372,this[_0x280346(0x2b0)]();}[_0x95d569(0x2b0)](){const _0x28b730=_0x95d569;this[_0x28b730(0x288)](_0xb470e0(this[_0x28b730(0x247)][_0x28b730(0x1db)][_0x28b730(0x2e2)](()=>{const _0x3664b8=_0x28b730;var _0x1a6285;const _0x2429f1=this[_0x3664b8(0x247)][_0x3664b8(0x283)]();let _0x35e455=(_0x1a6285=this[_0x3664b8(0x4e7)][_0x3664b8(0x3bb)](Zr))!=null?_0x1a6285:Qr;_0x2429f1 instanceof _0x17a77e&&(_0x35e455=_0x2429f1[_0x3664b8(0x272)]),document[_0x3664b8(0x2b8)]=_0x35e455;})));}};Ve=qr([_0x5c6f39(_0x34adae[_0x95d569(0x308)],Ve),cs(0x0,_0x4ef500),cs(0x1,_0x3e2b80)],Ve);var eo=Object[_0x95d569(0x515)],to=Object[_0x95d569(0x201)],so=(_0xfe6bc8,_0x23e7a6,_0x151aab,_0x5f0239)=>{const _0x963bcf=_0x95d569;for(var _0x5663af=_0x5f0239>0x1?void 0x0:_0x5f0239?to(_0x23e7a6,_0x151aab):_0x23e7a6,_0x2644b5=_0xfe6bc8[_0x963bcf(0x259)]-0x1,_0x36aaac;_0x2644b5>=0x0;_0x2644b5--)(_0x36aaac=_0xfe6bc8[_0x2644b5])&&(_0x5663af=(_0x5f0239?_0x36aaac(_0x23e7a6,_0x151aab,_0x5663af):_0x36aaac(_0x5663af))||_0x5663af);return _0x5f0239&&_0x5663af&&eo(_0x23e7a6,_0x151aab,_0x5663af),_0x5663af;},hs=(_0x2df420,_0xe42a00)=>(_0x2a0af3,_0x369e54)=>_0xe42a00(_0x2a0af3,_0x369e54,_0x2df420);let Tt=class{constructor(_0x5e56e0,_0x590688){const _0x975fd=_0x95d569;this['_configService']=_0x5e56e0,this[_0x975fd(0x3a4)]=_0x590688;}async[_0x95d569(0x3b1)](_0x37853e,_0x4d3c72){const _0x3107ab=_0x95d569;var _0x96f300;const {unitID:_0x5970d4,type:_0x1f070c,revision:_0x16fdf3=0x0}=_0x4d3c72,_0x33a095=this['_getSnapshotAPIPrefix']()+'/'+_0x1f070c+'/unit/'+_0x5970d4+'/rev/'+_0x16fdf3,_0xd097ae=(await this['_httpService'][_0x3107ab(0x348)](_0x33a095))[_0x3107ab(0x4b1)],_0xe111f7=(_0x96f300=_0xd097ae[_0x3107ab(0x250)])==null?void 0x0:_0x96f300['workbook'];if(_0xe111f7){const _0xeeeb10=_0xe111f7==null?void 0x0:_0xe111f7[_0x3107ab(0x3f3)],_0x3c527e=_0x42a62d[_0x3107ab(0x460)](_0x3c3c0a(_0xeeeb10));_0xe111f7[_0x3107ab(0x3f3)]=_0x3c527e,Object[_0x3107ab(0x29b)](_0xe111f7[_0x3107ab(0x209)])[_0x3107ab(0x43b)](([,_0x4d0cea])=>{const _0x51f5be=_0x3107ab,_0x522150=_0x4d0cea['originalMeta'],_0x288849=_0x42a62d['encode'](_0x3c3c0a(_0x522150));_0x4d0cea[_0x51f5be(0x3f3)]=_0x288849;});}return _0xd097ae;}async['getSheetBlock'](_0x1703f1,_0x57962a){const _0x450aee=_0x95d569,{unitID:_0x1e9279,type:_0x58739b,blockID:_0x35497b}=_0x57962a,_0x57e913=this[_0x450aee(0x42b)]()+'/'+_0x58739b+_0x450aee(0x254)+_0x1e9279+_0x450aee(0x40d)+_0x35497b;return(await this[_0x450aee(0x3a4)][_0x450aee(0x348)](_0x57e913))[_0x450aee(0x4b1)];}async[_0x95d569(0x43d)](_0x5b2f01,_0x5048bd){const _0x5936fe=_0x95d569,{unitID:_0x2f14cd,type:_0x284fba,from:_0x191825,to:_0x56f70c}=_0x5048bd,_0x2251c5=this[_0x5936fe(0x42b)]()+'/'+_0x284fba+_0x5936fe(0x254)+_0x2f14cd+_0x5936fe(0x228)+_0x191825+_0x5936fe(0x263)+_0x56f70c;return(await this[_0x5936fe(0x3a4)][_0x5936fe(0x348)](_0x2251c5))[_0x5936fe(0x4b1)];}[_0x95d569(0x2a4)](){const _0x4127e3=_0x95d569;var _0x49a298;return(_0x49a298=this[_0x4127e3(0x4e7)][_0x4127e3(0x3bb)](cn))!=null?_0x49a298:this[_0x4127e3(0x42b)]();}[_0x95d569(0x42b)](){const _0x4835cb=_0x95d569;var _0x3b4ddd;return(_0x3b4ddd=this[_0x4835cb(0x4e7)][_0x4835cb(0x3bb)](on))!=null?_0x3b4ddd:an;}async[_0x95d569(0x28f)](_0x203f98,_0x1963d8){const _0x43b029=_0x95d569,_0x492c24=_0x43b029(0x30c)+_0x1963d8[_0x43b029(0x258)]+'/unit/'+_0x1963d8[_0x43b029(0x422)]+'/resources';return(await this[_0x43b029(0x3a4)][_0x43b029(0x348)](_0x492c24,{'params':{'resourceId':JSON[_0x43b029(0x462)](_0x1963d8[_0x43b029(0x507)])}}))[_0x43b029(0x4b1)];}[_0x95d569(0x2de)](){const _0x2ef908=_0x95d569;throw new Error(_0x2ef908(0x501));}['saveSheetBlock'](){const _0x47ebf1=_0x95d569;throw new Error(_0x47ebf1(0x501));}[_0x95d569(0x498)](){const _0x43cf8a=_0x95d569;throw new Error(_0x43cf8a(0x501));}};Tt=so([hs(0x0,_0x3e2b80),hs(0x1,_0x5e8fa6(_0x35659e))],Tt);var io=Object['defineProperty'],no=Object['getOwnPropertyDescriptor'],ro=(_0x2bcaff,_0x1bb3f7,_0x28bf75,_0x39474b)=>{const _0x37ace2=_0x95d569;for(var _0x3bd86f=_0x39474b>0x1?void 0x0:_0x39474b?no(_0x1bb3f7,_0x28bf75):_0x1bb3f7,_0xe299a1=_0x2bcaff[_0x37ace2(0x259)]-0x1,_0x4eb5d6;_0xe299a1>=0x0;_0xe299a1--)(_0x4eb5d6=_0x2bcaff[_0xe299a1])&&(_0x3bd86f=(_0x39474b?_0x4eb5d6(_0x1bb3f7,_0x28bf75,_0x3bd86f):_0x4eb5d6(_0x3bd86f))||_0x3bd86f);return _0x39474b&&_0x3bd86f&&io(_0x1bb3f7,_0x28bf75,_0x3bd86f),_0x3bd86f;},Pe=(_0x36e405,_0x31caf9)=>(_0xee58f8,_0x3e55fc)=>_0x31caf9(_0xee58f8,_0x3e55fc,_0x36e405);let Ot=class extends _0x3104b9{constructor(_0x5f09f1,_0x2d775d,_0xefe183,_0x576682,_0x4f8f98){super(_0x5f09f1,_0x2d775d,_0xefe183),this['_transformService']=_0x576682,this['_logService']=_0x4f8f98;}[_0x95d569(0x50e)](_0x6ff8fc,_0x5129aa){const _0x1694af=_0x95d569,_0x28d7bb=this[_0x1694af(0x4d5)](_0x6ff8fc);if(_0x28d7bb)try{const _0x21f1e3=this['_transformStack'](_0x28d7bb,_0x5129aa);this[_0x1694af(0x35b)](_0x6ff8fc,_0x21f1e3);}catch(_0x4997f7){this[_0x1694af(0x40c)][_0x1694af(0x2c3)](_0x1694af(0x22c),_0x4997f7),this[_0x1694af(0x458)](_0x6ff8fc);}const _0xf96299=this[_0x1694af(0x39d)](_0x6ff8fc);if(_0xf96299)try{const _0x19b4c8=this[_0x1694af(0x3ce)](_0xf96299,_0x5129aa);this[_0x1694af(0x509)](_0x6ff8fc,_0x19b4c8);}catch(_0xfaf3ab){this['_logService']['error'](_0xfaf3ab),this[_0x1694af(0x3ed)](_0x6ff8fc);}}[_0x95d569(0x458)](_0x4c4737){const _0x291d73=_0x95d569,_0x20d7ea=this[_0x291d73(0x4d5)](_0x4c4737);_0x20d7ea&&(_0x20d7ea[_0x291d73(0x259)]=0x0,this['_updateStatus']());}[_0x95d569(0x3ed)](_0x559341){const _0x944e59=_0x95d569,_0x32e6d0=this[_0x944e59(0x39d)](_0x559341);_0x32e6d0&&(_0x32e6d0[_0x944e59(0x259)]=0x0,this[_0x944e59(0x4c3)]());}[_0x95d569(0x35b)](_0x57de26,_0x386941){const _0x20cf0e=_0x95d569;this[_0x20cf0e(0x23e)][_0x20cf0e(0x4b4)](_0x57de26,_0x386941),this[_0x20cf0e(0x4c3)]();}[_0x95d569(0x509)](_0x1254f2,_0x447640){const _0x229604=_0x95d569;this[_0x229604(0x25e)][_0x229604(0x4b4)](_0x1254f2,_0x447640),this[_0x229604(0x4c3)]();}[_0x95d569(0x3ce)](_0xacdfa9,_0x35c011){const _0x107b65=_0x95d569,_0x10e743=[];let _0x50b61f=_0x35c011,_0x147299=_0x35c011;for(let _0x36bd5a=_0xacdfa9[_0x107b65(0x259)]-0x1;_0x36bd5a>=0x0;_0x36bd5a--){const {unitID:_0x2a0abd,undoMutations:_0x58fa02,redoMutations:_0x202806}=_0xacdfa9[_0x36bd5a],_0x3b9088=this[_0x107b65(0x36f)][_0x107b65(0x2da)](_0x50b61f,_0x58fa02),_0x48e853=this[_0x107b65(0x36f)][_0x107b65(0x2da)](_0x147299,_0x202806);if(_0xde97e0(_0x3b9088)||_0xde97e0(_0x48e853)){this[_0x107b65(0x40c)]['error'](_0x107b65(0x22c),_0x107b65(0x273),_0x3b9088,_0x48e853);break;}_0x50b61f=_0x3b9088[_0x107b65(0x469)],_0x147299=_0x48e853[_0x107b65(0x469)],_0x10e743['push']({'unitID':_0x2a0abd,'undoMutations':_0x3b9088[_0x107b65(0x2ce)],'redoMutations':_0x48e853[_0x107b65(0x2ce)]});}return _0x10e743[_0x107b65(0x340)]();}};Ot=ro([Pe(0x0,_0x4ef500),Pe(0x1,_0x27e3f2),Pe(0x2,_0x509e12),Pe(0x3,_0x229179),Pe(0x4,_0x71acc2)],Ot);class oo extends _0x24c298{constructor(){const _0x44516f=_0x95d569;super(),_(this,_0x44516f(0x46e)),this['urlChange$']=_0x34fa1e(window,_0x44516f(0x46c))[_0x44516f(0x350)](_0x22e1ca(this['dispose$']),_0x1e9654(0x1),_0x251474(void 0x0));}[_0x95d569(0x4b8)](_0x4b26d3,_0x38867c,_0x346b62=!0x1){const _0x386d27=_0x95d569,_0x2a1900=new URL(window[_0x386d27(0x508)][_0x386d27(0x3f4)]);_0x2a1900[_0x386d27(0x408)][_0x386d27(0x4b4)](_0x4b26d3,_0x38867c),_0x346b62?window[_0x386d27(0x1d4)]['replaceState']('','',_0x2a1900[_0x386d27(0x360)]()):window[_0x386d27(0x1d4)][_0x386d27(0x3e4)]('','',_0x2a1900['toString']());}[_0x95d569(0x2b1)](_0x540e87,_0x224d13=!0x1){const _0x123cc2=_0x95d569,_0xcd1299=new URL(window[_0x123cc2(0x508)]['href']);_0xcd1299[_0x123cc2(0x408)][_0x123cc2(0x26d)](_0x540e87),_0x224d13?window[_0x123cc2(0x1d4)][_0x123cc2(0x4aa)]('','',_0xcd1299[_0x123cc2(0x360)]()):window[_0x123cc2(0x1d4)][_0x123cc2(0x3e4)]('','',_0xcd1299[_0x123cc2(0x360)]());}[_0x95d569(0x439)](_0x318378){const _0x394485=_0x95d569;var _0x50691c;return(_0x50691c=new URL(window[_0x394485(0x508)][_0x394485(0x3f4)])[_0x394485(0x408)][_0x394485(0x348)](_0x318378))!=null?_0x50691c:void 0x0;}}const lt=_0x95d569(0x1d1),ao=_0x95d569(0x4dc),co=_0x95d569(0x378),we=0x6,ho=1.5,ut=0x4,_o=1.5,lo=_0x95d569(0x473);class _s{constructor(_0x44e2cb,_0x1585f7,_0x3a19b7,_0x2dd537){const _0xb80efa=_0x95d569;_(this,_0xb80efa(0x26e),[]),_(this,'_anchor',null),_(this,_0xb80efa(0x499),null),_(this,_0xb80efa(0x2a6),null),_(this,'_hideTimer',null),_(this,_0xb80efa(0x2af),null),(this[_0xb80efa(0x3ea)]=_0x44e2cb,this[_0xb80efa(0x1f7)]=_0x1585f7,this[_0xb80efa(0x349)]=_0x3a19b7,this[_0xb80efa(0x219)]=_0x2dd537,this['_render']());}set[_0x95d569(0x307)](_0x5638b3){const _0x13ff62=_0x95d569;_0x5638b3?(this['_anchorDot']&&this[_0x13ff62(0x2a6)][_0x13ff62(0x38d)](),this[_0x13ff62(0x499)]&&this[_0x13ff62(0x499)][_0x13ff62(0x2c1)]()):(this[_0x13ff62(0x2a6)]&&this[_0x13ff62(0x2a6)][_0x13ff62(0x2c1)](),this[_0x13ff62(0x499)]&&this['_textBubble'][_0x13ff62(0x38d)]());}['dispose'](){const _0x19252b=_0x95d569;for(const _0x2a2a3b of this[_0x19252b(0x26e)])_0x2a2a3b[_0x19252b(0x3eb)]();this[_0x19252b(0x499)]&&this['_textBubble']['dispose'](),this[_0x19252b(0x2a6)]&&this[_0x19252b(0x2a6)][_0x19252b(0x3eb)](),this['_anchor']&&this['_anchor'][_0x19252b(0x3eb)](),this[_0x19252b(0x2af)]&&this[_0x19252b(0x2af)]();}[_0x95d569(0x31d)](){const _0x24d1ec=_0x95d569;var _0x505c47;const {_docSkeleton:_0xcfb601,_document:_0x4a3cdc}=this,{color:_0x589b29,name:_0x5aff43,ranges:_0x34bf2f}=this[_0x24d1ec(0x3ea)],_0xf4cee3=_0x4a3cdc[_0x24d1ec(0x2dc)](),{docsLeft:_0x666054,docsTop:_0x4ab3b8}=_0xf4cee3,_0x26a287=new _0x5163ff(_0xf4cee3,_0xcfb601);for(const {startOffset:_0x5a41ce,endOffset:_0x483ffb,collapsed:_0x491d0d,isActive:_0x2abe27}of _0x34bf2f){const _0x56dd1c=_0xcfb601[_0x24d1ec(0x51a)](_0x5a41ce),_0x2eac73=_0xcfb601[_0x24d1ec(0x51a)](_0x483ffb);if(_0x2abe27){const {contentBoxPointGroup:_0x5d5775}=_0x26a287[_0x24d1ec(0x221)](_0x2eac73,_0x2eac73);if(_0x5d5775[_0x24d1ec(0x259)]===0x0)continue;this['_drawAnchor'](_0x589b29,_0x5d5775,_0x666054,_0x4ab3b8,_0x5aff43),this[_0x24d1ec(0x2af)]=this[_0x24d1ec(0x389)]();}if(!_0x491d0d&&_0x56dd1c&&_0x2eac73){if(_0x47b1d4(_0x56dd1c,_0x2eac73)){const _0x1842b9=new _0x35f383(_0xf4cee3,_0xcfb601),{pointGroup:_0x2f62de}=(_0x505c47=_0x1842b9['getRangePointData'](_0x56dd1c,_0x2eac73))!=null?_0x505c47:{};if(_0x2f62de==null||_0x2f62de[_0x24d1ec(0x259)]===0x0)continue;this['_drawRectRange'](_0x589b29,_0x2f62de,_0x666054,_0x4ab3b8);}else{const {contentBoxPointGroup:_0x48f839}=_0x26a287[_0x24d1ec(0x221)](_0x56dd1c,_0x2eac73);if(_0x48f839[_0x24d1ec(0x259)]===0x0)continue;this[_0x24d1ec(0x4a2)](_0x589b29,_0x48f839,_0x666054,_0x4ab3b8);}}}}[_0x95d569(0x352)](_0x5b2d7b,_0x140b0b,_0x2990ce,_0x49961d,_0x2712cd){const _0x1f9df6=_0x95d569,_0x2a770b=this['_getAnchorBounding'](_0x140b0b),{left:_0x346cf9,top:_0x129950,height:_0x458804}=_0x2a770b,_0x514a9e=this[_0x1f9df6(0x1c3)](),_0x5cc7af=_o/_0x514a9e,_0x102361=new _0x471078(lt+_0x23908f['generateRandomId'](we),{'left':_0x346cf9+_0x2990ce-_0x5cc7af,'top':_0x129950+_0x49961d,'height':_0x458804,'width':ho,'fill':_0x5b2d7b||_0x577f24(_0x1b2528[_0x1f9df6(0x1e8)],0x0),'strokeWidth':_0x5cc7af,'stroke':lo,'evented':!0x0});this[_0x1f9df6(0x481)]=_0x102361,this[_0x1f9df6(0x1f7)][_0x1f9df6(0x4d2)](_0x102361,_0x59542c);const _0x245d11=new _0x471078(lt+_0x23908f[_0x1f9df6(0x3bc)](we),{'left':_0x346cf9+_0x2990ce-_0x5cc7af,'top':_0x129950+_0x49961d-ut/0x2,'height':ut,'width':ut,'fill':_0x5b2d7b||_0x577f24(_0x1b2528[_0x1f9df6(0x1e8)],0x0),'strokeWidth':0x0,'stroke':_0x5b2d7b||_0x577f24(_0x1b2528[_0x1f9df6(0x1e8)],0x0),'evented':!0x1});this[_0x1f9df6(0x2a6)]=_0x245d11,this[_0x1f9df6(0x1f7)][_0x1f9df6(0x4d2)](_0x245d11,_0x59542c);const _0x2eb941=new it(lt+_0x23908f[_0x1f9df6(0x3bc)](we),{'left':_0x346cf9+_0x2990ce-_0x5cc7af,'top':_0x129950+_0x49961d-Ue,'text':_0x2712cd,'color':_0x5b2d7b});this[_0x1f9df6(0x499)]=_0x2eb941,this[_0x1f9df6(0x1f7)][_0x1f9df6(0x4d2)](_0x2eb941,_0x59542c),this[_0x1f9df6(0x307)]=!0x1;}['_handleHover'](){const _0x66fee9=_0x95d569,_0x34fc58=this[_0x66fee9(0x481)][_0x66fee9(0x44b)][_0x66fee9(0x262)](()=>{this['_hover']=!0x0;}),_0x52e21c=this['_anchor']['onPointerLeave$'][_0x66fee9(0x262)](()=>{const _0xeb05d3=_0x66fee9;this[_0xeb05d3(0x3a0)]&&clearTimeout(this[_0xeb05d3(0x3a0)]),this[_0xeb05d3(0x3a0)]=setTimeout(()=>{const _0x160e4c=_0xeb05d3;this[_0x160e4c(0x307)]=!0x1;},0x7d0);});return()=>{const _0x5efec9=_0x66fee9;_0x34fc58['unsubscribe'](),_0x52e21c[_0x5efec9(0x471)]();};}[_0x95d569(0x4a2)](_0x494022,_0x5b4d61,_0x2a0c04,_0x5379c1){const _0xc68611=_0x95d569,_0x5c7e36=new _0x1eea5a(_0x494022)[_0xc68611(0x33a)](0.2)['toRgbString'](),_0x2382bc=new _0x1ab3f8(ao+_0x23908f[_0xc68611(0x3bc)](we),{'pointsGroup':_0x5b4d61,'fill':_0x5c7e36||_0x577f24(_0x1b2528[_0xc68611(0x1e8)],0.2),'left':_0x2a0c04,'top':_0x5379c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc68611(0x26e)][_0xc68611(0x1fa)](_0x2382bc),this[_0xc68611(0x1f7)][_0xc68611(0x4d2)](_0x2382bc,_0x59542c);}[_0x95d569(0x245)](_0xf7b594,_0x86dafd,_0x474a5e,_0x386672){const _0xf6f3=_0x95d569,_0x15d62d=new _0x1eea5a(_0xf7b594)[_0xf6f3(0x33a)](0.2)[_0xf6f3(0x42d)](),_0x435746=new _0x1ab3f8(co+_0x23908f[_0xf6f3(0x3bc)](we),{'pointsGroup':_0x86dafd,'fill':_0x15d62d||_0x577f24(_0x1b2528[_0xf6f3(0x1e8)],0.2),'left':_0x474a5e,'top':_0x386672,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf6f3(0x26e)][_0xf6f3(0x1fa)](_0x435746),this['_scene'][_0xf6f3(0x4d2)](_0x435746,_0x59542c);}[_0x95d569(0x2bb)](_0x16ab8e){const _0x1c1ec5=_0x16ab8e[0x0],_0x2e0372=_0x1c1ec5[0x0],_0xa0b0cf=_0x1c1ec5[0x2],{x:_0x53c71b,y:_0x426340}=_0x2e0372,{x:_0x36d2c9,y:_0x9a4a2f}=_0xa0b0cf;return{'left':_0x53c71b,'top':_0x426340,'width':_0x36d2c9-_0x53c71b,'height':_0x9a4a2f-_0x426340};}[_0x95d569(0x1c3)](){const _0x12ca00=_0x95d569,{scaleX:_0x29dca5,scaleY:_0x571dea}=this['_scene'][_0x12ca00(0x1eb)]();return Math[_0x12ca00(0x252)](_0x29dca5,_0x571dea);}}var uo=Object[_0x95d569(0x515)],mo=Object[_0x95d569(0x201)],fo=(_0x4f3cc3,_0x3318bc,_0x2f736e,_0x397231)=>{for(var _0x1d0c52=_0x397231>0x1?void 0x0:_0x397231?mo(_0x3318bc,_0x2f736e):_0x3318bc,_0x5bfe05=_0x4f3cc3['length']-0x1,_0x30e4ca;_0x5bfe05>=0x0;_0x5bfe05--)(_0x30e4ca=_0x4f3cc3[_0x5bfe05])&&(_0x1d0c52=(_0x397231?_0x30e4ca(_0x3318bc,_0x2f736e,_0x1d0c52):_0x30e4ca(_0x1d0c52))||_0x1d0c52);return _0x397231&&_0x1d0c52&&uo(_0x3318bc,_0x2f736e,_0x1d0c52),_0x1d0c52;},je=(_0x2e39e5,_0x3209ad)=>(_0x340c3d,_0x37aa3f)=>_0x3209ad(_0x340c3d,_0x37aa3f,_0x2e39e5);let Be=class extends _0x24c298{constructor(_0x4fcad6,_0x53ad8b,_0x39c327,_0x220747,_0x1e26e5){const _0x55241a=_0x95d569;super(),_(this,_0x55241a(0x3de),[]),_(this,_0x55241a(0x1cd),[]),(this[_0x55241a(0x3e8)]=_0x4fcad6,this['_docSkeletonManagerService']=_0x53ad8b,this[_0x55241a(0x483)]=_0x39c327,this[_0x55241a(0x27e)]=_0x220747,this[_0x55241a(0x475)]=_0x1e26e5,this[_0x55241a(0x2b0)]());}['_init'](){const _0x11362f=_0x95d569,_0x3d0bd4=this[_0x11362f(0x3e8)][_0x11362f(0x489)],_0x9e231e=this[_0x11362f(0x4e2)];this[_0x11362f(0x288)](_0x2fb69d([this[_0x11362f(0x483)][_0x11362f(0x2ec)](_0x3d0bd4),this[_0x11362f(0x475)]['currentTheme$']])[_0x11362f(0x350)](_0x244108(([_0x2cee8a,_0x41fbd0])=>({'skeleton':_0x9e231e['getSkeleton'](),'cursors':[..._0x2cee8a['values']()][_0x11362f(0x435)](_0x143c78=>({..._0x143c78,'color':_0x41fbd0[_0x143c78[_0x11362f(0x506)]]}))})))[_0x11362f(0x2e2)](_0xe53977=>{const _0x4cf8ac=_0x11362f;if(this['_removeCollabCursors'](),_0xe53977){const {skeleton:_0x3937c8,cursors:_0x1878e9}=_0xe53977;this[_0x4cf8ac(0x516)](_0x3937c8,_0x1878e9);}})),this[_0x11362f(0x2e5)](),this[_0x11362f(0x2a7)]();}['_updateCollabCursors'](_0x14e631,_0x2dc423){const _0x45ab06=_0x95d569,{scene:_0x16296b,mainComponent:_0x22810b}=this['_context'],_0x3024b6=_0x2dc423[_0x45ab06(0x3cb)](_0x56c25d=>new _s(_0x56c25d,_0x16296b,_0x14e631,_0x22810b));this[_0x45ab06(0x3de)]=_0x3024b6,this[_0x45ab06(0x1cd)]=_0x2dc423;}['_refreshCollabCursors'](){const _0x3cc9cf=_0x95d569;this[_0x3cc9cf(0x484)]();const {scene:_0x2b57b6,mainComponent:_0x22388e}=this[_0x3cc9cf(0x3e8)],_0xf2ddee=this[_0x3cc9cf(0x4e2)][_0x3cc9cf(0x517)](),_0xf41972=this['_cursors'][_0x3cc9cf(0x3cb)](_0x3e94f6=>new _s(_0x3e94f6,_0x2b57b6,_0xf2ddee,_0x22388e));this[_0x3cc9cf(0x3de)]=_0xf41972;}['_removeCollabCursors'](){const _0x3c4352=_0x95d569;this[_0x3c4352(0x3de)]['forEach'](_0x26d90f=>_0x26d90f[_0x3c4352(0x3eb)]()),this[_0x3c4352(0x3de)]=[];}['_initCommandExecutedListener'](){const _0x3c8e8d=_0x95d569,_0x36b03a=[_0x137fda['id']];this['disposeWithMe'](this[_0x3c8e8d(0x27e)][_0x3c8e8d(0x220)](_0x563568=>{const _0x14cf10=_0x3c8e8d;_0x36b03a[_0x14cf10(0x377)](_0x563568['id'])&&_0x563568[_0x14cf10(0x315)][_0x14cf10(0x489)]===this[_0x14cf10(0x3e8)]['unitId']&&this[_0x14cf10(0x1d0)]();}));}['_initResize'](){const _0x336dcf=_0x95d569;this['disposeWithMe'](_0x454b17(this[_0x336dcf(0x3e8)][_0x336dcf(0x4af)][_0x336dcf(0x1d5)])[_0x336dcf(0x350)](_0x3510ec(_0x44e36f=>_0x44e36f['type']===_0x40693e[_0x336dcf(0x2ca)]),_0x1f4e1c(0x10))[_0x336dcf(0x2e2)](()=>{const _0xb99cc0=_0x336dcf;this[_0xb99cc0(0x1d0)]();}));}};Be=fo([_0x5c6f39(_0x34adae[_0x95d569(0x430)],Be),je(0x1,_0x5e8fa6(_0x297d18)),je(0x2,_0x5e8fa6(ge)),je(0x3,_0x27e3f2),je(0x4,_0x5e8fa6(_0x5b696d))],Be);var go=Object[_0x95d569(0x515)],So=Object['getOwnPropertyDescriptor'],po=(_0x3fac4a,_0x1afc0f,_0x2366e7,_0x5b81f1)=>{const _0x5ba525=_0x95d569;for(var _0x339ee9=_0x5b81f1>0x1?void 0x0:_0x5b81f1?So(_0x1afc0f,_0x2366e7):_0x1afc0f,_0x3fd74a=_0x3fac4a[_0x5ba525(0x259)]-0x1,_0x1f0dd8;_0x3fd74a>=0x0;_0x3fd74a--)(_0x1f0dd8=_0x3fac4a[_0x3fd74a])&&(_0x339ee9=(_0x5b81f1?_0x1f0dd8(_0x1afc0f,_0x2366e7,_0x339ee9):_0x1f0dd8(_0x339ee9))||_0x339ee9);return _0x5b81f1&&_0x339ee9&&go(_0x1afc0f,_0x2366e7,_0x339ee9),_0x339ee9;},dt=(_0x54b7cd,_0xf7ce16)=>(_0x282ab9,_0x357568)=>_0xf7ce16(_0x282ab9,_0x357568,_0x54b7cd);let Qe=class{constructor(_0xcc33b2,_0x1ad66c,_0x343f79){const _0xb89a26=_0x95d569;this['_configService']=_0xcc33b2,this[_0xb89a26(0x3a4)]=_0x1ad66c,this[_0xb89a26(0x285)]=_0x343f79,this[_0xb89a26(0x390)]();}['init'](){const _0x29fabf=_0x95d569;this[_0x29fabf(0x3a4)][_0x29fabf(0x3ef)]({'priority':0x1,'interceptor':(_0x3f1958,_0x13b9d2)=>_0x13b9d2(_0x3f1958)['pipe'](_0x2667fb(async _0x134b8f=>{const _0x2c6118=_0x29fabf,_0x5d6092=_0x134b8f;if(_0x5d6092['status']===0x191&&window[_0x2c6118(0x33e)](this['localeService']['t'](_0x2c6118(0x31c)))){const _0x3dfbe1=window[_0x2c6118(0x22e)](window['location'][_0x2c6118(0x3f4)]);window['location'][_0x2c6118(0x3f4)]=this['_getLoginPath']()+_0x2c6118(0x3a7)+_0x3dfbe1;}return _0x5d6092;}))});}[_0x95d569(0x268)](){const _0x1ccd67=_0x95d569;var _0x5743d8;return(_0x5743d8=this[_0x1ccd67(0x4e7)][_0x1ccd67(0x3bb)](bn))!=null?_0x5743d8:Rn;}};Qe=po([dt(0x0,_0x3e2b80),dt(0x1,_0x5e8fa6(_0x35659e)),dt(0x2,_0x5e8fa6(_0x1dc83a))],Qe);var vo=Object[_0x95d569(0x515)],Io=Object['getOwnPropertyDescriptor'],Eo=(_0x69b407,_0x38bb58,_0x5f3abf,_0x3946cc)=>{const _0x53da95=_0x95d569;for(var _0x1dc12a=_0x3946cc>0x1?void 0x0:_0x3946cc?Io(_0x38bb58,_0x5f3abf):_0x38bb58,_0x5661d7=_0x69b407[_0x53da95(0x259)]-0x1,_0x131eb1;_0x5661d7>=0x0;_0x5661d7--)(_0x131eb1=_0x69b407[_0x5661d7])&&(_0x1dc12a=(_0x3946cc?_0x131eb1(_0x38bb58,_0x5f3abf,_0x1dc12a):_0x131eb1(_0x1dc12a))||_0x1dc12a);return _0x3946cc&&_0x1dc12a&&vo(_0x38bb58,_0x5f3abf,_0x1dc12a),_0x1dc12a;},ls=(_0x28f64d,_0x484809)=>(_0x2398c3,_0x395687)=>_0x484809(_0x2398c3,_0x395687,_0x28f64d);const Co=_0x95d569(0x1c9),bo='/universer-api/authz';let Dt=class extends _0x413d3d{constructor(_0x1b3134,_0x38b1ee){const _0x124183=_0x95d569;super(),this[_0x124183(0x27a)]=_0x1b3134,this[_0x124183(0x4e7)]=_0x38b1ee,this[_0x124183(0x4ba)]();}[_0x95d569(0x4ba)](){const _0x5690b0=_0x95d569,_0x437672=this;this[_0x5690b0(0x288)](this['_HTTPService'][_0x5690b0(0x3ef)]({'priority':0x3e7,'interceptor':_0x407738({'isMatch'(_0x3d0893){const _0x49b442=_0x5690b0;var _0xe2717;if(_0x3d0893[_0x49b442(0x36b)]==='POST'&&((_0xe2717=_0x3d0893[_0x49b442(0x3d0)])!=null&&_0xe2717[_0x49b442(0x4b1)])){const {objectID:_0x5eec95,objectType:_0x580250}=_0x3d0893[_0x49b442(0x3d0)][_0x49b442(0x4b1)]||{};if(!_0x5eec95||_0x580250===void 0x0)return!0x1;const _0x2765d3=_0x437672[_0x49b442(0x29d)]()+'/'+_0x580250+_0x49b442(0x2e9)+_0x5eec95+_0x49b442(0x46a);if(_0x3d0893['url']===_0x2765d3)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a07c0){const _0x4dd6ac=_0x5690b0;var _0x20ed09;return(_0x20ed09=_0x4a07c0[_0x4dd6ac(0x3d0)])==null?void 0x0:_0x20ed09[_0x4dd6ac(0x4b1)];},'mergeParamsToRequest'(_0x49b4aa,_0x304822){const _0x58c58d=_0x5690b0,_0x48603f=_0x437672[_0x58c58d(0x29d)]()+_0x58c58d(0x327),_0x1e7a94=_0x49b4aa[_0x58c58d(0x447)]((_0x254e1e,_0xa47fab)=>{const _0x1da9b0=_0x58c58d,{unitID:_0x3694b9,objectID:_0x4af78e,objectType:_0x5b1d40,actions:_0x15815c}=_0xa47fab;return _0x254e1e[_0x3694b9]||(_0x254e1e[_0x3694b9]={}),_0x254e1e[_0x3694b9][_0x4af78e]||(_0x254e1e[_0x3694b9][_0x4af78e]={'objectID':_0x4af78e,'objectType':_0x5b1d40,'actions':[]}),_0x254e1e[_0x3694b9][_0x4af78e][_0x1da9b0(0x42a)]['push'](..._0x15815c),_0x254e1e;},{}),_0xed38a5=[];for(const _0x4353b4 in _0x1e7a94)for(const _0x32412a in _0x1e7a94[_0x4353b4]){const {actions:_0x32c06d,objectType:_0x3c057a}=_0x1e7a94[_0x4353b4][_0x32412a],_0x53e402=[...new Set(_0x32c06d)];_0xed38a5['push']({'unitID':_0x4353b4,'objectID':_0x32412a,'objectType':_0x3c057a,'actions':_0x53e402});}return new _0x142df6(_0x58c58d(0x28e),_0x48603f,{'headers':_0x304822['headers'],'withCredentials':_0x304822[_0x58c58d(0x4ab)],'responseType':_0x304822['responseType'],'body':{'requests':_0xed38a5}});}},{'distributeResult'(_0x428c3f,_0x3064bd){const _0x58ac34=_0x5690b0,{objectActions:_0x59994b}=_0x428c3f;return _0x3064bd[_0x58ac34(0x3cb)](_0x1fdded=>{const _0x3918b3=_0x58ac34,{unitID:_0x3a573b,objectID:_0x1647f3,actions:_0x1d8e36}=_0x1fdded,_0x2ac0d2=_0x59994b[_0x3918b3(0x46f)](_0x1933fa=>_0x1933fa[_0x3918b3(0x422)]===_0x3a573b&&_0x1933fa[_0x3918b3(0x1e5)]===_0x1647f3),_0xff8b78=_0x1d8e36[_0x3918b3(0x3cb)](_0x464368=>_0x2ac0d2==null?void 0x0:_0x2ac0d2[_0x3918b3(0x42a)][_0x3918b3(0x46f)](_0x44e318=>_0x44e318[_0x3918b3(0x1d3)]===_0x464368))['filter'](_0x4cfd5d=>!!_0x4cfd5d);return{'config':_0x1fdded,'result':{'actions':_0xff8b78,'error':_0x428c3f['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x5eef2d=_0x95d569;var _0x4e152f;return(_0x4e152f=this[_0x5eef2d(0x4e7)][_0x5eef2d(0x3bb)](Co))!=null?_0x4e152f:bo;}async['create'](_0xbea783){const _0x25cd65=_0x95d569,_0x58d94f=this[_0x25cd65(0x29d)]()+'/'+_0xbea783['objectType']+_0x25cd65(0x3c2);return(await this[_0x25cd65(0x27a)][_0x25cd65(0x248)](_0x58d94f,{'body':_0xbea783}))[_0x25cd65(0x4b1)][_0x25cd65(0x1e5)]||'';}async['list'](_0x54d01c){const _0x378a39=_0x95d569,_0x2f1de1=this[_0x378a39(0x29d)]()+_0x378a39(0x2f4);return(await this['_HTTPService'][_0x378a39(0x248)](_0x2f1de1,{'body':_0x54d01c}))[_0x378a39(0x4b1)][_0x378a39(0x482)];}async[_0x95d569(0x28b)](_0xb93ee0){const _0x2bedd8=_0x95d569,_0x43e98b=this['_getAPIPrefixPath']()+'/'+_0xb93ee0[_0x2bedd8(0x2df)]+'/object/'+_0xb93ee0[_0x2bedd8(0x1e5)];await this[_0x2bedd8(0x27a)][_0x2bedd8(0x2e8)](_0x43e98b,{'body':_0xb93ee0});}async[_0x95d569(0x442)](_0x26cb54){const _0xcf4ded=_0x95d569,_0x512226=this['_getAPIPrefixPath']()+'/'+_0x26cb54['objectType']+'/object/'+_0x26cb54[_0xcf4ded(0x1e5)]+_0xcf4ded(0x46a);return(await this[_0xcf4ded(0x27a)][_0xcf4ded(0x248)](_0x512226,{'body':_0x26cb54}))[_0xcf4ded(0x4b1)][_0xcf4ded(0x42a)];}async[_0x95d569(0x291)](_0x35eb85){const _0x14fadf=_0x95d569,_0x1dcca1=this['_getAPIPrefixPath']()+_0x14fadf(0x327);return(await this[_0x14fadf(0x27a)][_0x14fadf(0x248)](_0x1dcca1,{'body':{'requests':_0x35eb85}}))[_0x14fadf(0x4b1)][_0x14fadf(0x1bb)];}async['listRoles'](_0x3a39ff){const _0x14c58c=_0x95d569,_0x1a4430=this[_0x14c58c(0x29d)]()+'/'+_0x3a39ff['objectType']+_0x14c58c(0x215),_0x2bd01f=await this[_0x14c58c(0x27a)][_0x14c58c(0x248)](_0x1a4430,{'body':_0x3a39ff});return{'roles':_0x2bd01f[_0x14c58c(0x4b1)][_0x14c58c(0x50a)],'actions':_0x2bd01f[_0x14c58c(0x4b1)]['actions']};}async[_0x95d569(0x4de)](_0x535117){const _0x470d95=_0x95d569,_0x44ab0e=this[_0x470d95(0x29d)]()+_0x470d95(0x4b0);await this[_0x470d95(0x27a)]['delete'](_0x44ab0e,{'params':{'collaboratorID':_0x535117[_0x470d95(0x4c5)],'objectID':_0x535117['objectID'],'unitID':_0x535117[_0x470d95(0x422)]}});}async[_0x95d569(0x302)](_0x1a3336){const _0x583362=_0x95d569,_0x26f9de=this[_0x583362(0x29d)]()+'/collaborator';await this[_0x583362(0x27a)][_0x583362(0x413)](_0x26f9de,{'body':_0x1a3336});}async[_0x95d569(0x1f1)](_0x3a953b){const _0x4ba7f1=_0x95d569,_0x12f23e=this[_0x4ba7f1(0x29d)]()+_0x4ba7f1(0x4b0);await this[_0x4ba7f1(0x27a)][_0x4ba7f1(0x248)](_0x12f23e,{'body':_0x3a953b});}async['listCollaborators'](_0x3124a9){const _0x189acd=_0x95d569,_0x936b07=this[_0x189acd(0x29d)]()+_0x189acd(0x4b0);return(await this[_0x189acd(0x27a)][_0x189acd(0x348)](_0x936b07,{'params':{'objectID':_0x3124a9[_0x189acd(0x1e5)],'unitID':_0x3124a9[_0x189acd(0x422)]}}))[_0x189acd(0x4b1)]['collaborators'];}async[_0x95d569(0x4a5)](_0x134a4e){const _0x1d3e66=_0x95d569,_0x117fa8=this['_getAPIPrefixPath']()+_0x1d3e66(0x4b0);await this[_0x1d3e66(0x27a)][_0x1d3e66(0x2e8)](_0x117fa8,{'body':_0x134a4e});}};Dt=Eo([ls(0x0,_0x5e8fa6(_0x35659e)),ls(0x1,_0x5e8fa6(_0x3e2b80))],Dt);var Ro=Object[_0x95d569(0x515)],To=Object[_0x95d569(0x201)],Oo=(_0x42ca5e,_0x4b23fe,_0x3033d9,_0xc8b0c0)=>{const _0x56ce05=_0x95d569;for(var _0x201f28=_0xc8b0c0>0x1?void 0x0:_0xc8b0c0?To(_0x4b23fe,_0x3033d9):_0x4b23fe,_0x38e381=_0x42ca5e[_0x56ce05(0x259)]-0x1,_0x2560c5;_0x38e381>=0x0;_0x38e381--)(_0x2560c5=_0x42ca5e[_0x38e381])&&(_0x201f28=(_0xc8b0c0?_0x2560c5(_0x4b23fe,_0x3033d9,_0x201f28):_0x2560c5(_0x201f28))||_0x201f28);return _0xc8b0c0&&_0x201f28&&Ro(_0x4b23fe,_0x3033d9,_0x201f28),_0x201f28;},us=(_0x130b0b,_0x4b9ad7)=>(_0x13ab61,_0xa1818d)=>_0x4b9ad7(_0x13ab61,_0xa1818d,_0x130b0b);const Do=[_0x95d569(0x3a9),_0x95d569(0x48e),_0x95d569(0x3fd),'image/gif',_0x95d569(0x310)],Po=0x5*0x400*0x400,wo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',No=_0x95d569(0x1e3),Mo=_0x95d569(0x332),Ao=_0x95d569(0x297);function _0x8441(){const _0x43f026=['fromCollab','createSocket','_onRecvEvent','getInterceptPoints','_entityInit$','unitID','fetch_missing','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_remoteChangesetQueue','_lockTransition','message$','_scheduleHeartbeat','range','actions','_getAPIPrefix','enableLocalCache','toRgbString','#fff','Error','Steady','OnLineSingle','state','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','flatMap','getSheetId','LIVESHARE_NEW_HOST','3mszEFf','getParam','getVpScrollXYInfoByPosToVp','forEach','replace','fetchMissingChangesets','toggleOffline','apply','_scheduleReconnection','_onUserJoin','allowed','labelPosition','APPLY_PERMISSION_DENIED','M0\x200H16V16H0z','send','reduce','FAIL','icon','_onCursorDelete','onPointerEnter$','VIEW_MAIN','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UNKNOWN_CODE','hasOwnProperty','c2Prime','evenodd','getUniverSheetInstance','_backgroundColor','_http','createInstance','onMissedChangesetFetched','changesets','_clearUndo','_renderManagerService','_sheetTransformSelectionsService','getTypeOfUnitAdded$','COMPLETION_FINISHED','_roomMembers$','YUUMI_UNABLE_LOAD_URL','/universer-api/oidc/authpage','encode','onMissingChangesets','stringify','currentSkeleton$','conflict.content','red300','_state','dispose$','_createSocket','c1Prime','/allowed','ERROR_EXCEED_SIZE','popstate','getTypeOfUnitDisposed$','urlChange$','find','_onRemoteChangeset','unsubscribe','json','rgba(255,\x20255,\x20255,\x200.01)','joinEvent','_themeService','addEventListener','registerRefRange','_executeRemoteChangeset','UNIVER_UNKNOWN','_createHandler','SNAPSHOT_HAS_BEEN_REMOVED','_socket$','univer-pro.collaboration-client-socket-service','[OfflineState]:\x20received\x20changeset.','addObjects','split','_anchor','objects','_collabCursorController','_removeCollabCursors','onPointerLeave$','makeDirty','_disabled','_onFetchMissResult','unitId','_onCombEvent','userID','_initModules','session.room-full','image/jpeg','COMMENT_UPDATE','0\x200\x2016\x2016','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','clipPath','debug','_startCollaboration','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_online','startsWith','saveChangeset','_textBubble','row','baseRev','height','_getMergeRange','_permissionService','_updateURLWithCurrentState','CHANGESET_REJ','CHANGESET_ACK','_drawTextRange','defIds','univer-pro.collaboration-client.single-active-unit-service','putCollaborators','readAsDataURL','asObservable','_registerRenderDependencies','Warning','replaceState','withCredentials','2883070OzXiBU','_onRemoteACK','awaitingChangeset','engine','/collaborator','body','addImageSourceCache','children','set','_refRangeService','_cachedData','bottom','setParam','FileId','_initMergeInterceptor','_docTransformSelectionsService','size','LICENSE_MAX_UNITS_EXCEEDED','createElement','csRejEvent','APPLY_NON_SEQUENTIAL_REVISION','_state$','UNIVER_PROJECT','_updateStatus','USERS_ENTER','collaboratorID','online','_clearTimeoutTimer','_onConflict','_showConflictNotification','_tryEnsureSocket','startColumn','1260252xGsWsK','onTransformSelections','HELLO','function','[CollaborationSessionService]:\x20socket\x20error','round','addObject','COLLAB_WEB_SOCKET_URL','_transitionLocked','_getUndoStack','every','restore','_onConnectionFailed','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','permission.title','LEAVE','collab-text-range-','[DataLoaderController]','deleteCollaborator','getCollabEntity$','JOINING','_clearScheduledTask','_docSkeletonManagerService','getCurrentUnitForType','getCollabEntity','onStateChange','updatePermissionObjEvent','_configService','[FetchMissState]','MoveRangeCommandId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','editing\x20status\x20changed\x20to','substring','12625613sRLdEA','replaceTextRanges','_clearCollaborationTimeoutTimer','subUnitId','NEW_CHANGESETS','pluginName','_commentService','getUnitStatus$','_onCursorUpdate','DeleteRangeMoveUpCommandId','NO_OTHER_CLIENTS_EDITING','ERROR_IMAGE','ERROR_IMAGE_TYPE','_entities','roomMembers','SUCCUSS','_collabCursorState$','_heartbeatTimer','parse','transformMutation','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','save','getImage','_cursorInfo$','LIVESHARE_REQUEST_HOST','color','resourceIDs','location','_substituteRedoStack','roles','beginPath','UPDATE_PERMISSION_OBJ','random','transformUndoRedo','_applyRemoteChangeset','_ws','_selfUnitIDs','UniverIcon','_hovered','_clearLocalCache','defineProperty','_updateCollabCursors','getSkeleton','LOGIN_URL_KEY','sheetId','findNodePositionByCharIndex','objectActions','_labelPosition','url(#on-line-single_clip0_910_349)','appendMutation','syncEditingCollabCursor','_lastPointer','_submitChangeset','\x0aCurrent:\x20','_getScale','[CollaborationSession]','text','_memberService','HEADER_MENU','\x0aAfter:\x20','AUTHZ_URL_KEY','_startSheetCollabCursor','file','_beforeCloseService','_cursors','synced','column','_refreshCollabCursors','collab-text-anchor-','disableLocalCache','action','history','onTransformChange$','UNIVER_SLIDE','subunit','_unitID','propertyIsEnumerable','interceptor','focused$','[CollaborationEntity]','close','SNAPSHOT_INVALID_SNAPSHOT','filter','_change$','Unknown\x20user','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/stream/file/upload','colorChannel1','objectID','MUTATION','_fetchMissChangesets','black','displayName','#FFF','getAncestorScale','setWaitCount','AWAITING_WITH_PENDING','FETCH_MISS','use','_initCloseConn','createCollaborator','min','_queuedRemoteChangesets','ALREADY_EXISTS','InsertRangeMoveDownCommandId','onRendered','_scene','state$','measureText','push','pauseCollaboration','_unitOnClients','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','add','setInterval','has','getOwnPropertyDescriptor','_event$','collabStatus.offline','USERS_LEAVE','updateOfflineData','onlineStatus','conflict','onSyncEditingCollabCursor','sheets','_getCtorByUniverType','transformSelections','src','_incrementRevisionNumber','url','unit','JOIN','_collaborationSessionService','compose','values','UNIVER_SHEET','/role','_type','revision','on-line-single_clip0_910_349','_document','from','_onMessage','CONNECTOR_DATA_TOO_LARGE','_exhaustRemoteChangesetQueue','doc.mutation.rich-text-editing','collabCursorState$','onCommandExecuted','getRangePointData','getUndoRedoMutationParamsCache','\x20to\x20','_updateSubUnitFromURLParams','clearTimeout','transformChangesets','_transformUndoredo','/fetchmissing?from=','[SyncedState]:\x20received\x20acknowledgement.','_collabSessionService','mutations','[CollaborationUndoRedoService]','_onUserLeave','encodeURIComponent','_unitStatus','_getUploadFileURL','NOT_COLLAB','incrementRevForDocument','onRemoteAck','setItem','offline','_startDocCollabCursor','\x20in\x20_schedule.','_onRefRangeChange','isEditing','updatePermissionPoint','setShapeProps','defs','_initStatusComponent','_undoStacks','roomInfos','_timeoutTimer','getSheetBySheetId','1em','PERMISSION_DENIED','socket\x20close','_drawRectRange','_updateLocalCursor','_univerInstanceService','post','_registerDependencies','setCurrentUser','transformRemoteChangeset','_replaceFileID','purple300','collabStatus.notCollab','_colorIndex','snapshot','UPDATE_CURSOR','max','_rescheduleHeartbeatEvent','/unit/','_handleHeartbeatEvent','_decreaseWaiting','assignAColorForMemberID','type','length','554516JHLqNw','RETRY_CONNECTING_INTERVAL','skeleton','RECV','_redoStacks','_socketService','drawWith','FromArray','subscribeEvent','&to=','pending','rev','exhaustSavingTask','isActive','_getLoginPath','closeSession','status$','getViewport','_clearOtherTimers','delete','_shapes','UNIVER_DOC','getCurrentRevForDocument','indexOf','name','transformStack\x20failed!','_waitCount','updateMember','[PendingState]:\x20unhandled\x20univer\x20type:\x20','session.will-retry','YUUMI_URL_COL_OUT_OF_RANGE','fill','_HTTPService','HEARTBEAT','16yxqZeM','_getCurrentRevision','_commandService','off-line-single_clip0_910_343','ws://127.0.0.1:8000/universer-api/comb/connect','ONLINE','_syncEditingCollabCursor','getFocusedUnit','CONFLICT','localeService','_sendingTimer','isPermissionRej','disposeWithMe','Starting','attrs','update','DeleteRangeMoveLeftCommandId','_pendingMutations','POST','getResourcesRequest','_messageService','batchAllowed','_undoRedoService','RemoveRowCommandId','_loadDoc','LIVESHARE_TERMINATE','div','/universer-api/file/{fileID}/sign-url','registerRenderModule','YUUMI_SUBSCRIPTION_NOT_FOUND','UNDEFINED','entries','INVALID_ARGUMENT','_getAPIPrefixPath','_draw','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommentUpdate','setTimeout','sessionStatus','getUnitId','_getSnapshotAPIPrefix','prototype','_anchorDot','_initCommandExecutedListener','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_saveTaskMap','blue400','newValue','getUnhiddenWorksheets','removeMember','UNKNOWN_CMD','_eventUnsubscribe','_init','removeParam','univer-online','onSendChangeset','_colorAssignService','onload','getMemberID','_onConnectionOpen','title','toggleOnline','IDLE','_getAnchorBounding','onlineStatusIcon','_onRemoteRejected','getDocRanges','transformByState','arc','show','_acknowledgedAwaitingChangeset','error','_imageSourceCache','deepClone','_name','assign','getActiveSheet','_commentUpdate$','resize','code','[PendingState]:\x20received\x20rejection.','/universer-api/snapshot','m2Prime','extend','_schedule','members','unshift','getMember','_getSendChangesetTimeout','_replayCachedMutations','/new_changes','enableAuthServer','routeKey','PSEUDO_FETCH_MISSING_RESULT','transformMutationsWithChangeset','[PendingState]:\x20received\x20acknowledgement.','getOffsetConfig','submit\x20changeset\x20error!','saveSnapshot','objectType','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_RATE_OVER_LIMIT','subscribe','_color','LOCAL_CACHE_INTERVAL','_initResize','_isPermissionRej','cursorInfo$','put','/object/','_status$','BASE64','getCollabCursors$','fetchThroughInterceptors','fetching\x20missing\x20changesets\x20from\x20','fillRule','session','RETRY_CONNECTING_MAX_COUNT','fillText','_initStatusListener','/-/object/list','textRanges','_unlockTransition','disposeUnit','status','endColumn','LICENSE_DISTRO_REJECTED','_loadSheet','_scheduleClearOtherTimer','uni.network.url-service','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_revisionService','hovered','{fileID}','updateCollaborator','collabStatus.syncing','_removeRoom','_toggleOffline','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_hover','Ready','_transformRemoteChangesetByIMECache','[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.','[OfflineState]:\x20received\x20rejection.','/universer-api/snapshot/','url(#off-line-single_clip0_910_343)','_joinRoom','_assignedColors','image/bmp','collaboration-client.offline-data-not-saved','m1Prime','_id','_transformUndoRedoStack','params','_notificationService','_createInitialStateImpl','selections','_transformIMECache','currentTheme$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','auth.needGotoLoginAlert','_render','[UniverCollaborationClientPlugin]','cursorInfo','leaveEvent','commentUpdate$','_initUnitPermissionChange','_getSheetObject','906rsKxky','enableSingleActiveInstanceLock','getWorkbookSelections','/-/object/-/batch_allowed','INTERNAL_ERROR','close$','url(#$1','getCurrentUser','override','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getUnitType','executeCommand','sessionStatus$','reject','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_sendHeartbeatTimer','_onJoinRoomEvent','getItem','onlyLocal','\x20-\x20','saveImage','InsertRowCommandId','setAlpha','_onLocalMutation','collaMsg','unit-cache-','confirm','_handler','reverse','lineTo','_localCacheService','_scheduleTimestamp','clear','contains','_retryCount','getTime','get','_docSkeleton','save\x20fail\x20reason\x20is\x20','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onRemoteRej','TOO_MANY_REQUESTS','_updateState','_handleJoinEvent','pipe','?size=','_drawAnchor','[OfflineState]:\x20received\x20acknowledgement.','_collaborationTimeoutTimer','_userManagerService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','4536027JYxehU','_syncEditingCollabCursorService','FETCH_MISSING','width','_substituteUndoStack','_session','complete','getCurrentSelections','liveShareNewHost','toString','HEARTBEAT_TIMEOUT','transformIMECache','then','PERMISSION_REJ','onRemoteChangeset','getValue','_sessions','unload','_transformSelections','currentColor','method','_checkMissing','NOT_FOUND','_saveCache','_transformService','transform','UNAUTHENTICATED','_roomMembers','saveOfflineData','OffLineSingle','OFFLINE','call','includes','collab-rect-range-','concat','whenReady','InsertColCommandId','collabStatus.synced','getRoom','_localStorageService','change$','xlink:href','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','error$','requireSession','_socketMessageSubscription','resend','_config','_localeService','_collaborationPaused','_handleHover','failed\x20to\x20apply\x20missed\x20changesets!','fillStyle','font','hide','svg','roomMembers$','init','COMPRESS_MUTATION_SEND','_sheetSkeletonManagerService','SHOULD_CLOSE_CONN','gold400','_snapshotService','_urlService','0\x200\x2017\x2016','_updateLocalCache','getCurrent','LIVESHARE_OPERATION','_members','append','_getRedoStack','univer-online-status-title','_docTransformIMECacheService','_hideTimer','_send','[SyncedState]:\x20received\x20rejection.','UNRECOGNIZED','_httpService','startRow','awaiting','?url=','APPLY_REJECT','image/png','OTHER_CLIENTS_EDITING','_awaitingChangeset','univer-online-status','result','setUndoRedoMutationParamsCache','event$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getUnitOnRev','onMouseMove','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','606lcGMFu','memberID','_handleLeaveEvent','_range','_collaborationController','initWorkbookPermissionChange','_sendHeartbeat','getConfig','generateRandomId','2330nueZkj','string','_transformPreviousActiveRange','APPLY_REVISION_CONFILICT','_singleActiveUnitService','/object','SNAPSHOT_SERVER_URL_KEY','_ensureSubject','unknown','_docSyncEditingCollabCursorService','_createInitialState','getImageSourceCache','isArray','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','map','_socketReady','commentUpdateEvent','_transformStack','translate(.97)','requestParams','SNAPSHOT_URL_KEY','cmd','permission.content','getActiveRange','triggerDblclick','Error\x20on\x20receiving\x20event','loadOfflineData','setActiveRange','DEFAULT_FILE_NAME','_removeClearOtherTimer','_uiPartsService','onTransformIME','_handleEvent','_cursorShapes','current','getRelativeToViewportCoord','endRow','COMPRESS_MUTATION_APPLY','selection','pushState','_compressMutationService','CHANGESET_REVISION_CONFILICT','loadDoc','_context','_sessionStatus$','_cursor','dispose','LIVESHARE_FETCH_OPERATIONS','_clearRedo','_getSignURL','registerHTTPInterceptor','_retryConnectingTimer','_docStateChangeManagerService','_scheduleSaving','originalMeta','href','shouldCloseConn','SYNCED','not_collab','_clearHeartbeatTimer','[CollaborationSessionService]','MSG_FOR_ERROR','next','ACTIVE_UNIT_EVENT_CHANNEL','image/jpg','permissionRejEvent','_setupBeforeClosingHandler','tag','onStarting','_getSaveTimeout','session.collaboration-timeout','246nUFHMs','socketService','data','eventID','searchParams','path','top','editingUnit','_logService','/block/','idSuffix','SUBMIT_CHANGESET','_toggleOnline','csAckEvent','none','patch','clearInterval','_socket','COLLAB_SUBMIT_CHANGESET_URL','onlineStatusTitle','_injector','INGEST','sheetID','_setupSubUnitSync','on-line-single'];_0x8441=function(){return _0x43f026;};return _0x8441();}let Pt=class{constructor(_0x6487c3,_0x1eb2d5){const _0x36763d=_0x95d569;_(this,_0x36763d(0x274),0x0),_(this,_0x36763d(0x1e0),new _0x5c132d()),_(this,_0x36763d(0x37f),this[_0x36763d(0x1e0)]),_(this,_0x36763d(0x2c4),new Map()),(this['_httpService']=_0x6487c3,this[_0x36763d(0x4e7)]=_0x1eb2d5);}[_0x95d569(0x1ec)](_0x4b5667){const _0x5863e2=_0x95d569;this[_0x5863e2(0x274)]=_0x4b5667,this[_0x5863e2(0x1e0)][_0x5863e2(0x3fb)](_0x4b5667);}[_0x95d569(0x3c8)](_0x540c10,_0x5c65fd){const _0xf7f152=_0x95d569;if(_0x5c65fd===_0x5829cc[_0xf7f152(0x2eb)]){const _0x545182=new Image();return _0x545182[_0xf7f152(0x20c)]=_0x540c10,_0x545182;}return this[_0xf7f152(0x2c4)][_0xf7f152(0x348)](_0x540c10);}[_0x95d569(0x4b2)](_0x4bd2fe,_0x361474,_0x1f9b6b){const _0x25789e=_0x95d569;_0x361474===_0x5829cc[_0x25789e(0x2eb)]||_0x1f9b6b==null||this['_imageSourceCache'][_0x25789e(0x4b4)](_0x4bd2fe,_0x1f9b6b);}async[_0x95d569(0x503)](_0x5ebeb1){const _0x5e4ac4=_0x95d569;try{const _0x3f0b93=this[_0x5e4ac4(0x24c)](this[_0x5e4ac4(0x3ee)](),''+_0x5ebeb1),_0x102470=(await this[_0x5e4ac4(0x3a4)][_0x5e4ac4(0x348)](_0x3f0b93))[_0x5e4ac4(0x4b1)];return _0x102470[_0x5e4ac4(0x2c3)]&&_0x102470[_0x5e4ac4(0x2c3)][_0x5e4ac4(0x2cb)]===Ps['OK']?Promise['resolve'](_0x102470[_0x5e4ac4(0x20e)]):Promise[_0x5e4ac4(0x331)](_0x102470['error']);}catch(_0xb9a9c4){return Promise[_0x5e4ac4(0x331)](_0xb9a9c4);}}async[_0x95d569(0x338)](_0x15365e){const _0x3d7dd2=_0x95d569;let _0x29a250='';if(!Do['includes'](_0x15365e[_0x3d7dd2(0x258)]))return this[_0x3d7dd2(0x256)](),Promise['reject'](new Error(_0x140b1e[_0x3d7dd2(0x4f9)]));if(_0x15365e[_0x3d7dd2(0x4bc)]>Po)return this[_0x3d7dd2(0x256)](),Promise[_0x3d7dd2(0x331)](new Error(_0x140b1e[_0x3d7dd2(0x46b)]));try{const _0x1dba7b=new FormData();_0x1dba7b[_0x3d7dd2(0x39c)](_0x3d7dd2(0x1cb),_0x15365e);const _0x350d5a=this[_0x3d7dd2(0x230)]()+_0x3d7dd2(0x351)+_0x15365e[_0x3d7dd2(0x4bc)][_0x3d7dd2(0x360)](),_0x3a289f=await(await fetch(_0x350d5a,{'method':'POST','body':_0x1dba7b}))[_0x3d7dd2(0x472)]();if(typeof _0x3a289f[_0x3d7dd2(0x4b9)]!='string')return this[_0x3d7dd2(0x256)](),Promise[_0x3d7dd2(0x331)](new Error(_0x140b1e[_0x3d7dd2(0x4f8)]));_0x29a250=_0x3a289f[_0x3d7dd2(0x4b9)];}catch{return this['_decreaseWaiting'](),Promise[_0x3d7dd2(0x331)](new Error(_0x140b1e[_0x3d7dd2(0x4f8)]));}return new Promise((_0x160972,_0x5d7db0)=>{const _0xceb0d4=_0x3d7dd2,_0x3ea604=new FileReader();_0x3ea604[_0xceb0d4(0x4a6)](_0x15365e),_0x3ea604[_0xceb0d4(0x2b5)]=_0x364e4a=>{const _0x309e73=_0xceb0d4;var _0x2fee59;const _0x418812=(_0x2fee59=_0x364e4a['target'])==null?void 0x0:_0x2fee59[_0x309e73(0x3ad)];if(_0x418812==null){this['_decreaseWaiting'](),_0x5d7db0(new Error(_0x140b1e[_0x309e73(0x4f8)]));return;}const _0x269c95=_0x23908f[_0x309e73(0x3bc)](0x6);_0x160972({'imageId':_0x269c95,'imageSourceType':_0x5829cc['UUID'],'source':_0x29a250,'base64Cache':_0x418812,'status':_0x140b1e[_0x309e73(0x4fc)]}),this[_0x309e73(0x256)]();};});}[_0x95d569(0x230)](){const _0x128cc4=_0x95d569;var _0x23b9a3;return(_0x23b9a3=this[_0x128cc4(0x4e7)][_0x128cc4(0x3bb)](wo))!=null?_0x23b9a3:No;}[_0x95d569(0x3ee)](){const _0x17117e=_0x95d569;var _0x47606e;return(_0x47606e=this[_0x17117e(0x4e7)][_0x17117e(0x3bb)](Mo))!=null?_0x47606e:Ao;}[_0x95d569(0x24c)](_0x163a39,_0x3047ce){const _0x3a2921=_0x95d569;return _0x163a39[_0x3a2921(0x43c)](_0x3a2921(0x301),_0x3047ce);}[_0x95d569(0x256)](){const _0x1972be=_0x95d569;this['_waitCount']-=0x1,this['_change$'][_0x1972be(0x3fb)](this[_0x1972be(0x274)]);}};Pt=Oo([us(0x0,_0x5e8fa6(_0x35659e)),us(0x1,_0x3e2b80)],Pt);var yo=Object['defineProperty'],Uo=Object[_0x95d569(0x201)],Lo=(_0x350505,_0x2e79ec,_0x3dc7f3,_0x2b0d06)=>{const _0x5be153=_0x95d569;for(var _0x47bc71=_0x2b0d06>0x1?void 0x0:_0x2b0d06?Uo(_0x2e79ec,_0x3dc7f3):_0x2e79ec,_0x1dd7e2=_0x350505[_0x5be153(0x259)]-0x1,_0x1df9fe;_0x1dd7e2>=0x0;_0x1dd7e2--)(_0x1df9fe=_0x350505[_0x1dd7e2])&&(_0x47bc71=(_0x2b0d06?_0x1df9fe(_0x2e79ec,_0x3dc7f3,_0x47bc71):_0x1df9fe(_0x47bc71))||_0x47bc71);return _0x2b0d06&&_0x47bc71&&yo(_0x2e79ec,_0x3dc7f3,_0x47bc71),_0x47bc71;},Ne=(_0x327daf,_0x3eacfc)=>(_0x563ae3,_0x35e78c)=>_0x3eacfc(_0x563ae3,_0x35e78c,_0x327daf);let We=class extends _0x24c298{constructor(_0x22053d,_0x13c52e,_0x597f4e,_0x456221,_0x1d36d9){const _0x2acb67=_0x95d569;super(),this[_0x2acb67(0x418)]=_0x22053d,this['_univerInstanceService']=_0x13c52e,this[_0x2acb67(0x49e)]=_0x597f4e,this[_0x2acb67(0x211)]=_0x456221,this[_0x2acb67(0x387)]=_0x1d36d9,this[_0x2acb67(0x322)](),this[_0x2acb67(0x1f0)]();}[_0x95d569(0x1f0)](){const _0x48ffcf=_0x95d569,_0x4d2774=async _0x2c1d38=>{const _0x59150d=_0x163c;(await this[_0x59150d(0x211)][_0x59150d(0x383)](_0x2c1d38))[_0x59150d(0x3af)]['pipe'](_0x3510ec(_0x14a317=>_0x14a317[_0x59150d(0x407)]===_0x47d699[_0x59150d(0x393)]),_0x2ec744(this[_0x59150d(0x467)]))[_0x59150d(0x2e2)](_0x1e2111=>{const _0x53c018=_0x59150d,_0x5a0b3a=_0x1e2111,{reason:_0x4dc52f}=_0x5a0b3a[_0x53c018(0x406)];this[_0x53c018(0x418)]['get'](_0x514d5b)[_0x53c018(0x2c1)]({'type':_0x3a56fd['Error'],'content':this[_0x53c018(0x387)]['t']('collaboration.closeRoom')+'('+_0x4dc52f+')'}),this['_permissionService'][_0x53c018(0x23a)](new _0x3fd1e9(_0x2c1d38)['id'],!0x1),this['_collaborationSessionService'][_0x53c018(0x269)](_0x2c1d38);});};_0x5eefa8(this[_0x48ffcf(0x247)][_0x48ffcf(0x45b)](_0xe799c1['UNIVER_SHEET']),this[_0x48ffcf(0x247)][_0x48ffcf(0x45b)](_0xe799c1['UNIVER_DOC']))[_0x48ffcf(0x350)](_0x244108(_0x5d2f1a=>_0x5d2f1a[_0x48ffcf(0x2a3)]()),_0x3510ec(_0x3b4048=>!_0x545133(_0x3b4048)),_0x2ec744(this[_0x48ffcf(0x467)]))[_0x48ffcf(0x2e2)](_0x132fd6=>{_0x4d2774(_0x132fd6);});}['_initUnitPermissionChange'](){const _0x417784=_0x95d569,_0x3198aa=async _0x5c3acd=>{const _0x3c4590=_0x163c;(await this['_collaborationSessionService'][_0x3c4590(0x383)](_0x5c3acd))[_0x3c4590(0x3af)]['pipe'](_0x3510ec(_0x4c481b=>_0x4c481b[_0x3c4590(0x407)]===_0x47d699[_0x3c4590(0x50c)]),_0x2ec744(this[_0x3c4590(0x467)]))[_0x3c4590(0x2e2)](_0x22d3bd=>{const _0x27c6e6=_0x3c4590,_0x251bdb=_0x22d3bd,{objectId:_0xf42709}=_0x251bdb[_0x27c6e6(0x406)];_0xf42709===_0x5c3acd&&this[_0x27c6e6(0x418)]['get'](_0x598be7)[_0x27c6e6(0x3b9)](_0x5c3acd);});};_0x5eefa8(this[_0x417784(0x247)][_0x417784(0x45b)](_0xe799c1[_0x417784(0x214)]),this[_0x417784(0x247)]['getTypeOfUnitAdded$'](_0xe799c1[_0x417784(0x26f)]))['pipe'](_0x244108(_0x564ed7=>_0x564ed7[_0x417784(0x2a3)]()),_0x3510ec(_0x55a737=>!_0x545133(_0x55a737)),_0x2ec744(this[_0x417784(0x467)]))[_0x417784(0x2e2)](_0x370623=>{_0x3198aa(_0x370623);});}};We=Lo([_0x5c6f39(_0x34adae[_0x95d569(0x289)],We),Ne(0x0,_0x5e8fa6(_0x1eb3c6)),Ne(0x1,_0x4ef500),Ne(0x2,_0x8d48d),Ne(0x3,_0x5e8fa6(pe)),Ne(0x4,_0x5e8fa6(_0x1dc83a))],We);var Hs=Object['defineProperty'],$o=Object[_0x95d569(0x201)],jo=(_0x10985c,_0x344f01,_0xb88446)=>_0x344f01 in _0x10985c?Hs(_0x10985c,_0x344f01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb88446}):_0x10985c[_0x344f01]=_0xb88446,xo=(_0x276b3d,_0x23d4d2,_0x19becb,_0x2679db)=>{const _0x444a3c=_0x95d569;for(var _0x500907=_0x2679db>0x1?void 0x0:_0x2679db?$o(_0x23d4d2,_0x19becb):_0x23d4d2,_0x4263c3=_0x276b3d[_0x444a3c(0x259)]-0x1,_0x1e68f4;_0x4263c3>=0x0;_0x4263c3--)(_0x1e68f4=_0x276b3d[_0x4263c3])&&(_0x500907=(_0x2679db?_0x1e68f4(_0x23d4d2,_0x19becb,_0x500907):_0x1e68f4(_0x500907))||_0x500907);return _0x2679db&&_0x500907&&Hs(_0x23d4d2,_0x19becb,_0x500907),_0x500907;},mt=(_0x262981,_0x267b49)=>(_0x1151b6,_0x16e36d)=>_0x267b49(_0x1151b6,_0x16e36d,_0x262981),Ho=(_0x5cb12b,_0x1b807c,_0x36ca97)=>jo(_0x5cb12b,_0x1b807c+'',_0x36ca97);const ko='UNIVER_COLLABORATION_CLIENT_PLUGIN';let wt=class extends _0x8ddb93{constructor(_0x583da2,_0x19f0e3,_0x6fc750,_0x38aa3f){const _0x54e5f1=_0x95d569;super(),this[_0x54e5f1(0x386)]=_0x583da2,this['_logService']=_0x19f0e3,this['_renderManagerService']=_0x6fc750,this[_0x54e5f1(0x418)]=_0x38aa3f;}[_0x95d569(0x401)](_0x39e94b){const _0x1579d3=_0x95d569;this[_0x1579d3(0x249)](_0x39e94b);}[_0x95d569(0x1f6)](){const _0x1d39a3=_0x95d569;this[_0x1d39a3(0x4a8)]();}[_0x95d569(0x249)](_0xb5dbfb){const _0x5541a=_0x95d569;var _0x2b636a,_0x15f75d,_0x20f2cf,_0x51049a;_0xb5dbfb[_0x5541a(0x200)](_0x2ea03b)&&this[_0x5541a(0x40c)][_0x5541a(0x2c3)](_0x5541a(0x31e),_0x5541a(0x4d9));let _0x290e32=[[_0x2ea03b,{'useClass':Ot}],[pe],[xt],[_0x35659e],[xs,{'useClass':oo}],[ne],[D],[_0x2f6c9c],[qe],[ze],[Je],[jt],[Qe],[Ns],[We],[ws,{'useClass':(_0x15f75d=(_0x2b636a=this[_0x5541a(0x386)])==null?void 0x0:_0x2b636a[_0x5541a(0x405)])!=null?_0x15f75d:pt}],[_0x8b7d4b,{'useClass':_0x39693e}],[_0xa793c1,{'useClass':Tt}],[_0x18103e,{'useClass':Dt}],[_0x599182,{'useClass':Pt}],[Me],[Fe],[ke],[Ve],[ge]];(_0x20f2cf=this[_0x5541a(0x386)])!=null&&_0x20f2cf[_0x5541a(0x325)]&&_0x290e32[_0x5541a(0x1fa)]([tt,{'useClass':kn}]),_0x290e32=_0x4a2f3c(_0x290e32,(_0x51049a=this['_config'])==null?void 0x0:_0x51049a[_0x5541a(0x32c)]),_0x290e32[_0x5541a(0x43b)](_0x5626c4=>_0xb5dbfb['add'](_0x5626c4)),this['_initModules']();}[_0x95d569(0x4a8)](){const _0x1cc4aa=_0x95d569;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0xe799c1[_0x1cc4aa(0x26f)],[Be])),this[_0x1cc4aa(0x288)](this[_0x1cc4aa(0x459)][_0x1cc4aa(0x298)](_0xe799c1[_0x1cc4aa(0x214)],[Rt]));}[_0x95d569(0x48c)](){const _0x1cc677=_0x95d569;var _0x1d5b96,_0x5c174c;this[_0x1cc677(0x418)]['get'](_0x35659e)[_0x1cc677(0x3ef)]({'priority':0x14,'interceptor':_0x429f1a({'maxParallel':0x6})}),(_0x1d5b96=this[_0x1cc677(0x386)])!=null&&_0x1d5b96['enableOfflineEditing']||this[_0x1cc677(0x418)][_0x1cc677(0x348)](D)[_0x1cc677(0x1d2)](),(_0x5c174c=this[_0x1cc677(0x386)])!=null&&_0x5c174c[_0x1cc677(0x2d7)]&&this[_0x1cc677(0x418)][_0x1cc677(0x348)](Qe);}};Ho(wt,_0x95d569(0x4f2),ko),wt=xo([_0x24c416(_0x4b9394),mt(0x1,_0x71acc2),mt(0x2,_0x4db11d),mt(0x3,_0x5e8fa6(_0x1eb3c6))],wt);export{Co as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,En as COLLAB_SUBMIT_CHANGESET_URL_KEY,ln as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,vt as CollaborationSession,pe as CollaborationSessionService,pt as CollaborationSocketService,P as CollaborationStatus,Fr as CollaborationStatusDisplay,Ns as CommentService,Fe as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,dn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,ws as ICollaborationSocketService,xs as IURLService,Pt as ImageIoService,vn as LOCAL_CACHE_INTERVAL_KEY,bn as LOGIN_URL_KEY,D as LocalCacheService,hn as SEND_CHANGESET_TIMEOUT_KEY,on as SNAPSHOT_SERVER_URL_KEY,cn as SNAPSHOT_URL_KEY,fe as SessionStatus,br as SheetCollabCursorShape,Et as SheetCollaborationEntity,Tt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,oo as WebURLService,wn as deserializeToCombResponse,Nn as serializeCombRequest};