@univerjs-pro/collaboration-client 0.2.14 → 0.3.0-alpha.0
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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/config/config.d.ts +5 -1
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +2 -2
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +24 -0
- package/lib/types/index.d.ts +17 -5
- package/lib/types/plugin.d.ts +3 -13
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +2 -1
- package/lib/types/services/auth-server/domain-request.service.d.ts +6 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -2
- package/lib/types/services/image-remote/image-io.service.d.ts +4 -1
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +4 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +3 -3
- package/lib/umd/index.js +1 -1
- package/package.json +36 -39
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x2e5b1c=_0x5851;(function(_0x5cc580,_0x247df4){const _0xe9c2e9=_0x5851,_0x298806=_0x5cc580();while(!![]){try{const _0x3fab4f=parseInt(_0xe9c2e9(0x3d8))/0x1*(parseInt(_0xe9c2e9(0x23c))/0x2)+-parseInt(_0xe9c2e9(0x419))/0x3*(parseInt(_0xe9c2e9(0x208))/0x4)+-parseInt(_0xe9c2e9(0x442))/0x5+parseInt(_0xe9c2e9(0x2dc))/0x6+parseInt(_0xe9c2e9(0x152))/0x7*(-parseInt(_0xe9c2e9(0x37f))/0x8)+-parseInt(_0xe9c2e9(0x1fa))/0x9*(-parseInt(_0xe9c2e9(0x325))/0xa)+parseInt(_0xe9c2e9(0x28a))/0xb;if(_0x3fab4f===_0x247df4)break;else _0x298806['push'](_0x298806['shift']());}catch(_0x26c6de){_0x298806['push'](_0x298806['shift']());}}}(_0x3164,0xe75fc));var Js=Object[_0x2e5b1c(0x2de)],zs=(_0x31ed66,_0x16ac71,_0x1b3413)=>_0x16ac71 in _0x31ed66?Js(_0x31ed66,_0x16ac71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b3413}):_0x31ed66[_0x16ac71]=_0x1b3413,l=(_0x51919c,_0x24a7e3,_0x4d8617)=>zs(_0x51919c,typeof _0x24a7e3!=_0x2e5b1c(0x307)?_0x24a7e3+'':_0x24a7e3,_0x4d8617);function _0x3164(){const _0x329218=['onPointerEnter$','_handleEvent','action','className','_roomMembers','dispose$','_undoRedoService','_renderManagerService','_send','_updateLocalCache','_getMergeRange','subscribe','_collaborationController','getResourcesRequest','leaveEvent','AWAITING','resend','VIEW_MAIN','subscribeEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','syncEditingCollabCursor','_toggleOffline','_transformService','labelPosition','onStarting','_handleHover','onPointerLeave$','onTransformSelections','column','[OfflineState]:\x20received\x20rejection.','stringify','1nbyGaW','_beforeCloseService','_startSheetCollabCursor','...','_drawAnchor','JOINING','APPLY_REVISION_CONFILICT','/allowed','USERS_ENTER','ERROR_EXCEED_SIZE','enableSingleActiveInstanceLock','INVALID_ARGUMENT','offline','toggleOffline','prototype','isActive','use','RECV','onRemoteChangeset','_shapes','_state$','_notificationService','HttpImport','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NO_OTHER_CLIENTS_EDITING','_collabSessionService','on-line-single','makeDirty','font','pushState','DeleteRangeMoveLeftCommandId','subUnitId','PSEUDO_FETCH_MISSING_RESULT','_cachedData','_onJoinRoomEvent','transform','getRelativeToViewportCoord','collab-client.tooltip.reconnect','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replaceTextRanges','registerRefRange','CHANGESET_REVISION_CONFILICT','getParam','_onOffline','drawWith','toggleOnline','triggerDblclick','every','_transformPreviousActiveRange','getWorkbookSelections','defIds','_remoteChangesetQueue','append','_pendingMutations','close','_ensureSubject','_config','pluginName','_hovered','DeleteRangeMoveUpCommandId','Unknown\x20user','appendMutation','ERROR_IMAGE','storage','_telemetryInfo','38259pDKupM','method','_submitChangeset','getOwnPropertyDescriptor','_telemetryService','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','gold400','SYNCED','current','_HTTPService','hide','Warning','getUnitId','awaiting','_collabCursorState$','univer-online-status','parse','_onRefRangeChange','setShapeProps','off-line-single','\x0aCurrent:\x20','_init','resolve','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','replaceState','isArray','_onRemoteChangeset','_transformUndoRedoStack','connection\x20error','/universer-api/snapshot','_name','_docSkeleton','_clearOtherTimers','\x20in\x20_schedule.','LICENSE_DISTRO_REJECTED','m1Prime','textRanges','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_listenToOfflineEvent','5659315GdpOtW','YUUMI_SUBSCRIPTION_NOT_FOUND','image/gif','/universer-api/file/{fileID}/sign-url','apply','complete','_awaitingChangeset','getViewport','_commentUpdate$','_collabCursorController','isPermissionRej','_replayCachedMutations','objects','measureText','status','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_localeService','_clearRedo','title','removeParam','_transformSelections','incrementRevForDocument','[CollaborationEntity]','PERMISSION_REJ','\x20to\x20','_substituteUndoStack','_cursors','colorChannel1','width','_disabled','getCurrentSelections','editingUnit','_online','liveShareOperation','[PendingState]:\x20received\x20acknowledgement.','verdancy600','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','icon','open$','UNKNOWN_CMD','color','on-line-single_clip0_910_349','image/bmp','_setupBeforeClosingHandler','/-/object/-/batch_allowed','_scheduleClearOtherTimer','getRenderById','roles','setCurrentUser','_onUserLeave','AWAITING_WITH_PENDING','OffLineSingle','getInterceptPoints','add','_updateURLWithCurrentState','_backgroundColor','LOCAL_CACHE_INTERVAL','LIVESHARE_REQUEST_HOST','rev','override','_disableEditing','univer-online','HEARTBEAT_TIMEOUT','_syncEditingCollabCursor','responseType','LIVESHARE_TERMINATE','Starting','/object/','_snapshotService','/rev/','readAsDataURL','addEventListener','_getUndoStack','_onRecvEvent','_docSyncEditingCollabCursorService','svg','_drawRectRange','max','init','random','_getAPIPrefix','top','_socket$','_userManagerService','transformByState','popstate','infoRsp','_getUploadFileURL','interceptor','body','translate(.97)','getValue','failed\x20to\x20apply\x20missed\x20changesets!','filter','text','getCurrentRevForDocument','setParam','focused$','createElement','updateCursorEvent','socket$','addObjects','_setupSubUnitSync','call','black','ONLINE','_http','_initStatusListener','getConfig','updatePermissionPoint','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','c1Prime','getMemberID','_startDocCollabCursor','_tryReconnect','UNIVER_UNKNOWN','subunit','getCellPositionByOffset','_executeRemoteChangeset','_acknowledgedAwaitingChangeset','FileId','clearInterval','_hideTimer','_decreaseWaiting','798LsgHGZ','collabStatus.synced','collabStatus.conflict','error$','_getCurrentRevision','permission.content','onTransformRemoteChangesetByIMECache','_colorIndex','awaiting_with_pending','getRoom','_undoStacks','InsertRangeMoveRightCommandId','unitId\x20is\x20not\x20found','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetchMissingChangesets','MSG_FOR_ERROR','location','LEAVE','onSendChangeset','_type','debug','univer-online-status-title','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','_removeRoom','some','getCollabCursors$','allowed','IDLE','getDocRanges','_localCacheService','_refreshCollabCursors','InsertRangeMoveDownCommandId','_scene','collaMsg','_commentService','localeService','flatMap','_shouldReportTelemetry','/-/object/list','_sessions','registerHTTPInterceptor','disableLocalCache','_members','_httpService','_saveTaskMap','_listenToOnlineEvent','createSocket','currentSkeleton$','_sendHeartbeat','_candidateSocket','[CollaborationSession]','collaboration-client.offline-data-not-saved','socket\x20open.','image/jpg','csRejEvent','catch','APPLY_PERMISSION_DENIED','enableOfflineEditing','delete','engine','get','assign','endColumn','transformUndoRedo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','pipe','getCurrent','extend','clear','_transformIMECache','NOT_COLLAB','toString','LIVESHARE_FETCH_OPERATIONS','round','_getRedoStack','objectActions','isEditing','_tryEnsureSocket','_color','_change$','getTypeOfUnitAdded$','children','_showConflictNotification','\x20-\x20','target','url(#on-line-single_clip0_910_349)','_handler','cursorInfo','OFFLINE','transformChangesets','_univerInstanceService','/collaborator','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_anchor','UNIVER_SLIDE','FETCH_MISSING','_registerRenderDependencies','_compressMutationService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','saveOfflineData','_saveCache','[PendingState]:\x20received\x20rejection.','actions','length','history','_commandService','getUniverSheetInstance','from','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unsubscribe','_fetchMissChangesets','_loadSheet','_context','ws://127.0.0.1:8000/universer-api/comb/connect','_refRangeService','map','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearCollaborationTimeoutTimer','_singleActiveUnitService','loadOfflineData','getOwnPropertySymbols','forEach','generateRandomId','_retryCount','removeMember','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserJoin','routeKey','_collaborationPaused','_initResize','onlineStatusIcon','_onConnectionOpen','removeEventListener','onPointerMove$','_createHandler','substring','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','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','lineTo','_timeoutTimer','set','_drawTextRange','post','_queuedRemoteChangesets','startsWith','/role','getFocusedUnit','FromArray','evenodd','getUnhiddenWorksheets','/universer-api/authz','PERMISSION_DENIED','JOIN','setAlpha','send','UNRECOGNIZED','OTHER_CLIENTS_EDITING','_scheduleSaving','message$','setTimeout','_handleHeartbeatEvent','hasOwnProperty','UNDEFINED','UniverIcon','beginPath','1325124EvxHqh','Undefined','displayName','\x0aAfter:\x20','_socket','activeSheet$','_instanceService','getUnit','searchParams','selection','_unlockTransition','requireSession','setInterval','_redoStacks','104LZEJiZ','shouldCloseConn','xlink:href','onMouseMove','_joinRoom','cmd','onCommandExecuted','putCollaborators','_clearHeartbeatTimer','conflict','reduce','capture','onRendered','&source=','getUnitType','[CollaborationSessionService]','_getSaveTimeout','_state','_anchorDot','RemoveColCommandId','_initCloseConn','Error\x20on\x20receiving\x20event','unknown','_incrementRevisionNumber','_onConnectionFailed','currentTheme$','saveSnapshot','roomMembers','getCurrentUnitForType','mutations','session.will-retry','UPDATE_CURSOR','permission.title','url(#$1','_onMessage','INTERNAL_ERROR','INGEST','registerOnClose','sheetID','getUnitOnRev','selections','_unitID','_onRemoteACK','_session','patch','telemetry\x20info\x20is\x20not\x20initialized','json','getTime','_isPermissionRej','string','ranges','path','1809442jYeEcI','COMPLETION_FINISHED','onlineStatus','getMember','getOffsetConfig','_clearUndo','?size=','_heartbeatTimer','next','defs','div','function','getImageSourceCache','data','0\x200\x2017\x2016','APPLY_NON_SEQUENTIAL_REVISION','baseRev','_initUnitPermissionChange','conflict.content','startColumn','has','fetch_missing','_updateState','Error','createInstance','type','COMMENT_UPDATE','/universer-api/comb','_applyRemoteChangeset','list','_schedule','RemoveRowCommandId','_registerDependencies','_updateSubUnitFromURLParams','findNodePositionByCharIndex','[CollaborationUndoRedoService]','arc','Univer','UnitSnapshot','editing\x20status\x20changed\x20to','currentColor','HELLO','loadDoc','hovered','collaboration.single-unit.warning','APPLY_REJECT','_getSheetObject','_replaceFileID','assignAColorForMemberID','_initCommandExecutedListener','_revisionService','collaboration-client.config','onlyLocal','_sheetSkeletonManagerService','transformIMECache','_socketReady','_roomMembers$','unitId','TOO_MANY_REQUESTS','_urlService','joinRsp','_status$','_waitCount','params','[CollaborationState]:\x20apply\x20error!','/block/','saveChangeset','trim','_sendingTimer','status$','toRgbString','COLLAB_WEB_SOCKET_URL','getMergeData','_initMergeInterceptor','with','_handleLeaveEvent','getUndoRedoMutationParamsCache','result','11546480laXBKP','_socketService','fillStyle','_imageSourceCache','transformRemoteChangeset','revision','M0\x200H16V16H0z','_docTransformSelectionsService','_permissionService','pending','disposeWithMe','auth.needGotoLoginAlert','requestParams','row','CONFLICT','socket\x20close','getActiveSheet','_clearScheduledTask','_createInitialStateImpl','ALREADY_EXISTS','_assignedColors','_eventUnsubscribe','onMissingChangesets','collaboration-session-retry','InsertColCommandId','CHANGESET_ACK','SNAPSHOT_URL_KEY','objectType','RETRY_CONNECTING_MAX_COUNT','_scheduleHeartbeat','registerRenderModule','_memberService','_textBubble','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_startCollaboration','file','onTransformChange$','_clearTimeoutTimer','_unitStatus','idSuffix','COLLAB_SUBMIT_CHANGESET_URL','_onFetchMissResult','onStateChange','0\x200\x2016\x2016','_scheduleTimestamp','COMPRESS_MUTATION_SEND','_retryConnectingTimer','image/png','collabStatus.fetchMiss','values','getSkeleton','onRemoteAck','_document','Steady','range','encodeURIComponent','LOGIN_URL_KEY','url','_transitionLocked','find','session','UNIVER_SHEET','collab-text-anchor-','_getAPIPrefixPath','addImageSourceCache','LIVESHARE_NEW_HOST','getRangePointData','memberID','collaboration_new_changeset','_docTransformIMECacheService','UNIVER_PROJECT','pauseCollaboration','_removeCollabCursors','slice','_onConflict','collaboration.closeRoom','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformMutation','_loadDoc','/unit/','/object','enableLocalCache','3148464upyQtQ','_draw','defineProperty','NEW_CHANGESETS','ACTIVE_UNIT_EVENT_CHANNEL','originalMeta','SHOULD_CLOSE_CONN','_collaborationTimeoutTimer','collabStatus.offline','univerjs-icon\x20univerjs-icon-','then','href','moveTo','LIVESHARE_OPERATION','userID','addObject','_logService','whenReady','url(#off-line-single_clip0_910_343)','_onRemoteRejected','LICENSE_MAX_UNITS_EXCEEDED','push','UnitEmbedded','_cursorInfo$','unshift','setWaitCount','eventID','getSheetBlock','asObservable','encode','code','saveSheetBlock','SNAPSHOT_HAS_BEEN_REMOVED','_localStorageService','dispose','session.connection-failed','UNIVER_COLLABORATION_CLIENT_PLUGIN','_exhaustRemoteChangesetQueue','save','_uiPartsService','/universer-api/oidc/authpage','synced','USERS_LEAVE','symbol','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','univer-offline','error','_getSendChangesetTimeout','_lockTransition','OnLineSingle','[UniverCollaborationClientPlugin]','YUUMI_UNABLE_LOAD_URL','clearTimeout','newValue','_cursorShapes','PENDING','put','restore','registerComponent','_initStatusComponent','replace','closeSession','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','now','RETRY_CONNECTING_INTERVAL','bottom','onTransformIME','_clearLocalCache','getAncestorScale','_updateCollabCursors','#fff','10febfqh','transformSelections','_lastPointer','COMPRESS_MUTATION_APPLY','_createSocket','_checkMissing','fetchThroughInterceptors','_updateLocalCursor','close$','startTime','attrs','[SyncedState]:\x20received\x20rejection.','_sheetTransformSelectionsService','reconnect','updateCollaborator','disposeUnit','executeCommand','updateOfflineData','split','_configService','_transformStack','[DataLoaderController]','tag','_event$','propertyIsEnumerable','collaborators','onMissedChangesetFetched','_getScale','_colorAssignService','InsertRowCommandId','SUCCUSS','fill','_ws','_substituteRedoStack','POST','_transformRemoteChangesetByIMECache','updatePermissionObjEvent','YUUMI_RATE_OVER_LIMIT','SUBMIT_CHANGESET','clipPath','sessionStatus$','_onCombEvent','unit-cache-','getCollabEntity','contains','_onCursorUpdate','fetchMiss','submit\x20changeset\x20error!','_waitForHeartbeatResponse','liveShareNewHost','_render','red300','entries','collab-rect-range-','_startTelemetryCollaborationNewChangeset','awaitingChangeset','snapshot','concat','HEARTBEAT','changesets','getActiveRange','size','all','online','HttpExport','m2Prime','show','MUTATION','_toggleOnline','BASE64','_rescheduleHeartbeat','_entities','indexOf','height','refreshPermission','_getLoginPath','_scheduleCollaborationTimeoutTimer','event$','saveImage','fillText','setItem','_getSignURL','HEADER_MENU','getSheetBySheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','loadSheet','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','_cursor','15104IBQwms','jiqing500','image/jpeg','_themeService','_onLocalMutation','_updateStatus','_collaborationSessionService','_id','_sendHeartbeatTimer','stopTime','transformMutationsWithChangeset','reject','CHANGESET_REJ','[CollaborationSessionService]:\x20socket\x20error','_unitOnClients','headers','resourceIDs','?url=','_snapshotServerService','updateMember','cursorInfo$','_entityInit$','NOT_FOUND','_messageService','name','_range','duration','UNKNOWN_CODE','univer-online-status-icon','MoveRangeCommandId','roomMembers$','collabCursorState$','registerBeforeClose','includes','FAIL','onRemoteRej','_onCursorDelete','unitID','getCurrentUser','batchAllowed','state$','[FetchMissState]','min','sessionStatus','joinEvent','_injector','doc.mutation.rich-text-editing','uni.network.url-service','socketService','[OfflineState]:\x20received\x20changeset.','update','_sessionStatus$','urlChange$','_selfUnitIDs','getSheetId','_handleJoinEvent','deepClone','1em'];_0x3164=function(){return _0x329218;};return _0x3164();}import{createIdentifier as _0x5a3236,Disposable as _0x36403b,DisposableCollection as _0x3bb8a8,toDisposable as _0x29a7b,Inject as _0x5c7fae,IConfigService as _0x401b9d,ILogService as _0x1cafe9,UniverInstanceType as _0x3bf0d9,UserManagerService as _0x1ac2e4,IUniverInstanceService as _0x30b2f2,RxDisposable as _0x4bff65,LocaleService as _0x12e5b3,Optional as _0x5723b6,Injector as _0x5d259e,Tools as _0x3cea4b,ILocalStorageService as _0x76fe2e,ICommandService as _0x36a317,JSONX as _0x51b925,CommandType as _0x32e0b0,IPermissionService as _0x241366,IUndoRedoService as _0x1bd332,sequenceExecute as _0x5396fb,Rectangle as _0x183c22,OnLifecycle as _0x486866,LifecycleStages as _0x446a6f,ThemeService as _0x27c464,useDependency as _0x1cf47e,connectInjector as _0x5abdc,Workbook as _0x450c96,LocalUndoRedoService as _0x30a328,IContextService as _0x693680,COLORS as _0x44cb7f,ColorKit as _0x21fa84,fromEventSubject as _0x240b02,isInternalEditorID as _0x852e4e,Plugin as _0x250c9c,IAuthzIoService as _0x136777,mergeOverrideWithDependencies as _0x3a5a4e,DependentOn as _0x2f7773}from'@univerjs/core';import{Subject as _0x47a81b,merge as _0x9334d7,takeUntil as _0x2123e0,BehaviorSubject as _0x16e81a,distinctUntilChanged as _0x24665d,fromEvent as _0x4dbad7,map as _0x464900,shareReplay as _0x1aec94,take as _0x219c0a,of as _0x8d55e,debounceTime as _0x116e1b,filter as _0x41cfb4,switchMap as _0x498d15,combineLatest as _0x1ee3b6,mapTo as _0x543013,concatMap as _0x4c98f9}from'rxjs';import{map as _0x4b551a,take as _0x590d71,filter as _0x48e324,delay as _0x1e04ab,takeUntil as _0x429e28,switchMap as _0x3c8cfc,throttleTime as _0x326ad7}from'rxjs/operators';import{MessageType as _0x68ddaa,Tooltip as _0x2b5af8}from'@univerjs/design';import{IBeforeCloseService as _0x4c2a62,IMessageService as _0x29e945,INotificationService as _0x4c821a,useObservable as _0x3834a2,BuiltInUIPart as _0x1504a5,IUIPartsService as _0xbc9637}from'@univerjs/ui';import{HTTPService as _0x35343d,WebSocketService as _0x4058ad,MergeInterceptorFactory as _0x441ebe,HTTPRequest as _0x1baa38,IHTTPImplementation as _0x4a8183,XHRHTTPImplementation as _0x182506,ThresholdInterceptorFactory as _0x55c921}from'@univerjs/network';import{CollaborationEvent as _0x410792,parseChangesetToProtocol as _0x1859f8,ISnapshotServerService as _0x39a0ed,isTransformMutationFailure as _0x517f04,isTransformMutationsWithChangesetSuccess as _0x24d018,ITransformService as _0x4e0f96,RevisionService as _0x4ceeac,mapDocumentTypeToUniverType as _0x2e5178,isTransformChangesetsSuccess as _0x71b04d,parseProtocolChangeset as _0x3b19c3,CompressMutationService as _0xac140b,SnapshotService as _0x208dce,textEncoder as _0x1d8b96,b64DecodeUnicode as _0x5ee83a,isTransformMutationsWithChangesetFailure as _0x364023,UniverCollaborationPlugin as _0x7a88b}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45444c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1dbfad,RichTextEditingMutation as _0xa592b4,SetTextSelectionsOperation as _0x26b3ce,DocSkeletonManagerService as _0x2398d4}from'@univerjs/docs';import{SheetsSelectionsService as _0x85923d,SetSelectionsOperation as _0x2498cc,InsertSheetMutation as _0x5a0458,EmptyMutation as _0x39f7b4,WorkbookEditablePermission as _0x477da8,RefRangeService as _0x504358,EffectRefRangId as _0xa2b790,handleIRemoveRow as _0x2f61ec,handleIRemoveCol as _0x824d6d,handleMoveRange as _0x2f5847,handleInsertRow as _0x375cdc,handleInsertRangeMoveRight as _0x1731a1,handleInsertRangeMoveDown as _0x4827cd,handleInsertCol as _0x34e016,handleDeleteRangeMoveUp as _0x552ee5,handleDeleteRangeMoveLeft as _0x3c8f35,runRefRangeMutations as _0x15b7fb,SetWorksheetActivateCommand as _0x29cb12}from'@univerjs/sheets';import{DocIMEInputManagerService as _0x3b1e58,DocStateChangeManagerService as _0x34634f,NodePositionConvertToCursor as _0x5cf9b0,isValidRectRange as _0x29cf68,NodePositionConvertToRectRange as _0xbfc352,TEXT_RANGE_LAYER_INDEX as _0x2b5c4c,SetDocZoomRatioOperation as _0x23717a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x363058,Shape as _0x214e6b,Rect as _0x170a21,Vector2 as _0x586911,getColor as _0x3c99d3,RegularPolygon as _0x532a25,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x277f5f}from'@univerjs/engine-render';import{ImageSourceType as _0x2639d9,ImageUploadStatusType as _0x29d71a,IImageIoService as _0x976a19}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5b5841,serializeRangeWithSheet as _0x508689}from'@univerjs/engine-formula';import _0x415879 from'lodash/debounce';import{VIEWPORT_KEY as _0x398f9b,getCoordByCell as _0x341a0b,getSheetObject as _0x40df2d,SheetSkeletonManagerService as _0x5349fd,SheetPermissionInitController as _0xa93b7d}from'@univerjs/sheets-ui';import _0x24bd02,{forwardRef as _0x5da15c,useRef as _0x4ab73c,createElement as _0x3d6533,useCallback as _0x23455d}from'react';import _0x6c5a82 from'clsx';import{IRemoteInstanceService as _0x372f27}from'@univerjs/rpc';const _n='SNAPSHOT_SERVER_URL_KEY',un=_0x2e5b1c(0x438),dn=_0x2e5b1c(0x2a4),mn='SEND_CHANGESET_TIMEOUT',fn=0x7d0,gn=_0x2e5b1c(0x283),Sn=_0x2e5b1c(0x1c5),pn='HEARTBEAT_INTERVAL',vn=0x7530,Ns=_0x2e5b1c(0x484),ys=0x4e20,In=_0x2e5b1c(0x31e),En=0x4e20,Cn=_0x2e5b1c(0x2a6),bn=0x3,Tn=_0x2e5b1c(0x47e),Rn=0x3e8,On=_0x2e5b1c(0x2b2),Dn=_0x2e5b1c(0x257),wn=_0x2e5b1c(0x2c2),Pn=_0x2e5b1c(0x304);var Ms=(_0x8245e2=>(_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f7)]=0x0]=_0x2e5b1c(0x1f7),_0x8245e2[_0x8245e2['OK']=0x1]='OK',_0x8245e2[_0x8245e2['INTERNAL_ERROR']=0x2]=_0x2e5b1c(0x22b),_0x8245e2[_0x8245e2[_0x2e5b1c(0x1ec)]=0x3]='PERMISSION_DENIED',_0x8245e2[_0x8245e2['NOT_FOUND']=0x4]=_0x2e5b1c(0x395),_0x8245e2[_0x8245e2[_0x2e5b1c(0x31c)]=0x5]=_0x2e5b1c(0x31c),_0x8245e2[_0x8245e2[_0x2e5b1c(0x29d)]=0x6]=_0x2e5b1c(0x29d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x3e3)]=0x7]='INVALID_ARGUMENT',_0x8245e2[_0x8245e2[_0x2e5b1c(0x276)]=0x8]=_0x2e5b1c(0x276),_0x8245e2[_0x8245e2[_0x2e5b1c(0x23d)]=0x9]=_0x2e5b1c(0x23d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x401)]=0x1389]=_0x2e5b1c(0x401),_0x8245e2[_0x8245e2[_0x2e5b1c(0x467)]=0x1771]=_0x2e5b1c(0x467),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2fc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x8245e2[_0x8245e2['APPLY_REJECT']=0x1b59]=_0x2e5b1c(0x269),_0x8245e2[_0x8245e2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2e5b1c(0x24b),_0x8245e2[_0x8245e2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2e5b1c(0x3de),_0x8245e2[_0x8245e2[_0x2e5b1c(0x18b)]=0x1b5c]=_0x2e5b1c(0x18b),_0x8245e2[_0x8245e2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2e5b1c(0x432),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2f0)]=0x2329]=_0x2e5b1c(0x2f0),_0x8245e2[_0x8245e2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2e5b1c(0x440),_0x8245e2[_0x8245e2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2e5b1c(0x41e),_0x8245e2[_0x8245e2[_0x2e5b1c(0x309)]=0x232c]=_0x2e5b1c(0x309),_0x8245e2[_0x8245e2[_0x2e5b1c(0x43d)]=0x232d]=_0x2e5b1c(0x43d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x310)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8245e2[_0x8245e2[_0x2e5b1c(0x41f)]=0x2712]=_0x2e5b1c(0x41f),_0x8245e2[_0x8245e2[_0x2e5b1c(0x34a)]=0x2713]=_0x2e5b1c(0x34a),_0x8245e2[_0x8245e2[_0x2e5b1c(0x443)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f0)]=-0x1]='UNRECOGNIZED',_0x8245e2))(Ms||{}),x=(_0x62b898=>(_0x62b898[_0x62b898[_0x2e5b1c(0x149)]=0x0]=_0x2e5b1c(0x149),_0x62b898[_0x62b898[_0x2e5b1c(0x1de)]=0x1]=_0x2e5b1c(0x1de),_0x62b898[_0x62b898[_0x2e5b1c(0x2c7)]=0x2]=_0x2e5b1c(0x2c7),_0x62b898[_0x62b898[_0x2e5b1c(0x1b2)]=0x3]=_0x2e5b1c(0x1b2),_0x62b898[_0x62b898[_0x2e5b1c(0x2d0)]=0x4]='UNIVER_PROJECT',_0x62b898[_0x62b898['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x62b898))(x||{}),I=(_0x1b5b7c=>(_0x1b5b7c[_0x1b5b7c['UNKNOWN_CMD']=0x0]=_0x2e5b1c(0x46d),_0x1b5b7c[_0x1b5b7c['HELLO']=0x1]=_0x2e5b1c(0x265),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x1ed)]=0x2]=_0x2e5b1c(0x1ed),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x163)]=0x3]=_0x2e5b1c(0x163),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x22c)]=0x4]=_0x2e5b1c(0x22c),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x35f)]=0x5]=_0x2e5b1c(0x35f),_0x1b5b7c[_0x1b5b7c['RECV']=0x6]=_0x2e5b1c(0x3e9),_0x1b5b7c[_0x1b5b7c['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x1b5b7c))(I||{}),kt=(_0x24a6ff=>(_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x39a)]=0x0]=_0x2e5b1c(0x39a),_0x24a6ff[_0x24a6ff['OK']=0x1]='OK',_0x24a6ff[_0x24a6ff['FAIL']=0x2]=_0x2e5b1c(0x3a1),_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x1f0)]=-0x1]=_0x2e5b1c(0x1f0),_0x24a6ff))(kt||{}),As=(_0x210b8b=>(_0x210b8b[_0x210b8b[_0x2e5b1c(0x1fb)]=0x0]=_0x2e5b1c(0x1fb),_0x210b8b[_0x210b8b[_0x2e5b1c(0x3ee)]=0x1]='HttpImport',_0x210b8b[_0x210b8b[_0x2e5b1c(0x365)]=0x2]=_0x2e5b1c(0x365),_0x210b8b[_0x210b8b[_0x2e5b1c(0x2f2)]=0x3]=_0x2e5b1c(0x2f2),_0x210b8b[_0x210b8b[_0x2e5b1c(0x262)]=0x4]=_0x2e5b1c(0x262),_0x210b8b[_0x210b8b['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x210b8b))(As||{});function Nn(_0x439f41){const _0x1a8020=_0x2e5b1c;var _0x2d93f3,_0x166e23,_0x51bf6e,_0x2912b6;const _0x2f92fc=_0x439f41['data'],_0x1e6e16=JSON[_0x1a8020(0x42a)](_0x2f92fc);switch(_0x1e6e16['cmd']){case I['HEARTBEAT']:case I[_0x1a8020(0x265)]:{const _0x22a555=_0x1e6e16[_0x1a8020(0x12c)];return{..._0x1e6e16,'data':_0x22a555,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x1ed)]:{const _0x2abbf5=_0x1e6e16[_0x1a8020(0x278)];return{..._0x1e6e16,'data':_0x2abbf5,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x3e9)]:{const _0x38d63c=_0x1e6e16[_0x1a8020(0x174)];switch(_0x38d63c[_0x1a8020(0x2f6)]){case _0x410792[_0x1a8020(0x459)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2d93f3=_0x38d63c['permissionRejEvent'])==null?void 0x0:_0x2d93f3['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2a3)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x166e23=_0x38d63c['csAckEvent'])==null?void 0x0:_0x166e23['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2df)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x51bf6e=_0x38d63c['newCsEvent'])==null?void 0x0:_0x51bf6e['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x38b)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2912b6=_0x38d63c[_0x1a8020(0x189)])==null?void 0x0:_0x2912b6['cs']},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x227)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x139)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['USERS_ENTER']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3ab)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x306)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3c7)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2cb)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x19c)]:case _0x410792[_0x1a8020(0x2e9)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x463)]},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x487)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['MSG_FOR_ERROR']:return{..._0x1e6e16,'data':_0x38d63c,'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x256)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c['commentUpdateEvent']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x168)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x349)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['SHOULD_CLOSE_CONN']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x209)]},'cmd':_0x1e6e16['cmd']};default:return _0x1e6e16;}}default:return _0x1e6e16;}}function yn(_0x3c0eb7){const _0x321ed2=_0x2e5b1c;switch(_0x3c0eb7[_0x321ed2(0x20d)]){case I[_0x321ed2(0x35f)]:case I['HELLO']:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)]});case I['INGEST']:{let _0xe15fdd;switch(_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x2f6)]){case _0x410792[_0x321ed2(0x227)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x227)],'updateCursorEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792['USERS_LEAVE']:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x306)],'leaveEvent':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x3e0)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x3e0)],'joinEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2cb)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2cb)],'liveShareNewHost':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2e9)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2e9)],'liveShareOperation':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x487)]:{_0xe15fdd={'eventID':_0x410792['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x47f)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x47f)],'liveShareRequestHost':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x19c)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x19c)]};break;}default:_0xe15fdd={'eventID':_0x3c0eb7['data'][_0x321ed2(0x2f6)]};}return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7['routeKey'],'collaMsg':_0xe15fdd});}case I[_0x321ed2(0x1ed)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'joinReq':_0x3c0eb7[_0x321ed2(0x249)]});case I[_0x321ed2(0x163)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'leaveReq':_0x3c0eb7[_0x321ed2(0x249)]});default:throw new Error(_0x321ed2(0x193));}}var Mn=Object['defineProperty'],An=Object[_0x2e5b1c(0x41c)],Un=(_0xbbe43f,_0x5ba07f,_0x4b8f88,_0x177550)=>{for(var _0xd43256=_0x177550>0x1?void 0x0:_0x177550?An(_0x5ba07f,_0x4b8f88):_0x5ba07f,_0x8adb60=_0xbbe43f['length']-0x1,_0x2fc238;_0x8adb60>=0x0;_0x8adb60--)(_0x2fc238=_0xbbe43f[_0x8adb60])&&(_0xd43256=(_0x177550?_0x2fc238(_0x5ba07f,_0x4b8f88,_0xd43256):_0x2fc238(_0xd43256))||_0xd43256);return _0x177550&&_0xd43256&&Mn(_0x5ba07f,_0x4b8f88,_0xd43256),_0xd43256;},Te=(_0x5a212c,_0x8cafb5)=>(_0x1cd9ec,_0x24bed4)=>_0x8cafb5(_0x1cd9ec,_0x24bed4,_0x5a212c);const Us=_0x5a3236('univer-pro.collaboration-client-socket-service');function Ln(_0x2008a5,_0x4c985b,_0x3c1a53){return _0x2008a5+'/'+_0x4c985b+'/unit/'+_0x3c1a53+'/new_changes';}let Ct=class extends _0x36403b{constructor(_0x399e30,_0x6c3c1d,_0x29edee,_0x266dfe,_0x3218e4){const _0x204a65=_0x2e5b1c;super(),this[_0x204a65(0x140)]=_0x399e30,this[_0x204a65(0x345)]=_0x6c3c1d,this[_0x204a65(0x338)]=_0x29edee,this[_0x204a65(0x2ec)]=_0x266dfe,this[_0x204a65(0x391)]=_0x3218e4;}[_0x2e5b1c(0x181)](_0x388fc8){const _0x230875=_0x2e5b1c,_0x4080dd=this['_ws'][_0x230875(0x181)](_0x388fc8);if(!_0x4080dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4987f5=new _0x3bb8a8(),_0x571d6d=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd['close$'][_0x230875(0x3c4)](_0x5b6817=>_0x571d6d[_0x230875(0x244)](_0x5b6817))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x571d6d['complete']()));const _0x4a69a5=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x155)]['subscribe'](_0x335fbb=>_0x4a69a5[_0x230875(0x244)](_0x335fbb))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x4a69a5['complete']()));const _0x2760ef=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x1f3)]['subscribe'](_0x5d53b6=>{const _0x591d85=_0x230875,_0x4c6e04=Nn(_0x5d53b6);_0x2760ef[_0x591d85(0x244)](_0x4c6e04);})),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x2760ef[_0x230875(0x447)]()));let _0x28d305;const _0x5209a3=()=>{const _0x289600=_0x230875;_0x4a69a5['next'](new Event(_0x289600(0x437))),_0x571d6d['next'](new CloseEvent(_0x289600(0x437))),_0x28d305[_0x289600(0x40e)]();};return _0x28d305={'memberID':'','close$':_0x571d6d[_0x230875(0x2f8)](),'error$':_0x4a69a5['asObservable'](),'open$':_0x4080dd[_0x230875(0x46c)],'message$':_0x2760ef[_0x230875(0x2f8)](),'send':_0xc1b3e5=>{const _0x500c90=_0x230875;if(_0xc1b3e5[_0x500c90(0x20d)]===I['INGEST']){if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x34b)]){this['_submitChangeset'](_0x28d305,_0xc1b3e5[_0x500c90(0x249)])[_0x500c90(0x18a)](_0x5bd967=>{const _0x29ad1a=_0x500c90;this[_0x29ad1a(0x2ec)]['error'](_0x5bd967),_0x5209a3();});return;}if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x1b3)]){const _0x20b295=_0xc1b3e5['data'];this[_0x500c90(0x1c2)](_0x20b295)[_0x500c90(0x2e6)](_0xc4b7e0=>{const _0x1f59e6=_0x500c90;_0x2760ef[_0x1f59e6(0x244)]({'cmd':I[_0x1f59e6(0x3e9)],'code':kt['OK'],'routeKey':_0x20b295[_0x1f59e6(0x249)][_0x1f59e6(0x3a4)],'routeType':'','data':{'eventID':_0x410792['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xc4b7e0}}});})[_0x500c90(0x18a)](_0xb3fac9=>{const _0x5c4c9d=_0x500c90;this[_0x5c4c9d(0x2ec)][_0x5c4c9d(0x30b)](_0xb3fac9),_0x5209a3();});return;}}_0x4080dd[_0x500c90(0x1ef)](yn(_0xc1b3e5));},'close':()=>{const _0x2e002b=_0x230875;_0x4080dd[_0x2e002b(0x40e)](),_0x4987f5[_0x2e002b(0x2fe)]();}},_0x28d305;}async[_0x2e5b1c(0x41b)](_0x37738d,_0x4d6b9c){const _0x107139=_0x2e5b1c;var _0x6d3391;const {unitType:_0x1db2e4,unitID:_0x300a60,changeset:_0x35f2b6}=_0x4d6b9c[_0x107139(0x249)],_0x55ccc8={'unitID':_0x300a60,'memberID':_0x37738d[_0x107139(0x2cd)],'type':_0x1db2e4,'changeset':_0x1859f8(_0x35f2b6)},_0x2660f3=Ln((_0x6d3391=this[_0x107139(0x338)][_0x107139(0x142)](On))!=null?_0x6d3391:Dn,_0x1db2e4,_0x300a60);try{await this[_0x107139(0x140)]['post'](_0x2660f3,{'body':_0x55ccc8});}catch(_0x41da2b){throw this[_0x107139(0x2ec)][_0x107139(0x30b)](_0x107139(0x185),_0x107139(0x354)),_0x41da2b;}}async[_0x2e5b1c(0x1c2)](_0xa0dd5d){const _0x78dcd7=_0x2e5b1c,{unitID:_0x1b6647,from:_0x153d4f,to:_0x205078,unitType:_0x5efa5}=_0xa0dd5d[_0x78dcd7(0x249)];return(await this['_snapshotServerService'][_0x78dcd7(0x160)]({'metadata':void 0x0},{'unitID':_0x1b6647,'type':_0x5efa5,'from':_0x153d4f,'to':_0x205078}))[_0x78dcd7(0x360)];}};Ct=Un([Te(0x0,_0x5c7fae(_0x35343d)),Te(0x1,_0x5c7fae(_0x4058ad)),Te(0x2,_0x401b9d),Te(0x3,_0x1cafe9),Te(0x4,_0x39a0ed)],Ct);const $n=_0x2e5b1c(0x2ce);function jn(_0x29c4b6){const _0x67eb36=_0x2e5b1c;return JSON['stringify'](_0x29c4b6)[_0x67eb36(0x1bb)];}class Ls{constructor(){const _0x31b912=_0x2e5b1c;l(this,_0x31b912(0x44a),new _0x47a81b()),l(this,'commentUpdate$',this[_0x31b912(0x44a)][_0x31b912(0x2f8)]());}['onCommentUpdate'](_0x3420ae){const _0x515e49=_0x2e5b1c;this[_0x515e49(0x44a)][_0x515e49(0x244)](_0x3420ae);}}var xn=Object[_0x2e5b1c(0x2de)],Hn=Object[_0x2e5b1c(0x41c)],kn=(_0x509f3f,_0x5b2ba9,_0x564d24,_0x3be66f)=>{const _0x51c19d=_0x2e5b1c;for(var _0x3cce0c=_0x3be66f>0x1?void 0x0:_0x3be66f?Hn(_0x5b2ba9,_0x564d24):_0x5b2ba9,_0x33c378=_0x509f3f[_0x51c19d(0x1bb)]-0x1,_0x298c0c;_0x33c378>=0x0;_0x33c378--)(_0x298c0c=_0x509f3f[_0x33c378])&&(_0x3cce0c=(_0x3be66f?_0x298c0c(_0x5b2ba9,_0x564d24,_0x3cce0c):_0x298c0c(_0x3cce0c))||_0x3cce0c);return _0x3be66f&&_0x3cce0c&&xn(_0x5b2ba9,_0x564d24,_0x3cce0c),_0x3cce0c;},ns=(_0x599e17,_0x318501)=>(_0x85e5f8,_0x27ee60)=>_0x318501(_0x85e5f8,_0x27ee60,_0x599e17);let oe=class extends _0x36403b{constructor(_0x45d990,_0x254cbd){const _0x42cefe=_0x2e5b1c;super(),l(this,_0x42cefe(0x3bd),new Map()),(this[_0x42cefe(0x1ae)]=_0x45d990,this[_0x42cefe(0x129)]=_0x254cbd,this['disposeWithMe'](_0x29a7b(_0x9334d7(this[_0x42cefe(0x1ae)]['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42cefe(0x2c7)])[_0x42cefe(0x195)](_0x4b551a(_0x47aaaf=>_0x47aaaf[_0x42cefe(0x426)]())),this[_0x42cefe(0x1ae)][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1de)])[_0x42cefe(0x195)](_0x4b551a(_0x40143e=>_0x40143e[_0x42cefe(0x426)]())),this['_univerInstanceService'][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1b2)])[_0x42cefe(0x195)](_0x4b551a(_0x27f6d4=>_0x27f6d4['getUnitId']())))[_0x42cefe(0x3c4)](_0x349a43=>this[_0x42cefe(0x16a)](_0x349a43)))));}[_0x2e5b1c(0x476)](_0x18c679){const _0x2235f1=_0x2e5b1c;this[_0x2235f1(0x129)][_0x2235f1(0x476)](_0x18c679);}[_0x2e5b1c(0x3a5)](){const _0x28517b=_0x2e5b1c;return this[_0x28517b(0x129)]['getCurrentUser']();}[_0x2e5b1c(0x392)](_0x21b289,_0x14b9cd){const _0x2ddcfe=_0x2e5b1c;let _0x447f3b=this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x18f)](_0x21b289);_0x447f3b||(_0x447f3b=new Bn(),this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x1e1)](_0x21b289,_0x447f3b)),_0x447f3b[_0x2ddcfe(0x392)](_0x14b9cd);}[_0x2e5b1c(0x1d0)](_0x3ab3a3,_0xa1b7f6){const _0x356af3=_0x2e5b1c,_0x2de47d=this[_0x356af3(0x3bd)]['get'](_0x3ab3a3);_0x2de47d&&_0x2de47d[_0x356af3(0x1d0)](_0xa1b7f6);}[_0x2e5b1c(0x15b)](_0x21ff91){const _0x25d443=_0x2e5b1c;return this[_0x25d443(0x3bd)][_0x25d443(0x18f)](_0x21ff91);}['getMember'](_0x30837c,_0x3a0a53){const _0x2605a9=_0x2e5b1c,_0x525b55=this[_0x2605a9(0x3bd)]['get'](_0x30837c);if(_0x525b55)return _0x525b55[_0x2605a9(0x23f)](_0x3a0a53);}[_0x2e5b1c(0x16a)](_0x1578d9){const _0x124395=_0x2e5b1c,_0x214b26=this[_0x124395(0x3bd)][_0x124395(0x18f)](_0x1578d9);_0x214b26&&(_0x214b26[_0x124395(0x2fe)](),this[_0x124395(0x3bd)][_0x124395(0x18d)](_0x1578d9));}[_0x2e5b1c(0x2fe)](){const _0x37d60a=_0x2e5b1c;this[_0x37d60a(0x3bd)][_0x37d60a(0x1cd)](_0x52cbba=>_0x52cbba[_0x37d60a(0x2fe)]()),this[_0x37d60a(0x3bd)]['clear']();}};oe=kn([ns(0x0,_0x30b2f2),ns(0x1,_0x5c7fae(_0x1ac2e4))],oe);class Bn extends _0x36403b{constructor(){const _0x3007b8=_0x2e5b1c;super(...arguments),l(this,_0x3007b8(0x17d),new Map());}['dispose'](){const _0x29f6ef=_0x2e5b1c;this[_0x29f6ef(0x17d)][_0x29f6ef(0x198)]();}[_0x2e5b1c(0x392)](_0x14c241){const _0x387ae2=_0x2e5b1c;this[_0x387ae2(0x17d)][_0x387ae2(0x1e1)](_0x14c241[_0x387ae2(0x2cd)],_0x14c241);}['removeMember'](_0x54e39c){const _0x20cc64=_0x2e5b1c;this['_members'][_0x20cc64(0x18d)](_0x54e39c);}[_0x2e5b1c(0x23f)](_0x47cc08){const _0x4f740f=_0x2e5b1c;return this[_0x4f740f(0x17d)][_0x4f740f(0x18f)](_0x47cc08);}}var Vn=Object[_0x2e5b1c(0x2de)],Fn=Object[_0x2e5b1c(0x41c)],Wn=(_0x45a11b,_0xebd231,_0x4b3c05,_0x2638ef)=>{const _0x51b56f=_0x2e5b1c;for(var _0x389f1a=_0x2638ef>0x1?void 0x0:_0x2638ef?Fn(_0xebd231,_0x4b3c05):_0xebd231,_0x2cff98=_0x45a11b[_0x51b56f(0x1bb)]-0x1,_0x3ac219;_0x2cff98>=0x0;_0x2cff98--)(_0x3ac219=_0x45a11b[_0x2cff98])&&(_0x389f1a=(_0x2638ef?_0x3ac219(_0xebd231,_0x4b3c05,_0x389f1a):_0x3ac219(_0x389f1a))||_0x389f1a);return _0x2638ef&&_0x389f1a&&Vn(_0xebd231,_0x4b3c05,_0x389f1a),_0x389f1a;},X=(_0x4ef8a2,_0x10a62e)=>(_0xeaf34c,_0x5f46dc)=>_0x10a62e(_0xeaf34c,_0x5f46dc,_0x4ef8a2),W=(_0x17889d=>(_0x17889d[_0x17889d[_0x2e5b1c(0x16e)]=0x0]=_0x2e5b1c(0x16e),_0x17889d[_0x17889d[_0x2e5b1c(0x3dd)]=0x1]=_0x2e5b1c(0x3dd),_0x17889d[_0x17889d[_0x2e5b1c(0x1ac)]=0x2]='OFFLINE',_0x17889d[_0x17889d[_0x2e5b1c(0x13f)]=0x3]=_0x2e5b1c(0x13f),_0x17889d))(W||{});let bt=class extends _0x4bff65{constructor(_0x214017,_0x8ebca7,_0x394b8c,_0x3deada,_0x3fbe87,_0x447eb4,_0x129bc0,_0x4aaa3c,_0x51e90f,_0x2b85db){const _0x3dfc67=_0x2e5b1c;super(),l(this,'_sessionStatus$',new _0x16e81a(0x0)),l(this,'sessionStatus$',this[_0x3dfc67(0x3b2)][_0x3dfc67(0x2f8)]()),l(this,_0x3dfc67(0x33c),new _0x47a81b()),l(this,_0x3dfc67(0x372),this[_0x3dfc67(0x33c)]['asObservable']()),l(this,_0x3dfc67(0x1fe)),l(this,_0x3dfc67(0x169)),l(this,_0x3dfc67(0x2e3)),l(this,_0x3dfc67(0x178),!0x1),l(this,_0x3dfc67(0x418),null),(this['_unitID']=_0x214017,this['_logService']=_0x394b8c,this[_0x3dfc67(0x3d9)]=_0x3deada,this[_0x3dfc67(0x396)]=_0x3fbe87,this[_0x3dfc67(0x338)]=_0x447eb4,this['_localeService']=_0x129bc0,this[_0x3dfc67(0x2a9)]=_0x4aaa3c,this[_0x3dfc67(0x175)]=_0x51e90f,this['_telemetryService']=_0x2b85db,this[_0x3dfc67(0x178)]=!!this[_0x3dfc67(0x41d)],_0x8ebca7[_0x3dfc67(0x195)](_0x2123e0(this[_0x3dfc67(0x3be)]))[_0x3dfc67(0x3c4)](_0x3b26ae=>{const _0x2e0cc4=_0x3dfc67;var _0x3710cf;typeof _0x3b26ae>'u'||(this[_0x2e0cc4(0x1fe)]=_0x3b26ae,_0x3b26ae?(this[_0x2e0cc4(0x20c)](_0x3b26ae),this[_0x2e0cc4(0x169)]=_0x3b26ae['message$']['subscribe'](_0x468205=>{const _0x40e2db=_0x2e0cc4;_0x468205[_0x40e2db(0x1d3)]===this[_0x40e2db(0x231)]&&this[_0x40e2db(0x34e)](_0x468205);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x2e0cc4(0x244)](0x2),(_0x3710cf=this[_0x2e0cc4(0x169)])==null||_0x3710cf['unsubscribe'](),this[_0x2e0cc4(0x169)]=null));}),this[_0x3dfc67(0x294)](this[_0x3dfc67(0x3d9)][_0x3dfc67(0x22d)](()=>{const _0x558efc=_0x3dfc67;var _0x57783a;(_0x57783a=this[_0x558efc(0x1fe)])==null||_0x57783a[_0x558efc(0x1ef)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x2e5b1c(0x3aa)](){const _0x2ee779=_0x2e5b1c;return this[_0x2ee779(0x3b2)][_0x2ee779(0x131)]();}[_0x2e5b1c(0x146)](){const _0x376d85=_0x2e5b1c;var _0x562c86,_0x46c2d;return(_0x46c2d=(_0x562c86=this[_0x376d85(0x1fe)])==null?void 0x0:_0x562c86[_0x376d85(0x2cd)])!=null?_0x46c2d:null;}['dispose'](){const _0x276808=_0x2e5b1c;super[_0x276808(0x2fe)](),this[_0x276808(0x3be)][_0x276808(0x244)](),this['dispose$'][_0x276808(0x447)]();}[_0x2e5b1c(0x40e)](){const _0x18846a=_0x2e5b1c;var _0x5a7a1b,_0x52c174;this[_0x18846a(0x194)](),(_0x5a7a1b=this[_0x18846a(0x1fe)])==null||_0x5a7a1b['send']({'cmd':I[_0x18846a(0x163)],'data':{'roomID':this[_0x18846a(0x231)]}}),(_0x52c174=this[_0x18846a(0x1fe)])==null||_0x52c174['close'](),this['_event$'][_0x18846a(0x447)](),this[_0x18846a(0x3b2)]['complete'](),this[_0x18846a(0x2fe)]();}[_0x2e5b1c(0x34e)](_0x5afa64){const _0x4b92e4=_0x2e5b1c;_0x5afa64['cmd']===I[_0x4b92e4(0x1ed)]?this[_0x4b92e4(0x3fa)](_0x5afa64):_0x5afa64['cmd']===I[_0x4b92e4(0x3e9)]&&this[_0x4b92e4(0x48f)](_0x5afa64);}[_0x2e5b1c(0x20c)](_0x3d280e){const _0x3a8fd9=_0x2e5b1c;this[_0x3a8fd9(0x3b2)][_0x3a8fd9(0x244)](0x1),_0x3d280e[_0x3a8fd9(0x1ef)]({'cmd':I[_0x3a8fd9(0x1ed)],'routeKey':this[_0x3a8fd9(0x231)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a8fd9(0x231)]}]}});}['_onJoinRoomEvent'](_0x29b178){const _0x49b95d=_0x2e5b1c;var _0x3a9e19;if(_0x29b178[_0x49b95d(0x2fa)]===kt['FAIL']){this[_0x49b95d(0x396)][_0x49b95d(0x367)]({'type':_0x68ddaa[_0x49b95d(0x425)],'content':this[_0x49b95d(0x452)]['t']('session.room-full')}),this[_0x49b95d(0x3b2)][_0x49b95d(0x244)](0x2);return;}this[_0x49b95d(0x3b2)]['next'](0x3);const _0x55589a=(_0x3a9e19=_0x29b178['data']['roomInfos'][this[_0x49b95d(0x231)]])==null?void 0x0:_0x3a9e19['members'];_0x55589a&&_0x55589a[_0x49b95d(0x1cd)](_0x36c4de=>this[_0x49b95d(0x2a9)][_0x49b95d(0x392)](this[_0x49b95d(0x231)],_0x36c4de));}[_0x2e5b1c(0x48f)](_0xb80afb){const _0x4edd84=_0x2e5b1c;try{const _0x1bbdb1=_0xb80afb[_0x4edd84(0x249)];switch(_0x1bbdb1['eventID']){case _0x410792[_0x4edd84(0x3e0)]:this[_0x4edd84(0x1d2)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x306)]:this[_0x4edd84(0x477)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792['CHANGESET_ACK']:this[_0x4edd84(0x1dd)](),this[_0x4edd84(0x1c9)](),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x161)]:this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x4edd84(0x3d7)](_0x1bbdb1)),this['_event$'][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x256)]:this[_0x4edd84(0x175)]['onCommentUpdate'](_0x1bbdb1[_0x4edd84(0x249)]),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;default:this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);}}catch(_0x3dae2a){this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)](_0x3dae2a,_0xb80afb);}}[_0x2e5b1c(0x1d2)](_0x29d397){const _0x1f2227=_0x2e5b1c;this[_0x1f2227(0x2a9)][_0x1f2227(0x392)](this[_0x1f2227(0x231)],_0x29d397[_0x1f2227(0x249)]);}[_0x2e5b1c(0x477)](_0x29e66b){const _0x46cf51=_0x2e5b1c;this['_memberService'][_0x46cf51(0x1d0)](this[_0x46cf51(0x231)],_0x29e66b[_0x46cf51(0x249)][_0x46cf51(0x2cd)]);}async[_0x2e5b1c(0x1ef)](_0x1a74ed,_0x504ce8){const _0x523684=_0x2e5b1c;if(this[_0x523684(0x3aa)]!==0x3||!this[_0x523684(0x1fe)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1a74ed['eventID']===_0x410792['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x523684(0x35b)](_0x1a74ed)),this[_0x523684(0x1fe)]['send']({'cmd':I[_0x523684(0x22c)],'routeKey':_0x504ce8,'routeType':'','data':_0x1a74ed});}catch(_0x5c689f){this[_0x523684(0x2ec)]['error'](_0x5c689f);}}[_0x2e5b1c(0x371)](){const _0x4b52fe=_0x2e5b1c;var _0x5b485c;this[_0x4b52fe(0x2e3)]=window[_0x4b52fe(0x1f4)](()=>{const _0x1c20c2=_0x4b52fe;this[_0x1c20c2(0x2e3)]=null,this[_0x1c20c2(0x396)][_0x1c20c2(0x367)]({'type':_0x68ddaa[_0x1c20c2(0x253)],'content':this[_0x1c20c2(0x452)]['t']('session.collaboration-timeout')});},(_0x5b485c=this[_0x4b52fe(0x338)][_0x4b52fe(0x142)](Ns))!=null?_0x5b485c:ys);}[_0x2e5b1c(0x1c9)](){const _0x23b8b1=_0x2e5b1c;this[_0x23b8b1(0x2e3)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x359754){const _0x3e9bb3=_0x2e5b1c;if(!this[_0x3e9bb3(0x178)])return;const {data:_0x46dc0c}=_0x359754,{unitID:_0x1ebf52,changeset:_0x3594c1}=_0x46dc0c,{mutations:_0x3b937d,type:_0x2bc192}=_0x3594c1;this[_0x3e9bb3(0x418)]={'unitId':_0x1ebf52,'type':_0x2bc192,'startTime':performance[_0x3e9bb3(0x31d)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x3b937d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4f0540=_0x2e5b1c;if(this[_0x4f0540(0x178)]){if(!this['_telemetryInfo']){this['_logService'][_0x4f0540(0x30b)](_0x4f0540(0x185),_0x4f0540(0x235));return;}this[_0x4f0540(0x418)][_0x4f0540(0x388)]=performance[_0x4f0540(0x31d)](),this[_0x4f0540(0x418)][_0x4f0540(0x399)]=this[_0x4f0540(0x418)][_0x4f0540(0x388)]-this[_0x4f0540(0x418)][_0x4f0540(0x32e)],this[_0x4f0540(0x41d)][_0x4f0540(0x213)]($n,this[_0x4f0540(0x418)]),this[_0x4f0540(0x418)]=null;}}[_0x2e5b1c(0x194)](){const _0x34eccb=_0x2e5b1c;this[_0x34eccb(0x418)]=null;}};function _0x5851(_0x28761a,_0x28dfbc){const _0x3164bd=_0x3164();return _0x5851=function(_0x585103,_0x49a319){_0x585103=_0x585103-0x121;let _0x5b25b1=_0x3164bd[_0x585103];return _0x5b25b1;},_0x5851(_0x28761a,_0x28dfbc);}bt=Wn([X(0x2,_0x1cafe9),X(0x3,_0x4c2a62),X(0x4,_0x29e945),X(0x5,_0x401b9d),X(0x6,_0x5c7fae(_0x12e5b3)),X(0x7,_0x5c7fae(oe)),X(0x8,_0x5c7fae(Ls)),X(0x9,_0x5723b6(_0x45444c))],bt);var Gn=Object[_0x2e5b1c(0x2de)],Yn=Object[_0x2e5b1c(0x41c)],Kn=(_0x40db65,_0xd8e092,_0x59f2b0,_0x2a2955)=>{const _0x3132de=_0x2e5b1c;for(var _0x95b6eb=_0x2a2955>0x1?void 0x0:_0x2a2955?Yn(_0xd8e092,_0x59f2b0):_0xd8e092,_0x447ae3=_0x40db65[_0x3132de(0x1bb)]-0x1,_0x55c86f;_0x447ae3>=0x0;_0x447ae3--)(_0x55c86f=_0x40db65[_0x447ae3])&&(_0x95b6eb=(_0x2a2955?_0x55c86f(_0xd8e092,_0x59f2b0,_0x95b6eb):_0x55c86f(_0x95b6eb))||_0x95b6eb);return _0x2a2955&&_0x95b6eb&&Gn(_0xd8e092,_0x59f2b0,_0x95b6eb),_0x95b6eb;},ue=(_0x76b53b,_0x280a99)=>(_0x432e94,_0x364d93)=>_0x280a99(_0x432e94,_0x364d93,_0x76b53b);let ae=class extends _0x36403b{constructor(_0x1e4de9,_0x48b75d,_0x105e52,_0x282577,_0x410226,_0x36f661){const _0x1dd0d7=_0x2e5b1c;super(),l(this,_0x1dd0d7(0x128),new _0x16e81a(void 0x0)),l(this,_0x1dd0d7(0x13a),this[_0x1dd0d7(0x128)][_0x1dd0d7(0x2f8)]()),l(this,_0x1dd0d7(0x184),null),l(this,_0x1dd0d7(0x17a),new Map()),l(this,_0x1dd0d7(0x279),new _0x16e81a(W[_0x1dd0d7(0x16e)])),l(this,'status$',this[_0x1dd0d7(0x279)][_0x1dd0d7(0x2f8)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1dd0d7(0x1cf),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1dd0d7(0x1e0)),(this[_0x1dd0d7(0x3ac)]=_0x1e4de9,this[_0x1dd0d7(0x452)]=_0x48b75d,this['_messageService']=_0x105e52,this[_0x1dd0d7(0x2ec)]=_0x282577,this[_0x1dd0d7(0x338)]=_0x410226,this[_0x1dd0d7(0x28b)]=_0x36f661);}get[_0x2e5b1c(0x1fe)](){const _0x23a66b=_0x2e5b1c;return this['_socket$'][_0x23a66b(0x131)]();}['dispose'](){const _0x86c530=_0x2e5b1c;super[_0x86c530(0x2fe)](),this[_0x86c530(0x17a)][_0x86c530(0x1cd)](_0x52f5a3=>_0x52f5a3['dispose']()),this[_0x86c530(0x17a)][_0x86c530(0x198)](),this[_0x86c530(0x279)][_0x86c530(0x447)]();}async[_0x2e5b1c(0x205)](_0x54aa4e){const _0x575620=_0x2e5b1c;if(this[_0x575620(0x17a)][_0x575620(0x250)](_0x54aa4e))return this[_0x575620(0x17a)][_0x575620(0x18f)](_0x54aa4e);this[_0x575620(0x1a1)]();const _0x1b6211=this[_0x575620(0x3ac)]['createInstance'](bt,_0x54aa4e,this[_0x575620(0x128)][_0x575620(0x2f8)]());return this['_sessions'][_0x575620(0x1e1)](_0x54aa4e,_0x1b6211),_0x1b6211;}[_0x2e5b1c(0x31a)](_0x697c09){const _0x137834=_0x2e5b1c;var _0x3f3553;const _0x2230e6=this[_0x137834(0x17a)]['get'](_0x697c09);_0x2230e6&&(this[_0x137834(0x17a)][_0x137834(0x18d)](_0x697c09),_0x2230e6[_0x137834(0x40e)]()),this['_sessions'][_0x137834(0x362)]||(_0x3f3553=this[_0x137834(0x1fe)])==null||_0x3f3553[_0x137834(0x40e)]();}['reconnect'](){const _0x5a35b9=_0x2e5b1c;this[_0x5a35b9(0x1cf)]=0x0,this[_0x5a35b9(0x2b8)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x5a35b9(0x2b8)]=null),this['_tryReconnect']();}[_0x2e5b1c(0x329)](){const _0xf7c1f3=_0x2e5b1c;var _0xce65ec;const _0x109144=(_0xce65ec=this[_0xf7c1f3(0x338)][_0xf7c1f3(0x142)](gn))!=null?_0xce65ec:Sn,_0x5eb6af=this[_0xf7c1f3(0x28b)][_0xf7c1f3(0x181)](_0x109144);return this[_0xf7c1f3(0x184)]=_0x5eb6af,_0x5eb6af;}[_0x2e5b1c(0x1a1)](){const _0x1fb1c0=_0x2e5b1c;var _0x5cd866,_0x49b01b;try{const _0x3507e5=(_0x49b01b=(_0x5cd866=this['_socket'])!=null?_0x5cd866:this[_0x1fb1c0(0x184)])!=null?_0x49b01b:this[_0x1fb1c0(0x329)]();if(_0x3507e5){const _0x2ab53a=_0x3507e5[_0x1fb1c0(0x1ef)];_0x3507e5['send']=_0x571029=>(this[_0x1fb1c0(0x36b)](),_0x2ab53a[_0x1fb1c0(0x446)](_0x3507e5,[_0x571029])),_0x3507e5[_0x1fb1c0(0x1f3)][_0x1fb1c0(0x3c4)](_0x49deeb=>this[_0x1fb1c0(0x22a)](_0x3507e5,_0x49deeb)),_0x3507e5[_0x1fb1c0(0x155)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x1dc9b2=>this['_logService']['error'](_0x1fb1c0(0x38c),_0x1dc9b2)),_0x3507e5[_0x1fb1c0(0x46c)]['pipe'](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](()=>{const _0x25adb9=_0x1fb1c0;this[_0x25adb9(0x1d7)](_0x3507e5);}),_0x3507e5[_0x1fb1c0(0x32d)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x3f2c43=>{const _0x17dbd0=_0x1fb1c0;this[_0x17dbd0(0x2ec)][_0x17dbd0(0x166)]('[CollaborationSessionService]',_0x17dbd0(0x299),_0x3f2c43),this['_onConnectionFailed']();});}}catch(_0x349f3c){this[_0x1fb1c0(0x2ec)][_0x1fb1c0(0x30b)](_0x349f3c),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4568ff){const _0x5202e6=_0x2e5b1c;this[_0x5202e6(0x2ec)][_0x5202e6(0x166)](_0x5202e6(0x217),_0x5202e6(0x187)),_0x4568ff[_0x5202e6(0x1ef)]({'cmd':I['HELLO']}),this[_0x5202e6(0x36b)](),this['_listenToOfflineEvent']();}[_0x2e5b1c(0x441)](){const _0x301a6a=_0x2e5b1c,_0x8789ae=()=>{const _0xf3539e=_0x5851;this[_0xf3539e(0x403)](),this[_0xf3539e(0x180)](),window[_0xf3539e(0x1d8)]('offline',_0x8789ae);};window[_0x301a6a(0x48d)]('offline',_0x8789ae);}['_onOffline'](){const _0x1c4ae0=_0x2e5b1c;this[_0x1c4ae0(0x273)]=!0x1,this[_0x1c4ae0(0x279)][_0x1c4ae0(0x244)](W[_0x1c4ae0(0x1ac)]),this['_socket$'][_0x1c4ae0(0x244)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ae076=_0x2e5b1c;var _0x5088bd;this[_0x5ae076(0x403)](),this[_0x5ae076(0x1cf)]<((_0x5088bd=this[_0x5ae076(0x338)][_0x5ae076(0x142)](Cn))!=null?_0x5088bd:bn)?(this[_0x5ae076(0x396)][_0x5ae076(0x367)]({'key':_0x5ae076(0x2a1),'type':_0x68ddaa[_0x5ae076(0x425)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x226))}),this[_0x5ae076(0x148)]()):(this['_messageService'][_0x5ae076(0x367)]({'key':'collaboration-session-retry','type':_0x68ddaa[_0x5ae076(0x253)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x2ff))}),this['_listenToOnlineEvent']());}[_0x2e5b1c(0x180)](){const _0x10d0b7=_0x2e5b1c,_0x5a8078=()=>{const _0x3b323f=_0x5851;this[_0x3b323f(0x332)](),window[_0x3b323f(0x1d8)]('online',_0x5a8078);};window[_0x10d0b7(0x48d)](_0x10d0b7(0x364),_0x5a8078),this[_0x10d0b7(0x128)][_0x10d0b7(0x195)](_0x48e324(_0x534632=>!!_0x534632),_0x590d71(0x1))[_0x10d0b7(0x3c4)](()=>{const _0x5feb83=_0x10d0b7;window[_0x5feb83(0x1d8)](_0x5feb83(0x364),_0x5a8078);});}[_0x2e5b1c(0x148)](){const _0x16acb8=_0x2e5b1c;var _0x198d48;const _0x3e4f33=this[_0x16acb8(0x1cf)],_0x5a0971=_0x3e4f33===0x0?0x0:((_0x198d48=this[_0x16acb8(0x338)]['getConfig'](In))!=null?_0x198d48:En)*0x2**_0x3e4f33;this[_0x16acb8(0x2b8)]=window['setTimeout'](()=>{const _0x1736e8=_0x16acb8;clearTimeout(this[_0x1736e8(0x2b8)]),this[_0x1736e8(0x2b8)]=null,this['_tryEnsureSocket']();},_0x5a0971),this['_retryCount']+=0x1;}[_0x2e5b1c(0x22a)](_0x13eb8c,_0x1fbc37){const _0x24e149=_0x2e5b1c,{cmd:_0x2db9c5}=_0x1fbc37;_0x2db9c5===I['HELLO']&&!this[_0x24e149(0x273)]&&(_0x13eb8c[_0x24e149(0x2cd)]=_0x1fbc37['data']['memberID'],this[_0x24e149(0x128)][_0x24e149(0x244)](_0x13eb8c),this[_0x24e149(0x279)]['next'](W[_0x24e149(0x13f)]),this['_socketReady']=!0x0,this[_0x24e149(0x184)]=null),_0x2db9c5===I['HEARTBEAT']&&this[_0x24e149(0x2af)](),this[_0x24e149(0x36b)]();}[_0x2e5b1c(0x36b)](){const _0x4156e2=_0x2e5b1c;var _0x25d1a9;this[_0x4156e2(0x210)](),this[_0x4156e2(0x387)]=window[_0x4156e2(0x1f4)](()=>this[_0x4156e2(0x183)](),(_0x25d1a9=this['_configService']['getConfig'](pn))!=null?_0x25d1a9:vn);}['_sendHeartbeat'](){const _0x252dc3=_0x2e5b1c;this[_0x252dc3(0x1fe)]['send']({'cmd':I['HEARTBEAT']}),this[_0x252dc3(0x355)]();}['_waitForHeartbeatResponse'](){const _0x33481c=_0x2e5b1c;var _0x18d981;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x33481c(0x220)](),(_0x18d981=this[_0x33481c(0x338)][_0x33481c(0x142)](Ns))!=null?_0x18d981:ys);}['_clearHeartbeatTimer'](){const _0x118f83=_0x2e5b1c;this[_0x118f83(0x387)]!=null&&(clearTimeout(this[_0x118f83(0x387)]),this[_0x118f83(0x387)]=null);}[_0x2e5b1c(0x2af)](){const _0x546cda=_0x2e5b1c;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x546cda(0x1e0)]),this['_timeoutTimer']=null);}};ae=Kn([ue(0x0,_0x5c7fae(_0x5d259e)),ue(0x1,_0x5c7fae(_0x12e5b3)),ue(0x2,_0x29e945),ue(0x3,_0x1cafe9),ue(0x4,_0x401b9d),ue(0x5,Us)],ae);var Xn=Object[_0x2e5b1c(0x2de)],Jn=Object[_0x2e5b1c(0x41c)],zn=(_0x85e4f4,_0x576e57,_0x5396f2,_0x28af1e)=>{const _0x512518=_0x2e5b1c;for(var _0x9ca1dc=_0x28af1e>0x1?void 0x0:_0x28af1e?Jn(_0x576e57,_0x5396f2):_0x576e57,_0x4c4ae0=_0x85e4f4[_0x512518(0x1bb)]-0x1,_0x48ef41;_0x4c4ae0>=0x0;_0x4c4ae0--)(_0x48ef41=_0x85e4f4[_0x4c4ae0])&&(_0x9ca1dc=(_0x28af1e?_0x48ef41(_0x576e57,_0x5396f2,_0x9ca1dc):_0x48ef41(_0x9ca1dc))||_0x9ca1dc);return _0x28af1e&&_0x9ca1dc&&Xn(_0x576e57,_0x5396f2,_0x9ca1dc),_0x9ca1dc;},ht=(_0x25f08c,_0x306aab)=>(_0x32f8c6,_0x35c0df)=>_0x306aab(_0x32f8c6,_0x35c0df,_0x25f08c);let Ze=class{constructor(_0x2ab279,_0x128254,_0x19ee9f){const _0x267981=_0x2e5b1c;this[_0x267981(0x3ac)]=_0x2ab279,this[_0x267981(0x3cf)]=_0x128254,this['_renderManagerService']=_0x19ee9f;}[_0x2e5b1c(0x272)](_0x5e8006){const _0x4db21d=_0x2e5b1c;this[_0x4db21d(0x436)](_0x5e8006),this['_transformPreviousActiveRange'](_0x5e8006);}[_0x2e5b1c(0x28e)](_0x2c42b2){const _0x1f9a0d=_0x2e5b1c,{unitID:_0x4e2520}=_0x2c42b2,_0x38c76f=this[_0x1f9a0d(0x3c0)][_0x1f9a0d(0x474)](_0x4e2520)['with'](_0x3b1e58),{redoCache:_0x5afa3a}=_0x38c76f[_0x1f9a0d(0x288)]();if(_0x5afa3a[_0x1f9a0d(0x1bb)]===0x0)return _0x2c42b2;let _0x44502c=_0x3cea4b['deepClone'](_0x2c42b2['mutations'][0x0]);for(let _0x30b1c3=0x0;_0x30b1c3<_0x5afa3a[_0x1f9a0d(0x1bb)];_0x30b1c3++){const _0x2e369f={'id':_0x1f9a0d(0x3ad),'params':{..._0x5afa3a[_0x30b1c3]}},_0x3d8ed4=this[_0x1f9a0d(0x3cf)][_0x1f9a0d(0x2d7)](_0x44502c,_0x2e369f,!0x1);if(_0x517f04(_0x3d8ed4))throw _0x3d8ed4[_0x1f9a0d(0x30b)];_0x44502c=_0x3d8ed4[_0x1f9a0d(0x43e)];}return{..._0x3cea4b[_0x1f9a0d(0x3b7)](_0x2c42b2),'mutations':[_0x44502c]};}['_transformUndoRedoStack'](_0x4d993d){const _0x153ab8=_0x2e5b1c,{unitID:_0x2512ad}=_0x4d993d,_0x4173db=this['_renderManagerService']['getRenderById'](_0x2512ad)[_0x153ab8(0x286)](_0x3b1e58),{undoCache:_0x26747f,redoCache:_0x4b8670}=_0x4173db['getUndoRedoMutationParamsCache']();if(_0x26747f[_0x153ab8(0x1bb)]===0x0||_0x4b8670[_0x153ab8(0x1bb)]===0x0)return;const _0x8107b=[],_0x305426=[];let _0x3282f5=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]),_0x3d54ad=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]);for(let _0x38a088=_0x26747f[_0x153ab8(0x1bb)]-0x1;_0x38a088>=0x0;_0x38a088--){const _0x49813e={'id':_0x153ab8(0x3ad),'params':{..._0x26747f[_0x38a088]}},_0x2de202={'id':_0x153ab8(0x3ad),'params':{..._0x4b8670[_0x38a088]}},_0x1a5735=this[_0x153ab8(0x3cf)][_0x153ab8(0x2d7)](_0x3282f5,_0x49813e,!0x1),_0x3655c2=this['_transformService']['transformMutation'](_0x3d54ad,_0x2de202,!0x1);if(_0x517f04(_0x1a5735))throw _0x1a5735[_0x153ab8(0x30b)];if(_0x517f04(_0x3655c2))throw _0x3655c2['error'];_0x8107b[_0x153ab8(0x2f4)](_0x1a5735[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x305426[_0x153ab8(0x2f4)](_0x3655c2[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x3282f5=_0x1a5735[_0x153ab8(0x43e)],_0x3d54ad=_0x3655c2['m1Prime'];}_0x4173db['setUndoRedoMutationParamsCache']({'undoCache':_0x8107b,'redoCache':_0x305426});}[_0x2e5b1c(0x408)](_0x9dde3d){const _0x40ec69=_0x2e5b1c,{unitID:_0x12d994}=_0x9dde3d,_0x15e565=this[_0x40ec69(0x3c0)][_0x40ec69(0x474)](_0x12d994)[_0x40ec69(0x286)](_0x3b1e58),_0x1380d0=_0x15e565[_0x40ec69(0x361)]();if(_0x1380d0==null)return;const _0x227070=[{'id':_0x40ec69(0x3ad),'params':{'unitId':_0x9dde3d['unitID'],'actions':null,'textRanges':[_0x1380d0]}}],_0x49994e=this[_0x40ec69(0x3cf)][_0x40ec69(0x389)](_0x9dde3d,_0x227070);if(!_0x24d018(_0x49994e))throw _0x49994e[_0x40ec69(0x30b)];const _0xe47a43=_0x49994e[_0x40ec69(0x366)][0x0][_0x40ec69(0x27b)]['textRanges'];Array[_0x40ec69(0x434)](_0xe47a43)&&_0xe47a43[_0x40ec69(0x1bb)]&&_0x15e565['setActiveRange'](_0xe47a43[0x0]);}};Ze=zn([ht(0x0,_0x5c7fae(_0x5d259e)),ht(0x1,_0x4e0f96),ht(0x2,_0x363058)],Ze);var qn=Object['defineProperty'],Zn=Object[_0x2e5b1c(0x41c)],Qn=(_0xe83b50,_0x2caad6,_0x270acf,_0x21a9b8)=>{for(var _0x204a7c=_0x21a9b8>0x1?void 0x0:_0x21a9b8?Zn(_0x2caad6,_0x270acf):_0x2caad6,_0x10e427=_0xe83b50['length']-0x1,_0x5b6eb8;_0x10e427>=0x0;_0x10e427--)(_0x5b6eb8=_0xe83b50[_0x10e427])&&(_0x204a7c=(_0x21a9b8?_0x5b6eb8(_0x2caad6,_0x270acf,_0x204a7c):_0x5b6eb8(_0x204a7c))||_0x204a7c);return _0x21a9b8&&_0x204a7c&&qn(_0x2caad6,_0x270acf,_0x204a7c),_0x204a7c;},Re=(_0x454235,_0x2d1dc3)=>(_0x3c8165,_0xbb04a9)=>_0x2d1dc3(_0x3c8165,_0xbb04a9,_0x454235);let D=class extends _0x36403b{constructor(_0x4ba0a9,_0x1f5282,_0x2e3015,_0x170ef8,_0x18a0ab){const _0x4253fc=_0x2e5b1c;super(),l(this,_0x4253fc(0x3f9),new Map()),l(this,_0x4253fc(0x17f),new Map()),l(this,_0x4253fc(0x45f),!0x1),(this['_configService']=_0x4ba0a9,this[_0x4253fc(0x2fd)]=_0x1f5282,this[_0x4253fc(0x3d9)]=_0x2e3015,this[_0x4253fc(0x452)]=_0x170ef8,this[_0x4253fc(0x26e)]=_0x18a0ab,this[_0x4253fc(0x471)]());}[_0x2e5b1c(0x17c)](){this['_disabled']=!0x0;}[_0x2e5b1c(0x2db)](){const _0x2f914c=_0x2e5b1c;this[_0x2f914c(0x45f)]=!0x1;}[_0x2e5b1c(0x2fe)](){const _0x312b42=_0x2e5b1c;this['exhaustSavingTask']()['then'](()=>super[_0x312b42(0x2fe)]());}async[_0x2e5b1c(0x1cb)](_0xf5dc3){const _0x141417=_0x2e5b1c;return this[_0x141417(0x45f)]?null:this[_0x141417(0x2fd)]['getItem'](rs(_0xf5dc3));}async[_0x2e5b1c(0x1b7)](_0x3e339e,_0x35cc83){const _0x5c6e11=_0x2e5b1c;return!!this[_0x5c6e11(0x2fd)][_0x5c6e11(0x375)](_0x3e339e,_0x35cc83);}['updateOfflineData'](_0x3b5d06,_0x515bd3,_0x4eb792,_0x34ba58){const _0x2636cd=_0x2e5b1c,_0x499c43=this[_0x2636cd(0x26e)][_0x2636cd(0x135)](_0x3b5d06);this[_0x2636cd(0x3f9)][_0x2636cd(0x1e1)](_0x3b5d06,{'unitID':_0x3b5d06,'type':_0x515bd3,'awaitingChangeset':_0x4eb792,'mutations':_0x34ba58,'rev':_0x499c43}),this[_0x2636cd(0x17f)][_0x2636cd(0x250)](_0x3b5d06)||this[_0x2636cd(0x1f2)](_0x3b5d06);}[_0x2e5b1c(0x1f2)](_0x289791){const _0xbbd8e2=_0x2e5b1c,_0x48abbd=this[_0xbbd8e2(0x218)]();_0x48abbd===0x0?this['_saveCache'](_0x289791):this[_0xbbd8e2(0x17f)][_0xbbd8e2(0x1e1)](_0x289791,setTimeout(()=>this[_0xbbd8e2(0x1b8)](_0x289791),_0x48abbd));}[_0x2e5b1c(0x218)](){const _0x1ce285=_0x2e5b1c;var _0x5e2db4;return(_0x5e2db4=this[_0x1ce285(0x338)][_0x1ce285(0x142)](Tn))!=null?_0x5e2db4:Rn;}[_0x2e5b1c(0x1b8)](_0x3a8c9f){const _0x341924=_0x2e5b1c,_0x3ff317=this[_0x341924(0x17f)][_0x341924(0x18f)](_0x3a8c9f);return _0x3ff317!==void 0x0&&window[_0x341924(0x311)](_0x3ff317),this['_localStorageService']['setItem'](rs(_0x3a8c9f),this[_0x341924(0x3f9)][_0x341924(0x18f)](_0x3a8c9f))['then'](()=>this[_0x341924(0x17f)][_0x341924(0x18d)](_0x3a8c9f));}async['exhaustSavingTask'](){const _0x4ff0de=_0x2e5b1c,_0x4dd15b=[];this[_0x4ff0de(0x17f)][_0x4ff0de(0x1cd)]((_0x80897,_0x9f50d3)=>{const _0x407328=_0x4ff0de;window[_0x407328(0x311)](_0x80897),_0x4dd15b[_0x407328(0x2f1)](this[_0x407328(0x1b8)](_0x9f50d3)[_0x407328(0x2e6)](()=>{const _0x2e2faf=_0x407328;this[_0x2e2faf(0x17f)][_0x2e2faf(0x18d)](_0x9f50d3);}));}),await Promise[_0x4ff0de(0x363)](_0x4dd15b);}['_setupBeforeClosingHandler'](){const _0x30eb50=_0x2e5b1c;this[_0x30eb50(0x294)](this[_0x30eb50(0x3d9)][_0x30eb50(0x39f)](()=>{const _0x5b6eee=_0x30eb50;if(this['_saveTaskMap'][_0x5b6eee(0x362)])return this[_0x5b6eee(0x452)]['t'](_0x5b6eee(0x186));}));}};D=Qn([Re(0x0,_0x401b9d),Re(0x1,_0x76fe2e),Re(0x2,_0x4c2a62),Re(0x3,_0x5c7fae(_0x12e5b3)),Re(0x4,_0x5c7fae(_0x4ceeac))],D);function rs(_0x3d6f80){const _0x277f3c=_0x2e5b1c;return _0x277f3c(0x34f)+_0x3d6f80;}var er=Object[_0x2e5b1c(0x2de)],tr=Object[_0x2e5b1c(0x41c)],sr=(_0x46c7a2,_0x387fdd,_0x55741b,_0x4636f4)=>{const _0x291496=_0x2e5b1c;for(var _0x296a2a=_0x4636f4>0x1?void 0x0:_0x4636f4?tr(_0x387fdd,_0x55741b):_0x387fdd,_0xe936c7=_0x46c7a2[_0x291496(0x1bb)]-0x1,_0x41d779;_0xe936c7>=0x0;_0xe936c7--)(_0x41d779=_0x46c7a2[_0xe936c7])&&(_0x296a2a=(_0x4636f4?_0x41d779(_0x387fdd,_0x55741b,_0x296a2a):_0x41d779(_0x296a2a))||_0x296a2a);return _0x4636f4&&_0x296a2a&&er(_0x387fdd,_0x55741b,_0x296a2a),_0x296a2a;},lt=(_0x4a0c3f,_0x3fb753)=>(_0x4a8ead,_0x1ab18d)=>_0x3fb753(_0x4a8ead,_0x1ab18d,_0x4a0c3f);function ir(_0x3940dc){const {unitID:_0x477718,mutations:_0xefc395}=_0x3940dc;return{'unitId':_0x477718,'subUnitId':_0xefc395[0x0]['params']['subUnitId']};}let Qe=class{constructor(_0x568dc4,_0x1b5a2f,_0x5e3668){const _0x506ce0=_0x2e5b1c;this[_0x506ce0(0x3ac)]=_0x568dc4,this[_0x506ce0(0x3cf)]=_0x1b5a2f,this[_0x506ce0(0x200)]=_0x5e3668;}[_0x2e5b1c(0x326)](_0x2dbf45){const _0x18dec4=_0x2e5b1c;var _0x71e553,_0x2262c7,_0x381555,_0x2db828,_0x4100e1;const _0xfcb7dd=this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x85923d),{unitId:_0x173b53,subUnitId:_0x101d56}=ir(_0x2dbf45),_0x35481e=_0xfcb7dd[_0x18dec4(0x409)](_0x173b53)[_0x18dec4(0x460)](),_0x783ab7=(_0x2262c7=(_0x71e553=this[_0x18dec4(0x200)][_0x18dec4(0x201)](_0x173b53))==null?void 0x0:_0x71e553['getActiveSheet']())==null?void 0x0:_0x2262c7[_0x18dec4(0x3b5)]();if(_0x35481e[_0x18dec4(0x1bb)]===0x0||!_0x173b53||!_0x101d56)return;const _0x3c8026=[{'id':_0x2498cc['id'],'params':{'unitId':_0x173b53,'subUnitId':_0x783ab7,'selections':_0x3cea4b[_0x18dec4(0x3b7)](_0x35481e)}}],_0x49268a=this[_0x18dec4(0x3cf)][_0x18dec4(0x389)](_0x2dbf45,_0x3c8026);if(!_0x24d018(_0x49268a))throw _0x49268a['error'];const _0x4365d2=(_0x4100e1=(_0x2db828=(_0x381555=_0x49268a[_0x18dec4(0x366)][0x0])==null?void 0x0:_0x381555['params'])==null?void 0x0:_0x2db828[_0x18dec4(0x230)])!=null?_0x4100e1:_0x35481e;Array[_0x18dec4(0x434)](_0x4365d2)&&_0x4365d2[_0x18dec4(0x1bb)]&&this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x36a317)[_0x18dec4(0x335)](_0x2498cc['id'],{'unitId':_0x173b53,'subUnitId':_0x101d56,'selections':_0x4365d2});}};Qe=sr([lt(0x0,_0x5c7fae(_0x5d259e)),lt(0x1,_0x4e0f96),lt(0x2,_0x30b2f2)],Qe);const it=_0x5a3236('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x31f440=>(_0x31f440[_0x31f440[_0x2e5b1c(0x3f0)]=0x0]=_0x2e5b1c(0x3f0),_0x31f440[_0x31f440[_0x2e5b1c(0x1f1)]=0x1]='OTHER_CLIENTS_EDITING',_0x31f440))($s||{});const os=0x7530,as=_0x2e5b1c(0x2e0);class nr extends _0x36403b{constructor(){const _0x7efbe8=_0x2e5b1c;super(),l(this,'_id',_0x3cea4b[_0x7efbe8(0x1ce)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x7efbe8(0x38d),new Map()),l(this,_0x7efbe8(0x243),null),l(this,_0x7efbe8(0x43b),new Map()),l(this,_0x7efbe8(0x2b0),new Map()),this[_0x7efbe8(0x42f)]();}[_0x2e5b1c(0x2fe)](){const _0x34b3ee=_0x2e5b1c;super[_0x34b3ee(0x2fe)](),this[_0x34b3ee(0x43b)][_0x34b3ee(0x1cd)]((_0x4eb34c,_0x2d35b0)=>this[_0x34b3ee(0x468)](_0x2d35b0)),this[_0x34b3ee(0x243)]&&window[_0x34b3ee(0x14f)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x195798){return this['_ensureSubject'](_0x195798)['pipe'](_0x24665d());}[_0x2e5b1c(0x461)](_0x4e0ca1){const _0x30c4bf=_0x2e5b1c;this[_0x30c4bf(0x3b4)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x30c4bf(0x3b4)]['add'](_0x4e0ca1),this['_send']({'type':0x0,'memberID':this[_0x30c4bf(0x386)],'unitIDs':[_0x4e0ca1],'isForwarded':!0x1});}[_0x2e5b1c(0x334)](_0xc36e05){const _0x49c9fc=_0x2e5b1c;this['_selfUnitIDs']['delete'](_0xc36e05),this[_0x49c9fc(0x3b4)]['size']===0x0&&this[_0x49c9fc(0x243)]&&window[_0x49c9fc(0x14f)](this['_heartbeatTimer']);}[_0x2e5b1c(0x42f)](){const _0xa58483=_0x2e5b1c;this[_0xa58483(0x294)](_0x29a7b(_0x4dbad7(window,_0xa58483(0x417))[_0xa58483(0x3c4)](_0x2313e7=>{const _0x5a14f4=_0xa58483;if(_0x2313e7['key']!==as||!_0x2313e7[_0x5a14f4(0x312)])return;const _0x3752fd=JSON['parse'](_0x2313e7[_0x5a14f4(0x312)]);this[_0x5a14f4(0x3ba)](_0x3752fd);}))),window['addEventListener']('unload',()=>this[_0xa58483(0x3c1)]({'type':0x1,'memberID':this[_0xa58483(0x386)],'unitIDs':Array[_0xa58483(0x1bf)](this[_0xa58483(0x3b4)])}));}[_0x2e5b1c(0x3ba)](_0x4693b4){const _0xbd49c=_0x2e5b1c;switch(_0x4693b4[_0xbd49c(0x255)]){case 0x0:this[_0xbd49c(0x3b6)](_0x4693b4);break;case 0x1:this[_0xbd49c(0x287)](_0x4693b4);break;case 0x2:this['_handleHeartbeatEvent'](_0x4693b4);break;}}[_0x2e5b1c(0x3b6)](_0x38f591){const _0x105998=_0x2e5b1c,{unitIDs:_0x38793a,memberID:_0x3427da,isForwarded:_0xb245ed}=_0x38f591;_0x38793a['forEach'](_0xdd6450=>{const _0x36fff5=_0x5851;if(!_0xb245ed&&this[_0x36fff5(0x38d)]['has'](_0xdd6450)&&this[_0x36fff5(0x40f)](_0xdd6450)['next'](0x1),!this[_0x36fff5(0x38d)][_0x36fff5(0x250)](_0xdd6450)||!this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)[_0x36fff5(0x250)](_0x3427da)){const _0x1c4345=this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)||new Set();_0x1c4345['add'](_0x3427da),this[_0x36fff5(0x38d)]['set'](_0xdd6450,_0x1c4345),this['_scheduleClearOtherTimer'](_0x3427da);}}),_0xb245ed||this[_0x105998(0x3c1)]({'type':0x0,'memberID':this[_0x105998(0x386)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2e5b1c(0x473)](_0x5c55c2){const _0x7c7a5=_0x2e5b1c;this[_0x7c7a5(0x468)](_0x5c55c2);const _0x46af48=window[_0x7c7a5(0x1f4)](()=>{const _0x49911b=_0x7c7a5;this[_0x49911b(0x38d)][_0x49911b(0x1cd)](_0x537973=>{_0x537973['delete'](_0x5c55c2);});},os*0x2);this['_clearOtherTimers'][_0x7c7a5(0x1e1)](_0x5c55c2,_0x46af48);}[_0x2e5b1c(0x468)](_0x259006){const _0x4c5738=_0x2e5b1c;if(this['_clearOtherTimers'][_0x4c5738(0x250)](_0x259006)){const _0x3dda27=this[_0x4c5738(0x43b)][_0x4c5738(0x18f)](_0x259006);_0x3dda27&&window[_0x4c5738(0x311)](_0x3dda27),this[_0x4c5738(0x43b)][_0x4c5738(0x1e1)](_0x259006,null);}}[_0x2e5b1c(0x287)](_0xc24e1f){const _0x2ffd28=_0x2e5b1c,{memberID:_0x18beed,unitIDs:_0x239794}=_0xc24e1f;_0x239794[_0x2ffd28(0x1cd)](_0x4a961d=>{const _0x1addc2=_0x2ffd28;var _0x3dfa8f;const _0x335413=this[_0x1addc2(0x38d)][_0x1addc2(0x18f)](_0x4a961d);_0x335413&&(_0x335413[_0x1addc2(0x18d)](_0x18beed),(_0x3dfa8f=this['_ensureSubject'](_0x4a961d))==null||_0x3dfa8f['next'](_0x335413[_0x1addc2(0x362)]===0x0?0x0:0x1));}),this[_0x2ffd28(0x468)](_0x18beed);}[_0x2e5b1c(0x1f5)](_0x2c592c){const _0x4e2649=_0x2e5b1c;this[_0x4e2649(0x473)](_0x2c592c[_0x4e2649(0x2cd)]);}[_0x2e5b1c(0x3c1)](_0x23ad40){const _0x95460a=_0x2e5b1c;localStorage['setItem'](as,JSON[_0x95460a(0x3d7)](_0x23ad40));}[_0x2e5b1c(0x2a7)](){const _0xaefb24=_0x2e5b1c;this[_0xaefb24(0x243)]=window[_0xaefb24(0x206)](()=>{const _0x251bf9=_0xaefb24;this[_0x251bf9(0x3c1)]({'type':0x2,'memberID':this[_0x251bf9(0x386)]});},os);}[_0x2e5b1c(0x40f)](_0x39911){const _0x2ecf34=_0x2e5b1c;return this[_0x2ecf34(0x2b0)][_0x2ecf34(0x250)](_0x39911)||this['_unitStatus'][_0x2ecf34(0x1e1)](_0x39911,new _0x16e81a(0x0)),this[_0x2ecf34(0x2b0)]['get'](_0x39911);}}function js(_0x5ca839){const _0x583c58=_0x2e5b1c;let _0x1ef87c='';for(const _0x1babab of _0x5ca839){const {startOffset:_0x3462ab,endOffset:_0x315f72,isActive:_0x5dbf62}=_0x1babab;_0x1ef87c[_0x583c58(0x1bb)]&&(_0x1ef87c+=','),_0x1ef87c+=_0x3462ab+':'+_0x315f72+':'+(_0x5dbf62?'1':'0');}return _0x1ef87c;}function rr(_0x3f17f4){const _0x3cd5ba=_0x2e5b1c,_0x59154f=_0x3f17f4['split'](','),_0x45311a=[];for(const _0xa891b of _0x59154f){const [_0xb047b,_0x448fd9,_0x59da7e]=_0xa891b[_0x3cd5ba(0x337)](':');_0x45311a[_0x3cd5ba(0x2f1)]({'startOffset':Number(_0xb047b),'endOffset':Number(_0x448fd9),'collapsed':_0xb047b===_0x448fd9,'isActive':_0x59da7e==='1'});}return _0x45311a[_0x3cd5ba(0x16b)](_0xe8bfa9=>_0xe8bfa9['isActive'])||(_0x45311a[0x0][_0x3cd5ba(0x3e7)]=!0x0),_0x45311a;}class Bt extends _0x4bff65{constructor(){const _0x3b9bc7=_0x2e5b1c;super(...arguments),l(this,_0x3b9bc7(0x428),new _0x16e81a(null)),l(this,_0x3b9bc7(0x39e),this['_collabCursorState$'][_0x3b9bc7(0x2f8)]());}[_0x2e5b1c(0x3cd)](_0x19d3b){const _0x51d9f4=_0x2e5b1c,{unitID:_0x18a532,memberID:_0x1b97c8,textRanges:_0x51bee1}=_0x19d3b,_0x53114e=js(_0x51bee1),_0x448c0e={'unitID':_0x18a532,'memberID':_0x1b97c8,'selection':_0x53114e};this[_0x51d9f4(0x428)][_0x51d9f4(0x244)](_0x448c0e);}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4d0c04,_0x3aa662,_0x4d29ae,_0x41c046)=>{const _0x21d114=_0x2e5b1c;for(var _0x71c1ba=_0x41c046>0x1?void 0x0:_0x41c046?ar(_0x3aa662,_0x4d29ae):_0x3aa662,_0x3433bd=_0x4d0c04[_0x21d114(0x1bb)]-0x1,_0x51c78d;_0x3433bd>=0x0;_0x3433bd--)(_0x51c78d=_0x4d0c04[_0x3433bd])&&(_0x71c1ba=(_0x41c046?_0x51c78d(_0x3aa662,_0x4d29ae,_0x71c1ba):_0x51c78d(_0x71c1ba))||_0x71c1ba);return _0x41c046&&_0x71c1ba&&or(_0x3aa662,_0x4d29ae,_0x71c1ba),_0x71c1ba;},cs=(_0x46955b,_0x1b8d76)=>(_0x2b19db,_0x46a541)=>_0x1b8d76(_0x2b19db,_0x46a541,_0x46955b);let et=class{constructor(_0x275317,_0x568399){const _0x3fbe55=_0x2e5b1c;this[_0x3fbe55(0x3ac)]=_0x275317,this[_0x3fbe55(0x3cf)]=_0x568399;}['transformSelections'](_0x45baaa){const _0x22aa81=_0x2e5b1c;var _0x31fa2e;const _0x539c7d=this[_0x22aa81(0x3ac)][_0x22aa81(0x18f)](_0x1dbfad),_0x42f5cb=(_0x31fa2e=_0x539c7d[_0x22aa81(0x16f)]())!=null?_0x31fa2e:[];if(_0x42f5cb[_0x22aa81(0x1bb)]===0x0)return;const _0x1555f4=[{'id':_0x22aa81(0x3ad),'params':{'unitId':_0x45baaa[_0x22aa81(0x3a4)],'actions':null,'textRanges':_0x42f5cb}}],_0x29ac0e=this[_0x22aa81(0x3cf)]['transformMutationsWithChangeset'](_0x45baaa,_0x1555f4);if(!_0x24d018(_0x29ac0e))throw _0x29ac0e[_0x22aa81(0x30b)];const _0x2195d8=_0x29ac0e[_0x22aa81(0x366)][0x0][_0x22aa81(0x27b)]['textRanges'];Array[_0x22aa81(0x434)](_0x2195d8)&&_0x2195d8[_0x22aa81(0x1bb)]&&_0x539c7d[_0x22aa81(0x3ff)](_0x2195d8,!0x1);}};et=cr([cs(0x0,_0x5c7fae(_0x5d259e)),cs(0x1,_0x4e0f96)],et);const hr=new Set([_0x5a0458['id']]);function hs(_0x13f075,_0x40f5bf,_0x491848,_0x1823eb,_0x242fec){const _0x141ff7=_0x2e5b1c;var _0x580e8a,_0x103d96,_0x9cae50,_0x419a7e;const _0x3e007e=[];for(const _0x2c077f of _0x13f075)if(hr[_0x141ff7(0x250)](_0x2c077f['id'])){if(_0x3e007e[_0x141ff7(0x1bb)]>0x0)break;_0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);break;}else _0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);const _0x405b02=(_0x103d96=(_0x580e8a=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x580e8a[_0x141ff7(0x2ea)])!=null?_0x103d96:_0x141ff7(0x21e),_0x277c41=(_0x419a7e=(_0x9cae50=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x9cae50[_0x141ff7(0x2cd)])!=null?_0x419a7e:'unknown';return{'changeset':{'unitID':_0x40f5bf,'type':_0x2e5178(_0x491848[_0x141ff7(0x216)](_0x40f5bf)),'baseRev':_0x1823eb[_0x141ff7(0x135)](_0x40f5bf),'revision':0x0,'userID':_0x405b02,'memberID':_0x277c41,'mutations':_0x3e007e},'pendingMutations':_0x13f075[_0x141ff7(0x2d3)](_0x3e007e[_0x141ff7(0x1bb)])};}function lr(_0x133e7d,_0x5bf88f,_0x44a0f3,_0x17db67,_0x116712){const _0x4710f3=_0x2e5b1c;var _0x17d141,_0x181ddf,_0x13b93b,_0x1bbb79;const _0x3f881b=[_0x133e7d['reduce']((_0x23bcfe,_0xaf5827)=>{const _0x33e3f7=_0x5851;var _0x2e4e07;const {id:_0x4eea42}=_0x23bcfe,{id:_0x31bfa3,type:_0x419bf9}=_0xaf5827,_0x11ea48=(_0x2e4e07=_0x23bcfe[_0x33e3f7(0x27b)])!=null?_0x2e4e07:{'actions':null},_0x1124a4=_0xaf5827[_0x33e3f7(0x27b)];if(_0x4eea42&&_0x4eea42!==_0x31bfa3)throw new Error(_0x33e3f7(0x3ef)+_0x4eea42+_0x33e3f7(0x1a7)+_0x31bfa3+'.');return{..._0x23bcfe,'id':_0x31bfa3,'type':_0x419bf9,'params':{'unitId':_0x1124a4[_0x33e3f7(0x275)],'textRanges':_0x1124a4[_0x33e3f7(0x43f)],'actions':_0x51b925['compose'](_0x11ea48[_0x33e3f7(0x1ba)],_0x1124a4[_0x33e3f7(0x1ba)])}};},{})],_0x16e335=(_0x181ddf=(_0x17d141=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x17d141[_0x4710f3(0x2ea)])!=null?_0x181ddf:_0x4710f3(0x21e),_0x3ffc08=(_0x1bbb79=(_0x13b93b=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x13b93b[_0x4710f3(0x2cd)])!=null?_0x1bbb79:'unknown';return{'changeset':{'unitID':_0x5bf88f,'type':_0x2e5178(_0x44a0f3[_0x4710f3(0x216)](_0x5bf88f)),'baseRev':_0x17db67['getCurrentRevForDocument'](_0x5bf88f),'revision':0x0,'userID':_0x16e335,'memberID':_0x3ffc08,'mutations':_0x3f881b},'pendingMutations':[]};}const _r={'id':_0x39f7b4['id'],'type':_0x32e0b0[_0x2e5b1c(0x368)],'params':{}};var ur=Object[_0x2e5b1c(0x2de)],dr=Object['getOwnPropertyDescriptor'],he=(_0x5a5762,_0x346997,_0x2987a0,_0x3aaf0b)=>{const _0x2e0715=_0x2e5b1c;for(var _0x8bc20e=_0x3aaf0b>0x1?void 0x0:_0x3aaf0b?dr(_0x346997,_0x2987a0):_0x346997,_0x58ceb2=_0x5a5762[_0x2e0715(0x1bb)]-0x1,_0x42e6ff;_0x58ceb2>=0x0;_0x58ceb2--)(_0x42e6ff=_0x5a5762[_0x58ceb2])&&(_0x8bc20e=(_0x3aaf0b?_0x42e6ff(_0x346997,_0x2987a0,_0x8bc20e):_0x42e6ff(_0x8bc20e))||_0x8bc20e);return _0x3aaf0b&&_0x8bc20e&&ur(_0x346997,_0x2987a0,_0x8bc20e),_0x8bc20e;},f=(_0x2b5cde,_0x5165d5)=>(_0x4ff7b5,_0x417033)=>_0x5165d5(_0x4ff7b5,_0x417033,_0x2b5cde),w=(_0x51c14f=>(_0x51c14f['NOT_COLLAB']='not_collab',_0x51c14f[_0x2e5b1c(0x421)]=_0x2e5b1c(0x305),_0x51c14f[_0x2e5b1c(0x314)]=_0x2e5b1c(0x293),_0x51c14f[_0x2e5b1c(0x3c8)]=_0x2e5b1c(0x427),_0x51c14f[_0x2e5b1c(0x478)]=_0x2e5b1c(0x15a),_0x51c14f['FETCH_MISS']=_0x2e5b1c(0x251),_0x51c14f[_0x2e5b1c(0x298)]=_0x2e5b1c(0x211),_0x51c14f[_0x2e5b1c(0x1ac)]=_0x2e5b1c(0x3e4),_0x51c14f))(w||{});class le{constructor(_0x531dd9,_0x4c8cc9,_0x291ad9,_0xd7a85f,_0x494706,_0x19ae87,_0x24020c,_0x4989f9,_0x3ffa41){const _0x1ab8ab=_0x2e5b1c;l(this,_0x1ab8ab(0x448),null),l(this,'_pendingMutations',[]),(this[_0x1ab8ab(0x3a4)]=_0x531dd9,this[_0x1ab8ab(0x255)]=_0x4c8cc9,this[_0x1ab8ab(0x1aa)]=_0x494706,this['_commandService']=_0x19ae87,this[_0x1ab8ab(0x3bf)]=_0x24020c,this[_0x1ab8ab(0x26e)]=_0x4989f9,this[_0x1ab8ab(0x170)]=_0x3ffa41,this[_0x1ab8ab(0x448)]=_0x291ad9,this[_0x1ab8ab(0x40d)]=_0xd7a85f);}['_checkMissing'](_0x588d94){const _0x239a5a=_0x2e5b1c,_0x578369=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x588d94['revision']>_0x578369+0x1?(this[_0x239a5a(0x1aa)][_0x239a5a(0x2a0)]({'from':_0x578369,'to':_0x588d94[_0x239a5a(0x28f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1c9e34){const _0xe3e1bb=_0x2e5b1c;this[_0xe3e1bb(0x3bf)][_0xe3e1bb(0x192)](this['unitID'],_0x1c9e34);}[_0x2e5b1c(0x456)](_0x20efdd){const _0x4a0d2b=_0x2e5b1c;var _0x138983,_0x713c23;(_0x713c23=(_0x138983=this[_0x4a0d2b(0x1aa)])[_0x4a0d2b(0x3d4)])==null||_0x713c23['call'](_0x138983,_0x20efdd);}[_0x2e5b1c(0x199)](_0x3cd283){const _0x3dc5a1=_0x2e5b1c;var _0xc352d9,_0x2834b7;return(_0x2834b7=(_0xc352d9=this[_0x3dc5a1(0x1aa)])['onTransformIME'])==null?void 0x0:_0x2834b7[_0x3dc5a1(0x13d)](_0xc352d9,_0x3cd283);}[_0x2e5b1c(0x348)](_0x51c9b5){const _0x19ffe5=_0x2e5b1c;var _0x38d55e,_0x5bf81c,_0x117322;return(_0x117322=(_0x5bf81c=(_0x38d55e=this[_0x19ffe5(0x1aa)])[_0x19ffe5(0x158)])==null?void 0x0:_0x5bf81c['call'](_0x38d55e,_0x51c9b5))!=null?_0x117322:_0x51c9b5;}['_syncEditingCollabCursor'](_0x18bbb3){const _0x4e498b=_0x2e5b1c;var _0xc9a8ca,_0x17087d;if(this[_0x4e498b(0x255)]===x[_0x4e498b(0x1de)]){const {unitID:_0x5d3bd7,mutations:_0xa1875e,memberID:_0x213df3}=_0x18bbb3,_0x272dbe=_0xa1875e[0x0]['params'][_0x4e498b(0x43f)];Array['isArray'](_0x272dbe)&&_0x272dbe['length']>0x0&&((_0x17087d=(_0xc9a8ca=this[_0x4e498b(0x1aa)])['onSyncEditingCollabCursor'])==null||_0x17087d[_0x4e498b(0x13d)](_0xc9a8ca,{'unitID':_0x5d3bd7,'memberID':_0x213df3,'textRanges':_0x272dbe}));}}[_0x2e5b1c(0x3c2)](){const _0x80e328=_0x2e5b1c;this[_0x80e328(0x170)]['updateOfflineData'](this[_0x80e328(0x3a4)],this['type'],this[_0x80e328(0x448)],this[_0x80e328(0x40d)]);}['_getCurrentRevision'](){const _0x25ce6d=_0x2e5b1c;return this['_revisionService'][_0x25ce6d(0x135)](this[_0x25ce6d(0x3a4)]);}[_0x2e5b1c(0x21f)](){const _0x23d0d3=_0x2e5b1c;this['_revisionService'][_0x23d0d3(0x457)](this[_0x23d0d3(0x3a4)]);}['_executeRemoteChangeset'](_0x56e1ba){const _0x5d8ab9=_0x2e5b1c;var _0x55d121;const _0x2c9457=this['_transformRemoteChangesetByIMECache'](_0x56e1ba),_0x5da224=_0x5396fb(_0x2c9457['mutations'],this[_0x5d8ab9(0x1bd)],{'fromCollab':!0x0});if(!_0x5da224[_0x5d8ab9(0x289)])throw _0x5da224[_0x5d8ab9(0x30b)]instanceof Error?_0x5da224[_0x5d8ab9(0x30b)]:new Error((_0x55d121=_0x5da224[_0x5d8ab9(0x30b)])!=null?_0x55d121:_0x5d8ab9(0x27c));this[_0x5d8ab9(0x199)](_0x2c9457),this['_transformUndoredo'](_0x56e1ba),this[_0x5d8ab9(0x456)](_0x2c9457),this[_0x5d8ab9(0x485)](_0x2c9457),this[_0x5d8ab9(0x21f)]();}}let Se=class extends le{constructor(_0x21f720,_0x49a7ec,_0x1e5d82,_0x1cd2bd,_0x301766,_0x147ecc,_0x31a7a1,_0x1d5a37,_0x1352a4,_0x13c89c){const _0x5dd7ac=_0x2e5b1c;super(_0x21f720,_0x49a7ec,null,[],_0x1e5d82,_0x1d5a37,_0x31a7a1,_0x1cd2bd,_0x301766),l(this,_0x5dd7ac(0x450),_0x5dd7ac(0x305)),(this[_0x5dd7ac(0x3ac)]=_0x147ecc,this[_0x5dd7ac(0x2ec)]=_0x1352a4,this[_0x5dd7ac(0x3cf)]=_0x13c89c);}['appendMutation'](_0x5a83b5){const _0x2cf048=_0x2e5b1c,_0x1f3c6c=this[_0x2cf048(0x3ac)][_0x2cf048(0x254)](Y,this[_0x2cf048(0x3a4)],this['type'],[_0x5a83b5],this['_handler']);return _0x1f3c6c[_0x2cf048(0x25a)](),_0x1f3c6c[_0x2cf048(0x3c2)](),_0x1f3c6c;}[_0x2e5b1c(0x3ea)](_0x166e17){const _0x1d6f70=_0x2e5b1c;if(this[_0x1d6f70(0x32a)](_0x166e17))return this[_0x1d6f70(0x3ac)]['createInstance'](H,this['unitID'],this[_0x1d6f70(0x255)],null,[],null,[_0x166e17],this['_handler']);try{const _0x23948d=this[_0x1d6f70(0x3cf)][_0x1d6f70(0x389)](_0x166e17,[_r]);if(_0x24d018(_0x23948d)){const {c1Prime:_0x53a085}=_0x23948d;return this[_0x1d6f70(0x14c)](_0x53a085),this;}throw _0x23948d[_0x1d6f70(0x30b)];}catch(_0x2556af){return this[_0x1d6f70(0x2ec)][_0x1d6f70(0x30b)](_0x2556af),this[_0x1d6f70(0x2d4)](!0x1);}}['_onConflict'](_0x6c6972){const _0x315e1b=_0x2e5b1c;return this[_0x315e1b(0x3ac)][_0x315e1b(0x254)](Q,this[_0x315e1b(0x3a4)],this['type'],null,[],this['_handler'],_0x6c6972);}[_0x2e5b1c(0x2bd)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x58edf1=_0x2e5b1c;throw new Error(_0x58edf1(0x330));}[_0x2e5b1c(0x3e5)](){const _0xe5ca9f=_0x2e5b1c;return this[_0xe5ca9f(0x3ac)][_0xe5ca9f(0x254)](ee,this['unitID'],this[_0xe5ca9f(0x255)],null,[],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x3c9)](){const _0x2d66d1=_0x2e5b1c;throw new Error(_0x2d66d1(0x1b6));}[_0x2e5b1c(0x353)](){const _0x29e55f=_0x2e5b1c,_0x5ef838=this[_0x29e55f(0x26e)]['getCurrentRevForDocument'](this[_0x29e55f(0x3a4)]);return this[_0x29e55f(0x1aa)][_0x29e55f(0x2a0)]({'from':_0x5ef838,'to':0x0}),this[_0x29e55f(0x3ac)][_0x29e55f(0x254)](H,this[_0x29e55f(0x3a4)],this[_0x29e55f(0x255)],null,[],null,[],this[_0x29e55f(0x1aa)]);}};Se=he([f(0x3,_0x5c7fae(_0x4ceeac)),f(0x4,_0x5c7fae(D)),f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x1bd332),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96)],Se);let Y=class extends le{constructor(_0x1d35e1,_0x1e4b55,_0x3f2b7f,_0x1188ee,_0x3bda8b,_0x374a7c,_0x12d9af,_0x59b859,_0x4b24d1,_0x4bc168,_0x438a71,_0x30a5ac,_0x647bed,_0x202642){const _0x22e658=_0x2e5b1c;super(_0x1d35e1,_0x1e4b55,null,_0x3f2b7f,_0x1188ee,_0x4bc168,_0x202642,_0x374a7c,_0x12d9af),l(this,_0x22e658(0x450),_0x22e658(0x293)),l(this,'_scheduleTimestamp',null),l(this,_0x22e658(0x280),null),(this[_0x22e658(0x3ac)]=_0x3bda8b,this[_0x22e658(0x2a9)]=_0x59b859,this['_logService']=_0x4b24d1,this[_0x22e658(0x338)]=_0x438a71,this[_0x22e658(0x3cf)]=_0x30a5ac,this['_univerInstanceService']=_0x647bed);}[_0x2e5b1c(0x415)](_0x566378){const _0x2ed38d=_0x2e5b1c;return this[_0x2ed38d(0x40d)][_0x2ed38d(0x2f1)](_0x566378),this[_0x2ed38d(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x119fec){const _0x18b696=_0x2e5b1c;if(this['_checkMissing'](_0x119fec))return this['_clearScheduledTask'](),this[_0x18b696(0x3ac)]['createInstance'](H,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],null,this[_0x18b696(0x40d)],null,[_0x119fec],this[_0x18b696(0x1aa)]);try{const _0x23d438=this[_0x18b696(0x3cf)][_0x18b696(0x389)](_0x119fec,this[_0x18b696(0x40d)]);if(_0x24d018(_0x23d438)){const {c1Prime:_0x524f0e,m2Prime:_0x3e5516}=_0x23d438;this[_0x18b696(0x14c)](_0x524f0e);const _0x286bd9=this[_0x18b696(0x3ac)][_0x18b696(0x254)](Y,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],_0x3e5516,this['_handler']);return this[_0x18b696(0x29b)](),_0x286bd9[_0x18b696(0x25a)](this[_0x18b696(0x2b6)]?Math[_0x18b696(0x123)](0x0,new Date()[_0x18b696(0x237)]()-this[_0x18b696(0x2b6)]):this[_0x18b696(0x30c)]()),_0x286bd9;}throw _0x23d438['error'];}catch(_0x3cb6f4){return this[_0x18b696(0x2ec)][_0x18b696(0x30b)](_0x3cb6f4),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x97e133=_0x2e5b1c;throw new Error(_0x97e133(0x464));}['onRemoteRej'](){const _0x49be7d=_0x2e5b1c;throw new Error(_0x49be7d(0x1b9));}[_0x2e5b1c(0x3e5)](){const _0x1585f9=_0x2e5b1c;return this[_0x1585f9(0x29b)](),this['_injector'][_0x1585f9(0x254)](ee,this[_0x1585f9(0x3a4)],this['type'],null,this[_0x1585f9(0x40d)],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x25a)](_0x2db298){const _0x24c3bf=_0x2e5b1c,_0x1b6940=_0x2db298!=null?_0x2db298:this[_0x24c3bf(0x30c)]();this[_0x24c3bf(0x2b6)]=new Date()[_0x24c3bf(0x237)](),this['_sendingTimer']=window[_0x24c3bf(0x1f4)](()=>{const _0x1b614e=_0x24c3bf;this[_0x1b614e(0x29b)]();let _0x1cb5a0=null;switch(this['type']){case x[_0x1b614e(0x2c7)]:{_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this['_revisionService'],this[_0x1b614e(0x2a9)]);break;}case x['UNIVER_DOC']:{this[_0x1b614e(0x40d)][_0x1b614e(0x407)](_0x3556a8=>_0x3556a8['id']===_0xa592b4['id'])?_0x1cb5a0=lr(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]):_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]);break;}default:throw new Error(_0x1b614e(0x1c0)+this[_0x1b614e(0x255)]+_0x1b614e(0x43c));}const {changeset:_0x3cd71c,pendingMutations:_0xbba6b5}=_0x1cb5a0;this['_handler']['onSendChangeset'](_0x3cd71c);const _0x3c9e0a=_0xbba6b5[_0x1b614e(0x1bb)]?this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](K,this[_0x1b614e(0x3a4)],this['type'],_0x3cd71c,_0xbba6b5,this[_0x1b614e(0x1aa)]):this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](Z,this['unitID'],this[_0x1b614e(0x255)],_0x3cd71c,this[_0x1b614e(0x1aa)]);_0x3c9e0a[_0x1b614e(0x3c2)](),this[_0x1b614e(0x1aa)][_0x1b614e(0x2b4)](this,_0x3c9e0a);},_0x1b6940);}[_0x2e5b1c(0x30c)](){const _0x19ec82=_0x2e5b1c;var _0x11951f;return(_0x11951f=this[_0x19ec82(0x338)][_0x19ec82(0x142)](mn))!=null?_0x11951f:fn;}[_0x2e5b1c(0x3c9)](){const _0x1015d0=_0x2e5b1c;throw new Error(_0x1015d0(0x469));}[_0x2e5b1c(0x29b)](){const _0x4f11f0=_0x2e5b1c;this[_0x4f11f0(0x280)]!=null&&(clearTimeout(this[_0x4f11f0(0x280)]),this[_0x4f11f0(0x280)]=null);}[_0x2e5b1c(0x2d4)](_0x43cd34){const _0x5ca6ce=_0x2e5b1c;return this[_0x5ca6ce(0x29b)](),this[_0x5ca6ce(0x3ac)][_0x5ca6ce(0x254)](Q,this['unitID'],this[_0x5ca6ce(0x255)],null,this[_0x5ca6ce(0x40d)],this[_0x5ca6ce(0x1aa)],_0x43cd34);}};Y=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x5c7fae(oe)),f(0x8,_0x1cafe9),f(0x9,_0x36a317),f(0xa,_0x401b9d),f(0xb,_0x4e0f96),f(0xc,_0x30b2f2),f(0xd,_0x1bd332)],Y);let Z=class extends le{constructor(_0x110fd7,_0x3dc6e1,_0x88a27e,_0x58af86,_0x1ae97e,_0x4e1d5b,_0x59a675,_0x3d1cae,_0x2f4a5a,_0x5d1e4f,_0x707ee5){const _0x3d673f=_0x2e5b1c;super(_0x110fd7,_0x3dc6e1,_0x88a27e,[],_0x58af86,_0x3d1cae,_0x707ee5,_0x4e1d5b,_0x59a675),l(this,_0x3d673f(0x450),'awaiting'),(this[_0x3d673f(0x3ac)]=_0x1ae97e,this[_0x3d673f(0x2ec)]=_0x2f4a5a,this[_0x3d673f(0x3cf)]=_0x5d1e4f);}['appendMutation'](_0x2605ef){const _0x514906=_0x2e5b1c,_0x1f7161=this['_injector'][_0x514906(0x254)](K,this['unitID'],this[_0x514906(0x255)],this['_awaitingChangeset'],[_0x2605ef],this['_handler']);return _0x1f7161['_updateLocalCache'](),_0x1f7161;}[_0x2e5b1c(0x3ea)](_0x2cf0b0){const _0x42a294=_0x2e5b1c;if(this[_0x42a294(0x32a)](_0x2cf0b0))return this[_0x42a294(0x3ac)]['createInstance'](H,this[_0x42a294(0x3a4)],this['type'],this['_awaitingChangeset'],[],null,[_0x2cf0b0],this[_0x42a294(0x1aa)]);try{const _0x51eaa0=this[_0x42a294(0x3cf)][_0x42a294(0x1ad)]([_0x2cf0b0],[this[_0x42a294(0x448)]],!0x1);if(_0x71b04d(_0x51eaa0)){const {c1Prime:_0x180709,c2Prime:_0x2ddb6a}=_0x51eaa0;this[_0x42a294(0x14c)](_0x180709[0x0]),_0x2ddb6a[0x0][_0x42a294(0x24c)]=this['_getCurrentRevision']();const _0x28a64b=this[_0x42a294(0x3ac)]['createInstance'](Z,this[_0x42a294(0x3a4)],this[_0x42a294(0x255)],_0x2ddb6a[0x0],this[_0x42a294(0x1aa)]);return _0x28a64b[_0x42a294(0x3c2)](),_0x28a64b;}return this[_0x42a294(0x2d4)](!0x1);}catch(_0x3d92ff){return this[_0x42a294(0x2ec)][_0x42a294(0x30b)](_0x3d92ff),this[_0x42a294(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x2ae150){const _0x1f12ea=_0x2e5b1c,_0x592bbd=this[_0x1f12ea(0x26e)][_0x1f12ea(0x135)](this[_0x1f12ea(0x3a4)]);if(_0x2ae150[_0x1f12ea(0x28f)]<_0x592bbd-0x1)return this;if(this['_checkMissing'](_0x2ae150))return this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](H,this[_0x1f12ea(0x3a4)],this[_0x1f12ea(0x255)],null,[],this[_0x1f12ea(0x448)],[],this[_0x1f12ea(0x1aa)]);this[_0x1f12ea(0x21f)]();const _0x386bcb=this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](Se,this['unitID'],this[_0x1f12ea(0x255)],this[_0x1f12ea(0x1aa)]);return _0x386bcb[_0x1f12ea(0x3c2)](),_0x386bcb;}[_0x2e5b1c(0x3a2)](_0x2b6d20){const _0x8a149b=_0x2e5b1c;return this[_0x8a149b(0x2d4)](!!(_0x2b6d20!=null&&_0x2b6d20['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x2e2402=_0x2e5b1c;return this[_0x2e2402(0x3ac)][_0x2e2402(0x254)](ee,this[_0x2e2402(0x3a4)],this['type'],this[_0x2e2402(0x448)],[],this[_0x2e2402(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x5f5da4=_0x2e5b1c;this['_handler'][_0x5f5da4(0x164)](this[_0x5f5da4(0x448)]);}[_0x2e5b1c(0x2d4)](_0x59e666){const _0x5ab6c5=_0x2e5b1c;return this['_injector']['createInstance'](Q,this[_0x5ab6c5(0x3a4)],this[_0x5ab6c5(0x255)],this[_0x5ab6c5(0x448)],[],this['_handler'],_0x59e666);}};Z=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96),f(0xa,_0x1bd332)],Z);let K=class extends le{constructor(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x5dc348,_0x150079,_0x41387b,_0x1264d7,_0xe449c4,_0xf935fc,_0x269e1e){const _0x2e1594=_0x2e5b1c;super(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x1264d7,_0x269e1e,_0x150079,_0x41387b),l(this,_0x2e1594(0x450),_0x2e1594(0x15a)),(this[_0x2e1594(0x3ac)]=_0x5dc348,this[_0x2e1594(0x2ec)]=_0xe449c4,this[_0x2e1594(0x3cf)]=_0xf935fc);}[_0x2e5b1c(0x415)](_0x1c89f0){const _0x14a29e=_0x2e5b1c;return this[_0x14a29e(0x40d)]['push'](_0x1c89f0),this;}['onRemoteChangeset'](_0x2b8e8e){const _0x2e7985=_0x2e5b1c;if(this['_checkMissing'](_0x2b8e8e))return this[_0x2e7985(0x3ac)]['createInstance'](H,this[_0x2e7985(0x3a4)],this['type'],this[_0x2e7985(0x448)],this[_0x2e7985(0x40d)],null,[_0x2b8e8e],this[_0x2e7985(0x1aa)]);try{const _0x170f60=this[_0x2e7985(0x3cf)]['transformChangesets']([_0x2b8e8e],[this['_awaitingChangeset']],!0x1);if(_0x71b04d(_0x170f60)){const {c1Prime:_0xf7f405,c2Prime:_0x1f24a8}=_0x170f60,_0x1e1790=this[_0x2e7985(0x3cf)][_0x2e7985(0x389)](_0xf7f405[0x0],this[_0x2e7985(0x40d)]);if(_0x24d018(_0x1e1790)){const {c1Prime:_0x2f0021,m2Prime:_0x5000f5}=_0x1e1790;return this[_0x2e7985(0x14c)](_0x2f0021),_0x1f24a8[0x0][_0x2e7985(0x24c)]=this[_0x2e7985(0x156)](),this['_injector'][_0x2e7985(0x254)](K,this[_0x2e7985(0x3a4)],this[_0x2e7985(0x255)],_0x1f24a8[0x0],_0x5000f5,this[_0x2e7985(0x1aa)]);}throw _0x1e1790[_0x2e7985(0x30b)];}throw _0x170f60[_0x2e7985(0x30b)];}catch(_0x1a0f91){return this[_0x2e7985(0x2ec)][_0x2e7985(0x30b)](_0x1a0f91),this[_0x2e7985(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x336870){const _0x30a00a=_0x2e5b1c;if(this[_0x30a00a(0x32a)](_0x336870))return this[_0x30a00a(0x3ac)]['createInstance'](H,this[_0x30a00a(0x3a4)],this[_0x30a00a(0x255)],null,this[_0x30a00a(0x40d)],this[_0x30a00a(0x448)],[],this[_0x30a00a(0x1aa)]);this[_0x30a00a(0x21f)]();const _0x307ad3=this[_0x30a00a(0x3ac)][_0x30a00a(0x254)](Y,this[_0x30a00a(0x3a4)],this['type'],this[_0x30a00a(0x40d)],this['_handler']);return _0x307ad3[_0x30a00a(0x25a)](),_0x307ad3[_0x30a00a(0x3c2)](),_0x307ad3;}[_0x2e5b1c(0x3a2)](_0x1b099c){const _0x5ac9a0=_0x2e5b1c;return this[_0x5ac9a0(0x2d4)](!!(_0x1b099c!=null&&_0x1b099c['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x5573c8=_0x2e5b1c;return this[_0x5573c8(0x3ac)][_0x5573c8(0x254)](ee,this[_0x5573c8(0x3a4)],this['type'],this['_awaitingChangeset'],this[_0x5573c8(0x40d)],this[_0x5573c8(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x373c5d=_0x2e5b1c;this['_handler'][_0x373c5d(0x164)](this[_0x373c5d(0x448)]);}[_0x2e5b1c(0x2d4)](_0x562f55){const _0x5f579e=_0x2e5b1c;return this[_0x5f579e(0x3ac)][_0x5f579e(0x254)](Q,this[_0x5f579e(0x3a4)],this['type'],null,this[_0x5f579e(0x40d)],this[_0x5f579e(0x1aa)],_0x562f55);}};K=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1cafe9),f(0xa,_0x4e0f96),f(0xb,_0x1bd332)],K);let Q=class extends le{constructor(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0xa73078=!0x1,_0x5962e8,_0x4b6a9b,_0x26f9fc,_0x40ae86,_0x295e8e,_0x43cabb,_0x3949f6){const _0x48bcad=_0x2e5b1c;super(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0x4b6a9b,_0x26f9fc,_0x295e8e,_0x40ae86),l(this,_0x48bcad(0x450),_0x48bcad(0x211)),(this['_isPermissionRej']=_0xa73078,this[_0x48bcad(0x292)]=_0x5962e8,this['_localeService']=_0x43cabb,this[_0x48bcad(0x3ed)]=_0x3949f6,this[_0x48bcad(0x1a6)](),this[_0x48bcad(0x321)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2e5b1c(0x3ea)](){return this;}['onRemoteAck'](){return this;}[_0x2e5b1c(0x3a2)](){return this;}[_0x2e5b1c(0x3e5)](){return this;}[_0x2e5b1c(0x405)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2e5b1c(0x321)](){const _0x33395c=_0x2e5b1c;this[_0x33395c(0x170)][_0x33395c(0x336)](this['unitID'],this[_0x33395c(0x255)],null,[]);}['_showConflictNotification'](){const _0x5428b1=_0x2e5b1c;this[_0x5428b1(0x238)]?this[_0x5428b1(0x3ed)][_0x5428b1(0x367)]({'title':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x228)),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x157)),'type':_0x5428b1(0x30b),'duration':0x0}):this[_0x5428b1(0x3ed)]['show']({'title':this[_0x5428b1(0x452)]['t']('conflict.title'),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x24e)),'type':_0x5428b1(0x30b),'duration':0x0});}[_0x2e5b1c(0x482)](){const _0x234539=_0x2e5b1c;this[_0x234539(0x292)][_0x234539(0x143)](new _0x477da8(this[_0x234539(0x3a4)])['id'],!0x1);}};Q=he([f(0x6,_0x5c7fae(_0x241366)),f(0x7,_0x36a317),f(0x8,_0x1bd332),f(0x9,_0x5c7fae(D)),f(0xa,_0x5c7fae(_0x4ceeac)),f(0xb,_0x5c7fae(_0x12e5b3)),f(0xc,_0x4c821a)],Q);let ee=class extends le{constructor(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x56fb81,_0x485832,_0x1f60de,_0x4f184b,_0x24ed40){const _0x388e43=_0x2e5b1c;super(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x4f184b,_0x24ed40,_0x485832,_0x1f60de),l(this,_0x388e43(0x450),_0x388e43(0x3e4)),this[_0x388e43(0x3ac)]=_0x56fb81;}[_0x2e5b1c(0x415)](_0x3b692b){const _0x59c97e=_0x2e5b1c;return this['_pendingMutations']['push'](_0x3b692b),this[_0x59c97e(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x246091){const _0x29c499=_0x2e5b1c;throw new Error(_0x29c499(0x3b0));}[_0x2e5b1c(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x5cbcf7=_0x2e5b1c;throw new Error(_0x5cbcf7(0x3d6));}[_0x2e5b1c(0x3e5)](){return this;}['toggleOnline'](){const _0x42b5a3=_0x2e5b1c,{_injector:_0x64d0df,_pendingMutations:_0x3d9dda,_awaitingChangeset:_0x16e5c6,unitID:_0x53655b,_handler:_0x5c9d1f,type:_0xd6243c}=this,_0x6fc97e=xs(_0x64d0df,_0x53655b,_0xd6243c,_0x16e5c6,_0x3d9dda,_0x5c9d1f);return _0x6fc97e instanceof Y?_0x6fc97e['_schedule']():(_0x6fc97e instanceof K||_0x6fc97e instanceof Z)&&_0x6fc97e[_0x42b5a3(0x3c9)](),_0x6fc97e;}[_0x2e5b1c(0x3c9)](){const _0x8fb485=_0x2e5b1c;throw new Error(_0x8fb485(0x37c));}};ee=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1bd332)],ee);let H=class extends le{constructor(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x2f5b7b,_0x1ea360,_0x4d9d89,_0xfecf,_0x6f1f03,_0x18a50d,_0x1281a4,_0x10fb2b,_0x1a7cf2,_0x212ade){const _0x1ef056=_0x2e5b1c;super(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x4d9d89,_0x10fb2b,_0x1a7cf2,_0x6f1f03,_0x18a50d),l(this,_0x1ef056(0x450),_0x1ef056(0x251)),(this[_0x1ef056(0x14d)]=_0x2f5b7b,this[_0x1ef056(0x1e4)]=_0x1ea360,this[_0x1ef056(0x3ac)]=_0xfecf,this['_logService']=_0x1281a4,this[_0x1ef056(0x3cf)]=_0x212ade);}[_0x2e5b1c(0x33f)](_0x464958){const _0x29994a=_0x2e5b1c;try{const _0x39c7f1=[..._0x464958,...this[_0x29994a(0x1e4)]],_0x5956ed=[this[_0x29994a(0x448)]||this[_0x29994a(0x14d)]][_0x29994a(0x133)](_0xfe5af9=>!!_0xfe5af9);let _0x190c92,_0x3f4b11;if(_0x5956ed[_0x29994a(0x1bb)]){const _0x9ce593=this[_0x29994a(0x3cf)][_0x29994a(0x1ad)](_0x39c7f1,_0x5956ed,!0x1);if(!_0x71b04d(_0x9ce593))throw _0x9ce593[_0x29994a(0x30b)];_0x190c92=_0x9ce593[_0x29994a(0x145)],_0x3f4b11=_0x9ce593['c2Prime'];}else _0x190c92=_0x39c7f1,_0x3f4b11=[];let _0x3a68a5=this[_0x29994a(0x40d)];_0x190c92[_0x29994a(0x1cd)](_0x343bb2=>{const _0x4f3f2b=_0x29994a;let _0x4b13dd;if(_0x3a68a5[_0x4f3f2b(0x1bb)]){const _0x4f1c16=this['_transformService']['transformMutationsWithChangeset'](_0x343bb2,_0x3a68a5);if(!_0x24d018(_0x4f1c16))throw _0x4f1c16[_0x4f3f2b(0x30b)];_0x4b13dd=_0x4f1c16['c1Prime'],_0x3a68a5=_0x4f1c16[_0x4f3f2b(0x366)];}else _0x4b13dd=_0x343bb2;this[_0x4f3f2b(0x14c)](_0x4b13dd);}),this[_0x29994a(0x14d)]&&this[_0x29994a(0x21f)](),this[_0x29994a(0x448)]&&_0x3f4b11['length']&&(_0x3f4b11[0x0]['baseRev']=this[_0x29994a(0x156)]());let _0x1226a9;if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]!==0x0)_0x1226a9=this['_injector'][_0x29994a(0x254)](K,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],_0x3a68a5,this[_0x29994a(0x1aa)]);else{if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]===0x0)_0x3f4b11[0x0][_0x29994a(0x24c)]=this['_getCurrentRevision'](),_0x1226a9=this[_0x29994a(0x3ac)][_0x29994a(0x254)](Z,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],this[_0x29994a(0x1aa)]);else{if(_0x3a68a5[_0x29994a(0x1bb)]!==0x0){const _0xe25d59=this[_0x29994a(0x3ac)]['createInstance'](Y,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3a68a5,this['_handler']);_0xe25d59[_0x29994a(0x25a)](),_0x1226a9=_0xe25d59;}else _0x1226a9=this[_0x29994a(0x3ac)]['createInstance'](Se,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this['_handler']);}}return _0x1226a9[_0x29994a(0x3c2)](),_0x1226a9;}catch(_0x3c605f){return this[_0x29994a(0x2ec)][_0x29994a(0x30b)](_0x29994a(0x3a8),_0x29994a(0x132),_0x3c605f),this[_0x29994a(0x3ac)][_0x29994a(0x254)](Q,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this[_0x29994a(0x448)],this[_0x29994a(0x40d)],this[_0x29994a(0x1aa)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3bc73e){const _0x10482a=_0x2e5b1c;return this[_0x10482a(0x40d)]['push'](_0x3bc73e),this;}[_0x2e5b1c(0x3ea)](_0x579baa){const _0x5d3d05=_0x2e5b1c;return this[_0x5d3d05(0x1e4)][_0x5d3d05(0x2f1)](_0x579baa),this;}[_0x2e5b1c(0x2bd)](_0x3dd767){const _0x1b394f=_0x2e5b1c;if(this[_0x1b394f(0x448)])return this[_0x1b394f(0x14d)]=this[_0x1b394f(0x448)],this[_0x1b394f(0x448)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2e5b1c(0x3a2)](_0x54c51e){const _0x5cfdb2=_0x2e5b1c;return this[_0x5cfdb2(0x2d4)](!!(_0x54c51e!=null&&_0x54c51e[_0x5cfdb2(0x44c)]));}[_0x2e5b1c(0x3e5)](){const _0x44a3d6=_0x2e5b1c;return this[_0x44a3d6(0x3ac)][_0x44a3d6(0x254)](ee,this['unitID'],this[_0x44a3d6(0x255)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x2d4)](_0x3fa06d){const _0x160052=_0x2e5b1c;return this[_0x160052(0x3ac)]['createInstance'](Q,this['unitID'],this['type'],this[_0x160052(0x448)],this[_0x160052(0x40d)],this[_0x160052(0x1aa)],_0x3fa06d);}};H=he([f(0x7,_0x5c7fae(_0x5d259e)),f(0x8,_0x5c7fae(_0x4ceeac)),f(0x9,_0x5c7fae(D)),f(0xa,_0x1cafe9),f(0xb,_0x36a317),f(0xc,_0x1bd332),f(0xd,_0x4e0f96)],H);function xs(_0x492be6,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab){const _0x5656ba=_0x2e5b1c;return _0x146561&&_0x27f482[_0x5656ba(0x1bb)]?_0x492be6[_0x5656ba(0x254)](K,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab):_0x146561?_0x492be6['createInstance'](Z,_0x4d0c17,_0xe5ea13,_0x146561,_0x2320ab):_0x27f482[_0x5656ba(0x1bb)]?_0x492be6['createInstance'](Y,_0x4d0c17,_0xe5ea13,_0x27f482,_0x2320ab):_0x492be6['createInstance'](Se,_0x4d0c17,_0xe5ea13,_0x2320ab);}var mr=Object[_0x2e5b1c(0x2de)],fr=Object[_0x2e5b1c(0x41c)],Vt=(_0x4b95ae,_0x5cd61a,_0x46ad03,_0x1ba848)=>{const _0x5347b4=_0x2e5b1c;for(var _0x1e1bce=_0x1ba848>0x1?void 0x0:_0x1ba848?fr(_0x5cd61a,_0x46ad03):_0x5cd61a,_0x4688ed=_0x4b95ae[_0x5347b4(0x1bb)]-0x1,_0xc89367;_0x4688ed>=0x0;_0x4688ed--)(_0xc89367=_0x4b95ae[_0x4688ed])&&(_0x1e1bce=(_0x1ba848?_0xc89367(_0x5cd61a,_0x46ad03,_0x1e1bce):_0xc89367(_0x1e1bce))||_0x1e1bce);return _0x1ba848&&_0x1e1bce&&mr(_0x5cd61a,_0x46ad03,_0x1e1bce),_0x1e1bce;},p=(_0x2cfeda,_0xc069a4)=>(_0x547613,_0x532b22)=>_0xc069a4(_0x547613,_0x532b22,_0x2cfeda);let tt=class extends _0x4bff65{constructor(_0x369707,_0x46cd31,_0x336f35,_0x194575,_0x561b12,_0x18171c,_0x4a0276,_0x14fb1b,_0x601a27,_0xfbd1d6,_0x18ef88,_0x888358,_0x4364c7){const _0x104206=_0x2e5b1c;super(),l(this,_0x104206(0x3ec),new _0x16e81a(null)),l(this,_0x104206(0x3a7),this['_state$'][_0x104206(0x2f8)]()),l(this,_0x104206(0x219)),l(this,_0x104206(0x1d4),!0x1),l(this,_0x104206(0x281),this['state$']['pipe'](_0x464900(_0x4195b2=>_0x4195b2?_0x4195b2[_0x104206(0x450)]:w[_0x104206(0x1ac)]),_0x1aec94(0x1))),l(this,_0x104206(0x2c4),!0x1),l(this,_0x104206(0x40b),[]),(this[_0x104206(0x3a4)]=_0x369707,this[_0x104206(0x2c6)]=_0x46cd31,this[_0x104206(0x165)]=_0x336f35,this[_0x104206(0x3ac)]=_0x194575,this['_localCacheService']=_0x561b12,this[_0x104206(0x1b5)]=_0x18171c,this[_0x104206(0x452)]=_0x4a0276,this[_0x104206(0x26e)]=_0x14fb1b,this[_0x104206(0x2ec)]=_0x601a27,this[_0x104206(0x1bd)]=_0xfbd1d6,this[_0x104206(0x396)]=_0x18ef88,this[_0x104206(0x292)]=_0x888358,this[_0x104206(0x1ca)]=_0x4364c7);}get['state'](){return this['_state'];}async[_0x2e5b1c(0x124)](){const _0x1b7d84=_0x2e5b1c;if(this['state'])throw new Error(_0x1b7d84(0x144));await this[_0x1b7d84(0x42f)]();}[_0x2e5b1c(0x2d1)](){return this['_collaborationPaused']=!0x0,_0x29a7b(()=>{const _0x123399=_0x5851;this[_0x123399(0x1d4)]=!0x1,this[_0x123399(0x301)]();});}[_0x2e5b1c(0x252)](_0x1979a4){const _0x56ac7c=_0x2e5b1c;this[_0x56ac7c(0x219)]=_0x1979a4,this[_0x56ac7c(0x3ec)][_0x56ac7c(0x244)](_0x1979a4);}async[_0x2e5b1c(0x42f)](){const _0x321ba8=_0x2e5b1c;var _0x1edee0;this[_0x321ba8(0x252)](await this['_createInitialState']()),this[_0x321ba8(0x1ca)]&&((_0x1edee0=this[_0x321ba8(0x1ca)])==null||_0x1edee0['editingUnit'](this['unitID']),this[_0x321ba8(0x294)](this[_0x321ba8(0x1ca)]['getUnitStatus$'](this[_0x321ba8(0x3a4)])['subscribe'](_0x3513eb=>{const _0x3d463a=_0x321ba8;this[_0x3d463a(0x2ec)][_0x3d463a(0x166)](_0x3d463a(0x458),_0x3d463a(0x263),_0x3513eb),_0x3513eb===$s['OTHER_CLIENTS_EDITING']?(this[_0x3d463a(0x396)][_0x3d463a(0x367)]({'content':this[_0x3d463a(0x452)]['t'](_0x3d463a(0x268)),'type':_0x68ddaa[_0x3d463a(0x425)]}),this[_0x3d463a(0x292)][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x1)):this['_permissionService'][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x0);})));let _0x1ccf2d=!0x1;return this['disposeWithMe'](this[_0x321ba8(0x2c6)][_0x321ba8(0x34d)][_0x321ba8(0x3c4)](_0x1c20b0=>{const _0x1a8633=_0x321ba8;_0x1c20b0===W[_0x1a8633(0x13f)]?this[_0x1a8633(0x369)](_0x1ccf2d):_0x1c20b0===W[_0x1a8633(0x1ac)]&&(_0x1ccf2d=!0x0,this['_toggleOffline']());})),this[_0x321ba8(0x294)](this[_0x321ba8(0x2c6)][_0x321ba8(0x372)][_0x321ba8(0x3c4)](_0x1e0a29=>{const _0x427905=_0x321ba8;try{switch(_0x1e0a29[_0x427905(0x2f6)]){case _0x410792[_0x427905(0x2df)]:{this[_0x427905(0x435)](_0x3b19c3(_0x1e0a29[_0x427905(0x249)]));break;}case _0x410792['CHANGESET_ACK']:{this[_0x427905(0x232)](_0x1e0a29['data']);break;}case _0x410792[_0x427905(0x38b)]:{this[_0x427905(0x2ef)]();break;}case _0x410792[_0x427905(0x3f8)]:{this[_0x427905(0x2b3)](_0x1e0a29[_0x427905(0x249)]['changesets'][_0x427905(0x1c7)](_0x35f938=>_0x3b19c3(_0x35f938)));break;}case _0x410792[_0x427905(0x459)]:this[_0x427905(0x2ef)]({'isPermissionRej':!0x0});}}catch(_0x34846d){throw console['error'](_0x427905(0x21d),_0x34846d),_0x34846d;}})),this[_0x321ba8(0x219)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x2e5b1c(0x30d)](){const _0x580c59=_0x2e5b1c;if(this[_0x580c59(0x2c4)])throw new Error(_0x580c59(0x37b));this[_0x580c59(0x2c4)]=!0x0;}[_0x2e5b1c(0x383)](_0x5147a6){const _0x18798d=_0x2e5b1c;this['_lockTransition'](),this[_0x18798d(0x252)](this[_0x18798d(0x219)][_0x18798d(0x415)](_0x5147a6)),this['_unlockTransition']();}[_0x2e5b1c(0x435)](_0x5dee92){const _0x1dc887=_0x2e5b1c;if(!(_0x5dee92[_0x1dc887(0x28f)]<=this[_0x1dc887(0x26e)][_0x1dc887(0x135)](this[_0x1dc887(0x3a4)]))){if(this['_collaborationPaused']){this[_0x1dc887(0x40b)][_0x1dc887(0x2f1)](_0x5dee92);return;}this[_0x1dc887(0x258)](_0x5dee92);}}[_0x2e5b1c(0x301)](){const _0xc7a68e=_0x2e5b1c;this['_remoteChangesetQueue'][_0xc7a68e(0x1cd)](_0x151fb7=>this[_0xc7a68e(0x258)](_0x151fb7)),this['_remoteChangesetQueue']=[];}[_0x2e5b1c(0x258)](_0x4ba80f){const _0x2495c8=_0x2e5b1c,_0x41b5d1=this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x32b)](this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x47a)]()['COMPRESS_MUTATION_APPLY'])(_0x4ba80f[_0x2495c8(0x225)],null)||_0x4ba80f[_0x2495c8(0x225)],_0x2e9c16={..._0x4ba80f,'mutations':_0x41b5d1};this['_lockTransition'](),this[_0x2495c8(0x252)](this[_0x2495c8(0x219)][_0x2495c8(0x3ea)](_0x2e9c16)),this[_0x2495c8(0x204)]();}[_0x2e5b1c(0x232)](_0x1e0620){const _0x569302=_0x2e5b1c;this['_lockTransition'](),this[_0x569302(0x252)](this[_0x569302(0x219)][_0x569302(0x2bd)](_0x1e0620)),this['_unlockTransition']();}[_0x2e5b1c(0x2ef)](_0x351753){const _0x34a206=_0x2e5b1c;this[_0x34a206(0x30d)](),this[_0x34a206(0x252)](this['_state'][_0x34a206(0x3a2)](_0x351753)),this[_0x34a206(0x204)]();}[_0x2e5b1c(0x2b3)](_0x2652a1){const _0x102ff3=_0x2e5b1c;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4d1854=_0x2652a1[_0x102ff3(0x1c7)](_0x529866=>{const _0xc10b60=_0x102ff3,_0x3cc1a2=this[_0xc10b60(0x1b5)][_0xc10b60(0x12e)][_0xc10b60(0x32b)](this[_0xc10b60(0x1b5)]['interceptor']['getInterceptPoints']()[_0xc10b60(0x328)])(_0x529866[_0xc10b60(0x225)],null)||_0x529866[_0xc10b60(0x225)];return{..._0x529866,'mutations':_0x3cc1a2};});this[_0x102ff3(0x30d)](),this[_0x102ff3(0x252)](this['_state'][_0x102ff3(0x33f)](_0x4d1854)),this['_unlockTransition']();}[_0x2e5b1c(0x3ce)](){const _0x1fb1a2=_0x2e5b1c;this[_0x1fb1a2(0x30d)](),this[_0x1fb1a2(0x252)](this['_state'][_0x1fb1a2(0x3e5)]()),this[_0x1fb1a2(0x204)]();}[_0x2e5b1c(0x369)](_0x3c7eb7=!0x1){const _0x357dab=_0x2e5b1c;this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](this[_0x357dab(0x219)][_0x357dab(0x405)]()),this[_0x357dab(0x204)]();const _0x255237=this[_0x357dab(0x219)];_0x3c7eb7&&_0x255237 instanceof Se&&(this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](_0x255237[_0x357dab(0x353)]()),this[_0x357dab(0x204)]());}async['_createInitialState'](){return new Promise(_0x20cf34=>{const _0x36bbc5=_0x5851;this[_0x36bbc5(0x2c6)][_0x36bbc5(0x34d)][_0x36bbc5(0x195)](_0x219c0a(0x1))[_0x36bbc5(0x3c4)](async _0x513645=>{const _0x47b9a4=_0x36bbc5;_0x20cf34(await this['_createInitialStateImpl'](_0x513645===W[_0x47b9a4(0x13f)]));});});}['_createHandler'](){const _0x450f58=_0x2e5b1c,_0xd6b647=this[_0x450f58(0x3a4)];return{'onStateChange':(_0x36f2c1,_0x256049)=>{const _0x33b52c=_0x450f58;if(_0x36f2c1!==this[_0x33b52c(0x219)])throw new Error(_0x33b52c(0x1b0)+_0x36f2c1[_0x33b52c(0x450)]+_0x33b52c(0x1fd)+_0x256049[_0x33b52c(0x450)]+_0x33b52c(0x42e)+this['_state']['status']);this['_updateState'](_0x256049);},'onSendChangeset':_0xfdc7e9=>{const _0x454e0c=_0x450f58,_0x29ee31={'eventID':_0x410792[_0x454e0c(0x34b)],'data':{'unitID':_0xfdc7e9[_0x454e0c(0x3a4)],'unitType':this['_type'],'changeset':_0xfdc7e9,'memberID':this[_0x454e0c(0x2c6)][_0x454e0c(0x146)]()}};this['session'][_0x454e0c(0x1ef)](_0x29ee31,this[_0x454e0c(0x3a4)]);},'onMissingChangesets':({from:_0x13ddf2,to:_0x3232de})=>{const _0x301d34=_0x450f58;this['_logService'][_0x301d34(0x166)](_0x301d34(0x458),_0x301d34(0x31b)+_0x13ddf2+_0x301d34(0x45a)+_0x3232de);const _0x414327={'eventID':_0x410792[_0x301d34(0x1b3)],'data':{'unitID':_0xd6b647,'unitType':this[_0x301d34(0x165)],'from':_0x13ddf2,'to':_0x3232de}};this[_0x301d34(0x2c6)][_0x301d34(0x1ef)](_0x414327,this[_0x301d34(0x3a4)]);}};}async[_0x2e5b1c(0x29c)](_0x1cc7ef){const _0x5e9c0c=_0x2e5b1c;var _0x334c5c,_0x323c80;const _0xe9b210=await this[_0x5e9c0c(0x170)][_0x5e9c0c(0x1cb)](this[_0x5e9c0c(0x3a4)]),_0x11bca6=(_0x334c5c=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x225)])!=null?_0x334c5c:[],_0x13b5d1=(_0x323c80=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x35c)])!=null?_0x323c80:null,_0x5bd8d3=this[_0x5e9c0c(0x3a4)];try{this['_replayCachedMutations'](_0x13b5d1,_0x11bca6);}catch(_0x1829ac){this[_0x5e9c0c(0x2ec)][_0x5e9c0c(0x30b)](_0x1829ac);}const _0x3e957c=this[_0x5e9c0c(0x1da)]();if(_0x1cc7ef){const _0xf9eb40=xs(this[_0x5e9c0c(0x3ac)],_0x5bd8d3,this[_0x5e9c0c(0x165)],_0x13b5d1,_0x11bca6,_0x3e957c);return _0xf9eb40 instanceof Y?_0xf9eb40[_0x5e9c0c(0x25a)]():(_0xf9eb40 instanceof K||_0xf9eb40 instanceof Z)&&_0xf9eb40[_0x5e9c0c(0x3c9)](),_0xf9eb40;}return this[_0x5e9c0c(0x3ac)]['createInstance'](ee,_0x5bd8d3,this['_type'],_0x13b5d1,_0x11bca6,_0x3e957c);}[_0x2e5b1c(0x44d)](_0x24ace6,_0x1bd951){const _0x464916=_0x2e5b1c;var _0x19edf7,_0x2e95eb;const _0x8cc548=this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x32b)](this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x47a)]()[_0x464916(0x328)]);(_0x19edf7=_0x8cc548((_0x24ace6==null?void 0x0:_0x24ace6['mutations'])||[],null))==null||_0x19edf7[_0x464916(0x1cd)](_0x16c50e=>this[_0x464916(0x1bd)]['executeCommand'](_0x16c50e['id'],_0x16c50e[_0x464916(0x27b)])),(_0x2e95eb=_0x8cc548(_0x1bd951||[],null))==null||_0x2e95eb[_0x464916(0x1cd)](_0x43c1f4=>this[_0x464916(0x1bd)][_0x464916(0x335)](_0x43c1f4['id'],_0x43c1f4['params']));}};tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x1cafe9),p(0x9,_0x36a317),p(0xa,_0x29e945),p(0xb,_0x241366),p(0xc,_0x5723b6(it))],tt);let Tt=class extends tt{constructor(_0x266eab,_0x48a92c,_0x4dbbbb,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x25be67,_0x1bae9d,_0x5f0a56,_0x1827ef,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92){const _0x38db37=_0x2e5b1c;super(_0x266eab,_0x4dbbbb,_0x48a92c,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92),this['unitID']=_0x266eab,this[_0x38db37(0x255)]=_0x48a92c,this['_docStateChangeManagerService']=_0x25be67,this[_0x38db37(0x2cf)]=_0x1bae9d,this[_0x38db37(0x291)]=_0x5f0a56,this[_0x38db37(0x490)]=_0x1827ef;}['_createHandler'](){const _0x544025=_0x2e5b1c,_0x3c5344=super[_0x544025(0x1da)]();return _0x3c5344[_0x544025(0x320)]=_0x2616b1=>this['_docTransformIMECacheService'][_0x544025(0x272)](_0x2616b1),_0x3c5344[_0x544025(0x3d4)]=_0x41bd23=>this[_0x544025(0x291)][_0x544025(0x326)](_0x41bd23),_0x3c5344['onSyncEditingCollabCursor']=_0x14e1cf=>this[_0x544025(0x490)]['syncEditingCollabCursor'](_0x14e1cf),_0x3c5344[_0x544025(0x158)]=_0xcb1e39=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0xcb1e39),_0x3c5344;}async['_init'](){const _0x431bbb=_0x2e5b1c,_0x3c2868=await super[_0x431bbb(0x42f)]();return this[_0x431bbb(0x294)](this[_0x431bbb(0x1bd)][_0x431bbb(0x20e)]((_0x306b2b,_0x482ff6)=>{const _0x275b4a=_0x431bbb;if(_0x306b2b[_0x275b4a(0x255)]!==_0x32e0b0[_0x275b4a(0x368)]||_0x482ff6!=null&&_0x482ff6['fromCollab']||_0x482ff6!=null&&_0x482ff6[_0x275b4a(0x270)])return;const _0x4d3fbe=_0x306b2b['params'];if((_0x4d3fbe==null?void 0x0:_0x4d3fbe['unitId'])!==this[_0x275b4a(0x3a4)])return;let _0x5e12bd=_0x306b2b;if(_0x5e12bd['id']===_0xa592b4['id']){const _0x19cdce=_0x5e12bd['params'];_0x5e12bd={'id':_0xa592b4['id'],'type':_0x32e0b0[_0x275b4a(0x368)],'params':{'unitId':_0x19cdce[_0x275b4a(0x275)],'actions':_0x19cdce[_0x275b4a(0x1ba)],'textRanges':null}};}const _0x4d84ab=this[_0x275b4a(0x1b5)][_0x275b4a(0x12e)][_0x275b4a(0x32b)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5e12bd],null)||[_0x5e12bd];this['_onLocalMutation'](_0x4d84ab[0x0]);})),_0x3c2868;}};Tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(_0x34634f)),p(0x9,_0x5c7fae(Ze)),p(0xa,_0x5c7fae(et)),p(0xb,_0x5c7fae(Bt)),p(0xc,_0x1cafe9),p(0xd,_0x36a317),p(0xe,_0x29e945),p(0xf,_0x241366),p(0x10,_0x5723b6(it))],Tt);let Rt=class extends tt{constructor(_0x262f80,_0x335104,_0x2acc1c,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x31b383,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7){const _0x3f398e=_0x2e5b1c;super(_0x262f80,_0x2acc1c,_0x335104,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7),this[_0x3f398e(0x3a4)]=_0x262f80,this[_0x3f398e(0x255)]=_0x335104,this[_0x3f398e(0x331)]=_0x31b383;}[_0x2e5b1c(0x1da)](){const _0x9dce1a=_0x2e5b1c,_0x54f89f=super[_0x9dce1a(0x1da)]();return _0x54f89f[_0x9dce1a(0x3d4)]=_0x3b846c=>this[_0x9dce1a(0x331)]['transformSelections'](_0x3b846c),_0x54f89f;}async[_0x2e5b1c(0x42f)](){const _0x4e699b=_0x2e5b1c,_0x2cdef6=await super[_0x4e699b(0x42f)]();return this[_0x4e699b(0x294)](this[_0x4e699b(0x1bd)]['onCommandExecuted']((_0x4a4950,_0x3b27a5)=>{const _0x4939c6=_0x4e699b;if(_0x4a4950[_0x4939c6(0x255)]!==_0x32e0b0[_0x4939c6(0x368)]||_0x3b27a5!=null&&_0x3b27a5['fromCollab']||_0x3b27a5!=null&&_0x3b27a5[_0x4939c6(0x270)])return;const _0x36f258=_0x4a4950['params'];if((_0x36f258==null?void 0x0:_0x36f258[_0x4939c6(0x275)])!==this['unitID'])return;const _0x947d24=_0x4a4950,_0x1f4749=this['_compressMutationService'][_0x4939c6(0x12e)][_0x4939c6(0x32b)](this['_compressMutationService']['interceptor'][_0x4939c6(0x47a)]()[_0x4939c6(0x2b7)])([_0x947d24],null)||[_0x947d24];this[_0x4939c6(0x383)](_0x1f4749[0x0]);})),_0x2cdef6;}};Rt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(Qe)),p(0x9,_0x1cafe9),p(0xa,_0x36a317),p(0xb,_0x29e945),p(0xc,_0x241366),p(0xd,_0x5723b6(it))],Rt);var gr=Object['defineProperty'],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x282f42,_0x443ff8,_0x1932e3,_0x5eebd7)=>{const _0x2af0f6=_0x2e5b1c;for(var _0x368c1e=_0x5eebd7>0x1?void 0x0:_0x5eebd7?Sr(_0x443ff8,_0x1932e3):_0x443ff8,_0x533ef5=_0x282f42[_0x2af0f6(0x1bb)]-0x1,_0x51d5a3;_0x533ef5>=0x0;_0x533ef5--)(_0x51d5a3=_0x282f42[_0x533ef5])&&(_0x368c1e=(_0x5eebd7?_0x51d5a3(_0x443ff8,_0x1932e3,_0x368c1e):_0x51d5a3(_0x368c1e))||_0x368c1e);return _0x5eebd7&&_0x368c1e&&gr(_0x443ff8,_0x1932e3,_0x368c1e),_0x368c1e;},_t=(_0x2690b1,_0x398886)=>(_0x543e75,_0x175b03)=>_0x398886(_0x543e75,_0x175b03,_0x2690b1);let Ae=class extends _0x4bff65{constructor(_0x328662,_0x4ba954,_0x540a3e){const _0x2f77b3=_0x2e5b1c;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x47a81b()),(this[_0x2f77b3(0x3ac)]=_0x328662,this[_0x2f77b3(0x3f1)]=_0x4ba954,this[_0x2f77b3(0x1ae)]=_0x540a3e,this[_0x2f77b3(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x4da6a5=_0x2e5b1c;super[_0x4da6a5(0x2fe)](),this['_entities'][_0x4da6a5(0x1cd)](_0x15f317=>_0x15f317[_0x4da6a5(0x2fe)]()),this[_0x4da6a5(0x36c)]['clear']();}[_0x2e5b1c(0x350)](_0x16a76d){const _0x217514=_0x2e5b1c;var _0x37c0c2;return(_0x37c0c2=this[_0x217514(0x36c)][_0x217514(0x18f)](_0x16a76d))!=null?_0x37c0c2:null;}['getCollabEntity$'](_0x1c4ee2){const _0x3c4bed=_0x2e5b1c,_0x121c39=this[_0x3c4bed(0x350)](_0x1c4ee2);return _0x121c39?_0x8d55e(_0x121c39):this[_0x3c4bed(0x394)][_0x3c4bed(0x195)](_0x48e324(_0x2d5d87=>_0x2d5d87[_0x3c4bed(0x3a4)]===_0x1c4ee2));}['_init'](){const _0x25af9b=_0x2e5b1c;this[_0x25af9b(0x1ae)][_0x25af9b(0x1a4)](_0x3bf0d9['UNIVER_SHEET'])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))[_0x25af9b(0x3c4)](async _0x28300a=>{const _0x19dbaa=_0x25af9b,_0x2be540=_0x28300a[_0x19dbaa(0x426)](),_0x5d3151=await this[_0x19dbaa(0x2ac)](_0x2be540,x['UNIVER_SHEET']);this[_0x19dbaa(0x36c)]['set'](_0x2be540,_0x5d3151);}),this[_0x25af9b(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9[_0x25af9b(0x1de)])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))['pipe'](_0x48e324(_0x11a829=>!_0x11a829[_0x25af9b(0x426)]()[_0x25af9b(0x1e5)]('__')))[_0x25af9b(0x3c4)](async _0xb2b8c3=>{const _0x18a3a9=_0x25af9b,_0x51577e=_0xb2b8c3[_0x18a3a9(0x426)](),_0xc5ef93=await this['_startCollaboration'](_0x51577e,x[_0x18a3a9(0x1de)]);this[_0x18a3a9(0x36c)][_0x18a3a9(0x1e1)](_0x51577e,_0xc5ef93);}),_0x9334d7(this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9[_0x25af9b(0x2c7)]),this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9['UNIVER_DOC']))['pipe'](_0x2123e0(this['dispose$']))['subscribe'](_0x1be065=>{const _0x41c62f=_0x25af9b,_0x5ddeba=_0x1be065['getUnitId'](),_0x57baa1=this[_0x41c62f(0x36c)]['get'](_0x5ddeba);_0x57baa1&&(_0x57baa1[_0x41c62f(0x2fe)](),this[_0x41c62f(0x36c)][_0x41c62f(0x18d)](_0x5ddeba));});}async[_0x2e5b1c(0x2ac)](_0x136772,_0xeae53){const _0x31a250=_0x2e5b1c,_0x3cca57=await this[_0x31a250(0x3f1)][_0x31a250(0x205)](_0x136772),_0x3467fb=this[_0x31a250(0x3ac)][_0x31a250(0x254)](this['_getCtorByUniverType'](_0xeae53),_0x136772,_0xeae53,_0x3cca57);return await _0x3467fb['init'](),this['_entityInit$'][_0x31a250(0x244)](_0x3467fb),_0x3467fb;}['_getCtorByUniverType'](_0xfc2989){const _0x3c98b5=_0x2e5b1c;switch(_0xfc2989){case x['UNIVER_DOC']:return Tt;case x[_0x3c98b5(0x2c7)]:return Rt;default:throw new Error(_0x3c98b5(0x451)+_0xfc2989);}}};Ae=pr([_t(0x0,_0x5c7fae(_0x5d259e)),_t(0x1,_0x5c7fae(ae)),_t(0x2,_0x30b2f2)],Ae);const ls=['purple300',_0x2e5b1c(0x380),_0x2e5b1c(0x465),_0x2e5b1c(0x358),'blue400',_0x2e5b1c(0x420)];class Ft extends _0x36403b{constructor(){const _0x2bfa68=_0x2e5b1c;super(...arguments),l(this,_0x2bfa68(0x29e),new Map()),l(this,_0x2bfa68(0x159),0x0);}[_0x2e5b1c(0x26c)](_0x1f9456){const _0x5a514f=_0x2e5b1c;if(this[_0x5a514f(0x29e)][_0x5a514f(0x250)](_0x1f9456))return this['_assignedColors'][_0x5a514f(0x18f)](_0x1f9456);const _0x137ce1=ls[this[_0x5a514f(0x159)]];return this[_0x5a514f(0x159)]=(this[_0x5a514f(0x159)]+0x1)%ls[_0x5a514f(0x1bb)],this[_0x5a514f(0x29e)][_0x5a514f(0x1e1)](_0x1f9456,_0x137ce1),_0x137ce1;}}var vr=Object[_0x2e5b1c(0x2de)],Ir=Object[_0x2e5b1c(0x41c)],Er=(_0x3f29b7,_0x11011d,_0x9a1aaa,_0x149a36)=>{for(var _0x33d613=_0x149a36>0x1?void 0x0:_0x149a36?Ir(_0x11011d,_0x9a1aaa):_0x11011d,_0x106f4c=_0x3f29b7['length']-0x1,_0x212c27;_0x106f4c>=0x0;_0x106f4c--)(_0x212c27=_0x3f29b7[_0x106f4c])&&(_0x33d613=(_0x149a36?_0x212c27(_0x11011d,_0x9a1aaa,_0x33d613):_0x212c27(_0x33d613))||_0x33d613);return _0x149a36&&_0x33d613&&vr(_0x11011d,_0x9a1aaa,_0x33d613),_0x33d613;},de=(_0x14c03d,_0x25f081)=>(_0x27054b,_0x205f33)=>_0x25f081(_0x27054b,_0x205f33,_0x14c03d);const Cr=0x12c,br=0x64,Tr=()=>{let _0x31f185=[],_0x1f2e9a=!0x1;return _0x16798c=>{const _0x31b04b=_0x5851;_0x31f185[_0x31b04b(0x2f1)](_0x16798c),_0x1f2e9a||(_0x1f2e9a=!0x0,setTimeout(()=>{const _0x511562=_0x31b04b;_0x31f185[_0x511562(0x1cd)](_0x2fc867=>_0x2fc867()),_0x31f185=[],_0x1f2e9a=!0x1;}));};};let Ot=class extends _0x4bff65{constructor(_0x5d1019,_0x5148f6,_0x43b7c7,_0x19d5ff,_0x1a058e,_0x469b7a,_0x7af0f8,_0x17a6df){const _0x398ac9=_0x2e5b1c;super(),l(this,'_online',!0x1),l(this,_0x398ac9(0x42f),!0x1),l(this,_0x398ac9(0x2f3),new _0x16e81a(new Map())),l(this,_0x398ac9(0x393),this[_0x398ac9(0x2f3)][_0x398ac9(0x2f8)]()),l(this,'_roomMembers$',new _0x16e81a([])),l(this,_0x398ac9(0x39d),this[_0x398ac9(0x274)][_0x398ac9(0x195)](_0x116e1b(Cr))),l(this,'_updateLocalCursor',_0x415879((_0x325e6f,_0x479e95)=>{const _0x3fbf12=_0x398ac9,_0x206c9a={'eventID':_0x410792[_0x3fbf12(0x227)],'data':{'unitID':this[_0x3fbf12(0x3a4)],'memberID':this['_session'][_0x3fbf12(0x146)](),'selection':_0x508689(_0x325e6f,_0x479e95[_0x3fbf12(0x2c0)])}};this[_0x3fbf12(0x233)]['send'](_0x206c9a,this[_0x3fbf12(0x3a4)]);},br)),(this['unitID']=_0x5d1019,this['_session']=_0x5148f6,this[_0x398ac9(0x3ac)]=_0x43b7c7,this['_colorAssignService']=_0x19d5ff,this[_0x398ac9(0x2a9)]=_0x1a058e,this[_0x398ac9(0x1ae)]=_0x469b7a,this['_commandService']=_0x7af0f8,this[_0x398ac9(0x1c6)]=_0x17a6df);}get['cursorInfo'](){const _0x403fb6=_0x2e5b1c;return this[_0x403fb6(0x2f3)][_0x403fb6(0x131)]();}get[_0x2e5b1c(0x223)](){const _0x5184ba=_0x2e5b1c;return this['_roomMembers$'][_0x5184ba(0x131)]();}[_0x2e5b1c(0x2fe)](){const _0xf8359a=_0x2e5b1c;super[_0xf8359a(0x2fe)](),this[_0xf8359a(0x2f3)][_0xf8359a(0x244)](new Map()),this[_0xf8359a(0x2f3)][_0xf8359a(0x447)](),this[_0xf8359a(0x274)][_0xf8359a(0x244)]([]),this['_roomMembers$']['complete']();}[_0x2e5b1c(0x124)](){const _0x4f06b5=_0x2e5b1c;this[_0x4f06b5(0x42f)]||(this[_0x4f06b5(0x42f)]=!0x0,this[_0x4f06b5(0x233)][_0x4f06b5(0x34d)][_0x4f06b5(0x195)](_0x2123e0(this['dispose$']))[_0x4f06b5(0x3c4)](_0x10a987=>{const _0x16d182=_0x4f06b5;_0x10a987===W[_0x16d182(0x13f)]?this[_0x16d182(0x369)]():this[_0x16d182(0x3ce)]();}),this[_0x4f06b5(0x233)][_0x4f06b5(0x372)][_0x4f06b5(0x195)](_0x2123e0(this[_0x4f06b5(0x3be)]))[_0x4f06b5(0x3c4)](_0x4cef5b=>{const _0x49d75d=_0x4f06b5,_0x5cf742=_0x4cef5b[_0x49d75d(0x2f6)];_0x5cf742===_0x410792[_0x49d75d(0x227)]&&this['_onCursorUpdate'](_0x4cef5b),_0x5cf742===_0x410792[_0x49d75d(0x306)]&&this[_0x49d75d(0x3a3)](_0x4cef5b);}),this[_0x4f06b5(0x42b)](),this[_0x4f06b5(0x294)](this[_0x4f06b5(0x1bd)]['onCommandExecuted'](_0xd18e0a=>{const _0x5513aa=_0x4f06b5;if(this['_online']&&_0xd18e0a['id']===_0x2498cc['id']&&_0xd18e0a['params'][_0x5513aa(0x275)]===this[_0x5513aa(0x3a4)]){const _0x507576=_0xd18e0a[_0x5513aa(0x27b)];this[_0x5513aa(0x32c)](_0x507576[_0x5513aa(0x3f7)],_0x507576[_0x5513aa(0x230)][0x0]);}})));}[_0x2e5b1c(0x352)](_0x2482bf){const _0x24c869=_0x2e5b1c;var _0x35ba05,_0x2d4ee7;const {memberID:_0x1bff8c,selection:_0x366964}=_0x2482bf[_0x24c869(0x249)],{sheetName:_0x4b2b72,range:_0x1d7fb8}=_0x5b5841(_0x366964),_0x45a9f4={'name':(_0x2d4ee7=(_0x35ba05=this[_0x24c869(0x2a9)][_0x24c869(0x23f)](this[_0x24c869(0x3a4)],_0x1bff8c))==null?void 0x0:_0x35ba05[_0x24c869(0x397)])!=null?_0x2d4ee7:_0x24c869(0x414),'range':this[_0x24c869(0x3c3)](_0x4b2b72,_0x1d7fb8),'sheetID':_0x4b2b72,'color':this[_0x24c869(0x341)][_0x24c869(0x26c)](_0x1bff8c),'selection':_0x366964},_0x5d3eeb=this[_0x24c869(0x1ab)];_0x5d3eeb[_0x24c869(0x1e1)](_0x1bff8c,_0x45a9f4),this[_0x24c869(0x2f3)]['next'](_0x5d3eeb);}[_0x2e5b1c(0x3a3)](_0x31ee6b){const _0x991657=_0x2e5b1c,{memberID:_0x4a9cdd}=_0x31ee6b[_0x991657(0x249)],_0x24d841=this[_0x991657(0x1ab)];_0x24d841[_0x991657(0x18d)](_0x4a9cdd),this[_0x991657(0x2f3)][_0x991657(0x244)](_0x24d841);}[_0x2e5b1c(0x3c3)](_0x452953,_0x1542a7){const _0x399d4d=_0x2e5b1c;var _0x4d4783,_0x25306a;const _0x3685c1=(_0x25306a=(_0x4d4783=this[_0x399d4d(0x1ae)][_0x399d4d(0x1be)](this[_0x399d4d(0x3a4)]))==null?void 0x0:_0x4d4783[_0x399d4d(0x378)](_0x452953))==null?void 0x0:_0x25306a[_0x399d4d(0x284)]();return(_0x3685c1==null?void 0x0:_0x3685c1[_0x399d4d(0x2c5)](_0x4aed97=>_0x183c22[_0x399d4d(0x351)](_0x4aed97,_0x1542a7)))||_0x1542a7;}[_0x2e5b1c(0x42b)](){const _0x3426b1=_0x2e5b1c,_0x25f72b=new _0x3bb8a8(),_0x26bdc2=Tr(),_0x4101dc=()=>{const _0xf29ba8=_0x5851;_0x25f72b[_0xf29ba8(0x2fe)]();const _0x2385cb=(_0x3b9470,_0x41b3c5,_0x39d407,_0x1c6589)=>{const _0x2ef445=_0xf29ba8;let _0x48b5c0=[];switch(_0x3b9470['id']){case _0xa2b790[_0x2ef445(0x3f6)]:{_0x48b5c0=_0x3c8f35(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x413)]:{_0x48b5c0=_0x552ee5(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x2a2)]:{_0x48b5c0=_0x34e016(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x172)]:{_0x48b5c0=_0x4827cd(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x15d)]:{_0x48b5c0=_0x1731a1(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x342)]:{_0x48b5c0=_0x375cdc(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x39c)]:{_0x48b5c0=_0x2f5847(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x21b)]:{_0x48b5c0=_0x824d6d(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x25b)]:{_0x48b5c0=_0x2f61ec(_0x3b9470,_0x1c6589);break;}}const _0xd96975=_0x15b7fb(_0x48b5c0,_0x1c6589),_0xf185c6=this[_0x2ef445(0x1ab)][_0x2ef445(0x18f)](_0x41b3c5);if(_0xf185c6&&_0xd96975){const _0x395c45={..._0xf185c6,'range':_0xd96975};this[_0x2ef445(0x1ab)][_0x2ef445(0x1e1)](_0x41b3c5,_0x395c45),_0x26bdc2(()=>{const _0x3737dd=_0x2ef445,_0x15ae08=this[_0x3737dd(0x1c6)][_0x3737dd(0x400)](_0xd96975,_0x65c3=>(_0x15ae08[_0x3737dd(0x2fe)](),_0x2385cb(_0x65c3,_0x41b3c5,_0x39d407,_0xd96975)));_0x25f72b[_0x3737dd(0x47b)](_0x15ae08);});}return{'redos':[],'undos':[]};};this[_0xf29ba8(0x1ab)][_0xf29ba8(0x1cd)]((_0x7bdbc8,_0x5a07cc)=>{const _0x55c58d=_0xf29ba8,{range:_0x141034,sheetID:_0x1b7139}=_0x7bdbc8,_0x3c7bc9=this[_0x55c58d(0x1c6)][_0x55c58d(0x400)](_0x141034,_0x1696c7=>(_0x3c7bc9[_0x55c58d(0x2fe)](),_0x2385cb(_0x1696c7,_0x5a07cc,_0x1b7139,_0x141034)));_0x25f72b[_0x55c58d(0x47b)](_0x3c7bc9);});};this[_0x3426b1(0x294)](_0x29a7b(this[_0x3426b1(0x2f3)][_0x3426b1(0x3c4)](()=>{_0x4101dc();})));}[_0x2e5b1c(0x369)](){const _0x463621=_0x2e5b1c;var _0x425260,_0x1c0916;if(this[_0x463621(0x462)]=!0x0,((_0x425260=this[_0x463621(0x1ae)][_0x463621(0x1e7)]())==null?void 0x0:_0x425260['getUnitId']())!==this[_0x463621(0x3a4)])return;const _0x3021ec=(_0x1c0916=this[_0x463621(0x3ac)][_0x463621(0x18f)](_0x85923d)[_0x463621(0x460)]())==null?void 0x0:_0x1c0916[0x0],_0x169ed8=this[_0x463621(0x1ae)][_0x463621(0x224)](_0x3bf0d9['UNIVER_SHEET'])[_0x463621(0x29a)]();_0x3021ec&&_0x169ed8&&this[_0x463621(0x32c)](_0x169ed8[_0x463621(0x3b5)](),_0x3021ec);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Er([de(0x2,_0x5c7fae(_0x5d259e)),de(0x3,_0x5c7fae(Ft)),de(0x4,_0x5c7fae(oe)),de(0x5,_0x30b2f2),de(0x6,_0x36a317),de(0x7,_0x5c7fae(_0x504358))],Ot);var Rr=Object[_0x2e5b1c(0x2de)],Or=Object[_0x2e5b1c(0x41c)],Dr=(_0x5051c5,_0x407f80,_0x200c16,_0x19bed2)=>{const _0x548723=_0x2e5b1c;for(var _0x5a7794=_0x19bed2>0x1?void 0x0:_0x19bed2?Or(_0x407f80,_0x200c16):_0x407f80,_0x98fa8e=_0x5051c5[_0x548723(0x1bb)]-0x1,_0x4cbc3e;_0x98fa8e>=0x0;_0x98fa8e--)(_0x4cbc3e=_0x5051c5[_0x98fa8e])&&(_0x5a7794=(_0x19bed2?_0x4cbc3e(_0x407f80,_0x200c16,_0x5a7794):_0x4cbc3e(_0x5a7794))||_0x5a7794);return _0x19bed2&&_0x5a7794&&Rr(_0x407f80,_0x200c16,_0x5a7794),_0x5a7794;},se=(_0x3738f6,_0x172c88)=>(_0x29a834,_0x6f65ab)=>_0x172c88(_0x29a834,_0x6f65ab,_0x3738f6);const wr=0x12c,Pr=0x64;let Dt=class extends _0x4bff65{constructor(_0x1dd0b3,_0x3384fe,_0x482c97,_0x19e773,_0x1f7611,_0x240638,_0x1d0700,_0x41b366,_0x525b2c){const _0x4236e6=_0x2e5b1c;super(),l(this,_0x4236e6(0x462),!0x1),l(this,_0x4236e6(0x42f),!0x1),l(this,_0x4236e6(0x2f3),new _0x16e81a(new Map())),l(this,_0x4236e6(0x393),this[_0x4236e6(0x2f3)][_0x4236e6(0x2f8)]()),l(this,_0x4236e6(0x274),new _0x16e81a([])),l(this,_0x4236e6(0x39d),this['_roomMembers$'][_0x4236e6(0x195)](_0x116e1b(wr))),l(this,_0x4236e6(0x32c),_0x415879(_0x298044=>{const _0x3c77b3=_0x4236e6,_0x2cd269={'eventID':_0x410792['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c77b3(0x3a4)],'memberID':this[_0x3c77b3(0x233)][_0x3c77b3(0x146)](),'selection':js(_0x298044)}};this[_0x3c77b3(0x233)][_0x3c77b3(0x1ef)](_0x2cd269,this['unitID']);},Pr)),(this[_0x4236e6(0x3a4)]=_0x1dd0b3,this[_0x4236e6(0x233)]=_0x3384fe,this[_0x4236e6(0x3ac)]=_0x482c97,this[_0x4236e6(0x341)]=_0x19e773,this[_0x4236e6(0x2a9)]=_0x1f7611,this['_syncEditingCollabCursorService']=_0x240638,this[_0x4236e6(0x3cf)]=_0x1d0700,this[_0x4236e6(0x1ae)]=_0x41b366,this[_0x4236e6(0x1bd)]=_0x525b2c);}get[_0x2e5b1c(0x1ab)](){const _0x3f3298=_0x2e5b1c;return this[_0x3f3298(0x2f3)][_0x3f3298(0x131)]();}get[_0x2e5b1c(0x223)](){return this['_roomMembers$']['getValue']();}[_0x2e5b1c(0x2fe)](){const _0x290a16=_0x2e5b1c;super['dispose'](),this[_0x290a16(0x2f3)][_0x290a16(0x244)](new Map()),this[_0x290a16(0x2f3)][_0x290a16(0x447)](),this['_roomMembers$'][_0x290a16(0x244)]([]),this[_0x290a16(0x274)][_0x290a16(0x447)]();}[_0x2e5b1c(0x124)](){const _0x903dcb=_0x2e5b1c;this[_0x903dcb(0x42f)]||(this[_0x903dcb(0x42f)]=!0x0,this[_0x903dcb(0x233)]['sessionStatus$'][_0x903dcb(0x195)](_0x2123e0(this['dispose$']))[_0x903dcb(0x3c4)](_0x19ff0c=>{const _0x57f077=_0x903dcb;_0x19ff0c===W[_0x57f077(0x13f)]?this['_toggleOnline']():this[_0x57f077(0x3ce)]();}),this['_session'][_0x903dcb(0x372)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x1d3805=>{const _0x2bc5d4=_0x903dcb,_0x3c7ca5=_0x1d3805[_0x2bc5d4(0x2f6)];_0x3c7ca5===_0x410792['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3805),_0x3c7ca5===_0x410792[_0x2bc5d4(0x306)]&&this[_0x2bc5d4(0x3a3)](_0x1d3805);}),this[_0x903dcb(0x294)](this['_commandService'][_0x903dcb(0x20e)](_0xf2419a=>{const _0xd2bf1c=_0x903dcb,_0x12854c=_0xf2419a[_0xd2bf1c(0x27b)];_0x12854c!=null&&this['_online']&&_0xf2419a['id']===_0x26b3ce['id']&&_0x12854c[_0xd2bf1c(0x275)]===this['unitID']&&_0x12854c[_0xd2bf1c(0x1a0)]===!0x1&&this['_updateLocalCursor'](_0x12854c[_0xd2bf1c(0x23a)]);})),this['_syncEditingCollabCursorService'][_0x903dcb(0x39e)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x3fe8d5=>{const _0x4803e0=_0x903dcb;if((_0x3fe8d5==null?void 0x0:_0x3fe8d5[_0x4803e0(0x3a4)])!==this[_0x4803e0(0x3a4)])return;const _0x494e67={'eventID':_0x410792['UPDATE_CURSOR'],'data':_0x3fe8d5};this[_0x4803e0(0x352)](_0x494e67);}),this[_0x903dcb(0x294)](this[_0x903dcb(0x1bd)]['onCommandExecuted'](_0x4c68f5=>{const _0x4f1002=_0x903dcb;if(_0x4c68f5[_0x4f1002(0x27b)]==null)return;const _0x2e396d=_0x4c68f5['params'];if(_0x4c68f5['id']!==_0xa592b4['id']||_0x2e396d['unitId']!==this[_0x4f1002(0x3a4)])return;const _0x374042={'id':'doc.mutation.rich-text-editing','params':_0x2e396d},_0x2bb89f=this[_0x4f1002(0x1ab)];for(const [_0x554c20,_0x180929]of _0x2bb89f){const _0x5f446c={'id':_0x4f1002(0x3ad),'params':{'unitId':this[_0x4f1002(0x3a4)],'actions':null,'textRanges':_0x180929[_0x4f1002(0x23a)]}},_0x4ced74=this[_0x4f1002(0x3cf)][_0x4f1002(0x2d7)](_0x374042,_0x5f446c,!0x1);if(_0x517f04(_0x4ced74))throw _0x4ced74[_0x4f1002(0x30b)];_0x2bb89f[_0x4f1002(0x1e1)](_0x554c20,{..._0x180929,'ranges':_0x4ced74[_0x4f1002(0x366)]['params'][_0x4f1002(0x43f)]});}queueMicrotask(()=>{const _0x324978=_0x4f1002;this['_cursorInfo$'][_0x324978(0x244)](_0x2bb89f);});})));}[_0x2e5b1c(0x352)](_0x4a2c0f){const _0x2e2485=_0x2e5b1c;var _0x3e199e,_0x4959f9;const {memberID:_0x170cd4,selection:_0x533694}=_0x4a2c0f[_0x2e2485(0x249)],_0x2fb242=rr(_0x533694),_0x4c333b=(_0x4959f9=(_0x3e199e=this[_0x2e2485(0x2a9)][_0x2e2485(0x23f)](this[_0x2e2485(0x3a4)],_0x170cd4))==null?void 0x0:_0x3e199e[_0x2e2485(0x397)])!=null?_0x4959f9:_0x2e2485(0x414),_0x508d54={'color':this['_colorAssignService'][_0x2e2485(0x26c)](_0x170cd4),'name':_0x4c333b,'ranges':_0x2fb242},_0xae7a74=this[_0x2e2485(0x1ab)];_0xae7a74['set'](_0x170cd4,_0x508d54),this['_cursorInfo$'][_0x2e2485(0x244)](_0xae7a74);}['_onCursorDelete'](_0xfe9d7d){const _0x36e654=_0x2e5b1c,{memberID:_0x3ffad3}=_0xfe9d7d[_0x36e654(0x249)],_0x413deb=this[_0x36e654(0x1ab)];_0x413deb[_0x36e654(0x18d)](_0x3ffad3),this[_0x36e654(0x2f3)][_0x36e654(0x244)](_0x413deb);}['_toggleOnline'](){const _0x4fd799=_0x2e5b1c;var _0x482e22;if(this[_0x4fd799(0x462)]=!0x0,((_0x482e22=this[_0x4fd799(0x1ae)]['getFocusedUnit']())==null?void 0x0:_0x482e22[_0x4fd799(0x426)]())!==this[_0x4fd799(0x3a4)])return;const _0x331a34=this['_injector'][_0x4fd799(0x18f)](_0x1dbfad)[_0x4fd799(0x16f)]();Array[_0x4fd799(0x434)](_0x331a34)&&_0x331a34[_0x4fd799(0x1bb)]>0x0&&this[_0x4fd799(0x32c)](_0x331a34);}[_0x2e5b1c(0x3ce)](){const _0x59e89a=_0x2e5b1c;this[_0x59e89a(0x462)]=!0x1;}};Dt=Dr([se(0x2,_0x5c7fae(_0x5d259e)),se(0x3,_0x5c7fae(Ft)),se(0x4,_0x5c7fae(oe)),se(0x5,_0x5c7fae(Bt)),se(0x6,_0x4e0f96),se(0x7,_0x30b2f2),se(0x8,_0x36a317)],Dt);var Nr=Object[_0x2e5b1c(0x2de)],yr=Object['getOwnPropertyDescriptor'],Mr=(_0x815867,_0x3c0ed7,_0x10f3fe,_0x1002f9)=>{const _0x411bb1=_0x2e5b1c;for(var _0x184f96=_0x1002f9>0x1?void 0x0:_0x1002f9?yr(_0x3c0ed7,_0x10f3fe):_0x3c0ed7,_0x329ff8=_0x815867[_0x411bb1(0x1bb)]-0x1,_0x4d2cf9;_0x329ff8>=0x0;_0x329ff8--)(_0x4d2cf9=_0x815867[_0x329ff8])&&(_0x184f96=(_0x1002f9?_0x4d2cf9(_0x3c0ed7,_0x10f3fe,_0x184f96):_0x4d2cf9(_0x184f96))||_0x184f96);return _0x1002f9&&_0x184f96&&Nr(_0x3c0ed7,_0x10f3fe,_0x184f96),_0x184f96;},ut=(_0x50482e,_0x1b3394)=>(_0x3829ce,_0x546e0e)=>_0x1b3394(_0x3829ce,_0x546e0e,_0x50482e);let fe=class extends _0x4bff65{constructor(_0x2cbb82,_0x2c34b6,_0x3aec76){const _0x1ea069=_0x2e5b1c;super(),l(this,_0x1ea069(0x36c),new Map()),l(this,_0x1ea069(0x394),new _0x47a81b()),(this[_0x1ea069(0x1ae)]=_0x2cbb82,this['_injector']=_0x2c34b6,this[_0x1ea069(0x3f1)]=_0x3aec76,this[_0x1ea069(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x1c36ce=_0x2e5b1c;super[_0x1c36ce(0x2fe)](),this['_entityInit$'][_0x1c36ce(0x447)](),this[_0x1c36ce(0x36c)][_0x1c36ce(0x1cd)](_0x135ddf=>_0x135ddf[_0x1c36ce(0x2fe)]());}[_0x2e5b1c(0x16c)](_0x52b97f){const _0x430161=_0x2e5b1c;return this[_0x430161(0x36c)][_0x430161(0x250)](_0x52b97f)?this[_0x430161(0x36c)][_0x430161(0x18f)](_0x52b97f)['cursorInfo$']:this[_0x430161(0x394)][_0x430161(0x195)](_0x41cfb4(_0x5d0d29=>_0x5d0d29[_0x430161(0x3a4)]===_0x52b97f),_0x498d15(_0xee628f=>_0xee628f[_0x430161(0x393)]));}[_0x2e5b1c(0x42f)](){const _0x42f40d=_0x2e5b1c;this['_univerInstanceService'][_0x42f40d(0x1a4)](_0x3bf0d9[_0x42f40d(0x2c7)])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](async _0x124897=>{const _0x32543e=_0x42f40d,_0x4ea236=_0x124897[_0x32543e(0x426)](),_0x5661de=await this[_0x32543e(0x3da)](_0x4ea236);this[_0x32543e(0x394)]['next'](_0x5661de),this[_0x32543e(0x36c)][_0x32543e(0x1e1)](_0x4ea236,_0x5661de);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC'])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x195)](_0x41cfb4(_0x2ddab1=>!_0x2ddab1[_0x42f40d(0x426)]()[_0x42f40d(0x1e5)]('__')))['subscribe'](async _0xf4ff59=>{const _0x22404d=_0x42f40d,_0x540144=_0xf4ff59[_0x22404d(0x426)](),_0x2aa7c2=await this[_0x22404d(0x147)](_0x540144);this[_0x22404d(0x394)][_0x22404d(0x244)](_0x2aa7c2),this['_entities'][_0x22404d(0x1e1)](_0x540144,_0x2aa7c2);}),_0x9334d7(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42f40d(0x1de)]),this[_0x42f40d(0x1ae)][_0x42f40d(0x46a)](_0x3bf0d9[_0x42f40d(0x2c7)]))[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](_0x55eaee=>{const _0x26e699=_0x42f40d,_0x436524=_0x55eaee[_0x26e699(0x426)](),_0x3f9e75=this[_0x26e699(0x36c)][_0x26e699(0x18f)](_0x436524);_0x3f9e75&&(_0x3f9e75['dispose'](),this[_0x26e699(0x36c)][_0x26e699(0x18d)](_0x436524));});}async[_0x2e5b1c(0x3da)](_0x196fa5){const _0x49c98a=_0x2e5b1c,_0x268397=await this[_0x49c98a(0x3f1)][_0x49c98a(0x205)](_0x196fa5),_0x56f2e5=this[_0x49c98a(0x3ac)][_0x49c98a(0x254)](Ot,_0x196fa5,_0x268397);return _0x56f2e5[_0x49c98a(0x124)](),_0x56f2e5;}async[_0x2e5b1c(0x147)](_0x1bced7){const _0x2546ec=_0x2e5b1c,_0x212932=await this[_0x2546ec(0x3f1)][_0x2546ec(0x205)](_0x1bced7),_0x51696f=this[_0x2546ec(0x3ac)]['createInstance'](Dt,_0x1bced7,_0x212932);return _0x51696f[_0x2546ec(0x124)](),_0x51696f;}};fe=Mr([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],fe),ut(0x0,_0x30b2f2),ut(0x1,_0x5c7fae(_0x5d259e)),ut(0x2,_0x5c7fae(ae))],fe);const Ue=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Ur(_0x23174f,_0xe29359){const _0x423996=_0x2e5b1c;let {radius:_0x421f6a,width:_0x481777,height:_0x2b89bd}=_0xe29359;_0x421f6a=_0x421f6a!=null?_0x421f6a:0x0,_0x481777=_0x481777!=null?_0x481777:0x1e,_0x2b89bd=_0x2b89bd!=null?_0x2b89bd:0x1e;let _0x2911b0=0x0,_0x16804e=0x0,_0x107a8e=0x0;_0x2911b0=_0x16804e=_0x107a8e=Math[_0x423996(0x3a9)](_0x421f6a,_0x481777/0x2,_0x2b89bd/0x2),_0x23174f[_0x423996(0x1f9)](),_0x23174f[_0x423996(0x2e8)](_0x2911b0,0x0),_0x23174f[_0x423996(0x1df)](_0x481777-_0x16804e,0x0),_0x23174f[_0x423996(0x260)](_0x481777-_0x16804e,_0x16804e,_0x16804e,Math['PI']*0x3/0x2,0x0,!0x1),_0x23174f[_0x423996(0x1df)](_0x481777,_0x2b89bd-_0x107a8e),_0x23174f['arc'](_0x481777-_0x107a8e,_0x2b89bd-_0x107a8e,_0x107a8e,0x0,Math['PI']/0x2,!0x1),_0x23174f[_0x423996(0x1df)](0x0,_0x2b89bd),_0x23174f[_0x423996(0x1df)](0x0,_0x2911b0),_0x23174f[_0x423996(0x260)](_0x2911b0,_0x2911b0,_0x2911b0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23174f['closePath'](),_0xe29359[_0x423996(0x344)]&&(_0x23174f[_0x423996(0x302)](),_0x23174f[_0x423996(0x28c)]=_0xe29359[_0x423996(0x344)],_0xe29359['fillRule']==='evenodd'?_0x23174f['fill'](_0x423996(0x1e9)):_0x23174f[_0x423996(0x344)](),_0x23174f['restore']());}class nt extends _0x214e6b{constructor(_0x3f5644,_0x220de0){const _0x1f79ad=_0x2e5b1c;super(_0x3f5644,_0x220de0),l(this,'color'),l(this,'text'),(this['color']=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x46e)],this[_0x1f79ad(0x134)]=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x134)]);}static[_0x2e5b1c(0x404)](_0x1e7cff,_0x4c0dfb){const _0x4f1957=_0x2e5b1c,{text:_0x3e5d6d,color:_0x3ca15a}=_0x4c0dfb;_0x1e7cff[_0x4f1957(0x302)](),_0x1e7cff[_0x4f1957(0x3f4)]=_0x4f1957(0x15f);const _0x25cbec=_0x1e7cff[_0x4f1957(0x44f)](_0x3e5d6d)['width'],_0xb575ed=Math[_0x4f1957(0x3a9)](_0x25cbec+0x2*dt,_s);Ur(_0x1e7cff,{'height':Ue,'radius':0x4,'width':_0xb575ed,'fill':_0x3ca15a,'evented':!0x1}),_0x1e7cff['fillStyle']='#FFF';const _0x737ea6=dt,_0x5c80bb=Ue-Ar,_0x1ea163=_s-0x2*dt;if(_0x25cbec>_0x1ea163){let _0x665e6='',_0x4e453e=0x0;for(const _0x22d19d of _0x3e5d6d){const _0xea03f3=_0x1e7cff[_0x4f1957(0x44f)](_0x22d19d)['width'];if(_0x4e453e+_0xea03f3<=_0x1ea163-_0x1e7cff[_0x4f1957(0x44f)]('...')[_0x4f1957(0x45e)])_0x665e6+=_0x22d19d,_0x4e453e+=_0xea03f3;else{_0x665e6+=_0x4f1957(0x3db);break;}}_0x1e7cff[_0x4f1957(0x374)](_0x665e6,_0x737ea6,_0x5c80bb);}else _0x1e7cff['fillText'](_0x3e5d6d,_0x737ea6,_0x5c80bb);_0x1e7cff[_0x4f1957(0x316)]();}[_0x2e5b1c(0x2dd)](_0x42fcef){const _0x4c8ef9=_0x2e5b1c;nt[_0x4c8ef9(0x404)](_0x42fcef,this);}}const Lr=0x1,$r=1.5;class jr extends _0x214e6b{constructor(_0x3acc60,_0x22ed86){const _0x56f4b9=_0x2e5b1c;super(_0x3acc60,_0x22ed86),l(this,_0x56f4b9(0x1a2)),l(this,_0x56f4b9(0x412),!0x1),l(this,'_range'),l(this,_0x56f4b9(0x439),''),l(this,'_labelPosition','top'),l(this,_0x56f4b9(0x47d)),(_0x22ed86&&this[_0x56f4b9(0x42c)](_0x22ed86),this['onPointerEnter$'][_0x56f4b9(0x3cb)](()=>this[_0x56f4b9(0x42c)]({'hovered':!0x0})),this[_0x56f4b9(0x3d3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2e5b1c(0x42c)](_0x14968b){const _0x31090b=_0x2e5b1c;var _0x4075b6,_0x5db14f,_0x4ba6ed,_0x302c20,_0xf1ef64,_0x56e5c5;this['_color']=(_0x4075b6=_0x14968b[_0x31090b(0x46e)])!=null?_0x4075b6:this['_color'],this['_hovered']=(_0x5db14f=_0x14968b[_0x31090b(0x267)])!=null?_0x5db14f:this[_0x31090b(0x412)],this[_0x31090b(0x398)]=(_0x4ba6ed=_0x14968b['range'])!=null?_0x4ba6ed:this[_0x31090b(0x398)],this[_0x31090b(0x439)]=(_0x302c20=_0x14968b[_0x31090b(0x397)])!=null?_0x302c20:this[_0x31090b(0x439)],this['_labelPosition']=(_0xf1ef64=_0x14968b[_0x31090b(0x3d0)])!=null?_0xf1ef64:this['_labelPosition'],this[_0x31090b(0x47d)]=(_0x56e5c5=_0x14968b['backgroundColor'])!=null?_0x56e5c5:this['_backgroundColor'],this[_0x31090b(0x12a)]({'width':_0x14968b[_0x31090b(0x45e)],'height':_0x14968b[_0x31090b(0x36e)]});}[_0x2e5b1c(0x20b)](_0x5d16f2){const _0x35cc92=_0x2e5b1c,{row:_0x584d81,column:_0x42c3a4}=_0x5d16f2;if(_0x584d81>=this[_0x35cc92(0x398)]['startRow']&&_0x584d81<=this[_0x35cc92(0x398)]['endRow']&&_0x42c3a4>=this[_0x35cc92(0x398)][_0x35cc92(0x24f)]&&_0x42c3a4<=this[_0x35cc92(0x398)][_0x35cc92(0x191)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35cc92(0x42c)]({'hovered':!0x1});}[_0x2e5b1c(0x406)](_0x8bc810){return!0x1;}[_0x2e5b1c(0x2dd)](_0x28ab2c){const _0x2e2bd0=_0x2e5b1c;_0x170a21[_0x2e2bd0(0x404)](_0x28ab2c,{'width':this[_0x2e2bd0(0x45e)],'height':this[_0x2e2bd0(0x36e)],'strokeWidth':$r,'stroke':this[_0x2e2bd0(0x1a2)],'evented':!0x1,'fill':this[_0x2e2bd0(0x47d)]}),this[_0x2e2bd0(0x412)]&&(_0x28ab2c['save'](),_0x28ab2c[_0x2e2bd0(0x3fb)](0x1,0x0,0x0,0x1,this[_0x2e2bd0(0x45e)],this['_labelPosition']===_0x2e2bd0(0x31f)?0x0:-Ue),nt[_0x2e2bd0(0x404)](_0x28ab2c,{'text':this['_name'],'color':this[_0x2e2bd0(0x1a2)]}),_0x28ab2c[_0x2e2bd0(0x316)]());}}var xr=Object[_0x2e5b1c(0x2de)],Hr=Object[_0x2e5b1c(0x41c)],kr=(_0x4fd8e6,_0x563375,_0x16ab54,_0x223b14)=>{const _0x2b2a02=_0x2e5b1c;for(var _0x2131ce=_0x223b14>0x1?void 0x0:_0x223b14?Hr(_0x563375,_0x16ab54):_0x563375,_0x145b81=_0x4fd8e6[_0x2b2a02(0x1bb)]-0x1,_0x117165;_0x145b81>=0x0;_0x145b81--)(_0x117165=_0x4fd8e6[_0x145b81])&&(_0x2131ce=(_0x223b14?_0x117165(_0x563375,_0x16ab54,_0x2131ce):_0x117165(_0x2131ce))||_0x2131ce);return _0x223b14&&_0x2131ce&&xr(_0x563375,_0x16ab54,_0x2131ce),_0x2131ce;},mt=(_0x1c6f61,_0x62489e)=>(_0x46d747,_0x45e2c0)=>_0x62489e(_0x46d747,_0x45e2c0,_0x1c6f61);const Br=0x1389;let wt=class extends _0x4bff65{constructor(_0x23428a,_0x319033,_0x241f03,_0x1caf4a){const _0x3b7eea=_0x2e5b1c;super(),l(this,'_cursors',new Set()),l(this,_0x3b7eea(0x327),null),(this[_0x3b7eea(0x1c4)]=_0x23428a,this[_0x3b7eea(0x271)]=_0x319033,this[_0x3b7eea(0x44b)]=_0x241f03,this[_0x3b7eea(0x382)]=_0x1caf4a,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x2f7ea1=_0x2e5b1c;this[_0x2f7ea1(0x271)][_0x2f7ea1(0x182)][_0x2f7ea1(0x195)](_0x429e28(this[_0x2f7ea1(0x3be)]),_0x3c8cfc(_0x579921=>{const _0x160999=_0x2f7ea1;if(_0x579921){const _0x41a88d=_0x579921['sheetId'];return _0x1ee3b6(this[_0x160999(0x44b)]['getCollabCursors$'](this[_0x160999(0x1c4)][_0x160999(0x275)]),this[_0x160999(0x382)][_0x160999(0x221)])['pipe'](_0x4b551a(([_0x3daf82,_0x37fc93])=>{const _0x2360b3=_0x160999,_0xa50af5=new Map();return _0x3daf82[_0x2360b3(0x1cd)]((_0x47fb55,_0x3862ab)=>{const _0x22bb7c=_0x2360b3;if(_0x47fb55[_0x22bb7c(0x22e)]===_0x41a88d){const _0x36c626={..._0x47fb55};_0x36c626[_0x22bb7c(0x46e)]=_0x37fc93[_0x47fb55[_0x22bb7c(0x46e)]],_0xa50af5['set'](_0x3862ab,_0x36c626);}}),{'skeleton':_0x579921,'cursors':_0xa50af5};}));}return _0x8d55e({'skeleton':null,'cursors':new Map()});}))[_0x2f7ea1(0x3c4)](({skeleton:_0x251ed4,cursors:_0x4bf57e})=>{const _0x348929=_0x2f7ea1;this[_0x348929(0x2d2)](),_0x251ed4&&this[_0x348929(0x323)](_0x251ed4,_0x4bf57e);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2f7ea1(0x3c4)](_0x36824b=>{const _0x4fe051=_0x2f7ea1;if(_0x36824b==null)return;const {skeleton:_0x3b79a7}=_0x36824b,{scene:_0x4ff672}=this[_0x4fe051(0x1c4)];_0x4ff672[_0x4fe051(0x1d9)][_0x4fe051(0x3cb)](_0x415879(_0x53e390=>{const _0x10e44d=_0x4fe051;var _0x1a02fe,_0x3171b9;const {offsetX:_0x24e268,offsetY:_0x3940ae}=_0x53e390,{x:_0x5a1269,y:_0x4dcd7d}=_0x4ff672[_0x10e44d(0x3fc)](_0x586911[_0x10e44d(0x1e8)]([_0x24e268,_0x3940ae])),{scaleX:_0x2e077f,scaleY:_0xcb6c8e}=_0x4ff672[_0x10e44d(0x322)](),_0x2544d1=_0x4ff672[_0x10e44d(0x449)](_0x398f9b[_0x10e44d(0x3ca)]),_0x486c06=_0x4ff672['getVpScrollXYInfoByPosToVp'](_0x586911[_0x10e44d(0x1e8)]([_0x5a1269,_0x4dcd7d]),_0x2544d1),_0x499c6a=_0x3b79a7[_0x10e44d(0x14b)](_0x24e268,_0x3940ae,_0x2e077f,_0xcb6c8e,_0x486c06);((_0x1a02fe=this[_0x10e44d(0x327)])==null?void 0x0:_0x1a02fe[_0x10e44d(0x3d5)])===_0x499c6a['column']&&((_0x3171b9=this['_lastPointer'])==null?void 0x0:_0x3171b9[_0x10e44d(0x297)])===_0x499c6a[_0x10e44d(0x297)]||this[_0x10e44d(0x45c)][_0x10e44d(0x1cd)](_0x2883d3=>{const _0xf43a9=_0x10e44d;_0x2883d3[_0xf43a9(0x20b)](_0x499c6a);});},0x64));});}[_0x2e5b1c(0x323)](_0x5b5b86,_0x1234b6){const _0x14675b=_0x2e5b1c;var _0x18cfb6;const _0x1d6afb=(_0x18cfb6=this[_0x14675b(0x271)][_0x14675b(0x196)]())==null?void 0x0:_0x18cfb6['skeleton'];if(!_0x1d6afb)return;const _0x2a83ca=this[_0x14675b(0x26a)]();if(!_0x2a83ca)return;this['_cursors'][_0x14675b(0x1cd)](_0x4850f1=>{const _0x59b42f=_0x14675b;_0x4850f1[_0x59b42f(0x3f3)]();});const {scene:_0x107a4f}=_0x2a83ca,_0x350472=Vr(Array[_0x14675b(0x1bf)](_0x1234b6[_0x14675b(0x2bb)]()))[_0x14675b(0x1c7)](_0x220823=>{const _0x135cd9=_0x14675b,{color:_0x4e1bc7,range:_0xb0d2d1,name:_0x2fb6f9,selection:_0xf3e170,sheetID:_0x2b5001}=_0x220823,{startColumn:_0x200222,startRow:_0x21b8a5,endColumn:_0x408f84,endRow:_0xb3b0ed}=_0xb0d2d1,_0x16e8aa=_0x341a0b(_0x21b8a5,_0x200222,_0x107a4f,_0x1d6afb),_0x50aa6e=_0x341a0b(_0xb3b0ed,_0x408f84,_0x107a4f,_0x1d6afb),{columnHeaderHeightAndMarginTop:_0x2b885b}=_0x1d6afb,{startX:_0x1af95a,startY:_0x50c0a8}=_0x16e8aa,{endX:_0x4b333f,endY:_0x4f88ee}=_0x50aa6e,_0x40d352=_0x4b333f-_0x1af95a,_0x5058be=_0x4f88ee-_0x50c0a8,_0x55fbea={'labelPosition':_0x50c0a8-_0x2b885b>=Ue?_0x135cd9(0x127):_0x135cd9(0x31f),'sheetID':_0x2b5001,'range':_0xb0d2d1,'color':_0x4e1bc7,'name':_0x2fb6f9,'selection':_0xf3e170,'left':_0x1af95a,'top':_0x50c0a8,'width':_0x40d352,'height':_0x5058be,'evented':!0x1,'zIndex':Br};return new jr(_0x2fb6f9,_0x55fbea);});_0x107a4f[_0x14675b(0x13b)](_0x350472,Lr),this[_0x14675b(0x45c)]=new Set(_0x350472);}[_0x2e5b1c(0x2d2)](){const _0x432787=_0x2e5b1c;var _0x38c461;(_0x38c461=this['_cursors'])==null||_0x38c461[_0x432787(0x1cd)](_0x2e38a3=>_0x2e38a3['dispose']());}[_0x2e5b1c(0x26a)](){const _0x25d3e7=_0x2e5b1c;return _0x40df2d(this[_0x25d3e7(0x1c4)]['unit'],this[_0x25d3e7(0x1c4)]);}};wt=kr([mt(0x1,_0x5c7fae(_0x5349fd)),mt(0x2,_0x5c7fae(fe)),mt(0x3,_0x5c7fae(_0x27c464))],wt);function Vr(_0xedbaef){const _0x1ef57c=_0x2e5b1c,_0x236d7c=new Map();return _0xedbaef[_0x1ef57c(0x1cd)](_0x27cacf=>{const _0x769a5=_0x1ef57c;if(_0x236d7c[_0x769a5(0x250)](_0x27cacf[_0x769a5(0x203)])){const _0x5f0ef9=_0x236d7c[_0x769a5(0x18f)](_0x27cacf[_0x769a5(0x203)]);_0x5f0ef9[_0x769a5(0x397)]+=',\x20'+_0x27cacf[_0x769a5(0x397)];}else _0x236d7c[_0x769a5(0x1e1)](_0x27cacf[_0x769a5(0x203)],_0x27cacf);}),Array[_0x1ef57c(0x1bf)](_0x236d7c[_0x1ef57c(0x2bb)]());}var y=function(){const _0x275077=_0x2e5b1c;return y=Object[_0x275077(0x190)]||function(_0x1c8100){const _0x89a6f9=_0x275077;for(var _0x4d4cc0,_0x468f29=0x1,_0x2a6f44=arguments[_0x89a6f9(0x1bb)];_0x468f29<_0x2a6f44;_0x468f29++){_0x4d4cc0=arguments[_0x468f29];for(var _0x1f7e8b in _0x4d4cc0)Object['prototype']['hasOwnProperty'][_0x89a6f9(0x13d)](_0x4d4cc0,_0x1f7e8b)&&(_0x1c8100[_0x1f7e8b]=_0x4d4cc0[_0x1f7e8b]);}return _0x1c8100;},y['apply'](this,arguments);},Fr=function(_0x4ad311,_0x39ddd3){const _0x49433a=_0x2e5b1c;var _0x1e1385={};for(var _0x186acc in _0x4ad311)Object[_0x49433a(0x3e6)][_0x49433a(0x1f6)][_0x49433a(0x13d)](_0x4ad311,_0x186acc)&&_0x39ddd3[_0x49433a(0x36d)](_0x186acc)<0x0&&(_0x1e1385[_0x186acc]=_0x4ad311[_0x186acc]);if(_0x4ad311!=null&&typeof Object['getOwnPropertySymbols']==_0x49433a(0x247)){for(var _0x11483f=0x0,_0x186acc=Object[_0x49433a(0x1cc)](_0x4ad311);_0x11483f<_0x186acc[_0x49433a(0x1bb)];_0x11483f++)_0x39ddd3[_0x49433a(0x36d)](_0x186acc[_0x11483f])<0x0&&Object[_0x49433a(0x3e6)][_0x49433a(0x33d)][_0x49433a(0x13d)](_0x4ad311,_0x186acc[_0x11483f])&&(_0x1e1385[_0x186acc[_0x11483f]]=_0x4ad311[_0x186acc[_0x11483f]]);}return _0x1e1385;},Wt=_0x5da15c(function(_0x8780af,_0x550f62){const _0x3ee4e6=_0x2e5b1c;var _0x49db11=_0x8780af['icon'],_0x1724e3=_0x8780af['id'],_0x841939=_0x8780af[_0x3ee4e6(0x3bc)],_0x2297bc=_0x8780af['extend'],_0x23a9dd=Fr(_0x8780af,[_0x3ee4e6(0x46b),'id',_0x3ee4e6(0x3bc),_0x3ee4e6(0x197)]),_0x225f07=_0x3ee4e6(0x2e5)[_0x3ee4e6(0x35e)](_0x1724e3,'\x20')[_0x3ee4e6(0x35e)](_0x841939||'')[_0x3ee4e6(0x27f)](),_0x36d04e=_0x4ab73c('_'['concat'](Yr()));return Hs(_0x49db11,''['concat'](_0x1724e3),{'defIds':_0x49db11[_0x3ee4e6(0x40a)],'idSuffix':_0x36d04e[_0x3ee4e6(0x422)]},y({'ref':_0x550f62,'className':_0x225f07},_0x23a9dd),_0x2297bc);});function Hs(_0x5e0797,_0x22c78b,_0x1a77a2,_0x4a35cb,_0x4b7374){const _0x53d554=_0x2e5b1c;return _0x3d6533(_0x5e0797[_0x53d554(0x33b)],y(y({'key':_0x22c78b},Wr(_0x5e0797,_0x1a77a2,_0x4b7374)),_0x4a35cb),(Gr(_0x5e0797,_0x1a77a2)[_0x53d554(0x1a5)]||[])[_0x53d554(0x1c7)](function(_0xb87fc6,_0xd6da34){const _0x48825e=_0x53d554;return Hs(_0xb87fc6,''[_0x48825e(0x35e)](_0x22c78b,'-')[_0x48825e(0x35e)](_0x5e0797[_0x48825e(0x33b)],'-')[_0x48825e(0x35e)](_0xd6da34),_0x1a77a2,void 0x0,_0x4b7374);}));}function Wr(_0x23d857,_0x55b7b2,_0x52a862){const _0x1f4ddb=_0x2e5b1c;var _0x188169=y({},_0x23d857[_0x1f4ddb(0x32f)]);_0x52a862!=null&&_0x52a862[_0x1f4ddb(0x45d)]&&_0x188169[_0x1f4ddb(0x344)]===_0x1f4ddb(0x45d)&&(_0x188169[_0x1f4ddb(0x344)]=_0x52a862['colorChannel1']);var _0x861b09=_0x55b7b2[_0x1f4ddb(0x40a)];return!_0x861b09||_0x861b09['length']===0x0||(_0x23d857[_0x1f4ddb(0x33b)]===_0x1f4ddb(0x3e8)&&_0x188169[_0x1f4ddb(0x20a)]&&(_0x188169[_0x1f4ddb(0x20a)]=_0x188169['xlink:href']+_0x55b7b2[_0x1f4ddb(0x2b1)]),Object['entries'](_0x188169)[_0x1f4ddb(0x1cd)](function(_0x5aaa8f){const _0x191caa=_0x1f4ddb;var _0x3de1b9=_0x5aaa8f[0x0],_0xff98fb=_0x5aaa8f[0x1];typeof _0xff98fb=='string'&&(_0x188169[_0x3de1b9]=_0xff98fb[_0x191caa(0x319)](/url\(#(.*)\)/,_0x191caa(0x229)['concat'](_0x55b7b2[_0x191caa(0x2b1)],')')));})),_0x188169;}function Gr(_0x3524c8,_0xc611cd){const _0x5b9c88=_0x2e5b1c;var _0x28ec8c,_0x44729c=_0xc611cd[_0x5b9c88(0x40a)];return!_0x44729c||_0x44729c['length']===0x0?_0x3524c8:_0x3524c8[_0x5b9c88(0x33b)]===_0x5b9c88(0x245)&&(!((_0x28ec8c=_0x3524c8['children'])===null||_0x28ec8c===void 0x0)&&_0x28ec8c[_0x5b9c88(0x1bb)])?y(y({},_0x3524c8),{'children':_0x3524c8[_0x5b9c88(0x1a5)]['map'](function(_0x3755c1){const _0xc29ffb=_0x5b9c88;return typeof _0x3755c1[_0xc29ffb(0x32f)]['id']==_0xc29ffb(0x239)&&_0x44729c&&_0x44729c[_0xc29ffb(0x36d)](_0x3755c1['attrs']['id'])>-0x1?y(y({},_0x3755c1),{'attrs':y(y({},_0x3755c1[_0xc29ffb(0x32f)]),{'id':_0x3755c1[_0xc29ffb(0x32f)]['id']+_0xc611cd[_0xc29ffb(0x2b1)]})}):_0x3755c1;})}):_0x3524c8;}function Yr(){const _0x4d452c=_0x2e5b1c;return Math[_0x4d452c(0x125)]()[_0x4d452c(0x19b)](0x24)[_0x4d452c(0x1db)](0x2,0x8);}Wt[_0x2e5b1c(0x1fc)]=_0x2e5b1c(0x1f8);var Kr={'tag':'svg','attrs':{'fill':'none','viewBox':_0x2e5b1c(0x2b5),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x2ee)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':'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','strokeLinecap':_0x2e5b1c(0x19d),'strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ks=_0x5da15c(function(_0x447d0b,_0x105374){const _0x499f96=_0x2e5b1c;return _0x3d6533(Wt,Object[_0x499f96(0x190)]({},_0x447d0b,{'id':_0x499f96(0x42d),'ref':_0x105374,'icon':Kr}));});ks['displayName']=_0x2e5b1c(0x479);var Xr={'tag':_0x2e5b1c(0x121),'attrs':{'fill':'none','viewBox':_0x2e5b1c(0x24a),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x1a9)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':_0x2e5b1c(0x1dc),'strokeLinecap':'round','strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':_0x2e5b1c(0x46f)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290),'transform':_0x2e5b1c(0x130)}}]}]}],'defIds':[_0x2e5b1c(0x46f)]},Bs=_0x5da15c(function(_0x125f75,_0x11d37c){const _0x443c56=_0x2e5b1c;return _0x3d6533(Wt,Object['assign']({},_0x125f75,{'id':_0x443c56(0x3f2),'ref':_0x11d37c,'icon':Xr}));});Bs['displayName']=_0x2e5b1c(0x30e);const Jr=_0x2e5b1c(0x39b),zr=_0x2e5b1c(0x167),qr=_0x2e5b1c(0x429),Zr=_0x2e5b1c(0x483),Qr=_0x2e5b1c(0x30a),Oe={'onlineStatusIcon':Jr,'onlineStatusTitle':zr,'onlineStatus':qr,'online':Zr,'offline':Qr};function eo(_0x2a92e6){const _0xb9c6e1=_0x2e5b1c;switch(_0x2a92e6){case w[_0xb9c6e1(0x1ac)]:return _0xb9c6e1(0x2e4);case w['CONFLICT']:return _0xb9c6e1(0x154);case w['FETCH_MISS']:return _0xb9c6e1(0x2ba);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w['PENDING']:case w[_0xb9c6e1(0x3c8)]:case w[_0xb9c6e1(0x478)]:return'collabStatus.syncing';case w[_0xb9c6e1(0x421)]:return _0xb9c6e1(0x153);}}function to(_0x40178e){const _0x2c5680=_0x2e5b1c,{status$:_0x220ce6}=_0x40178e,_0x50b9d1=_0x3834a2(_0x220ce6,w[_0x2c5680(0x19a)]),_0x5a5266=_0x1cf47e(_0x12e5b3),_0x4109f4=_0x1cf47e(ae),_0x2965c1=_0x50b9d1!==w[_0x2c5680(0x1ac)],_0x27f770=_0x5a5266['t'](eo(_0x50b9d1)),_0x5bbc24=_0x6c5a82(Oe[_0x2c5680(0x23e)],{[Oe['online']]:_0x2965c1,[Oe[_0x2c5680(0x3e4)]]:!_0x2965c1}),_0x227cf1=_0x2965c1?_0x24bd02[_0x2c5680(0x138)](Bs,null):_0x24bd02[_0x2c5680(0x138)](ks,null),_0x316d8a=_0x23455d(()=>{const _0x4c4b3c=_0x2c5680;_0x2965c1||_0x4109f4[_0x4c4b3c(0x332)]();},[_0x2965c1,_0x4109f4]);function _0x5b8432(){const _0x5c919e=_0x2c5680;return _0x24bd02['createElement']('div',{'className':_0x5bbc24,'onClick':_0x316d8a},_0x24bd02[_0x5c919e(0x138)](_0x5c919e(0x246),{'className':Oe[_0x5c919e(0x1d6)]},_0x227cf1),_0x24bd02['createElement'](_0x5c919e(0x246),{'className':Oe['onlineStatusTitle']},_0x27f770));}return _0x2965c1?_0x5b8432():_0x24bd02['createElement'](_0x2b5af8,{'title':_0x5a5266['t'](_0x2c5680(0x3fd))},_0x5b8432());}var so=Object[_0x2e5b1c(0x2de)],io=Object[_0x2e5b1c(0x41c)],no=(_0x5091d5,_0x437f1e,_0x2ef506,_0x3f7112)=>{const _0x56d370=_0x2e5b1c;for(var _0x196152=_0x3f7112>0x1?void 0x0:_0x3f7112?io(_0x437f1e,_0x2ef506):_0x437f1e,_0x48b97a=_0x5091d5[_0x56d370(0x1bb)]-0x1,_0x48e514;_0x48b97a>=0x0;_0x48b97a--)(_0x48e514=_0x5091d5[_0x48b97a])&&(_0x196152=(_0x3f7112?_0x48e514(_0x437f1e,_0x2ef506,_0x196152):_0x48e514(_0x196152))||_0x196152);return _0x3f7112&&_0x196152&&so(_0x437f1e,_0x2ef506,_0x196152),_0x196152;},ke=(_0x2f2ae0,_0x59147b)=>(_0x3a10ea,_0x5b273d)=>_0x59147b(_0x3a10ea,_0x5b273d,_0x2f2ae0);let ye=class extends _0x36403b{constructor(_0x422063,_0x344e4c,_0x5c608f,_0xae07b5){const _0x3313dd=_0x2e5b1c;super(),l(this,'_status$',new _0x16e81a(w[_0x3313dd(0x19a)])),(this[_0x3313dd(0x1ae)]=_0x422063,this[_0x3313dd(0x303)]=_0x344e4c,this[_0x3313dd(0x3ac)]=_0x5c608f,this[_0x3313dd(0x3c5)]=_0xae07b5,this[_0x3313dd(0x318)](),this['_initStatusListener']());}[_0x2e5b1c(0x141)](){const _0x463575=_0x2e5b1c;this[_0x463575(0x294)](this[_0x463575(0x1ae)]['focused$'][_0x463575(0x195)](_0x498d15(()=>{const _0x15b378=_0x463575,_0x20c3c0=this[_0x15b378(0x1ae)]['getFocusedUnit']();return _0x20c3c0?this['_collaborationController']['getCollabEntity$'](_0x20c3c0[_0x15b378(0x426)]()):_0x8d55e(null);}),_0x498d15(_0xb0948d=>_0xb0948d?_0xb0948d[_0x463575(0x281)]:_0x8d55e(w[_0x463575(0x19a)])))['subscribe'](_0x1aa2b1=>{const _0x100c03=_0x463575;this[_0x100c03(0x279)][_0x100c03(0x244)](_0x1aa2b1);}));}[_0x2e5b1c(0x318)](){const _0x14849e=_0x2e5b1c;this['disposeWithMe'](this[_0x14849e(0x303)][_0x14849e(0x317)](_0x1504a5[_0x14849e(0x377)],()=>_0x5abdc(ro({'status$':this[_0x14849e(0x279)][_0x14849e(0x2f8)]()}),this[_0x14849e(0x3ac)])));}};ye=no([ke(0x0,_0x30b2f2),ke(0x1,_0xbc9637),ke(0x2,_0x5c7fae(_0x5d259e)),ke(0x3,_0x5c7fae(Ae))],ye);function ro(_0x58e1c0){const {status$:_0xa8eac4}=_0x58e1c0;return function(){return _0x24bd02['createElement'](to,{'status$':_0xa8eac4});};}const Vs=_0x5a3236(_0x2e5b1c(0x3ae));var oo=Object['defineProperty'],ao=Object[_0x2e5b1c(0x41c)],co=(_0x4eac98,_0x17d9d4,_0x577b08,_0x1cd73f)=>{const _0x184f90=_0x2e5b1c;for(var _0x3c7e04=_0x1cd73f>0x1?void 0x0:_0x1cd73f?ao(_0x17d9d4,_0x577b08):_0x17d9d4,_0x1e278e=_0x4eac98[_0x184f90(0x1bb)]-0x1,_0x2295b0;_0x1e278e>=0x0;_0x1e278e--)(_0x2295b0=_0x4eac98[_0x1e278e])&&(_0x3c7e04=(_0x1cd73f?_0x2295b0(_0x17d9d4,_0x577b08,_0x3c7e04):_0x2295b0(_0x3c7e04))||_0x3c7e04);return _0x1cd73f&&_0x3c7e04&&oo(_0x17d9d4,_0x577b08,_0x3c7e04),_0x3c7e04;},me=(_0x5bf698,_0x1652af)=>(_0x1758e5,_0x180836)=>_0x1652af(_0x1758e5,_0x180836,_0x5bf698);let We=class extends _0x4bff65{constructor(_0x3945bb,_0x43675f,_0x5a3338,_0x22a5fb,_0x5b9562,_0x547596){const _0x244c03=_0x2e5b1c;super(),this['_urlService']=_0x3945bb,this[_0x244c03(0x2ec)]=_0x43675f,this[_0x244c03(0x1bd)]=_0x5a3338,this[_0x244c03(0x170)]=_0x22a5fb,this['_snapshotService']=_0x5b9562,_0x547596?_0x547596==null||_0x547596[_0x244c03(0x2ed)]()[_0x244c03(0x2e6)](()=>this[_0x244c03(0x42f)]()):(this[_0x244c03(0x2ec)][_0x244c03(0x166)](_0x244c03(0x33a),_0x244c03(0x2ab)),this[_0x244c03(0x42f)]());}async[_0x2e5b1c(0x42f)](){const _0x5be4bb=_0x2e5b1c,_0x2a3a69=this[_0x5be4bb(0x277)][_0x5be4bb(0x402)]('unit'),_0xd800b1=this['_urlService'][_0x5be4bb(0x402)](_0x5be4bb(0x255));if(!_0x2a3a69||!_0xd800b1){this[_0x5be4bb(0x2ec)]['debug']('[DataLoaderController]',_0x5be4bb(0x3cc));return;}switch(Number(_0xd800b1)){case x[_0x5be4bb(0x2c7)]:{const _0x19d023=await this['_loadSheet'](_0x2a3a69);this[_0x5be4bb(0x13c)](_0x19d023);break;}case x[_0x5be4bb(0x1de)]:{await this[_0x5be4bb(0x2d8)](_0x2a3a69);break;}default:{this[_0x5be4bb(0x2ec)][_0x5be4bb(0x30b)](_0x5be4bb(0x33a),_0x5be4bb(0x1c8));break;}}}async[_0x2e5b1c(0x13c)](_0x2e626d){const _0x49d368=_0x2e5b1c;await this['_updateSubUnitFromURLParams'](_0x2e626d),_0x2e626d[_0x49d368(0x1ff)]['pipe'](_0x2123e0(this[_0x49d368(0x3be)]))['subscribe'](_0x516bea=>{const _0xd35c6a=_0x49d368;_0x516bea&&this[_0xd35c6a(0x47c)](_0x516bea);}),this[_0x49d368(0x277)][_0x49d368(0x3b3)][_0x49d368(0x195)](_0x2123e0(this[_0x49d368(0x3be)]))[_0x49d368(0x3c4)](()=>this[_0x49d368(0x25d)](_0x2e626d));}[_0x2e5b1c(0x47c)](_0x2fd766,_0x36e188=!0x1){const _0x25a37b=_0x2e5b1c,_0x91c7de=this['_urlService'][_0x25a37b(0x402)]('subunit');_0x2fd766[_0x25a37b(0x3b5)]()!==_0x91c7de&&this[_0x25a37b(0x277)]['setParam'](_0x25a37b(0x14a),_0x2fd766['getSheetId'](),_0x36e188);}async[_0x2e5b1c(0x25d)](_0x5b1243){const _0x2d694d=_0x2e5b1c;var _0x49d462;const _0x5be226=this['_urlService']['getParam'](_0x2d694d(0x14a));if(!_0x5be226||!_0x5b1243[_0x2d694d(0x378)](_0x5be226)){const _0x5d46b7=_0x5b1243[_0x2d694d(0x1ea)]()[0x0],_0x3d6a88=_0x5b1243['getSheetBySheetId'](_0x5d46b7);if(!_0x3d6a88)return;this[_0x2d694d(0x47c)](_0x3d6a88,!0x0),await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243['getUnitId'](),'subUnitId':_0x5d46b7});return;}((_0x49d462=_0x5b1243[_0x2d694d(0x29a)]())==null?void 0x0:_0x49d462[_0x2d694d(0x3b5)]())!==_0x5be226&&await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243[_0x2d694d(0x426)](),'subUnitId':_0x5be226});}async[_0x2e5b1c(0x1c3)](_0x311918){const _0x201390=_0x2e5b1c;let _0x34c185=0x0;const _0x135be9=await this[_0x201390(0x170)][_0x201390(0x1cb)](_0x311918);return _0x135be9&&(_0x135be9['awaitingChangeset']||_0x135be9['mutations'][_0x201390(0x1bb)]!==0x0)&&(_0x34c185=_0x135be9[_0x201390(0x480)]),_0x34c185===0x0&&this['_logService'][_0x201390(0x166)](_0x201390(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x201390(0x37a)](_0x311918,_0x34c185);}async[_0x2e5b1c(0x2d8)](_0x2fce38){const _0xb579c2=_0x2e5b1c;let _0x1ecd21=0x0;const _0x331be3=await this['_localCacheService'][_0xb579c2(0x1cb)](_0x2fce38);return _0x331be3&&(_0x331be3['awaitingChangeset']||_0x331be3[_0xb579c2(0x225)]['length']!==0x0)&&(_0x1ecd21=_0x331be3[_0xb579c2(0x480)]),_0x1ecd21===0x0&&this[_0xb579c2(0x2ec)][_0xb579c2(0x166)](_0xb579c2(0x33a),_0xb579c2(0x1d1)),this[_0xb579c2(0x48a)][_0xb579c2(0x266)](_0x2fce38,_0x1ecd21);}};We=co([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],We),me(0x0,Vs),me(0x1,_0x1cafe9),me(0x2,_0x36a317),me(0x3,_0x5c7fae(D)),me(0x4,_0x5c7fae(_0x208dce)),me(0x5,_0x5723b6(_0x372f27))],We);var ho=Object[_0x2e5b1c(0x2de)],lo=Object[_0x2e5b1c(0x41c)],_o=(_0x15d690,_0x5bfdec,_0x133cdb,_0x356a42)=>{const _0x36a38f=_0x2e5b1c;for(var _0x41e69a=_0x356a42>0x1?void 0x0:_0x356a42?lo(_0x5bfdec,_0x133cdb):_0x5bfdec,_0x4301c7=_0x15d690[_0x36a38f(0x1bb)]-0x1,_0x2f5aee;_0x4301c7>=0x0;_0x4301c7--)(_0x2f5aee=_0x15d690[_0x4301c7])&&(_0x41e69a=(_0x356a42?_0x2f5aee(_0x5bfdec,_0x133cdb,_0x41e69a):_0x2f5aee(_0x41e69a))||_0x41e69a);return _0x356a42&&_0x41e69a&&ho(_0x5bfdec,_0x133cdb,_0x41e69a),_0x41e69a;},us=(_0x4c94d2,_0x5488fd)=>(_0x1797bc,_0x518792)=>_0x5488fd(_0x1797bc,_0x518792,_0x4c94d2);const uo='DEFAULT_FILE_NAME',mo=_0x2e5b1c(0x261);let Ge=class extends _0x36403b{constructor(_0x476861,_0x406278){const _0x5e3cba=_0x2e5b1c;super(),this[_0x5e3cba(0x1ae)]=_0x476861,this[_0x5e3cba(0x338)]=_0x406278,this['_init']();}['_init'](){const _0x48d5cf=_0x2e5b1c;this['disposeWithMe'](_0x29a7b(this['_univerInstanceService'][_0x48d5cf(0x137)][_0x48d5cf(0x3c4)](()=>{const _0x45f52f=_0x48d5cf;var _0x731e34;const _0x418af1=this[_0x45f52f(0x1ae)][_0x45f52f(0x1e7)]();let _0x32d944=(_0x731e34=this['_configService']['getConfig'](uo))!=null?_0x731e34:mo;_0x418af1 instanceof _0x450c96&&(_0x32d944=_0x418af1[_0x45f52f(0x397)]),document[_0x45f52f(0x454)]=_0x32d944;})));}};Ge=_o([_0x486866(_0x446a6f['Ready'],Ge),us(0x0,_0x30b2f2),us(0x1,_0x401b9d)],Ge);var fo=Object['defineProperty'],go=Object[_0x2e5b1c(0x41c)],So=(_0x20ccd4,_0xa7a599,_0x30bddd,_0x351b51)=>{const _0x5931e8=_0x2e5b1c;for(var _0x4ff509=_0x351b51>0x1?void 0x0:_0x351b51?go(_0xa7a599,_0x30bddd):_0xa7a599,_0x246c59=_0x20ccd4[_0x5931e8(0x1bb)]-0x1,_0x299a48;_0x246c59>=0x0;_0x246c59--)(_0x299a48=_0x20ccd4[_0x246c59])&&(_0x4ff509=(_0x351b51?_0x299a48(_0xa7a599,_0x30bddd,_0x4ff509):_0x299a48(_0x4ff509))||_0x4ff509);return _0x351b51&&_0x4ff509&&fo(_0xa7a599,_0x30bddd,_0x4ff509),_0x4ff509;},ds=(_0xc6c793,_0x7866ec)=>(_0x1503cc,_0x4da9e9)=>_0x7866ec(_0x1503cc,_0x4da9e9,_0xc6c793);let Pt=class{constructor(_0x167378,_0x2858dd){const _0x59bf1a=_0x2e5b1c;this[_0x59bf1a(0x338)]=_0x167378,this[_0x59bf1a(0x17e)]=_0x2858dd;}async[_0x2e5b1c(0x22f)](_0xf35094,_0xd7318f){const _0x13a6ac=_0x2e5b1c;var _0x3f4701;const {unitID:_0x2f460e,type:_0x48b72e,revision:_0xf4c8b3=0x0}=_0xd7318f,_0x1f16ff=this['_getSnapshotAPIPrefix']()+'/'+_0x48b72e+_0x13a6ac(0x2d9)+_0x2f460e+_0x13a6ac(0x48b)+_0xf4c8b3,_0x32cdeb=(await this[_0x13a6ac(0x17e)][_0x13a6ac(0x18f)](_0x1f16ff))[_0x13a6ac(0x12f)],_0x261b88=(_0x3f4701=_0x32cdeb[_0x13a6ac(0x35d)])==null?void 0x0:_0x3f4701['workbook'];if(_0x261b88){const _0xbe1b36=_0x261b88==null?void 0x0:_0x261b88[_0x13a6ac(0x2e1)],_0x4a64d0=_0x1d8b96[_0x13a6ac(0x2f9)](_0x5ee83a(_0xbe1b36));_0x261b88[_0x13a6ac(0x2e1)]=_0x4a64d0,Object[_0x13a6ac(0x359)](_0x261b88['sheets'])['forEach'](([,_0x4db5cc])=>{const _0x172de4=_0x13a6ac,_0x3df22c=_0x4db5cc[_0x172de4(0x2e1)],_0x50f2c0=_0x1d8b96['encode'](_0x5ee83a(_0x3df22c));_0x4db5cc[_0x172de4(0x2e1)]=_0x50f2c0;});}return _0x32cdeb;}async[_0x2e5b1c(0x2f7)](_0x17df4f,_0x200afb){const _0x2079b0=_0x2e5b1c,{unitID:_0x224529,type:_0x334130,blockID:_0x43c7e1}=_0x200afb,_0x8c596c=this[_0x2079b0(0x126)]()+'/'+_0x334130+_0x2079b0(0x2d9)+_0x224529+_0x2079b0(0x27d)+_0x43c7e1;return(await this[_0x2079b0(0x17e)][_0x2079b0(0x18f)](_0x8c596c))[_0x2079b0(0x12f)];}async[_0x2e5b1c(0x160)](_0x263a2a,_0x293c66){const _0x25aafa=_0x2e5b1c,{unitID:_0x558692,type:_0x27e044,from:_0x333fa8,to:_0x58959d}=_0x293c66,_0x195490=this[_0x25aafa(0x126)]()+'/'+_0x27e044+_0x25aafa(0x2d9)+_0x558692+'/fetchmissing?from='+_0x333fa8+'&to='+_0x58959d;return(await this[_0x25aafa(0x17e)][_0x25aafa(0x18f)](_0x195490))[_0x25aafa(0x12f)];}['_getSnapshotAPIPrefix'](){const _0x37701e=_0x2e5b1c;var _0xe5dfdb;return(_0xe5dfdb=this[_0x37701e(0x338)][_0x37701e(0x142)](dn))!=null?_0xe5dfdb:this[_0x37701e(0x126)]();}[_0x2e5b1c(0x126)](){const _0x28a282=_0x2e5b1c;var _0x264f27;return(_0x264f27=this[_0x28a282(0x338)][_0x28a282(0x142)](_n))!=null?_0x264f27:un;}async[_0x2e5b1c(0x3c6)](_0x7cd71a,_0x1cc224){const _0x22f3d2=_0x2e5b1c,_0x17fe1f='/universer-api/snapshot/'+_0x1cc224[_0x22f3d2(0x255)]+_0x22f3d2(0x2d9)+_0x1cc224[_0x22f3d2(0x3a4)]+'/resources';return(await this[_0x22f3d2(0x17e)][_0x22f3d2(0x18f)](_0x17fe1f,{'params':{'resourceId':JSON[_0x22f3d2(0x3d7)](_0x1cc224[_0x22f3d2(0x38f)])}}))['body'];}[_0x2e5b1c(0x222)](){const _0x1f93ad=_0x2e5b1c;throw new Error(_0x1f93ad(0x379));}[_0x2e5b1c(0x2fb)](){const _0x3961c5=_0x2e5b1c;throw new Error(_0x3961c5(0x379));}[_0x2e5b1c(0x27e)](){const _0x69905c=_0x2e5b1c;throw new Error(_0x69905c(0x379));}};Pt=So([ds(0x0,_0x401b9d),ds(0x1,_0x5c7fae(_0x35343d))],Pt);var po=Object[_0x2e5b1c(0x2de)],vo=Object[_0x2e5b1c(0x41c)],Io=(_0x396474,_0x4dd039,_0x4ad887,_0x48945c)=>{for(var _0x4d4b0d=_0x48945c>0x1?void 0x0:_0x48945c?vo(_0x4dd039,_0x4ad887):_0x4dd039,_0xbf08e1=_0x396474['length']-0x1,_0x21785c;_0xbf08e1>=0x0;_0xbf08e1--)(_0x21785c=_0x396474[_0xbf08e1])&&(_0x4d4b0d=(_0x48945c?_0x21785c(_0x4dd039,_0x4ad887,_0x4d4b0d):_0x21785c(_0x4d4b0d))||_0x4d4b0d);return _0x48945c&&_0x4d4b0d&&po(_0x4dd039,_0x4ad887,_0x4d4b0d),_0x4d4b0d;},De=(_0x554bfa,_0x146012)=>(_0x359aef,_0x2fa465)=>_0x146012(_0x359aef,_0x2fa465,_0x554bfa);let Nt=class extends _0x30a328{constructor(_0x598dad,_0x51ee93,_0x9db795,_0x398779,_0x584784){const _0xd0ce1a=_0x2e5b1c;super(_0x598dad,_0x51ee93,_0x9db795),this['_transformService']=_0x398779,this[_0xd0ce1a(0x2ec)]=_0x584784;}['transformUndoRedo'](_0x186e82,_0xa81ceb){const _0x2e0515=_0x2e5b1c,_0x4fb827=this[_0x2e0515(0x48e)](_0x186e82);if(_0x4fb827)try{const _0x40a744=this['_transformStack'](_0x4fb827,_0xa81ceb);this[_0x2e0515(0x45b)](_0x186e82,_0x40a744);}catch(_0x7e0aa5){this['_logService'][_0x2e0515(0x30b)](_0x2e0515(0x25f),_0x7e0aa5),this[_0x2e0515(0x241)](_0x186e82);}const _0x187057=this['_getRedoStack'](_0x186e82);if(_0x187057)try{const _0x508242=this[_0x2e0515(0x339)](_0x187057,_0xa81ceb);this['_substituteRedoStack'](_0x186e82,_0x508242);}catch(_0x49e9ba){this[_0x2e0515(0x2ec)][_0x2e0515(0x30b)](_0x49e9ba),this[_0x2e0515(0x453)](_0x186e82);}}[_0x2e5b1c(0x241)](_0x34dd9a){const _0x1aca6f=_0x2e5b1c,_0x10d957=this[_0x1aca6f(0x48e)](_0x34dd9a);_0x10d957&&(_0x10d957[_0x1aca6f(0x1bb)]=0x0,this[_0x1aca6f(0x384)]());}[_0x2e5b1c(0x453)](_0x42eb99){const _0x38133a=_0x2e5b1c,_0x2e4f0b=this[_0x38133a(0x19e)](_0x42eb99);_0x2e4f0b&&(_0x2e4f0b[_0x38133a(0x1bb)]=0x0,this[_0x38133a(0x384)]());}[_0x2e5b1c(0x45b)](_0x19029d,_0x129860){const _0x2d99d7=_0x2e5b1c;this[_0x2d99d7(0x15c)]['set'](_0x19029d,_0x129860),this['_updateStatus']();}[_0x2e5b1c(0x346)](_0x29ab95,_0x144162){const _0x4f3c91=_0x2e5b1c;this[_0x4f3c91(0x207)]['set'](_0x29ab95,_0x144162),this[_0x4f3c91(0x384)]();}[_0x2e5b1c(0x339)](_0x4b7d60,_0x494f5f){const _0x62ce0e=_0x2e5b1c,_0x4baab0=[];let _0x5d9c48=_0x494f5f,_0x50c93b=_0x494f5f;for(let _0x10bdf9=_0x4b7d60[_0x62ce0e(0x1bb)]-0x1;_0x10bdf9>=0x0;_0x10bdf9--){const {unitID:_0x1c3cbf,undoMutations:_0x4489e1,redoMutations:_0x18060f}=_0x4b7d60[_0x10bdf9],_0x3ddd2f=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x5d9c48,_0x4489e1),_0x15873a=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x50c93b,_0x18060f);if(_0x364023(_0x3ddd2f)||_0x364023(_0x15873a)){this['_logService'][_0x62ce0e(0x30b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3ddd2f,_0x15873a);break;}_0x5d9c48=_0x3ddd2f[_0x62ce0e(0x145)],_0x50c93b=_0x15873a[_0x62ce0e(0x145)],_0x4baab0[_0x62ce0e(0x2f1)]({'unitID':_0x1c3cbf,'undoMutations':_0x3ddd2f[_0x62ce0e(0x366)],'redoMutations':_0x15873a[_0x62ce0e(0x366)]});}return _0x4baab0['reverse']();}};Nt=Io([De(0x0,_0x30b2f2),De(0x1,_0x36a317),De(0x2,_0x693680),De(0x3,_0x4e0f96),De(0x4,_0x1cafe9)],Nt);class Eo extends _0x4bff65{constructor(){const _0x12e687=_0x2e5b1c;super(),l(this,'urlChange$'),this['urlChange$']=_0x4dbad7(window,_0x12e687(0x12b))['pipe'](_0x2123e0(this[_0x12e687(0x3be)]),_0x1aec94(0x1),_0x543013(void 0x0));}[_0x2e5b1c(0x136)](_0x1855f1,_0x47adba,_0x13933a=!0x1){const _0x5758dd=_0x2e5b1c,_0x12c398=new URL(window[_0x5758dd(0x162)][_0x5758dd(0x2e7)]);_0x12c398[_0x5758dd(0x202)][_0x5758dd(0x1e1)](_0x1855f1,_0x47adba),_0x13933a?window[_0x5758dd(0x1bc)]['replaceState']('','',_0x12c398['toString']()):window['history'][_0x5758dd(0x3f5)]('','',_0x12c398[_0x5758dd(0x19b)]());}[_0x2e5b1c(0x455)](_0x119789,_0x1d805e=!0x1){const _0x28b060=_0x2e5b1c,_0x141de5=new URL(window[_0x28b060(0x162)][_0x28b060(0x2e7)]);_0x141de5[_0x28b060(0x202)][_0x28b060(0x18d)](_0x119789),_0x1d805e?window[_0x28b060(0x1bc)][_0x28b060(0x433)]('','',_0x141de5['toString']()):window[_0x28b060(0x1bc)][_0x28b060(0x3f5)]('','',_0x141de5[_0x28b060(0x19b)]());}[_0x2e5b1c(0x402)](_0x3b214b){const _0x20948f=_0x2e5b1c;var _0x40c5d0;return(_0x40c5d0=new URL(window['location']['href'])[_0x20948f(0x202)][_0x20948f(0x18f)](_0x3b214b))!=null?_0x40c5d0:void 0x0;}}const ft=_0x2e5b1c(0x2c8),Co='collab-text-range-',bo=_0x2e5b1c(0x35a),we=0x6,To=1.5,gt=0x4,Ro=1.5,Oo='rgba(255,\x20255,\x20255,\x200.01)';class ms{constructor(_0x228d78,_0x24fb9c,_0x35e9ac,_0x36b547){const _0x3f364e=_0x2e5b1c;l(this,'_shapes',[]),l(this,_0x3f364e(0x1b1),null),l(this,'_textBubble',null),l(this,_0x3f364e(0x21a),null),l(this,_0x3f364e(0x150),null),l(this,_0x3f364e(0x29f),null),(this['_cursor']=_0x228d78,this['_scene']=_0x24fb9c,this[_0x3f364e(0x43a)]=_0x35e9ac,this[_0x3f364e(0x2be)]=_0x36b547,this[_0x3f364e(0x357)]());}set[_0x2e5b1c(0x308)](_0x3e9e9a){const _0x5a3ca0=_0x2e5b1c;_0x3e9e9a?(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x424)](),this[_0x5a3ca0(0x2aa)]&&this['_textBubble']['show']()):(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x367)](),this[_0x5a3ca0(0x2aa)]&&this[_0x5a3ca0(0x2aa)][_0x5a3ca0(0x424)]());}['dispose'](){const _0x40836f=_0x2e5b1c;for(const _0x4d5bc7 of this['_shapes'])_0x4d5bc7[_0x40836f(0x2fe)]();this[_0x40836f(0x2aa)]&&this[_0x40836f(0x2aa)][_0x40836f(0x2fe)](),this['_anchorDot']&&this[_0x40836f(0x21a)][_0x40836f(0x2fe)](),this[_0x40836f(0x1b1)]&&this[_0x40836f(0x1b1)][_0x40836f(0x2fe)](),this[_0x40836f(0x29f)]&&this[_0x40836f(0x29f)]();}['_render'](){const _0x129216=_0x2e5b1c;var _0x455184;const {_docSkeleton:_0x2e46bd,_document:_0x5191df}=this,{color:_0x28b3c4,name:_0x5cba2e,ranges:_0x4952c2}=this[_0x129216(0x37e)],_0x2e16c8=_0x5191df[_0x129216(0x240)](),{docsLeft:_0x53fc1c,docsTop:_0x54c491}=_0x2e16c8,_0x3b9813=new _0x5cf9b0(_0x2e16c8,_0x2e46bd);for(const {startOffset:_0x44e548,endOffset:_0x493825,collapsed:_0x3cedd8,isActive:_0x5d9ec0}of _0x4952c2){const _0x8bc785=_0x2e46bd[_0x129216(0x25e)](_0x44e548),_0x4a45a6=_0x2e46bd[_0x129216(0x25e)](_0x493825);if(_0x5d9ec0){const {contentBoxPointGroup:_0x26212b}=_0x3b9813[_0x129216(0x2cc)](_0x4a45a6,_0x4a45a6);if(_0x26212b[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x3dc)](_0x28b3c4,_0x26212b,_0x53fc1c,_0x54c491,_0x5cba2e),this[_0x129216(0x29f)]=this[_0x129216(0x3d2)]();}if(!_0x3cedd8&&_0x8bc785&&_0x4a45a6){if(_0x29cf68(_0x8bc785,_0x4a45a6)){const _0x55228b=new _0xbfc352(_0x2e16c8,_0x2e46bd),{pointGroup:_0x3355cd}=(_0x455184=_0x55228b[_0x129216(0x2cc)](_0x8bc785,_0x4a45a6))!=null?_0x455184:{};if(_0x3355cd==null||_0x3355cd[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x122)](_0x28b3c4,_0x3355cd,_0x53fc1c,_0x54c491);}else{const {contentBoxPointGroup:_0x4c8828}=_0x3b9813['getRangePointData'](_0x8bc785,_0x4a45a6);if(_0x4c8828['length']===0x0)continue;this[_0x129216(0x1e2)](_0x28b3c4,_0x4c8828,_0x53fc1c,_0x54c491);}}}}['_drawAnchor'](_0x17c1ae,_0x38db41,_0x38ab4c,_0x29c95b,_0x1e9dcf){const _0x1f66e8=_0x2e5b1c,_0x5e7cb7=this['_getAnchorBounding'](_0x38db41),{left:_0x42bf0b,top:_0x3e7134,height:_0x2eb46d}=_0x5e7cb7,_0x4d89fd=this[_0x1f66e8(0x340)](),_0x4c3db8=Ro/_0x4d89fd,_0x1406e4=new _0x170a21(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b,'height':_0x2eb46d,'width':To,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':_0x4c3db8,'stroke':Oo,'evented':!0x0});this[_0x1f66e8(0x1b1)]=_0x1406e4,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x1406e4,_0x2b5c4c);const _0x134887=new _0x170a21(ft+_0x3cea4b[_0x1f66e8(0x1ce)](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-gt/0x2,'height':gt,'width':gt,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':0x0,'stroke':_0x17c1ae||_0x3c99d3(_0x44cb7f[_0x1f66e8(0x13e)],0x0),'evented':!0x1});this[_0x1f66e8(0x21a)]=_0x134887,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x134887,_0x2b5c4c);const _0x4a8bae=new nt(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-Ue,'text':_0x1e9dcf,'color':_0x17c1ae});this['_textBubble']=_0x4a8bae,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x4a8bae,_0x2b5c4c),this[_0x1f66e8(0x308)]=!0x1;}[_0x2e5b1c(0x3d2)](){const _0x24e0c9=_0x2e5b1c,_0x536b2f=this[_0x24e0c9(0x1b1)][_0x24e0c9(0x3b9)][_0x24e0c9(0x3cb)](()=>{const _0x27f4da=_0x24e0c9;this[_0x27f4da(0x308)]=!0x0;}),_0x2af6f7=this['_anchor'][_0x24e0c9(0x3d3)][_0x24e0c9(0x3cb)](()=>{const _0x43513b=_0x24e0c9;this[_0x43513b(0x150)]&&clearTimeout(this['_hideTimer']),this[_0x43513b(0x150)]=setTimeout(()=>{const _0x2fc2a7=_0x43513b;this[_0x2fc2a7(0x308)]=!0x1;},0x7d0);});return()=>{const _0x36b386=_0x24e0c9;_0x536b2f[_0x36b386(0x1c1)](),_0x2af6f7['unsubscribe']();};}[_0x2e5b1c(0x1e2)](_0x7eca3f,_0xaf1a1b,_0x3385ab,_0x7f63f5){const _0x7c7343=_0x2e5b1c,_0x16d4e5=new _0x21fa84(_0x7eca3f)[_0x7c7343(0x1ee)](0.2)[_0x7c7343(0x282)](),_0x1f70fe=new _0x532a25(Co+_0x3cea4b[_0x7c7343(0x1ce)](we),{'pointsGroup':_0xaf1a1b,'fill':_0x16d4e5||_0x3c99d3(_0x44cb7f[_0x7c7343(0x13e)],0.2),'left':_0x3385ab,'top':_0x7f63f5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7c7343(0x3eb)][_0x7c7343(0x2f1)](_0x1f70fe),this[_0x7c7343(0x173)][_0x7c7343(0x2eb)](_0x1f70fe,_0x2b5c4c);}[_0x2e5b1c(0x122)](_0x4a2108,_0x39b540,_0x147308,_0x2d4aa6){const _0x47f56e=_0x2e5b1c,_0xc325cd=new _0x21fa84(_0x4a2108)['setAlpha'](0.2)[_0x47f56e(0x282)](),_0x1da917=new _0x532a25(bo+_0x3cea4b[_0x47f56e(0x1ce)](we),{'pointsGroup':_0x39b540,'fill':_0xc325cd||_0x3c99d3(_0x44cb7f[_0x47f56e(0x13e)],0.2),'left':_0x147308,'top':_0x2d4aa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x47f56e(0x3eb)][_0x47f56e(0x2f1)](_0x1da917),this[_0x47f56e(0x173)][_0x47f56e(0x2eb)](_0x1da917,_0x2b5c4c);}['_getAnchorBounding'](_0x29a17f){const _0x48c319=_0x29a17f[0x0],_0x1b17ec=_0x48c319[0x0],_0x2d9c70=_0x48c319[0x2],{x:_0x49feda,y:_0x151fc7}=_0x1b17ec,{x:_0x200310,y:_0x3b4793}=_0x2d9c70;return{'left':_0x49feda,'top':_0x151fc7,'width':_0x200310-_0x49feda,'height':_0x3b4793-_0x151fc7};}[_0x2e5b1c(0x340)](){const _0x35040b=_0x2e5b1c,{scaleX:_0xe8f76e,scaleY:_0x43e3a5}=this[_0x35040b(0x173)][_0x35040b(0x322)]();return Math[_0x35040b(0x123)](_0xe8f76e,_0x43e3a5);}}var Do=Object[_0x2e5b1c(0x2de)],wo=Object[_0x2e5b1c(0x41c)],Po=(_0x1dbce5,_0x1710b3,_0x23054e,_0x3388cd)=>{for(var _0x988116=_0x3388cd>0x1?void 0x0:_0x3388cd?wo(_0x1710b3,_0x23054e):_0x1710b3,_0x4c3f2c=_0x1dbce5['length']-0x1,_0x527194;_0x4c3f2c>=0x0;_0x4c3f2c--)(_0x527194=_0x1dbce5[_0x4c3f2c])&&(_0x988116=(_0x3388cd?_0x527194(_0x1710b3,_0x23054e,_0x988116):_0x527194(_0x988116))||_0x988116);return _0x3388cd&&_0x988116&&Do(_0x1710b3,_0x23054e,_0x988116),_0x988116;},Be=(_0x2ffc6c,_0x3e9b92)=>(_0x1a2a12,_0x21dbfb)=>_0x3e9b92(_0x1a2a12,_0x21dbfb,_0x2ffc6c);let Ye=class extends _0x4bff65{constructor(_0xaa07c4,_0x5bf71c,_0x22f7ea,_0x45f098,_0x30d301){const _0x3c6301=_0x2e5b1c;super(),l(this,_0x3c6301(0x313),[]),l(this,_0x3c6301(0x45c),[]),(this['_context']=_0xaa07c4,this[_0x3c6301(0x431)]=_0x5bf71c,this['_collabCursorController']=_0x22f7ea,this[_0x3c6301(0x1bd)]=_0x45f098,this[_0x3c6301(0x382)]=_0x30d301,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x33a0ef=_0x2e5b1c,_0x34c387=this[_0x33a0ef(0x1c4)][_0x33a0ef(0x275)],_0x21785a=this[_0x33a0ef(0x431)];this[_0x33a0ef(0x294)](_0x1ee3b6([this['_collabCursorController'][_0x33a0ef(0x16c)](_0x34c387),this[_0x33a0ef(0x382)][_0x33a0ef(0x221)]])[_0x33a0ef(0x195)](_0x4b551a(([_0x1eac69,_0x36f406])=>({'skeleton':_0x21785a[_0x33a0ef(0x2bc)](),'cursors':[..._0x1eac69['values']()][_0x33a0ef(0x177)](_0x353798=>({..._0x353798,'color':_0x36f406[_0x353798['color']]}))})))[_0x33a0ef(0x3c4)](_0xf68629=>{const _0xfb2ac0=_0x33a0ef;if(this[_0xfb2ac0(0x2d2)](),_0xf68629){const {skeleton:_0x21f296,cursors:_0x1524ac}=_0xf68629;this[_0xfb2ac0(0x323)](_0x21f296,_0x1524ac);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2e5b1c(0x323)](_0x3018ef,_0x100a91){const _0x3fef4f=_0x2e5b1c,{scene:_0x178353,mainComponent:_0x438150}=this[_0x3fef4f(0x1c4)],_0x28a636=_0x100a91[_0x3fef4f(0x1c7)](_0x5c8882=>new ms(_0x5c8882,_0x178353,_0x3018ef,_0x438150));this[_0x3fef4f(0x313)]=_0x28a636,this['_cursors']=_0x100a91;}[_0x2e5b1c(0x171)](){const _0x3822ac=_0x2e5b1c;this[_0x3822ac(0x2d2)]();const {scene:_0x2c4d4c,mainComponent:_0x219cd4}=this['_context'],_0x917812=this[_0x3822ac(0x431)][_0x3822ac(0x2bc)](),_0x4c44bb=this[_0x3822ac(0x45c)][_0x3822ac(0x1c7)](_0x2c9ac2=>new ms(_0x2c9ac2,_0x2c4d4c,_0x917812,_0x219cd4));this[_0x3822ac(0x313)]=_0x4c44bb;}[_0x2e5b1c(0x2d2)](){const _0x4d1dd0=_0x2e5b1c;this[_0x4d1dd0(0x313)][_0x4d1dd0(0x1cd)](_0x10280d=>_0x10280d[_0x4d1dd0(0x2fe)]()),this[_0x4d1dd0(0x313)]=[];}[_0x2e5b1c(0x26d)](){const _0x405d9d=_0x2e5b1c,_0x1093bf=[_0x23717a['id']];this[_0x405d9d(0x294)](this['_commandService'][_0x405d9d(0x20e)](_0xba8f1f=>{const _0x19451d=_0x405d9d;_0x1093bf['includes'](_0xba8f1f['id'])&&_0xba8f1f[_0x19451d(0x27b)][_0x19451d(0x275)]===this['_context'][_0x19451d(0x275)]&&this[_0x19451d(0x171)]();}));}[_0x2e5b1c(0x1d5)](){const _0x2395f8=_0x2e5b1c;this[_0x2395f8(0x294)](_0x240b02(this['_context'][_0x2395f8(0x18e)][_0x2395f8(0x2ae)])[_0x2395f8(0x195)](_0x48e324(_0x199e6a=>_0x199e6a['type']===_0x277f5f['resize']),_0x326ad7(0x10))[_0x2395f8(0x3c4)](()=>{const _0x2402f5=_0x2395f8;this[_0x2402f5(0x171)]();}));}};Ye=Po([_0x486866(_0x446a6f[_0x2e5b1c(0x2bf)],Ye),Be(0x1,_0x5c7fae(_0x2398d4)),Be(0x2,_0x5c7fae(fe)),Be(0x3,_0x36a317),Be(0x4,_0x5c7fae(_0x27c464))],Ye);var No=Object[_0x2e5b1c(0x2de)],yo=Object[_0x2e5b1c(0x41c)],Mo=(_0x1d9940,_0x5c56b5,_0xf71e76,_0x448ae6)=>{const _0x4a40e3=_0x2e5b1c;for(var _0x3f0dba=_0x448ae6>0x1?void 0x0:_0x448ae6?yo(_0x5c56b5,_0xf71e76):_0x5c56b5,_0x199022=_0x1d9940[_0x4a40e3(0x1bb)]-0x1,_0x5442f8;_0x199022>=0x0;_0x199022--)(_0x5442f8=_0x1d9940[_0x199022])&&(_0x3f0dba=(_0x448ae6?_0x5442f8(_0x5c56b5,_0xf71e76,_0x3f0dba):_0x5442f8(_0x3f0dba))||_0x3f0dba);return _0x448ae6&&_0x3f0dba&&No(_0x5c56b5,_0xf71e76,_0x3f0dba),_0x3f0dba;},St=(_0x263ff4,_0x51351d)=>(_0x3f276a,_0x4024b2)=>_0x51351d(_0x3f276a,_0x4024b2,_0x263ff4);let st=class{constructor(_0x43959b,_0x51b8db,_0x1569db){const _0x1ed1e8=_0x2e5b1c;this[_0x1ed1e8(0x338)]=_0x43959b,this[_0x1ed1e8(0x17e)]=_0x51b8db,this[_0x1ed1e8(0x176)]=_0x1569db,this[_0x1ed1e8(0x124)]();}[_0x2e5b1c(0x124)](){const _0x45c09b=_0x2e5b1c;this['_httpService'][_0x45c09b(0x17b)]({'priority':0x1,'interceptor':(_0x164df8,_0x5217e4)=>_0x5217e4(_0x164df8)['pipe'](_0x4c98f9(async _0x663063=>{const _0x1e43ef=_0x45c09b,_0x492331=_0x663063;if(_0x492331['status']===0x191&&window['confirm'](this[_0x1e43ef(0x176)]['t'](_0x1e43ef(0x295)))){const _0x4a7df5=window[_0x1e43ef(0x2c1)](window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]);window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]=this['_getLoginPath']()+_0x1e43ef(0x390)+_0x4a7df5;}return _0x492331;}))});}[_0x2e5b1c(0x370)](){const _0x253540=_0x2e5b1c;var _0x4f08ee;return(_0x4f08ee=this[_0x253540(0x338)]['getConfig'](wn))!=null?_0x4f08ee:Pn;}};st=Mo([St(0x0,_0x401b9d),St(0x1,_0x5c7fae(_0x35343d)),St(0x2,_0x5c7fae(_0x12e5b3))],st);var Ao=Object[_0x2e5b1c(0x2de)],Uo=Object[_0x2e5b1c(0x41c)],Lo=(_0x489c4b,_0x104b09,_0x161ad0,_0x5b62f1)=>{for(var _0x3f617a=_0x5b62f1>0x1?void 0x0:_0x5b62f1?Uo(_0x104b09,_0x161ad0):_0x104b09,_0xeca85c=_0x489c4b['length']-0x1,_0x13e574;_0xeca85c>=0x0;_0xeca85c--)(_0x13e574=_0x489c4b[_0xeca85c])&&(_0x3f617a=(_0x5b62f1?_0x13e574(_0x104b09,_0x161ad0,_0x3f617a):_0x13e574(_0x3f617a))||_0x3f617a);return _0x5b62f1&&_0x3f617a&&Ao(_0x104b09,_0x161ad0,_0x3f617a),_0x3f617a;},fs=(_0x3865c6,_0x50709a)=>(_0x92ef63,_0x48a45a)=>_0x50709a(_0x92ef63,_0x48a45a,_0x3865c6);const $o='AUTHZ_URL_KEY',jo=_0x2e5b1c(0x1eb);let yt=class extends _0x36403b{constructor(_0x3127a6,_0x1400d7){const _0x582f24=_0x2e5b1c;super(),this[_0x582f24(0x423)]=_0x3127a6,this[_0x582f24(0x338)]=_0x1400d7,this[_0x582f24(0x285)]();}['_initMergeInterceptor'](){const _0x3fe165=_0x2e5b1c,_0x374d96=this;this[_0x3fe165(0x294)](this[_0x3fe165(0x423)][_0x3fe165(0x17b)]({'priority':0x3e7,'interceptor':_0x441ebe({'isMatch'(_0xc625b4){const _0x93d93a=_0x3fe165;var _0x37e04a;if(_0xc625b4[_0x93d93a(0x41a)]==='POST'&&((_0x37e04a=_0xc625b4[_0x93d93a(0x296)])!=null&&_0x37e04a[_0x93d93a(0x12f)])){const {objectID:_0x5c2627,objectType:_0x17205e}=_0xc625b4[_0x93d93a(0x296)][_0x93d93a(0x12f)]||{};if(!_0x5c2627||_0x17205e===void 0x0)return!0x1;const _0x469d5b=_0x374d96['_getAPIPrefixPath']()+'/'+_0x17205e+_0x93d93a(0x489)+_0x5c2627+_0x93d93a(0x3df);if(_0xc625b4[_0x93d93a(0x2c3)]===_0x469d5b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1a8894){const _0x683aa3=_0x3fe165;var _0x42b6b0;return(_0x42b6b0=_0x1a8894[_0x683aa3(0x296)])==null?void 0x0:_0x42b6b0[_0x683aa3(0x12f)];},'mergeParamsToRequest'(_0x23c52e,_0x3376e7){const _0x155127=_0x3fe165,_0x97940b=_0x374d96[_0x155127(0x2c9)]()+_0x155127(0x472),_0x56eb28=_0x23c52e[_0x155127(0x212)]((_0x200444,_0x13743a)=>{const _0x2650df=_0x155127,{unitID:_0x85cdb8,objectID:_0x586dfe,objectType:_0x4c2fab,actions:_0x36eb93}=_0x13743a;return _0x200444[_0x85cdb8]||(_0x200444[_0x85cdb8]={}),_0x200444[_0x85cdb8][_0x586dfe]||(_0x200444[_0x85cdb8][_0x586dfe]={'objectID':_0x586dfe,'objectType':_0x4c2fab,'actions':[]}),_0x200444[_0x85cdb8][_0x586dfe]['actions'][_0x2650df(0x2f1)](..._0x36eb93),_0x200444;},{}),_0x4bdbd0=[];for(const _0x236fb9 in _0x56eb28)for(const _0x406685 in _0x56eb28[_0x236fb9]){const {actions:_0x83aa87,objectType:_0x251272}=_0x56eb28[_0x236fb9][_0x406685],_0x472b30=[...new Set(_0x83aa87)];_0x4bdbd0['push']({'unitID':_0x236fb9,'objectID':_0x406685,'objectType':_0x251272,'actions':_0x472b30});}return new _0x1baa38(_0x155127(0x347),_0x97940b,{'headers':_0x3376e7[_0x155127(0x38e)],'withCredentials':_0x3376e7['withCredentials'],'responseType':_0x3376e7[_0x155127(0x486)],'body':{'requests':_0x4bdbd0}});}},{'distributeResult'(_0x26d120,_0x161378){const _0x5cfbad=_0x3fe165,{objectActions:_0x3d18c8}=_0x26d120;return _0x161378[_0x5cfbad(0x1c7)](_0x224b92=>{const _0x177990=_0x5cfbad,{unitID:_0x4f99c6,objectID:_0x3ac4f7,actions:_0x1b1e9c}=_0x224b92,_0x36ad17=_0x3d18c8[_0x177990(0x2c5)](_0x40b2d2=>_0x40b2d2[_0x177990(0x3a4)]===_0x4f99c6&&_0x40b2d2[_0x177990(0x37d)]===_0x3ac4f7),_0x34fc70=_0x1b1e9c[_0x177990(0x1c7)](_0x3a2d2a=>_0x36ad17==null?void 0x0:_0x36ad17[_0x177990(0x1ba)]['find'](_0x487608=>_0x487608[_0x177990(0x3bb)]===_0x3a2d2a))[_0x177990(0x133)](_0x2759f6=>!!_0x2759f6);return{'config':_0x224b92,'result':{'actions':_0x34fc70,'error':_0x26d120[_0x177990(0x30b)]}};});}})}));}[_0x2e5b1c(0x2c9)](){const _0x1dfbb3=_0x2e5b1c;var _0x323b17;return(_0x323b17=this[_0x1dfbb3(0x338)][_0x1dfbb3(0x142)]($o))!=null?_0x323b17:jo;}async['create'](_0xa4cccc){const _0x49fe8c=_0x2e5b1c,_0xfecd9b=this[_0x49fe8c(0x2c9)]()+'/'+_0xa4cccc[_0x49fe8c(0x2a5)]+_0x49fe8c(0x2da);return(await this[_0x49fe8c(0x423)][_0x49fe8c(0x1e3)](_0xfecd9b,{'body':_0xa4cccc}))[_0x49fe8c(0x12f)][_0x49fe8c(0x37d)]||'';}async[_0x2e5b1c(0x259)](_0x383332){const _0xb8e92b=_0x2e5b1c,_0x55159e=this[_0xb8e92b(0x2c9)]()+_0xb8e92b(0x179);return(await this[_0xb8e92b(0x423)]['post'](_0x55159e,{'body':_0x383332}))[_0xb8e92b(0x12f)][_0xb8e92b(0x44e)];}async[_0x2e5b1c(0x3b1)](_0x266144){const _0x966cb9=_0x2e5b1c,_0x480f83=this[_0x966cb9(0x2c9)]()+'/'+_0x266144[_0x966cb9(0x2a5)]+_0x966cb9(0x489)+_0x266144[_0x966cb9(0x37d)];await this[_0x966cb9(0x423)][_0x966cb9(0x315)](_0x480f83,{'body':_0x266144});}async[_0x2e5b1c(0x16d)](_0x28933c){const _0x22cf36=_0x2e5b1c,_0x356680=this['_getAPIPrefixPath']()+'/'+_0x28933c[_0x22cf36(0x2a5)]+_0x22cf36(0x489)+_0x28933c[_0x22cf36(0x37d)]+'/allowed';return(await this[_0x22cf36(0x423)][_0x22cf36(0x1e3)](_0x356680,{'body':_0x28933c}))[_0x22cf36(0x12f)][_0x22cf36(0x1ba)];}async[_0x2e5b1c(0x3a6)](_0x311596){const _0x162984=_0x2e5b1c,_0x2480b8=this[_0x162984(0x2c9)]()+_0x162984(0x472);return(await this[_0x162984(0x423)]['post'](_0x2480b8,{'body':{'requests':_0x311596}}))['body'][_0x162984(0x19f)];}async['listRoles'](_0x5a15e9){const _0x1aa9e2=_0x2e5b1c,_0x3a1bf1=this[_0x1aa9e2(0x2c9)]()+'/'+_0x5a15e9[_0x1aa9e2(0x2a5)]+_0x1aa9e2(0x1e6),_0x11c9dd=await this[_0x1aa9e2(0x423)][_0x1aa9e2(0x1e3)](_0x3a1bf1,{'body':_0x5a15e9});return{'roles':_0x11c9dd['body'][_0x1aa9e2(0x475)],'actions':_0x11c9dd[_0x1aa9e2(0x12f)][_0x1aa9e2(0x1ba)]};}async['deleteCollaborator'](_0xf39163){const _0x5342ea=_0x2e5b1c,_0x57b76b=this[_0x5342ea(0x2c9)]()+'/collaborator';await this['_HTTPService'][_0x5342ea(0x18d)](_0x57b76b,{'params':{'collaboratorID':_0xf39163['collaboratorID'],'objectID':_0xf39163['objectID'],'unitID':_0xf39163[_0x5342ea(0x3a4)]}});}async[_0x2e5b1c(0x333)](_0x5ab9de){const _0x3f55b5=_0x2e5b1c,_0x5cc25b=this['_getAPIPrefixPath']()+_0x3f55b5(0x1af);await this[_0x3f55b5(0x423)][_0x3f55b5(0x234)](_0x5cc25b,{'body':_0x5ab9de});}async['createCollaborator'](_0x806c63){const _0x16e419=_0x2e5b1c,_0x51411b=this[_0x16e419(0x2c9)]()+_0x16e419(0x1af);await this[_0x16e419(0x423)][_0x16e419(0x1e3)](_0x51411b,{'body':_0x806c63});}async['listCollaborators'](_0xf19240){const _0x2e195e=_0x2e5b1c,_0x587416=this[_0x2e195e(0x2c9)]()+_0x2e195e(0x1af);return(await this[_0x2e195e(0x423)][_0x2e195e(0x18f)](_0x587416,{'params':{'objectID':_0xf19240[_0x2e195e(0x37d)],'unitID':_0xf19240[_0x2e195e(0x3a4)]}}))['body'][_0x2e195e(0x33e)];}async[_0x2e5b1c(0x20f)](_0x1b697b){const _0x578340=_0x2e5b1c,_0xaa56c2=this['_getAPIPrefixPath']()+_0x578340(0x1af);await this[_0x578340(0x423)][_0x578340(0x315)](_0xaa56c2,{'body':_0x1b697b});}};yt=Lo([fs(0x0,_0x5c7fae(_0x35343d)),fs(0x1,_0x5c7fae(_0x401b9d))],yt);var xo=Object[_0x2e5b1c(0x2de)],Ho=Object[_0x2e5b1c(0x41c)],ko=(_0x555805,_0x4dad8f,_0x2eeea7,_0x4d306)=>{for(var _0x554c4c=_0x4d306>0x1?void 0x0:_0x4d306?Ho(_0x4dad8f,_0x2eeea7):_0x4dad8f,_0x1d225d=_0x555805['length']-0x1,_0x10d1b7;_0x1d225d>=0x0;_0x1d225d--)(_0x10d1b7=_0x555805[_0x1d225d])&&(_0x554c4c=(_0x4d306?_0x10d1b7(_0x4dad8f,_0x2eeea7,_0x554c4c):_0x10d1b7(_0x554c4c))||_0x554c4c);return _0x4d306&&_0x554c4c&&xo(_0x4dad8f,_0x2eeea7,_0x554c4c),_0x554c4c;},pt=(_0x2f606c,_0x509090)=>(_0x35337a,_0x471aa9)=>_0x509090(_0x35337a,_0x471aa9,_0x2f606c);const Bo=[_0x2e5b1c(0x2b9),_0x2e5b1c(0x381),_0x2e5b1c(0x188),_0x2e5b1c(0x444),_0x2e5b1c(0x470)],Vo=0x5*0x400*0x400,Fo=_0x2e5b1c(0x3fe),Wo='/universer-api/stream/file/upload',Go=_0x2e5b1c(0x2d6),Yo=_0x2e5b1c(0x445);let Mt=class{constructor(_0x36cf52,_0x52b5e4,_0x53fb52){const _0x518ccf=_0x2e5b1c;l(this,'_waitCount',0x0),l(this,_0x518ccf(0x1a3),new _0x47a81b()),l(this,'change$',this[_0x518ccf(0x1a3)]),l(this,_0x518ccf(0x28d),new Map()),(this[_0x518ccf(0x17e)]=_0x36cf52,this[_0x518ccf(0x338)]=_0x52b5e4,this[_0x518ccf(0x1ae)]=_0x53fb52);}[_0x2e5b1c(0x2f5)](_0x28e44b){const _0xac2bd8=_0x2e5b1c;this[_0xac2bd8(0x27a)]=_0x28e44b,this[_0xac2bd8(0x1a3)][_0xac2bd8(0x244)](_0x28e44b);}[_0x2e5b1c(0x248)](_0x33ac02,_0x3fd5bc){const _0x9dcf2f=_0x2e5b1c;if(_0x3fd5bc===_0x2639d9[_0x9dcf2f(0x36a)]){const _0x5b3a81=new Image();return _0x5b3a81['src']=_0x33ac02,_0x5b3a81;}return this[_0x9dcf2f(0x28d)][_0x9dcf2f(0x18f)](_0x33ac02);}[_0x2e5b1c(0x2ca)](_0x3a292a,_0x48b5a2,_0x2fe4ca){const _0x577498=_0x2e5b1c;_0x48b5a2===_0x2639d9[_0x577498(0x36a)]||_0x2fe4ca==null||this['_imageSourceCache']['set'](_0x3a292a,_0x2fe4ca);}async['getImage'](_0x569aa){const _0x419988=_0x2e5b1c;try{const _0x2a8ed7=this[_0x419988(0x26b)](this[_0x419988(0x376)](),''+_0x569aa),_0x5320fc=(await this['_httpService'][_0x419988(0x18f)](_0x2a8ed7))[_0x419988(0x12f)];return _0x5320fc[_0x419988(0x30b)]&&_0x5320fc['error'][_0x419988(0x2fa)]===Ms['OK']?Promise[_0x419988(0x430)](_0x5320fc[_0x419988(0x2c3)]):Promise['reject'](_0x5320fc[_0x419988(0x30b)]);}catch(_0xe466a){return Promise['reject'](_0xe466a);}}async[_0x2e5b1c(0x373)](_0x4f0e30){const _0x46dab4=_0x2e5b1c;let _0xac3c3='';if(!Bo[_0x46dab4(0x3a0)](_0x4f0e30[_0x46dab4(0x255)]))return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE_TYPE']));if(_0x4f0e30[_0x46dab4(0x362)]>Vo)return this[_0x46dab4(0x151)](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x3e1)]));try{const _0x32d200=new FormData();_0x32d200[_0x46dab4(0x40c)](_0x46dab4(0x2ad),_0x4f0e30);const _0x100567=this['_univerInstanceService'][_0x46dab4(0x1e7)](),_0x1f75aa=_0x100567==null?void 0x0:_0x100567[_0x46dab4(0x426)]();if(!_0x1f75aa)throw new Error(_0x46dab4(0x15e));const _0x3ce7b9=this[_0x46dab4(0x12d)]()+_0x46dab4(0x242)+_0x4f0e30[_0x46dab4(0x362)][_0x46dab4(0x19b)]()+_0x46dab4(0x215)+As['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f75aa),_0x561f6d=await(await fetch(_0x3ce7b9,{'method':_0x46dab4(0x347),'body':_0x32d200}))[_0x46dab4(0x236)]();if(typeof _0x561f6d[_0x46dab4(0x14e)]!=_0x46dab4(0x239))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x416)]));_0xac3c3=_0x561f6d[_0x46dab4(0x14e)];}catch{return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE']));}return new Promise((_0x59ee4e,_0x44c289)=>{const _0x2f1244=_0x46dab4,_0x3db15f=new FileReader();_0x3db15f[_0x2f1244(0x48c)](_0x4f0e30),_0x3db15f['onload']=_0x292265=>{const _0x56dd94=_0x2f1244;var _0x446a44;const _0x153994=(_0x446a44=_0x292265[_0x56dd94(0x1a8)])==null?void 0x0:_0x446a44['result'];if(_0x153994==null){this[_0x56dd94(0x151)](),_0x44c289(new Error(_0x29d71a[_0x56dd94(0x416)]));return;}const _0x139406=_0x3cea4b[_0x56dd94(0x1ce)](0x6);_0x59ee4e({'imageId':_0x139406,'imageSourceType':_0x2639d9['UUID'],'source':_0xac3c3,'base64Cache':_0x153994,'status':_0x29d71a[_0x56dd94(0x343)]}),this[_0x56dd94(0x151)]();};});}[_0x2e5b1c(0x12d)](){const _0xc7676b=_0x2e5b1c;var _0x125e69;return(_0x125e69=this[_0xc7676b(0x338)][_0xc7676b(0x142)](Fo))!=null?_0x125e69:Wo;}[_0x2e5b1c(0x376)](){const _0x4e69e7=_0x2e5b1c;var _0x239346;return(_0x239346=this['_configService'][_0x4e69e7(0x142)](Go))!=null?_0x239346:Yo;}[_0x2e5b1c(0x26b)](_0x2ac1c2,_0x2da5e2){const _0x3d68a8=_0x2e5b1c;return _0x2ac1c2[_0x3d68a8(0x319)]('{fileID}',_0x2da5e2);}[_0x2e5b1c(0x151)](){const _0x28193=_0x2e5b1c;this[_0x28193(0x27a)]-=0x1,this['_change$'][_0x28193(0x244)](this[_0x28193(0x27a)]);}};Mt=ko([pt(0x0,_0x5c7fae(_0x35343d)),pt(0x1,_0x401b9d),pt(0x2,_0x5c7fae(_0x30b2f2))],Mt);var Ko=Object[_0x2e5b1c(0x2de)],Xo=Object[_0x2e5b1c(0x41c)],Jo=(_0x244045,_0x17bc6a,_0x49a4bc,_0x56aaca)=>{const _0x4f429a=_0x2e5b1c;for(var _0x8f6248=_0x56aaca>0x1?void 0x0:_0x56aaca?Xo(_0x17bc6a,_0x49a4bc):_0x17bc6a,_0x159361=_0x244045[_0x4f429a(0x1bb)]-0x1,_0x124aad;_0x159361>=0x0;_0x159361--)(_0x124aad=_0x244045[_0x159361])&&(_0x8f6248=(_0x56aaca?_0x124aad(_0x17bc6a,_0x49a4bc,_0x8f6248):_0x124aad(_0x8f6248))||_0x8f6248);return _0x56aaca&&_0x8f6248&&Ko(_0x17bc6a,_0x49a4bc,_0x8f6248),_0x8f6248;},Pe=(_0x46221e,_0xb23720)=>(_0x49a681,_0x3178e1)=>_0xb23720(_0x49a681,_0x3178e1,_0x46221e);let Ke=class extends _0x4bff65{constructor(_0x116da4,_0x4f55cb,_0x2091aa,_0x234f87,_0x17e625){const _0x151785=_0x2e5b1c;super(),this[_0x151785(0x3ac)]=_0x116da4,this[_0x151785(0x1ae)]=_0x4f55cb,this[_0x151785(0x292)]=_0x2091aa,this[_0x151785(0x385)]=_0x234f87,this[_0x151785(0x452)]=_0x17e625,this[_0x151785(0x24d)](),this[_0x151785(0x21c)]();}['_initCloseConn'](){const _0x19c788=_0x2e5b1c,_0x296116=async _0x1ade10=>{const _0xfa2d03=_0x5851;(await this[_0xfa2d03(0x385)][_0xfa2d03(0x205)](_0x1ade10))[_0xfa2d03(0x372)][_0xfa2d03(0x195)](_0x48e324(_0x416451=>_0x416451[_0xfa2d03(0x2f6)]===_0x410792[_0xfa2d03(0x2e2)]),_0x429e28(this[_0xfa2d03(0x3be)]))[_0xfa2d03(0x3c4)](_0x481d78=>{const _0xd50746=_0xfa2d03,_0x1e9af2=_0x481d78,{reason:_0x5777d9}=_0x1e9af2[_0xd50746(0x249)];this[_0xd50746(0x3ac)][_0xd50746(0x18f)](_0x29e945)[_0xd50746(0x367)]({'type':_0x68ddaa[_0xd50746(0x253)],'content':this[_0xd50746(0x452)]['t'](_0xd50746(0x2d5))+'('+_0x5777d9+')'}),this[_0xd50746(0x292)]['updatePermissionPoint'](new _0x477da8(_0x1ade10)['id'],!0x1),this[_0xd50746(0x385)][_0xd50746(0x31a)](_0x1ade10);});};_0x9334d7(this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9[_0x19c788(0x2c7)]),this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9['UNIVER_DOC']))[_0x19c788(0x195)](_0x4b551a(_0x300d5b=>_0x300d5b[_0x19c788(0x426)]()),_0x48e324(_0x570682=>!_0x852e4e(_0x570682)),_0x429e28(this['dispose$']))['subscribe'](_0x17300a=>{_0x296116(_0x17300a);});}[_0x2e5b1c(0x24d)](){const _0x4f5002=_0x2e5b1c,_0x151a56=async _0x43aa52=>{const _0x19aff1=_0x5851;(await this[_0x19aff1(0x385)][_0x19aff1(0x205)](_0x43aa52))['event$'][_0x19aff1(0x195)](_0x48e324(_0x3068f9=>_0x3068f9[_0x19aff1(0x2f6)]===_0x410792[_0x19aff1(0x168)]),_0x429e28(this['dispose$']))[_0x19aff1(0x3c4)](_0x56fed6=>{const _0x2476bc=_0x19aff1,_0x266d27=_0x56fed6,{objectId:_0x4b8699}=_0x266d27['data'],_0x1ea43a=this[_0x2476bc(0x3ac)][_0x2476bc(0x18f)](_0xa93b7d);_0x4b8699===_0x43aa52?_0x1ea43a['initWorkbookPermissionChange'](_0x43aa52):_0x1ea43a[_0x2476bc(0x36f)](_0x43aa52,_0x4b8699);});};_0x9334d7(this['_univerInstanceService'][_0x4f5002(0x1a4)](_0x3bf0d9[_0x4f5002(0x2c7)]),this[_0x4f5002(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC']))[_0x4f5002(0x195)](_0x4b551a(_0x55fa61=>_0x55fa61[_0x4f5002(0x426)]()),_0x48e324(_0x2ccf74=>!_0x852e4e(_0x2ccf74)),_0x429e28(this['dispose$']))[_0x4f5002(0x3c4)](_0x17beed=>{_0x151a56(_0x17beed);});}};Ke=Jo([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],Ke),Pe(0x0,_0x5c7fae(_0x5d259e)),Pe(0x1,_0x30b2f2),Pe(0x2,_0x241366),Pe(0x3,_0x5c7fae(ae)),Pe(0x4,_0x5c7fae(_0x12e5b3))],Ke);const zo=_0x2e5b1c(0x26f);var Fs=Object['defineProperty'],qo=Object['getOwnPropertyDescriptor'],Zo=(_0x179ae7,_0x5a8655,_0x58b9d1)=>_0x5a8655 in _0x179ae7?Fs(_0x179ae7,_0x5a8655,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58b9d1}):_0x179ae7[_0x5a8655]=_0x58b9d1,Qo=(_0x13e1f1,_0x41eaf2,_0x428d56,_0x313fb5)=>{const _0x151106=_0x2e5b1c;for(var _0x5b3273=_0x313fb5>0x1?void 0x0:_0x313fb5?qo(_0x41eaf2,_0x428d56):_0x41eaf2,_0x24641b=_0x13e1f1[_0x151106(0x1bb)]-0x1,_0x451229;_0x24641b>=0x0;_0x24641b--)(_0x451229=_0x13e1f1[_0x24641b])&&(_0x5b3273=(_0x313fb5?_0x451229(_0x41eaf2,_0x428d56,_0x5b3273):_0x451229(_0x5b3273))||_0x5b3273);return _0x313fb5&&_0x5b3273&&Fs(_0x41eaf2,_0x428d56,_0x5b3273),_0x5b3273;},Ve=(_0x18f360,_0x2ed247)=>(_0x4eda55,_0x3b67e1)=>_0x2ed247(_0x4eda55,_0x3b67e1,_0x18f360),ea=(_0x4ff82e,_0x2e4c6a,_0x47d9ca)=>Zo(_0x4ff82e,_0x2e4c6a+'',_0x47d9ca);const ta=_0x2e5b1c(0x300);let At=class extends _0x250c9c{constructor(_0x548fc7={},_0x24e3d2,_0x148cad,_0x46d4b4,_0x58bc18){const _0x30518f=_0x2e5b1c;super(),this[_0x30518f(0x410)]=_0x548fc7,this[_0x30518f(0x2ec)]=_0x24e3d2,this[_0x30518f(0x3c0)]=_0x148cad,this[_0x30518f(0x3ac)]=_0x46d4b4,this[_0x30518f(0x338)]=_0x58bc18;const {..._0xfce2c4}=this[_0x30518f(0x410)];this['_configService']['setConfig'](zo,_0xfce2c4);}[_0x2e5b1c(0x3d1)](){const _0x521deb=_0x2e5b1c;this[_0x521deb(0x25c)]();}[_0x2e5b1c(0x214)](){const _0x3e2354=_0x2e5b1c;this[_0x3e2354(0x1b4)]();}[_0x2e5b1c(0x25c)](){const _0x23808e=_0x2e5b1c;var _0x48c261,_0x1b1b00,_0x3e2ca0,_0x525de6;this[_0x23808e(0x3ac)]['has'](_0x1bd332)&&this[_0x23808e(0x2ec)][_0x23808e(0x30b)](_0x23808e(0x30f),_0x23808e(0x466));let _0x54615f=[[_0x1bd332,{'useClass':Nt}],[ae],[Ft],[_0x35343d],[Vs,{'useClass':Eo}],[oe],[D],[_0x4058ad],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[Us,{'useClass':(_0x1b1b00=(_0x48c261=this[_0x23808e(0x410)])==null?void 0x0:_0x48c261[_0x23808e(0x3af)])!=null?_0x1b1b00:Ct}],[_0x4a8183,{'useClass':_0x182506}],[_0x39a0ed,{'useClass':Pt}],[_0x136777,{'useClass':yt}],[_0x976a19,{'useClass':Mt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3e2ca0=this['_config'])!=null&&_0x3e2ca0[_0x23808e(0x3e2)]&&_0x54615f[_0x23808e(0x2f1)]([it,{'useClass':nr}]),_0x54615f=_0x3a5a4e(_0x54615f,(_0x525de6=this[_0x23808e(0x410)])==null?void 0x0:_0x525de6[_0x23808e(0x481)]),_0x54615f['forEach'](_0x524ed8=>this[_0x23808e(0x3ac)][_0x23808e(0x47b)](_0x524ed8)),this['_initModules']();}[_0x2e5b1c(0x1b4)](){const _0x5d62b5=_0x2e5b1c;this[_0x5d62b5(0x294)](this['_renderManagerService']['registerRenderModule'](_0x3bf0d9['UNIVER_DOC'],[Ye])),this[_0x5d62b5(0x294)](this[_0x5d62b5(0x3c0)][_0x5d62b5(0x2a8)](_0x3bf0d9['UNIVER_SHEET'],[wt]));}['_initModules'](){const _0x374657=_0x2e5b1c;var _0x133172,_0x59e557;this['_injector']['get'](_0x35343d)[_0x374657(0x17b)]({'priority':0x14,'interceptor':_0x55c921({'maxParallel':0x6})}),(_0x133172=this[_0x374657(0x410)])!=null&&_0x133172[_0x374657(0x18c)]||this[_0x374657(0x3ac)]['get'](D)['disableLocalCache'](),(_0x59e557=this[_0x374657(0x410)])!=null&&_0x59e557['enableAuthServer']&&this[_0x374657(0x3ac)][_0x374657(0x18f)](st),this[_0x374657(0x3ac)][_0x374657(0x18f)](Ae),this['_injector'][_0x374657(0x250)](ye)&&this['_injector'][_0x374657(0x18f)](ye);}};ea(At,_0x2e5b1c(0x411),ta),At=Qo([_0x2f7773(_0x7a88b),Ve(0x1,_0x1cafe9),Ve(0x2,_0x363058),Ve(0x3,_0x5c7fae(_0x5d259e)),Ve(0x4,_0x401b9d)],At);export{$o as AUTHZ_URL_KEY,yt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,to as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Vs as IURLService,Mt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,In as RETRY_CONNECTING_INTERVAL_KEY,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,_n as SNAPSHOT_SERVER_URL_KEY,dn as SNAPSHOT_URL_KEY,W as SessionStatus,jr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Pt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,Eo as WebURLService,Nn as deserializeToCombResponse,yn as serializeCombRequest};
|
1
|
+
const _0x44ade9=_0x3787;(function(_0x82c57a,_0xc7d35b){const _0x18824d=_0x3787,_0x21d388=_0x82c57a();while(!![]){try{const _0x3933a9=-parseInt(_0x18824d(0x3cb))/0x1+parseInt(_0x18824d(0x239))/0x2*(parseInt(_0x18824d(0x400))/0x3)+-parseInt(_0x18824d(0x358))/0x4*(-parseInt(_0x18824d(0x1c2))/0x5)+parseInt(_0x18824d(0x382))/0x6*(-parseInt(_0x18824d(0x21d))/0x7)+parseInt(_0x18824d(0x171))/0x8+-parseInt(_0x18824d(0x294))/0x9*(parseInt(_0x18824d(0x178))/0xa)+parseInt(_0x18824d(0x2be))/0xb*(parseInt(_0x18824d(0x445))/0xc);if(_0x3933a9===_0xc7d35b)break;else _0x21d388['push'](_0x21d388['shift']());}catch(_0x47c1dc){_0x21d388['push'](_0x21d388['shift']());}}}(_0x340c,0x3c076));var zs=Object['defineProperty'],Zs=(_0x1ad0a1,_0x4a05e0,_0x3fe0ce)=>_0x4a05e0 in _0x1ad0a1?zs(_0x1ad0a1,_0x4a05e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe0ce}):_0x1ad0a1[_0x4a05e0]=_0x3fe0ce,l=(_0x3545be,_0x5f109a,_0x5dc2c8)=>Zs(_0x3545be,typeof _0x5f109a!=_0x44ade9(0x34f)?_0x5f109a+'':_0x5f109a,_0x5dc2c8);import{createIdentifier as _0x8e889b,Inject as _0x180372,Disposable as _0x17cf1f,DisposableCollection as _0x4207d6,toDisposable as _0x3e741a,IConfigService as _0x1fe23f,ILogService as _0x4611a9,UserManagerService as _0x4df292,UniverInstanceType as _0xb0e7e8,IUniverInstanceService as _0x4c19c5,LocaleService as _0x787113,Optional as _0x4edbf0,RxDisposable as _0x1d444,Injector as _0x15d871,Tools as _0x110341,ILocalStorageService as _0x1364f5,ICommandService as _0x2bc808,JSONX as _0xe8b1b1,CommandType as _0x101550,IPermissionService as _0x7677d9,IUndoRedoService as _0x3cf637,sequenceExecute as _0x546da2,Rectangle as _0x2ef7c7,debounce as _0x137993,OnLifecycle as _0x2cff12,LifecycleStages as _0x1e5de5,COLORS as _0x110dca,ColorKit as _0x249e91,ThemeService as _0x76412c,fromEventSubject as _0x13c7e9,useDependency as _0x24777e,connectInjector as _0x25174f,Workbook as _0x24fa7c,isInternalEditorID as _0x52dbe5,LocalUndoRedoService as _0x5c3dd8,IContextService as _0x3c1d68,DependentOn as _0x2cd2d8,Plugin as _0x14c22f,IAuthzIoService as _0x4d7a53,mergeOverrideWithDependencies as _0x43541f}from'@univerjs/core';import{Subject as _0x3827c1,merge as _0x527d28,takeUntil as _0x275af9,BehaviorSubject as _0x531abd,distinctUntilChanged as _0x49184f,fromEvent as _0x3b552f,map as _0xa2248a,shareReplay as _0x227687,take as _0xf17119,of as _0x6cc13d,debounceTime as _0x4134cc,filter as _0xfe2c4,switchMap as _0x5dc56b,combineLatest as _0x570be0,concatMap as _0x557746,mapTo as _0x351ffb}from'rxjs';import{map as _0x49da78,take as _0x590898,filter as _0x5be455,delay as _0x233073,throttleTime as _0x3a86b0,takeUntil as _0x24c4a1,switchMap as _0x3dab9b}from'rxjs/operators';import{MessageType as _0x73f118,Tooltip as _0x2cf8ae}from'@univerjs/design';import{IBeforeCloseService as _0x4d8086,IMessageService as _0x251714,INotificationService as _0xc8419c,useObservable as _0x3a7045,BuiltInUIPart as _0x41ee47,IUIPartsService as _0x3cdef0}from'@univerjs/ui';import{HTTPService as _0x53dfff,WebSocketService as _0x4e064e,MergeInterceptorFactory as _0x4bc933,HTTPRequest as _0x564c02,IHTTPImplementation as _0x23f73e,XHRHTTPImplementation as _0x1fbb96,ThresholdInterceptorFactory as _0x53e64b}from'@univerjs/network';import{CollaborationEvent as _0x2db775,parseChangesetToProtocol as _0x224350,ISnapshotServerService as _0x23ecb2,isTransformMutationFailure as _0x458f83,isTransformMutationsWithChangesetSuccess as _0x24ef98,ITransformService as _0x446e46,RevisionService as _0x2123f3,mapDocumentTypeToUniverType as _0x469599,isTransformChangesetsSuccess as _0x584035,CompressMutationService as _0x44773b,parseProtocolChangeset as _0x4310c0,SnapshotService as _0x27b45c,textEncoder as _0x10489f,b64DecodeUnicode as _0x41914f,isTransformMutationsWithChangesetFailure as _0x4a3e3f,UniverCollaborationPlugin as _0x558b0a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xf5a62e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x56b8b2,RichTextEditingMutation as _0x27d3d0,SetTextSelectionsOperation as _0x506c91,DocSkeletonManagerService as _0x5570b9}from'@univerjs/docs';import{DocIMEInputManagerService as _0x1301a3,DocStateChangeManagerService as _0x2b0039,NodePositionConvertToCursor as _0x2066cd,isValidRectRange as _0x328ef9,NodePositionConvertToRectRange as _0x286ca0,TEXT_RANGE_LAYER_INDEX as _0x31e632,SetDocZoomRatioOperation as _0x47953c}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x472097,SetSelectionsOperation as _0x152456,InsertSheetMutation as _0x1f929a,EmptyMutation as _0x4fd1b4,WorkbookEditablePermission as _0x4f24bc,RefRangeService as _0xe89218,EffectRefRangId as _0x46ccd7,handleIRemoveRow as _0x57f47d,handleIRemoveCol as _0x310158,handleMoveRange as _0x845f5d,handleInsertRow as _0x41f48b,handleInsertRangeMoveRight as _0x9f95c2,handleInsertRangeMoveDown as _0x327694,handleInsertCol as _0x47a306,handleDeleteRangeMoveUp as _0x55810d,handleDeleteRangeMoveLeft as _0x238bf1,runRefRangeMutations as _0xa217ee,SetWorksheetActivateCommand as _0x226f68}from'@univerjs/sheets';import{IRenderManagerService as _0xc776ff,Shape as _0x425f9c,Rect as _0x81b34c,getColor as _0x15026d,RegularPolygon as _0x5e6974,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x453ffe,Vector2 as _0x4941ed}from'@univerjs/engine-render';import{ImageSourceType as _0x21fbb6,ImageUploadStatusType as _0x44d395,IImageIoService as _0x5d9034}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3b7c25,serializeRangeWithSheet as _0x225488}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0xfbaa46,VIEWPORT_KEY as _0x40a6ae,getCoordByCell as _0xa8bbdf,getSheetObject as _0x292b3d,SheetPermissionInitController as _0x359d53}from'@univerjs/sheets-ui';import _0x306310,{forwardRef as _0x19138a,useRef as _0x2079f7,createElement as _0x1f11c0,useCallback as _0x6e72a5}from'react';import _0x59a36c from'clsx';import{IRemoteInstanceService as _0x18edfc}from'@univerjs/rpc';import{getAttachHeader as _0x512ff6}from'@univerjs-pro/license';const fn=_0x44ade9(0x2a4),mn='/universer-api/snapshot',gn=_0x44ade9(0x43d),Da=_0x44ade9(0x40c),Sn=0x7d0,pn=_0x44ade9(0x28b),vn=_0x44ade9(0x19f),In='HEARTBEAT_INTERVAL',En=0x7530,Us=_0x44ade9(0x3c5),Ms=0x4e20,Cn=0x4e20,bn=_0x44ade9(0x19a),Tn=0x3,Rn=_0x44ade9(0x2a2),On=0x3e8,Dn=_0x44ade9(0x3bb),wn=_0x44ade9(0x1df),Pn=_0x44ade9(0x3a0),yn=_0x44ade9(0x2b1);var As=(_0x4826df=>(_0x4826df[_0x4826df[_0x44ade9(0x2c5)]=0x0]=_0x44ade9(0x2c5),_0x4826df[_0x4826df['OK']=0x1]='OK',_0x4826df[_0x4826df['INTERNAL_ERROR']=0x2]=_0x44ade9(0x459),_0x4826df[_0x4826df['PERMISSION_DENIED']=0x3]=_0x44ade9(0x1a8),_0x4826df[_0x4826df[_0x44ade9(0x24a)]=0x4]=_0x44ade9(0x24a),_0x4826df[_0x4826df[_0x44ade9(0x14d)]=0x5]=_0x44ade9(0x14d),_0x4826df[_0x4826df['ALREADY_EXISTS']=0x6]=_0x44ade9(0x4aa),_0x4826df[_0x4826df[_0x44ade9(0x1c1)]=0x7]=_0x44ade9(0x1c1),_0x4826df[_0x4826df[_0x44ade9(0x20d)]=0x8]=_0x44ade9(0x20d),_0x4826df[_0x4826df[_0x44ade9(0x33c)]=0x9]=_0x44ade9(0x33c),_0x4826df[_0x4826df[_0x44ade9(0x32a)]=0x1389]=_0x44ade9(0x32a),_0x4826df[_0x4826df[_0x44ade9(0x435)]=0x1771]=_0x44ade9(0x435),_0x4826df[_0x4826df['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x44ade9(0x21e),_0x4826df[_0x4826df[_0x44ade9(0x342)]=0x1b59]='APPLY_REJECT',_0x4826df[_0x4826df[_0x44ade9(0x3bc)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4826df[_0x4826df[_0x44ade9(0x469)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4826df[_0x4826df[_0x44ade9(0x3e2)]=0x1b5c]=_0x44ade9(0x3e2),_0x4826df[_0x4826df[_0x44ade9(0x262)]=0x1f41]=_0x44ade9(0x262),_0x4826df[_0x4826df[_0x44ade9(0x22a)]=0x2329]=_0x44ade9(0x22a),_0x4826df[_0x4826df[_0x44ade9(0x365)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4826df[_0x4826df[_0x44ade9(0x402)]=0x232b]=_0x44ade9(0x402),_0x4826df[_0x4826df[_0x44ade9(0x1c5)]=0x232c]=_0x44ade9(0x1c5),_0x4826df[_0x4826df[_0x44ade9(0x372)]=0x232d]=_0x44ade9(0x372),_0x4826df[_0x4826df['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x44ade9(0x1c0),_0x4826df[_0x4826df[_0x44ade9(0x478)]=0x2712]=_0x44ade9(0x478),_0x4826df[_0x4826df[_0x44ade9(0x491)]=0x2713]=_0x44ade9(0x491),_0x4826df[_0x4826df[_0x44ade9(0x43b)]=0x2714]=_0x44ade9(0x43b),_0x4826df[_0x4826df['UNRECOGNIZED']=-0x1]=_0x44ade9(0x269),_0x4826df))(As||{}),H=(_0x253d6f=>(_0x253d6f[_0x253d6f['UNIVER_UNKNOWN']=0x0]=_0x44ade9(0x490),_0x253d6f[_0x253d6f[_0x44ade9(0x3b0)]=0x1]=_0x44ade9(0x3b0),_0x253d6f[_0x253d6f['UNIVER_SHEET']=0x2]=_0x44ade9(0x233),_0x253d6f[_0x253d6f['UNIVER_SLIDE']=0x3]=_0x44ade9(0x2e7),_0x253d6f[_0x253d6f['UNIVER_PROJECT']=0x4]=_0x44ade9(0x1e7),_0x253d6f[_0x253d6f[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x253d6f))(H||{}),I=(_0x226cab=>(_0x226cab[_0x226cab['UNKNOWN_CMD']=0x0]=_0x44ade9(0x355),_0x226cab[_0x226cab[_0x44ade9(0x38f)]=0x1]=_0x44ade9(0x38f),_0x226cab[_0x226cab['JOIN']=0x2]='JOIN',_0x226cab[_0x226cab[_0x44ade9(0x414)]=0x3]=_0x44ade9(0x414),_0x226cab[_0x226cab[_0x44ade9(0x3a8)]=0x4]=_0x44ade9(0x3a8),_0x226cab[_0x226cab[_0x44ade9(0x3c9)]=0x5]=_0x44ade9(0x3c9),_0x226cab[_0x226cab['RECV']=0x6]=_0x44ade9(0x2e6),_0x226cab[_0x226cab[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x226cab))(I||{}),Vt=(_0x1b954e=>(_0x1b954e[_0x1b954e[_0x44ade9(0x14a)]=0x0]=_0x44ade9(0x14a),_0x1b954e[_0x1b954e['OK']=0x1]='OK',_0x1b954e[_0x1b954e[_0x44ade9(0x16c)]=0x2]=_0x44ade9(0x16c),_0x1b954e[_0x1b954e[_0x44ade9(0x269)]=-0x1]='UNRECOGNIZED',_0x1b954e))(Vt||{}),Ls=(_0x315d1b=>(_0x315d1b[_0x315d1b[_0x44ade9(0x222)]=0x0]=_0x44ade9(0x222),_0x315d1b[_0x315d1b[_0x44ade9(0x26e)]=0x1]=_0x44ade9(0x26e),_0x315d1b[_0x315d1b['HttpExport']=0x2]=_0x44ade9(0x24c),_0x315d1b[_0x315d1b[_0x44ade9(0x42a)]=0x3]=_0x44ade9(0x42a),_0x315d1b[_0x315d1b['UnitSnapshot']=0x4]=_0x44ade9(0x1a9),_0x315d1b[_0x315d1b[_0x44ade9(0x269)]=-0x1]=_0x44ade9(0x269),_0x315d1b))(Ls||{});const L='collaboration-client.config',Nn={};function Un(_0x318776){const _0x448300=_0x44ade9;var _0x590da2,_0x1cf30d,_0x7daf90,_0x21a2b7;const _0x1c1ce1=_0x318776[_0x448300(0x3c3)],_0x49b55e=JSON[_0x448300(0x2e2)](_0x1c1ce1);switch(_0x49b55e[_0x448300(0x257)]){case I[_0x448300(0x3c9)]:case I[_0x448300(0x38f)]:{const _0x1596ef=_0x49b55e[_0x448300(0x33d)];return{..._0x49b55e,'data':_0x1596ef,'cmd':_0x49b55e[_0x448300(0x257)]};}case I[_0x448300(0x17f)]:{const _0x5c6248=_0x49b55e[_0x448300(0x432)];return{..._0x49b55e,'data':_0x5c6248,'cmd':_0x49b55e[_0x448300(0x257)]};}case I['RECV']:{const _0x395cc3=_0x49b55e['collaMsg'];switch(_0x395cc3[_0x448300(0x2ac)]){case _0x2db775['PERMISSION_REJ']:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x590da2=_0x395cc3[_0x448300(0x1b4)])==null?void 0x0:_0x590da2['cs']},'cmd':_0x49b55e['cmd']};case _0x2db775[_0x448300(0x33e)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x1cf30d=_0x395cc3[_0x448300(0x48f)])==null?void 0x0:_0x1cf30d['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x3c7)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x7daf90=_0x395cc3[_0x448300(0x396)])==null?void 0x0:_0x7daf90['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['CHANGESET_REJ']:return{..._0x49b55e,'data':{..._0x395cc3,'data':(_0x21a2b7=_0x395cc3[_0x448300(0x1d9)])==null?void 0x0:_0x21a2b7['cs']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x1f9)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x388)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['USERS_ENTER']:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x451)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x2f4)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x2c1)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x4a8)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x453)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x32e)]:case _0x2db775[_0x448300(0x3b9)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x148)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775['LIVESHARE_TERMINATE']:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3['liveShareNewHost']},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x176)]:return{..._0x49b55e,'data':_0x395cc3,'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x436)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x338)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x3ea)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x4a6)]},'cmd':_0x49b55e[_0x448300(0x257)]};case _0x2db775[_0x448300(0x447)]:return{..._0x49b55e,'data':{..._0x395cc3,'data':_0x395cc3[_0x448300(0x1be)]},'cmd':_0x49b55e[_0x448300(0x257)]};default:return _0x49b55e;}}default:return _0x49b55e;}}function Mn(_0xa75d1e){const _0x3d13fa=_0x44ade9;switch(_0xa75d1e['cmd']){case I[_0x3d13fa(0x3c9)]:case I[_0x3d13fa(0x38f)]:return JSON[_0x3d13fa(0x41d)]({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e[_0x3d13fa(0x274)]});case I[_0x3d13fa(0x3a8)]:{let _0x48c18a;switch(_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x2ac)]){case _0x2db775[_0x3d13fa(0x1f9)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x1f9)],'updateCursorEvent':_0xa75d1e['data'][_0x3d13fa(0x3c3)]};break;}case _0x2db775['USERS_LEAVE']:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x2f4)],'leaveEvent':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x37f)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x37f)],'joinEvent':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x4a8)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x4a8)],'liveShareNewHost':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x3b9)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x3b9)],'liveShareOperation':_0xa75d1e[_0x3d13fa(0x3c3)]['data']};break;}case _0x2db775[_0x3d13fa(0x179)]:{_0x48c18a={'eventID':_0x2db775['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775[_0x3d13fa(0x237)]:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x237)],'liveShareRequestHost':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x3c3)]};break;}case _0x2db775['LIVESHARE_FETCH_OPERATIONS']:{_0x48c18a={'eventID':_0x2db775[_0x3d13fa(0x32e)]};break;}default:_0x48c18a={'eventID':_0xa75d1e[_0x3d13fa(0x3c3)][_0x3d13fa(0x2ac)]};}return JSON['stringify']({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e[_0x3d13fa(0x274)],'collaMsg':_0x48c18a});}case I[_0x3d13fa(0x17f)]:return JSON['stringify']({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e['routeKey'],'joinReq':_0xa75d1e[_0x3d13fa(0x3c3)]});case I[_0x3d13fa(0x414)]:return JSON[_0x3d13fa(0x41d)]({'cmd':_0xa75d1e[_0x3d13fa(0x257)],'routeKey':_0xa75d1e['routeKey'],'leaveReq':_0xa75d1e[_0x3d13fa(0x3c3)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var An=Object[_0x44ade9(0x421)],Ln=Object[_0x44ade9(0x418)],$n=(_0x339fb9,_0x4419b3,_0x1a6ea6,_0xd166b5)=>{const _0x2a7eee=_0x44ade9;for(var _0x217238=_0xd166b5>0x1?void 0x0:_0xd166b5?Ln(_0x4419b3,_0x1a6ea6):_0x4419b3,_0x41845b=_0x339fb9[_0x2a7eee(0x192)]-0x1,_0x49fda0;_0x41845b>=0x0;_0x41845b--)(_0x49fda0=_0x339fb9[_0x41845b])&&(_0x217238=(_0xd166b5?_0x49fda0(_0x4419b3,_0x1a6ea6,_0x217238):_0x49fda0(_0x217238))||_0x217238);return _0xd166b5&&_0x217238&&An(_0x4419b3,_0x1a6ea6,_0x217238),_0x217238;},Re=(_0x1a8694,_0x304e87)=>(_0xd0a93f,_0x133710)=>_0x304e87(_0xd0a93f,_0x133710,_0x1a8694);const $s=_0x8e889b(_0x44ade9(0x1cf));function jn(_0x533e47,_0x2a52d6,_0x236b63){const _0x36ef85=_0x44ade9;return _0x533e47+'/'+_0x2a52d6+_0x36ef85(0x40f)+_0x236b63+_0x36ef85(0x29b);}let Tt=class extends _0x17cf1f{constructor(_0x1a16c2,_0x42b92c,_0xfe50e,_0x51498d,_0x1d57ee){const _0x3e16f5=_0x44ade9;super(),this[_0x3e16f5(0x2a1)]=_0x1a16c2,this[_0x3e16f5(0x408)]=_0x42b92c,this['_configService']=_0xfe50e,this[_0x3e16f5(0x1a3)]=_0x51498d,this[_0x3e16f5(0x367)]=_0x1d57ee;}[_0x44ade9(0x41c)](_0x2e3d02){const _0x103135=_0x44ade9,_0x547585=this[_0x103135(0x408)][_0x103135(0x41c)](_0x2e3d02);if(!_0x547585)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x2b6483=new _0x4207d6(),_0x2d1aac=new _0x3827c1();_0x2b6483[_0x103135(0x377)](_0x547585[_0x103135(0x35b)][_0x103135(0x3dc)](_0x5a96b3=>_0x2d1aac['next'](_0x5a96b3))),_0x2b6483['add'](_0x3e741a(()=>_0x2d1aac[_0x103135(0x19c)]()));const _0x217941=new _0x3827c1();_0x2b6483['add'](_0x547585[_0x103135(0x341)][_0x103135(0x3dc)](_0x4c1a71=>_0x217941[_0x103135(0x34e)](_0x4c1a71))),_0x2b6483[_0x103135(0x377)](_0x3e741a(()=>_0x217941[_0x103135(0x19c)]()));const _0x417458=new _0x3827c1();_0x2b6483[_0x103135(0x377)](_0x547585[_0x103135(0x441)][_0x103135(0x3dc)](_0xefa305=>{const _0x217a0f=_0x103135,_0xa4c2d9=Un(_0xefa305);_0x417458[_0x217a0f(0x34e)](_0xa4c2d9);})),_0x2b6483[_0x103135(0x377)](_0x3e741a(()=>_0x417458[_0x103135(0x19c)]()));let _0x575390;const _0x2ad6c6=()=>{const _0x26c655=_0x103135;_0x217941[_0x26c655(0x34e)](new Event(_0x26c655(0x40a))),_0x2d1aac[_0x26c655(0x34e)](new CloseEvent('connection\x20error')),_0x575390['close']();};return _0x575390={'memberID':'','close$':_0x2d1aac[_0x103135(0x458)](),'error$':_0x217941['asObservable'](),'open$':_0x547585[_0x103135(0x482)],'message$':_0x417458['asObservable'](),'send':_0x168b04=>{const _0x581965=_0x103135;if(_0x168b04[_0x581965(0x257)]===I[_0x581965(0x3a8)]){if(_0x168b04[_0x581965(0x3c3)][_0x581965(0x2ac)]===_0x2db775[_0x581965(0x356)]){this[_0x581965(0x312)](_0x575390,_0x168b04[_0x581965(0x3c3)])[_0x581965(0x1eb)](_0x2c8fd8=>{const _0x5e9ae1=_0x581965;this[_0x5e9ae1(0x1a3)]['error'](_0x2c8fd8),_0x2ad6c6();});return;}if(_0x168b04['data'][_0x581965(0x2ac)]===_0x2db775['FETCH_MISSING']){const _0x3849e9=_0x168b04[_0x581965(0x3c3)];this[_0x581965(0x34d)](_0x3849e9)[_0x581965(0x301)](_0x396870=>{const _0x485be9=_0x581965;_0x417458[_0x485be9(0x34e)]({'cmd':I[_0x485be9(0x2e6)],'code':Vt['OK'],'routeKey':_0x3849e9[_0x485be9(0x3c3)][_0x485be9(0x42f)],'routeType':'','data':{'eventID':_0x2db775[_0x485be9(0x3d4)],'data':{'changesets':_0x396870}}});})[_0x581965(0x1eb)](_0x151f46=>{const _0x4c033b=_0x581965;this[_0x4c033b(0x1a3)][_0x4c033b(0x1c9)](_0x151f46),_0x2ad6c6();});return;}}_0x547585['send'](Mn(_0x168b04));},'close':()=>{const _0x1e1784=_0x103135;_0x547585[_0x1e1784(0x2b8)](),_0x2b6483['dispose']();}},_0x575390;}async[_0x44ade9(0x312)](_0x2a25b9,_0x4f2cdb){const _0x5da352=_0x44ade9;var _0x2a89b5,_0x3f5a0f;const {unitType:_0x3dc384,unitID:_0x563a22,changeset:_0x278199}=_0x4f2cdb[_0x5da352(0x3c3)],_0x5e03bd={'unitID':_0x563a22,'memberID':_0x2a25b9[_0x5da352(0x143)],'type':_0x3dc384,'changeset':_0x224350(_0x278199)},_0x327851=this[_0x5da352(0x251)]['getConfig'](Dn),_0x3a11a9=this[_0x5da352(0x251)][_0x5da352(0x31b)](L),_0x2041e3=jn((_0x3f5a0f=(_0x2a89b5=_0x3a11a9==null?void 0x0:_0x3a11a9['collabSubmitChangesetUrl'])!=null?_0x2a89b5:_0x327851)!=null?_0x3f5a0f:wn,_0x3dc384,_0x563a22);try{await this[_0x5da352(0x2a1)][_0x5da352(0x277)](_0x2041e3,{'body':_0x5e03bd});}catch(_0x35d51d){throw this[_0x5da352(0x1a3)][_0x5da352(0x1c9)](_0x5da352(0x2b0),'submit\x20changeset\x20error!'),_0x35d51d;}}async[_0x44ade9(0x34d)](_0x3522b5){const _0x3b1059=_0x44ade9,{unitID:_0x5e2e81,from:_0x4369bb,to:_0x1df5bf,unitType:_0x3ebb50}=_0x3522b5[_0x3b1059(0x3c3)];return(await this[_0x3b1059(0x367)][_0x3b1059(0x35e)]({'metadata':void 0x0},{'unitID':_0x5e2e81,'type':_0x3ebb50,'from':_0x4369bb,'to':_0x1df5bf}))['changesets'];}};Tt=$n([Re(0x0,_0x180372(_0x53dfff)),Re(0x1,_0x180372(_0x4e064e)),Re(0x2,_0x1fe23f),Re(0x3,_0x4611a9),Re(0x4,_0x23ecb2)],Tt);const xn=_0x44ade9(0x433);function Hn(_0x34b936){const _0xb65f19=_0x44ade9;return JSON[_0xb65f19(0x41d)](_0x34b936)[_0xb65f19(0x192)];}class js{constructor(){const _0x14be81=_0x44ade9;l(this,_0x14be81(0x1e8),new _0x3827c1()),l(this,'commentUpdate$',this[_0x14be81(0x1e8)][_0x14be81(0x458)]());}[_0x44ade9(0x3f3)](_0x24ad22){const _0x3d4876=_0x44ade9;this[_0x3d4876(0x1e8)][_0x3d4876(0x34e)](_0x24ad22);}}var kn=Object[_0x44ade9(0x421)],Bn=Object[_0x44ade9(0x418)],Vn=(_0x2c6913,_0x13bfe4,_0x45adfe,_0x2b874b)=>{for(var _0x479300=_0x2b874b>0x1?void 0x0:_0x2b874b?Bn(_0x13bfe4,_0x45adfe):_0x13bfe4,_0xcc3c1=_0x2c6913['length']-0x1,_0x32b321;_0xcc3c1>=0x0;_0xcc3c1--)(_0x32b321=_0x2c6913[_0xcc3c1])&&(_0x479300=(_0x2b874b?_0x32b321(_0x13bfe4,_0x45adfe,_0x479300):_0x32b321(_0x479300))||_0x479300);return _0x2b874b&&_0x479300&&kn(_0x13bfe4,_0x45adfe,_0x479300),_0x479300;},os=(_0x19d1f5,_0x51759c)=>(_0x238aa5,_0x2ec343)=>_0x51759c(_0x238aa5,_0x2ec343,_0x19d1f5);let ae=class extends _0x17cf1f{constructor(_0x3b55cd,_0x395336){const _0x1e4214=_0x44ade9;super(),l(this,_0x1e4214(0x2cc),new Map()),(this[_0x1e4214(0x470)]=_0x3b55cd,this[_0x1e4214(0x232)]=_0x395336,this['disposeWithMe'](_0x3e741a(_0x527d28(this[_0x1e4214(0x470)][_0x1e4214(0x456)](_0xb0e7e8[_0x1e4214(0x233)])[_0x1e4214(0x2e0)](_0x49da78(_0x2a7b61=>_0x2a7b61[_0x1e4214(0x49d)]())),this[_0x1e4214(0x470)][_0x1e4214(0x456)](_0xb0e7e8[_0x1e4214(0x3b0)])[_0x1e4214(0x2e0)](_0x49da78(_0x591f8e=>_0x591f8e[_0x1e4214(0x49d)]())),this[_0x1e4214(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x1e4214(0x2e7)])[_0x1e4214(0x2e0)](_0x49da78(_0x5509f1=>_0x5509f1[_0x1e4214(0x49d)]())))[_0x1e4214(0x3dc)](_0x198966=>this['_removeRoom'](_0x198966)))));}['setCurrentUser'](_0x53eea8){const _0x51ea13=_0x44ade9;this['_userManagerService'][_0x51ea13(0x168)](_0x53eea8);}[_0x44ade9(0x2d0)](){const _0x4ae38b=_0x44ade9;return this[_0x4ae38b(0x232)][_0x4ae38b(0x2d0)]();}[_0x44ade9(0x426)](_0x18f9ee,_0x793ca0){const _0xb1f2c3=_0x44ade9;let _0x192ec7=this[_0xb1f2c3(0x2cc)][_0xb1f2c3(0x28e)](_0x18f9ee);_0x192ec7||(_0x192ec7=new Fn(),this[_0xb1f2c3(0x2cc)][_0xb1f2c3(0x48c)](_0x18f9ee,_0x192ec7)),_0x192ec7['updateMember'](_0x793ca0);}['removeMember'](_0x2e6dd5,_0x471e44){const _0x360ab7=_0x44ade9,_0x497d56=this[_0x360ab7(0x2cc)][_0x360ab7(0x28e)](_0x2e6dd5);_0x497d56&&_0x497d56['removeMember'](_0x471e44);}[_0x44ade9(0x415)](_0x3cd9ac){return this['_roomMembers']['get'](_0x3cd9ac);}[_0x44ade9(0x30c)](_0x2ca0d9,_0xc2461b){const _0x37045b=_0x44ade9,_0x457871=this['_roomMembers'][_0x37045b(0x28e)](_0x2ca0d9);if(_0x457871)return _0x457871['getMember'](_0xc2461b);}[_0x44ade9(0x220)](_0x1122ef){const _0x18cf79=_0x44ade9,_0x543c99=this['_roomMembers'][_0x18cf79(0x28e)](_0x1122ef);_0x543c99&&(_0x543c99[_0x18cf79(0x2c9)](),this[_0x18cf79(0x2cc)]['delete'](_0x1122ef));}[_0x44ade9(0x2c9)](){const _0x53ea91=_0x44ade9;this[_0x53ea91(0x2cc)]['forEach'](_0x52e2e4=>_0x52e2e4[_0x53ea91(0x2c9)]()),this[_0x53ea91(0x2cc)]['clear']();}};ae=Vn([os(0x0,_0x4c19c5),os(0x1,_0x180372(_0x4df292))],ae);class Fn extends _0x17cf1f{constructor(){const _0x4a8314=_0x44ade9;super(...arguments),l(this,_0x4a8314(0x211),new Map());}[_0x44ade9(0x2c9)](){const _0x2138e1=_0x44ade9;this[_0x2138e1(0x211)][_0x2138e1(0x2d5)]();}[_0x44ade9(0x426)](_0x15f93d){const _0x16f68b=_0x44ade9;this[_0x16f68b(0x211)]['set'](_0x15f93d[_0x16f68b(0x143)],_0x15f93d);}[_0x44ade9(0x45b)](_0x4acfa9){const _0x1e1194=_0x44ade9;this['_members'][_0x1e1194(0x467)](_0x4acfa9);}[_0x44ade9(0x30c)](_0x258491){const _0x3e4ca6=_0x44ade9;return this[_0x3e4ca6(0x211)]['get'](_0x258491);}}var Wn=Object['defineProperty'],Gn=Object[_0x44ade9(0x418)],Yn=(_0x393fb7,_0x1f59a6,_0x365d2a,_0x242230)=>{const _0x3cf907=_0x44ade9;for(var _0x207c0d=_0x242230>0x1?void 0x0:_0x242230?Gn(_0x1f59a6,_0x365d2a):_0x1f59a6,_0x3009c2=_0x393fb7[_0x3cf907(0x192)]-0x1,_0x38b40b;_0x3009c2>=0x0;_0x3009c2--)(_0x38b40b=_0x393fb7[_0x3009c2])&&(_0x207c0d=(_0x242230?_0x38b40b(_0x1f59a6,_0x365d2a,_0x207c0d):_0x38b40b(_0x207c0d))||_0x207c0d);return _0x242230&&_0x207c0d&&Wn(_0x1f59a6,_0x365d2a,_0x207c0d),_0x207c0d;},J=(_0x5d90e7,_0x3b819b)=>(_0x3d0ff7,_0xf282d5)=>_0x3b819b(_0x3d0ff7,_0xf282d5,_0x5d90e7),G=(_0x39a2e4=>(_0x39a2e4[_0x39a2e4[_0x44ade9(0x390)]=0x0]=_0x44ade9(0x390),_0x39a2e4[_0x39a2e4[_0x44ade9(0x293)]=0x1]=_0x44ade9(0x293),_0x39a2e4[_0x39a2e4[_0x44ade9(0x1c6)]=0x2]=_0x44ade9(0x1c6),_0x39a2e4[_0x39a2e4[_0x44ade9(0x19b)]=0x3]=_0x44ade9(0x19b),_0x39a2e4))(G||{});let Rt=class extends _0x1d444{constructor(_0x54ec2d,_0x2d5ed0,_0x20a380,_0x30a760,_0x698589,_0x33f0b9,_0x4e248d,_0x226635,_0x4e6027,_0x405d58){const _0x3b71a1=_0x44ade9;super(),l(this,'_sessionStatus$',new _0x531abd(0x0)),l(this,_0x3b71a1(0x27c),this['_sessionStatus$']['asObservable']()),l(this,_0x3b71a1(0x1c7),new _0x3827c1()),l(this,'event$',this[_0x3b71a1(0x1c7)][_0x3b71a1(0x458)]()),l(this,_0x3b71a1(0x316)),l(this,_0x3b71a1(0x289)),l(this,_0x3b71a1(0x25c)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x3b71a1(0x13b),null),(this[_0x3b71a1(0x248)]=_0x54ec2d,this[_0x3b71a1(0x1a3)]=_0x20a380,this[_0x3b71a1(0x2c8)]=_0x30a760,this[_0x3b71a1(0x333)]=_0x698589,this[_0x3b71a1(0x251)]=_0x33f0b9,this[_0x3b71a1(0x267)]=_0x4e248d,this[_0x3b71a1(0x450)]=_0x226635,this[_0x3b71a1(0x3d6)]=_0x4e6027,this[_0x3b71a1(0x487)]=_0x405d58,this['_shouldReportTelemetry']=!!this[_0x3b71a1(0x487)],_0x2d5ed0[_0x3b71a1(0x2e0)](_0x275af9(this[_0x3b71a1(0x424)]))[_0x3b71a1(0x3dc)](_0x4b9492=>{const _0x10bdcb=_0x3b71a1;var _0x557a32;typeof _0x4b9492>'u'||(this[_0x10bdcb(0x316)]=_0x4b9492,_0x4b9492?(this[_0x10bdcb(0x360)](_0x4b9492),this[_0x10bdcb(0x289)]=_0x4b9492['message$']['subscribe'](_0x4446e9=>{const _0x291771=_0x10bdcb;_0x4446e9[_0x291771(0x274)]===this[_0x291771(0x248)]&&this[_0x291771(0x279)](_0x4446e9);})):(this[_0x10bdcb(0x16f)](),this[_0x10bdcb(0x42e)][_0x10bdcb(0x34e)](0x2),(_0x557a32=this['_socketMessageSubscription'])==null||_0x557a32[_0x10bdcb(0x205)](),this[_0x10bdcb(0x289)]=null));}),this[_0x3b71a1(0x26d)](this[_0x3b71a1(0x2c8)][_0x3b71a1(0x3e4)](()=>{const _0x388cf4=_0x3b71a1;var _0x21ff5c;(_0x21ff5c=this['_socket'])==null||_0x21ff5c['send']({'cmd':I[_0x388cf4(0x414)],'data':{'roomID':this[_0x388cf4(0x248)]}});})));}get[_0x44ade9(0x3fd)](){const _0x5019ea=_0x44ade9;return this[_0x5019ea(0x42e)][_0x5019ea(0x299)]();}[_0x44ade9(0x31f)](){const _0x4fa2c3=_0x44ade9;var _0x248349,_0x30abb6;return(_0x30abb6=(_0x248349=this['_socket'])==null?void 0x0:_0x248349[_0x4fa2c3(0x143)])!=null?_0x30abb6:null;}[_0x44ade9(0x2c9)](){const _0x145a16=_0x44ade9;super[_0x145a16(0x2c9)](),this[_0x145a16(0x424)][_0x145a16(0x34e)](),this[_0x145a16(0x424)][_0x145a16(0x19c)]();}[_0x44ade9(0x2b8)](){const _0x3f00ec=_0x44ade9;var _0x1568ac,_0x13ee88;this['_throwTelemetryCollaborationNewChangeset'](),(_0x1568ac=this['_socket'])==null||_0x1568ac['send']({'cmd':I[_0x3f00ec(0x414)],'data':{'roomID':this[_0x3f00ec(0x248)]}}),(_0x13ee88=this[_0x3f00ec(0x316)])==null||_0x13ee88['close'](),this['_event$'][_0x3f00ec(0x19c)](),this['_sessionStatus$'][_0x3f00ec(0x19c)](),this[_0x3f00ec(0x2c9)]();}[_0x44ade9(0x279)](_0x289343){const _0x4c2d62=_0x44ade9;_0x289343[_0x4c2d62(0x257)]===I[_0x4c2d62(0x17f)]?this[_0x4c2d62(0x223)](_0x289343):_0x289343[_0x4c2d62(0x257)]===I[_0x4c2d62(0x2e6)]&&this[_0x4c2d62(0x258)](_0x289343);}['_joinRoom'](_0x31b2a7){const _0x1e7478=_0x44ade9;this[_0x1e7478(0x42e)]['next'](0x1),_0x31b2a7[_0x1e7478(0x359)]({'cmd':I[_0x1e7478(0x17f)],'routeKey':this[_0x1e7478(0x248)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e7478(0x248)]}]}});}['_onJoinRoomEvent'](_0x2d3cf5){const _0x503a91=_0x44ade9;var _0x3af8f0;if(_0x2d3cf5[_0x503a91(0x252)]===Vt[_0x503a91(0x16c)]){this[_0x503a91(0x333)][_0x503a91(0x15d)]({'type':_0x73f118[_0x503a91(0x466)],'content':this[_0x503a91(0x267)]['t'](_0x503a91(0x1f7))}),this['_sessionStatus$'][_0x503a91(0x34e)](0x2);return;}this[_0x503a91(0x42e)][_0x503a91(0x34e)](0x3);const _0x10f093=(_0x3af8f0=_0x2d3cf5[_0x503a91(0x3c3)][_0x503a91(0x42b)][this[_0x503a91(0x248)]])==null?void 0x0:_0x3af8f0['members'];_0x10f093&&_0x10f093[_0x503a91(0x362)](_0x1b5754=>this[_0x503a91(0x450)][_0x503a91(0x426)](this[_0x503a91(0x248)],_0x1b5754));}[_0x44ade9(0x258)](_0x30e231){const _0x2b25cf=_0x44ade9;try{const _0x5c8ef9=_0x30e231[_0x2b25cf(0x3c3)];switch(_0x5c8ef9[_0x2b25cf(0x2ac)]){case _0x2db775[_0x2b25cf(0x37f)]:this['_onUserJoin'](_0x5c8ef9),this['_event$'][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['USERS_LEAVE']:this[_0x2b25cf(0x34c)](_0x5c8ef9),this['_event$'][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['CHANGESET_ACK']:this[_0x2b25cf(0x186)](),this['_clearCollaborationTimeoutTimer'](),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775[_0x2b25cf(0x176)]:this[_0x2b25cf(0x1a3)][_0x2b25cf(0x1c9)](_0x2b25cf(0x39b)+JSON[_0x2b25cf(0x41d)](_0x5c8ef9)),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;case _0x2db775['COMMENT_UPDATE']:this[_0x2b25cf(0x3d6)][_0x2b25cf(0x3f3)](_0x5c8ef9['data']),this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);break;default:this[_0x2b25cf(0x1c7)][_0x2b25cf(0x34e)](_0x5c8ef9);}}catch(_0x577a38){this[_0x2b25cf(0x1a3)][_0x2b25cf(0x1c9)](_0x577a38,_0x30e231);}}['_onUserJoin'](_0x128d13){const _0x46ec45=_0x44ade9;this[_0x46ec45(0x450)][_0x46ec45(0x426)](this[_0x46ec45(0x248)],_0x128d13[_0x46ec45(0x3c3)]);}[_0x44ade9(0x34c)](_0x551a54){const _0xa9fe66=_0x44ade9;this['_memberService']['removeMember'](this['_unitID'],_0x551a54[_0xa9fe66(0x3c3)][_0xa9fe66(0x143)]);}async['send'](_0x1ac96a,_0x5b0682){const _0x44fe0e=_0x44ade9;if(this['sessionStatus']!==0x3||!this[_0x44fe0e(0x316)])throw new Error(_0x44fe0e(0x245));try{_0x1ac96a[_0x44fe0e(0x2ac)]===_0x2db775[_0x44fe0e(0x356)]&&(this[_0x44fe0e(0x3f2)](),this[_0x44fe0e(0x264)](_0x1ac96a)),this[_0x44fe0e(0x316)][_0x44fe0e(0x359)]({'cmd':I[_0x44fe0e(0x3a8)],'routeKey':_0x5b0682,'routeType':'','data':_0x1ac96a});}catch(_0x200186){this['_logService'][_0x44fe0e(0x1c9)](_0x200186);}}[_0x44ade9(0x3f2)](){const _0x5ccdd9=_0x44ade9;var _0x1e3108;this[_0x5ccdd9(0x25c)]=window[_0x5ccdd9(0x471)](()=>{const _0x2d55be=_0x5ccdd9;this[_0x2d55be(0x25c)]=null,this[_0x2d55be(0x333)][_0x2d55be(0x15d)]({'type':_0x73f118[_0x2d55be(0x3a1)],'content':this[_0x2d55be(0x267)]['t'](_0x2d55be(0x42d))});},(_0x1e3108=this['_configService'][_0x5ccdd9(0x31b)](Us))!=null?_0x1e3108:Ms);}[_0x44ade9(0x24d)](){const _0x2558b3=_0x44ade9;this[_0x2558b3(0x25c)]&&(clearTimeout(this[_0x2558b3(0x25c)]),this['_collaborationTimeoutTimer']=null);}[_0x44ade9(0x264)](_0x4e5154){const _0xe2953e=_0x44ade9;if(!this[_0xe2953e(0x479)])return;const {data:_0x55f6cd}=_0x4e5154,{unitID:_0x730c99,changeset:_0x3dc150}=_0x55f6cd,{mutations:_0xecb351,type:_0x4cd723}=_0x3dc150;this['_telemetryInfo']={'unitId':_0x730c99,'type':_0x4cd723,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Hn(_0xecb351)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x47bae8=_0x44ade9;if(this[_0x47bae8(0x479)]){if(!this['_telemetryInfo']){this[_0x47bae8(0x1a3)][_0x47bae8(0x1c9)](_0x47bae8(0x2b0),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x47bae8(0x13b)][_0x47bae8(0x39f)]=performance['now'](),this[_0x47bae8(0x13b)]['duration']=this[_0x47bae8(0x13b)][_0x47bae8(0x39f)]-this[_0x47bae8(0x13b)][_0x47bae8(0x406)],this[_0x47bae8(0x487)][_0x47bae8(0x443)](xn,this[_0x47bae8(0x13b)]),this[_0x47bae8(0x13b)]=null;}}[_0x44ade9(0x16f)](){const _0x2481be=_0x44ade9;this[_0x2481be(0x13b)]=null;}};Rt=Yn([J(0x2,_0x4611a9),J(0x3,_0x4d8086),J(0x4,_0x251714),J(0x5,_0x1fe23f),J(0x6,_0x180372(_0x787113)),J(0x7,_0x180372(ae)),J(0x8,_0x180372(js)),J(0x9,_0x4edbf0(_0xf5a62e))],Rt);var Kn=Object[_0x44ade9(0x421)],Xn=Object[_0x44ade9(0x418)],Jn=(_0x4a5ebf,_0x37ddef,_0x720d63,_0x9a6575)=>{const _0x4853d3=_0x44ade9;for(var _0x2e34ee=_0x9a6575>0x1?void 0x0:_0x9a6575?Xn(_0x37ddef,_0x720d63):_0x37ddef,_0x246d2a=_0x4a5ebf[_0x4853d3(0x192)]-0x1,_0x54331c;_0x246d2a>=0x0;_0x246d2a--)(_0x54331c=_0x4a5ebf[_0x246d2a])&&(_0x2e34ee=(_0x9a6575?_0x54331c(_0x37ddef,_0x720d63,_0x2e34ee):_0x54331c(_0x2e34ee))||_0x2e34ee);return _0x9a6575&&_0x2e34ee&&Kn(_0x37ddef,_0x720d63,_0x2e34ee),_0x2e34ee;},de=(_0x4368fc,_0x180326)=>(_0x2bfde3,_0x50e2f4)=>_0x180326(_0x2bfde3,_0x50e2f4,_0x4368fc);let ce=class extends _0x17cf1f{constructor(_0x30eff6,_0x2d8e8e,_0x8d5414,_0x5144fa,_0x2d0668,_0x1c16b0){const _0x172a02=_0x44ade9;super(),l(this,'_socket$',new _0x531abd(void 0x0)),l(this,_0x172a02(0x240),this[_0x172a02(0x3e3)]['asObservable']()),l(this,_0x172a02(0x3d8),null),l(this,_0x172a02(0x1c3),new Map()),l(this,_0x172a02(0x1b9),new _0x531abd(G[_0x172a02(0x390)])),l(this,_0x172a02(0x210),this['_status$'][_0x172a02(0x458)]()),l(this,_0x172a02(0x39e),!0x1),l(this,_0x172a02(0x261)),l(this,_0x172a02(0x373),0x0),l(this,_0x172a02(0x4a7)),l(this,'_timeoutTimer'),(this['_injector']=_0x30eff6,this[_0x172a02(0x267)]=_0x2d8e8e,this[_0x172a02(0x333)]=_0x8d5414,this['_logService']=_0x5144fa,this[_0x172a02(0x251)]=_0x2d0668,this[_0x172a02(0x2c3)]=_0x1c16b0,this[_0x172a02(0x3a9)]());}get[_0x44ade9(0x316)](){const _0x31ff57=_0x44ade9;return this[_0x31ff57(0x3e3)]['getValue']();}['_initEventListeners'](){const _0x3ef654=_0x44ade9;this[_0x3ef654(0x161)](),this[_0x3ef654(0x164)]();}[_0x44ade9(0x2c9)](){const _0x18169c=_0x44ade9;super[_0x18169c(0x2c9)](),this[_0x18169c(0x1c3)][_0x18169c(0x362)](_0x5ea4dd=>_0x5ea4dd[_0x18169c(0x2c9)]()),this['_sessions']['clear'](),this[_0x18169c(0x1b9)][_0x18169c(0x19c)]();}async[_0x44ade9(0x256)](_0x48c189){const _0xff96bb=_0x44ade9;if(this[_0xff96bb(0x1c3)][_0xff96bb(0x22f)](_0x48c189))return this['_sessions'][_0xff96bb(0x28e)](_0x48c189);this[_0xff96bb(0x346)]();const _0x16bb78=this[_0xff96bb(0x181)]['createInstance'](Rt,_0x48c189,this['_socket$'][_0xff96bb(0x458)]());return this[_0xff96bb(0x1c3)][_0xff96bb(0x48c)](_0x48c189,_0x16bb78),_0x16bb78;}[_0x44ade9(0x1b0)](_0x40a629){const _0x566107=_0x44ade9;var _0x5ccd0f;const _0x820bd=this[_0x566107(0x1c3)][_0x566107(0x28e)](_0x40a629);_0x820bd&&(this[_0x566107(0x1c3)][_0x566107(0x467)](_0x40a629),_0x820bd['close']()),this[_0x566107(0x1c3)][_0x566107(0x311)]||(_0x5ccd0f=this[_0x566107(0x316)])==null||_0x5ccd0f[_0x566107(0x2b8)]();}['reconnect'](){const _0x2a09a2=_0x44ade9;this['_retryCount']=0x0,this[_0x2a09a2(0x261)]!=null&&(clearTimeout(this[_0x2a09a2(0x261)]),this[_0x2a09a2(0x261)]=null),this[_0x2a09a2(0x326)]();}[_0x44ade9(0x40b)](){const _0x1ade29=_0x44ade9;var _0x30cd19,_0x4c16b2;const _0x4efa4e=this['_configService']['getConfig'](pn),_0x48b243=this[_0x1ade29(0x251)][_0x1ade29(0x31b)](L),_0x1d3bf9=(_0x4c16b2=(_0x30cd19=_0x48b243==null?void 0x0:_0x48b243[_0x1ade29(0x302)])!=null?_0x30cd19:_0x4efa4e)!=null?_0x4c16b2:vn,_0x15ba18=this[_0x1ade29(0x2c3)][_0x1ade29(0x41c)](_0x1d3bf9);return this[_0x1ade29(0x3d8)]=_0x15ba18,_0x15ba18;}[_0x44ade9(0x346)](){const _0x26ea20=_0x44ade9;var _0x4eb668,_0x999857;try{const _0x4b574b=(_0x999857=(_0x4eb668=this[_0x26ea20(0x316)])!=null?_0x4eb668:this['_candidateSocket'])!=null?_0x999857:this[_0x26ea20(0x40b)]();if(_0x4b574b){const _0x48ee18=_0x4b574b['send'];_0x4b574b[_0x26ea20(0x359)]=_0x3c7225=>(this['_rescheduleHeartbeat'](),_0x48ee18['apply'](_0x4b574b,[_0x3c7225])),_0x4b574b[_0x26ea20(0x441)]['subscribe'](_0x55747a=>this[_0x26ea20(0x1ef)](_0x4b574b,_0x55747a)),_0x4b574b[_0x26ea20(0x341)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](_0x23910a=>this[_0x26ea20(0x1a3)]['error'](_0x26ea20(0x322),_0x23910a)),_0x4b574b[_0x26ea20(0x482)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](()=>{this['_onConnectionOpen'](_0x4b574b);}),_0x4b574b[_0x26ea20(0x35b)][_0x26ea20(0x2e0)](_0x590898(0x1))[_0x26ea20(0x3dc)](_0x41e24a=>{const _0x474f2b=_0x26ea20;this['_logService'][_0x474f2b(0x33b)](_0x474f2b(0x3ce),_0x474f2b(0x20a),_0x41e24a),this[_0x474f2b(0x141)]();});}}catch(_0x17774c){this[_0x26ea20(0x1a3)]['error'](_0x17774c),this['_onConnectionFailed']();}}[_0x44ade9(0x397)](_0x861d87){const _0x325e63=_0x44ade9;this['_logService'][_0x325e63(0x33b)]('[CollaborationSessionService]','socket\x20open.'),_0x861d87[_0x325e63(0x359)]({'cmd':I[_0x325e63(0x38f)]}),this[_0x325e63(0x167)]();}[_0x44ade9(0x161)](){const _0x1e01dc=_0x44ade9;window[_0x1e01dc(0x3ec)](_0x1e01dc(0x241),()=>this[_0x1e01dc(0x182)]());}['_onOffline'](){const _0xb63d19=_0x44ade9;this['_socketReady']=!0x1,this[_0xb63d19(0x3d8)]=null,this[_0xb63d19(0x1b9)][_0xb63d19(0x34e)](G[_0xb63d19(0x1c6)]),this[_0xb63d19(0x3e3)][_0xb63d19(0x34e)](null),this[_0xb63d19(0x139)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x338f07=_0x44ade9;var _0x226e58;this[_0x338f07(0x182)](),this[_0x338f07(0x373)]<((_0x226e58=this[_0x338f07(0x251)]['getConfig'](bn))!=null?_0x226e58:Tn)?(this[_0x338f07(0x333)]['show']({'key':_0x338f07(0x14b),'type':_0x73f118[_0x338f07(0x466)],'content':this[_0x338f07(0x267)]['t'](_0x338f07(0x290))}),this[_0x338f07(0x326)]()):this[_0x338f07(0x333)]['show']({'key':_0x338f07(0x14b),'type':_0x73f118[_0x338f07(0x3a1)],'content':this[_0x338f07(0x267)]['t'](_0x338f07(0x204))});}['_listenToOnlineEvent'](){const _0x1c34f7=_0x44ade9,_0x5e1430=()=>{const _0x2f8104=_0x3787;this[_0x2f8104(0x316)]||this[_0x2f8104(0x19e)]();},_0x42699d=()=>{const _0x3d2c53=_0x3787;this[_0x3d2c53(0x316)]||document[_0x3d2c53(0x3d5)]===_0x3d2c53(0x214)||this['reconnect']();};window['addEventListener']('online',_0x5e1430),document[_0x1c34f7(0x3ec)](_0x1c34f7(0x147),_0x42699d);}[_0x44ade9(0x326)](){const _0x1c118b=_0x44ade9;var _0x4b2a16;const _0x9b9990=this[_0x1c118b(0x373)],_0x4dad5d=this[_0x1c118b(0x251)][_0x1c118b(0x31b)](L),_0x19c6b7=_0x9b9990===0x0?0x0:((_0x4b2a16=_0x4dad5d==null?void 0x0:_0x4dad5d[_0x1c118b(0x224)])!=null?_0x4b2a16:Cn)*0x2**_0x9b9990;this[_0x1c118b(0x261)]=window[_0x1c118b(0x471)](()=>{const _0x56d84b=_0x1c118b;clearTimeout(this[_0x56d84b(0x261)]),this['_retryConnectingTimer']=null,this[_0x56d84b(0x346)]();},_0x19c6b7),this[_0x1c118b(0x373)]+=0x1;}['_onMessage'](_0x49ffad,_0x5d0e4b){const _0x183d5f=_0x44ade9,{cmd:_0x44b626}=_0x5d0e4b;_0x44b626===I[_0x183d5f(0x38f)]&&!this['_socketReady']&&(_0x49ffad[_0x183d5f(0x143)]=_0x5d0e4b['data'][_0x183d5f(0x143)],this['_socket$'][_0x183d5f(0x34e)](_0x49ffad),this['_status$'][_0x183d5f(0x34e)](G[_0x183d5f(0x19b)]),this[_0x183d5f(0x39e)]=!0x0,this[_0x183d5f(0x3d8)]=null),_0x44b626===I[_0x183d5f(0x3c9)]&&this['_clearTimeoutTimer'](),this[_0x183d5f(0x167)]();}['_rescheduleHeartbeat'](){const _0x1b473b=_0x44ade9;var _0x48ae92;this[_0x1b473b(0x429)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x1b473b(0x378)](),(_0x48ae92=this[_0x1b473b(0x251)]['getConfig'](In))!=null?_0x48ae92:En);}['_sendHeartbeat'](){const _0xa59bcc=_0x44ade9;this[_0xa59bcc(0x316)][_0xa59bcc(0x359)]({'cmd':I['HEARTBEAT']}),this[_0xa59bcc(0x2d2)]();}['_waitForHeartbeatResponse'](){const _0x5ea3a8=_0x44ade9;var _0x3a0c8c;this[_0x5ea3a8(0x21b)]=window[_0x5ea3a8(0x471)](()=>this['_onConnectionFailed'](),(_0x3a0c8c=this[_0x5ea3a8(0x251)][_0x5ea3a8(0x31b)](Us))!=null?_0x3a0c8c:Ms);}[_0x44ade9(0x429)](){const _0x589a67=_0x44ade9;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x589a67(0x4a7)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};ce=Jn([de(0x0,_0x180372(_0x15d871)),de(0x1,_0x180372(_0x787113)),de(0x2,_0x251714),de(0x3,_0x4611a9),de(0x4,_0x1fe23f),de(0x5,$s)],ce);var qn=Object[_0x44ade9(0x421)],zn=Object['getOwnPropertyDescriptor'],Zn=(_0xb06dd,_0x183869,_0x2af8b7,_0x451958)=>{const _0x3cbfb9=_0x44ade9;for(var _0x4f78b6=_0x451958>0x1?void 0x0:_0x451958?zn(_0x183869,_0x2af8b7):_0x183869,_0x564e97=_0xb06dd[_0x3cbfb9(0x192)]-0x1,_0x14afb9;_0x564e97>=0x0;_0x564e97--)(_0x14afb9=_0xb06dd[_0x564e97])&&(_0x4f78b6=(_0x451958?_0x14afb9(_0x183869,_0x2af8b7,_0x4f78b6):_0x14afb9(_0x4f78b6))||_0x4f78b6);return _0x451958&&_0x4f78b6&&qn(_0x183869,_0x2af8b7,_0x4f78b6),_0x4f78b6;},_t=(_0x53f4e9,_0x26a6fc)=>(_0x3a58d1,_0x2d62ae)=>_0x26a6fc(_0x3a58d1,_0x2d62ae,_0x53f4e9);let Ze=class{constructor(_0x500263,_0x1a8c0d,_0x48d411){const _0xcb155d=_0x44ade9;this[_0xcb155d(0x181)]=_0x500263,this[_0xcb155d(0x16a)]=_0x1a8c0d,this[_0xcb155d(0x268)]=_0x48d411;}[_0x44ade9(0x3b3)](_0x45fd31){const _0x21dbda=_0x44ade9;this[_0x21dbda(0x2bf)](_0x45fd31),this[_0x21dbda(0x1d3)](_0x45fd31);}['transformRemoteChangeset'](_0x37e2dc){const _0x666a69=_0x44ade9,{unitID:_0x49ba16}=_0x37e2dc,_0x5cd694=this['_renderManagerService']['getRenderById'](_0x49ba16)[_0x666a69(0x449)](_0x1301a3),{redoCache:_0x46da25}=_0x5cd694[_0x666a69(0x3ca)]();if(_0x46da25[_0x666a69(0x192)]===0x0)return _0x37e2dc;let _0x56c58b=_0x110341[_0x666a69(0x401)](_0x37e2dc[_0x666a69(0x230)][0x0]);for(let _0x9a628d=0x0;_0x9a628d<_0x46da25[_0x666a69(0x192)];_0x9a628d++){const _0x94cf9f={'id':_0x666a69(0x41a),'params':{..._0x46da25[_0x9a628d]}},_0x575b25=this[_0x666a69(0x16a)][_0x666a69(0x2b5)](_0x56c58b,_0x94cf9f,!0x1);if(_0x458f83(_0x575b25))throw _0x575b25['error'];_0x56c58b=_0x575b25[_0x666a69(0x295)];}return{..._0x110341[_0x666a69(0x401)](_0x37e2dc),'mutations':[_0x56c58b]};}[_0x44ade9(0x2bf)](_0x13a09b){const _0x4aff65=_0x44ade9,{unitID:_0x4e45b7}=_0x13a09b,_0x1a950a=this['_renderManagerService'][_0x4aff65(0x39c)](_0x4e45b7)[_0x4aff65(0x449)](_0x1301a3),{undoCache:_0x487441,redoCache:_0x40630f}=_0x1a950a['getUndoRedoMutationParamsCache']();if(_0x487441[_0x4aff65(0x192)]===0x0||_0x40630f['length']===0x0)return;const _0x26ec02=[],_0x4b1fef=[];let _0xd3be6e=_0x110341[_0x4aff65(0x401)](_0x13a09b['mutations'][0x0]),_0x28a74b=_0x110341[_0x4aff65(0x401)](_0x13a09b['mutations'][0x0]);for(let _0x1edcfb=_0x487441[_0x4aff65(0x192)]-0x1;_0x1edcfb>=0x0;_0x1edcfb--){const _0x3fa09c={'id':_0x4aff65(0x41a),'params':{..._0x487441[_0x1edcfb]}},_0x4d0b30={'id':_0x4aff65(0x41a),'params':{..._0x40630f[_0x1edcfb]}},_0x272b57=this[_0x4aff65(0x16a)][_0x4aff65(0x2b5)](_0xd3be6e,_0x3fa09c,!0x1),_0x38542b=this['_transformService'][_0x4aff65(0x2b5)](_0x28a74b,_0x4d0b30,!0x1);if(_0x458f83(_0x272b57))throw _0x272b57['error'];if(_0x458f83(_0x38542b))throw _0x38542b[_0x4aff65(0x1c9)];_0x26ec02[_0x4aff65(0x36d)](_0x272b57['m2Prime'][_0x4aff65(0x1d5)]),_0x4b1fef[_0x4aff65(0x36d)](_0x38542b[_0x4aff65(0x483)][_0x4aff65(0x1d5)]),_0xd3be6e=_0x272b57[_0x4aff65(0x295)],_0x28a74b=_0x38542b[_0x4aff65(0x295)];}_0x1a950a['setUndoRedoMutationParamsCache']({'undoCache':_0x26ec02,'redoCache':_0x4b1fef});}[_0x44ade9(0x1d3)](_0x56dd94){const _0x126955=_0x44ade9,{unitID:_0x33ab62}=_0x56dd94,_0x283737=this[_0x126955(0x268)][_0x126955(0x39c)](_0x33ab62)['with'](_0x1301a3),_0x5d3375=_0x283737['getActiveRange']();if(_0x5d3375==null)return;const _0x23bbc3=[{'id':_0x126955(0x41a),'params':{'unitId':_0x56dd94[_0x126955(0x42f)],'actions':null,'textRanges':[_0x5d3375]}}],_0x397bc7=this[_0x126955(0x16a)][_0x126955(0x169)](_0x56dd94,_0x23bbc3);if(!_0x24ef98(_0x397bc7))throw _0x397bc7[_0x126955(0x1c9)];const _0x5175e1=_0x397bc7['m2Prime'][0x0][_0x126955(0x1d5)][_0x126955(0x2b9)];Array[_0x126955(0x254)](_0x5175e1)&&_0x5175e1[_0x126955(0x192)]&&_0x283737['setActiveRange'](_0x5175e1[0x0]);}};Ze=Zn([_t(0x0,_0x180372(_0x15d871)),_t(0x1,_0x446e46),_t(0x2,_0xc776ff)],Ze);var Qn=Object[_0x44ade9(0x421)],er=Object[_0x44ade9(0x418)],tr=(_0x8473b0,_0x38da6f,_0x56ca78,_0x28b519)=>{for(var _0x3b6ae6=_0x28b519>0x1?void 0x0:_0x28b519?er(_0x38da6f,_0x56ca78):_0x38da6f,_0x544ba4=_0x8473b0['length']-0x1,_0x48959b;_0x544ba4>=0x0;_0x544ba4--)(_0x48959b=_0x8473b0[_0x544ba4])&&(_0x3b6ae6=(_0x28b519?_0x48959b(_0x38da6f,_0x56ca78,_0x3b6ae6):_0x48959b(_0x3b6ae6))||_0x3b6ae6);return _0x28b519&&_0x3b6ae6&&Qn(_0x38da6f,_0x56ca78,_0x3b6ae6),_0x3b6ae6;},Oe=(_0x1aac80,_0x38c58d)=>(_0x208ddc,_0x208e13)=>_0x38c58d(_0x208ddc,_0x208e13,_0x1aac80);let D=class extends _0x17cf1f{constructor(_0x4f32,_0x4ba384,_0x5c235e,_0x3c660e,_0x203e07){const _0x2aa64c=_0x44ade9;super(),l(this,_0x2aa64c(0x3f8),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x2aa64c(0x24f),!0x1),(this[_0x2aa64c(0x251)]=_0x4f32,this['_localStorageService']=_0x4ba384,this['_beforeCloseService']=_0x5c235e,this[_0x2aa64c(0x267)]=_0x3c660e,this[_0x2aa64c(0x3fa)]=_0x203e07,this['_setupBeforeClosingHandler']());}[_0x44ade9(0x403)](){const _0x522b78=_0x44ade9;this[_0x522b78(0x24f)]=!0x0;}[_0x44ade9(0x1a2)](){const _0xf36b48=_0x44ade9;this[_0xf36b48(0x24f)]=!0x1;}[_0x44ade9(0x2c9)](){const _0x513a7c=_0x44ade9;this[_0x513a7c(0x364)]()['then'](()=>super['dispose']());}async[_0x44ade9(0x45f)](_0x36a85f){const _0x4ee166=_0x44ade9;return this[_0x4ee166(0x24f)]?null:this[_0x4ee166(0x22e)][_0x4ee166(0x335)](as(_0x36a85f));}async[_0x44ade9(0x2ae)](_0x1c7009,_0x4a9c9d){const _0x40557f=_0x44ade9;return!!this[_0x40557f(0x22e)][_0x40557f(0x15f)](_0x1c7009,_0x4a9c9d);}[_0x44ade9(0x3b7)](_0x4bb450,_0xf4a277,_0x3bf880,_0x47b01d){const _0x749fbe=_0x44ade9,_0x371d79=this[_0x749fbe(0x3fa)]['getCurrentRevOfUnit'](_0x4bb450);this[_0x749fbe(0x3f8)][_0x749fbe(0x48c)](_0x4bb450,{'unitID':_0x4bb450,'type':_0xf4a277,'awaitingChangeset':_0x3bf880,'mutations':_0x47b01d,'rev':_0x371d79}),this[_0x749fbe(0x15c)]['has'](_0x4bb450)||this[_0x749fbe(0x1c4)](_0x4bb450);}[_0x44ade9(0x1c4)](_0x357312){const _0x1d8aff=_0x44ade9,_0x6124a2=this[_0x1d8aff(0x196)]();_0x6124a2===0x0?this[_0x1d8aff(0x444)](_0x357312):this[_0x1d8aff(0x15c)][_0x1d8aff(0x48c)](_0x357312,setTimeout(()=>this['_saveCache'](_0x357312),_0x6124a2));}['_getSaveTimeout'](){const _0x107b15=_0x44ade9;var _0x331332;return(_0x331332=this[_0x107b15(0x251)][_0x107b15(0x31b)](Rn))!=null?_0x331332:On;}[_0x44ade9(0x444)](_0x482460){const _0x30dfac=_0x44ade9,_0x540d9e=this['_saveTaskMap'][_0x30dfac(0x28e)](_0x482460);return _0x540d9e!==void 0x0&&window['clearTimeout'](_0x540d9e),this[_0x30dfac(0x22e)][_0x30dfac(0x15f)](as(_0x482460),this[_0x30dfac(0x3f8)][_0x30dfac(0x28e)](_0x482460))[_0x30dfac(0x301)](()=>this[_0x30dfac(0x15c)]['delete'](_0x482460));}async['exhaustSavingTask'](){const _0x297e8a=_0x44ade9,_0x490cb0=[];this[_0x297e8a(0x15c)][_0x297e8a(0x362)]((_0x183e8f,_0x42b4f7)=>{const _0x518d1e=_0x297e8a;window[_0x518d1e(0x30e)](_0x183e8f),_0x490cb0[_0x518d1e(0x23e)](this['_saveCache'](_0x42b4f7)[_0x518d1e(0x301)](()=>{const _0x1f71e6=_0x518d1e;this[_0x1f71e6(0x15c)][_0x1f71e6(0x467)](_0x42b4f7);}));}),await Promise[_0x297e8a(0x3f5)](_0x490cb0);}[_0x44ade9(0x275)](){const _0x104d22=_0x44ade9;this['disposeWithMe'](this[_0x104d22(0x2c8)][_0x104d22(0x497)](()=>{const _0xed66a0=_0x104d22;if(this['_saveTaskMap']['size'])return this[_0xed66a0(0x267)]['t']('collaboration-client.offline-data-not-saved');}));}};D=tr([Oe(0x0,_0x1fe23f),Oe(0x1,_0x1364f5),Oe(0x2,_0x4d8086),Oe(0x3,_0x180372(_0x787113)),Oe(0x4,_0x180372(_0x2123f3))],D);function as(_0x2b1bde){const _0x516560=_0x44ade9;return _0x516560(0x3d2)+_0x2b1bde;}var sr=Object[_0x44ade9(0x421)],ir=Object[_0x44ade9(0x418)],nr=(_0x44b0c5,_0x5b60a4,_0x1958f1,_0x507c01)=>{const _0x45aa2d=_0x44ade9;for(var _0x4720a0=_0x507c01>0x1?void 0x0:_0x507c01?ir(_0x5b60a4,_0x1958f1):_0x5b60a4,_0xd24172=_0x44b0c5[_0x45aa2d(0x192)]-0x1,_0x2993f3;_0xd24172>=0x0;_0xd24172--)(_0x2993f3=_0x44b0c5[_0xd24172])&&(_0x4720a0=(_0x507c01?_0x2993f3(_0x5b60a4,_0x1958f1,_0x4720a0):_0x2993f3(_0x4720a0))||_0x4720a0);return _0x507c01&&_0x4720a0&&sr(_0x5b60a4,_0x1958f1,_0x4720a0),_0x4720a0;},ut=(_0x50e419,_0x25c46c)=>(_0x2d0773,_0x29d3cc)=>_0x25c46c(_0x2d0773,_0x29d3cc,_0x50e419);function rr(_0x3bde8f){const _0x140ddf=_0x44ade9,{unitID:_0x252baa,mutations:_0x3d2204}=_0x3bde8f;return{'unitId':_0x252baa,'subUnitId':_0x3d2204[0x0][_0x140ddf(0x1d5)]['subUnitId']};}let Qe=class{constructor(_0x5cfeb4,_0xf7ed68,_0x10ec34){const _0x347641=_0x44ade9;this[_0x347641(0x181)]=_0x5cfeb4,this[_0x347641(0x16a)]=_0xf7ed68,this['_instanceService']=_0x10ec34;}[_0x44ade9(0x46a)](_0x2226d6){const _0x2835bd=_0x44ade9;var _0x3c1959,_0x35512e,_0xd05bf,_0x4146d8;const _0x2f3420=this[_0x2835bd(0x181)]['get'](_0x472097),{unitId:_0x3d4541,subUnitId:_0x5ef196}=rr(_0x2226d6),_0x42e44a=_0x2f3420[_0x2835bd(0x46c)](_0x3d4541)[_0x2835bd(0x25b)](),_0x45be60=(_0x35512e=(_0x3c1959=this['_instanceService']['getUnit'](_0x3d4541))==null?void 0x0:_0x3c1959['getActiveSheet']())==null?void 0x0:_0x35512e['getSheetId']();if(_0x42e44a['length']===0x0||!_0x3d4541||!_0x5ef196)return;const _0x5d3291=[{'id':_0x152456['id'],'params':{'unitId':_0x3d4541,'subUnitId':_0x45be60,'selections':_0x110341[_0x2835bd(0x401)](_0x42e44a)}}],_0x4f9bd2=this[_0x2835bd(0x16a)][_0x2835bd(0x169)](_0x2226d6,_0x5d3291);if(!_0x24ef98(_0x4f9bd2))throw _0x4f9bd2[_0x2835bd(0x1c9)];const _0x5dd0c2=(_0x4146d8=(_0xd05bf=_0x4f9bd2['m2Prime'][0x0])==null?void 0x0:_0xd05bf[_0x2835bd(0x1d5)])==null?void 0x0:_0x4146d8[_0x2835bd(0x265)];Array[_0x2835bd(0x254)](_0x5dd0c2)&&_0x5dd0c2['length']&&this[_0x2835bd(0x181)][_0x2835bd(0x28e)](_0x2bc808)[_0x2835bd(0x323)](_0x152456['id'],{'unitId':_0x3d4541,'subUnitId':_0x45be60,'selections':_0x5dd0c2});}};Qe=nr([ut(0x0,_0x180372(_0x15d871)),ut(0x1,_0x446e46),ut(0x2,_0x4c19c5)],Qe);const nt=_0x8e889b('univer-pro.collaboration-client.single-active-unit-service');var xs=(_0xd93e9b=>(_0xd93e9b[_0xd93e9b[_0x44ade9(0x30b)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xd93e9b[_0xd93e9b[_0x44ade9(0x46e)]=0x1]=_0x44ade9(0x46e),_0xd93e9b))(xs||{});const cs=0x7530,hs=_0x44ade9(0x1b1);class or extends _0x17cf1f{constructor(){const _0x276031=_0x44ade9;super(),l(this,'_id',_0x110341[_0x276031(0x31d)]()),l(this,_0x276031(0x25f),new Set()),l(this,_0x276031(0x30a),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x276031(0x1a4),new Map()),l(this,_0x276031(0x291),new Map()),this['_init']();}[_0x44ade9(0x2c9)](){const _0x234c5d=_0x44ade9;super[_0x234c5d(0x2c9)](),this[_0x234c5d(0x1a4)][_0x234c5d(0x362)]((_0x2ac118,_0x5cddea)=>this[_0x234c5d(0x36e)](_0x5cddea)),this['_heartbeatTimer']&&window[_0x234c5d(0x381)](this[_0x234c5d(0x194)]);}[_0x44ade9(0x398)](_0x566471){const _0x153032=_0x44ade9;return this[_0x153032(0x26b)](_0x566471)[_0x153032(0x2e0)](_0x49184f());}[_0x44ade9(0x235)](_0x54b763){const _0x882972=_0x44ade9;this[_0x882972(0x25f)][_0x882972(0x311)]===0x0&&this[_0x882972(0x4a1)](),this['_selfUnitIDs'][_0x882972(0x377)](_0x54b763),this[_0x882972(0x425)]({'type':0x0,'memberID':this[_0x882972(0x40e)],'unitIDs':[_0x54b763],'isForwarded':!0x1});}[_0x44ade9(0x156)](_0x2d1cfc){const _0x20edfb=_0x44ade9;this['_selfUnitIDs'][_0x20edfb(0x467)](_0x2d1cfc),this['_selfUnitIDs'][_0x20edfb(0x311)]===0x0&&this[_0x20edfb(0x194)]&&window[_0x20edfb(0x381)](this[_0x20edfb(0x194)]);}[_0x44ade9(0x2af)](){const _0x380a62=_0x44ade9;this[_0x380a62(0x26d)](_0x3e741a(_0x3b552f(window,_0x380a62(0x146))['subscribe'](_0x466a3a=>{const _0x128b56=_0x380a62;if(_0x466a3a['key']!==hs||!_0x466a3a[_0x128b56(0x344)])return;const _0x4495f2=JSON['parse'](_0x466a3a[_0x128b56(0x344)]);this[_0x128b56(0x345)](_0x4495f2);}))),window[_0x380a62(0x3ec)](_0x380a62(0x22c),()=>this['_send']({'type':0x1,'memberID':this[_0x380a62(0x40e)],'unitIDs':Array[_0x380a62(0x2cd)](this[_0x380a62(0x25f)])}));}[_0x44ade9(0x345)](_0x33cab0){const _0x1a9f5e=_0x44ade9;switch(_0x33cab0[_0x1a9f5e(0x150)]){case 0x0:this[_0x1a9f5e(0x1d8)](_0x33cab0);break;case 0x1:this['_handleLeaveEvent'](_0x33cab0);break;case 0x2:this[_0x1a9f5e(0x157)](_0x33cab0);break;}}['_handleJoinEvent'](_0x31b886){const _0xb88741=_0x44ade9,{unitIDs:_0x51477d,memberID:_0x4e6e3d,isForwarded:_0x340747}=_0x31b886;_0x51477d['forEach'](_0x4a166a=>{const _0x5171a7=_0x3787;if(!_0x340747&&this[_0x5171a7(0x30a)]['has'](_0x4a166a)&&this['_ensureSubject'](_0x4a166a)[_0x5171a7(0x34e)](0x1),!this[_0x5171a7(0x30a)][_0x5171a7(0x22f)](_0x4a166a)||!this[_0x5171a7(0x30a)][_0x5171a7(0x28e)](_0x4a166a)[_0x5171a7(0x22f)](_0x4e6e3d)){const _0x2fea69=this[_0x5171a7(0x30a)][_0x5171a7(0x28e)](_0x4a166a)||new Set();_0x2fea69['add'](_0x4e6e3d),this['_unitOnClients']['set'](_0x4a166a,_0x2fea69),this[_0x5171a7(0x242)](_0x4e6e3d);}}),_0x340747||this[_0xb88741(0x425)]({'type':0x0,'memberID':this[_0xb88741(0x40e)],'unitIDs':[...this[_0xb88741(0x25f)]],'isForwarded':!0x0});}[_0x44ade9(0x242)](_0x35803d){const _0x539ec4=_0x44ade9;this[_0x539ec4(0x36e)](_0x35803d);const _0xf360e9=window[_0x539ec4(0x471)](()=>{const _0x40ee21=_0x539ec4;this[_0x40ee21(0x30a)]['forEach'](_0x1f35cd=>{const _0xc6fecf=_0x40ee21;_0x1f35cd[_0xc6fecf(0x467)](_0x35803d);});},cs*0x2);this['_clearOtherTimers'][_0x539ec4(0x48c)](_0x35803d,_0xf360e9);}[_0x44ade9(0x36e)](_0xd7c5ed){const _0x3c5ac5=_0x44ade9;if(this['_clearOtherTimers'][_0x3c5ac5(0x22f)](_0xd7c5ed)){const _0x39d1e8=this[_0x3c5ac5(0x1a4)]['get'](_0xd7c5ed);_0x39d1e8&&window[_0x3c5ac5(0x30e)](_0x39d1e8),this[_0x3c5ac5(0x1a4)][_0x3c5ac5(0x48c)](_0xd7c5ed,null);}}[_0x44ade9(0x14c)](_0x5573a0){const _0x4b3272=_0x44ade9,{memberID:_0x1d0892,unitIDs:_0x4b9de2}=_0x5573a0;_0x4b9de2[_0x4b3272(0x362)](_0x185689=>{const _0x261045=_0x4b3272;var _0x1da5ff;const _0x3a868b=this[_0x261045(0x30a)]['get'](_0x185689);_0x3a868b&&(_0x3a868b[_0x261045(0x467)](_0x1d0892),(_0x1da5ff=this['_ensureSubject'](_0x185689))==null||_0x1da5ff[_0x261045(0x34e)](_0x3a868b[_0x261045(0x311)]===0x0?0x0:0x1));}),this[_0x4b3272(0x36e)](_0x1d0892);}[_0x44ade9(0x157)](_0x2c553b){const _0x22ca32=_0x44ade9;this[_0x22ca32(0x242)](_0x2c553b[_0x22ca32(0x143)]);}['_send'](_0x1d5eee){const _0x2623e5=_0x44ade9;localStorage[_0x2623e5(0x15f)](hs,JSON[_0x2623e5(0x41d)](_0x1d5eee));}[_0x44ade9(0x4a1)](){const _0x4a5b95=_0x44ade9;this[_0x4a5b95(0x194)]=window[_0x4a5b95(0x480)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},cs);}[_0x44ade9(0x26b)](_0x4735e0){const _0x1f3b08=_0x44ade9;return this['_unitStatus']['has'](_0x4735e0)||this[_0x1f3b08(0x291)][_0x1f3b08(0x48c)](_0x4735e0,new _0x531abd(0x0)),this['_unitStatus'][_0x1f3b08(0x28e)](_0x4735e0);}}function Hs(_0x5bdc9d){let _0x3a0920='';for(const _0x46cb8e of _0x5bdc9d){const {startOffset:_0x4dd525,endOffset:_0x4f8a61,isActive:_0x1ee93f}=_0x46cb8e;_0x3a0920['length']&&(_0x3a0920+=','),_0x3a0920+=_0x4dd525+':'+_0x4f8a61+':'+(_0x1ee93f?'1':'0');}return _0x3a0920;}function ar(_0x51b86b){const _0x4d6b41=_0x44ade9,_0x44785a=_0x51b86b[_0x4d6b41(0x3c0)](','),_0x5d2639=[];for(const _0x161a2f of _0x44785a){const [_0x1acaa7,_0x37c958,_0x5bc85e]=_0x161a2f[_0x4d6b41(0x3c0)](':');_0x5d2639[_0x4d6b41(0x23e)]({'startOffset':Number(_0x1acaa7),'endOffset':Number(_0x37c958),'collapsed':_0x1acaa7===_0x37c958,'isActive':_0x5bc85e==='1'});}return _0x5d2639['some'](_0x5b2466=>_0x5b2466[_0x4d6b41(0x29d)])||(_0x5d2639[0x0][_0x4d6b41(0x29d)]=!0x0),_0x5d2639;}class Ft extends _0x1d444{constructor(){const _0x159b7e=_0x44ade9;super(...arguments),l(this,_0x159b7e(0x284),new _0x531abd(null)),l(this,_0x159b7e(0x2e8),this[_0x159b7e(0x284)][_0x159b7e(0x458)]());}[_0x44ade9(0x2bb)](_0x163c64){const _0x2e335b=_0x44ade9,{unitID:_0x2bb5bf,memberID:_0x38bc6a,textRanges:_0x263695}=_0x163c64,_0xf297ac=Hs(_0x263695),_0x2cc922={'unitID':_0x2bb5bf,'memberID':_0x38bc6a,'selection':_0xf297ac};this[_0x2e335b(0x284)][_0x2e335b(0x34e)](_0x2cc922);}}var cr=Object['defineProperty'],hr=Object[_0x44ade9(0x418)],lr=(_0x3c4ca5,_0xff1528,_0x361243,_0x4e1fcc)=>{const _0x45356f=_0x44ade9;for(var _0x1345a8=_0x4e1fcc>0x1?void 0x0:_0x4e1fcc?hr(_0xff1528,_0x361243):_0xff1528,_0x2d34a1=_0x3c4ca5[_0x45356f(0x192)]-0x1,_0x16ffab;_0x2d34a1>=0x0;_0x2d34a1--)(_0x16ffab=_0x3c4ca5[_0x2d34a1])&&(_0x1345a8=(_0x4e1fcc?_0x16ffab(_0xff1528,_0x361243,_0x1345a8):_0x16ffab(_0x1345a8))||_0x1345a8);return _0x4e1fcc&&_0x1345a8&&cr(_0xff1528,_0x361243,_0x1345a8),_0x1345a8;},ls=(_0x2a1bac,_0x567669)=>(_0x1d739e,_0x1e20e8)=>_0x567669(_0x1d739e,_0x1e20e8,_0x2a1bac);let et=class{constructor(_0x41c1ed,_0x311737){this['_injector']=_0x41c1ed,this['_transformService']=_0x311737;}[_0x44ade9(0x46a)](_0x3f0667){const _0x4878e1=_0x44ade9;var _0x3fef7f;const _0x42e375=this[_0x4878e1(0x181)][_0x4878e1(0x28e)](_0x56b8b2),_0x415b34=(_0x3fef7f=_0x42e375[_0x4878e1(0x3bd)]())!=null?_0x3fef7f:[];if(_0x415b34['length']===0x0)return;const _0xc912f5=[{'id':_0x4878e1(0x41a),'params':{'unitId':_0x3f0667[_0x4878e1(0x42f)],'actions':null,'textRanges':_0x415b34}}],_0x157eaa=this[_0x4878e1(0x16a)][_0x4878e1(0x169)](_0x3f0667,_0xc912f5);if(!_0x24ef98(_0x157eaa))throw _0x157eaa['error'];const _0x4ccc3d=_0x157eaa[_0x4878e1(0x483)][0x0]['params'][_0x4878e1(0x2b9)];Array['isArray'](_0x4ccc3d)&&_0x4ccc3d[_0x4878e1(0x192)]&&_0x42e375[_0x4878e1(0x298)](_0x4ccc3d,!0x1);}};et=lr([ls(0x0,_0x180372(_0x15d871)),ls(0x1,_0x446e46)],et);const _r=new Set([_0x1f929a['id']]);function _s(_0x3aefc1,_0xa30229,_0x12c67f,_0x80113c,_0x58ef99){const _0x3746fd=_0x44ade9;var _0x300879,_0x606d59,_0x1aa93a,_0x2043e7;const _0x4bdf69=[];for(const _0x121f93 of _0x3aefc1)if(_r[_0x3746fd(0x22f)](_0x121f93['id'])){if(_0x4bdf69[_0x3746fd(0x192)]>0x0)break;_0x4bdf69['push'](_0x121f93);break;}else _0x4bdf69[_0x3746fd(0x23e)](_0x121f93);const _0x502c3a=(_0x606d59=(_0x300879=_0x58ef99['getCurrentUser']())==null?void 0x0:_0x300879[_0x3746fd(0x455)])!=null?_0x606d59:_0x3746fd(0x353),_0x21fff7=(_0x2043e7=(_0x1aa93a=_0x58ef99[_0x3746fd(0x2d0)]())==null?void 0x0:_0x1aa93a[_0x3746fd(0x143)])!=null?_0x2043e7:'unknown';return{'changeset':{'unitID':_0xa30229,'type':_0x469599(_0x12c67f[_0x3746fd(0x48d)](_0xa30229)),'baseRev':_0x80113c[_0x3746fd(0x409)](_0xa30229),'revision':0x0,'userID':_0x502c3a,'memberID':_0x21fff7,'mutations':_0x4bdf69},'pendingMutations':_0x3aefc1[_0x3746fd(0x1ac)](_0x4bdf69[_0x3746fd(0x192)])};}function ur(_0x340e4f,_0x3ed5b6,_0x5c358b,_0x1dbf65,_0xa1f0fa){const _0x9c3969=_0x44ade9;var _0x270789,_0x278190,_0x558ac4,_0x1f4e93;const _0x45749f=[_0x340e4f[_0x9c3969(0x2e4)]((_0x36a244,_0x3964fa)=>{const _0x2f8409=_0x9c3969;var _0x482167;const {id:_0x3e8ea6}=_0x36a244,{id:_0x57ed0b,type:_0x48131f}=_0x3964fa,_0x41618c=(_0x482167=_0x36a244[_0x2f8409(0x1d5)])!=null?_0x482167:{'actions':null},_0x5bcd2d=_0x3964fa[_0x2f8409(0x1d5)];if(_0x3e8ea6&&_0x3e8ea6!==_0x57ed0b)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3e8ea6+_0x2f8409(0x31a)+_0x57ed0b+'.');return{..._0x36a244,'id':_0x57ed0b,'type':_0x48131f,'params':{'unitId':_0x5bcd2d[_0x2f8409(0x288)],'textRanges':_0x5bcd2d['textRanges'],'actions':_0xe8b1b1['compose'](_0x41618c['actions'],_0x5bcd2d['actions'])}};},{})],_0x130a9d=(_0x278190=(_0x270789=_0xa1f0fa[_0x9c3969(0x2d0)]())==null?void 0x0:_0x270789[_0x9c3969(0x455)])!=null?_0x278190:_0x9c3969(0x353),_0x2f56c0=(_0x1f4e93=(_0x558ac4=_0xa1f0fa['getCurrentUser']())==null?void 0x0:_0x558ac4[_0x9c3969(0x143)])!=null?_0x1f4e93:_0x9c3969(0x353);return{'changeset':{'unitID':_0x3ed5b6,'type':_0x469599(_0x5c358b[_0x9c3969(0x48d)](_0x3ed5b6)),'baseRev':_0x1dbf65[_0x9c3969(0x409)](_0x3ed5b6),'revision':0x0,'userID':_0x130a9d,'memberID':_0x2f56c0,'mutations':_0x45749f},'pendingMutations':[]};}const dr={'id':_0x4fd1b4['id'],'type':_0x101550['MUTATION'],'params':{}};var fr=Object[_0x44ade9(0x421)],mr=Object[_0x44ade9(0x418)],le=(_0x176afc,_0x3d0dee,_0x2505ee,_0x3cc91f)=>{const _0x521836=_0x44ade9;for(var _0x700f45=_0x3cc91f>0x1?void 0x0:_0x3cc91f?mr(_0x3d0dee,_0x2505ee):_0x3d0dee,_0x430280=_0x176afc[_0x521836(0x192)]-0x1,_0x3af4d4;_0x430280>=0x0;_0x430280--)(_0x3af4d4=_0x176afc[_0x430280])&&(_0x700f45=(_0x3cc91f?_0x3af4d4(_0x3d0dee,_0x2505ee,_0x700f45):_0x3af4d4(_0x700f45))||_0x700f45);return _0x3cc91f&&_0x700f45&&fr(_0x3d0dee,_0x2505ee,_0x700f45),_0x700f45;},m=(_0x2583f1,_0x409cf5)=>(_0x25e060,_0x2a33d9)=>_0x409cf5(_0x25e060,_0x2a33d9,_0x2583f1),w=(_0xdec016=>(_0xdec016[_0x44ade9(0x23c)]=_0x44ade9(0x3eb),_0xdec016['SYNCED']='synced',_0xdec016[_0x44ade9(0x3b8)]=_0x44ade9(0x1c8),_0xdec016[_0x44ade9(0x2c6)]=_0x44ade9(0x461),_0xdec016[_0x44ade9(0x2b4)]=_0x44ade9(0x3e1),_0xdec016[_0x44ade9(0x2f8)]=_0x44ade9(0x206),_0xdec016[_0x44ade9(0x32d)]='conflict',_0xdec016[_0x44ade9(0x1c6)]=_0x44ade9(0x241),_0xdec016))(w||{});class _e{constructor(_0x1ce3d6,_0xdbe1af,_0x1efc17,_0x526e64,_0x243ef6,_0x3f3d8c,_0x36d25a,_0x2ee9cc,_0x15d25f){const _0x204e89=_0x44ade9;l(this,'_awaitingChangeset',null),l(this,_0x204e89(0x348),[]),(this[_0x204e89(0x42f)]=_0x1ce3d6,this[_0x204e89(0x150)]=_0xdbe1af,this[_0x204e89(0x28c)]=_0x243ef6,this[_0x204e89(0x1a6)]=_0x3f3d8c,this[_0x204e89(0x3a5)]=_0x36d25a,this[_0x204e89(0x3fa)]=_0x2ee9cc,this[_0x204e89(0x15b)]=_0x15d25f,this[_0x204e89(0x363)]=_0x1efc17,this[_0x204e89(0x348)]=_0x526e64);}[_0x44ade9(0x3f4)](_0x841290){const _0x55e281=_0x44ade9,_0x1643ab=this[_0x55e281(0x3fa)][_0x55e281(0x409)](this['unitID']);return _0x841290[_0x55e281(0x2fb)]>_0x1643ab+0x1?(this['_handler'][_0x55e281(0x392)]({'from':_0x1643ab,'to':_0x841290[_0x55e281(0x2fb)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x260515){const _0x1af705=_0x44ade9;this[_0x1af705(0x3a5)][_0x1af705(0x1a1)](this['unitID'],_0x260515);}[_0x44ade9(0x380)](_0x4b989f){const _0x16a7f2=_0x44ade9;var _0x207b19,_0x2ac0fe;(_0x2ac0fe=(_0x207b19=this[_0x16a7f2(0x28c)])[_0x16a7f2(0x3e9)])==null||_0x2ac0fe[_0x16a7f2(0x303)](_0x207b19,_0x4b989f);}['_transformIMECache'](_0x188ec7){const _0x2d794e=_0x44ade9;var _0x54708b,_0x72cc2e;return(_0x72cc2e=(_0x54708b=this['_handler'])[_0x2d794e(0x2a8)])==null?void 0x0:_0x72cc2e[_0x2d794e(0x303)](_0x54708b,_0x188ec7);}[_0x44ade9(0x33f)](_0x2dd76f){const _0x200fdb=_0x44ade9;var _0x2719ce,_0x53e480,_0x46013a;return(_0x46013a=(_0x53e480=(_0x2719ce=this[_0x200fdb(0x28c)])[_0x200fdb(0x37b)])==null?void 0x0:_0x53e480[_0x200fdb(0x303)](_0x2719ce,_0x2dd76f))!=null?_0x46013a:_0x2dd76f;}['_syncEditingCollabCursor'](_0x548c34){const _0x1d06d0=_0x44ade9;var _0x3d0b45,_0x5e3882;if(this[_0x1d06d0(0x150)]===H[_0x1d06d0(0x3b0)]){const {unitID:_0x513e58,mutations:_0x133171,memberID:_0xf98b64}=_0x548c34,_0x25964a=_0x133171[0x0][_0x1d06d0(0x1d5)]['textRanges'];Array[_0x1d06d0(0x254)](_0x25964a)&&_0x25964a['length']>0x0&&((_0x5e3882=(_0x3d0b45=this[_0x1d06d0(0x28c)])['onSyncEditingCollabCursor'])==null||_0x5e3882['call'](_0x3d0b45,{'unitID':_0x513e58,'memberID':_0xf98b64,'textRanges':_0x25964a}));}}['_updateLocalCache'](){const _0x441aeb=_0x44ade9;this[_0x441aeb(0x15b)][_0x441aeb(0x3b7)](this[_0x441aeb(0x42f)],this[_0x441aeb(0x150)],this[_0x441aeb(0x363)],this[_0x441aeb(0x348)]);}[_0x44ade9(0x366)](){const _0x8614d4=_0x44ade9;return this['_revisionService'][_0x8614d4(0x409)](this['unitID']);}[_0x44ade9(0x332)](){const _0x4c2068=_0x44ade9;this[_0x4c2068(0x3fa)][_0x4c2068(0x354)](this[_0x4c2068(0x42f)]);}['_executeRemoteChangeset'](_0x1bae07){const _0x1aca56=_0x44ade9;var _0x2ade0d;const _0x1e7281=this[_0x1aca56(0x33f)](_0x1bae07),_0x510fd6=_0x546da2(_0x1e7281[_0x1aca56(0x230)],this[_0x1aca56(0x1a6)],{'fromCollab':!0x0});if(!_0x510fd6[_0x1aca56(0x234)])throw _0x510fd6[_0x1aca56(0x1c9)]instanceof Error?_0x510fd6[_0x1aca56(0x1c9)]:new Error((_0x2ade0d=_0x510fd6[_0x1aca56(0x1c9)])!=null?_0x2ade0d:_0x1aca56(0x477));this[_0x1aca56(0x485)](_0x1e7281),this['_transformUndoredo'](_0x1bae07),this[_0x1aca56(0x380)](_0x1e7281),this[_0x1aca56(0x2bd)](_0x1e7281),this['_incrementRevisionNumber']();}}let pe=class extends _e{constructor(_0x482070,_0x1ba0da,_0xa43c6a,_0x4c7f7f,_0x32f113,_0xf0bd09,_0x5a4552,_0x212a37,_0x1a308b,_0x28e31e){const _0x2f5d51=_0x44ade9;super(_0x482070,_0x1ba0da,null,[],_0xa43c6a,_0x212a37,_0x5a4552,_0x4c7f7f,_0x32f113),l(this,_0x2f5d51(0x14f),'synced'),(this['_injector']=_0xf0bd09,this[_0x2f5d51(0x1a3)]=_0x1a308b,this[_0x2f5d51(0x16a)]=_0x28e31e);}[_0x44ade9(0x2e5)](_0x47bbba){const _0x395963=_0x44ade9,_0x297d55=this[_0x395963(0x181)][_0x395963(0x307)](K,this[_0x395963(0x42f)],this[_0x395963(0x150)],[_0x47bbba],this[_0x395963(0x28c)]);return _0x297d55[_0x395963(0x2bc)](),_0x297d55[_0x395963(0x347)](),_0x297d55;}[_0x44ade9(0x464)](_0x1e79fc){const _0x558c0a=_0x44ade9;if(this[_0x558c0a(0x3f4)](_0x1e79fc))return this[_0x558c0a(0x181)][_0x558c0a(0x307)](k,this['unitID'],this[_0x558c0a(0x150)],null,[],null,[_0x1e79fc],this[_0x558c0a(0x28c)]);try{const _0x4f8978=this[_0x558c0a(0x16a)][_0x558c0a(0x169)](_0x1e79fc,[dr]);if(_0x24ef98(_0x4f8978)){const {c1Prime:_0x452c35}=_0x4f8978;return this[_0x558c0a(0x13e)](_0x452c35),this;}throw _0x4f8978[_0x558c0a(0x1c9)];}catch(_0x1c86e5){return this[_0x558c0a(0x1a3)]['error'](_0x1c86e5),this[_0x558c0a(0x37e)](!0x1);}}[_0x44ade9(0x37e)](_0x348aee){const _0x3ded12=_0x44ade9;return this[_0x3ded12(0x181)][_0x3ded12(0x307)](ee,this['unitID'],this[_0x3ded12(0x150)],null,[],this[_0x3ded12(0x28c)],_0x348aee);}[_0x44ade9(0x4ac)](){const _0x2b96ae=_0x44ade9;throw new Error(_0x2b96ae(0x3f9));}[_0x44ade9(0x324)](){const _0xbb7779=_0x44ade9;throw new Error(_0xbb7779(0x15e));}[_0x44ade9(0x1e2)](){const _0x47888a=_0x44ade9;return this['_injector'][_0x47888a(0x307)](te,this[_0x47888a(0x42f)],this[_0x47888a(0x150)],null,[],this[_0x47888a(0x28c)]);}['toggleOnline'](){return this;}['resend'](){const _0xd68166=_0x44ade9;throw new Error(_0xd68166(0x1af));}[_0x44ade9(0x488)](){const _0xbc7ecb=_0x44ade9,_0x5358fb=this[_0xbc7ecb(0x3fa)][_0xbc7ecb(0x409)](this['unitID']);return this[_0xbc7ecb(0x28c)]['onMissingChangesets']({'from':_0x5358fb,'to':0x0}),this[_0xbc7ecb(0x181)][_0xbc7ecb(0x307)](k,this[_0xbc7ecb(0x42f)],this[_0xbc7ecb(0x150)],null,[],null,[],this['_handler']);}};pe=le([m(0x3,_0x180372(_0x2123f3)),m(0x4,_0x180372(D)),m(0x5,_0x180372(_0x15d871)),m(0x6,_0x3cf637),m(0x7,_0x2bc808),m(0x8,_0x4611a9),m(0x9,_0x446e46)],pe);let K=class extends _e{constructor(_0x1be74d,_0x23b81e,_0x5f58c6,_0x20e303,_0x38fc47,_0x3583fd,_0x302b82,_0x40d368,_0x31aacc,_0xb5850c,_0x29bc62,_0xad9dba,_0xd8a3ef,_0x1a9f95){const _0x47babf=_0x44ade9;super(_0x1be74d,_0x23b81e,null,_0x5f58c6,_0x20e303,_0xb5850c,_0x1a9f95,_0x3583fd,_0x302b82),l(this,_0x47babf(0x14f),_0x47babf(0x1c8)),l(this,_0x47babf(0x21a),null),l(this,_0x47babf(0x18b),null),(this['_injector']=_0x38fc47,this['_memberService']=_0x40d368,this[_0x47babf(0x1a3)]=_0x31aacc,this['_configService']=_0x29bc62,this[_0x47babf(0x16a)]=_0xad9dba,this[_0x47babf(0x470)]=_0xd8a3ef);}[_0x44ade9(0x2e5)](_0x5929bf){const _0x54b99c=_0x44ade9;return this[_0x54b99c(0x348)]['push'](_0x5929bf),this[_0x54b99c(0x347)](),this;}[_0x44ade9(0x464)](_0x8fc663){const _0x2eacfa=_0x44ade9;if(this[_0x2eacfa(0x3f4)](_0x8fc663))return this[_0x2eacfa(0x43a)](),this[_0x2eacfa(0x181)]['createInstance'](k,this['unitID'],this[_0x2eacfa(0x150)],null,this[_0x2eacfa(0x348)],null,[_0x8fc663],this[_0x2eacfa(0x28c)]);try{const _0x1c7ca1=this[_0x2eacfa(0x16a)][_0x2eacfa(0x169)](_0x8fc663,this[_0x2eacfa(0x348)]);if(_0x24ef98(_0x1c7ca1)){const {c1Prime:_0x2a8baf,m2Prime:_0x21eba5}=_0x1c7ca1;this[_0x2eacfa(0x13e)](_0x2a8baf);const _0x393461=this['_injector'][_0x2eacfa(0x307)](K,this[_0x2eacfa(0x42f)],this['type'],_0x21eba5,this[_0x2eacfa(0x28c)]);return this[_0x2eacfa(0x43a)](),_0x393461[_0x2eacfa(0x2bc)](this[_0x2eacfa(0x21a)]?Math[_0x2eacfa(0x21f)](0x0,new Date()['getTime']()-this[_0x2eacfa(0x21a)]):this[_0x2eacfa(0x32c)]()),_0x393461;}throw _0x1c7ca1[_0x2eacfa(0x1c9)];}catch(_0x32ff31){return this[_0x2eacfa(0x1a3)][_0x2eacfa(0x1c9)](_0x32ff31),this[_0x2eacfa(0x37e)](!0x1);}}[_0x44ade9(0x4ac)](){const _0x4d230d=_0x44ade9;throw new Error(_0x4d230d(0x393));}[_0x44ade9(0x324)](){const _0x36238e=_0x44ade9;throw new Error(_0x36238e(0x1e0));}['toggleOffline'](){const _0x551176=_0x44ade9;return this[_0x551176(0x43a)](),this[_0x551176(0x181)][_0x551176(0x307)](te,this[_0x551176(0x42f)],this['type'],null,this['_pendingMutations'],this[_0x551176(0x28c)]);}['toggleOnline'](){return this;}[_0x44ade9(0x2bc)](_0x48b9e8){const _0x4f02ca=_0x44ade9,_0x151ca1=_0x48b9e8!=null?_0x48b9e8:this[_0x4f02ca(0x32c)]();this[_0x4f02ca(0x21a)]=new Date()['getTime'](),this[_0x4f02ca(0x18b)]=window[_0x4f02ca(0x471)](()=>{const _0x484351=_0x4f02ca;this[_0x484351(0x43a)]();let _0x5b662d=null;switch(this[_0x484351(0x150)]){case H[_0x484351(0x233)]:{_0x5b662d=_s(this[_0x484351(0x348)],this[_0x484351(0x42f)],this['_univerInstanceService'],this[_0x484351(0x3fa)],this[_0x484351(0x450)]);break;}case H[_0x484351(0x3b0)]:{this[_0x484351(0x348)]['every'](_0x57def3=>_0x57def3['id']===_0x27d3d0['id'])?_0x5b662d=ur(this[_0x484351(0x348)],this[_0x484351(0x42f)],this[_0x484351(0x470)],this[_0x484351(0x3fa)],this[_0x484351(0x450)]):_0x5b662d=_s(this[_0x484351(0x348)],this[_0x484351(0x42f)],this[_0x484351(0x470)],this[_0x484351(0x3fa)],this[_0x484351(0x450)]);break;}default:throw new Error(_0x484351(0x462)+this[_0x484351(0x150)]+'\x20in\x20_schedule.');}const {changeset:_0x179533,pendingMutations:_0xf5325f}=_0x5b662d;this[_0x484351(0x28c)]['onSendChangeset'](_0x179533);const _0x5d27bf=_0xf5325f['length']?this['_injector'][_0x484351(0x307)](X,this['unitID'],this[_0x484351(0x150)],_0x179533,_0xf5325f,this[_0x484351(0x28c)]):this['_injector'][_0x484351(0x307)](Q,this['unitID'],this[_0x484351(0x150)],_0x179533,this[_0x484351(0x28c)]);_0x5d27bf[_0x484351(0x347)](),this[_0x484351(0x28c)]['onStateChange'](this,_0x5d27bf);},_0x151ca1);}[_0x44ade9(0x32c)](){var _0x387e2f;const _0x448b94=this['_configService']['getConfig'](L);return(_0x387e2f=_0x448b94==null?void 0x0:_0x448b94['sendChangesetTimeout'])!=null?_0x387e2f:Sn;}['resend'](){const _0x49fc14=_0x44ade9;throw new Error(_0x49fc14(0x1fb));}[_0x44ade9(0x43a)](){const _0x4434fc=_0x44ade9;this[_0x4434fc(0x18b)]!=null&&(clearTimeout(this[_0x4434fc(0x18b)]),this['_sendingTimer']=null);}['_onConflict'](_0x3b0021){const _0x5b1a3a=_0x44ade9;return this[_0x5b1a3a(0x43a)](),this['_injector'][_0x5b1a3a(0x307)](ee,this['unitID'],this[_0x5b1a3a(0x150)],null,this[_0x5b1a3a(0x348)],this[_0x5b1a3a(0x28c)],_0x3b0021);}};K=le([m(0x4,_0x180372(_0x15d871)),m(0x5,_0x180372(_0x2123f3)),m(0x6,_0x180372(D)),m(0x7,_0x180372(ae)),m(0x8,_0x4611a9),m(0x9,_0x2bc808),m(0xa,_0x1fe23f),m(0xb,_0x446e46),m(0xc,_0x4c19c5),m(0xd,_0x3cf637)],K);let Q=class extends _e{constructor(_0x22b5e4,_0x584d30,_0x2aa159,_0x1aec6b,_0x14f6ab,_0x56a0b5,_0x554746,_0x2349c7,_0x265365,_0x364643,_0x58578b){const _0x389d4c=_0x44ade9;super(_0x22b5e4,_0x584d30,_0x2aa159,[],_0x1aec6b,_0x2349c7,_0x58578b,_0x56a0b5,_0x554746),l(this,_0x389d4c(0x14f),_0x389d4c(0x461)),(this[_0x389d4c(0x181)]=_0x14f6ab,this['_logService']=_0x265365,this[_0x389d4c(0x16a)]=_0x364643);}[_0x44ade9(0x2e5)](_0x4eac98){const _0x545685=_0x44ade9,_0x481bc8=this['_injector'][_0x545685(0x307)](X,this[_0x545685(0x42f)],this['type'],this[_0x545685(0x363)],[_0x4eac98],this['_handler']);return _0x481bc8[_0x545685(0x347)](),_0x481bc8;}[_0x44ade9(0x464)](_0x4e4b88){const _0x449520=_0x44ade9;if(this[_0x449520(0x3f4)](_0x4e4b88))return this[_0x449520(0x181)][_0x449520(0x307)](k,this[_0x449520(0x42f)],this[_0x449520(0x150)],this[_0x449520(0x363)],[],null,[_0x4e4b88],this[_0x449520(0x28c)]);try{const _0x43b60f=this[_0x449520(0x16a)][_0x449520(0x2b6)]([_0x4e4b88],[this[_0x449520(0x363)]],!0x1);if(_0x584035(_0x43b60f)){const {c1Prime:_0x44beaa,c2Prime:_0x2d9dbc}=_0x43b60f;this[_0x449520(0x13e)](_0x44beaa[0x0]),_0x2d9dbc[0x0]['baseRev']=this[_0x449520(0x366)]();const _0x388ab5=this[_0x449520(0x181)][_0x449520(0x307)](Q,this['unitID'],this[_0x449520(0x150)],_0x2d9dbc[0x0],this[_0x449520(0x28c)]);return _0x388ab5['_updateLocalCache'](),_0x388ab5;}return this[_0x449520(0x37e)](!0x1);}catch(_0x11ff7a){return this[_0x449520(0x1a3)][_0x449520(0x1c9)](_0x11ff7a),this[_0x449520(0x37e)](!0x1);}}[_0x44ade9(0x4ac)](_0x5c31d7){const _0x3d6e51=_0x44ade9,_0x5049c3=this[_0x3d6e51(0x3fa)][_0x3d6e51(0x409)](this[_0x3d6e51(0x42f)]);if(_0x5c31d7[_0x3d6e51(0x2fb)]<_0x5049c3-0x1)return this;if(this[_0x3d6e51(0x3f4)](_0x5c31d7))return this[_0x3d6e51(0x181)][_0x3d6e51(0x307)](k,this[_0x3d6e51(0x42f)],this[_0x3d6e51(0x150)],null,[],this[_0x3d6e51(0x363)],[],this[_0x3d6e51(0x28c)]);this[_0x3d6e51(0x332)]();const _0x465e59=this[_0x3d6e51(0x181)][_0x3d6e51(0x307)](pe,this['unitID'],this[_0x3d6e51(0x150)],this[_0x3d6e51(0x28c)]);return _0x465e59['_updateLocalCache'](),_0x465e59;}[_0x44ade9(0x324)](_0xc1de67){return this['_onConflict'](!!(_0xc1de67!=null&&_0xc1de67['isPermissionRej']));}[_0x44ade9(0x1e2)](){const _0x112e8b=_0x44ade9;return this[_0x112e8b(0x181)]['createInstance'](te,this[_0x112e8b(0x42f)],this[_0x112e8b(0x150)],this[_0x112e8b(0x363)],[],this[_0x112e8b(0x28c)]);}[_0x44ade9(0x493)](){return this;}['resend'](){const _0x10755d=_0x44ade9;this[_0x10755d(0x28c)]['onSendChangeset'](this[_0x10755d(0x363)]);}[_0x44ade9(0x37e)](_0x99ebee){const _0x112ffa=_0x44ade9;return this[_0x112ffa(0x181)][_0x112ffa(0x307)](ee,this[_0x112ffa(0x42f)],this[_0x112ffa(0x150)],this['_awaitingChangeset'],[],this[_0x112ffa(0x28c)],_0x99ebee);}};Q=le([m(0x4,_0x180372(_0x15d871)),m(0x5,_0x180372(_0x2123f3)),m(0x6,_0x180372(D)),m(0x7,_0x2bc808),m(0x8,_0x4611a9),m(0x9,_0x446e46),m(0xa,_0x3cf637)],Q);let X=class extends _e{constructor(_0x315157,_0x47dc8b,_0xc457c5,_0x1eeac3,_0xa17c39,_0x3a0fc3,_0xb38109,_0x4ba71a,_0x5540b2,_0x88ece8,_0x2e6808,_0x4155d4){const _0x245bd5=_0x44ade9;super(_0x315157,_0x47dc8b,_0xc457c5,_0x1eeac3,_0xa17c39,_0x5540b2,_0x4155d4,_0xb38109,_0x4ba71a),l(this,_0x245bd5(0x14f),'awaiting_with_pending'),(this[_0x245bd5(0x181)]=_0x3a0fc3,this['_logService']=_0x88ece8,this[_0x245bd5(0x16a)]=_0x2e6808);}[_0x44ade9(0x2e5)](_0x281abf){const _0xb48f79=_0x44ade9;return this[_0xb48f79(0x348)][_0xb48f79(0x23e)](_0x281abf),this;}[_0x44ade9(0x464)](_0x384656){const _0x18a433=_0x44ade9;if(this['_checkMissing'](_0x384656))return this['_injector']['createInstance'](k,this['unitID'],this[_0x18a433(0x150)],this[_0x18a433(0x363)],this[_0x18a433(0x348)],null,[_0x384656],this[_0x18a433(0x28c)]);try{const _0xb283b6=this['_transformService']['transformChangesets']([_0x384656],[this[_0x18a433(0x363)]],!0x1);if(_0x584035(_0xb283b6)){const {c1Prime:_0x2cb358,c2Prime:_0x2385ea}=_0xb283b6,_0x36c46f=this[_0x18a433(0x16a)][_0x18a433(0x169)](_0x2cb358[0x0],this[_0x18a433(0x348)]);if(_0x24ef98(_0x36c46f)){const {c1Prime:_0x3754e0,m2Prime:_0x2bf4d2}=_0x36c46f;return this[_0x18a433(0x13e)](_0x3754e0),_0x2385ea[0x0]['baseRev']=this[_0x18a433(0x366)](),this[_0x18a433(0x181)][_0x18a433(0x307)](X,this['unitID'],this[_0x18a433(0x150)],_0x2385ea[0x0],_0x2bf4d2,this[_0x18a433(0x28c)]);}throw _0x36c46f[_0x18a433(0x1c9)];}throw _0xb283b6[_0x18a433(0x1c9)];}catch(_0x16adb2){return this['_logService']['error'](_0x16adb2),this[_0x18a433(0x37e)](!0x1);}}['onRemoteAck'](_0x53d7b3){const _0x4c4ea6=_0x44ade9;if(this[_0x4c4ea6(0x3f4)](_0x53d7b3))return this[_0x4c4ea6(0x181)]['createInstance'](k,this[_0x4c4ea6(0x42f)],this[_0x4c4ea6(0x150)],null,this[_0x4c4ea6(0x348)],this[_0x4c4ea6(0x363)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x5d90b3=this['_injector'][_0x4c4ea6(0x307)](K,this[_0x4c4ea6(0x42f)],this[_0x4c4ea6(0x150)],this[_0x4c4ea6(0x348)],this['_handler']);return _0x5d90b3['_schedule'](),_0x5d90b3[_0x4c4ea6(0x347)](),_0x5d90b3;}[_0x44ade9(0x324)](_0x33e7fb){return this['_onConflict'](!!(_0x33e7fb!=null&&_0x33e7fb['isPermissionRej']));}['toggleOffline'](){const _0x4acbdc=_0x44ade9;return this[_0x4acbdc(0x181)]['createInstance'](te,this[_0x4acbdc(0x42f)],this[_0x4acbdc(0x150)],this[_0x4acbdc(0x363)],this['_pendingMutations'],this[_0x4acbdc(0x28c)]);}['toggleOnline'](){return this;}[_0x44ade9(0x386)](){const _0x54897b=_0x44ade9;this[_0x54897b(0x28c)][_0x54897b(0x3a2)](this['_awaitingChangeset']);}['_onConflict'](_0x4052c5){const _0xe2e858=_0x44ade9;return this[_0xe2e858(0x181)]['createInstance'](ee,this['unitID'],this[_0xe2e858(0x150)],null,this[_0xe2e858(0x348)],this[_0xe2e858(0x28c)],_0x4052c5);}};X=le([m(0x5,_0x180372(_0x15d871)),m(0x6,_0x180372(_0x2123f3)),m(0x7,_0x180372(D)),m(0x8,_0x2bc808),m(0x9,_0x4611a9),m(0xa,_0x446e46),m(0xb,_0x3cf637)],X);let ee=class extends _e{constructor(_0x2fd519,_0x4ded06,_0x5563ab,_0x5e86b5,_0x27d275,_0x370693=!0x1,_0x1ff82e,_0x5598f4,_0x1eb088,_0xb89d2c,_0x2b6ba6,_0x34d6db,_0x3452cb){const _0x20fb37=_0x44ade9;super(_0x2fd519,_0x4ded06,_0x5563ab,_0x5e86b5,_0x27d275,_0x5598f4,_0x1eb088,_0x2b6ba6,_0xb89d2c),l(this,'status',_0x20fb37(0x1ec)),(this[_0x20fb37(0x163)]=_0x370693,this['_permissionService']=_0x1ff82e,this[_0x20fb37(0x267)]=_0x34d6db,this[_0x20fb37(0x286)]=_0x3452cb,this[_0x20fb37(0x20b)](),this['_clearLocalCache'](),this[_0x20fb37(0x2df)]());}[_0x44ade9(0x2e5)](){return this;}['onRemoteChangeset'](){return this;}[_0x44ade9(0x4ac)](){return this;}['onRemoteRej'](){return this;}[_0x44ade9(0x1e2)](){return this;}[_0x44ade9(0x493)](){return this;}[_0x44ade9(0x386)](){const _0x7b7c2=_0x44ade9;throw new Error(_0x7b7c2(0x1ad));}[_0x44ade9(0x174)](){const _0x462650=_0x44ade9;this[_0x462650(0x15b)][_0x462650(0x3b7)](this[_0x462650(0x42f)],this[_0x462650(0x150)],null,[]);}[_0x44ade9(0x20b)](){const _0x3fc09d=_0x44ade9;this[_0x3fc09d(0x163)]?this[_0x3fc09d(0x286)][_0x3fc09d(0x15d)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3fc09d(0x267)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x3fc09d(0x286)][_0x3fc09d(0x15d)]({'title':this[_0x3fc09d(0x267)]['t'](_0x3fc09d(0x3b1)),'content':this[_0x3fc09d(0x267)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x44ade9(0x2df)](){const _0x4ecc1d=_0x44ade9;this[_0x4ecc1d(0x44f)]['updatePermissionPoint'](new _0x4f24bc(this[_0x4ecc1d(0x42f)])['id'],!0x1);}};ee=le([m(0x6,_0x180372(_0x7677d9)),m(0x7,_0x2bc808),m(0x8,_0x3cf637),m(0x9,_0x180372(D)),m(0xa,_0x180372(_0x2123f3)),m(0xb,_0x180372(_0x787113)),m(0xc,_0xc8419c)],ee);let te=class extends _e{constructor(_0x33f37d,_0x3c924b,_0x56c021,_0x2180bc,_0x59853e,_0x123221,_0x287af7,_0x4e3e0f,_0x2c27b0,_0x258480){const _0x4fd3a1=_0x44ade9;super(_0x33f37d,_0x3c924b,_0x56c021,_0x2180bc,_0x59853e,_0x2c27b0,_0x258480,_0x287af7,_0x4e3e0f),l(this,_0x4fd3a1(0x14f),'offline'),this[_0x4fd3a1(0x181)]=_0x123221;}[_0x44ade9(0x2e5)](_0x1abb22){const _0x2928ea=_0x44ade9;return this['_pendingMutations'][_0x2928ea(0x23e)](_0x1abb22),this[_0x2928ea(0x347)](),this;}['onRemoteChangeset'](_0xc7c50){const _0x4fcc7f=_0x44ade9;throw new Error(_0x4fcc7f(0x263));}['onRemoteAck'](){const _0x5cf9f4=_0x44ade9;throw new Error(_0x5cf9f4(0x47d));}[_0x44ade9(0x324)](){const _0x44ffab=_0x44ade9;throw new Error(_0x44ffab(0x37c));}[_0x44ade9(0x1e2)](){return this;}[_0x44ade9(0x493)](){const _0xf84449=_0x44ade9,{_injector:_0x2b478b,_pendingMutations:_0xb86c12,_awaitingChangeset:_0x146d0d,unitID:_0x27e82d,_handler:_0xb31bac,type:_0x358f0b}=this,_0x2ed4a9=ks(_0x2b478b,_0x27e82d,_0x358f0b,_0x146d0d,_0xb86c12,_0xb31bac);return _0x2ed4a9 instanceof K?_0x2ed4a9['_schedule']():(_0x2ed4a9 instanceof X||_0x2ed4a9 instanceof Q)&&_0x2ed4a9[_0xf84449(0x386)](),_0x2ed4a9;}[_0x44ade9(0x386)](){const _0x1e7a24=_0x44ade9;throw new Error(_0x1e7a24(0x208));}};te=le([m(0x5,_0x180372(_0x15d871)),m(0x6,_0x180372(_0x2123f3)),m(0x7,_0x180372(D)),m(0x8,_0x2bc808),m(0x9,_0x3cf637)],te);let k=class extends _e{constructor(_0x49a235,_0x1526fa,_0x30dce5,_0x2d8db8,_0x2fe45f,_0x3f85f6,_0x21acaf,_0x5dc409,_0x5efb2d,_0x5007bc,_0xd4de34,_0x697e84,_0x4762ea,_0x3979dd){const _0x54c448=_0x44ade9;super(_0x49a235,_0x1526fa,_0x30dce5,_0x2d8db8,_0x21acaf,_0x697e84,_0x4762ea,_0x5efb2d,_0x5007bc),l(this,_0x54c448(0x14f),_0x54c448(0x206)),(this[_0x54c448(0x387)]=_0x2fe45f,this[_0x54c448(0x3db)]=_0x3f85f6,this[_0x54c448(0x181)]=_0x5dc409,this[_0x54c448(0x1a3)]=_0xd4de34,this['_transformService']=_0x3979dd);}['onMissedChangesetFetched'](_0x2c65d6){const _0x42a451=_0x44ade9;try{const _0x51c68e=[..._0x2c65d6,...this[_0x42a451(0x3db)]],_0x460de2=[this[_0x42a451(0x363)]||this[_0x42a451(0x387)]]['filter'](_0x53e549=>!!_0x53e549);let _0x5f51fc,_0x429e49;if(_0x460de2[_0x42a451(0x192)]){const _0x238ea1=this['_transformService']['transformChangesets'](_0x51c68e,_0x460de2,!0x1);if(!_0x584035(_0x238ea1))throw _0x238ea1['error'];_0x5f51fc=_0x238ea1[_0x42a451(0x496)],_0x429e49=_0x238ea1[_0x42a451(0x2a0)];}else _0x5f51fc=_0x51c68e,_0x429e49=[];let _0x31d157=this[_0x42a451(0x348)];_0x5f51fc[_0x42a451(0x362)](_0x4cb430=>{const _0xa39be=_0x42a451;let _0x481df4;if(_0x31d157[_0xa39be(0x192)]){const _0x56a79f=this[_0xa39be(0x16a)][_0xa39be(0x169)](_0x4cb430,_0x31d157);if(!_0x24ef98(_0x56a79f))throw _0x56a79f['error'];_0x481df4=_0x56a79f[_0xa39be(0x496)],_0x31d157=_0x56a79f[_0xa39be(0x483)];}else _0x481df4=_0x4cb430;this[_0xa39be(0x13e)](_0x481df4);}),this[_0x42a451(0x387)]&&this['_incrementRevisionNumber'](),this[_0x42a451(0x363)]&&_0x429e49[_0x42a451(0x192)]&&(_0x429e49[0x0][_0x42a451(0x219)]=this[_0x42a451(0x366)]());let _0x99d278;if(this[_0x42a451(0x363)]&&_0x31d157['length']!==0x0)_0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](X,this[_0x42a451(0x42f)],this['type'],_0x429e49[0x0],_0x31d157,this[_0x42a451(0x28c)]);else{if(this['_awaitingChangeset']&&_0x31d157[_0x42a451(0x192)]===0x0)_0x429e49[0x0][_0x42a451(0x219)]=this['_getCurrentRevision'](),_0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](Q,this['unitID'],this[_0x42a451(0x150)],_0x429e49[0x0],this[_0x42a451(0x28c)]);else{if(_0x31d157[_0x42a451(0x192)]!==0x0){const _0x286d42=this[_0x42a451(0x181)][_0x42a451(0x307)](K,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],_0x31d157,this[_0x42a451(0x28c)]);_0x286d42[_0x42a451(0x2bc)](),_0x99d278=_0x286d42;}else _0x99d278=this[_0x42a451(0x181)][_0x42a451(0x307)](pe,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],this[_0x42a451(0x28c)]);}}return _0x99d278[_0x42a451(0x347)](),_0x99d278;}catch(_0x3b0fc1){return this[_0x42a451(0x1a3)][_0x42a451(0x1c9)](_0x42a451(0x492),_0x42a451(0x325),_0x3b0fc1),this[_0x42a451(0x181)][_0x42a451(0x307)](ee,this[_0x42a451(0x42f)],this[_0x42a451(0x150)],this[_0x42a451(0x363)],this[_0x42a451(0x348)],this['_handler'],!0x1);}}[_0x44ade9(0x386)](){const _0xf6ffa1=_0x44ade9;throw new Error(_0xf6ffa1(0x282));}['appendMutation'](_0x4d0854){const _0x7ed61=_0x44ade9;return this[_0x7ed61(0x348)][_0x7ed61(0x23e)](_0x4d0854),this;}['onRemoteChangeset'](_0xe65caa){const _0x124999=_0x44ade9;return this[_0x124999(0x3db)][_0x124999(0x23e)](_0xe65caa),this;}[_0x44ade9(0x4ac)](_0x3db5a6){const _0xa9ea88=_0x44ade9;if(this[_0xa9ea88(0x363)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x44ade9(0x324)](_0x576c60){const _0x5a6f7f=_0x44ade9;return this[_0x5a6f7f(0x37e)](!!(_0x576c60!=null&&_0x576c60['isPermissionRej']));}['toggleOffline'](){const _0x4bc408=_0x44ade9;return this[_0x4bc408(0x181)]['createInstance'](te,this[_0x4bc408(0x42f)],this[_0x4bc408(0x150)],this[_0x4bc408(0x363)],this['_pendingMutations'],this[_0x4bc408(0x28c)]);}[_0x44ade9(0x493)](){return this;}[_0x44ade9(0x37e)](_0x6e644){const _0x58a963=_0x44ade9;return this[_0x58a963(0x181)][_0x58a963(0x307)](ee,this[_0x58a963(0x42f)],this[_0x58a963(0x150)],this[_0x58a963(0x363)],this['_pendingMutations'],this[_0x58a963(0x28c)],_0x6e644);}};k=le([m(0x7,_0x180372(_0x15d871)),m(0x8,_0x180372(_0x2123f3)),m(0x9,_0x180372(D)),m(0xa,_0x4611a9),m(0xb,_0x2bc808),m(0xc,_0x3cf637),m(0xd,_0x446e46)],k);function ks(_0x29b29d,_0x2ebfb5,_0xad767f,_0x4b4171,_0x18a195,_0x1f5cbb){const _0x133f74=_0x44ade9;return _0x4b4171&&_0x18a195['length']?_0x29b29d[_0x133f74(0x307)](X,_0x2ebfb5,_0xad767f,_0x4b4171,_0x18a195,_0x1f5cbb):_0x4b4171?_0x29b29d[_0x133f74(0x307)](Q,_0x2ebfb5,_0xad767f,_0x4b4171,_0x1f5cbb):_0x18a195[_0x133f74(0x192)]?_0x29b29d[_0x133f74(0x307)](K,_0x2ebfb5,_0xad767f,_0x18a195,_0x1f5cbb):_0x29b29d[_0x133f74(0x307)](pe,_0x2ebfb5,_0xad767f,_0x1f5cbb);}var gr=Object[_0x44ade9(0x421)],Sr=Object[_0x44ade9(0x418)],Wt=(_0x308f6f,_0x1f93d8,_0x16f42a,_0x478a02)=>{const _0x233815=_0x44ade9;for(var _0x544abd=_0x478a02>0x1?void 0x0:_0x478a02?Sr(_0x1f93d8,_0x16f42a):_0x1f93d8,_0x2f463d=_0x308f6f[_0x233815(0x192)]-0x1,_0x2becf0;_0x2f463d>=0x0;_0x2f463d--)(_0x2becf0=_0x308f6f[_0x2f463d])&&(_0x544abd=(_0x478a02?_0x2becf0(_0x1f93d8,_0x16f42a,_0x544abd):_0x2becf0(_0x544abd))||_0x544abd);return _0x478a02&&_0x544abd&&gr(_0x1f93d8,_0x16f42a,_0x544abd),_0x544abd;},p=(_0x2b3017,_0x3085eb)=>(_0x462660,_0x119b42)=>_0x3085eb(_0x462660,_0x119b42,_0x2b3017);let tt=class extends _0x1d444{constructor(_0x3a655e,_0xd60564,_0x52e26f,_0x741c74,_0x1ac4ed,_0x2a2965,_0x3e024f,_0x1e5a10,_0x22cc23,_0x4ffb39,_0x5c0766,_0x37371c,_0x4df079){const _0x29f6e4=_0x44ade9;super(),l(this,_0x29f6e4(0x3e7),new _0x531abd(null)),l(this,_0x29f6e4(0x213),this[_0x29f6e4(0x3e7)][_0x29f6e4(0x458)]()),l(this,_0x29f6e4(0x2c4)),l(this,_0x29f6e4(0x374),!0x1),l(this,_0x29f6e4(0x210),this['state$']['pipe'](_0xa2248a(_0x425f09=>_0x425f09?_0x425f09[_0x29f6e4(0x14f)]:w[_0x29f6e4(0x1c6)]),_0x227687(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x29f6e4(0x17b),[]),(this[_0x29f6e4(0x42f)]=_0x3a655e,this[_0x29f6e4(0x343)]=_0xd60564,this[_0x29f6e4(0x308)]=_0x52e26f,this[_0x29f6e4(0x181)]=_0x741c74,this[_0x29f6e4(0x15b)]=_0x1ac4ed,this['_compressMutationService']=_0x2a2965,this[_0x29f6e4(0x267)]=_0x3e024f,this[_0x29f6e4(0x3fa)]=_0x1e5a10,this[_0x29f6e4(0x1a3)]=_0x22cc23,this[_0x29f6e4(0x1a6)]=_0x4ffb39,this[_0x29f6e4(0x333)]=_0x5c0766,this[_0x29f6e4(0x44f)]=_0x37371c,this['_singleActiveUnitService']=_0x4df079);}get['state'](){return this['_state'];}async[_0x44ade9(0x38c)](){const _0x1042e2=_0x44ade9;if(this['state'])throw new Error(_0x1042e2(0x2fe));await this['_init']();}['pauseCollaboration'](){const _0xbb905b=_0x44ade9;return this[_0xbb905b(0x374)]=!0x0,_0x3e741a(()=>{const _0x3ac56c=_0xbb905b;this['_collaborationPaused']=!0x1,this[_0x3ac56c(0x428)]();});}[_0x44ade9(0x474)](_0x81949e){const _0x231641=_0x44ade9;this[_0x231641(0x2c4)]=_0x81949e,this[_0x231641(0x3e7)][_0x231641(0x34e)](_0x81949e);}async[_0x44ade9(0x2af)](){const _0x418bf4=_0x44ade9;var _0x50ae26;this[_0x418bf4(0x474)](await this[_0x418bf4(0x3f6)]()),this[_0x418bf4(0x319)]&&((_0x50ae26=this[_0x418bf4(0x319)])==null||_0x50ae26[_0x418bf4(0x235)](this[_0x418bf4(0x42f)]),this[_0x418bf4(0x26d)](this[_0x418bf4(0x319)][_0x418bf4(0x398)](this[_0x418bf4(0x42f)])['subscribe'](_0x3cfba9=>{const _0x48886a=_0x418bf4;this[_0x48886a(0x1a3)][_0x48886a(0x33b)](_0x48886a(0x1dd),'editing\x20status\x20changed\x20to',_0x3cfba9),_0x3cfba9===xs['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0x48886a(0x15d)]({'content':this[_0x48886a(0x267)]['t']('collaboration.single-unit.warning'),'type':_0x73f118[_0x48886a(0x466)]}),this[_0x48886a(0x44f)][_0x48886a(0x2ce)](new _0x4f24bc(this['unitID'])['id'],!0x1)):this[_0x48886a(0x44f)][_0x48886a(0x2ce)](new _0x4f24bc(this['unitID'])['id'],!0x0);})));let _0x5ed94b=!0x1;return this[_0x418bf4(0x26d)](this['session'][_0x418bf4(0x27c)][_0x418bf4(0x3dc)](_0x21d5db=>{const _0x3dd5b6=_0x418bf4;_0x21d5db===G[_0x3dd5b6(0x19b)]?this['_toggleOnline'](_0x5ed94b):_0x21d5db===G[_0x3dd5b6(0x1c6)]&&(_0x5ed94b=!0x0,this[_0x3dd5b6(0x2f1)]());})),this[_0x418bf4(0x26d)](this[_0x418bf4(0x343)][_0x418bf4(0x271)][_0x418bf4(0x3dc)](_0x26d8e6=>{const _0x4370dc=_0x418bf4;try{switch(_0x26d8e6[_0x4370dc(0x2ac)]){case _0x2db775[_0x4370dc(0x3c7)]:{this['_onRemoteChangeset'](_0x4310c0(_0x26d8e6[_0x4370dc(0x3c3)]));break;}case _0x2db775['CHANGESET_ACK']:{this['_onRemoteACK'](_0x26d8e6[_0x4370dc(0x3c3)]);break;}case _0x2db775['CHANGESET_REJ']:{this[_0x4370dc(0x1ea)]();break;}case _0x2db775['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x4370dc(0x2cb)](_0x26d8e6[_0x4370dc(0x3c3)]['changesets'][_0x4370dc(0x2aa)](_0x1ac7a6=>_0x4310c0(_0x1ac7a6)));break;}case _0x2db775[_0x4370dc(0x1e3)]:this[_0x4370dc(0x1ea)]({'isPermissionRej':!0x0});}}catch(_0xbd6faf){throw console[_0x4370dc(0x1c9)]('Error\x20on\x20receiving\x20event',_0xbd6faf),_0xbd6faf;}})),this[_0x418bf4(0x2c4)];}[_0x44ade9(0x26c)](){const _0x48ab56=_0x44ade9;this[_0x48ab56(0x3b4)]=!0x1;}[_0x44ade9(0x3a3)](){const _0x238031=_0x44ade9;if(this['_transitionLocked'])throw new Error(_0x238031(0x1d7));this[_0x238031(0x3b4)]=!0x0;}['_onLocalMutation'](_0x580513){const _0x5bb849=_0x44ade9;this[_0x5bb849(0x3a3)](),this['_updateState'](this['_state']['appendMutation'](_0x580513)),this[_0x5bb849(0x26c)]();}[_0x44ade9(0x1db)](_0x43988b){const _0x26b312=_0x44ade9;if(!(_0x43988b[_0x26b312(0x2fb)]<=this[_0x26b312(0x3fa)][_0x26b312(0x409)](this[_0x26b312(0x42f)]))){if(this[_0x26b312(0x374)]){this[_0x26b312(0x17b)]['push'](_0x43988b);return;}this[_0x26b312(0x297)](_0x43988b);}}['_exhaustRemoteChangesetQueue'](){const _0x24ecba=_0x44ade9;this[_0x24ecba(0x17b)][_0x24ecba(0x362)](_0x34b468=>this[_0x24ecba(0x297)](_0x34b468)),this[_0x24ecba(0x17b)]=[];}[_0x44ade9(0x297)](_0x5a9e1c){const _0x31c9db=_0x44ade9,_0x37c0e0=this['_compressMutationService']['interceptor'][_0x31c9db(0x18e)](this[_0x31c9db(0x203)][_0x31c9db(0x3ee)][_0x31c9db(0x1f0)]()[_0x31c9db(0x420)])(_0x5a9e1c[_0x31c9db(0x230)],null)||_0x5a9e1c['mutations'],_0x402f2d={..._0x5a9e1c,'mutations':_0x37c0e0};this['_lockTransition'](),this[_0x31c9db(0x474)](this[_0x31c9db(0x2c4)]['onRemoteChangeset'](_0x402f2d)),this['_unlockTransition']();}[_0x44ade9(0x225)](_0x487801){const _0x5a6e8a=_0x44ade9;this[_0x5a6e8a(0x3a3)](),this[_0x5a6e8a(0x474)](this['_state'][_0x5a6e8a(0x4ac)](_0x487801)),this[_0x5a6e8a(0x26c)]();}[_0x44ade9(0x1ea)](_0x44919b){const _0x44a5a5=_0x44ade9;this['_lockTransition'](),this['_updateState'](this['_state'][_0x44a5a5(0x324)](_0x44919b)),this[_0x44a5a5(0x26c)]();}['_onFetchMissResult'](_0x41175d){const _0x3d49ae=_0x44ade9;if(!(this['_state']instanceof k))throw new TypeError(_0x3d49ae(0x18a));const _0x20e3a4=_0x41175d[_0x3d49ae(0x2aa)](_0x93b5c4=>{const _0x9ebb7d=_0x3d49ae,_0x468401=this[_0x9ebb7d(0x203)]['interceptor'][_0x9ebb7d(0x18e)](this[_0x9ebb7d(0x203)]['interceptor'][_0x9ebb7d(0x1f0)]()[_0x9ebb7d(0x420)])(_0x93b5c4[_0x9ebb7d(0x230)],null)||_0x93b5c4['mutations'];return{..._0x93b5c4,'mutations':_0x468401};});this['_lockTransition'](),this[_0x3d49ae(0x474)](this[_0x3d49ae(0x2c4)][_0x3d49ae(0x2ed)](_0x20e3a4)),this['_unlockTransition']();}[_0x44ade9(0x2f1)](){const _0x1f0ced=_0x44ade9;this['_lockTransition'](),this[_0x1f0ced(0x474)](this['_state'][_0x1f0ced(0x1e2)]()),this[_0x1f0ced(0x26c)]();}[_0x44ade9(0x160)](_0x10ba5b=!0x1){const _0x2c3b0e=_0x44ade9;this[_0x2c3b0e(0x3a3)](),this['_updateState'](this[_0x2c3b0e(0x2c4)][_0x2c3b0e(0x493)]()),this[_0x2c3b0e(0x26c)]();const _0x2cb9b3=this[_0x2c3b0e(0x2c4)];_0x10ba5b&&_0x2cb9b3 instanceof pe&&(this[_0x2c3b0e(0x3a3)](),this[_0x2c3b0e(0x474)](_0x2cb9b3['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x4a75a7=>{const _0x2f35f5=_0x3787;this[_0x2f35f5(0x343)][_0x2f35f5(0x27c)][_0x2f35f5(0x2e0)](_0xf17119(0x1))[_0x2f35f5(0x3dc)](async _0x4a0c13=>{const _0x6b9ee5=_0x2f35f5;_0x4a75a7(await this[_0x6b9ee5(0x1f4)](_0x4a0c13===G[_0x6b9ee5(0x19b)]));});});}['_createHandler'](){const _0x5cf7df=_0x44ade9,_0x37fa35=this[_0x5cf7df(0x42f)];return{'onStateChange':(_0x2240d6,_0xd08486)=>{const _0xa759ab=_0x5cf7df;if(_0x2240d6!==this['_state'])throw new Error(_0xa759ab(0x15a)+_0x2240d6[_0xa759ab(0x14f)]+'\x0aAfter:\x20'+_0xd08486[_0xa759ab(0x14f)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0xa759ab(0x474)](_0xd08486);},'onSendChangeset':_0x4a3a9a=>{const _0x1f8f79=_0x5cf7df,_0x25b217={'eventID':_0x2db775['SUBMIT_CHANGESET'],'data':{'unitID':_0x4a3a9a[_0x1f8f79(0x42f)],'unitType':this[_0x1f8f79(0x308)],'changeset':_0x4a3a9a,'memberID':this[_0x1f8f79(0x343)][_0x1f8f79(0x31f)]()}};this['session'][_0x1f8f79(0x359)](_0x25b217,this['unitID']);},'onMissingChangesets':({from:_0x1b52da,to:_0x3e4086})=>{const _0xbac190=_0x5cf7df;this[_0xbac190(0x1a3)]['debug'](_0xbac190(0x1dd),_0xbac190(0x43e)+_0x1b52da+_0xbac190(0x231)+_0x3e4086);const _0x5291a1={'eventID':_0x2db775[_0xbac190(0x41e)],'data':{'unitID':_0x37fa35,'unitType':this[_0xbac190(0x308)],'from':_0x1b52da,'to':_0x3e4086}};this[_0xbac190(0x343)][_0xbac190(0x359)](_0x5291a1,this['unitID']);}};}async['_createInitialStateImpl'](_0x295ff0){const _0x4f4593=_0x44ade9;var _0x599935,_0x249113;const _0x4ee104=await this[_0x4f4593(0x15b)]['loadOfflineData'](this[_0x4f4593(0x42f)]),_0x4a8ebf=(_0x599935=_0x4ee104==null?void 0x0:_0x4ee104['mutations'])!=null?_0x599935:[],_0xa48be8=(_0x249113=_0x4ee104==null?void 0x0:_0x4ee104['awaitingChangeset'])!=null?_0x249113:null,_0x22d0e2=this[_0x4f4593(0x42f)];try{this[_0x4f4593(0x2a9)](_0xa48be8,_0x4a8ebf);}catch(_0x4f1e2e){this[_0x4f4593(0x1a3)][_0x4f4593(0x1c9)](_0x4f1e2e);}const _0x300a23=this[_0x4f4593(0x162)]();if(_0x295ff0){const _0x31fe37=ks(this[_0x4f4593(0x181)],_0x22d0e2,this[_0x4f4593(0x308)],_0xa48be8,_0x4a8ebf,_0x300a23);return _0x31fe37 instanceof K?_0x31fe37[_0x4f4593(0x2bc)]():(_0x31fe37 instanceof X||_0x31fe37 instanceof Q)&&_0x31fe37[_0x4f4593(0x386)](),_0x31fe37;}return this[_0x4f4593(0x181)][_0x4f4593(0x307)](te,_0x22d0e2,this[_0x4f4593(0x308)],_0xa48be8,_0x4a8ebf,_0x300a23);}[_0x44ade9(0x2a9)](_0xf24431,_0x35ee47){const _0x57b96c=_0x44ade9;var _0x2fda52,_0x43e7f1;const _0x4cac71=this[_0x57b96c(0x203)][_0x57b96c(0x3ee)][_0x57b96c(0x18e)](this[_0x57b96c(0x203)][_0x57b96c(0x3ee)][_0x57b96c(0x1f0)]()['COMPRESS_MUTATION_APPLY']);(_0x2fda52=_0x4cac71((_0xf24431==null?void 0x0:_0xf24431[_0x57b96c(0x230)])||[],null))==null||_0x2fda52[_0x57b96c(0x362)](_0x2797e4=>this[_0x57b96c(0x1a6)][_0x57b96c(0x323)](_0x2797e4['id'],_0x2797e4[_0x57b96c(0x1d5)])),(_0x43e7f1=_0x4cac71(_0x35ee47||[],null))==null||_0x43e7f1['forEach'](_0x343ca4=>this['_commandService'][_0x57b96c(0x323)](_0x343ca4['id'],_0x343ca4['params']));}};tt=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x4611a9),p(0x9,_0x2bc808),p(0xa,_0x251714),p(0xb,_0x7677d9),p(0xc,_0x4edbf0(nt))],tt);let Ot=class extends tt{constructor(_0x1661d2,_0x2cc0e1,_0x51277f,_0x92c8f5,_0x1b2aa2,_0x43d53e,_0x5b74e2,_0x5bb3d9,_0x349b17,_0x3e8e5b,_0x5437bd,_0x580130,_0x22e1db,_0x114452,_0x2225b8,_0x570681,_0x2d3551){const _0x4e1450=_0x44ade9;super(_0x1661d2,_0x51277f,_0x2cc0e1,_0x92c8f5,_0x1b2aa2,_0x43d53e,_0x5b74e2,_0x5bb3d9,_0x22e1db,_0x114452,_0x2225b8,_0x570681,_0x2d3551),this[_0x4e1450(0x42f)]=_0x1661d2,this[_0x4e1450(0x150)]=_0x2cc0e1,this[_0x4e1450(0x2b7)]=_0x349b17,this['_docTransformIMECacheService']=_0x3e8e5b,this['_docTransformSelectionsService']=_0x5437bd,this['_docSyncEditingCollabCursorService']=_0x580130;}[_0x44ade9(0x162)](){const _0x5884aa=_0x44ade9,_0x20db0b=super['_createHandler']();return _0x20db0b[_0x5884aa(0x2a8)]=_0x5a8070=>this['_docTransformIMECacheService'][_0x5884aa(0x3b3)](_0x5a8070),_0x20db0b[_0x5884aa(0x3e9)]=_0x28ed9b=>this[_0x5884aa(0x314)]['transformSelections'](_0x28ed9b),_0x20db0b[_0x5884aa(0x368)]=_0x16ab29=>this[_0x5884aa(0x38b)][_0x5884aa(0x2bb)](_0x16ab29),_0x20db0b['onTransformRemoteChangesetByIMECache']=_0x2f40fa=>this[_0x5884aa(0x47f)][_0x5884aa(0x3e5)](_0x2f40fa),_0x20db0b;}async[_0x44ade9(0x2af)](){const _0x343a79=_0x44ade9,_0x32391b=await super[_0x343a79(0x2af)]();return this['disposeWithMe'](this[_0x343a79(0x1a6)][_0x343a79(0x226)]((_0x25f122,_0x11f597)=>{const _0x3c41e2=_0x343a79;if(_0x25f122[_0x3c41e2(0x150)]!==_0x101550[_0x3c41e2(0x3ac)]||_0x11f597!=null&&_0x11f597[_0x3c41e2(0x145)]||_0x11f597!=null&&_0x11f597[_0x3c41e2(0x29c)])return;const _0x295574=_0x25f122['params'];if((_0x295574==null?void 0x0:_0x295574[_0x3c41e2(0x288)])!==this[_0x3c41e2(0x42f)])return;let _0x45294b=_0x25f122;if(_0x45294b['id']===_0x27d3d0['id']){const _0x46128a=_0x45294b[_0x3c41e2(0x1d5)];_0x45294b={'id':_0x27d3d0['id'],'type':_0x101550[_0x3c41e2(0x3ac)],'params':{'unitId':_0x46128a['unitId'],'actions':_0x46128a[_0x3c41e2(0x39a)],'textRanges':null}};}const _0x298078=this[_0x3c41e2(0x203)][_0x3c41e2(0x3ee)][_0x3c41e2(0x18e)](this[_0x3c41e2(0x203)][_0x3c41e2(0x3ee)][_0x3c41e2(0x1f0)]()[_0x3c41e2(0x17a)])([_0x45294b],null)||[_0x45294b];this[_0x3c41e2(0x440)](_0x298078[0x0]);})),_0x32391b;}};function _0x3787(_0x381a05,_0x268411){const _0x340ca7=_0x340c();return _0x3787=function(_0x3787e9,_0x3300e6){_0x3787e9=_0x3787e9-0x137;let _0x34373a=_0x340ca7[_0x3787e9];return _0x34373a;},_0x3787(_0x381a05,_0x268411);}Ot=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x180372(_0x2b0039)),p(0x9,_0x180372(Ze)),p(0xa,_0x180372(et)),p(0xb,_0x180372(Ft)),p(0xc,_0x4611a9),p(0xd,_0x2bc808),p(0xe,_0x251714),p(0xf,_0x7677d9),p(0x10,_0x4edbf0(nt))],Ot);let Dt=class extends tt{constructor(_0x52230c,_0x1eb976,_0x24b573,_0x1e01fa,_0x481b6b,_0x571c7e,_0xe0a282,_0x21a7e1,_0x11071d,_0x5e6ed2,_0x27fec7,_0x48d5de,_0x55ff55,_0x519f5b){const _0x4f1f12=_0x44ade9;super(_0x52230c,_0x24b573,_0x1eb976,_0x1e01fa,_0x481b6b,_0x571c7e,_0xe0a282,_0x21a7e1,_0x5e6ed2,_0x27fec7,_0x48d5de,_0x55ff55,_0x519f5b),this[_0x4f1f12(0x42f)]=_0x52230c,this[_0x4f1f12(0x150)]=_0x1eb976,this['_sheetTransformSelectionsService']=_0x11071d;}[_0x44ade9(0x162)](){const _0x1cdfeb=_0x44ade9,_0x905c24=super[_0x1cdfeb(0x162)]();return _0x905c24[_0x1cdfeb(0x3e9)]=_0x197ac8=>this[_0x1cdfeb(0x30d)][_0x1cdfeb(0x46a)](_0x197ac8),_0x905c24;}async[_0x44ade9(0x2af)](){const _0x2c3ace=_0x44ade9,_0x34a132=await super['_init']();return this[_0x2c3ace(0x26d)](this[_0x2c3ace(0x1a6)][_0x2c3ace(0x226)]((_0x21f905,_0x19de6a)=>{const _0x6737af=_0x2c3ace;if(_0x21f905[_0x6737af(0x150)]!==_0x101550[_0x6737af(0x3ac)]||_0x19de6a!=null&&_0x19de6a['fromCollab']||_0x19de6a!=null&&_0x19de6a['onlyLocal'])return;const _0x6fb12e=_0x21f905[_0x6737af(0x1d5)];if((_0x6fb12e==null?void 0x0:_0x6fb12e[_0x6737af(0x288)])!==this['unitID'])return;const _0x48ca78=_0x21f905,_0x1c531e=this['_compressMutationService'][_0x6737af(0x3ee)][_0x6737af(0x18e)](this['_compressMutationService']['interceptor'][_0x6737af(0x1f0)]()[_0x6737af(0x17a)])([_0x48ca78],null)||[_0x48ca78];this[_0x6737af(0x440)](_0x1c531e[0x0]);})),_0x34a132;}};Dt=Wt([p(0x3,_0x180372(_0x15d871)),p(0x4,_0x180372(D)),p(0x5,_0x180372(_0x44773b)),p(0x6,_0x180372(_0x787113)),p(0x7,_0x180372(_0x2123f3)),p(0x8,_0x180372(Qe)),p(0x9,_0x4611a9),p(0xa,_0x2bc808),p(0xb,_0x251714),p(0xc,_0x7677d9),p(0xd,_0x4edbf0(nt))],Dt);var pr=Object[_0x44ade9(0x421)],vr=Object[_0x44ade9(0x418)],Ir=(_0x1f6026,_0x30db88,_0x5f189d,_0x5bf09e)=>{const _0x391034=_0x44ade9;for(var _0x29b263=_0x5bf09e>0x1?void 0x0:_0x5bf09e?vr(_0x30db88,_0x5f189d):_0x30db88,_0x59c9c0=_0x1f6026[_0x391034(0x192)]-0x1,_0x159245;_0x59c9c0>=0x0;_0x59c9c0--)(_0x159245=_0x1f6026[_0x59c9c0])&&(_0x29b263=(_0x5bf09e?_0x159245(_0x30db88,_0x5f189d,_0x29b263):_0x159245(_0x29b263))||_0x29b263);return _0x5bf09e&&_0x29b263&&pr(_0x30db88,_0x5f189d,_0x29b263),_0x29b263;},dt=(_0x2ff1fa,_0x2e12c0)=>(_0xc7b3a2,_0x44cd60)=>_0x2e12c0(_0xc7b3a2,_0x44cd60,_0x2ff1fa);let Ae=class extends _0x1d444{constructor(_0x3f380f,_0x533d3c,_0x3c72a9){const _0x4746ab=_0x44ade9;super(),l(this,_0x4746ab(0x46d),new Map()),l(this,_0x4746ab(0x260),new _0x3827c1()),(this['_injector']=_0x3f380f,this[_0x4746ab(0x21c)]=_0x533d3c,this[_0x4746ab(0x470)]=_0x3c72a9,this['_init']());}['dispose'](){const _0x493a22=_0x44ade9;super[_0x493a22(0x2c9)](),this['_entities'][_0x493a22(0x362)](_0x5e4701=>_0x5e4701['dispose']()),this[_0x493a22(0x46d)][_0x493a22(0x2d5)]();}[_0x44ade9(0x2d7)](_0x8f6dc6){const _0x4072ad=_0x44ade9;var _0x4102c0;return(_0x4102c0=this['_entities'][_0x4072ad(0x28e)](_0x8f6dc6))!=null?_0x4102c0:null;}[_0x44ade9(0x3ad)](_0x5929be){const _0x4e2f4a=_0x44ade9,_0x14ee5d=this[_0x4e2f4a(0x2d7)](_0x5929be);return _0x14ee5d?_0x6cc13d(_0x14ee5d):this[_0x4e2f4a(0x260)][_0x4e2f4a(0x2e0)](_0x5be455(_0x2208be=>_0x2208be[_0x4e2f4a(0x42f)]===_0x5929be));}[_0x44ade9(0x2af)](){const _0x3ef14f=_0x44ade9;this[_0x3ef14f(0x470)][_0x3ef14f(0x1a7)](_0xb0e7e8[_0x3ef14f(0x233)])[_0x3ef14f(0x2e0)](_0x275af9(this['dispose$']),_0x233073(0x10))[_0x3ef14f(0x3dc)](async _0x4b3944=>{const _0x1e779d=_0x3ef14f,_0x276f93=_0x4b3944[_0x1e779d(0x49d)](),_0x568769=await this[_0x1e779d(0x304)](_0x276f93,H[_0x1e779d(0x233)]);this[_0x1e779d(0x46d)]['set'](_0x276f93,_0x568769);}),this[_0x3ef14f(0x470)][_0x3ef14f(0x1a7)](_0xb0e7e8[_0x3ef14f(0x3b0)])[_0x3ef14f(0x2e0)](_0x275af9(this[_0x3ef14f(0x424)]),_0x233073(0x10))[_0x3ef14f(0x2e0)](_0x5be455(_0x52c470=>!_0x52c470[_0x3ef14f(0x49d)]()['startsWith']('__')))['subscribe'](async _0x40f460=>{const _0x57f699=_0x3ef14f,_0x171d5b=_0x40f460[_0x57f699(0x49d)](),_0x5ebe86=await this['_startCollaboration'](_0x171d5b,H[_0x57f699(0x3b0)]);this[_0x57f699(0x46d)][_0x57f699(0x48c)](_0x171d5b,_0x5ebe86);}),_0x527d28(this[_0x3ef14f(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x3ef14f(0x233)]),this['_univerInstanceService'][_0x3ef14f(0x456)](_0xb0e7e8['UNIVER_DOC']))['pipe'](_0x275af9(this[_0x3ef14f(0x424)]))['subscribe'](_0x2d4078=>{const _0x5aa246=_0x3ef14f,_0x303197=_0x2d4078['getUnitId'](),_0x39d55e=this[_0x5aa246(0x46d)][_0x5aa246(0x28e)](_0x303197);_0x39d55e&&(_0x39d55e['dispose'](),this[_0x5aa246(0x46d)][_0x5aa246(0x467)](_0x303197));});}async[_0x44ade9(0x304)](_0x37696e,_0x5d0b8f){const _0x140eb3=_0x44ade9,_0x45e0a6=await this[_0x140eb3(0x21c)]['requireSession'](_0x37696e),_0x524115=this[_0x140eb3(0x181)][_0x140eb3(0x307)](this[_0x140eb3(0x320)](_0x5d0b8f),_0x37696e,_0x5d0b8f,_0x45e0a6);return await _0x524115[_0x140eb3(0x38c)](),this['_entityInit$'][_0x140eb3(0x34e)](_0x524115),_0x524115;}['_getCtorByUniverType'](_0xa75919){const _0x54b0b4=_0x44ade9;switch(_0xa75919){case H[_0x54b0b4(0x3b0)]:return Ot;case H['UNIVER_SHEET']:return Dt;default:throw new Error(_0x54b0b4(0x188)+_0xa75919);}}};Ae=Ir([dt(0x0,_0x180372(_0x15d871)),dt(0x1,_0x180372(ce)),dt(0x2,_0x4c19c5)],Ae);const us=['purple300','jiqing500',_0x44ade9(0x3e6),_0x44ade9(0x385),_0x44ade9(0x416),_0x44ade9(0x1aa)];class Gt extends _0x17cf1f{constructor(){const _0x376416=_0x44ade9;super(...arguments),l(this,_0x376416(0x3d1),new Map()),l(this,'_colorIndex',0x0);}[_0x44ade9(0x1d2)](_0x1d8221){const _0x3f9cfa=_0x44ade9;if(this[_0x3f9cfa(0x3d1)]['has'](_0x1d8221))return this[_0x3f9cfa(0x3d1)]['get'](_0x1d8221);const _0xdeb987=us[this[_0x3f9cfa(0x3c6)]];return this['_colorIndex']=(this[_0x3f9cfa(0x3c6)]+0x1)%us[_0x3f9cfa(0x192)],this[_0x3f9cfa(0x3d1)]['set'](_0x1d8221,_0xdeb987),_0xdeb987;}}var Er=Object[_0x44ade9(0x421)],Cr=Object[_0x44ade9(0x418)],br=(_0xc17dc1,_0x4cfa09,_0x190bd6,_0x2b1564)=>{for(var _0x42930=_0x2b1564>0x1?void 0x0:_0x2b1564?Cr(_0x4cfa09,_0x190bd6):_0x4cfa09,_0x4c6e72=_0xc17dc1['length']-0x1,_0x22bcf1;_0x4c6e72>=0x0;_0x4c6e72--)(_0x22bcf1=_0xc17dc1[_0x4c6e72])&&(_0x42930=(_0x2b1564?_0x22bcf1(_0x4cfa09,_0x190bd6,_0x42930):_0x22bcf1(_0x42930))||_0x42930);return _0x2b1564&&_0x42930&&Er(_0x4cfa09,_0x190bd6,_0x42930),_0x42930;},fe=(_0x6c9e8,_0x524dfc)=>(_0x2c43ad,_0x2db469)=>_0x524dfc(_0x2c43ad,_0x2db469,_0x6c9e8);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x272e73=[],_0x5197d3=!0x1;return _0x3baa14=>{const _0x1e6d44=_0x3787;_0x272e73[_0x1e6d44(0x23e)](_0x3baa14),_0x5197d3||(_0x5197d3=!0x0,setTimeout(()=>{const _0x5eb89f=_0x1e6d44;_0x272e73[_0x5eb89f(0x362)](_0x302434=>_0x302434()),_0x272e73=[],_0x5197d3=!0x1;}));};};let wt=class extends _0x1d444{constructor(_0x3e9858,_0x26c320,_0x475369,_0x18c281,_0x2143c0,_0x44b460,_0x42d4e0,_0x10f7ac){const _0x3eca5b=_0x44ade9;super(),l(this,_0x3eca5b(0x1e6),!0x1),l(this,'_init',!0x1),l(this,_0x3eca5b(0x35f),new _0x531abd(new Map())),l(this,'cursorInfo$',this[_0x3eca5b(0x35f)][_0x3eca5b(0x458)]()),l(this,_0x3eca5b(0x1fc),new _0x531abd([])),l(this,_0x3eca5b(0x137),this[_0x3eca5b(0x1fc)][_0x3eca5b(0x2e0)](_0x4134cc(Tr))),l(this,_0x3eca5b(0x36b),_0x137993((_0x462f67,_0x921d9c)=>{const _0x56ef5a=_0x3eca5b,_0x1bea48={'eventID':_0x2db775[_0x56ef5a(0x1f9)],'data':{'unitID':this[_0x56ef5a(0x42f)],'memberID':this[_0x56ef5a(0x395)][_0x56ef5a(0x31f)](),'selection':_0x225488(_0x462f67,_0x921d9c['range'])}};this[_0x56ef5a(0x395)][_0x56ef5a(0x359)](_0x1bea48,this[_0x56ef5a(0x42f)]);},Rr)),(this['unitID']=_0x3e9858,this['_session']=_0x26c320,this['_injector']=_0x475369,this[_0x3eca5b(0x144)]=_0x18c281,this['_memberService']=_0x2143c0,this[_0x3eca5b(0x470)]=_0x44b460,this[_0x3eca5b(0x1a6)]=_0x42d4e0,this[_0x3eca5b(0x404)]=_0x10f7ac);}get[_0x44ade9(0x3f7)](){const _0x368554=_0x44ade9;return this[_0x368554(0x35f)][_0x368554(0x299)]();}get[_0x44ade9(0x2f2)](){const _0x1ab653=_0x44ade9;return this[_0x1ab653(0x1fc)][_0x1ab653(0x299)]();}[_0x44ade9(0x2c9)](){const _0x3c0794=_0x44ade9;super[_0x3c0794(0x2c9)](),this['_cursorInfo$'][_0x3c0794(0x34e)](new Map()),this[_0x3c0794(0x35f)][_0x3c0794(0x19c)](),this[_0x3c0794(0x1fc)][_0x3c0794(0x34e)]([]),this['_roomMembers$']['complete']();}[_0x44ade9(0x38c)](){const _0x41ec11=_0x44ade9;this[_0x41ec11(0x2af)]||(this[_0x41ec11(0x2af)]=!0x0,this[_0x41ec11(0x395)][_0x41ec11(0x27c)][_0x41ec11(0x2e0)](_0x275af9(this['dispose$']))[_0x41ec11(0x3dc)](_0x26ad96=>{const _0x715df2=_0x41ec11;_0x26ad96===G[_0x715df2(0x19b)]?this['_toggleOnline']():this[_0x715df2(0x2f1)]();}),this['_session']['event$']['pipe'](_0x275af9(this[_0x41ec11(0x424)]))[_0x41ec11(0x3dc)](_0x51f0cb=>{const _0x57febe=_0x41ec11,_0x4fb295=_0x51f0cb[_0x57febe(0x2ac)];_0x4fb295===_0x2db775[_0x57febe(0x1f9)]&&this[_0x57febe(0x3cd)](_0x51f0cb),_0x4fb295===_0x2db775[_0x57febe(0x2f4)]&&this['_onCursorDelete'](_0x51f0cb);}),this[_0x41ec11(0x2dc)](),this[_0x41ec11(0x26d)](this[_0x41ec11(0x1a6)][_0x41ec11(0x226)](_0x5127c2=>{const _0x165ee1=_0x41ec11;if(this[_0x165ee1(0x1e6)]&&_0x5127c2['id']===_0x152456['id']&&_0x5127c2[_0x165ee1(0x1d5)][_0x165ee1(0x288)]===this['unitID']){const _0x547c41=_0x5127c2[_0x165ee1(0x1d5)];this[_0x165ee1(0x36b)](_0x547c41['subUnitId'],_0x547c41[_0x165ee1(0x265)][0x0]);}})));}[_0x44ade9(0x3cd)](_0xf27e1e){const _0x4ac408=_0x44ade9;var _0x2b0f52,_0x382eb2;const {memberID:_0x551652,selection:_0x82057e}=_0xf27e1e[_0x4ac408(0x3c3)],{sheetName:_0x4f77f4,range:_0x553df6}=_0x3b7c25(_0x82057e),_0x4d5a58={'name':(_0x382eb2=(_0x2b0f52=this[_0x4ac408(0x450)]['getMember'](this['unitID'],_0x551652))==null?void 0x0:_0x2b0f52[_0x4ac408(0x4a9)])!=null?_0x382eb2:'Unknown\x20user','range':this[_0x4ac408(0x41f)](_0x4f77f4,_0x553df6),'sheetID':_0x4f77f4,'color':this[_0x4ac408(0x144)][_0x4ac408(0x1d2)](_0x551652),'selection':_0x82057e},_0x529f87=this[_0x4ac408(0x3f7)];_0x529f87['set'](_0x551652,_0x4d5a58),this[_0x4ac408(0x35f)][_0x4ac408(0x34e)](_0x529f87);}['_onCursorDelete'](_0x2e8eb7){const _0x21a272=_0x44ade9,{memberID:_0x1ab4c4}=_0x2e8eb7[_0x21a272(0x3c3)],_0x1645bd=this[_0x21a272(0x3f7)];_0x1645bd[_0x21a272(0x467)](_0x1ab4c4),this[_0x21a272(0x35f)][_0x21a272(0x34e)](_0x1645bd);}['_getMergeRange'](_0x30658f,_0x54e7cf){const _0x99dc6e=_0x44ade9;var _0x14efd0,_0x7d3a9f;const _0x792af8=(_0x7d3a9f=(_0x14efd0=this[_0x99dc6e(0x470)]['getUniverSheetInstance'](this[_0x99dc6e(0x42f)]))==null?void 0x0:_0x14efd0['getSheetBySheetId'](_0x30658f))==null?void 0x0:_0x7d3a9f[_0x99dc6e(0x2f6)]();return(_0x792af8==null?void 0x0:_0x792af8['find'](_0x63fdd8=>_0x2ef7c7[_0x99dc6e(0x35c)](_0x63fdd8,_0x54e7cf)))||_0x54e7cf;}[_0x44ade9(0x2dc)](){const _0x29c0b9=_0x44ade9,_0x2037c3=new _0x4207d6(),_0x5bb4ac=Or(),_0xf3946=()=>{const _0x16253f=_0x3787;_0x2037c3[_0x16253f(0x2c9)]();const _0x19c42c=(_0x4bb97c,_0x514e19,_0x5a8957,_0x3f23b7)=>{const _0x2781a0=_0x16253f;let _0x16a6c9=[];switch(_0x4bb97c['id']){case _0x46ccd7[_0x2781a0(0x270)]:{_0x16a6c9=_0x238bf1(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x1b3)]:{_0x16a6c9=_0x55810d(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x166)]:{_0x16a6c9=_0x47a306(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7['InsertRangeMoveDownCommandId']:{_0x16a6c9=_0x327694(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x30f)]:{_0x16a6c9=_0x9f95c2(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x45e)]:{_0x16a6c9=_0x41f48b(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7['MoveRangeCommandId']:{_0x16a6c9=_0x845f5d(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x2eb)]:{_0x16a6c9=_0x310158(_0x4bb97c,_0x3f23b7);break;}case _0x46ccd7[_0x2781a0(0x183)]:{_0x16a6c9=_0x57f47d(_0x4bb97c,_0x3f23b7);break;}}const _0x3d1ff8=_0xa217ee(_0x16a6c9,_0x3f23b7),_0x3e2278=this[_0x2781a0(0x3f7)][_0x2781a0(0x28e)](_0x514e19);if(_0x3e2278&&_0x3d1ff8){const _0x247a58={..._0x3e2278,'range':_0x3d1ff8};this[_0x2781a0(0x3f7)]['set'](_0x514e19,_0x247a58),_0x5bb4ac(()=>{const _0x4dd374=_0x2781a0,_0x535fb2=this[_0x4dd374(0x404)][_0x4dd374(0x198)](_0x3d1ff8,_0x416bec=>(_0x535fb2[_0x4dd374(0x2c9)](),_0x19c42c(_0x416bec,_0x514e19,_0x5a8957,_0x3d1ff8)));_0x2037c3[_0x4dd374(0x377)](_0x535fb2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x16253f(0x362)]((_0x2cba21,_0x175bf2)=>{const _0x1827b7=_0x16253f,{range:_0x407617,sheetID:_0x3c6fb1}=_0x2cba21,_0x3e3566=this[_0x1827b7(0x404)][_0x1827b7(0x198)](_0x407617,_0x41631c=>(_0x3e3566[_0x1827b7(0x2c9)](),_0x19c42c(_0x41631c,_0x175bf2,_0x3c6fb1,_0x407617)));_0x2037c3['add'](_0x3e3566);});};this[_0x29c0b9(0x26d)](_0x3e741a(this[_0x29c0b9(0x35f)]['subscribe'](()=>{_0xf3946();})));}['_toggleOnline'](){const _0x4be640=_0x44ade9;var _0x1f7354,_0x160c1b;if(this['_online']=!0x0,((_0x1f7354=this[_0x4be640(0x470)][_0x4be640(0x140)]())==null?void 0x0:_0x1f7354[_0x4be640(0x49d)]())!==this[_0x4be640(0x42f)])return;const _0x59d2d0=(_0x160c1b=this['_injector'][_0x4be640(0x28e)](_0x472097)[_0x4be640(0x25b)]())==null?void 0x0:_0x160c1b[0x0],_0x402f78=this[_0x4be640(0x470)][_0x4be640(0x200)](_0xb0e7e8['UNIVER_SHEET'])['getActiveSheet']();_0x59d2d0&&_0x402f78&&this[_0x4be640(0x36b)](_0x402f78['getSheetId'](),_0x59d2d0);}[_0x44ade9(0x2f1)](){const _0x1c7c13=_0x44ade9;this[_0x1c7c13(0x1e6)]=!0x1;}};wt=br([fe(0x2,_0x180372(_0x15d871)),fe(0x3,_0x180372(Gt)),fe(0x4,_0x180372(ae)),fe(0x5,_0x4c19c5),fe(0x6,_0x2bc808),fe(0x7,_0x180372(_0xe89218))],wt);var Dr=Object['defineProperty'],wr=Object[_0x44ade9(0x418)],Pr=(_0x23a83d,_0x3ad2a5,_0x49532c,_0x3dcdc0)=>{const _0x45a001=_0x44ade9;for(var _0x18b29e=_0x3dcdc0>0x1?void 0x0:_0x3dcdc0?wr(_0x3ad2a5,_0x49532c):_0x3ad2a5,_0x4c552e=_0x23a83d[_0x45a001(0x192)]-0x1,_0x246cfc;_0x4c552e>=0x0;_0x4c552e--)(_0x246cfc=_0x23a83d[_0x4c552e])&&(_0x18b29e=(_0x3dcdc0?_0x246cfc(_0x3ad2a5,_0x49532c,_0x18b29e):_0x246cfc(_0x18b29e))||_0x18b29e);return _0x3dcdc0&&_0x18b29e&&Dr(_0x3ad2a5,_0x49532c,_0x18b29e),_0x18b29e;},ie=(_0x541857,_0x1e768b)=>(_0x41e392,_0x43572d)=>_0x1e768b(_0x41e392,_0x43572d,_0x541857);const yr=0x12c,Nr=0x64;let Pt=class extends _0x1d444{constructor(_0x3927a6,_0x5602c7,_0x19f6f9,_0x63d5f4,_0x32e18b,_0x2329db,_0x408262,_0x58faf2,_0x36f278){const _0x583958=_0x44ade9;super(),l(this,_0x583958(0x1e6),!0x1),l(this,_0x583958(0x2af),!0x1),l(this,'_cursorInfo$',new _0x531abd(new Map())),l(this,_0x583958(0x46b),this['_cursorInfo$']['asObservable']()),l(this,_0x583958(0x1fc),new _0x531abd([])),l(this,_0x583958(0x137),this[_0x583958(0x1fc)][_0x583958(0x2e0)](_0x4134cc(yr))),l(this,_0x583958(0x36b),_0x137993(_0x8e094c=>{const _0x3481bb=_0x583958,_0x38f62d={'eventID':_0x2db775['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3481bb(0x395)]['getMemberID'](),'selection':Hs(_0x8e094c)}};this['_session'][_0x3481bb(0x359)](_0x38f62d,this[_0x3481bb(0x42f)]);},Nr)),(this[_0x583958(0x42f)]=_0x3927a6,this['_session']=_0x5602c7,this[_0x583958(0x181)]=_0x19f6f9,this[_0x583958(0x144)]=_0x63d5f4,this[_0x583958(0x450)]=_0x32e18b,this[_0x583958(0x2e9)]=_0x2329db,this[_0x583958(0x16a)]=_0x408262,this[_0x583958(0x470)]=_0x58faf2,this['_commandService']=_0x36f278);}get[_0x44ade9(0x3f7)](){const _0xed3773=_0x44ade9;return this[_0xed3773(0x35f)][_0xed3773(0x299)]();}get['roomMembers'](){const _0x117540=_0x44ade9;return this['_roomMembers$'][_0x117540(0x299)]();}[_0x44ade9(0x2c9)](){const _0x3f6ba8=_0x44ade9;super[_0x3f6ba8(0x2c9)](),this[_0x3f6ba8(0x35f)][_0x3f6ba8(0x34e)](new Map()),this[_0x3f6ba8(0x35f)][_0x3f6ba8(0x19c)](),this[_0x3f6ba8(0x1fc)][_0x3f6ba8(0x34e)]([]),this[_0x3f6ba8(0x1fc)][_0x3f6ba8(0x19c)]();}['init'](){const _0x17c389=_0x44ade9;this[_0x17c389(0x2af)]||(this[_0x17c389(0x2af)]=!0x0,this[_0x17c389(0x395)][_0x17c389(0x27c)][_0x17c389(0x2e0)](_0x275af9(this[_0x17c389(0x424)]))['subscribe'](_0x177efe=>{const _0x14a1d1=_0x17c389;_0x177efe===G[_0x14a1d1(0x19b)]?this[_0x14a1d1(0x160)]():this['_toggleOffline']();}),this[_0x17c389(0x395)]['event$'][_0x17c389(0x2e0)](_0x275af9(this[_0x17c389(0x424)]))[_0x17c389(0x3dc)](_0x35c8fc=>{const _0x20b7bd=_0x17c389,_0x3c0d41=_0x35c8fc[_0x20b7bd(0x2ac)];_0x3c0d41===_0x2db775[_0x20b7bd(0x1f9)]&&this['_onCursorUpdate'](_0x35c8fc),_0x3c0d41===_0x2db775[_0x20b7bd(0x2f4)]&&this[_0x20b7bd(0x32f)](_0x35c8fc);}),this['disposeWithMe'](this[_0x17c389(0x1a6)][_0x17c389(0x226)](_0x1e742e=>{const _0x13c958=_0x17c389,_0x190d2c=_0x1e742e[_0x13c958(0x1d5)];_0x190d2c!=null&&this[_0x13c958(0x1e6)]&&_0x1e742e['id']===_0x506c91['id']&&_0x190d2c[_0x13c958(0x288)]===this[_0x13c958(0x42f)]&&_0x190d2c[_0x13c958(0x2ef)]===!0x1&&this[_0x13c958(0x36b)](_0x190d2c[_0x13c958(0x379)]);})),this['_syncEditingCollabCursorService'][_0x17c389(0x2e8)]['pipe'](_0x275af9(this[_0x17c389(0x424)]))['subscribe'](_0x360d8d=>{const _0xf896c3=_0x17c389;if((_0x360d8d==null?void 0x0:_0x360d8d[_0xf896c3(0x42f)])!==this[_0xf896c3(0x42f)])return;const _0x3176b7={'eventID':_0x2db775[_0xf896c3(0x1f9)],'data':_0x360d8d};this[_0xf896c3(0x3cd)](_0x3176b7);}),this[_0x17c389(0x26d)](this[_0x17c389(0x1a6)][_0x17c389(0x226)](_0x4a1db3=>{const _0x3200c8=_0x17c389;if(_0x4a1db3['params']==null)return;const _0x466669=_0x4a1db3[_0x3200c8(0x1d5)];if(_0x4a1db3['id']!==_0x27d3d0['id']||_0x466669[_0x3200c8(0x288)]!==this['unitID'])return;const _0x4391f1={'id':'doc.mutation.rich-text-editing','params':_0x466669},_0xb00a4e=this[_0x3200c8(0x3f7)];for(const [_0x47adf2,_0x54b3a9]of _0xb00a4e){const _0x1de869={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3200c8(0x42f)],'actions':null,'textRanges':_0x54b3a9['ranges']}},_0x18d155=this[_0x3200c8(0x16a)][_0x3200c8(0x2b5)](_0x4391f1,_0x1de869,!0x1);if(_0x458f83(_0x18d155))throw _0x18d155['error'];_0xb00a4e[_0x3200c8(0x48c)](_0x47adf2,{..._0x54b3a9,'ranges':_0x18d155[_0x3200c8(0x483)]['params']['textRanges']});}queueMicrotask(()=>{const _0x38b2f4=_0x3200c8;this['_cursorInfo$'][_0x38b2f4(0x34e)](_0xb00a4e);});})));}[_0x44ade9(0x3cd)](_0x3c388b){const _0x763ba4=_0x44ade9;var _0x312b70,_0x48c055;const {memberID:_0x9a5e25,selection:_0x249776}=_0x3c388b['data'],_0x26ccb0=ar(_0x249776),_0x4da817=(_0x48c055=(_0x312b70=this[_0x763ba4(0x450)]['getMember'](this['unitID'],_0x9a5e25))==null?void 0x0:_0x312b70[_0x763ba4(0x4a9)])!=null?_0x48c055:_0x763ba4(0x389),_0x3425ae={'color':this['_colorAssignService'][_0x763ba4(0x1d2)](_0x9a5e25),'name':_0x4da817,'ranges':_0x26ccb0},_0x46c90c=this[_0x763ba4(0x3f7)];_0x46c90c['set'](_0x9a5e25,_0x3425ae),this[_0x763ba4(0x35f)]['next'](_0x46c90c);}['_onCursorDelete'](_0x5d38fa){const _0x2126c5=_0x44ade9,{memberID:_0x2a4c4b}=_0x5d38fa['data'],_0x429846=this[_0x2126c5(0x3f7)];_0x429846['delete'](_0x2a4c4b),this['_cursorInfo$'][_0x2126c5(0x34e)](_0x429846);}['_toggleOnline'](){const _0x20f986=_0x44ade9;var _0x202f3b;if(this[_0x20f986(0x1e6)]=!0x0,((_0x202f3b=this[_0x20f986(0x470)][_0x20f986(0x140)]())==null?void 0x0:_0x202f3b[_0x20f986(0x49d)]())!==this[_0x20f986(0x42f)])return;const _0x3ef3a0=this['_injector'][_0x20f986(0x28e)](_0x56b8b2)[_0x20f986(0x3bd)]();Array['isArray'](_0x3ef3a0)&&_0x3ef3a0[_0x20f986(0x192)]>0x0&&this[_0x20f986(0x36b)](_0x3ef3a0);}[_0x44ade9(0x2f1)](){const _0x408e4c=_0x44ade9;this[_0x408e4c(0x1e6)]=!0x1;}};Pt=Pr([ie(0x2,_0x180372(_0x15d871)),ie(0x3,_0x180372(Gt)),ie(0x4,_0x180372(ae)),ie(0x5,_0x180372(Ft)),ie(0x6,_0x446e46),ie(0x7,_0x4c19c5),ie(0x8,_0x2bc808)],Pt);var Ur=Object[_0x44ade9(0x421)],Mr=Object[_0x44ade9(0x418)],Ar=(_0x27535e,_0x497665,_0x2d8083,_0x1ef27c)=>{for(var _0x5b8464=_0x1ef27c>0x1?void 0x0:_0x1ef27c?Mr(_0x497665,_0x2d8083):_0x497665,_0x418069=_0x27535e['length']-0x1,_0x40adb9;_0x418069>=0x0;_0x418069--)(_0x40adb9=_0x27535e[_0x418069])&&(_0x5b8464=(_0x1ef27c?_0x40adb9(_0x497665,_0x2d8083,_0x5b8464):_0x40adb9(_0x5b8464))||_0x5b8464);return _0x1ef27c&&_0x5b8464&&Ur(_0x497665,_0x2d8083,_0x5b8464),_0x5b8464;},ft=(_0x1d2dd1,_0x380226)=>(_0x2625cc,_0x69ae09)=>_0x380226(_0x2625cc,_0x69ae09,_0x1d2dd1);let ge=class extends _0x1d444{constructor(_0x33807d,_0x217282,_0x286dd2){const _0x504109=_0x44ade9;super(),l(this,_0x504109(0x46d),new Map()),l(this,_0x504109(0x260),new _0x3827c1()),(this['_univerInstanceService']=_0x33807d,this[_0x504109(0x181)]=_0x217282,this[_0x504109(0x21c)]=_0x286dd2,this[_0x504109(0x2af)]());}[_0x44ade9(0x2c9)](){const _0x15969d=_0x44ade9;super[_0x15969d(0x2c9)](),this[_0x15969d(0x260)][_0x15969d(0x19c)](),this['_entities'][_0x15969d(0x362)](_0x246777=>_0x246777['dispose']());}[_0x44ade9(0x329)](_0x78516d){const _0x4690c0=_0x44ade9;return this[_0x4690c0(0x46d)][_0x4690c0(0x22f)](_0x78516d)?this[_0x4690c0(0x46d)][_0x4690c0(0x28e)](_0x78516d)[_0x4690c0(0x46b)]:this['_entityInit$'][_0x4690c0(0x2e0)](_0xfe2c4(_0x28b65c=>_0x28b65c['unitID']===_0x78516d),_0x5dc56b(_0x12def8=>_0x12def8['cursorInfo$']));}['_init'](){const _0x5bf0e6=_0x44ade9;this[_0x5bf0e6(0x470)][_0x5bf0e6(0x1a7)](_0xb0e7e8[_0x5bf0e6(0x233)])['pipe'](_0x275af9(this['dispose$']))[_0x5bf0e6(0x3dc)](async _0x428995=>{const _0x2e7bca=_0x5bf0e6,_0x4b8371=_0x428995[_0x2e7bca(0x49d)](),_0x4c183c=await this[_0x2e7bca(0x32b)](_0x4b8371);this[_0x2e7bca(0x260)][_0x2e7bca(0x34e)](_0x4c183c),this['_entities'][_0x2e7bca(0x48c)](_0x4b8371,_0x4c183c);}),this[_0x5bf0e6(0x470)][_0x5bf0e6(0x1a7)](_0xb0e7e8[_0x5bf0e6(0x3b0)])[_0x5bf0e6(0x2e0)](_0x275af9(this[_0x5bf0e6(0x424)]))['pipe'](_0xfe2c4(_0x13c5e7=>!_0x13c5e7['getUnitId']()[_0x5bf0e6(0x1e4)]('__')))[_0x5bf0e6(0x3dc)](async _0x423718=>{const _0x176b17=_0x5bf0e6,_0xa25ab=_0x423718[_0x176b17(0x49d)](),_0x3ccb44=await this[_0x176b17(0x276)](_0xa25ab);this[_0x176b17(0x260)][_0x176b17(0x34e)](_0x3ccb44),this['_entities'][_0x176b17(0x48c)](_0xa25ab,_0x3ccb44);}),_0x527d28(this[_0x5bf0e6(0x470)][_0x5bf0e6(0x456)](_0xb0e7e8[_0x5bf0e6(0x3b0)]),this[_0x5bf0e6(0x470)]['getTypeOfUnitDisposed$'](_0xb0e7e8[_0x5bf0e6(0x233)]))[_0x5bf0e6(0x2e0)](_0x275af9(this[_0x5bf0e6(0x424)]))[_0x5bf0e6(0x3dc)](_0x5ea4cc=>{const _0x5924ed=_0x5bf0e6,_0x8e4f93=_0x5ea4cc[_0x5924ed(0x49d)](),_0x2c4d9a=this['_entities'][_0x5924ed(0x28e)](_0x8e4f93);_0x2c4d9a&&(_0x2c4d9a[_0x5924ed(0x2c9)](),this['_entities'][_0x5924ed(0x467)](_0x8e4f93));});}async['_startSheetCollabCursor'](_0x5aa2ea){const _0x218471=_0x44ade9,_0x3d7134=await this[_0x218471(0x21c)]['requireSession'](_0x5aa2ea),_0x8ea3af=this[_0x218471(0x181)][_0x218471(0x307)](wt,_0x5aa2ea,_0x3d7134);return _0x8ea3af[_0x218471(0x38c)](),_0x8ea3af;}async[_0x44ade9(0x276)](_0x1df317){const _0x1fa776=_0x44ade9,_0x230457=await this['_collabSessionService'][_0x1fa776(0x256)](_0x1df317),_0x1d75f8=this[_0x1fa776(0x181)][_0x1fa776(0x307)](Pt,_0x1df317,_0x230457);return _0x1d75f8[_0x1fa776(0x38c)](),_0x1d75f8;}};ge=Ar([_0x2cff12(_0x1e5de5[_0x44ade9(0x427)],ge),ft(0x0,_0x4c19c5),ft(0x1,_0x180372(_0x15d871)),ft(0x2,_0x180372(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x17c8d4,_0x5afb1b){const _0x1fb22c=_0x44ade9;let {radius:_0x42d198,width:_0x36b021,height:_0x10a12c}=_0x5afb1b;_0x42d198=_0x42d198!=null?_0x42d198:0x0,_0x36b021=_0x36b021!=null?_0x36b021:0x1e,_0x10a12c=_0x10a12c!=null?_0x10a12c:0x1e;let _0x558350=0x0,_0x12673b=0x0,_0x21b870=0x0;_0x558350=_0x12673b=_0x21b870=Math[_0x1fb22c(0x218)](_0x42d198,_0x36b021/0x2,_0x10a12c/0x2),_0x17c8d4['beginPath'](),_0x17c8d4[_0x1fb22c(0x2a6)](_0x558350,0x0),_0x17c8d4[_0x1fb22c(0x35a)](_0x36b021-_0x12673b,0x0),_0x17c8d4['arc'](_0x36b021-_0x12673b,_0x12673b,_0x12673b,Math['PI']*0x3/0x2,0x0,!0x1),_0x17c8d4['lineTo'](_0x36b021,_0x10a12c-_0x21b870),_0x17c8d4[_0x1fb22c(0x47c)](_0x36b021-_0x21b870,_0x10a12c-_0x21b870,_0x21b870,0x0,Math['PI']/0x2,!0x1),_0x17c8d4[_0x1fb22c(0x35a)](0x0,_0x10a12c),_0x17c8d4['lineTo'](0x0,_0x558350),_0x17c8d4[_0x1fb22c(0x47c)](_0x558350,_0x558350,_0x558350,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x17c8d4['closePath'](),_0x5afb1b[_0x1fb22c(0x209)]&&(_0x17c8d4[_0x1fb22c(0x1d0)](),_0x17c8d4[_0x1fb22c(0x3d7)]=_0x5afb1b[_0x1fb22c(0x209)],_0x5afb1b[_0x1fb22c(0x4ad)]==='evenodd'?_0x17c8d4[_0x1fb22c(0x209)]('evenodd'):_0x17c8d4[_0x1fb22c(0x209)](),_0x17c8d4['restore']());}class rt extends _0x425f9c{constructor(_0x519347,_0x3136b5){const _0x107b4d=_0x44ade9;super(_0x519347,_0x3136b5),l(this,_0x107b4d(0x49e)),l(this,_0x107b4d(0x18f)),(this[_0x107b4d(0x49e)]=_0x3136b5==null?void 0x0:_0x3136b5[_0x107b4d(0x49e)],this[_0x107b4d(0x18f)]=_0x3136b5==null?void 0x0:_0x3136b5['text']);}static['drawWith'](_0x3d8625,_0x4377a5){const _0x25cd97=_0x44ade9,{text:_0xd198f8,color:_0x3a6516}=_0x4377a5;_0x3d8625[_0x25cd97(0x1d0)](),_0x3d8625[_0x25cd97(0x1e1)]=_0x25cd97(0x2dd);const _0x19aa68=_0x3d8625[_0x25cd97(0x1bc)](_0xd198f8)[_0x25cd97(0x175)],_0x5c48f8=Math['min'](_0x19aa68+0x2*mt,ds);$r(_0x3d8625,{'height':Le,'radius':0x4,'width':_0x5c48f8,'fill':_0x3a6516,'evented':!0x1}),_0x3d8625[_0x25cd97(0x3d7)]=_0x25cd97(0x327);const _0x737ce7=mt,_0x368e69=Le-Lr,_0xa1f90a=ds-0x2*mt;if(_0x19aa68>_0xa1f90a){let _0x162e2c='',_0x582a3c=0x0;for(const _0x2f6376 of _0xd198f8){const _0xbbb0a2=_0x3d8625[_0x25cd97(0x1bc)](_0x2f6376)['width'];if(_0x582a3c+_0xbbb0a2<=_0xa1f90a-_0x3d8625[_0x25cd97(0x1bc)]('...')['width'])_0x162e2c+=_0x2f6376,_0x582a3c+=_0xbbb0a2;else{_0x162e2c+=_0x25cd97(0x1ba);break;}}_0x3d8625['fillText'](_0x162e2c,_0x737ce7,_0x368e69);}else _0x3d8625[_0x25cd97(0x20e)](_0xd198f8,_0x737ce7,_0x368e69);_0x3d8625[_0x25cd97(0x3a6)]();}['_draw'](_0x4f3a69){rt['drawWith'](_0x4f3a69,this);}}const gt=_0x44ade9(0x1cc),jr=_0x44ade9(0x13a),xr=_0x44ade9(0x33a),De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x44ade9(0x20f);class fs{constructor(_0x237f9b,_0x1604c8,_0x2dc80d,_0x8e574c){const _0xf45443=_0x44ade9;l(this,_0xf45443(0x36c),[]),l(this,_0xf45443(0x376),null),l(this,_0xf45443(0x37a),null),l(this,'_anchorDot',null),l(this,_0xf45443(0x292),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x237f9b,this[_0xf45443(0x1de)]=_0x1604c8,this[_0xf45443(0x47b)]=_0x2dc80d,this[_0xf45443(0x45d)]=_0x8e574c,this['_render']());}set[_0x44ade9(0x454)](_0x1c25a7){const _0x5e2794=_0x44ade9;_0x1c25a7?(this[_0x5e2794(0x1bf)]&&this['_anchorDot'][_0x5e2794(0x48e)](),this[_0x5e2794(0x37a)]&&this[_0x5e2794(0x37a)]['show']()):(this[_0x5e2794(0x1bf)]&&this[_0x5e2794(0x1bf)][_0x5e2794(0x15d)](),this['_textBubble']&&this['_textBubble'][_0x5e2794(0x48e)]());}['dispose'](){const _0x1ba885=_0x44ade9;for(const _0x20f68b of this['_shapes'])_0x20f68b[_0x1ba885(0x2c9)]();this[_0x1ba885(0x37a)]&&this[_0x1ba885(0x37a)]['dispose'](),this[_0x1ba885(0x1bf)]&&this[_0x1ba885(0x1bf)][_0x1ba885(0x2c9)](),this['_anchor']&&this[_0x1ba885(0x376)][_0x1ba885(0x2c9)](),this[_0x1ba885(0x45c)]&&this[_0x1ba885(0x45c)]();}[_0x44ade9(0x177)](){const _0x50b6e9=_0x44ade9;var _0x33db98;const {_docSkeleton:_0x28284b,_document:_0x22fbe0}=this,{color:_0x452f45,name:_0x6cbcd5,ranges:_0x5c4184}=this[_0x50b6e9(0x2a3)],_0x16d73f=_0x22fbe0[_0x50b6e9(0x438)](),{docsLeft:_0x5a5186,docsTop:_0x36eabd}=_0x16d73f,_0x62bfea=new _0x2066cd(_0x16d73f,_0x28284b);for(const {startOffset:_0x42f1c2,endOffset:_0x16bb07,collapsed:_0x557a28,isActive:_0x1705da}of _0x5c4184){const _0x543fac=_0x28284b['findNodePositionByCharIndex'](_0x42f1c2),_0x4cef9b=_0x28284b[_0x50b6e9(0x465)](_0x16bb07);if(_0x1705da){const {contentBoxPointGroup:_0x1a60c4}=_0x62bfea[_0x50b6e9(0x215)](_0x4cef9b,_0x4cef9b);if(_0x1a60c4[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x246)](_0x452f45,_0x1a60c4,_0x5a5186,_0x36eabd,_0x6cbcd5),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x557a28&&_0x543fac&&_0x4cef9b){if(_0x328ef9(_0x543fac,_0x4cef9b)){const _0x511c49=new _0x286ca0(_0x16d73f,_0x28284b),{pointGroup:_0x5b09c1}=(_0x33db98=_0x511c49['getRangePointData'](_0x543fac,_0x4cef9b))!=null?_0x33db98:{};if(_0x5b09c1==null||_0x5b09c1[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x2c0)](_0x452f45,_0x5b09c1,_0x5a5186,_0x36eabd);}else{const {contentBoxPointGroup:_0x4c6290}=_0x62bfea['getRangePointData'](_0x543fac,_0x4cef9b);if(_0x4c6290[_0x50b6e9(0x192)]===0x0)continue;this[_0x50b6e9(0x468)](_0x452f45,_0x4c6290,_0x5a5186,_0x36eabd);}}}}[_0x44ade9(0x246)](_0x36cc9d,_0x2a9233,_0x10a7f0,_0x12861c,_0x493ecf){const _0x8af3fe=_0x44ade9,_0x355f85=this[_0x8af3fe(0x457)](_0x2a9233),{left:_0x51a7ec,top:_0x58cb18,height:_0x380b80}=_0x355f85,_0x3f88a8=this[_0x8af3fe(0x23d)](),_0x572c8e=kr/_0x3f88a8,_0x5b17a3=new _0x81b34c(gt+_0x110341[_0x8af3fe(0x31d)](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c,'height':_0x380b80,'width':Hr,'fill':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'strokeWidth':_0x572c8e,'stroke':Br,'evented':!0x0});this['_anchor']=_0x5b17a3,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x5b17a3,_0x31e632);const _0x2b5093=new _0x81b34c(gt+_0x110341['generateRandomId'](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c-St/0x2,'height':St,'width':St,'fill':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'strokeWidth':0x0,'stroke':_0x36cc9d||_0x15026d(_0x110dca[_0x8af3fe(0x3ff)],0x0),'evented':!0x1});this[_0x8af3fe(0x1bf)]=_0x2b5093,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x2b5093,_0x31e632);const _0x84a2f1=new rt(gt+_0x110341[_0x8af3fe(0x31d)](De),{'left':_0x51a7ec+_0x10a7f0-_0x572c8e,'top':_0x58cb18+_0x12861c-Le,'text':_0x493ecf,'color':_0x36cc9d});this['_textBubble']=_0x84a2f1,this[_0x8af3fe(0x1de)][_0x8af3fe(0x23a)](_0x84a2f1,_0x31e632),this[_0x8af3fe(0x454)]=!0x1;}[_0x44ade9(0x375)](){const _0x1cc19b=_0x44ade9,_0x491dfa=this[_0x1cc19b(0x376)][_0x1cc19b(0x155)][_0x1cc19b(0x197)](()=>{const _0x587a9e=_0x1cc19b;this[_0x587a9e(0x454)]=!0x0;}),_0x554004=this[_0x1cc19b(0x376)][_0x1cc19b(0x313)][_0x1cc19b(0x197)](()=>{const _0x5ab6d2=_0x1cc19b;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x5ab6d2(0x292)]=setTimeout(()=>{const _0x4885e1=_0x5ab6d2;this[_0x4885e1(0x454)]=!0x1;},0x7d0);});return()=>{_0x491dfa['unsubscribe'](),_0x554004['unsubscribe']();};}[_0x44ade9(0x468)](_0x1849ce,_0xc9e38f,_0x43d33b,_0x3b7c73){const _0x35d911=_0x44ade9,_0x1ad77f=new _0x249e91(_0x1849ce)[_0x35d911(0x227)](0.2)[_0x35d911(0x305)](),_0x9e4d3e=new _0x5e6974(jr+_0x110341['generateRandomId'](De),{'pointsGroup':_0xc9e38f,'fill':_0x1ad77f||_0x15026d(_0x110dca['black'],0.2),'left':_0x43d33b,'top':_0x3b7c73,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x35d911(0x23e)](_0x9e4d3e),this[_0x35d911(0x1de)][_0x35d911(0x23a)](_0x9e4d3e,_0x31e632);}[_0x44ade9(0x2c0)](_0x28a4d9,_0x1ca881,_0x56ead4,_0x7b0199){const _0x27fb01=_0x44ade9,_0x2bae42=new _0x249e91(_0x28a4d9)[_0x27fb01(0x227)](0.2)[_0x27fb01(0x305)](),_0x40eeaa=new _0x5e6974(xr+_0x110341[_0x27fb01(0x31d)](De),{'pointsGroup':_0x1ca881,'fill':_0x2bae42||_0x15026d(_0x110dca[_0x27fb01(0x3ff)],0.2),'left':_0x56ead4,'top':_0x7b0199,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x40eeaa),this[_0x27fb01(0x1de)][_0x27fb01(0x23a)](_0x40eeaa,_0x31e632);}[_0x44ade9(0x457)](_0x3cacbc){const _0x4e54e6=_0x3cacbc[0x0],_0x4aab36=_0x4e54e6[0x0],_0x4ff3fc=_0x4e54e6[0x2],{x:_0x50c33d,y:_0x5276d1}=_0x4aab36,{x:_0x3cbe81,y:_0x170477}=_0x4ff3fc;return{'left':_0x50c33d,'top':_0x5276d1,'width':_0x3cbe81-_0x50c33d,'height':_0x170477-_0x5276d1};}[_0x44ade9(0x23d)](){const _0x2ba984=_0x44ade9,{scaleX:_0x441883,scaleY:_0x4c1655}=this[_0x2ba984(0x1de)][_0x2ba984(0x2d1)]();return Math[_0x2ba984(0x21f)](_0x441883,_0x4c1655);}}var Vr=Object['defineProperty'],Fr=Object[_0x44ade9(0x418)],Wr=(_0x1d3596,_0x1947e3,_0x5bf6ff,_0x3fd53a)=>{const _0x12da0e=_0x44ade9;for(var _0x401706=_0x3fd53a>0x1?void 0x0:_0x3fd53a?Fr(_0x1947e3,_0x5bf6ff):_0x1947e3,_0x14982a=_0x1d3596[_0x12da0e(0x192)]-0x1,_0x5c2a22;_0x14982a>=0x0;_0x14982a--)(_0x5c2a22=_0x1d3596[_0x14982a])&&(_0x401706=(_0x3fd53a?_0x5c2a22(_0x1947e3,_0x5bf6ff,_0x401706):_0x5c2a22(_0x401706))||_0x401706);return _0x3fd53a&&_0x401706&&Vr(_0x1947e3,_0x5bf6ff,_0x401706),_0x401706;},ke=(_0x5997d9,_0x483892)=>(_0x5d75ba,_0x23807e)=>_0x483892(_0x5d75ba,_0x23807e,_0x5997d9);let We=class extends _0x1d444{constructor(_0x2d618c,_0x302458,_0x3acc5d,_0x1c5a0d,_0x4fefba){const _0x4fefb3=_0x44ade9;super(),l(this,_0x4fefb3(0x48b),[]),l(this,'_cursors',[]),(this[_0x4fefb3(0x476)]=_0x2d618c,this[_0x4fefb3(0x499)]=_0x302458,this[_0x4fefb3(0x191)]=_0x3acc5d,this[_0x4fefb3(0x1a6)]=_0x1c5a0d,this['_themeService']=_0x4fefba,this[_0x4fefb3(0x2af)]());}[_0x44ade9(0x2af)](){const _0x3c8514=_0x44ade9,_0x5a761d=this[_0x3c8514(0x476)]['unitId'],_0x5a73c9=this[_0x3c8514(0x499)];this[_0x3c8514(0x26d)](_0x570be0([this[_0x3c8514(0x191)]['getCollabCursors$'](_0x5a761d),this[_0x3c8514(0x281)][_0x3c8514(0x49b)]])[_0x3c8514(0x2e0)](_0x49da78(([_0x59db84,_0x4c7040])=>({'skeleton':_0x5a73c9[_0x3c8514(0x25d)](),'cursors':[..._0x59db84['values']()]['flatMap'](_0x543f9b=>({..._0x543f9b,'color':_0x4c7040[_0x543f9b[_0x3c8514(0x49e)]]}))})))[_0x3c8514(0x3dc)](_0x797f56=>{const _0xfc33d3=_0x3c8514;if(this[_0xfc33d3(0x187)](),_0x797f56){const {skeleton:_0xd8aecd,cursors:_0x5ac331}=_0x797f56;this['_updateCollabCursors'](_0xd8aecd,_0x5ac331);}})),this[_0x3c8514(0x3a4)](),this[_0x3c8514(0x47a)]();}[_0x44ade9(0x195)](_0x379117,_0x3fa6c9){const _0x5c79dc=_0x44ade9,{scene:_0x12b758,mainComponent:_0x5055c7}=this[_0x5c79dc(0x476)],_0x25eb5b=_0x3fa6c9['map'](_0x3f3ea1=>new fs(_0x3f3ea1,_0x12b758,_0x379117,_0x5055c7));this['_cursorShapes']=_0x25eb5b,this[_0x5c79dc(0x3cf)]=_0x3fa6c9;}[_0x44ade9(0x48a)](){const _0x93c856=_0x44ade9;this[_0x93c856(0x187)]();const {scene:_0x4a2cc8,mainComponent:_0x24e536}=this['_context'],_0x1f3309=this[_0x93c856(0x499)][_0x93c856(0x25d)](),_0x529cc=this['_cursors'][_0x93c856(0x2aa)](_0xa9292=>new fs(_0xa9292,_0x4a2cc8,_0x1f3309,_0x24e536));this['_cursorShapes']=_0x529cc;}[_0x44ade9(0x187)](){const _0x5673fc=_0x44ade9;this[_0x5673fc(0x48b)]['forEach'](_0xdcf997=>_0xdcf997[_0x5673fc(0x2c9)]()),this[_0x5673fc(0x48b)]=[];}[_0x44ade9(0x47a)](){const _0x1fcbbd=_0x44ade9,_0x340c00=[_0x47953c['id']];this[_0x1fcbbd(0x26d)](this[_0x1fcbbd(0x1a6)][_0x1fcbbd(0x226)](_0x48ef72=>{const _0x3197e5=_0x1fcbbd;_0x340c00['includes'](_0x48ef72['id'])&&_0x48ef72[_0x3197e5(0x1d5)][_0x3197e5(0x288)]===this[_0x3197e5(0x476)][_0x3197e5(0x288)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x4c9593=_0x44ade9;this[_0x4c9593(0x26d)](_0x13c7e9(this[_0x4c9593(0x476)][_0x4c9593(0x31c)][_0x4c9593(0x212)])['pipe'](_0x5be455(_0x3dba55=>_0x3dba55[_0x4c9593(0x150)]===_0x453ffe[_0x4c9593(0x13f)]),_0x3a86b0(0x10))[_0x4c9593(0x3dc)](()=>{const _0x50ca3d=_0x4c9593;this[_0x50ca3d(0x48a)]();}));}};We=Wr([_0x2cff12(_0x1e5de5[_0x44ade9(0x437)],We),ke(0x1,_0x180372(_0x5570b9)),ke(0x2,_0x180372(ge)),ke(0x3,_0x2bc808),ke(0x4,_0x180372(_0x76412c))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x425f9c{constructor(_0x38adbc,_0x668018){const _0x3e2582=_0x44ade9;super(_0x38adbc,_0x668018),l(this,_0x3e2582(0x45a)),l(this,_0x3e2582(0x37d),!0x1),l(this,_0x3e2582(0x17d)),l(this,_0x3e2582(0x1bd),''),l(this,_0x3e2582(0x207),_0x3e2582(0x315)),l(this,_0x3e2582(0x2fd)),(_0x668018&&this['setShapeProps'](_0x668018),this[_0x3e2582(0x155)][_0x3e2582(0x197)](()=>this[_0x3e2582(0x3fb)]({'hovered':!0x0})),this[_0x3e2582(0x313)][_0x3e2582(0x197)](()=>this[_0x3e2582(0x3fb)]({'hovered':!0x1})));}[_0x44ade9(0x3fb)](_0x56d8f7){const _0x5ef64e=_0x44ade9;var _0x1ec0d3,_0xce19a3,_0x397b7b,_0x559c54,_0x10399d,_0x36db6c;this[_0x5ef64e(0x45a)]=(_0x1ec0d3=_0x56d8f7[_0x5ef64e(0x49e)])!=null?_0x1ec0d3:this[_0x5ef64e(0x45a)],this[_0x5ef64e(0x37d)]=(_0xce19a3=_0x56d8f7[_0x5ef64e(0x4a3)])!=null?_0xce19a3:this[_0x5ef64e(0x37d)],this['_range']=(_0x397b7b=_0x56d8f7['range'])!=null?_0x397b7b:this[_0x5ef64e(0x17d)],this[_0x5ef64e(0x1bd)]=(_0x559c54=_0x56d8f7[_0x5ef64e(0x4a9)])!=null?_0x559c54:this[_0x5ef64e(0x1bd)],this['_labelPosition']=(_0x10399d=_0x56d8f7[_0x5ef64e(0x4ae)])!=null?_0x10399d:this[_0x5ef64e(0x207)],this[_0x5ef64e(0x2fd)]=(_0x36db6c=_0x56d8f7['backgroundColor'])!=null?_0x36db6c:this[_0x5ef64e(0x2fd)],this[_0x5ef64e(0x287)]({'width':_0x56d8f7[_0x5ef64e(0x175)],'height':_0x56d8f7[_0x5ef64e(0x1b2)]});}[_0x44ade9(0x2ab)](_0x3d404b){const _0x298c72=_0x44ade9,{row:_0x1e2599,column:_0x5cfec3}=_0x3d404b;if(_0x1e2599>=this[_0x298c72(0x17d)]['startRow']&&_0x1e2599<=this['_range']['endRow']&&_0x5cfec3>=this[_0x298c72(0x17d)][_0x298c72(0x422)]&&_0x5cfec3<=this['_range'][_0x298c72(0x14e)]){this[_0x298c72(0x3fb)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x44ade9(0x310)](_0x2ff61e){return!0x1;}[_0x44ade9(0x1fd)](_0x42a54b){const _0x4af2c3=_0x44ade9;_0x81b34c[_0x4af2c3(0x412)](_0x42a54b,{'width':this[_0x4af2c3(0x175)],'height':this['height'],'strokeWidth':Yr,'stroke':this[_0x4af2c3(0x45a)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x4af2c3(0x37d)]&&(_0x42a54b[_0x4af2c3(0x1d0)](),_0x42a54b['transform'](0x1,0x0,0x0,0x1,this[_0x4af2c3(0x175)],this['_labelPosition']===_0x4af2c3(0x1ce)?0x0:-Le),rt[_0x4af2c3(0x412)](_0x42a54b,{'text':this[_0x4af2c3(0x1bd)],'color':this['_color']}),_0x42a54b[_0x4af2c3(0x3a6)]());}}var Xr=Object['defineProperty'],Jr=Object[_0x44ade9(0x418)],qr=(_0x374c3d,_0x4ca08a,_0x550b8b,_0x155e99)=>{const _0x469347=_0x44ade9;for(var _0x67c8fc=_0x155e99>0x1?void 0x0:_0x155e99?Jr(_0x4ca08a,_0x550b8b):_0x4ca08a,_0x1ca5ca=_0x374c3d[_0x469347(0x192)]-0x1,_0xf075bf;_0x1ca5ca>=0x0;_0x1ca5ca--)(_0xf075bf=_0x374c3d[_0x1ca5ca])&&(_0x67c8fc=(_0x155e99?_0xf075bf(_0x4ca08a,_0x550b8b,_0x67c8fc):_0xf075bf(_0x67c8fc))||_0x67c8fc);return _0x155e99&&_0x67c8fc&&Xr(_0x4ca08a,_0x550b8b,_0x67c8fc),_0x67c8fc;},pt=(_0x4828c5,_0xe9eef6)=>(_0x53de40,_0xaf7e10)=>_0xe9eef6(_0x53de40,_0xaf7e10,_0x4828c5);const zr=0x1389;let yt=class extends _0x1d444{constructor(_0x168558,_0x4444f9,_0x22b929,_0x41889){const _0x1c4d49=_0x44ade9;super(),l(this,'_cursors',new Set()),l(this,_0x1c4d49(0x28f),null),(this[_0x1c4d49(0x476)]=_0x168558,this['_sheetSkeletonManagerService']=_0x4444f9,this[_0x1c4d49(0x191)]=_0x22b929,this['_themeService']=_0x41889,this[_0x1c4d49(0x2af)]());}['_init'](){const _0x1f6e02=_0x44ade9;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x1f6e02(0x2e0)](_0x24c4a1(this['dispose$']),_0x3dab9b(_0x3ab6bb=>{const _0x34d5f5=_0x1f6e02;if(_0x3ab6bb){const _0x46385d=_0x3ab6bb[_0x34d5f5(0x489)];return _0x570be0(this['_collabCursorController']['getCollabCursors$'](this[_0x34d5f5(0x476)][_0x34d5f5(0x288)]),this[_0x34d5f5(0x281)][_0x34d5f5(0x49b)])[_0x34d5f5(0x2e0)](_0x49da78(([_0x2c8eb9,_0x47ccf0])=>{const _0x1bc25d=new Map();return _0x2c8eb9['forEach']((_0x21afc8,_0x2cf873)=>{const _0xd8548c=_0x3787;if(_0x21afc8[_0xd8548c(0x46f)]===_0x46385d){const _0x5af1f1={..._0x21afc8};_0x5af1f1[_0xd8548c(0x49e)]=_0x47ccf0[_0x21afc8[_0xd8548c(0x49e)]],_0x1bc25d['set'](_0x2cf873,_0x5af1f1);}}),{'skeleton':_0x3ab6bb,'cursors':_0x1bc25d};}));}return _0x6cc13d({'skeleton':null,'cursors':new Map()});}))[_0x1f6e02(0x3dc)](({skeleton:_0x1e6b66,cursors:_0x16e058})=>{const _0x547f21=_0x1f6e02;this['_removeCollabCursors'](),_0x1e6b66&&this[_0x547f21(0x195)](_0x1e6b66,_0x16e058);}),this[_0x1f6e02(0x3b5)][_0x1f6e02(0x27a)][_0x1f6e02(0x3dc)](_0x5726f8=>{const _0x5e0479=_0x1f6e02;if(_0x5726f8==null)return;const {skeleton:_0xb8a048}=_0x5726f8,{scene:_0x48dff4}=this[_0x5e0479(0x476)];_0x48dff4[_0x5e0479(0x2d9)][_0x5e0479(0x197)](_0x137993(_0x7dffb3=>{const _0x28a631=_0x5e0479;var _0x510f5a,_0x198f1c;const {offsetX:_0x722d1a,offsetY:_0x2b6d95}=_0x7dffb3,{x:_0x57aa2a,y:_0x369ed2}=_0x48dff4[_0x28a631(0x494)](_0x4941ed['FromArray']([_0x722d1a,_0x2b6d95])),{scaleX:_0x1e9e07,scaleY:_0x5490b2}=_0x48dff4[_0x28a631(0x2d1)](),_0x424170=_0x48dff4[_0x28a631(0x486)](_0x40a6ae['VIEW_MAIN']),_0x190850=_0x48dff4['getVpScrollXYInfoByPosToVp'](_0x4941ed['FromArray']([_0x57aa2a,_0x369ed2]),_0x424170),_0x542bac=_0xb8a048[_0x28a631(0x1f6)](_0x722d1a,_0x2b6d95,_0x1e9e07,_0x5490b2,_0x190850);((_0x510f5a=this['_lastPointer'])==null?void 0x0:_0x510f5a[_0x28a631(0x1b6)])===_0x542bac['column']&&((_0x198f1c=this[_0x28a631(0x28f)])==null?void 0x0:_0x198f1c[_0x28a631(0x31e)])===_0x542bac[_0x28a631(0x31e)]||this[_0x28a631(0x3cf)][_0x28a631(0x362)](_0x48d120=>{_0x48d120['onMouseMove'](_0x542bac);});},0x64));});}[_0x44ade9(0x195)](_0x4708de,_0xaab59b){const _0x43706b=_0x44ade9;var _0x8cab13;const _0x818ec0=(_0x8cab13=this[_0x43706b(0x3b5)]['getCurrent']())==null?void 0x0:_0x8cab13[_0x43706b(0x439)];if(!_0x818ec0)return;const _0x302b1a=this['_getSheetObject']();if(!_0x302b1a)return;this[_0x43706b(0x3cf)][_0x43706b(0x362)](_0x5d53b0=>{const _0x6d798c=_0x43706b;_0x5d53b0[_0x6d798c(0x2db)]();});const {scene:_0x3b1576}=_0x302b1a,_0x36faa3=Zr(Array[_0x43706b(0x2cd)](_0xaab59b[_0x43706b(0x280)]()))[_0x43706b(0x2aa)](_0x696a75=>{const _0x5f2f56=_0x43706b,{color:_0x46ecf6,range:_0x488c01,name:_0x35194d,selection:_0x55c700,sheetID:_0x1609d1}=_0x696a75,{startColumn:_0x5bb51e,startRow:_0xc1e595,endColumn:_0x5da2b7,endRow:_0x54d9ac}=_0x488c01,_0x16f0fe=_0xa8bbdf(_0xc1e595,_0x5bb51e,_0x3b1576,_0x818ec0),_0x1ff27b=_0xa8bbdf(_0x54d9ac,_0x5da2b7,_0x3b1576,_0x818ec0),{columnHeaderHeightAndMarginTop:_0x11eac4}=_0x818ec0,{startX:_0x2129fe,startY:_0x20503c}=_0x16f0fe,{endX:_0x44304b,endY:_0x1c1422}=_0x1ff27b,_0x1e08a9=_0x44304b-_0x2129fe,_0x5052ee=_0x1c1422-_0x20503c,_0x29f3ec={'labelPosition':_0x20503c-_0x11eac4>=Le?'top':_0x5f2f56(0x1ce),'sheetID':_0x1609d1,'range':_0x488c01,'color':_0x46ecf6,'name':_0x35194d,'selection':_0x55c700,'left':_0x2129fe,'top':_0x20503c,'width':_0x1e08a9,'height':_0x5052ee,'evented':!0x1,'zIndex':zr};return new Kr(_0x35194d,_0x29f3ec);});_0x3b1576['addObjects'](_0x36faa3,Gr),this[_0x43706b(0x3cf)]=new Set(_0x36faa3);}[_0x44ade9(0x187)](){const _0x26b758=_0x44ade9;var _0x369dc2;(_0x369dc2=this[_0x26b758(0x3cf)])==null||_0x369dc2[_0x26b758(0x362)](_0x2226f9=>_0x2226f9[_0x26b758(0x2c9)]());}[_0x44ade9(0x2ca)](){const _0x48cd68=_0x44ade9;return _0x292b3d(this[_0x48cd68(0x476)][_0x48cd68(0x1ff)],this[_0x48cd68(0x476)]);}};yt=qr([pt(0x1,_0x180372(_0xfbaa46)),pt(0x2,_0x180372(ge)),pt(0x3,_0x180372(_0x76412c))],yt);function Zr(_0x2b413f){const _0x31d020=_0x44ade9,_0x341190=new Map();return _0x2b413f[_0x31d020(0x362)](_0x424bd1=>{const _0x37c42b=_0x31d020;if(_0x341190[_0x37c42b(0x22f)](_0x424bd1[_0x37c42b(0x1f1)])){const _0x513bb2=_0x341190['get'](_0x424bd1[_0x37c42b(0x1f1)]);_0x513bb2[_0x37c42b(0x4a9)]+=',\x20'+_0x424bd1[_0x37c42b(0x4a9)];}else _0x341190['set'](_0x424bd1[_0x37c42b(0x1f1)],_0x424bd1);}),Array[_0x31d020(0x2cd)](_0x341190[_0x31d020(0x280)]());}var N=function(){const _0x4fecbd=_0x44ade9;return N=Object[_0x4fecbd(0x336)]||function(_0x301e2a){const _0x3433ea=_0x4fecbd;for(var _0x48f7c3,_0x62c2ea=0x1,_0x1da84c=arguments[_0x3433ea(0x192)];_0x62c2ea<_0x1da84c;_0x62c2ea++){_0x48f7c3=arguments[_0x62c2ea];for(var _0x1fbe5a in _0x48f7c3)Object[_0x3433ea(0x49a)][_0x3433ea(0x216)][_0x3433ea(0x303)](_0x48f7c3,_0x1fbe5a)&&(_0x301e2a[_0x1fbe5a]=_0x48f7c3[_0x1fbe5a]);}return _0x301e2a;},N[_0x4fecbd(0x2da)](this,arguments);},Qr=function(_0x3f1c81,_0x52e131){const _0x599d7e=_0x44ade9;var _0x212d73={};for(var _0x212716 in _0x3f1c81)Object['prototype'][_0x599d7e(0x216)][_0x599d7e(0x303)](_0x3f1c81,_0x212716)&&_0x52e131['indexOf'](_0x212716)<0x0&&(_0x212d73[_0x212716]=_0x3f1c81[_0x212716]);if(_0x3f1c81!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x26162b=0x0,_0x212716=Object[_0x599d7e(0x434)](_0x3f1c81);_0x26162b<_0x212716['length'];_0x26162b++)_0x52e131[_0x599d7e(0x42c)](_0x212716[_0x26162b])<0x0&&Object[_0x599d7e(0x49a)][_0x599d7e(0x38d)]['call'](_0x3f1c81,_0x212716[_0x26162b])&&(_0x212d73[_0x212716[_0x26162b]]=_0x3f1c81[_0x212716[_0x26162b]]);}return _0x212d73;},Yt=_0x19138a(function(_0x2109ad,_0x56c1df){const _0x4a68b7=_0x44ade9;var _0x5b7d0d=_0x2109ad[_0x4a68b7(0x3d3)],_0x2c0c3c=_0x2109ad['id'],_0x1cfbd8=_0x2109ad[_0x4a68b7(0x2d3)],_0xb2cbc9=_0x2109ad[_0x4a68b7(0x29a)],_0x45b7c9=Qr(_0x2109ad,['icon','id',_0x4a68b7(0x2d3),'extend']),_0x3c8781='univerjs-icon\x20univerjs-icon-'[_0x4a68b7(0x17c)](_0x2c0c3c,'\x20')[_0x4a68b7(0x17c)](_0x1cfbd8||'')['trim'](),_0x3d1979=_0x2079f7('_'[_0x4a68b7(0x17c)](so()));return Bs(_0x5b7d0d,''['concat'](_0x2c0c3c),{'defIds':_0x5b7d0d['defIds'],'idSuffix':_0x3d1979[_0x4a68b7(0x285)]},N({'ref':_0x56c1df,'className':_0x3c8781},_0x45b7c9),_0xb2cbc9);});function Bs(_0x395ca3,_0x205c6c,_0x215fc1,_0xc323c4,_0x12560c){const _0x3b0c63=_0x44ade9;return _0x1f11c0(_0x395ca3[_0x3b0c63(0x165)],N(N({'key':_0x205c6c},eo(_0x395ca3,_0x215fc1,_0x12560c)),_0xc323c4),(to(_0x395ca3,_0x215fc1)['children']||[])[_0x3b0c63(0x2aa)](function(_0x2a6917,_0x54887c){const _0x485186=_0x3b0c63;return Bs(_0x2a6917,''[_0x485186(0x17c)](_0x205c6c,'-')[_0x485186(0x17c)](_0x395ca3[_0x485186(0x165)],'-')['concat'](_0x54887c),_0x215fc1,void 0x0,_0x12560c);}));}function eo(_0x1ce04a,_0x5b060d,_0xe132c1){const _0x2a0d88=_0x44ade9;var _0x5ad04b=N({},_0x1ce04a[_0x2a0d88(0x25e)]);_0xe132c1!=null&&_0xe132c1[_0x2a0d88(0x419)]&&_0x5ad04b[_0x2a0d88(0x209)]==='colorChannel1'&&(_0x5ad04b[_0x2a0d88(0x209)]=_0xe132c1['colorChannel1']);var _0x3ccbc4=_0x5b060d[_0x2a0d88(0x36f)];return!_0x3ccbc4||_0x3ccbc4[_0x2a0d88(0x192)]===0x0||(_0x1ce04a[_0x2a0d88(0x165)]==='use'&&_0x5ad04b[_0x2a0d88(0x221)]&&(_0x5ad04b[_0x2a0d88(0x221)]=_0x5ad04b[_0x2a0d88(0x221)]+_0x5b060d[_0x2a0d88(0x2f7)]),Object[_0x2a0d88(0x405)](_0x5ad04b)[_0x2a0d88(0x362)](function(_0x5a0c23){const _0x531df9=_0x2a0d88;var _0x5b2e87=_0x5a0c23[0x0],_0x2e2046=_0x5a0c23[0x1];typeof _0x2e2046==_0x531df9(0x296)&&(_0x5ad04b[_0x5b2e87]=_0x2e2046[_0x531df9(0x3af)](/url\(#(.*)\)/,_0x531df9(0x3aa)[_0x531df9(0x17c)](_0x5b060d['idSuffix'],')')));})),_0x5ad04b;}function to(_0x9ba6c6,_0x832d49){const _0x93c588=_0x44ade9;var _0x26cbcb,_0x5eb71d=_0x832d49[_0x93c588(0x36f)];return!_0x5eb71d||_0x5eb71d[_0x93c588(0x192)]===0x0?_0x9ba6c6:_0x9ba6c6[_0x93c588(0x165)]===_0x93c588(0x2f3)&&(!((_0x26cbcb=_0x9ba6c6[_0x93c588(0x236)])===null||_0x26cbcb===void 0x0)&&_0x26cbcb[_0x93c588(0x192)])?N(N({},_0x9ba6c6),{'children':_0x9ba6c6[_0x93c588(0x236)][_0x93c588(0x2aa)](function(_0x10f2eb){const _0x110815=_0x93c588;return typeof _0x10f2eb[_0x110815(0x25e)]['id']=='string'&&_0x5eb71d&&_0x5eb71d[_0x110815(0x42c)](_0x10f2eb[_0x110815(0x25e)]['id'])>-0x1?N(N({},_0x10f2eb),{'attrs':N(N({},_0x10f2eb[_0x110815(0x25e)]),{'id':_0x10f2eb[_0x110815(0x25e)]['id']+_0x832d49[_0x110815(0x2f7)]})}):_0x10f2eb;})}):_0x9ba6c6;}function so(){const _0x4c278e=_0x44ade9;return Math[_0x4c278e(0x442)]()[_0x4c278e(0x1cb)](0x24)[_0x4c278e(0x18d)](0x2,0x8);}Yt['displayName']=_0x44ade9(0x1ee);var io={'tag':'svg','attrs':{'fill':_0x44ade9(0x25a),'viewBox':'0\x200\x2016\x2016','width':_0x44ade9(0x2fa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x44ade9(0x383),'d':_0x44ade9(0x34a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x44ade9(0x2e3),'attrs':{'id':_0x44ade9(0x159)},'children':[{'tag':_0x44ade9(0x350),'attrs':{'fill':'#fff','d':_0x44ade9(0x26f)}}]}]}],'defIds':[_0x44ade9(0x159)]},Vs=_0x19138a(function(_0x377c28,_0x2b0899){const _0x5a1a4e=_0x44ade9;return _0x1f11c0(Yt,Object[_0x5a1a4e(0x336)]({},_0x377c28,{'id':_0x5a1a4e(0x1da),'ref':_0x2b0899,'icon':io}));});Vs[_0x44ade9(0x40d)]='OffLineSingle';var no={'tag':_0x44ade9(0x484),'attrs':{'fill':'none','viewBox':_0x44ade9(0x4a0),'width':_0x44ade9(0x2fa),'height':_0x44ade9(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x44ade9(0x383),'d':'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','strokeLinecap':_0x44ade9(0x369),'strokeLinejoin':_0x44ade9(0x369),'strokeWidth':1.2}}]},{'tag':_0x44ade9(0x2f3),'attrs':{},'children':[{'tag':_0x44ade9(0x2e3),'attrs':{'id':_0x44ade9(0x3ae)},'children':[{'tag':'path','attrs':{'fill':_0x44ade9(0x1ab),'d':'M0\x200H16V16H0z','transform':_0x44ade9(0x1b5)}}]}]}],'defIds':[_0x44ade9(0x3ae)]},Fs=_0x19138a(function(_0x2fa27c,_0x49bf5d){const _0x250436=_0x44ade9;return _0x1f11c0(Yt,Object[_0x250436(0x336)]({},_0x2fa27c,{'id':'on-line-single','ref':_0x49bf5d,'icon':no}));});function _0x340c(){const _0x1f2bec=['_fetchMissChangesets','next','symbol','path','_initCloseConn','encode','unknown','incrementRevOfUnit','UNKNOWN_CMD','SUBMIT_CHANGESET','urlChange$','12004BvQVkV','send','lineTo','close$','contains','_change$','fetchMissingChangesets','_cursorInfo$','_joinRoom','onlineStatusIcon','forEach','_awaitingChangeset','exhaustSavingTask','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getCurrentRevision','_snapshotServerService','onSyncEditingCollabCursor','round','_registerRenderDependencies','_updateLocalCursor','_shapes','unshift','_removeClearOtherTimer','defIds','_initModules','Univer','LICENSE_DISTRO_REJECTED','_retryCount','_collaborationPaused','_handleHover','_anchor','add','_sendHeartbeat','ranges','_textBubble','onTransformRemoteChangesetByIMECache','[OfflineState]:\x20received\x20rejection.','_hovered','_onConflict','USERS_ENTER','_transformSelections','clearInterval','6OaBQFG','currentColor','saveSnapshot','red300','resend','_acknowledgedAwaitingChangeset','updateCursorEvent','Unknown\x20user','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_docSyncEditingCollabCursorService','init','propertyIsEnumerable','Ready','HELLO','IDLE','filter','onMissingChangesets','[PendingState]:\x20received\x20acknowledgement.','change$','_session','newCsEvent','_onConnectionOpen','getUnitStatus$','univer-online-status-title','actions','save\x20fail\x20reason\x20is\x20','getRenderById','/role','_socketReady','stopTime','LOGIN_URL_KEY','Error','onSendChangeset','_lockTransition','_initResize','_undoRedoService','restore','&assign=','INGEST','_initEventListeners','url(#$1','univer-offline','MUTATION','getCollabEntity$','on-line-single_clip0_910_349','replace','UNIVER_DOC','conflict.title','title','transformIMECache','_transitionLocked','_sheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','updateOfflineData','PENDING','LIVESHARE_OPERATION','UNIVER_COLLABORATION_CLIENT_PLUGIN','COLLAB_SUBMIT_CHANGESET_URL','APPLY_NON_SEQUENTIAL_REVISION','getDocRanges','downloadEndpointUrl','getUnhiddenWorksheets','split','popstate','[DataLoaderController]','data','collabStatus.conflict','HEARTBEAT_TIMEOUT','_colorIndex','NEW_CHANGESETS','createElement','HEARTBEAT','getUndoRedoMutationParamsCache','76627zGyCXZ','?url=','_onCursorUpdate','[CollaborationSessionService]','_cursors','_decreaseWaiting','_assignedColors','unit-cache-','icon','PSEUDO_FETCH_MISSING_RESULT','visibilityState','_commentService','fillStyle','_candidateSocket','transformStack\x20failed!','_httpService','_queuedRemoteChangesets','subscribe','[CollaborationUndoRedoService]','readAsDataURL','HEADER_MENU','file','awaiting_with_pending','APPLY_PERMISSION_DENIED','_socket$','registerOnClose','transformRemoteChangeset','verdancy600','_state$','location','onTransformSelections','UPDATE_PERMISSION_OBJ','not_collab','addEventListener','_getSnapshotAPIPrefix','interceptor','_waitCount','/collaborator','DEFAULT_FILE_NAME','_scheduleCollaborationTimeoutTimer','onCommentUpdate','_checkMissing','all','_createInitialState','cursorInfo','_cachedData','[SyncedState]:\x20received\x20acknowledgement.','_revisionService','setShapeProps','body','sessionStatus','_snapshotService','black','65271ZhXMYE','deepClone','LICENSE_IMPORT_SIZE_EXCEEDED','disableLocalCache','_refRangeService','entries','startTime','getResourcesRequest','_ws','getCurrentRevOfUnit','connection\x20error','_createSocket','SEND_CHANGESET_TIMEOUT','displayName','_id','/unit/','_getRedoStack','requestParams','drawWith','override','LEAVE','getRoom','blue400','refreshPermission','getOwnPropertyDescriptor','colorChannel1','doc.mutation.rich-text-editing','x-univer-host','createSocket','stringify','FETCH_MISSING','_getMergeRange','COMPRESS_MUTATION_APPLY','defineProperty','startColumn','_getAPIPrefixPath','dispose$','_send','updateMember','Starting','_exhaustRemoteChangesetQueue','_clearHeartbeatTimer','UnitEmbedded','roomInfos','indexOf','session.collaboration-timeout','_sessionStatus$','unitID','FileId','putCollaborators','joinRsp','collaboration_new_changeset','getOwnPropertySymbols','SNAPSHOT_INVALID_SNAPSHOT','COMMENT_UPDATE','Steady','getOffsetConfig','skeleton','_clearScheduledTask','YUUMI_SUBSCRIPTION_NOT_FOUND','collabStatus.notCollab','SNAPSHOT_URL_KEY','fetching\x20missing\x20changesets\x20from\x20','/universer-api/authz','_onLocalMutation','message$','random','capture','_saveCache','5772giKPrl','listRoles','SHOULD_CLOSE_CONN','_getAPIPrefix','with','saveImage','POST','collaborators','_initRequestHeader','_collaborationController','_permissionService','_memberService','joinEvent','/universer-api/snapshot/','liveShareNewHost','_hover','userID','getTypeOfUnitDisposed$','_getAnchorBounding','asObservable','INTERNAL_ERROR','_color','removeMember','_eventUnsubscribe','_document','InsertRowCommandId','loadOfflineData','action','awaiting','[PendingState]:\x20unhandled\x20univer\x20type:\x20','rev','onRemoteChangeset','findNodePositionByCharIndex','Warning','delete','_drawTextRange','APPLY_REVISION_CONFILICT','transformSelections','cursorInfo$','getWorkbookSelections','_entities','OTHER_CLIENTS_EDITING','sheetID','_univerInstanceService','setTimeout','_registerDependencies','/resources','_updateState','socketService','_context','[CollaborationState]:\x20apply\x20error!','YUUMI_URL_COL_OUT_OF_RANGE','_shouldReportTelemetry','_initCommandExecutedListener','_docSkeleton','arc','[OfflineState]:\x20received\x20acknowledgement.','authzUrl','_docTransformIMECacheService','setInterval','_uiPartsService','open$','m2Prime','svg','_transformIMECache','getViewport','_telemetryService','fetchMiss','sheetId','_refreshCollabCursors','_cursorShapes','set','getUnitType','hide','csAckEvent','UNIVER_UNKNOWN','YUUMI_RATE_OVER_LIMIT','[FetchMissState]','toggleOnline','getRelativeToViewportCoord','allowed','c1Prime','registerBeforeClose','searchParams','_docSkeletonManagerService','prototype','currentTheme$','_urlService','getUnitId','color','find','0\x200\x2017\x2016','_scheduleHeartbeat','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','_loadDoc','ERROR_IMAGE_TYPE','updatePermissionObjEvent','_sendHeartbeatTimer','LIVESHARE_NEW_HOST','name','ALREADY_EXISTS','_getUndoStack','onRemoteAck','fillRule','labelPosition','roomMembers$','url','_clearTimeoutTimer','collab-text-range-','_telemetryInfo','_loadSheet','unitId\x20is\x20not\x20found','_executeRemoteChangeset','resize','getFocusedUnit','_onConnectionFailed','collabStatus.synced','memberID','_colorAssignService','fromCollab','storage','visibilitychange','liveShareOperation','encodeURIComponent','UNKNOWN_CODE','collaboration-session-retry','_handleLeaveEvent','UNAUTHENTICATED','endColumn','status','type','src','copyFileMeta','online','_imageSourceCache','onPointerEnter$','disposeUnit','_handleHeartbeatEvent','_clearRedo','off-line-single_clip0_910_343','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_localCacheService','_saveTaskMap','show','[SyncedState]:\x20received\x20rejection.','setItem','_toggleOnline','_listenToOfflineEvent','_createHandler','_isPermissionRej','_listenToOnlineEvent','tag','InsertColCommandId','_rescheduleHeartbeat','setCurrentUser','transformMutationsWithChangeset','_transformService','_initStatusComponent','FAIL','_getUploadFileURL','getActiveSheet','_throwTelemetryCollaborationNewChangeset','objectID','3581536rMRjzw','workbook','?size=','_clearLocalCache','width','MSG_FOR_ERROR','_render','23890kKWDoK','LIVESHARE_TERMINATE','COMPRESS_MUTATION_SEND','_remoteChangesetQueue','concat','_range','pushState','JOIN','/universer-api/stream/file/upload','_injector','_onOffline','RemoveRowCommandId','_substituteUndoStack','/fetchmissing?from=','_stopTelemetryCollaborationNewChangeset','_removeCollabCursors','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSheetBySheetId','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sendingTimer','deleteCollaborator','substring','fetchThroughInterceptors','text','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collabCursorController','length','setConfig','_heartbeatTimer','_updateCollabCursors','_getSaveTimeout','subscribeEvent','registerRefRange','univer-online','RETRY_CONNECTING_MAX_COUNT','ONLINE','complete','originalMeta','reconnect','ws://127.0.0.1:8000/universer-api/comb/connect','_getDownloadEndpointURL','transformUndoRedo','enableLocalCache','_logService','_clearOtherTimers','awaitingChangeset','_commandService','getTypeOfUnitAdded$','PERMISSION_DENIED','UnitSnapshot','gold400','#fff','slice','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','image/bmp','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','closeSession','ACTIVE_UNIT_EVENT_CHANNEL','height','DeleteRangeMoveUpCommandId','permissionRejEvent','translate(.97)','column','replaceState','_config','_status$','...','getUnitOnRev','measureText','_name','shouldCloseConn','_anchorDot','YUUMI_UNABLE_LOAD_URL','INVALID_ARGUMENT','135MmhLHo','_sessions','_scheduleSaving','LICENSE_EXPORT_SIZE_EXCEEDED','OFFLINE','_event$','pending','error','sheets','toString','collab-text-anchor-','_setupSubUnitSync','bottom','univer-pro.collaboration-client-socket-service','save','registerHTTPInterceptor','assignAColorForMemberID','_transformPreviousActiveRange','put','params','_collaborationSessionService','[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.','_handleJoinEvent','csRejEvent','off-line-single','_onRemoteChangeset','onlineStatusTitle','[CollaborationEntity]','_scene','/universer-api/comb','[PendingState]:\x20received\x20rejection.','font','toggleOffline','PERMISSION_REJ','startsWith','_initStatusListener','_online','UNIVER_PROJECT','_commentUpdate$','/rev/','_onRemoteRejected','catch','conflict','_updateURLWithCurrentState','UniverIcon','_onMessage','getInterceptPoints','selection','onlineStatus','registerComponent','_createInitialStateImpl','loadSheet','getCellPositionByOffset','session.room-full','OnLineSingle','UPDATE_CURSOR','AUTHZ_URL_KEY','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_roomMembers$','_draw','append','unit','getCurrentUnitForType','/object','collab-client.tooltip.reconnect','_compressMutationService','session.connection-failed','unsubscribe','fetch_missing','_labelPosition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','fill','socket\x20close','_showConflictNotification','_updateStatus','TOO_MANY_REQUESTS','fillText','rgba(255,\x20255,\x20255,\x200.01)','status$','_members','onTransformChange$','state$','hidden','getRangePointData','hasOwnProperty','headers','min','baseRev','_scheduleTimestamp','_timeoutTimer','_collabSessionService','387359tkxntZ','SNAPSHOT_HAS_BEEN_REMOVED','max','_removeRoom','xlink:href','Undefined','_onJoinRoomEvent','retryConnectingInterval','_onRemoteACK','onCommandExecuted','setAlpha','method','/block/','LICENSE_MAX_UNITS_EXCEEDED','includes','unload','onload','_localStorageService','has','mutations','\x20to\x20','_userManagerService','UNIVER_SHEET','result','editingUnit','children','LIVESHARE_REQUEST_HOST','list','2WrGzNE','addObject','image/jpg','NOT_COLLAB','_getScale','push','getSheetBlock','socket$','offline','_scheduleClearOtherTimer','ERROR_IMAGE','withCredentials','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_drawAnchor','href','_unitID','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','NOT_FOUND','_getLoginPath','HttpExport','_clearCollaborationTimeoutTimer','focused$','_disabled','registerRenderModule','_configService','code','reject','isArray','updateCollaborator','requireSession','cmd','_onRecvEvent','loginUrlKey','none','getCurrentSelections','_collaborationTimeoutTimer','getSkeleton','attrs','_selfUnitIDs','_entityInit$','_retryConnectingTimer','CONNECTOR_DATA_TOO_LARGE','[OfflineState]:\x20received\x20changeset.','_startTelemetryCollaborationNewChangeset','selections','collabStatus.offline','_localeService','_renderManagerService','UNRECOGNIZED','div','_ensureSubject','_unlockTransition','disposeWithMe','HttpImport','M0\x200H16V16H0z','DeleteRangeMoveLeftCommandId','event$','_clearUndo','getSheetId','routeKey','_setupBeforeClosingHandler','_startDocCollabCursor','post','onStarting','_onCombEvent','currentSkeleton$','resolve','sessionStatus$','univer-online-status','_undoStacks','_getSignURL','values','_themeService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_HTTPService','_collabCursorState$','current','_notificationService','transformByState','unitId','_socketMessageSubscription','enableSingleActiveInstanceLock','COLLAB_WEB_SOCKET_URL','_handler','history','get','_lastPointer','session.will-retry','_unitStatus','_hideTimer','JOINING','837hJcJPx','m1Prime','string','_applyRemoteChangeset','replaceTextRanges','getValue','extend','/new_changes','onlyLocal','isActive','saveChangeset','auth.needGotoLoginAlert','c2Prime','_http','LOCAL_CACHE_INTERVAL','_cursor','SNAPSHOT_SERVER_URL_KEY','_initMergeInterceptor','moveTo','update','onTransformIME','_replayCachedMutations','map','onMouseMove','eventID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveOfflineData','_init','[CollaborationSession]','/universer-api/oidc/authpage','getImageSourceCache','create','AWAITING_WITH_PENDING','transformMutation','transformChangesets','_docStateChangeManagerService','close','textRanges','onRendered','syncEditingCollabCursor','_schedule','_syncEditingCollabCursor','1133zQOmhF','_transformUndoRedoStack','_drawRectRange','leaveEvent','/universer-api/file/{fileID}/sign-url','_socketService','_state','UNDEFINED','AWAITING','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_beforeCloseService','dispose','_getSheetObject','_onFetchMissResult','_roomMembers','from','updatePermissionPoint','loadDoc','getCurrentUser','getAncestorScale','_waitForHeartbeatResponse','className','addImageSourceCache','clear','_transformStack','getCollabEntity','subunit','onPointerMove$','apply','makeDirty','_onRefRangeChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','BASE64','_disableEditing','pipe','_updateSubUnitFromURLParams','parse','clipPath','reduce','appendMutation','RECV','UNIVER_SLIDE','collabCursorState$','_syncEditingCollabCursorService','snapshot','RemoveColCommandId','uni.network.url-service','onMissedChangesetFetched','_initUnitPermissionChange','isEditing','objectType','_toggleOffline','roomMembers','defs','USERS_LEAVE','univer-online-status-icon','getMergeData','idSuffix','FETCH_MISS','objects','1em','revision','/-/object/-/batch_allowed','_backgroundColor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','removeParam','UUID','then','collabWebSocketUrl','call','_startCollaboration','toRgbString','saveSheetBlock','createInstance','_type','SYNCED','_unitOnClients','NO_OTHER_CLIENTS_EDITING','getMember','_sheetTransformSelectionsService','clearTimeout','InsertRangeMoveRightCommandId','triggerDblclick','size','_submitChangeset','onPointerLeave$','_docTransformSelectionsService','top','_socket','_replaceFileID','batchAllowed','_singleActiveUnitService','\x20-\x20','getConfig','engine','generateRandomId','row','getMemberID','_getCtorByUniverType','&source=','[CollaborationSessionService]:\x20socket\x20error','executeCommand','onRemoteRej','failed\x20to\x20apply\x20missed\x20changesets!','_tryReconnect','#FFF','collaboration.closeRoom','getCollabCursors$','CHANGESET_REVISION_CONFILICT','_startSheetCollabCursor','_getSendChangesetTimeout','CONFLICT','LIVESHARE_FETCH_OPERATIONS','_onCursorDelete','json','/object/','_incrementRevisionNumber','_messageService','getImage','getItem','assign','localeService','commentUpdateEvent','activeSheet$','collab-rect-range-','debug','COMPLETION_FINISHED','infoRsp','CHANGESET_ACK','_transformRemoteChangesetByIMECache','uploadFileServerUrl','error$','APPLY_REJECT','session','newValue','_handleEvent','_tryEnsureSocket','_updateLocalCache','_pendingMutations','getParam','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','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onUserLeave'];_0x340c=function(){return _0x1f2bec;};return _0x340c();}Fs['displayName']=_0x44ade9(0x1f8);const ro=_0x44ade9(0x2f5),oo=_0x44ade9(0x399),ao=_0x44ade9(0x27d),co=_0x44ade9(0x199),ho=_0x44ade9(0x3ab),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x5e09c3){const _0x231238=_0x44ade9;switch(_0x5e09c3){case w['OFFLINE']:return _0x231238(0x266);case w[_0x231238(0x32d)]:return _0x231238(0x3c4);case w[_0x231238(0x2f8)]:return'collabStatus.fetchMiss';case w[_0x231238(0x23c)]:return _0x231238(0x43c);case w['PENDING']:case w[_0x231238(0x2c6)]:case w[_0x231238(0x2b4)]:return'collabStatus.syncing';case w[_0x231238(0x309)]:return _0x231238(0x142);}}function _o(_0x2ef1d7){const _0x1d645a=_0x44ade9,{status$:_0x3602de}=_0x2ef1d7,_0x1cb08c=_0x3a7045(_0x3602de,w['NOT_COLLAB']),_0x27ec0e=_0x24777e(_0x787113),_0x35e658=_0x24777e(ce),_0x52bd35=_0x1cb08c!==w[_0x1d645a(0x1c6)],_0x4b5a13=_0x27ec0e['t'](lo(_0x1cb08c)),_0x4439b5=_0x59a36c(we[_0x1d645a(0x1f2)],{[we[_0x1d645a(0x153)]]:_0x52bd35,[we[_0x1d645a(0x241)]]:!_0x52bd35}),_0x58f066=_0x52bd35?_0x306310['createElement'](Fs,null):_0x306310['createElement'](Vs,null),_0x1d77a9=_0x6e72a5(()=>{const _0xa9cdad=_0x1d645a;_0x52bd35||_0x35e658[_0xa9cdad(0x19e)]();},[_0x52bd35,_0x35e658]);function _0x390979(){const _0x5aad57=_0x1d645a;return _0x306310[_0x5aad57(0x3c8)](_0x5aad57(0x26a),{'className':_0x4439b5,'onClick':_0x1d77a9},_0x306310['createElement'](_0x5aad57(0x26a),{'className':we[_0x5aad57(0x361)]},_0x58f066),_0x306310[_0x5aad57(0x3c8)]('div',{'className':we[_0x5aad57(0x1dc)]},_0x4b5a13));}return _0x52bd35?_0x390979():_0x306310[_0x1d645a(0x3c8)](_0x2cf8ae,{'title':_0x27ec0e['t'](_0x1d645a(0x202))},_0x390979());}var uo=Object[_0x44ade9(0x421)],fo=Object[_0x44ade9(0x418)],mo=(_0x5bbea4,_0x20f388,_0x262de2,_0x42adf0)=>{for(var _0x4b8ac0=_0x42adf0>0x1?void 0x0:_0x42adf0?fo(_0x20f388,_0x262de2):_0x20f388,_0x59f29b=_0x5bbea4['length']-0x1,_0x4d9a04;_0x59f29b>=0x0;_0x59f29b--)(_0x4d9a04=_0x5bbea4[_0x59f29b])&&(_0x4b8ac0=(_0x42adf0?_0x4d9a04(_0x20f388,_0x262de2,_0x4b8ac0):_0x4d9a04(_0x4b8ac0))||_0x4b8ac0);return _0x42adf0&&_0x4b8ac0&&uo(_0x20f388,_0x262de2,_0x4b8ac0),_0x4b8ac0;},Be=(_0x23a85a,_0x18b420)=>(_0x184e4b,_0x1ad6c9)=>_0x18b420(_0x184e4b,_0x1ad6c9,_0x23a85a);let Ue=class extends _0x17cf1f{constructor(_0x143db0,_0x4df715,_0x4b8004,_0x1abe48){const _0x9b1ad6=_0x44ade9;super(),l(this,_0x9b1ad6(0x1b9),new _0x531abd(w[_0x9b1ad6(0x23c)])),(this[_0x9b1ad6(0x470)]=_0x143db0,this[_0x9b1ad6(0x481)]=_0x4df715,this[_0x9b1ad6(0x181)]=_0x4b8004,this[_0x9b1ad6(0x44e)]=_0x1abe48,this[_0x9b1ad6(0x16b)](),this[_0x9b1ad6(0x1e5)]());}[_0x44ade9(0x1e5)](){const _0x2f62e4=_0x44ade9;this['disposeWithMe'](this['_univerInstanceService'][_0x2f62e4(0x24e)]['pipe'](_0x5dc56b(()=>{const _0x4cb293=_0x2f62e4,_0x18981b=this['_univerInstanceService'][_0x4cb293(0x140)]();return _0x18981b?this[_0x4cb293(0x44e)][_0x4cb293(0x3ad)](_0x18981b[_0x4cb293(0x49d)]()):_0x6cc13d(null);}),_0x5dc56b(_0x51d2ab=>_0x51d2ab?_0x51d2ab[_0x2f62e4(0x210)]:_0x6cc13d(w[_0x2f62e4(0x23c)])))[_0x2f62e4(0x3dc)](_0x2e912e=>{const _0x22a70e=_0x2f62e4;this[_0x22a70e(0x1b9)][_0x22a70e(0x34e)](_0x2e912e);}));}['_initStatusComponent'](){const _0x196d86=_0x44ade9;this[_0x196d86(0x26d)](this[_0x196d86(0x481)][_0x196d86(0x1f3)](_0x41ee47[_0x196d86(0x3df)],()=>_0x25174f(go({'status$':this[_0x196d86(0x1b9)][_0x196d86(0x458)]()}),this['_injector'])));}};Ue=mo([Be(0x0,_0x4c19c5),Be(0x1,_0x3cdef0),Be(0x2,_0x180372(_0x15d871)),Be(0x3,_0x180372(Ae))],Ue);function go(_0x52d7b3){const {status$:_0x39a784}=_0x52d7b3;return function(){return _0x306310['createElement'](_o,{'status$':_0x39a784});};}const Ws=_0x8e889b(_0x44ade9(0x2ec));var So=Object[_0x44ade9(0x421)],po=Object[_0x44ade9(0x418)],vo=(_0x4be94d,_0x13f114,_0x49357f,_0x1654c7)=>{const _0x4ea86f=_0x44ade9;for(var _0x3108a0=_0x1654c7>0x1?void 0x0:_0x1654c7?po(_0x13f114,_0x49357f):_0x13f114,_0x1b9b74=_0x4be94d[_0x4ea86f(0x192)]-0x1,_0x57164c;_0x1b9b74>=0x0;_0x1b9b74--)(_0x57164c=_0x4be94d[_0x1b9b74])&&(_0x3108a0=(_0x1654c7?_0x57164c(_0x13f114,_0x49357f,_0x3108a0):_0x57164c(_0x3108a0))||_0x3108a0);return _0x1654c7&&_0x3108a0&&So(_0x13f114,_0x49357f,_0x3108a0),_0x3108a0;},me=(_0x405d74,_0x1c14ba)=>(_0x172f45,_0x432a7d)=>_0x1c14ba(_0x172f45,_0x432a7d,_0x405d74);let Ge=class extends _0x1d444{constructor(_0x1bc4d9,_0x2064bc,_0x3bfa23,_0x210374,_0x5e62e3,_0x4c4241){const _0x5c3afd=_0x44ade9;super(),this[_0x5c3afd(0x49c)]=_0x1bc4d9,this[_0x5c3afd(0x1a3)]=_0x2064bc,this[_0x5c3afd(0x1a6)]=_0x3bfa23,this[_0x5c3afd(0x15b)]=_0x210374,this['_snapshotService']=_0x5e62e3,_0x4c4241?_0x4c4241==null||_0x4c4241['whenReady']()[_0x5c3afd(0x301)](()=>this[_0x5c3afd(0x2af)]()):(this[_0x5c3afd(0x1a3)]['debug'](_0x5c3afd(0x3c2),_0x5c3afd(0x4a2)),this['_init']());}async[_0x44ade9(0x2af)](){const _0x38876c=_0x44ade9,_0x560076=this[_0x38876c(0x49c)][_0x38876c(0x349)](_0x38876c(0x1ff)),_0x5ecdb6=this[_0x38876c(0x49c)][_0x38876c(0x349)]('type');if(!_0x560076||!_0x5ecdb6){this[_0x38876c(0x1a3)]['debug'](_0x38876c(0x3c2),_0x38876c(0x190));return;}switch(Number(_0x5ecdb6)){case H[_0x38876c(0x233)]:{const _0x2b6fc9=await this[_0x38876c(0x13c)](_0x560076);this[_0x38876c(0x1cd)](_0x2b6fc9);break;}case H[_0x38876c(0x3b0)]:{await this['_loadDoc'](_0x560076);break;}default:{this['_logService']['error'](_0x38876c(0x3c2),_0x38876c(0x2c7));break;}}}async[_0x44ade9(0x1cd)](_0x38a552){const _0x4f0b1b=_0x44ade9;await this['_updateSubUnitFromURLParams'](_0x38a552),_0x38a552[_0x4f0b1b(0x339)][_0x4f0b1b(0x2e0)](_0x275af9(this[_0x4f0b1b(0x424)]))[_0x4f0b1b(0x3dc)](_0x2f4aa5=>{const _0x3e6b85=_0x4f0b1b;_0x2f4aa5&&this[_0x3e6b85(0x1ed)](_0x2f4aa5);}),this[_0x4f0b1b(0x49c)][_0x4f0b1b(0x357)]['pipe'](_0x275af9(this[_0x4f0b1b(0x424)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x38a552));}['_updateURLWithCurrentState'](_0x8ee9c3,_0x2258c2=!0x1){const _0x2b81ee=_0x44ade9,_0x4cac76=this['_urlService'][_0x2b81ee(0x349)](_0x2b81ee(0x2d8));_0x8ee9c3[_0x2b81ee(0x273)]()!==_0x4cac76&&this[_0x2b81ee(0x49c)]['setParam'](_0x2b81ee(0x2d8),_0x8ee9c3[_0x2b81ee(0x273)](),_0x2258c2);}async[_0x44ade9(0x2e1)](_0x235d44){const _0x2c6d52=_0x44ade9;var _0x2d0be7;const _0x22b3d2=this[_0x2c6d52(0x49c)][_0x2c6d52(0x349)](_0x2c6d52(0x2d8));if(!_0x22b3d2||!_0x235d44[_0x2c6d52(0x189)](_0x22b3d2)){const _0xb6c402=_0x235d44[_0x2c6d52(0x3bf)]()[0x0],_0x4adbde=_0x235d44[_0x2c6d52(0x189)](_0xb6c402);if(!_0x4adbde)return;this[_0x2c6d52(0x1ed)](_0x4adbde,!0x0),await this[_0x2c6d52(0x1a6)][_0x2c6d52(0x323)](_0x226f68['id'],{'unitId':_0x235d44[_0x2c6d52(0x49d)](),'subUnitId':_0xb6c402});return;}((_0x2d0be7=_0x235d44[_0x2c6d52(0x16e)]())==null?void 0x0:_0x2d0be7['getSheetId']())!==_0x22b3d2&&await this[_0x2c6d52(0x1a6)][_0x2c6d52(0x323)](_0x226f68['id'],{'unitId':_0x235d44[_0x2c6d52(0x49d)](),'subUnitId':_0x22b3d2});}async[_0x44ade9(0x13c)](_0x391229){const _0xa0318f=_0x44ade9;let _0x234fb4=0x0;const _0x429b38=await this[_0xa0318f(0x15b)][_0xa0318f(0x45f)](_0x391229);return _0x429b38&&(_0x429b38[_0xa0318f(0x1a5)]||_0x429b38['mutations']['length']!==0x0)&&(_0x234fb4=_0x429b38[_0xa0318f(0x463)]),_0x234fb4===0x0&&this[_0xa0318f(0x1a3)]['debug'](_0xa0318f(0x3c2),_0xa0318f(0x249)),this['_snapshotService'][_0xa0318f(0x1f5)](_0x391229,_0x234fb4);}async[_0x44ade9(0x4a4)](_0x14d006){const _0x527408=_0x44ade9;let _0x24d6bb=0x0;const _0x6f463b=await this['_localCacheService']['loadOfflineData'](_0x14d006);return _0x6f463b&&(_0x6f463b['awaitingChangeset']||_0x6f463b[_0x527408(0x230)][_0x527408(0x192)]!==0x0)&&(_0x24d6bb=_0x6f463b[_0x527408(0x463)]),_0x24d6bb===0x0&&this[_0x527408(0x1a3)][_0x527408(0x33b)]('[DataLoaderController]',_0x527408(0x249)),this[_0x527408(0x3fe)][_0x527408(0x2cf)](_0x14d006,_0x24d6bb);}};Ge=vo([_0x2cff12(_0x1e5de5['Starting'],Ge),me(0x0,Ws),me(0x1,_0x4611a9),me(0x2,_0x2bc808),me(0x3,_0x180372(D)),me(0x4,_0x180372(_0x27b45c)),me(0x5,_0x4edbf0(_0x18edfc))],Ge);var Io=Object[_0x44ade9(0x421)],Eo=Object[_0x44ade9(0x418)],Co=(_0x9f6217,_0x377d19,_0x3719a5,_0x3c2eaf)=>{const _0x1296ea=_0x44ade9;for(var _0x3171ca=_0x3c2eaf>0x1?void 0x0:_0x3c2eaf?Eo(_0x377d19,_0x3719a5):_0x377d19,_0x1fbc63=_0x9f6217[_0x1296ea(0x192)]-0x1,_0x1336d3;_0x1fbc63>=0x0;_0x1fbc63--)(_0x1336d3=_0x9f6217[_0x1fbc63])&&(_0x3171ca=(_0x3c2eaf?_0x1336d3(_0x377d19,_0x3719a5,_0x3171ca):_0x1336d3(_0x3171ca))||_0x3171ca);return _0x3c2eaf&&_0x3171ca&&Io(_0x377d19,_0x3719a5,_0x3171ca),_0x3171ca;},ms=(_0x4958d2,_0x8bd6eb)=>(_0x457f95,_0x3d687f)=>_0x8bd6eb(_0x457f95,_0x3d687f,_0x4958d2);const bo=_0x44ade9(0x3f1),To=_0x44ade9(0x371);let Ye=class extends _0x17cf1f{constructor(_0x4f2fe1,_0x4678f0){const _0x558378=_0x44ade9;super(),this['_univerInstanceService']=_0x4f2fe1,this[_0x558378(0x251)]=_0x4678f0,this[_0x558378(0x2af)]();}[_0x44ade9(0x2af)](){const _0x2245b9=_0x44ade9;this[_0x2245b9(0x26d)](_0x3e741a(this['_univerInstanceService']['focused$'][_0x2245b9(0x3dc)](()=>{const _0x5db228=_0x2245b9;var _0x234197;const _0x30a06b=this[_0x5db228(0x470)][_0x5db228(0x140)]();let _0x6f9449=(_0x234197=this[_0x5db228(0x251)][_0x5db228(0x31b)](bo))!=null?_0x234197:To;_0x30a06b instanceof _0x24fa7c&&(_0x6f9449=_0x30a06b[_0x5db228(0x4a9)]),document[_0x5db228(0x3b2)]=_0x6f9449;})));}};Ye=Co([_0x2cff12(_0x1e5de5[_0x44ade9(0x38e)],Ye),ms(0x0,_0x4c19c5),ms(0x1,_0x1fe23f)],Ye);var Ro=Object[_0x44ade9(0x421)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x15ab63,_0x3fe690,_0x474ec2,_0xbfde05)=>{const _0x5ef1cf=_0x44ade9;for(var _0x987bf5=_0xbfde05>0x1?void 0x0:_0xbfde05?Oo(_0x3fe690,_0x474ec2):_0x3fe690,_0x3e34df=_0x15ab63[_0x5ef1cf(0x192)]-0x1,_0x339279;_0x3e34df>=0x0;_0x3e34df--)(_0x339279=_0x15ab63[_0x3e34df])&&(_0x987bf5=(_0xbfde05?_0x339279(_0x3fe690,_0x474ec2,_0x987bf5):_0x339279(_0x987bf5))||_0x987bf5);return _0xbfde05&&_0x987bf5&&Ro(_0x3fe690,_0x474ec2,_0x987bf5),_0x987bf5;},vt=(_0x5b0f89,_0x47a11f)=>(_0x422268,_0x4ce9b5)=>_0x47a11f(_0x422268,_0x4ce9b5,_0x5b0f89);let st=class{constructor(_0x3bdc7d,_0xb79d20,_0x30c6c5){const _0x4014eb=_0x44ade9;this[_0x4014eb(0x251)]=_0x3bdc7d,this[_0x4014eb(0x3da)]=_0xb79d20,this['localeService']=_0x30c6c5,this[_0x4014eb(0x38c)]();}[_0x44ade9(0x38c)](){const _0x934619=_0x44ade9;this[_0x934619(0x3da)][_0x934619(0x1d1)]({'priority':0x1,'interceptor':(_0x1f7938,_0x3597e9)=>_0x3597e9(_0x1f7938)['pipe'](_0x557746(async _0x4467c8=>{const _0x38d6f7=_0x934619,_0x5645fd=_0x4467c8;if(_0x5645fd[_0x38d6f7(0x14f)]===0x191&&window['confirm'](this[_0x38d6f7(0x337)]['t'](_0x38d6f7(0x29f)))){const _0x513f56=window[_0x38d6f7(0x149)](window[_0x38d6f7(0x3e8)][_0x38d6f7(0x247)]);window['location'][_0x38d6f7(0x247)]=this[_0x38d6f7(0x24b)]()+_0x38d6f7(0x3cc)+_0x513f56;}return _0x5645fd;}))});}[_0x44ade9(0x24b)](){const _0x435ae0=_0x44ade9;var _0x497cdf,_0x4a814e;const _0x3bb64a=this['_configService'][_0x435ae0(0x31b)](Pn),_0x23f5d4=this[_0x435ae0(0x251)][_0x435ae0(0x31b)](L);return(_0x4a814e=(_0x497cdf=_0x23f5d4==null?void 0x0:_0x23f5d4[_0x435ae0(0x259)])!=null?_0x497cdf:_0x3bb64a)!=null?_0x4a814e:yn;}};st=Do([vt(0x0,_0x1fe23f),vt(0x1,_0x180372(_0x53dfff)),vt(0x2,_0x180372(_0x787113))],st);var wo=Object['defineProperty'],Po=Object[_0x44ade9(0x418)],yo=(_0x3dad6d,_0x5a4b63,_0x49eca5,_0x65ee0a)=>{const _0x5dc22a=_0x44ade9;for(var _0x1ee57f=_0x65ee0a>0x1?void 0x0:_0x65ee0a?Po(_0x5a4b63,_0x49eca5):_0x5a4b63,_0x1f8260=_0x3dad6d[_0x5dc22a(0x192)]-0x1,_0x3551d7;_0x1f8260>=0x0;_0x1f8260--)(_0x3551d7=_0x3dad6d[_0x1f8260])&&(_0x1ee57f=(_0x65ee0a?_0x3551d7(_0x5a4b63,_0x49eca5,_0x1ee57f):_0x3551d7(_0x1ee57f))||_0x1ee57f);return _0x65ee0a&&_0x1ee57f&&wo(_0x5a4b63,_0x49eca5,_0x1ee57f),_0x1ee57f;},gs=(_0x556cbd,_0x4b468a)=>(_0x5830d9,_0x55c460)=>_0x4b468a(_0x5830d9,_0x55c460,_0x556cbd);const No=_0x44ade9(0x1fa),Uo=_0x44ade9(0x43f);let Nt=class extends _0x17cf1f{constructor(_0x48f808,_0x41df92){const _0x20658f=_0x44ade9;super(),this['_HTTPService']=_0x48f808,this[_0x20658f(0x251)]=_0x41df92,this[_0x20658f(0x2a5)]();}['_initMergeInterceptor'](){const _0x89634=_0x44ade9,_0x41894c=this;this['disposeWithMe'](this[_0x89634(0x283)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x4bc933({'isMatch'(_0x56837f){const _0x25335e=_0x89634;var _0x6e51e1;if(_0x56837f[_0x25335e(0x228)]===_0x25335e(0x44b)&&((_0x6e51e1=_0x56837f[_0x25335e(0x411)])!=null&&_0x6e51e1['body'])){const {objectID:_0x19d667,objectType:_0xffe3f8}=_0x56837f[_0x25335e(0x411)][_0x25335e(0x3fc)]||{};if(!_0x19d667||_0xffe3f8===void 0x0)return!0x1;const _0x293a92=_0x41894c['_getAPIPrefixPath']()+'/'+_0xffe3f8+_0x25335e(0x331)+_0x19d667+'/allowed';if(_0x56837f[_0x25335e(0x138)]===_0x293a92)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x46328e){const _0x3bb346=_0x89634;var _0x12dbda;return(_0x12dbda=_0x46328e[_0x3bb346(0x411)])==null?void 0x0:_0x12dbda[_0x3bb346(0x3fc)];},'mergeParamsToRequest'(_0x2f63d6,_0x40daa9){const _0x10844e=_0x89634,_0x2e7ee1=_0x41894c['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x151a85=_0x2f63d6['reduce']((_0x5a683d,_0x4f8979)=>{const _0x4fb71d=_0x3787,{unitID:_0x2c5b1e,objectID:_0x55d54c,objectType:_0x344033,actions:_0x4ddf81}=_0x4f8979;return _0x5a683d[_0x2c5b1e]||(_0x5a683d[_0x2c5b1e]={}),_0x5a683d[_0x2c5b1e][_0x55d54c]||(_0x5a683d[_0x2c5b1e][_0x55d54c]={'objectID':_0x55d54c,'objectType':_0x344033,'actions':[]}),_0x5a683d[_0x2c5b1e][_0x55d54c][_0x4fb71d(0x39a)][_0x4fb71d(0x23e)](..._0x4ddf81),_0x5a683d;},{}),_0x2b5109=[];for(const _0x276bfa in _0x151a85)for(const _0x17a440 in _0x151a85[_0x276bfa]){const {actions:_0x1afdf3,objectType:_0x2d6bca}=_0x151a85[_0x276bfa][_0x17a440],_0x41194a=[...new Set(_0x1afdf3)];_0x2b5109[_0x10844e(0x23e)]({'unitID':_0x276bfa,'objectID':_0x17a440,'objectType':_0x2d6bca,'actions':_0x41194a});}return new _0x564c02(_0x10844e(0x44b),_0x2e7ee1,{'headers':_0x40daa9['headers'],'withCredentials':_0x40daa9[_0x10844e(0x244)],'responseType':_0x40daa9['responseType'],'body':{'requests':_0x2b5109}});}},{'distributeResult'(_0x40a4ff,_0x43a3fd){const _0x351f37=_0x89634,{objectActions:_0x53a203}=_0x40a4ff;return _0x43a3fd[_0x351f37(0x2aa)](_0x53b17b=>{const _0x246532=_0x351f37,{unitID:_0x245d24,objectID:_0x286eea,actions:_0x597c3d}=_0x53b17b,_0x478e2d=_0x53a203['find'](_0x3ecab7=>_0x3ecab7['unitID']===_0x245d24&&_0x3ecab7[_0x246532(0x170)]===_0x286eea),_0x56d4c9=_0x597c3d[_0x246532(0x2aa)](_0x4684ed=>_0x478e2d==null?void 0x0:_0x478e2d[_0x246532(0x39a)][_0x246532(0x49f)](_0x20358a=>_0x20358a[_0x246532(0x460)]===_0x4684ed))[_0x246532(0x391)](_0x4547f4=>!!_0x4547f4);return{'config':_0x53b17b,'result':{'actions':_0x56d4c9,'error':_0x40a4ff['error']}};});}})}));}[_0x44ade9(0x423)](){const _0x5262a9=_0x44ade9;var _0x13c158,_0x35ce32;const _0x1bf053=this[_0x5262a9(0x251)]['getConfig'](No),_0x985979=this[_0x5262a9(0x251)][_0x5262a9(0x31b)](L);return(_0x35ce32=(_0x13c158=_0x985979==null?void 0x0:_0x985979[_0x5262a9(0x47e)])!=null?_0x13c158:_0x1bf053)!=null?_0x35ce32:Uo;}async[_0x44ade9(0x2b3)](_0x581afa){const _0x575f7f=_0x44ade9,_0x2b5693=this[_0x575f7f(0x423)]()+'/'+_0x581afa[_0x575f7f(0x2f0)]+_0x575f7f(0x201);return(await this['_HTTPService'][_0x575f7f(0x277)](_0x2b5693,{'body':_0x581afa}))[_0x575f7f(0x3fc)][_0x575f7f(0x170)]||'';}async[_0x44ade9(0x238)](_0x4e6edb){const _0x2d5b55=_0x44ade9,_0x29416a=this[_0x2d5b55(0x423)]()+'/-/object/list';return(await this[_0x2d5b55(0x283)][_0x2d5b55(0x277)](_0x29416a,{'body':_0x4e6edb}))[_0x2d5b55(0x3fc)][_0x2d5b55(0x2f9)];}async[_0x44ade9(0x2a7)](_0x472be4){const _0x367112=_0x44ade9,_0x32aeb8=this[_0x367112(0x423)]()+'/'+_0x472be4[_0x367112(0x2f0)]+'/object/'+_0x472be4[_0x367112(0x170)];await this['_HTTPService'][_0x367112(0x1d4)](_0x32aeb8,{'body':_0x472be4});}async[_0x44ade9(0x495)](_0x452e20){const _0x1fcf69=_0x44ade9,_0x197e36=this[_0x1fcf69(0x423)]()+'/'+_0x452e20[_0x1fcf69(0x2f0)]+_0x1fcf69(0x331)+_0x452e20[_0x1fcf69(0x170)]+'/allowed';return(await this[_0x1fcf69(0x283)][_0x1fcf69(0x277)](_0x197e36,{'body':_0x452e20}))[_0x1fcf69(0x3fc)][_0x1fcf69(0x39a)];}async[_0x44ade9(0x318)](_0x421ce9){const _0x298a0b=_0x44ade9,_0xc8280=this[_0x298a0b(0x423)]()+_0x298a0b(0x2fc);return(await this[_0x298a0b(0x283)][_0x298a0b(0x277)](_0xc8280,{'body':{'requests':_0x421ce9}}))[_0x298a0b(0x3fc)]['objectActions'];}async[_0x44ade9(0x446)](_0x967973){const _0x2a3b66=_0x44ade9,_0x3474f3=this[_0x2a3b66(0x423)]()+'/'+_0x967973[_0x2a3b66(0x2f0)]+_0x2a3b66(0x39d),_0x484cfa=await this[_0x2a3b66(0x283)][_0x2a3b66(0x277)](_0x3474f3,{'body':_0x967973});return{'roles':_0x484cfa[_0x2a3b66(0x3fc)]['roles'],'actions':_0x484cfa[_0x2a3b66(0x3fc)]['actions']};}async[_0x44ade9(0x18c)](_0x1eb857){const _0x44b8d3=_0x44ade9,_0x1a6608=this[_0x44b8d3(0x423)]()+_0x44b8d3(0x3f0);await this['_HTTPService']['delete'](_0x1a6608,{'params':{'collaboratorID':_0x1eb857['collaboratorID'],'objectID':_0x1eb857[_0x44b8d3(0x170)],'unitID':_0x1eb857[_0x44b8d3(0x42f)]}});}async[_0x44ade9(0x255)](_0x54e020){const _0x36cd67=_0x44ade9,_0x25e327=this['_getAPIPrefixPath']()+_0x36cd67(0x3f0);await this[_0x36cd67(0x283)]['patch'](_0x25e327,{'body':_0x54e020});}async['createCollaborator'](_0x53c65f){const _0x317eea=_0x44ade9,_0x283764=this[_0x317eea(0x423)]()+_0x317eea(0x3f0);await this[_0x317eea(0x283)][_0x317eea(0x277)](_0x283764,{'body':_0x53c65f});}async['listCollaborators'](_0x411156){const _0x53696d=_0x44ade9,_0x3d9eeb=this[_0x53696d(0x423)]()+_0x53696d(0x3f0);return(await this[_0x53696d(0x283)]['get'](_0x3d9eeb,{'params':{'objectID':_0x411156[_0x53696d(0x170)],'unitID':_0x411156[_0x53696d(0x42f)]}}))[_0x53696d(0x3fc)][_0x53696d(0x44c)];}async[_0x44ade9(0x431)](_0x1eb973){const _0x35021a=_0x44ade9,_0x58c316=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35021a(0x283)][_0x35021a(0x1d4)](_0x58c316,{'body':_0x1eb973});}};Nt=yo([gs(0x0,_0x180372(_0x53dfff)),gs(0x1,_0x180372(_0x1fe23f))],Nt);var Mo=Object[_0x44ade9(0x421)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x21c62e,_0x3a0f52,_0x524a7c,_0x2b4a1d)=>{const _0xb3d7f5=_0x44ade9;for(var _0x56ecf7=_0x2b4a1d>0x1?void 0x0:_0x2b4a1d?Ao(_0x3a0f52,_0x524a7c):_0x3a0f52,_0x31495a=_0x21c62e[_0xb3d7f5(0x192)]-0x1,_0x5513c4;_0x31495a>=0x0;_0x31495a--)(_0x5513c4=_0x21c62e[_0x31495a])&&(_0x56ecf7=(_0x2b4a1d?_0x5513c4(_0x3a0f52,_0x524a7c,_0x56ecf7):_0x5513c4(_0x56ecf7))||_0x56ecf7);return _0x2b4a1d&&_0x56ecf7&&Mo(_0x3a0f52,_0x524a7c,_0x56ecf7),_0x56ecf7;},$o=(_0x4ccc86,_0x1371af)=>(_0xae6f60,_0xc3f4c)=>_0x1371af(_0xae6f60,_0xc3f4c,_0x4ccc86);let it=class{constructor(_0x404b0c){const _0x48b98c=_0x44ade9;this[_0x48b98c(0x3da)]=_0x404b0c,this[_0x48b98c(0x44d)]();}[_0x44ade9(0x44d)](){const _0x17be4a=_0x44ade9;this[_0x17be4a(0x3da)][_0x17be4a(0x1d1)]({'interceptor':(_0x551e2d,_0x3d0f29)=>{const _0x2f8c5b=_0x17be4a,_0x587cf2=_0x551e2d[_0x2f8c5b(0x217)],_0x402d3f=_0x512ff6();return _0x402d3f&&_0x587cf2[_0x2f8c5b(0x48c)](_0x2f8c5b(0x41b),_0x402d3f),_0x3d0f29(_0x551e2d);}});}};it=Lo([$o(0x0,_0x180372(_0x53dfff))],it);var jo=Object[_0x44ade9(0x421)],xo=Object[_0x44ade9(0x418)],Ho=(_0xfcbe0f,_0x21b4a4,_0x88b26b,_0x27e719)=>{const _0x56d46c=_0x44ade9;for(var _0x26ba14=_0x27e719>0x1?void 0x0:_0x27e719?xo(_0x21b4a4,_0x88b26b):_0x21b4a4,_0x2e3028=_0xfcbe0f[_0x56d46c(0x192)]-0x1,_0x3c1d8e;_0x2e3028>=0x0;_0x2e3028--)(_0x3c1d8e=_0xfcbe0f[_0x2e3028])&&(_0x26ba14=(_0x27e719?_0x3c1d8e(_0x21b4a4,_0x88b26b,_0x26ba14):_0x3c1d8e(_0x26ba14))||_0x26ba14);return _0x27e719&&_0x26ba14&&jo(_0x21b4a4,_0x88b26b,_0x26ba14),_0x26ba14;},It=(_0x3e8d38,_0x8255d1)=>(_0x3d4e12,_0x31097c)=>_0x8255d1(_0x3d4e12,_0x31097c,_0x3e8d38);const ko=['image/png','image/jpeg',_0x44ade9(0x23b),'image/gif',_0x44ade9(0x1ae)],Bo=0x5*0x400*0x400,Vo=_0x44ade9(0x3b6),Fo=_0x44ade9(0x180),Wo=_0x44ade9(0x2ad),Go=_0x44ade9(0x2c2);let Ut=class{constructor(_0x355f7f,_0x3799c7,_0x5e0458){const _0x3100bf=_0x44ade9;l(this,'_waitCount',0x0),l(this,_0x3100bf(0x35d),new _0x3827c1()),l(this,_0x3100bf(0x394),this[_0x3100bf(0x35d)]),l(this,_0x3100bf(0x154),new Map()),(this[_0x3100bf(0x3da)]=_0x355f7f,this[_0x3100bf(0x251)]=_0x3799c7,this['_univerInstanceService']=_0x5e0458);}['setWaitCount'](_0x15a8a0){const _0x3e605a=_0x44ade9;this[_0x3e605a(0x3ef)]=_0x15a8a0,this['_change$']['next'](_0x15a8a0);}[_0x44ade9(0x2b2)](_0x405243,_0x3fbf7d){const _0x4605e5=_0x44ade9;if(_0x3fbf7d===_0x21fbb6[_0x4605e5(0x2de)]){const _0xe75171=new Image();return _0xe75171[_0x4605e5(0x151)]=_0x405243,_0xe75171;}return this['_imageSourceCache'][_0x4605e5(0x28e)](_0x405243);}[_0x44ade9(0x2d4)](_0x3e4702,_0xf7d005,_0x403535){const _0x40772d=_0x44ade9;_0xf7d005===_0x21fbb6['BASE64']||_0x403535==null||this[_0x40772d(0x154)][_0x40772d(0x48c)](_0x3e4702,_0x403535);}async[_0x44ade9(0x334)](_0x1664bd){const _0x1ac6a0=_0x44ade9;try{const _0x38a158=this['_replaceFileID'](this[_0x1ac6a0(0x27f)](),''+_0x1664bd),_0xce2475=(await this[_0x1ac6a0(0x3da)][_0x1ac6a0(0x28e)](_0x38a158))[_0x1ac6a0(0x3fc)];if(_0xce2475['error']&&_0xce2475['error'][_0x1ac6a0(0x252)]===As['OK']){const _0x3f14c6=new URL(_0xce2475[_0x1ac6a0(0x138)],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x1ac6a0(0x27b)](_0x3f14c6);}return Promise[_0x1ac6a0(0x253)](_0xce2475['error']);}catch(_0x46f2a5){return Promise[_0x1ac6a0(0x253)](_0x46f2a5);}}async[_0x44ade9(0x44a)](_0x1b22d0){const _0x108f42=_0x44ade9;let _0x123af4='';if(!ko[_0x108f42(0x22b)](_0x1b22d0['type']))return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395[_0x108f42(0x4a5)]));if(_0x1b22d0[_0x108f42(0x311)]>Bo)return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395['ERROR_EXCEED_SIZE']));try{const _0x575680=new FormData();_0x575680[_0x108f42(0x1fe)](_0x108f42(0x3e0),_0x1b22d0);const _0x5bba04=this[_0x108f42(0x470)][_0x108f42(0x140)](),_0x1f6e98=_0x5bba04==null?void 0x0:_0x5bba04[_0x108f42(0x49d)]();if(!_0x1f6e98)throw new Error(_0x108f42(0x13d));const _0x2e2ac2=this[_0x108f42(0x16d)]()+_0x108f42(0x173)+_0x1b22d0[_0x108f42(0x311)][_0x108f42(0x1cb)]()+_0x108f42(0x321)+Ls[_0x108f42(0x42a)]+_0x108f42(0x3a7)+encodeURIComponent(_0x1f6e98),_0x1be888=await(await fetch(_0x2e2ac2,{'method':'POST','body':_0x575680}))[_0x108f42(0x330)]();if(typeof _0x1be888[_0x108f42(0x430)]!=_0x108f42(0x296))return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395['ERROR_IMAGE']));_0x123af4=_0x1be888[_0x108f42(0x430)];}catch{return this[_0x108f42(0x3d0)](),Promise[_0x108f42(0x253)](new Error(_0x44d395[_0x108f42(0x243)]));}return new Promise((_0x5d697a,_0x405dac)=>{const _0x51f0c6=_0x108f42,_0x502d71=new FileReader();_0x502d71[_0x51f0c6(0x3de)](_0x1b22d0),_0x502d71[_0x51f0c6(0x22d)]=_0x5bfc62=>{const _0x377f2f=_0x51f0c6;var _0x33480b;const _0x215d2c=(_0x33480b=_0x5bfc62['target'])==null?void 0x0:_0x33480b[_0x377f2f(0x234)];if(_0x215d2c==null){this[_0x377f2f(0x3d0)](),_0x405dac(new Error(_0x44d395[_0x377f2f(0x243)]));return;}const _0x3783d=_0x110341[_0x377f2f(0x31d)](0x6);_0x5d697a({'imageId':_0x3783d,'imageSourceType':_0x21fbb6[_0x377f2f(0x300)],'source':_0x123af4,'base64Cache':_0x215d2c,'status':_0x44d395['SUCCUSS']}),this[_0x377f2f(0x3d0)]();};});}['_getUploadFileURL'](){const _0x5e6a9b=_0x44ade9;var _0x306764,_0x434846;const _0x4e783d=this[_0x5e6a9b(0x251)][_0x5e6a9b(0x31b)](Vo),_0x503eac=this[_0x5e6a9b(0x251)][_0x5e6a9b(0x31b)](L);return(_0x434846=(_0x306764=_0x503eac==null?void 0x0:_0x503eac[_0x5e6a9b(0x340)])!=null?_0x306764:_0x4e783d)!=null?_0x434846:Fo;}[_0x44ade9(0x27f)](){const _0x39a938=_0x44ade9;var _0x18ac71,_0x165569;const _0x4b1e8f=this[_0x39a938(0x251)]['getConfig'](Wo),_0x37c5eb=this[_0x39a938(0x251)]['getConfig'](L);return(_0x165569=(_0x18ac71=_0x37c5eb==null?void 0x0:_0x37c5eb['signUrlServerUrl'])!=null?_0x18ac71:_0x4b1e8f)!=null?_0x165569:Go;}[_0x44ade9(0x1a0)](){const _0x2136e7=_0x44ade9;var _0x3a8ac4;const _0x4f2d33=this[_0x2136e7(0x251)][_0x2136e7(0x31b)](L);return(_0x3a8ac4=_0x4f2d33==null?void 0x0:_0x4f2d33[_0x2136e7(0x3be)])!=null?_0x3a8ac4:location['origin'];}[_0x44ade9(0x317)](_0xd7b853,_0x168d7e){const _0x20b7f2=_0x44ade9;return _0xd7b853[_0x20b7f2(0x3af)]('{fileID}',_0x168d7e);}[_0x44ade9(0x3d0)](){const _0x365ea9=_0x44ade9;this['_waitCount']-=0x1,this[_0x365ea9(0x35d)][_0x365ea9(0x34e)](this[_0x365ea9(0x3ef)]);}};Ut=Ho([It(0x0,_0x180372(_0x53dfff)),It(0x1,_0x1fe23f),It(0x2,_0x180372(_0x4c19c5))],Ut);var Yo=Object[_0x44ade9(0x421)],Ko=Object[_0x44ade9(0x418)],Xo=(_0x414003,_0x475dc2,_0x24b2fb,_0x587dad)=>{const _0x1d496a=_0x44ade9;for(var _0x318ffb=_0x587dad>0x1?void 0x0:_0x587dad?Ko(_0x475dc2,_0x24b2fb):_0x475dc2,_0x7fb5fd=_0x414003[_0x1d496a(0x192)]-0x1,_0x548615;_0x7fb5fd>=0x0;_0x7fb5fd--)(_0x548615=_0x414003[_0x7fb5fd])&&(_0x318ffb=(_0x587dad?_0x548615(_0x475dc2,_0x24b2fb,_0x318ffb):_0x548615(_0x318ffb))||_0x318ffb);return _0x587dad&&_0x318ffb&&Yo(_0x475dc2,_0x24b2fb,_0x318ffb),_0x318ffb;},Pe=(_0x5a4e04,_0x5a9a92)=>(_0x219bcb,_0x1cabb3)=>_0x5a9a92(_0x219bcb,_0x1cabb3,_0x5a4e04);let Ke=class extends _0x1d444{constructor(_0x49247c,_0xd1efbd,_0x780b86,_0x2c4a76,_0x50755b){const _0x2ec021=_0x44ade9;super(),this[_0x2ec021(0x181)]=_0x49247c,this[_0x2ec021(0x470)]=_0xd1efbd,this['_permissionService']=_0x780b86,this['_collaborationSessionService']=_0x2c4a76,this[_0x2ec021(0x267)]=_0x50755b,this[_0x2ec021(0x2ee)](),this[_0x2ec021(0x351)]();}[_0x44ade9(0x351)](){const _0x57804c=_0x44ade9,_0x2232f4=async _0x1882cc=>{const _0x5d0938=_0x3787;(await this['_collaborationSessionService'][_0x5d0938(0x256)](_0x1882cc))[_0x5d0938(0x271)][_0x5d0938(0x2e0)](_0x5be455(_0x3f8635=>_0x3f8635[_0x5d0938(0x2ac)]===_0x2db775[_0x5d0938(0x447)]),_0x24c4a1(this['dispose$']))[_0x5d0938(0x3dc)](_0x3a61af=>{const _0x14147f=_0x5d0938,_0x44823f=_0x3a61af,{reason:_0x174028}=_0x44823f[_0x14147f(0x3c3)];this['_injector'][_0x14147f(0x28e)](_0x251714)[_0x14147f(0x15d)]({'type':_0x73f118['Error'],'content':this['_localeService']['t'](_0x14147f(0x328))+'('+_0x174028+')'}),this[_0x14147f(0x44f)][_0x14147f(0x2ce)](new _0x4f24bc(_0x1882cc)['id'],!0x1),this['_collaborationSessionService'][_0x14147f(0x1b0)](_0x1882cc);});};_0x527d28(this['_univerInstanceService'][_0x57804c(0x1a7)](_0xb0e7e8[_0x57804c(0x233)]),this['_univerInstanceService'][_0x57804c(0x1a7)](_0xb0e7e8[_0x57804c(0x3b0)]))[_0x57804c(0x2e0)](_0x49da78(_0x15403c=>_0x15403c[_0x57804c(0x49d)]()),_0x5be455(_0x8c6669=>!_0x52dbe5(_0x8c6669)),_0x24c4a1(this[_0x57804c(0x424)]))[_0x57804c(0x3dc)](_0x34597e=>{_0x2232f4(_0x34597e);});}[_0x44ade9(0x2ee)](){const _0x4cf273=_0x44ade9,_0x1e53b8=async _0x19eb81=>{const _0xa19b1a=_0x3787;(await this[_0xa19b1a(0x1d6)]['requireSession'](_0x19eb81))[_0xa19b1a(0x271)]['pipe'](_0x5be455(_0xf02abb=>_0xf02abb[_0xa19b1a(0x2ac)]===_0x2db775[_0xa19b1a(0x3ea)]),_0x24c4a1(this['dispose$']))[_0xa19b1a(0x3dc)](_0x6ce833=>{const _0x547df3=_0xa19b1a,_0x262246=_0x6ce833,{objectId:_0x2661db}=_0x262246[_0x547df3(0x3c3)],_0x66fa32=this['_injector']['get'](_0x359d53);_0x2661db===_0x19eb81?_0x66fa32['initWorkbookPermissionChange'](_0x19eb81):_0x66fa32[_0x547df3(0x417)](_0x19eb81,_0x2661db);});};_0x527d28(this[_0x4cf273(0x470)]['getTypeOfUnitAdded$'](_0xb0e7e8['UNIVER_SHEET']),this[_0x4cf273(0x470)][_0x4cf273(0x1a7)](_0xb0e7e8[_0x4cf273(0x3b0)]))[_0x4cf273(0x2e0)](_0x49da78(_0x4aa118=>_0x4aa118['getUnitId']()),_0x5be455(_0x577647=>!_0x52dbe5(_0x577647)),_0x24c4a1(this[_0x4cf273(0x424)]))['subscribe'](_0xdcf4d=>{_0x1e53b8(_0xdcf4d);});}};Ke=Xo([_0x2cff12(_0x1e5de5['Starting'],Ke),Pe(0x0,_0x180372(_0x15d871)),Pe(0x1,_0x4c19c5),Pe(0x2,_0x7677d9),Pe(0x3,_0x180372(ce)),Pe(0x4,_0x180372(_0x787113))],Ke);var Jo=Object[_0x44ade9(0x421)],qo=Object[_0x44ade9(0x418)],zo=(_0xb10ec4,_0x17b482,_0x53bbd8,_0x4efe8d)=>{for(var _0x5eda36=_0x4efe8d>0x1?void 0x0:_0x4efe8d?qo(_0x17b482,_0x53bbd8):_0x17b482,_0x1ab96c=_0xb10ec4['length']-0x1,_0x40e99d;_0x1ab96c>=0x0;_0x1ab96c--)(_0x40e99d=_0xb10ec4[_0x1ab96c])&&(_0x5eda36=(_0x4efe8d?_0x40e99d(_0x17b482,_0x53bbd8,_0x5eda36):_0x40e99d(_0x5eda36))||_0x5eda36);return _0x4efe8d&&_0x5eda36&&Jo(_0x17b482,_0x53bbd8,_0x5eda36),_0x5eda36;},Ss=(_0x26241b,_0x358ff9)=>(_0x367206,_0x38efd9)=>_0x358ff9(_0x367206,_0x38efd9,_0x26241b);let Mt=class{constructor(_0x2d6930,_0x5e98e0){const _0x6a04fc=_0x44ade9;this[_0x6a04fc(0x251)]=_0x2d6930,this[_0x6a04fc(0x3da)]=_0x5e98e0;}async[_0x44ade9(0x1bb)](_0x348f5c,_0x1d046f){const _0x4e6c8d=_0x44ade9;var _0xabf6a0;const {unitID:_0xd6d73d,type:_0x4af28f,revision:_0x503016=0x0}=_0x1d046f,_0xfa3f6a=this[_0x4e6c8d(0x3ed)]()+'/'+_0x4af28f+'/unit/'+_0xd6d73d+_0x4e6c8d(0x1e9)+_0x503016,_0xae2609=(await this[_0x4e6c8d(0x3da)][_0x4e6c8d(0x28e)](_0xfa3f6a))['body'],_0x5d5b27=(_0xabf6a0=_0xae2609[_0x4e6c8d(0x2ea)])==null?void 0x0:_0xabf6a0[_0x4e6c8d(0x172)];if(_0x5d5b27){const _0x5b547d=_0x5d5b27==null?void 0x0:_0x5d5b27[_0x4e6c8d(0x19d)],_0x62a608=_0x10489f[_0x4e6c8d(0x352)](_0x41914f(_0x5b547d));_0x5d5b27[_0x4e6c8d(0x19d)]=_0x62a608,Object[_0x4e6c8d(0x405)](_0x5d5b27[_0x4e6c8d(0x1ca)])[_0x4e6c8d(0x362)](([,_0x485ece])=>{const _0x14c469=_0x4e6c8d,_0x4b001a=_0x485ece[_0x14c469(0x19d)],_0xd4de71=_0x10489f['encode'](_0x41914f(_0x4b001a));_0x485ece['originalMeta']=_0xd4de71;});}return _0xae2609;}async[_0x44ade9(0x23f)](_0x1b02b9,_0x48b010){const _0xefd19b=_0x44ade9,{unitID:_0x42df6a,type:_0x3e9697,blockID:_0x1cfe9b}=_0x48b010,_0x1c6152=this['_getAPIPrefix']()+'/'+_0x3e9697+_0xefd19b(0x40f)+_0x42df6a+_0xefd19b(0x229)+_0x1cfe9b;return(await this['_httpService'][_0xefd19b(0x28e)](_0x1c6152))['body'];}async['getDeserializedSheetBlock'](_0x4b5bad,_0x36fc91){const _0x5af86c=_0x44ade9,{unitID:_0x48d880,type:_0x41a307,blockID:_0x34d48e}=_0x36fc91,_0x1308bd=this[_0x5af86c(0x448)]()+_0x5af86c(0x229)+_0x41a307+_0x5af86c(0x40f)+_0x48d880+_0x5af86c(0x229)+_0x34d48e;return(await this['_httpService'][_0x5af86c(0x28e)](_0x1308bd))[_0x5af86c(0x3fc)];}async[_0x44ade9(0x35e)](_0x1322ed,_0x29ba2a){const _0x1abb36=_0x44ade9,{unitID:_0x3ddc2f,type:_0x97f9c5,from:_0x4e7787,to:_0x1c2de2}=_0x29ba2a,_0xfa8d06=this['_getAPIPrefix']()+'/'+_0x97f9c5+_0x1abb36(0x40f)+_0x3ddc2f+_0x1abb36(0x185)+_0x4e7787+'&to='+_0x1c2de2;return(await this[_0x1abb36(0x3da)]['get'](_0xfa8d06))[_0x1abb36(0x3fc)];}[_0x44ade9(0x3ed)](){const _0xc0dcde=_0x44ade9;var _0x3bf5cf;return(_0x3bf5cf=this[_0xc0dcde(0x251)][_0xc0dcde(0x31b)](gn))!=null?_0x3bf5cf:this['_getAPIPrefix']();}[_0x44ade9(0x448)](){const _0x4ca957=_0x44ade9;var _0x3037cb,_0x52d9d1;const _0x2a9935=this[_0x4ca957(0x251)][_0x4ca957(0x31b)](fn),_0x706c2f=this[_0x4ca957(0x251)][_0x4ca957(0x31b)](L);return(_0x52d9d1=(_0x3037cb=_0x706c2f==null?void 0x0:_0x706c2f['snapshotServerUrl'])!=null?_0x3037cb:_0x2a9935)!=null?_0x52d9d1:mn;}async[_0x44ade9(0x407)](_0x53574f,_0x4132be){const _0xff949f=_0x44ade9,_0x279145=_0xff949f(0x452)+_0x4132be[_0xff949f(0x150)]+'/unit/'+_0x4132be[_0xff949f(0x42f)]+_0xff949f(0x473);return(await this[_0xff949f(0x3da)][_0xff949f(0x28e)](_0x279145,{'params':{'resourceId':JSON['stringify'](_0x4132be['resourceIDs'])}}))['body'];}[_0x44ade9(0x384)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x44ade9(0x306)](){const _0x32b225=_0x44ade9;throw new Error(_0x32b225(0x34b));}[_0x44ade9(0x29e)](){const _0x1381d3=_0x44ade9;throw new Error(_0x1381d3(0x34b));}[_0x44ade9(0x152)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Mt=zo([Ss(0x0,_0x1fe23f),Ss(0x1,_0x180372(_0x53dfff))],Mt);var Zo=Object['defineProperty'],Qo=Object[_0x44ade9(0x418)],ea=(_0x5866d4,_0x3a2d9e,_0x2a486c,_0x2295b8)=>{for(var _0x20fc78=_0x2295b8>0x1?void 0x0:_0x2295b8?Qo(_0x3a2d9e,_0x2a486c):_0x3a2d9e,_0x88cd4d=_0x5866d4['length']-0x1,_0x31e3b5;_0x88cd4d>=0x0;_0x88cd4d--)(_0x31e3b5=_0x5866d4[_0x88cd4d])&&(_0x20fc78=(_0x2295b8?_0x31e3b5(_0x3a2d9e,_0x2a486c,_0x20fc78):_0x31e3b5(_0x20fc78))||_0x20fc78);return _0x2295b8&&_0x20fc78&&Zo(_0x3a2d9e,_0x2a486c,_0x20fc78),_0x20fc78;},ye=(_0xfef054,_0xe5e666)=>(_0x2f79d1,_0x51f915)=>_0xe5e666(_0x2f79d1,_0x51f915,_0xfef054);let At=class extends _0x5c3dd8{constructor(_0x2c69d9,_0x3a9b78,_0x37259b,_0x23bcd9,_0x4727c5){const _0xa0c1da=_0x44ade9;super(_0x2c69d9,_0x3a9b78,_0x37259b),this[_0xa0c1da(0x16a)]=_0x23bcd9,this['_logService']=_0x4727c5;}[_0x44ade9(0x1a1)](_0x35bba4,_0x15d250){const _0xe8192d=_0x44ade9,_0x57055d=this['_getUndoStack'](_0x35bba4);if(_0x57055d)try{const _0x13c16e=this[_0xe8192d(0x2d6)](_0x57055d,_0x15d250);this['_substituteUndoStack'](_0x35bba4,_0x13c16e);}catch(_0x28ba66){this[_0xe8192d(0x1a3)][_0xe8192d(0x1c9)](_0xe8192d(0x3dd),_0x28ba66),this[_0xe8192d(0x272)](_0x35bba4);}const _0x4b72ef=this['_getRedoStack'](_0x35bba4);if(_0x4b72ef)try{const _0x1a1c2d=this['_transformStack'](_0x4b72ef,_0x15d250);this['_substituteRedoStack'](_0x35bba4,_0x1a1c2d);}catch(_0x1cc23e){this[_0xe8192d(0x1a3)][_0xe8192d(0x1c9)](_0x1cc23e),this[_0xe8192d(0x158)](_0x35bba4);}}['_clearUndo'](_0x2caf09){const _0x18cf35=_0x44ade9,_0x4543be=this[_0x18cf35(0x4ab)](_0x2caf09);_0x4543be&&(_0x4543be[_0x18cf35(0x192)]=0x0,this['_updateStatus']());}[_0x44ade9(0x158)](_0x51bdfd){const _0x318923=_0x44ade9,_0x4942d5=this[_0x318923(0x410)](_0x51bdfd);_0x4942d5&&(_0x4942d5['length']=0x0,this[_0x318923(0x20c)]());}[_0x44ade9(0x184)](_0x2ed384,_0x5528d0){const _0x465a8e=_0x44ade9;this[_0x465a8e(0x27e)][_0x465a8e(0x48c)](_0x2ed384,_0x5528d0),this['_updateStatus']();}['_substituteRedoStack'](_0x47f870,_0x1f7eca){const _0x20d410=_0x44ade9;this['_redoStacks'][_0x20d410(0x48c)](_0x47f870,_0x1f7eca),this[_0x20d410(0x20c)]();}[_0x44ade9(0x2d6)](_0x2f926f,_0x54fe11){const _0x343150=_0x44ade9,_0x52c4be=[];let _0x5e14ee=_0x54fe11,_0x3fed63=_0x54fe11;for(let _0x33675c=_0x2f926f['length']-0x1;_0x33675c>=0x0;_0x33675c--){const {unitID:_0x218400,undoMutations:_0x5fb6eb,redoMutations:_0x263ef0}=_0x2f926f[_0x33675c],_0x7e9cf0=this[_0x343150(0x16a)]['transformMutationsWithChangeset'](_0x5e14ee,_0x5fb6eb),_0x460c24=this[_0x343150(0x16a)][_0x343150(0x169)](_0x3fed63,_0x263ef0);if(_0x4a3e3f(_0x7e9cf0)||_0x4a3e3f(_0x460c24)){this[_0x343150(0x1a3)][_0x343150(0x1c9)]('[CollaborationUndoRedoService]',_0x343150(0x3d9),_0x7e9cf0,_0x460c24);break;}_0x5e14ee=_0x7e9cf0['c1Prime'],_0x3fed63=_0x460c24['c1Prime'],_0x52c4be['push']({'unitID':_0x218400,'undoMutations':_0x7e9cf0[_0x343150(0x483)],'redoMutations':_0x460c24['m2Prime']});}return _0x52c4be['reverse']();}};At=ea([ye(0x0,_0x4c19c5),ye(0x1,_0x2bc808),ye(0x2,_0x3c1d68),ye(0x3,_0x446e46),ye(0x4,_0x4611a9)],At);class ta extends _0x1d444{constructor(){const _0x4e9cb8=_0x44ade9;super(),l(this,_0x4e9cb8(0x357)),this[_0x4e9cb8(0x357)]=_0x3b552f(window,_0x4e9cb8(0x3c1))[_0x4e9cb8(0x2e0)](_0x275af9(this['dispose$']),_0x227687(0x1),_0x351ffb(void 0x0));}['setParam'](_0x11cf7b,_0x42d85c,_0x48f3e6=!0x1){const _0x27ec82=_0x44ade9,_0x3ab407=new URL(window['location']['href']);_0x3ab407[_0x27ec82(0x498)][_0x27ec82(0x48c)](_0x11cf7b,_0x42d85c),_0x48f3e6?window[_0x27ec82(0x28d)]['replaceState']('','',_0x3ab407[_0x27ec82(0x1cb)]()):window['history']['pushState']('','',_0x3ab407[_0x27ec82(0x1cb)]());}[_0x44ade9(0x2ff)](_0x23c9c7,_0x106a4c=!0x1){const _0x27f554=_0x44ade9,_0x3c7c35=new URL(window['location'][_0x27f554(0x247)]);_0x3c7c35[_0x27f554(0x498)][_0x27f554(0x467)](_0x23c9c7),_0x106a4c?window['history'][_0x27f554(0x1b7)]('','',_0x3c7c35['toString']()):window[_0x27f554(0x28d)][_0x27f554(0x17e)]('','',_0x3c7c35[_0x27f554(0x1cb)]());}[_0x44ade9(0x349)](_0x22ed3c){const _0x1757f3=_0x44ade9;var _0x1bb718;return(_0x1bb718=new URL(window['location']['href'])[_0x1757f3(0x498)][_0x1757f3(0x28e)](_0x22ed3c))!=null?_0x1bb718:void 0x0;}}var Gs=Object[_0x44ade9(0x421)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x36e687,_0x5bcc9c,_0x15141)=>_0x5bcc9c in _0x36e687?Gs(_0x36e687,_0x5bcc9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15141}):_0x36e687[_0x5bcc9c]=_0x15141,na=(_0x32eae7,_0x519c6c,_0x52842d,_0x6dada9)=>{const _0x355416=_0x44ade9;for(var _0x115816=_0x6dada9>0x1?void 0x0:_0x6dada9?sa(_0x519c6c,_0x52842d):_0x519c6c,_0x36a8b0=_0x32eae7[_0x355416(0x192)]-0x1,_0x1e3a1f;_0x36a8b0>=0x0;_0x36a8b0--)(_0x1e3a1f=_0x32eae7[_0x36a8b0])&&(_0x115816=(_0x6dada9?_0x1e3a1f(_0x519c6c,_0x52842d,_0x115816):_0x1e3a1f(_0x115816))||_0x115816);return _0x6dada9&&_0x115816&&Gs(_0x519c6c,_0x52842d,_0x115816),_0x115816;},Ve=(_0x2e51ac,_0x596fb0)=>(_0x14a241,_0x2bef78)=>_0x596fb0(_0x14a241,_0x2bef78,_0x2e51ac),ra=(_0x5df2f9,_0x5ad212,_0x3ebadd)=>ia(_0x5df2f9,_0x5ad212+'',_0x3ebadd);const oa=_0x44ade9(0x3ba);let Lt=class extends _0x14c22f{constructor(_0x216da7=Nn,_0x30be50,_0x5ac062,_0x175949,_0x5a1a6c){const _0x35ea7e=_0x44ade9;super(),this['_config']=_0x216da7,this[_0x35ea7e(0x1a3)]=_0x30be50,this[_0x35ea7e(0x268)]=_0x5ac062,this[_0x35ea7e(0x181)]=_0x175949,this[_0x35ea7e(0x251)]=_0x5a1a6c;const {..._0x2d62de}=this[_0x35ea7e(0x1b8)];this[_0x35ea7e(0x251)][_0x35ea7e(0x193)](L,_0x2d62de);}[_0x44ade9(0x278)](){this['_registerDependencies']();}[_0x44ade9(0x2ba)](){const _0x252007=_0x44ade9;this[_0x252007(0x36a)]();}[_0x44ade9(0x472)](){const _0x36b4fa=_0x44ade9;var _0x34d956,_0x462e59,_0xe2c86d,_0x3fb1ca;this['_injector']['has'](_0x3cf637)&&this[_0x36b4fa(0x1a3)][_0x36b4fa(0x1c9)]('[UniverCollaborationClientPlugin]',_0x36b4fa(0x38a));let _0x80c2b9=[[_0x3cf637,{'useClass':At}],[ce],[Gt],[_0x53dfff],[Ws,{'useClass':ta}],[ae],[D],[_0x4e064e],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x462e59=(_0x34d956=this[_0x36b4fa(0x1b8)])==null?void 0x0:_0x34d956[_0x36b4fa(0x475)])!=null?_0x462e59:Tt}],[_0x23f73e,{'useClass':_0x1fbb96}],[_0x23ecb2,{'useClass':Mt}],[_0x4d7a53,{'useClass':Nt}],[_0x5d9034,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0xe2c86d=this['_config'])!=null&&_0xe2c86d[_0x36b4fa(0x28a)]&&_0x80c2b9[_0x36b4fa(0x23e)]([nt,{'useClass':or}]),_0x80c2b9=_0x43541f(_0x80c2b9,(_0x3fb1ca=this[_0x36b4fa(0x1b8)])==null?void 0x0:_0x3fb1ca[_0x36b4fa(0x413)]),_0x80c2b9[_0x36b4fa(0x362)](_0x3918df=>this['_injector'][_0x36b4fa(0x377)](_0x3918df)),this[_0x36b4fa(0x370)]();}['_registerRenderDependencies'](){const _0x15e4af=_0x44ade9;this[_0x15e4af(0x26d)](this[_0x15e4af(0x268)]['registerRenderModule'](_0xb0e7e8['UNIVER_DOC'],[We])),this['disposeWithMe'](this[_0x15e4af(0x268)][_0x15e4af(0x250)](_0xb0e7e8[_0x15e4af(0x233)],[yt]));}[_0x44ade9(0x370)](){const _0x3d1aca=_0x44ade9;var _0x9c5889,_0x33e1f4;this['_injector']['get'](_0x53dfff)[_0x3d1aca(0x1d1)]({'priority':0x14,'interceptor':_0x53e64b({'maxParallel':0x6})}),this['_injector'][_0x3d1aca(0x28e)](it),(_0x9c5889=this[_0x3d1aca(0x1b8)])!=null&&_0x9c5889['enableOfflineEditing']||this['_injector'][_0x3d1aca(0x28e)](D)[_0x3d1aca(0x403)](),(_0x33e1f4=this[_0x3d1aca(0x1b8)])!=null&&_0x33e1f4['enableAuthServer']&&this[_0x3d1aca(0x181)][_0x3d1aca(0x28e)](st),this[_0x3d1aca(0x181)][_0x3d1aca(0x28e)](Ae),this['_injector'][_0x3d1aca(0x22f)](Ue)&&this['_injector'][_0x3d1aca(0x28e)](Ue);}};ra(Lt,'pluginName',oa),Lt=na([_0x2cd2d8(_0x558b0a),Ve(0x1,_0x4611a9),Ve(0x2,_0xc776ff),Ve(0x3,_0x180372(_0x15d871)),Ve(0x4,_0x1fe23f)],Lt);export{No as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,pn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Rt as CollaborationSession,ce as CollaborationSessionService,Tt as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,js as CommentService,Ge as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,In as HEARTBEAT_INTERVAL_KEY,Us as HEARTBEAT_TIMEOUT_KEY,$s as ICollaborationSocketService,Ws as IURLService,Ut as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,bn as RETRY_CONNECTING_MAX_COUNT_KEY,Da as SEND_CHANGESET_TIMEOUT_KEY,fn as SNAPSHOT_SERVER_URL_KEY,gn as SNAPSHOT_URL_KEY,G as SessionStatus,Kr as SheetCollabCursorShape,Dt as SheetCollaborationEntity,Mt as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,ta as WebURLService,Un as deserializeToCombResponse,Mn as serializeCombRequest};
|