@univerjs-pro/collaboration-client 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x87081d=_0x1fa5;(function(_0x47026a,_0x2fa4e1){const _0x29188b=_0x1fa5,_0x58f3ab=_0x47026a();while(!![]){try{const _0xb09fe6=-parseInt(_0x29188b(0x29a))/0x1*(-parseInt(_0x29188b(0x336))/0x2)+parseInt(_0x29188b(0x34e))/0x3*(parseInt(_0x29188b(0x3a3))/0x4)+-parseInt(_0x29188b(0x467))/0x5*(parseInt(_0x29188b(0x287))/0x6)+parseInt(_0x29188b(0x413))/0x7*(-parseInt(_0x29188b(0x3d0))/0x8)+parseInt(_0x29188b(0x4d2))/0x9+-parseInt(_0x29188b(0x33d))/0xa+parseInt(_0x29188b(0x495))/0xb;if(_0xb09fe6===_0x2fa4e1)break;else _0x58f3ab['push'](_0x58f3ab['shift']());}catch(_0x427a9a){_0x58f3ab['push'](_0x58f3ab['shift']());}}}(_0x9ef4,0xc28e3));var Ys=Object['defineProperty'],Ks=(_0x1b3f2a,_0x1d18f6,_0x14c65b)=>_0x1d18f6 in _0x1b3f2a?Ys(_0x1b3f2a,_0x1d18f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c65b}):_0x1b3f2a[_0x1d18f6]=_0x14c65b,_=(_0x205f17,_0x37f84f,_0x414abf)=>Ks(_0x205f17,typeof _0x37f84f!=_0x87081d(0x38e)?_0x37f84f+'':_0x37f84f,_0x414abf);import{Disposable as _0x1ee863,toDisposable as _0x3b697b,UniverInstanceType as _0x5a714d,Inject as _0x1b956a,UserManagerService as _0x17e09a,IUniverInstanceService as _0x1d5396,createIdentifier as _0x1b08c0,DisposableCollection as _0x173e9c,IConfigService as _0x5d255f,ILogService as _0x82a609,RxDisposable as _0x53ce5a,LocaleService as _0x2db4b8,Injector as _0x4bf6fc,ILocalStorageService as _0x4b5ce8,Tools as _0x1540f0,ICommandService as _0x15992c,JSONX as _0x4266b8,CommandType as _0xc9d637,IPermissionService as _0x5543f8,IUndoRedoService as _0x22132f,sequenceExecute as _0x2a22c6,OnLifecycle as _0x76d0ae,LifecycleStages as _0x28e3b0,Optional as _0x4b698d,Rectangle as _0x1ec52a,ThemeService as _0x4a7906,useDependency as _0x178612,connectInjector as _0x5458e2,Workbook as _0x4ae2cc,LocalUndoRedoService as _0x54179a,IContextService as _0x492a6b,COLORS as _0x5212b1,ColorKit as _0x5c6173,fromEventSubject as _0x240261,isInternalEditorID as _0x387ac1,Plugin as _0x153d86,IAuthzIoService as _0x2d6512,mergeOverrideWithDependencies as _0x5a0091,DependentOn as _0x425aa7}from'@univerjs/core';import{SheetsSelectionsService as _0x5973ef,SetSelectionsOperation as _0x2ce045,InsertSheetMutation as _0x171b5c,EmptyMutation as _0x53ecf2,WorkbookEditablePermission as _0x372984,RefRangeService as _0x2d0dd9,EffectRefRangId as _0x5a0c0b,handleIRemoveRow as _0x39a961,handleIRemoveCol as _0xf02d80,handleMoveRange as _0x3504f5,handleInsertRow as _0x2d43e9,handleInsertRangeMoveRight as _0x320b17,handleInsertRangeMoveDown as _0x5e73fe,handleInsertCol as _0x1d6b1e,handleDeleteRangeMoveUp as _0x3ada4b,handleDeleteRangeMoveLeft as _0x35f3b3,runRefRangeMutations as _0x30e48b,SetWorksheetActivateCommand as _0x53a25c}from'@univerjs/sheets';import{MessageType as _0x4dda16}from'@univerjs/design';import{IBeforeCloseService as _0x276384,IMessageService as _0x14fd53,INotificationService as _0x11083e,useObservable as _0x1e1781,BuiltInUIPart as _0x41f3dc,IUIPartsService as _0x1ccd4c}from'@univerjs/ui';function _0x9ef4(){const _0x2468a3=['[SyncedState]:\x20received\x20acknowledgement.','ALREADY_EXISTS','subUnitId','_checkMissing','USERS_ENTER','/rev/','show','_transformPreviousActiveRange','hide','119OeAuFe','members','onRendered','NEW_CHANGESETS','evenodd','/unit/','pending','_updateCollabCursors','socketService','_updateState','children','mutations','SUCCUSS','currentSkeleton$','filter','submit\x20changeset\x20error!','_redoStacks','JOINING','_state','/allowed','createInstance','params','&assign=','enableAuthServer','collaboration-client.offline-data-not-saved','[CollaborationUndoRedoService]','[SyncedState]:\x20received\x20rejection.','[CollaborationEntity]','_collabCursorState$','_themeService','UNKNOWN_CODE','_removeRoom','onSyncEditingCollabCursor','removeMember','allowed','_color','_event$','_userManagerService','JOIN','_queuedRemoteChangesets','transformMutationsWithChangeset','getImage','HEARTBEAT_TIMEOUT','makeDirty','_renderManagerService','_injector','awaiting','[OfflineState]:\x20received\x20acknowledgement.','socket\x20open.','setWaitCount','_executeRemoteChangeset','M0\x200H16V16H0z','addImageSourceCache','_socketReady','m1Prime','icon','COLLAB_WEB_SOCKET_URL','pauseCollaboration','_urlService','pushState','_sendingTimer','close$','INGEST','LIVESHARE_FETCH_OPERATIONS','getDocRanges','toString','/-/object/-/batch_allowed','joinEvent','_hideTimer','_incrementRevisionNumber','getItem','_localeService','getTime','_shapes','getCellPositionByOffset','Unknown\x20user','location','_beforeCloseService','src','loadDoc','_getSendChangesetTimeout','rev','_scheduleHeartbeat','_onCursorDelete','30JcppEW','offline','_clearScheduledTask','length','_selfUnitIDs','red300','_undoRedoService','_createHandler','_sendHeartbeatTimer','_unitStatus','UNIVER_SHEET','OTHER_CLIENTS_EDITING','image/jpg','interceptor','catch','editing\x20status\x20changed\x20to','_onCombEvent','_onUserJoin','substring','[CollaborationSession]','onTransformChange$','type','_setupBeforeClosingHandler','RemoveRowCommandId','transformMutation','put','liveShareNewHost','csAckEvent','unitId\x20is\x20not\x20found','_textBubble','_context','height','Starting','assignAColorForMemberID','_state$','setInterval','awaitingChangeset','_cursorShapes','_getUndoStack','_notificationService','_cursorInfo$','_localStorageService','_roomMembers','getResourcesRequest','saveChangeset','_assignedColors','12327601ksGrbi','_snapshotServerService','withCredentials','setCurrentUser','headers','current','_getRedoStack','NOT_COLLAB','_anchor','ranges','_getAPIPrefix','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_registerDependencies','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','editingUnit','_getUploadFileURL','_http','_registerRenderDependencies','currentColor','cursorInfo','_lastPointer','_onCursorUpdate','startsWith','tag','/collaborator','CHANGESET_REJ','set','univer-pro.collaboration-client-socket-service','_onRecvEvent','closeSession','_socket$','black','_httpService','cmd','0\x200\x2017\x2016','_collabCursorController','prototype','Error\x20on\x20receiving\x20event','collab-rect-range-','_retryConnectingTimer','_onMessage','attrs','path','NO_OTHER_CLIENTS_EDITING','{fileID}','_docTransformSelectionsService','[UniverCollaborationClientPlugin]','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','idSuffix','[CollaborationSessionService]:\x20socket\x20error','gold400','synced','sheets','_getSaveTimeout','/resources','measureText','isPermissionRej','_hover','moveTo','top','onlyLocal','6566697tSVliI','_transformStack','UUID','debug','xlink:href','_labelPosition','LIVESHARE_TERMINATE','encode','/role','_schedule','toggleOffline','onStateChange','_startDocCollabCursor','_initMergeInterceptor','[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.','_onLocalMutation','_submitChangeset','_status$','SUBMIT_CHANGESET','body','getCurrentUnitForType','getFocusedUnit','roomMembers','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','MUTATION','_disableEditing','drawWith','focused$','_updateSubUnitFromURLParams','createSocket','actions','onMouseMove','csRejEvent','image/gif','on-line-single_clip0_910_349','history','_collaborationSessionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onSendChangeset','_revisionService','_name','list','_init','next','[PendingState]:\x20received\x20rejection.','Error','onPointerEnter$','_initStatusListener','column','getCollabEntity$','onlineStatusTitle','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','onlineStatus','code','UnitSnapshot','_getAPIPrefixPath','split','push','random','_collabSessionService','getMember','_transformRemoteChangesetByIMECache','_localCacheService','transformSelections','initWorkbookPermissionChange','USERS_LEAVE','_members','getUnitId','clipPath','session','ACTIVE_UNIT_EVENT_CHANNEL','_waitCount','fillStyle','_createInitialState','url','POST','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','message$','_socketMessageSubscription','UNIVER_DOC','_document','createElement','getUniverSheetInstance','/universer-api/file/{fileID}/sign-url','CONNECTOR_DATA_TOO_LARGE','SEND_CHANGESET_TIMEOUT','forEach','_initCloseConn','setAlpha','_toggleOnline','width','setUndoRedoMutationParamsCache','userID','function','_showConflictNotification','_docStateChangeManagerService','UNIVER_SLIDE','_anchorDot','_permissionService','_commentService','saveSheetBlock','collab-text-anchor-','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','loadOfflineData','fillText','not_collab','triggerDblclick','updatePermissionPoint','COMMENT_UPDATE','commentUpdateEvent','text','_clearLocalCache','_retryCount','SYNCED','_substituteUndoStack','_collaborationController','TOO_MANY_REQUESTS','OffLineSingle','collaboration.single-unit.warning','get','responseType','_cursors','reduce','InsertRangeMoveRightCommandId','updateMember','_getScale','blue400','bottom','transformUndoRedo','resourceIDs','_transformSelections','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','getParam','_getSheetObject','_syncEditingCollabCursor','_sheetTransformSelectionsService','createCollaborator','_backgroundColor','from','onTransformRemoteChangesetByIMECache','_getSnapshotAPIPrefix','socket\x20close','collabStatus.offline','UNDEFINED','string','_docTransformIMECacheService','permission.title','Steady','colorChannel1','getActiveRange','_lockTransition','FAIL','_sessionStatus$','unitId','UPDATE_PERMISSION_OBJ','textRanges','dispose$','_sheetSkeletonManagerService','backgroundColor','setParam','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','MSG_FOR_ERROR','storage','HttpExport','requestParams','getVpScrollXYInfoByPosToVp','exhaustSavingTask','UniverIcon','saveImage','_updateLocalCache','IDLE','key','_sessions','json','_session','FETCH_MISSING','enableLocalCache','getTypeOfUnitDisposed$','executeCommand','asObservable','verdancy600','indexOf','purple300','listCollaborators','HELLO','collabStatus.synced','[OfflineState]:\x20received\x20changeset.','_getMergeRange','saveSnapshot','selections','_clearCollaborationTimeoutTimer','_onRefRangeChange','Univer','_docSyncEditingCollabCursorService','map','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','_handleEvent','addObject','whenReady','updateOfflineData','getCollabCursors$','dispose','NOT_FOUND','_clearOtherTimers','close','use','getMemberID','collabCursorState$','_messageService','UNKNOWN_CMD','isEditing','clearTimeout','values','_commandService','LICENSE_EXPORT_SIZE_EXCEEDED','unknown','&to=','skeleton','registerRefRange','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getSheetBlock','_initUnitPermissionChange','encodeURIComponent','_configService','send','max','fromCollab','onRemoteRej','getUnhiddenWorksheets','_colorAssignService','CHANGESET_ACK','hovered','FileId','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_eventUnsubscribe','size','DeleteRangeMoveUpCommandId','COMPLETION_FINISHED','conflict.content','_tryEnsureSocket','getMergeData','_colorIndex','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PERMISSION_DENIED','save','_rescheduleHeartbeatEvent','update','_HTTPService','_initResize','_clearTimeoutTimer','_docSkeletonManagerService','complete','fetchMissingChangesets','YUUMI_RATE_OVER_LIMIT','_isPermissionRej','Undefined','collab-text-range-','engine','getValue','syncEditingCollabCursor','_uiPartsService','/universer-api/snapshot','onTransformSelections','_setupSubUnitSync','_change$','getCurrentRevForDocument','searchParams','getWorkbookSelections','open$','displayName','_compressMutationService','OnLineSingle','_scheduleClearOtherTimer','getCollabEntity','on-line-single','session.connection-failed','483108ZOhfOo','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','error','sheetId','collaboration.closeRoom','_socketService','/universer-api/comb','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ONLINE','_transformService','clear','_clearRedo','_scheduleReconnection','urlChange$','color','\x20to\x20','_getSignURL','fetchThroughInterceptors','_transformUndoRedoStack','1163649kqLdBA','_docSkeleton','fill','registerComponent','flatMap','replaceTextRanges','doc.mutation.rich-text-editing','SNAPSHOT_HAS_BEEN_REMOVED','_initCommandExecutedListener','error$','_initModules','_onUserLeave','url(#$1','listRoles','unsubscribe','_render','_applyRemoteChangeset','YUUMI_UNABLE_LOAD_URL','add','_unitID','_refreshCollabCursors','_scheduleSaving','_decreaseWaiting','generateRandomId','UNIVER_PROJECT','setActiveRange','_onJoinRoomEvent','baseRev','\x20in\x20_schedule.','getViewport','DeleteRangeMoveLeftCommandId','[DataLoaderController]','HEADER_MENU','_univerInstanceService','_handleJoinEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_cursor','memberID','_drawTextRange','LIVESHARE_OPERATION','session.will-retry','clearInterval','OFFLINE','save\x20fail\x20reason\x20is\x20','getTypeOfUnitAdded$','_config','_getCtorByUniverType','propertyIsEnumerable','_drawAnchor','getCurrent','_commentUpdate$','newCsEvent','call','deepClone','infoRsp','LIVESHARE_REQUEST_HOST','url(#off-line-single_clip0_910_343)','HttpImport','isArray','sessionStatus','getSkeleton','state$','patch','trim','state','onRemoteAck','_handleHover','toRgbString','contains','jiqing500','_saveTaskMap','deleteCollaborator','getOffsetConfig','cursorInfo$','stringify','_memberService','_transitionLocked','endRow','_range','labelPosition','selection','getUnitType','_acknowledgedAwaitingChangeset','addEventListener','_updateStatus','_initStatusComponent','range','transformChangesets','fillRule','restore','compose','sessionStatus$','sheetID','fetching\x20missing\x20changesets\x20from\x20','collabStatus.syncing','auth.needGotoLoginAlert','DEFAULT_FILE_NAME','getSheetId','defIds','assign','_onConflict','_loadDoc','_substituteRedoStack','UNAUTHENTICATED','_ensureSubject','_onRemoteACK','_socket','incrementRevForDocument','_joinRoom','registerOnClose','includes','_replayCachedMutations','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_syncEditingCollabCursorService','objectType','LIVESHARE_NEW_HOST','YUUMI_URL_COL_OUT_OF_RANGE','init','_drawRectRange','unit','disableLocalCache','getOwnPropertyDescriptor','conflict.title','requireSession','_disabled','defineProperty','UNIVER_UNKNOWN','div','getInterceptPoints','data','_unitOnClients','changesets','transformRemoteChangeset','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNRECOGNIZED','transformByState','_startCollaboration','objects','RETRY_CONNECTING_INTERVAL','event$','?size=','getRoom','unit-cache-','disposeUnit','getCurrentSelections','setShapeProps','enableOfflineEditing','UnitEmbedded','...','[OfflineState]:\x20received\x20rejection.','_awaitingChangeset','COMPRESS_MUTATION_APPLY','_type','univer-online-status','getSheetBySheetId','2HBpnEP','rgba(255,\x20255,\x20255,\x200.01)','pluginName','HEARTBEAT','status$','_onFetchMissResult','name','9238930UDSLhr','_createInitialStateImpl','SNAPSHOT_INVALID_SNAPSHOT','_toggleOffline','leaveEvent','onMissedChangesetFetched','disposeWithMe','_collaborationPaused','getUnitOnRev','onCommentUpdate','subscribe','getOwnPropertySymbols','PENDING','updatePermissionObjEvent','apply','appendMutation','/-/object/list','9OULMde','/universer-api/snapshot/','resize','_online','_startSheetCollabCursor','_waitForHeartbeatResponse','_getLoginPath','objectID','_id','0\x200\x2016\x2016','_hovered','awaiting_with_pending','[CollaborationSessionService]','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endColumn','translate(.97)','_cachedData','revision','startRow','_snapshotService','snapshot','resend','1em','CHANGESET_REVISION_CONFILICT','BASE64','getAncestorScale','getUndoRedoMutationParamsCache','hasOwnProperty','registerBeforeClose','_unlockTransition','APPLY_NON_SEQUENTIAL_REVISION','session.collaboration-timeout','replaceState','m2Prime','objectActions','replace','_collaborationTimeoutTimer','UPDATE_CURSOR','_getCurrentRevision','ERROR_IMAGE_TYPE','some','unshift','reject','activeSheet$','image/bmp','_clearUndo','target','INVALID_ARGUMENT','_replaceFileID','LOGIN_URL_KEY','&source=','AUTHZ_URL_KEY','has','currentTheme$','toggleOnline','_saveCache','isActive','append','_sendHeartbeat','roomMembers$','getConfig','round','joinRsp','defs','symbol','APPLY_REJECT','setItem','_draw','RECV','_createSocket','_fetchMissChangesets','registerHTTPInterceptor','closePath','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboratorID','image/png','then','min','_clearHeartbeatTimer','_ws','c1Prime','connection\x20error','registerRenderModule','font','/new_changes','452056WfidAq','failed\x20to\x20apply\x20missed\x20changesets!','fetch_missing','_updateURLWithCurrentState','setTimeout','unitID','status','ws://127.0.0.1:8000/universer-api/comb/connect','subunit','_scheduleTimestamp','getRangePointData','row','/universer-api/oidc/authpage','Warning','getCurrentUser','FromArray','INTERNAL_ERROR','localeService','_loadSheet','pipe','conflict','_removeClearOtherTimer','onCommandExecuted','eventID','/object/','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.conflict','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','_onRemoteRejected','_undoStacks','Ready','_pendingMutations','onload','getActiveSheet','SHOULD_CLOSE_CONN','_onConnectionFailed','delete','saveOfflineData','_onConnectionOpen','_getAnchorBounding','resolve','originalMeta','_heartbeatTimer','onPointerLeave$','result','540760IDycKS','slice','file','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','onRemoteChangeset','_timeoutTimer','onStarting','getUnitStatus$','_removeCollabCursors','_roomMembers$','univerjs-icon\x20univerjs-icon-','SNAPSHOT_SERVER_URL_KEY','url(#on-line-single_clip0_910_349)','[PendingState]:\x20received\x20acknowledgement.','_scene','MoveRangeCommandId','_transformIMECache','svg','href','findNodePositionByCharIndex','entries','_imageSourceCache','_logService','lineTo','off-line-single_clip0_910_343','every','find','startColumn','_entityInit$','AWAITING','_remoteChangesetQueue','_send','LEAVE','arc','LICENSE_DISTRO_REJECTED','PSEUDO_FETCH_MISSING_RESULT','_handler','post','_entities','onlineStatusIcon','?url=','parse','PERMISSION_REJ','onPointerMove$','subscribeEvent','_updateLocalCursor','loadSheet','newValue','concat','_transformUndoredo','extend','none','image/jpeg','_singleActiveUnitService','permission.content','collabStatus.notCollab','COMPRESS_MUTATION_SEND'];_0x9ef4=function(){return _0x2468a3;};return _0x9ef4();}import{CollaborationEvent as _0xd3c20c,parseChangesetToProtocol as _0x265bb6,ISnapshotServerService as _0x367e30,RevisionService as _0xa786bc,isTransformMutationFailure as _0x364f8f,isTransformMutationsWithChangesetSuccess as _0x522a4,ITransformService as _0x4e495a,mapDocumentTypeToUniverType as _0x4a77df,isTransformChangesetsSuccess as _0xcffb46,CompressMutationService as _0x1ac7ae,parseProtocolChangeset as _0x55bb16,SnapshotService as _0x5cfad0,textEncoder as _0x310092,b64DecodeUnicode as _0x59c020,isTransformMutationsWithChangesetFailure as _0x519c1a,UniverCollaborationPlugin as _0x361f11}from'@univerjs-pro/collaboration';import{merge as _0x1d3042,Subject as _0x1ace47,BehaviorSubject as _0x2561fc,distinctUntilChanged as _0x1980f0,fromEvent as _0x28ccd8,of as _0x274530,takeUntil as _0x3c23a9,debounceTime as _0x1412d5,filter as _0x4d0abc,switchMap as _0x21055f,combineLatest as _0x138d6c,shareReplay as _0x3b034a,mapTo as _0x310a6c,concatMap as _0x2ccf11}from'rxjs';import{map as _0x414fcf,takeUntil as _0x3e87c2,take as _0x56d486,filter as _0x381935,delay as _0xd2b55d,shareReplay as _0x1f7f7f,switchMap as _0x16e713,throttleTime as _0xcfa107}from'rxjs/operators';import{IMEInputManagerService as _0x34b802,TextSelectionManagerService as _0x188da2,serializeDocRange as _0x249015,RichTextEditingMutation as _0x40568f,DocStateChangeManagerService as _0x17dea7,SetTextSelectionsOperation as _0x28f206,SetDocZoomRatioOperation as _0x46d2fe,DocSkeletonManagerService as _0x26e3ab}from'@univerjs/docs';import{HTTPService as _0x3db34c,WebSocketService as _0x11ce39,MergeInterceptorFactory as _0x5c8e22,HTTPRequest as _0x3fce40,IHTTPImplementation as _0x3c9cbd,XHRHTTPImplementation as _0x39d04d,ThresholdInterceptorFactory as _0x3ef1b2}from'@univerjs/network';import{ImageSourceType as _0x434ac3,ImageUploadStatusType as _0x46d7f0,IImageIoService as _0x13659e}from'@univerjs/drawing';import{Shape as _0x2763bf,Rect as _0x31ca09,Vector2 as _0x5c324a,NodePositionConvertToCursor as _0x5e6c7c,isValidRectRange as _0x4c5cc1,NodePositionConvertToRectRange as _0x564309,getColor as _0x5664c9,TEXT_RANGE_LAYER_INDEX as _0x130379,RegularPolygon as _0x1ef824,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2cbd51,IRenderManagerService as _0x23fc25}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x262cf1,serializeRangeWithSheet as _0x448ab0}from'@univerjs/engine-formula';import _0x331994 from'lodash/debounce';import{VIEWPORT_KEY as _0x1e06ce,getCoordByCell as _0x13adfd,getSheetObject as _0x45ba,SheetSkeletonManagerService as _0x1818c9,SheetPermissionInitController as _0x45b80e}from'@univerjs/sheets-ui';import _0x27911f,{forwardRef as _0x2c1bb9,useRef as _0x36697b,createElement as _0x1618fc}from'react';import _0x2a1254 from'clsx';import{IRemoteInstanceService as _0x265857}from'@univerjs/rpc';const an=_0x87081d(0x3dc),cn=_0x87081d(0x278),hn='SNAPSHOT_URL_KEY',_n=_0x87081d(0x1c7),ln=0x7d0,un=_0x87081d(0x44b),dn=_0x87081d(0x3aa),mn='HEARTBEAT_INTERVAL',fn=0x7530,Os=_0x87081d(0x43d),Ds=0x2710,gn=_0x87081d(0x325),Sn=0x4e20,pn='RETRY_CONNECTING_MAX_COUNT',vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn='COLLAB_SUBMIT_CHANGESET_URL',bn=_0x87081d(0x28d),Rn=_0x87081d(0x37f),Tn=_0x87081d(0x3af);var Ps=(_0x29a9da=>(_0x29a9da[_0x29a9da[_0x87081d(0x201)]=0x0]=_0x87081d(0x201),_0x29a9da[_0x29a9da['OK']=0x1]='OK',_0x29a9da[_0x29a9da[_0x87081d(0x3b3)]=0x2]=_0x87081d(0x3b3),_0x29a9da[_0x29a9da[_0x87081d(0x266)]=0x3]=_0x87081d(0x266),_0x29a9da[_0x29a9da[_0x87081d(0x23d)]=0x4]=_0x87081d(0x23d),_0x29a9da[_0x29a9da[_0x87081d(0x302)]=0x5]=_0x87081d(0x302),_0x29a9da[_0x29a9da[_0x87081d(0x40b)]=0x6]=_0x87081d(0x40b),_0x29a9da[_0x29a9da['INVALID_ARGUMENT']=0x7]=_0x87081d(0x37d),_0x29a9da[_0x29a9da[_0x87081d(0x1e6)]=0x8]=_0x87081d(0x1e6),_0x29a9da[_0x29a9da['COMPLETION_FINISHED']=0x9]=_0x87081d(0x260),_0x29a9da[_0x29a9da[_0x87081d(0x365)]=0x1389]=_0x87081d(0x365),_0x29a9da[_0x29a9da[_0x87081d(0x33f)]=0x1771]=_0x87081d(0x33f),_0x29a9da[_0x29a9da['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x87081d(0x2a1),_0x29a9da[_0x29a9da[_0x87081d(0x38f)]=0x1b59]=_0x87081d(0x38f),_0x29a9da[_0x29a9da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x87081d(0x36c),_0x29a9da[_0x29a9da[_0x87081d(0x1a4)]=0x1b5b]=_0x87081d(0x1a4),_0x29a9da[_0x29a9da[_0x87081d(0x3d4)]=0x1b5c]=_0x87081d(0x3d4),_0x29a9da[_0x29a9da[_0x87081d(0x1c6)]=0x1f41]=_0x87081d(0x1c6),_0x29a9da[_0x29a9da[_0x87081d(0x1a5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x320)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x29a9da[_0x29a9da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x249)]=0x232c]=_0x87081d(0x249),_0x29a9da[_0x29a9da[_0x87081d(0x3f3)]=0x232d]=_0x87081d(0x3f3),_0x29a9da[_0x29a9da[_0x87081d(0x2ab)]=0x2711]=_0x87081d(0x2ab),_0x29a9da[_0x29a9da[_0x87081d(0x30f)]=0x2712]=_0x87081d(0x30f),_0x29a9da[_0x29a9da[_0x87081d(0x270)]=0x2713]=_0x87081d(0x270),_0x29a9da[_0x29a9da[_0x87081d(0x2bd)]=0x2714]=_0x87081d(0x2bd),_0x29a9da[_0x29a9da[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x29a9da))(Ps||{}),H=(_0x18054c=>(_0x18054c[_0x18054c[_0x87081d(0x319)]=0x0]=_0x87081d(0x319),_0x18054c[_0x18054c[_0x87081d(0x1c1)]=0x1]='UNIVER_DOC',_0x18054c[_0x18054c['UNIVER_SHEET']=0x2]=_0x87081d(0x471),_0x18054c[_0x18054c['UNIVER_SLIDE']=0x3]=_0x87081d(0x1d2),_0x18054c[_0x18054c[_0x87081d(0x2b2)]=0x4]='UNIVER_PROJECT',_0x18054c[_0x18054c[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x18054c))(H||{}),I=(_0x5309b7=>(_0x5309b7[_0x5309b7[_0x87081d(0x244)]=0x0]=_0x87081d(0x244),_0x5309b7[_0x5309b7['HELLO']=0x1]=_0x87081d(0x22a),_0x5309b7[_0x5309b7['JOIN']=0x2]=_0x87081d(0x439),_0x5309b7[_0x5309b7['LEAVE']=0x3]=_0x87081d(0x3f1),_0x5309b7[_0x5309b7['INGEST']=0x4]='INGEST',_0x5309b7[_0x5309b7[_0x87081d(0x339)]=0x5]=_0x87081d(0x339),_0x5309b7[_0x5309b7[_0x87081d(0x392)]=0x6]=_0x87081d(0x392),_0x5309b7[_0x5309b7[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x5309b7))(I||{}),jt=(_0x13810b=>(_0x13810b[_0x13810b[_0x87081d(0x431)]=0x0]=_0x87081d(0x431),_0x13810b[_0x13810b['OK']=0x1]='OK',_0x13810b[_0x13810b[_0x87081d(0x209)]=0x2]=_0x87081d(0x209),_0x13810b[_0x13810b['UNRECOGNIZED']=-0x1]=_0x87081d(0x321),_0x13810b))(jt||{}),ws=(_0x59a2c4=>(_0x59a2c4[_0x59a2c4['Undefined']=0x0]=_0x87081d(0x272),_0x59a2c4[_0x59a2c4[_0x87081d(0x2d4)]=0x1]='HttpImport',_0x59a2c4[_0x59a2c4[_0x87081d(0x215)]=0x2]=_0x87081d(0x215),_0x59a2c4[_0x59a2c4[_0x87081d(0x32e)]=0x3]=_0x87081d(0x32e),_0x59a2c4[_0x59a2c4[_0x87081d(0x1a8)]=0x4]=_0x87081d(0x1a8),_0x59a2c4[_0x59a2c4[_0x87081d(0x321)]=-0x1]='UNRECOGNIZED',_0x59a2c4))(ws||{}),On=Object['defineProperty'],Dn=Object[_0x87081d(0x314)],Pn=(_0x48226c,_0x54a2f5,_0x5b2f6a,_0x13a071)=>{for(var _0x18fd8a=_0x13a071>0x1?void 0x0:_0x13a071?Dn(_0x54a2f5,_0x5b2f6a):_0x54a2f5,_0x382b3b=_0x48226c['length']-0x1,_0x40cc99;_0x382b3b>=0x0;_0x382b3b--)(_0x40cc99=_0x48226c[_0x382b3b])&&(_0x18fd8a=(_0x13a071?_0x40cc99(_0x54a2f5,_0x5b2f6a,_0x18fd8a):_0x40cc99(_0x18fd8a))||_0x18fd8a);return _0x13a071&&_0x18fd8a&&On(_0x54a2f5,_0x5b2f6a,_0x18fd8a),_0x18fd8a;},Qt=(_0x4d34a6,_0x29e3f9)=>(_0x4371bd,_0x114203)=>_0x29e3f9(_0x4371bd,_0x114203,_0x4d34a6);let ne=class extends _0x1ee863{constructor(_0x24e8c7,_0x8a2c85){const _0x26a343=_0x87081d;super(),_(this,_0x26a343(0x491),new Map()),(this[_0x26a343(0x2bb)]=_0x24e8c7,this['_userManagerService']=_0x8a2c85,this['disposeWithMe'](_0x3b697b(_0x1d3042(this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x471)])['pipe'](_0x414fcf(_0x35496d=>_0x35496d[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)][_0x26a343(0x223)](_0x5a714d[_0x26a343(0x1c1)])[_0x26a343(0x3b6)](_0x414fcf(_0x45d8d5=>_0x45d8d5[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x1d2)])[_0x26a343(0x3b6)](_0x414fcf(_0x5862de=>_0x5862de['getUnitId']())))['subscribe'](_0x4d21d5=>this[_0x26a343(0x432)](_0x4d21d5)))));}[_0x87081d(0x498)](_0x26edf8){const _0x4fbd06=_0x87081d;this[_0x4fbd06(0x438)][_0x4fbd06(0x498)](_0x26edf8);}[_0x87081d(0x3b1)](){const _0x481e06=_0x87081d;return this[_0x481e06(0x438)][_0x481e06(0x3b1)]();}['updateMember'](_0x4bbbad,_0x3437df){const _0x424c41=_0x87081d;let _0x10f449=this['_roomMembers']['get'](_0x4bbbad);_0x10f449||(_0x10f449=new wn(),this[_0x424c41(0x491)][_0x424c41(0x4af)](_0x4bbbad,_0x10f449)),_0x10f449[_0x424c41(0x1ee)](_0x3437df);}[_0x87081d(0x434)](_0x542947,_0x3d1a77){const _0x105b37=_0x87081d,_0x246f78=this[_0x105b37(0x491)][_0x105b37(0x1e9)](_0x542947);_0x246f78&&_0x246f78[_0x105b37(0x434)](_0x3d1a77);}[_0x87081d(0x328)](_0x1d4bdc){const _0x563426=_0x87081d;return this[_0x563426(0x491)]['get'](_0x1d4bdc);}[_0x87081d(0x1ae)](_0x5d1541,_0x55bb58){const _0xdcc965=_0x87081d,_0x5c3c77=this[_0xdcc965(0x491)][_0xdcc965(0x1e9)](_0x5d1541);if(_0x5c3c77)return _0x5c3c77[_0xdcc965(0x1ae)](_0x55bb58);}[_0x87081d(0x432)](_0x54c75e){const _0x2272eb=_0x87081d,_0x43c54c=this['_roomMembers'][_0x2272eb(0x1e9)](_0x54c75e);_0x43c54c&&(_0x43c54c[_0x2272eb(0x23c)](),this[_0x2272eb(0x491)][_0x2272eb(0x3c7)](_0x54c75e));}['dispose'](){const _0x342ff5=_0x87081d;this[_0x342ff5(0x491)][_0x342ff5(0x1c8)](_0x35f56a=>_0x35f56a[_0x342ff5(0x23c)]()),this[_0x342ff5(0x491)]['clear']();}};ne=Pn([Qt(0x0,_0x1d5396),Qt(0x1,_0x1b956a(_0x17e09a))],ne);class wn extends _0x1ee863{constructor(){const _0x4c7495=_0x87081d;super(...arguments),_(this,_0x4c7495(0x1b4),new Map());}[_0x87081d(0x23c)](){const _0xf21503=_0x87081d;this[_0xf21503(0x1b4)][_0xf21503(0x291)]();}[_0x87081d(0x1ee)](_0x64d88f){const _0xcc6a6f=_0x87081d;this['_members'][_0xcc6a6f(0x4af)](_0x64d88f[_0xcc6a6f(0x2c0)],_0x64d88f);}[_0x87081d(0x434)](_0x5b5822){const _0x5afa3b=_0x87081d;this[_0x5afa3b(0x1b4)]['delete'](_0x5b5822);}['getMember'](_0x51433b){const _0x3159c8=_0x87081d;return this['_members'][_0x3159c8(0x1e9)](_0x51433b);}}function Nn(_0x519e00){const _0x3afea2=_0x87081d;var _0x25d090,_0x34921b,_0x37abb0,_0x19c761;const _0x5aff3c=_0x519e00['data'],_0xfdae38=JSON[_0x3afea2(0x3fa)](_0x5aff3c);switch(_0xfdae38[_0x3afea2(0x4b6)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x2c19e7=_0xfdae38[_0x3afea2(0x2d1)];return{..._0xfdae38,'data':_0x2c19e7,'cmd':_0xfdae38['cmd']};}case I[_0x3afea2(0x439)]:{const _0x149000=_0xfdae38[_0x3afea2(0x38c)];return{..._0xfdae38,'data':_0x149000,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};}case I[_0x3afea2(0x392)]:{const _0xc54fe1=_0xfdae38['collaMsg'];switch(_0xc54fe1[_0x3afea2(0x3ba)]){case _0xd3c20c[_0x3afea2(0x3fb)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x25d090=_0xc54fe1['permissionRejEvent'])==null?void 0x0:_0x25d090['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x259)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x34921b=_0xc54fe1[_0x3afea2(0x482)])==null?void 0x0:_0x34921b['cs']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x416)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x37abb0=_0xc54fe1[_0x3afea2(0x2ce)])==null?void 0x0:_0x37abb0['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x4ae)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x19c761=_0xc54fe1[_0x3afea2(0x4f3)])==null?void 0x0:_0x19c761['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x373)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['updateCursorEvent']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x40e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x456)]},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x1b3)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x341)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x30e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x481)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c['LIVESHARE_FETCH_OPERATIONS']:case _0xd3c20c[_0x3afea2(0x2c2)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareOperation']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x4d8)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareNewHost']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x213)]:return{..._0xfdae38,'data':_0xc54fe1,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x1de)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x1df)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x20c)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x34a)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x3c5)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['shouldCloseConn']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};default:return _0xfdae38;}}default:return _0xfdae38;}}function Mn(_0xb7394e){const _0x3f2933=_0x87081d;switch(_0xb7394e[_0x3f2933(0x4b6)]){case I[_0x3f2933(0x339)]:case I[_0x3f2933(0x22a)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey']});case I[_0x3f2933(0x451)]:{let _0x304f88;switch(_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x3ba)]){case _0xd3c20c['UPDATE_CURSOR']:{_0x304f88={'eventID':_0xd3c20c['UPDATE_CURSOR'],'updateCursorEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x1b3)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x1b3)],'leaveEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x40e)]:{_0x304f88={'eventID':_0xd3c20c['USERS_ENTER'],'joinEvent':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x30e)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x30e)],'liveShareNewHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x2c2)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2c2)],'liveShareOperation':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_TERMINATE']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x4d8)],'liveShareTerminate':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_REQUEST_HOST']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2d2)],'liveShareRequestHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x452)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x452)]};break;}default:_0x304f88={'eventID':_0xb7394e[_0x3f2933(0x31c)]['eventID']};}return JSON['stringify']({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'collaMsg':_0x304f88});}case I[_0x3f2933(0x439)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'joinReq':_0xb7394e['data']});case I[_0x3f2933(0x3f1)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey'],'leaveReq':_0xb7394e[_0x3f2933(0x31c)]});default:throw new Error(_0x3f2933(0x2be));}}var An=Object[_0x87081d(0x318)],Un=Object[_0x87081d(0x314)],yn=(_0x5b8468,_0x3a6e55,_0x11cc0f,_0x34e6aa)=>{for(var _0x272167=_0x34e6aa>0x1?void 0x0:_0x34e6aa?Un(_0x3a6e55,_0x11cc0f):_0x3a6e55,_0x24fb44=_0x5b8468['length']-0x1,_0x3ac852;_0x24fb44>=0x0;_0x24fb44--)(_0x3ac852=_0x5b8468[_0x24fb44])&&(_0x272167=(_0x34e6aa?_0x3ac852(_0x3a6e55,_0x11cc0f,_0x272167):_0x3ac852(_0x272167))||_0x272167);return _0x34e6aa&&_0x272167&&An(_0x3a6e55,_0x11cc0f,_0x272167),_0x272167;},Te=(_0x27194b,_0xbbce4b)=>(_0x704b29,_0x40758b)=>_0xbbce4b(_0x704b29,_0x40758b,_0x27194b);const Ns=_0x1b08c0(_0x87081d(0x4b0));function Ln(_0x51cbde,_0xaeb4f9,_0xe4ac97){const _0x3466fb=_0x87081d;return _0x51cbde+'/'+_0xaeb4f9+_0x3466fb(0x418)+_0xe4ac97+_0x3466fb(0x3a2);}let vt=class{constructor(_0x5968c8,_0x582f40,_0x474dbe,_0x37a141,_0x5aaa1e){const _0x20be78=_0x87081d;this[_0x20be78(0x4a5)]=_0x5968c8,this[_0x20be78(0x39d)]=_0x582f40,this[_0x20be78(0x252)]=_0x474dbe,this[_0x20be78(0x3e7)]=_0x37a141,this[_0x20be78(0x496)]=_0x5aaa1e;}[_0x87081d(0x4f0)](_0x80edf6){const _0x508a7a=_0x87081d,_0xd99378=this['_ws'][_0x508a7a(0x4f0)](_0x80edf6);if(!_0xd99378)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x39e94d=new _0x173e9c(),_0xab5380=new _0x1ace47();_0x39e94d['add'](_0x3b697b(_0xd99378[_0x508a7a(0x450)][_0x508a7a(0x347)](_0x14ae86=>_0xab5380[_0x508a7a(0x4fe)](_0x14ae86)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0xab5380[_0x508a7a(0x26e)]()));const _0x2eabc6=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378[_0x508a7a(0x2a3)][_0x508a7a(0x347)](_0x2f3f4a=>_0x2eabc6[_0x508a7a(0x4fe)](_0x2f3f4a)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x2eabc6['complete']()));const _0x37c1f9=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378['message$'][_0x508a7a(0x347)](_0x3942d6=>{const _0x4e80ac=_0x508a7a,_0x3fbedc=Nn(_0x3942d6);_0x37c1f9[_0x4e80ac(0x4fe)](_0x3fbedc);}))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x37c1f9[_0x508a7a(0x26e)]()));const _0x36dfd8=()=>{const _0x558228=_0x508a7a;_0x2eabc6[_0x558228(0x4fe)](new Event('connection\x20error')),_0xab5380['next'](new CloseEvent(_0x558228(0x39f))),_0x32951d[_0x558228(0x23f)]();},_0x32951d={'memberID':'','close$':_0xab5380[_0x508a7a(0x225)](),'error$':_0x2eabc6[_0x508a7a(0x225)](),'open$':_0xd99378['open$'],'message$':_0x37c1f9['asObservable'](),'send':_0x1e3093=>{const _0x3758ca=_0x508a7a;if(_0x1e3093['cmd']===I[_0x3758ca(0x451)]){if(_0x1e3093[_0x3758ca(0x31c)][_0x3758ca(0x3ba)]===_0xd3c20c[_0x3758ca(0x4e4)]){this[_0x3758ca(0x4e2)](_0x32951d,_0x1e3093['data'])[_0x3758ca(0x475)](_0x2c7473=>{const _0x5bab3b=_0x3758ca;this[_0x5bab3b(0x3e7)][_0x5bab3b(0x289)](_0x2c7473),_0x36dfd8();});return;}if(_0x1e3093[_0x3758ca(0x31c)]['eventID']===_0xd3c20c['FETCH_MISSING']){const _0x1f91ca=_0x1e3093[_0x3758ca(0x31c)];this[_0x3758ca(0x394)](_0x1f91ca)[_0x3758ca(0x39a)](_0x4263fc=>{const _0x41e2db=_0x3758ca;_0x37c1f9[_0x41e2db(0x4fe)]({'cmd':I[_0x41e2db(0x392)],'code':jt['OK'],'routeKey':_0x1f91ca[_0x41e2db(0x31c)]['unitID'],'routeType':'','data':{'eventID':_0xd3c20c[_0x41e2db(0x3f4)],'data':{'changesets':_0x4263fc}}});})[_0x3758ca(0x475)](_0x1410c0=>{const _0x473adf=_0x3758ca;this['_logService'][_0x473adf(0x289)](_0x1410c0),_0x36dfd8();});return;}}_0xd99378['send'](Mn(_0x1e3093));},'close':()=>{const _0x38bffd=_0x508a7a;_0xd99378['close'](),_0x39e94d[_0x38bffd(0x23c)]();}};return _0x32951d;}async[_0x87081d(0x4e2)](_0x507260,_0x5f10e7){const _0x538148=_0x87081d;var _0xbfe1d4;const {unitType:_0x382dd9,unitID:_0x1f4f0c,changeset:_0x4d81f6}=_0x5f10e7[_0x538148(0x31c)],_0x11605b={'unitID':_0x1f4f0c,'memberID':_0x507260[_0x538148(0x2c0)],'type':_0x382dd9,'changeset':_0x265bb6(_0x4d81f6)},_0x8dca0b=Ln((_0xbfe1d4=this[_0x538148(0x252)]['getConfig'](Cn))!=null?_0xbfe1d4:bn,_0x382dd9,_0x1f4f0c);try{await this['_http']['post'](_0x8dca0b,{'body':_0x11605b});}catch(_0x2b4183){throw this['_logService'][_0x538148(0x289)](_0x538148(0x47a),_0x538148(0x422)),_0x2b4183;}}async[_0x87081d(0x394)](_0x3c429e){const _0x3c8f7a=_0x87081d,{unitID:_0x2e8f1d,from:_0x15b47c,to:_0x8bca30,unitType:_0x17c1c1}=_0x3c429e[_0x3c8f7a(0x31c)];return(await this[_0x3c8f7a(0x496)][_0x3c8f7a(0x26f)]({'metadata':void 0x0},{'unitID':_0x2e8f1d,'type':_0x17c1c1,'from':_0x15b47c,'to':_0x8bca30}))[_0x3c8f7a(0x31e)];}};vt=yn([Te(0x0,_0x1b956a(_0x3db34c)),Te(0x1,_0x1b956a(_0x11ce39)),Te(0x2,_0x5d255f),Te(0x3,_0x82a609),Te(0x4,_0x367e30)],vt);class Ms{constructor(){const _0x4628cd=_0x87081d;_(this,_0x4628cd(0x2cd),new _0x1ace47()),_(this,'commentUpdate$',this[_0x4628cd(0x2cd)]['asObservable']());}['onCommentUpdate'](_0x22ffeb){const _0x171b4c=_0x87081d;this['_commentUpdate$'][_0x171b4c(0x4fe)](_0x22ffeb);}}var $n=Object[_0x87081d(0x318)],jn=Object[_0x87081d(0x314)],As=(_0x43e4a7,_0xa0d789,_0x36cec2,_0x11a784)=>{for(var _0x5d0111=_0x11a784>0x1?void 0x0:_0x11a784?jn(_0xa0d789,_0x36cec2):_0xa0d789,_0x46686f=_0x43e4a7['length']-0x1,_0x584539;_0x46686f>=0x0;_0x46686f--)(_0x584539=_0x43e4a7[_0x46686f])&&(_0x5d0111=(_0x11a784?_0x584539(_0xa0d789,_0x36cec2,_0x5d0111):_0x584539(_0x5d0111))||_0x5d0111);return _0x11a784&&_0x5d0111&&$n(_0xa0d789,_0x36cec2,_0x5d0111),_0x5d0111;},A=(_0x3ece62,_0x4d40b4)=>(_0x54367e,_0x3c7439)=>_0x4d40b4(_0x54367e,_0x3c7439,_0x3ece62),fe=(_0x45e489=>(_0x45e489[_0x45e489['IDLE']=0x0]=_0x87081d(0x21c),_0x45e489[_0x45e489[_0x87081d(0x424)]=0x1]=_0x87081d(0x424),_0x45e489[_0x45e489[_0x87081d(0x2c5)]=0x2]=_0x87081d(0x2c5),_0x45e489[_0x45e489['ONLINE']=0x3]=_0x87081d(0x28f),_0x45e489))(fe||{});let It=class extends _0x53ce5a{constructor(_0x397439,_0x53540,_0x2d005d,_0x92351d,_0x1a172a,_0x405dc5,_0x199144,_0x3ef932,_0x43613e){const _0x453cd2=_0x87081d;super(),_(this,'_sessionStatus$',new _0x2561fc(0x0)),_(this,_0x453cd2(0x2f6),this[_0x453cd2(0x20a)][_0x453cd2(0x225)]()),_(this,_0x453cd2(0x437),new _0x1ace47()),_(this,'event$',this[_0x453cd2(0x437)][_0x453cd2(0x225)]()),_(this,'_socket'),_(this,_0x453cd2(0x1c0)),_(this,'_collaborationTimeoutTimer'),(this[_0x453cd2(0x2ad)]=_0x397439,this[_0x453cd2(0x3e7)]=_0x2d005d,this[_0x453cd2(0x460)]=_0x92351d,this['_messageService']=_0x1a172a,this['_configService']=_0x405dc5,this[_0x453cd2(0x45a)]=_0x199144,this[_0x453cd2(0x2e6)]=_0x3ef932,this[_0x453cd2(0x1d5)]=_0x43613e,_0x53540[_0x453cd2(0x3b6)](_0x3e87c2(this[_0x453cd2(0x20e)]))[_0x453cd2(0x347)](_0x1225f0=>{const _0x3e86f5=_0x453cd2;var _0xffb32;typeof _0x1225f0>'u'||(this['_socket']=_0x1225f0,_0x1225f0?(this[_0x3e86f5(0x307)](_0x1225f0),this[_0x3e86f5(0x1c0)]=this[_0x3e86f5(0x305)][_0x3e86f5(0x1bf)][_0x3e86f5(0x347)](_0x497903=>{_0x497903['routeKey']===this['_unitID']&&this['_onCombEvent'](_0x497903);})):(this[_0x3e86f5(0x20a)][_0x3e86f5(0x4fe)](0x2),(_0xffb32=this[_0x3e86f5(0x1c0)])==null||_0xffb32[_0x3e86f5(0x2a8)](),this[_0x3e86f5(0x1c0)]=null));}),this[_0x453cd2(0x343)](this[_0x453cd2(0x460)][_0x453cd2(0x308)](()=>{const _0x4b4c5a=_0x453cd2;var _0x247b87;(_0x247b87=this['_socket'])==null||_0x247b87[_0x4b4c5a(0x253)]({'cmd':I[_0x4b4c5a(0x3f1)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x362f90=_0x87081d;return this[_0x362f90(0x20a)][_0x362f90(0x275)]();}[_0x87081d(0x241)](){const _0x4087f5=_0x87081d;var _0x246192,_0x38bc0c;return(_0x38bc0c=(_0x246192=this[_0x4087f5(0x305)])==null?void 0x0:_0x246192['memberID'])!=null?_0x38bc0c:null;}[_0x87081d(0x23c)](){const _0x5ac9b3=_0x87081d;super['dispose'](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x4fe)](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x26e)]();}[_0x87081d(0x23f)](){const _0x5d795d=_0x87081d;var _0x5c7790,_0x5f4a5e;(_0x5c7790=this['_socket'])==null||_0x5c7790['send']({'cmd':I[_0x5d795d(0x3f1)],'data':{'roomID':this[_0x5d795d(0x2ad)]}}),this[_0x5d795d(0x437)][_0x5d795d(0x26e)](),this['_sessionStatus$'][_0x5d795d(0x26e)](),(_0x5f4a5e=this[_0x5d795d(0x305)])==null||_0x5f4a5e['close'](),this[_0x5d795d(0x23c)]();}[_0x87081d(0x477)](_0x5b2c3f){const _0x1d21da=_0x87081d;_0x5b2c3f[_0x1d21da(0x4b6)]===I[_0x1d21da(0x439)]?this[_0x1d21da(0x2b4)](_0x5b2c3f):_0x5b2c3f['cmd']===I[_0x1d21da(0x392)]&&this[_0x1d21da(0x4b1)](_0x5b2c3f);}[_0x87081d(0x307)](_0x3afa1e){const _0x509987=_0x87081d;this[_0x509987(0x20a)][_0x509987(0x4fe)](0x1),_0x3afa1e[_0x509987(0x253)]({'cmd':I[_0x509987(0x439)],'routeKey':this[_0x509987(0x2ad)],'routeType':'','data':{'rooms':[{'roomID':this[_0x509987(0x2ad)]}]}});}[_0x87081d(0x2b4)](_0x516f45){const _0x4b982f=_0x87081d;var _0x246e94;if(_0x516f45[_0x4b982f(0x1a7)]===jt['FAIL']){this[_0x4b982f(0x243)][_0x4b982f(0x410)]({'type':_0x4dda16[_0x4b982f(0x3b0)],'content':this[_0x4b982f(0x45a)]['t']('session.room-full')}),this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x2);return;}this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x3);const _0x54cec3=(_0x246e94=_0x516f45['data']['roomInfos'][this[_0x4b982f(0x2ad)]])==null?void 0x0:_0x246e94[_0x4b982f(0x414)];_0x54cec3&&_0x54cec3[_0x4b982f(0x1c8)](_0x31045f=>this['_memberService']['updateMember'](this['_unitID'],_0x31045f));}[_0x87081d(0x4b1)](_0x4f5308){const _0x2a062b=_0x87081d;try{const _0x545a4d=_0x4f5308[_0x2a062b(0x31c)];switch(_0x545a4d[_0x2a062b(0x3ba)]){case _0xd3c20c[_0x2a062b(0x40e)]:this[_0x2a062b(0x478)](_0x545a4d),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c['USERS_LEAVE']:this[_0x2a062b(0x2a5)](_0x545a4d),this[_0x2a062b(0x437)]['next'](_0x545a4d);break;case _0xd3c20c['CHANGESET_ACK']:this[_0x2a062b(0x230)](),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x213)]:this[_0x2a062b(0x3e7)][_0x2a062b(0x289)](_0x2a062b(0x2c6)+JSON[_0x2a062b(0x2e5)](_0x545a4d)),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x1de)]:this[_0x2a062b(0x1d5)][_0x2a062b(0x346)](_0x545a4d[_0x2a062b(0x31c)]),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;default:this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);}}catch(_0x1c21e9){this['_logService'][_0x2a062b(0x289)](_0x1c21e9,_0x4f5308);}}[_0x87081d(0x478)](_0x26c6ac){const _0x49836f=_0x87081d;this[_0x49836f(0x2e6)]['updateMember'](this[_0x49836f(0x2ad)],_0x26c6ac[_0x49836f(0x31c)]);}[_0x87081d(0x2a5)](_0x221093){const _0x4ec162=_0x87081d;this[_0x4ec162(0x2e6)][_0x4ec162(0x434)](this['_unitID'],_0x221093[_0x4ec162(0x31c)][_0x4ec162(0x2c0)]);}async['send'](_0xf607e8,_0x5258b6){const _0x14576b=_0x87081d;if(this[_0x14576b(0x2d6)]!==0x3||!this[_0x14576b(0x305)])throw new Error(_0x14576b(0x1d8));try{_0xf607e8[_0x14576b(0x3ba)]===_0xd3c20c[_0x14576b(0x416)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x14576b(0x305)]['send']({'cmd':I['INGEST'],'routeKey':_0x5258b6,'routeType':'','data':_0xf607e8});}catch(_0x4c505f){this[_0x14576b(0x3e7)][_0x14576b(0x289)](_0x4c505f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x43af71=_0x87081d;var _0x1c7853;this[_0x43af71(0x372)]=window[_0x43af71(0x3a7)](()=>{const _0x2f8de5=_0x43af71;this[_0x2f8de5(0x372)]=null,this[_0x2f8de5(0x243)]['show']({'type':_0x4dda16[_0x2f8de5(0x500)],'content':this['_localeService']['t'](_0x2f8de5(0x36d))});},(_0x1c7853=this[_0x43af71(0x252)][_0x43af71(0x38a)](Os))!=null?_0x1c7853:Ds);}['_clearCollaborationTimeoutTimer'](){const _0x30fbca=_0x87081d;this[_0x30fbca(0x372)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x30fbca(0x372)]=null);}};It=As([A(0x2,_0x82a609),A(0x3,_0x276384),A(0x4,_0x14fd53),A(0x5,_0x5d255f),A(0x6,_0x1b956a(_0x2db4b8)),A(0x7,_0x1b956a(ne)),A(0x8,_0x1b956a(Ms))],It);let pe=class extends _0x1ee863{constructor(_0x239418,_0x501a1d,_0x1f20f1,_0x57aebd,_0x437d2e,_0x13657b){const _0x43ecb7=_0x87081d;super(),_(this,_0x43ecb7(0x4b3),new _0x2561fc(void 0x0)),_(this,_0x43ecb7(0x21e),new Map()),_(this,_0x43ecb7(0x4e3),new _0x2561fc(0x0)),_(this,_0x43ecb7(0x33a),this['_status$'][_0x43ecb7(0x225)]()),_(this,'_socketReady',!0x1),_(this,_0x43ecb7(0x46f)),_(this,_0x43ecb7(0x3d6)),_(this,_0x43ecb7(0x4bc)),_(this,_0x43ecb7(0x1e2),0x0),(this[_0x43ecb7(0x440)]=_0x239418,this[_0x43ecb7(0x45a)]=_0x501a1d,this[_0x43ecb7(0x243)]=_0x1f20f1,this[_0x43ecb7(0x3e7)]=_0x57aebd,this[_0x43ecb7(0x252)]=_0x437d2e,this[_0x43ecb7(0x28c)]=_0x13657b);}get[_0x87081d(0x305)](){const _0x5cbc15=_0x87081d;return this['_socket$'][_0x5cbc15(0x275)]();}[_0x87081d(0x23c)](){const _0x154dad=_0x87081d;super['dispose'](),this['_sessions']['forEach'](_0x576455=>_0x576455[_0x154dad(0x23c)]()),this[_0x154dad(0x21e)][_0x154dad(0x291)](),this[_0x154dad(0x4e3)][_0x154dad(0x26e)]();}async[_0x87081d(0x316)](_0x480211){const _0x5bffc2=_0x87081d;if(this['_sessions'][_0x5bffc2(0x382)](_0x480211))return this['_sessions']['get'](_0x480211);this[_0x5bffc2(0x262)]();const _0x821bcc=this[_0x5bffc2(0x440)][_0x5bffc2(0x427)](It,_0x480211,this[_0x5bffc2(0x4b3)][_0x5bffc2(0x225)]());return this[_0x5bffc2(0x21e)][_0x5bffc2(0x4af)](_0x480211,_0x821bcc),_0x821bcc;}[_0x87081d(0x4b2)](_0x56dbdb){const _0x224aa4=_0x87081d;var _0x5efeee;const _0x1ad966=this[_0x224aa4(0x21e)][_0x224aa4(0x1e9)](_0x56dbdb);_0x1ad966&&(this['_sessions']['delete'](_0x56dbdb),_0x1ad966[_0x224aa4(0x23f)]()),this['_sessions']['size']||(_0x5efeee=this[_0x224aa4(0x305)])==null||_0x5efeee['close']();}['_createSocket'](){const _0x31b450=_0x87081d;var _0x4f7876;const _0x1d8411=(_0x4f7876=this[_0x31b450(0x252)][_0x31b450(0x38a)](un))!=null?_0x4f7876:dn;return this[_0x31b450(0x28c)]['createSocket'](_0x1d8411);}[_0x87081d(0x262)](){const _0x12f0f8=_0x87081d;try{const _0x56588d=this[_0x12f0f8(0x393)]();if(_0x56588d){const _0x21138f=_0x56588d['send'];_0x56588d[_0x12f0f8(0x253)]=_0x37a9b3=>(this[_0x12f0f8(0x268)](),_0x21138f[_0x12f0f8(0x34b)](_0x56588d,[_0x37a9b3])),_0x56588d[_0x12f0f8(0x1bf)][_0x12f0f8(0x347)](_0x41f52d=>this[_0x12f0f8(0x4bd)](_0x56588d,_0x41f52d)),_0x56588d[_0x12f0f8(0x2a3)][_0x12f0f8(0x3b6)](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x1043f8=>this['_logService'][_0x12f0f8(0x289)](_0x12f0f8(0x4c6),_0x1043f8)),_0x56588d[_0x12f0f8(0x27f)]['pipe'](_0x56d486(0x1))['subscribe'](()=>{const _0x1a6905=_0x12f0f8;this[_0x1a6905(0x3c9)](_0x56588d);}),_0x56588d[_0x12f0f8(0x450)]['pipe'](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x2c0e94=>{const _0xc821a3=_0x12f0f8;this[_0xc821a3(0x3e7)][_0xc821a3(0x4d5)](_0xc821a3(0x35a),_0xc821a3(0x1ff),_0x2c0e94),this[_0xc821a3(0x3c6)]();});}}catch(_0x12bc10){this[_0x12f0f8(0x3e7)]['error'](_0x12bc10),this[_0x12f0f8(0x3c6)]();}}[_0x87081d(0x3c9)](_0x1d09b3){const _0x4c16e3=_0x87081d;this[_0x4c16e3(0x3e7)][_0x4c16e3(0x4d5)](_0x4c16e3(0x35a),_0x4c16e3(0x443)),_0x1d09b3[_0x4c16e3(0x253)]({'cmd':I[_0x4c16e3(0x22a)]}),this[_0x4c16e3(0x268)]();}[_0x87081d(0x3c6)](){const _0x24f345=_0x87081d;var _0x2ec8b9;this[_0x24f345(0x4e3)][_0x24f345(0x4fe)](0x2),this[_0x24f345(0x4b3)][_0x24f345(0x4fe)](null),this[_0x24f345(0x26c)](),this[_0x24f345(0x39c)](),this[_0x24f345(0x448)]=!0x1,this[_0x24f345(0x1e2)]<((_0x2ec8b9=this[_0x24f345(0x252)]['getConfig'](pn))!=null?_0x2ec8b9:vn)?(this['_scheduleReconnection'](this['_retryCount']),this[_0x24f345(0x1e2)]+=0x1):this['_messageService'][_0x24f345(0x410)]({'type':_0x4dda16[_0x24f345(0x500)],'content':this[_0x24f345(0x45a)]['t'](_0x24f345(0x286))});}[_0x87081d(0x293)](_0x112ab2){const _0x3e2aad=_0x87081d;var _0x15a1cb;const _0x1ef44d=((_0x15a1cb=this[_0x3e2aad(0x252)][_0x3e2aad(0x38a)](gn))!=null?_0x15a1cb:Sn)*0x2**_0x112ab2;this['_messageService'][_0x3e2aad(0x410)]({'type':_0x4dda16['Warning'],'content':this[_0x3e2aad(0x45a)]['t'](_0x3e2aad(0x2c3))}),this[_0x3e2aad(0x4bc)]=setTimeout(()=>{const _0xf7d7cf=_0x3e2aad;this[_0xf7d7cf(0x262)](),clearTimeout(this[_0xf7d7cf(0x4bc)]),this['_retryConnectingTimer']=null;},_0x1ef44d);}['_rescheduleHeartbeatEvent'](){const _0x35685c=_0x87081d;var _0x320afb;this[_0x35685c(0x39c)](),this[_0x35685c(0x46f)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x320afb=this['_configService'][_0x35685c(0x38a)](mn))!=null?_0x320afb:fn);}[_0x87081d(0x388)](){const _0x5ec673=_0x87081d;this[_0x5ec673(0x305)][_0x5ec673(0x253)]({'cmd':I[_0x5ec673(0x339)]}),this[_0x5ec673(0x353)]();}[_0x87081d(0x353)](){const _0x5b54e8=_0x87081d;var _0x35143;this[_0x5b54e8(0x3d6)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x35143=this[_0x5b54e8(0x252)]['getConfig'](Os))!=null?_0x35143:Ds);}['_onMessage'](_0x3ba68f,_0x4cafc2){const _0x2d2f76=_0x87081d,{cmd:_0x18f943}=_0x4cafc2;_0x18f943===I[_0x2d2f76(0x22a)]&&!this[_0x2d2f76(0x448)]&&(_0x3ba68f[_0x2d2f76(0x2c0)]=_0x4cafc2[_0x2d2f76(0x31c)][_0x2d2f76(0x2c0)],this[_0x2d2f76(0x4b3)][_0x2d2f76(0x4fe)](_0x3ba68f),this[_0x2d2f76(0x4e3)]['next'](0x3),this[_0x2d2f76(0x448)]=!0x0),_0x18f943===I['HEARTBEAT']&&this[_0x2d2f76(0x26c)](),this[_0x2d2f76(0x268)]();}[_0x87081d(0x39c)](){const _0x1c0536=_0x87081d;this[_0x1c0536(0x46f)]!=null&&(clearTimeout(this[_0x1c0536(0x46f)]),this[_0x1c0536(0x46f)]=null);}[_0x87081d(0x26c)](){const _0x6dc4a3=_0x87081d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x6dc4a3(0x3d6)]),this[_0x6dc4a3(0x3d6)]=null);}};pe=As([A(0x0,_0x1b956a(_0x4bf6fc)),A(0x1,_0x1b956a(_0x2db4b8)),A(0x2,_0x14fd53),A(0x3,_0x82a609),A(0x4,_0x5d255f),A(0x5,Ns)],pe);var xn=Object['defineProperty'],Hn=Object['getOwnPropertyDescriptor'],kn=(_0x3907da,_0x36a9b6,_0x2b3dcb,_0x5cc111)=>{for(var _0x18f441=_0x5cc111>0x1?void 0x0:_0x5cc111?Hn(_0x36a9b6,_0x2b3dcb):_0x36a9b6,_0x3af6b7=_0x3907da['length']-0x1,_0x5b4aa7;_0x3af6b7>=0x0;_0x3af6b7--)(_0x5b4aa7=_0x3907da[_0x3af6b7])&&(_0x18f441=(_0x5cc111?_0x5b4aa7(_0x36a9b6,_0x2b3dcb,_0x18f441):_0x5b4aa7(_0x18f441))||_0x18f441);return _0x5cc111&&_0x18f441&&xn(_0x36a9b6,_0x2b3dcb,_0x18f441),_0x18f441;},Oe=(_0x5eb919,_0xb2bca0)=>(_0x5ac118,_0x311c7b)=>_0xb2bca0(_0x5ac118,_0x311c7b,_0x5eb919);let D=class extends _0x1ee863{constructor(_0x16631a,_0x2f19dc,_0x1424d0,_0x58e2aa,_0x486e3d){const _0xeb941b=_0x87081d;super(),_(this,_0xeb941b(0x35e),new Map()),_(this,_0xeb941b(0x2e1),new Map()),_(this,'_disabled',!0x1),(this[_0xeb941b(0x252)]=_0x16631a,this[_0xeb941b(0x490)]=_0x2f19dc,this[_0xeb941b(0x460)]=_0x1424d0,this[_0xeb941b(0x45a)]=_0x58e2aa,this['_revisionService']=_0x486e3d,this[_0xeb941b(0x47d)]());}['disableLocalCache'](){const _0x1a79f5=_0x87081d;this[_0x1a79f5(0x317)]=!0x0;}[_0x87081d(0x222)](){const _0x2d381f=_0x87081d;this[_0x2d381f(0x317)]=!0x1;}[_0x87081d(0x23c)](){const _0x524924=_0x87081d;this[_0x524924(0x218)]()[_0x524924(0x39a)](()=>super['dispose']());}async[_0x87081d(0x1d9)](_0x552a31){const _0xf2b3=_0x87081d;return this[_0xf2b3(0x317)]?null:this[_0xf2b3(0x490)][_0xf2b3(0x459)](es(_0x552a31));}async[_0x87081d(0x3c8)](_0x1e356d,_0x167ecb){const _0x496a9a=_0x87081d;return!!this[_0x496a9a(0x490)]['setItem'](_0x1e356d,_0x167ecb);}[_0x87081d(0x23a)](_0x35161b,_0x72ae2e,_0x73d3f,_0x3d8a6d){const _0x1a0e5c=_0x87081d,_0x259243=this[_0x1a0e5c(0x4fa)][_0x1a0e5c(0x27c)](_0x35161b);this[_0x1a0e5c(0x35e)]['set'](_0x35161b,{'unitID':_0x35161b,'type':_0x72ae2e,'awaitingChangeset':_0x73d3f,'mutations':_0x3d8a6d,'rev':_0x259243}),this[_0x1a0e5c(0x2e1)][_0x1a0e5c(0x382)](_0x35161b)||this[_0x1a0e5c(0x2af)](_0x35161b);}['_scheduleSaving'](_0x12b22d){const _0x3a9bf5=_0x87081d,_0x40ee85=this['_getSaveTimeout']();_0x40ee85===0x0?this['_saveCache'](_0x12b22d):this[_0x3a9bf5(0x2e1)][_0x3a9bf5(0x4af)](_0x12b22d,setTimeout(()=>this[_0x3a9bf5(0x385)](_0x12b22d),_0x40ee85));}[_0x87081d(0x4ca)](){var _0xe31efc;return(_0xe31efc=this['_configService']['getConfig'](In))!=null?_0xe31efc:En;}['_saveCache'](_0x23094c){const _0x4cfdef=_0x87081d,_0x4ed9aa=this[_0x4cfdef(0x2e1)][_0x4cfdef(0x1e9)](_0x23094c);return _0x4ed9aa!==void 0x0&&window[_0x4cfdef(0x246)](_0x4ed9aa),this[_0x4cfdef(0x490)][_0x4cfdef(0x390)](es(_0x23094c),this[_0x4cfdef(0x35e)][_0x4cfdef(0x1e9)](_0x23094c))[_0x4cfdef(0x39a)](()=>this['_saveTaskMap']['delete'](_0x23094c));}async['exhaustSavingTask'](){const _0x5234fe=_0x87081d,_0x2ea257=[];this[_0x5234fe(0x2e1)]['forEach']((_0x326ad6,_0x59b340)=>{const _0x35e17e=_0x5234fe;window[_0x35e17e(0x246)](_0x326ad6),_0x2ea257[_0x35e17e(0x1ab)](this['_saveCache'](_0x59b340)['then'](()=>{this['_saveTaskMap']['delete'](_0x59b340);}));}),await Promise['all'](_0x2ea257);}['_setupBeforeClosingHandler'](){const _0x33fb58=_0x87081d;this['disposeWithMe'](this[_0x33fb58(0x460)][_0x33fb58(0x36a)](()=>{const _0x1ec62b=_0x33fb58;if(this['_saveTaskMap'][_0x1ec62b(0x25e)])return this[_0x1ec62b(0x45a)]['t'](_0x1ec62b(0x42b));}));}};D=kn([Oe(0x0,_0x5d255f),Oe(0x1,_0x4b5ce8),Oe(0x2,_0x276384),Oe(0x3,_0x1b956a(_0x2db4b8)),Oe(0x4,_0x1b956a(_0xa786bc))],D);function es(_0x3de11b){const _0x552ef4=_0x87081d;return _0x552ef4(0x329)+_0x3de11b;}const tt=_0x1b08c0('univer-pro.collaboration-client.single-active-unit-service');var Us=(_0x1d2197=>(_0x1d2197[_0x1d2197[_0x87081d(0x4c0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1d2197[_0x1d2197[_0x87081d(0x472)]=0x1]='OTHER_CLIENTS_EDITING',_0x1d2197))(Us||{});const ts=0x7530,ss=_0x87081d(0x1b8);class Vn extends _0x1ee863{constructor(){const _0x5e483d=_0x87081d;super(),_(this,_0x5e483d(0x356),_0x1540f0[_0x5e483d(0x2b1)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5e483d(0x31d),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5e483d(0x23e),new Map()),_(this,_0x5e483d(0x470),new Map()),this[_0x5e483d(0x4fd)]();}[_0x87081d(0x23c)](){const _0x2d0735=_0x87081d;super['dispose'](),this[_0x2d0735(0x23e)]['forEach']((_0x5b1b61,_0x45134b)=>this['_removeClearOtherTimer'](_0x45134b)),this[_0x2d0735(0x3cd)]&&window[_0x2d0735(0x2c4)](this['_heartbeatTimer']);}[_0x87081d(0x3d8)](_0x35be89){const _0x107b6b=_0x87081d;return this[_0x107b6b(0x303)](_0x35be89)[_0x107b6b(0x3b6)](_0x1980f0());}[_0x87081d(0x4a3)](_0xc1ef1e){const _0x3978a1=_0x87081d;this[_0x3978a1(0x46b)][_0x3978a1(0x25e)]===0x0&&this[_0x3978a1(0x465)](),this[_0x3978a1(0x46b)][_0x3978a1(0x2ac)](_0xc1ef1e),this[_0x3978a1(0x3f0)]({'type':0x0,'memberID':this[_0x3978a1(0x356)],'unitIDs':[_0xc1ef1e],'isForwarded':!0x1});}[_0x87081d(0x32a)](_0x273ffe){const _0x18687f=_0x87081d;this[_0x18687f(0x46b)][_0x18687f(0x3c7)](_0x273ffe),this[_0x18687f(0x46b)][_0x18687f(0x25e)]===0x0&&this[_0x18687f(0x3cd)]&&window[_0x18687f(0x2c4)](this[_0x18687f(0x3cd)]);}[_0x87081d(0x4fd)](){const _0x1bf2a8=_0x87081d;this[_0x1bf2a8(0x343)](_0x3b697b(_0x28ccd8(window,_0x1bf2a8(0x214))[_0x1bf2a8(0x347)](_0x3c2a48=>{const _0x108c7f=_0x1bf2a8;if(_0x3c2a48[_0x108c7f(0x21d)]!==ss||!_0x3c2a48['newValue'])return;const _0x2d0ebe=JSON['parse'](_0x3c2a48[_0x108c7f(0x400)]);this[_0x108c7f(0x237)](_0x2d0ebe);}))),window[_0x1bf2a8(0x2ee)]('unload',()=>this[_0x1bf2a8(0x3f0)]({'type':0x1,'memberID':this[_0x1bf2a8(0x356)],'unitIDs':Array[_0x1bf2a8(0x1fc)](this[_0x1bf2a8(0x46b)])}));}[_0x87081d(0x237)](_0x580151){const _0x5568df=_0x87081d;switch(_0x580151[_0x5568df(0x47c)]){case 0x0:this[_0x5568df(0x2bc)](_0x580151);break;case 0x1:this[_0x5568df(0x4e9)](_0x580151);break;case 0x2:this['_handleHeartbeatEvent'](_0x580151);break;}}['_handleJoinEvent'](_0x1792d2){const _0x46406b=_0x87081d,{unitIDs:_0x400420,memberID:_0x142658,isForwarded:_0x13967d}=_0x1792d2;_0x400420[_0x46406b(0x1c8)](_0x28a7a8=>{const _0x2a58ee=_0x46406b;if(!_0x13967d&&this[_0x2a58ee(0x31d)]['has'](_0x28a7a8)&&this['_ensureSubject'](_0x28a7a8)[_0x2a58ee(0x4fe)](0x1),!this[_0x2a58ee(0x31d)][_0x2a58ee(0x382)](_0x28a7a8)||!this['_unitOnClients'][_0x2a58ee(0x1e9)](_0x28a7a8)[_0x2a58ee(0x382)](_0x142658)){const _0x45e3f6=this[_0x2a58ee(0x31d)][_0x2a58ee(0x1e9)](_0x28a7a8)||new Set();_0x45e3f6[_0x2a58ee(0x2ac)](_0x142658),this[_0x2a58ee(0x31d)][_0x2a58ee(0x4af)](_0x28a7a8,_0x45e3f6),this[_0x2a58ee(0x283)](_0x142658);}}),_0x13967d||this[_0x46406b(0x3f0)]({'type':0x0,'memberID':this[_0x46406b(0x356)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x87081d(0x283)](_0x14ebde){const _0x52fb4f=_0x87081d;this[_0x52fb4f(0x3b8)](_0x14ebde);const _0x2ebc37=window[_0x52fb4f(0x3a7)](()=>{const _0x6ec7d4=_0x52fb4f;this[_0x6ec7d4(0x31d)][_0x6ec7d4(0x1c8)](_0x2d723b=>{_0x2d723b['delete'](_0x14ebde);});},ts*0x2);this[_0x52fb4f(0x23e)][_0x52fb4f(0x4af)](_0x14ebde,_0x2ebc37);}[_0x87081d(0x3b8)](_0x4e50b4){const _0x4de5d8=_0x87081d;if(this[_0x4de5d8(0x23e)][_0x4de5d8(0x382)](_0x4e50b4)){const _0x438264=this[_0x4de5d8(0x23e)][_0x4de5d8(0x1e9)](_0x4e50b4);_0x438264&&window[_0x4de5d8(0x246)](_0x438264),this[_0x4de5d8(0x23e)][_0x4de5d8(0x4af)](_0x4e50b4,null);}}[_0x87081d(0x4e9)](_0x8c134d){const _0x466c62=_0x87081d,{memberID:_0x2a10d8,unitIDs:_0x53a815}=_0x8c134d;_0x53a815[_0x466c62(0x1c8)](_0xa5978=>{const _0x236dba=_0x466c62;var _0x2aca41;const _0x39ca97=this[_0x236dba(0x31d)][_0x236dba(0x1e9)](_0xa5978);_0x39ca97&&(_0x39ca97[_0x236dba(0x3c7)](_0x2a10d8),(_0x2aca41=this[_0x236dba(0x303)](_0xa5978))==null||_0x2aca41['next'](_0x39ca97[_0x236dba(0x25e)]===0x0?0x0:0x1));}),this[_0x466c62(0x3b8)](_0x2a10d8);}['_handleHeartbeatEvent'](_0x345828){const _0x30b940=_0x87081d;this[_0x30b940(0x283)](_0x345828[_0x30b940(0x2c0)]);}[_0x87081d(0x3f0)](_0x5b33f1){const _0x227f72=_0x87081d;localStorage[_0x227f72(0x390)](ss,JSON[_0x227f72(0x2e5)](_0x5b33f1));}[_0x87081d(0x465)](){const _0x118bb2=_0x87081d;this[_0x118bb2(0x3cd)]=window[_0x118bb2(0x48a)](()=>{const _0x5655db=_0x118bb2;this[_0x5655db(0x3f0)]({'type':0x2,'memberID':this['_id']});},ts);}[_0x87081d(0x303)](_0x6360fe){const _0x55c48e=_0x87081d;return this[_0x55c48e(0x470)][_0x55c48e(0x382)](_0x6360fe)||this[_0x55c48e(0x470)][_0x55c48e(0x4af)](_0x6360fe,new _0x2561fc(0x0)),this[_0x55c48e(0x470)][_0x55c48e(0x1e9)](_0x6360fe);}}var Bn=Object[_0x87081d(0x318)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x351ac8,_0x23ac4a,_0x5c634e,_0x5a11e7)=>{const _0x11a528=_0x87081d;for(var _0x53f00c=_0x5a11e7>0x1?void 0x0:_0x5a11e7?Fn(_0x23ac4a,_0x5c634e):_0x23ac4a,_0x1ac95d=_0x351ac8[_0x11a528(0x46a)]-0x1,_0x4e103c;_0x1ac95d>=0x0;_0x1ac95d--)(_0x4e103c=_0x351ac8[_0x1ac95d])&&(_0x53f00c=(_0x5a11e7?_0x4e103c(_0x23ac4a,_0x5c634e,_0x53f00c):_0x4e103c(_0x53f00c))||_0x53f00c);return _0x5a11e7&&_0x53f00c&&Bn(_0x23ac4a,_0x5c634e,_0x53f00c),_0x53f00c;},is=(_0x83509e,_0x302cd8)=>(_0x339e5e,_0x1d6184)=>_0x302cd8(_0x339e5e,_0x1d6184,_0x83509e);let Je=class{constructor(_0x8e516b,_0x34b2de){const _0x3b1e4e=_0x87081d;this[_0x3b1e4e(0x440)]=_0x8e516b,this['_transformService']=_0x34b2de;}['transformIMECache'](_0x41e22){const _0x1e88f0=_0x87081d;this[_0x1e88f0(0x299)](_0x41e22),this[_0x1e88f0(0x411)](_0x41e22);}[_0x87081d(0x31f)](_0x329131){const _0x204bb2=_0x87081d,_0x27b560=this['_injector'][_0x204bb2(0x1e9)](_0x34b802),{redoCache:_0x908ce7}=_0x27b560[_0x204bb2(0x368)]();if(_0x908ce7[_0x204bb2(0x46a)]===0x0)return _0x329131;let _0x4ce157=_0x1540f0[_0x204bb2(0x2d0)](_0x329131['mutations'][0x0]);for(let _0x35d9a2=0x0;_0x35d9a2<_0x908ce7['length'];_0x35d9a2++){const _0x5118d9={'id':_0x204bb2(0x2a0),'params':{..._0x908ce7[_0x35d9a2]}},_0x45d17b=this[_0x204bb2(0x290)][_0x204bb2(0x47f)](_0x4ce157,_0x5118d9,!0x1);if(_0x364f8f(_0x45d17b))throw _0x45d17b['error'];_0x4ce157=_0x45d17b['m1Prime'];}return{..._0x1540f0['deepClone'](_0x329131),'mutations':[_0x4ce157]};}['_transformUndoRedoStack'](_0x1d7671){const _0x5e2fba=_0x87081d,_0x3d3ed1=this['_injector']['get'](_0x34b802),{undoCache:_0x3ea250,redoCache:_0x2e97eb}=_0x3d3ed1[_0x5e2fba(0x368)]();if(_0x3ea250[_0x5e2fba(0x46a)]===0x0||_0x2e97eb[_0x5e2fba(0x46a)]===0x0)return;const _0x591edd=[],_0x58cf0b=[];let _0x802142=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671['mutations'][0x0]),_0x50d2ef=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671[_0x5e2fba(0x41e)][0x0]);for(let _0x2ed8d2=_0x3ea250[_0x5e2fba(0x46a)]-0x1;_0x2ed8d2>=0x0;_0x2ed8d2--){const _0x1f18e5={'id':_0x5e2fba(0x2a0),'params':{..._0x3ea250[_0x2ed8d2]}},_0x1bd5e8={'id':'doc.mutation.rich-text-editing','params':{..._0x2e97eb[_0x2ed8d2]}},_0x18e37a=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x802142,_0x1f18e5,!0x1),_0x1fb1a7=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x50d2ef,_0x1bd5e8,!0x1);if(_0x364f8f(_0x18e37a))throw _0x18e37a[_0x5e2fba(0x289)];if(_0x364f8f(_0x1fb1a7))throw _0x1fb1a7[_0x5e2fba(0x289)];_0x591edd[_0x5e2fba(0x377)](_0x18e37a[_0x5e2fba(0x36f)][_0x5e2fba(0x428)]),_0x58cf0b[_0x5e2fba(0x377)](_0x1fb1a7['m2Prime'][_0x5e2fba(0x428)]),_0x802142=_0x18e37a[_0x5e2fba(0x449)],_0x50d2ef=_0x1fb1a7['m1Prime'];}_0x3d3ed1[_0x5e2fba(0x1cd)]({'undoCache':_0x591edd,'redoCache':_0x58cf0b});}[_0x87081d(0x411)](_0x25a86d){const _0x2c3131=_0x87081d,_0x5397c0=this['_injector']['get'](_0x34b802),_0x5bdc8b=_0x5397c0[_0x2c3131(0x207)]();if(_0x5bdc8b==null)return;const _0x2c8fd5=[{'id':_0x2c3131(0x2a0),'params':{'unitId':_0x25a86d[_0x2c3131(0x3a8)],'actions':null,'textRanges':[_0x5bdc8b]}}],_0x13f958=this[_0x2c3131(0x290)][_0x2c3131(0x43b)](_0x25a86d,_0x2c8fd5);if(!_0x522a4(_0x13f958))throw _0x13f958['error'];const _0x123707=_0x13f958[_0x2c3131(0x36f)][0x0][_0x2c3131(0x428)]['textRanges'];Array[_0x2c3131(0x2d5)](_0x123707)&&_0x123707[_0x2c3131(0x46a)]&&_0x5397c0[_0x2c3131(0x2b3)](_0x123707[0x0]);}};Je=Wn([is(0x0,_0x1b956a(_0x4bf6fc)),is(0x1,_0x4e495a)],Je);var Gn=Object['defineProperty'],Yn=Object[_0x87081d(0x314)],Kn=(_0x497b98,_0x2262f2,_0x4a722a,_0x4052a9)=>{const _0x5316b5=_0x87081d;for(var _0x20f6f6=_0x4052a9>0x1?void 0x0:_0x4052a9?Yn(_0x2262f2,_0x4a722a):_0x2262f2,_0x5ef130=_0x497b98[_0x5316b5(0x46a)]-0x1,_0x2316f2;_0x5ef130>=0x0;_0x5ef130--)(_0x2316f2=_0x497b98[_0x5ef130])&&(_0x20f6f6=(_0x4052a9?_0x2316f2(_0x2262f2,_0x4a722a,_0x20f6f6):_0x2316f2(_0x20f6f6))||_0x20f6f6);return _0x4052a9&&_0x20f6f6&&Gn(_0x2262f2,_0x4a722a,_0x20f6f6),_0x20f6f6;},ns=(_0x4567eb,_0xd31eb4)=>(_0x22ba32,_0x183f03)=>_0xd31eb4(_0x22ba32,_0x183f03,_0x4567eb);let ze=class{constructor(_0x3b2a66,_0x133702){const _0x4a0504=_0x87081d;this[_0x4a0504(0x440)]=_0x3b2a66,this[_0x4a0504(0x290)]=_0x133702;}[_0x87081d(0x1b1)](_0x1a39c2){const _0x192227=_0x87081d;var _0x5705e7;const _0xf95fa8=this[_0x192227(0x440)][_0x192227(0x1e9)](_0x188da2),_0x4f786f=(_0x5705e7=_0xf95fa8[_0x192227(0x453)]())!=null?_0x5705e7:[],_0x4d0e90=_0x4f786f==null?void 0x0:_0x4f786f[_0x192227(0x234)](_0x249015);if(_0x4d0e90[_0x192227(0x46a)]===0x0)return;const _0x101cbe=[{'id':_0x192227(0x2a0),'params':{'unitId':_0x1a39c2['unitID'],'actions':null,'textRanges':_0x4d0e90}}],_0x1849a0=this[_0x192227(0x290)][_0x192227(0x43b)](_0x1a39c2,_0x101cbe);if(!_0x522a4(_0x1849a0))throw _0x1849a0['error'];const _0x35e95f=_0x1849a0[_0x192227(0x36f)][0x0][_0x192227(0x428)][_0x192227(0x20d)];Array['isArray'](_0x35e95f)&&_0x35e95f[_0x192227(0x46a)]&&_0xf95fa8[_0x192227(0x29f)](_0x35e95f,!0x1);}};ze=Kn([ns(0x0,_0x1b956a(_0x4bf6fc)),ns(0x1,_0x4e495a)],ze);function ys(_0x4585d3){const _0x4fe9a1=_0x87081d;let _0x3b6f14='';for(const _0x33b2ce of _0x4585d3){const {startOffset:_0x3b6a41,endOffset:_0x1a904c,isActive:_0x125838}=_0x33b2ce;_0x3b6f14[_0x4fe9a1(0x46a)]&&(_0x3b6f14+=','),_0x3b6f14+=_0x3b6a41+':'+_0x1a904c+':'+(_0x125838?'1':'0');}return _0x3b6f14;}function Xn(_0x87e561){const _0x45380b=_0x87081d,_0x236194=_0x87e561['split'](','),_0x780964=[];for(const _0x32d99c of _0x236194){const [_0x29838a,_0x517fbf,_0x4bd2e5]=_0x32d99c[_0x45380b(0x1aa)](':');_0x780964[_0x45380b(0x1ab)]({'startOffset':Number(_0x29838a),'endOffset':Number(_0x517fbf),'collapsed':_0x29838a===_0x517fbf,'isActive':_0x4bd2e5==='1'});}return _0x780964[_0x45380b(0x376)](_0x418e8e=>_0x418e8e[_0x45380b(0x386)])||(_0x780964[0x0][_0x45380b(0x386)]=!0x0),_0x780964;}class xt extends _0x53ce5a{constructor(){const _0x5468f9=_0x87081d;super(...arguments),_(this,_0x5468f9(0x42f),new _0x2561fc(null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5468f9(0x225)]());}[_0x87081d(0x276)](_0x2a9aba){const _0x4fda57=_0x87081d,{unitID:_0xa6240a,memberID:_0x5c3ecb,textRanges:_0x3dd3d0}=_0x2a9aba,_0x38fc47=ys(_0x3dd3d0),_0x2d72d6={'unitID':_0xa6240a,'memberID':_0x5c3ecb,'selection':_0x38fc47};this[_0x4fda57(0x42f)][_0x4fda57(0x4fe)](_0x2d72d6);}}var Jn=Object[_0x87081d(0x318)],zn=Object[_0x87081d(0x314)],qn=(_0x666e5a,_0x570ad2,_0x207775,_0x2a83b7)=>{const _0x155de1=_0x87081d;for(var _0x426e68=_0x2a83b7>0x1?void 0x0:_0x2a83b7?zn(_0x570ad2,_0x207775):_0x570ad2,_0x8aa2b2=_0x666e5a[_0x155de1(0x46a)]-0x1,_0x2faf6b;_0x8aa2b2>=0x0;_0x8aa2b2--)(_0x2faf6b=_0x666e5a[_0x8aa2b2])&&(_0x426e68=(_0x2a83b7?_0x2faf6b(_0x570ad2,_0x207775,_0x426e68):_0x2faf6b(_0x426e68))||_0x426e68);return _0x2a83b7&&_0x426e68&&Jn(_0x570ad2,_0x207775,_0x426e68),_0x426e68;},rs=(_0x5a8025,_0x18532a)=>(_0xebc922,_0x3da480)=>_0x18532a(_0xebc922,_0x3da480,_0x5a8025);function Zn(_0x154669){const _0x459c55=_0x87081d,{unitID:_0x542e91,mutations:_0xf34b05}=_0x154669;return{'unitId':_0x542e91,'subUnitId':_0xf34b05[0x0]['params'][_0x459c55(0x40c)]};}let qe=class{constructor(_0x42cbbd,_0x3e0929){const _0x6474b4=_0x87081d;this['_injector']=_0x42cbbd,this[_0x6474b4(0x290)]=_0x3e0929;}[_0x87081d(0x1b1)](_0x433b44){const _0x5b144b=_0x87081d;var _0x5f47e3,_0x3a9796,_0x3e23be;const _0x47ce4c=this[_0x5b144b(0x440)]['get'](_0x5973ef),{unitId:_0x1e7e9f,subUnitId:_0x3dd50e}=Zn(_0x433b44),_0x2bee27=_0x47ce4c[_0x5b144b(0x27e)](_0x1e7e9f)[_0x5b144b(0x32b)]();if(_0x2bee27[_0x5b144b(0x46a)]===0x0||!_0x1e7e9f||!_0x3dd50e)return;const _0x49a7c9=[{'id':_0x2ce045['id'],'params':{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x1540f0[_0x5b144b(0x2d0)](_0x2bee27)}}],_0x5c3448=this[_0x5b144b(0x290)][_0x5b144b(0x43b)](_0x433b44,_0x49a7c9);if(!_0x522a4(_0x5c3448))throw _0x5c3448[_0x5b144b(0x289)];const _0x575f27=(_0x3e23be=(_0x3a9796=(_0x5f47e3=_0x5c3448[_0x5b144b(0x36f)][0x0])==null?void 0x0:_0x5f47e3[_0x5b144b(0x428)])==null?void 0x0:_0x3a9796[_0x5b144b(0x22f)])!=null?_0x3e23be:_0x2bee27;Array[_0x5b144b(0x2d5)](_0x575f27)&&_0x575f27['length']&&this[_0x5b144b(0x440)][_0x5b144b(0x1e9)](_0x15992c)[_0x5b144b(0x224)](_0x2ce045['id'],{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x575f27});}};qe=qn([rs(0x0,_0x1b956a(_0x4bf6fc)),rs(0x1,_0x4e495a)],qe);const Qn=new Set([_0x171b5c['id']]);function os(_0x2d26d8,_0x32363d,_0x4b7b17,_0x1f79be,_0x285707){const _0x2d7dce=_0x87081d;var _0x37d912,_0xe1b76d,_0x18ae95,_0x57057c;const _0x420e81=[];for(const _0x414302 of _0x2d26d8)if(Qn[_0x2d7dce(0x382)](_0x414302['id'])){if(_0x420e81[_0x2d7dce(0x46a)]>0x0)break;_0x420e81[_0x2d7dce(0x1ab)](_0x414302);break;}else _0x420e81['push'](_0x414302);const _0x5774bd=(_0xe1b76d=(_0x37d912=_0x285707['getCurrentUser']())==null?void 0x0:_0x37d912[_0x2d7dce(0x1ce)])!=null?_0xe1b76d:'unknown',_0x4d0227=(_0x57057c=(_0x18ae95=_0x285707['getCurrentUser']())==null?void 0x0:_0x18ae95[_0x2d7dce(0x2c0)])!=null?_0x57057c:'unknown';return{'changeset':{'unitID':_0x32363d,'type':_0x4a77df(_0x4b7b17[_0x2d7dce(0x2ec)](_0x32363d)),'baseRev':_0x1f79be[_0x2d7dce(0x27c)](_0x32363d),'revision':0x0,'userID':_0x5774bd,'memberID':_0x4d0227,'mutations':_0x420e81},'pendingMutations':_0x2d26d8[_0x2d7dce(0x3d1)](_0x420e81[_0x2d7dce(0x46a)])};}function er(_0x359253,_0x1ff16f,_0x3011b5,_0x54e6cc,_0x41ad2c){const _0x544bc4=_0x87081d;var _0x48d667,_0x5b504d,_0x1dd241,_0x35d8fa;const _0x2ec51d=[_0x359253[_0x544bc4(0x1ec)]((_0x975b9e,_0x33319a)=>{const _0x2d4c6a=_0x544bc4;var _0x3ef0be;const {id:_0x4744d}=_0x975b9e,{id:_0x53e639,type:_0x4954b5}=_0x33319a,_0x577b94=(_0x3ef0be=_0x975b9e[_0x2d4c6a(0x428)])!=null?_0x3ef0be:{'actions':null},_0x473fb9=_0x33319a[_0x2d4c6a(0x428)];if(_0x4744d&&_0x4744d!==_0x53e639)throw new Error(_0x2d4c6a(0x4f8)+_0x4744d+'\x20-\x20'+_0x53e639+'.');return{..._0x975b9e,'id':_0x53e639,'type':_0x4954b5,'params':{'unitId':_0x473fb9[_0x2d4c6a(0x20b)],'textRanges':_0x473fb9[_0x2d4c6a(0x20d)],'actions':_0x4266b8[_0x2d4c6a(0x2f5)](_0x577b94[_0x2d4c6a(0x4f1)],_0x473fb9[_0x2d4c6a(0x4f1)])}};},{})],_0x5078db=(_0x5b504d=(_0x48d667=_0x41ad2c['getCurrentUser']())==null?void 0x0:_0x48d667['userID'])!=null?_0x5b504d:_0x544bc4(0x24a),_0x14235b=(_0x35d8fa=(_0x1dd241=_0x41ad2c[_0x544bc4(0x3b1)]())==null?void 0x0:_0x1dd241['memberID'])!=null?_0x35d8fa:_0x544bc4(0x24a);return{'changeset':{'unitID':_0x1ff16f,'type':_0x4a77df(_0x3011b5['getUnitType'](_0x1ff16f)),'baseRev':_0x54e6cc[_0x544bc4(0x27c)](_0x1ff16f),'revision':0x0,'userID':_0x5078db,'memberID':_0x14235b,'mutations':_0x2ec51d},'pendingMutations':[]};}const tr={'id':_0x53ecf2['id'],'type':_0xc9d637[_0x87081d(0x4eb)],'params':{}};var sr=Object[_0x87081d(0x318)],ir=Object['getOwnPropertyDescriptor'],ce=(_0x3a244b,_0x582295,_0x2a1d47,_0x2beeb0)=>{const _0x254f5e=_0x87081d;for(var _0x53465a=_0x2beeb0>0x1?void 0x0:_0x2beeb0?ir(_0x582295,_0x2a1d47):_0x582295,_0x567326=_0x3a244b[_0x254f5e(0x46a)]-0x1,_0x2d8cf4;_0x567326>=0x0;_0x567326--)(_0x2d8cf4=_0x3a244b[_0x567326])&&(_0x53465a=(_0x2beeb0?_0x2d8cf4(_0x582295,_0x2a1d47,_0x53465a):_0x2d8cf4(_0x53465a))||_0x53465a);return _0x2beeb0&&_0x53465a&&sr(_0x582295,_0x2a1d47,_0x53465a),_0x53465a;},f=(_0x4b5d60,_0x5f2bbc)=>(_0x319f33,_0x3c906b)=>_0x5f2bbc(_0x319f33,_0x3c906b,_0x4b5d60),P=(_0x3f2a25=>(_0x3f2a25['NOT_COLLAB']=_0x87081d(0x1db),_0x3f2a25[_0x87081d(0x1e3)]=_0x87081d(0x4c8),_0x3f2a25[_0x87081d(0x349)]=_0x87081d(0x419),_0x3f2a25[_0x87081d(0x3ee)]='awaiting',_0x3f2a25[_0x87081d(0x236)]=_0x87081d(0x359),_0x3f2a25['FETCH_MISS']=_0x87081d(0x3a5),_0x3f2a25['CONFLICT']=_0x87081d(0x3b7),_0x3f2a25[_0x87081d(0x2c5)]=_0x87081d(0x468),_0x3f2a25))(P||{});class he{constructor(_0x1eb8a9,_0x40beaa,_0x555100,_0x4b11ea,_0x51bd7f,_0x5475fa,_0x58baa2,_0x33d990,_0x586bd3){const _0x38076b=_0x87081d;_(this,'_awaitingChangeset',null),_(this,_0x38076b(0x3c2),[]),(this['unitID']=_0x1eb8a9,this[_0x38076b(0x47c)]=_0x40beaa,this['_handler']=_0x51bd7f,this['_commandService']=_0x5475fa,this[_0x38076b(0x46d)]=_0x58baa2,this[_0x38076b(0x4fa)]=_0x33d990,this[_0x38076b(0x1b0)]=_0x586bd3,this[_0x38076b(0x331)]=_0x555100,this[_0x38076b(0x3c2)]=_0x4b11ea);}[_0x87081d(0x40d)](_0xd098eb){const _0x29df99=_0x87081d,_0x5cc7a1=this['_revisionService'][_0x29df99(0x27c)](this[_0x29df99(0x3a8)]);return _0xd098eb['revision']>_0x5cc7a1+0x1?(this[_0x29df99(0x3f5)]['onMissingChangesets']({'from':_0x5cc7a1,'to':_0xd098eb['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1afcc5){const _0x146f57=_0x87081d;this[_0x146f57(0x46d)][_0x146f57(0x1f2)](this[_0x146f57(0x3a8)],_0x1afcc5);}[_0x87081d(0x1f4)](_0x44734d){const _0x386ed1=_0x87081d;var _0x3546b8,_0x3febd3;(_0x3febd3=(_0x3546b8=this['_handler'])[_0x386ed1(0x279)])==null||_0x3febd3[_0x386ed1(0x2cf)](_0x3546b8,_0x44734d);}[_0x87081d(0x3e1)](_0x52adb6){const _0x2d0262=_0x87081d;var _0x5fbe0a,_0x4d1aa0;return(_0x4d1aa0=(_0x5fbe0a=this[_0x2d0262(0x3f5)])['onTransformIME'])==null?void 0x0:_0x4d1aa0['call'](_0x5fbe0a,_0x52adb6);}['_transformRemoteChangesetByIMECache'](_0x2b7bc2){const _0x20597c=_0x87081d;var _0x28603d,_0xe62096,_0x21a66b;return(_0x21a66b=(_0xe62096=(_0x28603d=this['_handler'])[_0x20597c(0x1fd)])==null?void 0x0:_0xe62096[_0x20597c(0x2cf)](_0x28603d,_0x2b7bc2))!=null?_0x21a66b:_0x2b7bc2;}[_0x87081d(0x1f8)](_0x4e4783){const _0x4269bb=_0x87081d;var _0x3c7fc1,_0x38ad5a;if(this[_0x4269bb(0x47c)]===H[_0x4269bb(0x1c1)]){const {unitID:_0x2dea50,mutations:_0x2225b5,memberID:_0x206dba}=_0x4e4783,_0x1eb3c1=_0x2225b5[0x0][_0x4269bb(0x428)][_0x4269bb(0x20d)];Array[_0x4269bb(0x2d5)](_0x1eb3c1)&&_0x1eb3c1[_0x4269bb(0x46a)]>0x0&&((_0x38ad5a=(_0x3c7fc1=this[_0x4269bb(0x3f5)])[_0x4269bb(0x433)])==null||_0x38ad5a['call'](_0x3c7fc1,{'unitID':_0x2dea50,'memberID':_0x206dba,'textRanges':_0x1eb3c1}));}}[_0x87081d(0x21b)](){const _0x505222=_0x87081d;this[_0x505222(0x1b0)]['updateOfflineData'](this[_0x505222(0x3a8)],this[_0x505222(0x47c)],this['_awaitingChangeset'],this[_0x505222(0x3c2)]);}[_0x87081d(0x374)](){const _0x352fec=_0x87081d;return this[_0x352fec(0x4fa)]['getCurrentRevForDocument'](this[_0x352fec(0x3a8)]);}['_incrementRevisionNumber'](){const _0x11078a=_0x87081d;this[_0x11078a(0x4fa)][_0x11078a(0x306)](this[_0x11078a(0x3a8)]);}['_executeRemoteChangeset'](_0x4265ec){const _0x204da2=_0x87081d;var _0x398e11;const _0x301d50=this[_0x204da2(0x1af)](_0x4265ec),_0x57935a=_0x2a22c6(_0x301d50['mutations'],this[_0x204da2(0x248)],{'fromCollab':!0x0});if(!_0x57935a[_0x204da2(0x3cf)])throw _0x57935a[_0x204da2(0x289)]instanceof Error?_0x57935a[_0x204da2(0x289)]:new Error((_0x398e11=_0x57935a['error'])!=null?_0x398e11:'[CollaborationState]:\x20apply\x20error!');this[_0x204da2(0x3e1)](_0x301d50),this[_0x204da2(0x402)](_0x4265ec),this[_0x204da2(0x1f4)](_0x301d50),this[_0x204da2(0x1f8)](_0x301d50),this[_0x204da2(0x458)]();}}let Ue=class extends he{constructor(_0x23d3b8,_0x2a8269,_0x1d8483,_0x4d9870,_0x5223de,_0x447664,_0x219706,_0x4f757e,_0x2ade7f,_0x111db5){const _0xbdeee=_0x87081d;super(_0x23d3b8,_0x2a8269,null,[],_0x1d8483,_0x4f757e,_0x219706,_0x4d9870,_0x5223de),_(this,'status',_0xbdeee(0x4c8)),(this['_injector']=_0x447664,this[_0xbdeee(0x3e7)]=_0x2ade7f,this[_0xbdeee(0x290)]=_0x111db5);}[_0x87081d(0x34c)](_0x4039f2){const _0xcfd239=_0x87081d,_0x2ee85c=this[_0xcfd239(0x440)][_0xcfd239(0x427)](G,this['unitID'],this[_0xcfd239(0x47c)],[_0x4039f2],this[_0xcfd239(0x3f5)]);return _0x2ee85c[_0xcfd239(0x4db)](),_0x2ee85c[_0xcfd239(0x21b)](),_0x2ee85c;}[_0x87081d(0x3d5)](_0x2126dc){const _0x2e962e=_0x87081d;if(this['_checkMissing'](_0x2126dc))return this['_injector'][_0x2e962e(0x427)](K,this[_0x2e962e(0x3a8)],this['type'],null,[],null,[_0x2126dc],this[_0x2e962e(0x3f5)]);try{const _0x601016=this[_0x2e962e(0x290)][_0x2e962e(0x43b)](_0x2126dc,[tr]);if(_0x522a4(_0x601016)){const {c1Prime:_0x4e3513}=_0x601016;return this[_0x2e962e(0x445)](_0x4e3513),this;}throw _0x601016[_0x2e962e(0x289)];}catch(_0x20ae64){return this[_0x2e962e(0x3e7)][_0x2e962e(0x289)](_0x20ae64),this[_0x2e962e(0x2ff)](!0x1);}}['_onConflict'](_0x5981de){const _0x46b47d=_0x87081d;return this[_0x46b47d(0x440)]['createInstance'](Z,this['unitID'],this[_0x46b47d(0x47c)],null,[],this['_handler'],_0x5981de);}[_0x87081d(0x2dc)](){const _0x191053=_0x87081d;throw new Error(_0x191053(0x40a));}[_0x87081d(0x256)](){const _0x35bc3e=_0x87081d;throw new Error(_0x35bc3e(0x42d));}[_0x87081d(0x4dc)](){const _0x4856af=_0x87081d;return this[_0x4856af(0x440)][_0x4856af(0x427)](Q,this[_0x4856af(0x3a8)],this[_0x4856af(0x47c)],null,[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x4007c9=_0x87081d;throw new Error(_0x4007c9(0x35b));}};Ue=ce([f(0x3,_0x1b956a(_0xa786bc)),f(0x4,_0x1b956a(D)),f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x22132f),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a)],Ue);let G=class extends he{constructor(_0x436ced,_0x3f4710,_0x5b0360,_0x398bc2,_0x14f29c,_0x3b4640,_0x1dab05,_0x590389,_0x37f6d8,_0x716c14,_0x26e204,_0x47a33e,_0x24d1cc,_0x2b2673){const _0x8cd88a=_0x87081d;super(_0x436ced,_0x3f4710,null,_0x5b0360,_0x398bc2,_0x716c14,_0x2b2673,_0x3b4640,_0x1dab05),_(this,'status',_0x8cd88a(0x419)),_(this,_0x8cd88a(0x3ac),null),_(this,_0x8cd88a(0x44f),null),(this[_0x8cd88a(0x440)]=_0x14f29c,this[_0x8cd88a(0x2e6)]=_0x590389,this[_0x8cd88a(0x3e7)]=_0x37f6d8,this['_configService']=_0x26e204,this[_0x8cd88a(0x290)]=_0x47a33e,this['_univerInstanceService']=_0x24d1cc);}[_0x87081d(0x34c)](_0x5993cc){const _0x269b1d=_0x87081d;return this[_0x269b1d(0x3c2)][_0x269b1d(0x1ab)](_0x5993cc),this[_0x269b1d(0x21b)](),this;}['onRemoteChangeset'](_0x363bc2){const _0x2075e1=_0x87081d;if(this['_checkMissing'](_0x363bc2))return this[_0x2075e1(0x469)](),this['_injector'][_0x2075e1(0x427)](K,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x363bc2],this['_handler']);try{const _0x2780be=this[_0x2075e1(0x290)][_0x2075e1(0x43b)](_0x363bc2,this[_0x2075e1(0x3c2)]);if(_0x522a4(_0x2780be)){const {c1Prime:_0x196134,m2Prime:_0x33d7d9}=_0x2780be;this[_0x2075e1(0x445)](_0x196134);const _0x2a498c=this[_0x2075e1(0x440)][_0x2075e1(0x427)](G,this[_0x2075e1(0x3a8)],this[_0x2075e1(0x47c)],_0x33d7d9,this[_0x2075e1(0x3f5)]);return this[_0x2075e1(0x469)](),_0x2a498c['_schedule'](this[_0x2075e1(0x3ac)]?Math[_0x2075e1(0x254)](0x0,new Date()['getTime']()-this[_0x2075e1(0x3ac)]):this[_0x2075e1(0x463)]()),_0x2a498c;}throw _0x2780be[_0x2075e1(0x289)];}catch(_0x14a664){return this['_logService'][_0x2075e1(0x289)](_0x14a664),this[_0x2075e1(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](){const _0x1cfbbd=_0x87081d;throw new Error(_0x1cfbbd(0x3de));}['onRemoteRej'](){const _0x547f95=_0x87081d;throw new Error(_0x547f95(0x4ff));}['toggleOffline'](){const _0x25c737=_0x87081d;return this['_clearScheduledTask'](),this[_0x25c737(0x440)][_0x25c737(0x427)](Q,this['unitID'],this[_0x25c737(0x47c)],null,this[_0x25c737(0x3c2)],this['_handler']);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x4db)](_0x1e6859){const _0x562451=_0x87081d;_0x1e6859=_0x1e6859!=null?_0x1e6859:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()[_0x562451(0x45b)](),this[_0x562451(0x44f)]=setTimeout(()=>{const _0x525a71=_0x562451;this[_0x525a71(0x469)]();let _0x27e287=null;switch(this[_0x525a71(0x47c)]){case H[_0x525a71(0x471)]:{_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}case H['UNIVER_DOC']:{this[_0x525a71(0x3c2)][_0x525a71(0x3ea)](_0x1a9a5d=>_0x1a9a5d['id']===_0x40568f['id'])?_0x27e287=er(this['_pendingMutations'],this[_0x525a71(0x3a8)],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]):_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this[_0x525a71(0x2bb)],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x525a71(0x47c)]+_0x525a71(0x2b6));}const {changeset:_0x7fd4f1,pendingMutations:_0xb131b4}=_0x27e287;this['_handler'][_0x525a71(0x4f9)](_0x7fd4f1);const _0xc401d6=_0xb131b4[_0x525a71(0x46a)]?this[_0x525a71(0x440)]['createInstance'](Y,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,_0xb131b4,this[_0x525a71(0x3f5)]):this[_0x525a71(0x440)][_0x525a71(0x427)](q,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,this['_handler']);_0xc401d6[_0x525a71(0x21b)](),this[_0x525a71(0x3f5)][_0x525a71(0x4dd)](this,_0xc401d6);},_0x1e6859);}[_0x87081d(0x463)](){const _0x22a0b2=_0x87081d;var _0x50f47f;return(_0x50f47f=this[_0x22a0b2(0x252)][_0x22a0b2(0x38a)](_n))!=null?_0x50f47f:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x163fb5=_0x87081d;this[_0x163fb5(0x44f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x163fb5(0x44f)]=null);}[_0x87081d(0x2ff)](_0x5a53db){const _0x3e61ea=_0x87081d;return this[_0x3e61ea(0x469)](),this[_0x3e61ea(0x440)]['createInstance'](Z,this[_0x3e61ea(0x3a8)],this[_0x3e61ea(0x47c)],null,this[_0x3e61ea(0x3c2)],this[_0x3e61ea(0x3f5)],_0x5a53db);}};G=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x1b956a(ne)),f(0x8,_0x82a609),f(0x9,_0x15992c),f(0xa,_0x5d255f),f(0xb,_0x4e495a),f(0xc,_0x1d5396),f(0xd,_0x22132f)],G);let q=class extends he{constructor(_0x2d2cd6,_0x236d10,_0x5e33b4,_0x1f8f13,_0xb51783,_0x2e51e1,_0x29837d,_0x3e5da4,_0x280873,_0x1c87c2,_0x3c8160){const _0xe9d540=_0x87081d;super(_0x2d2cd6,_0x236d10,_0x5e33b4,[],_0x1f8f13,_0x3e5da4,_0x3c8160,_0x2e51e1,_0x29837d),_(this,_0xe9d540(0x3a9),_0xe9d540(0x441)),(this[_0xe9d540(0x440)]=_0xb51783,this[_0xe9d540(0x3e7)]=_0x280873,this[_0xe9d540(0x290)]=_0x1c87c2);}[_0x87081d(0x34c)](_0x596c6d){const _0x3f5323=_0x87081d,_0x3aa43b=this[_0x3f5323(0x440)][_0x3f5323(0x427)](Y,this[_0x3f5323(0x3a8)],this[_0x3f5323(0x47c)],this['_awaitingChangeset'],[_0x596c6d],this['_handler']);return _0x3aa43b[_0x3f5323(0x21b)](),_0x3aa43b;}[_0x87081d(0x3d5)](_0x5c9d06){const _0x1c4eeb=_0x87081d;if(this[_0x1c4eeb(0x40d)](_0x5c9d06))return this[_0x1c4eeb(0x440)]['createInstance'](K,this['unitID'],this[_0x1c4eeb(0x47c)],this[_0x1c4eeb(0x331)],[],null,[_0x5c9d06],this[_0x1c4eeb(0x3f5)]);try{const _0x27aed9=this[_0x1c4eeb(0x290)][_0x1c4eeb(0x2f2)]([_0x5c9d06],[this[_0x1c4eeb(0x331)]],!0x1);if(_0xcffb46(_0x27aed9)){const {c1Prime:_0x11b99d,c2Prime:_0x9240dd}=_0x27aed9;this['_executeRemoteChangeset'](_0x11b99d[0x0]),_0x9240dd[0x0][_0x1c4eeb(0x2b5)]=this[_0x1c4eeb(0x374)]();const _0x57c35c=this[_0x1c4eeb(0x440)]['createInstance'](q,this[_0x1c4eeb(0x3a8)],this['type'],_0x9240dd[0x0],this['_handler']);return _0x57c35c[_0x1c4eeb(0x21b)](),_0x57c35c;}return this[_0x1c4eeb(0x2ff)](!0x1);}catch(_0x347b33){return this[_0x1c4eeb(0x3e7)][_0x1c4eeb(0x289)](_0x347b33),this[_0x1c4eeb(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](_0x42b43a){const _0x564f5f=_0x87081d,_0x46c501=this['_revisionService'][_0x564f5f(0x27c)](this[_0x564f5f(0x3a8)]);if(_0x42b43a['revision']<_0x46c501-0x1)return this;if(this[_0x564f5f(0x40d)](_0x42b43a))return this[_0x564f5f(0x440)][_0x564f5f(0x427)](K,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],null,[],this[_0x564f5f(0x331)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x25219c=this[_0x564f5f(0x440)][_0x564f5f(0x427)](Ue,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],this[_0x564f5f(0x3f5)]);return _0x25219c[_0x564f5f(0x21b)](),_0x25219c;}[_0x87081d(0x256)](_0x1985c7){const _0x394327=_0x87081d;return this[_0x394327(0x2ff)](!!(_0x1985c7!=null&&_0x1985c7[_0x394327(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x3e6358=_0x87081d;return this['_injector'][_0x3e6358(0x427)](Q,this[_0x3e6358(0x3a8)],this['type'],this['_awaitingChangeset'],[],this[_0x3e6358(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x16d04d=_0x87081d;this[_0x16d04d(0x3f5)][_0x16d04d(0x4f9)](this[_0x16d04d(0x331)]);}['_onConflict'](_0x3fb85b){const _0x4be02e=_0x87081d;return this[_0x4be02e(0x440)]['createInstance'](Z,this['unitID'],this[_0x4be02e(0x47c)],this['_awaitingChangeset'],[],this[_0x4be02e(0x3f5)],_0x3fb85b);}};q=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a),f(0xa,_0x22132f)],q);let Y=class extends he{constructor(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x21d750,_0x3d1fb5,_0x3ecf3f,_0x101a2e,_0x4009a5,_0xa7d11b,_0x37a6fc){const _0x4d2091=_0x87081d;super(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x101a2e,_0x37a6fc,_0x3d1fb5,_0x3ecf3f),_(this,'status',_0x4d2091(0x359)),(this[_0x4d2091(0x440)]=_0x21d750,this[_0x4d2091(0x3e7)]=_0x4009a5,this['_transformService']=_0xa7d11b);}[_0x87081d(0x34c)](_0x654047){const _0x429ce0=_0x87081d;return this[_0x429ce0(0x3c2)][_0x429ce0(0x1ab)](_0x654047),this;}[_0x87081d(0x3d5)](_0x2b1ed8){const _0x1b46d7=_0x87081d;if(this['_checkMissing'](_0x2b1ed8))return this[_0x1b46d7(0x440)][_0x1b46d7(0x427)](K,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],this[_0x1b46d7(0x331)],this[_0x1b46d7(0x3c2)],null,[_0x2b1ed8],this['_handler']);try{const _0x4195fb=this[_0x1b46d7(0x290)][_0x1b46d7(0x2f2)]([_0x2b1ed8],[this[_0x1b46d7(0x331)]],!0x1);if(_0xcffb46(_0x4195fb)){const {c1Prime:_0x466955,c2Prime:_0xc2e402}=_0x4195fb,_0xc2eaff=this['_transformService']['transformMutationsWithChangeset'](_0x466955[0x0],this['_pendingMutations']);if(_0x522a4(_0xc2eaff)){const {c1Prime:_0x367164,m2Prime:_0x3b6165}=_0xc2eaff;return this[_0x1b46d7(0x445)](_0x367164),_0xc2e402[0x0][_0x1b46d7(0x2b5)]=this[_0x1b46d7(0x374)](),this[_0x1b46d7(0x440)]['createInstance'](Y,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],_0xc2e402[0x0],_0x3b6165,this[_0x1b46d7(0x3f5)]);}throw _0xc2eaff[_0x1b46d7(0x289)];}throw _0x4195fb[_0x1b46d7(0x289)];}catch(_0x5954dc){return this[_0x1b46d7(0x3e7)][_0x1b46d7(0x289)](_0x5954dc),this['_onConflict'](!0x1);}}[_0x87081d(0x2dc)](_0x3c5057){const _0x5bb28a=_0x87081d;if(this['_checkMissing'](_0x3c5057))return this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](K,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x5bb28a(0x3f5)]);this[_0x5bb28a(0x458)]();const _0x48865e=this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](G,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],this[_0x5bb28a(0x3c2)],this[_0x5bb28a(0x3f5)]);return _0x48865e['_schedule'](),_0x48865e[_0x5bb28a(0x21b)](),_0x48865e;}['onRemoteRej'](_0x25cbaf){const _0x39c204=_0x87081d;return this[_0x39c204(0x2ff)](!!(_0x25cbaf!=null&&_0x25cbaf[_0x39c204(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x13b3a4=_0x87081d;return this[_0x13b3a4(0x440)]['createInstance'](Q,this[_0x13b3a4(0x3a8)],this['type'],this[_0x13b3a4(0x331)],this[_0x13b3a4(0x3c2)],this[_0x13b3a4(0x3f5)]);}['toggleOnline'](){return this;}['resend'](){const _0x485ae7=_0x87081d;this[_0x485ae7(0x3f5)][_0x485ae7(0x4f9)](this[_0x485ae7(0x331)]);}['_onConflict'](_0x1c2da7){const _0x1f5229=_0x87081d;return this[_0x1f5229(0x440)]['createInstance'](Z,this[_0x1f5229(0x3a8)],this[_0x1f5229(0x47c)],null,this[_0x1f5229(0x3c2)],this[_0x1f5229(0x3f5)],_0x1c2da7);}};Y=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x82a609),f(0xa,_0x4e495a),f(0xb,_0x22132f)],Y);let Z=class extends he{constructor(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0x118e45=!0x1,_0x4714ba,_0xc15a3c,_0x3f68eb,_0x5a1ebc,_0x2c706c,_0x8c70c3,_0x476787){const _0x21c552=_0x87081d;super(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0xc15a3c,_0x3f68eb,_0x2c706c,_0x5a1ebc),_(this,_0x21c552(0x3a9),_0x21c552(0x3b7)),(this[_0x21c552(0x271)]=_0x118e45,this[_0x21c552(0x1d4)]=_0x4714ba,this[_0x21c552(0x45a)]=_0x8c70c3,this[_0x21c552(0x48e)]=_0x476787,this[_0x21c552(0x1d0)](),this[_0x21c552(0x1e1)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x87081d(0x2dc)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x596029=_0x87081d;throw new Error(_0x596029(0x28e));}['_clearLocalCache'](){const _0x5ae664=_0x87081d;this[_0x5ae664(0x1b0)][_0x5ae664(0x23a)](this[_0x5ae664(0x3a8)],this[_0x5ae664(0x47c)],null,[]);}[_0x87081d(0x1d0)](){const _0x28073f=_0x87081d;this['_isPermissionRej']?this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this[_0x28073f(0x45a)]['t'](_0x28073f(0x204)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x407)),'type':'error','duration':0x0}):this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this['_localeService']['t'](_0x28073f(0x315)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x261)),'type':'error','duration':0x0});}[_0x87081d(0x4ec)](){const _0x2b540a=_0x87081d;this['_permissionService'][_0x2b540a(0x1dd)](new _0x372984(this[_0x2b540a(0x3a8)])['id'],!0x1);}};Z=ce([f(0x6,_0x1b956a(_0x5543f8)),f(0x7,_0x15992c),f(0x8,_0x22132f),f(0x9,_0x1b956a(D)),f(0xa,_0x1b956a(_0xa786bc)),f(0xb,_0x1b956a(_0x2db4b8)),f(0xc,_0x11083e)],Z);let Q=class extends he{constructor(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x2dc8f4,_0x2df86a,_0x50d6f0,_0x359ce8,_0x194b26){const _0x5b8099=_0x87081d;super(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x359ce8,_0x194b26,_0x2df86a,_0x50d6f0),_(this,'status',_0x5b8099(0x468)),this[_0x5b8099(0x440)]=_0x2dc8f4;}[_0x87081d(0x34c)](_0x48b18a){const _0x30d41b=_0x87081d;return this[_0x30d41b(0x3c2)][_0x30d41b(0x1ab)](_0x48b18a),this[_0x30d41b(0x21b)](),this;}[_0x87081d(0x3d5)](_0x5b70fb){const _0x2d6a62=_0x87081d;throw new Error(_0x2d6a62(0x22c));}[_0x87081d(0x2dc)](){const _0x4c96a3=_0x87081d;throw new Error(_0x4c96a3(0x442));}[_0x87081d(0x256)](){const _0x392e23=_0x87081d;throw new Error(_0x392e23(0x330));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x4137b5=_0x87081d,{_injector:_0x5182d6,_pendingMutations:_0x4f8ae7,_awaitingChangeset:_0x3baa97,unitID:_0x25e813,_handler:_0x27cdd8,type:_0x45b192}=this,_0xee8c85=Ls(_0x5182d6,_0x25e813,_0x45b192,_0x3baa97,_0x4f8ae7,_0x27cdd8);return _0xee8c85 instanceof G?_0xee8c85[_0x4137b5(0x4db)]():(_0xee8c85 instanceof Y||_0xee8c85 instanceof q)&&_0xee8c85[_0x4137b5(0x363)](),_0xee8c85;}[_0x87081d(0x363)](){const _0x3a9516=_0x87081d;throw new Error(_0x3a9516(0x4c4));}};Q=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x22132f)],Q);let K=class extends he{constructor(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x40269a,_0x122227,_0x2553b2,_0x15f37f,_0x53ee99,_0x3f624c,_0x230779,_0x2164e7,_0x5ecff1,_0x36fef5){const _0x5060c8=_0x87081d;super(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x2553b2,_0x2164e7,_0x5ecff1,_0x53ee99,_0x3f624c),_(this,_0x5060c8(0x3a9),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x40269a,this['_queuedRemoteChangesets']=_0x122227,this[_0x5060c8(0x440)]=_0x15f37f,this[_0x5060c8(0x3e7)]=_0x230779,this['_transformService']=_0x36fef5);}['onMissedChangesetFetched'](_0x2ee453){const _0x40b96d=_0x87081d;try{const _0x1ed74c=[..._0x2ee453,...this[_0x40b96d(0x43a)]],_0x245584=[this[_0x40b96d(0x331)]||this['_acknowledgedAwaitingChangeset']][_0x40b96d(0x421)](_0x10996d=>!!_0x10996d);let _0x5ec2f8,_0x53165b;if(_0x245584[_0x40b96d(0x46a)]){const _0x8da321=this['_transformService'][_0x40b96d(0x2f2)](_0x1ed74c,_0x245584,!0x1);if(!_0xcffb46(_0x8da321))throw _0x8da321[_0x40b96d(0x289)];_0x5ec2f8=_0x8da321[_0x40b96d(0x39e)],_0x53165b=_0x8da321['c2Prime'];}else _0x5ec2f8=_0x1ed74c,_0x53165b=[];let _0x251fb4=this[_0x40b96d(0x3c2)];_0x5ec2f8[_0x40b96d(0x1c8)](_0x984f69=>{const _0x59c466=_0x40b96d;let _0x4f377b;if(_0x251fb4[_0x59c466(0x46a)]){const _0x2b567d=this[_0x59c466(0x290)][_0x59c466(0x43b)](_0x984f69,_0x251fb4);if(!_0x522a4(_0x2b567d))throw _0x2b567d['error'];_0x4f377b=_0x2b567d['c1Prime'],_0x251fb4=_0x2b567d[_0x59c466(0x36f)];}else _0x4f377b=_0x984f69;this['_executeRemoteChangeset'](_0x4f377b);}),this[_0x40b96d(0x2ed)]&&this[_0x40b96d(0x458)](),this['_awaitingChangeset']&&_0x53165b[_0x40b96d(0x46a)]&&(_0x53165b[0x0][_0x40b96d(0x2b5)]=this[_0x40b96d(0x374)]());let _0x3f41ad;if(this[_0x40b96d(0x331)]&&_0x251fb4[_0x40b96d(0x46a)]!==0x0)_0x3f41ad=this['_injector'][_0x40b96d(0x427)](Y,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x53165b[0x0],_0x251fb4,this[_0x40b96d(0x3f5)]);else{if(this['_awaitingChangeset']&&_0x251fb4['length']===0x0)_0x53165b[0x0][_0x40b96d(0x2b5)]=this['_getCurrentRevision'](),_0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](q,this['unitID'],this[_0x40b96d(0x47c)],_0x53165b[0x0],this[_0x40b96d(0x3f5)]);else{if(_0x251fb4[_0x40b96d(0x46a)]!==0x0){const _0x255804=this[_0x40b96d(0x440)]['createInstance'](G,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x251fb4,this[_0x40b96d(0x3f5)]);_0x255804[_0x40b96d(0x4db)](),_0x3f41ad=_0x255804;}else _0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](Ue,this['unitID'],this['type'],this[_0x40b96d(0x3f5)]);}}return _0x3f41ad[_0x40b96d(0x21b)](),_0x3f41ad;}catch(_0x11f2b3){return this[_0x40b96d(0x3e7)][_0x40b96d(0x289)]('[FetchMissState]',_0x40b96d(0x3a4),_0x11f2b3),this[_0x40b96d(0x440)][_0x40b96d(0x427)](Z,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],this[_0x40b96d(0x331)],this[_0x40b96d(0x3c2)],this[_0x40b96d(0x3f5)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x390bc7){const _0x306ffb=_0x87081d;return this[_0x306ffb(0x3c2)][_0x306ffb(0x1ab)](_0x390bc7),this;}[_0x87081d(0x3d5)](_0xd61ff){const _0xf43fae=_0x87081d;return this[_0xf43fae(0x43a)][_0xf43fae(0x1ab)](_0xd61ff),this;}[_0x87081d(0x2dc)](_0x89831){const _0x1f7c1e=_0x87081d;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x1f7c1e(0x331)],this[_0x1f7c1e(0x331)]=null,this;throw new Error(_0x1f7c1e(0x212));}[_0x87081d(0x256)](_0x378aeb){const _0x34f236=_0x87081d;return this['_onConflict'](!!(_0x378aeb!=null&&_0x378aeb[_0x34f236(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x165ef=_0x87081d;return this[_0x165ef(0x440)][_0x165ef(0x427)](Q,this['unitID'],this[_0x165ef(0x47c)],this[_0x165ef(0x331)],this[_0x165ef(0x3c2)],this[_0x165ef(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x2ff)](_0x3171ac){const _0x282626=_0x87081d;return this['_injector'][_0x282626(0x427)](Z,this[_0x282626(0x3a8)],this[_0x282626(0x47c)],this[_0x282626(0x331)],this[_0x282626(0x3c2)],this[_0x282626(0x3f5)],_0x3171ac);}};K=ce([f(0x7,_0x1b956a(_0x4bf6fc)),f(0x8,_0x1b956a(_0xa786bc)),f(0x9,_0x1b956a(D)),f(0xa,_0x82a609),f(0xb,_0x15992c),f(0xc,_0x22132f),f(0xd,_0x4e495a)],K);function Ls(_0x438bed,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e){const _0x7a86cc=_0x87081d;return _0x2bfa2b&&_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](Y,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e):_0x2bfa2b?_0x438bed['createInstance'](q,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x48c36e):_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](G,_0x36e32a,_0x50fcb9,_0x2dcb4b,_0x48c36e):_0x438bed[_0x7a86cc(0x427)](Ue,_0x36e32a,_0x50fcb9,_0x48c36e);}var nr=Object[_0x87081d(0x318)],rr=Object[_0x87081d(0x314)],st=(_0x25c7b6,_0xf415d7,_0x492bd8,_0x428af9)=>{const _0x54ec17=_0x87081d;for(var _0x72382a=_0x428af9>0x1?void 0x0:_0x428af9?rr(_0xf415d7,_0x492bd8):_0xf415d7,_0x41162e=_0x25c7b6[_0x54ec17(0x46a)]-0x1,_0x552c42;_0x41162e>=0x0;_0x41162e--)(_0x552c42=_0x25c7b6[_0x41162e])&&(_0x72382a=(_0x428af9?_0x552c42(_0xf415d7,_0x492bd8,_0x72382a):_0x552c42(_0x72382a))||_0x72382a);return _0x428af9&&_0x72382a&&nr(_0xf415d7,_0x492bd8,_0x72382a),_0x72382a;},p=(_0x4cd6d9,_0x50d227)=>(_0x54ddba,_0x45f70f)=>_0x50d227(_0x54ddba,_0x45f70f,_0x4cd6d9);let Me=class extends _0x53ce5a{constructor(_0x56a946,_0x9f84e8,_0x240e0c){const _0xb73cf0=_0x87081d;super(),_(this,_0xb73cf0(0x3f7),new Map()),_(this,_0xb73cf0(0x3ed),new _0x1ace47()),(this[_0xb73cf0(0x440)]=_0x56a946,this['_collabSessionService']=_0x9f84e8,this['_univerInstanceService']=_0x240e0c,this[_0xb73cf0(0x4fd)]());}[_0x87081d(0x23c)](){const _0x258cdf=_0x87081d;super['dispose'](),this[_0x258cdf(0x3f7)][_0x258cdf(0x1c8)](_0x4061d4=>_0x4061d4['dispose']()),this[_0x258cdf(0x3f7)][_0x258cdf(0x291)]();}[_0x87081d(0x284)](_0x2023a7){const _0x47631b=_0x87081d;var _0x1446b3;return(_0x1446b3=this[_0x47631b(0x3f7)]['get'](_0x2023a7))!=null?_0x1446b3:null;}[_0x87081d(0x1a2)](_0x2f1458){const _0x353b60=_0x87081d,_0x71c743=this[_0x353b60(0x284)](_0x2f1458);return _0x71c743?_0x274530(_0x71c743):this[_0x353b60(0x3ed)]['pipe'](_0x381935(_0xa2686a=>_0xa2686a[_0x353b60(0x3a8)]===_0x2f1458));}[_0x87081d(0x4fd)](){const _0x1f30e1=_0x87081d;this[_0x1f30e1(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d['UNIVER_SHEET'])['pipe'](_0x3c23a9(this['dispose$']),_0xd2b55d(0x10))[_0x1f30e1(0x347)](async _0x55fc70=>{const _0x19ed1a=_0x1f30e1,_0x4ed844=_0x55fc70[_0x19ed1a(0x1b5)](),_0x7173d8=await this[_0x19ed1a(0x323)](_0x4ed844,H[_0x19ed1a(0x471)]);this[_0x19ed1a(0x3f7)][_0x19ed1a(0x4af)](_0x4ed844,_0x7173d8);}),this['_univerInstanceService'][_0x1f30e1(0x2c7)](_0x5a714d['UNIVER_DOC'])[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]),_0xd2b55d(0x10))['pipe'](_0x381935(_0x21e73e=>!_0x21e73e[_0x1f30e1(0x1b5)]()[_0x1f30e1(0x4ab)]('__')))[_0x1f30e1(0x347)](async _0xdbbf6e=>{const _0x18afe6=_0x1f30e1,_0x5592b8=_0xdbbf6e[_0x18afe6(0x1b5)](),_0x3c0897=await this[_0x18afe6(0x323)](_0x5592b8,H[_0x18afe6(0x1c1)]);this[_0x18afe6(0x3f7)]['set'](_0x5592b8,_0x3c0897);}),_0x1d3042(this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x471)]),this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x1c1)]))[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]))['subscribe'](_0x38cca3=>{const _0xa7ced2=_0x1f30e1,_0x30b8c3=_0x38cca3[_0xa7ced2(0x1b5)](),_0x45a93a=this[_0xa7ced2(0x3f7)][_0xa7ced2(0x1e9)](_0x30b8c3);_0x45a93a&&(_0x45a93a[_0xa7ced2(0x23c)](),this[_0xa7ced2(0x3f7)][_0xa7ced2(0x3c7)](_0x30b8c3));});}async['_startCollaboration'](_0x527bc0,_0x50426c){const _0x5e7715=_0x87081d,_0x1bc0da=await this[_0x5e7715(0x1ad)][_0x5e7715(0x316)](_0x527bc0),_0x308de9=this[_0x5e7715(0x440)][_0x5e7715(0x427)](this['_getCtorByUniverType'](_0x50426c),_0x527bc0,_0x50426c,_0x1bc0da);return await _0x308de9[_0x5e7715(0x310)](),this[_0x5e7715(0x3ed)][_0x5e7715(0x4fe)](_0x308de9),_0x308de9;}[_0x87081d(0x2c9)](_0x34f925){const _0x409076=_0x87081d;switch(_0x34f925){case H[_0x409076(0x1c1)]:return Et;case H[_0x409076(0x471)]:return Ct;default:throw new Error(_0x409076(0x25c)+_0x34f925);}}};Me=st([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Me),p(0x0,_0x1b956a(_0x4bf6fc)),p(0x1,_0x1b956a(pe)),p(0x2,_0x1d5396)],Me);let Ze=class extends _0x53ce5a{constructor(_0x2aca5c,_0x581b86,_0x2fab0a,_0x20ed2a,_0xa8f7b2,_0x214919,_0x31e142,_0x5e6a4a,_0x3cfd5b,_0x994559,_0x5ca70f,_0x568b83,_0x248e49){const _0x410e73=_0x87081d;super(),_(this,_0x410e73(0x489),new _0x2561fc(null)),_(this,_0x410e73(0x2d8),this['_state$'][_0x410e73(0x225)]()),_(this,_0x410e73(0x425)),_(this,'_collaborationPaused',!0x1),_(this,'status$',this[_0x410e73(0x2d8)]['pipe'](_0x414fcf(_0x35b392=>_0x35b392?_0x35b392[_0x410e73(0x3a9)]:P[_0x410e73(0x2c5)]),_0x1f7f7f(0x1))),_(this,_0x410e73(0x2e7),!0x1),_(this,_0x410e73(0x3ef),[]),(this['unitID']=_0x2aca5c,this[_0x410e73(0x333)]=_0x581b86,this[_0x410e73(0x220)]=_0x2fab0a,this[_0x410e73(0x440)]=_0x20ed2a,this[_0x410e73(0x1b0)]=_0xa8f7b2,this[_0x410e73(0x281)]=_0x214919,this['_localeService']=_0x31e142,this[_0x410e73(0x4fa)]=_0x5e6a4a,this[_0x410e73(0x3e7)]=_0x3cfd5b,this['_commandService']=_0x994559,this['_messageService']=_0x5ca70f,this[_0x410e73(0x1d4)]=_0x568b83,this[_0x410e73(0x406)]=_0x248e49);}get[_0x87081d(0x2db)](){const _0x24f874=_0x87081d;return this[_0x24f874(0x425)];}async[_0x87081d(0x310)](){const _0x204945=_0x87081d;if(this[_0x204945(0x2db)])throw new Error(_0x204945(0x30b));await this[_0x204945(0x4fd)]();}[_0x87081d(0x44c)](){const _0x3eee08=_0x87081d;return this[_0x3eee08(0x344)]=!0x0,_0x3b697b(()=>{const _0x2df44a=_0x3eee08;this['_collaborationPaused']=!0x1,this[_0x2df44a(0x235)]();});}['_updateState'](_0x276f75){const _0x5a664b=_0x87081d;this[_0x5a664b(0x425)]=_0x276f75,this['_state$'][_0x5a664b(0x4fe)](_0x276f75);}async['_init'](){const _0x7c87de=_0x87081d;var _0x59077c;return this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x59077c=this[_0x7c87de(0x406)])==null||_0x59077c[_0x7c87de(0x4a3)](this[_0x7c87de(0x3a8)]),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x406)]['getUnitStatus$'](this[_0x7c87de(0x3a8)])[_0x7c87de(0x347)](_0x3994d8=>{const _0x491b45=_0x7c87de;this[_0x491b45(0x3e7)][_0x491b45(0x4d5)]('[CollaborationEntity]',_0x491b45(0x476),_0x3994d8),_0x3994d8===Us[_0x491b45(0x472)]?(this[_0x491b45(0x243)][_0x491b45(0x410)]({'content':this['_localeService']['t'](_0x491b45(0x1e8)),'type':_0x4dda16[_0x491b45(0x3b0)]}),this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x1)):this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x0);})))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x2f6)][_0x7c87de(0x347)](_0x571941=>{const _0x34f19c=_0x7c87de;_0x571941===fe['ONLINE']?this[_0x34f19c(0x1cb)]():_0x571941===fe[_0x34f19c(0x2c5)]&&this[_0x34f19c(0x340)]();}))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x326)]['subscribe'](_0x53c448=>{const _0x3338d6=_0x7c87de;try{switch(_0x53c448[_0x3338d6(0x3ba)]){case _0xd3c20c[_0x3338d6(0x416)]:{this['_onRemoteChangeset'](_0x55bb16(_0x53c448[_0x3338d6(0x31c)]));break;}case _0xd3c20c['CHANGESET_ACK']:{this['_onRemoteACK'](_0x53c448[_0x3338d6(0x31c)]);break;}case _0xd3c20c['CHANGESET_REJ']:{this[_0x3338d6(0x3bf)]();break;}case _0xd3c20c[_0x3338d6(0x3f4)]:{this[_0x3338d6(0x33b)](_0x53c448[_0x3338d6(0x31c)][_0x3338d6(0x31e)][_0x3338d6(0x234)](_0x30ffd4=>_0x55bb16(_0x30ffd4)));break;}case _0xd3c20c[_0x3338d6(0x3fb)]:this[_0x3338d6(0x3bf)]({'isPermissionRej':!0x0});}}catch(_0x41061b){throw console[_0x3338d6(0x289)](_0x3338d6(0x4ba),_0x41061b),_0x41061b;}}))),this[_0x7c87de(0x425)];}[_0x87081d(0x36b)](){const _0x1eac40=_0x87081d;this[_0x1eac40(0x2e7)]=!0x1;}[_0x87081d(0x208)](){const _0xbb545d=_0x87081d;if(this[_0xbb545d(0x2e7)])throw new Error(_0xbb545d(0x4e0));this[_0xbb545d(0x2e7)]=!0x0;}[_0x87081d(0x4e1)](_0x3410ab){const _0x2c855e=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x2c855e(0x425)][_0x2c855e(0x34c)](_0x3410ab)),this[_0x2c855e(0x36b)]();}['_onRemoteChangeset'](_0x5e7bf1){const _0x177b71=_0x87081d;if(!(_0x5e7bf1[_0x177b71(0x35f)]<=this[_0x177b71(0x4fa)][_0x177b71(0x27c)](this[_0x177b71(0x3a8)]))){if(this[_0x177b71(0x344)]){this['_remoteChangesetQueue'][_0x177b71(0x1ab)](_0x5e7bf1);return;}this[_0x177b71(0x2aa)](_0x5e7bf1);}}[_0x87081d(0x235)](){const _0x54755e=_0x87081d;this['_remoteChangesetQueue']['forEach'](_0x545216=>this[_0x54755e(0x2aa)](_0x545216)),this[_0x54755e(0x3ef)]=[];}[_0x87081d(0x2aa)](_0x332b7a){const _0x35a264=_0x87081d,_0x225337=this[_0x35a264(0x281)][_0x35a264(0x474)][_0x35a264(0x298)](this['_compressMutationService'][_0x35a264(0x474)][_0x35a264(0x31b)]()['COMPRESS_MUTATION_APPLY'])(_0x332b7a['mutations'],null)||_0x332b7a[_0x35a264(0x41e)],_0x3e8845={..._0x332b7a,'mutations':_0x225337};this[_0x35a264(0x208)](),this[_0x35a264(0x41c)](this[_0x35a264(0x425)][_0x35a264(0x3d5)](_0x3e8845)),this[_0x35a264(0x36b)]();}[_0x87081d(0x304)](_0x4033ba){const _0x1f10a3=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x1f10a3(0x425)]['onRemoteAck'](_0x4033ba)),this[_0x1f10a3(0x36b)]();}[_0x87081d(0x3bf)](_0x5a00ec){const _0x1562f2=_0x87081d;this[_0x1562f2(0x208)](),this[_0x1562f2(0x41c)](this[_0x1562f2(0x425)][_0x1562f2(0x256)](_0x5a00ec)),this['_unlockTransition']();}[_0x87081d(0x33b)](_0x2e660f){const _0x3f586e=_0x87081d;if(!(this['_state']instanceof K))throw new TypeError(_0x3f586e(0x4a2));const _0x2a9fe1=_0x2e660f[_0x3f586e(0x234)](_0x1c0b1c=>{const _0x13c494=_0x3f586e,_0x395793=this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x298)](this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x31b)]()[_0x13c494(0x332)])(_0x1c0b1c['mutations'],null)||_0x1c0b1c[_0x13c494(0x41e)];return{..._0x1c0b1c,'mutations':_0x395793};});this[_0x3f586e(0x208)](),this[_0x3f586e(0x41c)](this[_0x3f586e(0x425)][_0x3f586e(0x342)](_0x2a9fe1)),this[_0x3f586e(0x36b)]();}['_toggleOffline'](){const _0x10b5db=_0x87081d;this[_0x10b5db(0x208)](),this[_0x10b5db(0x41c)](this[_0x10b5db(0x425)][_0x10b5db(0x4dc)]()),this[_0x10b5db(0x36b)]();}[_0x87081d(0x1cb)](){const _0x4db9f8=_0x87081d;this[_0x4db9f8(0x208)](),this[_0x4db9f8(0x41c)](this['_state'][_0x4db9f8(0x384)]()),this['_unlockTransition']();}async[_0x87081d(0x1bb)](){return new Promise(_0x18736f=>{const _0x59e064=_0x1fa5;this[_0x59e064(0x220)][_0x59e064(0x2f6)]['pipe'](_0x56d486(0x1))[_0x59e064(0x347)](async _0x41a72f=>{const _0x307888=_0x59e064;_0x18736f(await this[_0x307888(0x33e)](_0x41a72f===fe[_0x307888(0x28f)]));});});}[_0x87081d(0x46e)](){const _0xc8bd44=_0x87081d,_0x2918c8=this[_0xc8bd44(0x3a8)];return{'onStateChange':(_0x1ffc0a,_0x2dfd08)=>{const _0x54cb45=_0xc8bd44;if(_0x1ffc0a!==this[_0x54cb45(0x425)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1ffc0a['status']+'\x0aAfter:\x20'+_0x2dfd08[_0x54cb45(0x3a9)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x54cb45(0x41c)](_0x2dfd08);},'onSendChangeset':_0x4cb593=>{const _0x4ab5c0=_0xc8bd44,_0x4dcfbd={'eventID':_0xd3c20c[_0x4ab5c0(0x4e4)],'data':{'unitID':_0x4cb593['unitID'],'unitType':this[_0x4ab5c0(0x333)],'changeset':_0x4cb593,'memberID':this['_session'][_0x4ab5c0(0x241)]()}};this[_0x4ab5c0(0x220)][_0x4ab5c0(0x253)](_0x4dcfbd,this[_0x4ab5c0(0x3a8)]);},'onMissingChangesets':({from:_0x14366f,to:_0x4269b8})=>{const _0x282286=_0xc8bd44;this[_0x282286(0x3e7)][_0x282286(0x4d5)](_0x282286(0x42e),_0x282286(0x2f8)+_0x14366f+_0x282286(0x296)+_0x4269b8);const _0x2ac3ce={'eventID':_0xd3c20c[_0x282286(0x221)],'data':{'unitID':_0x2918c8,'unitType':this[_0x282286(0x333)],'from':_0x14366f,'to':_0x4269b8}};this[_0x282286(0x220)][_0x282286(0x253)](_0x2ac3ce,this['unitID']);}};}async[_0x87081d(0x33e)](_0x406ca9){const _0x1c3660=_0x87081d;var _0x12b870,_0x2dd416;const _0x355b85=await this[_0x1c3660(0x1b0)][_0x1c3660(0x1d9)](this[_0x1c3660(0x3a8)]),_0x230184=(_0x12b870=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x41e)])!=null?_0x12b870:[],_0x54fe87=(_0x2dd416=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x48b)])!=null?_0x2dd416:null,_0x469bf4=this[_0x1c3660(0x3a8)];try{this[_0x1c3660(0x30a)](_0x54fe87,_0x230184);}catch(_0x536a6a){this[_0x1c3660(0x3e7)]['error'](_0x536a6a);}const _0x59fa9e=this[_0x1c3660(0x46e)]();if(_0x406ca9){const _0x46e0c9=Ls(this[_0x1c3660(0x440)],_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);return _0x46e0c9 instanceof G?_0x46e0c9[_0x1c3660(0x4db)]():(_0x46e0c9 instanceof Y||_0x46e0c9 instanceof q)&&_0x46e0c9['resend'](),_0x46e0c9;}return this[_0x1c3660(0x440)][_0x1c3660(0x427)](Q,_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);}[_0x87081d(0x30a)](_0x51dc73,_0x53de53){const _0x6391a1=_0x87081d;var _0x171866,_0x5c6feb;const _0x599449=this[_0x6391a1(0x281)][_0x6391a1(0x474)][_0x6391a1(0x298)](this['_compressMutationService'][_0x6391a1(0x474)][_0x6391a1(0x31b)]()[_0x6391a1(0x332)]);(_0x171866=_0x599449((_0x51dc73==null?void 0x0:_0x51dc73['mutations'])||[],null))==null||_0x171866[_0x6391a1(0x1c8)](_0x35f69b=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x35f69b['id'],_0x35f69b[_0x6391a1(0x428)])),(_0x5c6feb=_0x599449(_0x53de53||[],null))==null||_0x5c6feb[_0x6391a1(0x1c8)](_0x5ca6cf=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x5ca6cf['id'],_0x5ca6cf[_0x6391a1(0x428)]));}};Ze=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x82a609),p(0x9,_0x15992c),p(0xa,_0x14fd53),p(0xb,_0x5543f8),p(0xc,_0x4b698d(tt))],Ze);let Et=class extends Ze{constructor(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x22e71d,_0x7fd8e6,_0x19d6bb,_0x51bbe2,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9){const _0x14528e=_0x87081d;super(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9),this[_0x14528e(0x3a8)]=_0x449050,this[_0x14528e(0x47c)]=_0x1802bd,this[_0x14528e(0x1b7)]=_0x149b78,this[_0x14528e(0x1d1)]=_0x22e71d,this['_docTransformIMECacheService']=_0x7fd8e6,this[_0x14528e(0x4c2)]=_0x19d6bb,this[_0x14528e(0x233)]=_0x51bbe2;}[_0x87081d(0x46e)](){const _0x2b889a=_0x87081d,_0xb98b06=super[_0x2b889a(0x46e)]();return _0xb98b06['onTransformIME']=_0x48156a=>this['_docTransformIMECacheService']['transformIMECache'](_0x48156a),_0xb98b06['onTransformSelections']=_0x3c04d5=>this['_docTransformSelectionsService'][_0x2b889a(0x1b1)](_0x3c04d5),_0xb98b06[_0x2b889a(0x433)]=_0x3d9f8f=>this[_0x2b889a(0x233)]['syncEditingCollabCursor'](_0x3d9f8f),_0xb98b06['onTransformRemoteChangesetByIMECache']=_0x3c5169=>this[_0x2b889a(0x203)][_0x2b889a(0x31f)](_0x3c5169),_0xb98b06;}async[_0x87081d(0x4fd)](){const _0x40e4b3=_0x87081d,_0x564495=await super[_0x40e4b3(0x4fd)]();return this['disposeWithMe'](this[_0x40e4b3(0x248)][_0x40e4b3(0x3b9)]((_0x17ff70,_0x558be0)=>{const _0x3fa54b=_0x40e4b3;if(_0x17ff70[_0x3fa54b(0x47c)]!==_0xc9d637[_0x3fa54b(0x4eb)]||_0x558be0!=null&&_0x558be0['fromCollab']||_0x558be0!=null&&_0x558be0['onlyLocal'])return;const _0x1e3592=_0x17ff70[_0x3fa54b(0x428)];if((_0x1e3592==null?void 0x0:_0x1e3592[_0x3fa54b(0x20b)])!==this[_0x3fa54b(0x3a8)])return;let _0x2c30eb=_0x17ff70;if(_0x2c30eb['id']===_0x40568f['id']){const _0x10d7c5=_0x2c30eb[_0x3fa54b(0x428)];_0x2c30eb={'id':_0x40568f['id'],'type':_0xc9d637['MUTATION'],'params':{'unitId':_0x10d7c5['unitId'],'actions':_0x10d7c5[_0x3fa54b(0x4f1)],'textRanges':null}};}const _0x113bd0=this[_0x3fa54b(0x281)]['interceptor']['fetchThroughInterceptors'](this[_0x3fa54b(0x281)][_0x3fa54b(0x474)][_0x3fa54b(0x31b)]()[_0x3fa54b(0x409)])([_0x2c30eb],null)||[_0x2c30eb];this[_0x3fa54b(0x4e1)](_0x113bd0[0x0]);})),_0x564495;}};Et=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(_0x17dea7)),p(0x9,_0x1b956a(Je)),p(0xa,_0x1b956a(ze)),p(0xb,_0x1b956a(xt)),p(0xc,_0x82a609),p(0xd,_0x15992c),p(0xe,_0x14fd53),p(0xf,_0x5543f8),p(0x10,_0x4b698d(tt))],Et);let Ct=class extends Ze{constructor(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x588d6a,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4){const _0x3e5138=_0x87081d;super(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4),this[_0x3e5138(0x3a8)]=_0x4464e9,this[_0x3e5138(0x47c)]=_0x5a5207,this[_0x3e5138(0x1b7)]=_0x539eac,this[_0x3e5138(0x1f9)]=_0x588d6a;}['_createHandler'](){const _0x51f8a7=_0x87081d,_0x176557=super['_createHandler']();return _0x176557[_0x51f8a7(0x279)]=_0x2272a5=>this[_0x51f8a7(0x1f9)][_0x51f8a7(0x1b1)](_0x2272a5),_0x176557;}async['_init'](){const _0x4729cd=_0x87081d,_0x59577b=await super[_0x4729cd(0x4fd)]();return this[_0x4729cd(0x343)](this[_0x4729cd(0x248)]['onCommandExecuted']((_0x13df78,_0xdb37d2)=>{const _0x3897fb=_0x4729cd;if(_0x13df78[_0x3897fb(0x47c)]!==_0xc9d637['MUTATION']||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x255)]||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x4d1)])return;const _0x59fe37=_0x13df78['params'];if((_0x59fe37==null?void 0x0:_0x59fe37[_0x3897fb(0x20b)])!==this[_0x3897fb(0x3a8)])return;const _0x453757=_0x13df78,_0xe164fd=this['_compressMutationService'][_0x3897fb(0x474)]['fetchThroughInterceptors'](this[_0x3897fb(0x281)][_0x3897fb(0x474)][_0x3897fb(0x31b)]()[_0x3897fb(0x409)])([_0x453757],null)||[_0x453757];this[_0x3897fb(0x4e1)](_0xe164fd[0x0]);})),_0x59577b;}};Ct=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(qe)),p(0x9,_0x82a609),p(0xa,_0x15992c),p(0xb,_0x14fd53),p(0xc,_0x5543f8),p(0xd,_0x4b698d(tt))],Ct);const as=[_0x87081d(0x228),_0x87081d(0x2e0),_0x87081d(0x226),_0x87081d(0x46c),_0x87081d(0x1f0),_0x87081d(0x4c7)];class Ht extends _0x1ee863{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x87081d(0x488)](_0x4fc30a){const _0x402453=_0x87081d;if(this[_0x402453(0x494)][_0x402453(0x382)](_0x4fc30a))return this[_0x402453(0x494)][_0x402453(0x1e9)](_0x4fc30a);const _0x4eca28=as[this[_0x402453(0x264)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%as[_0x402453(0x46a)],this['_assignedColors'][_0x402453(0x4af)](_0x4fc30a,_0x4eca28),_0x4eca28;}}var or=Object[_0x87081d(0x318)],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4ec4a7,_0x13ddb5,_0x249349,_0x3d8c16)=>{for(var _0x3004fc=_0x3d8c16>0x1?void 0x0:_0x3d8c16?ar(_0x13ddb5,_0x249349):_0x13ddb5,_0x1ccef9=_0x4ec4a7['length']-0x1,_0x4f8b65;_0x1ccef9>=0x0;_0x1ccef9--)(_0x4f8b65=_0x4ec4a7[_0x1ccef9])&&(_0x3004fc=(_0x3d8c16?_0x4f8b65(_0x13ddb5,_0x249349,_0x3004fc):_0x4f8b65(_0x3004fc))||_0x3004fc);return _0x3d8c16&&_0x3004fc&&or(_0x13ddb5,_0x249349,_0x3004fc),_0x3004fc;},le=(_0x15b8d2,_0x80be56)=>(_0x4ea46f,_0x5b90d9)=>_0x80be56(_0x4ea46f,_0x5b90d9,_0x15b8d2);const hr=0x12c,_r=0x64,lr=()=>{let _0x437254=[],_0x438989=!0x1;return _0x43ad85=>{_0x437254['push'](_0x43ad85),_0x438989||(_0x438989=!0x0,setTimeout(()=>{_0x437254['forEach'](_0x434fb1=>_0x434fb1()),_0x437254=[],_0x438989=!0x1;}));};};let bt=class extends _0x53ce5a{constructor(_0x40eed0,_0x1bc92f,_0x227bd1,_0x1310b0,_0x30d945,_0x530534,_0x26c1ff,_0x595116){const _0x5c572c=_0x87081d;super(),_(this,_0x5c572c(0x351),!0x1),_(this,'_init',!0x1),_(this,_0x5c572c(0x48f),new _0x2561fc(new Map())),_(this,_0x5c572c(0x2e4),this[_0x5c572c(0x48f)]['asObservable']()),_(this,_0x5c572c(0x3da),new _0x2561fc([])),_(this,_0x5c572c(0x389),this['_roomMembers$'][_0x5c572c(0x3b6)](_0x1412d5(hr))),_(this,_0x5c572c(0x3fe),_0x331994((_0x42eb5f,_0x469958)=>{const _0x21bfa8=_0x5c572c,_0xcbdbca={'eventID':_0xd3c20c['UPDATE_CURSOR'],'data':{'unitID':this[_0x21bfa8(0x3a8)],'memberID':this[_0x21bfa8(0x220)][_0x21bfa8(0x241)](),'selection':_0x448ab0(_0x42eb5f,_0x469958[_0x21bfa8(0x2f1)])}};this['_session']['send'](_0xcbdbca,this[_0x21bfa8(0x3a8)]);},_r)),(this[_0x5c572c(0x3a8)]=_0x40eed0,this[_0x5c572c(0x220)]=_0x1bc92f,this[_0x5c572c(0x440)]=_0x227bd1,this[_0x5c572c(0x258)]=_0x1310b0,this['_memberService']=_0x30d945,this[_0x5c572c(0x2bb)]=_0x530534,this[_0x5c572c(0x248)]=_0x26c1ff,this['_refRangeService']=_0x595116);}get[_0x87081d(0x4a8)](){const _0xeaca63=_0x87081d;return this[_0xeaca63(0x48f)][_0xeaca63(0x275)]();}get[_0x87081d(0x4e8)](){const _0x59adfc=_0x87081d;return this[_0x59adfc(0x3da)][_0x59adfc(0x275)]();}[_0x87081d(0x23c)](){const _0xa6545f=_0x87081d;super[_0xa6545f(0x23c)](),this[_0xa6545f(0x48f)][_0xa6545f(0x4fe)](new Map()),this[_0xa6545f(0x48f)]['complete'](),this[_0xa6545f(0x3da)][_0xa6545f(0x4fe)]([]),this['_roomMembers$'][_0xa6545f(0x26e)]();}[_0x87081d(0x310)](){const _0x2aa866=_0x87081d;this[_0x2aa866(0x4fd)]||(this[_0x2aa866(0x4fd)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x3c23a9(this[_0x2aa866(0x20e)]))[_0x2aa866(0x347)](_0x5394ce=>{const _0xf7af0b=_0x2aa866;_0x5394ce===fe[_0xf7af0b(0x28f)]?this[_0xf7af0b(0x1cb)]():this[_0xf7af0b(0x340)]();}),this['_session'][_0x2aa866(0x326)][_0x2aa866(0x3b6)](_0x3c23a9(this['dispose$']))[_0x2aa866(0x347)](_0x4fc768=>{const _0x11a2f5=_0x2aa866,_0x15a5fc=_0x4fc768[_0x11a2f5(0x3ba)];_0x15a5fc===_0xd3c20c[_0x11a2f5(0x373)]&&this[_0x11a2f5(0x4aa)](_0x4fc768),_0x15a5fc===_0xd3c20c[_0x11a2f5(0x1b3)]&&this[_0x11a2f5(0x466)](_0x4fc768);}),this[_0x2aa866(0x231)](),this[_0x2aa866(0x343)](this['_commandService'][_0x2aa866(0x3b9)](_0x460af0=>{const _0x26f89f=_0x2aa866;if(this[_0x26f89f(0x351)]&&_0x460af0['id']===_0x2ce045['id']&&_0x460af0[_0x26f89f(0x428)][_0x26f89f(0x20b)]===this['unitID']){const _0x471b12=_0x460af0['params'];this[_0x26f89f(0x3fe)](_0x471b12['subUnitId'],_0x471b12[_0x26f89f(0x22f)][0x0]);}})));}[_0x87081d(0x4aa)](_0xbcdee9){const _0x5e8e3d=_0x87081d;var _0x3e5168,_0x1bcfca;const {memberID:_0x477b2d,selection:_0x1afd84}=_0xbcdee9[_0x5e8e3d(0x31c)],{sheetName:_0x2faa7f,range:_0xd4ee9}=_0x262cf1(_0x1afd84),_0x3e0290={'name':(_0x1bcfca=(_0x3e5168=this[_0x5e8e3d(0x2e6)][_0x5e8e3d(0x1ae)](this['unitID'],_0x477b2d))==null?void 0x0:_0x3e5168[_0x5e8e3d(0x33c)])!=null?_0x1bcfca:_0x5e8e3d(0x45e),'range':this['_getMergeRange'](_0x2faa7f,_0xd4ee9),'sheetID':_0x2faa7f,'color':this[_0x5e8e3d(0x258)][_0x5e8e3d(0x488)](_0x477b2d),'selection':_0x1afd84},_0x29fd53=this[_0x5e8e3d(0x4a8)];_0x29fd53['set'](_0x477b2d,_0x3e0290),this[_0x5e8e3d(0x48f)]['next'](_0x29fd53);}[_0x87081d(0x466)](_0x214eba){const _0x63c44c=_0x87081d,{memberID:_0x2ce285}=_0x214eba['data'],_0x1e7cfb=this[_0x63c44c(0x4a8)];_0x1e7cfb[_0x63c44c(0x3c7)](_0x2ce285),this[_0x63c44c(0x48f)]['next'](_0x1e7cfb);}[_0x87081d(0x22d)](_0x1a9982,_0x310cc3){const _0x106fb5=_0x87081d;var _0x12f34a,_0x486d1a;const _0x57ef8c=(_0x486d1a=(_0x12f34a=this['_univerInstanceService'][_0x106fb5(0x1c4)](this[_0x106fb5(0x3a8)]))==null?void 0x0:_0x12f34a[_0x106fb5(0x335)](_0x1a9982))==null?void 0x0:_0x486d1a[_0x106fb5(0x263)]();return(_0x57ef8c==null?void 0x0:_0x57ef8c['find'](_0x2c7db0=>_0x1ec52a[_0x106fb5(0x2df)](_0x2c7db0,_0x310cc3)))||_0x310cc3;}[_0x87081d(0x231)](){const _0x44e429=_0x87081d,_0x2ca683=new _0x173e9c(),_0x493c39=lr(),_0xdf31bc=()=>{const _0x1ea89a=_0x1fa5;_0x2ca683[_0x1ea89a(0x23c)]();const _0x2daaed=(_0xe7d27c,_0x516c75,_0x318ee8,_0x31e8c1)=>{const _0x403d14=_0x1ea89a;let _0x2c6600=[];switch(_0xe7d27c['id']){case _0x5a0c0b[_0x403d14(0x2b8)]:{_0x2c6600=_0x35f3b3(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x25f)]:{_0x2c6600=_0x3ada4b(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertColCommandId']:{_0x2c6600=_0x1d6b1e(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRangeMoveDownCommandId']:{_0x2c6600=_0x5e73fe(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x1ed)]:{_0x2c6600=_0x320b17(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRowCommandId']:{_0x2c6600=_0x2d43e9(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x3e0)]:{_0x2c6600=_0x3504f5(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['RemoveColCommandId']:{_0x2c6600=_0xf02d80(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x47e)]:{_0x2c6600=_0x39a961(_0xe7d27c,_0x31e8c1);break;}}const _0x4bc020=_0x30e48b(_0x2c6600,_0x31e8c1),_0x533998=this[_0x403d14(0x4a8)][_0x403d14(0x1e9)](_0x516c75);if(_0x533998&&_0x4bc020){const _0x4a8809={..._0x533998,'range':_0x4bc020};this[_0x403d14(0x4a8)][_0x403d14(0x4af)](_0x516c75,_0x4a8809),_0x493c39(()=>{const _0x366060=_0x403d14,_0x3402a2=this['_refRangeService'][_0x366060(0x24d)](_0x4bc020,_0x17db64=>(_0x3402a2[_0x366060(0x23c)](),_0x2daaed(_0x17db64,_0x516c75,_0x318ee8,_0x4bc020)));_0x2ca683['add'](_0x3402a2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1ea89a(0x1c8)]((_0x545882,_0x7dcfdb)=>{const _0x35f1da=_0x1ea89a,{range:_0x10933d,sheetID:_0x58d292}=_0x545882,_0x55aa7d=this['_refRangeService']['registerRefRange'](_0x10933d,_0x52462e=>(_0x55aa7d[_0x35f1da(0x23c)](),_0x2daaed(_0x52462e,_0x7dcfdb,_0x58d292,_0x10933d)));_0x2ca683['add'](_0x55aa7d);});};this['disposeWithMe'](_0x3b697b(this['_cursorInfo$'][_0x44e429(0x347)](()=>{_0xdf31bc();})));}[_0x87081d(0x1cb)](){const _0x4020a1=_0x87081d;var _0x5b5fba,_0x1995c4;if(this[_0x4020a1(0x351)]=!0x0,((_0x5b5fba=this['_univerInstanceService'][_0x4020a1(0x4e7)]())==null?void 0x0:_0x5b5fba['getUnitId']())!==this[_0x4020a1(0x3a8)])return;const _0x28839a=(_0x1995c4=this[_0x4020a1(0x440)][_0x4020a1(0x1e9)](_0x5973ef)['getCurrentSelections']())==null?void 0x0:_0x1995c4[0x0],_0x1f1b3a=this[_0x4020a1(0x2bb)][_0x4020a1(0x4e6)](_0x5a714d[_0x4020a1(0x471)])[_0x4020a1(0x3c4)]();_0x28839a&&_0x1f1b3a&&this[_0x4020a1(0x3fe)](_0x1f1b3a[_0x4020a1(0x2fc)](),_0x28839a);}['_toggleOffline'](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x1b956a(_0x4bf6fc)),le(0x3,_0x1b956a(Ht)),le(0x4,_0x1b956a(ne)),le(0x5,_0x1d5396),le(0x6,_0x15992c),le(0x7,_0x1b956a(_0x2d0dd9))],bt);var ur=Object['defineProperty'],dr=Object[_0x87081d(0x314)],mr=(_0x44767c,_0x1a2bfc,_0x3d69f3,_0x332275)=>{const _0xfbe5c3=_0x87081d;for(var _0x5ee214=_0x332275>0x1?void 0x0:_0x332275?dr(_0x1a2bfc,_0x3d69f3):_0x1a2bfc,_0x2fc6af=_0x44767c[_0xfbe5c3(0x46a)]-0x1,_0x13db13;_0x2fc6af>=0x0;_0x2fc6af--)(_0x13db13=_0x44767c[_0x2fc6af])&&(_0x5ee214=(_0x332275?_0x13db13(_0x1a2bfc,_0x3d69f3,_0x5ee214):_0x13db13(_0x5ee214))||_0x5ee214);return _0x332275&&_0x5ee214&&ur(_0x1a2bfc,_0x3d69f3,_0x5ee214),_0x5ee214;},te=(_0x374ddf,_0x5269b9)=>(_0x591234,_0x15c34b)=>_0x5269b9(_0x591234,_0x15c34b,_0x374ddf);const fr=0x12c,gr=0x64;let Rt=class extends _0x53ce5a{constructor(_0x4823db,_0x5112c1,_0x4ce5e6,_0x14afb9,_0x8b7d81,_0x50b0d8,_0x288172,_0x1e6466,_0x46b899){const _0x203c54=_0x87081d;super(),_(this,_0x203c54(0x351),!0x1),_(this,_0x203c54(0x4fd),!0x1),_(this,_0x203c54(0x48f),new _0x2561fc(new Map())),_(this,_0x203c54(0x2e4),this[_0x203c54(0x48f)]['asObservable']()),_(this,_0x203c54(0x3da),new _0x2561fc([])),_(this,_0x203c54(0x389),this['_roomMembers$']['pipe'](_0x1412d5(fr))),_(this,_0x203c54(0x3fe),_0x331994(_0x314848=>{const _0x350e52=_0x203c54,_0x2942e6={'eventID':_0xd3c20c[_0x350e52(0x373)],'data':{'unitID':this[_0x350e52(0x3a8)],'memberID':this[_0x350e52(0x220)]['getMemberID'](),'selection':ys(_0x314848)}};this['_session']['send'](_0x2942e6,this['unitID']);},gr)),(this['unitID']=_0x4823db,this[_0x203c54(0x220)]=_0x5112c1,this[_0x203c54(0x440)]=_0x4ce5e6,this[_0x203c54(0x258)]=_0x14afb9,this['_memberService']=_0x8b7d81,this[_0x203c54(0x30c)]=_0x50b0d8,this[_0x203c54(0x290)]=_0x288172,this[_0x203c54(0x2bb)]=_0x1e6466,this[_0x203c54(0x248)]=_0x46b899);}get['cursorInfo'](){const _0x2f8a89=_0x87081d;return this[_0x2f8a89(0x48f)][_0x2f8a89(0x275)]();}get[_0x87081d(0x4e8)](){const _0x2be875=_0x87081d;return this[_0x2be875(0x3da)][_0x2be875(0x275)]();}['dispose'](){const _0x125dae=_0x87081d;super[_0x125dae(0x23c)](),this[_0x125dae(0x48f)][_0x125dae(0x4fe)](new Map()),this[_0x125dae(0x48f)]['complete'](),this[_0x125dae(0x3da)][_0x125dae(0x4fe)]([]),this[_0x125dae(0x3da)][_0x125dae(0x26e)]();}[_0x87081d(0x310)](){const _0x413ba7=_0x87081d;this[_0x413ba7(0x4fd)]||(this['_init']=!0x0,this['_session'][_0x413ba7(0x2f6)][_0x413ba7(0x3b6)](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x4bd32c=>{const _0xe97d4f=_0x413ba7;_0x4bd32c===fe[_0xe97d4f(0x28f)]?this[_0xe97d4f(0x1cb)]():this['_toggleOffline']();}),this[_0x413ba7(0x220)][_0x413ba7(0x326)]['pipe'](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x222cb6=>{const _0x9003fc=_0x413ba7,_0x3e45d1=_0x222cb6['eventID'];_0x3e45d1===_0xd3c20c[_0x9003fc(0x373)]&&this[_0x9003fc(0x4aa)](_0x222cb6),_0x3e45d1===_0xd3c20c[_0x9003fc(0x1b3)]&&this[_0x9003fc(0x466)](_0x222cb6);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0xa52c23=>{const _0x58a73c=_0x413ba7,_0xfc6445=_0xa52c23[_0x58a73c(0x428)];_0xfc6445!=null&&this[_0x58a73c(0x351)]&&_0xa52c23['id']===_0x28f206['id']&&_0xfc6445[_0x58a73c(0x20b)]===this[_0x58a73c(0x3a8)]&&_0xfc6445[_0x58a73c(0x245)]===!0x1&&this[_0x58a73c(0x3fe)](_0xfc6445[_0x58a73c(0x49e)]);})),this[_0x413ba7(0x30c)][_0x413ba7(0x242)][_0x413ba7(0x3b6)](_0x3c23a9(this['dispose$']))[_0x413ba7(0x347)](_0x529fbc=>{const _0x2da5fc=_0x413ba7;if((_0x529fbc==null?void 0x0:_0x529fbc[_0x2da5fc(0x3a8)])!==this[_0x2da5fc(0x3a8)])return;const _0x39fe4e={'eventID':_0xd3c20c[_0x2da5fc(0x373)],'data':_0x529fbc};this[_0x2da5fc(0x4aa)](_0x39fe4e);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0x2664df=>{const _0x445138=_0x413ba7;if(_0x2664df[_0x445138(0x428)]==null)return;const _0x550296=_0x2664df['params'];if(_0x2664df['id']!==_0x40568f['id']||_0x550296[_0x445138(0x20b)]!==this[_0x445138(0x3a8)])return;const _0x267124={'id':_0x445138(0x2a0),'params':_0x550296},_0x5b9dde=this['cursorInfo'];for(const [_0xeb725e,_0x5df496]of _0x5b9dde){const _0x5a0cd7={'id':_0x445138(0x2a0),'params':{'unitId':this[_0x445138(0x3a8)],'actions':null,'textRanges':_0x5df496['ranges']}},_0x455ca0=this['_transformService'][_0x445138(0x47f)](_0x267124,_0x5a0cd7,!0x1);if(_0x364f8f(_0x455ca0))throw _0x455ca0['error'];_0x5b9dde[_0x445138(0x4af)](_0xeb725e,{..._0x5df496,'ranges':_0x455ca0[_0x445138(0x36f)][_0x445138(0x428)][_0x445138(0x20d)]});}queueMicrotask(()=>{const _0x5d05e2=_0x445138;this[_0x5d05e2(0x48f)]['next'](_0x5b9dde);});})));}[_0x87081d(0x4aa)](_0x22eefb){const _0x2cc232=_0x87081d;var _0xd11398,_0xacddc5;const {memberID:_0x502ed0,selection:_0x441b03}=_0x22eefb[_0x2cc232(0x31c)],_0x394a9e=Xn(_0x441b03),_0x4f94a8=(_0xacddc5=(_0xd11398=this[_0x2cc232(0x2e6)][_0x2cc232(0x1ae)](this['unitID'],_0x502ed0))==null?void 0x0:_0xd11398[_0x2cc232(0x33c)])!=null?_0xacddc5:'Unknown\x20user',_0x5263c2={'color':this['_colorAssignService'][_0x2cc232(0x488)](_0x502ed0),'name':_0x4f94a8,'ranges':_0x394a9e},_0x14dd27=this[_0x2cc232(0x4a8)];_0x14dd27[_0x2cc232(0x4af)](_0x502ed0,_0x5263c2),this[_0x2cc232(0x48f)][_0x2cc232(0x4fe)](_0x14dd27);}['_onCursorDelete'](_0x2ba6b5){const _0xcf18e2=_0x87081d,{memberID:_0xddeaed}=_0x2ba6b5[_0xcf18e2(0x31c)],_0x470e59=this['cursorInfo'];_0x470e59['delete'](_0xddeaed),this[_0xcf18e2(0x48f)][_0xcf18e2(0x4fe)](_0x470e59);}[_0x87081d(0x1cb)](){const _0x3135f2=_0x87081d;var _0x133775;if(this[_0x3135f2(0x351)]=!0x0,((_0x133775=this[_0x3135f2(0x2bb)][_0x3135f2(0x4e7)]())==null?void 0x0:_0x133775[_0x3135f2(0x1b5)]())!==this[_0x3135f2(0x3a8)])return;const _0x3957f9=this['_injector']['get'](_0x188da2)[_0x3135f2(0x453)](),_0x5c218f=_0x3957f9==null?void 0x0:_0x3957f9[_0x3135f2(0x234)](_0x249015);Array['isArray'](_0x5c218f)&&_0x5c218f[_0x3135f2(0x46a)]>0x0&&this[_0x3135f2(0x3fe)](_0x5c218f);}[_0x87081d(0x340)](){const _0x53a68e=_0x87081d;this[_0x53a68e(0x351)]=!0x1;}};Rt=mr([te(0x2,_0x1b956a(_0x4bf6fc)),te(0x3,_0x1b956a(Ht)),te(0x4,_0x1b956a(ne)),te(0x5,_0x1b956a(xt)),te(0x6,_0x4e495a),te(0x7,_0x1d5396),te(0x8,_0x15992c)],Rt);var Sr=Object[_0x87081d(0x318)],pr=Object[_0x87081d(0x314)],vr=(_0x12307d,_0x3d6c62,_0x3da7c6,_0x2293dd)=>{const _0x20f14b=_0x87081d;for(var _0x1307a6=_0x2293dd>0x1?void 0x0:_0x2293dd?pr(_0x3d6c62,_0x3da7c6):_0x3d6c62,_0x369d4d=_0x12307d[_0x20f14b(0x46a)]-0x1,_0x24ecc9;_0x369d4d>=0x0;_0x369d4d--)(_0x24ecc9=_0x12307d[_0x369d4d])&&(_0x1307a6=(_0x2293dd?_0x24ecc9(_0x3d6c62,_0x3da7c6,_0x1307a6):_0x24ecc9(_0x1307a6))||_0x1307a6);return _0x2293dd&&_0x1307a6&&Sr(_0x3d6c62,_0x3da7c6,_0x1307a6),_0x1307a6;},ct=(_0x2a597d,_0x33efe0)=>(_0x334cb1,_0xfbf80d)=>_0x33efe0(_0x334cb1,_0xfbf80d,_0x2a597d);let ge=class extends _0x53ce5a{constructor(_0x151ccc,_0xabfc8,_0x513828){const _0x5cd131=_0x87081d;super(),_(this,_0x5cd131(0x3f7),new Map()),_(this,_0x5cd131(0x3ed),new _0x1ace47()),(this[_0x5cd131(0x2bb)]=_0x151ccc,this['_injector']=_0xabfc8,this[_0x5cd131(0x1ad)]=_0x513828,this['_init']());}[_0x87081d(0x23c)](){const _0x59e765=_0x87081d;super[_0x59e765(0x23c)](),this[_0x59e765(0x3ed)][_0x59e765(0x26e)](),this[_0x59e765(0x3f7)][_0x59e765(0x1c8)](_0x2fc24a=>_0x2fc24a[_0x59e765(0x23c)]());}[_0x87081d(0x23b)](_0x3dc2bd){const _0xcf909e=_0x87081d;return this['_entities'][_0xcf909e(0x382)](_0x3dc2bd)?this[_0xcf909e(0x3f7)]['get'](_0x3dc2bd)[_0xcf909e(0x2e4)]:this['_entityInit$'][_0xcf909e(0x3b6)](_0x4d0abc(_0x5cbdbf=>_0x5cbdbf[_0xcf909e(0x3a8)]===_0x3dc2bd),_0x21055f(_0x4b7e5e=>_0x4b7e5e[_0xcf909e(0x2e4)]));}[_0x87081d(0x4fd)](){const _0x1ef345=_0x87081d;this['_univerInstanceService'][_0x1ef345(0x2c7)](_0x5a714d['UNIVER_SHEET'])[_0x1ef345(0x3b6)](_0x3c23a9(this['dispose$']))[_0x1ef345(0x347)](async _0x540a29=>{const _0x22f03d=_0x1ef345,_0x487096=_0x540a29[_0x22f03d(0x1b5)](),_0x2b3994=await this[_0x22f03d(0x352)](_0x487096);this[_0x22f03d(0x3ed)][_0x22f03d(0x4fe)](_0x2b3994),this[_0x22f03d(0x3f7)]['set'](_0x487096,_0x2b3994);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x1ef345(0x1c1)])[_0x1ef345(0x3b6)](_0x3c23a9(this[_0x1ef345(0x20e)]))[_0x1ef345(0x3b6)](_0x4d0abc(_0x330f14=>!_0x330f14[_0x1ef345(0x1b5)]()[_0x1ef345(0x4ab)]('__')))[_0x1ef345(0x347)](async _0xd8f53b=>{const _0x242a71=_0x1ef345,_0x1afc74=_0xd8f53b[_0x242a71(0x1b5)](),_0x42dc14=await this['_startDocCollabCursor'](_0x1afc74);this[_0x242a71(0x3ed)]['next'](_0x42dc14),this['_entities'][_0x242a71(0x4af)](_0x1afc74,_0x42dc14);}),_0x1d3042(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5a714d[_0x1ef345(0x1c1)]),this[_0x1ef345(0x2bb)][_0x1ef345(0x223)](_0x5a714d[_0x1ef345(0x471)]))['pipe'](_0x3c23a9(this['dispose$']))['subscribe'](_0x536d0e=>{const _0x25dc18=_0x1ef345,_0x17dc51=_0x536d0e[_0x25dc18(0x1b5)](),_0x56da42=this[_0x25dc18(0x3f7)][_0x25dc18(0x1e9)](_0x17dc51);_0x56da42&&(_0x56da42[_0x25dc18(0x23c)](),this[_0x25dc18(0x3f7)]['delete'](_0x17dc51));});}async[_0x87081d(0x352)](_0x2b80be){const _0x506ef1=_0x87081d,_0x55d9ea=await this['_collabSessionService']['requireSession'](_0x2b80be),_0x3900f8=this['_injector'][_0x506ef1(0x427)](bt,_0x2b80be,_0x55d9ea);return _0x3900f8[_0x506ef1(0x310)](),_0x3900f8;}async[_0x87081d(0x4de)](_0x3817ed){const _0x592dd7=_0x87081d,_0x26d5b0=await this['_collabSessionService']['requireSession'](_0x3817ed),_0x5f1949=this['_injector'][_0x592dd7(0x427)](Rt,_0x3817ed,_0x26d5b0);return _0x5f1949[_0x592dd7(0x310)](),_0x5f1949;}};ge=vr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ge),ct(0x0,_0x1d5396),ct(0x1,_0x1b956a(_0x4bf6fc)),ct(0x2,_0x1b956a(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0xc546b5,_0x5d613a){const _0x38345a=_0x87081d;let {radius:_0x5aea23,width:_0xff0842,height:_0x46eab0}=_0x5d613a;_0x5aea23=_0x5aea23!=null?_0x5aea23:0x0,_0xff0842=_0xff0842!=null?_0xff0842:0x1e,_0x46eab0=_0x46eab0!=null?_0x46eab0:0x1e;let _0x229f5c=0x0,_0xc9e249=0x0,_0x289901=0x0;_0x229f5c=_0xc9e249=_0x289901=Math[_0x38345a(0x39b)](_0x5aea23,_0xff0842/0x2,_0x46eab0/0x2),_0xc546b5['beginPath'](),_0xc546b5[_0x38345a(0x4cf)](_0x229f5c,0x0),_0xc546b5['lineTo'](_0xff0842-_0xc9e249,0x0),_0xc546b5['arc'](_0xff0842-_0xc9e249,_0xc9e249,_0xc9e249,Math['PI']*0x3/0x2,0x0,!0x1),_0xc546b5['lineTo'](_0xff0842,_0x46eab0-_0x289901),_0xc546b5[_0x38345a(0x3f2)](_0xff0842-_0x289901,_0x46eab0-_0x289901,_0x289901,0x0,Math['PI']/0x2,!0x1),_0xc546b5[_0x38345a(0x3e8)](0x0,_0x46eab0),_0xc546b5['lineTo'](0x0,_0x229f5c),_0xc546b5[_0x38345a(0x3f2)](_0x229f5c,_0x229f5c,_0x229f5c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc546b5[_0x38345a(0x396)](),_0x5d613a['fill']&&(_0xc546b5[_0x38345a(0x267)](),_0xc546b5[_0x38345a(0x1ba)]=_0x5d613a['fill'],_0x5d613a[_0x38345a(0x2f3)]===_0x38345a(0x417)?_0xc546b5[_0x38345a(0x29c)](_0x38345a(0x417)):_0xc546b5[_0x38345a(0x29c)](),_0xc546b5[_0x38345a(0x2f4)]());}class it extends _0x2763bf{constructor(_0x356faf,_0x4128a5){const _0x513536=_0x87081d;super(_0x356faf,_0x4128a5),_(this,_0x513536(0x295)),_(this,'text'),(this[_0x513536(0x295)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x295)],this[_0x513536(0x1e0)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x1e0)]);}static[_0x87081d(0x4ed)](_0x201e42,_0x13e948){const _0xd957f2=_0x87081d,{text:_0x3af2f3,color:_0x424313}=_0x13e948;_0x201e42[_0xd957f2(0x267)](),_0x201e42[_0xd957f2(0x3a1)]=_0xd957f2(0x4ea);const _0xd4b568=_0x201e42[_0xd957f2(0x4cc)](_0x3af2f3)[_0xd957f2(0x1cc)],_0x33492e=Math['min'](_0xd4b568+0x2*ht,cs);Er(_0x201e42,{'height':ye,'radius':0x4,'width':_0x33492e,'fill':_0x424313,'evented':!0x1}),_0x201e42[_0xd957f2(0x1ba)]='#FFF';const _0x11f874=ht,_0x195826=ye-Ir,_0xac8a47=cs-0x2*ht;if(_0xd4b568>_0xac8a47){let _0x2c6d76='',_0x2e73df=0x0;for(const _0xd47f19 of _0x3af2f3){const _0x460250=_0x201e42['measureText'](_0xd47f19)[_0xd957f2(0x1cc)];if(_0x2e73df+_0x460250<=_0xac8a47-_0x201e42[_0xd957f2(0x4cc)]('...')[_0xd957f2(0x1cc)])_0x2c6d76+=_0xd47f19,_0x2e73df+=_0x460250;else{_0x2c6d76+=_0xd957f2(0x32f);break;}}_0x201e42[_0xd957f2(0x1da)](_0x2c6d76,_0x11f874,_0x195826);}else _0x201e42[_0xd957f2(0x1da)](_0x3af2f3,_0x11f874,_0x195826);_0x201e42['restore']();}['_draw'](_0x23c4b1){const _0x1d83f2=_0x87081d;it[_0x1d83f2(0x4ed)](_0x23c4b1,this);}}const Cr=0x1,br=1.5;class Rr extends _0x2763bf{constructor(_0x45e5c5,_0x4b7708){const _0x6b051=_0x87081d;super(_0x45e5c5,_0x4b7708),_(this,'_color'),_(this,_0x6b051(0x358),!0x1),_(this,_0x6b051(0x2e9)),_(this,'_name',''),_(this,'_labelPosition',_0x6b051(0x4d0)),_(this,'_backgroundColor'),(_0x4b7708&&this[_0x6b051(0x32c)](_0x4b7708),this[_0x6b051(0x19f)][_0x6b051(0x3fd)](()=>this[_0x6b051(0x32c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x6b051(0x3fd)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x2747f6){const _0x47995e=_0x87081d;var _0x66da7,_0x275b7d,_0x290fa8,_0x2015eb,_0x292d6d,_0x5215f8;this[_0x47995e(0x436)]=(_0x66da7=_0x2747f6[_0x47995e(0x295)])!=null?_0x66da7:this[_0x47995e(0x436)],this[_0x47995e(0x358)]=(_0x275b7d=_0x2747f6[_0x47995e(0x25a)])!=null?_0x275b7d:this['_hovered'],this[_0x47995e(0x2e9)]=(_0x290fa8=_0x2747f6[_0x47995e(0x2f1)])!=null?_0x290fa8:this['_range'],this['_name']=(_0x2015eb=_0x2747f6[_0x47995e(0x33c)])!=null?_0x2015eb:this[_0x47995e(0x4fb)],this[_0x47995e(0x4d7)]=(_0x292d6d=_0x2747f6[_0x47995e(0x2ea)])!=null?_0x292d6d:this['_labelPosition'],this[_0x47995e(0x1fb)]=(_0x5215f8=_0x2747f6[_0x47995e(0x210)])!=null?_0x5215f8:this[_0x47995e(0x1fb)],this[_0x47995e(0x322)]({'width':_0x2747f6[_0x47995e(0x1cc)],'height':_0x2747f6[_0x47995e(0x486)]});}['onMouseMove'](_0x24ca8c){const _0x3fa4d5=_0x87081d,{row:_0xcc90cc,column:_0x393097}=_0x24ca8c;if(_0xcc90cc>=this['_range'][_0x3fa4d5(0x360)]&&_0xcc90cc<=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x2e8)]&&_0x393097>=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x3ec)]&&_0x393097<=this['_range'][_0x3fa4d5(0x35c)]){this[_0x3fa4d5(0x32c)]({'hovered':!0x0});return;}this[_0x3fa4d5(0x32c)]({'hovered':!0x1});}[_0x87081d(0x1dc)](_0x1c7a43){return!0x1;}[_0x87081d(0x391)](_0x3c200b){const _0x10b244=_0x87081d;_0x31ca09[_0x10b244(0x4ed)](_0x3c200b,{'width':this[_0x10b244(0x1cc)],'height':this[_0x10b244(0x486)],'strokeWidth':br,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x10b244(0x1fb)]}),this[_0x10b244(0x358)]&&(_0x3c200b[_0x10b244(0x267)](),_0x3c200b['transform'](0x1,0x0,0x0,0x1,this[_0x10b244(0x1cc)],this[_0x10b244(0x4d7)]===_0x10b244(0x1f1)?0x0:-ye),it['drawWith'](_0x3c200b,{'text':this['_name'],'color':this[_0x10b244(0x436)]}),_0x3c200b['restore']());}}var Tr=Object[_0x87081d(0x318)],Or=Object[_0x87081d(0x314)],Dr=(_0x74a8fc,_0x304a5e,_0x45102f,_0x118e88)=>{const _0x6ae0ed=_0x87081d;for(var _0x38889b=_0x118e88>0x1?void 0x0:_0x118e88?Or(_0x304a5e,_0x45102f):_0x304a5e,_0x48c617=_0x74a8fc[_0x6ae0ed(0x46a)]-0x1,_0x37a106;_0x48c617>=0x0;_0x48c617--)(_0x37a106=_0x74a8fc[_0x48c617])&&(_0x38889b=(_0x118e88?_0x37a106(_0x304a5e,_0x45102f,_0x38889b):_0x37a106(_0x38889b))||_0x38889b);return _0x118e88&&_0x38889b&&Tr(_0x304a5e,_0x45102f,_0x38889b),_0x38889b;},_t=(_0x5966c2,_0x6b209f)=>(_0x436808,_0x29a732)=>_0x6b209f(_0x436808,_0x29a732,_0x5966c2);const Pr=0x1389;let Tt=class extends _0x53ce5a{constructor(_0x314745,_0x272dbd,_0x39661e,_0x1c496d){const _0x2914ae=_0x87081d;super(),_(this,'_cursors',new Set()),_(this,_0x2914ae(0x4a9),null),(this[_0x2914ae(0x485)]=_0x314745,this[_0x2914ae(0x20f)]=_0x272dbd,this[_0x2914ae(0x4b8)]=_0x39661e,this[_0x2914ae(0x430)]=_0x1c496d,this[_0x2914ae(0x4fd)]());}['_init'](){const _0x4d35fe=_0x87081d;this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x3b6)](_0x3e87c2(this[_0x4d35fe(0x20e)]),_0x16e713(_0x46cdec=>{const _0x3ad573=_0x4d35fe;if(_0x46cdec){const _0x43f1ac=_0x46cdec[_0x3ad573(0x28a)];return _0x138d6c(this['_collabCursorController'][_0x3ad573(0x23b)](this[_0x3ad573(0x485)]['unitId']),this[_0x3ad573(0x430)][_0x3ad573(0x383)])[_0x3ad573(0x3b6)](_0x414fcf(([_0x1cdf7a,_0x526003])=>{const _0x487be7=_0x3ad573,_0x1bf89e=new Map();return _0x1cdf7a[_0x487be7(0x1c8)]((_0x2a4f21,_0x15808a)=>{const _0x2dfaa7=_0x487be7;if(_0x2a4f21[_0x2dfaa7(0x2f7)]===_0x43f1ac){const _0x4088c2={..._0x2a4f21};_0x4088c2[_0x2dfaa7(0x295)]=_0x526003[_0x2a4f21[_0x2dfaa7(0x295)]],_0x1bf89e['set'](_0x15808a,_0x4088c2);}}),{'skeleton':_0x46cdec,'cursors':_0x1bf89e};}));}return _0x274530({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d7f05,cursors:_0x2b5d30})=>{const _0x1c2b1d=_0x4d35fe;this['_removeCollabCursors'](),_0x1d7f05&&this[_0x1c2b1d(0x41a)](_0x1d7f05,_0x2b5d30);}),this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x347)](_0x3d17aa=>{const _0x19a809=_0x4d35fe;if(_0x3d17aa==null)return;const {skeleton:_0xd0c20d}=_0x3d17aa,{scene:_0x5732f1}=this[_0x19a809(0x485)];_0x5732f1[_0x19a809(0x3fc)]['subscribeEvent'](_0x331994(_0x42e2d7=>{const _0x2f98d0=_0x19a809;var _0x33f1d5,_0x14ad50;const {offsetX:_0x2b14bc,offsetY:_0x960a5d}=_0x42e2d7,{x:_0x5e0d2f,y:_0x11e827}=_0x5732f1['getRelativeToViewportCoord'](_0x5c324a[_0x2f98d0(0x3b2)]([_0x2b14bc,_0x960a5d])),{scaleX:_0x1871d9,scaleY:_0x11d3b0}=_0x5732f1[_0x2f98d0(0x367)](),_0x4c0ad0=_0x5732f1[_0x2f98d0(0x2b7)](_0x1e06ce['VIEW_MAIN']),_0x1567f3=_0x5732f1[_0x2f98d0(0x217)](_0x5c324a[_0x2f98d0(0x3b2)]([_0x5e0d2f,_0x11e827]),_0x4c0ad0),_0x146f3f=_0xd0c20d[_0x2f98d0(0x45d)](_0x2b14bc,_0x960a5d,_0x1871d9,_0x11d3b0,_0x1567f3);((_0x33f1d5=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x33f1d5[_0x2f98d0(0x1a1)])===_0x146f3f[_0x2f98d0(0x1a1)]&&((_0x14ad50=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x14ad50[_0x2f98d0(0x3ae)])===_0x146f3f[_0x2f98d0(0x3ae)]||this[_0x2f98d0(0x1eb)]['forEach'](_0x5f0ce3=>{const _0x49b2da=_0x2f98d0;_0x5f0ce3[_0x49b2da(0x4f2)](_0x146f3f);});},0x64));});}[_0x87081d(0x41a)](_0x301cd4,_0x88ae62){const _0x4a8968=_0x87081d;var _0x423e47;const _0x27d1ae=(_0x423e47=this[_0x4a8968(0x20f)][_0x4a8968(0x2cc)]())==null?void 0x0:_0x423e47[_0x4a8968(0x24c)];if(!_0x27d1ae)return;const _0x426786=this[_0x4a8968(0x1f7)]();if(!_0x426786)return;this[_0x4a8968(0x1eb)][_0x4a8968(0x1c8)](_0x3fad29=>{const _0x3b80c5=_0x4a8968;_0x3fad29[_0x3b80c5(0x43e)]();});const {scene:_0xa78ce3}=_0x426786,_0x3f5a56=wr(Array[_0x4a8968(0x1fc)](_0x88ae62[_0x4a8968(0x247)]()))[_0x4a8968(0x234)](_0x54d3b8=>{const _0x1a03b3=_0x4a8968,{color:_0x5d654e,range:_0x24b765,name:_0x46182b,selection:_0x197856,sheetID:_0x2a5cbf}=_0x54d3b8,{startColumn:_0x57f826,startRow:_0x5ee401,endColumn:_0x4a1f03,endRow:_0x13b5ed}=_0x24b765,_0x2f579d=_0x13adfd(_0x5ee401,_0x57f826,_0xa78ce3,_0x27d1ae),_0x2805c1=_0x13adfd(_0x13b5ed,_0x4a1f03,_0xa78ce3,_0x27d1ae),{columnHeaderHeightAndMarginTop:_0x4a378b}=_0x27d1ae,{startX:_0x3b8781,startY:_0x399a72}=_0x2f579d,{endX:_0x1076f9,endY:_0x5eaf79}=_0x2805c1,_0x1cd51b=_0x1076f9-_0x3b8781,_0x518d7d=_0x5eaf79-_0x399a72,_0x4b6cfe={'labelPosition':_0x399a72-_0x4a378b>=ye?'top':_0x1a03b3(0x1f1),'sheetID':_0x2a5cbf,'range':_0x24b765,'color':_0x5d654e,'name':_0x46182b,'selection':_0x197856,'left':_0x3b8781,'top':_0x399a72,'width':_0x1cd51b,'height':_0x518d7d,'evented':!0x1,'zIndex':Pr};return new Rr(_0x46182b,_0x4b6cfe);});_0xa78ce3['addObjects'](_0x3f5a56,Cr),this[_0x4a8968(0x1eb)]=new Set(_0x3f5a56);}[_0x87081d(0x3d9)](){const _0x467e31=_0x87081d;var _0x12289a;(_0x12289a=this[_0x467e31(0x1eb)])==null||_0x12289a[_0x467e31(0x1c8)](_0x4ce149=>_0x4ce149[_0x467e31(0x23c)]());}[_0x87081d(0x1f7)](){const _0x4e8e7=_0x87081d;return _0x45ba(this[_0x4e8e7(0x485)][_0x4e8e7(0x312)],this[_0x4e8e7(0x485)]);}};Tt=Dr([_t(0x1,_0x1b956a(_0x1818c9)),_t(0x2,_0x1b956a(ge)),_t(0x3,_0x1b956a(_0x4a7906))],Tt);function wr(_0x270f5f){const _0x41374a=_0x87081d,_0x5711fc=new Map();return _0x270f5f[_0x41374a(0x1c8)](_0x2f5fa1=>{const _0x17d568=_0x41374a;if(_0x5711fc[_0x17d568(0x382)](_0x2f5fa1[_0x17d568(0x2eb)])){const _0x4415ce=_0x5711fc[_0x17d568(0x1e9)](_0x2f5fa1[_0x17d568(0x2eb)]);_0x4415ce[_0x17d568(0x33c)]+=',\x20'+_0x2f5fa1[_0x17d568(0x33c)];}else _0x5711fc[_0x17d568(0x4af)](_0x2f5fa1[_0x17d568(0x2eb)],_0x2f5fa1);}),Array[_0x41374a(0x1fc)](_0x5711fc[_0x41374a(0x247)]());}var U=function(){const _0x1980a2=_0x87081d;return U=Object['assign']||function(_0x2d0623){const _0xc65f5a=_0x1fa5;for(var _0xc2c94f,_0x1d229b=0x1,_0x11c82d=arguments[_0xc65f5a(0x46a)];_0x1d229b<_0x11c82d;_0x1d229b++){_0xc2c94f=arguments[_0x1d229b];for(var _0x454df4 in _0xc2c94f)Object['prototype'][_0xc65f5a(0x369)][_0xc65f5a(0x2cf)](_0xc2c94f,_0x454df4)&&(_0x2d0623[_0x454df4]=_0xc2c94f[_0x454df4]);}return _0x2d0623;},U[_0x1980a2(0x34b)](this,arguments);},Nr=function(_0x224327,_0x406ff4){const _0x8ec94f=_0x87081d;var _0x2fc67b={};for(var _0x41cadf in _0x224327)Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x369)][_0x8ec94f(0x2cf)](_0x224327,_0x41cadf)&&_0x406ff4['indexOf'](_0x41cadf)<0x0&&(_0x2fc67b[_0x41cadf]=_0x224327[_0x41cadf]);if(_0x224327!=null&&typeof Object[_0x8ec94f(0x348)]==_0x8ec94f(0x1cf)){for(var _0x266a79=0x0,_0x41cadf=Object[_0x8ec94f(0x348)](_0x224327);_0x266a79<_0x41cadf[_0x8ec94f(0x46a)];_0x266a79++)_0x406ff4[_0x8ec94f(0x227)](_0x41cadf[_0x266a79])<0x0&&Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x2ca)]['call'](_0x224327,_0x41cadf[_0x266a79])&&(_0x2fc67b[_0x41cadf[_0x266a79]]=_0x224327[_0x41cadf[_0x266a79]]);}return _0x2fc67b;},kt=_0x2c1bb9(function(_0x459e3b,_0x22f72c){const _0x54f993=_0x87081d;var _0x5ebf96=_0x459e3b['icon'],_0x295f06=_0x459e3b['id'],_0x3b3d67=_0x459e3b['className'],_0x289d4d=_0x459e3b[_0x54f993(0x403)],_0x230c95=Nr(_0x459e3b,[_0x54f993(0x44a),'id','className',_0x54f993(0x403)]),_0x5df58e=_0x54f993(0x3db)[_0x54f993(0x401)](_0x295f06,'\x20')[_0x54f993(0x401)](_0x3b3d67||'')[_0x54f993(0x2da)](),_0x55c383=_0x36697b('_'[_0x54f993(0x401)](Ur()));return $s(_0x5ebf96,''['concat'](_0x295f06),{'defIds':_0x5ebf96[_0x54f993(0x2fd)],'idSuffix':_0x55c383[_0x54f993(0x49a)]},U({'ref':_0x22f72c,'className':_0x5df58e},_0x230c95),_0x289d4d);});function $s(_0x2da75f,_0x1d9813,_0x1bc4f7,_0x2839e5,_0x23da81){const _0x43b935=_0x87081d;return _0x1618fc(_0x2da75f['tag'],U(U({'key':_0x1d9813},Mr(_0x2da75f,_0x1bc4f7,_0x23da81)),_0x2839e5),(Ar(_0x2da75f,_0x1bc4f7)['children']||[])[_0x43b935(0x234)](function(_0x43ffad,_0x559f46){const _0x92442c=_0x43b935;return $s(_0x43ffad,''[_0x92442c(0x401)](_0x1d9813,'-')[_0x92442c(0x401)](_0x2da75f[_0x92442c(0x4ac)],'-')[_0x92442c(0x401)](_0x559f46),_0x1bc4f7,void 0x0,_0x23da81);}));}function Mr(_0x2873a6,_0x1aa04a,_0x37c684){const _0x1d2375=_0x87081d;var _0x459cf0=U({},_0x2873a6[_0x1d2375(0x4be)]);_0x37c684!=null&&_0x37c684['colorChannel1']&&_0x459cf0[_0x1d2375(0x29c)]===_0x1d2375(0x206)&&(_0x459cf0['fill']=_0x37c684['colorChannel1']);var _0x4935f7=_0x1aa04a['defIds'];return!_0x4935f7||_0x4935f7[_0x1d2375(0x46a)]===0x0||(_0x2873a6['tag']===_0x1d2375(0x240)&&_0x459cf0[_0x1d2375(0x4d6)]&&(_0x459cf0['xlink:href']=_0x459cf0[_0x1d2375(0x4d6)]+_0x1aa04a[_0x1d2375(0x4c5)]),Object[_0x1d2375(0x3e5)](_0x459cf0)['forEach'](function(_0x2b293d){const _0x1c5b0a=_0x1d2375;var _0x1c0c5e=_0x2b293d[0x0],_0x3bc565=_0x2b293d[0x1];typeof _0x3bc565==_0x1c5b0a(0x202)&&(_0x459cf0[_0x1c0c5e]=_0x3bc565[_0x1c5b0a(0x371)](/url\(#(.*)\)/,_0x1c5b0a(0x2a6)['concat'](_0x1aa04a[_0x1c5b0a(0x4c5)],')')));})),_0x459cf0;}function Ar(_0x34159f,_0x4eb3eb){const _0x18855d=_0x87081d;var _0x2b4b0b,_0x58976c=_0x4eb3eb['defIds'];return!_0x58976c||_0x58976c['length']===0x0?_0x34159f:_0x34159f[_0x18855d(0x4ac)]===_0x18855d(0x38d)&&(!((_0x2b4b0b=_0x34159f['children'])===null||_0x2b4b0b===void 0x0)&&_0x2b4b0b[_0x18855d(0x46a)])?U(U({},_0x34159f),{'children':_0x34159f[_0x18855d(0x41d)][_0x18855d(0x234)](function(_0x273b0e){const _0x21ff85=_0x18855d;return typeof _0x273b0e[_0x21ff85(0x4be)]['id']==_0x21ff85(0x202)&&_0x58976c&&_0x58976c[_0x21ff85(0x227)](_0x273b0e[_0x21ff85(0x4be)]['id'])>-0x1?U(U({},_0x273b0e),{'attrs':U(U({},_0x273b0e[_0x21ff85(0x4be)]),{'id':_0x273b0e[_0x21ff85(0x4be)]['id']+_0x4eb3eb['idSuffix']})}):_0x273b0e;})}):_0x34159f;}function Ur(){const _0xe45a39=_0x87081d;return Math[_0xe45a39(0x1ac)]()[_0xe45a39(0x454)](0x24)[_0xe45a39(0x479)](0x2,0x8);}kt[_0x87081d(0x280)]=_0x87081d(0x219);var yr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x357),'width':'1em','height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x2d3)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x3be),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x3e9)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446)}}]}]}],'defIds':[_0x87081d(0x3e9)]},js=_0x2c1bb9(function(_0x455bba,_0xddcb18){const _0x366ae7=_0x87081d;return _0x1618fc(kt,Object[_0x366ae7(0x2fe)]({},_0x455bba,{'id':'off-line-single','ref':_0xddcb18,'icon':yr}));});js['displayName']=_0x87081d(0x1e7);var Lr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x4b7),'width':_0x87081d(0x364),'height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x3dd)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x1f5),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':_0x87081d(0x38d),'attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x4f5)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446),'transform':_0x87081d(0x35d)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xs=_0x2c1bb9(function(_0x32f22b,_0x4f46c3){const _0x254431=_0x87081d;return _0x1618fc(kt,Object['assign']({},_0x32f22b,{'id':_0x254431(0x285),'ref':_0x4f46c3,'icon':Lr}));});xs['displayName']=_0x87081d(0x282);const $r='univer-online-status-icon',jr='univer-online-status-title',xr=_0x87081d(0x334),Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x53f076){const _0x4aac9a=_0x87081d;switch(_0x53f076){case P[_0x4aac9a(0x2c5)]:return _0x4aac9a(0x200);case P['CONFLICT']:return _0x4aac9a(0x3bd);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x4aac9a(0x49c)]:return _0x4aac9a(0x408);case P[_0x4aac9a(0x349)]:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0x4aac9a(0x2f9);case P['SYNCED']:return _0x4aac9a(0x22b);}}function Br(_0x228670){const _0xcee7f2=_0x87081d,{status$:_0x1d4c22}=_0x228670,_0x410ced=_0x1e1781(_0x1d4c22,P[_0xcee7f2(0x49c)]),_0x23fab1=_0x178612(_0x2db4b8),_0x12d8e5=_0x410ced!==P[_0xcee7f2(0x2c5)],_0x50969e=_0x23fab1['t'](Vr(_0x410ced)),_0x1d65ba=_0x2a1254(De[_0xcee7f2(0x1a6)],{[De['online']]:_0x12d8e5,[De[_0xcee7f2(0x468)]]:!_0x12d8e5}),_0x27a1b8=_0x12d8e5?_0x27911f['createElement'](xs,null):_0x27911f[_0xcee7f2(0x1c3)](js,null);return _0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':_0x1d65ba},_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x3f8)]},_0x27a1b8),_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x1a3)]},_0x50969e));}var Fr=Object[_0x87081d(0x318)],Wr=Object[_0x87081d(0x314)],Gr=(_0x304105,_0x45a410,_0x535e91,_0x58ee7d)=>{for(var _0x1852b6=_0x58ee7d>0x1?void 0x0:_0x58ee7d?Wr(_0x45a410,_0x535e91):_0x45a410,_0x4bbf4b=_0x304105['length']-0x1,_0x2b39ef;_0x4bbf4b>=0x0;_0x4bbf4b--)(_0x2b39ef=_0x304105[_0x4bbf4b])&&(_0x1852b6=(_0x58ee7d?_0x2b39ef(_0x45a410,_0x535e91,_0x1852b6):_0x2b39ef(_0x1852b6))||_0x1852b6);return _0x58ee7d&&_0x1852b6&&Fr(_0x45a410,_0x535e91,_0x1852b6),_0x1852b6;},$e=(_0x3b584b,_0x4bae41)=>(_0x1661ec,_0x1ca8dd)=>_0x4bae41(_0x1661ec,_0x1ca8dd,_0x3b584b);let ke=class extends _0x1ee863{constructor(_0x549fff,_0xf5a042,_0x4ec098,_0x5e9c2d){const _0x24ccbc=_0x87081d;super(),_(this,_0x24ccbc(0x4e3),new _0x2561fc(P[_0x24ccbc(0x49c)])),(this['_univerInstanceService']=_0x549fff,this[_0x24ccbc(0x277)]=_0xf5a042,this[_0x24ccbc(0x440)]=_0x4ec098,this[_0x24ccbc(0x1e5)]=_0x5e9c2d,this['_initStatusComponent'](),this[_0x24ccbc(0x1a0)]());}[_0x87081d(0x2f0)](){const _0x45aae4=_0x87081d;this['disposeWithMe'](this[_0x45aae4(0x277)][_0x45aae4(0x29d)](_0x41f3dc[_0x45aae4(0x2ba)],()=>_0x5458e2(Yr({'status$':this[_0x45aae4(0x4e3)][_0x45aae4(0x225)]()}),this[_0x45aae4(0x440)])));}[_0x87081d(0x1a0)](){const _0x233163=_0x87081d;this[_0x233163(0x343)](_0x3b697b(this[_0x233163(0x2bb)]['focused$']['pipe'](_0x21055f(()=>{const _0x20943a=_0x233163,_0x505e5f=this[_0x20943a(0x2bb)][_0x20943a(0x4e7)]();return _0x505e5f?this[_0x20943a(0x1e5)][_0x20943a(0x1a2)](_0x505e5f[_0x20943a(0x1b5)]()):_0x274530(null);}),_0x21055f(_0x2a4956=>_0x2a4956?_0x2a4956[_0x233163(0x33a)]:_0x274530(P[_0x233163(0x49c)])))['subscribe'](_0x4be1df=>{const _0x4449de=_0x233163;this['_status$'][_0x4449de(0x4fe)](_0x4be1df);})));}};ke=Gr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ke),$e(0x0,_0x1d5396),$e(0x1,_0x1ccd4c),$e(0x2,_0x1b956a(_0x4bf6fc)),$e(0x3,_0x1b956a(Me))],ke);function _0x1fa5(_0x24a410,_0x1bc15f){const _0x9ef47a=_0x9ef4();return _0x1fa5=function(_0x1fa52a,_0x4d83b4){_0x1fa52a=_0x1fa52a-0x19f;let _0x317d5a=_0x9ef47a[_0x1fa52a];return _0x317d5a;},_0x1fa5(_0x24a410,_0x1bc15f);}function Yr(_0x2a16ab){const {status$:_0x11e9d2}=_0x2a16ab;return function(){const _0x1f5066=_0x1fa5;return _0x27911f[_0x1f5066(0x1c3)](Br,{'status$':_0x11e9d2});};}const Hs=_0x1b08c0('uni.network.url-service');var Kr=Object[_0x87081d(0x318)],Xr=Object[_0x87081d(0x314)],Jr=(_0x1f52fe,_0x27fc73,_0x261597,_0x45f833)=>{const _0x1dcabd=_0x87081d;for(var _0x313bc5=_0x45f833>0x1?void 0x0:_0x45f833?Xr(_0x27fc73,_0x261597):_0x27fc73,_0x3d56e4=_0x1f52fe[_0x1dcabd(0x46a)]-0x1,_0x51fb7c;_0x3d56e4>=0x0;_0x3d56e4--)(_0x51fb7c=_0x1f52fe[_0x3d56e4])&&(_0x313bc5=(_0x45f833?_0x51fb7c(_0x27fc73,_0x261597,_0x313bc5):_0x51fb7c(_0x313bc5))||_0x313bc5);return _0x45f833&&_0x313bc5&&Kr(_0x27fc73,_0x261597,_0x313bc5),_0x313bc5;},ue=(_0x416d50,_0x4a629c)=>(_0x3c23a3,_0x9863d9)=>_0x4a629c(_0x3c23a3,_0x9863d9,_0x416d50);let Ve=class extends _0x53ce5a{constructor(_0x3ef442,_0x3cf00a,_0x5a15dd,_0x296130,_0x47099f,_0x281fc9){const _0x1f282b=_0x87081d;super(),this[_0x1f282b(0x44d)]=_0x3ef442,this[_0x1f282b(0x3e7)]=_0x3cf00a,this[_0x1f282b(0x248)]=_0x5a15dd,this[_0x1f282b(0x1b0)]=_0x296130,this[_0x1f282b(0x361)]=_0x47099f,_0x281fc9?_0x281fc9==null||_0x281fc9[_0x1f282b(0x239)]()[_0x1f282b(0x39a)](()=>this[_0x1f282b(0x4fd)]()):(this[_0x1f282b(0x3e7)][_0x1f282b(0x4d5)](_0x1f282b(0x2b9),_0x1f282b(0x3bc)),this[_0x1f282b(0x4fd)]());}async['_init'](){const _0x56afe8=_0x87081d,_0x426383=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x312)),_0x4f95fd=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x47c));if(!_0x426383||!_0x4f95fd){this[_0x56afe8(0x3e7)][_0x56afe8(0x4d5)](_0x56afe8(0x2b9),_0x56afe8(0x265));return;}switch(Number(_0x4f95fd)){case H[_0x56afe8(0x471)]:{const _0x1d3a88=await this[_0x56afe8(0x3b5)](_0x426383);this[_0x56afe8(0x27a)](_0x1d3a88);break;}case H[_0x56afe8(0x1c1)]:{await this[_0x56afe8(0x300)](_0x426383);break;}default:{this[_0x56afe8(0x3e7)][_0x56afe8(0x289)]('[DataLoaderController]',_0x56afe8(0x397));break;}}}async[_0x87081d(0x27a)](_0xb542d5){const _0x5c19b1=_0x87081d;await this[_0x5c19b1(0x4ef)](_0xb542d5),_0xb542d5[_0x5c19b1(0x379)]['pipe'](_0x3c23a9(this[_0x5c19b1(0x20e)]))['subscribe'](_0x554458=>{const _0x319d53=_0x5c19b1;_0x554458&&this[_0x319d53(0x3a6)](_0x554458);}),this[_0x5c19b1(0x44d)][_0x5c19b1(0x294)][_0x5c19b1(0x3b6)](_0x3c23a9(this[_0x5c19b1(0x20e)]))[_0x5c19b1(0x347)](()=>this[_0x5c19b1(0x4ef)](_0xb542d5));}['_updateURLWithCurrentState'](_0x4b4dc0,_0x11f3af=!0x1){const _0x317848=_0x87081d,_0x4c737c=this['_urlService'][_0x317848(0x1f6)](_0x317848(0x3ab));_0x4b4dc0[_0x317848(0x2fc)]()!==_0x4c737c&&this[_0x317848(0x44d)][_0x317848(0x211)]('subunit',_0x4b4dc0['getSheetId'](),_0x11f3af);}async[_0x87081d(0x4ef)](_0x3a2f28){const _0x36cb47=_0x87081d;var _0x3afb7d;const _0x7842b=this['_urlService']['getParam'](_0x36cb47(0x3ab));if(!_0x7842b||!_0x3a2f28['getSheetBySheetId'](_0x7842b)){const _0x53bdd5=_0x3a2f28[_0x36cb47(0x257)]()[0x0],_0x48a691=_0x3a2f28[_0x36cb47(0x335)](_0x53bdd5);if(!_0x48a691)return;this['_updateURLWithCurrentState'](_0x48a691,!0x0),await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28[_0x36cb47(0x1b5)](),'subUnitId':_0x53bdd5});return;}((_0x3afb7d=_0x3a2f28[_0x36cb47(0x3c4)]())==null?void 0x0:_0x3afb7d[_0x36cb47(0x2fc)]())!==_0x7842b&&await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28['getUnitId'](),'subUnitId':_0x7842b});}async[_0x87081d(0x3b5)](_0x3e2f55){const _0x457598=_0x87081d;let _0x9764d3=0x0;const _0x5561d6=await this[_0x457598(0x1b0)][_0x457598(0x1d9)](_0x3e2f55);return _0x5561d6&&(_0x5561d6[_0x457598(0x48b)]||_0x5561d6[_0x457598(0x41e)][_0x457598(0x46a)]!==0x0)&&(_0x9764d3=_0x5561d6[_0x457598(0x464)]),_0x9764d3===0x0&&this[_0x457598(0x3e7)]['debug'](_0x457598(0x2b9),_0x457598(0x24e)),this[_0x457598(0x361)][_0x457598(0x3ff)](_0x3e2f55,_0x9764d3);}async['_loadDoc'](_0x4353a7){const _0x11f2f1=_0x87081d;let _0x4b9fc7=0x0;const _0x59b8cb=await this[_0x11f2f1(0x1b0)][_0x11f2f1(0x1d9)](_0x4353a7);return _0x59b8cb&&(_0x59b8cb[_0x11f2f1(0x48b)]||_0x59b8cb['mutations']['length']!==0x0)&&(_0x4b9fc7=_0x59b8cb[_0x11f2f1(0x464)]),_0x4b9fc7===0x0&&this[_0x11f2f1(0x3e7)][_0x11f2f1(0x4d5)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x11f2f1(0x462)](_0x4353a7,_0x4b9fc7);}};Ve=Jr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Ve),ue(0x0,Hs),ue(0x1,_0x82a609),ue(0x2,_0x15992c),ue(0x3,_0x1b956a(D)),ue(0x4,_0x1b956a(_0x5cfad0)),ue(0x5,_0x4b698d(_0x265857))],Ve);var zr=Object[_0x87081d(0x318)],qr=Object['getOwnPropertyDescriptor'],Zr=(_0x9f273d,_0x24bcb8,_0x57d548,_0x4106aa)=>{const _0x2ef0f8=_0x87081d;for(var _0x1f79f7=_0x4106aa>0x1?void 0x0:_0x4106aa?qr(_0x24bcb8,_0x57d548):_0x24bcb8,_0x2eefc0=_0x9f273d[_0x2ef0f8(0x46a)]-0x1,_0x1aae22;_0x2eefc0>=0x0;_0x2eefc0--)(_0x1aae22=_0x9f273d[_0x2eefc0])&&(_0x1f79f7=(_0x4106aa?_0x1aae22(_0x24bcb8,_0x57d548,_0x1f79f7):_0x1aae22(_0x1f79f7))||_0x1f79f7);return _0x4106aa&&_0x1f79f7&&zr(_0x24bcb8,_0x57d548,_0x1f79f7),_0x1f79f7;},hs=(_0xe890fa,_0x419ac3)=>(_0x1ff332,_0x16a3e8)=>_0x419ac3(_0x1ff332,_0x16a3e8,_0xe890fa);const Qr=_0x87081d(0x2fb),eo=_0x87081d(0x232);let Be=class extends _0x1ee863{constructor(_0x519b8d,_0x5105d8){const _0x6783f=_0x87081d;super(),this[_0x6783f(0x2bb)]=_0x519b8d,this['_configService']=_0x5105d8,this[_0x6783f(0x4fd)]();}[_0x87081d(0x4fd)](){const _0x10328f=_0x87081d;this['disposeWithMe'](_0x3b697b(this[_0x10328f(0x2bb)][_0x10328f(0x4ee)][_0x10328f(0x347)](()=>{const _0x23ee34=_0x10328f;var _0x35a66c;const _0x57eff6=this['_univerInstanceService']['getFocusedUnit']();let _0x8ef830=(_0x35a66c=this[_0x23ee34(0x252)][_0x23ee34(0x38a)](Qr))!=null?_0x35a66c:eo;_0x57eff6 instanceof _0x4ae2cc&&(_0x8ef830=_0x57eff6[_0x23ee34(0x33c)]),document['title']=_0x8ef830;})));}};Be=Zr([_0x76d0ae(_0x28e3b0[_0x87081d(0x3c1)],Be),hs(0x0,_0x1d5396),hs(0x1,_0x5d255f)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0xa2d5d5,_0x12f67d,_0x31f99d,_0x494878)=>{for(var _0x575540=_0x494878>0x1?void 0x0:_0x494878?so(_0x12f67d,_0x31f99d):_0x12f67d,_0x57899c=_0xa2d5d5['length']-0x1,_0x7e0ee;_0x57899c>=0x0;_0x57899c--)(_0x7e0ee=_0xa2d5d5[_0x57899c])&&(_0x575540=(_0x494878?_0x7e0ee(_0x12f67d,_0x31f99d,_0x575540):_0x7e0ee(_0x575540))||_0x575540);return _0x494878&&_0x575540&&to(_0x12f67d,_0x31f99d,_0x575540),_0x575540;},_s=(_0x1383bb,_0x406f6b)=>(_0x472e65,_0x3d7bd8)=>_0x406f6b(_0x472e65,_0x3d7bd8,_0x1383bb);let Ot=class{constructor(_0xb0ba14,_0x55c1e7){const _0xe1231b=_0x87081d;this[_0xe1231b(0x252)]=_0xb0ba14,this[_0xe1231b(0x4b5)]=_0x55c1e7;}async[_0x87081d(0x345)](_0x20d963,_0x9ac43e){const _0x24ff0f=_0x87081d;var _0x2d3c8f;const {unitID:_0x29d5f0,type:_0xdfae06,revision:_0x587e8e=0x0}=_0x9ac43e,_0x2a472d=this[_0x24ff0f(0x1fe)]()+'/'+_0xdfae06+_0x24ff0f(0x418)+_0x29d5f0+_0x24ff0f(0x40f)+_0x587e8e,_0x35d4fe=(await this[_0x24ff0f(0x4b5)]['get'](_0x2a472d))[_0x24ff0f(0x4e5)],_0x14d294=(_0x2d3c8f=_0x35d4fe[_0x24ff0f(0x362)])==null?void 0x0:_0x2d3c8f['workbook'];if(_0x14d294){const _0x499387=_0x14d294==null?void 0x0:_0x14d294[_0x24ff0f(0x3cc)],_0x21dd61=_0x310092['encode'](_0x59c020(_0x499387));_0x14d294[_0x24ff0f(0x3cc)]=_0x21dd61,Object['entries'](_0x14d294[_0x24ff0f(0x4c9)])[_0x24ff0f(0x1c8)](([,_0x5ca978])=>{const _0x47a43e=_0x24ff0f,_0x17203c=_0x5ca978[_0x47a43e(0x3cc)],_0x38ac07=_0x310092[_0x47a43e(0x4d9)](_0x59c020(_0x17203c));_0x5ca978[_0x47a43e(0x3cc)]=_0x38ac07;});}return _0x35d4fe;}async[_0x87081d(0x24f)](_0x1f9ad6,_0x164dc9){const _0x3f4ed1=_0x87081d,{unitID:_0x4d00f6,type:_0x5dd99b,blockID:_0xcc164a}=_0x164dc9,_0x438351=this[_0x3f4ed1(0x49f)]()+'/'+_0x5dd99b+_0x3f4ed1(0x418)+_0x4d00f6+'/block/'+_0xcc164a;return(await this[_0x3f4ed1(0x4b5)][_0x3f4ed1(0x1e9)](_0x438351))['body'];}async[_0x87081d(0x26f)](_0x4b3ba3,_0x101bdc){const _0x3f58e5=_0x87081d,{unitID:_0x21b7e3,type:_0xf31b21,from:_0x7f45bb,to:_0x13a0f4}=_0x101bdc,_0x49fa80=this[_0x3f58e5(0x49f)]()+'/'+_0xf31b21+_0x3f58e5(0x418)+_0x21b7e3+'/fetchmissing?from='+_0x7f45bb+_0x3f58e5(0x24b)+_0x13a0f4;return(await this['_httpService'][_0x3f58e5(0x1e9)](_0x49fa80))['body'];}[_0x87081d(0x1fe)](){const _0x50cd39=_0x87081d;var _0x2c6424;return(_0x2c6424=this['_configService'][_0x50cd39(0x38a)](hn))!=null?_0x2c6424:this[_0x50cd39(0x49f)]();}['_getAPIPrefix'](){const _0x5c644c=_0x87081d;var _0x278346;return(_0x278346=this['_configService'][_0x5c644c(0x38a)](an))!=null?_0x278346:cn;}async[_0x87081d(0x492)](_0x2dcb80,_0x359f08){const _0x1fc136=_0x87081d,_0xbd252e=_0x1fc136(0x34f)+_0x359f08[_0x1fc136(0x47c)]+'/unit/'+_0x359f08['unitID']+_0x1fc136(0x4cb);return(await this[_0x1fc136(0x4b5)][_0x1fc136(0x1e9)](_0xbd252e,{'params':{'resourceId':JSON[_0x1fc136(0x2e5)](_0x359f08[_0x1fc136(0x1f3)])}}))[_0x1fc136(0x4e5)];}[_0x87081d(0x22e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x1d6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x493)](){const _0x2cc682=_0x87081d;throw new Error(_0x2cc682(0x1be));}};Ot=io([_s(0x0,_0x5d255f),_s(0x1,_0x1b956a(_0x3db34c))],Ot);var no=Object[_0x87081d(0x318)],ro=Object['getOwnPropertyDescriptor'],oo=(_0x362120,_0x4d6a8e,_0x2c7c96,_0x51a1f1)=>{const _0xaddef2=_0x87081d;for(var _0x588337=_0x51a1f1>0x1?void 0x0:_0x51a1f1?ro(_0x4d6a8e,_0x2c7c96):_0x4d6a8e,_0x33fa30=_0x362120[_0xaddef2(0x46a)]-0x1,_0x532459;_0x33fa30>=0x0;_0x33fa30--)(_0x532459=_0x362120[_0x33fa30])&&(_0x588337=(_0x51a1f1?_0x532459(_0x4d6a8e,_0x2c7c96,_0x588337):_0x532459(_0x588337))||_0x588337);return _0x51a1f1&&_0x588337&&no(_0x4d6a8e,_0x2c7c96,_0x588337),_0x588337;},Pe=(_0x94d0b,_0x336930)=>(_0x16c36c,_0x52a98d)=>_0x336930(_0x16c36c,_0x52a98d,_0x94d0b);let Dt=class extends _0x54179a{constructor(_0xa769e3,_0x3ff0e4,_0x51e1c6,_0x12e179,_0x5cf3c2){const _0x3c46f8=_0x87081d;super(_0xa769e3,_0x3ff0e4,_0x51e1c6),this[_0x3c46f8(0x290)]=_0x12e179,this[_0x3c46f8(0x3e7)]=_0x5cf3c2;}['transformUndoRedo'](_0x1bf162,_0x3e23ba){const _0x339a5c=_0x87081d,_0x1f09e9=this['_getUndoStack'](_0x1bf162);if(_0x1f09e9)try{const _0x131b87=this[_0x339a5c(0x4d3)](_0x1f09e9,_0x3e23ba);this[_0x339a5c(0x1e4)](_0x1bf162,_0x131b87);}catch(_0x4ef936){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)]('[CollaborationUndoRedoService]',_0x4ef936),this[_0x339a5c(0x37b)](_0x1bf162);}const _0x34b9d2=this[_0x339a5c(0x49b)](_0x1bf162);if(_0x34b9d2)try{const _0xbc79dc=this['_transformStack'](_0x34b9d2,_0x3e23ba);this['_substituteRedoStack'](_0x1bf162,_0xbc79dc);}catch(_0xa81953){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)](_0xa81953),this[_0x339a5c(0x292)](_0x1bf162);}}[_0x87081d(0x37b)](_0x1a2b80){const _0x315643=_0x87081d,_0x4f7043=this[_0x315643(0x48d)](_0x1a2b80);_0x4f7043&&(_0x4f7043['length']=0x0,this[_0x315643(0x2ef)]());}[_0x87081d(0x292)](_0x5cbb9a){const _0x12a96f=_0x87081d,_0x598552=this[_0x12a96f(0x49b)](_0x5cbb9a);_0x598552&&(_0x598552[_0x12a96f(0x46a)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x33701a,_0x1cf17c){const _0x46d54d=_0x87081d;this[_0x46d54d(0x3c0)][_0x46d54d(0x4af)](_0x33701a,_0x1cf17c),this['_updateStatus']();}[_0x87081d(0x301)](_0x2309fa,_0x17a33b){const _0x403f07=_0x87081d;this[_0x403f07(0x423)][_0x403f07(0x4af)](_0x2309fa,_0x17a33b),this[_0x403f07(0x2ef)]();}[_0x87081d(0x4d3)](_0x1e79d1,_0x2f9cb3){const _0x3fd7a8=_0x87081d,_0x395c3b=[];let _0x2680d6=_0x2f9cb3,_0x29d7ce=_0x2f9cb3;for(let _0x3d1d8f=_0x1e79d1[_0x3fd7a8(0x46a)]-0x1;_0x3d1d8f>=0x0;_0x3d1d8f--){const {unitID:_0x3f340c,undoMutations:_0x5fdcba,redoMutations:_0x2900cd}=_0x1e79d1[_0x3d1d8f],_0x3b190d=this['_transformService'][_0x3fd7a8(0x43b)](_0x2680d6,_0x5fdcba),_0xa33ac8=this['_transformService'][_0x3fd7a8(0x43b)](_0x29d7ce,_0x2900cd);if(_0x519c1a(_0x3b190d)||_0x519c1a(_0xa33ac8)){this['_logService'][_0x3fd7a8(0x289)](_0x3fd7a8(0x42c),'transformStack\x20failed!',_0x3b190d,_0xa33ac8);break;}_0x2680d6=_0x3b190d[_0x3fd7a8(0x39e)],_0x29d7ce=_0xa33ac8[_0x3fd7a8(0x39e)],_0x395c3b[_0x3fd7a8(0x1ab)]({'unitID':_0x3f340c,'undoMutations':_0x3b190d[_0x3fd7a8(0x36f)],'redoMutations':_0xa33ac8[_0x3fd7a8(0x36f)]});}return _0x395c3b['reverse']();}};Dt=oo([Pe(0x0,_0x1d5396),Pe(0x1,_0x15992c),Pe(0x2,_0x492a6b),Pe(0x3,_0x4e495a),Pe(0x4,_0x82a609)],Dt);class ao extends _0x53ce5a{constructor(){const _0x457cbf=_0x87081d;super(),_(this,_0x457cbf(0x294)),this[_0x457cbf(0x294)]=_0x28ccd8(window,'popstate')[_0x457cbf(0x3b6)](_0x3c23a9(this[_0x457cbf(0x20e)]),_0x3b034a(0x1),_0x310a6c(void 0x0));}[_0x87081d(0x211)](_0x5c90c9,_0xd9463b,_0x13eae7=!0x1){const _0x53e5b9=_0x87081d,_0x424a22=new URL(window[_0x53e5b9(0x45f)]['href']);_0x424a22[_0x53e5b9(0x27d)][_0x53e5b9(0x4af)](_0x5c90c9,_0xd9463b),_0x13eae7?window[_0x53e5b9(0x4f6)]['replaceState']('','',_0x424a22['toString']()):window['history'][_0x53e5b9(0x44e)]('','',_0x424a22['toString']());}['removeParam'](_0x274447,_0x3e0380=!0x1){const _0x5cc368=_0x87081d,_0x5530f5=new URL(window[_0x5cc368(0x45f)][_0x5cc368(0x3e3)]);_0x5530f5[_0x5cc368(0x27d)]['delete'](_0x274447),_0x3e0380?window[_0x5cc368(0x4f6)][_0x5cc368(0x36e)]('','',_0x5530f5['toString']()):window[_0x5cc368(0x4f6)]['pushState']('','',_0x5530f5['toString']());}[_0x87081d(0x1f6)](_0x34f942){const _0x354f61=_0x87081d;var _0x21a437;return(_0x21a437=new URL(window[_0x354f61(0x45f)][_0x354f61(0x3e3)])[_0x354f61(0x27d)][_0x354f61(0x1e9)](_0x34f942))!=null?_0x21a437:void 0x0;}}const lt=_0x87081d(0x1d7),co=_0x87081d(0x273),ho=_0x87081d(0x4bb),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0x87081d(0x337);class ls{constructor(_0x39d7f3,_0x3d907f,_0x58b6c6,_0x1208ba){const _0x53e21=_0x87081d;_(this,_0x53e21(0x45c),[]),_(this,'_anchor',null),_(this,_0x53e21(0x484),null),_(this,_0x53e21(0x1d3),null),_(this,_0x53e21(0x457),null),_(this,'_eventUnsubscribe',null),(this[_0x53e21(0x2bf)]=_0x39d7f3,this['_scene']=_0x3d907f,this[_0x53e21(0x29b)]=_0x58b6c6,this[_0x53e21(0x1c2)]=_0x1208ba,this[_0x53e21(0x2a9)]());}set[_0x87081d(0x4ce)](_0x1d601a){const _0x2fec52=_0x87081d;_0x1d601a?(this[_0x2fec52(0x1d3)]&&this[_0x2fec52(0x1d3)][_0x2fec52(0x412)](),this['_textBubble']&&this[_0x2fec52(0x484)][_0x2fec52(0x410)]()):(this['_anchorDot']&&this[_0x2fec52(0x1d3)][_0x2fec52(0x410)](),this[_0x2fec52(0x484)]&&this[_0x2fec52(0x484)][_0x2fec52(0x412)]());}[_0x87081d(0x23c)](){const _0x53dc4f=_0x87081d;for(const _0x2584a5 of this[_0x53dc4f(0x45c)])_0x2584a5[_0x53dc4f(0x23c)]();this[_0x53dc4f(0x484)]&&this[_0x53dc4f(0x484)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x1d3)]&&this[_0x53dc4f(0x1d3)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x49d)]&&this[_0x53dc4f(0x49d)]['dispose'](),this['_eventUnsubscribe']&&this[_0x53dc4f(0x25d)]();}[_0x87081d(0x2a9)](){const _0x2401c4=_0x87081d;var _0x45d675;const {_docSkeleton:_0x2af747,_document:_0x5c8b25}=this,{color:_0x35202b,name:_0x13ab1d,ranges:_0x59932d}=this[_0x2401c4(0x2bf)],_0x4fc5cc=_0x5c8b25[_0x2401c4(0x2e3)](),{docsLeft:_0x2b2964,docsTop:_0x17a46d}=_0x4fc5cc,_0x1ee52f=new _0x5e6c7c(_0x4fc5cc,_0x2af747);for(const {startOffset:_0x455a33,endOffset:_0x3d42ad,collapsed:_0x3bdfb2,isActive:_0x111584}of _0x59932d){const _0x4003dc=_0x2af747[_0x2401c4(0x3e4)](_0x455a33),_0x46efa9=_0x2af747['findNodePositionByCharIndex'](_0x3d42ad);if(_0x111584){const {contentBoxPointGroup:_0x3dc789}=_0x1ee52f[_0x2401c4(0x3ad)](_0x46efa9,_0x46efa9);if(_0x3dc789['length']===0x0)continue;this['_drawAnchor'](_0x35202b,_0x3dc789,_0x2b2964,_0x17a46d,_0x13ab1d),this[_0x2401c4(0x25d)]=this[_0x2401c4(0x2dd)]();}if(!_0x3bdfb2&&_0x4003dc&&_0x46efa9){if(_0x4c5cc1(_0x4003dc,_0x46efa9)){const _0x1f73f8=new _0x564309(_0x4fc5cc,_0x2af747),{pointGroup:_0x3f6051}=(_0x45d675=_0x1f73f8[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9))!=null?_0x45d675:{};if(_0x3f6051==null||_0x3f6051['length']===0x0)continue;this[_0x2401c4(0x311)](_0x35202b,_0x3f6051,_0x2b2964,_0x17a46d);}else{const {contentBoxPointGroup:_0x9a0c78}=_0x1ee52f[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9);if(_0x9a0c78[_0x2401c4(0x46a)]===0x0)continue;this[_0x2401c4(0x2c1)](_0x35202b,_0x9a0c78,_0x2b2964,_0x17a46d);}}}}[_0x87081d(0x2cb)](_0x2b6bff,_0x5098f4,_0x5170f1,_0x4656cd,_0x298718){const _0x328f73=_0x87081d,_0x4417a5=this[_0x328f73(0x3ca)](_0x5098f4),{left:_0x376e36,top:_0x21d9e1,height:_0x298c9d}=_0x4417a5,_0x5dd731=this[_0x328f73(0x1ef)](),_0x2f688e=lo/_0x5dd731,_0x1d5a04=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd,'height':_0x298c9d,'width':_o,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':_0x2f688e,'stroke':uo,'evented':!0x0});this['_anchor']=_0x1d5a04,this['_scene'][_0x328f73(0x238)](_0x1d5a04,_0x130379);const _0x51215f=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ut/0x2,'height':ut,'width':ut,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x2b6bff||_0x5664c9(_0x5212b1['black'],0x0),'evented':!0x1});this[_0x328f73(0x1d3)]=_0x51215f,this[_0x328f73(0x3df)][_0x328f73(0x238)](_0x51215f,_0x130379);const _0x4d57e4=new it(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ye,'text':_0x298718,'color':_0x2b6bff});this[_0x328f73(0x484)]=_0x4d57e4,this['_scene']['addObject'](_0x4d57e4,_0x130379),this[_0x328f73(0x4ce)]=!0x1;}[_0x87081d(0x2dd)](){const _0x56e8f4=_0x87081d,_0x2b9710=this[_0x56e8f4(0x49d)][_0x56e8f4(0x19f)][_0x56e8f4(0x3fd)](()=>{const _0x5149df=_0x56e8f4;this[_0x5149df(0x4ce)]=!0x0;}),_0x55f824=this['_anchor'][_0x56e8f4(0x3ce)][_0x56e8f4(0x3fd)](()=>{const _0x3c08ab=_0x56e8f4;this[_0x3c08ab(0x457)]&&clearTimeout(this[_0x3c08ab(0x457)]),this['_hideTimer']=setTimeout(()=>{const _0xb4e265=_0x3c08ab;this[_0xb4e265(0x4ce)]=!0x1;},0x7d0);});return()=>{const _0x9b0155=_0x56e8f4;_0x2b9710[_0x9b0155(0x2a8)](),_0x55f824[_0x9b0155(0x2a8)]();};}[_0x87081d(0x2c1)](_0xfd8d4a,_0x477c94,_0x4326da,_0x1aad2f){const _0x1a64cc=_0x87081d,_0x4871b9=new _0x5c6173(_0xfd8d4a)[_0x1a64cc(0x1ca)](0.2)[_0x1a64cc(0x2de)](),_0x4cb855=new _0x1ef824(co+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x477c94,'fill':_0x4871b9||_0x5664c9(_0x5212b1[_0x1a64cc(0x4b4)],0.2),'left':_0x4326da,'top':_0x1aad2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a64cc(0x45c)][_0x1a64cc(0x1ab)](_0x4cb855),this[_0x1a64cc(0x3df)][_0x1a64cc(0x238)](_0x4cb855,_0x130379);}['_drawRectRange'](_0x151fca,_0x57562a,_0x2eb4b5,_0x734f18){const _0x4aa825=_0x87081d,_0x45d1f3=new _0x5c6173(_0x151fca)[_0x4aa825(0x1ca)](0.2)[_0x4aa825(0x2de)](),_0x3943a4=new _0x1ef824(ho+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x57562a,'fill':_0x45d1f3||_0x5664c9(_0x5212b1[_0x4aa825(0x4b4)],0.2),'left':_0x2eb4b5,'top':_0x734f18,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aa825(0x45c)][_0x4aa825(0x1ab)](_0x3943a4),this[_0x4aa825(0x3df)][_0x4aa825(0x238)](_0x3943a4,_0x130379);}[_0x87081d(0x3ca)](_0x53b961){const _0x3755a7=_0x53b961[0x0],_0x1f80f1=_0x3755a7[0x0],_0x5e7660=_0x3755a7[0x2],{x:_0x1a2c55,y:_0x6cc0a8}=_0x1f80f1,{x:_0x151e93,y:_0x2ac20c}=_0x5e7660;return{'left':_0x1a2c55,'top':_0x6cc0a8,'width':_0x151e93-_0x1a2c55,'height':_0x2ac20c-_0x6cc0a8};}[_0x87081d(0x1ef)](){const _0x5bbf09=_0x87081d,{scaleX:_0x49eb72,scaleY:_0x27cf74}=this[_0x5bbf09(0x3df)][_0x5bbf09(0x367)]();return Math['max'](_0x49eb72,_0x27cf74);}}var mo=Object[_0x87081d(0x318)],fo=Object['getOwnPropertyDescriptor'],go=(_0x54b10b,_0x59979c,_0x5267db,_0x1a2db1)=>{for(var _0xe8b28e=_0x1a2db1>0x1?void 0x0:_0x1a2db1?fo(_0x59979c,_0x5267db):_0x59979c,_0x2bebe2=_0x54b10b['length']-0x1,_0x29350b;_0x2bebe2>=0x0;_0x2bebe2--)(_0x29350b=_0x54b10b[_0x2bebe2])&&(_0xe8b28e=(_0x1a2db1?_0x29350b(_0x59979c,_0x5267db,_0xe8b28e):_0x29350b(_0xe8b28e))||_0xe8b28e);return _0x1a2db1&&_0xe8b28e&&mo(_0x59979c,_0x5267db,_0xe8b28e),_0xe8b28e;},je=(_0x59ff05,_0x2cc2c4)=>(_0x4ceb6e,_0xaecc7c)=>_0x2cc2c4(_0x4ceb6e,_0xaecc7c,_0x59ff05);let Fe=class extends _0x53ce5a{constructor(_0x81b978,_0x20bfc5,_0x103a29,_0x23c5a5,_0x8a094d){const _0xfe7ba=_0x87081d;super(),_(this,_0xfe7ba(0x48c),[]),_(this,_0xfe7ba(0x1eb),[]),(this[_0xfe7ba(0x485)]=_0x81b978,this['_docSkeletonManagerService']=_0x20bfc5,this[_0xfe7ba(0x4b8)]=_0x103a29,this[_0xfe7ba(0x248)]=_0x23c5a5,this[_0xfe7ba(0x430)]=_0x8a094d,this[_0xfe7ba(0x4fd)]());}[_0x87081d(0x4fd)](){const _0x1daa8e=_0x87081d,_0x33f980=this[_0x1daa8e(0x485)][_0x1daa8e(0x20b)],_0x39c622=this[_0x1daa8e(0x26d)];this[_0x1daa8e(0x343)](_0x138d6c([this[_0x1daa8e(0x4b8)][_0x1daa8e(0x23b)](_0x33f980),this[_0x1daa8e(0x430)][_0x1daa8e(0x383)]])[_0x1daa8e(0x3b6)](_0x414fcf(([_0x5861dd,_0x36edb0])=>({'skeleton':_0x39c622[_0x1daa8e(0x2d7)](),'cursors':[..._0x5861dd[_0x1daa8e(0x247)]()][_0x1daa8e(0x29e)](_0x35b84c=>({..._0x35b84c,'color':_0x36edb0[_0x35b84c[_0x1daa8e(0x295)]]}))})))[_0x1daa8e(0x347)](_0x119cf0=>{const _0x194a59=_0x1daa8e;if(this[_0x194a59(0x3d9)](),_0x119cf0){const {skeleton:_0x3c6aa5,cursors:_0x4e52b8}=_0x119cf0;this['_updateCollabCursors'](_0x3c6aa5,_0x4e52b8);}})),this['_initResize'](),this[_0x1daa8e(0x2a2)]();}['_updateCollabCursors'](_0x59f76f,_0xc2d20f){const _0x3eba84=_0x87081d,{scene:_0x53ae77,mainComponent:_0x27e9cf}=this[_0x3eba84(0x485)],_0xe2fd4f=_0xc2d20f[_0x3eba84(0x234)](_0x5c6722=>new ls(_0x5c6722,_0x53ae77,_0x59f76f,_0x27e9cf));this[_0x3eba84(0x48c)]=_0xe2fd4f,this[_0x3eba84(0x1eb)]=_0xc2d20f;}[_0x87081d(0x2ae)](){const _0x162d66=_0x87081d;this[_0x162d66(0x3d9)]();const {scene:_0x4e72d1,mainComponent:_0x1e12eb}=this[_0x162d66(0x485)],_0x5921f9=this['_docSkeletonManagerService'][_0x162d66(0x2d7)](),_0x186b85=this[_0x162d66(0x1eb)]['map'](_0x539be7=>new ls(_0x539be7,_0x4e72d1,_0x5921f9,_0x1e12eb));this[_0x162d66(0x48c)]=_0x186b85;}[_0x87081d(0x3d9)](){const _0x42bc7f=_0x87081d;this['_cursorShapes']['forEach'](_0x18c8ab=>_0x18c8ab['dispose']()),this[_0x42bc7f(0x48c)]=[];}['_initCommandExecutedListener'](){const _0x5e4e90=_0x87081d,_0x5ec101=[_0x46d2fe['id']];this[_0x5e4e90(0x343)](this[_0x5e4e90(0x248)][_0x5e4e90(0x3b9)](_0x7dbe2=>{const _0x3f3729=_0x5e4e90;_0x5ec101[_0x3f3729(0x309)](_0x7dbe2['id'])&&_0x7dbe2[_0x3f3729(0x428)][_0x3f3729(0x20b)]===this[_0x3f3729(0x485)][_0x3f3729(0x20b)]&&this[_0x3f3729(0x2ae)]();}));}[_0x87081d(0x26b)](){const _0x3694cf=_0x87081d;this[_0x3694cf(0x343)](_0x240261(this[_0x3694cf(0x485)][_0x3694cf(0x274)][_0x3694cf(0x47b)])['pipe'](_0x381935(_0x49d2b7=>_0x49d2b7[_0x3694cf(0x47c)]===_0x2cbd51[_0x3694cf(0x350)]),_0xcfa107(0x10))[_0x3694cf(0x347)](()=>{const _0x5ee2eb=_0x3694cf;this[_0x5ee2eb(0x2ae)]();}));}};Fe=go([_0x76d0ae(_0x28e3b0[_0x87081d(0x205)],Fe),je(0x1,_0x1b956a(_0x26e3ab)),je(0x2,_0x1b956a(ge)),je(0x3,_0x15992c),je(0x4,_0x1b956a(_0x4a7906))],Fe);var So=Object[_0x87081d(0x318)],po=Object[_0x87081d(0x314)],vo=(_0x2aacec,_0x346226,_0x8ed806,_0x2c70a1)=>{const _0x304379=_0x87081d;for(var _0x41d075=_0x2c70a1>0x1?void 0x0:_0x2c70a1?po(_0x346226,_0x8ed806):_0x346226,_0x5f42f1=_0x2aacec[_0x304379(0x46a)]-0x1,_0xee53f3;_0x5f42f1>=0x0;_0x5f42f1--)(_0xee53f3=_0x2aacec[_0x5f42f1])&&(_0x41d075=(_0x2c70a1?_0xee53f3(_0x346226,_0x8ed806,_0x41d075):_0xee53f3(_0x41d075))||_0x41d075);return _0x2c70a1&&_0x41d075&&So(_0x346226,_0x8ed806,_0x41d075),_0x41d075;},dt=(_0x339711,_0x11f644)=>(_0x45ad68,_0x199acb)=>_0x11f644(_0x45ad68,_0x199acb,_0x339711);let Qe=class{constructor(_0x95fbd9,_0xc90488,_0x4b26ef){const _0x3883e6=_0x87081d;this[_0x3883e6(0x252)]=_0x95fbd9,this['_httpService']=_0xc90488,this[_0x3883e6(0x3b4)]=_0x4b26ef,this['init']();}[_0x87081d(0x310)](){const _0x558963=_0x87081d;this['_httpService'][_0x558963(0x395)]({'priority':0x1,'interceptor':(_0x4fa7b5,_0x2485f1)=>_0x2485f1(_0x4fa7b5)[_0x558963(0x3b6)](_0x2ccf11(async _0x595f8d=>{const _0x526aee=_0x558963,_0x52b1e8=_0x595f8d;if(_0x52b1e8[_0x526aee(0x3a9)]===0x191&&window['confirm'](this[_0x526aee(0x3b4)]['t'](_0x526aee(0x2fa)))){const _0x22d163=window[_0x526aee(0x251)](window['location'][_0x526aee(0x3e3)]);window[_0x526aee(0x45f)][_0x526aee(0x3e3)]=this[_0x526aee(0x354)]()+_0x526aee(0x3f9)+_0x22d163;}return _0x52b1e8;}))});}[_0x87081d(0x354)](){const _0x10e661=_0x87081d;var _0x290166;return(_0x290166=this[_0x10e661(0x252)][_0x10e661(0x38a)](Rn))!=null?_0x290166:Tn;}};Qe=vo([dt(0x0,_0x5d255f),dt(0x1,_0x1b956a(_0x3db34c)),dt(0x2,_0x1b956a(_0x2db4b8))],Qe);var Io=Object[_0x87081d(0x318)],Eo=Object[_0x87081d(0x314)],Co=(_0x4e926d,_0x1ade63,_0x41aaee,_0x3cf3e8)=>{const _0x2e504b=_0x87081d;for(var _0x1f9dba=_0x3cf3e8>0x1?void 0x0:_0x3cf3e8?Eo(_0x1ade63,_0x41aaee):_0x1ade63,_0x43fa10=_0x4e926d[_0x2e504b(0x46a)]-0x1,_0x143f1f;_0x43fa10>=0x0;_0x43fa10--)(_0x143f1f=_0x4e926d[_0x43fa10])&&(_0x1f9dba=(_0x3cf3e8?_0x143f1f(_0x1ade63,_0x41aaee,_0x1f9dba):_0x143f1f(_0x1f9dba))||_0x1f9dba);return _0x3cf3e8&&_0x1f9dba&&Io(_0x1ade63,_0x41aaee,_0x1f9dba),_0x1f9dba;},us=(_0x4ef6d1,_0x4f59a3)=>(_0x1c4eb3,_0x561e95)=>_0x4f59a3(_0x1c4eb3,_0x561e95,_0x4ef6d1);const bo=_0x87081d(0x381),Ro='/universer-api/authz';let Pt=class extends _0x1ee863{constructor(_0x47dfaa,_0xf8cb22){const _0x458a85=_0x87081d;super(),this[_0x458a85(0x26a)]=_0x47dfaa,this['_configService']=_0xf8cb22,this['_initMergeInterceptor']();}[_0x87081d(0x4df)](){const _0x23e4d1=_0x87081d,_0x3e38ff=this;this[_0x23e4d1(0x343)](this['_HTTPService'][_0x23e4d1(0x395)]({'priority':0x3e7,'interceptor':_0x5c8e22({'isMatch'(_0x420f28){const _0x3818ec=_0x23e4d1;var _0xc9bc6e;if(_0x420f28['method']===_0x3818ec(0x1bd)&&((_0xc9bc6e=_0x420f28[_0x3818ec(0x216)])!=null&&_0xc9bc6e[_0x3818ec(0x4e5)])){const {objectID:_0x4d2ad7,objectType:_0x99f79e}=_0x420f28['requestParams']['body']||{};if(!_0x4d2ad7||_0x99f79e===void 0x0)return!0x1;const _0x3833ba=_0x3e38ff[_0x3818ec(0x1a9)]()+'/'+_0x99f79e+_0x3818ec(0x3bb)+_0x4d2ad7+_0x3818ec(0x426);if(_0x420f28[_0x3818ec(0x1bc)]===_0x3833ba)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x570c11){const _0x1aef98=_0x23e4d1;var _0x3cc1c1;return(_0x3cc1c1=_0x570c11[_0x1aef98(0x216)])==null?void 0x0:_0x3cc1c1[_0x1aef98(0x4e5)];},'mergeParamsToRequest'(_0x34af8d,_0x546094){const _0x2ff26e=_0x23e4d1,_0x2f3ddd=_0x3e38ff[_0x2ff26e(0x1a9)]()+_0x2ff26e(0x455),_0x2a724e=_0x34af8d[_0x2ff26e(0x1ec)]((_0x533bfc,_0x1c8dc3)=>{const _0xdcf547=_0x2ff26e,{unitID:_0xaf6f9e,objectID:_0x1f8529,objectType:_0x8e4b2e,actions:_0x5ec45b}=_0x1c8dc3;return _0x533bfc[_0xaf6f9e]||(_0x533bfc[_0xaf6f9e]={}),_0x533bfc[_0xaf6f9e][_0x1f8529]||(_0x533bfc[_0xaf6f9e][_0x1f8529]={'objectID':_0x1f8529,'objectType':_0x8e4b2e,'actions':[]}),_0x533bfc[_0xaf6f9e][_0x1f8529][_0xdcf547(0x4f1)][_0xdcf547(0x1ab)](..._0x5ec45b),_0x533bfc;},{}),_0x1768ce=[];for(const _0x457268 in _0x2a724e)for(const _0x213b7e in _0x2a724e[_0x457268]){const {actions:_0x580e4a,objectType:_0x4f5f16}=_0x2a724e[_0x457268][_0x213b7e],_0x562331=[...new Set(_0x580e4a)];_0x1768ce[_0x2ff26e(0x1ab)]({'unitID':_0x457268,'objectID':_0x213b7e,'objectType':_0x4f5f16,'actions':_0x562331});}return new _0x3fce40(_0x2ff26e(0x1bd),_0x2f3ddd,{'headers':_0x546094[_0x2ff26e(0x499)],'withCredentials':_0x546094[_0x2ff26e(0x497)],'responseType':_0x546094[_0x2ff26e(0x1ea)],'body':{'requests':_0x1768ce}});}},{'distributeResult'(_0x1f9d92,_0x381f40){const {objectActions:_0x1f9663}=_0x1f9d92;return _0x381f40['map'](_0x3a94f9=>{const _0x1234fc=_0x1fa5,{unitID:_0x2d72ef,objectID:_0x3d8d38,actions:_0x1bff16}=_0x3a94f9,_0x611090=_0x1f9663[_0x1234fc(0x3eb)](_0xaf7fe4=>_0xaf7fe4['unitID']===_0x2d72ef&&_0xaf7fe4['objectID']===_0x3d8d38),_0x44f061=_0x1bff16[_0x1234fc(0x234)](_0x42bdab=>_0x611090==null?void 0x0:_0x611090[_0x1234fc(0x4f1)][_0x1234fc(0x3eb)](_0x4ddfd6=>_0x4ddfd6['action']===_0x42bdab))[_0x1234fc(0x421)](_0x5a0a72=>!!_0x5a0a72);return{'config':_0x3a94f9,'result':{'actions':_0x44f061,'error':_0x1f9d92['error']}};});}})}));}[_0x87081d(0x1a9)](){const _0x558900=_0x87081d;var _0x460b86;return(_0x460b86=this[_0x558900(0x252)][_0x558900(0x38a)](bo))!=null?_0x460b86:Ro;}async['create'](_0x33cb7a){const _0x5d0946=_0x87081d,_0x40c007=this[_0x5d0946(0x1a9)]()+'/'+_0x33cb7a[_0x5d0946(0x30d)]+'/object';return(await this['_HTTPService'][_0x5d0946(0x3f6)](_0x40c007,{'body':_0x33cb7a}))['body'][_0x5d0946(0x355)]||'';}async[_0x87081d(0x4fc)](_0x219c39){const _0x23dfcb=_0x87081d,_0x2878ad=this[_0x23dfcb(0x1a9)]()+_0x23dfcb(0x34d);return(await this[_0x23dfcb(0x26a)][_0x23dfcb(0x3f6)](_0x2878ad,{'body':_0x219c39}))[_0x23dfcb(0x4e5)][_0x23dfcb(0x324)];}async[_0x87081d(0x269)](_0x427e8c){const _0x47c33e=_0x87081d,_0x6c142c=this[_0x47c33e(0x1a9)]()+'/'+_0x427e8c[_0x47c33e(0x30d)]+_0x47c33e(0x3bb)+_0x427e8c['objectID'];await this[_0x47c33e(0x26a)]['put'](_0x6c142c,{'body':_0x427e8c});}async[_0x87081d(0x435)](_0x25a863){const _0x2e50e2=_0x87081d,_0xe79aa3=this[_0x2e50e2(0x1a9)]()+'/'+_0x25a863['objectType']+_0x2e50e2(0x3bb)+_0x25a863[_0x2e50e2(0x355)]+_0x2e50e2(0x426);return(await this[_0x2e50e2(0x26a)]['post'](_0xe79aa3,{'body':_0x25a863}))['body'][_0x2e50e2(0x4f1)];}async['batchAllowed'](_0x27464b){const _0x4ee6ce=_0x87081d,_0x11ca4a=this['_getAPIPrefixPath']()+_0x4ee6ce(0x455);return(await this[_0x4ee6ce(0x26a)]['post'](_0x11ca4a,{'body':{'requests':_0x27464b}}))[_0x4ee6ce(0x4e5)][_0x4ee6ce(0x370)];}async[_0x87081d(0x2a7)](_0x2168ac){const _0x29e6f7=_0x87081d,_0x266186=this[_0x29e6f7(0x1a9)]()+'/'+_0x2168ac[_0x29e6f7(0x30d)]+_0x29e6f7(0x4da),_0x18a5ab=await this[_0x29e6f7(0x26a)][_0x29e6f7(0x3f6)](_0x266186,{'body':_0x2168ac});return{'roles':_0x18a5ab[_0x29e6f7(0x4e5)]['roles'],'actions':_0x18a5ab[_0x29e6f7(0x4e5)][_0x29e6f7(0x4f1)]};}async[_0x87081d(0x2e2)](_0x9ef6fa){const _0x44801b=_0x87081d,_0x390767=this['_getAPIPrefixPath']()+_0x44801b(0x4ad);await this[_0x44801b(0x26a)][_0x44801b(0x3c7)](_0x390767,{'params':{'collaboratorID':_0x9ef6fa[_0x44801b(0x398)],'objectID':_0x9ef6fa[_0x44801b(0x355)],'unitID':_0x9ef6fa[_0x44801b(0x3a8)]}});}async['updateCollaborator'](_0x4a9582){const _0x2f1666=_0x87081d,_0x3406ac=this[_0x2f1666(0x1a9)]()+_0x2f1666(0x4ad);await this[_0x2f1666(0x26a)][_0x2f1666(0x2d9)](_0x3406ac,{'body':_0x4a9582});}async[_0x87081d(0x1fa)](_0x3d3185){const _0xbf145a=_0x87081d,_0x3012ce=this[_0xbf145a(0x1a9)]()+_0xbf145a(0x4ad);await this['_HTTPService'][_0xbf145a(0x3f6)](_0x3012ce,{'body':_0x3d3185});}async[_0x87081d(0x229)](_0x10a948){const _0xc81142=_0x87081d,_0x464981=this['_getAPIPrefixPath']()+_0xc81142(0x4ad);return(await this['_HTTPService'][_0xc81142(0x1e9)](_0x464981,{'params':{'objectID':_0x10a948['objectID'],'unitID':_0x10a948[_0xc81142(0x3a8)]}}))[_0xc81142(0x4e5)]['collaborators'];}async['putCollaborators'](_0x182d74){const _0x36a0ff=_0x87081d,_0x4760c0=this[_0x36a0ff(0x1a9)]()+_0x36a0ff(0x4ad);await this[_0x36a0ff(0x26a)][_0x36a0ff(0x480)](_0x4760c0,{'body':_0x182d74});}};Pt=Co([us(0x0,_0x1b956a(_0x3db34c)),us(0x1,_0x1b956a(_0x5d255f))],Pt);var To=Object[_0x87081d(0x318)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x54c87e,_0x1ee92c,_0x18d196,_0x4fabf7)=>{const _0x6479c3=_0x87081d;for(var _0x48c974=_0x4fabf7>0x1?void 0x0:_0x4fabf7?Oo(_0x1ee92c,_0x18d196):_0x1ee92c,_0x205596=_0x54c87e[_0x6479c3(0x46a)]-0x1,_0x262a8c;_0x205596>=0x0;_0x205596--)(_0x262a8c=_0x54c87e[_0x205596])&&(_0x48c974=(_0x4fabf7?_0x262a8c(_0x1ee92c,_0x18d196,_0x48c974):_0x262a8c(_0x48c974))||_0x48c974);return _0x4fabf7&&_0x48c974&&To(_0x1ee92c,_0x18d196,_0x48c974),_0x48c974;},mt=(_0x51eefc,_0x39f9f5)=>(_0xa2083f,_0x10b52d)=>_0x39f9f5(_0xa2083f,_0x10b52d,_0x51eefc);const Po=[_0x87081d(0x399),_0x87081d(0x405),_0x87081d(0x473),_0x87081d(0x4f4),_0x87081d(0x37a)],wo=0x5*0x400*0x400,No=_0x87081d(0x288),Mo='/universer-api/stream/file/upload',Ao=_0x87081d(0x4a0),Uo=_0x87081d(0x1c5);let wt=class{constructor(_0x2ee05a,_0x2fdab8,_0x23a6a4){const _0x15df2c=_0x87081d;_(this,'_waitCount',0x0),_(this,_0x15df2c(0x27b),new _0x1ace47()),_(this,'change$',this['_change$']),_(this,'_imageSourceCache',new Map()),(this[_0x15df2c(0x4b5)]=_0x2ee05a,this['_configService']=_0x2fdab8,this[_0x15df2c(0x2bb)]=_0x23a6a4);}[_0x87081d(0x444)](_0x168486){const _0x395153=_0x87081d;this[_0x395153(0x1b9)]=_0x168486,this[_0x395153(0x27b)][_0x395153(0x4fe)](_0x168486);}['getImageSourceCache'](_0x56acc3,_0x321f73){const _0x5bba59=_0x87081d;if(_0x321f73===_0x434ac3[_0x5bba59(0x366)]){const _0x27431a=new Image();return _0x27431a[_0x5bba59(0x461)]=_0x56acc3,_0x27431a;}return this['_imageSourceCache'][_0x5bba59(0x1e9)](_0x56acc3);}[_0x87081d(0x447)](_0x334038,_0x3d4819,_0x109b1b){const _0x19ea01=_0x87081d;_0x3d4819===_0x434ac3[_0x19ea01(0x366)]||_0x109b1b==null||this[_0x19ea01(0x3e6)][_0x19ea01(0x4af)](_0x334038,_0x109b1b);}async[_0x87081d(0x43c)](_0x151dbc){const _0x48e284=_0x87081d;try{const _0x4c7b50=this['_replaceFileID'](this[_0x48e284(0x297)](),''+_0x151dbc),_0x4d0ed9=(await this[_0x48e284(0x4b5)][_0x48e284(0x1e9)](_0x4c7b50))[_0x48e284(0x4e5)];return _0x4d0ed9[_0x48e284(0x289)]&&_0x4d0ed9['error'][_0x48e284(0x1a7)]===Ps['OK']?Promise[_0x48e284(0x3cb)](_0x4d0ed9[_0x48e284(0x1bc)]):Promise[_0x48e284(0x378)](_0x4d0ed9[_0x48e284(0x289)]);}catch(_0x57ff1e){return Promise[_0x48e284(0x378)](_0x57ff1e);}}async[_0x87081d(0x21a)](_0x33eb3c){const _0x3c1d98=_0x87081d;let _0x2c71a1='';if(!Po['includes'](_0x33eb3c[_0x3c1d98(0x47c)]))return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0[_0x3c1d98(0x375)]));if(_0x33eb3c[_0x3c1d98(0x25e)]>wo)return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_EXCEED_SIZE']));try{const _0x34c4cf=new FormData();_0x34c4cf[_0x3c1d98(0x387)](_0x3c1d98(0x3d2),_0x33eb3c);const _0x650fc9=this['_univerInstanceService'][_0x3c1d98(0x4e7)](),_0x557545=_0x650fc9==null?void 0x0:_0x650fc9[_0x3c1d98(0x1b5)]();if(!_0x557545)throw new Error(_0x3c1d98(0x483));const _0x1fdaa5=this['_getUploadFileURL']()+_0x3c1d98(0x327)+_0x33eb3c['size'][_0x3c1d98(0x454)]()+_0x3c1d98(0x380)+ws['UnitEmbedded']+_0x3c1d98(0x429)+encodeURIComponent(_0x557545),_0x3f595e=await(await fetch(_0x1fdaa5,{'method':'POST','body':_0x34c4cf}))[_0x3c1d98(0x21f)]();if(typeof _0x3f595e[_0x3c1d98(0x25b)]!='string')return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0['ERROR_IMAGE']));_0x2c71a1=_0x3f595e[_0x3c1d98(0x25b)];}catch{return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_IMAGE']));}return new Promise((_0x328fb9,_0x1b3fd5)=>{const _0x318fdb=_0x3c1d98,_0x3f8e06=new FileReader();_0x3f8e06['readAsDataURL'](_0x33eb3c),_0x3f8e06[_0x318fdb(0x3c3)]=_0x2c00be=>{const _0x5a7bd3=_0x318fdb;var _0x1034f8;const _0x18ab8e=(_0x1034f8=_0x2c00be[_0x5a7bd3(0x37c)])==null?void 0x0:_0x1034f8['result'];if(_0x18ab8e==null){this[_0x5a7bd3(0x2b0)](),_0x1b3fd5(new Error(_0x46d7f0['ERROR_IMAGE']));return;}const _0x28cd2a=_0x1540f0['generateRandomId'](0x6);_0x328fb9({'imageId':_0x28cd2a,'imageSourceType':_0x434ac3[_0x5a7bd3(0x4d4)],'source':_0x2c71a1,'base64Cache':_0x18ab8e,'status':_0x46d7f0[_0x5a7bd3(0x41f)]}),this[_0x5a7bd3(0x2b0)]();};});}[_0x87081d(0x4a4)](){const _0x1cf62f=_0x87081d;var _0x708501;return(_0x708501=this[_0x1cf62f(0x252)][_0x1cf62f(0x38a)](No))!=null?_0x708501:Mo;}[_0x87081d(0x297)](){const _0x18654e=_0x87081d;var _0x23c875;return(_0x23c875=this[_0x18654e(0x252)][_0x18654e(0x38a)](Ao))!=null?_0x23c875:Uo;}[_0x87081d(0x37e)](_0xb4669,_0x477ffa){const _0x1c8489=_0x87081d;return _0xb4669[_0x1c8489(0x371)](_0x1c8489(0x4c1),_0x477ffa);}[_0x87081d(0x2b0)](){const _0x50c2fd=_0x87081d;this['_waitCount']-=0x1,this[_0x50c2fd(0x27b)][_0x50c2fd(0x4fe)](this['_waitCount']);}};wt=Do([mt(0x0,_0x1b956a(_0x3db34c)),mt(0x1,_0x5d255f),mt(0x2,_0x1b956a(_0x1d5396))],wt);var yo=Object[_0x87081d(0x318)],Lo=Object[_0x87081d(0x314)],$o=(_0x564292,_0x26d482,_0x2fdc20,_0x1dd823)=>{const _0x2b3611=_0x87081d;for(var _0x230f4a=_0x1dd823>0x1?void 0x0:_0x1dd823?Lo(_0x26d482,_0x2fdc20):_0x26d482,_0x17ad80=_0x564292[_0x2b3611(0x46a)]-0x1,_0x510f32;_0x17ad80>=0x0;_0x17ad80--)(_0x510f32=_0x564292[_0x17ad80])&&(_0x230f4a=(_0x1dd823?_0x510f32(_0x26d482,_0x2fdc20,_0x230f4a):_0x510f32(_0x230f4a))||_0x230f4a);return _0x1dd823&&_0x230f4a&&yo(_0x26d482,_0x2fdc20,_0x230f4a),_0x230f4a;},Ne=(_0x5803b9,_0x220ad8)=>(_0x429b22,_0x266aea)=>_0x220ad8(_0x429b22,_0x266aea,_0x5803b9);let We=class extends _0x53ce5a{constructor(_0x2b98ce,_0x5c261f,_0x4b2cb6,_0x55b62f,_0x79732b){const _0x3842f7=_0x87081d;super(),this[_0x3842f7(0x440)]=_0x2b98ce,this[_0x3842f7(0x2bb)]=_0x5c261f,this[_0x3842f7(0x1d4)]=_0x4b2cb6,this[_0x3842f7(0x4f7)]=_0x55b62f,this['_localeService']=_0x79732b,this[_0x3842f7(0x250)](),this['_initCloseConn']();}[_0x87081d(0x1c9)](){const _0x5e9216=_0x87081d,_0x3fc293=async _0x46a842=>{const _0x5605ed=_0x1fa5;(await this[_0x5605ed(0x4f7)][_0x5605ed(0x316)](_0x46a842))['event$']['pipe'](_0x381935(_0x3c84eb=>_0x3c84eb['eventID']===_0xd3c20c[_0x5605ed(0x3c5)]),_0x3e87c2(this[_0x5605ed(0x20e)]))[_0x5605ed(0x347)](_0x288ce9=>{const _0x416078=_0x5605ed,_0x259444=_0x288ce9,{reason:_0x39fca6}=_0x259444[_0x416078(0x31c)];this[_0x416078(0x440)][_0x416078(0x1e9)](_0x14fd53)[_0x416078(0x410)]({'type':_0x4dda16['Error'],'content':this[_0x416078(0x45a)]['t'](_0x416078(0x28b))+'('+_0x39fca6+')'}),this[_0x416078(0x1d4)][_0x416078(0x1dd)](new _0x372984(_0x46a842)['id'],!0x1),this['_collaborationSessionService'][_0x416078(0x4b2)](_0x46a842);});};_0x1d3042(this[_0x5e9216(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d[_0x5e9216(0x471)]),this[_0x5e9216(0x2bb)][_0x5e9216(0x2c7)](_0x5a714d[_0x5e9216(0x1c1)]))[_0x5e9216(0x3b6)](_0x414fcf(_0x239ce0=>_0x239ce0[_0x5e9216(0x1b5)]()),_0x381935(_0x5903ba=>!_0x387ac1(_0x5903ba)),_0x3e87c2(this[_0x5e9216(0x20e)]))[_0x5e9216(0x347)](_0x5345c8=>{_0x3fc293(_0x5345c8);});}['_initUnitPermissionChange'](){const _0x343d70=_0x87081d,_0x287aaa=async _0x2dad01=>{const _0x5821c9=_0x1fa5;(await this[_0x5821c9(0x4f7)]['requireSession'](_0x2dad01))['event$'][_0x5821c9(0x3b6)](_0x381935(_0xd45fe8=>_0xd45fe8['eventID']===_0xd3c20c[_0x5821c9(0x20c)]),_0x3e87c2(this[_0x5821c9(0x20e)]))['subscribe'](_0x30cb7d=>{const _0x725013=_0x5821c9,_0x85e936=_0x30cb7d,{objectId:_0x44b15a}=_0x85e936['data'],_0x25282c=this[_0x725013(0x440)][_0x725013(0x1e9)](_0x45b80e);_0x44b15a===_0x2dad01?_0x25282c[_0x725013(0x1b2)](_0x2dad01):_0x25282c['refreshPermission'](_0x2dad01,_0x44b15a);});};_0x1d3042(this['_univerInstanceService'][_0x343d70(0x2c7)](_0x5a714d['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x343d70(0x1c1)]))['pipe'](_0x414fcf(_0x953b9e=>_0x953b9e[_0x343d70(0x1b5)]()),_0x381935(_0x2dceb9=>!_0x387ac1(_0x2dceb9)),_0x3e87c2(this[_0x343d70(0x20e)]))[_0x343d70(0x347)](_0x3874d2=>{_0x287aaa(_0x3874d2);});}};We=$o([_0x76d0ae(_0x28e3b0['Starting'],We),Ne(0x0,_0x1b956a(_0x4bf6fc)),Ne(0x1,_0x1d5396),Ne(0x2,_0x5543f8),Ne(0x3,_0x1b956a(pe)),Ne(0x4,_0x1b956a(_0x2db4b8))],We);var ks=Object[_0x87081d(0x318)],jo=Object[_0x87081d(0x314)],xo=(_0x368578,_0x5e9b81,_0x540645)=>_0x5e9b81 in _0x368578?ks(_0x368578,_0x5e9b81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x540645}):_0x368578[_0x5e9b81]=_0x540645,Ho=(_0x4e2ff2,_0x40b139,_0x3dd5a0,_0x55c2aa)=>{const _0x2cedbe=_0x87081d;for(var _0x446841=_0x55c2aa>0x1?void 0x0:_0x55c2aa?jo(_0x40b139,_0x3dd5a0):_0x40b139,_0x2afa4b=_0x4e2ff2[_0x2cedbe(0x46a)]-0x1,_0x5a1246;_0x2afa4b>=0x0;_0x2afa4b--)(_0x5a1246=_0x4e2ff2[_0x2afa4b])&&(_0x446841=(_0x55c2aa?_0x5a1246(_0x40b139,_0x3dd5a0,_0x446841):_0x5a1246(_0x446841))||_0x446841);return _0x55c2aa&&_0x446841&&ks(_0x40b139,_0x3dd5a0,_0x446841),_0x446841;},ft=(_0x119928,_0x31a181)=>(_0x287a21,_0x2ed36d)=>_0x31a181(_0x287a21,_0x2ed36d,_0x119928),ko=(_0x568a90,_0x3137b0,_0x432ecf)=>xo(_0x568a90,_0x3137b0+'',_0x432ecf);const Vo=_0x87081d(0x3d3);let Nt=class extends _0x153d86{constructor(_0xcd3b6e,_0x963caf,_0xf51c69,_0x2b04cc){const _0x122921=_0x87081d;super(),this[_0x122921(0x2c8)]=_0xcd3b6e,this[_0x122921(0x3e7)]=_0x963caf,this[_0x122921(0x43f)]=_0xf51c69,this[_0x122921(0x440)]=_0x2b04cc;}[_0x87081d(0x3d7)](){const _0x1ac874=_0x87081d;this[_0x1ac874(0x4a1)]();}[_0x87081d(0x415)](){const _0x35feba=_0x87081d;this[_0x35feba(0x4a6)]();}[_0x87081d(0x4a1)](){const _0x45075f=_0x87081d;var _0x15baad,_0xdb4f44,_0x4afa59,_0x55827a;this[_0x45075f(0x440)][_0x45075f(0x382)](_0x22132f)&&this[_0x45075f(0x3e7)][_0x45075f(0x289)](_0x45075f(0x4c3),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x260f2e=[[_0x22132f,{'useClass':Dt}],[pe],[Ht],[_0x3db34c],[Hs,{'useClass':ao}],[ne],[D],[_0x11ce39],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0xdb4f44=(_0x15baad=this['_config'])==null?void 0x0:_0x15baad[_0x45075f(0x41b)])!=null?_0xdb4f44:vt}],[_0x3c9cbd,{'useClass':_0x39d04d}],[_0x367e30,{'useClass':Ot}],[_0x2d6512,{'useClass':Pt}],[_0x13659e,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x4afa59=this[_0x45075f(0x2c8)])!=null&&_0x4afa59['enableSingleActiveInstanceLock']&&_0x260f2e[_0x45075f(0x1ab)]([tt,{'useClass':Vn}]),_0x260f2e=_0x5a0091(_0x260f2e,(_0x55827a=this[_0x45075f(0x2c8)])==null?void 0x0:_0x55827a['override']),_0x260f2e[_0x45075f(0x1c8)](_0x3181db=>this[_0x45075f(0x440)][_0x45075f(0x2ac)](_0x3181db)),this[_0x45075f(0x2a4)]();}[_0x87081d(0x4a6)](){const _0x5e69ff=_0x87081d;this[_0x5e69ff(0x343)](this['_renderManagerService'][_0x5e69ff(0x3a0)](_0x5a714d[_0x5e69ff(0x1c1)],[Fe])),this[_0x5e69ff(0x343)](this[_0x5e69ff(0x43f)][_0x5e69ff(0x3a0)](_0x5a714d['UNIVER_SHEET'],[Tt]));}['_initModules'](){const _0x1e601f=_0x87081d;var _0x447abf,_0x31b01e;this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](_0x3db34c)[_0x1e601f(0x395)]({'priority':0x14,'interceptor':_0x3ef1b2({'maxParallel':0x6})}),(_0x447abf=this[_0x1e601f(0x2c8)])!=null&&_0x447abf[_0x1e601f(0x32d)]||this[_0x1e601f(0x440)]['get'](D)[_0x1e601f(0x313)](),(_0x31b01e=this[_0x1e601f(0x2c8)])!=null&&_0x31b01e[_0x1e601f(0x42a)]&&this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](Qe);}};ko(Nt,_0x87081d(0x338),Vo),Nt=Ho([_0x425aa7(_0x361f11),ft(0x1,_0x82a609),ft(0x2,_0x23fc25),ft(0x3,_0x1b956a(_0x4bf6fc))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
1
+ const _0x354c45=_0x5b0c;(function(_0x5cf50f,_0xaf8a91){const _0x3cfdde=_0x5b0c,_0x533868=_0x5cf50f();while(!![]){try{const _0xbfc981=parseInt(_0x3cfdde(0x290))/0x1*(parseInt(_0x3cfdde(0x18c))/0x2)+-parseInt(_0x3cfdde(0x2a1))/0x3*(parseInt(_0x3cfdde(0xae))/0x4)+parseInt(_0x3cfdde(0x1dc))/0x5+parseInt(_0x3cfdde(0x23f))/0x6*(parseInt(_0x3cfdde(0x294))/0x7)+parseInt(_0x3cfdde(0x100))/0x8+parseInt(_0x3cfdde(0xbd))/0x9+-parseInt(_0x3cfdde(0x2b4))/0xa*(parseInt(_0x3cfdde(0x3bb))/0xb);if(_0xbfc981===_0xaf8a91)break;else _0x533868['push'](_0x533868['shift']());}catch(_0x432138){_0x533868['push'](_0x533868['shift']());}}}(_0x3791,0xc9552));var Ys=Object['defineProperty'],Ks=(_0x34e1bd,_0x50b179,_0x1fa5d8)=>_0x50b179 in _0x34e1bd?Ys(_0x34e1bd,_0x50b179,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fa5d8}):_0x34e1bd[_0x50b179]=_0x1fa5d8,_=(_0x1f6eea,_0xaab85c,_0x434158)=>Ks(_0x1f6eea,typeof _0xaab85c!=_0x354c45(0x154)?_0xaab85c+'':_0xaab85c,_0x434158);import{Disposable as _0x48941f,toDisposable as _0x681995,UniverInstanceType as _0x380445,Inject as _0x229f6b,UserManagerService as _0x525abf,IUniverInstanceService as _0x14d401,createIdentifier as _0x120263,DisposableCollection as _0x57a20f,IConfigService as _0x476b70,ILogService as _0x4491a7,RxDisposable as _0x5aeadb,LocaleService as _0x5e486d,Injector as _0x3b06f9,ILocalStorageService as _0x399138,Tools as _0x40bd5b,ICommandService as _0x151749,JSONX as _0x2f52af,CommandType as _0x3b75d4,IPermissionService as _0x4c56be,IUndoRedoService as _0x13005c,sequenceExecute as _0x6b06f4,OnLifecycle as _0x5c1b58,LifecycleStages as _0x21b2c3,Optional as _0x1ed7ac,Rectangle as _0x414956,ThemeService as _0x276c29,useDependency as _0x4b5e73,connectInjector as _0x3d07cd,Workbook as _0x3ad7b2,LocalUndoRedoService as _0x3df25f,IContextService as _0x56cb45,COLORS as _0xc3f366,ColorKit as _0x3b0d65,fromEventSubject as _0x287600,isInternalEditorID as _0x2299ce,Plugin as _0x570c3f,IAuthzIoService as _0x1fc328,mergeOverrideWithDependencies as _0x321f28,DependentOn as _0x1f3081}from'@univerjs/core';import{SheetsSelectionsService as _0x22886c,SetSelectionsOperation as _0x1271d4,InsertSheetMutation as _0x11e296,EmptyMutation as _0x53c0be,WorkbookEditablePermission as _0x47313f,RefRangeService as _0x442fae,EffectRefRangId as _0x38a0e8,handleIRemoveRow as _0x4e8b58,handleIRemoveCol as _0x59c9a2,handleMoveRange as _0x75b893,handleInsertRow as _0x173a21,handleInsertRangeMoveRight as _0x16d4b2,handleInsertRangeMoveDown as _0x39bf3d,handleInsertCol as _0x195831,handleDeleteRangeMoveUp as _0x15c769,handleDeleteRangeMoveLeft as _0x1d6f0f,runRefRangeMutations as _0x2651bd,SetWorksheetActivateCommand as _0x157375}from'@univerjs/sheets';import{MessageType as _0x1679e9}from'@univerjs/design';import{IBeforeCloseService as _0x24d7c6,IMessageService as _0x5963f9,INotificationService as _0x220977,useObservable as _0x441fd1,BuiltInUIPart as _0x1642a6,IUIPartsService as _0x5a1da3}from'@univerjs/ui';import{CollaborationEvent as _0x363b50,parseChangesetToProtocol as _0x2329ca,ISnapshotServerService as _0x34895f,RevisionService as _0x2d6ffb,isTransformMutationFailure as _0x5e29e1,isTransformMutationsWithChangesetSuccess as _0x14b4f5,ITransformService as _0x5c9e6a,mapDocumentTypeToUniverType as _0x1e11c0,isTransformChangesetsSuccess as _0x5cce80,CompressMutationService as _0x182351,parseProtocolChangeset as _0x1517b2,SnapshotService as _0x1f8d1f,textEncoder as _0x42040e,b64DecodeUnicode as _0x3cfeb4,isTransformMutationsWithChangesetFailure as _0x2beedb,UniverCollaborationPlugin as _0x45452d}from'@univerjs-pro/collaboration';import{merge as _0x5b30b2,Subject as _0x2b4845,BehaviorSubject as _0x421821,distinctUntilChanged as _0x2f805d,fromEvent as _0x1f17b0,of as _0x186ef7,takeUntil as _0x60ccde,debounceTime as _0x68cfe8,filter as _0x1317c0,switchMap as _0x3f577e,combineLatest as _0x4aa21b,shareReplay as _0x38f1e1,mapTo as _0x378129,concatMap as _0x54be95}from'rxjs';import{map as _0x1b7b12,takeUntil as _0xc21920,take as _0x518ec2,filter as _0x2a5de4,delay as _0x304b5e,shareReplay as _0x49a543,switchMap as _0x3f4a38,throttleTime as _0x78d7ad}from'rxjs/operators';import{IMEInputManagerService as _0x39911f,TextSelectionManagerService as _0x559154,serializeDocRange as _0x1b1aa9,RichTextEditingMutation as _0xc37a7a,DocStateChangeManagerService as _0x552f88,SetTextSelectionsOperation as _0x2c4dfe,SetDocZoomRatioOperation as _0x19eff9,DocSkeletonManagerService as _0x3a7927}from'@univerjs/docs';import{HTTPService as _0x131927,WebSocketService as _0x1a53de,MergeInterceptorFactory as _0x9560,HTTPRequest as _0x4908e9,IHTTPImplementation as _0x162271,XHRHTTPImplementation as _0x967f9,ThresholdInterceptorFactory as _0x5a108e}from'@univerjs/network';import{ImageSourceType as _0x2c20b7,ImageUploadStatusType as _0x34bcaa,IImageIoService as _0x1e214e}from'@univerjs/drawing';import{Shape as _0x2ccc4b,Rect as _0x222909,Vector2 as _0x569e56,NodePositionConvertToCursor as _0x38a9be,isValidRectRange as _0x197747,NodePositionConvertToRectRange as _0x5e6d76,getColor as _0x3202eb,TEXT_RANGE_LAYER_INDEX as _0x5864fb,RegularPolygon as _0x12e0ff,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4d9e9f,IRenderManagerService as _0x727bee}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x36a58a,serializeRangeWithSheet as _0x45f111}from'@univerjs/engine-formula';import _0x2a035c from'lodash/debounce';import{VIEWPORT_KEY as _0x2ca4f8,getCoordByCell as _0x13de13,getSheetObject as _0x45a59d,SheetSkeletonManagerService as _0x5f02cf,SheetPermissionInitController as _0x36a220}from'@univerjs/sheets-ui';import _0xf888d3,{forwardRef as _0x3e44fc,useRef as _0x423195,createElement as _0x787c2d}from'react';import _0x59ade5 from'clsx';import{IRemoteInstanceService as _0x190e16}from'@univerjs/rpc';const an=_0x354c45(0x116),cn=_0x354c45(0x14c),hn=_0x354c45(0x36b),_n=_0x354c45(0x1ac),ln=0x7d0,un=_0x354c45(0x208),dn=_0x354c45(0x2d1),mn=_0x354c45(0x254),fn=0x7530,Os=_0x354c45(0x398),Ds=0x2710,gn=_0x354c45(0x1d3),Sn=0x4e20,pn=_0x354c45(0x2c6),vn=0x3,In=_0x354c45(0x28e),En=0x3e8,Cn='COLLAB_SUBMIT_CHANGESET_URL',bn='/universer-api/comb',Rn=_0x354c45(0x38e),Tn=_0x354c45(0x322);var Ps=(_0x5a8e32=>(_0x5a8e32[_0x5a8e32[_0x354c45(0x1a9)]=0x0]=_0x354c45(0x1a9),_0x5a8e32[_0x5a8e32['OK']=0x1]='OK',_0x5a8e32[_0x5a8e32[_0x354c45(0x104)]=0x2]=_0x354c45(0x104),_0x5a8e32[_0x5a8e32['PERMISSION_DENIED']=0x3]=_0x354c45(0x130),_0x5a8e32[_0x5a8e32[_0x354c45(0x98)]=0x4]=_0x354c45(0x98),_0x5a8e32[_0x5a8e32['UNAUTHENTICATED']=0x5]=_0x354c45(0x1c9),_0x5a8e32[_0x5a8e32[_0x354c45(0x3b8)]=0x6]=_0x354c45(0x3b8),_0x5a8e32[_0x5a8e32[_0x354c45(0x2a5)]=0x7]=_0x354c45(0x2a5),_0x5a8e32[_0x5a8e32[_0x354c45(0x27d)]=0x8]=_0x354c45(0x27d),_0x5a8e32[_0x5a8e32[_0x354c45(0x141)]=0x9]=_0x354c45(0x141),_0x5a8e32[_0x5a8e32[_0x354c45(0x28a)]=0x1389]=_0x354c45(0x28a),_0x5a8e32[_0x5a8e32['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x354c45(0x218),_0x5a8e32[_0x5a8e32['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x354c45(0x1da),_0x5a8e32[_0x5a8e32[_0x354c45(0x86)]=0x1b59]=_0x354c45(0x86),_0x5a8e32[_0x5a8e32[_0x354c45(0x29c)]=0x1b5a]=_0x354c45(0x29c),_0x5a8e32[_0x5a8e32['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x354c45(0x32d),_0x5a8e32[_0x5a8e32[_0x354c45(0x29f)]=0x1b5c]=_0x354c45(0x29f),_0x5a8e32[_0x5a8e32['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x354c45(0x186),_0x5a8e32[_0x5a8e32['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5a8e32[_0x5a8e32[_0x354c45(0x2ce)]=0x232a]=_0x354c45(0x2ce),_0x5a8e32[_0x5a8e32[_0x354c45(0x24f)]=0x232b]=_0x354c45(0x24f),_0x5a8e32[_0x5a8e32[_0x354c45(0x36e)]=0x232c]=_0x354c45(0x36e),_0x5a8e32[_0x5a8e32[_0x354c45(0x136)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5a8e32[_0x5a8e32['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5a8e32[_0x5a8e32['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x354c45(0x33e),_0x5a8e32[_0x5a8e32[_0x354c45(0x2a8)]=0x2713]=_0x354c45(0x2a8),_0x5a8e32[_0x5a8e32[_0x354c45(0xd8)]=0x2714]=_0x354c45(0xd8),_0x5a8e32[_0x5a8e32['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x5a8e32))(Ps||{}),H=(_0xb312c8=>(_0xb312c8[_0xb312c8[_0x354c45(0x9b)]=0x0]=_0x354c45(0x9b),_0xb312c8[_0xb312c8[_0x354c45(0x30e)]=0x1]=_0x354c45(0x30e),_0xb312c8[_0xb312c8[_0x354c45(0x31c)]=0x2]=_0x354c45(0x31c),_0xb312c8[_0xb312c8[_0x354c45(0x3bf)]=0x3]=_0x354c45(0x3bf),_0xb312c8[_0xb312c8['UNIVER_PROJECT']=0x4]=_0x354c45(0x15b),_0xb312c8[_0xb312c8[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0xb312c8))(H||{}),I=(_0x3950ad=>(_0x3950ad[_0x3950ad[_0x354c45(0x85)]=0x0]=_0x354c45(0x85),_0x3950ad[_0x3950ad[_0x354c45(0x1ad)]=0x1]=_0x354c45(0x1ad),_0x3950ad[_0x3950ad['JOIN']=0x2]=_0x354c45(0x211),_0x3950ad[_0x3950ad[_0x354c45(0x352)]=0x3]=_0x354c45(0x352),_0x3950ad[_0x3950ad['INGEST']=0x4]=_0x354c45(0x360),_0x3950ad[_0x3950ad[_0x354c45(0x1aa)]=0x5]=_0x354c45(0x1aa),_0x3950ad[_0x3950ad[_0x354c45(0xef)]=0x6]=_0x354c45(0xef),_0x3950ad[_0x3950ad[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0x3950ad))(I||{}),jt=(_0x53e474=>(_0x53e474[_0x53e474[_0x354c45(0x167)]=0x0]=_0x354c45(0x167),_0x53e474[_0x53e474['OK']=0x1]='OK',_0x53e474[_0x53e474[_0x354c45(0xb1)]=0x2]='FAIL',_0x53e474[_0x53e474[_0x354c45(0x35a)]=-0x1]=_0x354c45(0x35a),_0x53e474))(jt||{}),ws=(_0x16bccc=>(_0x16bccc[_0x16bccc[_0x354c45(0x1c0)]=0x0]=_0x354c45(0x1c0),_0x16bccc[_0x16bccc['HttpImport']=0x1]='HttpImport',_0x16bccc[_0x16bccc[_0x354c45(0x359)]=0x2]=_0x354c45(0x359),_0x16bccc[_0x16bccc[_0x354c45(0x28c)]=0x3]=_0x354c45(0x28c),_0x16bccc[_0x16bccc[_0x354c45(0x3a1)]=0x4]='UnitSnapshot',_0x16bccc[_0x16bccc['UNRECOGNIZED']=-0x1]=_0x354c45(0x35a),_0x16bccc))(ws||{}),On=Object[_0x354c45(0xa3)],Dn=Object[_0x354c45(0x3cf)],Pn=(_0x273410,_0x4e4ac3,_0x56143e,_0x4298a1)=>{const _0x2d182f=_0x354c45;for(var _0x55504a=_0x4298a1>0x1?void 0x0:_0x4298a1?Dn(_0x4e4ac3,_0x56143e):_0x4e4ac3,_0x9696ed=_0x273410[_0x2d182f(0x16f)]-0x1,_0x5579b3;_0x9696ed>=0x0;_0x9696ed--)(_0x5579b3=_0x273410[_0x9696ed])&&(_0x55504a=(_0x4298a1?_0x5579b3(_0x4e4ac3,_0x56143e,_0x55504a):_0x5579b3(_0x55504a))||_0x55504a);return _0x4298a1&&_0x55504a&&On(_0x4e4ac3,_0x56143e,_0x55504a),_0x55504a;},Qt=(_0x20eab2,_0x213aff)=>(_0x4168cb,_0x50b6c3)=>_0x213aff(_0x4168cb,_0x50b6c3,_0x20eab2);let ne=class extends _0x48941f{constructor(_0x718da9,_0x2a7440){const _0x4a4514=_0x354c45;super(),_(this,'_roomMembers',new Map()),(this[_0x4a4514(0x134)]=_0x718da9,this[_0x4a4514(0x9c)]=_0x2a7440,this[_0x4a4514(0x1a0)](_0x681995(_0x5b30b2(this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x31c)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x2177ab=>_0x2177ab[_0x4a4514(0x3a7)]())),this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x30e)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x3e15a9=>_0x3e15a9[_0x4a4514(0x3a7)]())),this[_0x4a4514(0x134)][_0x4a4514(0x38d)](_0x380445[_0x4a4514(0x3bf)])[_0x4a4514(0x1e1)](_0x1b7b12(_0x234a07=>_0x234a07[_0x4a4514(0x3a7)]())))[_0x4a4514(0x37e)](_0x266762=>this[_0x4a4514(0x11d)](_0x266762)))));}[_0x354c45(0x81)](_0x4693e2){const _0xb26b04=_0x354c45;this[_0xb26b04(0x9c)][_0xb26b04(0x81)](_0x4693e2);}[_0x354c45(0x2af)](){const _0x4f51f1=_0x354c45;return this['_userManagerService'][_0x4f51f1(0x2af)]();}['updateMember'](_0x26cb27,_0x27f591){const _0x32da57=_0x354c45;let _0x461e69=this[_0x32da57(0x388)][_0x32da57(0x309)](_0x26cb27);_0x461e69||(_0x461e69=new wn(),this['_roomMembers'][_0x32da57(0xdd)](_0x26cb27,_0x461e69)),_0x461e69['updateMember'](_0x27f591);}[_0x354c45(0x188)](_0xa5ac66,_0xc804d1){const _0x823669=_0x354c45,_0x3fc693=this[_0x823669(0x388)][_0x823669(0x309)](_0xa5ac66);_0x3fc693&&_0x3fc693[_0x823669(0x188)](_0xc804d1);}['getRoom'](_0x215461){const _0x5d8df0=_0x354c45;return this[_0x5d8df0(0x388)]['get'](_0x215461);}[_0x354c45(0x39a)](_0x2012e3,_0x119465){const _0x475fa9=_0x354c45,_0x4c04f4=this[_0x475fa9(0x388)][_0x475fa9(0x309)](_0x2012e3);if(_0x4c04f4)return _0x4c04f4[_0x475fa9(0x39a)](_0x119465);}[_0x354c45(0x11d)](_0x88a4f6){const _0x471329=_0x354c45,_0x384334=this[_0x471329(0x388)][_0x471329(0x309)](_0x88a4f6);_0x384334&&(_0x384334[_0x471329(0x220)](),this[_0x471329(0x388)]['delete'](_0x88a4f6));}[_0x354c45(0x220)](){const _0x5274ee=_0x354c45;this[_0x5274ee(0x388)][_0x5274ee(0x18d)](_0x3f5b83=>_0x3f5b83[_0x5274ee(0x220)]()),this[_0x5274ee(0x388)]['clear']();}};ne=Pn([Qt(0x0,_0x14d401),Qt(0x1,_0x229f6b(_0x525abf))],ne);class wn extends _0x48941f{constructor(){const _0x19567a=_0x354c45;super(...arguments),_(this,_0x19567a(0x12a),new Map());}[_0x354c45(0x220)](){const _0x2cfb44=_0x354c45;this[_0x2cfb44(0x12a)][_0x2cfb44(0x3a6)]();}[_0x354c45(0x2d0)](_0x59ce78){const _0x53f92c=_0x354c45;this[_0x53f92c(0x12a)][_0x53f92c(0xdd)](_0x59ce78['memberID'],_0x59ce78);}[_0x354c45(0x188)](_0x199aa8){const _0x652803=_0x354c45;this[_0x652803(0x12a)][_0x652803(0x33a)](_0x199aa8);}[_0x354c45(0x39a)](_0x45c5b0){const _0x366ebf=_0x354c45;return this[_0x366ebf(0x12a)][_0x366ebf(0x309)](_0x45c5b0);}}function Nn(_0x35254b){const _0x3184a0=_0x354c45;var _0x7c1cde,_0x3c666c,_0x142027,_0xc5eb9c;const _0x371f0e=_0x35254b[_0x3184a0(0x385)],_0x12971e=JSON[_0x3184a0(0x156)](_0x371f0e);switch(_0x12971e[_0x3184a0(0x2aa)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x1ef374=_0x12971e[_0x3184a0(0x249)];return{..._0x12971e,'data':_0x1ef374,'cmd':_0x12971e[_0x3184a0(0x2aa)]};}case I[_0x3184a0(0x211)]:{const _0x5298e6=_0x12971e['joinRsp'];return{..._0x12971e,'data':_0x5298e6,'cmd':_0x12971e[_0x3184a0(0x2aa)]};}case I[_0x3184a0(0xef)]:{const _0x129944=_0x12971e['collaMsg'];switch(_0x129944[_0x3184a0(0x2d3)]){case _0x363b50[_0x3184a0(0x14f)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x7c1cde=_0x129944['permissionRejEvent'])==null?void 0x0:_0x7c1cde['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x363)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x3c666c=_0x129944['csAckEvent'])==null?void 0x0:_0x3c666c['cs']},'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x19b)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0x142027=_0x129944[_0x3184a0(0xd5)])==null?void 0x0:_0x142027['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x38b)]:return{..._0x12971e,'data':{..._0x129944,'data':(_0xc5eb9c=_0x129944[_0x3184a0(0xd2)])==null?void 0x0:_0xc5eb9c['cs']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x251)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x2e2)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50['USERS_ENTER']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x273)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x180)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x2bd)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50['LIVESHARE_NEW_HOST']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0xa0)]},'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x13d)]:case _0x363b50['LIVESHARE_OPERATION']:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x192)]},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x1a4)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['liveShareNewHost']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x1f3)]:return{..._0x12971e,'data':_0x129944,'cmd':_0x12971e['cmd']};case _0x363b50[_0x3184a0(0x280)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['commentUpdateEvent']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x293)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944['updatePermissionObjEvent']},'cmd':_0x12971e[_0x3184a0(0x2aa)]};case _0x363b50[_0x3184a0(0x13f)]:return{..._0x12971e,'data':{..._0x129944,'data':_0x129944[_0x3184a0(0x1fd)]},'cmd':_0x12971e['cmd']};default:return _0x12971e;}}default:return _0x12971e;}}function Mn(_0x23a823){const _0x1a8078=_0x354c45;switch(_0x23a823[_0x1a8078(0x2aa)]){case I[_0x1a8078(0x1aa)]:case I[_0x1a8078(0x1ad)]:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)]});case I[_0x1a8078(0x360)]:{let _0x4056af;switch(_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x2d3)]){case _0x363b50[_0x1a8078(0x251)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x251)],'updateCursorEvent':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x180)]:{_0x4056af={'eventID':_0x363b50['USERS_LEAVE'],'leaveEvent':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0xf8)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0xf8)],'joinEvent':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x131)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x131)],'liveShareNewHost':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50['LIVESHARE_OPERATION']:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x108)],'liveShareOperation':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x1a4)]:{_0x4056af={'eventID':_0x363b50[_0x1a8078(0x1a4)],'liveShareTerminate':_0x23a823['data'][_0x1a8078(0x385)]};break;}case _0x363b50['LIVESHARE_REQUEST_HOST']:{_0x4056af={'eventID':_0x363b50['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x23a823[_0x1a8078(0x385)][_0x1a8078(0x385)]};break;}case _0x363b50[_0x1a8078(0x13d)]:{_0x4056af={'eventID':_0x363b50['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x4056af={'eventID':_0x23a823['data'][_0x1a8078(0x2d3)]};}return JSON['stringify']({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823['routeKey'],'collaMsg':_0x4056af});}case I['JOIN']:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)],'joinReq':_0x23a823[_0x1a8078(0x385)]});case I[_0x1a8078(0x352)]:return JSON[_0x1a8078(0x303)]({'cmd':_0x23a823[_0x1a8078(0x2aa)],'routeKey':_0x23a823[_0x1a8078(0x110)],'leaveReq':_0x23a823[_0x1a8078(0x385)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var An=Object[_0x354c45(0xa3)],Un=Object['getOwnPropertyDescriptor'],yn=(_0x65b9f3,_0x1bb515,_0x5b3f3d,_0x388efe)=>{const _0x63ecf8=_0x354c45;for(var _0x3df15c=_0x388efe>0x1?void 0x0:_0x388efe?Un(_0x1bb515,_0x5b3f3d):_0x1bb515,_0x2f597e=_0x65b9f3[_0x63ecf8(0x16f)]-0x1,_0x3bfbb3;_0x2f597e>=0x0;_0x2f597e--)(_0x3bfbb3=_0x65b9f3[_0x2f597e])&&(_0x3df15c=(_0x388efe?_0x3bfbb3(_0x1bb515,_0x5b3f3d,_0x3df15c):_0x3bfbb3(_0x3df15c))||_0x3df15c);return _0x388efe&&_0x3df15c&&An(_0x1bb515,_0x5b3f3d,_0x3df15c),_0x3df15c;},Te=(_0x230d0d,_0x3e86b3)=>(_0x318e2a,_0x5bd41c)=>_0x3e86b3(_0x318e2a,_0x5bd41c,_0x230d0d);const Ns=_0x120263('univer-pro.collaboration-client-socket-service');function Ln(_0x92f5ac,_0x4fc916,_0x105508){return _0x92f5ac+'/'+_0x4fc916+'/unit/'+_0x105508+'/new_changes';}let vt=class{constructor(_0x23ba89,_0x33b7c0,_0x201eb0,_0x143060,_0xc15e21){const _0x2f890e=_0x354c45;this['_http']=_0x23ba89,this[_0x2f890e(0x3cd)]=_0x33b7c0,this[_0x2f890e(0x102)]=_0x201eb0,this['_logService']=_0x143060,this['_snapshotServerService']=_0xc15e21;}[_0x354c45(0x1eb)](_0x4fc40f){const _0x5263ad=_0x354c45,_0x11fb7e=this[_0x5263ad(0x3cd)][_0x5263ad(0x1eb)](_0x4fc40f);if(!_0x11fb7e)throw new Error(_0x5263ad(0xd0));const _0x2432bc=new _0x57a20f(),_0x357e46=new _0x2b4845();_0x2432bc['add'](_0x681995(_0x11fb7e[_0x5263ad(0x33d)][_0x5263ad(0x37e)](_0x2e1b91=>_0x357e46[_0x5263ad(0x2fe)](_0x2e1b91)))),_0x2432bc[_0x5263ad(0x264)](_0x681995(()=>_0x357e46[_0x5263ad(0x1ec)]()));const _0x50365e=new _0x2b4845();_0x2432bc['add'](_0x681995(_0x11fb7e['error$'][_0x5263ad(0x37e)](_0xa76a5f=>_0x50365e['next'](_0xa76a5f)))),_0x2432bc['add'](_0x681995(()=>_0x50365e['complete']()));const _0xd77c2a=new _0x2b4845();_0x2432bc[_0x5263ad(0x264)](_0x681995(_0x11fb7e['message$'][_0x5263ad(0x37e)](_0x55aa78=>{const _0x59d411=_0x5263ad,_0x411df2=Nn(_0x55aa78);_0xd77c2a[_0x59d411(0x2fe)](_0x411df2);}))),_0x2432bc[_0x5263ad(0x264)](_0x681995(()=>_0xd77c2a[_0x5263ad(0x1ec)]()));const _0xd4ee8d=()=>{const _0x960a1f=_0x5263ad;_0x50365e[_0x960a1f(0x2fe)](new Event('connection\x20error')),_0x357e46[_0x960a1f(0x2fe)](new CloseEvent(_0x960a1f(0x21b))),_0xd5864[_0x960a1f(0x3d7)]();},_0xd5864={'memberID':'','close$':_0x357e46[_0x5263ad(0x209)](),'error$':_0x50365e['asObservable'](),'open$':_0x11fb7e[_0x5263ad(0x18e)],'message$':_0xd77c2a['asObservable'](),'send':_0x176a0c=>{const _0x11557d=_0x5263ad;if(_0x176a0c['cmd']===I[_0x11557d(0x360)]){if(_0x176a0c[_0x11557d(0x385)][_0x11557d(0x2d3)]===_0x363b50[_0x11557d(0x3d5)]){this['_submitChangeset'](_0xd5864,_0x176a0c['data'])[_0x11557d(0x32c)](_0x4bb837=>{const _0x507d66=_0x11557d;this[_0x507d66(0x10f)]['error'](_0x4bb837),_0xd4ee8d();});return;}if(_0x176a0c[_0x11557d(0x385)]['eventID']===_0x363b50['FETCH_MISSING']){const _0x15c980=_0x176a0c['data'];this[_0x11557d(0x31b)](_0x15c980)[_0x11557d(0xc4)](_0x44bc8d=>{const _0x55ed04=_0x11557d;_0xd77c2a['next']({'cmd':I[_0x55ed04(0xef)],'code':jt['OK'],'routeKey':_0x15c980[_0x55ed04(0x385)]['unitID'],'routeType':'','data':{'eventID':_0x363b50[_0x55ed04(0xa8)],'data':{'changesets':_0x44bc8d}}});})[_0x11557d(0x32c)](_0x2bb5a4=>{const _0x2294b9=_0x11557d;this['_logService'][_0x2294b9(0x35c)](_0x2bb5a4),_0xd4ee8d();});return;}}_0x11fb7e[_0x11557d(0x3b4)](Mn(_0x176a0c));},'close':()=>{const _0x46cc47=_0x5263ad;_0x11fb7e[_0x46cc47(0x3d7)](),_0x2432bc[_0x46cc47(0x220)]();}};return _0xd5864;}async['_submitChangeset'](_0x1cb6a9,_0x5e9ea9){const _0xc1565c=_0x354c45;var _0x509513;const {unitType:_0x19fb9c,unitID:_0x5169d2,changeset:_0x5f069d}=_0x5e9ea9['data'],_0x16df38={'unitID':_0x5169d2,'memberID':_0x1cb6a9['memberID'],'type':_0x19fb9c,'changeset':_0x2329ca(_0x5f069d)},_0x4cab30=Ln((_0x509513=this[_0xc1565c(0x102)][_0xc1565c(0x119)](Cn))!=null?_0x509513:bn,_0x19fb9c,_0x5169d2);try{await this[_0xc1565c(0x19c)][_0xc1565c(0x276)](_0x4cab30,{'body':_0x16df38});}catch(_0xb87612){throw this[_0xc1565c(0x10f)][_0xc1565c(0x35c)](_0xc1565c(0xc2),_0xc1565c(0xed)),_0xb87612;}}async[_0x354c45(0x31b)](_0x231b47){const _0x369859=_0x354c45,{unitID:_0x9dd328,from:_0x5bfafb,to:_0x4bcecf,unitType:_0x29d922}=_0x231b47[_0x369859(0x385)];return(await this['_snapshotServerService'][_0x369859(0x89)]({'metadata':void 0x0},{'unitID':_0x9dd328,'type':_0x29d922,'from':_0x5bfafb,'to':_0x4bcecf}))[_0x369859(0x362)];}};vt=yn([Te(0x0,_0x229f6b(_0x131927)),Te(0x1,_0x229f6b(_0x1a53de)),Te(0x2,_0x476b70),Te(0x3,_0x4491a7),Te(0x4,_0x34895f)],vt);class Ms{constructor(){const _0x299533=_0x354c45;_(this,_0x299533(0x80),new _0x2b4845()),_(this,'commentUpdate$',this['_commentUpdate$'][_0x299533(0x209)]());}[_0x354c45(0x244)](_0x5ba79f){const _0x4eca97=_0x354c45;this[_0x4eca97(0x80)][_0x4eca97(0x2fe)](_0x5ba79f);}}var $n=Object['defineProperty'],jn=Object[_0x354c45(0x3cf)],As=(_0x10b0ab,_0x1aca58,_0x4b12cf,_0x2da4dd)=>{const _0x50b503=_0x354c45;for(var _0x5c9b1e=_0x2da4dd>0x1?void 0x0:_0x2da4dd?jn(_0x1aca58,_0x4b12cf):_0x1aca58,_0x244ded=_0x10b0ab[_0x50b503(0x16f)]-0x1,_0x1e879f;_0x244ded>=0x0;_0x244ded--)(_0x1e879f=_0x10b0ab[_0x244ded])&&(_0x5c9b1e=(_0x2da4dd?_0x1e879f(_0x1aca58,_0x4b12cf,_0x5c9b1e):_0x1e879f(_0x5c9b1e))||_0x5c9b1e);return _0x2da4dd&&_0x5c9b1e&&$n(_0x1aca58,_0x4b12cf,_0x5c9b1e),_0x5c9b1e;},A=(_0x1fe469,_0x156549)=>(_0x1b9bb4,_0x2848d8)=>_0x156549(_0x1b9bb4,_0x2848d8,_0x1fe469),fe=(_0x29ebea=>(_0x29ebea[_0x29ebea[_0x354c45(0x37f)]=0x0]=_0x354c45(0x37f),_0x29ebea[_0x29ebea[_0x354c45(0x1b9)]=0x1]=_0x354c45(0x1b9),_0x29ebea[_0x29ebea[_0x354c45(0x3c0)]=0x2]=_0x354c45(0x3c0),_0x29ebea[_0x29ebea[_0x354c45(0x10e)]=0x3]=_0x354c45(0x10e),_0x29ebea))(fe||{});let It=class extends _0x5aeadb{constructor(_0x32eae5,_0x51bb0e,_0x4a5258,_0x3bfff2,_0x110928,_0x35a011,_0x4f5512,_0x2eb21f,_0x410c7e){const _0xa23cab=_0x354c45;super(),_(this,'_sessionStatus$',new _0x421821(0x0)),_(this,_0xa23cab(0x3d6),this['_sessionStatus$']['asObservable']()),_(this,_0xa23cab(0x1fc),new _0x2b4845()),_(this,_0xa23cab(0x2c5),this['_event$'][_0xa23cab(0x209)]()),_(this,_0xa23cab(0x106)),_(this,'_socketMessageSubscription'),_(this,_0xa23cab(0x285)),(this[_0xa23cab(0x1c4)]=_0x32eae5,this[_0xa23cab(0x10f)]=_0x4a5258,this[_0xa23cab(0x202)]=_0x3bfff2,this[_0xa23cab(0x1c1)]=_0x110928,this[_0xa23cab(0x102)]=_0x35a011,this['_localeService']=_0x4f5512,this[_0xa23cab(0x39b)]=_0x2eb21f,this['_commentService']=_0x410c7e,_0x51bb0e['pipe'](_0xc21920(this['dispose$']))[_0xa23cab(0x37e)](_0x5f38b4=>{const _0x594358=_0xa23cab;var _0x366852;typeof _0x5f38b4>'u'||(this[_0x594358(0x106)]=_0x5f38b4,_0x5f38b4?(this[_0x594358(0x7e)](_0x5f38b4),this[_0x594358(0x1c3)]=this['_socket']['message$'][_0x594358(0x37e)](_0x1f483d=>{const _0x3664b2=_0x594358;_0x1f483d[_0x3664b2(0x110)]===this[_0x3664b2(0x1c4)]&&this[_0x3664b2(0x12e)](_0x1f483d);})):(this[_0x594358(0x2ac)]['next'](0x2),(_0x366852=this[_0x594358(0x1c3)])==null||_0x366852[_0x594358(0x2ae)](),this[_0x594358(0x1c3)]=null));}),this[_0xa23cab(0x1a0)](this[_0xa23cab(0x202)][_0xa23cab(0x15a)](()=>{const _0x2e8ae8=_0xa23cab;var _0x3f494d;(_0x3f494d=this[_0x2e8ae8(0x106)])==null||_0x3f494d[_0x2e8ae8(0x3b4)]({'cmd':I[_0x2e8ae8(0x352)],'data':{'roomID':this[_0x2e8ae8(0x1c4)]}});})));}get[_0x354c45(0xa6)](){const _0x196e48=_0x354c45;return this[_0x196e48(0x2ac)][_0x196e48(0xe4)]();}[_0x354c45(0x2f6)](){const _0x21b1b5=_0x354c45;var _0x4bae35,_0x1584f5;return(_0x1584f5=(_0x4bae35=this[_0x21b1b5(0x106)])==null?void 0x0:_0x4bae35['memberID'])!=null?_0x1584f5:null;}[_0x354c45(0x220)](){const _0x3ec22b=_0x354c45;super['dispose'](),this[_0x3ec22b(0x1a1)]['next'](),this[_0x3ec22b(0x1a1)][_0x3ec22b(0x1ec)]();}['close'](){const _0x4c27df=_0x354c45;var _0x3d79b4,_0x11a032;(_0x3d79b4=this['_socket'])==null||_0x3d79b4[_0x4c27df(0x3b4)]({'cmd':I[_0x4c27df(0x352)],'data':{'roomID':this['_unitID']}}),this[_0x4c27df(0x1fc)][_0x4c27df(0x1ec)](),this['_sessionStatus$'][_0x4c27df(0x1ec)](),(_0x11a032=this[_0x4c27df(0x106)])==null||_0x11a032['close'](),this[_0x4c27df(0x220)]();}[_0x354c45(0x12e)](_0x34940c){const _0x1625a9=_0x354c45;_0x34940c[_0x1625a9(0x2aa)]===I[_0x1625a9(0x211)]?this['_onJoinRoomEvent'](_0x34940c):_0x34940c['cmd']===I[_0x1625a9(0xef)]&&this[_0x1625a9(0xf2)](_0x34940c);}['_joinRoom'](_0x2dbd0b){const _0x4d1807=_0x354c45;this[_0x4d1807(0x2ac)][_0x4d1807(0x2fe)](0x1),_0x2dbd0b[_0x4d1807(0x3b4)]({'cmd':I['JOIN'],'routeKey':this[_0x4d1807(0x1c4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4d1807(0x1c4)]}]}});}['_onJoinRoomEvent'](_0x57f79b){const _0x496a05=_0x354c45;var _0x17bec7;if(_0x57f79b[_0x496a05(0x7d)]===jt['FAIL']){this[_0x496a05(0x1c1)][_0x496a05(0x2e0)]({'type':_0x1679e9[_0x496a05(0x31a)],'content':this[_0x496a05(0xa4)]['t'](_0x496a05(0x1e4))}),this[_0x496a05(0x2ac)]['next'](0x2);return;}this[_0x496a05(0x2ac)]['next'](0x3);const _0x1474a0=(_0x17bec7=_0x57f79b['data'][_0x496a05(0x194)][this['_unitID']])==null?void 0x0:_0x17bec7[_0x496a05(0xaf)];_0x1474a0&&_0x1474a0[_0x496a05(0x18d)](_0x11c071=>this['_memberService'][_0x496a05(0x2d0)](this[_0x496a05(0x1c4)],_0x11c071));}[_0x354c45(0xf2)](_0x8cc03){const _0x36759e=_0x354c45;try{const _0x377f10=_0x8cc03[_0x36759e(0x385)];switch(_0x377f10['eventID']){case _0x363b50[_0x36759e(0xf8)]:this['_onUserJoin'](_0x377f10),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50[_0x36759e(0x180)]:this[_0x36759e(0xf1)](_0x377f10),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50['CHANGESET_ACK']:this[_0x36759e(0x356)](),this['_event$']['next'](_0x377f10);break;case _0x363b50[_0x36759e(0x1f3)]:this[_0x36759e(0x10f)][_0x36759e(0x35c)](_0x36759e(0xb0)+JSON[_0x36759e(0x303)](_0x377f10)),this[_0x36759e(0x1fc)][_0x36759e(0x2fe)](_0x377f10);break;case _0x363b50['COMMENT_UPDATE']:this[_0x36759e(0x22e)]['onCommentUpdate'](_0x377f10[_0x36759e(0x385)]),this[_0x36759e(0x1fc)]['next'](_0x377f10);break;default:this[_0x36759e(0x1fc)]['next'](_0x377f10);}}catch(_0x397404){this[_0x36759e(0x10f)]['error'](_0x397404,_0x8cc03);}}[_0x354c45(0x3b7)](_0x39569d){const _0x2bc69a=_0x354c45;this['_memberService'][_0x2bc69a(0x2d0)](this['_unitID'],_0x39569d[_0x2bc69a(0x385)]);}['_onUserLeave'](_0x35e8ff){const _0x4b3d0d=_0x354c45;this[_0x4b3d0d(0x39b)][_0x4b3d0d(0x188)](this[_0x4b3d0d(0x1c4)],_0x35e8ff['data'][_0x4b3d0d(0xd3)]);}async[_0x354c45(0x3b4)](_0xbfec50,_0x43f611){const _0x464814=_0x354c45;if(this[_0x464814(0xa6)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xbfec50['eventID']===_0x363b50[_0x464814(0x19b)]&&this[_0x464814(0x270)](),this[_0x464814(0x106)][_0x464814(0x3b4)]({'cmd':I[_0x464814(0x360)],'routeKey':_0x43f611,'routeType':'','data':_0xbfec50});}catch(_0x33e2c1){this[_0x464814(0x10f)][_0x464814(0x35c)](_0x33e2c1);}}[_0x354c45(0x270)](){const _0x594e1f=_0x354c45;var _0x4743f6;this[_0x594e1f(0x285)]=window['setTimeout'](()=>{const _0x5a2fbb=_0x594e1f;this[_0x5a2fbb(0x285)]=null,this[_0x5a2fbb(0x1c1)][_0x5a2fbb(0x2e0)]({'type':_0x1679e9[_0x5a2fbb(0xf0)],'content':this[_0x5a2fbb(0xa4)]['t'](_0x5a2fbb(0x1a3))});},(_0x4743f6=this[_0x594e1f(0x102)][_0x594e1f(0x119)](Os))!=null?_0x4743f6:Ds);}[_0x354c45(0x356)](){const _0x271931=_0x354c45;this[_0x271931(0x285)]&&(clearTimeout(this[_0x271931(0x285)]),this[_0x271931(0x285)]=null);}};It=As([A(0x2,_0x4491a7),A(0x3,_0x24d7c6),A(0x4,_0x5963f9),A(0x5,_0x476b70),A(0x6,_0x229f6b(_0x5e486d)),A(0x7,_0x229f6b(ne)),A(0x8,_0x229f6b(Ms))],It);let pe=class extends _0x48941f{constructor(_0x1d97c7,_0x5bb4f7,_0x4008d9,_0x31dde3,_0x4583bd,_0x5e9c3c){const _0x4b92ee=_0x354c45;super(),_(this,_0x4b92ee(0x232),new _0x421821(void 0x0)),_(this,_0x4b92ee(0x338),new Map()),_(this,_0x4b92ee(0x8b),new _0x421821(0x0)),_(this,_0x4b92ee(0x2e6),this[_0x4b92ee(0x8b)][_0x4b92ee(0x209)]()),_(this,'_socketReady',!0x1),_(this,_0x4b92ee(0x396)),_(this,_0x4b92ee(0xe0)),_(this,_0x4b92ee(0x390)),_(this,_0x4b92ee(0xd4),0x0),(this[_0x4b92ee(0x259)]=_0x1d97c7,this['_localeService']=_0x5bb4f7,this['_messageService']=_0x4008d9,this['_logService']=_0x31dde3,this[_0x4b92ee(0x102)]=_0x4583bd,this[_0x4b92ee(0x3b9)]=_0x5e9c3c);}get[_0x354c45(0x106)](){const _0x172b3f=_0x354c45;return this[_0x172b3f(0x232)][_0x172b3f(0xe4)]();}['dispose'](){const _0x544aee=_0x354c45;super[_0x544aee(0x220)](),this[_0x544aee(0x338)][_0x544aee(0x18d)](_0x526a31=>_0x526a31[_0x544aee(0x220)]()),this[_0x544aee(0x338)]['clear'](),this[_0x544aee(0x8b)]['complete']();}async['requireSession'](_0x2fa93e){const _0x43946b=_0x354c45;if(this[_0x43946b(0x338)][_0x43946b(0x340)](_0x2fa93e))return this[_0x43946b(0x338)][_0x43946b(0x309)](_0x2fa93e);this[_0x43946b(0x256)]();const _0x4a09e6=this[_0x43946b(0x259)][_0x43946b(0x31d)](It,_0x2fa93e,this['_socket$'][_0x43946b(0x209)]());return this[_0x43946b(0x338)][_0x43946b(0xdd)](_0x2fa93e,_0x4a09e6),_0x4a09e6;}['closeSession'](_0x468790){const _0x2da642=_0x354c45;var _0x4c026d;const _0x27ec9b=this[_0x2da642(0x338)][_0x2da642(0x309)](_0x468790);_0x27ec9b&&(this[_0x2da642(0x338)][_0x2da642(0x33a)](_0x468790),_0x27ec9b[_0x2da642(0x3d7)]()),this[_0x2da642(0x338)][_0x2da642(0x2f1)]||(_0x4c026d=this[_0x2da642(0x106)])==null||_0x4c026d[_0x2da642(0x3d7)]();}['_createSocket'](){const _0x23bc7b=_0x354c45;var _0x34f863;const _0x36c637=(_0x34f863=this[_0x23bc7b(0x102)]['getConfig'](un))!=null?_0x34f863:dn;return this['_socketService'][_0x23bc7b(0x1eb)](_0x36c637);}[_0x354c45(0x256)](){const _0x4a11a6=_0x354c45;try{const _0x2df9d8=this[_0x4a11a6(0x2e3)]();if(_0x2df9d8){const _0x4ca29b=_0x2df9d8['send'];_0x2df9d8[_0x4a11a6(0x3b4)]=_0x126bf5=>(this['_rescheduleHeartbeatEvent'](),_0x4ca29b[_0x4a11a6(0x1a8)](_0x2df9d8,[_0x126bf5])),_0x2df9d8[_0x4a11a6(0x219)][_0x4a11a6(0x37e)](_0xfc965f=>this[_0x4a11a6(0x37d)](_0x2df9d8,_0xfc965f)),_0x2df9d8['error$'][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](_0x528c73=>this[_0x4a11a6(0x10f)][_0x4a11a6(0x35c)](_0x4a11a6(0x1fe),_0x528c73)),_0x2df9d8[_0x4a11a6(0x18e)][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](()=>{this['_onConnectionOpen'](_0x2df9d8);}),_0x2df9d8[_0x4a11a6(0x33d)][_0x4a11a6(0x1e1)](_0x518ec2(0x1))[_0x4a11a6(0x37e)](_0x137fbe=>{const _0x478ec7=_0x4a11a6;this[_0x478ec7(0x10f)][_0x478ec7(0x1cd)](_0x478ec7(0x378),_0x478ec7(0x320),_0x137fbe),this[_0x478ec7(0x1f8)]();});}}catch(_0x5d9e75){this[_0x4a11a6(0x10f)]['error'](_0x5d9e75),this[_0x4a11a6(0x1f8)]();}}[_0x354c45(0x230)](_0x44a905){const _0x3ef632=_0x354c45;this[_0x3ef632(0x10f)]['debug'](_0x3ef632(0x378),_0x3ef632(0x316)),_0x44a905['send']({'cmd':I[_0x3ef632(0x1ad)]}),this[_0x3ef632(0x142)]();}['_onConnectionFailed'](){const _0x4c1d8e=_0x354c45;var _0x17371c;this[_0x4c1d8e(0x8b)][_0x4c1d8e(0x2fe)](0x2),this[_0x4c1d8e(0x232)]['next'](null),this[_0x4c1d8e(0x113)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x4c1d8e(0xd4)]<((_0x17371c=this[_0x4c1d8e(0x102)][_0x4c1d8e(0x119)](pn))!=null?_0x17371c:vn)?(this[_0x4c1d8e(0x83)](this[_0x4c1d8e(0xd4)]),this[_0x4c1d8e(0xd4)]+=0x1):this['_messageService'][_0x4c1d8e(0x2e0)]({'type':_0x1679e9[_0x4c1d8e(0xf0)],'content':this[_0x4c1d8e(0xa4)]['t'](_0x4c1d8e(0x306))});}['_scheduleReconnection'](_0x5634fd){const _0x293138=_0x354c45;var _0x179f8a;const _0x336977=((_0x179f8a=this[_0x293138(0x102)][_0x293138(0x119)](gn))!=null?_0x179f8a:Sn)*0x2**_0x5634fd;this[_0x293138(0x1c1)][_0x293138(0x2e0)]({'type':_0x1679e9[_0x293138(0x31a)],'content':this[_0x293138(0xa4)]['t'](_0x293138(0x2db))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x51504d=_0x293138;this[_0x51504d(0x256)](),clearTimeout(this[_0x51504d(0x390)]),this['_retryConnectingTimer']=null;},_0x336977);}['_rescheduleHeartbeatEvent'](){const _0x733aa0=_0x354c45;var _0x5e770d;this[_0x733aa0(0x36c)](),this[_0x733aa0(0x396)]=setTimeout(()=>this[_0x733aa0(0x2ba)](),(_0x5e770d=this[_0x733aa0(0x102)][_0x733aa0(0x119)](mn))!=null?_0x5e770d:fn);}[_0x354c45(0x2ba)](){const _0x23bd19=_0x354c45;this[_0x23bd19(0x106)][_0x23bd19(0x3b4)]({'cmd':I['HEARTBEAT']}),this[_0x23bd19(0x3bd)]();}[_0x354c45(0x3bd)](){const _0x256860=_0x354c45;var _0x400c08;this[_0x256860(0xe0)]=setTimeout(()=>this[_0x256860(0x1f8)](),(_0x400c08=this[_0x256860(0x102)][_0x256860(0x119)](Os))!=null?_0x400c08:Ds);}[_0x354c45(0x37d)](_0x2adacc,_0x36631f){const _0x2dcde1=_0x354c45,{cmd:_0x469544}=_0x36631f;_0x469544===I[_0x2dcde1(0x1ad)]&&!this[_0x2dcde1(0x3af)]&&(_0x2adacc['memberID']=_0x36631f[_0x2dcde1(0x385)][_0x2dcde1(0xd3)],this[_0x2dcde1(0x232)][_0x2dcde1(0x2fe)](_0x2adacc),this[_0x2dcde1(0x8b)][_0x2dcde1(0x2fe)](0x3),this[_0x2dcde1(0x3af)]=!0x0),_0x469544===I[_0x2dcde1(0x1aa)]&&this[_0x2dcde1(0x113)](),this[_0x2dcde1(0x142)]();}[_0x354c45(0x36c)](){const _0x58b363=_0x354c45;this[_0x58b363(0x396)]!=null&&(clearTimeout(this[_0x58b363(0x396)]),this[_0x58b363(0x396)]=null);}[_0x354c45(0x113)](){const _0x348bb3=_0x354c45;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x348bb3(0xe0)]),this[_0x348bb3(0xe0)]=null);}};pe=As([A(0x0,_0x229f6b(_0x3b06f9)),A(0x1,_0x229f6b(_0x5e486d)),A(0x2,_0x5963f9),A(0x3,_0x4491a7),A(0x4,_0x476b70),A(0x5,Ns)],pe);var xn=Object[_0x354c45(0xa3)],Hn=Object[_0x354c45(0x3cf)],kn=(_0x89b212,_0x1161eb,_0x49c37a,_0x29df9d)=>{const _0x1167c2=_0x354c45;for(var _0x5f352b=_0x29df9d>0x1?void 0x0:_0x29df9d?Hn(_0x1161eb,_0x49c37a):_0x1161eb,_0x2bf505=_0x89b212[_0x1167c2(0x16f)]-0x1,_0x2524d4;_0x2bf505>=0x0;_0x2bf505--)(_0x2524d4=_0x89b212[_0x2bf505])&&(_0x5f352b=(_0x29df9d?_0x2524d4(_0x1161eb,_0x49c37a,_0x5f352b):_0x2524d4(_0x5f352b))||_0x5f352b);return _0x29df9d&&_0x5f352b&&xn(_0x1161eb,_0x49c37a,_0x5f352b),_0x5f352b;},Oe=(_0x12ddaf,_0x1808cb)=>(_0x206887,_0x48b135)=>_0x1808cb(_0x206887,_0x48b135,_0x12ddaf);let D=class extends _0x48941f{constructor(_0x4a5431,_0x2f08d9,_0x9e71a5,_0x9b63d9,_0x49fda0){const _0x333501=_0x354c45;super(),_(this,_0x333501(0xf4),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x333501(0x2a7),!0x1),(this[_0x333501(0x102)]=_0x4a5431,this['_localStorageService']=_0x2f08d9,this[_0x333501(0x202)]=_0x9e71a5,this['_localeService']=_0x9b63d9,this[_0x333501(0x3be)]=_0x49fda0,this[_0x333501(0x11b)]());}[_0x354c45(0x95)](){const _0x5c420e=_0x354c45;this[_0x5c420e(0x2a7)]=!0x0;}[_0x354c45(0x2eb)](){const _0x427689=_0x354c45;this[_0x427689(0x2a7)]=!0x1;}[_0x354c45(0x220)](){const _0x26d597=_0x354c45;this[_0x26d597(0xe7)]()[_0x26d597(0xc4)](()=>super['dispose']());}async[_0x354c45(0x179)](_0x401991){const _0x37f8e4=_0x354c45;return this[_0x37f8e4(0x2a7)]?null:this['_localStorageService'][_0x37f8e4(0x35f)](es(_0x401991));}async[_0x354c45(0x334)](_0x2c296a,_0x4596f3){const _0x3663fd=_0x354c45;return!!this[_0x3663fd(0x257)][_0x3663fd(0x187)](_0x2c296a,_0x4596f3);}['updateOfflineData'](_0x310890,_0x330f2d,_0x29e710,_0x5bfa0a){const _0x78c5b5=_0x354c45,_0x1e2595=this['_revisionService'][_0x78c5b5(0x82)](_0x310890);this[_0x78c5b5(0xf4)][_0x78c5b5(0xdd)](_0x310890,{'unitID':_0x310890,'type':_0x330f2d,'awaitingChangeset':_0x29e710,'mutations':_0x5bfa0a,'rev':_0x1e2595}),this[_0x78c5b5(0xe3)][_0x78c5b5(0x340)](_0x310890)||this[_0x78c5b5(0x163)](_0x310890);}[_0x354c45(0x163)](_0x62162d){const _0x1d2374=_0x354c45,_0x79fb8a=this[_0x1d2374(0xc8)]();_0x79fb8a===0x0?this[_0x1d2374(0x132)](_0x62162d):this[_0x1d2374(0xe3)][_0x1d2374(0xdd)](_0x62162d,setTimeout(()=>this[_0x1d2374(0x132)](_0x62162d),_0x79fb8a));}[_0x354c45(0xc8)](){var _0x5428ae;return(_0x5428ae=this['_configService']['getConfig'](In))!=null?_0x5428ae:En;}[_0x354c45(0x132)](_0x7d1e05){const _0x4c276c=_0x354c45,_0x188b5d=this[_0x4c276c(0xe3)][_0x4c276c(0x309)](_0x7d1e05);return _0x188b5d!==void 0x0&&window[_0x4c276c(0x182)](_0x188b5d),this[_0x4c276c(0x257)][_0x4c276c(0x187)](es(_0x7d1e05),this['_cachedData']['get'](_0x7d1e05))[_0x4c276c(0xc4)](()=>this[_0x4c276c(0xe3)][_0x4c276c(0x33a)](_0x7d1e05));}async['exhaustSavingTask'](){const _0xd692e5=_0x354c45,_0x264a7e=[];this[_0xd692e5(0xe3)]['forEach']((_0x4339a4,_0x72ac96)=>{const _0x180e32=_0xd692e5;window['clearTimeout'](_0x4339a4),_0x264a7e[_0x180e32(0x34c)](this[_0x180e32(0x132)](_0x72ac96)[_0x180e32(0xc4)](()=>{const _0x403505=_0x180e32;this[_0x403505(0xe3)][_0x403505(0x33a)](_0x72ac96);}));}),await Promise['all'](_0x264a7e);}[_0x354c45(0x11b)](){const _0x190c00=_0x354c45;this[_0x190c00(0x1a0)](this[_0x190c00(0x202)]['registerBeforeClose'](()=>{const _0x2a46e7=_0x190c00;if(this[_0x2a46e7(0xe3)][_0x2a46e7(0x2f1)])return this[_0x2a46e7(0xa4)]['t'](_0x2a46e7(0x2e1));}));}};D=kn([Oe(0x0,_0x476b70),Oe(0x1,_0x399138),Oe(0x2,_0x24d7c6),Oe(0x3,_0x229f6b(_0x5e486d)),Oe(0x4,_0x229f6b(_0x2d6ffb))],D);function es(_0x598a4e){const _0x205075=_0x354c45;return _0x205075(0x1e8)+_0x598a4e;}const tt=_0x120263('univer-pro.collaboration-client.single-active-unit-service');var Us=(_0x14f0c9=>(_0x14f0c9[_0x14f0c9[_0x354c45(0x30f)]=0x0]=_0x354c45(0x30f),_0x14f0c9[_0x14f0c9[_0x354c45(0x255)]=0x1]=_0x354c45(0x255),_0x14f0c9))(Us||{});const ts=0x7530,ss=_0x354c45(0x2c4);class Vn extends _0x48941f{constructor(){const _0x5a9c3a=_0x354c45;super(),_(this,'_id',_0x40bd5b[_0x5a9c3a(0x38f)]()),_(this,_0x5a9c3a(0x1b2),new Set()),_(this,_0x5a9c3a(0x1be),new Map()),_(this,_0x5a9c3a(0xb4),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x5a9c3a(0x308),new Map()),this[_0x5a9c3a(0x330)]();}['dispose'](){const _0x162d7c=_0x354c45;super[_0x162d7c(0x220)](),this[_0x162d7c(0x1f6)][_0x162d7c(0x18d)]((_0x329c02,_0x181c94)=>this['_removeClearOtherTimer'](_0x181c94)),this['_heartbeatTimer']&&window[_0x162d7c(0x27a)](this[_0x162d7c(0xb4)]);}[_0x354c45(0x358)](_0x4da120){const _0x38f7c3=_0x354c45;return this['_ensureSubject'](_0x4da120)[_0x38f7c3(0x1e1)](_0x2f805d());}[_0x354c45(0x174)](_0x310496){const _0x34fb21=_0x354c45;this[_0x34fb21(0x1b2)][_0x34fb21(0x2f1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x34fb21(0x1b2)][_0x34fb21(0x264)](_0x310496),this[_0x34fb21(0x3cc)]({'type':0x0,'memberID':this[_0x34fb21(0x26e)],'unitIDs':[_0x310496],'isForwarded':!0x1});}[_0x354c45(0x24a)](_0xe587d5){const _0x2068ec=_0x354c45;this[_0x2068ec(0x1b2)][_0x2068ec(0x33a)](_0xe587d5),this['_selfUnitIDs'][_0x2068ec(0x2f1)]===0x0&&this[_0x2068ec(0xb4)]&&window[_0x2068ec(0x27a)](this['_heartbeatTimer']);}[_0x354c45(0x330)](){const _0x5207da=_0x354c45;this[_0x5207da(0x1a0)](_0x681995(_0x1f17b0(window,'storage')[_0x5207da(0x37e)](_0x16bef7=>{const _0xdfe98=_0x5207da;if(_0x16bef7[_0xdfe98(0x2b3)]!==ss||!_0x16bef7[_0xdfe98(0x152)])return;const _0x3bf3c1=JSON[_0xdfe98(0x156)](_0x16bef7[_0xdfe98(0x152)]);this['_handleEvent'](_0x3bf3c1);}))),window['addEventListener'](_0x5207da(0x384),()=>this[_0x5207da(0x3cc)]({'type':0x1,'memberID':this[_0x5207da(0x26e)],'unitIDs':Array[_0x5207da(0x247)](this['_selfUnitIDs'])}));}[_0x354c45(0x26f)](_0x11a01e){const _0x5b1df6=_0x354c45;switch(_0x11a01e[_0x5b1df6(0x354)]){case 0x0:this[_0x5b1df6(0x374)](_0x11a01e);break;case 0x1:this['_handleLeaveEvent'](_0x11a01e);break;case 0x2:this[_0x5b1df6(0x138)](_0x11a01e);break;}}[_0x354c45(0x374)](_0xcffa9c){const _0x525796=_0x354c45,{unitIDs:_0x5ab1e3,memberID:_0x3dfbee,isForwarded:_0x1c6af1}=_0xcffa9c;_0x5ab1e3[_0x525796(0x18d)](_0x47622f=>{const _0x29347f=_0x525796;if(!_0x1c6af1&&this[_0x29347f(0x1be)][_0x29347f(0x340)](_0x47622f)&&this[_0x29347f(0x16c)](_0x47622f)[_0x29347f(0x2fe)](0x1),!this['_unitOnClients']['has'](_0x47622f)||!this[_0x29347f(0x1be)]['get'](_0x47622f)[_0x29347f(0x340)](_0x3dfbee)){const _0x5393ba=this[_0x29347f(0x1be)]['get'](_0x47622f)||new Set();_0x5393ba[_0x29347f(0x264)](_0x3dfbee),this[_0x29347f(0x1be)][_0x29347f(0xdd)](_0x47622f,_0x5393ba),this[_0x29347f(0x2c7)](_0x3dfbee);}}),_0x1c6af1||this[_0x525796(0x3cc)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x525796(0x1b2)]],'isForwarded':!0x0});}[_0x354c45(0x2c7)](_0x2eedfa){const _0x987a09=_0x354c45;this['_removeClearOtherTimer'](_0x2eedfa);const _0x47650c=window[_0x987a09(0x3b5)](()=>{const _0x1e523d=_0x987a09;this[_0x1e523d(0x1be)][_0x1e523d(0x18d)](_0x1ea8bd=>{const _0x363329=_0x1e523d;_0x1ea8bd[_0x363329(0x33a)](_0x2eedfa);});},ts*0x2);this[_0x987a09(0x1f6)][_0x987a09(0xdd)](_0x2eedfa,_0x47650c);}[_0x354c45(0x37c)](_0x31754c){const _0x549728=_0x354c45;if(this[_0x549728(0x1f6)][_0x549728(0x340)](_0x31754c)){const _0x210fbf=this[_0x549728(0x1f6)][_0x549728(0x309)](_0x31754c);_0x210fbf&&window[_0x549728(0x182)](_0x210fbf),this[_0x549728(0x1f6)][_0x549728(0xdd)](_0x31754c,null);}}['_handleLeaveEvent'](_0x5043ad){const _0x3e35f7=_0x354c45,{memberID:_0x18bda5,unitIDs:_0x5c900c}=_0x5043ad;_0x5c900c[_0x3e35f7(0x18d)](_0x432fbf=>{const _0x23731f=_0x3e35f7;var _0x4fb250;const _0x500c14=this[_0x23731f(0x1be)][_0x23731f(0x309)](_0x432fbf);_0x500c14&&(_0x500c14[_0x23731f(0x33a)](_0x18bda5),(_0x4fb250=this[_0x23731f(0x16c)](_0x432fbf))==null||_0x4fb250[_0x23731f(0x2fe)](_0x500c14[_0x23731f(0x2f1)]===0x0?0x0:0x1));}),this[_0x3e35f7(0x37c)](_0x18bda5);}['_handleHeartbeatEvent'](_0x110925){const _0x2839b6=_0x354c45;this[_0x2839b6(0x2c7)](_0x110925[_0x2839b6(0xd3)]);}[_0x354c45(0x3cc)](_0x130ad0){const _0x43cb05=_0x354c45;localStorage[_0x43cb05(0x187)](ss,JSON[_0x43cb05(0x303)](_0x130ad0));}[_0x354c45(0x379)](){const _0x502cee=_0x354c45;this[_0x502cee(0xb4)]=window[_0x502cee(0x151)](()=>{const _0x3d1938=_0x502cee;this['_send']({'type':0x2,'memberID':this[_0x3d1938(0x26e)]});},ts);}['_ensureSubject'](_0x5d21e4){const _0x5d7a55=_0x354c45;return this[_0x5d7a55(0x308)][_0x5d7a55(0x340)](_0x5d21e4)||this['_unitStatus'][_0x5d7a55(0xdd)](_0x5d21e4,new _0x421821(0x0)),this[_0x5d7a55(0x308)][_0x5d7a55(0x309)](_0x5d21e4);}}var Bn=Object[_0x354c45(0xa3)],Fn=Object[_0x354c45(0x3cf)],Wn=(_0x1437e7,_0x52b426,_0xe8e748,_0x86c7c5)=>{const _0x2e90af=_0x354c45;for(var _0x122c78=_0x86c7c5>0x1?void 0x0:_0x86c7c5?Fn(_0x52b426,_0xe8e748):_0x52b426,_0x5750c9=_0x1437e7[_0x2e90af(0x16f)]-0x1,_0x6bc8a3;_0x5750c9>=0x0;_0x5750c9--)(_0x6bc8a3=_0x1437e7[_0x5750c9])&&(_0x122c78=(_0x86c7c5?_0x6bc8a3(_0x52b426,_0xe8e748,_0x122c78):_0x6bc8a3(_0x122c78))||_0x122c78);return _0x86c7c5&&_0x122c78&&Bn(_0x52b426,_0xe8e748,_0x122c78),_0x122c78;},is=(_0x3f17ce,_0x1a2383)=>(_0x42d1eb,_0x89eb69)=>_0x1a2383(_0x42d1eb,_0x89eb69,_0x3f17ce);let Je=class{constructor(_0x23776c,_0x964bab){const _0x606400=_0x354c45;this[_0x606400(0x259)]=_0x23776c,this[_0x606400(0x351)]=_0x964bab;}[_0x354c45(0x2f5)](_0x399035){const _0x5be5fd=_0x354c45;this[_0x5be5fd(0x2ec)](_0x399035),this[_0x5be5fd(0x317)](_0x399035);}[_0x354c45(0x1df)](_0x509acc){const _0x1152d3=_0x354c45,_0x1b2c81=this[_0x1152d3(0x259)][_0x1152d3(0x309)](_0x39911f),{redoCache:_0x438b3f}=_0x1b2c81[_0x1152d3(0x2fd)]();if(_0x438b3f['length']===0x0)return _0x509acc;let _0x19c85f=_0x40bd5b[_0x1152d3(0x37a)](_0x509acc['mutations'][0x0]);for(let _0x5166ca=0x0;_0x5166ca<_0x438b3f['length'];_0x5166ca++){const _0x4128da={'id':'doc.mutation.rich-text-editing','params':{..._0x438b3f[_0x5166ca]}},_0x497570=this[_0x1152d3(0x351)][_0x1152d3(0x148)](_0x19c85f,_0x4128da,!0x1);if(_0x5e29e1(_0x497570))throw _0x497570[_0x1152d3(0x35c)];_0x19c85f=_0x497570[_0x1152d3(0x140)];}return{..._0x40bd5b[_0x1152d3(0x37a)](_0x509acc),'mutations':[_0x19c85f]};}[_0x354c45(0x2ec)](_0x1d5065){const _0x1b80c5=_0x354c45,_0x5110d4=this['_injector'][_0x1b80c5(0x309)](_0x39911f),{undoCache:_0x2bfef9,redoCache:_0x1da61d}=_0x5110d4[_0x1b80c5(0x2fd)]();if(_0x2bfef9[_0x1b80c5(0x16f)]===0x0||_0x1da61d[_0x1b80c5(0x16f)]===0x0)return;const _0x55095d=[],_0x42b379=[];let _0x5ca0f8=_0x40bd5b[_0x1b80c5(0x37a)](_0x1d5065[_0x1b80c5(0x11e)][0x0]),_0x5a0572=_0x40bd5b[_0x1b80c5(0x37a)](_0x1d5065[_0x1b80c5(0x11e)][0x0]);for(let _0x3468ac=_0x2bfef9[_0x1b80c5(0x16f)]-0x1;_0x3468ac>=0x0;_0x3468ac--){const _0x319213={'id':_0x1b80c5(0x21d),'params':{..._0x2bfef9[_0x3468ac]}},_0x2ed53e={'id':_0x1b80c5(0x21d),'params':{..._0x1da61d[_0x3468ac]}},_0x33bf5d=this[_0x1b80c5(0x351)]['transformMutation'](_0x5ca0f8,_0x319213,!0x1),_0x289300=this[_0x1b80c5(0x351)][_0x1b80c5(0x148)](_0x5a0572,_0x2ed53e,!0x1);if(_0x5e29e1(_0x33bf5d))throw _0x33bf5d[_0x1b80c5(0x35c)];if(_0x5e29e1(_0x289300))throw _0x289300[_0x1b80c5(0x35c)];_0x55095d['unshift'](_0x33bf5d['m2Prime'][_0x1b80c5(0x29e)]),_0x42b379[_0x1b80c5(0x325)](_0x289300[_0x1b80c5(0x31e)][_0x1b80c5(0x29e)]),_0x5ca0f8=_0x33bf5d['m1Prime'],_0x5a0572=_0x289300['m1Prime'];}_0x5110d4[_0x1b80c5(0x10a)]({'undoCache':_0x55095d,'redoCache':_0x42b379});}['_transformPreviousActiveRange'](_0x25d2fe){const _0x4d6463=_0x354c45,_0x93badc=this[_0x4d6463(0x259)][_0x4d6463(0x309)](_0x39911f),_0x1f68e8=_0x93badc[_0x4d6463(0x34a)]();if(_0x1f68e8==null)return;const _0x2e049f=[{'id':_0x4d6463(0x21d),'params':{'unitId':_0x25d2fe[_0x4d6463(0x22b)],'actions':null,'textRanges':[_0x1f68e8]}}],_0x28d2f5=this['_transformService'][_0x4d6463(0x109)](_0x25d2fe,_0x2e049f);if(!_0x14b4f5(_0x28d2f5))throw _0x28d2f5[_0x4d6463(0x35c)];const _0xa9a088=_0x28d2f5[_0x4d6463(0x31e)][0x0][_0x4d6463(0x29e)][_0x4d6463(0x17d)];Array[_0x4d6463(0x11f)](_0xa9a088)&&_0xa9a088[_0x4d6463(0x16f)]&&_0x93badc[_0x4d6463(0x2df)](_0xa9a088[0x0]);}};Je=Wn([is(0x0,_0x229f6b(_0x3b06f9)),is(0x1,_0x5c9e6a)],Je);var Gn=Object[_0x354c45(0xa3)],Yn=Object[_0x354c45(0x3cf)],Kn=(_0x37994a,_0x3aca18,_0x551a0b,_0x1daad8)=>{const _0x45eaf7=_0x354c45;for(var _0x229257=_0x1daad8>0x1?void 0x0:_0x1daad8?Yn(_0x3aca18,_0x551a0b):_0x3aca18,_0x539359=_0x37994a[_0x45eaf7(0x16f)]-0x1,_0x3cbd01;_0x539359>=0x0;_0x539359--)(_0x3cbd01=_0x37994a[_0x539359])&&(_0x229257=(_0x1daad8?_0x3cbd01(_0x3aca18,_0x551a0b,_0x229257):_0x3cbd01(_0x229257))||_0x229257);return _0x1daad8&&_0x229257&&Gn(_0x3aca18,_0x551a0b,_0x229257),_0x229257;},ns=(_0x1d11e3,_0x48db86)=>(_0x26ae49,_0x3a277a)=>_0x48db86(_0x26ae49,_0x3a277a,_0x1d11e3);let ze=class{constructor(_0xea6d27,_0x4e5403){const _0x236bb2=_0x354c45;this[_0x236bb2(0x259)]=_0xea6d27,this[_0x236bb2(0x351)]=_0x4e5403;}[_0x354c45(0x3b1)](_0x4161eb){const _0x509614=_0x354c45;var _0x54773e;const _0x581675=this[_0x509614(0x259)][_0x509614(0x309)](_0x559154),_0x153c64=(_0x54773e=_0x581675[_0x509614(0x1bf)]())!=null?_0x54773e:[],_0x48609b=_0x153c64==null?void 0x0:_0x153c64[_0x509614(0x39f)](_0x1b1aa9);if(_0x48609b[_0x509614(0x16f)]===0x0)return;const _0x527d9e=[{'id':_0x509614(0x21d),'params':{'unitId':_0x4161eb['unitID'],'actions':null,'textRanges':_0x48609b}}],_0x25e4f5=this[_0x509614(0x351)][_0x509614(0x109)](_0x4161eb,_0x527d9e);if(!_0x14b4f5(_0x25e4f5))throw _0x25e4f5[_0x509614(0x35c)];const _0x85d343=_0x25e4f5[_0x509614(0x31e)][0x0]['params'][_0x509614(0x17d)];Array[_0x509614(0x11f)](_0x85d343)&&_0x85d343[_0x509614(0x16f)]&&_0x581675[_0x509614(0x193)](_0x85d343,!0x1);}};ze=Kn([ns(0x0,_0x229f6b(_0x3b06f9)),ns(0x1,_0x5c9e6a)],ze);function ys(_0x5d70db){let _0x34410c='';for(const _0x1765c4 of _0x5d70db){const {startOffset:_0x4704f2,endOffset:_0x3ae258,isActive:_0x20b10e}=_0x1765c4;_0x34410c['length']&&(_0x34410c+=','),_0x34410c+=_0x4704f2+':'+_0x3ae258+':'+(_0x20b10e?'1':'0');}return _0x34410c;}function Xn(_0x4b01c9){const _0x29c62f=_0x354c45,_0xfbb062=_0x4b01c9[_0x29c62f(0x3ad)](','),_0x2601de=[];for(const _0x5d0339 of _0xfbb062){const [_0x34dfe1,_0x2a75b8,_0x12448]=_0x5d0339[_0x29c62f(0x3ad)](':');_0x2601de[_0x29c62f(0x34c)]({'startOffset':Number(_0x34dfe1),'endOffset':Number(_0x2a75b8),'collapsed':_0x34dfe1===_0x2a75b8,'isActive':_0x12448==='1'});}return _0x2601de[_0x29c62f(0x15c)](_0x3e227e=>_0x3e227e[_0x29c62f(0x8d)])||(_0x2601de[0x0]['isActive']=!0x0),_0x2601de;}class xt extends _0x5aeadb{constructor(){const _0x315ffb=_0x354c45;super(...arguments),_(this,'_collabCursorState$',new _0x421821(null)),_(this,_0x315ffb(0x17b),this[_0x315ffb(0x34b)][_0x315ffb(0x209)]());}[_0x354c45(0x228)](_0x40c4da){const _0x43adb9=_0x354c45,{unitID:_0x3c5a87,memberID:_0x416038,textRanges:_0x325f58}=_0x40c4da,_0x3aea65=ys(_0x325f58),_0x4b6bdc={'unitID':_0x3c5a87,'memberID':_0x416038,'selection':_0x3aea65};this[_0x43adb9(0x34b)][_0x43adb9(0x2fe)](_0x4b6bdc);}}var Jn=Object['defineProperty'],zn=Object[_0x354c45(0x3cf)],qn=(_0x37e8bb,_0x3bce47,_0x59dc23,_0x4ba18a)=>{const _0x2bd451=_0x354c45;for(var _0x5681b8=_0x4ba18a>0x1?void 0x0:_0x4ba18a?zn(_0x3bce47,_0x59dc23):_0x3bce47,_0x9d8dc5=_0x37e8bb[_0x2bd451(0x16f)]-0x1,_0x54015c;_0x9d8dc5>=0x0;_0x9d8dc5--)(_0x54015c=_0x37e8bb[_0x9d8dc5])&&(_0x5681b8=(_0x4ba18a?_0x54015c(_0x3bce47,_0x59dc23,_0x5681b8):_0x54015c(_0x5681b8))||_0x5681b8);return _0x4ba18a&&_0x5681b8&&Jn(_0x3bce47,_0x59dc23,_0x5681b8),_0x5681b8;},rs=(_0x3dfc0e,_0xb2f6f0)=>(_0x1888b3,_0x4029f7)=>_0xb2f6f0(_0x1888b3,_0x4029f7,_0x3dfc0e);function Zn(_0x101a5e){const _0x2b8ca3=_0x354c45,{unitID:_0x567327,mutations:_0x19ccd6}=_0x101a5e;return{'unitId':_0x567327,'subUnitId':_0x19ccd6[0x0][_0x2b8ca3(0x29e)][_0x2b8ca3(0x1e9)]};}function _0x3791(){const _0x58c73e=['_refRangeService','_acknowledgedAwaitingChangeset','AWAITING','row','/universer-api/authz','_replayCachedMutations','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_toggleOnline','updateMember','ws://127.0.0.1:8000/universer-api/comb/connect','socketService','eventID','_remoteChangesetQueue','setShapeProps','onTransformChange$','_getMergeRange','image/png','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','session.will-retry','InsertRangeMoveDownCommandId','off-line-single_clip0_910_343','RemoveColCommandId','setActiveRange','show','collaboration-client.offline-data-not-saved','updateCursorEvent','_createSocket','COMPRESS_MUTATION_APPLY','_transformStack','status$','_redoStacks','_hovered','isEditing','measureText','enableLocalCache','_transformUndoRedoStack','_updateState','_color','executeCommand','_entities','size','max','/unit/','createElement','transformIMECache','getMemberID','editing\x20status\x20changed\x20to','contains','DEFAULT_FILE_NAME','_session','searchParams','unitId\x20is\x20not\x20found','getUndoRedoMutationParamsCache','next','triggerDblclick','[CollaborationState]:\x20apply\x20error!','_executeRemoteChangeset','_initStatusListener','stringify','_getAnchorBounding','_initMergeInterceptor','session.connection-failed','startColumn','_unitStatus','get','_initStatusComponent','verdancy600','_themeService','setParam','UNIVER_DOC','NO_OTHER_CLIENTS_EDITING','objectType','registerRefRange','evenodd','transformChangesets','awaitingChangeset','permission.content','socket\x20open.','_transformPreviousActiveRange','failed\x20to\x20apply\x20missed\x20changesets!','originalMeta','Warning','_fetchMissChangesets','UNIVER_SHEET','createInstance','m2Prime','[OfflineState]:\x20received\x20changeset.','socket\x20close','_context','/universer-api/oidc/authpage','interceptor','moveTo','unshift','getCellPositionByOffset','width','[CollaborationEntity]','_transformUndoredo','path','OnLineSingle','catch','APPLY_REVISION_CONFILICT','cursorInfo','_onFetchMissResult','_init','/allowed','sheetID','?url=','saveOfflineData','_lockTransition','every','conflict.content','_sessions','awaiting_with_pending','delete','listCollaborators','baseRev','close$','YUUMI_URL_COL_OUT_OF_RANGE','black','has','onlineStatus','current','_drawTextRange','_setupSubUnitSync','revision','synced','font','_createHandler','fillText','getActiveRange','_collabCursorState$','push','closePath','getOffsetConfig','collabStatus.conflict','fill','_transformService','LEAVE','_type','type','/universer-api/snapshot/','_clearCollaborationTimeoutTimer','popstate','getUnitStatus$','HttpExport','UNRECOGNIZED','_entityInit$','error','onlineStatusIcon','_transformRemoteChangesetByIMECache','getItem','INGEST','create','changesets','CHANGESET_ACK','OffLineSingle','_hover','onTransformRemoteChangesetByIMECache','clipPath','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_anchor','result','SNAPSHOT_URL_KEY','_clearHeartbeatTimer','deleteCollaborator','LICENSE_EXPORT_SIZE_EXCEEDED','rgba(255,\x20255,\x20255,\x200.01)','univer-online-status-title','createCollaborator','onCommandExecuted','_updateURLWithCurrentState','_handleJoinEvent','hovered','getAncestorScale','_getAPIPrefix','[CollaborationSessionService]','_scheduleHeartbeat','deepClone','[CollaborationUndoRedoService]','_removeClearOtherTimer','_onMessage','subscribe','IDLE','collabStatus.fetchMiss','EXCHANGE_SIGN_URL_SERVER_URL_KEY','getTime','_state$','unload','data','getOwnPropertySymbols','_cursorInfo$','_roomMembers','getResourcesRequest','UUID','CHANGESET_REJ','name','getTypeOfUnitDisposed$','LOGIN_URL_KEY','generateRandomId','_retryConnectingTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','uni.network.url-service','unitId','SUCCUSS','state$','_sendHeartbeatTimer','_getCtorByUniverType','HEARTBEAT_TIMEOUT','engine','getMember','_memberService','pushState','beginPath','responseType','map','registerHTTPInterceptor','UnitSnapshot','_draw','[DataLoaderController]','getCurrentUnitForType','\x20-\x20','clear','getUnitId','includes','method','_clearRedo','/block/','_drawRectRange','split','_collaborationSessionService','_socketReady','_startCollaboration','transformSelections','[PendingState]:\x20received\x20acknowledgement.','_roomMembers$','send','setTimeout','_initModules','_onUserJoin','ALREADY_EXISTS','_socketService','...','177375ZmxeMY','getMergeData','_waitForHeartbeatResponse','_revisionService','UNIVER_SLIDE','OFFLINE','#fff','purple300','session','Univer','on-line-single','#FFF','NOT_COLLAB','objectID','_docSyncEditingCollabCursorService','collabStatus.offline','location','_send','_ws','ERROR_IMAGE','getOwnPropertyDescriptor','color','url','[PendingState]:\x20received\x20rejection.','find','roomMembers$','SUBMIT_CHANGESET','sessionStatus$','close','code','_joinRoom','getUnitOnRev','_commentUpdate$','setCurrentUser','getCurrentRevForDocument','_scheduleReconnection','url(#on-line-single_clip0_910_349)','UNKNOWN_CMD','APPLY_REJECT','DeleteRangeMoveLeftCommandId','_getUploadFileURL','fetchMissingChangesets','offline','_status$','collaboratorID','isActive','BASE64','cursorInfo$','_anchorDot','_HTTPService','_removeCollabCursors','getRelativeToViewportCoord','&assign=','disableLocalCache','_toggleOffline','online','NOT_FOUND','transformUndoRedo','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','UNIVER_UNKNOWN','_userManagerService','_replaceFileID','assignAColorForMemberID','string','liveShareNewHost','_getLoginPath','_createInitialState','defineProperty','_localeService','_render','sessionStatus','currentTheme$','PSEUDO_FETCH_MISSING_RESULT','urlChange$','auth.needGotoLoginAlert','resend','CONFLICT','href','4WLfpss','members','save\x20fail\x20reason\x20is\x20','FAIL','min','_cursor','_heartbeatTimer','reverse','getCurrent','drawWith','onlyLocal','_unlockTransition','isPermissionRej','InsertRangeMoveRightCommandId','endRow','7619949AUXzHa','Starting','1em','substring','univer-online-status','[CollaborationSession]','_checkMissing','then','_registerRenderDependencies','values','_scheduleTimestamp','_getSaveTimeout','_getScale','entries','addObject','getTypeOfUnitAdded$','trim','[OfflineState]:\x20received\x20acknowledgement.','className','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','listRoles','csRejEvent','memberID','_retryCount','newCsEvent','body','title','YUUMI_SUBSCRIPTION_NOT_FOUND','bottom','_substituteRedoStack','rev','setWaitCount','set','collab-rect-range-','fetch_missing','_timeoutTimer','_transformSelections','_startDocCollabCursor','_saveTaskMap','getValue','subscribeEvent','colorChannel1','exhaustSavingTask','url(#$1','activeSheet$','red300','/object','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','submit\x20changeset\x20error!','_lastPointer','RECV','Error','_onUserLeave','_onRecvEvent','_scene','_cachedData','extend','arc','defs','USERS_ENTER','getParam','_onCursorDelete','_updateCollabCursors','userID','save','collabStatus.synced','list','11371392yMpAWT','restore','_configService','append','INTERNAL_ERROR','_docTransformSelectionsService','_socket','svg','LIVESHARE_OPERATION','transformMutationsWithChangeset','setUndoRedoMutationParamsCache','toString','_onLocalMutation','fromCollab','ONLINE','_logService','routeKey','_isPermissionRej','lineTo','_clearTimeoutTimer','FETCH_MISSING','\x0aAfter:\x20','SNAPSHOT_SERVER_URL_KEY','_undoStacks','/resources','getConfig','_updateLocalCache','_setupBeforeClosingHandler','[SyncedState]:\x20received\x20acknowledgement.','_removeRoom','mutations','isArray','prototype','endColumn','_colorAssignService','collabStatus.syncing','pending','_decreaseWaiting','encodeURIComponent','batchAllowed','_drawAnchor','_disableEditing','_members','getRangePointData','gold400','conflict','_onCombEvent','updateCollaborator','PERMISSION_DENIED','LIVESHARE_NEW_HOST','_saveCache','_showConflictNotification','_univerInstanceService','_syncEditingCollabCursorService','LICENSE_DISTRO_REJECTED','_httpService','_handleHeartbeatEvent','_onConflict','roles','getSheetId','whenReady','LIVESHARE_FETCH_OPERATIONS','incrementRevForDocument','SHOULD_CLOSE_CONN','m1Prime','COMPLETION_FINISHED','_rescheduleHeartbeatEvent','_awaitingChangeset','subunit','onTransformIME','unknown','FromArray','transformMutation','_clearUndo','saveImage','_updateLocalCursor','/universer-api/snapshot','_online','_exhaustRemoteChangesetQueue','PERMISSION_REJ','div','setInterval','newValue','updateOfflineData','symbol','_permissionService','parse','xlink:href','collabStatus.notCollab','_transitionLocked','registerOnClose','UNIVER_PROJECT','some','getImage','target','Ready','loadSheet','FileId','_incrementRevisionNumber','_scheduleSaving','roomMembers','getCollabEntity','_loadSheet','UNKNOWN_CODE','_snapshotService','_loadDoc','_queuedRemoteChangesets','univer-online','_ensureSubject','collaboration.single-unit.warning','POST','length','getUnitType','toRgbString','_notificationService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','editingUnit','\x20to\x20','getSheetBySheetId','onSendChangeset','onRemoteRej','loadOfflineData','reduce','collabCursorState$','_sheetTransformSelectionsService','textRanges','_getRedoStack','_onRefRangeChange','USERS_LEAVE','indexOf','clearTimeout','_onRemoteACK','_collabSessionService','status','CONNECTOR_DATA_TOO_LARGE','setItem','removeMember','defIds','_updateStatus','onMouseMove','2TWUSog','forEach','open$','tag','_collaborationPaused','reject','liveShareOperation','replaceTextRanges','roomInfos','url(#off-line-single_clip0_910_343)','_docStateChangeManagerService','_renderManagerService','hasOwnProperty','actions','/-/object/list','NEW_CHANGESETS','_http','_undoRedoService','c2Prime','_commandService','disposeWithMe','dispose$','toggleOnline','session.collaboration-timeout','LIVESHARE_TERMINATE','getActiveSheet','permission.title','getWorkbookSelections','apply','UNDEFINED','HEARTBEAT','[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.','SEND_CHANGESET_TIMEOUT','HELLO','_labelPosition','/universer-api/stream/file/upload','_getUndoStack','call','_selfUnitIDs','selection','enableOfflineEditing','override','UNIVER_COLLABORATION_CLIENT_PLUGIN','appendMutation','_range','JOINING','onRemoteChangeset','_compressMutationService','_cursors','onMissedChangesetFetched','_unitOnClients','getDocRanges','Undefined','_messageService','image/jpeg','_socketMessageSubscription','_unitID','_shapes','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_handler','children','UNAUTHENTICATED','hide','round','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','debug','init','_onCursorUpdate','_getSnapshotAPIPrefix','resize','SYNCED','RETRY_CONNECTING_INTERVAL','file','_sheetSkeletonManagerService','flatMap','skeleton','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','patch','SNAPSHOT_HAS_BEEN_REMOVED','/-/object/-/batch_allowed','7788265uHzQOP','[UniverCollaborationClientPlugin]','none','transformRemoteChangeset','labelPosition','pipe','use','_textBubble','session.room-full','/collaborator','&to=','_waitCount','unit-cache-','subUnitId','objectActions','createSocket','complete','_refreshCollabCursors','transformByState','MoveRangeCommandId','\x0aCurrent:\x20','_uiPartsService','random','MSG_FOR_ERROR','on-line-single_clip0_910_349','enableAuthServer','_clearOtherTimers','change$','_onConnectionFailed','COMPRESS_MUTATION_SEND','_config','_applyRemoteChangeset','_event$','shouldCloseConn','[CollaborationSessionService]:\x20socket\x20error','_collabCursorController','setAlpha','addObjects','_beforeCloseService','_assignedColors','registerRenderModule','_substituteUndoStack','headers','onRemoteAck','COLLAB_WEB_SOCKET_URL','asObservable','transformStack\x20failed!','_cursorShapes','range','_imageSourceCache','_backgroundColor','onMissingChangesets','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','JOIN','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','/fetchmissing?from=','M0\x200H16V16H0z','RemoveRowCommandId','column','initWorkbookPermissionChange','SNAPSHOT_INVALID_SNAPSHOT','message$','confirm','connection\x20error','_createInitialStateImpl','doc.mutation.rich-text-editing','ranges','translate(.97)','dispose','_onRemoteRejected','UniverIcon','focused$','_docSkeletonManagerService','idSuffix','concat','replace','syncEditingCollabCursor','[FetchMissState]','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','unitID','blue400','_getCurrentRevision','_commentService','0\x200\x2016\x2016','_onConnectionOpen','MUTATION','_socket$','getViewport','_collaborationController','c1Prime','snapshot','_initCloseConn','_getAPIPrefixPath','getCurrentSelections','collab-text-anchor-','image/gif','_change$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_singleActiveUnitService','74328qilChW','getCollabCursors$','onPointerLeave$','compose','_pendingMutations','onCommentUpdate','unit','univer-offline','from','getFocusedUnit','infoRsp','disposeUnit','currentColor','PENDING','top','_initCommandExecutedListener','LICENSE_IMPORT_SIZE_EXCEEDED','saveSheetBlock','UPDATE_CURSOR','getImageSourceCache','src','HEARTBEAT_INTERVAL','OTHER_CLIENTS_EDITING','_tryEnsureSocket','_localStorageService','requireSession','_injector','updatePermissionPoint','_colorIndex','onPointerEnter$','Unknown\x20user','filter','getCollabEntity$','action','image/jpg','AWAITING_WITH_PENDING','_getSignURL','add','sheets','sheetId','InsertColCommandId','onPointerMove$','[OfflineState]:\x20received\x20rejection.','resourceIDs','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getSkeleton','_id','_handleEvent','_scheduleCollaborationTimeoutTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaiting','joinEvent','_schedule','_syncEditingCollabCursor','post','addImageSourceCache','_docTransformIMECacheService','icon','clearInterval','Error\x20on\x20receiving\x20event','fetching\x20missing\x20changesets\x20from\x20','TOO_MANY_REQUESTS','fillStyle','getInterceptPoints','COMMENT_UPDATE','_eventUnsubscribe','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveSnapshot','HEADER_MENU','_collaborationTimeoutTimer','displayName','fetchThroughInterceptors','onRendered','encode','CHANGESET_REVISION_CONFILICT','_transformIMECache','UnitEmbedded','_getSendChangesetTimeout','LOCAL_CACHE_INTERVAL','_clearScheduledTask','32548VzrjCz','localeService','toggleOffline','UPDATE_PERMISSION_OBJ','21xGOzLf','removeParam','text','_initUnitPermissionChange','put','height','off-line-single','_localCacheService','APPLY_NON_SEQUENTIAL_REVISION','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','params','APPLY_PERMISSION_DENIED','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','553251bSmCbT','_sendingTimer','onStateChange','getSheetBlock','INVALID_ARGUMENT','/object/','_disabled','YUUMI_RATE_OVER_LIMIT','FETCH_MISS','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_sessionStatus$','onTransformSelections','unsubscribe','getCurrentUser','state','_urlService','attrs','key','1790kqWhWJ','_state','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleHover','univerjs-icon\x20univerjs-icon-','_clearLocalCache','_sendHeartbeat','_updateSubUnitFromURLParams','fillRule','leaveEvent','{fileID}','history','image/bmp','onStarting','_name','replaceState','ACTIVE_UNIT_EVENT_CHANNEL','event$','RETRY_CONNECTING_MAX_COUNT','_scheduleClearOtherTimer'];_0x3791=function(){return _0x58c73e;};return _0x3791();}let qe=class{constructor(_0x43ca52,_0x10a8c5){const _0x2324db=_0x354c45;this['_injector']=_0x43ca52,this[_0x2324db(0x351)]=_0x10a8c5;}[_0x354c45(0x3b1)](_0x34ec4b){const _0x31b006=_0x354c45;var _0x4fd1a2,_0x4b31b,_0x5ebd40;const _0x5a31c6=this[_0x31b006(0x259)][_0x31b006(0x309)](_0x22886c),{unitId:_0x269f04,subUnitId:_0x5377c6}=Zn(_0x34ec4b),_0x1bc926=_0x5a31c6[_0x31b006(0x1a7)](_0x269f04)[_0x31b006(0x239)]();if(_0x1bc926[_0x31b006(0x16f)]===0x0||!_0x269f04||!_0x5377c6)return;const _0x51aff4=[{'id':_0x1271d4['id'],'params':{'unitId':_0x269f04,'subUnitId':_0x5377c6,'selections':_0x40bd5b[_0x31b006(0x37a)](_0x1bc926)}}],_0x2c64c6=this[_0x31b006(0x351)][_0x31b006(0x109)](_0x34ec4b,_0x51aff4);if(!_0x14b4f5(_0x2c64c6))throw _0x2c64c6[_0x31b006(0x35c)];const _0x12bbc0=(_0x5ebd40=(_0x4b31b=(_0x4fd1a2=_0x2c64c6[_0x31b006(0x31e)][0x0])==null?void 0x0:_0x4fd1a2['params'])==null?void 0x0:_0x4b31b[_0x31b006(0x2da)])!=null?_0x5ebd40:_0x1bc926;Array['isArray'](_0x12bbc0)&&_0x12bbc0[_0x31b006(0x16f)]&&this['_injector']['get'](_0x151749)[_0x31b006(0x2ef)](_0x1271d4['id'],{'unitId':_0x269f04,'subUnitId':_0x5377c6,'selections':_0x12bbc0});}};qe=qn([rs(0x0,_0x229f6b(_0x3b06f9)),rs(0x1,_0x5c9e6a)],qe);const Qn=new Set([_0x11e296['id']]);function os(_0x3acd23,_0x4e21db,_0x38569b,_0x3f58b5,_0x33c368){const _0x251676=_0x354c45;var _0x3973dc,_0x39d0bd,_0x9edfb7,_0x4d0692;const _0x542021=[];for(const _0x20a403 of _0x3acd23)if(Qn[_0x251676(0x340)](_0x20a403['id'])){if(_0x542021[_0x251676(0x16f)]>0x0)break;_0x542021[_0x251676(0x34c)](_0x20a403);break;}else _0x542021['push'](_0x20a403);const _0x5adbd8=(_0x39d0bd=(_0x3973dc=_0x33c368['getCurrentUser']())==null?void 0x0:_0x3973dc[_0x251676(0xfc)])!=null?_0x39d0bd:_0x251676(0x146),_0x59e178=(_0x4d0692=(_0x9edfb7=_0x33c368[_0x251676(0x2af)]())==null?void 0x0:_0x9edfb7[_0x251676(0xd3)])!=null?_0x4d0692:_0x251676(0x146);return{'changeset':{'unitID':_0x4e21db,'type':_0x1e11c0(_0x38569b[_0x251676(0x170)](_0x4e21db)),'baseRev':_0x3f58b5[_0x251676(0x82)](_0x4e21db),'revision':0x0,'userID':_0x5adbd8,'memberID':_0x59e178,'mutations':_0x542021},'pendingMutations':_0x3acd23['slice'](_0x542021['length'])};}function er(_0x4d54d0,_0x3914ea,_0x3e072d,_0x3cdfd1,_0x3bf111){const _0x23a567=_0x354c45;var _0x4bf224,_0x18efee,_0xbbc0e9,_0x59b7ed;const _0x2ab854=[_0x4d54d0['reduce']((_0x5bea02,_0x307c8d)=>{const _0x118fb9=_0x5b0c;var _0xebf2d5;const {id:_0x43e75e}=_0x5bea02,{id:_0x27b6aa,type:_0x5de519}=_0x307c8d,_0x50ca2c=(_0xebf2d5=_0x5bea02[_0x118fb9(0x29e)])!=null?_0xebf2d5:{'actions':null},_0x347713=_0x307c8d[_0x118fb9(0x29e)];if(_0x43e75e&&_0x43e75e!==_0x27b6aa)throw new Error(_0x118fb9(0x2a0)+_0x43e75e+_0x118fb9(0x3a5)+_0x27b6aa+'.');return{..._0x5bea02,'id':_0x27b6aa,'type':_0x5de519,'params':{'unitId':_0x347713[_0x118fb9(0x393)],'textRanges':_0x347713[_0x118fb9(0x17d)],'actions':_0x2f52af[_0x118fb9(0x242)](_0x50ca2c[_0x118fb9(0x199)],_0x347713['actions'])}};},{})],_0x294854=(_0x18efee=(_0x4bf224=_0x3bf111[_0x23a567(0x2af)]())==null?void 0x0:_0x4bf224[_0x23a567(0xfc)])!=null?_0x18efee:_0x23a567(0x146),_0x1c3413=(_0x59b7ed=(_0xbbc0e9=_0x3bf111[_0x23a567(0x2af)]())==null?void 0x0:_0xbbc0e9[_0x23a567(0xd3)])!=null?_0x59b7ed:_0x23a567(0x146);return{'changeset':{'unitID':_0x3914ea,'type':_0x1e11c0(_0x3e072d['getUnitType'](_0x3914ea)),'baseRev':_0x3cdfd1[_0x23a567(0x82)](_0x3914ea),'revision':0x0,'userID':_0x294854,'memberID':_0x1c3413,'mutations':_0x2ab854},'pendingMutations':[]};}const tr={'id':_0x53c0be['id'],'type':_0x3b75d4['MUTATION'],'params':{}};var sr=Object[_0x354c45(0xa3)],ir=Object[_0x354c45(0x3cf)],ce=(_0x25d71d,_0x45c277,_0x1762f9,_0x533b)=>{const _0x2a6b9d=_0x354c45;for(var _0x143c68=_0x533b>0x1?void 0x0:_0x533b?ir(_0x45c277,_0x1762f9):_0x45c277,_0x5719f6=_0x25d71d[_0x2a6b9d(0x16f)]-0x1,_0x5cb49b;_0x5719f6>=0x0;_0x5719f6--)(_0x5cb49b=_0x25d71d[_0x5719f6])&&(_0x143c68=(_0x533b?_0x5cb49b(_0x45c277,_0x1762f9,_0x143c68):_0x5cb49b(_0x143c68))||_0x143c68);return _0x533b&&_0x143c68&&sr(_0x45c277,_0x1762f9,_0x143c68),_0x143c68;},f=(_0x528830,_0x42462a)=>(_0x1fb431,_0x1b16ee)=>_0x42462a(_0x1fb431,_0x1b16ee,_0x528830),P=(_0xd26547=>(_0xd26547[_0x354c45(0x3c7)]='not_collab',_0xd26547['SYNCED']=_0x354c45(0x346),_0xd26547['PENDING']='pending',_0xd26547[_0x354c45(0x2ca)]=_0x354c45(0x272),_0xd26547[_0x354c45(0x262)]=_0x354c45(0x339),_0xd26547[_0x354c45(0x2a9)]='fetch_missing',_0xd26547[_0x354c45(0xac)]=_0x354c45(0x12d),_0xd26547['OFFLINE']='offline',_0xd26547))(P||{});class he{constructor(_0x38ef32,_0x4fb778,_0x27b77c,_0x4d74b1,_0x1e98f6,_0x27d4e4,_0x1305ab,_0xaab271,_0x485683){const _0x16d071=_0x354c45;_(this,_0x16d071(0x143),null),_(this,_0x16d071(0x243),[]),(this[_0x16d071(0x22b)]=_0x38ef32,this[_0x16d071(0x354)]=_0x4fb778,this[_0x16d071(0x1c7)]=_0x1e98f6,this[_0x16d071(0x19f)]=_0x27d4e4,this[_0x16d071(0x19d)]=_0x1305ab,this['_revisionService']=_0xaab271,this[_0x16d071(0x29b)]=_0x485683,this[_0x16d071(0x143)]=_0x27b77c,this[_0x16d071(0x243)]=_0x4d74b1);}['_checkMissing'](_0x1a33c1){const _0xcb5efd=_0x354c45,_0xaa4ea0=this[_0xcb5efd(0x3be)][_0xcb5efd(0x82)](this[_0xcb5efd(0x22b)]);return _0x1a33c1[_0xcb5efd(0x345)]>_0xaa4ea0+0x1?(this['_handler'][_0xcb5efd(0x20f)]({'from':_0xaa4ea0,'to':_0x1a33c1['revision']-0x1}),!0x0):!0x1;}[_0x354c45(0x329)](_0x8c5e11){const _0x3d83bc=_0x354c45;this[_0x3d83bc(0x19d)][_0x3d83bc(0x99)](this['unitID'],_0x8c5e11);}[_0x354c45(0xe1)](_0x4a81c2){const _0x48a3ba=_0x354c45;var _0x1227dc,_0x5261c5;(_0x5261c5=(_0x1227dc=this[_0x48a3ba(0x1c7)])['onTransformSelections'])==null||_0x5261c5[_0x48a3ba(0x1b1)](_0x1227dc,_0x4a81c2);}[_0x354c45(0x28b)](_0x308264){var _0x31e15f,_0x326498;return(_0x326498=(_0x31e15f=this['_handler'])['onTransformIME'])==null?void 0x0:_0x326498['call'](_0x31e15f,_0x308264);}[_0x354c45(0x35e)](_0x2a04e1){const _0x1ca55a=_0x354c45;var _0x2587a9,_0x31dfc8,_0xe77a07;return(_0xe77a07=(_0x31dfc8=(_0x2587a9=this[_0x1ca55a(0x1c7)])[_0x1ca55a(0x366)])==null?void 0x0:_0x31dfc8[_0x1ca55a(0x1b1)](_0x2587a9,_0x2a04e1))!=null?_0xe77a07:_0x2a04e1;}[_0x354c45(0x275)](_0x1ddac4){const _0xf878c8=_0x354c45;var _0x5dafc5,_0x506812;if(this[_0xf878c8(0x354)]===H[_0xf878c8(0x30e)]){const {unitID:_0x369976,mutations:_0x61e492,memberID:_0x4231da}=_0x1ddac4,_0x3c6d0c=_0x61e492[0x0]['params'][_0xf878c8(0x17d)];Array['isArray'](_0x3c6d0c)&&_0x3c6d0c[_0xf878c8(0x16f)]>0x0&&((_0x506812=(_0x5dafc5=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x506812[_0xf878c8(0x1b1)](_0x5dafc5,{'unitID':_0x369976,'memberID':_0x4231da,'textRanges':_0x3c6d0c}));}}['_updateLocalCache'](){const _0x517cfd=_0x354c45;this[_0x517cfd(0x29b)][_0x517cfd(0x153)](this[_0x517cfd(0x22b)],this[_0x517cfd(0x354)],this[_0x517cfd(0x143)],this[_0x517cfd(0x243)]);}[_0x354c45(0x22d)](){const _0x5aa1eb=_0x354c45;return this[_0x5aa1eb(0x3be)][_0x5aa1eb(0x82)](this[_0x5aa1eb(0x22b)]);}[_0x354c45(0x162)](){const _0x5ab45a=_0x354c45;this[_0x5ab45a(0x3be)][_0x5ab45a(0x13e)](this[_0x5ab45a(0x22b)]);}['_executeRemoteChangeset'](_0xc93d1f){const _0x2ecd67=_0x354c45;var _0x3f8249;const _0x73e6d4=this[_0x2ecd67(0x35e)](_0xc93d1f),_0x53535a=_0x6b06f4(_0x73e6d4['mutations'],this[_0x2ecd67(0x19f)],{'fromCollab':!0x0});if(!_0x53535a[_0x2ecd67(0x36a)])throw _0x53535a[_0x2ecd67(0x35c)]instanceof Error?_0x53535a[_0x2ecd67(0x35c)]:new Error((_0x3f8249=_0x53535a[_0x2ecd67(0x35c)])!=null?_0x3f8249:_0x2ecd67(0x300));this['_transformIMECache'](_0x73e6d4),this['_transformUndoredo'](_0xc93d1f),this[_0x2ecd67(0xe1)](_0x73e6d4),this['_syncEditingCollabCursor'](_0x73e6d4),this['_incrementRevisionNumber']();}}let Ue=class extends he{constructor(_0x4168ba,_0x23e36e,_0x3d5fe7,_0x50d83a,_0x5ad556,_0x3a0b9d,_0x55bdf4,_0xb2f5b3,_0x1f4dec,_0x4ef74d){const _0x40bdbc=_0x354c45;super(_0x4168ba,_0x23e36e,null,[],_0x3d5fe7,_0xb2f5b3,_0x55bdf4,_0x50d83a,_0x5ad556),_(this,'status',_0x40bdbc(0x346)),(this[_0x40bdbc(0x259)]=_0x3a0b9d,this['_logService']=_0x1f4dec,this['_transformService']=_0x4ef74d);}[_0x354c45(0x1b7)](_0x3c346a){const _0x58da55=_0x354c45,_0x15c036=this['_injector'][_0x58da55(0x31d)](G,this[_0x58da55(0x22b)],this[_0x58da55(0x354)],[_0x3c346a],this[_0x58da55(0x1c7)]);return _0x15c036[_0x58da55(0x274)](),_0x15c036['_updateLocalCache'](),_0x15c036;}['onRemoteChangeset'](_0xbaae38){const _0x149938=_0x354c45;if(this[_0x149938(0xc3)](_0xbaae38))return this[_0x149938(0x259)][_0x149938(0x31d)](K,this[_0x149938(0x22b)],this[_0x149938(0x354)],null,[],null,[_0xbaae38],this[_0x149938(0x1c7)]);try{const _0x1aea5f=this[_0x149938(0x351)][_0x149938(0x109)](_0xbaae38,[tr]);if(_0x14b4f5(_0x1aea5f)){const {c1Prime:_0x536790}=_0x1aea5f;return this[_0x149938(0x301)](_0x536790),this;}throw _0x1aea5f[_0x149938(0x35c)];}catch(_0x4a8068){return this[_0x149938(0x10f)][_0x149938(0x35c)](_0x4a8068),this['_onConflict'](!0x1);}}[_0x354c45(0x139)](_0x515686){const _0x433547=_0x354c45;return this[_0x433547(0x259)][_0x433547(0x31d)](Z,this[_0x433547(0x22b)],this[_0x433547(0x354)],null,[],this[_0x433547(0x1c7)],_0x515686);}[_0x354c45(0x207)](){const _0x41e956=_0x354c45;throw new Error(_0x41e956(0x11c));}[_0x354c45(0x178)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x354c45(0x292)](){const _0x2ad176=_0x354c45;return this[_0x2ad176(0x259)]['createInstance'](Q,this['unitID'],this[_0x2ad176(0x354)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x354c45(0xab)](){const _0x8efa95=_0x354c45;throw new Error(_0x8efa95(0x1cc));}};Ue=ce([f(0x3,_0x229f6b(_0x2d6ffb)),f(0x4,_0x229f6b(D)),f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x13005c),f(0x7,_0x151749),f(0x8,_0x4491a7),f(0x9,_0x5c9e6a)],Ue);let G=class extends he{constructor(_0x58ba4f,_0x2b8ff9,_0x52283e,_0x4a2f93,_0x10f1bb,_0x1612f7,_0x18ad3c,_0xef48e9,_0x2c0cd7,_0x4fccd8,_0x487bc7,_0x5eb7f7,_0x19c50f,_0x3dbda8){const _0x3fe2b2=_0x354c45;super(_0x58ba4f,_0x2b8ff9,null,_0x52283e,_0x4a2f93,_0x4fccd8,_0x3dbda8,_0x1612f7,_0x18ad3c),_(this,_0x3fe2b2(0x185),_0x3fe2b2(0x124)),_(this,_0x3fe2b2(0xc7),null),_(this,'_sendingTimer',null),(this[_0x3fe2b2(0x259)]=_0x10f1bb,this['_memberService']=_0xef48e9,this[_0x3fe2b2(0x10f)]=_0x2c0cd7,this['_configService']=_0x487bc7,this['_transformService']=_0x5eb7f7,this[_0x3fe2b2(0x134)]=_0x19c50f);}[_0x354c45(0x1b7)](_0x5b018f){const _0x280146=_0x354c45;return this['_pendingMutations'][_0x280146(0x34c)](_0x5b018f),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x103b80){const _0xebcf4f=_0x354c45;if(this[_0xebcf4f(0xc3)](_0x103b80))return this['_clearScheduledTask'](),this[_0xebcf4f(0x259)][_0xebcf4f(0x31d)](K,this[_0xebcf4f(0x22b)],this[_0xebcf4f(0x354)],null,this[_0xebcf4f(0x243)],null,[_0x103b80],this[_0xebcf4f(0x1c7)]);try{const _0x54beae=this[_0xebcf4f(0x351)][_0xebcf4f(0x109)](_0x103b80,this['_pendingMutations']);if(_0x14b4f5(_0x54beae)){const {c1Prime:_0x324935,m2Prime:_0x4deee6}=_0x54beae;this[_0xebcf4f(0x301)](_0x324935);const _0x5a94ca=this[_0xebcf4f(0x259)][_0xebcf4f(0x31d)](G,this[_0xebcf4f(0x22b)],this[_0xebcf4f(0x354)],_0x4deee6,this[_0xebcf4f(0x1c7)]);return this[_0xebcf4f(0x28f)](),_0x5a94ca[_0xebcf4f(0x274)](this[_0xebcf4f(0xc7)]?Math['max'](0x0,new Date()[_0xebcf4f(0x382)]()-this['_scheduleTimestamp']):this[_0xebcf4f(0x28d)]()),_0x5a94ca;}throw _0x54beae[_0xebcf4f(0x35c)];}catch(_0x1f5f95){return this['_logService'][_0xebcf4f(0x35c)](_0x1f5f95),this[_0xebcf4f(0x139)](!0x1);}}[_0x354c45(0x207)](){const _0x1c7f02=_0x354c45;throw new Error(_0x1c7f02(0x3b2));}[_0x354c45(0x178)](){const _0x5bd78a=_0x354c45;throw new Error(_0x5bd78a(0x3d2));}[_0x354c45(0x292)](){const _0xc223ef=_0x354c45;return this['_clearScheduledTask'](),this[_0xc223ef(0x259)]['createInstance'](Q,this[_0xc223ef(0x22b)],this[_0xc223ef(0x354)],null,this[_0xc223ef(0x243)],this[_0xc223ef(0x1c7)]);}['toggleOnline'](){return this;}[_0x354c45(0x274)](_0x522a88){const _0x24a607=_0x354c45;_0x522a88=_0x522a88!=null?_0x522a88:this[_0x24a607(0x28d)](),this[_0x24a607(0xc7)]=new Date()[_0x24a607(0x382)](),this[_0x24a607(0x2a2)]=setTimeout(()=>{const _0xeec0b=_0x24a607;this[_0xeec0b(0x28f)]();let _0x482114=null;switch(this[_0xeec0b(0x354)]){case H[_0xeec0b(0x31c)]:{_0x482114=os(this[_0xeec0b(0x243)],this['unitID'],this[_0xeec0b(0x134)],this['_revisionService'],this[_0xeec0b(0x39b)]);break;}case H[_0xeec0b(0x30e)]:{this[_0xeec0b(0x243)][_0xeec0b(0x336)](_0x34e038=>_0x34e038['id']===_0xc37a7a['id'])?_0x482114=er(this['_pendingMutations'],this[_0xeec0b(0x22b)],this['_univerInstanceService'],this['_revisionService'],this[_0xeec0b(0x39b)]):_0x482114=os(this['_pendingMutations'],this[_0xeec0b(0x22b)],this[_0xeec0b(0x134)],this['_revisionService'],this[_0xeec0b(0x39b)]);break;}default:throw new Error(_0xeec0b(0x1c6)+this[_0xeec0b(0x354)]+'\x20in\x20_schedule.');}const {changeset:_0x43e114,pendingMutations:_0x286932}=_0x482114;this[_0xeec0b(0x1c7)]['onSendChangeset'](_0x43e114);const _0x4aec88=_0x286932['length']?this['_injector']['createInstance'](Y,this['unitID'],this['type'],_0x43e114,_0x286932,this[_0xeec0b(0x1c7)]):this[_0xeec0b(0x259)][_0xeec0b(0x31d)](q,this['unitID'],this['type'],_0x43e114,this[_0xeec0b(0x1c7)]);_0x4aec88['_updateLocalCache'](),this[_0xeec0b(0x1c7)][_0xeec0b(0x2a3)](this,_0x4aec88);},_0x522a88);}[_0x354c45(0x28d)](){const _0x3bca87=_0x354c45;var _0x54a338;return(_0x54a338=this[_0x3bca87(0x102)][_0x3bca87(0x119)](_n))!=null?_0x54a338:ln;}[_0x354c45(0xab)](){const _0x4b4144=_0x354c45;throw new Error(_0x4b4144(0x1d8));}[_0x354c45(0x28f)](){const _0x1e018c=_0x354c45;this[_0x1e018c(0x2a2)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e018c(0x2a2)]=null);}[_0x354c45(0x139)](_0x7873c2){const _0x1d2dcd=_0x354c45;return this[_0x1d2dcd(0x28f)](),this[_0x1d2dcd(0x259)][_0x1d2dcd(0x31d)](Z,this['unitID'],this[_0x1d2dcd(0x354)],null,this['_pendingMutations'],this[_0x1d2dcd(0x1c7)],_0x7873c2);}};G=ce([f(0x4,_0x229f6b(_0x3b06f9)),f(0x5,_0x229f6b(_0x2d6ffb)),f(0x6,_0x229f6b(D)),f(0x7,_0x229f6b(ne)),f(0x8,_0x4491a7),f(0x9,_0x151749),f(0xa,_0x476b70),f(0xb,_0x5c9e6a),f(0xc,_0x14d401),f(0xd,_0x13005c)],G);let q=class extends he{constructor(_0x3aa942,_0x5ed7a5,_0x6394a3,_0x12813f,_0xa73644,_0x1b053c,_0x51f6f0,_0x442fc1,_0x45cdfa,_0x490c87,_0x2575fa){const _0x1744d3=_0x354c45;super(_0x3aa942,_0x5ed7a5,_0x6394a3,[],_0x12813f,_0x442fc1,_0x2575fa,_0x1b053c,_0x51f6f0),_(this,_0x1744d3(0x185),'awaiting'),(this[_0x1744d3(0x259)]=_0xa73644,this['_logService']=_0x45cdfa,this['_transformService']=_0x490c87);}[_0x354c45(0x1b7)](_0x1b1c5b){const _0x8a29fd=_0x354c45,_0x2a8508=this[_0x8a29fd(0x259)]['createInstance'](Y,this[_0x8a29fd(0x22b)],this[_0x8a29fd(0x354)],this['_awaitingChangeset'],[_0x1b1c5b],this[_0x8a29fd(0x1c7)]);return _0x2a8508[_0x8a29fd(0x11a)](),_0x2a8508;}['onRemoteChangeset'](_0x3e3ff4){const _0xeeb9ba=_0x354c45;if(this[_0xeeb9ba(0xc3)](_0x3e3ff4))return this[_0xeeb9ba(0x259)][_0xeeb9ba(0x31d)](K,this['unitID'],this[_0xeeb9ba(0x354)],this[_0xeeb9ba(0x143)],[],null,[_0x3e3ff4],this[_0xeeb9ba(0x1c7)]);try{const _0x2a5bb2=this[_0xeeb9ba(0x351)]['transformChangesets']([_0x3e3ff4],[this[_0xeeb9ba(0x143)]],!0x1);if(_0x5cce80(_0x2a5bb2)){const {c1Prime:_0x1a4c4a,c2Prime:_0x57ce1d}=_0x2a5bb2;this[_0xeeb9ba(0x301)](_0x1a4c4a[0x0]),_0x57ce1d[0x0][_0xeeb9ba(0x33c)]=this[_0xeeb9ba(0x22d)]();const _0x5e1940=this[_0xeeb9ba(0x259)][_0xeeb9ba(0x31d)](q,this['unitID'],this[_0xeeb9ba(0x354)],_0x57ce1d[0x0],this['_handler']);return _0x5e1940[_0xeeb9ba(0x11a)](),_0x5e1940;}return this[_0xeeb9ba(0x139)](!0x1);}catch(_0x1a0e42){return this[_0xeeb9ba(0x10f)][_0xeeb9ba(0x35c)](_0x1a0e42),this[_0xeeb9ba(0x139)](!0x1);}}['onRemoteAck'](_0xc83d2e){const _0x5d327e=_0x354c45,_0x4ff3e3=this[_0x5d327e(0x3be)]['getCurrentRevForDocument'](this[_0x5d327e(0x22b)]);if(_0xc83d2e[_0x5d327e(0x345)]<_0x4ff3e3-0x1)return this;if(this['_checkMissing'](_0xc83d2e))return this['_injector'][_0x5d327e(0x31d)](K,this[_0x5d327e(0x22b)],this['type'],null,[],this[_0x5d327e(0x143)],[],this[_0x5d327e(0x1c7)]);this[_0x5d327e(0x162)]();const _0x40eb37=this[_0x5d327e(0x259)][_0x5d327e(0x31d)](Ue,this[_0x5d327e(0x22b)],this[_0x5d327e(0x354)],this['_handler']);return _0x40eb37[_0x5d327e(0x11a)](),_0x40eb37;}['onRemoteRej'](_0x1b3b4e){const _0x4dd484=_0x354c45;return this[_0x4dd484(0x139)](!!(_0x1b3b4e!=null&&_0x1b3b4e[_0x4dd484(0xba)]));}['toggleOffline'](){const _0x11714a=_0x354c45;return this[_0x11714a(0x259)]['createInstance'](Q,this[_0x11714a(0x22b)],this[_0x11714a(0x354)],this[_0x11714a(0x143)],[],this[_0x11714a(0x1c7)]);}[_0x354c45(0x1a2)](){return this;}['resend'](){const _0x4fa84d=_0x354c45;this[_0x4fa84d(0x1c7)][_0x4fa84d(0x177)](this['_awaitingChangeset']);}['_onConflict'](_0x50f837){const _0x47edbf=_0x354c45;return this['_injector'][_0x47edbf(0x31d)](Z,this[_0x47edbf(0x22b)],this['type'],this[_0x47edbf(0x143)],[],this[_0x47edbf(0x1c7)],_0x50f837);}};q=ce([f(0x4,_0x229f6b(_0x3b06f9)),f(0x5,_0x229f6b(_0x2d6ffb)),f(0x6,_0x229f6b(D)),f(0x7,_0x151749),f(0x8,_0x4491a7),f(0x9,_0x5c9e6a),f(0xa,_0x13005c)],q);let Y=class extends he{constructor(_0xded62e,_0x1a11d0,_0x170860,_0x29a786,_0x1c651f,_0x173fa5,_0x4a87e1,_0x474ad2,_0x5edcf9,_0x22dd3e,_0x2449ba,_0x44f319){const _0x3e6708=_0x354c45;super(_0xded62e,_0x1a11d0,_0x170860,_0x29a786,_0x1c651f,_0x5edcf9,_0x44f319,_0x4a87e1,_0x474ad2),_(this,'status','awaiting_with_pending'),(this[_0x3e6708(0x259)]=_0x173fa5,this[_0x3e6708(0x10f)]=_0x22dd3e,this['_transformService']=_0x2449ba);}[_0x354c45(0x1b7)](_0x52f030){const _0x35ec4a=_0x354c45;return this[_0x35ec4a(0x243)]['push'](_0x52f030),this;}[_0x354c45(0x1ba)](_0x3b16c3){const _0x1406bf=_0x354c45;if(this[_0x1406bf(0xc3)](_0x3b16c3))return this['_injector'][_0x1406bf(0x31d)](K,this['unitID'],this[_0x1406bf(0x354)],this['_awaitingChangeset'],this[_0x1406bf(0x243)],null,[_0x3b16c3],this[_0x1406bf(0x1c7)]);try{const _0x1dc894=this[_0x1406bf(0x351)][_0x1406bf(0x313)]([_0x3b16c3],[this[_0x1406bf(0x143)]],!0x1);if(_0x5cce80(_0x1dc894)){const {c1Prime:_0x42b520,c2Prime:_0x73dc5b}=_0x1dc894,_0x5c3dba=this[_0x1406bf(0x351)][_0x1406bf(0x109)](_0x42b520[0x0],this['_pendingMutations']);if(_0x14b4f5(_0x5c3dba)){const {c1Prime:_0x1dacb4,m2Prime:_0x5b901b}=_0x5c3dba;return this[_0x1406bf(0x301)](_0x1dacb4),_0x73dc5b[0x0][_0x1406bf(0x33c)]=this[_0x1406bf(0x22d)](),this[_0x1406bf(0x259)][_0x1406bf(0x31d)](Y,this[_0x1406bf(0x22b)],this[_0x1406bf(0x354)],_0x73dc5b[0x0],_0x5b901b,this[_0x1406bf(0x1c7)]);}throw _0x5c3dba[_0x1406bf(0x35c)];}throw _0x1dc894[_0x1406bf(0x35c)];}catch(_0x1f5d26){return this[_0x1406bf(0x10f)]['error'](_0x1f5d26),this[_0x1406bf(0x139)](!0x1);}}[_0x354c45(0x207)](_0x5382b8){const _0x57e902=_0x354c45;if(this[_0x57e902(0xc3)](_0x5382b8))return this[_0x57e902(0x259)][_0x57e902(0x31d)](K,this[_0x57e902(0x22b)],this[_0x57e902(0x354)],null,this[_0x57e902(0x243)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57e902(0x162)]();const _0x4d3d6c=this[_0x57e902(0x259)]['createInstance'](G,this['unitID'],this[_0x57e902(0x354)],this[_0x57e902(0x243)],this[_0x57e902(0x1c7)]);return _0x4d3d6c['_schedule'](),_0x4d3d6c[_0x57e902(0x11a)](),_0x4d3d6c;}[_0x354c45(0x178)](_0x337166){return this['_onConflict'](!!(_0x337166!=null&&_0x337166['isPermissionRej']));}['toggleOffline'](){const _0x125006=_0x354c45;return this[_0x125006(0x259)][_0x125006(0x31d)](Q,this[_0x125006(0x22b)],this[_0x125006(0x354)],this[_0x125006(0x143)],this[_0x125006(0x243)],this['_handler']);}[_0x354c45(0x1a2)](){return this;}[_0x354c45(0xab)](){const _0x50df1e=_0x354c45;this[_0x50df1e(0x1c7)]['onSendChangeset'](this[_0x50df1e(0x143)]);}['_onConflict'](_0x40c1a6){const _0x2e6710=_0x354c45;return this[_0x2e6710(0x259)]['createInstance'](Z,this[_0x2e6710(0x22b)],this[_0x2e6710(0x354)],null,this[_0x2e6710(0x243)],this[_0x2e6710(0x1c7)],_0x40c1a6);}};Y=ce([f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x229f6b(_0x2d6ffb)),f(0x7,_0x229f6b(D)),f(0x8,_0x151749),f(0x9,_0x4491a7),f(0xa,_0x5c9e6a),f(0xb,_0x13005c)],Y);let Z=class extends he{constructor(_0x46ec36,_0x503687,_0x1649de,_0x2591ad,_0x180c5d,_0x294146=!0x1,_0x4026bf,_0x50b6e4,_0x3b3c61,_0x297cde,_0x2e3daa,_0x5711e7,_0x422b05){const _0x569a47=_0x354c45;super(_0x46ec36,_0x503687,_0x1649de,_0x2591ad,_0x180c5d,_0x50b6e4,_0x3b3c61,_0x2e3daa,_0x297cde),_(this,_0x569a47(0x185),'conflict'),(this[_0x569a47(0x111)]=_0x294146,this[_0x569a47(0x155)]=_0x4026bf,this[_0x569a47(0xa4)]=_0x5711e7,this[_0x569a47(0x172)]=_0x422b05,this[_0x569a47(0x133)](),this[_0x569a47(0x2b9)](),this['_disableEditing']());}[_0x354c45(0x1b7)](){return this;}[_0x354c45(0x1ba)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x354c45(0xab)](){const _0x5b5d5d=_0x354c45;throw new Error(_0x5b5d5d(0x2b6));}['_clearLocalCache'](){const _0x207b40=_0x354c45;this[_0x207b40(0x29b)]['updateOfflineData'](this[_0x207b40(0x22b)],this['type'],null,[]);}[_0x354c45(0x133)](){const _0x3d3547=_0x354c45;this[_0x3d3547(0x111)]?this[_0x3d3547(0x172)][_0x3d3547(0x2e0)]({'title':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x1a6)),'content':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x315)),'type':_0x3d3547(0x35c),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x3d3547(0xa4)]['t']('conflict.title'),'content':this[_0x3d3547(0xa4)]['t'](_0x3d3547(0x337)),'type':_0x3d3547(0x35c),'duration':0x0});}[_0x354c45(0x129)](){const _0x5a5cb0=_0x354c45;this['_permissionService'][_0x5a5cb0(0x25a)](new _0x47313f(this['unitID'])['id'],!0x1);}};Z=ce([f(0x6,_0x229f6b(_0x4c56be)),f(0x7,_0x151749),f(0x8,_0x13005c),f(0x9,_0x229f6b(D)),f(0xa,_0x229f6b(_0x2d6ffb)),f(0xb,_0x229f6b(_0x5e486d)),f(0xc,_0x220977)],Z);let Q=class extends he{constructor(_0x113b52,_0x50dbd9,_0x15668d,_0x31842b,_0x58fb59,_0x16a56f,_0x498806,_0x5c7da8,_0x3e160f,_0x1e1eca){const _0xf82984=_0x354c45;super(_0x113b52,_0x50dbd9,_0x15668d,_0x31842b,_0x58fb59,_0x3e160f,_0x1e1eca,_0x498806,_0x5c7da8),_(this,'status',_0xf82984(0x8a)),this[_0xf82984(0x259)]=_0x16a56f;}['appendMutation'](_0x5346d0){const _0x34a0e0=_0x354c45;return this['_pendingMutations'][_0x34a0e0(0x34c)](_0x5346d0),this['_updateLocalCache'](),this;}[_0x354c45(0x1ba)](_0x5de083){const _0x102ba7=_0x354c45;throw new Error(_0x102ba7(0x31f));}['onRemoteAck'](){const _0x1ee062=_0x354c45;throw new Error(_0x1ee062(0xce));}[_0x354c45(0x178)](){const _0x3dd632=_0x354c45;throw new Error(_0x3dd632(0x269));}[_0x354c45(0x292)](){return this;}[_0x354c45(0x1a2)](){const _0x43cc6d=_0x354c45,{_injector:_0x6a7b0,_pendingMutations:_0x429213,_awaitingChangeset:_0x4fc99a,unitID:_0x2f4f1c,_handler:_0xd2f0f7,type:_0x50778f}=this,_0xf26c49=Ls(_0x6a7b0,_0x2f4f1c,_0x50778f,_0x4fc99a,_0x429213,_0xd2f0f7);return _0xf26c49 instanceof G?_0xf26c49['_schedule']():(_0xf26c49 instanceof Y||_0xf26c49 instanceof q)&&_0xf26c49[_0x43cc6d(0xab)](),_0xf26c49;}[_0x354c45(0xab)](){const _0xf36e5d=_0x354c45;throw new Error(_0xf36e5d(0x2d9));}};Q=ce([f(0x5,_0x229f6b(_0x3b06f9)),f(0x6,_0x229f6b(_0x2d6ffb)),f(0x7,_0x229f6b(D)),f(0x8,_0x151749),f(0x9,_0x13005c)],Q);let K=class extends he{constructor(_0x11add5,_0x53c5df,_0x1045c4,_0x2bd866,_0x473266,_0x5eb8a2,_0x558977,_0x14026c,_0x3f5d87,_0x2d9ba5,_0x3e00cb,_0x4122a7,_0x1fa101,_0x25dde5){const _0x4f3259=_0x354c45;super(_0x11add5,_0x53c5df,_0x1045c4,_0x2bd866,_0x558977,_0x4122a7,_0x1fa101,_0x3f5d87,_0x2d9ba5),_(this,'status',_0x4f3259(0xdf)),(this[_0x4f3259(0x2c9)]=_0x473266,this[_0x4f3259(0x16a)]=_0x5eb8a2,this[_0x4f3259(0x259)]=_0x14026c,this['_logService']=_0x3e00cb,this[_0x4f3259(0x351)]=_0x25dde5);}[_0x354c45(0x1bd)](_0x1bc20c){const _0x55d574=_0x354c45;try{const _0x44d04a=[..._0x1bc20c,...this['_queuedRemoteChangesets']],_0x2800d2=[this[_0x55d574(0x143)]||this[_0x55d574(0x2c9)]]['filter'](_0x4c0e12=>!!_0x4c0e12);let _0x5123de,_0x33b4b5;if(_0x2800d2[_0x55d574(0x16f)]){const _0x4cdc74=this['_transformService']['transformChangesets'](_0x44d04a,_0x2800d2,!0x1);if(!_0x5cce80(_0x4cdc74))throw _0x4cdc74[_0x55d574(0x35c)];_0x5123de=_0x4cdc74[_0x55d574(0x235)],_0x33b4b5=_0x4cdc74[_0x55d574(0x19e)];}else _0x5123de=_0x44d04a,_0x33b4b5=[];let _0x47ed91=this['_pendingMutations'];_0x5123de[_0x55d574(0x18d)](_0x304a43=>{const _0x80e66a=_0x55d574;let _0xb30d12;if(_0x47ed91['length']){const _0x1d4c70=this[_0x80e66a(0x351)][_0x80e66a(0x109)](_0x304a43,_0x47ed91);if(!_0x14b4f5(_0x1d4c70))throw _0x1d4c70[_0x80e66a(0x35c)];_0xb30d12=_0x1d4c70[_0x80e66a(0x235)],_0x47ed91=_0x1d4c70['m2Prime'];}else _0xb30d12=_0x304a43;this[_0x80e66a(0x301)](_0xb30d12);}),this[_0x55d574(0x2c9)]&&this[_0x55d574(0x162)](),this[_0x55d574(0x143)]&&_0x33b4b5[_0x55d574(0x16f)]&&(_0x33b4b5[0x0][_0x55d574(0x33c)]=this[_0x55d574(0x22d)]());let _0x556e94;if(this['_awaitingChangeset']&&_0x47ed91[_0x55d574(0x16f)]!==0x0)_0x556e94=this[_0x55d574(0x259)][_0x55d574(0x31d)](Y,this['unitID'],this['type'],_0x33b4b5[0x0],_0x47ed91,this[_0x55d574(0x1c7)]);else{if(this[_0x55d574(0x143)]&&_0x47ed91['length']===0x0)_0x33b4b5[0x0][_0x55d574(0x33c)]=this[_0x55d574(0x22d)](),_0x556e94=this[_0x55d574(0x259)]['createInstance'](q,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],_0x33b4b5[0x0],this['_handler']);else{if(_0x47ed91[_0x55d574(0x16f)]!==0x0){const _0x37856d=this['_injector'][_0x55d574(0x31d)](G,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],_0x47ed91,this['_handler']);_0x37856d[_0x55d574(0x274)](),_0x556e94=_0x37856d;}else _0x556e94=this[_0x55d574(0x259)]['createInstance'](Ue,this[_0x55d574(0x22b)],this[_0x55d574(0x354)],this[_0x55d574(0x1c7)]);}}return _0x556e94[_0x55d574(0x11a)](),_0x556e94;}catch(_0x5198f1){return this['_logService'][_0x55d574(0x35c)](_0x55d574(0x229),_0x55d574(0x318),_0x5198f1),this[_0x55d574(0x259)][_0x55d574(0x31d)](Z,this[_0x55d574(0x22b)],this['type'],this[_0x55d574(0x143)],this[_0x55d574(0x243)],this[_0x55d574(0x1c7)],!0x1);}}[_0x354c45(0xab)](){const _0x5941a9=_0x354c45;throw new Error(_0x5941a9(0x26c));}[_0x354c45(0x1b7)](_0x18c5ec){const _0x54390b=_0x354c45;return this['_pendingMutations'][_0x54390b(0x34c)](_0x18c5ec),this;}['onRemoteChangeset'](_0x4df6b0){const _0x113270=_0x354c45;return this['_queuedRemoteChangesets'][_0x113270(0x34c)](_0x4df6b0),this;}['onRemoteAck'](_0xb606a9){const _0x1da15d=_0x354c45;if(this['_awaitingChangeset'])return this[_0x1da15d(0x2c9)]=this['_awaitingChangeset'],this[_0x1da15d(0x143)]=null,this;throw new Error(_0x1da15d(0x212));}[_0x354c45(0x178)](_0x279281){const _0x1a4021=_0x354c45;return this[_0x1a4021(0x139)](!!(_0x279281!=null&&_0x279281['isPermissionRej']));}[_0x354c45(0x292)](){const _0x26ca15=_0x354c45;return this['_injector'][_0x26ca15(0x31d)](Q,this[_0x26ca15(0x22b)],this[_0x26ca15(0x354)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x354c45(0x1a2)](){return this;}[_0x354c45(0x139)](_0x2ffdb3){const _0x48585c=_0x354c45;return this['_injector'][_0x48585c(0x31d)](Z,this['unitID'],this[_0x48585c(0x354)],this[_0x48585c(0x143)],this[_0x48585c(0x243)],this['_handler'],_0x2ffdb3);}};K=ce([f(0x7,_0x229f6b(_0x3b06f9)),f(0x8,_0x229f6b(_0x2d6ffb)),f(0x9,_0x229f6b(D)),f(0xa,_0x4491a7),f(0xb,_0x151749),f(0xc,_0x13005c),f(0xd,_0x5c9e6a)],K);function Ls(_0x43c8ec,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x23b6fe,_0x5f574c){const _0x364763=_0x354c45;return _0x2ea1f3&&_0x23b6fe['length']?_0x43c8ec[_0x364763(0x31d)](Y,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x23b6fe,_0x5f574c):_0x2ea1f3?_0x43c8ec[_0x364763(0x31d)](q,_0xd585bb,_0x5424b3,_0x2ea1f3,_0x5f574c):_0x23b6fe['length']?_0x43c8ec[_0x364763(0x31d)](G,_0xd585bb,_0x5424b3,_0x23b6fe,_0x5f574c):_0x43c8ec[_0x364763(0x31d)](Ue,_0xd585bb,_0x5424b3,_0x5f574c);}var nr=Object[_0x354c45(0xa3)],rr=Object[_0x354c45(0x3cf)],st=(_0x380b0b,_0x8fc647,_0x2ddc08,_0x28d9bd)=>{const _0x5d43aa=_0x354c45;for(var _0x38822c=_0x28d9bd>0x1?void 0x0:_0x28d9bd?rr(_0x8fc647,_0x2ddc08):_0x8fc647,_0x4e412b=_0x380b0b[_0x5d43aa(0x16f)]-0x1,_0x505359;_0x4e412b>=0x0;_0x4e412b--)(_0x505359=_0x380b0b[_0x4e412b])&&(_0x38822c=(_0x28d9bd?_0x505359(_0x8fc647,_0x2ddc08,_0x38822c):_0x505359(_0x38822c))||_0x38822c);return _0x28d9bd&&_0x38822c&&nr(_0x8fc647,_0x2ddc08,_0x38822c),_0x38822c;},p=(_0x33db7c,_0x5a0647)=>(_0x2c6cc7,_0x4b67d9)=>_0x5a0647(_0x2c6cc7,_0x4b67d9,_0x33db7c);let Me=class extends _0x5aeadb{constructor(_0x460fdd,_0x3fb696,_0x48522f){const _0x1e6d5e=_0x354c45;super(),_(this,_0x1e6d5e(0x2f0),new Map()),_(this,_0x1e6d5e(0x35b),new _0x2b4845()),(this['_injector']=_0x460fdd,this[_0x1e6d5e(0x184)]=_0x3fb696,this[_0x1e6d5e(0x134)]=_0x48522f,this['_init']());}[_0x354c45(0x220)](){const _0x1611c3=_0x354c45;super[_0x1611c3(0x220)](),this[_0x1611c3(0x2f0)][_0x1611c3(0x18d)](_0x1ec52d=>_0x1ec52d[_0x1611c3(0x220)]()),this[_0x1611c3(0x2f0)]['clear']();}[_0x354c45(0x165)](_0x54fc99){const _0x6e4421=_0x354c45;var _0x3d0700;return(_0x3d0700=this[_0x6e4421(0x2f0)][_0x6e4421(0x309)](_0x54fc99))!=null?_0x3d0700:null;}[_0x354c45(0x25f)](_0x4ccd0c){const _0x5c916d=_0x354c45,_0x3741ff=this[_0x5c916d(0x165)](_0x4ccd0c);return _0x3741ff?_0x186ef7(_0x3741ff):this[_0x5c916d(0x35b)]['pipe'](_0x2a5de4(_0x29895c=>_0x29895c[_0x5c916d(0x22b)]===_0x4ccd0c));}['_init'](){const _0x32e453=_0x354c45;this['_univerInstanceService'][_0x32e453(0xcc)](_0x380445['UNIVER_SHEET'])['pipe'](_0x60ccde(this[_0x32e453(0x1a1)]),_0x304b5e(0x10))[_0x32e453(0x37e)](async _0x6d2374=>{const _0x53aaf6=_0x32e453,_0x3f1297=_0x6d2374[_0x53aaf6(0x3a7)](),_0x15079a=await this[_0x53aaf6(0x3b0)](_0x3f1297,H[_0x53aaf6(0x31c)]);this[_0x53aaf6(0x2f0)][_0x53aaf6(0xdd)](_0x3f1297,_0x15079a);}),this['_univerInstanceService'][_0x32e453(0xcc)](_0x380445[_0x32e453(0x30e)])[_0x32e453(0x1e1)](_0x60ccde(this[_0x32e453(0x1a1)]),_0x304b5e(0x10))[_0x32e453(0x1e1)](_0x2a5de4(_0x3a2f31=>!_0x3a2f31[_0x32e453(0x3a7)]()['startsWith']('__')))[_0x32e453(0x37e)](async _0x18b8f8=>{const _0x5b2009=_0x32e453,_0x5bb09d=_0x18b8f8[_0x5b2009(0x3a7)](),_0x2d6de2=await this[_0x5b2009(0x3b0)](_0x5bb09d,H[_0x5b2009(0x30e)]);this[_0x5b2009(0x2f0)][_0x5b2009(0xdd)](_0x5bb09d,_0x2d6de2);}),_0x5b30b2(this[_0x32e453(0x134)][_0x32e453(0x38d)](_0x380445[_0x32e453(0x31c)]),this[_0x32e453(0x134)][_0x32e453(0x38d)](_0x380445[_0x32e453(0x30e)]))['pipe'](_0x60ccde(this[_0x32e453(0x1a1)]))['subscribe'](_0x4d438f=>{const _0x3c5707=_0x32e453,_0x294dd7=_0x4d438f['getUnitId'](),_0x47e538=this[_0x3c5707(0x2f0)][_0x3c5707(0x309)](_0x294dd7);_0x47e538&&(_0x47e538[_0x3c5707(0x220)](),this[_0x3c5707(0x2f0)][_0x3c5707(0x33a)](_0x294dd7));});}async[_0x354c45(0x3b0)](_0x3044dd,_0x88e432){const _0x61a769=_0x354c45,_0x12e997=await this[_0x61a769(0x184)][_0x61a769(0x258)](_0x3044dd),_0x423018=this[_0x61a769(0x259)][_0x61a769(0x31d)](this[_0x61a769(0x397)](_0x88e432),_0x3044dd,_0x88e432,_0x12e997);return await _0x423018['init'](),this['_entityInit$']['next'](_0x423018),_0x423018;}[_0x354c45(0x397)](_0x213618){const _0x4e7b82=_0x354c45;switch(_0x213618){case H[_0x4e7b82(0x30e)]:return Et;case H[_0x4e7b82(0x31c)]:return Ct;default:throw new Error(_0x4e7b82(0x23d)+_0x213618);}}};Me=st([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],Me),p(0x0,_0x229f6b(_0x3b06f9)),p(0x1,_0x229f6b(pe)),p(0x2,_0x14d401)],Me);let Ze=class extends _0x5aeadb{constructor(_0xb9727b,_0x39fee2,_0x4cedc2,_0x2eb425,_0x3bcaf7,_0x56e349,_0x4317cc,_0x5541a1,_0xabdc9c,_0x2e9562,_0x14b7b,_0x42312f,_0x4889a8){const _0x3f56eb=_0x354c45;super(),_(this,_0x3f56eb(0x383),new _0x421821(null)),_(this,_0x3f56eb(0x395),this[_0x3f56eb(0x383)][_0x3f56eb(0x209)]()),_(this,'_state'),_(this,_0x3f56eb(0x190),!0x1),_(this,'status$',this[_0x3f56eb(0x395)][_0x3f56eb(0x1e1)](_0x1b7b12(_0x542146=>_0x542146?_0x542146[_0x3f56eb(0x185)]:P[_0x3f56eb(0x3c0)]),_0x49a543(0x1))),_(this,_0x3f56eb(0x159),!0x1),_(this,_0x3f56eb(0x2d4),[]),(this[_0x3f56eb(0x22b)]=_0xb9727b,this[_0x3f56eb(0x353)]=_0x39fee2,this['_session']=_0x4cedc2,this['_injector']=_0x2eb425,this['_localCacheService']=_0x3bcaf7,this[_0x3f56eb(0x1bb)]=_0x56e349,this[_0x3f56eb(0xa4)]=_0x4317cc,this[_0x3f56eb(0x3be)]=_0x5541a1,this[_0x3f56eb(0x10f)]=_0xabdc9c,this['_commandService']=_0x2e9562,this['_messageService']=_0x14b7b,this['_permissionService']=_0x42312f,this[_0x3f56eb(0x23e)]=_0x4889a8);}get['state'](){return this['_state'];}async[_0x354c45(0x1ce)](){const _0x54674d=_0x354c45;if(this[_0x54674d(0x2b0)])throw new Error(_0x54674d(0x2ab));await this[_0x54674d(0x330)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x681995(()=>{const _0x1fde2=_0x5b0c;this['_collaborationPaused']=!0x1,this[_0x1fde2(0x14e)]();});}[_0x354c45(0x2ed)](_0x1ff250){const _0x4efcf6=_0x354c45;this[_0x4efcf6(0x2b5)]=_0x1ff250,this['_state$']['next'](_0x1ff250);}async[_0x354c45(0x330)](){const _0xa9db90=_0x354c45;var _0x2951d1;return this['_updateState'](await this['_createInitialState']()),this[_0xa9db90(0x23e)]&&((_0x2951d1=this[_0xa9db90(0x23e)])==null||_0x2951d1[_0xa9db90(0x174)](this[_0xa9db90(0x22b)]),this[_0xa9db90(0x1a0)](_0x681995(this['_singleActiveUnitService'][_0xa9db90(0x358)](this[_0xa9db90(0x22b)])[_0xa9db90(0x37e)](_0x1d620d=>{const _0x1ed0de=_0xa9db90;this[_0x1ed0de(0x10f)][_0x1ed0de(0x1cd)](_0x1ed0de(0x328),_0x1ed0de(0x2f7),_0x1d620d),_0x1d620d===Us[_0x1ed0de(0x255)]?(this[_0x1ed0de(0x1c1)][_0x1ed0de(0x2e0)]({'content':this[_0x1ed0de(0xa4)]['t'](_0x1ed0de(0x16d)),'type':_0x1679e9[_0x1ed0de(0x31a)]}),this[_0x1ed0de(0x155)]['updatePermissionPoint'](new _0x47313f(this[_0x1ed0de(0x22b)])['id'],!0x1)):this[_0x1ed0de(0x155)][_0x1ed0de(0x25a)](new _0x47313f(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x681995(this['_session'][_0xa9db90(0x3d6)][_0xa9db90(0x37e)](_0x3f14cb=>{const _0x257731=_0xa9db90;_0x3f14cb===fe[_0x257731(0x10e)]?this[_0x257731(0x2cf)]():_0x3f14cb===fe[_0x257731(0x3c0)]&&this[_0x257731(0x96)]();}))),this['disposeWithMe'](_0x681995(this[_0xa9db90(0x2fa)][_0xa9db90(0x2c5)][_0xa9db90(0x37e)](_0x27954d=>{const _0x43ed8f=_0xa9db90;try{switch(_0x27954d[_0x43ed8f(0x2d3)]){case _0x363b50[_0x43ed8f(0x19b)]:{this['_onRemoteChangeset'](_0x1517b2(_0x27954d[_0x43ed8f(0x385)]));break;}case _0x363b50['CHANGESET_ACK']:{this[_0x43ed8f(0x183)](_0x27954d[_0x43ed8f(0x385)]);break;}case _0x363b50['CHANGESET_REJ']:{this[_0x43ed8f(0x221)]();break;}case _0x363b50[_0x43ed8f(0xa8)]:{this['_onFetchMissResult'](_0x27954d[_0x43ed8f(0x385)][_0x43ed8f(0x362)][_0x43ed8f(0x39f)](_0x2bd7f4=>_0x1517b2(_0x2bd7f4)));break;}case _0x363b50[_0x43ed8f(0x14f)]:this[_0x43ed8f(0x221)]({'isPermissionRej':!0x0});}}catch(_0x3bca18){throw console[_0x43ed8f(0x35c)](_0x43ed8f(0x27b),_0x3bca18),_0x3bca18;}}))),this['_state'];}[_0x354c45(0xb9)](){const _0x5702d5=_0x354c45;this[_0x5702d5(0x159)]=!0x1;}[_0x354c45(0x335)](){const _0x2604fb=_0x354c45;if(this[_0x2604fb(0x159)])throw new Error(_0x2604fb(0x1ab));this[_0x2604fb(0x159)]=!0x0;}[_0x354c45(0x10c)](_0x2d0528){const _0x3135b7=_0x354c45;this[_0x3135b7(0x335)](),this[_0x3135b7(0x2ed)](this[_0x3135b7(0x2b5)][_0x3135b7(0x1b7)](_0x2d0528)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x56b866){const _0x252123=_0x354c45;if(!(_0x56b866[_0x252123(0x345)]<=this['_revisionService'][_0x252123(0x82)](this['unitID']))){if(this[_0x252123(0x190)]){this[_0x252123(0x2d4)][_0x252123(0x34c)](_0x56b866);return;}this[_0x252123(0x1fb)](_0x56b866);}}[_0x354c45(0x14e)](){const _0x41508b=_0x354c45;this[_0x41508b(0x2d4)]['forEach'](_0x26236b=>this['_applyRemoteChangeset'](_0x26236b)),this['_remoteChangesetQueue']=[];}[_0x354c45(0x1fb)](_0x2f6c20){const _0x3e7dca=_0x354c45,_0x12bce9=this['_compressMutationService'][_0x3e7dca(0x323)][_0x3e7dca(0x287)](this[_0x3e7dca(0x1bb)][_0x3e7dca(0x323)][_0x3e7dca(0x27f)]()[_0x3e7dca(0x2e4)])(_0x2f6c20[_0x3e7dca(0x11e)],null)||_0x2f6c20[_0x3e7dca(0x11e)],_0x17c65b={..._0x2f6c20,'mutations':_0x12bce9};this[_0x3e7dca(0x335)](),this[_0x3e7dca(0x2ed)](this['_state']['onRemoteChangeset'](_0x17c65b)),this[_0x3e7dca(0xb9)]();}[_0x354c45(0x183)](_0x3b81f6){const _0x184907=_0x354c45;this['_lockTransition'](),this[_0x184907(0x2ed)](this['_state'][_0x184907(0x207)](_0x3b81f6)),this[_0x184907(0xb9)]();}['_onRemoteRejected'](_0x2f1da6){const _0x52f3d7=_0x354c45;this[_0x52f3d7(0x335)](),this[_0x52f3d7(0x2ed)](this[_0x52f3d7(0x2b5)][_0x52f3d7(0x178)](_0x2f1da6)),this[_0x52f3d7(0xb9)]();}[_0x354c45(0x32f)](_0x4e170b){const _0x4f9f70=_0x354c45;if(!(this[_0x4f9f70(0x2b5)]instanceof K))throw new TypeError(_0x4f9f70(0x22a));const _0x3d2bf4=_0x4e170b[_0x4f9f70(0x39f)](_0x2a8d5a=>{const _0x667fe8=_0x4f9f70,_0x5b3edb=this[_0x667fe8(0x1bb)][_0x667fe8(0x323)][_0x667fe8(0x287)](this[_0x667fe8(0x1bb)][_0x667fe8(0x323)][_0x667fe8(0x27f)]()[_0x667fe8(0x2e4)])(_0x2a8d5a[_0x667fe8(0x11e)],null)||_0x2a8d5a['mutations'];return{..._0x2a8d5a,'mutations':_0x5b3edb};});this[_0x4f9f70(0x335)](),this[_0x4f9f70(0x2ed)](this[_0x4f9f70(0x2b5)][_0x4f9f70(0x1bd)](_0x3d2bf4)),this[_0x4f9f70(0xb9)]();}[_0x354c45(0x96)](){const _0x48c902=_0x354c45;this[_0x48c902(0x335)](),this[_0x48c902(0x2ed)](this[_0x48c902(0x2b5)]['toggleOffline']()),this[_0x48c902(0xb9)]();}[_0x354c45(0x2cf)](){const _0x53f523=_0x354c45;this[_0x53f523(0x335)](),this[_0x53f523(0x2ed)](this[_0x53f523(0x2b5)][_0x53f523(0x1a2)]()),this[_0x53f523(0xb9)]();}async[_0x354c45(0xa2)](){return new Promise(_0x18f50f=>{const _0x832f0d=_0x5b0c;this['_session'][_0x832f0d(0x3d6)][_0x832f0d(0x1e1)](_0x518ec2(0x1))[_0x832f0d(0x37e)](async _0x1bd27c=>{const _0x56785f=_0x832f0d;_0x18f50f(await this[_0x56785f(0x21c)](_0x1bd27c===fe[_0x56785f(0x10e)]));});});}[_0x354c45(0x348)](){const _0x3087a4=_0x354c45,_0x381ce8=this[_0x3087a4(0x22b)];return{'onStateChange':(_0x35323a,_0x396c8e)=>{const _0x278ca2=_0x3087a4;if(_0x35323a!==this[_0x278ca2(0x2b5)])throw new Error(_0x278ca2(0x210)+_0x35323a[_0x278ca2(0x185)]+_0x278ca2(0x115)+_0x396c8e[_0x278ca2(0x185)]+_0x278ca2(0x1f0)+this[_0x278ca2(0x2b5)][_0x278ca2(0x185)]);this['_updateState'](_0x396c8e);},'onSendChangeset':_0x516c30=>{const _0x370cc7=_0x3087a4,_0x29077c={'eventID':_0x363b50[_0x370cc7(0x3d5)],'data':{'unitID':_0x516c30['unitID'],'unitType':this[_0x370cc7(0x353)],'changeset':_0x516c30,'memberID':this[_0x370cc7(0x2fa)][_0x370cc7(0x2f6)]()}};this[_0x370cc7(0x2fa)][_0x370cc7(0x3b4)](_0x29077c,this['unitID']);},'onMissingChangesets':({from:_0x174c47,to:_0x3363f2})=>{const _0x589637=_0x3087a4;this['_logService'][_0x589637(0x1cd)](_0x589637(0x328),_0x589637(0x27c)+_0x174c47+_0x589637(0x175)+_0x3363f2);const _0x31a1a3={'eventID':_0x363b50[_0x589637(0x114)],'data':{'unitID':_0x381ce8,'unitType':this['_type'],'from':_0x174c47,'to':_0x3363f2}};this[_0x589637(0x2fa)][_0x589637(0x3b4)](_0x31a1a3,this[_0x589637(0x22b)]);}};}async[_0x354c45(0x21c)](_0x560519){const _0x3dcd38=_0x354c45;var _0x42ab9a,_0x4576c0;const _0x4aaab7=await this[_0x3dcd38(0x29b)][_0x3dcd38(0x179)](this['unitID']),_0x406480=(_0x42ab9a=_0x4aaab7==null?void 0x0:_0x4aaab7[_0x3dcd38(0x11e)])!=null?_0x42ab9a:[],_0x5b7cfb=(_0x4576c0=_0x4aaab7==null?void 0x0:_0x4aaab7['awaitingChangeset'])!=null?_0x4576c0:null,_0x17717f=this[_0x3dcd38(0x22b)];try{this['_replayCachedMutations'](_0x5b7cfb,_0x406480);}catch(_0x137586){this[_0x3dcd38(0x10f)]['error'](_0x137586);}const _0x14781a=this['_createHandler']();if(_0x560519){const _0xeab677=Ls(this[_0x3dcd38(0x259)],_0x17717f,this[_0x3dcd38(0x353)],_0x5b7cfb,_0x406480,_0x14781a);return _0xeab677 instanceof G?_0xeab677['_schedule']():(_0xeab677 instanceof Y||_0xeab677 instanceof q)&&_0xeab677[_0x3dcd38(0xab)](),_0xeab677;}return this['_injector'][_0x3dcd38(0x31d)](Q,_0x17717f,this[_0x3dcd38(0x353)],_0x5b7cfb,_0x406480,_0x14781a);}[_0x354c45(0x2cd)](_0x5749e0,_0x3fb3dc){const _0x5d64b7=_0x354c45;var _0x58d16b,_0x4cf0cc;const _0xd9faec=this[_0x5d64b7(0x1bb)][_0x5d64b7(0x323)][_0x5d64b7(0x287)](this['_compressMutationService'][_0x5d64b7(0x323)][_0x5d64b7(0x27f)]()['COMPRESS_MUTATION_APPLY']);(_0x58d16b=_0xd9faec((_0x5749e0==null?void 0x0:_0x5749e0['mutations'])||[],null))==null||_0x58d16b['forEach'](_0x280b85=>this['_commandService'][_0x5d64b7(0x2ef)](_0x280b85['id'],_0x280b85['params'])),(_0x4cf0cc=_0xd9faec(_0x3fb3dc||[],null))==null||_0x4cf0cc[_0x5d64b7(0x18d)](_0x49fd91=>this[_0x5d64b7(0x19f)]['executeCommand'](_0x49fd91['id'],_0x49fd91[_0x5d64b7(0x29e)]));}};Ze=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x4491a7),p(0x9,_0x151749),p(0xa,_0x5963f9),p(0xb,_0x4c56be),p(0xc,_0x1ed7ac(tt))],Ze);let Et=class extends Ze{constructor(_0x14b1b5,_0x311526,_0x567458,_0x2059d9,_0x47f6e6,_0x372f0f,_0x5e9538,_0x111c1b,_0x5dffc9,_0x45fe12,_0xdddfe4,_0xdb181d,_0x336e24,_0x66ba41,_0x5e34f2,_0x3d920c,_0x3e3586){const _0x1b156f=_0x354c45;super(_0x14b1b5,_0x311526,_0x567458,_0x2059d9,_0x47f6e6,_0x372f0f,_0x5e9538,_0x111c1b,_0x336e24,_0x66ba41,_0x5e34f2,_0x3d920c,_0x3e3586),this['unitID']=_0x14b1b5,this['type']=_0x311526,this[_0x1b156f(0x3c3)]=_0x567458,this[_0x1b156f(0x196)]=_0x5dffc9,this[_0x1b156f(0x278)]=_0x45fe12,this['_docTransformSelectionsService']=_0xdddfe4,this[_0x1b156f(0x3c9)]=_0xdb181d;}[_0x354c45(0x348)](){const _0x139aaa=_0x354c45,_0x2b1384=super[_0x139aaa(0x348)]();return _0x2b1384[_0x139aaa(0x145)]=_0x4c63d1=>this['_docTransformIMECacheService'][_0x139aaa(0x2f5)](_0x4c63d1),_0x2b1384[_0x139aaa(0x2ad)]=_0x47728e=>this[_0x139aaa(0x105)][_0x139aaa(0x3b1)](_0x47728e),_0x2b1384['onSyncEditingCollabCursor']=_0x2bd154=>this[_0x139aaa(0x3c9)]['syncEditingCollabCursor'](_0x2bd154),_0x2b1384[_0x139aaa(0x366)]=_0x275d67=>this[_0x139aaa(0x278)][_0x139aaa(0x1df)](_0x275d67),_0x2b1384;}async[_0x354c45(0x330)](){const _0x2d988f=_0x354c45,_0x5d81e1=await super[_0x2d988f(0x330)]();return this[_0x2d988f(0x1a0)](this['_commandService']['onCommandExecuted']((_0xfa90b2,_0x5ab1f3)=>{const _0x249a9f=_0x2d988f;if(_0xfa90b2[_0x249a9f(0x354)]!==_0x3b75d4[_0x249a9f(0x231)]||_0x5ab1f3!=null&&_0x5ab1f3[_0x249a9f(0x10d)]||_0x5ab1f3!=null&&_0x5ab1f3[_0x249a9f(0xb8)])return;const _0x21dcab=_0xfa90b2['params'];if((_0x21dcab==null?void 0x0:_0x21dcab[_0x249a9f(0x393)])!==this[_0x249a9f(0x22b)])return;let _0x5e9c0a=_0xfa90b2;if(_0x5e9c0a['id']===_0xc37a7a['id']){const _0x307249=_0x5e9c0a[_0x249a9f(0x29e)];_0x5e9c0a={'id':_0xc37a7a['id'],'type':_0x3b75d4[_0x249a9f(0x231)],'params':{'unitId':_0x307249[_0x249a9f(0x393)],'actions':_0x307249[_0x249a9f(0x199)],'textRanges':null}};}const _0x272433=this[_0x249a9f(0x1bb)][_0x249a9f(0x323)][_0x249a9f(0x287)](this['_compressMutationService'][_0x249a9f(0x323)]['getInterceptPoints']()[_0x249a9f(0x1f9)])([_0x5e9c0a],null)||[_0x5e9c0a];this[_0x249a9f(0x10c)](_0x272433[0x0]);})),_0x5d81e1;}};Et=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x229f6b(_0x552f88)),p(0x9,_0x229f6b(Je)),p(0xa,_0x229f6b(ze)),p(0xb,_0x229f6b(xt)),p(0xc,_0x4491a7),p(0xd,_0x151749),p(0xe,_0x5963f9),p(0xf,_0x4c56be),p(0x10,_0x1ed7ac(tt))],Et);let Ct=class extends Ze{constructor(_0x3752f2,_0x10f095,_0x465786,_0xa6151d,_0x2718d9,_0x4a74e1,_0xd0e83a,_0x3c619c,_0x41ecef,_0x14154f,_0x357f29,_0x1ab012,_0x48608d,_0x5b80a8){const _0x3c6331=_0x354c45;super(_0x3752f2,_0x10f095,_0x465786,_0xa6151d,_0x2718d9,_0x4a74e1,_0xd0e83a,_0x3c619c,_0x14154f,_0x357f29,_0x1ab012,_0x48608d,_0x5b80a8),this[_0x3c6331(0x22b)]=_0x3752f2,this[_0x3c6331(0x354)]=_0x10f095,this['session']=_0x465786,this[_0x3c6331(0x17c)]=_0x41ecef;}[_0x354c45(0x348)](){const _0x2e37ba=_0x354c45,_0x28ea72=super[_0x2e37ba(0x348)]();return _0x28ea72[_0x2e37ba(0x2ad)]=_0x208db5=>this[_0x2e37ba(0x17c)][_0x2e37ba(0x3b1)](_0x208db5),_0x28ea72;}async[_0x354c45(0x330)](){const _0x14ddb6=_0x354c45,_0x132174=await super[_0x14ddb6(0x330)]();return this['disposeWithMe'](this[_0x14ddb6(0x19f)][_0x14ddb6(0x372)]((_0x1475d0,_0x48da4e)=>{const _0x1b5576=_0x14ddb6;if(_0x1475d0[_0x1b5576(0x354)]!==_0x3b75d4[_0x1b5576(0x231)]||_0x48da4e!=null&&_0x48da4e[_0x1b5576(0x10d)]||_0x48da4e!=null&&_0x48da4e[_0x1b5576(0xb8)])return;const _0x58d4e6=_0x1475d0['params'];if((_0x58d4e6==null?void 0x0:_0x58d4e6[_0x1b5576(0x393)])!==this['unitID'])return;const _0x56234a=_0x1475d0,_0x20d887=this[_0x1b5576(0x1bb)][_0x1b5576(0x323)][_0x1b5576(0x287)](this[_0x1b5576(0x1bb)][_0x1b5576(0x323)][_0x1b5576(0x27f)]()[_0x1b5576(0x1f9)])([_0x56234a],null)||[_0x56234a];this[_0x1b5576(0x10c)](_0x20d887[0x0]);})),_0x132174;}};Ct=st([p(0x3,_0x229f6b(_0x3b06f9)),p(0x4,_0x229f6b(D)),p(0x5,_0x229f6b(_0x182351)),p(0x6,_0x229f6b(_0x5e486d)),p(0x7,_0x229f6b(_0x2d6ffb)),p(0x8,_0x229f6b(qe)),p(0x9,_0x4491a7),p(0xa,_0x151749),p(0xb,_0x5963f9),p(0xc,_0x4c56be),p(0xd,_0x1ed7ac(tt))],Ct);const as=[_0x354c45(0x3c2),'jiqing500',_0x354c45(0x30b),_0x354c45(0xea),_0x354c45(0x22c),_0x354c45(0x12c)];class Ht extends _0x48941f{constructor(){const _0x22127c=_0x354c45;super(...arguments),_(this,_0x22127c(0x203),new Map()),_(this,_0x22127c(0x25b),0x0);}[_0x354c45(0x9e)](_0x239d37){const _0x377c84=_0x354c45;if(this[_0x377c84(0x203)][_0x377c84(0x340)](_0x239d37))return this[_0x377c84(0x203)][_0x377c84(0x309)](_0x239d37);const _0x2ee321=as[this[_0x377c84(0x25b)]];return this[_0x377c84(0x25b)]=(this['_colorIndex']+0x1)%as[_0x377c84(0x16f)],this['_assignedColors'][_0x377c84(0xdd)](_0x239d37,_0x2ee321),_0x2ee321;}}var or=Object['defineProperty'],ar=Object[_0x354c45(0x3cf)],cr=(_0x25efb0,_0x18b171,_0x36dc9d,_0x21657c)=>{const _0x13e3e5=_0x354c45;for(var _0x476959=_0x21657c>0x1?void 0x0:_0x21657c?ar(_0x18b171,_0x36dc9d):_0x18b171,_0x122e68=_0x25efb0[_0x13e3e5(0x16f)]-0x1,_0x346a6c;_0x122e68>=0x0;_0x122e68--)(_0x346a6c=_0x25efb0[_0x122e68])&&(_0x476959=(_0x21657c?_0x346a6c(_0x18b171,_0x36dc9d,_0x476959):_0x346a6c(_0x476959))||_0x476959);return _0x21657c&&_0x476959&&or(_0x18b171,_0x36dc9d,_0x476959),_0x476959;},le=(_0x10519b,_0x4bd79a)=>(_0x5c07f7,_0x2b9f0d)=>_0x4bd79a(_0x5c07f7,_0x2b9f0d,_0x10519b);const hr=0x12c,_r=0x64,lr=()=>{let _0x42dda3=[],_0x2d23d0=!0x1;return _0x257dc9=>{_0x42dda3['push'](_0x257dc9),_0x2d23d0||(_0x2d23d0=!0x0,setTimeout(()=>{const _0x3c4663=_0x5b0c;_0x42dda3[_0x3c4663(0x18d)](_0x11e2bc=>_0x11e2bc()),_0x42dda3=[],_0x2d23d0=!0x1;}));};};let bt=class extends _0x5aeadb{constructor(_0xa71863,_0x2617cf,_0x198054,_0x3d94ba,_0x33d097,_0x493daf,_0x2dabb1,_0x6315d9){const _0x538201=_0x354c45;super(),_(this,_0x538201(0x14d),!0x1),_(this,_0x538201(0x330),!0x1),_(this,'_cursorInfo$',new _0x421821(new Map())),_(this,_0x538201(0x8f),this['_cursorInfo$'][_0x538201(0x209)]()),_(this,_0x538201(0x3b3),new _0x421821([])),_(this,_0x538201(0x3d4),this[_0x538201(0x3b3)][_0x538201(0x1e1)](_0x68cfe8(hr))),_(this,'_updateLocalCursor',_0x2a035c((_0x54823e,_0x384fd0)=>{const _0x1dc9dd=_0x538201,_0x399072={'eventID':_0x363b50[_0x1dc9dd(0x251)],'data':{'unitID':this[_0x1dc9dd(0x22b)],'memberID':this[_0x1dc9dd(0x2fa)][_0x1dc9dd(0x2f6)](),'selection':_0x45f111(_0x54823e,_0x384fd0[_0x1dc9dd(0x20c)])}};this[_0x1dc9dd(0x2fa)][_0x1dc9dd(0x3b4)](_0x399072,this['unitID']);},_r)),(this[_0x538201(0x22b)]=_0xa71863,this[_0x538201(0x2fa)]=_0x2617cf,this['_injector']=_0x198054,this[_0x538201(0x122)]=_0x3d94ba,this['_memberService']=_0x33d097,this[_0x538201(0x134)]=_0x493daf,this[_0x538201(0x19f)]=_0x2dabb1,this[_0x538201(0x2c8)]=_0x6315d9);}get[_0x354c45(0x32e)](){const _0x1fa221=_0x354c45;return this[_0x1fa221(0x387)]['getValue']();}get[_0x354c45(0x164)](){const _0x12e7a7=_0x354c45;return this[_0x12e7a7(0x3b3)][_0x12e7a7(0xe4)]();}[_0x354c45(0x220)](){const _0x3f4d1e=_0x354c45;super[_0x3f4d1e(0x220)](),this['_cursorInfo$'][_0x3f4d1e(0x2fe)](new Map()),this['_cursorInfo$'][_0x3f4d1e(0x1ec)](),this['_roomMembers$']['next']([]),this[_0x3f4d1e(0x3b3)]['complete']();}[_0x354c45(0x1ce)](){const _0x26db18=_0x354c45;this[_0x26db18(0x330)]||(this[_0x26db18(0x330)]=!0x0,this[_0x26db18(0x2fa)]['sessionStatus$'][_0x26db18(0x1e1)](_0x60ccde(this[_0x26db18(0x1a1)]))[_0x26db18(0x37e)](_0x464724=>{const _0x1fd131=_0x26db18;_0x464724===fe[_0x1fd131(0x10e)]?this['_toggleOnline']():this[_0x1fd131(0x96)]();}),this['_session'][_0x26db18(0x2c5)][_0x26db18(0x1e1)](_0x60ccde(this[_0x26db18(0x1a1)]))[_0x26db18(0x37e)](_0x5eb80b=>{const _0x20f5ee=_0x26db18,_0x3bb01e=_0x5eb80b['eventID'];_0x3bb01e===_0x363b50[_0x20f5ee(0x251)]&&this[_0x20f5ee(0x1cf)](_0x5eb80b),_0x3bb01e===_0x363b50[_0x20f5ee(0x180)]&&this[_0x20f5ee(0xfa)](_0x5eb80b);}),this[_0x26db18(0x17f)](),this[_0x26db18(0x1a0)](this[_0x26db18(0x19f)][_0x26db18(0x372)](_0x1e0901=>{const _0xc7945c=_0x26db18;if(this[_0xc7945c(0x14d)]&&_0x1e0901['id']===_0x1271d4['id']&&_0x1e0901[_0xc7945c(0x29e)][_0xc7945c(0x393)]===this['unitID']){const _0x44cd10=_0x1e0901[_0xc7945c(0x29e)];this[_0xc7945c(0x14b)](_0x44cd10[_0xc7945c(0x1e9)],_0x44cd10[_0xc7945c(0x2da)][0x0]);}})));}[_0x354c45(0x1cf)](_0x2ba2d6){const _0x1da9e6=_0x354c45;var _0x1a19c4,_0x571f07;const {memberID:_0x29faf7,selection:_0x12ce24}=_0x2ba2d6[_0x1da9e6(0x385)],{sheetName:_0x53517a,range:_0xdcaca0}=_0x36a58a(_0x12ce24),_0x5628e4={'name':(_0x571f07=(_0x1a19c4=this[_0x1da9e6(0x39b)]['getMember'](this['unitID'],_0x29faf7))==null?void 0x0:_0x1a19c4[_0x1da9e6(0x38c)])!=null?_0x571f07:'Unknown\x20user','range':this[_0x1da9e6(0x2d7)](_0x53517a,_0xdcaca0),'sheetID':_0x53517a,'color':this[_0x1da9e6(0x122)]['assignAColorForMemberID'](_0x29faf7),'selection':_0x12ce24},_0x1cf3d7=this[_0x1da9e6(0x32e)];_0x1cf3d7[_0x1da9e6(0xdd)](_0x29faf7,_0x5628e4),this['_cursorInfo$'][_0x1da9e6(0x2fe)](_0x1cf3d7);}[_0x354c45(0xfa)](_0x3587fd){const _0x5466f8=_0x354c45,{memberID:_0x373953}=_0x3587fd[_0x5466f8(0x385)],_0x2a6ac9=this[_0x5466f8(0x32e)];_0x2a6ac9[_0x5466f8(0x33a)](_0x373953),this[_0x5466f8(0x387)][_0x5466f8(0x2fe)](_0x2a6ac9);}[_0x354c45(0x2d7)](_0x414ac4,_0x2fad1d){const _0x4a61f0=_0x354c45;var _0x2853a5,_0x6e95ed;const _0x41239a=(_0x6e95ed=(_0x2853a5=this[_0x4a61f0(0x134)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2853a5[_0x4a61f0(0x176)](_0x414ac4))==null?void 0x0:_0x6e95ed[_0x4a61f0(0x3bc)]();return(_0x41239a==null?void 0x0:_0x41239a['find'](_0x148c4e=>_0x414956[_0x4a61f0(0x2f8)](_0x148c4e,_0x2fad1d)))||_0x2fad1d;}[_0x354c45(0x17f)](){const _0xb81cbc=_0x354c45,_0x18e5a4=new _0x57a20f(),_0x25686b=lr(),_0x4da4a7=()=>{const _0x1ded87=_0x5b0c;_0x18e5a4['dispose']();const _0x3538c3=(_0x366f6d,_0x14d98b,_0x8fb8ef,_0xf00d9)=>{const _0x354417=_0x5b0c;let _0x41fcec=[];switch(_0x366f6d['id']){case _0x38a0e8[_0x354417(0x87)]:{_0x41fcec=_0x1d6f0f(_0x366f6d,_0xf00d9);break;}case _0x38a0e8['DeleteRangeMoveUpCommandId']:{_0x41fcec=_0x15c769(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x267)]:{_0x41fcec=_0x195831(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x2dc)]:{_0x41fcec=_0x39bf3d(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0xbb)]:{_0x41fcec=_0x16d4b2(_0x366f6d,_0xf00d9);break;}case _0x38a0e8['InsertRowCommandId']:{_0x41fcec=_0x173a21(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x1ef)]:{_0x41fcec=_0x75b893(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x2de)]:{_0x41fcec=_0x59c9a2(_0x366f6d,_0xf00d9);break;}case _0x38a0e8[_0x354417(0x215)]:{_0x41fcec=_0x4e8b58(_0x366f6d,_0xf00d9);break;}}const _0x2e9c25=_0x2651bd(_0x41fcec,_0xf00d9),_0x39d2df=this['cursorInfo'][_0x354417(0x309)](_0x14d98b);if(_0x39d2df&&_0x2e9c25){const _0x11e001={..._0x39d2df,'range':_0x2e9c25};this[_0x354417(0x32e)]['set'](_0x14d98b,_0x11e001),_0x25686b(()=>{const _0x36a1b3=_0x354417,_0x8a401e=this[_0x36a1b3(0x2c8)]['registerRefRange'](_0x2e9c25,_0x3438a8=>(_0x8a401e[_0x36a1b3(0x220)](),_0x3538c3(_0x3438a8,_0x14d98b,_0x8fb8ef,_0x2e9c25)));_0x18e5a4[_0x36a1b3(0x264)](_0x8a401e);});}return{'redos':[],'undos':[]};};this[_0x1ded87(0x32e)]['forEach']((_0x3cab9c,_0x585343)=>{const _0x23365e=_0x1ded87,{range:_0x2c2aa1,sheetID:_0x3a86d0}=_0x3cab9c,_0x144105=this[_0x23365e(0x2c8)][_0x23365e(0x311)](_0x2c2aa1,_0x31d076=>(_0x144105[_0x23365e(0x220)](),_0x3538c3(_0x31d076,_0x585343,_0x3a86d0,_0x2c2aa1)));_0x18e5a4['add'](_0x144105);});};this[_0xb81cbc(0x1a0)](_0x681995(this['_cursorInfo$']['subscribe'](()=>{_0x4da4a7();})));}['_toggleOnline'](){const _0x21f488=_0x354c45;var _0x1235df,_0x597943;if(this[_0x21f488(0x14d)]=!0x0,((_0x1235df=this[_0x21f488(0x134)][_0x21f488(0x248)]())==null?void 0x0:_0x1235df[_0x21f488(0x3a7)]())!==this[_0x21f488(0x22b)])return;const _0x2a6395=(_0x597943=this[_0x21f488(0x259)][_0x21f488(0x309)](_0x22886c)['getCurrentSelections']())==null?void 0x0:_0x597943[0x0],_0x478b3f=this[_0x21f488(0x134)][_0x21f488(0x3a4)](_0x380445['UNIVER_SHEET'])['getActiveSheet']();_0x2a6395&&_0x478b3f&&this[_0x21f488(0x14b)](_0x478b3f[_0x21f488(0x13b)](),_0x2a6395);}[_0x354c45(0x96)](){const _0x25b549=_0x354c45;this[_0x25b549(0x14d)]=!0x1;}};bt=cr([le(0x2,_0x229f6b(_0x3b06f9)),le(0x3,_0x229f6b(Ht)),le(0x4,_0x229f6b(ne)),le(0x5,_0x14d401),le(0x6,_0x151749),le(0x7,_0x229f6b(_0x442fae))],bt);var ur=Object[_0x354c45(0xa3)],dr=Object['getOwnPropertyDescriptor'],mr=(_0xe6d8bb,_0x1632fc,_0x355c8e,_0x39b5cd)=>{for(var _0x594e0f=_0x39b5cd>0x1?void 0x0:_0x39b5cd?dr(_0x1632fc,_0x355c8e):_0x1632fc,_0x49818e=_0xe6d8bb['length']-0x1,_0x199d95;_0x49818e>=0x0;_0x49818e--)(_0x199d95=_0xe6d8bb[_0x49818e])&&(_0x594e0f=(_0x39b5cd?_0x199d95(_0x1632fc,_0x355c8e,_0x594e0f):_0x199d95(_0x594e0f))||_0x594e0f);return _0x39b5cd&&_0x594e0f&&ur(_0x1632fc,_0x355c8e,_0x594e0f),_0x594e0f;},te=(_0xcd1857,_0x18c4a8)=>(_0x2cd517,_0x356c1b)=>_0x18c4a8(_0x2cd517,_0x356c1b,_0xcd1857);const fr=0x12c,gr=0x64;let Rt=class extends _0x5aeadb{constructor(_0x32c125,_0x32a618,_0x285243,_0x2d925c,_0x7bed63,_0x3a9224,_0x371bbc,_0x48c871,_0xe76ef4){const _0x1cf3cd=_0x354c45;super(),_(this,'_online',!0x1),_(this,_0x1cf3cd(0x330),!0x1),_(this,_0x1cf3cd(0x387),new _0x421821(new Map())),_(this,_0x1cf3cd(0x8f),this[_0x1cf3cd(0x387)][_0x1cf3cd(0x209)]()),_(this,_0x1cf3cd(0x3b3),new _0x421821([])),_(this,_0x1cf3cd(0x3d4),this[_0x1cf3cd(0x3b3)]['pipe'](_0x68cfe8(fr))),_(this,_0x1cf3cd(0x14b),_0x2a035c(_0x3a48d7=>{const _0x3dfba1=_0x1cf3cd,_0xb8e85={'eventID':_0x363b50['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3dfba1(0x2fa)]['getMemberID'](),'selection':ys(_0x3a48d7)}};this['_session']['send'](_0xb8e85,this[_0x3dfba1(0x22b)]);},gr)),(this[_0x1cf3cd(0x22b)]=_0x32c125,this[_0x1cf3cd(0x2fa)]=_0x32a618,this[_0x1cf3cd(0x259)]=_0x285243,this[_0x1cf3cd(0x122)]=_0x2d925c,this[_0x1cf3cd(0x39b)]=_0x7bed63,this[_0x1cf3cd(0x135)]=_0x3a9224,this['_transformService']=_0x371bbc,this[_0x1cf3cd(0x134)]=_0x48c871,this[_0x1cf3cd(0x19f)]=_0xe76ef4);}get[_0x354c45(0x32e)](){const _0x1c59de=_0x354c45;return this['_cursorInfo$'][_0x1c59de(0xe4)]();}get['roomMembers'](){const _0x2ae797=_0x354c45;return this[_0x2ae797(0x3b3)][_0x2ae797(0xe4)]();}[_0x354c45(0x220)](){const _0x243866=_0x354c45;super[_0x243866(0x220)](),this[_0x243866(0x387)]['next'](new Map()),this['_cursorInfo$'][_0x243866(0x1ec)](),this['_roomMembers$'][_0x243866(0x2fe)]([]),this[_0x243866(0x3b3)][_0x243866(0x1ec)]();}['init'](){const _0x40de5a=_0x354c45;this[_0x40de5a(0x330)]||(this[_0x40de5a(0x330)]=!0x0,this[_0x40de5a(0x2fa)]['sessionStatus$']['pipe'](_0x60ccde(this[_0x40de5a(0x1a1)]))[_0x40de5a(0x37e)](_0x3b4c0e=>{const _0x36a844=_0x40de5a;_0x3b4c0e===fe[_0x36a844(0x10e)]?this[_0x36a844(0x2cf)]():this[_0x36a844(0x96)]();}),this[_0x40de5a(0x2fa)][_0x40de5a(0x2c5)][_0x40de5a(0x1e1)](_0x60ccde(this[_0x40de5a(0x1a1)]))['subscribe'](_0x295a3b=>{const _0x5a8ca8=_0x40de5a,_0x4e5250=_0x295a3b[_0x5a8ca8(0x2d3)];_0x4e5250===_0x363b50[_0x5a8ca8(0x251)]&&this[_0x5a8ca8(0x1cf)](_0x295a3b),_0x4e5250===_0x363b50['USERS_LEAVE']&&this[_0x5a8ca8(0xfa)](_0x295a3b);}),this['disposeWithMe'](this[_0x40de5a(0x19f)][_0x40de5a(0x372)](_0x16479e=>{const _0x47cea8=_0x40de5a,_0x3f6928=_0x16479e[_0x47cea8(0x29e)];_0x3f6928!=null&&this[_0x47cea8(0x14d)]&&_0x16479e['id']===_0x2c4dfe['id']&&_0x3f6928[_0x47cea8(0x393)]===this[_0x47cea8(0x22b)]&&_0x3f6928[_0x47cea8(0x2e9)]===!0x1&&this[_0x47cea8(0x14b)](_0x3f6928[_0x47cea8(0x21e)]);})),this[_0x40de5a(0x135)]['collabCursorState$'][_0x40de5a(0x1e1)](_0x60ccde(this['dispose$']))[_0x40de5a(0x37e)](_0x23054d=>{const _0x17b95b=_0x40de5a;if((_0x23054d==null?void 0x0:_0x23054d[_0x17b95b(0x22b)])!==this[_0x17b95b(0x22b)])return;const _0x3028a3={'eventID':_0x363b50[_0x17b95b(0x251)],'data':_0x23054d};this[_0x17b95b(0x1cf)](_0x3028a3);}),this[_0x40de5a(0x1a0)](this[_0x40de5a(0x19f)][_0x40de5a(0x372)](_0x26e56b=>{const _0x1c5d6a=_0x40de5a;if(_0x26e56b['params']==null)return;const _0x124710=_0x26e56b['params'];if(_0x26e56b['id']!==_0xc37a7a['id']||_0x124710[_0x1c5d6a(0x393)]!==this['unitID'])return;const _0x385974={'id':_0x1c5d6a(0x21d),'params':_0x124710},_0x5450d6=this[_0x1c5d6a(0x32e)];for(const [_0x10e73b,_0x2b2b3a]of _0x5450d6){const _0x4315bb={'id':_0x1c5d6a(0x21d),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2b2b3a[_0x1c5d6a(0x21e)]}},_0x5bbe5a=this['_transformService'][_0x1c5d6a(0x148)](_0x385974,_0x4315bb,!0x1);if(_0x5e29e1(_0x5bbe5a))throw _0x5bbe5a[_0x1c5d6a(0x35c)];_0x5450d6['set'](_0x10e73b,{..._0x2b2b3a,'ranges':_0x5bbe5a[_0x1c5d6a(0x31e)][_0x1c5d6a(0x29e)][_0x1c5d6a(0x17d)]});}queueMicrotask(()=>{const _0x5a50df=_0x1c5d6a;this[_0x5a50df(0x387)]['next'](_0x5450d6);});})));}[_0x354c45(0x1cf)](_0x5e5604){const _0x107bf5=_0x354c45;var _0x20dbc4,_0x2f4985;const {memberID:_0x5962b7,selection:_0x1e9415}=_0x5e5604['data'],_0x167f18=Xn(_0x1e9415),_0x218ab8=(_0x2f4985=(_0x20dbc4=this[_0x107bf5(0x39b)][_0x107bf5(0x39a)](this[_0x107bf5(0x22b)],_0x5962b7))==null?void 0x0:_0x20dbc4[_0x107bf5(0x38c)])!=null?_0x2f4985:_0x107bf5(0x25d),_0x1daa1d={'color':this[_0x107bf5(0x122)][_0x107bf5(0x9e)](_0x5962b7),'name':_0x218ab8,'ranges':_0x167f18},_0x108043=this[_0x107bf5(0x32e)];_0x108043[_0x107bf5(0xdd)](_0x5962b7,_0x1daa1d),this['_cursorInfo$'][_0x107bf5(0x2fe)](_0x108043);}[_0x354c45(0xfa)](_0x2d8ac5){const _0x1c9591=_0x354c45,{memberID:_0x2e2598}=_0x2d8ac5['data'],_0xf64191=this[_0x1c9591(0x32e)];_0xf64191[_0x1c9591(0x33a)](_0x2e2598),this[_0x1c9591(0x387)]['next'](_0xf64191);}[_0x354c45(0x2cf)](){const _0x434534=_0x354c45;var _0x5e5ed8;if(this[_0x434534(0x14d)]=!0x0,((_0x5e5ed8=this['_univerInstanceService'][_0x434534(0x248)]())==null?void 0x0:_0x5e5ed8[_0x434534(0x3a7)]())!==this[_0x434534(0x22b)])return;const _0x166d00=this['_injector'][_0x434534(0x309)](_0x559154)[_0x434534(0x1bf)](),_0x3a117d=_0x166d00==null?void 0x0:_0x166d00['map'](_0x1b1aa9);Array[_0x434534(0x11f)](_0x3a117d)&&_0x3a117d['length']>0x0&&this[_0x434534(0x14b)](_0x3a117d);}[_0x354c45(0x96)](){const _0x2789d1=_0x354c45;this[_0x2789d1(0x14d)]=!0x1;}};Rt=mr([te(0x2,_0x229f6b(_0x3b06f9)),te(0x3,_0x229f6b(Ht)),te(0x4,_0x229f6b(ne)),te(0x5,_0x229f6b(xt)),te(0x6,_0x5c9e6a),te(0x7,_0x14d401),te(0x8,_0x151749)],Rt);var Sr=Object[_0x354c45(0xa3)],pr=Object[_0x354c45(0x3cf)],vr=(_0x59ba2d,_0x366e48,_0x580b60,_0x38d04b)=>{const _0x1363c3=_0x354c45;for(var _0x366e75=_0x38d04b>0x1?void 0x0:_0x38d04b?pr(_0x366e48,_0x580b60):_0x366e48,_0x356151=_0x59ba2d[_0x1363c3(0x16f)]-0x1,_0x5a272f;_0x356151>=0x0;_0x356151--)(_0x5a272f=_0x59ba2d[_0x356151])&&(_0x366e75=(_0x38d04b?_0x5a272f(_0x366e48,_0x580b60,_0x366e75):_0x5a272f(_0x366e75))||_0x366e75);return _0x38d04b&&_0x366e75&&Sr(_0x366e48,_0x580b60,_0x366e75),_0x366e75;},ct=(_0x93b3fb,_0x2ffaf2)=>(_0x973f60,_0x50181d)=>_0x2ffaf2(_0x973f60,_0x50181d,_0x93b3fb);let ge=class extends _0x5aeadb{constructor(_0x5b43f9,_0x31ba7d,_0x42de35){const _0x31cf1e=_0x354c45;super(),_(this,_0x31cf1e(0x2f0),new Map()),_(this,_0x31cf1e(0x35b),new _0x2b4845()),(this[_0x31cf1e(0x134)]=_0x5b43f9,this[_0x31cf1e(0x259)]=_0x31ba7d,this['_collabSessionService']=_0x42de35,this[_0x31cf1e(0x330)]());}['dispose'](){const _0x3f24cb=_0x354c45;super['dispose'](),this[_0x3f24cb(0x35b)][_0x3f24cb(0x1ec)](),this[_0x3f24cb(0x2f0)][_0x3f24cb(0x18d)](_0x2f30b0=>_0x2f30b0[_0x3f24cb(0x220)]());}[_0x354c45(0x240)](_0x1fc3d8){const _0x2446fe=_0x354c45;return this[_0x2446fe(0x2f0)]['has'](_0x1fc3d8)?this['_entities'][_0x2446fe(0x309)](_0x1fc3d8)[_0x2446fe(0x8f)]:this[_0x2446fe(0x35b)]['pipe'](_0x1317c0(_0x5c9343=>_0x5c9343[_0x2446fe(0x22b)]===_0x1fc3d8),_0x3f577e(_0x599eb3=>_0x599eb3[_0x2446fe(0x8f)]));}[_0x354c45(0x330)](){const _0x45914d=_0x354c45;this['_univerInstanceService'][_0x45914d(0xcc)](_0x380445[_0x45914d(0x31c)])[_0x45914d(0x1e1)](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x37e)](async _0x4deec0=>{const _0x201531=_0x45914d,_0x2952a9=_0x4deec0[_0x201531(0x3a7)](),_0x144435=await this['_startSheetCollabCursor'](_0x2952a9);this['_entityInit$'][_0x201531(0x2fe)](_0x144435),this[_0x201531(0x2f0)]['set'](_0x2952a9,_0x144435);}),this['_univerInstanceService'][_0x45914d(0xcc)](_0x380445[_0x45914d(0x30e)])[_0x45914d(0x1e1)](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x1e1)](_0x1317c0(_0x13f716=>!_0x13f716[_0x45914d(0x3a7)]()['startsWith']('__')))[_0x45914d(0x37e)](async _0x1994e5=>{const _0x5ad3ec=_0x45914d,_0x3793ea=_0x1994e5[_0x5ad3ec(0x3a7)](),_0x13ab80=await this[_0x5ad3ec(0xe2)](_0x3793ea);this[_0x5ad3ec(0x35b)][_0x5ad3ec(0x2fe)](_0x13ab80),this[_0x5ad3ec(0x2f0)][_0x5ad3ec(0xdd)](_0x3793ea,_0x13ab80);}),_0x5b30b2(this[_0x45914d(0x134)][_0x45914d(0x38d)](_0x380445[_0x45914d(0x30e)]),this[_0x45914d(0x134)]['getTypeOfUnitDisposed$'](_0x380445[_0x45914d(0x31c)]))['pipe'](_0x60ccde(this[_0x45914d(0x1a1)]))[_0x45914d(0x37e)](_0x27e5ee=>{const _0x591ccf=_0x45914d,_0x2e46d1=_0x27e5ee['getUnitId'](),_0x323147=this['_entities'][_0x591ccf(0x309)](_0x2e46d1);_0x323147&&(_0x323147[_0x591ccf(0x220)](),this[_0x591ccf(0x2f0)][_0x591ccf(0x33a)](_0x2e46d1));});}async['_startSheetCollabCursor'](_0xc5585a){const _0x20e40d=_0x354c45,_0x201f76=await this[_0x20e40d(0x184)][_0x20e40d(0x258)](_0xc5585a),_0x462af6=this[_0x20e40d(0x259)]['createInstance'](bt,_0xc5585a,_0x201f76);return _0x462af6['init'](),_0x462af6;}async['_startDocCollabCursor'](_0x4cb4f4){const _0x41888e=_0x354c45,_0x34bded=await this['_collabSessionService'][_0x41888e(0x258)](_0x4cb4f4),_0x243c19=this[_0x41888e(0x259)]['createInstance'](Rt,_0x4cb4f4,_0x34bded);return _0x243c19[_0x41888e(0x1ce)](),_0x243c19;}};ge=vr([_0x5c1b58(_0x21b2c3['Starting'],ge),ct(0x0,_0x14d401),ct(0x1,_0x229f6b(_0x3b06f9)),ct(0x2,_0x229f6b(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0x263a34,_0x7691e1){const _0x352fc1=_0x354c45;let {radius:_0x395d5d,width:_0x146d21,height:_0x19004f}=_0x7691e1;_0x395d5d=_0x395d5d!=null?_0x395d5d:0x0,_0x146d21=_0x146d21!=null?_0x146d21:0x1e,_0x19004f=_0x19004f!=null?_0x19004f:0x1e;let _0x3948a1=0x0,_0xcd8809=0x0,_0x192aac=0x0;_0x3948a1=_0xcd8809=_0x192aac=Math[_0x352fc1(0xb2)](_0x395d5d,_0x146d21/0x2,_0x19004f/0x2),_0x263a34[_0x352fc1(0x39d)](),_0x263a34[_0x352fc1(0x324)](_0x3948a1,0x0),_0x263a34['lineTo'](_0x146d21-_0xcd8809,0x0),_0x263a34['arc'](_0x146d21-_0xcd8809,_0xcd8809,_0xcd8809,Math['PI']*0x3/0x2,0x0,!0x1),_0x263a34[_0x352fc1(0x112)](_0x146d21,_0x19004f-_0x192aac),_0x263a34[_0x352fc1(0xf6)](_0x146d21-_0x192aac,_0x19004f-_0x192aac,_0x192aac,0x0,Math['PI']/0x2,!0x1),_0x263a34[_0x352fc1(0x112)](0x0,_0x19004f),_0x263a34[_0x352fc1(0x112)](0x0,_0x3948a1),_0x263a34[_0x352fc1(0xf6)](_0x3948a1,_0x3948a1,_0x3948a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x263a34[_0x352fc1(0x34d)](),_0x7691e1['fill']&&(_0x263a34[_0x352fc1(0xfd)](),_0x263a34['fillStyle']=_0x7691e1[_0x352fc1(0x350)],_0x7691e1[_0x352fc1(0x2bc)]===_0x352fc1(0x312)?_0x263a34[_0x352fc1(0x350)]('evenodd'):_0x263a34[_0x352fc1(0x350)](),_0x263a34[_0x352fc1(0x101)]());}class it extends _0x2ccc4b{constructor(_0x23016d,_0x5e73c3){const _0x194a6e=_0x354c45;super(_0x23016d,_0x5e73c3),_(this,_0x194a6e(0x3d0)),_(this,_0x194a6e(0x296)),(this[_0x194a6e(0x3d0)]=_0x5e73c3==null?void 0x0:_0x5e73c3[_0x194a6e(0x3d0)],this[_0x194a6e(0x296)]=_0x5e73c3==null?void 0x0:_0x5e73c3[_0x194a6e(0x296)]);}static['drawWith'](_0x30102a,_0x45ed59){const _0x17f2f8=_0x354c45,{text:_0x2dab10,color:_0x2c23f6}=_0x45ed59;_0x30102a[_0x17f2f8(0xfd)](),_0x30102a[_0x17f2f8(0x347)]=_0x17f2f8(0x26b);const _0xe8865a=_0x30102a[_0x17f2f8(0x2ea)](_0x2dab10)[_0x17f2f8(0x327)],_0x14bb4e=Math['min'](_0xe8865a+0x2*ht,cs);Er(_0x30102a,{'height':ye,'radius':0x4,'width':_0x14bb4e,'fill':_0x2c23f6,'evented':!0x1}),_0x30102a[_0x17f2f8(0x27e)]=_0x17f2f8(0x3c6);const _0x10419c=ht,_0x1a4c9f=ye-Ir,_0x37e9c6=cs-0x2*ht;if(_0xe8865a>_0x37e9c6){let _0x2b7048='',_0x5ab3b6=0x0;for(const _0x9f35b1 of _0x2dab10){const _0x956784=_0x30102a[_0x17f2f8(0x2ea)](_0x9f35b1)[_0x17f2f8(0x327)];if(_0x5ab3b6+_0x956784<=_0x37e9c6-_0x30102a['measureText'](_0x17f2f8(0x3ba))['width'])_0x2b7048+=_0x9f35b1,_0x5ab3b6+=_0x956784;else{_0x2b7048+='...';break;}}_0x30102a[_0x17f2f8(0x349)](_0x2b7048,_0x10419c,_0x1a4c9f);}else _0x30102a['fillText'](_0x2dab10,_0x10419c,_0x1a4c9f);_0x30102a[_0x17f2f8(0x101)]();}[_0x354c45(0x3a2)](_0x3684de){const _0x4e5d74=_0x354c45;it[_0x4e5d74(0xb7)](_0x3684de,this);}}const Cr=0x1,br=1.5;class Rr extends _0x2ccc4b{constructor(_0x3f8f2e,_0x161f2e){const _0x20d781=_0x354c45;super(_0x3f8f2e,_0x161f2e),_(this,_0x20d781(0x2ee)),_(this,_0x20d781(0x2e8),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x20d781(0x1ae),_0x20d781(0x24d)),_(this,_0x20d781(0x20e)),(_0x161f2e&&this['setShapeProps'](_0x161f2e),this[_0x20d781(0x25c)]['subscribeEvent'](()=>this[_0x20d781(0x2d5)]({'hovered':!0x0})),this[_0x20d781(0x241)][_0x20d781(0xe5)](()=>this[_0x20d781(0x2d5)]({'hovered':!0x1})));}[_0x354c45(0x2d5)](_0x14ebf7){const _0x170227=_0x354c45;var _0x2affc3,_0x1f3457,_0x1035f1,_0x522b38,_0x4b9957,_0x1e946a;this[_0x170227(0x2ee)]=(_0x2affc3=_0x14ebf7[_0x170227(0x3d0)])!=null?_0x2affc3:this[_0x170227(0x2ee)],this['_hovered']=(_0x1f3457=_0x14ebf7[_0x170227(0x375)])!=null?_0x1f3457:this['_hovered'],this[_0x170227(0x1b8)]=(_0x1035f1=_0x14ebf7[_0x170227(0x20c)])!=null?_0x1035f1:this[_0x170227(0x1b8)],this[_0x170227(0x2c2)]=(_0x522b38=_0x14ebf7[_0x170227(0x38c)])!=null?_0x522b38:this[_0x170227(0x2c2)],this[_0x170227(0x1ae)]=(_0x4b9957=_0x14ebf7[_0x170227(0x1e0)])!=null?_0x4b9957:this[_0x170227(0x1ae)],this[_0x170227(0x20e)]=(_0x1e946a=_0x14ebf7['backgroundColor'])!=null?_0x1e946a:this[_0x170227(0x20e)],this[_0x170227(0x1ee)]({'width':_0x14ebf7['width'],'height':_0x14ebf7[_0x170227(0x299)]});}[_0x354c45(0x18b)](_0x45cc38){const _0x2f8b29=_0x354c45,{row:_0x505a9f,column:_0x4ca6db}=_0x45cc38;if(_0x505a9f>=this[_0x2f8b29(0x1b8)]['startRow']&&_0x505a9f<=this[_0x2f8b29(0x1b8)][_0x2f8b29(0xbc)]&&_0x4ca6db>=this[_0x2f8b29(0x1b8)][_0x2f8b29(0x307)]&&_0x4ca6db<=this[_0x2f8b29(0x1b8)][_0x2f8b29(0x121)]){this[_0x2f8b29(0x2d5)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x354c45(0x2ff)](_0x7267e1){return!0x1;}['_draw'](_0x31b9d8){const _0x5377e6=_0x354c45;_0x222909[_0x5377e6(0xb7)](_0x31b9d8,{'width':this[_0x5377e6(0x327)],'height':this[_0x5377e6(0x299)],'strokeWidth':br,'stroke':this[_0x5377e6(0x2ee)],'evented':!0x1,'fill':this[_0x5377e6(0x20e)]}),this[_0x5377e6(0x2e8)]&&(_0x31b9d8[_0x5377e6(0xfd)](),_0x31b9d8['transform'](0x1,0x0,0x0,0x1,this[_0x5377e6(0x327)],this['_labelPosition']===_0x5377e6(0xd9)?0x0:-ye),it[_0x5377e6(0xb7)](_0x31b9d8,{'text':this[_0x5377e6(0x2c2)],'color':this[_0x5377e6(0x2ee)]}),_0x31b9d8['restore']());}}var Tr=Object['defineProperty'],Or=Object[_0x354c45(0x3cf)],Dr=(_0x285b75,_0x1bb2c3,_0x3d2cb,_0x33eac8)=>{const _0x199e36=_0x354c45;for(var _0x826dc6=_0x33eac8>0x1?void 0x0:_0x33eac8?Or(_0x1bb2c3,_0x3d2cb):_0x1bb2c3,_0xc85423=_0x285b75[_0x199e36(0x16f)]-0x1,_0x59bffa;_0xc85423>=0x0;_0xc85423--)(_0x59bffa=_0x285b75[_0xc85423])&&(_0x826dc6=(_0x33eac8?_0x59bffa(_0x1bb2c3,_0x3d2cb,_0x826dc6):_0x59bffa(_0x826dc6))||_0x826dc6);return _0x33eac8&&_0x826dc6&&Tr(_0x1bb2c3,_0x3d2cb,_0x826dc6),_0x826dc6;},_t=(_0x8c7a3d,_0x3c3f76)=>(_0x28f5e8,_0xbf6f9a)=>_0x3c3f76(_0x28f5e8,_0xbf6f9a,_0x8c7a3d);const Pr=0x1389;let Tt=class extends _0x5aeadb{constructor(_0x39eafa,_0x3a4330,_0x546c95,_0x406cb9){const _0x2d9490=_0x354c45;super(),_(this,'_cursors',new Set()),_(this,_0x2d9490(0xee),null),(this[_0x2d9490(0x321)]=_0x39eafa,this[_0x2d9490(0x1d5)]=_0x3a4330,this['_collabCursorController']=_0x546c95,this[_0x2d9490(0x30c)]=_0x406cb9,this[_0x2d9490(0x330)]());}[_0x354c45(0x330)](){const _0x3f378e=_0x354c45;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0xc21920(this[_0x3f378e(0x1a1)]),_0x3f4a38(_0x146d78=>{const _0x5bff49=_0x3f378e;if(_0x146d78){const _0x1e2bca=_0x146d78[_0x5bff49(0x266)];return _0x4aa21b(this[_0x5bff49(0x1ff)][_0x5bff49(0x240)](this['_context'][_0x5bff49(0x393)]),this['_themeService'][_0x5bff49(0xa7)])[_0x5bff49(0x1e1)](_0x1b7b12(([_0x2fc37d,_0x366483])=>{const _0x5614ba=_0x5bff49,_0x507400=new Map();return _0x2fc37d[_0x5614ba(0x18d)]((_0x52808c,_0x2b2c3f)=>{const _0x9fb429=_0x5614ba;if(_0x52808c[_0x9fb429(0x332)]===_0x1e2bca){const _0x1b1b25={..._0x52808c};_0x1b1b25[_0x9fb429(0x3d0)]=_0x366483[_0x52808c[_0x9fb429(0x3d0)]],_0x507400['set'](_0x2b2c3f,_0x1b1b25);}}),{'skeleton':_0x146d78,'cursors':_0x507400};}));}return _0x186ef7({'skeleton':null,'cursors':new Map()});}))[_0x3f378e(0x37e)](({skeleton:_0x5b5682,cursors:_0x264332})=>{const _0x45e991=_0x3f378e;this['_removeCollabCursors'](),_0x5b5682&&this[_0x45e991(0xfb)](_0x5b5682,_0x264332);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3f378e(0x37e)](_0x3cf2ac=>{const _0x32c7e1=_0x3f378e;if(_0x3cf2ac==null)return;const {skeleton:_0xb4c855}=_0x3cf2ac,{scene:_0x525594}=this['_context'];_0x525594[_0x32c7e1(0x268)][_0x32c7e1(0xe5)](_0x2a035c(_0x563d7c=>{const _0x351bc6=_0x32c7e1;var _0x332eaa,_0x2702c8;const {offsetX:_0x56d1ac,offsetY:_0x6d0ba1}=_0x563d7c,{x:_0x580d54,y:_0x1190a9}=_0x525594[_0x351bc6(0x93)](_0x569e56[_0x351bc6(0x147)]([_0x56d1ac,_0x6d0ba1])),{scaleX:_0x1ff817,scaleY:_0x1f816b}=_0x525594[_0x351bc6(0x376)](),_0x4574f4=_0x525594[_0x351bc6(0x233)](_0x2ca4f8['VIEW_MAIN']),_0x2cdfd2=_0x525594['getVpScrollXYInfoByPosToVp'](_0x569e56['FromArray']([_0x580d54,_0x1190a9]),_0x4574f4),_0x48345e=_0xb4c855[_0x351bc6(0x326)](_0x56d1ac,_0x6d0ba1,_0x1ff817,_0x1f816b,_0x2cdfd2);((_0x332eaa=this[_0x351bc6(0xee)])==null?void 0x0:_0x332eaa[_0x351bc6(0x216)])===_0x48345e[_0x351bc6(0x216)]&&((_0x2702c8=this[_0x351bc6(0xee)])==null?void 0x0:_0x2702c8[_0x351bc6(0x2cb)])===_0x48345e['row']||this[_0x351bc6(0x1bc)][_0x351bc6(0x18d)](_0x52cdbd=>{_0x52cdbd['onMouseMove'](_0x48345e);});},0x64));});}['_updateCollabCursors'](_0x4eb825,_0x11d821){const _0xc443c3=_0x354c45;var _0x229d4e;const _0x325bdb=(_0x229d4e=this[_0xc443c3(0x1d5)][_0xc443c3(0xb6)]())==null?void 0x0:_0x229d4e[_0xc443c3(0x1d7)];if(!_0x325bdb)return;const _0x270b05=this['_getSheetObject']();if(!_0x270b05)return;this[_0xc443c3(0x1bc)][_0xc443c3(0x18d)](_0x1c5fec=>{_0x1c5fec['makeDirty']();});const {scene:_0x22eb30}=_0x270b05,_0x56d28d=wr(Array[_0xc443c3(0x247)](_0x11d821[_0xc443c3(0xc6)]()))[_0xc443c3(0x39f)](_0xb0710c=>{const _0x3b7e6f=_0xc443c3,{color:_0x5617a1,range:_0x34193a,name:_0x4b83e4,selection:_0x146b14,sheetID:_0x3d9474}=_0xb0710c,{startColumn:_0x4d292e,startRow:_0xe15401,endColumn:_0x10d518,endRow:_0x50ef61}=_0x34193a,_0x279215=_0x13de13(_0xe15401,_0x4d292e,_0x22eb30,_0x325bdb),_0x42a276=_0x13de13(_0x50ef61,_0x10d518,_0x22eb30,_0x325bdb),{columnHeaderHeightAndMarginTop:_0x2ce621}=_0x325bdb,{startX:_0x3d3022,startY:_0xc05792}=_0x279215,{endX:_0xd67738,endY:_0x211e57}=_0x42a276,_0x3bf13e=_0xd67738-_0x3d3022,_0x18b61e=_0x211e57-_0xc05792,_0x13fc34={'labelPosition':_0xc05792-_0x2ce621>=ye?_0x3b7e6f(0x24d):_0x3b7e6f(0xd9),'sheetID':_0x3d9474,'range':_0x34193a,'color':_0x5617a1,'name':_0x4b83e4,'selection':_0x146b14,'left':_0x3d3022,'top':_0xc05792,'width':_0x3bf13e,'height':_0x18b61e,'evented':!0x1,'zIndex':Pr};return new Rr(_0x4b83e4,_0x13fc34);});_0x22eb30[_0xc443c3(0x201)](_0x56d28d,Cr),this[_0xc443c3(0x1bc)]=new Set(_0x56d28d);}[_0x354c45(0x92)](){const _0x46a24f=_0x354c45;var _0x37acf7;(_0x37acf7=this[_0x46a24f(0x1bc)])==null||_0x37acf7[_0x46a24f(0x18d)](_0x2f5f3e=>_0x2f5f3e[_0x46a24f(0x220)]());}['_getSheetObject'](){const _0x39e958=_0x354c45;return _0x45a59d(this[_0x39e958(0x321)][_0x39e958(0x245)],this[_0x39e958(0x321)]);}};Tt=Dr([_t(0x1,_0x229f6b(_0x5f02cf)),_t(0x2,_0x229f6b(ge)),_t(0x3,_0x229f6b(_0x276c29))],Tt);function wr(_0x56b698){const _0x26fdd6=_0x354c45,_0x4aac8d=new Map();return _0x56b698[_0x26fdd6(0x18d)](_0x574b89=>{const _0x2c3fbb=_0x26fdd6;if(_0x4aac8d['has'](_0x574b89[_0x2c3fbb(0x1b3)])){const _0x1f8bfe=_0x4aac8d[_0x2c3fbb(0x309)](_0x574b89['selection']);_0x1f8bfe[_0x2c3fbb(0x38c)]+=',\x20'+_0x574b89[_0x2c3fbb(0x38c)];}else _0x4aac8d[_0x2c3fbb(0xdd)](_0x574b89[_0x2c3fbb(0x1b3)],_0x574b89);}),Array[_0x26fdd6(0x247)](_0x4aac8d['values']());}var U=function(){const _0x3f6ae7=_0x354c45;return U=Object['assign']||function(_0x131a8d){const _0x36893e=_0x5b0c;for(var _0x1155e5,_0x368918=0x1,_0x325e8a=arguments['length'];_0x368918<_0x325e8a;_0x368918++){_0x1155e5=arguments[_0x368918];for(var _0x37017b in _0x1155e5)Object['prototype']['hasOwnProperty'][_0x36893e(0x1b1)](_0x1155e5,_0x37017b)&&(_0x131a8d[_0x37017b]=_0x1155e5[_0x37017b]);}return _0x131a8d;},U[_0x3f6ae7(0x1a8)](this,arguments);},Nr=function(_0x1b8637,_0x3e93e4){const _0x56197f=_0x354c45;var _0x318104={};for(var _0x2b278c in _0x1b8637)Object[_0x56197f(0x120)][_0x56197f(0x198)][_0x56197f(0x1b1)](_0x1b8637,_0x2b278c)&&_0x3e93e4['indexOf'](_0x2b278c)<0x0&&(_0x318104[_0x2b278c]=_0x1b8637[_0x2b278c]);if(_0x1b8637!=null&&typeof Object[_0x56197f(0x386)]=='function'){for(var _0x23bf6e=0x0,_0x2b278c=Object[_0x56197f(0x386)](_0x1b8637);_0x23bf6e<_0x2b278c['length'];_0x23bf6e++)_0x3e93e4[_0x56197f(0x181)](_0x2b278c[_0x23bf6e])<0x0&&Object[_0x56197f(0x120)]['propertyIsEnumerable'][_0x56197f(0x1b1)](_0x1b8637,_0x2b278c[_0x23bf6e])&&(_0x318104[_0x2b278c[_0x23bf6e]]=_0x1b8637[_0x2b278c[_0x23bf6e]]);}return _0x318104;},kt=_0x3e44fc(function(_0x5ce5dd,_0x38b147){const _0x5384d2=_0x354c45;var _0x34511c=_0x5ce5dd[_0x5384d2(0x279)],_0x2499e8=_0x5ce5dd['id'],_0xabb7ed=_0x5ce5dd['className'],_0x26df33=_0x5ce5dd['extend'],_0x41cd61=Nr(_0x5ce5dd,[_0x5384d2(0x279),'id',_0x5384d2(0xcf),_0x5384d2(0xf5)]),_0x2f4069=_0x5384d2(0x2b8)[_0x5384d2(0x226)](_0x2499e8,'\x20')[_0x5384d2(0x226)](_0xabb7ed||'')[_0x5384d2(0xcd)](),_0x4ece10=_0x423195('_'[_0x5384d2(0x226)](Ur()));return $s(_0x34511c,''[_0x5384d2(0x226)](_0x2499e8),{'defIds':_0x34511c[_0x5384d2(0x189)],'idSuffix':_0x4ece10[_0x5384d2(0x342)]},U({'ref':_0x38b147,'className':_0x2f4069},_0x41cd61),_0x26df33);});function $s(_0x438eed,_0x217020,_0x248275,_0x4b999b,_0x4d467d){const _0x186f37=_0x354c45;return _0x787c2d(_0x438eed[_0x186f37(0x18f)],U(U({'key':_0x217020},Mr(_0x438eed,_0x248275,_0x4d467d)),_0x4b999b),(Ar(_0x438eed,_0x248275)[_0x186f37(0x1c8)]||[])['map'](function(_0x49a3d8,_0x3b0f1f){const _0x2108aa=_0x186f37;return $s(_0x49a3d8,''[_0x2108aa(0x226)](_0x217020,'-')[_0x2108aa(0x226)](_0x438eed[_0x2108aa(0x18f)],'-')[_0x2108aa(0x226)](_0x3b0f1f),_0x248275,void 0x0,_0x4d467d);}));}function Mr(_0x4be67e,_0x33860b,_0x1555e6){const _0x362ae7=_0x354c45;var _0x4f3bb1=U({},_0x4be67e['attrs']);_0x1555e6!=null&&_0x1555e6[_0x362ae7(0xe6)]&&_0x4f3bb1[_0x362ae7(0x350)]===_0x362ae7(0xe6)&&(_0x4f3bb1[_0x362ae7(0x350)]=_0x1555e6['colorChannel1']);var _0x3af8ab=_0x33860b[_0x362ae7(0x189)];return!_0x3af8ab||_0x3af8ab[_0x362ae7(0x16f)]===0x0||(_0x4be67e[_0x362ae7(0x18f)]===_0x362ae7(0x1e2)&&_0x4f3bb1[_0x362ae7(0x157)]&&(_0x4f3bb1[_0x362ae7(0x157)]=_0x4f3bb1['xlink:href']+_0x33860b[_0x362ae7(0x225)]),Object[_0x362ae7(0xca)](_0x4f3bb1)['forEach'](function(_0x5dddd9){const _0x439ea3=_0x362ae7;var _0x278a1b=_0x5dddd9[0x0],_0xd5d5cc=_0x5dddd9[0x1];typeof _0xd5d5cc==_0x439ea3(0x9f)&&(_0x4f3bb1[_0x278a1b]=_0xd5d5cc[_0x439ea3(0x227)](/url\(#(.*)\)/,_0x439ea3(0xe8)[_0x439ea3(0x226)](_0x33860b[_0x439ea3(0x225)],')')));})),_0x4f3bb1;}function Ar(_0x1aae01,_0x1d2420){const _0x2ee970=_0x354c45;var _0x55a369,_0x124c0d=_0x1d2420[_0x2ee970(0x189)];return!_0x124c0d||_0x124c0d[_0x2ee970(0x16f)]===0x0?_0x1aae01:_0x1aae01[_0x2ee970(0x18f)]===_0x2ee970(0xf7)&&(!((_0x55a369=_0x1aae01[_0x2ee970(0x1c8)])===null||_0x55a369===void 0x0)&&_0x55a369[_0x2ee970(0x16f)])?U(U({},_0x1aae01),{'children':_0x1aae01['children'][_0x2ee970(0x39f)](function(_0x4b3109){const _0x4d84c0=_0x2ee970;return typeof _0x4b3109[_0x4d84c0(0x2b2)]['id']==_0x4d84c0(0x9f)&&_0x124c0d&&_0x124c0d[_0x4d84c0(0x181)](_0x4b3109[_0x4d84c0(0x2b2)]['id'])>-0x1?U(U({},_0x4b3109),{'attrs':U(U({},_0x4b3109[_0x4d84c0(0x2b2)]),{'id':_0x4b3109[_0x4d84c0(0x2b2)]['id']+_0x1d2420['idSuffix']})}):_0x4b3109;})}):_0x1aae01;}function Ur(){const _0x4c93bd=_0x354c45;return Math[_0x4c93bd(0x1f2)]()[_0x4c93bd(0x10b)](0x24)[_0x4c93bd(0xc0)](0x2,0x8);}kt[_0x354c45(0x286)]=_0x354c45(0x222);var yr={'tag':_0x354c45(0x107),'attrs':{'fill':_0x354c45(0x1de),'viewBox':_0x354c45(0x22f),'width':_0x354c45(0xbf),'height':_0x354c45(0xbf)},'children':[{'tag':'g','attrs':{'clipPath':_0x354c45(0x195)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'stroke':'currentColor','d':_0x354c45(0x29d),'strokeLinecap':_0x354c45(0x1cb),'strokeLinejoin':_0x354c45(0x1cb),'strokeWidth':1.2}}]},{'tag':_0x354c45(0xf7),'attrs':{},'children':[{'tag':_0x354c45(0x367),'attrs':{'id':_0x354c45(0x2dd)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'fill':_0x354c45(0x3c1),'d':_0x354c45(0x214)}}]}]}],'defIds':[_0x354c45(0x2dd)]},js=_0x3e44fc(function(_0x36311a,_0x5853d6){const _0x5f253a=_0x354c45;return _0x787c2d(kt,Object['assign']({},_0x36311a,{'id':_0x5f253a(0x29a),'ref':_0x5853d6,'icon':yr}));});js[_0x354c45(0x286)]=_0x354c45(0x364);var Lr={'tag':_0x354c45(0x107),'attrs':{'fill':_0x354c45(0x1de),'viewBox':'0\x200\x2017\x2016','width':_0x354c45(0xbf),'height':_0x354c45(0xbf)},'children':[{'tag':'g','attrs':{'clipPath':_0x354c45(0x84)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'stroke':_0x354c45(0x24b),'d':_0x354c45(0x9a),'strokeLinecap':_0x354c45(0x1cb),'strokeLinejoin':_0x354c45(0x1cb),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x354c45(0x367),'attrs':{'id':_0x354c45(0x1f4)},'children':[{'tag':_0x354c45(0x32a),'attrs':{'fill':_0x354c45(0x3c1),'d':'M0\x200H16V16H0z','transform':_0x354c45(0x21f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xs=_0x3e44fc(function(_0x27c412,_0x558e56){const _0x56c9da=_0x354c45;return _0x787c2d(kt,Object['assign']({},_0x27c412,{'id':_0x56c9da(0x3c5),'ref':_0x558e56,'icon':Lr}));});xs['displayName']=_0x354c45(0x32b);const $r='univer-online-status-icon',jr=_0x354c45(0x370),xr=_0x354c45(0xc1),Hr=_0x354c45(0x16b),kr=_0x354c45(0x246),De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x108ef6){const _0x223153=_0x354c45;switch(_0x108ef6){case P['OFFLINE']:return _0x223153(0x3ca);case P[_0x223153(0xac)]:return _0x223153(0x34f);case P[_0x223153(0x2a9)]:return _0x223153(0x380);case P[_0x223153(0x3c7)]:return _0x223153(0x158);case P[_0x223153(0x24c)]:case P[_0x223153(0x2ca)]:case P['AWAITING_WITH_PENDING']:return _0x223153(0x123);case P[_0x223153(0x1d2)]:return _0x223153(0xfe);}}function Br(_0x5baae9){const _0x25d1d6=_0x354c45,{status$:_0x4462a8}=_0x5baae9,_0x141017=_0x441fd1(_0x4462a8,P[_0x25d1d6(0x3c7)]),_0x4edd04=_0x4b5e73(_0x5e486d),_0x4614d6=_0x141017!==P[_0x25d1d6(0x3c0)],_0x5716f6=_0x4edd04['t'](Vr(_0x141017)),_0x1de45b=_0x59ade5(De[_0x25d1d6(0x341)],{[De[_0x25d1d6(0x97)]]:_0x4614d6,[De[_0x25d1d6(0x8a)]]:!_0x4614d6}),_0x2475c3=_0x4614d6?_0xf888d3[_0x25d1d6(0x2f4)](xs,null):_0xf888d3[_0x25d1d6(0x2f4)](js,null);return _0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':_0x1de45b},_0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':De[_0x25d1d6(0x35d)]},_0x2475c3),_0xf888d3[_0x25d1d6(0x2f4)](_0x25d1d6(0x150),{'className':De['onlineStatusTitle']},_0x5716f6));}var Fr=Object[_0x354c45(0xa3)],Wr=Object['getOwnPropertyDescriptor'],Gr=(_0x76a04a,_0x5ea7d7,_0x2c4780,_0x44ea57)=>{const _0x18eef8=_0x354c45;for(var _0x225454=_0x44ea57>0x1?void 0x0:_0x44ea57?Wr(_0x5ea7d7,_0x2c4780):_0x5ea7d7,_0x4db1a8=_0x76a04a[_0x18eef8(0x16f)]-0x1,_0x3f7054;_0x4db1a8>=0x0;_0x4db1a8--)(_0x3f7054=_0x76a04a[_0x4db1a8])&&(_0x225454=(_0x44ea57?_0x3f7054(_0x5ea7d7,_0x2c4780,_0x225454):_0x3f7054(_0x225454))||_0x225454);return _0x44ea57&&_0x225454&&Fr(_0x5ea7d7,_0x2c4780,_0x225454),_0x225454;},$e=(_0x552aec,_0x1e3e6d)=>(_0x45b29f,_0x23dc0b)=>_0x1e3e6d(_0x45b29f,_0x23dc0b,_0x552aec);let ke=class extends _0x48941f{constructor(_0x434e33,_0x3c564b,_0x54f885,_0xf22c67){const _0x1d98b8=_0x354c45;super(),_(this,_0x1d98b8(0x8b),new _0x421821(P[_0x1d98b8(0x3c7)])),(this[_0x1d98b8(0x134)]=_0x434e33,this[_0x1d98b8(0x1f1)]=_0x3c564b,this[_0x1d98b8(0x259)]=_0x54f885,this[_0x1d98b8(0x234)]=_0xf22c67,this[_0x1d98b8(0x30a)](),this[_0x1d98b8(0x302)]());}[_0x354c45(0x30a)](){const _0x2e2e64=_0x354c45;this['disposeWithMe'](this[_0x2e2e64(0x1f1)]['registerComponent'](_0x1642a6[_0x2e2e64(0x284)],()=>_0x3d07cd(Yr({'status$':this['_status$'][_0x2e2e64(0x209)]()}),this['_injector'])));}[_0x354c45(0x302)](){const _0x3039f5=_0x354c45;this[_0x3039f5(0x1a0)](_0x681995(this[_0x3039f5(0x134)]['focused$'][_0x3039f5(0x1e1)](_0x3f577e(()=>{const _0xada1c7=_0x3039f5,_0x5b4315=this[_0xada1c7(0x134)][_0xada1c7(0x248)]();return _0x5b4315?this['_collaborationController']['getCollabEntity$'](_0x5b4315[_0xada1c7(0x3a7)]()):_0x186ef7(null);}),_0x3f577e(_0x6ad9dc=>_0x6ad9dc?_0x6ad9dc['status$']:_0x186ef7(P['NOT_COLLAB'])))['subscribe'](_0x56dcac=>{const _0x213678=_0x3039f5;this[_0x213678(0x8b)]['next'](_0x56dcac);})));}};ke=Gr([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],ke),$e(0x0,_0x14d401),$e(0x1,_0x5a1da3),$e(0x2,_0x229f6b(_0x3b06f9)),$e(0x3,_0x229f6b(Me))],ke);function Yr(_0x110d1b){const {status$:_0x5d5968}=_0x110d1b;return function(){return _0xf888d3['createElement'](Br,{'status$':_0x5d5968});};}const Hs=_0x120263(_0x354c45(0x392));var Kr=Object[_0x354c45(0xa3)],Xr=Object[_0x354c45(0x3cf)],Jr=(_0x354468,_0x32c5d2,_0x589b79,_0x180068)=>{for(var _0x83136a=_0x180068>0x1?void 0x0:_0x180068?Xr(_0x32c5d2,_0x589b79):_0x32c5d2,_0x362beb=_0x354468['length']-0x1,_0x5beed3;_0x362beb>=0x0;_0x362beb--)(_0x5beed3=_0x354468[_0x362beb])&&(_0x83136a=(_0x180068?_0x5beed3(_0x32c5d2,_0x589b79,_0x83136a):_0x5beed3(_0x83136a))||_0x83136a);return _0x180068&&_0x83136a&&Kr(_0x32c5d2,_0x589b79,_0x83136a),_0x83136a;},ue=(_0x4107e9,_0x1c23c8)=>(_0x4a54a0,_0x3c7248)=>_0x1c23c8(_0x4a54a0,_0x3c7248,_0x4107e9);let Ve=class extends _0x5aeadb{constructor(_0x59dff3,_0x4acaf1,_0x3701d0,_0x5d1215,_0x24de9b,_0x111363){const _0x2102a2=_0x354c45;super(),this[_0x2102a2(0x2b1)]=_0x59dff3,this['_logService']=_0x4acaf1,this['_commandService']=_0x3701d0,this[_0x2102a2(0x29b)]=_0x5d1215,this['_snapshotService']=_0x24de9b,_0x111363?_0x111363==null||_0x111363[_0x2102a2(0x13c)]()[_0x2102a2(0xc4)](()=>this[_0x2102a2(0x330)]()):(this[_0x2102a2(0x10f)]['debug'](_0x2102a2(0x3a3),_0x2102a2(0x271)),this[_0x2102a2(0x330)]());}async['_init'](){const _0x374d94=_0x354c45,_0x1e9adb=this['_urlService'][_0x374d94(0xf9)](_0x374d94(0x245)),_0x9a8481=this['_urlService']['getParam'](_0x374d94(0x354));if(!_0x1e9adb||!_0x9a8481){this['_logService'][_0x374d94(0x1cd)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x9a8481)){case H['UNIVER_SHEET']:{const _0x2b535d=await this[_0x374d94(0x166)](_0x1e9adb);this[_0x374d94(0x344)](_0x2b535d);break;}case H[_0x374d94(0x30e)]:{await this[_0x374d94(0x169)](_0x1e9adb);break;}default:{this['_logService'][_0x374d94(0x35c)]('[DataLoaderController]',_0x374d94(0x173));break;}}}async[_0x354c45(0x344)](_0x3889d9){const _0x4c4c17=_0x354c45;await this[_0x4c4c17(0x2bb)](_0x3889d9),_0x3889d9[_0x4c4c17(0xe9)]['pipe'](_0x60ccde(this['dispose$']))[_0x4c4c17(0x37e)](_0x5db28d=>{_0x5db28d&&this['_updateURLWithCurrentState'](_0x5db28d);}),this[_0x4c4c17(0x2b1)][_0x4c4c17(0xa9)][_0x4c4c17(0x1e1)](_0x60ccde(this[_0x4c4c17(0x1a1)]))[_0x4c4c17(0x37e)](()=>this[_0x4c4c17(0x2bb)](_0x3889d9));}[_0x354c45(0x373)](_0x25412f,_0x273f79=!0x1){const _0x537890=_0x354c45,_0x455e99=this['_urlService'][_0x537890(0xf9)]('subunit');_0x25412f[_0x537890(0x13b)]()!==_0x455e99&&this['_urlService']['setParam']('subunit',_0x25412f[_0x537890(0x13b)](),_0x273f79);}async[_0x354c45(0x2bb)](_0x3882b7){const _0x3f72ac=_0x354c45;var _0x3f039c;const _0x2c7e88=this[_0x3f72ac(0x2b1)]['getParam'](_0x3f72ac(0x144));if(!_0x2c7e88||!_0x3882b7[_0x3f72ac(0x176)](_0x2c7e88)){const _0x4605b3=_0x3882b7['getUnhiddenWorksheets']()[0x0],_0xf2caf7=_0x3882b7[_0x3f72ac(0x176)](_0x4605b3);if(!_0xf2caf7)return;this[_0x3f72ac(0x373)](_0xf2caf7,!0x0),await this[_0x3f72ac(0x19f)]['executeCommand'](_0x157375['id'],{'unitId':_0x3882b7['getUnitId'](),'subUnitId':_0x4605b3});return;}((_0x3f039c=_0x3882b7[_0x3f72ac(0x1a5)]())==null?void 0x0:_0x3f039c[_0x3f72ac(0x13b)]())!==_0x2c7e88&&await this[_0x3f72ac(0x19f)][_0x3f72ac(0x2ef)](_0x157375['id'],{'unitId':_0x3882b7[_0x3f72ac(0x3a7)](),'subUnitId':_0x2c7e88});}async[_0x354c45(0x166)](_0x12346f){const _0x3acfea=_0x354c45;let _0x5b3db2=0x0;const _0x25b7c4=await this['_localCacheService']['loadOfflineData'](_0x12346f);return _0x25b7c4&&(_0x25b7c4[_0x3acfea(0x314)]||_0x25b7c4[_0x3acfea(0x11e)][_0x3acfea(0x16f)]!==0x0)&&(_0x5b3db2=_0x25b7c4[_0x3acfea(0xdb)]),_0x5b3db2===0x0&&this[_0x3acfea(0x10f)][_0x3acfea(0x1cd)](_0x3acfea(0x3a3),_0x3acfea(0x282)),this['_snapshotService'][_0x3acfea(0x160)](_0x12346f,_0x5b3db2);}async['_loadDoc'](_0x70ad5a){const _0x36385e=_0x354c45;let _0x36e443=0x0;const _0x2234ab=await this[_0x36385e(0x29b)][_0x36385e(0x179)](_0x70ad5a);return _0x2234ab&&(_0x2234ab[_0x36385e(0x314)]||_0x2234ab[_0x36385e(0x11e)]['length']!==0x0)&&(_0x36e443=_0x2234ab[_0x36385e(0xdb)]),_0x36e443===0x0&&this[_0x36385e(0x10f)][_0x36385e(0x1cd)]('[DataLoaderController]',_0x36385e(0x282)),this[_0x36385e(0x168)]['loadDoc'](_0x70ad5a,_0x36e443);}};Ve=Jr([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],Ve),ue(0x0,Hs),ue(0x1,_0x4491a7),ue(0x2,_0x151749),ue(0x3,_0x229f6b(D)),ue(0x4,_0x229f6b(_0x1f8d1f)),ue(0x5,_0x1ed7ac(_0x190e16))],Ve);var zr=Object['defineProperty'],qr=Object[_0x354c45(0x3cf)],Zr=(_0xb5f6d2,_0x4b0e87,_0x52ba84,_0x57dcda)=>{const _0x2d8f5c=_0x354c45;for(var _0x3e2f28=_0x57dcda>0x1?void 0x0:_0x57dcda?qr(_0x4b0e87,_0x52ba84):_0x4b0e87,_0x22e178=_0xb5f6d2[_0x2d8f5c(0x16f)]-0x1,_0x189568;_0x22e178>=0x0;_0x22e178--)(_0x189568=_0xb5f6d2[_0x22e178])&&(_0x3e2f28=(_0x57dcda?_0x189568(_0x4b0e87,_0x52ba84,_0x3e2f28):_0x189568(_0x3e2f28))||_0x3e2f28);return _0x57dcda&&_0x3e2f28&&zr(_0x4b0e87,_0x52ba84,_0x3e2f28),_0x3e2f28;},hs=(_0x2a04a1,_0x908eaf)=>(_0x3b6b33,_0x2af06a)=>_0x908eaf(_0x3b6b33,_0x2af06a,_0x2a04a1);const Qr=_0x354c45(0x2f9),eo=_0x354c45(0x3c4);let Be=class extends _0x48941f{constructor(_0x4f861a,_0x3a2d6f){const _0x20220e=_0x354c45;super(),this[_0x20220e(0x134)]=_0x4f861a,this[_0x20220e(0x102)]=_0x3a2d6f,this['_init']();}[_0x354c45(0x330)](){const _0x4b1eca=_0x354c45;this[_0x4b1eca(0x1a0)](_0x681995(this[_0x4b1eca(0x134)][_0x4b1eca(0x223)][_0x4b1eca(0x37e)](()=>{const _0x1953f2=_0x4b1eca;var _0x2f763e;const _0x457c94=this[_0x1953f2(0x134)]['getFocusedUnit']();let _0x445f26=(_0x2f763e=this[_0x1953f2(0x102)][_0x1953f2(0x119)](Qr))!=null?_0x2f763e:eo;_0x457c94 instanceof _0x3ad7b2&&(_0x445f26=_0x457c94[_0x1953f2(0x38c)]),document[_0x1953f2(0xd7)]=_0x445f26;})));}};Be=Zr([_0x5c1b58(_0x21b2c3[_0x354c45(0x15f)],Be),hs(0x0,_0x14d401),hs(0x1,_0x476b70)],Be);var to=Object[_0x354c45(0xa3)],so=Object[_0x354c45(0x3cf)],io=(_0x2ee37e,_0x45e38a,_0x3a0523,_0xc183ed)=>{const _0x563e77=_0x354c45;for(var _0x8998b3=_0xc183ed>0x1?void 0x0:_0xc183ed?so(_0x45e38a,_0x3a0523):_0x45e38a,_0xbe9ba4=_0x2ee37e[_0x563e77(0x16f)]-0x1,_0x46f132;_0xbe9ba4>=0x0;_0xbe9ba4--)(_0x46f132=_0x2ee37e[_0xbe9ba4])&&(_0x8998b3=(_0xc183ed?_0x46f132(_0x45e38a,_0x3a0523,_0x8998b3):_0x46f132(_0x8998b3))||_0x8998b3);return _0xc183ed&&_0x8998b3&&to(_0x45e38a,_0x3a0523,_0x8998b3),_0x8998b3;},_s=(_0x4cd9fe,_0x105a5f)=>(_0xf7925c,_0x2f01ae)=>_0x105a5f(_0xf7925c,_0x2f01ae,_0x4cd9fe);let Ot=class{constructor(_0x5aa91e,_0x3ad6d5){const _0x3653fc=_0x354c45;this[_0x3653fc(0x102)]=_0x5aa91e,this[_0x3653fc(0x137)]=_0x3ad6d5;}async[_0x354c45(0x7f)](_0x2a4742,_0x58acc4){const _0x13312e=_0x354c45;var _0x3c000b;const {unitID:_0x1a86a8,type:_0x6a2fe2,revision:_0x52e002=0x0}=_0x58acc4,_0x4394a3=this[_0x13312e(0x1d0)]()+'/'+_0x6a2fe2+_0x13312e(0x2f3)+_0x1a86a8+'/rev/'+_0x52e002,_0x177694=(await this[_0x13312e(0x137)]['get'](_0x4394a3))[_0x13312e(0xd6)],_0x5e27fe=(_0x3c000b=_0x177694[_0x13312e(0x236)])==null?void 0x0:_0x3c000b['workbook'];if(_0x5e27fe){const _0x544b10=_0x5e27fe==null?void 0x0:_0x5e27fe[_0x13312e(0x319)],_0x195ac3=_0x42040e['encode'](_0x3cfeb4(_0x544b10));_0x5e27fe[_0x13312e(0x319)]=_0x195ac3,Object[_0x13312e(0xca)](_0x5e27fe[_0x13312e(0x265)])['forEach'](([,_0x1170c4])=>{const _0x1b7408=_0x13312e,_0x9d61a5=_0x1170c4[_0x1b7408(0x319)],_0x29e909=_0x42040e[_0x1b7408(0x289)](_0x3cfeb4(_0x9d61a5));_0x1170c4[_0x1b7408(0x319)]=_0x29e909;});}return _0x177694;}async[_0x354c45(0x2a4)](_0x28009e,_0x67e7f1){const _0x3b981e=_0x354c45,{unitID:_0x2a4fbb,type:_0x1f98a6,blockID:_0x1cc77b}=_0x67e7f1,_0x1cb990=this[_0x3b981e(0x377)]()+'/'+_0x1f98a6+'/unit/'+_0x2a4fbb+_0x3b981e(0x3ab)+_0x1cc77b;return(await this['_httpService'][_0x3b981e(0x309)](_0x1cb990))[_0x3b981e(0xd6)];}async[_0x354c45(0x89)](_0x1cbbe1,_0x439eb4){const _0x1f0864=_0x354c45,{unitID:_0x1d470f,type:_0x2ea314,from:_0x493443,to:_0x396d45}=_0x439eb4,_0x1dd67e=this[_0x1f0864(0x377)]()+'/'+_0x2ea314+'/unit/'+_0x1d470f+_0x1f0864(0x213)+_0x493443+_0x1f0864(0x1e6)+_0x396d45;return(await this[_0x1f0864(0x137)][_0x1f0864(0x309)](_0x1dd67e))[_0x1f0864(0xd6)];}[_0x354c45(0x1d0)](){const _0x25e8d8=_0x354c45;var _0x53a24e;return(_0x53a24e=this['_configService'][_0x25e8d8(0x119)](hn))!=null?_0x53a24e:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x2f652d=_0x354c45;var _0x3b15c7;return(_0x3b15c7=this['_configService'][_0x2f652d(0x119)](an))!=null?_0x3b15c7:cn;}async[_0x354c45(0x389)](_0xbe0613,_0x278349){const _0x19af79=_0x354c45,_0x273eeb=_0x19af79(0x355)+_0x278349[_0x19af79(0x354)]+_0x19af79(0x2f3)+_0x278349[_0x19af79(0x22b)]+_0x19af79(0x118);return(await this[_0x19af79(0x137)][_0x19af79(0x309)](_0x273eeb,{'params':{'resourceId':JSON[_0x19af79(0x303)](_0x278349[_0x19af79(0x26a)])}}))['body'];}[_0x354c45(0x283)](){const _0x448a24=_0x354c45;throw new Error(_0x448a24(0xec));}[_0x354c45(0x250)](){const _0x2d175a=_0x354c45;throw new Error(_0x2d175a(0xec));}['saveChangeset'](){const _0x988c11=_0x354c45;throw new Error(_0x988c11(0xec));}};Ot=io([_s(0x0,_0x476b70),_s(0x1,_0x229f6b(_0x131927))],Ot);var no=Object[_0x354c45(0xa3)],ro=Object[_0x354c45(0x3cf)],oo=(_0x101545,_0x4ca0c0,_0x4742af,_0x3991df)=>{const _0x399c1b=_0x354c45;for(var _0x376294=_0x3991df>0x1?void 0x0:_0x3991df?ro(_0x4ca0c0,_0x4742af):_0x4ca0c0,_0x288374=_0x101545[_0x399c1b(0x16f)]-0x1,_0x2f5997;_0x288374>=0x0;_0x288374--)(_0x2f5997=_0x101545[_0x288374])&&(_0x376294=(_0x3991df?_0x2f5997(_0x4ca0c0,_0x4742af,_0x376294):_0x2f5997(_0x376294))||_0x376294);return _0x3991df&&_0x376294&&no(_0x4ca0c0,_0x4742af,_0x376294),_0x376294;},Pe=(_0x29104b,_0x424948)=>(_0x10ebec,_0x516160)=>_0x424948(_0x10ebec,_0x516160,_0x29104b);let Dt=class extends _0x3df25f{constructor(_0x104c43,_0xc7c3fa,_0x5f0bc5,_0x588e9d,_0x2db42e){const _0x3e122b=_0x354c45;super(_0x104c43,_0xc7c3fa,_0x5f0bc5),this[_0x3e122b(0x351)]=_0x588e9d,this[_0x3e122b(0x10f)]=_0x2db42e;}[_0x354c45(0x99)](_0x19fa41,_0x166b05){const _0x8994ae=_0x354c45,_0x59ba93=this[_0x8994ae(0x1b0)](_0x19fa41);if(_0x59ba93)try{const _0x1fc7e1=this[_0x8994ae(0x2e5)](_0x59ba93,_0x166b05);this[_0x8994ae(0x205)](_0x19fa41,_0x1fc7e1);}catch(_0x551389){this[_0x8994ae(0x10f)][_0x8994ae(0x35c)](_0x8994ae(0x37b),_0x551389),this[_0x8994ae(0x149)](_0x19fa41);}const _0x1c694c=this[_0x8994ae(0x17e)](_0x19fa41);if(_0x1c694c)try{const _0x3ec911=this['_transformStack'](_0x1c694c,_0x166b05);this['_substituteRedoStack'](_0x19fa41,_0x3ec911);}catch(_0x30ccb7){this[_0x8994ae(0x10f)][_0x8994ae(0x35c)](_0x30ccb7),this[_0x8994ae(0x3aa)](_0x19fa41);}}[_0x354c45(0x149)](_0x398f27){const _0x2b44a5=_0x354c45,_0x57e560=this[_0x2b44a5(0x1b0)](_0x398f27);_0x57e560&&(_0x57e560[_0x2b44a5(0x16f)]=0x0,this['_updateStatus']());}[_0x354c45(0x3aa)](_0x49eecd){const _0x37bab9=_0x354c45,_0x3ad0fd=this[_0x37bab9(0x17e)](_0x49eecd);_0x3ad0fd&&(_0x3ad0fd[_0x37bab9(0x16f)]=0x0,this[_0x37bab9(0x18a)]());}[_0x354c45(0x205)](_0x721ef7,_0x4bb2df){const _0x56929a=_0x354c45;this[_0x56929a(0x117)][_0x56929a(0xdd)](_0x721ef7,_0x4bb2df),this['_updateStatus']();}[_0x354c45(0xda)](_0x33de30,_0x58f2f6){const _0x52eee7=_0x354c45;this[_0x52eee7(0x2e7)][_0x52eee7(0xdd)](_0x33de30,_0x58f2f6),this[_0x52eee7(0x18a)]();}[_0x354c45(0x2e5)](_0x1e807e,_0x375ab1){const _0x1ad9c5=_0x354c45,_0x42f587=[];let _0x344a98=_0x375ab1,_0x17637=_0x375ab1;for(let _0x320435=_0x1e807e[_0x1ad9c5(0x16f)]-0x1;_0x320435>=0x0;_0x320435--){const {unitID:_0x59a08c,undoMutations:_0xcce287,redoMutations:_0x25b8a0}=_0x1e807e[_0x320435],_0x348050=this['_transformService'][_0x1ad9c5(0x109)](_0x344a98,_0xcce287),_0x50f6e2=this[_0x1ad9c5(0x351)]['transformMutationsWithChangeset'](_0x17637,_0x25b8a0);if(_0x2beedb(_0x348050)||_0x2beedb(_0x50f6e2)){this[_0x1ad9c5(0x10f)][_0x1ad9c5(0x35c)](_0x1ad9c5(0x37b),_0x1ad9c5(0x20a),_0x348050,_0x50f6e2);break;}_0x344a98=_0x348050['c1Prime'],_0x17637=_0x50f6e2[_0x1ad9c5(0x235)],_0x42f587[_0x1ad9c5(0x34c)]({'unitID':_0x59a08c,'undoMutations':_0x348050['m2Prime'],'redoMutations':_0x50f6e2[_0x1ad9c5(0x31e)]});}return _0x42f587[_0x1ad9c5(0xb5)]();}};Dt=oo([Pe(0x0,_0x14d401),Pe(0x1,_0x151749),Pe(0x2,_0x56cb45),Pe(0x3,_0x5c9e6a),Pe(0x4,_0x4491a7)],Dt);class ao extends _0x5aeadb{constructor(){const _0x2d81d7=_0x354c45;super(),_(this,'urlChange$'),this['urlChange$']=_0x1f17b0(window,_0x2d81d7(0x357))[_0x2d81d7(0x1e1)](_0x60ccde(this[_0x2d81d7(0x1a1)]),_0x38f1e1(0x1),_0x378129(void 0x0));}[_0x354c45(0x30d)](_0x35a11f,_0x568a0c,_0x180a43=!0x1){const _0x174138=_0x354c45,_0x21238a=new URL(window[_0x174138(0x3cb)]['href']);_0x21238a[_0x174138(0x2fb)]['set'](_0x35a11f,_0x568a0c),_0x180a43?window['history'][_0x174138(0x2c3)]('','',_0x21238a[_0x174138(0x10b)]()):window[_0x174138(0x2bf)][_0x174138(0x39c)]('','',_0x21238a[_0x174138(0x10b)]());}[_0x354c45(0x295)](_0x260912,_0x307491=!0x1){const _0x3bf745=_0x354c45,_0x3523ba=new URL(window[_0x3bf745(0x3cb)][_0x3bf745(0xad)]);_0x3523ba['searchParams'][_0x3bf745(0x33a)](_0x260912),_0x307491?window[_0x3bf745(0x2bf)]['replaceState']('','',_0x3523ba[_0x3bf745(0x10b)]()):window['history'][_0x3bf745(0x39c)]('','',_0x3523ba['toString']());}[_0x354c45(0xf9)](_0x11dda5){const _0x511bc6=_0x354c45;var _0x287c3f;return(_0x287c3f=new URL(window[_0x511bc6(0x3cb)][_0x511bc6(0xad)])[_0x511bc6(0x2fb)][_0x511bc6(0x309)](_0x11dda5))!=null?_0x287c3f:void 0x0;}}const lt=_0x354c45(0x23a),co='collab-text-range-',ho=_0x354c45(0xde),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0x354c45(0x36f);class ls{constructor(_0x312183,_0x2fe9cd,_0x8445bf,_0x256aaf){const _0xefd0ca=_0x354c45;_(this,_0xefd0ca(0x1c5),[]),_(this,_0xefd0ca(0x369),null),_(this,_0xefd0ca(0x1e3),null),_(this,_0xefd0ca(0x90),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0xefd0ca(0xb3)]=_0x312183,this[_0xefd0ca(0xf3)]=_0x2fe9cd,this['_docSkeleton']=_0x8445bf,this['_document']=_0x256aaf,this[_0xefd0ca(0xa5)]());}set[_0x354c45(0x365)](_0x3937f0){const _0x54021f=_0x354c45;_0x3937f0?(this[_0x54021f(0x90)]&&this['_anchorDot'][_0x54021f(0x1ca)](),this[_0x54021f(0x1e3)]&&this[_0x54021f(0x1e3)][_0x54021f(0x2e0)]()):(this['_anchorDot']&&this[_0x54021f(0x90)]['show'](),this[_0x54021f(0x1e3)]&&this['_textBubble']['hide']());}[_0x354c45(0x220)](){const _0x2f2228=_0x354c45;for(const _0x5414d7 of this['_shapes'])_0x5414d7[_0x2f2228(0x220)]();this[_0x2f2228(0x1e3)]&&this[_0x2f2228(0x1e3)][_0x2f2228(0x220)](),this[_0x2f2228(0x90)]&&this[_0x2f2228(0x90)]['dispose'](),this['_anchor']&&this[_0x2f2228(0x369)][_0x2f2228(0x220)](),this[_0x2f2228(0x281)]&&this[_0x2f2228(0x281)]();}[_0x354c45(0xa5)](){const _0x3fa917=_0x354c45;var _0x2c4868;const {_docSkeleton:_0x2ffc87,_document:_0x5d3971}=this,{color:_0x4fbcd5,name:_0x2be763,ranges:_0xb0afab}=this[_0x3fa917(0xb3)],_0x3a94e1=_0x5d3971[_0x3fa917(0x34e)](),{docsLeft:_0x555851,docsTop:_0x4492c8}=_0x3a94e1,_0x35179e=new _0x38a9be(_0x3a94e1,_0x2ffc87);for(const {startOffset:_0xc6739e,endOffset:_0x4f0a39,collapsed:_0x5321ca,isActive:_0x5721a1}of _0xb0afab){const _0xd2fd31=_0x2ffc87['findNodePositionByCharIndex'](_0xc6739e),_0x1ccf9a=_0x2ffc87['findNodePositionByCharIndex'](_0x4f0a39);if(_0x5721a1){const {contentBoxPointGroup:_0x97c107}=_0x35179e[_0x3fa917(0x12b)](_0x1ccf9a,_0x1ccf9a);if(_0x97c107['length']===0x0)continue;this[_0x3fa917(0x128)](_0x4fbcd5,_0x97c107,_0x555851,_0x4492c8,_0x2be763),this[_0x3fa917(0x281)]=this[_0x3fa917(0x2b7)]();}if(!_0x5321ca&&_0xd2fd31&&_0x1ccf9a){if(_0x197747(_0xd2fd31,_0x1ccf9a)){const _0x158b26=new _0x5e6d76(_0x3a94e1,_0x2ffc87),{pointGroup:_0x1900b9}=(_0x2c4868=_0x158b26['getRangePointData'](_0xd2fd31,_0x1ccf9a))!=null?_0x2c4868:{};if(_0x1900b9==null||_0x1900b9[_0x3fa917(0x16f)]===0x0)continue;this['_drawRectRange'](_0x4fbcd5,_0x1900b9,_0x555851,_0x4492c8);}else{const {contentBoxPointGroup:_0x369c0d}=_0x35179e[_0x3fa917(0x12b)](_0xd2fd31,_0x1ccf9a);if(_0x369c0d['length']===0x0)continue;this[_0x3fa917(0x343)](_0x4fbcd5,_0x369c0d,_0x555851,_0x4492c8);}}}}[_0x354c45(0x128)](_0x32efe8,_0x434043,_0x53415e,_0x1d4bf3,_0x2da91f){const _0xe92a2f=_0x354c45,_0x4de42d=this['_getAnchorBounding'](_0x434043),{left:_0x3364c3,top:_0x348b33,height:_0x152a45}=_0x4de42d,_0x262d8e=this[_0xe92a2f(0xc9)](),_0x100f0c=lo/_0x262d8e,_0x34192d=new _0x222909(lt+_0x40bd5b['generateRandomId'](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3,'height':_0x152a45,'width':_o,'fill':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'strokeWidth':_0x100f0c,'stroke':uo,'evented':!0x0});this[_0xe92a2f(0x369)]=_0x34192d,this[_0xe92a2f(0xf3)]['addObject'](_0x34192d,_0x5864fb);const _0x253d78=new _0x222909(lt+_0x40bd5b[_0xe92a2f(0x38f)](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3-ut/0x2,'height':ut,'width':ut,'fill':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'strokeWidth':0x0,'stroke':_0x32efe8||_0x3202eb(_0xc3f366[_0xe92a2f(0x33f)],0x0),'evented':!0x1});this[_0xe92a2f(0x90)]=_0x253d78,this[_0xe92a2f(0xf3)][_0xe92a2f(0xcb)](_0x253d78,_0x5864fb);const _0x5c3198=new it(lt+_0x40bd5b[_0xe92a2f(0x38f)](we),{'left':_0x3364c3+_0x53415e-_0x100f0c,'top':_0x348b33+_0x1d4bf3-ye,'text':_0x2da91f,'color':_0x32efe8});this[_0xe92a2f(0x1e3)]=_0x5c3198,this[_0xe92a2f(0xf3)]['addObject'](_0x5c3198,_0x5864fb),this[_0xe92a2f(0x365)]=!0x1;}[_0x354c45(0x2b7)](){const _0x46f9e0=_0x354c45,_0x1b5987=this[_0x46f9e0(0x369)][_0x46f9e0(0x25c)]['subscribeEvent'](()=>{const _0x25907c=_0x46f9e0;this[_0x25907c(0x365)]=!0x0;}),_0x53cf27=this[_0x46f9e0(0x369)]['onPointerLeave$'][_0x46f9e0(0xe5)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x32f357=_0x5b0c;this[_0x32f357(0x365)]=!0x1;},0x7d0);});return()=>{const _0x5c099c=_0x46f9e0;_0x1b5987[_0x5c099c(0x2ae)](),_0x53cf27[_0x5c099c(0x2ae)]();};}[_0x354c45(0x343)](_0x3680bf,_0x5f21d0,_0x262d11,_0x3b35ba){const _0x5b1376=_0x354c45,_0x3f3e27=new _0x3b0d65(_0x3680bf)[_0x5b1376(0x200)](0.2)[_0x5b1376(0x171)](),_0x42cba1=new _0x12e0ff(co+_0x40bd5b[_0x5b1376(0x38f)](we),{'pointsGroup':_0x5f21d0,'fill':_0x3f3e27||_0x3202eb(_0xc3f366['black'],0.2),'left':_0x262d11,'top':_0x3b35ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b1376(0x1c5)][_0x5b1376(0x34c)](_0x42cba1),this[_0x5b1376(0xf3)][_0x5b1376(0xcb)](_0x42cba1,_0x5864fb);}[_0x354c45(0x3ac)](_0x1eb622,_0x3fe667,_0x413616,_0x2c0593){const _0x142af1=_0x354c45,_0x11697d=new _0x3b0d65(_0x1eb622)[_0x142af1(0x200)](0.2)[_0x142af1(0x171)](),_0x1cd47d=new _0x12e0ff(ho+_0x40bd5b[_0x142af1(0x38f)](we),{'pointsGroup':_0x3fe667,'fill':_0x11697d||_0x3202eb(_0xc3f366[_0x142af1(0x33f)],0.2),'left':_0x413616,'top':_0x2c0593,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x142af1(0x34c)](_0x1cd47d),this[_0x142af1(0xf3)]['addObject'](_0x1cd47d,_0x5864fb);}[_0x354c45(0x304)](_0x40b826){const _0x1dc219=_0x40b826[0x0],_0x432f4e=_0x1dc219[0x0],_0x2e4d4c=_0x1dc219[0x2],{x:_0x1d1107,y:_0xea6f98}=_0x432f4e,{x:_0x434357,y:_0x18b01e}=_0x2e4d4c;return{'left':_0x1d1107,'top':_0xea6f98,'width':_0x434357-_0x1d1107,'height':_0x18b01e-_0xea6f98};}[_0x354c45(0xc9)](){const _0x57ea26=_0x354c45,{scaleX:_0x45bc4f,scaleY:_0x18eadc}=this[_0x57ea26(0xf3)][_0x57ea26(0x376)]();return Math[_0x57ea26(0x2f2)](_0x45bc4f,_0x18eadc);}}var mo=Object['defineProperty'],fo=Object[_0x354c45(0x3cf)],go=(_0x443503,_0xf363e1,_0x1405e8,_0x27eca2)=>{const _0x5f0c4f=_0x354c45;for(var _0x3f9f6e=_0x27eca2>0x1?void 0x0:_0x27eca2?fo(_0xf363e1,_0x1405e8):_0xf363e1,_0xd773f8=_0x443503[_0x5f0c4f(0x16f)]-0x1,_0x198204;_0xd773f8>=0x0;_0xd773f8--)(_0x198204=_0x443503[_0xd773f8])&&(_0x3f9f6e=(_0x27eca2?_0x198204(_0xf363e1,_0x1405e8,_0x3f9f6e):_0x198204(_0x3f9f6e))||_0x3f9f6e);return _0x27eca2&&_0x3f9f6e&&mo(_0xf363e1,_0x1405e8,_0x3f9f6e),_0x3f9f6e;},je=(_0x171aae,_0x3b7b4f)=>(_0x1e64b9,_0x186cf4)=>_0x3b7b4f(_0x1e64b9,_0x186cf4,_0x171aae);let Fe=class extends _0x5aeadb{constructor(_0x39b08f,_0xc89535,_0x21096b,_0xb1a669,_0x32d01f){const _0x2ec2f7=_0x354c45;super(),_(this,_0x2ec2f7(0x20b),[]),_(this,_0x2ec2f7(0x1bc),[]),(this['_context']=_0x39b08f,this['_docSkeletonManagerService']=_0xc89535,this[_0x2ec2f7(0x1ff)]=_0x21096b,this['_commandService']=_0xb1a669,this[_0x2ec2f7(0x30c)]=_0x32d01f,this[_0x2ec2f7(0x330)]());}['_init'](){const _0x12e529=_0x354c45,_0x142cbd=this[_0x12e529(0x321)][_0x12e529(0x393)],_0x5f5cc3=this[_0x12e529(0x224)];this[_0x12e529(0x1a0)](_0x4aa21b([this[_0x12e529(0x1ff)]['getCollabCursors$'](_0x142cbd),this['_themeService'][_0x12e529(0xa7)]])[_0x12e529(0x1e1)](_0x1b7b12(([_0x53beff,_0x566f10])=>({'skeleton':_0x5f5cc3[_0x12e529(0x26d)](),'cursors':[..._0x53beff['values']()][_0x12e529(0x1d6)](_0x4b21eb=>({..._0x4b21eb,'color':_0x566f10[_0x4b21eb[_0x12e529(0x3d0)]]}))})))[_0x12e529(0x37e)](_0x53e595=>{const _0x56ac15=_0x12e529;if(this[_0x56ac15(0x92)](),_0x53e595){const {skeleton:_0x111f6d,cursors:_0x43009c}=_0x53e595;this[_0x56ac15(0xfb)](_0x111f6d,_0x43009c);}})),this['_initResize'](),this[_0x12e529(0x24e)]();}[_0x354c45(0xfb)](_0xc6ab72,_0x3a386f){const _0x3201c3=_0x354c45,{scene:_0x2289a7,mainComponent:_0x705a3b}=this[_0x3201c3(0x321)],_0x50b70c=_0x3a386f[_0x3201c3(0x39f)](_0x5a520e=>new ls(_0x5a520e,_0x2289a7,_0xc6ab72,_0x705a3b));this[_0x3201c3(0x20b)]=_0x50b70c,this['_cursors']=_0x3a386f;}['_refreshCollabCursors'](){const _0x1fc407=_0x354c45;this['_removeCollabCursors']();const {scene:_0x242404,mainComponent:_0x242b46}=this[_0x1fc407(0x321)],_0x1818d2=this[_0x1fc407(0x224)][_0x1fc407(0x26d)](),_0x5c9f23=this[_0x1fc407(0x1bc)]['map'](_0x1f36c1=>new ls(_0x1f36c1,_0x242404,_0x1818d2,_0x242b46));this['_cursorShapes']=_0x5c9f23;}['_removeCollabCursors'](){const _0x291e59=_0x354c45;this[_0x291e59(0x20b)][_0x291e59(0x18d)](_0x476c70=>_0x476c70[_0x291e59(0x220)]()),this[_0x291e59(0x20b)]=[];}[_0x354c45(0x24e)](){const _0x4dd24c=_0x354c45,_0x180987=[_0x19eff9['id']];this[_0x4dd24c(0x1a0)](this['_commandService']['onCommandExecuted'](_0x4b5555=>{const _0x5dc311=_0x4dd24c;_0x180987[_0x5dc311(0x3a8)](_0x4b5555['id'])&&_0x4b5555[_0x5dc311(0x29e)]['unitId']===this[_0x5dc311(0x321)][_0x5dc311(0x393)]&&this[_0x5dc311(0x1ed)]();}));}['_initResize'](){const _0xac7259=_0x354c45;this[_0xac7259(0x1a0)](_0x287600(this[_0xac7259(0x321)][_0xac7259(0x399)][_0xac7259(0x2d6)])[_0xac7259(0x1e1)](_0x2a5de4(_0x33b20d=>_0x33b20d[_0xac7259(0x354)]===_0x4d9e9f[_0xac7259(0x1d1)]),_0x78d7ad(0x10))[_0xac7259(0x37e)](()=>{const _0x222fd9=_0xac7259;this[_0x222fd9(0x1ed)]();}));}};Fe=go([_0x5c1b58(_0x21b2c3['Steady'],Fe),je(0x1,_0x229f6b(_0x3a7927)),je(0x2,_0x229f6b(ge)),je(0x3,_0x151749),je(0x4,_0x229f6b(_0x276c29))],Fe);var So=Object[_0x354c45(0xa3)],po=Object[_0x354c45(0x3cf)],vo=(_0x183436,_0x53c0dd,_0x1a09f9,_0x5c803b)=>{for(var _0x34cddd=_0x5c803b>0x1?void 0x0:_0x5c803b?po(_0x53c0dd,_0x1a09f9):_0x53c0dd,_0x3a3d5c=_0x183436['length']-0x1,_0x477a02;_0x3a3d5c>=0x0;_0x3a3d5c--)(_0x477a02=_0x183436[_0x3a3d5c])&&(_0x34cddd=(_0x5c803b?_0x477a02(_0x53c0dd,_0x1a09f9,_0x34cddd):_0x477a02(_0x34cddd))||_0x34cddd);return _0x5c803b&&_0x34cddd&&So(_0x53c0dd,_0x1a09f9,_0x34cddd),_0x34cddd;},dt=(_0x37aad6,_0x305783)=>(_0x5a021a,_0x88f1c4)=>_0x305783(_0x5a021a,_0x88f1c4,_0x37aad6);let Qe=class{constructor(_0x33e342,_0x5f0e39,_0xde012b){const _0x5ccab8=_0x354c45;this[_0x5ccab8(0x102)]=_0x33e342,this[_0x5ccab8(0x137)]=_0x5f0e39,this['localeService']=_0xde012b,this[_0x5ccab8(0x1ce)]();}[_0x354c45(0x1ce)](){const _0x5eac8c=_0x354c45;this[_0x5eac8c(0x137)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5baacf,_0x29dfb7)=>_0x29dfb7(_0x5baacf)[_0x5eac8c(0x1e1)](_0x54be95(async _0x14dd27=>{const _0x2c7a1f=_0x5eac8c,_0x541cc1=_0x14dd27;if(_0x541cc1['status']===0x191&&window[_0x2c7a1f(0x21a)](this[_0x2c7a1f(0x291)]['t'](_0x2c7a1f(0xaa)))){const _0x45c82f=window[_0x2c7a1f(0x126)](window[_0x2c7a1f(0x3cb)][_0x2c7a1f(0xad)]);window[_0x2c7a1f(0x3cb)][_0x2c7a1f(0xad)]=this['_getLoginPath']()+_0x2c7a1f(0x333)+_0x45c82f;}return _0x541cc1;}))});}[_0x354c45(0xa1)](){const _0x21c687=_0x354c45;var _0x11a2dc;return(_0x11a2dc=this[_0x21c687(0x102)]['getConfig'](Rn))!=null?_0x11a2dc:Tn;}};Qe=vo([dt(0x0,_0x476b70),dt(0x1,_0x229f6b(_0x131927)),dt(0x2,_0x229f6b(_0x5e486d))],Qe);var Io=Object['defineProperty'],Eo=Object[_0x354c45(0x3cf)],Co=(_0x42bd11,_0x5565c7,_0x3b1d4a,_0x3753a9)=>{const _0x2ce1ac=_0x354c45;for(var _0x1b7fea=_0x3753a9>0x1?void 0x0:_0x3753a9?Eo(_0x5565c7,_0x3b1d4a):_0x5565c7,_0x4cbb93=_0x42bd11[_0x2ce1ac(0x16f)]-0x1,_0x4236a7;_0x4cbb93>=0x0;_0x4cbb93--)(_0x4236a7=_0x42bd11[_0x4cbb93])&&(_0x1b7fea=(_0x3753a9?_0x4236a7(_0x5565c7,_0x3b1d4a,_0x1b7fea):_0x4236a7(_0x1b7fea))||_0x1b7fea);return _0x3753a9&&_0x1b7fea&&Io(_0x5565c7,_0x3b1d4a,_0x1b7fea),_0x1b7fea;},us=(_0x182440,_0xa44aed)=>(_0x439aee,_0x3e27fc)=>_0xa44aed(_0x439aee,_0x3e27fc,_0x182440);const bo='AUTHZ_URL_KEY',Ro=_0x354c45(0x2cc);let Pt=class extends _0x48941f{constructor(_0x32c472,_0x24851e){const _0x4a5a3a=_0x354c45;super(),this['_HTTPService']=_0x32c472,this['_configService']=_0x24851e,this[_0x4a5a3a(0x305)]();}[_0x354c45(0x305)](){const _0x4079d8=_0x354c45,_0x3134f1=this;this[_0x4079d8(0x1a0)](this[_0x4079d8(0x91)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x9560({'isMatch'(_0x3a7a30){const _0xcea1c6=_0x4079d8;var _0xa8953e;if(_0x3a7a30[_0xcea1c6(0x3a9)]===_0xcea1c6(0x16e)&&((_0xa8953e=_0x3a7a30['requestParams'])!=null&&_0xa8953e['body'])){const {objectID:_0xc2f8ee,objectType:_0x54872e}=_0x3a7a30['requestParams'][_0xcea1c6(0xd6)]||{};if(!_0xc2f8ee||_0x54872e===void 0x0)return!0x1;const _0x36e9e9=_0x3134f1['_getAPIPrefixPath']()+'/'+_0x54872e+_0xcea1c6(0x2a6)+_0xc2f8ee+_0xcea1c6(0x331);if(_0x3a7a30[_0xcea1c6(0x3d1)]===_0x36e9e9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x291b9b){var _0x1b30f7;return(_0x1b30f7=_0x291b9b['requestParams'])==null?void 0x0:_0x1b30f7['body'];},'mergeParamsToRequest'(_0x587f61,_0x202836){const _0x28b8a7=_0x4079d8,_0x387217=_0x3134f1[_0x28b8a7(0x238)]()+_0x28b8a7(0x1db),_0x44b4e8=_0x587f61[_0x28b8a7(0x17a)]((_0x495c43,_0x47cc3f)=>{const _0x2420c5=_0x28b8a7,{unitID:_0x4f4acd,objectID:_0x3720d7,objectType:_0x5874d6,actions:_0x43fbd5}=_0x47cc3f;return _0x495c43[_0x4f4acd]||(_0x495c43[_0x4f4acd]={}),_0x495c43[_0x4f4acd][_0x3720d7]||(_0x495c43[_0x4f4acd][_0x3720d7]={'objectID':_0x3720d7,'objectType':_0x5874d6,'actions':[]}),_0x495c43[_0x4f4acd][_0x3720d7]['actions'][_0x2420c5(0x34c)](..._0x43fbd5),_0x495c43;},{}),_0x20ec07=[];for(const _0x32a6ac in _0x44b4e8)for(const _0x151e3e in _0x44b4e8[_0x32a6ac]){const {actions:_0x36ccb1,objectType:_0x377072}=_0x44b4e8[_0x32a6ac][_0x151e3e],_0xdd3a4e=[...new Set(_0x36ccb1)];_0x20ec07[_0x28b8a7(0x34c)]({'unitID':_0x32a6ac,'objectID':_0x151e3e,'objectType':_0x377072,'actions':_0xdd3a4e});}return new _0x4908e9(_0x28b8a7(0x16e),_0x387217,{'headers':_0x202836[_0x28b8a7(0x206)],'withCredentials':_0x202836['withCredentials'],'responseType':_0x202836[_0x28b8a7(0x39e)],'body':{'requests':_0x20ec07}});}},{'distributeResult'(_0x54441d,_0x50bff9){const _0x2287d0=_0x4079d8,{objectActions:_0x15191e}=_0x54441d;return _0x50bff9[_0x2287d0(0x39f)](_0x5e7fd9=>{const _0x1f7904=_0x2287d0,{unitID:_0x56b97e,objectID:_0x5468f4,actions:_0x5783c6}=_0x5e7fd9,_0x44c1c9=_0x15191e[_0x1f7904(0x3d3)](_0x2a4948=>_0x2a4948[_0x1f7904(0x22b)]===_0x56b97e&&_0x2a4948['objectID']===_0x5468f4),_0xaa3b2d=_0x5783c6['map'](_0x1f0fec=>_0x44c1c9==null?void 0x0:_0x44c1c9[_0x1f7904(0x199)][_0x1f7904(0x3d3)](_0xb14319=>_0xb14319[_0x1f7904(0x260)]===_0x1f0fec))[_0x1f7904(0x25e)](_0x254cb5=>!!_0x254cb5);return{'config':_0x5e7fd9,'result':{'actions':_0xaa3b2d,'error':_0x54441d['error']}};});}})}));}[_0x354c45(0x238)](){const _0x22ceed=_0x354c45;var _0x50e323;return(_0x50e323=this['_configService'][_0x22ceed(0x119)](bo))!=null?_0x50e323:Ro;}async[_0x354c45(0x361)](_0x38891a){const _0x12222a=_0x354c45,_0x26131d=this['_getAPIPrefixPath']()+'/'+_0x38891a[_0x12222a(0x310)]+_0x12222a(0xeb);return(await this[_0x12222a(0x91)][_0x12222a(0x276)](_0x26131d,{'body':_0x38891a}))[_0x12222a(0xd6)][_0x12222a(0x3c8)]||'';}async[_0x354c45(0xff)](_0x4ecd57){const _0x2fdf2c=_0x354c45,_0x55c793=this[_0x2fdf2c(0x238)]()+_0x2fdf2c(0x19a);return(await this[_0x2fdf2c(0x91)][_0x2fdf2c(0x276)](_0x55c793,{'body':_0x4ecd57}))[_0x2fdf2c(0xd6)]['objects'];}async['update'](_0x3b69d8){const _0x17cff3=_0x354c45,_0x375545=this[_0x17cff3(0x238)]()+'/'+_0x3b69d8[_0x17cff3(0x310)]+'/object/'+_0x3b69d8[_0x17cff3(0x3c8)];await this[_0x17cff3(0x91)][_0x17cff3(0x298)](_0x375545,{'body':_0x3b69d8});}async['allowed'](_0x3cc4e1){const _0x5dcbd9=_0x354c45,_0xf8792e=this[_0x5dcbd9(0x238)]()+'/'+_0x3cc4e1[_0x5dcbd9(0x310)]+_0x5dcbd9(0x2a6)+_0x3cc4e1[_0x5dcbd9(0x3c8)]+_0x5dcbd9(0x331);return(await this['_HTTPService'][_0x5dcbd9(0x276)](_0xf8792e,{'body':_0x3cc4e1}))[_0x5dcbd9(0xd6)][_0x5dcbd9(0x199)];}async[_0x354c45(0x127)](_0xc2caec){const _0x284921=_0x354c45,_0x32e3a1=this[_0x284921(0x238)]()+_0x284921(0x1db);return(await this[_0x284921(0x91)][_0x284921(0x276)](_0x32e3a1,{'body':{'requests':_0xc2caec}}))['body'][_0x284921(0x1ea)];}async[_0x354c45(0xd1)](_0x55bbec){const _0x2656d2=_0x354c45,_0xb8743c=this[_0x2656d2(0x238)]()+'/'+_0x55bbec[_0x2656d2(0x310)]+'/role',_0x4cb5e8=await this['_HTTPService'][_0x2656d2(0x276)](_0xb8743c,{'body':_0x55bbec});return{'roles':_0x4cb5e8[_0x2656d2(0xd6)][_0x2656d2(0x13a)],'actions':_0x4cb5e8[_0x2656d2(0xd6)][_0x2656d2(0x199)]};}async[_0x354c45(0x36d)](_0x213f2c){const _0x2c3478=_0x354c45,_0x58200d=this[_0x2c3478(0x238)]()+_0x2c3478(0x1e5);await this[_0x2c3478(0x91)]['delete'](_0x58200d,{'params':{'collaboratorID':_0x213f2c[_0x2c3478(0x8c)],'objectID':_0x213f2c['objectID'],'unitID':_0x213f2c[_0x2c3478(0x22b)]}});}async[_0x354c45(0x12f)](_0x3f3598){const _0x1d6ffa=_0x354c45,_0x182811=this['_getAPIPrefixPath']()+_0x1d6ffa(0x1e5);await this[_0x1d6ffa(0x91)][_0x1d6ffa(0x1d9)](_0x182811,{'body':_0x3f3598});}async[_0x354c45(0x371)](_0x5373b1){const _0x1b139d=_0x354c45,_0x3c1f23=this[_0x1b139d(0x238)]()+'/collaborator';await this['_HTTPService'][_0x1b139d(0x276)](_0x3c1f23,{'body':_0x5373b1});}async[_0x354c45(0x33b)](_0x3e24aa){const _0xbeb0b2=_0x354c45,_0x47f883=this[_0xbeb0b2(0x238)]()+_0xbeb0b2(0x1e5);return(await this['_HTTPService'][_0xbeb0b2(0x309)](_0x47f883,{'params':{'objectID':_0x3e24aa[_0xbeb0b2(0x3c8)],'unitID':_0x3e24aa[_0xbeb0b2(0x22b)]}}))[_0xbeb0b2(0xd6)]['collaborators'];}async['putCollaborators'](_0x4be49f){const _0x1958ee=_0x354c45,_0x1859ca=this[_0x1958ee(0x238)]()+'/collaborator';await this[_0x1958ee(0x91)]['put'](_0x1859ca,{'body':_0x4be49f});}};Pt=Co([us(0x0,_0x229f6b(_0x131927)),us(0x1,_0x229f6b(_0x476b70))],Pt);var To=Object[_0x354c45(0xa3)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x59acec,_0x5cb36e,_0x236437,_0x510a09)=>{const _0x3873cb=_0x354c45;for(var _0x4d87ad=_0x510a09>0x1?void 0x0:_0x510a09?Oo(_0x5cb36e,_0x236437):_0x5cb36e,_0x1d84f0=_0x59acec[_0x3873cb(0x16f)]-0x1,_0x73a544;_0x1d84f0>=0x0;_0x1d84f0--)(_0x73a544=_0x59acec[_0x1d84f0])&&(_0x4d87ad=(_0x510a09?_0x73a544(_0x5cb36e,_0x236437,_0x4d87ad):_0x73a544(_0x4d87ad))||_0x4d87ad);return _0x510a09&&_0x4d87ad&&To(_0x5cb36e,_0x236437,_0x4d87ad),_0x4d87ad;},mt=(_0x5daf2b,_0xd1e63d)=>(_0x1ac842,_0x2ee8c3)=>_0xd1e63d(_0x1ac842,_0x2ee8c3,_0x5daf2b);const Po=[_0x354c45(0x2d8),_0x354c45(0x1c2),_0x354c45(0x261),_0x354c45(0x23b),_0x354c45(0x2c0)],wo=0x5*0x400*0x400,No=_0x354c45(0x391),Mo=_0x354c45(0x1af),Ao=_0x354c45(0x381),Uo='/universer-api/file/{fileID}/sign-url';function _0x5b0c(_0x490c1c,_0x4389e7){const _0x3791c5=_0x3791();return _0x5b0c=function(_0x5b0c67,_0x34e16b){_0x5b0c67=_0x5b0c67-0x7d;let _0x33e4b9=_0x3791c5[_0x5b0c67];return _0x33e4b9;},_0x5b0c(_0x490c1c,_0x4389e7);}let wt=class{constructor(_0x370037,_0x32ae96,_0xc2cb0d){const _0x2567d5=_0x354c45;_(this,_0x2567d5(0x1e7),0x0),_(this,_0x2567d5(0x23c),new _0x2b4845()),_(this,_0x2567d5(0x1f7),this[_0x2567d5(0x23c)]),_(this,_0x2567d5(0x20d),new Map()),(this['_httpService']=_0x370037,this[_0x2567d5(0x102)]=_0x32ae96,this['_univerInstanceService']=_0xc2cb0d);}[_0x354c45(0xdc)](_0x53dec6){const _0x495025=_0x354c45;this['_waitCount']=_0x53dec6,this[_0x495025(0x23c)]['next'](_0x53dec6);}[_0x354c45(0x252)](_0x475b8b,_0x259de1){const _0x475b6e=_0x354c45;if(_0x259de1===_0x2c20b7[_0x475b6e(0x8e)]){const _0x26341f=new Image();return _0x26341f[_0x475b6e(0x253)]=_0x475b8b,_0x26341f;}return this['_imageSourceCache'][_0x475b6e(0x309)](_0x475b8b);}[_0x354c45(0x277)](_0x349427,_0x1369b9,_0x2139e0){const _0x5260fe=_0x354c45;_0x1369b9===_0x2c20b7[_0x5260fe(0x8e)]||_0x2139e0==null||this[_0x5260fe(0x20d)]['set'](_0x349427,_0x2139e0);}async[_0x354c45(0x15d)](_0x24380c){const _0x516a62=_0x354c45;try{const _0x265a9d=this['_replaceFileID'](this['_getSignURL'](),''+_0x24380c),_0x4bfc73=(await this[_0x516a62(0x137)][_0x516a62(0x309)](_0x265a9d))[_0x516a62(0xd6)];return _0x4bfc73[_0x516a62(0x35c)]&&_0x4bfc73[_0x516a62(0x35c)][_0x516a62(0x7d)]===Ps['OK']?Promise['resolve'](_0x4bfc73[_0x516a62(0x3d1)]):Promise[_0x516a62(0x191)](_0x4bfc73['error']);}catch(_0x274291){return Promise['reject'](_0x274291);}}async[_0x354c45(0x14a)](_0x5a8188){const _0x1cb586=_0x354c45;let _0x15ca2e='';if(!Po[_0x1cb586(0x3a8)](_0x5a8188[_0x1cb586(0x354)]))return this['_decreaseWaiting'](),Promise[_0x1cb586(0x191)](new Error(_0x34bcaa['ERROR_IMAGE_TYPE']));if(_0x5a8188[_0x1cb586(0x2f1)]>wo)return this[_0x1cb586(0x125)](),Promise['reject'](new Error(_0x34bcaa['ERROR_EXCEED_SIZE']));try{const _0x324a43=new FormData();_0x324a43[_0x1cb586(0x103)](_0x1cb586(0x1d4),_0x5a8188);const _0x521e30=this[_0x1cb586(0x134)]['getFocusedUnit'](),_0x452233=_0x521e30==null?void 0x0:_0x521e30[_0x1cb586(0x3a7)]();if(!_0x452233)throw new Error(_0x1cb586(0x2fc));const _0x2d0a03=this[_0x1cb586(0x88)]()+'?size='+_0x5a8188[_0x1cb586(0x2f1)][_0x1cb586(0x10b)]()+'&source='+ws[_0x1cb586(0x28c)]+_0x1cb586(0x94)+encodeURIComponent(_0x452233),_0x30edbe=await(await fetch(_0x2d0a03,{'method':_0x1cb586(0x16e),'body':_0x324a43}))['json']();if(typeof _0x30edbe['FileId']!=_0x1cb586(0x9f))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x34bcaa[_0x1cb586(0x3ce)]));_0x15ca2e=_0x30edbe[_0x1cb586(0x161)];}catch{return this[_0x1cb586(0x125)](),Promise[_0x1cb586(0x191)](new Error(_0x34bcaa['ERROR_IMAGE']));}return new Promise((_0x312475,_0x2e7c48)=>{const _0x3d9489=new FileReader();_0x3d9489['readAsDataURL'](_0x5a8188),_0x3d9489['onload']=_0x32c868=>{const _0x4743fb=_0x5b0c;var _0x2dc796;const _0xff6e07=(_0x2dc796=_0x32c868[_0x4743fb(0x15e)])==null?void 0x0:_0x2dc796['result'];if(_0xff6e07==null){this[_0x4743fb(0x125)](),_0x2e7c48(new Error(_0x34bcaa[_0x4743fb(0x3ce)]));return;}const _0x45b652=_0x40bd5b['generateRandomId'](0x6);_0x312475({'imageId':_0x45b652,'imageSourceType':_0x2c20b7[_0x4743fb(0x38a)],'source':_0x15ca2e,'base64Cache':_0xff6e07,'status':_0x34bcaa[_0x4743fb(0x394)]}),this[_0x4743fb(0x125)]();};});}[_0x354c45(0x88)](){const _0x46d3c4=_0x354c45;var _0x44e4fd;return(_0x44e4fd=this[_0x46d3c4(0x102)]['getConfig'](No))!=null?_0x44e4fd:Mo;}[_0x354c45(0x263)](){const _0x110e7c=_0x354c45;var _0x22d9a5;return(_0x22d9a5=this['_configService'][_0x110e7c(0x119)](Ao))!=null?_0x22d9a5:Uo;}[_0x354c45(0x9d)](_0x444afe,_0x255e87){const _0x40dc60=_0x354c45;return _0x444afe[_0x40dc60(0x227)](_0x40dc60(0x2be),_0x255e87);}[_0x354c45(0x125)](){const _0x2b42e3=_0x354c45;this[_0x2b42e3(0x1e7)]-=0x1,this[_0x2b42e3(0x23c)][_0x2b42e3(0x2fe)](this[_0x2b42e3(0x1e7)]);}};wt=Do([mt(0x0,_0x229f6b(_0x131927)),mt(0x1,_0x476b70),mt(0x2,_0x229f6b(_0x14d401))],wt);var yo=Object[_0x354c45(0xa3)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x299521,_0x315f61,_0x52f8df,_0x211946)=>{const _0x4e11d0=_0x354c45;for(var _0x4cc000=_0x211946>0x1?void 0x0:_0x211946?Lo(_0x315f61,_0x52f8df):_0x315f61,_0x48bbc6=_0x299521[_0x4e11d0(0x16f)]-0x1,_0x2ac4b3;_0x48bbc6>=0x0;_0x48bbc6--)(_0x2ac4b3=_0x299521[_0x48bbc6])&&(_0x4cc000=(_0x211946?_0x2ac4b3(_0x315f61,_0x52f8df,_0x4cc000):_0x2ac4b3(_0x4cc000))||_0x4cc000);return _0x211946&&_0x4cc000&&yo(_0x315f61,_0x52f8df,_0x4cc000),_0x4cc000;},Ne=(_0x4ca182,_0x1d471d)=>(_0x59a637,_0x391a28)=>_0x1d471d(_0x59a637,_0x391a28,_0x4ca182);let We=class extends _0x5aeadb{constructor(_0x2cd214,_0x361ead,_0x481217,_0x42124a,_0x972b78){const _0xd351ad=_0x354c45;super(),this[_0xd351ad(0x259)]=_0x2cd214,this['_univerInstanceService']=_0x361ead,this[_0xd351ad(0x155)]=_0x481217,this[_0xd351ad(0x3ae)]=_0x42124a,this['_localeService']=_0x972b78,this[_0xd351ad(0x297)](),this[_0xd351ad(0x237)]();}[_0x354c45(0x237)](){const _0x5ed47f=_0x354c45,_0x10de7b=async _0x3c59bf=>{const _0x4be297=_0x5b0c;(await this[_0x4be297(0x3ae)]['requireSession'](_0x3c59bf))['event$'][_0x4be297(0x1e1)](_0x2a5de4(_0x122332=>_0x122332[_0x4be297(0x2d3)]===_0x363b50[_0x4be297(0x13f)]),_0xc21920(this[_0x4be297(0x1a1)]))[_0x4be297(0x37e)](_0x4efd11=>{const _0x27e043=_0x4be297,_0x4efd51=_0x4efd11,{reason:_0x47a6bb}=_0x4efd51[_0x27e043(0x385)];this['_injector']['get'](_0x5963f9)[_0x27e043(0x2e0)]({'type':_0x1679e9['Error'],'content':this[_0x27e043(0xa4)]['t']('collaboration.closeRoom')+'('+_0x47a6bb+')'}),this[_0x27e043(0x155)]['updatePermissionPoint'](new _0x47313f(_0x3c59bf)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x3c59bf);});};_0x5b30b2(this[_0x5ed47f(0x134)][_0x5ed47f(0xcc)](_0x380445[_0x5ed47f(0x31c)]),this[_0x5ed47f(0x134)]['getTypeOfUnitAdded$'](_0x380445[_0x5ed47f(0x30e)]))[_0x5ed47f(0x1e1)](_0x1b7b12(_0x18e8e0=>_0x18e8e0[_0x5ed47f(0x3a7)]()),_0x2a5de4(_0x28e7a5=>!_0x2299ce(_0x28e7a5)),_0xc21920(this[_0x5ed47f(0x1a1)]))['subscribe'](_0x42f100=>{_0x10de7b(_0x42f100);});}[_0x354c45(0x297)](){const _0x2cb4b5=_0x354c45,_0x55b207=async _0x573a46=>{const _0xf37034=_0x5b0c;(await this['_collaborationSessionService'][_0xf37034(0x258)](_0x573a46))['event$'][_0xf37034(0x1e1)](_0x2a5de4(_0x44c571=>_0x44c571[_0xf37034(0x2d3)]===_0x363b50[_0xf37034(0x293)]),_0xc21920(this[_0xf37034(0x1a1)]))[_0xf37034(0x37e)](_0x36cd35=>{const _0x7b1598=_0xf37034,_0x24bc26=_0x36cd35,{objectId:_0x3047fe}=_0x24bc26[_0x7b1598(0x385)],_0x242459=this[_0x7b1598(0x259)][_0x7b1598(0x309)](_0x36a220);_0x3047fe===_0x573a46?_0x242459[_0x7b1598(0x217)](_0x573a46):_0x242459['refreshPermission'](_0x573a46,_0x3047fe);});};_0x5b30b2(this[_0x2cb4b5(0x134)][_0x2cb4b5(0xcc)](_0x380445['UNIVER_SHEET']),this[_0x2cb4b5(0x134)][_0x2cb4b5(0xcc)](_0x380445[_0x2cb4b5(0x30e)]))['pipe'](_0x1b7b12(_0x1937b1=>_0x1937b1['getUnitId']()),_0x2a5de4(_0x2302fa=>!_0x2299ce(_0x2302fa)),_0xc21920(this[_0x2cb4b5(0x1a1)]))[_0x2cb4b5(0x37e)](_0x4a0320=>{_0x55b207(_0x4a0320);});}};We=$o([_0x5c1b58(_0x21b2c3[_0x354c45(0xbe)],We),Ne(0x0,_0x229f6b(_0x3b06f9)),Ne(0x1,_0x14d401),Ne(0x2,_0x4c56be),Ne(0x3,_0x229f6b(pe)),Ne(0x4,_0x229f6b(_0x5e486d))],We);var ks=Object['defineProperty'],jo=Object[_0x354c45(0x3cf)],xo=(_0x8bbb0e,_0x2b4b18,_0xa749f7)=>_0x2b4b18 in _0x8bbb0e?ks(_0x8bbb0e,_0x2b4b18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa749f7}):_0x8bbb0e[_0x2b4b18]=_0xa749f7,Ho=(_0xe8b4f8,_0x4d0025,_0x41e88c,_0x3933c8)=>{for(var _0x17ce3f=_0x3933c8>0x1?void 0x0:_0x3933c8?jo(_0x4d0025,_0x41e88c):_0x4d0025,_0xaa5457=_0xe8b4f8['length']-0x1,_0x3b3bb0;_0xaa5457>=0x0;_0xaa5457--)(_0x3b3bb0=_0xe8b4f8[_0xaa5457])&&(_0x17ce3f=(_0x3933c8?_0x3b3bb0(_0x4d0025,_0x41e88c,_0x17ce3f):_0x3b3bb0(_0x17ce3f))||_0x17ce3f);return _0x3933c8&&_0x17ce3f&&ks(_0x4d0025,_0x41e88c,_0x17ce3f),_0x17ce3f;},ft=(_0x11bdd4,_0x48dc2a)=>(_0x5d66ca,_0x51fb4c)=>_0x48dc2a(_0x5d66ca,_0x51fb4c,_0x11bdd4),ko=(_0x3d8213,_0x58e5f7,_0x127ea9)=>xo(_0x3d8213,_0x58e5f7+'',_0x127ea9);const Vo=_0x354c45(0x1b6);let Nt=class extends _0x570c3f{constructor(_0x3735e5,_0xd58f8f,_0x59ec85,_0x1f389b){const _0x426d60=_0x354c45;super(),this[_0x426d60(0x1fa)]=_0x3735e5,this[_0x426d60(0x10f)]=_0xd58f8f,this[_0x426d60(0x197)]=_0x59ec85,this[_0x426d60(0x259)]=_0x1f389b;}[_0x354c45(0x2c1)](){this['_registerDependencies']();}[_0x354c45(0x288)](){const _0xf979be=_0x354c45;this[_0xf979be(0xc5)]();}['_registerDependencies'](){const _0x1a7fba=_0x354c45;var _0x44aea6,_0xdca6da,_0x1c1328,_0x3f7959;this[_0x1a7fba(0x259)][_0x1a7fba(0x340)](_0x13005c)&&this[_0x1a7fba(0x10f)][_0x1a7fba(0x35c)](_0x1a7fba(0x1dd),_0x1a7fba(0x368));let _0x35ee5a=[[_0x13005c,{'useClass':Dt}],[pe],[Ht],[_0x131927],[Hs,{'useClass':ao}],[ne],[D],[_0x1a53de],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0xdca6da=(_0x44aea6=this[_0x1a7fba(0x1fa)])==null?void 0x0:_0x44aea6[_0x1a7fba(0x2d2)])!=null?_0xdca6da:vt}],[_0x162271,{'useClass':_0x967f9}],[_0x34895f,{'useClass':Ot}],[_0x1fc328,{'useClass':Pt}],[_0x1e214e,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x1c1328=this[_0x1a7fba(0x1fa)])!=null&&_0x1c1328['enableSingleActiveInstanceLock']&&_0x35ee5a[_0x1a7fba(0x34c)]([tt,{'useClass':Vn}]),_0x35ee5a=_0x321f28(_0x35ee5a,(_0x3f7959=this['_config'])==null?void 0x0:_0x3f7959[_0x1a7fba(0x1b5)]),_0x35ee5a[_0x1a7fba(0x18d)](_0x2602df=>this[_0x1a7fba(0x259)][_0x1a7fba(0x264)](_0x2602df)),this[_0x1a7fba(0x3b6)]();}[_0x354c45(0xc5)](){const _0x539558=_0x354c45;this['disposeWithMe'](this[_0x539558(0x197)]['registerRenderModule'](_0x380445[_0x539558(0x30e)],[Fe])),this[_0x539558(0x1a0)](this['_renderManagerService'][_0x539558(0x204)](_0x380445[_0x539558(0x31c)],[Tt]));}[_0x354c45(0x3b6)](){const _0x11d431=_0x354c45;var _0x1f03f0,_0x1a9404;this[_0x11d431(0x259)][_0x11d431(0x309)](_0x131927)[_0x11d431(0x3a0)]({'priority':0x14,'interceptor':_0x5a108e({'maxParallel':0x6})}),(_0x1f03f0=this[_0x11d431(0x1fa)])!=null&&_0x1f03f0[_0x11d431(0x1b4)]||this[_0x11d431(0x259)][_0x11d431(0x309)](D)[_0x11d431(0x95)](),(_0x1a9404=this[_0x11d431(0x1fa)])!=null&&_0x1a9404[_0x11d431(0x1f5)]&&this[_0x11d431(0x259)]['get'](Qe);}};ko(Nt,'pluginName',Vo),Nt=Ho([_0x1f3081(_0x45452d),ft(0x1,_0x4491a7),ft(0x2,_0x727bee),ft(0x3,_0x229f6b(_0x3b06f9))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};