@univerjs-pro/collaboration-client-ui 0.6.10 → 0.7.0-beta.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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5876(){const _0x24d471=['key','@univerjs/sheets-ui','string','CollaborationSocketService','then','#fff','tag','offline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','storage','1435332dHFWkP','transformIMECache','href','Shape','getItem','_handleLeaveEvent','requireSession','xlink:href','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_drawRectRange','ticket','_onCursorUpdate','transformMutation','_eventUnsubscribe','InsertColCommandId','CollaborationUIEventId','_renderManagerService','current','propertyIsEnumerable','CollaborationDataLoaderController','SetDocZoomRatioOperation','WECHAT_HAS_BEEN_BOUND','assign','IRemoteInstanceService','Unknown\x20user','_transformUndoRedoStack','collab-client.tooltip.reconnect','unitID','DocCollaborationEntity','getRenderById','getVpScrollXYInfoByPosToVp','UniverProCollaborationClientUi','map','SHEET_VIEWPORT_KEY','event$','cursorInfo','transformRemoteChangeset','_themeService','1798188RknfuA','_docSkeletonManagerService','send','195251wIsyIV','_getSessionTicket','_collabCursorState$','collab-text-range-','OnLineSingle','dispose$','getOwnPropertyDescriptor','ILocalStorageService','InsertRowCommandId','dispose','resize','@univerjs/core','Tools','toRgbString','_injector','max','params','black','_startSheetCollabCursor','1278489bbBdYZ','LocaleService','CollaborationEvent','CONFLICT','collabStatus.offline','off-line-single','_uiPartsService','_handleHover','_drawAnchor','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','ENSURE_SNAPSHOT_EXECUTION','SessionStatus','UPDATE_CURSOR','_name','getMember','_commandService','_onCursorDelete','bottom','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','react','5HMOQaK','DocStateChangeManagerService','univer-flex\x20univer-items-center','handleDeleteRangeMoveUp','_transformHistoryAndStateStack','fillRule','getStateCache','ranges','createIdentifier','FromArray','m2Prime','DEFAULT_WS_SESSION_TICKET_URL','#FFF','m1Prime','WebSocketService','_initDependencies','serializeRangeWithSheet','currentSkeleton$','saveOfflineData','getDocRanges','UniverSheetsUi','type','next','cursorInfo$','setConfig','DocIMEInputManagerService','_collaborationController','className','trim','unload','clearInterval','_config','LOCAL_CACHE_INTERVAL','_onRefRangeChange','RemoteUniscriptService','LICENSE_DISTRO_REJECTED','_labelPosition','0\x200\x2017\x2016','on-line-single_clip0_910_349','forEach','setActiveRange','none','_entities','COLORS','imageSourceType','56nYhxBY','_entityInit$','onStarting','_selfUnitIDs','toString','getUniverSheetInstance','UniverEngineRender','font','isEditing','NOT_FOUND','_saveCache','focused$','unshift','_roomMembers$','_registerDependencies','@univerjs/docs','_initStatusListener','collabCursorState$','merge','YUUMI_RATE_OVER_LIMIT','_collabCursorController','_sheetSkeletonManagerService','endRow','getTypeOfUnitDisposed$','complete','USER_NOT_INVITED_CODE','_send','unit','isTransformMutationFailure','SOCKET_FAILED_RETRY','mask','operators','YUUMI_UNABLE_LOAD_URL','location','transformStateCache','YUUMI_ASYNCIO_CANCELLED','getParam','connectInjector','purple300','getSkeleton','UniverProCollaborationClient','reconnect','_initStatusComponent','useRef','onLocalMutation','pushState','defs','MOBILE_HAS_BEEN_BOUND','USERS_LEAVE','6982053QfFSWj','CollaborationStatus','_syncEditingCollabCursorService','startRow','getValue','DesktopCollaborationStatusDisplayController','PY_RUNTIME_SCRIPT_ERROR','removeParam','subUnitId','body','startsWith','_configService','UniverInstanceType','ITransformService','path','permission.content','distinctUntilChanged','_ensureSubject','delete','UnitStatus','getSheetId','InsertRangeMoveRightCommandId','disposeWithMe','INVALID_ARGUMENT','url(#on-line-single_clip0_910_349)','TEXT','univer-online-status-title','from','call','values','startColumn','engine','LOGIN_FAILED','_hover','_scene','Subject','onPointerMove$','attrs','init','top','defineProperty','RECT','ALREADY_EXISTS','VIEW_MAIN','getActiveRange','_startDocCollabCursor','replaceDocRanges','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_getAnchorBounding','Inject','@univerjs-pro/collaboration-client','runOnServer','getAncestorScale','addClipboardHook','_disabled','_docClipboardService','@univerjs/drawing','@univerjs/docs-ui','NOT_COLLAB','registerRenderModule','CommandType','beginPath','_cursors','UniverRpc','HTTPService','IUniverInstanceService','RefRangeService','exhaustSavingTask','Vector2','_assignedColors','runRefRangeMutations','stringify','PENDING','ONLINE','mutations','transformSelections','override','UniverUi','TOO_MANY_REQUESTS','_updateCollabCursors','/run/','_imageIoService','textRanges','INVITE_CODE_REQUIRED','@univerjs/ui','session.collaboration-timeout','getFocusedUnit','forwardRef','ThemeService','lineTo','SNAPSHOT_HAS_BEEN_REMOVED','split','MUTATION','toStringTag','_heartbeatTimer','SetSelectionsOperation','SheetSkeletonManagerService','debounce','4TSoHfc','_initCommandExecutedListener','_getSheetObject','SUBMIT_CHANGESET_TIMEOUT','_toggleOnline','SheetCollabCursorShape','_anchor','createElement','_lastPointer','RemoveRowCommandId','rxjs','filter','redoState','fromEventSubject','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_univerInstanceService','LICENSE_MAX_UNITS_EXCEEDED','data','RxDisposable','_getScale','UNRECOGNIZED','ISocketService','_handleJoinEvent','_removeClearOtherTimer','UniverIcon','_status$','gold400','touchDependencies','UNIVER_SHEET','onCommandExecuted','_docStateChangeManagerService','_draw','flatMap','show','INVALID_INVITE_CODE','executeCommand','IConfigService','...','saveTaskMap','@univerjs-pro/collaboration','SheetsSelectionsService','eventID','addObject','deepClone','_range','getCoordByCell','length','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','triggerDblclick','DOC_RANGE_TYPE','onlineStatusTitle','urlChange$','_cursor','getCurrent','_collabSessionService','extend','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_init','onRendered','round','CollaborationStatusDisplay','_localeService','set','registerRefRange','CollaborationUIEventService','_render','SNAPSHOT_INVALID_SNAPSHOT','_cursorInfo$','univer-offline','collab-rect-range-','onPointerEnter$','_colorAssignService','evenodd','_document','_urlService','Injector','colorChannel1','includes','UniverNetwork','getCurrentUnitForType','url(#off-line-single_clip0_910_343)','IRenderManagerService','_id','color','executionId','getMemberID','BrowserCollaborationSocketService','Disposable','collabStatus.notCollab','roomMembers','ICommandService','CONNECTOR_DATA_TOO_LARGE','UniverSheets','11Pozdwg','_localCacheService','@univerjs/engine-render','100822bbOVKE','all','restore','fromEvent','APPLY_REJECT','UniverDocs','_getSaveTimeout','[RemoteUniscriptService]:\x20no\x20focused\x20unit','drawWith','IBeforeCloseService','univerjs-icon\x20univerjs-icon-','DisposableCollection','_clearOtherTimers','_updateLocalCursor','doc.mutation.rich-text-editing','online','takeUntil','_initEvent','idSuffix','result','getOwnPropertySymbols','BehaviorSubject','_scheduleClearOtherTimer','isTransformMutationsWithChangesetSuccess','BuiltInUIPart','DocSkeletonManagerService','rxjs/operators','OFFLINE','sessionTicket','generateRandomId','CollaborationController','ILocalCacheService','toDisposable','name','setItem','_logService','PERMISSION_DENIED','loadUnit','handleInsertRangeMoveRight','_refreshCollabCursors','text','UniverProCollaboration','setStateCache','IURLService','0\x200\x2016\x2016','setTimeout','@univerjs/design','arc','addEventListener','_color','_cursorShapes','hasOwnProperty','selection','searchParams','random','collabStatus.synced','_refRangeService','setParam','icon','OTHER_CLIENTS_EDITING','univer-online-status-icon','APPLY_REVISION_CONFILICT','skeleton','div','UniverDrawing','1449MXQSJj','_cachedData','wsSessionTicketUrl','handleDeleteRangeMoveLeft','width','getUnitId','getViewport','_setupSubUnitSync','moveTo','history','_dataLoaderService','_colorIndex','collabStatus.conflict','LICENSE_EXPORT_SIZE_EXCEEDED','YUUMI_NO_CUBOID_FOR_QUESTION','getUndoRedoMutationParamsCache','_transformService','getSheetObject','CHANGESET_REVISION_CONFILICT','CollaborationSessionService','InsertRangeMoveDownCommandId','setShapeProps','exports','CLOSE_ROOM','_toggleOffline','prototype','_createSocketURL','getColor','currentTheme$','pluginName','OffLineSingle','getCurrentRevOfUnit','getLocalCacheKey','NodePositionConvertToCursor','handleInsertRangeMoveDown','DataLoaderService','UniverDesign','clearTimeout','WebBrowserSingleActiveUnitService','collabStatus.syncing','_textBubble','_anchorDot','DependentOn','unitId','push','debounceTime','TEXT_RANGE_LAYER_INDEX','get','subscribe','_collaborationUIEventService','off-line-single_clip0_910_343','jsx','EMAIL_HAS_BEEN_BOUND','disposeUnit','collaboration.closeRoom','getMergeData','isArray','indexOf','collab-text-anchor-','defIds','sessionStatus$','_hideTimer','YUUMI_SUBSCRIPTION_NOT_FOUND','getCollabCursors$','post','react/jsx-runtime','Workbook','svg','editingUnit','getRelativeToViewportCoord','handleMoveRange','syncEditingCollabCursor','setUndoRedoMutationParamsCache','1beTbLz','displayName','roomMembers$','UNAUTHENTICATED','debug','collaboration-client.offline-data-not-saved','_shapes','useDependency','measureText','MemberService','actions','INVITE_CODE_ALREADY_BOUND','range','registerBeforeClose','concat','_messageService','add','EffectRefRangId','asObservable','_unitOnClients','UniverCollaborationClientUIPlugin','unsubscribe','pipe','min','_docTransformSelectionsService','_initEntityListener','symbol','RegularPolygon','error','_docTransformIMECacheService','MessageType','OTHER_CLIENT_EDITING','Error','Warning','createInstance','_online','_handleEvent','_scheduleHeartbeat','HEADER_MENU','updateOfflineData','_doCreateSocket','amd','with','hide','SetTextSelectionsOperation','status$','has','getRangePointData','url(#$1','_localStorageService','backgroundColor','_docTransformStateCacheService','runId','_hovered','@univerjs/sheets','findNodePositionByCharIndex','UniverDocsUi','getConfig','_handleHeartbeatEvent','children','_notificationService','undoState','_updateURLWithCurrentState','getCollabEntity$','fill','deserializeRangeWithSheet','14180PnxDUb','INVITE_CODE_HAS_BEEN_UES','COMPLETION_FINISHED','Plugin','_backgroundColor','permission.title','height','APPLY_PERMISSION_DENIED','onPointerLeave$','DocSelectionManagerService','JOIN_ROOM_FAILED','[CollaborationDataLoaderController]','_getMergeRange','1em','replaceState','column','UniverCore','_updateSubUnitFromURLParams','contains','fillText','NO_OTHER_CLIENTS_EDITING','_revisionService','_session','clsx','row','INTERNAL_ERROR','onMouseMove','switchMap','use','getCellPositionByOffset','_initResize','subscribeEvent','assignAColorForMemberID','subunit','_saveTaskMap','collaboration-client-ui.config','_transformPreviousActiveRange','Rectangle','_beforeCloseService','_docSyncEditingCollabCursorService','loadOfflineData','replace','M0\x200H16V16H0z','ColorKit','_registerRenderDependencies','_httpService','_drawTextRange','_scheduleSaving','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_IMPORT_SIZE_EXCEEDED','onlineStatusIcon','APPLY_DUPLICATED','getTypeOfUnitAdded$','_removeCollabCursors','YUUMI_URL_COL_OUT_OF_RANGE','newValue','sheetID','getActiveSheet','_unitStatus','_setupBeforeClosingHandler','setAlpha','_context','ACTIVE_UNIT_EVENT_CHANNEL','save','ILogService','SetWorksheetActivateCommand','@univerjs/engine-formula','mergeOverrideWithDependencies','function','getSheetBySheetId','popstate','jsxs','UNIVER_DOC','fillStyle','size','saveImage','UniverEngineFormula','SOCKET_FAILED','onlineStatus'];_0x5876=function(){return _0x24d471;};return _0x5876();}function _0x5997(_0x5a6515,_0x2dfe97){const _0x587603=_0x5876();return _0x5997=function(_0x599793,_0x50ef26){_0x599793=_0x599793-0xcd;let _0x443645=_0x587603[_0x599793];return _0x443645;},_0x5997(_0x5a6515,_0x2dfe97);}(function(_0x5be4e5,_0x282309){const _0x24a837=_0x5997,_0xc0151=_0x5be4e5();while(!![]){try{const _0x529c1e=-parseInt(_0x24a837(0x269))/0x1*(parseInt(_0x24a837(0x1df))/0x2)+parseInt(_0x24a837(0x340))/0x3*(-parseInt(_0x24a837(0x17f))/0x4)+-parseInt(_0x24a837(0x354))/0x5*(parseInt(_0x24a837(0x304))/0x6)+-parseInt(_0x24a837(0x32d))/0x7*(-parseInt(_0x24a837(0xec))/0x8)+parseInt(_0x24a837(0x220))/0x9*(parseInt(_0x24a837(0x2ab))/0xa)+-parseInt(_0x24a837(0x1dc))/0xb*(-parseInt(_0x24a837(0x32a))/0xc)+parseInt(_0x24a837(0x11d))/0xd;if(_0x529c1e===_0x282309)break;else _0xc0151['push'](_0xc0151['shift']());}catch(_0x3d295a){_0xc0151['push'](_0xc0151['shift']());}}}(_0x5876,0x605bb),function(_0xef4856,_0x19705d){const _0x2e583d=_0x5997;typeof exports=='object'&&typeof module<'u'?_0x19705d(exports,require(_0x2e583d(0x14f)),require(_0x2e583d(0x338)),require(_0x2e583d(0x1de)),require('@univerjs/network'),require('@univerjs/docs-ui'),require(_0x2e583d(0x155)),require(_0x2e583d(0x189)),require(_0x2e583d(0xfb)),require(_0x2e583d(0x1a6)),require('@univerjs/engine-formula'),require(_0x2e583d(0x29f)),require(_0x2e583d(0x1f9)),require('@univerjs/sheets-ui'),require(_0x2e583d(0x261)),require(_0x2e583d(0x171)),require(_0x2e583d(0x20d)),require(_0x2e583d(0x353)),require('@univerjs/rpc')):typeof define==_0x2e583d(0x2ef)&&define[_0x2e583d(0x292)]?define([_0x2e583d(0x236),_0x2e583d(0x14f),_0x2e583d(0x338),'@univerjs/engine-render','@univerjs/network',_0x2e583d(0x156),'@univerjs/drawing','rxjs',_0x2e583d(0xfb),_0x2e583d(0x1a6),_0x2e583d(0x2ed),_0x2e583d(0x29f),_0x2e583d(0x1f9),_0x2e583d(0x2fb),_0x2e583d(0x261),_0x2e583d(0x171),_0x2e583d(0x20d),'react','@univerjs/rpc'],_0x19705d):(_0xef4856=typeof globalThis<'u'?globalThis:_0xef4856||self,_0x19705d(_0xef4856[_0x2e583d(0x323)]={},_0xef4856[_0x2e583d(0x114)],_0xef4856[_0x2e583d(0x2bb)],_0xef4856[_0x2e583d(0xf2)],_0xef4856[_0x2e583d(0x1cd)],_0xef4856[_0x2e583d(0x2a1)],_0xef4856[_0x2e583d(0x21f)],_0xef4856['rxjs'],_0xef4856[_0x2e583d(0x1e4)],_0xef4856[_0x2e583d(0x208)],_0xef4856[_0x2e583d(0x2f7)],_0xef4856[_0x2e583d(0x1db)],_0xef4856[_0x2e583d(0x189)][_0x2e583d(0x10b)],_0xef4856[_0x2e583d(0xd3)],_0xef4856['React'],_0xef4856[_0x2e583d(0x16a)],_0xef4856[_0x2e583d(0x244)],_0xef4856['React'],_0xef4856[_0x2e583d(0x15c)]));}(this,function(_0x57b4ed,_0x3a040d,_0x42e0e7,_0x5af10f,_0x3ba47d,_0x116ef8,_0x13d693,_0x599c52,_0x5c07ea,_0x12caed,_0x2ce579,_0x51eb6e,_0xaa0c1c,_0x572da5,_0x5098f5,_0x5549db,_0x59cf3e,_0x45b8be,_0x85bd9c){'use strict';const _0x2a6bec=_0x5997;var _0x2517a3=Object['defineProperty'],_0x4a84d4=(_0xfde701,_0x819d0a,_0x3faccd)=>_0x819d0a in _0xfde701?_0x2517a3(_0xfde701,_0x819d0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3faccd}):_0xfde701[_0x819d0a]=_0x3faccd,_0x7f0de7=(_0x297523,_0x4d6807,_0x2b0d8f)=>_0x4a84d4(_0x297523,typeof _0x4d6807!=_0x2a6bec(0x283)?_0x4d6807+'':_0x4d6807,_0x2b0d8f),_0xc6f44c=Object['getOwnPropertyDescriptor'],_0x348a4a=(_0xceb8a6,_0x2335c6,_0x49779d,_0x4de6b9)=>{const _0x21cea7=_0x2a6bec;for(var _0x5bd3d4=_0x4de6b9>0x1?void 0x0:_0x4de6b9?_0xc6f44c(_0x2335c6,_0x49779d):_0x2335c6,_0x33cc92=_0xceb8a6[_0x21cea7(0x1ad)]-0x1,_0x5b8625;_0x33cc92>=0x0;_0x33cc92--)(_0x5b8625=_0xceb8a6[_0x33cc92])&&(_0x5bd3d4=_0x5b8625(_0x5bd3d4)||_0x5bd3d4);return _0x5bd3d4;},_0x25521f=(_0x4318a1,_0x5a3ce6)=>(_0x4fde0f,_0x561b1f)=>_0x5a3ce6(_0x4fde0f,_0x561b1f,_0x4318a1);let _0x2da604=class extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(_0xa09b33,_0x2ff171){const _0x34e898=_0x2a6bec;super(),this[_0x34e898(0x154)]=_0xa09b33,this[_0x34e898(0x16e)]=_0x2ff171,this[_0x34e898(0x1b8)]();}['_init'](){const _0x3e4974=_0x2a6bec,_0x41636e=this;this[_0x3e4974(0x133)](this[_0x3e4974(0x154)][_0x3e4974(0x152)]({'onBeforePasteImage':async _0x447c1a=>{const _0x4b085b=_0x3e4974,_0x250513=await _0x41636e[_0x4b085b(0x16e)][_0x4b085b(0x2f6)](_0x447c1a);return _0x250513?{'source':_0x250513['source'],'imageSourceType':_0x250513[_0x4b085b(0xeb)]}:null;}}));}};_0x2da604=_0x348a4a([_0x25521f(0x0,_0x116ef8['IDocClipboardService']),_0x25521f(0x1,_0x13d693['IImageIoService'])],_0x2da604);const _0x5cf470=[_0x2a6bec(0x112),'jiqing500','verdancy600','red300','blue400',_0x2a6bec(0x199)];class _0x1ee3e1 extends _0x42e0e7[_0x2a6bec(0x1d6)]{constructor(){const _0x363e39=_0x2a6bec;super(...arguments),_0x7f0de7(this,_0x363e39(0x162),new Map()),_0x7f0de7(this,_0x363e39(0x22b),0x0);}['assignAColorForMemberID'](_0x1b0fbe){const _0x5a75e3=_0x2a6bec;if(this[_0x5a75e3(0x162)][_0x5a75e3(0x297)](_0x1b0fbe))return this[_0x5a75e3(0x162)][_0x5a75e3(0x24f)](_0x1b0fbe);const _0x2f84d7=_0x5cf470[this[_0x5a75e3(0x22b)]];return this['_colorIndex']=(this[_0x5a75e3(0x22b)]+0x1)%_0x5cf470[_0x5a75e3(0x1ad)],this['_assignedColors']['set'](_0x1b0fbe,_0x2f84d7),_0x2f84d7;}}function _0x101c21(_0x59cfe5){const _0x39146d=_0x2a6bec;let _0x13b4c2='';for(const _0x234608 of _0x59cfe5){const {startOffset:_0xf3b9c5,endOffset:_0x33b8c1,isActive:_0x4bac4b,rangeType:_0x6e1168,segmentId:_0x45b693,segmentPage:_0x29e547}=_0x234608;_0x13b4c2[_0x39146d(0x1ad)]&&(_0x13b4c2+=','),_0x13b4c2+=_0xf3b9c5+':'+_0x33b8c1+':'+(_0x4bac4b?'1':'0')+':'+_0x6e1168+':'+_0x45b693+':'+_0x29e547;}return _0x13b4c2;}function _0x46ce7e(_0x47dffd){const _0x891458=_0x2a6bec,_0x12b1e0=_0x47dffd[_0x891458(0x178)](','),_0x1b216a=[];for(const _0x6501d2 of _0x12b1e0){const [_0x556c76,_0x13f1a2,_0x5cf714,_0x33f5f9,_0x2b5fd7,_0x5e78ee]=_0x6501d2['split'](':');_0x1b216a[_0x891458(0x24c)]({'startOffset':Number(_0x556c76),'endOffset':Number(_0x13f1a2),'collapsed':_0x556c76===_0x13f1a2,'isActive':_0x5cf714==='1','rangeType':_0x33f5f9===_0x42e0e7[_0x891458(0x1b0)]['TEXT']?_0x42e0e7[_0x891458(0x1b0)][_0x891458(0x136)]:_0x42e0e7[_0x891458(0x1b0)]['RECT'],'segmentId':typeof _0x2b5fd7==_0x891458(0x2fc)?String(_0x2b5fd7):'','segmentPage':Number(_0x5e78ee!=null?_0x5e78ee:-0x1)});}return _0x1b216a['some'](_0x5135fe=>_0x5135fe['isActive'])||(_0x1b216a[0x0]['isActive']=!0x0),_0x1b216a;}class _0x7228ba extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(){const _0x1fdd24=_0x2a6bec;super(...arguments),_0x7f0de7(this,_0x1fdd24(0x32f),new _0x599c52[(_0x1fdd24(0x1f4))](null)),_0x7f0de7(this,_0x1fdd24(0xfd),this[_0x1fdd24(0x32f)]['asObservable']());}[_0x2a6bec(0x267)](_0x372dca){const _0x1ee886=_0x2a6bec,{unitID:_0x5cb4eb,memberID:_0x3b4e63,textRanges:_0x564573}=_0x372dca,_0x459775=_0x101c21(_0x564573);if(_0x459775==='')return;const _0x2a2b6d={'unitID':_0x5cb4eb,'memberID':_0x3b4e63,'selection':_0x459775};this[_0x1ee886(0x32f)]['next'](_0x2a2b6d);}}var _0x123f55=Object[_0x2a6bec(0x333)],_0x57139d=(_0x407d3c,_0x3d3ad3,_0x3ed899,_0x29c427)=>{const _0xdcef13=_0x2a6bec;for(var _0x42ef1c=_0x29c427>0x1?void 0x0:_0x29c427?_0x123f55(_0x3d3ad3,_0x3ed899):_0x3d3ad3,_0x5e2c3b=_0x407d3c[_0xdcef13(0x1ad)]-0x1,_0x1cd80c;_0x5e2c3b>=0x0;_0x5e2c3b--)(_0x1cd80c=_0x407d3c[_0x5e2c3b])&&(_0x42ef1c=_0x1cd80c(_0x42ef1c)||_0x42ef1c);return _0x42ef1c;},_0x72dc17=(_0x3d3afd,_0x2fe7a6)=>(_0x5ee009,_0x223a23)=>_0x2fe7a6(_0x5ee009,_0x223a23,_0x3d3afd);const _0x584271=0x12c,_0x1f94f3=0x64;let _0x41a8eb=class extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(_0x39c9f4,_0x1a007b,_0x42a047,_0x29137a,_0x5475d2,_0x3b3017,_0x1cb755,_0x1803a1,_0x4343b8){const _0x535309=_0x2a6bec;super(),_0x7f0de7(this,_0x535309(0x28c),!0x1),_0x7f0de7(this,_0x535309(0x1b8),!0x1),_0x7f0de7(this,_0x535309(0x1c2),new _0x599c52[(_0x535309(0x1f4))](new Map())),_0x7f0de7(this,_0x535309(0xd6),this[_0x535309(0x1c2)][_0x535309(0x27b)]()),_0x7f0de7(this,'_roomMembers$',new _0x599c52[(_0x535309(0x1f4))]([])),_0x7f0de7(this,_0x535309(0x26b),this[_0x535309(0xf9)][_0x535309(0x27f)](_0x599c52[_0x535309(0x24d)](_0x584271))),_0x7f0de7(this,'_updateLocalCursor',_0x42e0e7['debounce'](_0x426662=>{const _0x4d79ce=_0x535309,_0x8f9443={'eventID':_0x12caed[_0x4d79ce(0x342)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4d79ce(0x31f)],'memberID':this[_0x4d79ce(0x2c1)]['getMemberID'](),'selection':_0x101c21(_0x426662)}};this['_session'][_0x4d79ce(0x32c)](_0x8f9443,this['unitID']);},_0x1f94f3)),(this['unitID']=_0x39c9f4,this[_0x535309(0x2c1)]=_0x1a007b,this['_injector']=_0x42a047,this[_0x535309(0x1c6)]=_0x29137a,this['_memberService']=_0x5475d2,this[_0x535309(0x11f)]=_0x3b3017,this[_0x535309(0x230)]=_0x1cb755,this[_0x535309(0x18e)]=_0x1803a1,this[_0x535309(0x34f)]=_0x4343b8);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x2a6bec(0x1d8)](){const _0x1bf62f=_0x2a6bec;return this[_0x1bf62f(0xf9)]['getValue']();}[_0x2a6bec(0x336)](){const _0x27d668=_0x2a6bec;super[_0x27d668(0x336)](),this[_0x27d668(0x1c2)]['next'](new Map()),this[_0x27d668(0x1c2)]['complete'](),this[_0x27d668(0xf9)][_0x27d668(0xd5)]([]),this[_0x27d668(0xf9)][_0x27d668(0x104)]();}[_0x2a6bec(0x143)](){const _0x3a7fb7=_0x2a6bec;this[_0x3a7fb7(0x1b8)]||(this[_0x3a7fb7(0x1b8)]=!0x0,this['_session'][_0x3a7fb7(0x25c)][_0x3a7fb7(0x27f)](_0x599c52[_0x3a7fb7(0x1ef)](this[_0x3a7fb7(0x332)]))[_0x3a7fb7(0x250)](_0x5059d0=>{const _0x52b276=_0x3a7fb7;_0x5059d0===_0x3a040d[_0x52b276(0x34b)][_0x52b276(0x166)]?this['_toggleOnline']():this[_0x52b276(0x238)]();}),this[_0x3a7fb7(0x2c1)][_0x3a7fb7(0x326)][_0x3a7fb7(0x27f)](_0x599c52[_0x3a7fb7(0x1ef)](this['dispose$']))[_0x3a7fb7(0x250)](_0x4b936e=>{const _0x508c9f=_0x3a7fb7,_0x84a2d0=_0x4b936e[_0x508c9f(0x1a8)];_0x84a2d0===_0x12caed[_0x508c9f(0x342)]['UPDATE_CURSOR']&&this[_0x508c9f(0x30f)](_0x4b936e),_0x84a2d0===_0x12caed[_0x508c9f(0x342)][_0x508c9f(0x11c)]&&this[_0x508c9f(0x350)](_0x4b936e);}),this['disposeWithMe'](this[_0x3a7fb7(0x34f)][_0x3a7fb7(0x19c)](_0xffced4=>{const _0x41ef95=_0x3a7fb7,_0x466fd6=_0xffced4[_0x41ef95(0x33d)];_0x466fd6!=null&&this[_0x41ef95(0x28c)]&&_0xffced4['id']===_0x5c07ea[_0x41ef95(0x295)]['id']&&_0x466fd6[_0x41ef95(0x24b)]===this[_0x41ef95(0x31f)]&&_0x466fd6[_0x41ef95(0xf4)]===!0x1&&_0x466fd6[_0x41ef95(0x35b)][_0x41ef95(0x1ad)]>0x0&&this[_0x41ef95(0x1ec)](_0x466fd6[_0x41ef95(0x35b)]);})),this[_0x3a7fb7(0x11f)]['collabCursorState$'][_0x3a7fb7(0x27f)](_0x599c52[_0x3a7fb7(0x1ef)](this['dispose$']))[_0x3a7fb7(0x250)](_0x28dbfa=>{const _0x3bd11d=_0x3a7fb7;if((_0x28dbfa==null?void 0x0:_0x28dbfa[_0x3bd11d(0x31f)])!==this[_0x3bd11d(0x31f)])return;const _0x4a95b2={'eventID':_0x12caed[_0x3bd11d(0x342)][_0x3bd11d(0x34c)],'data':_0x28dbfa};this[_0x3bd11d(0x30f)](_0x4a95b2);}),this[_0x3a7fb7(0x133)](this[_0x3a7fb7(0x34f)]['onCommandExecuted'](_0x52958c=>{const _0x11dd16=_0x3a7fb7;if(_0x52958c[_0x11dd16(0x33d)]==null)return;const _0xe77d34=_0x52958c['params'];if(_0x52958c['id']!==_0x5c07ea['RichTextEditingMutation']['id']||_0xe77d34[_0x11dd16(0x24b)]!==this['unitID'])return;const _0x5116bd={'id':_0x11dd16(0x1ed),'params':_0xe77d34},_0xdac64=this[_0x11dd16(0x327)];for(const [_0x1162b0,_0x40a3ca]of _0xdac64){const _0x2da003={'id':_0x11dd16(0x1ed),'params':{'unitId':this[_0x11dd16(0x31f)],'actions':null,'textRanges':_0x40a3ca[_0x11dd16(0x35b)]}},_0x3bf625=this[_0x11dd16(0x230)][_0x11dd16(0x310)](_0x5116bd,_0x2da003,!0x1);if(_0x12caed[_0x11dd16(0x108)](_0x3bf625))throw _0x3bf625[_0x11dd16(0x285)];_0xdac64[_0x11dd16(0x1bd)](_0x1162b0,{..._0x40a3ca,'ranges':_0x3bf625[_0x11dd16(0x35e)][_0x11dd16(0x33d)]['textRanges']});}queueMicrotask(()=>{const _0x323681=_0x11dd16;this[_0x323681(0x1c2)][_0x323681(0xd5)](_0xdac64);});})));}['_onCursorUpdate'](_0x53c970){const _0x4a37ec=_0x2a6bec;var _0x5c70bc,_0x84886f;const {memberID:_0x102bf3,selection:_0x495127}=_0x53c970[_0x4a37ec(0x190)],_0x36d87a=_0x46ce7e(_0x495127),_0x1b4075=(_0x84886f=(_0x5c70bc=this['_memberService']['getMember'](this[_0x4a37ec(0x31f)],_0x102bf3))==null?void 0x0:_0x5c70bc[_0x4a37ec(0x200)])!=null?_0x84886f:'Unknown\x20user',_0x345346={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x102bf3),'name':_0x1b4075,'ranges':_0x36d87a},_0x55ef56=this['cursorInfo'];_0x55ef56[_0x4a37ec(0x1bd)](_0x102bf3,_0x345346),this[_0x4a37ec(0x1c2)][_0x4a37ec(0xd5)](_0x55ef56);}[_0x2a6bec(0x350)](_0x382cbc){const _0xbe78b7=_0x2a6bec,{memberID:_0x2f8042}=_0x382cbc[_0xbe78b7(0x190)],_0x194038=this[_0xbe78b7(0x327)];_0x194038['delete'](_0x2f8042),this['_cursorInfo$'][_0xbe78b7(0xd5)](_0x194038);}[_0x2a6bec(0x183)](){const _0x4cc217=_0x2a6bec;var _0xa7164b;if(this[_0x4cc217(0x28c)]=!0x0,((_0xa7164b=this['_univerInstanceService'][_0x4cc217(0x173)]())==null?void 0x0:_0xa7164b[_0x4cc217(0x225)]())!==this[_0x4cc217(0x31f)])return;const _0x5ef78b=this[_0x4cc217(0x33b)][_0x4cc217(0x24f)](_0x5c07ea['DocSelectionManagerService'])[_0x4cc217(0xd2)]();Array['isArray'](_0x5ef78b)&&_0x5ef78b[_0x4cc217(0x1ad)]>0x0&&this[_0x4cc217(0x1ec)](_0x5ef78b);}[_0x2a6bec(0x238)](){const _0x4e4f3b=_0x2a6bec;this[_0x4e4f3b(0x28c)]=!0x1;}};_0x41a8eb=_0x57139d([_0x72dc17(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x1ca)])),_0x72dc17(0x3,_0x42e0e7[_0x2a6bec(0x14e)](_0x1ee3e1)),_0x72dc17(0x4,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x272)])),_0x72dc17(0x5,_0x42e0e7['Inject'](_0x7228ba)),_0x72dc17(0x6,_0x12caed['ITransformService']),_0x72dc17(0x7,_0x42e0e7[_0x2a6bec(0x15e)]),_0x72dc17(0x8,_0x42e0e7[_0x2a6bec(0x1d9)])],_0x41a8eb);var _0x2a8aaa=Object[_0x2a6bec(0x333)],_0x3e0a11=(_0x5e75cf,_0x5c036c,_0xb5dedc,_0x161244)=>{const _0x56da6c=_0x2a6bec;for(var _0x22e930=_0x161244>0x1?void 0x0:_0x161244?_0x2a8aaa(_0x5c036c,_0xb5dedc):_0x5c036c,_0x31e269=_0x5e75cf[_0x56da6c(0x1ad)]-0x1,_0x4f6245;_0x31e269>=0x0;_0x31e269--)(_0x4f6245=_0x5e75cf[_0x31e269])&&(_0x22e930=_0x4f6245(_0x22e930)||_0x22e930);return _0x22e930;},_0x27539a=(_0x1582fa,_0x559ab2)=>(_0x149ba1,_0xcd42d)=>_0x559ab2(_0x149ba1,_0xcd42d,_0x1582fa);const _0xf54287=0x12c,_0x1489f5=0x64,_0x8d84e=()=>{let _0x5658aa=[],_0x2623aa=!0x1;return _0x139cad=>{_0x5658aa['push'](_0x139cad),_0x2623aa||(_0x2623aa=!0x0,setTimeout(()=>{const _0x1326b6=_0x5997;_0x5658aa[_0x1326b6(0xe6)](_0x31c335=>_0x31c335()),_0x5658aa=[],_0x2623aa=!0x1;}));};};let _0x12fece=class extends _0x42e0e7['RxDisposable']{constructor(_0x18789a,_0xf58fe2,_0x233a5c,_0x517f89,_0x350a70,_0x3e85b3,_0x3cf543,_0x569475){const _0xf78b95=_0x2a6bec;super(),_0x7f0de7(this,_0xf78b95(0x28c),!0x1),_0x7f0de7(this,_0xf78b95(0x1b8),!0x1),_0x7f0de7(this,'_cursorInfo$',new _0x599c52[(_0xf78b95(0x1f4))](new Map())),_0x7f0de7(this,_0xf78b95(0xd6),this[_0xf78b95(0x1c2)][_0xf78b95(0x27b)]()),_0x7f0de7(this,_0xf78b95(0xf9),new _0x599c52[(_0xf78b95(0x1f4))]([])),_0x7f0de7(this,'roomMembers$',this[_0xf78b95(0xf9)][_0xf78b95(0x27f)](_0x599c52['debounceTime'](_0xf54287))),_0x7f0de7(this,_0xf78b95(0x1ec),_0x42e0e7[_0xf78b95(0x17e)]((_0x4cbc25,_0x3955c2)=>{const _0xb949cb=_0xf78b95,_0x2df023={'eventID':_0x12caed[_0xb949cb(0x342)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xb949cb(0x31f)],'memberID':this[_0xb949cb(0x2c1)][_0xb949cb(0x1d4)](),'selection':_0x2ce579[_0xb949cb(0xcf)](_0x4cbc25,_0x3955c2[_0xb949cb(0x275)])}};this['_session'][_0xb949cb(0x32c)](_0x2df023,this['unitID']);},_0x1489f5)),(this[_0xf78b95(0x31f)]=_0x18789a,this[_0xf78b95(0x2c1)]=_0xf58fe2,this['_injector']=_0x233a5c,this[_0xf78b95(0x1c6)]=_0x517f89,this['_memberService']=_0x350a70,this[_0xf78b95(0x18e)]=_0x3e85b3,this[_0xf78b95(0x34f)]=_0x3cf543,this[_0xf78b95(0x217)]=_0x569475);}get[_0x2a6bec(0x327)](){const _0x292c96=_0x2a6bec;return this[_0x292c96(0x1c2)]['getValue']();}get[_0x2a6bec(0x1d8)](){const _0x23ae20=_0x2a6bec;return this[_0x23ae20(0xf9)][_0x23ae20(0x121)]();}[_0x2a6bec(0x336)](){const _0x142f06=_0x2a6bec;super[_0x142f06(0x336)](),this[_0x142f06(0x1c2)][_0x142f06(0xd5)](new Map()),this[_0x142f06(0x1c2)]['complete'](),this[_0x142f06(0xf9)]['next']([]),this[_0x142f06(0xf9)]['complete']();}[_0x2a6bec(0x143)](){const _0x4c88b6=_0x2a6bec;this[_0x4c88b6(0x1b8)]||(this[_0x4c88b6(0x1b8)]=!0x0,this[_0x4c88b6(0x2c1)]['sessionStatus$']['pipe'](_0x599c52[_0x4c88b6(0x1ef)](this[_0x4c88b6(0x332)]))['subscribe'](_0x532b58=>{const _0x3e5577=_0x4c88b6;_0x532b58===_0x3a040d[_0x3e5577(0x34b)][_0x3e5577(0x166)]?this[_0x3e5577(0x183)]():this['_toggleOffline']();}),this[_0x4c88b6(0x2c1)]['event$']['pipe'](_0x599c52[_0x4c88b6(0x1ef)](this[_0x4c88b6(0x332)]))[_0x4c88b6(0x250)](_0x954df5=>{const _0x3cba5e=_0x4c88b6,_0x138100=_0x954df5['eventID'];_0x138100===_0x12caed['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x3cba5e(0x30f)](_0x954df5),_0x138100===_0x12caed[_0x3cba5e(0x342)][_0x3cba5e(0x11c)]&&this[_0x3cba5e(0x350)](_0x954df5);}),this[_0x4c88b6(0xe0)](),this[_0x4c88b6(0x133)](this['_commandService'][_0x4c88b6(0x19c)](_0x7a3c70=>{const _0xbaddc2=_0x4c88b6;if(this[_0xbaddc2(0x28c)]&&_0x7a3c70['id']===_0x51eb6e[_0xbaddc2(0x17c)]['id']&&_0x7a3c70['params'][_0xbaddc2(0x24b)]===this['unitID']){const _0x17151a=_0x7a3c70[_0xbaddc2(0x33d)];this[_0xbaddc2(0x1ec)](_0x17151a[_0xbaddc2(0x125)],_0x17151a['selections'][0x0]);}})));}[_0x2a6bec(0x30f)](_0x285b35){const _0x5b711=_0x2a6bec;var _0x17157d,_0x327aeb;const {memberID:_0x1141d1,selection:_0x110d4e}=_0x285b35['data'],{sheetName:_0x56720e,range:_0xec3c53}=_0x2ce579[_0x5b711(0x2aa)](_0x110d4e),_0x2ffada={'name':(_0x327aeb=(_0x17157d=this['_memberService'][_0x5b711(0x34e)](this[_0x5b711(0x31f)],_0x1141d1))==null?void 0x0:_0x17157d[_0x5b711(0x200)])!=null?_0x327aeb:_0x5b711(0x31c),'range':this['_getMergeRange'](_0x56720e,_0xec3c53),'sheetID':_0x56720e,'color':this[_0x5b711(0x1c6)][_0x5b711(0x2cb)](_0x1141d1),'selection':_0x110d4e},_0x41217a=this[_0x5b711(0x327)];_0x41217a[_0x5b711(0x1bd)](_0x1141d1,_0x2ffada),this[_0x5b711(0x1c2)][_0x5b711(0xd5)](_0x41217a);}['_onCursorDelete'](_0x1fa035){const _0x289b2c=_0x2a6bec,{memberID:_0x10fce7}=_0x1fa035[_0x289b2c(0x190)],_0x38c344=this['cursorInfo'];_0x38c344['delete'](_0x10fce7),this['_cursorInfo$']['next'](_0x38c344);}[_0x2a6bec(0x2b7)](_0x55e6d1,_0x5b2c8b){const _0x199793=_0x2a6bec;var _0x8cd400,_0x223f9c;const _0x5423c7=(_0x223f9c=(_0x8cd400=this[_0x199793(0x18e)][_0x199793(0xf1)](this[_0x199793(0x31f)]))==null?void 0x0:_0x8cd400[_0x199793(0x2f0)](_0x55e6d1))==null?void 0x0:_0x223f9c[_0x199793(0x257)]();return(_0x5423c7==null?void 0x0:_0x5423c7['find'](_0x2aab29=>_0x42e0e7[_0x199793(0x2d0)][_0x199793(0x2bd)](_0x2aab29,_0x5b2c8b)))||_0x5b2c8b;}[_0x2a6bec(0xe0)](){const _0x5c0a01=_0x2a6bec,_0x44f131=new _0x42e0e7[(_0x5c0a01(0x1ea))](),_0x4a07bf=_0x8d84e(),_0x379c86=()=>{const _0xbf89f0=_0x5c0a01;_0x44f131['dispose']();const _0xc246f6=(_0x5b45e4,_0x258134,_0x4cbd36,_0x56aa84)=>{const _0x53201a=_0x5997;let _0xb2cd07=[];switch(_0x5b45e4['id']){case _0x51eb6e[_0x53201a(0x27a)]['DeleteRangeMoveLeftCommandId']:{_0xb2cd07=_0x51eb6e[_0x53201a(0x223)](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0xb2cd07=_0x51eb6e[_0x53201a(0x357)](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)][_0x53201a(0x312)]:{_0xb2cd07=_0x51eb6e['handleInsertCol'](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)][_0x53201a(0x234)]:{_0xb2cd07=_0x51eb6e[_0x53201a(0x242)](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)][_0x53201a(0x132)]:{_0xb2cd07=_0x51eb6e[_0x53201a(0x205)](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)][_0x53201a(0x335)]:{_0xb2cd07=_0x51eb6e['handleInsertRow'](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)]['MoveRangeCommandId']:{_0xb2cd07=_0x51eb6e[_0x53201a(0x266)](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e[_0x53201a(0x27a)]['RemoveColCommandId']:{_0xb2cd07=_0x51eb6e['handleIRemoveCol'](_0x5b45e4,_0x56aa84);break;}case _0x51eb6e['EffectRefRangId'][_0x53201a(0x188)]:{_0xb2cd07=_0x51eb6e['handleIRemoveRow'](_0x5b45e4,_0x56aa84);break;}}const _0x100b71=_0x51eb6e[_0x53201a(0x163)](_0xb2cd07,_0x56aa84),_0x4b74d3=this[_0x53201a(0x327)][_0x53201a(0x24f)](_0x258134);if(_0x4b74d3&&_0x100b71){const _0x311077={..._0x4b74d3,'range':_0x100b71};this[_0x53201a(0x327)][_0x53201a(0x1bd)](_0x258134,_0x311077),_0x4a07bf(()=>{const _0x103007=_0x53201a,_0x1f1752=this[_0x103007(0x217)][_0x103007(0x1be)](_0x100b71,_0x3f9629=>(_0x1f1752['dispose'](),_0xc246f6(_0x3f9629,_0x258134,_0x4cbd36,_0x100b71)));_0x44f131[_0x103007(0x279)](_0x1f1752);});}return{'redos':[],'undos':[]};};this[_0xbf89f0(0x327)][_0xbf89f0(0xe6)]((_0x2749ee,_0x5c022f)=>{const _0x118fc5=_0xbf89f0,{range:_0x5dd791,sheetID:_0x2d3ae3}=_0x2749ee,_0x3657dc=this[_0x118fc5(0x217)][_0x118fc5(0x1be)](_0x5dd791,_0x4778d4=>(_0x3657dc['dispose'](),_0xc246f6(_0x4778d4,_0x5c022f,_0x2d3ae3,_0x5dd791)));_0x44f131['add'](_0x3657dc);});};this[_0x5c0a01(0x133)](_0x42e0e7['toDisposable'](this[_0x5c0a01(0x1c2)][_0x5c0a01(0x250)](()=>{_0x379c86();})));}[_0x2a6bec(0x183)](){const _0x11584e=_0x2a6bec;var _0x2aa901,_0x1c5fb9;if(this[_0x11584e(0x28c)]=!0x0,((_0x2aa901=this[_0x11584e(0x18e)][_0x11584e(0x173)]())==null?void 0x0:_0x2aa901[_0x11584e(0x225)]())!==this[_0x11584e(0x31f)])return;const _0x55d6c4=(_0x1c5fb9=this['_injector'][_0x11584e(0x24f)](_0x51eb6e[_0x11584e(0x1a7)])['getCurrentSelections']())==null?void 0x0:_0x1c5fb9[0x0],_0x288af6=this[_0x11584e(0x18e)][_0x11584e(0x1ce)](_0x42e0e7[_0x11584e(0x129)][_0x11584e(0x19b)])[_0x11584e(0x2e4)]();_0x55d6c4&&_0x288af6&&this[_0x11584e(0x1ec)](_0x288af6['getSheetId'](),_0x55d6c4);}[_0x2a6bec(0x238)](){const _0x1afc8b=_0x2a6bec;this[_0x1afc8b(0x28c)]=!0x1;}};_0x12fece=_0x3e0a11([_0x27539a(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x1ca)])),_0x27539a(0x3,_0x42e0e7[_0x2a6bec(0x14e)](_0x1ee3e1)),_0x27539a(0x4,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x272)])),_0x27539a(0x5,_0x42e0e7[_0x2a6bec(0x15e)]),_0x27539a(0x6,_0x42e0e7[_0x2a6bec(0x1d9)]),_0x27539a(0x7,_0x42e0e7[_0x2a6bec(0x14e)](_0x51eb6e[_0x2a6bec(0x15f)]))],_0x12fece);var _0x5e30df=Object[_0x2a6bec(0x333)],_0x2d4482=(_0xc43a3c,_0x3e533d,_0x354262,_0x5dc329)=>{const _0xf5b810=_0x2a6bec;for(var _0x3d610e=_0x5dc329>0x1?void 0x0:_0x5dc329?_0x5e30df(_0x3e533d,_0x354262):_0x3e533d,_0x466bb7=_0xc43a3c[_0xf5b810(0x1ad)]-0x1,_0x5534cb;_0x466bb7>=0x0;_0x466bb7--)(_0x5534cb=_0xc43a3c[_0x466bb7])&&(_0x3d610e=_0x5534cb(_0x3d610e)||_0x3d610e);return _0x3d610e;},_0x4d9ec5=(_0x1551ef,_0x722063)=>(_0xa37c0f,_0x5e52cd)=>_0x722063(_0xa37c0f,_0x5e52cd,_0x1551ef);let _0x465ed4=class extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(_0x571329,_0x1c1e1d,_0x291520){const _0x4daf1f=_0x2a6bec;super(),_0x7f0de7(this,_0x4daf1f(0xe9),new Map()),_0x7f0de7(this,'_entityInit$',new _0x599c52[(_0x4daf1f(0x140))]()),(this['_univerInstanceService']=_0x571329,this['_injector']=_0x1c1e1d,this[_0x4daf1f(0x1b5)]=_0x291520,this['_init']());}[_0x2a6bec(0x336)](){const _0x2d1a6b=_0x2a6bec;super[_0x2d1a6b(0x336)](),this[_0x2d1a6b(0xed)][_0x2d1a6b(0x104)](),this['_entities'][_0x2d1a6b(0xe6)](_0x33ad80=>_0x33ad80[_0x2d1a6b(0x336)]());}[_0x2a6bec(0x25f)](_0x4fdd5e){const _0x11623a=_0x2a6bec;return this[_0x11623a(0xe9)][_0x11623a(0x297)](_0x4fdd5e)?this[_0x11623a(0xe9)][_0x11623a(0x24f)](_0x4fdd5e)[_0x11623a(0xd6)]:this['_entityInit$'][_0x11623a(0x27f)](_0x599c52[_0x11623a(0x18a)](_0x44bd3b=>_0x44bd3b[_0x11623a(0x31f)]===_0x4fdd5e),_0x599c52[_0x11623a(0x2c6)](_0x53c7ba=>_0x53c7ba['cursorInfo$']));}['_init'](){const _0x480399=_0x2a6bec;this[_0x480399(0x18e)][_0x480399(0x2df)](_0x42e0e7[_0x480399(0x129)][_0x480399(0x19b)])['pipe'](_0x599c52['takeUntil'](this['dispose$']))['subscribe'](async _0x4eca2a=>{const _0x449a6a=_0x480399,_0x24c6ea=_0x4eca2a['getUnitId'](),_0x58153d=await this[_0x449a6a(0x33f)](_0x24c6ea);this[_0x449a6a(0xed)]['next'](_0x58153d),this[_0x449a6a(0xe9)][_0x449a6a(0x1bd)](_0x24c6ea,_0x58153d);}),this[_0x480399(0x18e)][_0x480399(0x2df)](_0x42e0e7['UniverInstanceType'][_0x480399(0x2f3)])[_0x480399(0x27f)](_0x599c52[_0x480399(0x1ef)](this[_0x480399(0x332)]))['pipe'](_0x599c52[_0x480399(0x18a)](_0x464161=>!_0x464161[_0x480399(0x225)]()[_0x480399(0x127)]('__')))[_0x480399(0x250)](async _0x25e66d=>{const _0x1f116c=_0x480399,_0x1f9c71=_0x25e66d[_0x1f116c(0x225)](),_0x3e0daa=await this[_0x1f116c(0x14a)](_0x1f9c71);this[_0x1f116c(0xed)]['next'](_0x3e0daa),this[_0x1f116c(0xe9)][_0x1f116c(0x1bd)](_0x1f9c71,_0x3e0daa);}),_0x599c52[_0x480399(0xfe)](this[_0x480399(0x18e)]['getTypeOfUnitDisposed$'](_0x42e0e7['UniverInstanceType'][_0x480399(0x2f3)]),this[_0x480399(0x18e)][_0x480399(0x103)](_0x42e0e7[_0x480399(0x129)][_0x480399(0x19b)]))['pipe'](_0x599c52[_0x480399(0x1ef)](this[_0x480399(0x332)]))['subscribe'](_0x5d4bb9=>{const _0x53f266=_0x480399,_0x3aab42=_0x5d4bb9['getUnitId'](),_0x57661e=this['_entities']['get'](_0x3aab42);_0x57661e&&(_0x57661e[_0x53f266(0x336)](),this[_0x53f266(0xe9)][_0x53f266(0x12f)](_0x3aab42));});}async[_0x2a6bec(0x33f)](_0xee3547){const _0x39157d=_0x2a6bec,_0x3f2760=await this[_0x39157d(0x1b5)][_0x39157d(0x30a)](_0xee3547),_0x49a8da=this[_0x39157d(0x33b)]['createInstance'](_0x12fece,_0xee3547,_0x3f2760);return _0x49a8da[_0x39157d(0x143)](),_0x49a8da;}async[_0x2a6bec(0x14a)](_0x18626f){const _0x55b295=_0x2a6bec,_0x538ef0=await this['_collabSessionService'][_0x55b295(0x30a)](_0x18626f),_0x222dc1=this[_0x55b295(0x33b)][_0x55b295(0x28b)](_0x41a8eb,_0x18626f,_0x538ef0);return _0x222dc1[_0x55b295(0x143)](),_0x222dc1;}};_0x465ed4=_0x2d4482([_0x4d9ec5(0x0,_0x42e0e7[_0x2a6bec(0x15e)]),_0x4d9ec5(0x1,_0x42e0e7['Inject'](_0x42e0e7[_0x2a6bec(0x1ca)])),_0x4d9ec5(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x233)]))],_0x465ed4);const _0x5a55c0=0x14,_0x1d5609=0xc8,_0x1bd5dc=0x4,_0x216d78=0x5;function _0x3d420f(_0x12f019,_0x1620e4){const _0x50e0ee=_0x2a6bec;let {radius:_0x4c3c83,width:_0x2d1ab6,height:_0x549e07}=_0x1620e4;_0x4c3c83=_0x4c3c83!=null?_0x4c3c83:0x0,_0x2d1ab6=_0x2d1ab6!=null?_0x2d1ab6:0x1e,_0x549e07=_0x549e07!=null?_0x549e07:0x1e;let _0x59a7ce=0x0,_0x480064=0x0,_0x688c00=0x0;_0x59a7ce=_0x480064=_0x688c00=Math['min'](_0x4c3c83,_0x2d1ab6/0x2,_0x549e07/0x2),_0x12f019[_0x50e0ee(0x15a)](),_0x12f019[_0x50e0ee(0x228)](_0x59a7ce,0x0),_0x12f019[_0x50e0ee(0x176)](_0x2d1ab6-_0x480064,0x0),_0x12f019[_0x50e0ee(0x20e)](_0x2d1ab6-_0x480064,_0x480064,_0x480064,Math['PI']*0x3/0x2,0x0,!0x1),_0x12f019['lineTo'](_0x2d1ab6,_0x549e07-_0x688c00),_0x12f019[_0x50e0ee(0x20e)](_0x2d1ab6-_0x688c00,_0x549e07-_0x688c00,_0x688c00,0x0,Math['PI']/0x2,!0x1),_0x12f019[_0x50e0ee(0x176)](0x0,_0x549e07),_0x12f019[_0x50e0ee(0x176)](0x0,_0x59a7ce),_0x12f019['arc'](_0x59a7ce,_0x59a7ce,_0x59a7ce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x12f019['closePath'](),_0x1620e4['fill']&&(_0x12f019[_0x50e0ee(0x2ea)](),_0x12f019['fillStyle']=_0x1620e4[_0x50e0ee(0x2a9)],_0x1620e4[_0x50e0ee(0x359)]===_0x50e0ee(0x1c7)?_0x12f019[_0x50e0ee(0x2a9)](_0x50e0ee(0x1c7)):_0x12f019[_0x50e0ee(0x2a9)](),_0x12f019[_0x50e0ee(0x1e1)]());}class _0x5b4809 extends _0x5af10f[_0x2a6bec(0x307)]{constructor(_0xf05d93,_0x1508df){const _0x21c98e=_0x2a6bec;super(_0xf05d93,_0x1508df),_0x7f0de7(this,_0x21c98e(0x1d2)),_0x7f0de7(this,_0x21c98e(0x207)),(this['color']=_0x1508df==null?void 0x0:_0x1508df['color'],this[_0x21c98e(0x207)]=_0x1508df==null?void 0x0:_0x1508df[_0x21c98e(0x207)]);}static['drawWith'](_0x5d696c,_0x3da725){const _0x44589c=_0x2a6bec,{text:_0x555631,color:_0x4b55e2}=_0x3da725;_0x5d696c[_0x44589c(0x2ea)](),_0x5d696c[_0x44589c(0xf3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1ff16d=_0x5d696c[_0x44589c(0x271)](_0x555631)[_0x44589c(0x224)],_0x16a760=Math[_0x44589c(0x280)](_0x1ff16d+0x2*_0x1bd5dc,_0x1d5609);_0x3d420f(_0x5d696c,{'height':_0x5a55c0,'radius':0x4,'width':_0x16a760,'fill':_0x4b55e2}),_0x5d696c[_0x44589c(0x2f4)]=_0x44589c(0x360);const _0x138cc9=_0x1bd5dc,_0x331309=_0x5a55c0-_0x216d78,_0xf66de7=_0x1d5609-0x2*_0x1bd5dc;if(_0x1ff16d>_0xf66de7){let _0x2996a0='',_0x43e76f=0x0;for(const _0x42df2d of _0x555631){const _0x3dd5d1=_0x5d696c[_0x44589c(0x271)](_0x42df2d)['width'];if(_0x43e76f+_0x3dd5d1<=_0xf66de7-_0x5d696c['measureText'](_0x44589c(0x1a4))['width'])_0x2996a0+=_0x42df2d,_0x43e76f+=_0x3dd5d1;else{_0x2996a0+='...';break;}}_0x5d696c[_0x44589c(0x2be)](_0x2996a0,_0x138cc9,_0x331309);}else _0x5d696c[_0x44589c(0x2be)](_0x555631,_0x138cc9,_0x331309);_0x5d696c[_0x44589c(0x1e1)]();}[_0x2a6bec(0x19e)](_0x591569){const _0x53fd2a=_0x2a6bec;_0x5b4809[_0x53fd2a(0x1e7)](_0x591569,this);}}const _0x1a07b6=_0x2a6bec(0x25a),_0x2f4035=_0x2a6bec(0x330),_0x4b7160=_0x2a6bec(0x1c4),_0xc935d6=0x6,_0x6caf17=1.5,_0x16b61b=0x4,_0x5d45b7=1.5,_0xe711db='rgba(255,\x20255,\x20255,\x200.01)';class _0x20276e{constructor(_0x4cfb61,_0x157bae,_0x4ba749,_0x5ce1c9){const _0x4168d0=_0x2a6bec;_0x7f0de7(this,'_shapes',[]),_0x7f0de7(this,'_anchor',null),_0x7f0de7(this,_0x4168d0(0x248),null),_0x7f0de7(this,_0x4168d0(0x249),null),_0x7f0de7(this,'_hideTimer',null),_0x7f0de7(this,'_eventUnsubscribe',null),(this[_0x4168d0(0x1b3)]=_0x4cfb61,this[_0x4168d0(0x13f)]=_0x157bae,this['_docSkeleton']=_0x4ba749,this[_0x4168d0(0x1c8)]=_0x5ce1c9,this['_render']());}set[_0x2a6bec(0x13e)](_0x33b654){const _0x59aa43=_0x2a6bec;_0x33b654?(this[_0x59aa43(0x249)]&&this['_anchorDot'][_0x59aa43(0x294)](),this[_0x59aa43(0x248)]&&this[_0x59aa43(0x248)][_0x59aa43(0x1a0)]()):(this[_0x59aa43(0x249)]&&this['_anchorDot'][_0x59aa43(0x1a0)](),this[_0x59aa43(0x248)]&&this['_textBubble'][_0x59aa43(0x294)]());}[_0x2a6bec(0x336)](){const _0x372c6a=_0x2a6bec;for(const _0x583a3d of this['_shapes'])_0x583a3d[_0x372c6a(0x336)]();this[_0x372c6a(0x248)]&&this[_0x372c6a(0x248)][_0x372c6a(0x336)](),this[_0x372c6a(0x249)]&&this[_0x372c6a(0x249)][_0x372c6a(0x336)](),this[_0x372c6a(0x185)]&&this[_0x372c6a(0x185)][_0x372c6a(0x336)](),this['_eventUnsubscribe']&&this[_0x372c6a(0x311)]();}[_0x2a6bec(0x1c0)](){const _0x460d5a=_0x2a6bec;var _0x5d7e1f;const {_docSkeleton:_0x542502,_document:_0x23a268}=this,{color:_0x253cab,name:_0x1821f1,ranges:_0x343c93}=this['_cursor'],_0x3b2581=_0x23a268['getOffsetConfig'](),{docsLeft:_0x278e06,docsTop:_0x36d583}=_0x3b2581,_0x2ca91c=new _0x116ef8[(_0x460d5a(0x241))](_0x3b2581,_0x542502);for(const {startOffset:_0x127208,endOffset:_0x388e68,rangeType:_0x3c27bd,segmentId:_0xde17d2,segmentPage:_0x471da7,collapsed:_0x3b4858,isActive:_0xf766b0}of _0x343c93){const _0x14252f=_0x542502[_0x460d5a(0x2a0)](_0x127208,!0x0,_0xde17d2,_0x471da7);let _0x2931c8=_0x542502[_0x460d5a(0x2a0)](_0x388e68,!0x0,_0xde17d2,_0x471da7);if(_0x2931c8==null&&(_0x2931c8=_0x542502['findNodePositionByCharIndex'](_0x388e68-0x1,!0x1,_0xde17d2,_0x471da7)),_0xf766b0){const {contentBoxPointGroup:_0x4e764c}=_0x2ca91c[_0x460d5a(0x298)](_0x2931c8,_0x2931c8);if(_0x4e764c[_0x460d5a(0x1ad)]===0x0)continue;this['_drawAnchor'](_0x253cab,_0x4e764c,_0x278e06,_0x36d583,_0x1821f1),this[_0x460d5a(0x311)]=this[_0x460d5a(0x347)]();}if(_0x14252f&&_0x2931c8){if(_0x3c27bd===_0x42e0e7[_0x460d5a(0x1b0)][_0x460d5a(0x146)]){const _0x2f9690=new _0x116ef8['NodePositionConvertToRectRange'](_0x3b2581,_0x542502),{pointGroup:_0x3065a3}=(_0x5d7e1f=_0x2f9690['getRangePointData'](_0x14252f,_0x2931c8))!=null?_0x5d7e1f:{};if(_0x3065a3==null||_0x3065a3[_0x460d5a(0x1ad)]===0x0)continue;this[_0x460d5a(0x30d)](_0x253cab,_0x3065a3,_0x278e06,_0x36d583);}else{if(!_0x3b4858){const {borderBoxPointGroup:_0x444152}=_0x2ca91c[_0x460d5a(0x298)](_0x14252f,_0x2931c8);if(_0x444152[_0x460d5a(0x1ad)]===0x0)continue;this[_0x460d5a(0x2d9)](_0x253cab,_0x444152,_0x278e06,_0x36d583);}}}}}[_0x2a6bec(0x348)](_0x2511a0,_0x5a864c,_0x2d77e9,_0x30b06f,_0x3011c1){const _0xb991c2=_0x2a6bec,_0x1a1d40=this['_getAnchorBounding'](_0x5a864c),{left:_0x386b64,top:_0x2a840b,height:_0x42ad32}=_0x1a1d40,_0x875652=this[_0xb991c2(0x192)](),_0x38cb72=_0x5d45b7/_0x875652,_0x30205e=new _0x5af10f['Rect'](_0x1a07b6+_0x42e0e7[_0xb991c2(0x339)][_0xb991c2(0x1fc)](_0xc935d6),{'left':_0x386b64+_0x2d77e9-_0x38cb72,'top':_0x2a840b+_0x30b06f,'height':_0x42ad32,'width':_0x6caf17,'fill':_0x2511a0||_0x5af10f[_0xb991c2(0x23b)](_0x42e0e7[_0xb991c2(0xea)]['black'],0x0),'strokeWidth':_0x38cb72,'stroke':_0xe711db,'evented':!0x0});this['_anchor']=_0x30205e,this[_0xb991c2(0x13f)][_0xb991c2(0x1a9)](_0x30205e,_0x116ef8[_0xb991c2(0x24e)]);const _0x56a71d=new _0x5af10f['Rect'](_0x1a07b6+_0x42e0e7[_0xb991c2(0x339)][_0xb991c2(0x1fc)](_0xc935d6),{'left':_0x386b64+_0x2d77e9-_0x38cb72,'top':_0x2a840b+_0x30b06f-_0x16b61b/0x2,'height':_0x16b61b,'width':_0x16b61b,'fill':_0x2511a0||_0x5af10f[_0xb991c2(0x23b)](_0x42e0e7[_0xb991c2(0xea)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2511a0||_0x5af10f[_0xb991c2(0x23b)](_0x42e0e7['COLORS'][_0xb991c2(0x33e)],0x0),'evented':!0x1});this[_0xb991c2(0x249)]=_0x56a71d,this[_0xb991c2(0x13f)]['addObject'](_0x56a71d,_0x116ef8[_0xb991c2(0x24e)]);const _0x20556d=new _0x5b4809(_0x1a07b6+_0x42e0e7[_0xb991c2(0x339)][_0xb991c2(0x1fc)](_0xc935d6),{'left':_0x386b64+_0x2d77e9-_0x38cb72,'top':_0x2a840b+_0x30b06f-_0x5a55c0,'text':_0x3011c1,'color':_0x2511a0});this[_0xb991c2(0x248)]=_0x20556d,this[_0xb991c2(0x13f)][_0xb991c2(0x1a9)](_0x20556d,_0x116ef8[_0xb991c2(0x24e)]),this['_hover']=!0x1;}[_0x2a6bec(0x347)](){const _0x40bc7d=_0x2a6bec,_0x41502d=this['_anchor'][_0x40bc7d(0x1c5)][_0x40bc7d(0x2ca)](()=>{const _0x382857=_0x40bc7d;this[_0x382857(0x13e)]=!0x0;}),_0x48ab25=this[_0x40bc7d(0x185)][_0x40bc7d(0x2b3)][_0x40bc7d(0x2ca)](()=>{const _0x2a24d6=_0x40bc7d;this[_0x2a24d6(0x25d)]&&clearTimeout(this[_0x2a24d6(0x25d)]),this['_hideTimer']=setTimeout(()=>{const _0x157dd5=_0x2a24d6;this[_0x157dd5(0x13e)]=!0x1;},0x7d0);});return()=>{const _0x2dfcf8=_0x40bc7d;_0x41502d[_0x2dfcf8(0x27e)](),_0x48ab25[_0x2dfcf8(0x27e)]();};}[_0x2a6bec(0x2d9)](_0x21078b,_0x5e81b5,_0x226b88,_0x4220a9){const _0x4631cd=_0x2a6bec,_0xed9339=new _0x42e0e7[(_0x4631cd(0x2d6))](_0x21078b)[_0x4631cd(0x2e7)](0.2)[_0x4631cd(0x33a)](),_0x45b8ef=new _0x5af10f[(_0x4631cd(0x284))](_0x2f4035+_0x42e0e7[_0x4631cd(0x339)][_0x4631cd(0x1fc)](_0xc935d6),{'pointsGroup':_0x5e81b5,'fill':_0xed9339||_0x5af10f[_0x4631cd(0x23b)](_0x42e0e7[_0x4631cd(0xea)][_0x4631cd(0x33e)],0.2),'left':_0x226b88,'top':_0x4220a9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4631cd(0x26f)][_0x4631cd(0x24c)](_0x45b8ef),this[_0x4631cd(0x13f)][_0x4631cd(0x1a9)](_0x45b8ef,_0x116ef8[_0x4631cd(0x24e)]);}[_0x2a6bec(0x30d)](_0x23584a,_0x42d7d2,_0x70e0,_0x43f137){const _0x3b8453=_0x2a6bec,_0x1fa58b=new _0x42e0e7[(_0x3b8453(0x2d6))](_0x23584a)[_0x3b8453(0x2e7)](0.2)[_0x3b8453(0x33a)](),_0x5038d9=new _0x5af10f['RegularPolygon'](_0x4b7160+_0x42e0e7[_0x3b8453(0x339)][_0x3b8453(0x1fc)](_0xc935d6),{'pointsGroup':_0x42d7d2,'fill':_0x1fa58b||_0x5af10f[_0x3b8453(0x23b)](_0x42e0e7[_0x3b8453(0xea)][_0x3b8453(0x33e)],0.2),'left':_0x70e0,'top':_0x43f137,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3b8453(0x26f)][_0x3b8453(0x24c)](_0x5038d9),this[_0x3b8453(0x13f)][_0x3b8453(0x1a9)](_0x5038d9,_0x116ef8[_0x3b8453(0x24e)]);}[_0x2a6bec(0x14d)](_0x66e7c3){const _0x5ec795=_0x66e7c3[0x0],_0x32af6d=_0x5ec795[0x0],_0x2811d4=_0x5ec795[0x2],{x:_0x369038,y:_0x2e132c}=_0x32af6d,{x:_0x2883c9,y:_0x4d0480}=_0x2811d4;return{'left':_0x369038,'top':_0x2e132c,'width':_0x2883c9-_0x369038,'height':_0x4d0480-_0x2e132c};}[_0x2a6bec(0x192)](){const _0x2b80eb=_0x2a6bec,{scaleX:_0x3df64d,scaleY:_0x314881}=this['_scene'][_0x2b80eb(0x151)]();return Math[_0x2b80eb(0x33c)](_0x3df64d,_0x314881);}}var _0x1811e7=Object[_0x2a6bec(0x333)],_0x1daf4e=(_0x363f8c,_0x437238,_0x332f6e,_0x1f24c1)=>{const _0x4af95c=_0x2a6bec;for(var _0xfbfd=_0x1f24c1>0x1?void 0x0:_0x1f24c1?_0x1811e7(_0x437238,_0x332f6e):_0x437238,_0x481e08=_0x363f8c[_0x4af95c(0x1ad)]-0x1,_0x445d39;_0x481e08>=0x0;_0x481e08--)(_0x445d39=_0x363f8c[_0x481e08])&&(_0xfbfd=_0x445d39(_0xfbfd)||_0xfbfd);return _0xfbfd;},_0x3f122b=(_0x507322,_0x58df63)=>(_0x432b44,_0x3c0751)=>_0x58df63(_0x432b44,_0x3c0751,_0x507322);let _0x28e886=class extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(_0x385987,_0x6bbd95,_0x3037ed,_0x3f2657,_0x225119){const _0x23d3b6=_0x2a6bec;super(),_0x7f0de7(this,'_cursorShapes',[]),_0x7f0de7(this,_0x23d3b6(0x15b),[]),(this[_0x23d3b6(0x2e8)]=_0x385987,this[_0x23d3b6(0x32b)]=_0x6bbd95,this[_0x23d3b6(0x100)]=_0x3037ed,this['_commandService']=_0x3f2657,this[_0x23d3b6(0x329)]=_0x225119,this[_0x23d3b6(0x1b8)]());}[_0x2a6bec(0x1b8)](){const _0x493e90=_0x2a6bec,_0x45ba51=this[_0x493e90(0x2e8)][_0x493e90(0x24b)],_0x444eb3=this[_0x493e90(0x32b)];this[_0x493e90(0x133)](_0x599c52['combineLatest']([this['_collabCursorController'][_0x493e90(0x25f)](_0x45ba51),this[_0x493e90(0x329)][_0x493e90(0x23c)]])[_0x493e90(0x27f)](_0xaa0c1c[_0x493e90(0x324)](([_0x6b0ec9,_0x4df7be])=>({'skeleton':_0x444eb3[_0x493e90(0x113)](),'cursors':[..._0x6b0ec9[_0x493e90(0x13a)]()][_0x493e90(0x19f)](_0x5be41e=>({..._0x5be41e,'color':_0x4df7be[_0x5be41e[_0x493e90(0x1d2)]]}))})))[_0x493e90(0x250)](_0xef2793=>{const _0x5b7d9a=_0x493e90;if(this[_0x5b7d9a(0x2e0)](),_0xef2793){const {skeleton:_0x5dc9ee,cursors:_0x26da6a}=_0xef2793;this['_updateCollabCursors'](_0x5dc9ee,_0x26da6a);}})),this['_initResize'](),this[_0x493e90(0x180)]();}['_updateCollabCursors'](_0x5b49ed,_0x3e370f){const _0x3d1560=_0x2a6bec,{scene:_0x95d7ff,mainComponent:_0x1eb00b}=this[_0x3d1560(0x2e8)],_0x95d2f1=_0x3e370f['map'](_0x2fbb72=>new _0x20276e(_0x2fbb72,_0x95d7ff,_0x5b49ed,_0x1eb00b));this['_cursorShapes']=_0x95d2f1,this[_0x3d1560(0x15b)]=_0x3e370f;}[_0x2a6bec(0x206)](){const _0x7cb380=_0x2a6bec;this['_removeCollabCursors']();const {scene:_0x28eac0,mainComponent:_0x170733}=this[_0x7cb380(0x2e8)],_0xe6b6c6=this[_0x7cb380(0x32b)][_0x7cb380(0x113)](),_0x320652=this[_0x7cb380(0x15b)][_0x7cb380(0x324)](_0x368e34=>new _0x20276e(_0x368e34,_0x28eac0,_0xe6b6c6,_0x170733));this[_0x7cb380(0x211)]=_0x320652;}[_0x2a6bec(0x2e0)](){const _0x213991=_0x2a6bec;this[_0x213991(0x211)][_0x213991(0xe6)](_0x2c60af=>_0x2c60af['dispose']()),this[_0x213991(0x211)]=[];}[_0x2a6bec(0x180)](){const _0x11f879=_0x2a6bec,_0x40b3a1=[_0x116ef8[_0x11f879(0x318)]['id']];this['disposeWithMe'](this[_0x11f879(0x34f)]['onCommandExecuted'](_0x283219=>{const _0x40f4a0=_0x11f879;_0x40b3a1[_0x40f4a0(0x1cc)](_0x283219['id'])&&_0x283219[_0x40f4a0(0x33d)][_0x40f4a0(0x24b)]===this[_0x40f4a0(0x2e8)][_0x40f4a0(0x24b)]&&this['_refreshCollabCursors']();}));}[_0x2a6bec(0x2c9)](){const _0x388a76=_0x2a6bec;this[_0x388a76(0x133)](_0x42e0e7[_0x388a76(0x18c)](this['_context'][_0x388a76(0x13c)]['onTransformChange$'])[_0x388a76(0x27f)](_0xaa0c1c[_0x388a76(0x18a)](_0x44a8e8=>_0x44a8e8[_0x388a76(0xd4)]===_0x5af10f['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x388a76(0x337)]),_0xaa0c1c['throttleTime'](0x10))[_0x388a76(0x250)](()=>{const _0x35b49a=_0x388a76;this[_0x35b49a(0x206)]();}));}};_0x28e886=_0x1daf4e([_0x3f122b(0x1,_0x42e0e7['Inject'](_0x5c07ea[_0x2a6bec(0x1f8)])),_0x3f122b(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x465ed4)),_0x3f122b(0x3,_0x42e0e7['ICommandService']),_0x3f122b(0x4,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x175)]))],_0x28e886);const _0x17a968=0x1,_0x4ccfc7=1.5;class _0x2bc6e2 extends _0x5af10f[_0x2a6bec(0x307)]{constructor(_0x5ec987,_0xb3161f){const _0x274bde=_0x2a6bec;super(_0x5ec987,_0xb3161f),_0x7f0de7(this,_0x274bde(0x210)),_0x7f0de7(this,'_hovered',!0x1),_0x7f0de7(this,_0x274bde(0x1ab)),_0x7f0de7(this,_0x274bde(0x34d),''),_0x7f0de7(this,_0x274bde(0xe3),_0x274bde(0x144)),_0x7f0de7(this,_0x274bde(0x2af)),(_0xb3161f&&this[_0x274bde(0x235)](_0xb3161f),this[_0x274bde(0x1c5)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x274bde(0x2b3)]['subscribeEvent'](()=>this[_0x274bde(0x235)]({'hovered':!0x1})));}[_0x2a6bec(0x235)](_0x55eb27){const _0x77b1a=_0x2a6bec;var _0x27cd46,_0x4ceb92,_0x5b3693,_0x513f2d,_0x51b957,_0x2ae714;this[_0x77b1a(0x210)]=(_0x27cd46=_0x55eb27[_0x77b1a(0x1d2)])!=null?_0x27cd46:this['_color'],this['_hovered']=(_0x4ceb92=_0x55eb27['hovered'])!=null?_0x4ceb92:this[_0x77b1a(0x29e)],this[_0x77b1a(0x1ab)]=(_0x5b3693=_0x55eb27[_0x77b1a(0x275)])!=null?_0x5b3693:this[_0x77b1a(0x1ab)],this['_name']=(_0x513f2d=_0x55eb27[_0x77b1a(0x200)])!=null?_0x513f2d:this[_0x77b1a(0x34d)],this[_0x77b1a(0xe3)]=(_0x51b957=_0x55eb27['labelPosition'])!=null?_0x51b957:this[_0x77b1a(0xe3)],this[_0x77b1a(0x2af)]=(_0x2ae714=_0x55eb27[_0x77b1a(0x29b)])!=null?_0x2ae714:this[_0x77b1a(0x2af)],this['transformByState']({'width':_0x55eb27[_0x77b1a(0x224)],'height':_0x55eb27[_0x77b1a(0x2b1)]});}[_0x2a6bec(0x2c5)](_0x2dceae){const _0xe69310=_0x2a6bec,{row:_0x1595aa,column:_0x5e943e}=_0x2dceae;if(_0x1595aa>=this[_0xe69310(0x1ab)][_0xe69310(0x120)]&&_0x1595aa<=this['_range'][_0xe69310(0x102)]&&_0x5e943e>=this[_0xe69310(0x1ab)][_0xe69310(0x13b)]&&_0x5e943e<=this['_range']['endColumn']){this[_0xe69310(0x235)]({'hovered':!0x0});return;}this[_0xe69310(0x235)]({'hovered':!0x1});}[_0x2a6bec(0x1af)](_0x4d67df){return!0x1;}[_0x2a6bec(0x19e)](_0x3d8658){const _0x85728f=_0x2a6bec;_0x5af10f['Rect']['drawWith'](_0x3d8658,{'width':this['width'],'height':this[_0x85728f(0x2b1)],'strokeWidth':_0x4ccfc7,'stroke':this[_0x85728f(0x210)],'evented':!0x1,'fill':this[_0x85728f(0x2af)]}),this[_0x85728f(0x29e)]&&(_0x3d8658[_0x85728f(0x2ea)](),_0x3d8658['transform'](0x1,0x0,0x0,0x1,this[_0x85728f(0x224)],this[_0x85728f(0xe3)]===_0x85728f(0x351)?0x0:-0x14),_0x5b4809[_0x85728f(0x1e7)](_0x3d8658,{'text':this['_name'],'color':this[_0x85728f(0x210)]}),_0x3d8658[_0x85728f(0x1e1)]());}}var _0x26fb2d=Object['getOwnPropertyDescriptor'],_0x40e29b=(_0x237562,_0x2dadec,_0x14b87b,_0x51a30d)=>{for(var _0x529d88=_0x51a30d>0x1?void 0x0:_0x51a30d?_0x26fb2d(_0x2dadec,_0x14b87b):_0x2dadec,_0x131ad5=_0x237562['length']-0x1,_0x4ddf3b;_0x131ad5>=0x0;_0x131ad5--)(_0x4ddf3b=_0x237562[_0x131ad5])&&(_0x529d88=_0x4ddf3b(_0x529d88)||_0x529d88);return _0x529d88;},_0x27ab4d=(_0x3c8aa7,_0x2a9689)=>(_0x5e8085,_0x4b5c02)=>_0x2a9689(_0x5e8085,_0x4b5c02,_0x3c8aa7);const _0x289d1f=0x1389;let _0x21a66f=class extends _0x42e0e7[_0x2a6bec(0x191)]{constructor(_0xb05f,_0x270bbb,_0x46e53d,_0x21f7eb){const _0x29580b=_0x2a6bec;super(),_0x7f0de7(this,'_cursors',new Set()),_0x7f0de7(this,_0x29580b(0x187),null),(this[_0x29580b(0x2e8)]=_0xb05f,this[_0x29580b(0x101)]=_0x270bbb,this[_0x29580b(0x100)]=_0x46e53d,this[_0x29580b(0x329)]=_0x21f7eb,this[_0x29580b(0x1b8)]());}[_0x2a6bec(0x1b8)](){const _0x169ae5=_0x2a6bec;this['_sheetSkeletonManagerService'][_0x169ae5(0xd0)]['pipe'](_0xaa0c1c[_0x169ae5(0x1ef)](this[_0x169ae5(0x332)]),_0xaa0c1c[_0x169ae5(0x2c6)](_0x2ac7fe=>{const _0x1e81c0=_0x169ae5;if(_0x2ac7fe){const _0x3ab2f1=_0x2ac7fe['sheetId'];return _0x599c52['combineLatest'](this[_0x1e81c0(0x100)][_0x1e81c0(0x25f)](this[_0x1e81c0(0x2e8)][_0x1e81c0(0x24b)]),this[_0x1e81c0(0x329)][_0x1e81c0(0x23c)])['pipe'](_0xaa0c1c['map'](([_0x25f386,_0x865abb])=>{const _0xd6c220=new Map();return _0x25f386['forEach']((_0x35b022,_0x3405ec)=>{const _0x1bc746=_0x5997;if(_0x35b022[_0x1bc746(0x2e3)]===_0x3ab2f1){const _0x6d7730={..._0x35b022};_0x6d7730[_0x1bc746(0x1d2)]=_0x865abb[_0x35b022['color']],_0xd6c220[_0x1bc746(0x1bd)](_0x3405ec,_0x6d7730);}}),{'skeleton':_0x2ac7fe,'cursors':_0xd6c220};}));}return _0x599c52['of']({'skeleton':null,'cursors':new Map()});}))[_0x169ae5(0x250)](({skeleton:_0x39b540,cursors:_0x52702e})=>{const _0x2e8077=_0x169ae5;this[_0x2e8077(0x2e0)](),_0x39b540&&this[_0x2e8077(0x16c)](_0x39b540,_0x52702e);}),this['_sheetSkeletonManagerService'][_0x169ae5(0xd0)][_0x169ae5(0x250)](_0x25ea38=>{const _0x1ac924=_0x169ae5;if(_0x25ea38==null)return;const {skeleton:_0xb79169}=_0x25ea38,{scene:_0x42fbc6}=this[_0x1ac924(0x2e8)];_0x42fbc6[_0x1ac924(0x141)]['subscribeEvent'](_0x42e0e7['debounce'](_0x108880=>{const _0x3c1433=_0x1ac924;var _0x38020c,_0x464942;const {offsetX:_0x2dcb5b,offsetY:_0x4fadd1}=_0x108880,{x:_0x1f3b36,y:_0x107061}=_0x42fbc6[_0x3c1433(0x265)](_0x5af10f[_0x3c1433(0x161)]['FromArray']([_0x2dcb5b,_0x4fadd1])),{scaleX:_0x370203,scaleY:_0x20aeec}=_0x42fbc6['getAncestorScale'](),_0x318096=_0x42fbc6[_0x3c1433(0x226)](_0x5af10f[_0x3c1433(0x325)][_0x3c1433(0x148)]),_0xd6e4ca=_0x42fbc6[_0x3c1433(0x322)](_0x5af10f['Vector2'][_0x3c1433(0x35d)]([_0x1f3b36,_0x107061]),_0x318096),_0x5390de=_0xb79169[_0x3c1433(0x2c8)](_0x2dcb5b,_0x4fadd1,_0x370203,_0x20aeec,_0xd6e4ca);((_0x38020c=this[_0x3c1433(0x187)])==null?void 0x0:_0x38020c[_0x3c1433(0x2ba)])===_0x5390de[_0x3c1433(0x2ba)]&&((_0x464942=this['_lastPointer'])==null?void 0x0:_0x464942[_0x3c1433(0x2c3)])===_0x5390de['row']||this[_0x3c1433(0x15b)][_0x3c1433(0xe6)](_0x212089=>{_0x212089['onMouseMove'](_0x5390de);});},0x64));});}[_0x2a6bec(0x16c)](_0x5f3deb,_0x2b79a9){const _0x539a59=_0x2a6bec;var _0x10d5a0;const _0x16cd41=(_0x10d5a0=this['_sheetSkeletonManagerService'][_0x539a59(0x1b4)]())==null?void 0x0:_0x10d5a0[_0x539a59(0x21d)];if(!_0x16cd41)return;const _0x30f698=this[_0x539a59(0x181)]();if(!_0x30f698)return;this['_cursors'][_0x539a59(0xe6)](_0x3c3aa8=>{_0x3c3aa8['makeDirty']();});const {scene:_0x26e531}=_0x30f698,_0x25c960=_0x475956(Array[_0x539a59(0x138)](_0x2b79a9['values']()))[_0x539a59(0x324)](_0x64d65c=>{const _0x2b98f4=_0x539a59,{color:_0x4a9700,range:_0x58aab9,name:_0xe95815,selection:_0x501a87,sheetID:_0x3ef228}=_0x64d65c,{startColumn:_0x2e2721,startRow:_0x1ff994,endColumn:_0x9256d1,endRow:_0x2d6af7}=_0x58aab9,_0x374370=_0x572da5[_0x2b98f4(0x1ac)](_0x1ff994,_0x2e2721,_0x26e531,_0x16cd41),_0x148837=_0x572da5[_0x2b98f4(0x1ac)](_0x2d6af7,_0x9256d1,_0x26e531,_0x16cd41),{columnHeaderHeightAndMarginTop:_0x43fd80}=_0x16cd41,{startX:_0x59c737,startY:_0xe98468}=_0x374370,{endX:_0x199a7f,endY:_0x3e46c6}=_0x148837,_0x53209a=_0x199a7f-_0x59c737,_0x393cef=_0x3e46c6-_0xe98468,_0x3ef806={'labelPosition':_0xe98468-_0x43fd80>=_0x5a55c0?_0x2b98f4(0x144):'bottom','sheetID':_0x3ef228,'range':_0x58aab9,'color':_0x4a9700,'name':_0xe95815,'selection':_0x501a87,'left':_0x59c737,'top':_0xe98468,'width':_0x53209a,'height':_0x393cef,'evented':!0x1,'zIndex':_0x289d1f};return new _0x2bc6e2(_0xe95815,_0x3ef806);});_0x26e531['addObjects'](_0x25c960,_0x17a968),this[_0x539a59(0x15b)]=new Set(_0x25c960);}[_0x2a6bec(0x2e0)](){const _0x57d1f0=_0x2a6bec;var _0x8c6bdc;(_0x8c6bdc=this[_0x57d1f0(0x15b)])==null||_0x8c6bdc['forEach'](_0x3715ed=>_0x3715ed[_0x57d1f0(0x336)]());}[_0x2a6bec(0x181)](){const _0xca2973=_0x2a6bec;return _0x572da5[_0xca2973(0x231)](this['_context'][_0xca2973(0x107)],this[_0xca2973(0x2e8)]);}};_0x21a66f=_0x40e29b([_0x27ab4d(0x1,_0x42e0e7[_0x2a6bec(0x14e)](_0x572da5[_0x2a6bec(0x17d)])),_0x27ab4d(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x465ed4)),_0x27ab4d(0x3,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x175)]))],_0x21a66f);function _0x475956(_0x40c58d){const _0xee02f5=_0x2a6bec,_0x4a7eb4=new Map();return _0x40c58d[_0xee02f5(0xe6)](_0x17a48c=>{const _0x482d89=_0xee02f5;if(_0x4a7eb4['has'](_0x17a48c[_0x482d89(0x213)])){const _0x5481e0=_0x4a7eb4[_0x482d89(0x24f)](_0x17a48c[_0x482d89(0x213)]);_0x5481e0[_0x482d89(0x200)]+=',\x20'+_0x17a48c['name'];}else _0x4a7eb4[_0x482d89(0x1bd)](_0x17a48c[_0x482d89(0x213)],_0x17a48c);}),Array[_0xee02f5(0x138)](_0x4a7eb4[_0xee02f5(0x13a)]());}var _0x29696b=function(){const _0x329c56=_0x2a6bec;return _0x29696b=Object[_0x329c56(0x31a)]||function(_0x144af4){const _0x54ca59=_0x329c56;for(var _0x7b72cb,_0x53fee1=0x1,_0x24886a=arguments[_0x54ca59(0x1ad)];_0x53fee1<_0x24886a;_0x53fee1++){_0x7b72cb=arguments[_0x53fee1];for(var _0x5aa45e in _0x7b72cb)Object[_0x54ca59(0x239)][_0x54ca59(0x212)][_0x54ca59(0x139)](_0x7b72cb,_0x5aa45e)&&(_0x144af4[_0x5aa45e]=_0x7b72cb[_0x5aa45e]);}return _0x144af4;},_0x29696b['apply'](this,arguments);},_0x11b57d=function(_0x260fe3,_0x445cb8){const _0x5cdcae=_0x2a6bec;var _0x2fd2c4={};for(var _0x4707e8 in _0x260fe3)Object[_0x5cdcae(0x239)][_0x5cdcae(0x212)][_0x5cdcae(0x139)](_0x260fe3,_0x4707e8)&&_0x445cb8[_0x5cdcae(0x259)](_0x4707e8)<0x0&&(_0x2fd2c4[_0x4707e8]=_0x260fe3[_0x4707e8]);if(_0x260fe3!=null&&typeof Object[_0x5cdcae(0x1f3)]==_0x5cdcae(0x2ef)){for(var _0x21fafe=0x0,_0x4707e8=Object[_0x5cdcae(0x1f3)](_0x260fe3);_0x21fafe<_0x4707e8[_0x5cdcae(0x1ad)];_0x21fafe++)_0x445cb8['indexOf'](_0x4707e8[_0x21fafe])<0x0&&Object['prototype'][_0x5cdcae(0x316)][_0x5cdcae(0x139)](_0x260fe3,_0x4707e8[_0x21fafe])&&(_0x2fd2c4[_0x4707e8[_0x21fafe]]=_0x260fe3[_0x4707e8[_0x21fafe]]);}return _0x2fd2c4;},_0x85ab83=_0x45b8be[_0x2a6bec(0x174)](function(_0x3d1a09,_0x354483){const _0xcb37e7=_0x2a6bec;var _0x129144=_0x3d1a09[_0xcb37e7(0x219)],_0x449f57=_0x3d1a09['id'],_0x440f75=_0x3d1a09[_0xcb37e7(0xda)],_0x25f123=_0x3d1a09['extend'],_0xba791c=_0x11b57d(_0x3d1a09,['icon','id',_0xcb37e7(0xda),_0xcb37e7(0x1b6)]),_0x561cfa=_0xcb37e7(0x1e9)[_0xcb37e7(0x277)](_0x449f57,'\x20')[_0xcb37e7(0x277)](_0x440f75||'')[_0xcb37e7(0xdb)](),_0x55adee=_0x45b8be[_0xcb37e7(0x117)]('_'[_0xcb37e7(0x277)](_0xda1888()));return _0x587f88(_0x129144,''[_0xcb37e7(0x277)](_0x449f57),{'defIds':_0x129144[_0xcb37e7(0x25b)],'idSuffix':_0x55adee[_0xcb37e7(0x315)]},_0x29696b({'ref':_0x354483,'className':_0x561cfa},_0xba791c),_0x25f123);});function _0x587f88(_0x39ae74,_0x30cb71,_0x1c3d89,_0xf206f3,_0x24c3dd){const _0x32f749=_0x2a6bec;return _0x45b8be[_0x32f749(0x186)](_0x39ae74[_0x32f749(0x300)],_0x29696b(_0x29696b({'key':_0x30cb71},_0x3f1684(_0x39ae74,_0x1c3d89,_0x24c3dd)),_0xf206f3),(_0x414b17(_0x39ae74,_0x1c3d89)[_0x32f749(0x2a4)]||[])['map'](function(_0x184fda,_0x23d4d4){const _0x9b5555=_0x32f749;return _0x587f88(_0x184fda,''['concat'](_0x30cb71,'-')[_0x9b5555(0x277)](_0x39ae74['tag'],'-')[_0x9b5555(0x277)](_0x23d4d4),_0x1c3d89,void 0x0,_0x24c3dd);}));}function _0x3f1684(_0x2c27b9,_0x324228,_0x4fd6e5){const _0xd6f132=_0x2a6bec;var _0x33e46c=_0x29696b({},_0x2c27b9[_0xd6f132(0x142)]);_0x4fd6e5!=null&&_0x4fd6e5[_0xd6f132(0x1cb)]&&_0x33e46c[_0xd6f132(0x2a9)]==='colorChannel1'&&(_0x33e46c[_0xd6f132(0x2a9)]=_0x4fd6e5[_0xd6f132(0x1cb)]),_0x2c27b9[_0xd6f132(0x300)]===_0xd6f132(0x10a)&&_0x33e46c['id']&&(_0x33e46c['id']=_0x33e46c['id']+_0x324228[_0xd6f132(0x1f1)]),Object['entries'](_0x33e46c)[_0xd6f132(0xe6)](function(_0x23d71e){const _0x14d0b8=_0xd6f132;var _0x37614b=_0x23d71e[0x0],_0x1c1e8f=_0x23d71e[0x1];_0x37614b==='mask'&&typeof _0x1c1e8f==_0x14d0b8(0x2fc)&&(_0x33e46c[_0x37614b]=_0x1c1e8f[_0x14d0b8(0x2d4)](/url\(#(.*)\)/,_0x14d0b8(0x299)['concat'](_0x324228[_0x14d0b8(0x1f1)],')')));});var _0x9c96e8=_0x324228[_0xd6f132(0x25b)];return!_0x9c96e8||_0x9c96e8[_0xd6f132(0x1ad)]===0x0||(_0x2c27b9['tag']===_0xd6f132(0x2c7)&&_0x33e46c[_0xd6f132(0x30b)]&&(_0x33e46c[_0xd6f132(0x30b)]=_0x33e46c['xlink:href']+_0x324228[_0xd6f132(0x1f1)]),Object['entries'](_0x33e46c)[_0xd6f132(0xe6)](function(_0xf950ac){const _0x19d826=_0xd6f132;var _0x1bba39=_0xf950ac[0x0],_0x51ddc0=_0xf950ac[0x1];typeof _0x51ddc0=='string'&&(_0x33e46c[_0x1bba39]=_0x51ddc0[_0x19d826(0x2d4)](/url\(#(.*)\)/,_0x19d826(0x299)[_0x19d826(0x277)](_0x324228['idSuffix'],')')));})),_0x33e46c;}function _0x414b17(_0x5330d7,_0x42a980){const _0x3293fc=_0x2a6bec;var _0xb19eaa,_0x1eb7c7=_0x42a980[_0x3293fc(0x25b)];return!_0x1eb7c7||_0x1eb7c7['length']===0x0?_0x5330d7:_0x5330d7[_0x3293fc(0x300)]===_0x3293fc(0x11a)&&(!((_0xb19eaa=_0x5330d7['children'])===null||_0xb19eaa===void 0x0)&&_0xb19eaa[_0x3293fc(0x1ad)])?_0x29696b(_0x29696b({},_0x5330d7),{'children':_0x5330d7['children'][_0x3293fc(0x324)](function(_0xba4e53){const _0x5f3dd4=_0x3293fc;return typeof _0xba4e53['attrs']['id']==_0x5f3dd4(0x2fc)&&_0x1eb7c7&&_0x1eb7c7[_0x5f3dd4(0x259)](_0xba4e53[_0x5f3dd4(0x142)]['id'])>-0x1?_0x29696b(_0x29696b({},_0xba4e53),{'attrs':_0x29696b(_0x29696b({},_0xba4e53[_0x5f3dd4(0x142)]),{'id':_0xba4e53[_0x5f3dd4(0x142)]['id']+_0x42a980['idSuffix']})}):_0xba4e53;})}):_0x5330d7;}function _0xda1888(){const _0x18e88c=_0x2a6bec;return Math[_0x18e88c(0x215)]()[_0x18e88c(0xf0)](0x24)['substring'](0x2,0x8);}_0x85ab83[_0x2a6bec(0x26a)]=_0x2a6bec(0x197);var _0xd7e2e9={'tag':'svg','attrs':{'fill':_0x2a6bec(0xe8),'viewBox':_0x2a6bec(0x20b),'width':_0x2a6bec(0x2b8),'height':_0x2a6bec(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a6bec(0x1cf)},'children':[{'tag':_0x2a6bec(0x12b),'attrs':{'stroke':'currentColor','d':_0x2a6bec(0x1ae),'strokeLinecap':_0x2a6bec(0x1ba),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2a6bec(0x11a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2a6bec(0x252)},'children':[{'tag':_0x2a6bec(0x12b),'attrs':{'fill':_0x2a6bec(0x2ff),'d':_0x2a6bec(0x2d5)}}]}]}],'defIds':[_0x2a6bec(0x252)]},_0x175dd5=_0x45b8be[_0x2a6bec(0x174)](function(_0x466de2,_0x3820ec){const _0xa97973=_0x2a6bec;return _0x45b8be[_0xa97973(0x186)](_0x85ab83,Object[_0xa97973(0x31a)]({},_0x466de2,{'id':_0xa97973(0x345),'ref':_0x3820ec,'icon':_0xd7e2e9}));});_0x175dd5[_0x2a6bec(0x26a)]=_0x2a6bec(0x23e);var _0x1771df={'tag':_0x2a6bec(0x263),'attrs':{'fill':_0x2a6bec(0xe8),'viewBox':_0x2a6bec(0xe4),'width':'1em','height':_0x2a6bec(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a6bec(0x135)},'children':[{'tag':_0x2a6bec(0x12b),'attrs':{'stroke':'currentColor','d':_0x2a6bec(0x349),'strokeLinecap':_0x2a6bec(0x1ba),'strokeLinejoin':_0x2a6bec(0x1ba),'strokeWidth':1.2}}]},{'tag':_0x2a6bec(0x11a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2a6bec(0x2ff),'d':_0x2a6bec(0x2d5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2a6bec(0xe5)]},_0x491eda=_0x45b8be[_0x2a6bec(0x174)](function(_0x1356d7,_0xf90d09){const _0x5041f7=_0x2a6bec;return _0x45b8be[_0x5041f7(0x186)](_0x85ab83,Object[_0x5041f7(0x31a)]({},_0x1356d7,{'id':'on-line-single','ref':_0xf90d09,'icon':_0x1771df}));});_0x491eda[_0x2a6bec(0x26a)]=_0x2a6bec(0x331);const _0x3774ef={'onlineStatusIcon':_0x2a6bec(0x21b),'onlineStatusTitle':_0x2a6bec(0x137),'onlineStatus':'univer-online-status','online':'univer-online','offline':_0x2a6bec(0x1c3)};function _0x431e64(_0xf414fc){const _0x1a01e2=_0x2a6bec;switch(_0xf414fc){case _0x3a040d['CollaborationStatus'][_0x1a01e2(0x1fa)]:return _0x1a01e2(0x344);case _0x3a040d[_0x1a01e2(0x11e)][_0x1a01e2(0x343)]:return _0x1a01e2(0x22c);case _0x3a040d[_0x1a01e2(0x11e)]['FETCH_MISS']:return'collabStatus.fetchMiss';case _0x3a040d[_0x1a01e2(0x11e)][_0x1a01e2(0x157)]:return _0x1a01e2(0x1d7);case _0x3a040d[_0x1a01e2(0x11e)]['AWAITING']:case _0x3a040d[_0x1a01e2(0x11e)]['AWAITING_WITH_PENDING']:return _0x1a01e2(0x247);case _0x3a040d[_0x1a01e2(0x11e)]['SYNCED']:case _0x3a040d[_0x1a01e2(0x11e)][_0x1a01e2(0x165)]:return _0x1a01e2(0x216);}}function _0x17cef4(_0x11c27f){const _0x130ded=_0x2a6bec,{status$:_0x1be642}=_0x11c27f,_0x5a474c=_0x5549db['useObservable'](_0x1be642,_0x3a040d[_0x130ded(0x11e)][_0x130ded(0x157)]),_0x527d9f=_0x5549db[_0x130ded(0x270)](_0x42e0e7[_0x130ded(0x341)]),_0x285d43=_0x5549db[_0x130ded(0x270)](_0x3a040d[_0x130ded(0x233)]),_0x1254e4=_0x5a474c!==_0x3a040d['CollaborationStatus'][_0x130ded(0x1fa)],_0xcd9183=_0x527d9f['t'](_0x431e64(_0x5a474c)),_0x539bb4=_0x59cf3e[_0x130ded(0x2c2)](_0x3774ef[_0x130ded(0x2f9)],{[_0x3774ef[_0x130ded(0x1ee)]]:_0x1254e4,[_0x3774ef[_0x130ded(0x301)]]:!_0x1254e4}),_0x5857ca=_0x1254e4?_0x5098f5[_0x130ded(0x253)](_0x491eda,{}):_0x5098f5[_0x130ded(0x253)](_0x175dd5,{}),_0x2c2faa=_0x45b8be['useCallback'](()=>{const _0x48e238=_0x130ded;_0x1254e4||_0x285d43[_0x48e238(0x115)]();},[_0x1254e4,_0x285d43]);function _0x38b8e0(){const _0x524e36=_0x130ded;return _0x5098f5[_0x524e36(0x2f2)](_0x524e36(0x21e),{'className':_0x59cf3e[_0x524e36(0x2c2)](_0x539bb4,_0x524e36(0x356)),'onClick':_0x2c2faa,'children':[_0x5098f5['jsx']('div',{'className':_0x3774ef[_0x524e36(0x2dd)],'children':_0x5857ca}),_0x5098f5[_0x524e36(0x253)](_0x524e36(0x21e),{'className':_0x3774ef[_0x524e36(0x1b1)],'children':_0xcd9183})]});}return _0x1254e4?_0x38b8e0():_0x5098f5[_0x130ded(0x253)](_0x59cf3e['Tooltip'],{'title':_0x527d9f['t'](_0x130ded(0x31e)),'children':_0x38b8e0()});}var _0x2b3210=Object[_0x2a6bec(0x333)],_0x38baa6=(_0x2e666b,_0x156d7a,_0x43e2ec,_0x553627)=>{for(var _0x342fb9=_0x553627>0x1?void 0x0:_0x553627?_0x2b3210(_0x156d7a,_0x43e2ec):_0x156d7a,_0x4b9ff9=_0x2e666b['length']-0x1,_0x362773;_0x4b9ff9>=0x0;_0x4b9ff9--)(_0x362773=_0x2e666b[_0x4b9ff9])&&(_0x342fb9=_0x362773(_0x342fb9)||_0x342fb9);return _0x342fb9;},_0x179e1e=(_0x5f4408,_0x2d5a63)=>(_0x3b62f2,_0x33966e)=>_0x2d5a63(_0x3b62f2,_0x33966e,_0x5f4408);_0x57b4ed['DesktopCollaborationStatusDisplayController']=class extends _0x42e0e7['Disposable']{constructor(_0x125aae,_0xcb2141,_0x189250,_0x1c90f0){const _0x854e21=_0x2a6bec;super(),_0x7f0de7(this,'_status$',new _0x599c52['BehaviorSubject'](_0x3a040d[_0x854e21(0x11e)][_0x854e21(0x157)])),(this['_univerInstanceService']=_0x125aae,this['_injector']=_0xcb2141,this[_0x854e21(0xd9)]=_0x189250,this[_0x854e21(0x346)]=_0x1c90f0,this['_initStatusComponent'](),this[_0x854e21(0xfc)]());}[_0x2a6bec(0xfc)](){const _0x660c11=_0x2a6bec;this[_0x660c11(0x133)](this[_0x660c11(0x18e)][_0x660c11(0xf7)]['pipe'](_0x599c52[_0x660c11(0x2c6)](()=>{const _0x1ebb50=_0x660c11,_0x36936b=this['_univerInstanceService'][_0x1ebb50(0x173)]();return _0x36936b?this[_0x1ebb50(0xd9)][_0x1ebb50(0x2a8)](_0x36936b[_0x1ebb50(0x225)]()):_0x599c52['of'](null);}),_0x599c52['switchMap'](_0x5e8f4c=>_0x5e8f4c?_0x5e8f4c[_0x660c11(0x296)]:_0x599c52['of'](_0x3a040d['CollaborationStatus'][_0x660c11(0x157)])))[_0x660c11(0x250)](_0x9c0910=>{const _0x1f749f=_0x660c11;this['_status$'][_0x1f749f(0xd5)](_0x9c0910);}));}[_0x2a6bec(0x116)](){const _0x1ac0ce=_0x2a6bec;this[_0x1ac0ce(0x133)](this[_0x1ac0ce(0x346)]['registerComponent'](_0x5549db[_0x1ac0ce(0x1f7)][_0x1ac0ce(0x28f)],()=>_0x5549db[_0x1ac0ce(0x111)](_0x181457({'status$':this[_0x1ac0ce(0x198)][_0x1ac0ce(0x27b)]()}),this[_0x1ac0ce(0x33b)])));}},_0x57b4ed[_0x2a6bec(0x122)]=_0x38baa6([_0x179e1e(0x0,_0x42e0e7['IUniverInstanceService']),_0x179e1e(0x1,_0x42e0e7['Inject'](_0x42e0e7['Injector'])),_0x179e1e(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x1fd)])),_0x179e1e(0x3,_0x5549db['IUIPartsService'])],_0x57b4ed['DesktopCollaborationStatusDisplayController']);function _0x181457(_0x4f6c05){const {status$:_0x14085e}=_0x4f6c05;return function(){const _0x224f21=_0x5997;return _0x5098f5[_0x224f21(0x253)](_0x17cef4,{'status$':_0x14085e});};}var _0x2bf0fb=Object[_0x2a6bec(0x333)],_0x22d3c0=(_0x15d27f,_0x1176fd,_0x32b60c,_0x1f5e9a)=>{const _0xd1e6b0=_0x2a6bec;for(var _0x12f0cb=_0x1f5e9a>0x1?void 0x0:_0x1f5e9a?_0x2bf0fb(_0x1176fd,_0x32b60c):_0x1176fd,_0x70b9b=_0x15d27f[_0xd1e6b0(0x1ad)]-0x1,_0xc8146a;_0x70b9b>=0x0;_0x70b9b--)(_0xc8146a=_0x15d27f[_0x70b9b])&&(_0x12f0cb=_0xc8146a(_0x12f0cb)||_0x12f0cb);return _0x12f0cb;},_0xa778a7=(_0x1e624f,_0x267f92)=>(_0xab7183,_0x1281c5)=>_0x267f92(_0xab7183,_0x1281c5,_0x1e624f);let _0x2a8026=class extends _0x42e0e7['Disposable']{constructor(_0x10a495,_0x297c5a,_0x55ce33,_0x504149,_0x2b05f7,_0x52900b){const _0x2b9f30=_0x2a6bec;super(),this['_beforeCloseService']=_0x10a495,this[_0x2b9f30(0x1dd)]=_0x297c5a,this[_0x2b9f30(0x251)]=_0x55ce33,this[_0x2b9f30(0x278)]=_0x504149,this[_0x2b9f30(0x2a5)]=_0x2b05f7,this[_0x2b9f30(0x1bc)]=_0x52900b,this['_setupBeforeClosingHandler'](),this[_0x2b9f30(0x1f0)]();}[_0x2a6bec(0x2e6)](){const _0x4beae8=_0x2a6bec;this[_0x4beae8(0x133)](this[_0x4beae8(0x2d1)][_0x4beae8(0x276)](()=>{const _0x98d4a4=_0x4beae8;if(this[_0x98d4a4(0x1dd)]['saveTaskMap'][_0x98d4a4(0x2f5)])return this[_0x98d4a4(0x1bc)]['t'](_0x98d4a4(0x26e));}));}[_0x2a6bec(0x1f0)](){const _0x407a9b=_0x2a6bec;this[_0x407a9b(0x133)](this[_0x407a9b(0x251)]['event$'][_0x407a9b(0x250)](_0x24e482=>{const _0x4d891d=_0x407a9b;_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x288)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e['MessageType']['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x24e482['id']===_0x3a040d['CollaborationUIEventId'][_0x4d891d(0x237)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e['MessageType'][_0x4d891d(0x28a)],'content':this[_0x4d891d(0x1bc)]['t'](_0x4d891d(0x256))}),_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x203)]&&this[_0x4d891d(0x2a5)][_0x4d891d(0x1a0)]({'title':this[_0x4d891d(0x1bc)]['t'](_0x4d891d(0x2b0)),'content':this['_localeService']['t'](_0x4d891d(0x12c)),'type':_0x4d891d(0x285),'duration':0x0}),_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x343)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e[_0x4d891d(0x287)][_0x4d891d(0x289)],'content':this[_0x4d891d(0x1bc)]['t'](_0x4d891d(0x256))+'('+_0x24e482[_0x4d891d(0x190)]+')'}),_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x2b5)]&&this[_0x4d891d(0x278)]['show']({'type':_0x59cf3e[_0x4d891d(0x287)]['Warning'],'content':this[_0x4d891d(0x1bc)]['t'](_0x24e482[_0x4d891d(0x190)]||'')}),_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x109)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e[_0x4d891d(0x287)][_0x4d891d(0x28a)],'content':this['_localeService']['t']('session.will-retry')}),_0x24e482['id']===_0x3a040d[_0x4d891d(0x313)][_0x4d891d(0x2f8)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e['MessageType'][_0x4d891d(0x289)],'content':this['_localeService']['t']('session.connection-failed')}),_0x24e482['id']===_0x3a040d['CollaborationUIEventId'][_0x4d891d(0x182)]&&this[_0x4d891d(0x278)][_0x4d891d(0x1a0)]({'type':_0x59cf3e[_0x4d891d(0x287)][_0x4d891d(0x289)],'content':this[_0x4d891d(0x1bc)]['t'](_0x4d891d(0x172))});}));}};_0x2a8026=_0x22d3c0([_0xa778a7(0x0,_0x5549db[_0x2a6bec(0x1e8)]),_0xa778a7(0x1,_0x3a040d[_0x2a6bec(0x1fe)]),_0xa778a7(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x1bf)])),_0xa778a7(0x3,_0x5549db['IMessageService']),_0xa778a7(0x4,_0x5549db['INotificationService']),_0xa778a7(0x5,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x341)]))],_0x2a8026);const _0x38c58e=_0x2a6bec(0x2ce),_0x15020a={},_0x5254f2=_0x42e0e7[_0x2a6bec(0x35c)]('uni.network.url-service');var _0x269437=Object['getOwnPropertyDescriptor'],_0x49388d=(_0x267e1b,_0x18b922,_0x436eac,_0x819e2a)=>{for(var _0x419cc4=_0x819e2a>0x1?void 0x0:_0x819e2a?_0x269437(_0x18b922,_0x436eac):_0x18b922,_0x489745=_0x267e1b['length']-0x1,_0x4512e1;_0x489745>=0x0;_0x489745--)(_0x4512e1=_0x267e1b[_0x489745])&&(_0x419cc4=_0x4512e1(_0x419cc4)||_0x419cc4);return _0x419cc4;},_0x52a5c0=(_0x553731,_0x1eca85)=>(_0x118a27,_0x1a333d)=>_0x1eca85(_0x118a27,_0x1a333d,_0x553731);_0x57b4ed[_0x2a6bec(0x317)]=class extends _0x42e0e7['RxDisposable']{constructor(_0x5b584d,_0x47b68b,_0x17bad0,_0x36a3da,_0x2e396e){const _0x3ef207=_0x2a6bec;super(),this[_0x3ef207(0x1c9)]=_0x5b584d,this[_0x3ef207(0x202)]=_0x47b68b,this[_0x3ef207(0x34f)]=_0x17bad0,this[_0x3ef207(0x22a)]=_0x36a3da,_0x2e396e?_0x2e396e==null||_0x2e396e['whenReady']()['then'](()=>this[_0x3ef207(0x1b8)]()):(this['_logService']['debug'](_0x3ef207(0x2b6),_0x3ef207(0x30c)),this['_init']());}async[_0x2a6bec(0x1b8)](){const _0x2e687c=_0x2a6bec,_0x3396e5=this[_0x2e687c(0x1c9)][_0x2e687c(0x110)](_0x2e687c(0x107)),_0x5a0adb=this['_urlService'][_0x2e687c(0x110)]('type'),_0x1fc1ef=this[_0x2e687c(0x1c9)][_0x2e687c(0x110)]('subunit');if(!_0x3396e5||!_0x5a0adb){this[_0x2e687c(0x202)][_0x2e687c(0x26d)]('[CollaborationDataLoaderController]',_0x2e687c(0x352));return;}const _0x3d0f2a=await this['_dataLoaderService'][_0x2e687c(0x204)](_0x3396e5,Number(_0x5a0adb),_0x1fc1ef);_0x3d0f2a&&_0x3d0f2a instanceof _0x42e0e7[_0x2e687c(0x262)]&&this[_0x2e687c(0x227)](_0x3d0f2a);}async[_0x2a6bec(0x227)](_0x1a44c5){const _0x521881=_0x2a6bec;await this[_0x521881(0x2bc)](_0x1a44c5),_0x1a44c5['activeSheet$'][_0x521881(0x27f)](_0x599c52[_0x521881(0x1ef)](this['dispose$']))[_0x521881(0x250)](_0x590cfd=>{const _0x358776=_0x521881;_0x590cfd&&this[_0x358776(0x2a7)](_0x590cfd);}),this['_urlService']['urlChange$'][_0x521881(0x27f)](_0x599c52[_0x521881(0x1ef)](this[_0x521881(0x332)]))[_0x521881(0x250)](()=>this[_0x521881(0x2bc)](_0x1a44c5));}[_0x2a6bec(0x2a7)](_0x45da17,_0x74dd60=!0x1){const _0x469ec1=_0x2a6bec,_0x297703=this['_urlService'][_0x469ec1(0x110)]('subunit');_0x45da17[_0x469ec1(0x131)]()!==_0x297703&&this['_urlService'][_0x469ec1(0x218)](_0x469ec1(0x2cc),_0x45da17['getSheetId'](),_0x74dd60);}async[_0x2a6bec(0x2bc)](_0x4b858d){const _0xf3346b=_0x2a6bec;var _0x284fd9;const _0x1c7eb9=this['_urlService'][_0xf3346b(0x110)](_0xf3346b(0x2cc));if(!_0x1c7eb9||!_0x4b858d[_0xf3346b(0x2f0)](_0x1c7eb9)){const _0x22f7dd=_0x4b858d['getUnhiddenWorksheets']()[0x0],_0x25a6f9=_0x4b858d[_0xf3346b(0x2f0)](_0x22f7dd);if(!_0x25a6f9)return;this[_0xf3346b(0x2a7)](_0x25a6f9,!0x0),await this[_0xf3346b(0x34f)][_0xf3346b(0x1a2)](_0x51eb6e[_0xf3346b(0x2ec)]['id'],{'unitId':_0x4b858d['getUnitId'](),'subUnitId':_0x22f7dd});return;}((_0x284fd9=_0x4b858d['getActiveSheet']())==null?void 0x0:_0x284fd9[_0xf3346b(0x131)]())!==_0x1c7eb9&&await this[_0xf3346b(0x34f)][_0xf3346b(0x1a2)](_0x51eb6e['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b858d['getUnitId'](),'subUnitId':_0x1c7eb9});}},_0x57b4ed['CollaborationDataLoaderController']=_0x49388d([_0x52a5c0(0x0,_0x5254f2),_0x52a5c0(0x1,_0x42e0e7['ILogService']),_0x52a5c0(0x2,_0x42e0e7['ICommandService']),_0x52a5c0(0x3,_0x42e0e7['Inject'](_0x3a040d[_0x2a6bec(0x243)])),_0x52a5c0(0x4,_0x42e0e7['Optional'](_0x85bd9c[_0x2a6bec(0x31b)]))],_0x57b4ed[_0x2a6bec(0x317)]);var _0xc8978=Object[_0x2a6bec(0x333)],_0x46c8ef=(_0x2c19e7,_0x36bcc1,_0x35e81e,_0x1fe8d7)=>{const _0x5d598e=_0x2a6bec;for(var _0x25e47e=_0x1fe8d7>0x1?void 0x0:_0x1fe8d7?_0xc8978(_0x36bcc1,_0x35e81e):_0x36bcc1,_0x20b88e=_0x2c19e7[_0x5d598e(0x1ad)]-0x1,_0x2757ca;_0x20b88e>=0x0;_0x20b88e--)(_0x2757ca=_0x2c19e7[_0x20b88e])&&(_0x25e47e=_0x2757ca(_0x25e47e)||_0x25e47e);return _0x25e47e;},_0x3b59de=(_0x3a3d66,_0x4f1908)=>(_0xc3ce52,_0x4924bc)=>_0x4f1908(_0xc3ce52,_0x4924bc,_0x3a3d66);let _0x3a8030=class{constructor(_0x84b844,_0x704a94,_0x35ea6f){const _0x469321=_0x2a6bec;this[_0x469321(0x33b)]=_0x84b844,this[_0x469321(0x230)]=_0x704a94,this[_0x469321(0x314)]=_0x35ea6f;}[_0x2a6bec(0x305)](_0x5d7364){const _0x1616ef=_0x2a6bec;this[_0x1616ef(0x31d)](_0x5d7364),this[_0x1616ef(0x2cf)](_0x5d7364);}[_0x2a6bec(0x328)](_0x2ef968){const _0x146e51=_0x2a6bec,{unitID:_0x4b3ec7}=_0x2ef968,_0x385748=this['_renderManagerService'][_0x146e51(0x321)](_0x4b3ec7)['with'](_0x116ef8[_0x146e51(0xd8)]),{redoCache:_0x4488b5}=_0x385748[_0x146e51(0x22f)]();if(_0x4488b5[_0x146e51(0x1ad)]===0x0)return _0x2ef968;let _0x1d1344=_0x42e0e7[_0x146e51(0x339)]['deepClone'](_0x2ef968['mutations'][0x0]);for(let _0x1dc2fc=0x0;_0x1dc2fc<_0x4488b5[_0x146e51(0x1ad)];_0x1dc2fc++){const _0x40bbed={'id':_0x146e51(0x1ed),'params':{..._0x4488b5[_0x1dc2fc]}},_0x5c9663=this[_0x146e51(0x230)][_0x146e51(0x310)](_0x1d1344,_0x40bbed,!0x1);if(_0x12caed['isTransformMutationFailure'](_0x5c9663))throw _0x5c9663['error'];_0x1d1344=_0x5c9663[_0x146e51(0x361)];}return{..._0x42e0e7[_0x146e51(0x339)][_0x146e51(0x1aa)](_0x2ef968),'mutations':[_0x1d1344]};}[_0x2a6bec(0x31d)](_0x38911b){const _0x143eab=_0x2a6bec,{unitID:_0x18d43f}=_0x38911b,_0x6e0982=this[_0x143eab(0x314)][_0x143eab(0x321)](_0x18d43f)[_0x143eab(0x293)](_0x116ef8[_0x143eab(0xd8)]),{undoCache:_0x40b2f9,redoCache:_0x51144d}=_0x6e0982[_0x143eab(0x22f)]();if(_0x40b2f9[_0x143eab(0x1ad)]===0x0||_0x51144d[_0x143eab(0x1ad)]===0x0)return;const _0x5b9d9f=[],_0xb5e3cc=[];let _0x14e6fe=_0x42e0e7[_0x143eab(0x339)]['deepClone'](_0x38911b['mutations'][0x0]),_0x72fb68=_0x42e0e7['Tools']['deepClone'](_0x38911b[_0x143eab(0x167)][0x0]);for(let _0x4eca01=_0x40b2f9[_0x143eab(0x1ad)]-0x1;_0x4eca01>=0x0;_0x4eca01--){const _0x9cca89={'id':'doc.mutation.rich-text-editing','params':{..._0x40b2f9[_0x4eca01]}},_0x24d7e9={'id':_0x143eab(0x1ed),'params':{..._0x51144d[_0x4eca01]}},_0x222842=this[_0x143eab(0x230)][_0x143eab(0x310)](_0x14e6fe,_0x9cca89,!0x1),_0x5c8e50=this['_transformService'][_0x143eab(0x310)](_0x72fb68,_0x24d7e9,!0x1);if(_0x12caed[_0x143eab(0x108)](_0x222842))throw _0x222842[_0x143eab(0x285)];if(_0x12caed['isTransformMutationFailure'](_0x5c8e50))throw _0x5c8e50[_0x143eab(0x285)];_0x5b9d9f['unshift'](_0x222842[_0x143eab(0x35e)][_0x143eab(0x33d)]),_0xb5e3cc[_0x143eab(0xf8)](_0x5c8e50[_0x143eab(0x35e)][_0x143eab(0x33d)]),_0x14e6fe=_0x222842[_0x143eab(0x361)],_0x72fb68=_0x5c8e50['m1Prime'];}_0x6e0982[_0x143eab(0x268)]({'undoCache':_0x5b9d9f,'redoCache':_0xb5e3cc});}[_0x2a6bec(0x2cf)](_0x3c4da9){const _0x4b3647=_0x2a6bec,{unitID:_0x5e8135}=_0x3c4da9,_0x220a44=this[_0x4b3647(0x314)][_0x4b3647(0x321)](_0x5e8135)[_0x4b3647(0x293)](_0x116ef8[_0x4b3647(0xd8)]),_0x708763=_0x220a44[_0x4b3647(0x149)]();if(_0x708763==null)return;const _0x3944fe=[{'id':_0x4b3647(0x1ed),'params':{'unitId':_0x3c4da9['unitID'],'actions':null,'textRanges':[_0x708763]}}],_0x2bd771=this['_transformService']['transformMutationsWithChangeset'](_0x3c4da9,_0x3944fe);if(!_0x12caed[_0x4b3647(0x1f6)](_0x2bd771))throw _0x2bd771['error'];const _0x397d82=_0x2bd771[_0x4b3647(0x35e)][0x0][_0x4b3647(0x33d)][_0x4b3647(0x16f)];Array[_0x4b3647(0x258)](_0x397d82)&&_0x397d82['length']&&_0x220a44[_0x4b3647(0xe7)](_0x397d82[0x0]);}};_0x3a8030=_0x46c8ef([_0x3b59de(0x0,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7['Injector'])),_0x3b59de(0x1,_0x12caed[_0x2a6bec(0x12a)]),_0x3b59de(0x2,_0x5af10f['IRenderManagerService'])],_0x3a8030);var _0x52abdb=Object[_0x2a6bec(0x333)],_0x3aab43=(_0x4b27e8,_0xe7f1aa,_0x3e1112,_0x54d0ac)=>{const _0x12eeea=_0x2a6bec;for(var _0x2397c3=_0x54d0ac>0x1?void 0x0:_0x54d0ac?_0x52abdb(_0xe7f1aa,_0x3e1112):_0xe7f1aa,_0x23ada0=_0x4b27e8[_0x12eeea(0x1ad)]-0x1,_0x4cdb20;_0x23ada0>=0x0;_0x23ada0--)(_0x4cdb20=_0x4b27e8[_0x23ada0])&&(_0x2397c3=_0x4cdb20(_0x2397c3)||_0x2397c3);return _0x2397c3;},_0x4ccfe1=(_0x5f049c,_0x5829e5)=>(_0x160452,_0x14aea2)=>_0x5829e5(_0x160452,_0x14aea2,_0x5f049c);let _0xfd3415=class{constructor(_0x4a57c7,_0x21b792,_0x5c9058){const _0x220295=_0x2a6bec;this[_0x220295(0x33b)]=_0x4a57c7,this[_0x220295(0x230)]=_0x21b792,this[_0x220295(0x19d)]=_0x5c9058;}[_0x2a6bec(0x10e)](_0x51b57c){this['_transformHistoryAndStateStack'](_0x51b57c);}[_0x2a6bec(0x328)](_0x54102c){const _0x17274f=_0x2a6bec,{unitID:_0x5c8f52}=_0x54102c,{collaboration:_0x1d3328}=this[_0x17274f(0x19d)][_0x17274f(0x35a)](_0x5c8f52);if(_0x1d3328['length']===0x0)return _0x54102c;let _0x22ab13=_0x42e0e7[_0x17274f(0x339)]['deepClone'](_0x54102c[_0x17274f(0x167)][0x0]);for(let _0x2a9499=0x0;_0x2a9499<_0x1d3328[_0x17274f(0x1ad)];_0x2a9499++){const _0x1eef2c={'id':_0x17274f(0x1ed),'params':{'unitId':_0x1d3328[_0x2a9499][_0x17274f(0x24b)],..._0x1d3328[_0x2a9499][_0x17274f(0x18b)]}},_0x4fab03=this[_0x17274f(0x230)]['transformMutation'](_0x22ab13,_0x1eef2c,!0x1);if(_0x12caed[_0x17274f(0x108)](_0x4fab03))throw _0x4fab03['error'];_0x22ab13=_0x4fab03[_0x17274f(0x361)];}return{..._0x42e0e7[_0x17274f(0x339)]['deepClone'](_0x54102c),'mutations':[_0x22ab13]};}[_0x2a6bec(0x358)](_0x54d856){const _0x9302e9=_0x2a6bec,{unitID:_0x6e8ad7}=_0x54d856,{history:_0x3eee4d,collaboration:_0xa51fe5}=this[_0x9302e9(0x19d)]['getStateCache'](_0x6e8ad7);if(_0x3eee4d[_0x9302e9(0x1ad)]===0x0&&_0xa51fe5['length']===0x0)return;const _0x654de7=[],_0x23b849=[];let _0x3c6844=_0x42e0e7['Tools'][_0x9302e9(0x1aa)](_0x54d856[_0x9302e9(0x167)][0x0]),_0x4f0eb2=_0x42e0e7[_0x9302e9(0x339)][_0x9302e9(0x1aa)](_0x54d856[_0x9302e9(0x167)][0x0]);for(let _0x173b5f=_0x3eee4d['length']-0x1;_0x173b5f>=0x0;_0x173b5f--){const _0x12d371={'id':_0x9302e9(0x1ed),'params':{'unitId':_0x3eee4d[_0x173b5f][_0x9302e9(0x24b)],..._0x3eee4d[_0x173b5f][_0x9302e9(0x2a6)]}},_0x576a05={'id':_0x9302e9(0x1ed),'params':{'unitId':_0x3eee4d[_0x173b5f][_0x9302e9(0x24b)],..._0x3eee4d[_0x173b5f][_0x9302e9(0x18b)]}},_0x30706a=this[_0x9302e9(0x230)][_0x9302e9(0x310)](_0x3c6844,_0x12d371,!0x1),_0x560ce2=this[_0x9302e9(0x230)][_0x9302e9(0x310)](_0x4f0eb2,_0x576a05,!0x1);if(_0x12caed['isTransformMutationFailure'](_0x30706a))throw _0x30706a[_0x9302e9(0x285)];if(_0x12caed[_0x9302e9(0x108)](_0x560ce2))throw _0x560ce2['error'];_0x654de7['unshift']({..._0x3eee4d[_0x173b5f],'undoState':_0x30706a[_0x9302e9(0x35e)][_0x9302e9(0x33d)],'redoState':_0x560ce2[_0x9302e9(0x35e)]['params']}),_0x3c6844=_0x30706a[_0x9302e9(0x361)],_0x4f0eb2=_0x560ce2[_0x9302e9(0x361)];}_0x3c6844=_0x42e0e7[_0x9302e9(0x339)][_0x9302e9(0x1aa)](_0x54d856[_0x9302e9(0x167)][0x0]),_0x4f0eb2=_0x42e0e7[_0x9302e9(0x339)][_0x9302e9(0x1aa)](_0x54d856[_0x9302e9(0x167)][0x0]);for(let _0x2596c8=_0xa51fe5[_0x9302e9(0x1ad)]-0x1;_0x2596c8>=0x0;_0x2596c8--){const _0x3b07f3={'id':_0x9302e9(0x1ed),'params':{'unitId':_0xa51fe5[_0x2596c8]['unitId'],..._0xa51fe5[_0x2596c8][_0x9302e9(0x2a6)]}},_0xe0bc47={'id':_0x9302e9(0x1ed),'params':{'unitId':_0xa51fe5[_0x2596c8]['unitId'],..._0xa51fe5[_0x2596c8][_0x9302e9(0x18b)]}},_0x237458=this[_0x9302e9(0x230)]['transformMutation'](_0x3c6844,_0x3b07f3,!0x1),_0x1e5310=this[_0x9302e9(0x230)][_0x9302e9(0x310)](_0x4f0eb2,_0xe0bc47,!0x1);if(_0x12caed['isTransformMutationFailure'](_0x237458))throw _0x237458[_0x9302e9(0x285)];if(_0x12caed[_0x9302e9(0x108)](_0x1e5310))throw _0x1e5310[_0x9302e9(0x285)];_0x23b849[_0x9302e9(0xf8)]({..._0xa51fe5[_0x2596c8],'undoState':_0x237458[_0x9302e9(0x35e)][_0x9302e9(0x33d)],'redoState':_0x1e5310['m2Prime']['params']}),_0x3c6844=_0x237458[_0x9302e9(0x361)],_0x4f0eb2=_0x1e5310['m1Prime'];}this[_0x9302e9(0x19d)][_0x9302e9(0x209)](_0x6e8ad7,{'history':_0x654de7,'collaboration':_0x23b849});}};_0xfd3415=_0x3aab43([_0x4ccfe1(0x0,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x1ca)])),_0x4ccfe1(0x1,_0x12caed[_0x2a6bec(0x12a)]),_0x4ccfe1(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x116ef8[_0x2a6bec(0x355)]))],_0xfd3415);var _0x2a1d8e=Object['getOwnPropertyDescriptor'],_0x541089=(_0x44da24,_0x19e48b,_0x1fe3fe,_0x3cc559)=>{const _0x43b39b=_0x2a6bec;for(var _0x5a7105=_0x3cc559>0x1?void 0x0:_0x3cc559?_0x2a1d8e(_0x19e48b,_0x1fe3fe):_0x19e48b,_0x4420e3=_0x44da24[_0x43b39b(0x1ad)]-0x1,_0x5c1fba;_0x4420e3>=0x0;_0x4420e3--)(_0x5c1fba=_0x44da24[_0x4420e3])&&(_0x5a7105=_0x5c1fba(_0x5a7105)||_0x5a7105);return _0x5a7105;},_0xdce4e1=(_0x22361a,_0x3d4432)=>(_0x1438bb,_0x3b4ee2)=>_0x3d4432(_0x1438bb,_0x3b4ee2,_0x22361a);let _0x2dbec8=class{constructor(_0xf61dd2,_0x25028b){const _0x819814=_0x2a6bec;this[_0x819814(0x33b)]=_0xf61dd2,this[_0x819814(0x230)]=_0x25028b;}[_0x2a6bec(0x168)](_0x42040c){const _0x16ff1c=_0x2a6bec;var _0x423266;const _0x24d6d3=this[_0x16ff1c(0x33b)][_0x16ff1c(0x24f)](_0x5c07ea[_0x16ff1c(0x2b4)]),_0x330768=(_0x423266=_0x24d6d3[_0x16ff1c(0xd2)]())!=null?_0x423266:[];if(_0x330768[_0x16ff1c(0x1ad)]===0x0)return;const _0x50a261=_0x42040c[_0x16ff1c(0x31f)],_0x115f4c=[{'id':_0x16ff1c(0x1ed),'params':{'unitId':_0x50a261,'actions':null,'textRanges':_0x330768}}],_0x4bb5b3=this[_0x16ff1c(0x230)]['transformMutationsWithChangeset'](_0x42040c,_0x115f4c);if(!_0x12caed[_0x16ff1c(0x1f6)](_0x4bb5b3))throw _0x4bb5b3['error'];const _0x537bdb=_0x4bb5b3[_0x16ff1c(0x35e)][0x0][_0x16ff1c(0x33d)][_0x16ff1c(0x16f)];Array[_0x16ff1c(0x258)](_0x537bdb)&&_0x537bdb[_0x16ff1c(0x1ad)]&&_0x24d6d3[_0x16ff1c(0x14b)](_0x537bdb,{'unitId':_0x50a261,'subUnitId':_0x50a261},!0x1);}};_0x2dbec8=_0x541089([_0xdce4e1(0x0,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7['Injector'])),_0xdce4e1(0x1,_0x12caed[_0x2a6bec(0x12a)])],_0x2dbec8);var _0x460893=Object[_0x2a6bec(0x333)],_0x220eed=(_0x4fd6ec,_0x2cd812,_0x99121d,_0x237401)=>{const _0x1ca1e5=_0x2a6bec;for(var _0x4926fd=_0x237401>0x1?void 0x0:_0x237401?_0x460893(_0x2cd812,_0x99121d):_0x2cd812,_0x1b7b72=_0x4fd6ec[_0x1ca1e5(0x1ad)]-0x1,_0x2d9ea9;_0x1b7b72>=0x0;_0x1b7b72--)(_0x2d9ea9=_0x4fd6ec[_0x1b7b72])&&(_0x4926fd=_0x2d9ea9(_0x4926fd)||_0x4926fd);return _0x4926fd;},_0x2be40b=(_0x5d927c,_0x3b400c)=>(_0x1a2b30,_0x4ca5a2)=>_0x3b400c(_0x1a2b30,_0x4ca5a2,_0x5d927c);let _0x49cb73=class extends _0x42e0e7['Disposable']{constructor(_0x315f59,_0x3f6e39,_0x24a1df,_0x3f0479,_0x189c35,_0x3fe609,_0x404190,_0x1e9efb){const _0xec08c9=_0x2a6bec;super(),_0x7f0de7(this,_0xec08c9(0x198),new _0x599c52['BehaviorSubject'](_0x3a040d[_0xec08c9(0x11e)]['NOT_COLLAB'])),(this[_0xec08c9(0x19d)]=_0x315f59,this['_collaborationController']=_0x3f6e39,this[_0xec08c9(0x286)]=_0x24a1df,this['_docTransformStateCacheService']=_0x3f0479,this[_0xec08c9(0x281)]=_0x189c35,this['_docSyncEditingCollabCursorService']=_0x3fe609,this['_messageService']=_0x404190,this[_0xec08c9(0x1bc)]=_0x1e9efb,this[_0xec08c9(0x282)]());}['_initEntityListener'](){const _0x4e12ea=_0x2a6bec;this[_0x4e12ea(0x133)](this[_0x4e12ea(0xd9)]['entityInit$'][_0x4e12ea(0x250)](_0x286b57=>{const _0x2f86c1=_0x4e12ea,_0xddc268=this[_0x2f86c1(0x19d)]['docStateChange$'][_0x2f86c1(0x250)](_0x354d3d=>{const _0x2e3ee2=_0x2f86c1;if(_0x354d3d==null)return;const {unitId:_0x1b77d2,redoState:_0x519baf,commandId:_0xd7d20a}=_0x354d3d;if(_0x1b77d2!==_0x286b57[_0x2e3ee2(0x31f)])return;const _0x1e9a4f={'id':_0xd7d20a,'type':_0x42e0e7[_0x2e3ee2(0x159)][_0x2e3ee2(0x179)],'params':{'unitId':_0x1b77d2,'actions':_0x519baf[_0x2e3ee2(0x273)],'textRanges':null}};_0x286b57[_0x2e3ee2(0x118)](_0x1e9a4f);});if(_0x286b57[_0x2f86c1(0x133)](_0xddc268),_0x286b57 instanceof _0x3a040d[_0x2f86c1(0x320)]){const _0x375db1={'onTransformIME':_0x281186=>this['_docTransformIMECacheService'][_0x2f86c1(0x305)](_0x281186),'onTransformState':_0x5a8d0b=>this[_0x2f86c1(0x29c)][_0x2f86c1(0x10e)](_0x5a8d0b),'onTransformSelections':_0x2cc42d=>this[_0x2f86c1(0x281)][_0x2f86c1(0x168)](_0x2cc42d),'onSyncEditingCollabCursor':_0x4d6e4e=>this[_0x2f86c1(0x2d2)]['syncEditingCollabCursor'](_0x4d6e4e),'onTransformRemoteChangesetByIMECache':_0x2665eb=>this[_0x2f86c1(0x286)][_0x2f86c1(0x328)](_0x2665eb),'onTransformRemoteChangesetByStateCache':_0x2635d9=>this[_0x2f86c1(0x29c)][_0x2f86c1(0x328)](_0x2635d9)};_0x286b57['addHandlerCallback'](_0x375db1);}}));}};_0x49cb73=_0x220eed([_0x2be40b(0x0,_0x42e0e7['Inject'](_0x116ef8[_0x2a6bec(0x355)])),_0x2be40b(0x1,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a040d[_0x2a6bec(0x1fd)])),_0x2be40b(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x3a8030)),_0x2be40b(0x3,_0x42e0e7[_0x2a6bec(0x14e)](_0xfd3415)),_0x2be40b(0x4,_0x42e0e7['Inject'](_0x2dbec8)),_0x2be40b(0x5,_0x42e0e7[_0x2a6bec(0x14e)](_0x7228ba)),_0x2be40b(0x6,_0x5549db['IMessageService']),_0x2be40b(0x7,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7[_0x2a6bec(0x341)]))],_0x49cb73);var _0xa22d8a=Object[_0x2a6bec(0x333)],_0x525491=(_0x67b75,_0xffd2b1,_0x4a3381,_0x2fe4e9)=>{const _0x209246=_0x2a6bec;for(var _0x55f7e3=_0x2fe4e9>0x1?void 0x0:_0x2fe4e9?_0xa22d8a(_0xffd2b1,_0x4a3381):_0xffd2b1,_0x4a2e4f=_0x67b75[_0x209246(0x1ad)]-0x1,_0x9ad065;_0x4a2e4f>=0x0;_0x4a2e4f--)(_0x9ad065=_0x67b75[_0x4a2e4f])&&(_0x55f7e3=_0x9ad065(_0x55f7e3)||_0x55f7e3);return _0x55f7e3;},_0xf7372e=(_0x3f7f35,_0x432508)=>(_0x391779,_0x51810f)=>_0x432508(_0x391779,_0x51810f,_0x3f7f35);let _0x22372e=class extends _0x42e0e7[_0x2a6bec(0x1d6)]{constructor(_0x4375a5,_0x4e0d0f,_0x29ca90){const _0xde1e75=_0x2a6bec;super(),_0x7f0de7(this,_0xde1e75(0x221),new Map()),_0x7f0de7(this,'_saveTaskMap',new Map()),_0x7f0de7(this,_0xde1e75(0x153),!0x1),(this[_0xde1e75(0x128)]=_0x4375a5,this[_0xde1e75(0x29a)]=_0x4e0d0f,this['_revisionService']=_0x29ca90);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2c6efe=_0x2a6bec;this[_0x2c6efe(0x153)]=!0x1;}get[_0x2a6bec(0x1a5)](){const _0x4b313d=_0x2a6bec;return this[_0x4b313d(0x2cd)];}['dispose'](){const _0x2cd182=_0x2a6bec;this[_0x2cd182(0x160)]()[_0x2cd182(0x2fe)](()=>super['dispose']());}async[_0x2a6bec(0x2d3)](_0x2f29ab){const _0x515715=_0x2a6bec;return this['_disabled']?null:this['_localStorageService'][_0x515715(0x308)](_0x3a040d[_0x515715(0x240)](_0x2f29ab));}async[_0x2a6bec(0xd1)](_0x4bd7ad,_0x3b11ec){const _0x281d75=_0x2a6bec;return!!this[_0x281d75(0x29a)][_0x281d75(0x201)](_0x4bd7ad,_0x3b11ec);}[_0x2a6bec(0x290)](_0x519945,_0x521614,_0x9d0af5,_0x553472){const _0x5d7876=_0x2a6bec,_0x41dd23=this[_0x5d7876(0x2c0)][_0x5d7876(0x23f)](_0x519945);this[_0x5d7876(0x221)][_0x5d7876(0x1bd)](_0x519945,{'unitID':_0x519945,'type':_0x521614,'awaitingChangeset':_0x9d0af5,'mutations':_0x553472,'rev':_0x41dd23}),this[_0x5d7876(0x2cd)]['has'](_0x519945)||this['_scheduleSaving'](_0x519945);}[_0x2a6bec(0x2da)](_0x2fc835){const _0x2372fc=_0x2a6bec,_0x9d32ce=this[_0x2372fc(0x1e5)]();_0x9d32ce===0x0?this[_0x2372fc(0xf6)](_0x2fc835):this['_saveTaskMap'][_0x2372fc(0x1bd)](_0x2fc835,setTimeout(()=>this[_0x2372fc(0xf6)](_0x2fc835),_0x9d32ce));}[_0x2a6bec(0x1e5)](){const _0x209fba=_0x2a6bec;var _0x174621;return(_0x174621=this[_0x209fba(0x128)][_0x209fba(0x2a2)](_0x3a040d['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x174621:_0x3a040d[_0x209fba(0xdf)];}[_0x2a6bec(0xf6)](_0x46510f){const _0x174152=_0x2a6bec,_0x5c7780=this[_0x174152(0x2cd)][_0x174152(0x24f)](_0x46510f);return _0x5c7780!==void 0x0&&window['clearTimeout'](_0x5c7780),this[_0x174152(0x29a)][_0x174152(0x201)](_0x3a040d[_0x174152(0x240)](_0x46510f),this[_0x174152(0x221)][_0x174152(0x24f)](_0x46510f))[_0x174152(0x2fe)](()=>this['_saveTaskMap'][_0x174152(0x12f)](_0x46510f));}async[_0x2a6bec(0x160)](){const _0x104ad8=_0x2a6bec,_0x19c7cb=[];this[_0x104ad8(0x2cd)]['forEach']((_0x2217cd,_0x311365)=>{const _0x16f6f7=_0x104ad8;window['clearTimeout'](_0x2217cd),_0x19c7cb[_0x16f6f7(0x24c)](this[_0x16f6f7(0xf6)](_0x311365)[_0x16f6f7(0x2fe)](()=>{const _0x3b0c09=_0x16f6f7;this[_0x3b0c09(0x2cd)][_0x3b0c09(0x12f)](_0x311365);}));}),await Promise[_0x104ad8(0x1e0)](_0x19c7cb);}};_0x22372e=_0x525491([_0xf7372e(0x0,_0x42e0e7['IConfigService']),_0xf7372e(0x1,_0x42e0e7[_0x2a6bec(0x334)]),_0xf7372e(0x2,_0x42e0e7[_0x2a6bec(0x14e)](_0x12caed['RevisionService']))],_0x22372e);class _0x1048ec extends _0x42e0e7['RxDisposable']{constructor(){const _0x290507=_0x2a6bec;super(),_0x7f0de7(this,'urlChange$'),this[_0x290507(0x1b2)]=_0x599c52[_0x290507(0x1e2)](window,_0x290507(0x2f1))['pipe'](_0x599c52[_0x290507(0x1ef)](this[_0x290507(0x332)]),_0x599c52['shareReplay'](0x1),_0x599c52['mapTo'](void 0x0));}[_0x2a6bec(0x218)](_0x3838df,_0x16fb29,_0x5b46d2=!0x1){const _0x11648f=_0x2a6bec,_0x303cb8=new URL(window[_0x11648f(0x10d)][_0x11648f(0x306)]);_0x303cb8[_0x11648f(0x214)][_0x11648f(0x1bd)](_0x3838df,_0x16fb29),_0x5b46d2?window['history'][_0x11648f(0x2b9)]('','',_0x303cb8['toString']()):window['history'][_0x11648f(0x119)]('','',_0x303cb8[_0x11648f(0xf0)]());}[_0x2a6bec(0x124)](_0x74fa2c,_0xb853a4=!0x1){const _0x243f2a=_0x2a6bec,_0x29f122=new URL(window[_0x243f2a(0x10d)]['href']);_0x29f122[_0x243f2a(0x214)]['delete'](_0x74fa2c),_0xb853a4?window['history'][_0x243f2a(0x2b9)]('','',_0x29f122[_0x243f2a(0xf0)]()):window[_0x243f2a(0x229)][_0x243f2a(0x119)]('','',_0x29f122['toString']());}[_0x2a6bec(0x110)](_0x332e55){const _0x19f9c3=_0x2a6bec;var _0x159e82;return(_0x159e82=new URL(window['location'][_0x19f9c3(0x306)])[_0x19f9c3(0x214)][_0x19f9c3(0x24f)](_0x332e55))!=null?_0x159e82:void 0x0;}}var _0x108d4e=Object[_0x2a6bec(0x145)],_0x5532a4=Object[_0x2a6bec(0x333)],_0x23c339=(_0x187d48,_0x1c28b6,_0x33556c)=>_0x1c28b6 in _0x187d48?_0x108d4e(_0x187d48,_0x1c28b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33556c}):_0x187d48[_0x1c28b6]=_0x33556c,_0x181bf7=(_0x1c97a9,_0x7189ec,_0x554eee,_0x4e46ad)=>{const _0x19302a=_0x2a6bec;for(var _0x5f2eb9=_0x4e46ad>0x1?void 0x0:_0x4e46ad?_0x5532a4(_0x7189ec,_0x554eee):_0x7189ec,_0x33d59b=_0x1c97a9[_0x19302a(0x1ad)]-0x1,_0x35aa41;_0x33d59b>=0x0;_0x33d59b--)(_0x35aa41=_0x1c97a9[_0x33d59b])&&(_0x5f2eb9=_0x35aa41(_0x5f2eb9)||_0x5f2eb9);return _0x5f2eb9;},_0x27c863=(_0x198c73,_0x2704ca)=>(_0xfce024,_0x1c96b0)=>_0x2704ca(_0xfce024,_0x1c96b0,_0x198c73),_0x4e4902=(_0x47e6e4,_0x531d1d,_0x555182)=>_0x23c339(_0x47e6e4,_0x531d1d+'',_0x555182);const _0x3ebee7=_0x2a6bec(0x1b7);_0x57b4ed['UniverCollaborationClientUIPlugin']=class extends _0x42e0e7[_0x2a6bec(0x2ae)]{constructor(_0x2dbb61=_0x15020a,_0x2e4532,_0x2a4a79,_0x57ac88){const _0x53b11f=_0x2a6bec;super(),this['_config']=_0x2dbb61,this[_0x53b11f(0x314)]=_0x2e4532,this[_0x53b11f(0x33b)]=_0x2a4a79,this['_configService']=_0x57ac88;const {..._0x4df8c7}=_0x42e0e7['merge']({},_0x15020a,this[_0x53b11f(0xde)]);this[_0x53b11f(0x128)][_0x53b11f(0xd7)](_0x38c58e,_0x4df8c7);}[_0x2a6bec(0xee)](){const _0x4773e7=_0x2a6bec;this[_0x4773e7(0xfa)](),this[_0x4773e7(0xce)]();}[_0x2a6bec(0x1b9)](){const _0x6d6569=_0x2a6bec;this[_0x6d6569(0x2d7)]();}[_0x2a6bec(0xfa)](){const _0x5694b2=_0x2a6bec;var _0x43de76;const _0x22e0f9=[[_0x1ee3e1],[_0x2dbec8],[_0x3a8030],[_0xfd3415],[_0x7228ba],[_0x5254f2,{'useClass':_0x1048ec}],[_0x3ba47d[_0x5694b2(0x194)],{'useClass':_0x3ba47d[_0x5694b2(0xcd)]}],[_0x3a040d[_0x5694b2(0x1fe)],{'useClass':_0x22372e}],[_0x57b4ed['DesktopCollaborationStatusDisplayController']],[_0x49cb73],[_0x2a8026],[_0x465ed4],[_0x2da604],[_0x57b4ed[_0x5694b2(0x317)]]];_0x42e0e7['registerDependencies'](this[_0x5694b2(0x33b)],_0x42e0e7[_0x5694b2(0x2ee)](_0x22e0f9,(_0x43de76=this[_0x5694b2(0xde)])==null?void 0x0:_0x43de76[_0x5694b2(0x169)]));}[_0x2a6bec(0x2d7)](){const _0x4bbe00=_0x2a6bec;this['disposeWithMe'](this['_renderManagerService'][_0x4bbe00(0x158)](_0x42e0e7['UniverInstanceType'][_0x4bbe00(0x2f3)],[_0x28e886])),this[_0x4bbe00(0x133)](this[_0x4bbe00(0x314)][_0x4bbe00(0x158)](_0x42e0e7[_0x4bbe00(0x129)][_0x4bbe00(0x19b)],[_0x21a66f]));}[_0x2a6bec(0xce)](){const _0x2fd144=_0x2a6bec;_0x42e0e7[_0x2fd144(0x19a)](this['_injector'],[[_0x465ed4],[_0x57b4ed[_0x2fd144(0x122)]],[_0x49cb73],[_0x2a8026],[_0x57b4ed[_0x2fd144(0x317)]]]);}},_0x4e4902(_0x57b4ed[_0x2a6bec(0x27d)],_0x2a6bec(0x23d),_0x3ebee7),_0x57b4ed['UniverCollaborationClientUIPlugin']=_0x181bf7([_0x42e0e7[_0x2a6bec(0x24a)](_0x3a040d['UniverCollaborationClientPlugin']),_0x27c863(0x1,_0x5af10f[_0x2a6bec(0x1d0)]),_0x27c863(0x2,_0x42e0e7['Inject'](_0x42e0e7[_0x2a6bec(0x1ca)])),_0x27c863(0x3,_0x42e0e7['IConfigService'])],_0x57b4ed[_0x2a6bec(0x27d)]);var _0x36daf0=Object[_0x2a6bec(0x333)],_0x70e211=(_0x20e945,_0x1c9494,_0x103351,_0x289e8c)=>{const _0x2d1bcb=_0x2a6bec;for(var _0x29a94a=_0x289e8c>0x1?void 0x0:_0x289e8c?_0x36daf0(_0x1c9494,_0x103351):_0x1c9494,_0xadf316=_0x20e945[_0x2d1bcb(0x1ad)]-0x1,_0x3a3535;_0xadf316>=0x0;_0xadf316--)(_0x3a3535=_0x20e945[_0xadf316])&&(_0x29a94a=_0x3a3535(_0x29a94a)||_0x29a94a);return _0x29a94a;},_0xf88d6b=(_0x3ba83c,_0x632e35)=>(_0x49be40,_0x44cd25)=>_0x632e35(_0x49be40,_0x44cd25,_0x3ba83c);_0x57b4ed[_0x2a6bec(0x1d5)]=class extends _0x3a040d[_0x2a6bec(0x2fd)]{constructor(_0x2d4cfb,_0x4c1a95,_0x5c8a7e,_0x459b38,_0x26fc66){super(_0x2d4cfb,_0x4c1a95,_0x5c8a7e,_0x459b38,_0x26fc66);}async['createSocket'](_0x28be68){const _0x48a938=_0x2a6bec,_0x1ab640=await this[_0x48a938(0x32e)](),_0x5d94d0=this[_0x48a938(0x23a)](_0x28be68,_0x1ab640);return this[_0x48a938(0x291)](_0x5d94d0);}[_0x2a6bec(0x23a)](_0x5be3e7,_0x5a136d){const _0x226bfe=_0x2a6bec,_0x332b0d=typeof window>'u'?new URL(_0x5be3e7):new URL(_0x5be3e7,window['location']['origin']);_0x332b0d['searchParams'][_0x226bfe(0x1bd)](_0x226bfe(0x1fb),_0x5a136d);const _0x554454=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x226bfe(0x10d)]['search']);return _0x554454['get'](_0x226bfe(0x29d))&&_0x332b0d['searchParams'][_0x226bfe(0x1bd)]('runId',_0x554454[_0x226bfe(0x24f)](_0x226bfe(0x29d))),_0x332b0d['toString']();}async[_0x2a6bec(0x32e)](){const _0xb18672=_0x2a6bec;var _0xd5f9f1,_0x539ca9,_0xd0de21;const _0x836e3b=this['_configService'][_0xb18672(0x2a2)](_0x3a040d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x165430=(_0xd5f9f1=_0x836e3b==null?void 0x0:_0x836e3b[_0xb18672(0x222)])!=null?_0xd5f9f1:_0x3a040d[_0xb18672(0x35f)];return(_0xd0de21=(_0x539ca9=(await this[_0xb18672(0x2d8)][_0xb18672(0x24f)](_0x165430,{'headers':{'Content-Type':'application/json'}}))[_0xb18672(0x126)])==null?void 0x0:_0x539ca9[_0xb18672(0x30e)])!=null?_0xd0de21:'';}},_0x57b4ed[_0x2a6bec(0x1d5)]=_0x70e211([_0xf88d6b(0x0,_0x42e0e7[_0x2a6bec(0x14e)](_0x42e0e7['Injector'])),_0xf88d6b(0x1,_0x42e0e7[_0x2a6bec(0x14e)](_0x3ba47d['HTTPService'])),_0xf88d6b(0x2,_0x42e0e7[_0x2a6bec(0x1a3)]),_0xf88d6b(0x3,_0x42e0e7[_0x2a6bec(0x2eb)]),_0xf88d6b(0x4,_0x12caed['ISnapshotServerService'])],_0x57b4ed[_0x2a6bec(0x1d5)]);const _0x385a23=0x7530,_0x173d9c=_0x2a6bec(0x2e9);class _0x1f5ae1 extends _0x42e0e7[_0x2a6bec(0x1d6)]{constructor(){const _0x32d6a9=_0x2a6bec;super(),_0x7f0de7(this,_0x32d6a9(0x1d1),_0x42e0e7[_0x32d6a9(0x1fc)]()),_0x7f0de7(this,'_selfUnitIDs',new Set()),_0x7f0de7(this,_0x32d6a9(0x27c),new Map()),_0x7f0de7(this,_0x32d6a9(0x17b),null),_0x7f0de7(this,_0x32d6a9(0x1eb),new Map()),_0x7f0de7(this,_0x32d6a9(0x2e5),new Map()),this[_0x32d6a9(0x1b8)]();}[_0x2a6bec(0x336)](){const _0x2d595c=_0x2a6bec;super['dispose'](),this[_0x2d595c(0x1eb)][_0x2d595c(0xe6)]((_0x52ed58,_0x4be009)=>this[_0x2d595c(0x196)](_0x4be009)),this[_0x2d595c(0x17b)]&&window['clearInterval'](this[_0x2d595c(0x17b)]);}['getUnitStatus$'](_0x13ceab){const _0x4ef7da=_0x2a6bec;return this[_0x4ef7da(0x12e)](_0x13ceab)[_0x4ef7da(0x27f)](_0x599c52[_0x4ef7da(0x12d)]());}[_0x2a6bec(0x264)](_0xddb055){const _0x48abf3=_0x2a6bec;this[_0x48abf3(0xef)][_0x48abf3(0x2f5)]===0x0&&this[_0x48abf3(0x28e)](),this['_selfUnitIDs'][_0x48abf3(0x279)](_0xddb055),this[_0x48abf3(0x106)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xddb055],'isForwarded':!0x1});}[_0x2a6bec(0x255)](_0x36dfff){const _0x534133=_0x2a6bec;this[_0x534133(0xef)][_0x534133(0x12f)](_0x36dfff),this['_selfUnitIDs'][_0x534133(0x2f5)]===0x0&&this[_0x534133(0x17b)]&&window[_0x534133(0xdd)](this['_heartbeatTimer']);}[_0x2a6bec(0x1b8)](){const _0x25eb12=_0x2a6bec;this[_0x25eb12(0x133)](_0x42e0e7[_0x25eb12(0x1ff)](_0x599c52[_0x25eb12(0x1e2)](window,_0x25eb12(0x303))[_0x25eb12(0x250)](_0x52e68d=>{const _0x4d9beb=_0x25eb12;if(_0x52e68d[_0x4d9beb(0x2fa)]!==_0x173d9c||!_0x52e68d[_0x4d9beb(0x2e2)])return;const _0x5e1799=JSON['parse'](_0x52e68d[_0x4d9beb(0x2e2)]);this[_0x4d9beb(0x28d)](_0x5e1799);}))),window[_0x25eb12(0x20f)](_0x25eb12(0xdc),()=>this[_0x25eb12(0x106)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x25eb12(0x138)](this[_0x25eb12(0xef)])}));}['_handleEvent'](_0x39a702){const _0x2f6672=_0x2a6bec;switch(_0x39a702[_0x2f6672(0xd4)]){case 0x0:this[_0x2f6672(0x195)](_0x39a702);break;case 0x1:this[_0x2f6672(0x309)](_0x39a702);break;case 0x2:this[_0x2f6672(0x2a3)](_0x39a702);break;}}[_0x2a6bec(0x195)](_0x3e790e){const _0x4645d8=_0x2a6bec,{unitIDs:_0x39f769,memberID:_0xd5788e,isForwarded:_0xfac1b3}=_0x3e790e;_0x39f769[_0x4645d8(0xe6)](_0x28582e=>{const _0xd6e7ed=_0x4645d8;if(!_0xfac1b3&&this['_unitOnClients']['has'](_0x28582e)&&this['_ensureSubject'](_0x28582e)['next'](_0x3a040d[_0xd6e7ed(0x130)][_0xd6e7ed(0x21a)]),!this['_unitOnClients'][_0xd6e7ed(0x297)](_0x28582e)||!this[_0xd6e7ed(0x27c)][_0xd6e7ed(0x24f)](_0x28582e)[_0xd6e7ed(0x297)](_0xd5788e)){const _0x398fd4=this['_unitOnClients'][_0xd6e7ed(0x24f)](_0x28582e)||new Set();_0x398fd4['add'](_0xd5788e),this[_0xd6e7ed(0x27c)][_0xd6e7ed(0x1bd)](_0x28582e,_0x398fd4),this[_0xd6e7ed(0x1f5)](_0xd5788e);}}),_0xfac1b3||this[_0x4645d8(0x106)]({'type':0x0,'memberID':this[_0x4645d8(0x1d1)],'unitIDs':[...this[_0x4645d8(0xef)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3cbfa0){const _0x36ddb6=_0x2a6bec;this[_0x36ddb6(0x196)](_0x3cbfa0);const _0x548a48=window[_0x36ddb6(0x20c)](()=>{const _0x3fc8d5=_0x36ddb6;this[_0x3fc8d5(0x27c)][_0x3fc8d5(0xe6)](_0x360632=>{const _0x586ba0=_0x3fc8d5;_0x360632[_0x586ba0(0x12f)](_0x3cbfa0);});},_0x385a23*0x2);this[_0x36ddb6(0x1eb)][_0x36ddb6(0x1bd)](_0x3cbfa0,_0x548a48);}['_removeClearOtherTimer'](_0x9a995b){const _0x3bfa2a=_0x2a6bec;if(this[_0x3bfa2a(0x1eb)][_0x3bfa2a(0x297)](_0x9a995b)){const _0x172a22=this[_0x3bfa2a(0x1eb)][_0x3bfa2a(0x24f)](_0x9a995b);_0x172a22&&window[_0x3bfa2a(0x245)](_0x172a22),this['_clearOtherTimers'][_0x3bfa2a(0x1bd)](_0x9a995b,null);}}[_0x2a6bec(0x309)](_0x4a7684){const _0x31d929=_0x2a6bec,{memberID:_0x536e5f,unitIDs:_0x3feceb}=_0x4a7684;_0x3feceb[_0x31d929(0xe6)](_0x37b17f=>{const _0x56a8e2=_0x31d929;var _0x4ceed5;const _0x48518c=this[_0x56a8e2(0x27c)][_0x56a8e2(0x24f)](_0x37b17f);_0x48518c&&(_0x48518c[_0x56a8e2(0x12f)](_0x536e5f),(_0x4ceed5=this[_0x56a8e2(0x12e)](_0x37b17f))==null||_0x4ceed5['next'](_0x48518c[_0x56a8e2(0x2f5)]===0x0?_0x3a040d['UnitStatus'][_0x56a8e2(0x2bf)]:_0x3a040d[_0x56a8e2(0x130)][_0x56a8e2(0x21a)]));}),this[_0x31d929(0x196)](_0x536e5f);}[_0x2a6bec(0x2a3)](_0x7d9c97){const _0x33ce84=_0x2a6bec;this[_0x33ce84(0x1f5)](_0x7d9c97['memberID']);}['_send'](_0x315b0b){const _0x168363=_0x2a6bec;localStorage[_0x168363(0x201)](_0x173d9c,JSON[_0x168363(0x164)](_0x315b0b));}[_0x2a6bec(0x28e)](){const _0x4eceff=_0x2a6bec;this[_0x4eceff(0x17b)]=window['setInterval'](()=>{const _0x37b163=_0x4eceff;this[_0x37b163(0x106)]({'type':0x2,'memberID':this['_id']});},_0x385a23);}[_0x2a6bec(0x12e)](_0x5c12c5){const _0x59e005=_0x2a6bec;return this['_unitStatus'][_0x59e005(0x297)](_0x5c12c5)||this['_unitStatus']['set'](_0x5c12c5,new _0x599c52[(_0x59e005(0x1f4))](_0x3a040d[_0x59e005(0x130)][_0x59e005(0x2bf)])),this['_unitStatus'][_0x59e005(0x24f)](_0x5c12c5);}}var _0x420b1a=(_0x17ff91=>(_0x17ff91[_0x17ff91['UNDEFINED']=0x0]='UNDEFINED',_0x17ff91[_0x17ff91['OK']=0x1]='OK',_0x17ff91[_0x17ff91[_0x2a6bec(0x2c4)]=0x2]=_0x2a6bec(0x2c4),_0x17ff91[_0x17ff91[_0x2a6bec(0x203)]=0x3]=_0x2a6bec(0x203),_0x17ff91[_0x17ff91[_0x2a6bec(0xf5)]=0x4]=_0x2a6bec(0xf5),_0x17ff91[_0x17ff91['UNAUTHENTICATED']=0x5]=_0x2a6bec(0x26c),_0x17ff91[_0x17ff91['ALREADY_EXISTS']=0x6]=_0x2a6bec(0x147),_0x17ff91[_0x17ff91[_0x2a6bec(0x134)]=0x7]=_0x2a6bec(0x134),_0x17ff91[_0x17ff91[_0x2a6bec(0x16b)]=0x8]='TOO_MANY_REQUESTS',_0x17ff91[_0x17ff91[_0x2a6bec(0x2ad)]=0x9]='COMPLETION_FINISHED',_0x17ff91[_0x17ff91[_0x2a6bec(0x13d)]=0xa]=_0x2a6bec(0x13d),_0x17ff91[_0x17ff91[_0x2a6bec(0x232)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x17ff91[_0x17ff91['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2a6bec(0x1c1),_0x17ff91[_0x17ff91['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2a6bec(0x177),_0x17ff91[_0x17ff91[_0x2a6bec(0x34a)]=0x1773]=_0x2a6bec(0x34a),_0x17ff91[_0x17ff91[_0x2a6bec(0x1e3)]=0x1b59]=_0x2a6bec(0x1e3),_0x17ff91[_0x17ff91[_0x2a6bec(0x2db)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x17ff91[_0x17ff91['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2a6bec(0x21c),_0x17ff91[_0x17ff91['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2a6bec(0x2b2),_0x17ff91[_0x17ff91[_0x2a6bec(0x2de)]=0x1b5d]=_0x2a6bec(0x2de),_0x17ff91[_0x17ff91[_0x2a6bec(0x1da)]=0x1f41]=_0x2a6bec(0x1da),_0x17ff91[_0x17ff91[_0x2a6bec(0x18f)]=0x2329]=_0x2a6bec(0x18f),_0x17ff91[_0x17ff91[_0x2a6bec(0x302)]=0x232a]=_0x2a6bec(0x302),_0x17ff91[_0x17ff91[_0x2a6bec(0x2dc)]=0x232b]=_0x2a6bec(0x2dc),_0x17ff91[_0x17ff91[_0x2a6bec(0x22d)]=0x232c]=_0x2a6bec(0x22d),_0x17ff91[_0x17ff91[_0x2a6bec(0xe2)]=0x232d]=_0x2a6bec(0xe2),_0x17ff91[_0x17ff91[_0x2a6bec(0x10c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x17ff91[_0x17ff91[_0x2a6bec(0x2e1)]=0x2712]=_0x2a6bec(0x2e1),_0x17ff91[_0x17ff91['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2a6bec(0xff),_0x17ff91[_0x17ff91[_0x2a6bec(0x25e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x17ff91[_0x17ff91[_0x2a6bec(0x22e)]=0x271a]=_0x2a6bec(0x22e),_0x17ff91[_0x17ff91[_0x2a6bec(0x10f)]=0x271b]=_0x2a6bec(0x10f),_0x17ff91[_0x17ff91[_0x2a6bec(0x123)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x17ff91[_0x17ff91[_0x2a6bec(0x2ac)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x17ff91[_0x17ff91[_0x2a6bec(0x1a1)]=0x2ee2]=_0x2a6bec(0x1a1),_0x17ff91[_0x17ff91[_0x2a6bec(0x170)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x17ff91[_0x17ff91[_0x2a6bec(0x105)]=0x2ee4]=_0x2a6bec(0x105),_0x17ff91[_0x17ff91[_0x2a6bec(0x274)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x17ff91[_0x17ff91[_0x2a6bec(0x319)]=0x32c9]=_0x2a6bec(0x319),_0x17ff91[_0x17ff91[_0x2a6bec(0x11b)]=0x32ca]=_0x2a6bec(0x11b),_0x17ff91[_0x17ff91[_0x2a6bec(0x254)]=0x32cb]=_0x2a6bec(0x254),_0x17ff91[_0x17ff91[_0x2a6bec(0x193)]=-0x1]='UNRECOGNIZED',_0x17ff91))(_0x420b1a||{}),_0x46ce48=Object[_0x2a6bec(0x333)],_0x4d033c=(_0x19b7da,_0x88a15c,_0x33aad5,_0x458683)=>{const _0x1e9191=_0x2a6bec;for(var _0x3005f6=_0x458683>0x1?void 0x0:_0x458683?_0x46ce48(_0x88a15c,_0x33aad5):_0x88a15c,_0x27a0e=_0x19b7da[_0x1e9191(0x1ad)]-0x1,_0x26862c;_0x27a0e>=0x0;_0x27a0e--)(_0x26862c=_0x19b7da[_0x27a0e])&&(_0x3005f6=_0x26862c(_0x3005f6)||_0x3005f6);return _0x3005f6;},_0x513028=(_0x25d951,_0x10fb49)=>(_0x32f036,_0x266e92)=>_0x10fb49(_0x32f036,_0x266e92,_0x25d951);_0x57b4ed[_0x2a6bec(0xe1)]=class extends _0x42e0e7[_0x2a6bec(0x1d6)]{constructor(_0x57cbc4,_0x9a08de,_0x11499b){const _0x171c3e=_0x2a6bec;super(),this['_instanceService']=_0x57cbc4,this[_0x171c3e(0x2d8)]=_0x9a08de,this[_0x171c3e(0x128)]=_0x11499b;}async[_0x2a6bec(0x150)](_0x2e1a66,_0x194726,_0x1f6c6a,..._0x1b59bc){const _0x4b8309=_0x2a6bec;var _0x569ab2,_0xf41449,_0x4f342b,_0x22b4b1;const _0x54294d=this['_instanceService'][_0x4b8309(0x173)]();if(!_0x54294d)throw new Error(_0x4b8309(0x1e6));const _0x6c5117=((_0x569ab2=this['_configService'][_0x4b8309(0x2a2)](_0x3a040d[_0x4b8309(0x18d)]))!=null?_0x569ab2:_0x3a040d[_0x4b8309(0x14c)])+'/'+_0x2e1a66+_0x4b8309(0x16d)+_0x194726,_0x4bf9dd=new URL(window[_0x4b8309(0x10d)][_0x4b8309(0x306)]),_0xab06b6={'scriptId':_0x2e1a66,'runId':(_0xf41449=_0x4bf9dd[_0x4b8309(0x214)]['get'](_0x4b8309(0x29d)))!=null?_0xf41449:'','function':_0x194726,'unitId':_0x54294d[_0x4b8309(0x225)](),'argsOfFunction':JSON[_0x4b8309(0x164)](_0x1b59bc),'invokeId':(_0x4f342b=_0x1f6c6a['invokeId'])!=null?_0x4f342b:'','executionId':(_0x22b4b1=_0x1f6c6a[_0x4b8309(0x1d3)])!=null?_0x22b4b1:''};try{const _0x1a52d4=await this[_0x4b8309(0x2d8)][_0x4b8309(0x260)](_0x6c5117,{'body':_0xab06b6});return _0x1a52d4[_0x4b8309(0x126)][_0x4b8309(0x285)]&&_0x1a52d4[_0x4b8309(0x126)]['error']['code']!==_0x420b1a['OK']?'Failed':_0x1a52d4[_0x4b8309(0x126)][_0x4b8309(0x1f2)];}catch{return'Failed';}}},_0x57b4ed[_0x2a6bec(0xe1)]=_0x4d033c([_0x513028(0x0,_0x42e0e7['IUniverInstanceService']),_0x513028(0x1,_0x42e0e7[_0x2a6bec(0x14e)](_0x3ba47d[_0x2a6bec(0x15d)])),_0x513028(0x2,_0x42e0e7[_0x2a6bec(0x1a3)])],_0x57b4ed['RemoteUniscriptService']),_0x57b4ed[_0x2a6bec(0x1bb)]=_0x17cef4,_0x57b4ed[_0x2a6bec(0x20a)]=_0x5254f2,_0x57b4ed[_0x2a6bec(0x184)]=_0x2bc6e2,_0x57b4ed[_0x2a6bec(0x246)]=_0x1f5ae1,_0x57b4ed['WebURLService']=_0x1048ec,Object[_0x2a6bec(0x145)](_0x57b4ed,Symbol[_0x2a6bec(0x17a)],{'value':'Module'});}));
1
+ function _0x5841(_0x39553d,_0x44caa){const _0x441605=_0x4416();return _0x5841=function(_0x58416e,_0x81968f){_0x58416e=_0x58416e-0x10e;let _0x299eb2=_0x441605[_0x58416e];return _0x299eb2;},_0x5841(_0x39553d,_0x44caa);}function _0x4416(){const _0x1367bc=['_ensureSubject','_beforeCloseService','EffectRefRangId','UniverEngineFormula','@univerjs/engine-formula','defs','collaboration-client.offline-data-not-saved','_sheetSkeletonManagerService','CollaborationEvent','_hideTimer','InsertRangeMoveRightCommandId','getDocRanges','UniverUi','addClipboardHook','origin','docStateChange$','M0\x200H16V16H0z','IRemoteInstanceService','_getMergeRange','dispose','UniverProCollaboration','distinctUntilChanged','_localStorageService','_anchorDot','getFocusedUnit','UNAUTHENTICATED','LICENSE_DISTRO_REJECTED','_httpService','YUUMI_URL_COL_OUT_OF_RANGE','loadUnit','_unitOnClients','onRendered','next','rxjs','subscribe','238UvIGQS','getCollabEntity$','_roomMembers$','_getScale','enableLocalCache','WebSocketService','setConfig','history','getRelativeToViewportCoord','ITransformService','APPLY_REVISION_CONFILICT','UniverNetwork','NodePositionConvertToCursor','_transformPreviousActiveRange','roomMembers$','getRenderById','TEXT_RANGE_LAYER_INDEX','error','url(#$1','debug','_cursor','type','_context','serializeRangeWithSheet','APPLY_DUPLICATED','permission.content','arc','TOO_MANY_REQUESTS','off-line-single','HTTPService','_initEvent','round','unitId','UniverProCollaborationClientUi','parse','OFFLINE','_status$','useDependency','APPLY_NON_SEQUENTIAL_REVISION','registerComponent','Disposable','@univerjs/engine-render','handleDeleteRangeMoveLeft','selections','_docStateChangeManagerService','has','IRenderManagerService','getCurrentSelections','_notificationService','_drawTextRange','focused$','status$','requireSession','collabStatus.conflict','getValue','getVpScrollXYInfoByPosToVp','search','_collaborationUIEventService','51291GSrtsc','startsWith','SOCKET_FAILED_RETRY','_entityInit$','APPLY_PERMISSION_DENIED','_saveTaskMap','UniverInstanceType','_doCreateSocket','registerRenderModule','_hover','_initDependencies','getMemberID','_entities','replaceDocRanges','...','getSheetObject','icon','exhaustSavingTask','LocaleService','/run/','HEADER_MENU','@univerjs-pro/collaboration','hovered','UNRECOGNIZED','_collabCursorController','LOCAL_CACHE_INTERVAL','fill','add','YUUMI_RATE_OVER_LIMIT','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','switchMap','transformMutation','application/json','_onCursorDelete','_getSheetObject','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','complete','_getSessionTicket','prototype','JOIN_ROOM_FAILED','current','66VifSaW','cursorInfo$','_messageService','hasOwnProperty','OffLineSingle','getTypeOfUnitDisposed$','RemoveRowCommandId','amd','m1Prime','IUniverInstanceService','entityInit$','transformMutationsWithChangeset','_assignedColors','clearTimeout','runRefRangeMutations','LICENSE_MAX_UNITS_EXCEEDED','IBeforeCloseService','0\x200\x2017\x2016','_handleHeartbeatEvent','defineProperty','collabStatus.offline','_revisionService','url(#on-line-single_clip0_910_349)','disposeWithMe','getSkeleton','gold400','_updateSubUnitFromURLParams','map','RevisionService','concat','then','_onCursorUpdate','getUndoRedoMutationParamsCache','createSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_document','_session','UniverSheets','lineTo','_univerInstanceService','params','getColor','ONLINE','split','newValue','collab-rect-range-','WebBrowserSingleActiveUnitService','searchParams','saveOfflineData','min','OTHER_CLIENTS_EDITING','180282hNxclJ','_dataLoaderService','_docClipboardService','handleDeleteRangeMoveUp','_handleLeaveEvent','@univerjs/sheets-ui','getSheetId','UniverEngineRender','getConfig','Rectangle','_localCacheService','column','YUUMI_ASYNCIO_CANCELLED','SUBMIT_CHANGESET_TIMEOUT','@univerjs/design','IUIPartsService','_selfUnitIDs','PY_RUNTIME_SCRIPT_ERROR','path','_shapes','ColorKit','getSheetBySheetId','CollaborationSocketService','isActive','RxDisposable','findNodePositionByCharIndex','IDocClipboardService','INotificationService','Warning','@univerjs/network','name','roomMembers','_eventUnsubscribe','_online','RefRangeService','length','getActiveSheet','12855bOEdFn','find','sheetId','2209630VcOYXk','react','addObject','none','WECHAT_HAS_BEEN_BOUND','_handleHover','UNIVER_SHEET','assignAColorForMemberID','_onRefRangeChange','NOT_FOUND','saveTaskMap','USERS_LEAVE','setActiveRange','SNAPSHOT_INVALID_SNAPSHOT','symbol','30010UiRJhb','transformIMECache','_drawAnchor','max','forwardRef','wsSessionTicketUrl','Injector','shareReplay','trim','_syncEditingCollabCursorService','_memberService','getAncestorScale','LOGIN_FAILED','setParam','collaboration-client-ui.config','DocStateChangeManagerService','blue400','body','doc.mutation.rich-text-editing','disposeUnit','addEventListener','purple300','labelPosition','RegularPolygon','_unitStatus','NO_OTHER_CLIENTS_EDITING','debounce','_transformHistoryAndStateStack','setTimeout','_config','_setupBeforeClosingHandler','extend','loadOfflineData','_updateCollabCursors','ICommandService','colorChannel1','UniverCore','values','unshift','_colorIndex','_injector','black','AWAITING','_docSyncEditingCollabCursorService','getMergeData','getOwnPropertyDescriptor','height','_scheduleClearOtherTimer','_renderManagerService','Tools','_createSocketURL','transform','isTransformMutationFailure','syncEditingCollabCursor','triggerDblclick','pipe','size','getLocalCacheKey','debounceTime','_updateLocalCursor','#fff','IMessageService','isTransformMutationsWithChangesetSuccess','override','getRangePointData','range','random','text','clearInterval','_startDocCollabCursor','mutations','_removeClearOtherTimer','_scheduleSaving','_id','_name','@univerjs/drawing','sheetID','BehaviorSubject','_docTransformSelectionsService','post','assign','CHANGESET_REVISION_CONFILICT','children','rxjs/operators','session.will-retry','bottom','createIdentifier','UniverDrawing','@univerjs/core','Inject','uni.network.url-service','propertyIsEnumerable','Optional','ThemeService','subscribeEvent','CollaborationController','_draw','SetWorksheetActivateCommand','_registerDependencies','OTHER_CLIENT_EDITING','connectInjector','_collabSessionService','_cachedData','currentSkeleton$','UniverSheetsUi','ISnapshotServerService','handleInsertRow','location','fillStyle','registerRefRange','SYNCED','React','_refreshCollabCursors','session.collaboration-timeout','subUnitId','takeUntil','RemoteUniscriptService','ACTIVE_UNIT_EVENT_CHANNEL','_initCommandExecutedListener','DesktopCollaborationStatusDisplayController','ALREADY_EXISTS','moveTo','off-line-single_clip0_910_343','handleInsertRangeMoveDown','forEach','ILocalStorageService','_range','CollaborationStatus','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','permission.title','substring','createInstance','_themeService','USER_NOT_INVITED_CODE','CollaborationUIEventId','createElement','from','UniverRpc','combineLatest','Vector2','div','getTypeOfUnitAdded$','_collaborationController','_updateURLWithCurrentState','operators','DependentOn','UnitStatus','_configService','removeParam','_anchor','key','top','deserializeRangeWithSheet','VIEW_MAIN','SHEET_VIEWPORT_KEY','DataLoaderService','SNAPSHOT_HAS_BEEN_REMOVED','width','_collabCursorState$','collabStatus.syncing','_imageIoService','actions','onPointerLeave$','ticket','collab-text-anchor-','setShapeProps','_refRangeService','mask','urlChange$','color','_colorAssignService','MessageType','univer-text-green-500','collabCursorState$','tag','ISocketService','@univerjs/ui','UNDEFINED','useObservable','sessionTicket','data','Error','YUUMI_SUBSCRIPTION_NOT_FOUND','resize','collab-text-range-','@univerjs/docs','NOT_COLLAB','m2Prime','_disabled','_handleJoinEvent','MOBILE_HAS_BEEN_BOUND','univer-flex\x20univer-items-center','set','replaceState','executeCommand','startColumn','updateOfflineData','unit','collaboration.closeRoom','mergeOverrideWithDependencies','_cursorInfo$','currentTheme$','_init','univer-text-red-500','MoveRangeCommandId','_color','SessionStatus','unsubscribe','7690518fHOHrH','use','BrowserCollaborationSocketService','ENSURE_SNAPSHOT_EXECUTION','send','_docSkeletonManagerService','cursorInfo','CollaborationUIEventService','textRanges','DocCollaborationEntity','_transformService','dispose$','_drawRectRange','measureText','getCoordByCell','init','evenodd','_cursorShapes','session.connection-failed','getItem','_initResize','subunit','deepClone','code','className','INVITE_CODE_ALREADY_BOUND','MemberService','defIds','attrs','Subject','verdancy600','_scheduleHeartbeat','getUnitStatus$','setItem','_toggleOnline','EMAIL_HAS_BEEN_BOUND','transformSelections','getUnitId','row','includes','indexOf','1em','transformStateCache','toRgbString','disableLocalCache','SetSelectionsOperation','ILogService','IURLService','UniverDesign','_heartbeatTimer','asObservable','pluginName','Plugin','LICENSE_EXPORT_SIZE_EXCEEDED','COMPLETION_FINISHED','whenReady','unload','DOC_RANGE_TYPE','PENDING','APPLY_REJECT','_instanceService','handleIRemoveCol','getStateCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Rect','_hovered','getUniverSheetInstance','getViewport','_textBubble','sessionStatus$','BuiltInUIPart','_commandService','UniverCollaborationClientUIPlugin','@univerjs/sheets','_setupSubUnitSync','_docTransformStateCacheService','onPointerMove$','jsx','unitID','isArray','getOwnPropertySymbols','setUndoRedoMutationParamsCache','_startSheetCollabCursor','generateRandomId','onMouseMove','show','fromEvent','_docTransformIMECacheService','closePath','currentColor','setAlpha','RECT','save','UPDATE_CURSOR','redoState','setStateCache','_localeService','toStringTag','selection','with','CollaborationDataLoaderController','handleMoveRange','FromArray','merge','UniverCollaborationClientPlugin','_lastPointer','xlink:href','_initStatusListener','Workbook','UniverProCollaborationClient','collabStatus.synced','all','_urlService','Shape','_removeCollabCursors','getMember','getCellPositionByOffset','toDisposable','result','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_backgroundColor','_labelPosition','call','string','INVITE_CODE_REQUIRED','getParam','856tdkTRR','runId','replace','MUTATION','_getAnchorBounding','SheetsSelectionsService','entries','_getSaveTimeout','transformRemoteChangeset','eventID','YUUMI_NO_CUBOID_FOR_QUESTION','event$','svg','RichTextEditingMutation','on-line-single_clip0_910_349','memberID','stringify','exports','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','SetDocZoomRatioOperation','@univerjs/docs-ui','DocSelectionManagerService','_handleEvent','function','get','_toggleOffline','collab-client.tooltip.reconnect','ILocalCacheService','delete','CollaborationSessionService','some','drawWith','PERMISSION_DENIED','_saveCache','_cursors','[CollaborationDataLoaderController]','14201210WoLOjU','engine','_scene','undoState','_transformUndoRedoStack','@univerjs-pro/collaboration-client','_send','IConfigService','DisposableCollection','CLOSE_ROOM','SetTextSelectionsOperation','COLORS','DocIMEInputManagerService','_render','idSuffix','collabStatus.notCollab','_docSkeleton','DEFAULT_WS_SESSION_TICKET_URL','getUnhiddenWorksheets','href','_initStatusComponent','InsertRowCommandId','storage','toString','font','displayName','onPointerEnter$','getOffsetConfig','CONFLICT','activeSheet$','on-line-single','addObjects','_clearOtherTimers','fillText','Unknown\x20user','YUUMI_UNABLE_LOAD_URL','push','hide','pushState','onStarting','react/jsx-runtime','1300xRfdtY','_uiPartsService','addHandlerCallback','FETCH_MISS','isEditing','INTERNAL_ERROR','handleInsertCol','UNIVER_DOC','DeleteRangeMoveUpCommandId','getCollabCursors$','CONNECTOR_DATA_TOO_LARGE','InsertColCommandId','_logService','url(#off-line-single_clip0_910_343)','onCommandExecuted','reconnect'];_0x4416=function(){return _0x1367bc;};return _0x4416();}(function(_0x8134f3,_0x12598f){const _0x2e9d68=_0x5841,_0x5ca0be=_0x8134f3();while(!![]){try{const _0x3c0bbb=-parseInt(_0x2e9d68(0x358))/0x1*(-parseInt(_0x2e9d68(0x2ee))/0x2)+-parseInt(_0x2e9d68(0x346))/0x3*(-parseInt(_0x2e9d68(0x258))/0x4)+-parseInt(_0x2e9d68(0x349))/0x5+parseInt(_0x2e9d68(0x321))/0x6*(-parseInt(_0x2e9d68(0x28b))/0x7)+parseInt(_0x2e9d68(0x20b))/0x8*(parseInt(_0x2e9d68(0x2c5))/0x9)+-parseInt(_0x2e9d68(0x22f))/0xa+parseInt(_0x2e9d68(0x18d))/0xb;if(_0x3c0bbb===_0x12598f)break;else _0x5ca0be['push'](_0x5ca0be['shift']());}catch(_0x1cf91c){_0x5ca0be['push'](_0x5ca0be['shift']());}}}(_0x4416,0xc5531),function(_0x2a49c1,_0x331a20){const _0x74e936=_0x5841;typeof exports=='object'&&typeof module<'u'?_0x331a20(exports,require(_0x74e936(0x234)),require('@univerjs/core'),require('@univerjs/engine-render'),require(_0x74e936(0x33e)),require(_0x74e936(0x21f)),require(_0x74e936(0x3a3)),require(_0x74e936(0x289)),require(_0x74e936(0x176)),require(_0x74e936(0x2da)),require(_0x74e936(0x26c)),require(_0x74e936(0x1d6)),require('rxjs/operators'),require(_0x74e936(0x326)),require(_0x74e936(0x257)),require(_0x74e936(0x16d)),require(_0x74e936(0x32f)),require(_0x74e936(0x34a)),require('@univerjs/rpc')):typeof define==_0x74e936(0x222)&&define[_0x74e936(0x2f5)]?define([_0x74e936(0x21c),_0x74e936(0x234),_0x74e936(0x115),_0x74e936(0x2b4),_0x74e936(0x33e),'@univerjs/docs-ui','@univerjs/drawing',_0x74e936(0x289),'@univerjs/docs',_0x74e936(0x2da),_0x74e936(0x26c),_0x74e936(0x1d6),_0x74e936(0x110),'@univerjs/sheets-ui','react/jsx-runtime',_0x74e936(0x16d),_0x74e936(0x32f),'react','@univerjs/rpc'],_0x331a20):(_0x2a49c1=typeof globalThis<'u'?globalThis:_0x2a49c1||self,_0x331a20(_0x2a49c1[_0x74e936(0x2ac)]={},_0x2a49c1[_0x74e936(0x1fa)],_0x2a49c1[_0x74e936(0x37c)],_0x2a49c1[_0x74e936(0x328)],_0x2a49c1[_0x74e936(0x296)],_0x2a49c1['UniverDocsUi'],_0x2a49c1[_0x74e936(0x114)],_0x2a49c1[_0x74e936(0x289)],_0x2a49c1['UniverDocs'],_0x2a49c1[_0x74e936(0x27c)],_0x2a49c1[_0x74e936(0x26b)],_0x2a49c1[_0x74e936(0x313)],_0x2a49c1[_0x74e936(0x289)][_0x74e936(0x14d)],_0x2a49c1[_0x74e936(0x125)],_0x2a49c1[_0x74e936(0x12c)],_0x2a49c1[_0x74e936(0x274)],_0x2a49c1[_0x74e936(0x1bd)],_0x2a49c1[_0x74e936(0x12c)],_0x2a49c1[_0x74e936(0x146)]));}(this,function(_0x4c3250,_0x2c72d0,_0x5bf9c6,_0x5d1039,_0x28d1f0,_0x1a8f2e,_0x32ed5f,_0x496cb2,_0x50e692,_0x4e6003,_0x44be57,_0x4fd62b,_0x19b4ce,_0x45d045,_0x5540cf,_0x106fc7,_0x165dd1,_0xab82b5,_0x1d3fe6){'use strict';const _0x19a859=_0x5841;var _0x1cbfe9=Object[_0x19a859(0x301)],_0x22e32e=(_0x11e0d3,_0x3c9bd8,_0x1eab2b)=>_0x3c9bd8 in _0x11e0d3?_0x1cbfe9(_0x11e0d3,_0x3c9bd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1eab2b}):_0x11e0d3[_0x3c9bd8]=_0x1eab2b,_0x521fa5=(_0xf7ad17,_0x422f42,_0x1cca67)=>_0x22e32e(_0xf7ad17,typeof _0x422f42!=_0x19a859(0x357)?_0x422f42+'':_0x422f42,_0x1cca67),_0x5e463f=Object[_0x19a859(0x385)],_0x36cb6a=(_0x3ccca4,_0x5e3f5f,_0x2adf32,_0x309caf)=>{const _0x158809=_0x19a859;for(var _0x1e29c6=_0x309caf>0x1?void 0x0:_0x309caf?_0x5e463f(_0x5e3f5f,_0x2adf32):_0x5e3f5f,_0x4efffc=_0x3ccca4[_0x158809(0x344)]-0x1,_0x52f7e8;_0x4efffc>=0x0;_0x4efffc--)(_0x52f7e8=_0x3ccca4[_0x4efffc])&&(_0x1e29c6=_0x52f7e8(_0x1e29c6)||_0x1e29c6);return _0x1e29c6;},_0x39b60c=(_0x1711ca,_0x4f685e)=>(_0x30e9b6,_0x58de0a)=>_0x4f685e(_0x30e9b6,_0x58de0a,_0x1711ca);let _0x41ef61=class extends _0x5bf9c6['RxDisposable']{constructor(_0x19e246,_0x352f4a){const _0x1c8750=_0x19a859;super(),this[_0x1c8750(0x323)]=_0x19e246,this[_0x1c8750(0x15d)]=_0x352f4a,this[_0x1c8750(0x187)]();}[_0x19a859(0x187)](){const _0x2cccf1=_0x19a859,_0x3bfa1c=this;this[_0x2cccf1(0x305)](this[_0x2cccf1(0x323)][_0x2cccf1(0x275)]({'onBeforePasteImage':async _0x1cd2b6=>{const _0x58ab85=_0x2cccf1,_0x1cab38=await _0x3bfa1c[_0x58ab85(0x15d)]['saveImage'](_0x1cd2b6);return _0x1cab38?{'source':_0x1cab38['source'],'imageSourceType':_0x1cab38['imageSourceType']}:null;}}));}};_0x41ef61=_0x36cb6a([_0x39b60c(0x0,_0x1a8f2e[_0x19a859(0x33b)]),_0x39b60c(0x1,_0x32ed5f['IImageIoService'])],_0x41ef61);const _0x3b1f63=[_0x19a859(0x36d),'jiqing500',_0x19a859(0x1ab),'red300',_0x19a859(0x368),_0x19a859(0x307)];class _0x30d5cc extends _0x5bf9c6['Disposable']{constructor(){const _0x5cbd57=_0x19a859;super(...arguments),_0x521fa5(this,_0x5cbd57(0x2fa),new Map()),_0x521fa5(this,'_colorIndex',0x0);}[_0x19a859(0x350)](_0x17b72b){const _0xdcb8b8=_0x19a859;if(this['_assignedColors'][_0xdcb8b8(0x2b8)](_0x17b72b))return this[_0xdcb8b8(0x2fa)]['get'](_0x17b72b);const _0x33eb80=_0x3b1f63[this['_colorIndex']];return this[_0xdcb8b8(0x37f)]=(this[_0xdcb8b8(0x37f)]+0x1)%_0x3b1f63['length'],this[_0xdcb8b8(0x2fa)][_0xdcb8b8(0x17d)](_0x17b72b,_0x33eb80),_0x33eb80;}}function _0x23dcc3(_0x215137){let _0x2dfb2b='';for(const _0x3abd55 of _0x215137){const {startOffset:_0xb8259e,endOffset:_0x55d6c2,isActive:_0x193841,rangeType:_0x3f8139,segmentId:_0x5588d9,segmentPage:_0x4553c3}=_0x3abd55;_0x2dfb2b['length']&&(_0x2dfb2b+=','),_0x2dfb2b+=_0xb8259e+':'+_0x55d6c2+':'+(_0x193841?'1':'0')+':'+_0x3f8139+':'+_0x5588d9+':'+_0x4553c3;}return _0x2dfb2b;}function _0xe496a5(_0x1de54d){const _0x2d80a3=_0x19a859,_0x4bd327=_0x1de54d[_0x2d80a3(0x319)](','),_0x2d9676=[];for(const _0x2a178e of _0x4bd327){const [_0x11982e,_0x3adb6c,_0xadad32,_0x3147ab,_0x2f6d28,_0x9e751e]=_0x2a178e['split'](':');_0x2d9676['push']({'startOffset':Number(_0x11982e),'endOffset':Number(_0x3adb6c),'collapsed':_0x11982e===_0x3adb6c,'isActive':_0xadad32==='1','rangeType':_0x3147ab===_0x5bf9c6[_0x2d80a3(0x1c6)]['TEXT']?_0x5bf9c6['DOC_RANGE_TYPE']['TEXT']:_0x5bf9c6[_0x2d80a3(0x1c6)][_0x2d80a3(0x1e8)],'segmentId':typeof _0x2f6d28==_0x2d80a3(0x208)?String(_0x2f6d28):'','segmentPage':Number(_0x9e751e!=null?_0x9e751e:-0x1)});}return _0x2d9676[_0x2d80a3(0x229)](_0x311d81=>_0x311d81[_0x2d80a3(0x338)])||(_0x2d9676[0x0][_0x2d80a3(0x338)]=!0x0),_0x2d9676;}class _0x299122 extends _0x5bf9c6[_0x19a859(0x339)]{constructor(){const _0x3f2a10=_0x19a859;super(...arguments),_0x521fa5(this,_0x3f2a10(0x15b),new _0x496cb2['BehaviorSubject'](null)),_0x521fa5(this,_0x3f2a10(0x16a),this[_0x3f2a10(0x15b)]['asObservable']());}['syncEditingCollabCursor'](_0x5ac2de){const _0x496e8e=_0x19a859,{unitID:_0x1bd9b0,memberID:_0x3726f9,textRanges:_0x4280d0}=_0x5ac2de,_0x36309d=_0x23dcc3(_0x4280d0);if(_0x36309d==='')return;const _0x381b00={'unitID':_0x1bd9b0,'memberID':_0x3726f9,'selection':_0x36309d};this[_0x496e8e(0x15b)][_0x496e8e(0x288)](_0x381b00);}}var _0x3938c2=Object[_0x19a859(0x385)],_0x849b3d=(_0x1afe1d,_0x76b9cd,_0x492c1f,_0x2b1701)=>{const _0x2af25b=_0x19a859;for(var _0x2b7afc=_0x2b1701>0x1?void 0x0:_0x2b1701?_0x3938c2(_0x76b9cd,_0x492c1f):_0x76b9cd,_0x4ec48c=_0x1afe1d[_0x2af25b(0x344)]-0x1,_0x1d9941;_0x4ec48c>=0x0;_0x4ec48c--)(_0x1d9941=_0x1afe1d[_0x4ec48c])&&(_0x2b7afc=_0x1d9941(_0x2b7afc)||_0x2b7afc);return _0x2b7afc;},_0x2a899b=(_0x238f93,_0x34e166)=>(_0x3f8c9a,_0x3525cc)=>_0x34e166(_0x3f8c9a,_0x3525cc,_0x238f93);const _0x4d5d64=0x12c,_0x303001=0x64;let _0x5964e0=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x154aa6,_0x42af39,_0x3e8b09,_0x1d1159,_0xf2fb4c,_0x5d0b8d,_0x3f75ad,_0x185cbe,_0x473101){const _0x201cb9=_0x19a859;super(),_0x521fa5(this,_0x201cb9(0x342),!0x1),_0x521fa5(this,_0x201cb9(0x187),!0x1),_0x521fa5(this,'_cursorInfo$',new _0x496cb2[(_0x201cb9(0x3a5))](new Map())),_0x521fa5(this,'cursorInfo$',this[_0x201cb9(0x185)][_0x201cb9(0x1bf)]()),_0x521fa5(this,_0x201cb9(0x28d),new _0x496cb2[(_0x201cb9(0x3a5))]([])),_0x521fa5(this,_0x201cb9(0x299),this[_0x201cb9(0x28d)][_0x201cb9(0x38f)](_0x496cb2[_0x201cb9(0x392)](_0x4d5d64))),_0x521fa5(this,_0x201cb9(0x393),_0x5bf9c6['debounce'](_0x303954=>{const _0x2ac2=_0x201cb9,_0x54efd5={'eventID':_0x4e6003[_0x2ac2(0x270)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2ac2(0x312)][_0x2ac2(0x2d0)](),'selection':_0x23dcc3(_0x303954)}};this['_session']['send'](_0x54efd5,this['unitID']);},_0x303001)),(this[_0x201cb9(0x1db)]=_0x154aa6,this[_0x201cb9(0x312)]=_0x42af39,this[_0x201cb9(0x380)]=_0x3e8b09,this[_0x201cb9(0x167)]=_0x1d1159,this['_memberService']=_0xf2fb4c,this[_0x201cb9(0x361)]=_0x5d0b8d,this['_transformService']=_0x3f75ad,this[_0x201cb9(0x315)]=_0x185cbe,this['_commandService']=_0x473101);}get['cursorInfo'](){const _0x271864=_0x19a859;return this[_0x271864(0x185)][_0x271864(0x2c1)]();}get[_0x19a859(0x340)](){return this['_roomMembers$']['getValue']();}[_0x19a859(0x27b)](){const _0x4a48ad=_0x19a859;super['dispose'](),this['_cursorInfo$'][_0x4a48ad(0x288)](new Map()),this[_0x4a48ad(0x185)][_0x4a48ad(0x2e9)](),this[_0x4a48ad(0x28d)][_0x4a48ad(0x288)]([]),this['_roomMembers$'][_0x4a48ad(0x2e9)]();}[_0x19a859(0x19c)](){const _0x5ae5ef=_0x19a859;this[_0x5ae5ef(0x187)]||(this[_0x5ae5ef(0x187)]=!0x0,this[_0x5ae5ef(0x312)][_0x5ae5ef(0x1d2)][_0x5ae5ef(0x38f)](_0x496cb2['takeUntil'](this['dispose$']))[_0x5ae5ef(0x28a)](_0x586ecd=>{const _0x3733b9=_0x5ae5ef;_0x586ecd===_0x2c72d0[_0x3733b9(0x18b)][_0x3733b9(0x318)]?this[_0x3733b9(0x1af)]():this['_toggleOffline']();}),this['_session'][_0x5ae5ef(0x216)][_0x5ae5ef(0x38f)](_0x496cb2[_0x5ae5ef(0x130)](this[_0x5ae5ef(0x198)]))[_0x5ae5ef(0x28a)](_0x131d9d=>{const _0x48529f=_0x5ae5ef,_0x3c92f5=_0x131d9d[_0x48529f(0x214)];_0x3c92f5===_0x4e6003[_0x48529f(0x270)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x131d9d),_0x3c92f5===_0x4e6003[_0x48529f(0x270)][_0x48529f(0x354)]&&this[_0x48529f(0x2e6)](_0x131d9d);}),this[_0x5ae5ef(0x305)](this[_0x5ae5ef(0x1d4)][_0x5ae5ef(0x266)](_0x121ad0=>{const _0x51bb92=_0x5ae5ef,_0x1af7ca=_0x121ad0[_0x51bb92(0x316)];_0x1af7ca!=null&&this['_online']&&_0x121ad0['id']===_0x50e692[_0x51bb92(0x239)]['id']&&_0x1af7ca[_0x51bb92(0x2ab)]===this[_0x51bb92(0x1db)]&&_0x1af7ca[_0x51bb92(0x25c)]===!0x1&&_0x1af7ca['ranges'][_0x51bb92(0x344)]>0x0&&this[_0x51bb92(0x393)](_0x1af7ca['ranges']);})),this[_0x5ae5ef(0x361)][_0x5ae5ef(0x16a)][_0x5ae5ef(0x38f)](_0x496cb2[_0x5ae5ef(0x130)](this[_0x5ae5ef(0x198)]))[_0x5ae5ef(0x28a)](_0x45ba50=>{const _0x50a8a7=_0x5ae5ef;if((_0x45ba50==null?void 0x0:_0x45ba50[_0x50a8a7(0x1db)])!==this[_0x50a8a7(0x1db)])return;const _0x2324a8={'eventID':_0x4e6003[_0x50a8a7(0x270)]['UPDATE_CURSOR'],'data':_0x45ba50};this[_0x50a8a7(0x30d)](_0x2324a8);}),this[_0x5ae5ef(0x305)](this[_0x5ae5ef(0x1d4)][_0x5ae5ef(0x266)](_0x4fb321=>{const _0x3fa9de=_0x5ae5ef;if(_0x4fb321[_0x3fa9de(0x316)]==null)return;const _0x2191d3=_0x4fb321[_0x3fa9de(0x316)];if(_0x4fb321['id']!==_0x50e692[_0x3fa9de(0x218)]['id']||_0x2191d3[_0x3fa9de(0x2ab)]!==this[_0x3fa9de(0x1db)])return;const _0x10a874={'id':_0x3fa9de(0x36a),'params':_0x2191d3},_0xaed740=this[_0x3fa9de(0x193)];for(const [_0x3dd706,_0x30d2d4]of _0xaed740){const _0x384d02={'id':_0x3fa9de(0x36a),'params':{'unitId':this[_0x3fa9de(0x1db)],'actions':null,'textRanges':_0x30d2d4['ranges']}},_0x3b47a0=this[_0x3fa9de(0x197)]['transformMutation'](_0x10a874,_0x384d02,!0x1);if(_0x4e6003[_0x3fa9de(0x38c)](_0x3b47a0))throw _0x3b47a0['error'];_0xaed740[_0x3fa9de(0x17d)](_0x3dd706,{..._0x30d2d4,'ranges':_0x3b47a0[_0x3fa9de(0x178)][_0x3fa9de(0x316)][_0x3fa9de(0x195)]});}queueMicrotask(()=>{const _0x2cb3b5=_0x3fa9de;this[_0x2cb3b5(0x185)][_0x2cb3b5(0x288)](_0xaed740);});})));}[_0x19a859(0x30d)](_0x24bde9){const _0xe0c9d0=_0x19a859;var _0xbd7078,_0x24e7c9;const {memberID:_0x334155,selection:_0x8c4b7}=_0x24bde9['data'],_0x3516b2=_0xe496a5(_0x8c4b7),_0x5021eb=(_0x24e7c9=(_0xbd7078=this[_0xe0c9d0(0x362)]['getMember'](this['unitID'],_0x334155))==null?void 0x0:_0xbd7078[_0xe0c9d0(0x33f)])!=null?_0x24e7c9:_0xe0c9d0(0x251),_0x19f57c={'color':this[_0xe0c9d0(0x167)][_0xe0c9d0(0x350)](_0x334155),'name':_0x5021eb,'ranges':_0x3516b2},_0x4d5af5=this[_0xe0c9d0(0x193)];_0x4d5af5[_0xe0c9d0(0x17d)](_0x334155,_0x19f57c),this[_0xe0c9d0(0x185)][_0xe0c9d0(0x288)](_0x4d5af5);}[_0x19a859(0x2e6)](_0x4e7e2b){const _0x48f2cc=_0x19a859,{memberID:_0x26db54}=_0x4e7e2b[_0x48f2cc(0x171)],_0x565d0d=this['cursorInfo'];_0x565d0d[_0x48f2cc(0x227)](_0x26db54),this[_0x48f2cc(0x185)]['next'](_0x565d0d);}['_toggleOnline'](){const _0x405a79=_0x19a859;var _0x3bfbb6;if(this['_online']=!0x0,((_0x3bfbb6=this[_0x405a79(0x315)][_0x405a79(0x280)]())==null?void 0x0:_0x3bfbb6['getUnitId']())!==this['unitID'])return;const _0x42aef5=this[_0x405a79(0x380)][_0x405a79(0x223)](_0x50e692['DocSelectionManagerService'])[_0x405a79(0x273)]();Array[_0x405a79(0x1dc)](_0x42aef5)&&_0x42aef5['length']>0x0&&this['_updateLocalCursor'](_0x42aef5);}[_0x19a859(0x224)](){const _0x2acc7e=_0x19a859;this[_0x2acc7e(0x342)]=!0x1;}};_0x5964e0=_0x849b3d([_0x2a899b(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x2a899b(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x30d5cc)),_0x2a899b(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x1a7)])),_0x2a899b(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x299122)),_0x2a899b(0x6,_0x4e6003['ITransformService']),_0x2a899b(0x7,_0x5bf9c6[_0x19a859(0x2f7)]),_0x2a899b(0x8,_0x5bf9c6[_0x19a859(0x37a)])],_0x5964e0);var _0x24604c=Object[_0x19a859(0x385)],_0x11def2=(_0x2e454a,_0x4f5bc7,_0xbbe697,_0x522941)=>{for(var _0x2d2fd7=_0x522941>0x1?void 0x0:_0x522941?_0x24604c(_0x4f5bc7,_0xbbe697):_0x4f5bc7,_0x43b25c=_0x2e454a['length']-0x1,_0x23d25f;_0x43b25c>=0x0;_0x43b25c--)(_0x23d25f=_0x2e454a[_0x43b25c])&&(_0x2d2fd7=_0x23d25f(_0x2d2fd7)||_0x2d2fd7);return _0x2d2fd7;},_0x205450=(_0x4401a1,_0x430eec)=>(_0x19f891,_0x1e6a93)=>_0x430eec(_0x19f891,_0x1e6a93,_0x4401a1);const _0x51b22d=0x12c,_0x599b02=0x64,_0x533af3=()=>{let _0x193331=[],_0x5813a4=!0x1;return _0x2f929f=>{_0x193331['push'](_0x2f929f),_0x5813a4||(_0x5813a4=!0x0,setTimeout(()=>{_0x193331['forEach'](_0x4b475c=>_0x4b475c()),_0x193331=[],_0x5813a4=!0x1;}));};};let _0x23df67=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x537362,_0x1574dd,_0x193057,_0x32e698,_0x2a8b59,_0x39bcfe,_0x429fa8,_0x4828bb){const _0x5c4125=_0x19a859;super(),_0x521fa5(this,_0x5c4125(0x342),!0x1),_0x521fa5(this,_0x5c4125(0x187),!0x1),_0x521fa5(this,'_cursorInfo$',new _0x496cb2[(_0x5c4125(0x3a5))](new Map())),_0x521fa5(this,'cursorInfo$',this[_0x5c4125(0x185)][_0x5c4125(0x1bf)]()),_0x521fa5(this,_0x5c4125(0x28d),new _0x496cb2[(_0x5c4125(0x3a5))]([])),_0x521fa5(this,_0x5c4125(0x299),this[_0x5c4125(0x28d)]['pipe'](_0x496cb2[_0x5c4125(0x392)](_0x51b22d))),_0x521fa5(this,'_updateLocalCursor',_0x5bf9c6[_0x5c4125(0x372)]((_0x51b194,_0x5c5f7b)=>{const _0x2de5da=_0x5c4125,_0x2da884={'eventID':_0x4e6003[_0x2de5da(0x270)][_0x2de5da(0x1ea)],'data':{'unitID':this[_0x2de5da(0x1db)],'memberID':this[_0x2de5da(0x312)]['getMemberID'](),'selection':_0x44be57[_0x2de5da(0x2a2)](_0x51b194,_0x5c5f7b['range'])}};this['_session'][_0x2de5da(0x191)](_0x2da884,this[_0x2de5da(0x1db)]);},_0x599b02)),(this['unitID']=_0x537362,this[_0x5c4125(0x312)]=_0x1574dd,this[_0x5c4125(0x380)]=_0x193057,this[_0x5c4125(0x167)]=_0x32e698,this['_memberService']=_0x2a8b59,this[_0x5c4125(0x315)]=_0x39bcfe,this[_0x5c4125(0x1d4)]=_0x429fa8,this[_0x5c4125(0x163)]=_0x4828bb);}get[_0x19a859(0x193)](){const _0x3cd3e9=_0x19a859;return this[_0x3cd3e9(0x185)][_0x3cd3e9(0x2c1)]();}get['roomMembers'](){const _0xc93928=_0x19a859;return this[_0xc93928(0x28d)][_0xc93928(0x2c1)]();}[_0x19a859(0x27b)](){const _0x3f4da9=_0x19a859;super[_0x3f4da9(0x27b)](),this[_0x3f4da9(0x185)][_0x3f4da9(0x288)](new Map()),this[_0x3f4da9(0x185)][_0x3f4da9(0x2e9)](),this[_0x3f4da9(0x28d)][_0x3f4da9(0x288)]([]),this[_0x3f4da9(0x28d)][_0x3f4da9(0x2e9)]();}[_0x19a859(0x19c)](){const _0x59200d=_0x19a859;this[_0x59200d(0x187)]||(this[_0x59200d(0x187)]=!0x0,this[_0x59200d(0x312)]['sessionStatus$'][_0x59200d(0x38f)](_0x496cb2[_0x59200d(0x130)](this[_0x59200d(0x198)]))['subscribe'](_0x5af3d4=>{const _0x4361ae=_0x59200d;_0x5af3d4===_0x2c72d0[_0x4361ae(0x18b)]['ONLINE']?this[_0x4361ae(0x1af)]():this[_0x4361ae(0x224)]();}),this[_0x59200d(0x312)]['event$']['pipe'](_0x496cb2[_0x59200d(0x130)](this[_0x59200d(0x198)]))[_0x59200d(0x28a)](_0x4db848=>{const _0x20fb85=_0x59200d,_0x1f6c75=_0x4db848[_0x20fb85(0x214)];_0x1f6c75===_0x4e6003[_0x20fb85(0x270)][_0x20fb85(0x1ea)]&&this[_0x20fb85(0x30d)](_0x4db848),_0x1f6c75===_0x4e6003[_0x20fb85(0x270)][_0x20fb85(0x354)]&&this[_0x20fb85(0x2e6)](_0x4db848);}),this[_0x59200d(0x351)](),this[_0x59200d(0x305)](this[_0x59200d(0x1d4)][_0x59200d(0x266)](_0x19f456=>{const _0xd53508=_0x59200d;if(this[_0xd53508(0x342)]&&_0x19f456['id']===_0x4fd62b[_0xd53508(0x1ba)]['id']&&_0x19f456['params'][_0xd53508(0x2ab)]===this['unitID']){const _0x48ab9f=_0x19f456[_0xd53508(0x316)];this[_0xd53508(0x393)](_0x48ab9f[_0xd53508(0x12f)],_0x48ab9f[_0xd53508(0x2b6)][0x0]);}})));}[_0x19a859(0x30d)](_0x5a153e){const _0x2944fd=_0x19a859;var _0x5187d8,_0xc4a36;const {memberID:_0x2210f7,selection:_0x4a6b47}=_0x5a153e[_0x2944fd(0x171)],{sheetName:_0x586b8d,range:_0x4b3dc4}=_0x44be57[_0x2944fd(0x155)](_0x4a6b47),_0x4b1fd0={'name':(_0xc4a36=(_0x5187d8=this['_memberService'][_0x2944fd(0x200)](this[_0x2944fd(0x1db)],_0x2210f7))==null?void 0x0:_0x5187d8[_0x2944fd(0x33f)])!=null?_0xc4a36:_0x2944fd(0x251),'range':this[_0x2944fd(0x27a)](_0x586b8d,_0x4b3dc4),'sheetID':_0x586b8d,'color':this[_0x2944fd(0x167)][_0x2944fd(0x350)](_0x2210f7),'selection':_0x4a6b47},_0x196620=this[_0x2944fd(0x193)];_0x196620[_0x2944fd(0x17d)](_0x2210f7,_0x4b1fd0),this[_0x2944fd(0x185)][_0x2944fd(0x288)](_0x196620);}['_onCursorDelete'](_0x4e5435){const _0x5823b8=_0x19a859,{memberID:_0x55d3d5}=_0x4e5435[_0x5823b8(0x171)],_0x46d4ae=this[_0x5823b8(0x193)];_0x46d4ae[_0x5823b8(0x227)](_0x55d3d5),this['_cursorInfo$'][_0x5823b8(0x288)](_0x46d4ae);}[_0x19a859(0x27a)](_0x9b2206,_0x3ff7c7){const _0x4d7aea=_0x19a859;var _0x3e0047,_0x23f714;const _0x531aad=(_0x23f714=(_0x3e0047=this[_0x4d7aea(0x315)][_0x4d7aea(0x1cf)](this[_0x4d7aea(0x1db)]))==null?void 0x0:_0x3e0047['getSheetBySheetId'](_0x9b2206))==null?void 0x0:_0x23f714[_0x4d7aea(0x384)]();return(_0x531aad==null?void 0x0:_0x531aad[_0x4d7aea(0x347)](_0x8aa37f=>_0x5bf9c6[_0x4d7aea(0x32a)]['contains'](_0x8aa37f,_0x3ff7c7)))||_0x3ff7c7;}[_0x19a859(0x351)](){const _0x7370f0=_0x19a859,_0x598635=new _0x5bf9c6[(_0x7370f0(0x237))](),_0x449f23=_0x533af3(),_0x431b10=()=>{const _0x6f86f9=_0x7370f0;_0x598635[_0x6f86f9(0x27b)]();const _0x494859=(_0xce6ecc,_0x3804bc,_0x511acb,_0xb4eda4)=>{const _0x395991=_0x6f86f9;let _0x3de434=[];switch(_0xce6ecc['id']){case _0x4fd62b[_0x395991(0x26a)]['DeleteRangeMoveLeftCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x2b5)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x260)]:{_0x3de434=_0x4fd62b[_0x395991(0x324)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)][_0x395991(0x263)]:{_0x3de434=_0x4fd62b[_0x395991(0x25e)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)]['InsertRangeMoveDownCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x138)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x272)]:{_0x3de434=_0x4fd62b['handleInsertRangeMoveRight'](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x244)]:{_0x3de434=_0x4fd62b[_0x395991(0x127)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b[_0x395991(0x26a)][_0x395991(0x189)]:{_0x3de434=_0x4fd62b[_0x395991(0x1f2)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId']['RemoveColCommandId']:{_0x3de434=_0x4fd62b[_0x395991(0x1ca)](_0xce6ecc,_0xb4eda4);break;}case _0x4fd62b['EffectRefRangId'][_0x395991(0x2f4)]:{_0x3de434=_0x4fd62b['handleIRemoveRow'](_0xce6ecc,_0xb4eda4);break;}}const _0x159ce4=_0x4fd62b[_0x395991(0x2fc)](_0x3de434,_0xb4eda4),_0x5e6ff2=this['cursorInfo']['get'](_0x3804bc);if(_0x5e6ff2&&_0x159ce4){const _0x25a10d={..._0x5e6ff2,'range':_0x159ce4};this['cursorInfo'][_0x395991(0x17d)](_0x3804bc,_0x25a10d),_0x449f23(()=>{const _0x3bf221=_0x395991,_0x41fe93=this[_0x3bf221(0x163)][_0x3bf221(0x12a)](_0x159ce4,_0x3ae31a=>(_0x41fe93['dispose'](),_0x494859(_0x3ae31a,_0x3804bc,_0x511acb,_0x159ce4)));_0x598635[_0x3bf221(0x2e0)](_0x41fe93);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x6f86f9(0x139)]((_0x99bc8b,_0x137ab6)=>{const _0xb6e164=_0x6f86f9,{range:_0x218167,sheetID:_0x2e82ba}=_0x99bc8b,_0x5a9198=this['_refRangeService'][_0xb6e164(0x12a)](_0x218167,_0x34d702=>(_0x5a9198['dispose'](),_0x494859(_0x34d702,_0x137ab6,_0x2e82ba,_0x218167)));_0x598635[_0xb6e164(0x2e0)](_0x5a9198);});};this[_0x7370f0(0x305)](_0x5bf9c6[_0x7370f0(0x202)](this[_0x7370f0(0x185)]['subscribe'](()=>{_0x431b10();})));}[_0x19a859(0x1af)](){const _0x2da4fb=_0x19a859;var _0x41907f,_0x1adcfb;if(this[_0x2da4fb(0x342)]=!0x0,((_0x41907f=this['_univerInstanceService'][_0x2da4fb(0x280)]())==null?void 0x0:_0x41907f[_0x2da4fb(0x1b2)]())!==this[_0x2da4fb(0x1db)])return;const _0x1a41c9=(_0x1adcfb=this[_0x2da4fb(0x380)][_0x2da4fb(0x223)](_0x4fd62b[_0x2da4fb(0x210)])[_0x2da4fb(0x2ba)]())==null?void 0x0:_0x1adcfb[0x0],_0x32983a=this[_0x2da4fb(0x315)]['getCurrentUnitForType'](_0x5bf9c6['UniverInstanceType'][_0x2da4fb(0x34f)])[_0x2da4fb(0x345)]();_0x1a41c9&&_0x32983a&&this[_0x2da4fb(0x393)](_0x32983a[_0x2da4fb(0x327)](),_0x1a41c9);}['_toggleOffline'](){this['_online']=!0x1;}};_0x23df67=_0x11def2([_0x205450(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x205450(0x3,_0x5bf9c6['Inject'](_0x30d5cc)),_0x205450(0x4,_0x5bf9c6['Inject'](_0x2c72d0[_0x19a859(0x1a7)])),_0x205450(0x5,_0x5bf9c6[_0x19a859(0x2f7)]),_0x205450(0x6,_0x5bf9c6[_0x19a859(0x37a)]),_0x205450(0x7,_0x5bf9c6['Inject'](_0x4fd62b[_0x19a859(0x343)]))],_0x23df67);var _0x480e65=Object['getOwnPropertyDescriptor'],_0x458e4a=(_0x193a6f,_0x5198fa,_0x185d7a,_0x58c54e)=>{const _0x37f96c=_0x19a859;for(var _0x4267fe=_0x58c54e>0x1?void 0x0:_0x58c54e?_0x480e65(_0x5198fa,_0x185d7a):_0x5198fa,_0x323af7=_0x193a6f[_0x37f96c(0x344)]-0x1,_0x28f97f;_0x323af7>=0x0;_0x323af7--)(_0x28f97f=_0x193a6f[_0x323af7])&&(_0x4267fe=_0x28f97f(_0x4267fe)||_0x4267fe);return _0x4267fe;},_0x1388d5=(_0x201f34,_0x3e5dea)=>(_0x5bfba3,_0x4ef656)=>_0x3e5dea(_0x5bfba3,_0x4ef656,_0x201f34);let _0x3097e7=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x53c2de,_0x133e1a,_0x2749dd){const _0x2f4808=_0x19a859;super(),_0x521fa5(this,'_entities',new Map()),_0x521fa5(this,'_entityInit$',new _0x496cb2[(_0x2f4808(0x1aa))]()),(this['_univerInstanceService']=_0x53c2de,this[_0x2f4808(0x380)]=_0x133e1a,this['_collabSessionService']=_0x2749dd,this[_0x2f4808(0x187)]());}[_0x19a859(0x27b)](){const _0x23cbcc=_0x19a859;super[_0x23cbcc(0x27b)](),this['_entityInit$']['complete'](),this[_0x23cbcc(0x2d1)][_0x23cbcc(0x139)](_0x52065e=>_0x52065e[_0x23cbcc(0x27b)]());}[_0x19a859(0x261)](_0x113506){const _0x32db63=_0x19a859;return this[_0x32db63(0x2d1)][_0x32db63(0x2b8)](_0x113506)?this[_0x32db63(0x2d1)]['get'](_0x113506)[_0x32db63(0x2ef)]:this[_0x32db63(0x2c8)][_0x32db63(0x38f)](_0x496cb2['filter'](_0x569bbe=>_0x569bbe[_0x32db63(0x1db)]===_0x113506),_0x496cb2[_0x32db63(0x2e3)](_0x2f2b75=>_0x2f2b75[_0x32db63(0x2ef)]));}[_0x19a859(0x187)](){const _0x1b930a=_0x19a859;this['_univerInstanceService'][_0x1b930a(0x14a)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x34f)])[_0x1b930a(0x38f)](_0x496cb2['takeUntil'](this[_0x1b930a(0x198)]))[_0x1b930a(0x28a)](async _0x3aa261=>{const _0x123bd2=_0x1b930a,_0x35afe8=_0x3aa261[_0x123bd2(0x1b2)](),_0x4e718f=await this['_startSheetCollabCursor'](_0x35afe8);this[_0x123bd2(0x2c8)]['next'](_0x4e718f),this[_0x123bd2(0x2d1)][_0x123bd2(0x17d)](_0x35afe8,_0x4e718f);}),this[_0x1b930a(0x315)][_0x1b930a(0x14a)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x25f)])['pipe'](_0x496cb2['takeUntil'](this[_0x1b930a(0x198)]))[_0x1b930a(0x38f)](_0x496cb2['filter'](_0x4ae148=>!_0x4ae148[_0x1b930a(0x1b2)]()[_0x1b930a(0x2c6)]('__')))[_0x1b930a(0x28a)](async _0x5ff80=>{const _0x1594ac=_0x1b930a,_0x54c66b=_0x5ff80['getUnitId'](),_0x43be6e=await this[_0x1594ac(0x39d)](_0x54c66b);this[_0x1594ac(0x2c8)][_0x1594ac(0x288)](_0x43be6e),this[_0x1594ac(0x2d1)]['set'](_0x54c66b,_0x43be6e);}),_0x496cb2[_0x1b930a(0x1f4)](this[_0x1b930a(0x315)][_0x1b930a(0x2f3)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x25f)]),this[_0x1b930a(0x315)][_0x1b930a(0x2f3)](_0x5bf9c6[_0x1b930a(0x2cb)][_0x1b930a(0x34f)]))['pipe'](_0x496cb2[_0x1b930a(0x130)](this[_0x1b930a(0x198)]))[_0x1b930a(0x28a)](_0xbd45db=>{const _0x1518dd=_0x1b930a,_0x233d41=_0xbd45db[_0x1518dd(0x1b2)](),_0x5339ae=this[_0x1518dd(0x2d1)][_0x1518dd(0x223)](_0x233d41);_0x5339ae&&(_0x5339ae['dispose'](),this[_0x1518dd(0x2d1)][_0x1518dd(0x227)](_0x233d41));});}async[_0x19a859(0x1df)](_0x20ab0c){const _0x58119c=_0x19a859,_0x5c85e1=await this['_collabSessionService'][_0x58119c(0x2bf)](_0x20ab0c),_0x1ed500=this['_injector'][_0x58119c(0x140)](_0x23df67,_0x20ab0c,_0x5c85e1);return _0x1ed500[_0x58119c(0x19c)](),_0x1ed500;}async[_0x19a859(0x39d)](_0x1664d8){const _0x366fb5=_0x19a859,_0x472f10=await this[_0x366fb5(0x122)][_0x366fb5(0x2bf)](_0x1664d8),_0x2b31ed=this['_injector'][_0x366fb5(0x140)](_0x5964e0,_0x1664d8,_0x472f10);return _0x2b31ed['init'](),_0x2b31ed;}};_0x3097e7=_0x458e4a([_0x1388d5(0x0,_0x5bf9c6[_0x19a859(0x2f7)]),_0x1388d5(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x1388d5(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x228)]))],_0x3097e7);const _0x41ef4a=0x14,_0x4ea8bc=0xc8,_0x3efecc=0x4,_0x54ed1d=0x5;function _0x2377a1(_0x1385a6,_0x1fe553){const _0x29f10d=_0x19a859;let {radius:_0x570111,width:_0x297ed6,height:_0x428799}=_0x1fe553;_0x570111=_0x570111!=null?_0x570111:0x0,_0x297ed6=_0x297ed6!=null?_0x297ed6:0x1e,_0x428799=_0x428799!=null?_0x428799:0x1e;let _0x174b93=0x0,_0x5bac9d=0x0,_0x473893=0x0;_0x174b93=_0x5bac9d=_0x473893=Math[_0x29f10d(0x31f)](_0x570111,_0x297ed6/0x2,_0x428799/0x2),_0x1385a6['beginPath'](),_0x1385a6[_0x29f10d(0x136)](_0x174b93,0x0),_0x1385a6[_0x29f10d(0x314)](_0x297ed6-_0x5bac9d,0x0),_0x1385a6[_0x29f10d(0x2a5)](_0x297ed6-_0x5bac9d,_0x5bac9d,_0x5bac9d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1385a6[_0x29f10d(0x314)](_0x297ed6,_0x428799-_0x473893),_0x1385a6['arc'](_0x297ed6-_0x473893,_0x428799-_0x473893,_0x473893,0x0,Math['PI']/0x2,!0x1),_0x1385a6[_0x29f10d(0x314)](0x0,_0x428799),_0x1385a6['lineTo'](0x0,_0x174b93),_0x1385a6[_0x29f10d(0x2a5)](_0x174b93,_0x174b93,_0x174b93,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1385a6[_0x29f10d(0x1e5)](),_0x1fe553[_0x29f10d(0x2df)]&&(_0x1385a6[_0x29f10d(0x1e9)](),_0x1385a6[_0x29f10d(0x129)]=_0x1fe553['fill'],_0x1fe553['fillRule']===_0x29f10d(0x19d)?_0x1385a6[_0x29f10d(0x2df)](_0x29f10d(0x19d)):_0x1385a6[_0x29f10d(0x2df)](),_0x1385a6['restore']());}class _0x1c1073 extends _0x5d1039[_0x19a859(0x1fe)]{constructor(_0x4d6775,_0x5cc842){const _0x1f79ac=_0x19a859;super(_0x4d6775,_0x5cc842),_0x521fa5(this,_0x1f79ac(0x166)),_0x521fa5(this,'text'),(this[_0x1f79ac(0x166)]=_0x5cc842==null?void 0x0:_0x5cc842[_0x1f79ac(0x166)],this[_0x1f79ac(0x39b)]=_0x5cc842==null?void 0x0:_0x5cc842[_0x1f79ac(0x39b)]);}static[_0x19a859(0x22a)](_0x31e298,_0x13d3af){const _0x9682b7=_0x19a859,{text:_0x18cb03,color:_0x4963d2}=_0x13d3af;_0x31e298['save'](),_0x31e298[_0x9682b7(0x247)]=_0x9682b7(0x21d);const _0x31bccf=_0x31e298['measureText'](_0x18cb03)[_0x9682b7(0x15a)],_0x49e92a=Math[_0x9682b7(0x31f)](_0x31bccf+0x2*_0x3efecc,_0x4ea8bc);_0x2377a1(_0x31e298,{'height':_0x41ef4a,'radius':0x4,'width':_0x49e92a,'fill':_0x4963d2}),_0x31e298['fillStyle']='#FFF';const _0x5170ed=_0x3efecc,_0x28ac4f=_0x41ef4a-_0x54ed1d,_0x41761c=_0x4ea8bc-0x2*_0x3efecc;if(_0x31bccf>_0x41761c){let _0x34488e='',_0x265153=0x0;for(const _0x7e6e90 of _0x18cb03){const _0x52fa99=_0x31e298[_0x9682b7(0x19a)](_0x7e6e90)[_0x9682b7(0x15a)];if(_0x265153+_0x52fa99<=_0x41761c-_0x31e298['measureText']('...')[_0x9682b7(0x15a)])_0x34488e+=_0x7e6e90,_0x265153+=_0x52fa99;else{_0x34488e+=_0x9682b7(0x2d3);break;}}_0x31e298[_0x9682b7(0x250)](_0x34488e,_0x5170ed,_0x28ac4f);}else _0x31e298['fillText'](_0x18cb03,_0x5170ed,_0x28ac4f);_0x31e298['restore']();}['_draw'](_0x4fbff5){_0x1c1073['drawWith'](_0x4fbff5,this);}}const _0x1b5ccb=_0x19a859(0x161),_0x59c981=_0x19a859(0x175),_0x3dbb14=_0x19a859(0x31b),_0x17ae26=0x6,_0x36f5cf=1.5,_0xcb5651=0x4,_0x576fab=1.5,_0x187490='rgba(255,\x20255,\x20255,\x200.01)';class _0x4b4332{constructor(_0x3d12b7,_0x5a4e46,_0x112810,_0xb38a2a){const _0x5b21d4=_0x19a859;_0x521fa5(this,'_shapes',[]),_0x521fa5(this,_0x5b21d4(0x152),null),_0x521fa5(this,_0x5b21d4(0x1d1),null),_0x521fa5(this,_0x5b21d4(0x27f),null),_0x521fa5(this,_0x5b21d4(0x271),null),_0x521fa5(this,_0x5b21d4(0x341),null),(this[_0x5b21d4(0x29f)]=_0x3d12b7,this[_0x5b21d4(0x231)]=_0x5a4e46,this[_0x5b21d4(0x23f)]=_0x112810,this[_0x5b21d4(0x311)]=_0xb38a2a,this['_render']());}set[_0x19a859(0x2ce)](_0x2e07a0){const _0x19ec8f=_0x19a859;_0x2e07a0?(this['_anchorDot']&&this[_0x19ec8f(0x27f)][_0x19ec8f(0x254)](),this[_0x19ec8f(0x1d1)]&&this[_0x19ec8f(0x1d1)][_0x19ec8f(0x1e2)]()):(this['_anchorDot']&&this[_0x19ec8f(0x27f)]['show'](),this[_0x19ec8f(0x1d1)]&&this[_0x19ec8f(0x1d1)][_0x19ec8f(0x254)]());}[_0x19a859(0x27b)](){const _0x9a2341=_0x19a859;for(const _0x21bff0 of this[_0x9a2341(0x334)])_0x21bff0[_0x9a2341(0x27b)]();this[_0x9a2341(0x1d1)]&&this[_0x9a2341(0x1d1)][_0x9a2341(0x27b)](),this[_0x9a2341(0x27f)]&&this[_0x9a2341(0x27f)][_0x9a2341(0x27b)](),this[_0x9a2341(0x152)]&&this[_0x9a2341(0x152)][_0x9a2341(0x27b)](),this[_0x9a2341(0x341)]&&this[_0x9a2341(0x341)]();}[_0x19a859(0x23c)](){const _0x102296=_0x19a859;var _0x7aebcd;const {_docSkeleton:_0x29cce8,_document:_0x2e5ced}=this,{color:_0xc01857,name:_0x37573a,ranges:_0x5e2909}=this[_0x102296(0x29f)],_0x5c8d82=_0x2e5ced[_0x102296(0x24a)](),{docsLeft:_0x3c4b67,docsTop:_0x3063db}=_0x5c8d82,_0x3ad78b=new _0x1a8f2e[(_0x102296(0x297))](_0x5c8d82,_0x29cce8);for(const {startOffset:_0x1bb189,endOffset:_0x2dd0fb,rangeType:_0x1e51f4,segmentId:_0x5db2e9,segmentPage:_0x2973c0,collapsed:_0x43160f,isActive:_0x562d03}of _0x5e2909){const _0x2b4410=_0x29cce8[_0x102296(0x33a)](_0x1bb189,!0x0,_0x5db2e9,_0x2973c0);let _0xcec2d1=_0x29cce8[_0x102296(0x33a)](_0x2dd0fb,!0x0,_0x5db2e9,_0x2973c0);if(_0xcec2d1==null&&(_0xcec2d1=_0x29cce8[_0x102296(0x33a)](_0x2dd0fb-0x1,!0x1,_0x5db2e9,_0x2973c0)),_0x562d03){const {contentBoxPointGroup:_0xc9538f}=_0x3ad78b[_0x102296(0x398)](_0xcec2d1,_0xcec2d1);if(_0xc9538f[_0x102296(0x344)]===0x0)continue;this[_0x102296(0x35a)](_0xc01857,_0xc9538f,_0x3c4b67,_0x3063db,_0x37573a),this[_0x102296(0x341)]=this[_0x102296(0x34e)]();}if(_0x2b4410&&_0xcec2d1){if(_0x1e51f4===_0x5bf9c6[_0x102296(0x1c6)][_0x102296(0x1e8)]){const _0x4ab870=new _0x1a8f2e['NodePositionConvertToRectRange'](_0x5c8d82,_0x29cce8),{pointGroup:_0x5a52ab}=(_0x7aebcd=_0x4ab870['getRangePointData'](_0x2b4410,_0xcec2d1))!=null?_0x7aebcd:{};if(_0x5a52ab==null||_0x5a52ab['length']===0x0)continue;this['_drawRectRange'](_0xc01857,_0x5a52ab,_0x3c4b67,_0x3063db);}else{if(!_0x43160f){const {borderBoxPointGroup:_0x38722a}=_0x3ad78b[_0x102296(0x398)](_0x2b4410,_0xcec2d1);if(_0x38722a[_0x102296(0x344)]===0x0)continue;this[_0x102296(0x2bc)](_0xc01857,_0x38722a,_0x3c4b67,_0x3063db);}}}}}[_0x19a859(0x35a)](_0x4dcc25,_0x4f54f7,_0x198dbb,_0x482827,_0xf2af98){const _0x5110bd=_0x19a859,_0x571d0b=this[_0x5110bd(0x20f)](_0x4f54f7),{left:_0x5eebe0,top:_0x15331e,height:_0x42be80}=_0x571d0b,_0x52ac4e=this[_0x5110bd(0x28e)](),_0x4b225f=_0x576fab/_0x52ac4e,_0x53d035=new _0x5d1039['Rect'](_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)]['generateRandomId'](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827,'height':_0x42be80,'width':_0x36f5cf,'fill':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6[_0x5110bd(0x23a)][_0x5110bd(0x381)],0x0),'strokeWidth':_0x4b225f,'stroke':_0x187490,'evented':!0x0});this['_anchor']=_0x53d035,this['_scene'][_0x5110bd(0x34b)](_0x53d035,_0x1a8f2e[_0x5110bd(0x29b)]);const _0x1055d1=new _0x5d1039['Rect'](_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)][_0x5110bd(0x1e0)](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827-_0xcb5651/0x2,'height':_0xcb5651,'width':_0xcb5651,'fill':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6[_0x5110bd(0x23a)][_0x5110bd(0x381)],0x0),'strokeWidth':0x0,'stroke':_0x4dcc25||_0x5d1039[_0x5110bd(0x317)](_0x5bf9c6['COLORS'][_0x5110bd(0x381)],0x0),'evented':!0x1});this['_anchorDot']=_0x1055d1,this[_0x5110bd(0x231)]['addObject'](_0x1055d1,_0x1a8f2e[_0x5110bd(0x29b)]);const _0x3a4c0d=new _0x1c1073(_0x1b5ccb+_0x5bf9c6[_0x5110bd(0x389)][_0x5110bd(0x1e0)](_0x17ae26),{'left':_0x5eebe0+_0x198dbb-_0x4b225f,'top':_0x15331e+_0x482827-_0x41ef4a,'text':_0xf2af98,'color':_0x4dcc25});this[_0x5110bd(0x1d1)]=_0x3a4c0d,this[_0x5110bd(0x231)]['addObject'](_0x3a4c0d,_0x1a8f2e[_0x5110bd(0x29b)]),this['_hover']=!0x1;}[_0x19a859(0x34e)](){const _0x2de212=_0x19a859,_0x360292=this[_0x2de212(0x152)][_0x2de212(0x249)][_0x2de212(0x11b)](()=>{const _0x156aec=_0x2de212;this[_0x156aec(0x2ce)]=!0x0;}),_0x1c0c1a=this[_0x2de212(0x152)][_0x2de212(0x15f)]['subscribeEvent'](()=>{const _0x3a485c=_0x2de212;this[_0x3a485c(0x271)]&&clearTimeout(this[_0x3a485c(0x271)]),this[_0x3a485c(0x271)]=setTimeout(()=>{const _0x53a1ea=_0x3a485c;this[_0x53a1ea(0x2ce)]=!0x1;},0x7d0);});return()=>{const _0x47ab3c=_0x2de212;_0x360292[_0x47ab3c(0x18c)](),_0x1c0c1a['unsubscribe']();};}[_0x19a859(0x2bc)](_0x269199,_0x5af60c,_0x4b85f5,_0x2ef3d0){const _0x399641=_0x19a859,_0x52157b=new _0x5bf9c6[(_0x399641(0x335))](_0x269199)[_0x399641(0x1e7)](0.2)[_0x399641(0x1b8)](),_0xbeb517=new _0x5d1039[(_0x399641(0x36f))](_0x59c981+_0x5bf9c6[_0x399641(0x389)][_0x399641(0x1e0)](_0x17ae26),{'pointsGroup':_0x5af60c,'fill':_0x52157b||_0x5d1039[_0x399641(0x317)](_0x5bf9c6[_0x399641(0x23a)][_0x399641(0x381)],0.2),'left':_0x4b85f5,'top':_0x2ef3d0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x399641(0x334)][_0x399641(0x253)](_0xbeb517),this['_scene'][_0x399641(0x34b)](_0xbeb517,_0x1a8f2e[_0x399641(0x29b)]);}[_0x19a859(0x199)](_0x188a20,_0x52bbc1,_0x46a733,_0x3ac81a){const _0x3cec97=_0x19a859,_0xaff5b6=new _0x5bf9c6[(_0x3cec97(0x335))](_0x188a20)[_0x3cec97(0x1e7)](0.2)['toRgbString'](),_0x3ac5a3=new _0x5d1039[(_0x3cec97(0x36f))](_0x3dbb14+_0x5bf9c6[_0x3cec97(0x389)][_0x3cec97(0x1e0)](_0x17ae26),{'pointsGroup':_0x52bbc1,'fill':_0xaff5b6||_0x5d1039[_0x3cec97(0x317)](_0x5bf9c6[_0x3cec97(0x23a)][_0x3cec97(0x381)],0.2),'left':_0x46a733,'top':_0x3ac81a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cec97(0x334)][_0x3cec97(0x253)](_0x3ac5a3),this[_0x3cec97(0x231)][_0x3cec97(0x34b)](_0x3ac5a3,_0x1a8f2e[_0x3cec97(0x29b)]);}[_0x19a859(0x20f)](_0x4d8d37){const _0x430fea=_0x4d8d37[0x0],_0x294cc6=_0x430fea[0x0],_0x57e516=_0x430fea[0x2],{x:_0x15bc0b,y:_0x1f8799}=_0x294cc6,{x:_0xff73f5,y:_0x149d04}=_0x57e516;return{'left':_0x15bc0b,'top':_0x1f8799,'width':_0xff73f5-_0x15bc0b,'height':_0x149d04-_0x1f8799};}[_0x19a859(0x28e)](){const _0x724456=_0x19a859,{scaleX:_0x40270c,scaleY:_0x499923}=this['_scene']['getAncestorScale']();return Math[_0x724456(0x35b)](_0x40270c,_0x499923);}}var _0x1dd39f=Object[_0x19a859(0x385)],_0x5bc22d=(_0x36e31c,_0x276ecc,_0xc9240,_0x280731)=>{const _0xe797b6=_0x19a859;for(var _0x4a382a=_0x280731>0x1?void 0x0:_0x280731?_0x1dd39f(_0x276ecc,_0xc9240):_0x276ecc,_0x52aff5=_0x36e31c[_0xe797b6(0x344)]-0x1,_0x100204;_0x52aff5>=0x0;_0x52aff5--)(_0x100204=_0x36e31c[_0x52aff5])&&(_0x4a382a=_0x100204(_0x4a382a)||_0x4a382a);return _0x4a382a;},_0x3f4a1e=(_0x42daa8,_0x4c0a64)=>(_0x1026b5,_0x16200f)=>_0x4c0a64(_0x1026b5,_0x16200f,_0x42daa8);let _0x488d8f=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x235329,_0x20feab,_0x4b6ca0,_0x3fbb6c,_0x239f91){const _0x3c6340=_0x19a859;super(),_0x521fa5(this,_0x3c6340(0x19e),[]),_0x521fa5(this,_0x3c6340(0x22d),[]),(this[_0x3c6340(0x2a1)]=_0x235329,this[_0x3c6340(0x192)]=_0x20feab,this[_0x3c6340(0x2dd)]=_0x4b6ca0,this['_commandService']=_0x3fbb6c,this[_0x3c6340(0x141)]=_0x239f91,this[_0x3c6340(0x187)]());}[_0x19a859(0x187)](){const _0x1138a1=_0x19a859,_0x55b569=this[_0x1138a1(0x2a1)][_0x1138a1(0x2ab)],_0x5b6d4f=this[_0x1138a1(0x192)];this[_0x1138a1(0x305)](_0x496cb2[_0x1138a1(0x147)]([this[_0x1138a1(0x2dd)][_0x1138a1(0x261)](_0x55b569),this[_0x1138a1(0x141)]['currentTheme$']])['pipe'](_0x19b4ce[_0x1138a1(0x309)](([_0x3f24ab,_0x48ae37])=>({'skeleton':_0x5b6d4f[_0x1138a1(0x306)](),'cursors':[..._0x3f24ab[_0x1138a1(0x37d)]()]['flatMap'](_0xefb72d=>({..._0xefb72d,'color':_0x48ae37[_0xefb72d[_0x1138a1(0x166)]]}))})))['subscribe'](_0x5a5666=>{const _0x234b92=_0x1138a1;if(this['_removeCollabCursors'](),_0x5a5666){const {skeleton:_0x31111e,cursors:_0x170bf8}=_0x5a5666;this[_0x234b92(0x379)](_0x31111e,_0x170bf8);}})),this['_initResize'](),this[_0x1138a1(0x133)]();}['_updateCollabCursors'](_0x5d078f,_0x502495){const _0x479d97=_0x19a859,{scene:_0x55b530,mainComponent:_0x237dda}=this[_0x479d97(0x2a1)],_0x57c35c=_0x502495[_0x479d97(0x309)](_0x10d853=>new _0x4b4332(_0x10d853,_0x55b530,_0x5d078f,_0x237dda));this[_0x479d97(0x19e)]=_0x57c35c,this[_0x479d97(0x22d)]=_0x502495;}[_0x19a859(0x12d)](){const _0x2521f6=_0x19a859;this[_0x2521f6(0x1ff)]();const {scene:_0x42ee76,mainComponent:_0x23a228}=this[_0x2521f6(0x2a1)],_0x4a5b7d=this['_docSkeletonManagerService'][_0x2521f6(0x306)](),_0x5cb123=this[_0x2521f6(0x22d)][_0x2521f6(0x309)](_0x2b3808=>new _0x4b4332(_0x2b3808,_0x42ee76,_0x4a5b7d,_0x23a228));this[_0x2521f6(0x19e)]=_0x5cb123;}[_0x19a859(0x1ff)](){const _0x2f4fd0=_0x19a859;this[_0x2f4fd0(0x19e)][_0x2f4fd0(0x139)](_0x5194a7=>_0x5194a7['dispose']()),this[_0x2f4fd0(0x19e)]=[];}[_0x19a859(0x133)](){const _0x53b0cd=_0x19a859,_0x29a0de=[_0x1a8f2e[_0x53b0cd(0x21e)]['id']];this[_0x53b0cd(0x305)](this[_0x53b0cd(0x1d4)]['onCommandExecuted'](_0x401538=>{const _0x5ea3b6=_0x53b0cd;_0x29a0de[_0x5ea3b6(0x1b4)](_0x401538['id'])&&_0x401538[_0x5ea3b6(0x316)][_0x5ea3b6(0x2ab)]===this[_0x5ea3b6(0x2a1)][_0x5ea3b6(0x2ab)]&&this[_0x5ea3b6(0x12d)]();}));}[_0x19a859(0x1a1)](){const _0x45451a=_0x19a859;this[_0x45451a(0x305)](_0x5bf9c6['fromEventSubject'](this[_0x45451a(0x2a1)][_0x45451a(0x230)]['onTransformChange$'])[_0x45451a(0x38f)](_0x19b4ce['filter'](_0xe89bda=>_0xe89bda[_0x45451a(0x2a0)]===_0x5d1039['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x45451a(0x174)]),_0x19b4ce['throttleTime'](0x10))[_0x45451a(0x28a)](()=>{const _0x489b04=_0x45451a;this[_0x489b04(0x12d)]();}));}};_0x488d8f=_0x5bc22d([_0x3f4a1e(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x50e692['DocSkeletonManagerService'])),_0x3f4a1e(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x3097e7)),_0x3f4a1e(0x3,_0x5bf9c6[_0x19a859(0x37a)]),_0x3f4a1e(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x11a)]))],_0x488d8f);const _0x3ff862=0x1,_0x17eb92=1.5;class _0x30557c extends _0x5d1039['Shape']{constructor(_0x54f77a,_0x521290){const _0x3281e9=_0x19a859;super(_0x54f77a,_0x521290),_0x521fa5(this,_0x3281e9(0x18a)),_0x521fa5(this,_0x3281e9(0x1ce),!0x1),_0x521fa5(this,'_range'),_0x521fa5(this,_0x3281e9(0x3a2),''),_0x521fa5(this,_0x3281e9(0x206),_0x3281e9(0x154)),_0x521fa5(this,_0x3281e9(0x205)),(_0x521290&&this[_0x3281e9(0x162)](_0x521290),this[_0x3281e9(0x249)]['subscribeEvent'](()=>this[_0x3281e9(0x162)]({'hovered':!0x0})),this[_0x3281e9(0x15f)]['subscribeEvent'](()=>this[_0x3281e9(0x162)]({'hovered':!0x1})));}[_0x19a859(0x162)](_0x67d751){const _0xf03078=_0x19a859;var _0x12bb96,_0x399b0d,_0x52bf94,_0xafee21,_0x2bbf05,_0x1f2738;this['_color']=(_0x12bb96=_0x67d751[_0xf03078(0x166)])!=null?_0x12bb96:this[_0xf03078(0x18a)],this[_0xf03078(0x1ce)]=(_0x399b0d=_0x67d751[_0xf03078(0x2db)])!=null?_0x399b0d:this[_0xf03078(0x1ce)],this['_range']=(_0x52bf94=_0x67d751[_0xf03078(0x399)])!=null?_0x52bf94:this[_0xf03078(0x13b)],this['_name']=(_0xafee21=_0x67d751[_0xf03078(0x33f)])!=null?_0xafee21:this[_0xf03078(0x3a2)],this[_0xf03078(0x206)]=(_0x2bbf05=_0x67d751[_0xf03078(0x36e)])!=null?_0x2bbf05:this[_0xf03078(0x206)],this[_0xf03078(0x205)]=(_0x1f2738=_0x67d751['backgroundColor'])!=null?_0x1f2738:this[_0xf03078(0x205)],this['transformByState']({'width':_0x67d751['width'],'height':_0x67d751[_0xf03078(0x386)]});}[_0x19a859(0x1e1)](_0x2aa017){const _0x4d44be=_0x19a859,{row:_0x5351f4,column:_0x3518d2}=_0x2aa017;if(_0x5351f4>=this[_0x4d44be(0x13b)]['startRow']&&_0x5351f4<=this[_0x4d44be(0x13b)]['endRow']&&_0x3518d2>=this[_0x4d44be(0x13b)][_0x4d44be(0x180)]&&_0x3518d2<=this[_0x4d44be(0x13b)]['endColumn']){this[_0x4d44be(0x162)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x19a859(0x38e)](_0x4f1b25){return!0x1;}[_0x19a859(0x11d)](_0x31d526){const _0x551df2=_0x19a859;_0x5d1039[_0x551df2(0x1cd)]['drawWith'](_0x31d526,{'width':this[_0x551df2(0x15a)],'height':this[_0x551df2(0x386)],'strokeWidth':_0x17eb92,'stroke':this[_0x551df2(0x18a)],'evented':!0x1,'fill':this[_0x551df2(0x205)]}),this[_0x551df2(0x1ce)]&&(_0x31d526['save'](),_0x31d526[_0x551df2(0x38b)](0x1,0x0,0x0,0x1,this['width'],this[_0x551df2(0x206)]===_0x551df2(0x112)?0x0:-0x14),_0x1c1073[_0x551df2(0x22a)](_0x31d526,{'text':this['_name'],'color':this[_0x551df2(0x18a)]}),_0x31d526['restore']());}}var _0x1e2088=Object[_0x19a859(0x385)],_0x15f004=(_0x46896a,_0xe63b3,_0x2b24da,_0x1516f8)=>{const _0xae0be=_0x19a859;for(var _0x59a8a1=_0x1516f8>0x1?void 0x0:_0x1516f8?_0x1e2088(_0xe63b3,_0x2b24da):_0xe63b3,_0xb0c84a=_0x46896a[_0xae0be(0x344)]-0x1,_0x129945;_0xb0c84a>=0x0;_0xb0c84a--)(_0x129945=_0x46896a[_0xb0c84a])&&(_0x59a8a1=_0x129945(_0x59a8a1)||_0x59a8a1);return _0x59a8a1;},_0x51b434=(_0x5b4db6,_0x584512)=>(_0x38b1a4,_0x30bd57)=>_0x584512(_0x38b1a4,_0x30bd57,_0x5b4db6);const _0x57a422=0x1389;let _0x9b9b90=class extends _0x5bf9c6['RxDisposable']{constructor(_0x5e0c2c,_0x527584,_0x294695,_0x3822bc){const _0x407c21=_0x19a859;super(),_0x521fa5(this,'_cursors',new Set()),_0x521fa5(this,_0x407c21(0x1f6),null),(this[_0x407c21(0x2a1)]=_0x5e0c2c,this[_0x407c21(0x26f)]=_0x527584,this[_0x407c21(0x2dd)]=_0x294695,this['_themeService']=_0x3822bc,this[_0x407c21(0x187)]());}['_init'](){const _0x18e834=_0x19a859;this[_0x18e834(0x26f)]['currentSkeleton$']['pipe'](_0x19b4ce[_0x18e834(0x130)](this[_0x18e834(0x198)]),_0x19b4ce[_0x18e834(0x2e3)](_0x204fcb=>{const _0x4fe1e7=_0x18e834;if(_0x204fcb){const _0x4359b2=_0x204fcb[_0x4fe1e7(0x348)];return _0x496cb2['combineLatest'](this[_0x4fe1e7(0x2dd)]['getCollabCursors$'](this['_context']['unitId']),this['_themeService'][_0x4fe1e7(0x186)])[_0x4fe1e7(0x38f)](_0x19b4ce['map'](([_0x429706,_0x534439])=>{const _0x14074b=_0x4fe1e7,_0x5ae039=new Map();return _0x429706[_0x14074b(0x139)]((_0x211e6e,_0x56b1ca)=>{const _0x5b2fea=_0x14074b;if(_0x211e6e[_0x5b2fea(0x3a4)]===_0x4359b2){const _0xa7ddf7={..._0x211e6e};_0xa7ddf7[_0x5b2fea(0x166)]=_0x534439[_0x211e6e['color']],_0x5ae039['set'](_0x56b1ca,_0xa7ddf7);}}),{'skeleton':_0x204fcb,'cursors':_0x5ae039};}));}return _0x496cb2['of']({'skeleton':null,'cursors':new Map()});}))[_0x18e834(0x28a)](({skeleton:_0x2310fb,cursors:_0x1055da})=>{const _0x4c8ca5=_0x18e834;this[_0x4c8ca5(0x1ff)](),_0x2310fb&&this['_updateCollabCursors'](_0x2310fb,_0x1055da);}),this[_0x18e834(0x26f)][_0x18e834(0x124)][_0x18e834(0x28a)](_0x67d540=>{const _0x35a4fa=_0x18e834;if(_0x67d540==null)return;const {skeleton:_0x480467}=_0x67d540,{scene:_0x2ad4ff}=this[_0x35a4fa(0x2a1)];_0x2ad4ff[_0x35a4fa(0x1d9)]['subscribeEvent'](_0x5bf9c6[_0x35a4fa(0x372)](_0x2ecf95=>{const _0x32df59=_0x35a4fa;var _0x1bfcc9,_0x284779;const {offsetX:_0x5cb8e4,offsetY:_0x1048a3}=_0x2ecf95,{x:_0x595489,y:_0x2f3347}=_0x2ad4ff[_0x32df59(0x293)](_0x5d1039[_0x32df59(0x148)]['FromArray']([_0x5cb8e4,_0x1048a3])),{scaleX:_0x4fd9e1,scaleY:_0xbd2a4c}=_0x2ad4ff[_0x32df59(0x363)](),_0x475017=_0x2ad4ff[_0x32df59(0x1d0)](_0x5d1039[_0x32df59(0x157)][_0x32df59(0x156)]),_0x8cbe17=_0x2ad4ff[_0x32df59(0x2c2)](_0x5d1039['Vector2'][_0x32df59(0x1f3)]([_0x595489,_0x2f3347]),_0x475017),_0x1c37a5=_0x480467[_0x32df59(0x201)](_0x5cb8e4,_0x1048a3,_0x4fd9e1,_0xbd2a4c,_0x8cbe17);((_0x1bfcc9=this[_0x32df59(0x1f6)])==null?void 0x0:_0x1bfcc9[_0x32df59(0x32c)])===_0x1c37a5['column']&&((_0x284779=this[_0x32df59(0x1f6)])==null?void 0x0:_0x284779[_0x32df59(0x1b3)])===_0x1c37a5[_0x32df59(0x1b3)]||this['_cursors'][_0x32df59(0x139)](_0x37787c=>{const _0x58fe6d=_0x32df59;_0x37787c[_0x58fe6d(0x1e1)](_0x1c37a5);});},0x64));});}['_updateCollabCursors'](_0x438d59,_0x5e8179){const _0x19fc0d=_0x19a859;var _0x720153;const _0x47b945=(_0x720153=this[_0x19fc0d(0x26f)]['getCurrent']())==null?void 0x0:_0x720153['skeleton'];if(!_0x47b945)return;const _0x488377=this[_0x19fc0d(0x2e7)]();if(!_0x488377)return;this[_0x19fc0d(0x22d)][_0x19fc0d(0x139)](_0x45ca3a=>{_0x45ca3a['makeDirty']();});const {scene:_0x38c8ef}=_0x488377,_0x259019=_0x30398d(Array[_0x19fc0d(0x145)](_0x5e8179[_0x19fc0d(0x37d)]()))['map'](_0xe7cd88=>{const _0x43ac01=_0x19fc0d,{color:_0x3d5576,range:_0xd21e,name:_0x3cfcd4,selection:_0x50fe38,sheetID:_0x5278dd}=_0xe7cd88,{startColumn:_0x2e54e2,startRow:_0x29bb3e,endColumn:_0x3afebf,endRow:_0x56a228}=_0xd21e,_0x243382=_0x45d045[_0x43ac01(0x19b)](_0x29bb3e,_0x2e54e2,_0x38c8ef,_0x47b945),_0x504ea=_0x45d045[_0x43ac01(0x19b)](_0x56a228,_0x3afebf,_0x38c8ef,_0x47b945),{columnHeaderHeightAndMarginTop:_0x152e1d}=_0x47b945,{startX:_0x298651,startY:_0x3c2314}=_0x243382,{endX:_0x1fb767,endY:_0x84c8be}=_0x504ea,_0x27e360=_0x1fb767-_0x298651,_0x194d52=_0x84c8be-_0x3c2314,_0x14138a={'labelPosition':_0x3c2314-_0x152e1d>=_0x41ef4a?_0x43ac01(0x154):_0x43ac01(0x112),'sheetID':_0x5278dd,'range':_0xd21e,'color':_0x3d5576,'name':_0x3cfcd4,'selection':_0x50fe38,'left':_0x298651,'top':_0x3c2314,'width':_0x27e360,'height':_0x194d52,'evented':!0x1,'zIndex':_0x57a422};return new _0x30557c(_0x3cfcd4,_0x14138a);});_0x38c8ef[_0x19fc0d(0x24e)](_0x259019,_0x3ff862),this[_0x19fc0d(0x22d)]=new Set(_0x259019);}[_0x19a859(0x1ff)](){const _0x500120=_0x19a859;var _0x249989;(_0x249989=this['_cursors'])==null||_0x249989[_0x500120(0x139)](_0x327ab1=>_0x327ab1[_0x500120(0x27b)]());}[_0x19a859(0x2e7)](){const _0x4f0bcd=_0x19a859;return _0x45d045[_0x4f0bcd(0x2d4)](this[_0x4f0bcd(0x2a1)][_0x4f0bcd(0x182)],this[_0x4f0bcd(0x2a1)]);}};_0x9b9b90=_0x15f004([_0x51b434(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x45d045['SheetSkeletonManagerService'])),_0x51b434(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x3097e7)),_0x51b434(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x11a)]))],_0x9b9b90);function _0x30398d(_0x58c07b){const _0x343449=_0x19a859,_0x5b6003=new Map();return _0x58c07b[_0x343449(0x139)](_0xff101=>{const _0x13d37f=_0x343449;if(_0x5b6003[_0x13d37f(0x2b8)](_0xff101[_0x13d37f(0x1ef)])){const _0x1e120c=_0x5b6003[_0x13d37f(0x223)](_0xff101[_0x13d37f(0x1ef)]);_0x1e120c[_0x13d37f(0x33f)]+=',\x20'+_0xff101[_0x13d37f(0x33f)];}else _0x5b6003['set'](_0xff101['selection'],_0xff101);}),Array[_0x343449(0x145)](_0x5b6003['values']());}var _0xe4b539=function(){const _0x42dc55=_0x19a859;return _0xe4b539=Object[_0x42dc55(0x3a8)]||function(_0x577194){const _0x299730=_0x42dc55;for(var _0x47a954,_0x17a44d=0x1,_0xa0f122=arguments[_0x299730(0x344)];_0x17a44d<_0xa0f122;_0x17a44d++){_0x47a954=arguments[_0x17a44d];for(var _0x223351 in _0x47a954)Object[_0x299730(0x2eb)][_0x299730(0x2f1)]['call'](_0x47a954,_0x223351)&&(_0x577194[_0x223351]=_0x47a954[_0x223351]);}return _0x577194;},_0xe4b539['apply'](this,arguments);},_0x373af3=function(_0x473425,_0x3db273){const _0x42981b=_0x19a859;var _0x2dde9d={};for(var _0x3dd852 in _0x473425)Object[_0x42981b(0x2eb)][_0x42981b(0x2f1)][_0x42981b(0x207)](_0x473425,_0x3dd852)&&_0x3db273[_0x42981b(0x1b5)](_0x3dd852)<0x0&&(_0x2dde9d[_0x3dd852]=_0x473425[_0x3dd852]);if(_0x473425!=null&&typeof Object[_0x42981b(0x1dd)]=='function'){for(var _0x250ad6=0x0,_0x3dd852=Object[_0x42981b(0x1dd)](_0x473425);_0x250ad6<_0x3dd852['length'];_0x250ad6++)_0x3db273['indexOf'](_0x3dd852[_0x250ad6])<0x0&&Object[_0x42981b(0x2eb)][_0x42981b(0x118)]['call'](_0x473425,_0x3dd852[_0x250ad6])&&(_0x2dde9d[_0x3dd852[_0x250ad6]]=_0x473425[_0x3dd852[_0x250ad6]]);}return _0x2dde9d;},_0x4a3bf8=_0xab82b5[_0x19a859(0x35c)](function(_0x4af63d,_0x109e2f){const _0x5a4bc1=_0x19a859;var _0x1bcaea=_0x4af63d['icon'],_0x1d49d8=_0x4af63d['id'],_0x381001=_0x4af63d[_0x5a4bc1(0x1a5)],_0x21bc10=_0x4af63d[_0x5a4bc1(0x377)],_0x52b9bd=_0x373af3(_0x4af63d,[_0x5a4bc1(0x2d5),'id',_0x5a4bc1(0x1a5),'extend']),_0x488aaa='univerjs-icon\x20univerjs-icon-'[_0x5a4bc1(0x30b)](_0x1d49d8,'\x20')[_0x5a4bc1(0x30b)](_0x381001||'')[_0x5a4bc1(0x360)](),_0x49bb9d=_0xab82b5['useRef']('_'['concat'](_0x1f6ecc()));return _0x169858(_0x1bcaea,''['concat'](_0x1d49d8),{'defIds':_0x1bcaea['defIds'],'idSuffix':_0x49bb9d[_0x5a4bc1(0x2ed)]},_0xe4b539({'ref':_0x109e2f,'className':_0x488aaa},_0x52b9bd),_0x21bc10);});function _0x169858(_0x8f0dcc,_0x3de37d,_0x5139cf,_0x56cebf,_0x58a6cd){const _0x59b1b4=_0x19a859;return _0xab82b5[_0x59b1b4(0x144)](_0x8f0dcc['tag'],_0xe4b539(_0xe4b539({'key':_0x3de37d},_0x49bbd1(_0x8f0dcc,_0x5139cf,_0x58a6cd)),_0x56cebf),(_0x51a1b8(_0x8f0dcc,_0x5139cf)[_0x59b1b4(0x10f)]||[])['map'](function(_0x4c06d1,_0x3f330e){const _0x58e24d=_0x59b1b4;return _0x169858(_0x4c06d1,''[_0x58e24d(0x30b)](_0x3de37d,'-')['concat'](_0x8f0dcc[_0x58e24d(0x16b)],'-')[_0x58e24d(0x30b)](_0x3f330e),_0x5139cf,void 0x0,_0x58a6cd);}));}function _0x49bbd1(_0x280671,_0x30426e,_0x3fff50){const _0x26ffa0=_0x19a859;var _0x4cba22=_0xe4b539({},_0x280671['attrs']);_0x3fff50!=null&&_0x3fff50[_0x26ffa0(0x37b)]&&_0x4cba22[_0x26ffa0(0x2df)]===_0x26ffa0(0x37b)&&(_0x4cba22[_0x26ffa0(0x2df)]=_0x3fff50['colorChannel1']),_0x280671[_0x26ffa0(0x16b)]===_0x26ffa0(0x164)&&_0x4cba22['id']&&(_0x4cba22['id']=_0x4cba22['id']+_0x30426e[_0x26ffa0(0x23d)]),Object[_0x26ffa0(0x211)](_0x4cba22)['forEach'](function(_0x505922){const _0x1aa687=_0x26ffa0;var _0x1c520e=_0x505922[0x0],_0xf23ca9=_0x505922[0x1];_0x1c520e===_0x1aa687(0x164)&&typeof _0xf23ca9==_0x1aa687(0x208)&&(_0x4cba22[_0x1c520e]=_0xf23ca9[_0x1aa687(0x20d)](/url\(#(.*)\)/,'url(#$1'[_0x1aa687(0x30b)](_0x30426e['idSuffix'],')')));});var _0x4fb094=_0x30426e[_0x26ffa0(0x1a8)];return!_0x4fb094||_0x4fb094[_0x26ffa0(0x344)]===0x0||(_0x280671[_0x26ffa0(0x16b)]===_0x26ffa0(0x18e)&&_0x4cba22[_0x26ffa0(0x1f7)]&&(_0x4cba22[_0x26ffa0(0x1f7)]=_0x4cba22[_0x26ffa0(0x1f7)]+_0x30426e['idSuffix']),Object[_0x26ffa0(0x211)](_0x4cba22)[_0x26ffa0(0x139)](function(_0x2aeb92){const _0x164c38=_0x26ffa0;var _0x1c9538=_0x2aeb92[0x0],_0x56b980=_0x2aeb92[0x1];typeof _0x56b980=='string'&&(_0x4cba22[_0x1c9538]=_0x56b980['replace'](/url\(#(.*)\)/,_0x164c38(0x29d)[_0x164c38(0x30b)](_0x30426e[_0x164c38(0x23d)],')')));})),_0x4cba22;}function _0x51a1b8(_0x54ea60,_0x10d371){const _0x2c7bf6=_0x19a859;var _0x33358b,_0x3092bf=_0x10d371['defIds'];return!_0x3092bf||_0x3092bf[_0x2c7bf6(0x344)]===0x0?_0x54ea60:_0x54ea60[_0x2c7bf6(0x16b)]==='defs'&&(!((_0x33358b=_0x54ea60[_0x2c7bf6(0x10f)])===null||_0x33358b===void 0x0)&&_0x33358b[_0x2c7bf6(0x344)])?_0xe4b539(_0xe4b539({},_0x54ea60),{'children':_0x54ea60[_0x2c7bf6(0x10f)][_0x2c7bf6(0x309)](function(_0x44062b){const _0x29ca36=_0x2c7bf6;return typeof _0x44062b['attrs']['id']==_0x29ca36(0x208)&&_0x3092bf&&_0x3092bf[_0x29ca36(0x1b5)](_0x44062b[_0x29ca36(0x1a9)]['id'])>-0x1?_0xe4b539(_0xe4b539({},_0x44062b),{'attrs':_0xe4b539(_0xe4b539({},_0x44062b[_0x29ca36(0x1a9)]),{'id':_0x44062b[_0x29ca36(0x1a9)]['id']+_0x10d371[_0x29ca36(0x23d)]})}):_0x44062b;})}):_0x54ea60;}function _0x1f6ecc(){const _0x93bf88=_0x19a859;return Math[_0x93bf88(0x39a)]()[_0x93bf88(0x246)](0x24)[_0x93bf88(0x13f)](0x2,0x8);}_0x4a3bf8[_0x19a859(0x248)]='UniverIcon';var _0x461e80={'tag':_0x19a859(0x217),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x19a859(0x1b6),'height':_0x19a859(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':_0x19a859(0x265)},'children':[{'tag':_0x19a859(0x333),'attrs':{'stroke':_0x19a859(0x1e6),'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':_0x19a859(0x2aa),'strokeLinejoin':_0x19a859(0x2aa),'strokeWidth':1.2}}]},{'tag':_0x19a859(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x19a859(0x137)},'children':[{'tag':_0x19a859(0x333),'attrs':{'fill':_0x19a859(0x394),'d':_0x19a859(0x278)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x1f3904=_0xab82b5[_0x19a859(0x35c)](function(_0x4bc6c2,_0x37cc09){const _0x797ff1=_0x19a859;return _0xab82b5[_0x797ff1(0x144)](_0x4a3bf8,Object['assign']({},_0x4bc6c2,{'id':_0x797ff1(0x2a7),'ref':_0x37cc09,'icon':_0x461e80}));});_0x1f3904[_0x19a859(0x248)]=_0x19a859(0x2f2);var _0x47458f={'tag':_0x19a859(0x217),'attrs':{'fill':_0x19a859(0x34c),'viewBox':_0x19a859(0x2ff),'width':_0x19a859(0x1b6),'height':_0x19a859(0x1b6)},'children':[{'tag':'g','attrs':{'clipPath':_0x19a859(0x304)},'children':[{'tag':_0x19a859(0x333),'attrs':{'stroke':'currentColor','d':_0x19a859(0x2e2),'strokeLinecap':_0x19a859(0x2aa),'strokeLinejoin':_0x19a859(0x2aa),'strokeWidth':1.2}}]},{'tag':_0x19a859(0x26d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x19a859(0x278),'transform':'translate(.97)'}}]}]}],'defIds':[_0x19a859(0x219)]},_0xa5b3a3=_0xab82b5[_0x19a859(0x35c)](function(_0x1c1b65,_0x368fe6){const _0x1f2a5f=_0x19a859;return _0xab82b5['createElement'](_0x4a3bf8,Object[_0x1f2a5f(0x3a8)]({},_0x1c1b65,{'id':_0x1f2a5f(0x24d),'ref':_0x368fe6,'icon':_0x47458f}));});_0xa5b3a3[_0x19a859(0x248)]='OnLineSingle';function _0x3c4821(_0x176dbc){const _0x14b484=_0x19a859;switch(_0x176dbc){case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x2ae)]:return _0x14b484(0x302);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x24b)]:return _0x14b484(0x2c0);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x25b)]:return'collabStatus.fetchMiss';case _0x2c72d0[_0x14b484(0x13c)]['NOT_COLLAB']:return _0x14b484(0x23e);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x382)]:case _0x2c72d0['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x14b484(0x15c);case _0x2c72d0[_0x14b484(0x13c)][_0x14b484(0x12b)]:case _0x2c72d0['CollaborationStatus'][_0x14b484(0x1c7)]:return _0x14b484(0x1fb);}}function _0x4957f6(_0x1be164){const _0x5c21a0=_0x19a859,{status$:_0xb366c0}=_0x1be164,_0x399ab7=_0x106fc7[_0x5c21a0(0x16f)](_0xb366c0,_0x2c72d0['CollaborationStatus'][_0x5c21a0(0x177)]),_0x2dab5c=_0x106fc7[_0x5c21a0(0x2b0)](_0x5bf9c6[_0x5c21a0(0x2d7)]),_0x12b00b=_0x106fc7['useDependency'](_0x2c72d0['CollaborationSessionService']),_0x1d9b91=_0x399ab7!==_0x2c72d0[_0x5c21a0(0x13c)][_0x5c21a0(0x2ae)],_0x554584=_0x2dab5c['t'](_0x3c4821(_0x399ab7)),_0x2b24c4=_0x1d9b91?_0x5540cf[_0x5c21a0(0x1da)](_0xa5b3a3,{}):_0x5540cf[_0x5c21a0(0x1da)](_0x1f3904,{}),_0x53714a=_0xab82b5['useCallback'](()=>{const _0x107711=_0x5c21a0;_0x1d9b91||_0x12b00b[_0x107711(0x267)]();},[_0x1d9b91,_0x12b00b]);function _0xcc1376(){const _0x5008ee=_0x5c21a0;return _0x5540cf['jsxs']('div',{'className':_0x5008ee(0x17c),'onClick':_0x53714a,'children':[_0x5540cf[_0x5008ee(0x1da)](_0x5008ee(0x149),{'className':_0x165dd1['clsx']('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x1d9b91?_0x5008ee(0x169):_0x5008ee(0x188)),'children':_0x2b24c4}),_0x5540cf['jsx'](_0x5008ee(0x149),{'className':_0x5008ee(0x2e8),'children':_0x554584})]});}return _0x1d9b91?_0xcc1376():_0x5540cf['jsx'](_0x165dd1['Tooltip'],{'title':_0x2dab5c['t'](_0x5c21a0(0x225)),'children':_0xcc1376()});}var _0x3495c3=Object[_0x19a859(0x385)],_0xaaf97b=(_0x121beb,_0x35926d,_0x43f60b,_0xba6cfe)=>{const _0x58bf15=_0x19a859;for(var _0x5eb6c1=_0xba6cfe>0x1?void 0x0:_0xba6cfe?_0x3495c3(_0x35926d,_0x43f60b):_0x35926d,_0x580bd7=_0x121beb[_0x58bf15(0x344)]-0x1,_0x20046a;_0x580bd7>=0x0;_0x580bd7--)(_0x20046a=_0x121beb[_0x580bd7])&&(_0x5eb6c1=_0x20046a(_0x5eb6c1)||_0x5eb6c1);return _0x5eb6c1;},_0x1270d0=(_0x2721cb,_0x25aefc)=>(_0x10ac6e,_0x27eafc)=>_0x25aefc(_0x10ac6e,_0x27eafc,_0x2721cb);_0x4c3250[_0x19a859(0x134)]=class extends _0x5bf9c6['Disposable']{constructor(_0x1f0946,_0x3430e0,_0x3a396a,_0xe4e9ac){const _0x43dca7=_0x19a859;super(),_0x521fa5(this,_0x43dca7(0x2af),new _0x496cb2[(_0x43dca7(0x3a5))](_0x2c72d0['CollaborationStatus'][_0x43dca7(0x177)])),(this[_0x43dca7(0x315)]=_0x1f0946,this['_injector']=_0x3430e0,this[_0x43dca7(0x14b)]=_0x3a396a,this[_0x43dca7(0x259)]=_0xe4e9ac,this[_0x43dca7(0x243)](),this[_0x43dca7(0x1f8)]());}[_0x19a859(0x1f8)](){const _0x13b49d=_0x19a859;this[_0x13b49d(0x305)](this['_univerInstanceService'][_0x13b49d(0x2bd)][_0x13b49d(0x38f)](_0x496cb2[_0x13b49d(0x2e3)](()=>{const _0x3d3fc5=_0x13b49d,_0x36dc81=this[_0x3d3fc5(0x315)][_0x3d3fc5(0x280)]();return _0x36dc81?this[_0x3d3fc5(0x14b)][_0x3d3fc5(0x28c)](_0x36dc81[_0x3d3fc5(0x1b2)]()):_0x496cb2['of'](null);}),_0x496cb2[_0x13b49d(0x2e3)](_0x7d27b8=>_0x7d27b8?_0x7d27b8[_0x13b49d(0x2be)]:_0x496cb2['of'](_0x2c72d0['CollaborationStatus']['NOT_COLLAB'])))[_0x13b49d(0x28a)](_0x7f5647=>{const _0x55e9bb=_0x13b49d;this[_0x55e9bb(0x2af)][_0x55e9bb(0x288)](_0x7f5647);}));}[_0x19a859(0x243)](){const _0x2ce3e8=_0x19a859;this[_0x2ce3e8(0x305)](this[_0x2ce3e8(0x259)][_0x2ce3e8(0x2b2)](_0x106fc7[_0x2ce3e8(0x1d3)][_0x2ce3e8(0x2d9)],()=>_0x106fc7[_0x2ce3e8(0x121)](_0x515436({'status$':this[_0x2ce3e8(0x2af)][_0x2ce3e8(0x1bf)]()}),this[_0x2ce3e8(0x380)])));}},_0x4c3250[_0x19a859(0x134)]=_0xaaf97b([_0x1270d0(0x0,_0x5bf9c6['IUniverInstanceService']),_0x1270d0(0x1,_0x5bf9c6['Inject'](_0x5bf9c6['Injector'])),_0x1270d0(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0['CollaborationController'])),_0x1270d0(0x3,_0x106fc7[_0x19a859(0x330)])],_0x4c3250[_0x19a859(0x134)]);function _0x515436(_0x1e9eaf){const {status$:_0x4a0e34}=_0x1e9eaf;return function(){const _0x33c7b6=_0x5841;return _0x5540cf[_0x33c7b6(0x1da)](_0x4957f6,{'status$':_0x4a0e34});};}var _0x1ae155=Object[_0x19a859(0x385)],_0x1b5fc0=(_0x4eb8b1,_0x23357a,_0x112222,_0x61df19)=>{const _0x5ba927=_0x19a859;for(var _0x20dcce=_0x61df19>0x1?void 0x0:_0x61df19?_0x1ae155(_0x23357a,_0x112222):_0x23357a,_0x266b9b=_0x4eb8b1[_0x5ba927(0x344)]-0x1,_0x36bce2;_0x266b9b>=0x0;_0x266b9b--)(_0x36bce2=_0x4eb8b1[_0x266b9b])&&(_0x20dcce=_0x36bce2(_0x20dcce)||_0x20dcce);return _0x20dcce;},_0x15f855=(_0x107f41,_0x58732e)=>(_0x5300ad,_0x3e003f)=>_0x58732e(_0x5300ad,_0x3e003f,_0x107f41);let _0x461047=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x505011,_0x165ccb,_0x4f7890,_0x5edf98,_0x33f901,_0x30aa13){const _0x42d47b=_0x19a859;super(),this[_0x42d47b(0x269)]=_0x505011,this['_localCacheService']=_0x165ccb,this[_0x42d47b(0x2c4)]=_0x4f7890,this[_0x42d47b(0x2f0)]=_0x5edf98,this['_notificationService']=_0x33f901,this[_0x42d47b(0x1ed)]=_0x30aa13,this[_0x42d47b(0x376)](),this[_0x42d47b(0x2a9)]();}[_0x19a859(0x376)](){const _0x427b75=_0x19a859;this[_0x427b75(0x305)](this[_0x427b75(0x269)]['registerBeforeClose'](()=>{const _0x518f4a=_0x427b75;if(this[_0x518f4a(0x32b)][_0x518f4a(0x353)][_0x518f4a(0x390)])return this[_0x518f4a(0x1ed)]['t'](_0x518f4a(0x26e));}));}['_initEvent'](){const _0x2f0b5f=_0x19a859;this[_0x2f0b5f(0x305)](this[_0x2f0b5f(0x2c4)][_0x2f0b5f(0x216)]['subscribe'](_0xc336c6=>{const _0x3613e5=_0x2f0b5f;_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId'][_0x3613e5(0x120)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1['MessageType'][_0x3613e5(0x33d)],'content':this[_0x3613e5(0x1ed)]['t']('collaboration.single-unit.warning')}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x238)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x33d)],'content':this['_localeService']['t'](_0x3613e5(0x183))}),_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId'][_0x3613e5(0x22b)]&&this[_0x3613e5(0x2bb)][_0x3613e5(0x1e2)]({'title':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x13e)),'content':this['_localeService']['t'](_0x3613e5(0x2a4)),'type':_0x3613e5(0x29c),'duration':0x0}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x24b)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x172)],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x183))+'('+_0xc336c6[_0x3613e5(0x171)]+')'}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x2ec)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)]['Warning'],'content':this['_localeService']['t'](_0xc336c6[_0x3613e5(0x171)]||'')}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x2c7)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)]['Warning'],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x111))}),_0xc336c6['id']===_0x2c72d0['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1['MessageType']['Error'],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x19f))}),_0xc336c6['id']===_0x2c72d0[_0x3613e5(0x143)][_0x3613e5(0x32e)]&&this[_0x3613e5(0x2f0)][_0x3613e5(0x1e2)]({'type':_0x165dd1[_0x3613e5(0x168)][_0x3613e5(0x172)],'content':this[_0x3613e5(0x1ed)]['t'](_0x3613e5(0x12e))});}));}};_0x461047=_0x1b5fc0([_0x15f855(0x0,_0x106fc7[_0x19a859(0x2fe)]),_0x15f855(0x1,_0x2c72d0[_0x19a859(0x226)]),_0x15f855(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x194)])),_0x15f855(0x3,_0x106fc7[_0x19a859(0x395)]),_0x15f855(0x4,_0x106fc7[_0x19a859(0x33c)]),_0x15f855(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6['LocaleService']))],_0x461047);const _0x598514=_0x19a859(0x366),_0x15e6bd={},_0x1b2902=_0x5bf9c6[_0x19a859(0x113)](_0x19a859(0x117));var _0x5cae06=Object[_0x19a859(0x385)],_0x5bd6bb=(_0x3bf09b,_0x254a3a,_0x4cb8e8,_0x23e538)=>{for(var _0x4fb7fd=_0x23e538>0x1?void 0x0:_0x23e538?_0x5cae06(_0x254a3a,_0x4cb8e8):_0x254a3a,_0x26638d=_0x3bf09b['length']-0x1,_0x2ac5c3;_0x26638d>=0x0;_0x26638d--)(_0x2ac5c3=_0x3bf09b[_0x26638d])&&(_0x4fb7fd=_0x2ac5c3(_0x4fb7fd)||_0x4fb7fd);return _0x4fb7fd;},_0xc3ca45=(_0xde19a1,_0x22044f)=>(_0xf4880f,_0x23ef12)=>_0x22044f(_0xf4880f,_0x23ef12,_0xde19a1);_0x4c3250[_0x19a859(0x1f1)]=class extends _0x5bf9c6[_0x19a859(0x339)]{constructor(_0x1f21a4,_0x42939d,_0x2fc0c8,_0x3df0f6,_0x598381){const _0x365084=_0x19a859;super(),this[_0x365084(0x1fd)]=_0x1f21a4,this[_0x365084(0x264)]=_0x42939d,this[_0x365084(0x1d4)]=_0x2fc0c8,this[_0x365084(0x322)]=_0x3df0f6,_0x598381?_0x598381==null||_0x598381[_0x365084(0x1c4)]()[_0x365084(0x30c)](()=>this['_init']()):(this[_0x365084(0x264)][_0x365084(0x29e)](_0x365084(0x22e),_0x365084(0x204)),this['_init']());}async['_init'](){const _0x59b3e4=_0x19a859,_0x3daf28=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)]('unit'),_0x3201c7=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)]('type'),_0x19d7b6=this[_0x59b3e4(0x1fd)][_0x59b3e4(0x20a)](_0x59b3e4(0x1a2));if(!_0x3daf28||!_0x3201c7){this[_0x59b3e4(0x264)][_0x59b3e4(0x29e)](_0x59b3e4(0x22e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x274304=await this[_0x59b3e4(0x322)][_0x59b3e4(0x285)](_0x3daf28,Number(_0x3201c7),_0x19d7b6);_0x274304&&_0x274304 instanceof _0x5bf9c6[_0x59b3e4(0x1f9)]&&this[_0x59b3e4(0x1d7)](_0x274304);}async[_0x19a859(0x1d7)](_0x14bfc2){const _0x5c0fa3=_0x19a859;await this[_0x5c0fa3(0x308)](_0x14bfc2),_0x14bfc2[_0x5c0fa3(0x24c)][_0x5c0fa3(0x38f)](_0x496cb2[_0x5c0fa3(0x130)](this['dispose$']))[_0x5c0fa3(0x28a)](_0x2623bb=>{const _0x40f409=_0x5c0fa3;_0x2623bb&&this[_0x40f409(0x14c)](_0x2623bb);}),this[_0x5c0fa3(0x1fd)][_0x5c0fa3(0x165)][_0x5c0fa3(0x38f)](_0x496cb2[_0x5c0fa3(0x130)](this['dispose$']))[_0x5c0fa3(0x28a)](()=>this[_0x5c0fa3(0x308)](_0x14bfc2));}[_0x19a859(0x14c)](_0x38f450,_0x5328fd=!0x1){const _0x478354=_0x19a859,_0x439e82=this['_urlService'][_0x478354(0x20a)](_0x478354(0x1a2));_0x38f450[_0x478354(0x327)]()!==_0x439e82&&this[_0x478354(0x1fd)][_0x478354(0x365)](_0x478354(0x1a2),_0x38f450[_0x478354(0x327)](),_0x5328fd);}async['_updateSubUnitFromURLParams'](_0x113747){const _0x499e70=_0x19a859;var _0x24b0e1;const _0x283bf6=this[_0x499e70(0x1fd)]['getParam'](_0x499e70(0x1a2));if(!_0x283bf6||!_0x113747[_0x499e70(0x336)](_0x283bf6)){const _0x7ebc36=_0x113747[_0x499e70(0x241)]()[0x0],_0x4a30f1=_0x113747[_0x499e70(0x336)](_0x7ebc36);if(!_0x4a30f1)return;this[_0x499e70(0x14c)](_0x4a30f1,!0x0),await this[_0x499e70(0x1d4)][_0x499e70(0x17f)](_0x4fd62b[_0x499e70(0x11e)]['id'],{'unitId':_0x113747[_0x499e70(0x1b2)](),'subUnitId':_0x7ebc36});return;}((_0x24b0e1=_0x113747[_0x499e70(0x345)]())==null?void 0x0:_0x24b0e1['getSheetId']())!==_0x283bf6&&await this['_commandService'][_0x499e70(0x17f)](_0x4fd62b[_0x499e70(0x11e)]['id'],{'unitId':_0x113747[_0x499e70(0x1b2)](),'subUnitId':_0x283bf6});}},_0x4c3250[_0x19a859(0x1f1)]=_0x5bd6bb([_0xc3ca45(0x0,_0x1b2902),_0xc3ca45(0x1,_0x5bf9c6[_0x19a859(0x1bb)]),_0xc3ca45(0x2,_0x5bf9c6['ICommandService']),_0xc3ca45(0x3,_0x5bf9c6[_0x19a859(0x116)](_0x2c72d0[_0x19a859(0x158)])),_0xc3ca45(0x4,_0x5bf9c6[_0x19a859(0x119)](_0x1d3fe6[_0x19a859(0x279)]))],_0x4c3250[_0x19a859(0x1f1)]);var _0x4f03ce=Object[_0x19a859(0x385)],_0x3c5bad=(_0x3e8acb,_0x1fd94f,_0x1f097c,_0x183721)=>{const _0x1581be=_0x19a859;for(var _0x4825c1=_0x183721>0x1?void 0x0:_0x183721?_0x4f03ce(_0x1fd94f,_0x1f097c):_0x1fd94f,_0x262c8f=_0x3e8acb[_0x1581be(0x344)]-0x1,_0x579ee7;_0x262c8f>=0x0;_0x262c8f--)(_0x579ee7=_0x3e8acb[_0x262c8f])&&(_0x4825c1=_0x579ee7(_0x4825c1)||_0x4825c1);return _0x4825c1;},_0x398879=(_0x337b55,_0x1cfe36)=>(_0x35a824,_0x23992a)=>_0x1cfe36(_0x35a824,_0x23992a,_0x337b55);let _0x28b55a=class{constructor(_0x52da4e,_0x2b766b,_0x344f66){const _0x416dbe=_0x19a859;this[_0x416dbe(0x380)]=_0x52da4e,this[_0x416dbe(0x197)]=_0x2b766b,this[_0x416dbe(0x388)]=_0x344f66;}[_0x19a859(0x359)](_0x241939){const _0x48b1a7=_0x19a859;this[_0x48b1a7(0x233)](_0x241939),this[_0x48b1a7(0x298)](_0x241939);}['transformRemoteChangeset'](_0x9f5c27){const _0x454d44=_0x19a859,{unitID:_0x5820fc}=_0x9f5c27,_0x5b26cd=this['_renderManagerService'][_0x454d44(0x29a)](_0x5820fc)[_0x454d44(0x1f0)](_0x1a8f2e[_0x454d44(0x23b)]),{redoCache:_0x5bf581}=_0x5b26cd[_0x454d44(0x30e)]();if(_0x5bf581['length']===0x0)return _0x9f5c27;let _0x44c828=_0x5bf9c6[_0x454d44(0x389)][_0x454d44(0x1a3)](_0x9f5c27[_0x454d44(0x39e)][0x0]);for(let _0xd96f27=0x0;_0xd96f27<_0x5bf581[_0x454d44(0x344)];_0xd96f27++){const _0x3520ce={'id':_0x454d44(0x36a),'params':{..._0x5bf581[_0xd96f27]}},_0x4aa113=this[_0x454d44(0x197)][_0x454d44(0x2e4)](_0x44c828,_0x3520ce,!0x1);if(_0x4e6003[_0x454d44(0x38c)](_0x4aa113))throw _0x4aa113[_0x454d44(0x29c)];_0x44c828=_0x4aa113[_0x454d44(0x2f6)];}return{..._0x5bf9c6[_0x454d44(0x389)][_0x454d44(0x1a3)](_0x9f5c27),'mutations':[_0x44c828]};}[_0x19a859(0x233)](_0x2a4e90){const _0x4ca2c3=_0x19a859,{unitID:_0x3e42bc}=_0x2a4e90,_0x77eb4=this[_0x4ca2c3(0x388)][_0x4ca2c3(0x29a)](_0x3e42bc)['with'](_0x1a8f2e['DocIMEInputManagerService']),{undoCache:_0x5196e5,redoCache:_0x6363d}=_0x77eb4[_0x4ca2c3(0x30e)]();if(_0x5196e5[_0x4ca2c3(0x344)]===0x0||_0x6363d['length']===0x0)return;const _0x837529=[],_0x24f453=[];let _0x444a61=_0x5bf9c6[_0x4ca2c3(0x389)][_0x4ca2c3(0x1a3)](_0x2a4e90[_0x4ca2c3(0x39e)][0x0]),_0x1b57ae=_0x5bf9c6[_0x4ca2c3(0x389)][_0x4ca2c3(0x1a3)](_0x2a4e90[_0x4ca2c3(0x39e)][0x0]);for(let _0x36ed7f=_0x5196e5[_0x4ca2c3(0x344)]-0x1;_0x36ed7f>=0x0;_0x36ed7f--){const _0x38b298={'id':_0x4ca2c3(0x36a),'params':{..._0x5196e5[_0x36ed7f]}},_0x4407e5={'id':_0x4ca2c3(0x36a),'params':{..._0x6363d[_0x36ed7f]}},_0x4a03f8=this[_0x4ca2c3(0x197)][_0x4ca2c3(0x2e4)](_0x444a61,_0x38b298,!0x1),_0x3e2250=this[_0x4ca2c3(0x197)][_0x4ca2c3(0x2e4)](_0x1b57ae,_0x4407e5,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x4a03f8))throw _0x4a03f8[_0x4ca2c3(0x29c)];if(_0x4e6003['isTransformMutationFailure'](_0x3e2250))throw _0x3e2250[_0x4ca2c3(0x29c)];_0x837529[_0x4ca2c3(0x37e)](_0x4a03f8[_0x4ca2c3(0x178)][_0x4ca2c3(0x316)]),_0x24f453[_0x4ca2c3(0x37e)](_0x3e2250[_0x4ca2c3(0x178)][_0x4ca2c3(0x316)]),_0x444a61=_0x4a03f8[_0x4ca2c3(0x2f6)],_0x1b57ae=_0x3e2250[_0x4ca2c3(0x2f6)];}_0x77eb4[_0x4ca2c3(0x1de)]({'undoCache':_0x837529,'redoCache':_0x24f453});}[_0x19a859(0x298)](_0x343fd2){const _0x336654=_0x19a859,{unitID:_0x155b92}=_0x343fd2,_0x2ecbf5=this[_0x336654(0x388)]['getRenderById'](_0x155b92)['with'](_0x1a8f2e[_0x336654(0x23b)]),_0x15fada=_0x2ecbf5['getActiveRange']();if(_0x15fada==null)return;const _0x573327=[{'id':_0x336654(0x36a),'params':{'unitId':_0x343fd2[_0x336654(0x1db)],'actions':null,'textRanges':[_0x15fada]}}],_0x419960=this[_0x336654(0x197)][_0x336654(0x2f9)](_0x343fd2,_0x573327);if(!_0x4e6003['isTransformMutationsWithChangesetSuccess'](_0x419960))throw _0x419960['error'];const _0x41fa74=_0x419960[_0x336654(0x178)][0x0][_0x336654(0x316)]['textRanges'];Array[_0x336654(0x1dc)](_0x41fa74)&&_0x41fa74[_0x336654(0x344)]&&_0x2ecbf5[_0x336654(0x355)](_0x41fa74[0x0]);}};_0x28b55a=_0x3c5bad([_0x398879(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x398879(0x1,_0x4e6003['ITransformService']),_0x398879(0x2,_0x5d1039[_0x19a859(0x2b9)])],_0x28b55a);var _0x313a08=Object[_0x19a859(0x385)],_0x168cdf=(_0x506ac1,_0x224072,_0xaa2eec,_0x1ab155)=>{const _0x316746=_0x19a859;for(var _0x51e3f6=_0x1ab155>0x1?void 0x0:_0x1ab155?_0x313a08(_0x224072,_0xaa2eec):_0x224072,_0x183092=_0x506ac1[_0x316746(0x344)]-0x1,_0x3a8a4b;_0x183092>=0x0;_0x183092--)(_0x3a8a4b=_0x506ac1[_0x183092])&&(_0x51e3f6=_0x3a8a4b(_0x51e3f6)||_0x51e3f6);return _0x51e3f6;},_0x2ea903=(_0x125679,_0x5a4609)=>(_0x3a84ba,_0x2e2d23)=>_0x5a4609(_0x3a84ba,_0x2e2d23,_0x125679);let _0x4794ff=class{constructor(_0x145d08,_0x32651a,_0x216403){const _0x4d3954=_0x19a859;this[_0x4d3954(0x380)]=_0x145d08,this[_0x4d3954(0x197)]=_0x32651a,this[_0x4d3954(0x2b7)]=_0x216403;}[_0x19a859(0x1b7)](_0x3b75f4){const _0x11e2c9=_0x19a859;this[_0x11e2c9(0x373)](_0x3b75f4);}[_0x19a859(0x213)](_0x5baea4){const _0xb81e16=_0x19a859,{unitID:_0x53125f}=_0x5baea4,{collaboration:_0xf5b215}=this[_0xb81e16(0x2b7)][_0xb81e16(0x1cb)](_0x53125f);if(_0xf5b215[_0xb81e16(0x344)]===0x0)return _0x5baea4;let _0x16a770=_0x5bf9c6[_0xb81e16(0x389)]['deepClone'](_0x5baea4[_0xb81e16(0x39e)][0x0]);for(let _0x2936d2=0x0;_0x2936d2<_0xf5b215[_0xb81e16(0x344)];_0x2936d2++){const _0x49ac58={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf5b215[_0x2936d2][_0xb81e16(0x2ab)],..._0xf5b215[_0x2936d2][_0xb81e16(0x1eb)]}},_0x43b26d=this[_0xb81e16(0x197)]['transformMutation'](_0x16a770,_0x49ac58,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x43b26d))throw _0x43b26d[_0xb81e16(0x29c)];_0x16a770=_0x43b26d[_0xb81e16(0x2f6)];}return{..._0x5bf9c6[_0xb81e16(0x389)]['deepClone'](_0x5baea4),'mutations':[_0x16a770]};}['_transformHistoryAndStateStack'](_0xc54e30){const _0x519d6b=_0x19a859,{unitID:_0x4faf15}=_0xc54e30,{history:_0x256a3c,collaboration:_0x32afa1}=this[_0x519d6b(0x2b7)][_0x519d6b(0x1cb)](_0x4faf15);if(_0x256a3c['length']===0x0&&_0x32afa1[_0x519d6b(0x344)]===0x0)return;const _0x488595=[],_0x5daf0a=[];let _0x3bce19=_0x5bf9c6['Tools'][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]),_0x421334=_0x5bf9c6['Tools'][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]);for(let _0x1d0114=_0x256a3c[_0x519d6b(0x344)]-0x1;_0x1d0114>=0x0;_0x1d0114--){const _0x57202d={'id':_0x519d6b(0x36a),'params':{'unitId':_0x256a3c[_0x1d0114][_0x519d6b(0x2ab)],..._0x256a3c[_0x1d0114][_0x519d6b(0x232)]}},_0x302969={'id':_0x519d6b(0x36a),'params':{'unitId':_0x256a3c[_0x1d0114][_0x519d6b(0x2ab)],..._0x256a3c[_0x1d0114]['redoState']}},_0x4c0002=this[_0x519d6b(0x197)]['transformMutation'](_0x3bce19,_0x57202d,!0x1),_0x6d5951=this[_0x519d6b(0x197)][_0x519d6b(0x2e4)](_0x421334,_0x302969,!0x1);if(_0x4e6003['isTransformMutationFailure'](_0x4c0002))throw _0x4c0002['error'];if(_0x4e6003[_0x519d6b(0x38c)](_0x6d5951))throw _0x6d5951['error'];_0x488595['unshift']({..._0x256a3c[_0x1d0114],'undoState':_0x4c0002['m2Prime']['params'],'redoState':_0x6d5951[_0x519d6b(0x178)]['params']}),_0x3bce19=_0x4c0002[_0x519d6b(0x2f6)],_0x421334=_0x6d5951[_0x519d6b(0x2f6)];}_0x3bce19=_0x5bf9c6[_0x519d6b(0x389)][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]),_0x421334=_0x5bf9c6[_0x519d6b(0x389)][_0x519d6b(0x1a3)](_0xc54e30[_0x519d6b(0x39e)][0x0]);for(let _0x255210=_0x32afa1[_0x519d6b(0x344)]-0x1;_0x255210>=0x0;_0x255210--){const _0x3f39bf={'id':_0x519d6b(0x36a),'params':{'unitId':_0x32afa1[_0x255210][_0x519d6b(0x2ab)],..._0x32afa1[_0x255210][_0x519d6b(0x232)]}},_0x142d2a={'id':_0x519d6b(0x36a),'params':{'unitId':_0x32afa1[_0x255210][_0x519d6b(0x2ab)],..._0x32afa1[_0x255210]['redoState']}},_0x328bca=this['_transformService'][_0x519d6b(0x2e4)](_0x3bce19,_0x3f39bf,!0x1),_0x1440a9=this[_0x519d6b(0x197)][_0x519d6b(0x2e4)](_0x421334,_0x142d2a,!0x1);if(_0x4e6003[_0x519d6b(0x38c)](_0x328bca))throw _0x328bca[_0x519d6b(0x29c)];if(_0x4e6003['isTransformMutationFailure'](_0x1440a9))throw _0x1440a9[_0x519d6b(0x29c)];_0x5daf0a['unshift']({..._0x32afa1[_0x255210],'undoState':_0x328bca[_0x519d6b(0x178)][_0x519d6b(0x316)],'redoState':_0x1440a9[_0x519d6b(0x178)][_0x519d6b(0x316)]}),_0x3bce19=_0x328bca[_0x519d6b(0x2f6)],_0x421334=_0x1440a9[_0x519d6b(0x2f6)];}this['_docStateChangeManagerService'][_0x519d6b(0x1ec)](_0x4faf15,{'history':_0x488595,'collaboration':_0x5daf0a});}};_0x4794ff=_0x168cdf([_0x2ea903(0x0,_0x5bf9c6['Inject'](_0x5bf9c6[_0x19a859(0x35e)])),_0x2ea903(0x1,_0x4e6003['ITransformService']),_0x2ea903(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x1a8f2e[_0x19a859(0x367)]))],_0x4794ff);var _0x1b9a9f=Object[_0x19a859(0x385)],_0x148658=(_0x2ab418,_0x3b00e8,_0x49769b,_0x44e6fc)=>{const _0x351583=_0x19a859;for(var _0x32e16a=_0x44e6fc>0x1?void 0x0:_0x44e6fc?_0x1b9a9f(_0x3b00e8,_0x49769b):_0x3b00e8,_0x47bc58=_0x2ab418[_0x351583(0x344)]-0x1,_0x218e1b;_0x47bc58>=0x0;_0x47bc58--)(_0x218e1b=_0x2ab418[_0x47bc58])&&(_0x32e16a=_0x218e1b(_0x32e16a)||_0x32e16a);return _0x32e16a;},_0x15bfdc=(_0x6e0264,_0x47512d)=>(_0x29dd5c,_0x1e0dbe)=>_0x47512d(_0x29dd5c,_0x1e0dbe,_0x6e0264);let _0x4c0a13=class{constructor(_0x336f1b,_0xc1a4ef){const _0x474bc7=_0x19a859;this[_0x474bc7(0x380)]=_0x336f1b,this[_0x474bc7(0x197)]=_0xc1a4ef;}[_0x19a859(0x1b1)](_0x2a7f27){const _0xb7c0b8=_0x19a859;var _0x35bef4;const _0x4b22d0=this['_injector'][_0xb7c0b8(0x223)](_0x50e692[_0xb7c0b8(0x220)]),_0x41ba40=(_0x35bef4=_0x4b22d0[_0xb7c0b8(0x273)]())!=null?_0x35bef4:[];if(_0x41ba40[_0xb7c0b8(0x344)]===0x0)return;const _0x2979aa=_0x2a7f27[_0xb7c0b8(0x1db)],_0x4d862c=[{'id':_0xb7c0b8(0x36a),'params':{'unitId':_0x2979aa,'actions':null,'textRanges':_0x41ba40}}],_0x76d930=this['_transformService']['transformMutationsWithChangeset'](_0x2a7f27,_0x4d862c);if(!_0x4e6003[_0xb7c0b8(0x396)](_0x76d930))throw _0x76d930['error'];const _0x5bf435=_0x76d930[_0xb7c0b8(0x178)][0x0][_0xb7c0b8(0x316)][_0xb7c0b8(0x195)];Array['isArray'](_0x5bf435)&&_0x5bf435[_0xb7c0b8(0x344)]&&_0x4b22d0[_0xb7c0b8(0x2d2)](_0x5bf435,{'unitId':_0x2979aa,'subUnitId':_0x2979aa},!0x1);}};_0x4c0a13=_0x148658([_0x15bfdc(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x15bfdc(0x1,_0x4e6003[_0x19a859(0x294)])],_0x4c0a13);var _0x323b9b=Object[_0x19a859(0x385)],_0xe1a31e=(_0x7c7e97,_0x574088,_0x14d5ec,_0x132502)=>{for(var _0x83211a=_0x132502>0x1?void 0x0:_0x132502?_0x323b9b(_0x574088,_0x14d5ec):_0x574088,_0x5101b5=_0x7c7e97['length']-0x1,_0x4269bf;_0x5101b5>=0x0;_0x5101b5--)(_0x4269bf=_0x7c7e97[_0x5101b5])&&(_0x83211a=_0x4269bf(_0x83211a)||_0x83211a);return _0x83211a;},_0x5d4b28=(_0x57e09a,_0x2d3d3e)=>(_0x5011ed,_0x23fd39)=>_0x2d3d3e(_0x5011ed,_0x23fd39,_0x57e09a);let _0x48fe55=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x5f0bb2,_0x47d2bc,_0x2f441c,_0x5bb05a,_0x197db5,_0x43a69b,_0x26aa4f,_0x2e055c){const _0x541fd5=_0x19a859;super(),_0x521fa5(this,_0x541fd5(0x2af),new _0x496cb2[(_0x541fd5(0x3a5))](_0x2c72d0['CollaborationStatus']['NOT_COLLAB'])),(this[_0x541fd5(0x2b7)]=_0x5f0bb2,this[_0x541fd5(0x14b)]=_0x47d2bc,this[_0x541fd5(0x1e4)]=_0x2f441c,this[_0x541fd5(0x1d8)]=_0x5bb05a,this[_0x541fd5(0x3a6)]=_0x197db5,this[_0x541fd5(0x383)]=_0x43a69b,this['_messageService']=_0x26aa4f,this[_0x541fd5(0x1ed)]=_0x2e055c,this['_initEntityListener']());}['_initEntityListener'](){const _0x1ab517=_0x19a859;this[_0x1ab517(0x305)](this[_0x1ab517(0x14b)][_0x1ab517(0x2f8)][_0x1ab517(0x28a)](_0x233552=>{const _0x3ee915=_0x1ab517,_0x20f033=this[_0x3ee915(0x2b7)][_0x3ee915(0x277)][_0x3ee915(0x28a)](_0x1220ed=>{const _0x1f2f44=_0x3ee915;if(_0x1220ed==null)return;const {unitId:_0x10512d,redoState:_0x43d159,commandId:_0x1c20fb}=_0x1220ed;if(_0x10512d!==_0x233552[_0x1f2f44(0x1db)])return;const _0x20b7b8={'id':_0x1c20fb,'type':_0x5bf9c6['CommandType'][_0x1f2f44(0x20e)],'params':{'unitId':_0x10512d,'actions':_0x43d159[_0x1f2f44(0x15e)],'textRanges':null}};_0x233552['onLocalMutation'](_0x20b7b8);});if(_0x233552['disposeWithMe'](_0x20f033),_0x233552 instanceof _0x2c72d0[_0x3ee915(0x196)]){const _0x15bddc={'onTransformIME':_0x62b844=>this['_docTransformIMECacheService'][_0x3ee915(0x359)](_0x62b844),'onTransformState':_0x3adde2=>this['_docTransformStateCacheService'][_0x3ee915(0x1b7)](_0x3adde2),'onTransformSelections':_0xf268c1=>this[_0x3ee915(0x3a6)][_0x3ee915(0x1b1)](_0xf268c1),'onSyncEditingCollabCursor':_0x3ee221=>this[_0x3ee915(0x383)][_0x3ee915(0x38d)](_0x3ee221),'onTransformRemoteChangesetByIMECache':_0x3628c1=>this[_0x3ee915(0x1e4)]['transformRemoteChangeset'](_0x3628c1),'onTransformRemoteChangesetByStateCache':_0x16d507=>this[_0x3ee915(0x1d8)][_0x3ee915(0x213)](_0x16d507)};_0x233552[_0x3ee915(0x25a)](_0x15bddc);}}));}};_0x48fe55=_0xe1a31e([_0x5d4b28(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x1a8f2e[_0x19a859(0x367)])),_0x5d4b28(0x1,_0x5bf9c6['Inject'](_0x2c72d0[_0x19a859(0x11c)])),_0x5d4b28(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x28b55a)),_0x5d4b28(0x3,_0x5bf9c6['Inject'](_0x4794ff)),_0x5d4b28(0x4,_0x5bf9c6[_0x19a859(0x116)](_0x4c0a13)),_0x5d4b28(0x5,_0x5bf9c6[_0x19a859(0x116)](_0x299122)),_0x5d4b28(0x6,_0x106fc7[_0x19a859(0x395)]),_0x5d4b28(0x7,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x2d7)]))],_0x48fe55);var _0x4aed49=Object['getOwnPropertyDescriptor'],_0x1641bd=(_0x56a8a5,_0x182133,_0x4397e9,_0x1519ab)=>{const _0x1f0920=_0x19a859;for(var _0x171f54=_0x1519ab>0x1?void 0x0:_0x1519ab?_0x4aed49(_0x182133,_0x4397e9):_0x182133,_0x4085b0=_0x56a8a5[_0x1f0920(0x344)]-0x1,_0xa643be;_0x4085b0>=0x0;_0x4085b0--)(_0xa643be=_0x56a8a5[_0x4085b0])&&(_0x171f54=_0xa643be(_0x171f54)||_0x171f54);return _0x171f54;},_0xde872e=(_0x2bbcf4,_0x1e7253)=>(_0x36f6d7,_0x5a0ef0)=>_0x1e7253(_0x36f6d7,_0x5a0ef0,_0x2bbcf4);let _0x25e0c4=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0xb6e86,_0x4a00c6,_0x4fdb72){const _0x5d12ab=_0x19a859;super(),_0x521fa5(this,_0x5d12ab(0x123),new Map()),_0x521fa5(this,'_saveTaskMap',new Map()),_0x521fa5(this,_0x5d12ab(0x179),!0x1),(this[_0x5d12ab(0x150)]=_0xb6e86,this['_localStorageService']=_0x4a00c6,this[_0x5d12ab(0x303)]=_0x4fdb72);}[_0x19a859(0x1b9)](){const _0x43d3c1=_0x19a859;this[_0x43d3c1(0x179)]=!0x0;}[_0x19a859(0x28f)](){const _0x5e41a9=_0x19a859;this[_0x5e41a9(0x179)]=!0x1;}get['saveTaskMap'](){const _0x247166=_0x19a859;return this[_0x247166(0x2ca)];}['dispose'](){const _0x35b22b=_0x19a859;this[_0x35b22b(0x2d6)]()[_0x35b22b(0x30c)](()=>super['dispose']());}async[_0x19a859(0x378)](_0x11b9bb){const _0x495d1b=_0x19a859;return this[_0x495d1b(0x179)]?null:this[_0x495d1b(0x27e)][_0x495d1b(0x1a0)](_0x2c72d0[_0x495d1b(0x391)](_0x11b9bb));}async[_0x19a859(0x31e)](_0x1ce63f,_0x123cb7){const _0xe1f478=_0x19a859;return!!this[_0xe1f478(0x27e)][_0xe1f478(0x1ae)](_0x1ce63f,_0x123cb7);}[_0x19a859(0x181)](_0x224734,_0x4463c8,_0x32509f,_0x4383fd){const _0x5bbbaf=_0x19a859,_0x1ef40b=this[_0x5bbbaf(0x303)]['getCurrentRevOfUnit'](_0x224734);this[_0x5bbbaf(0x123)][_0x5bbbaf(0x17d)](_0x224734,{'unitID':_0x224734,'type':_0x4463c8,'awaitingChangeset':_0x32509f,'mutations':_0x4383fd,'rev':_0x1ef40b}),this[_0x5bbbaf(0x2ca)]['has'](_0x224734)||this[_0x5bbbaf(0x3a0)](_0x224734);}[_0x19a859(0x3a0)](_0x1e59c2){const _0x18a4d5=_0x19a859,_0x302373=this[_0x18a4d5(0x212)]();_0x302373===0x0?this['_saveCache'](_0x1e59c2):this['_saveTaskMap'][_0x18a4d5(0x17d)](_0x1e59c2,setTimeout(()=>this[_0x18a4d5(0x22c)](_0x1e59c2),_0x302373));}['_getSaveTimeout'](){const _0x1a951a=_0x19a859;var _0x13642a;return(_0x13642a=this[_0x1a951a(0x150)][_0x1a951a(0x329)](_0x2c72d0['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x13642a:_0x2c72d0[_0x1a951a(0x2de)];}['_saveCache'](_0x1d7586){const _0x548649=_0x19a859,_0x1c59e9=this[_0x548649(0x2ca)][_0x548649(0x223)](_0x1d7586);return _0x1c59e9!==void 0x0&&window[_0x548649(0x2fb)](_0x1c59e9),this[_0x548649(0x27e)][_0x548649(0x1ae)](_0x2c72d0['getLocalCacheKey'](_0x1d7586),this[_0x548649(0x123)][_0x548649(0x223)](_0x1d7586))['then'](()=>this[_0x548649(0x2ca)]['delete'](_0x1d7586));}async[_0x19a859(0x2d6)](){const _0x47bca4=_0x19a859,_0x43c951=[];this[_0x47bca4(0x2ca)][_0x47bca4(0x139)]((_0x54c8a8,_0x43e7c5)=>{const _0x4ba8d0=_0x47bca4;window['clearTimeout'](_0x54c8a8),_0x43c951[_0x4ba8d0(0x253)](this['_saveCache'](_0x43e7c5)[_0x4ba8d0(0x30c)](()=>{const _0x173fda=_0x4ba8d0;this[_0x173fda(0x2ca)]['delete'](_0x43e7c5);}));}),await Promise[_0x47bca4(0x1fc)](_0x43c951);}};_0x25e0c4=_0x1641bd([_0xde872e(0x0,_0x5bf9c6[_0x19a859(0x236)]),_0xde872e(0x1,_0x5bf9c6[_0x19a859(0x13a)]),_0xde872e(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x4e6003[_0x19a859(0x30a)]))],_0x25e0c4);class _0x2d34a4 extends _0x5bf9c6[_0x19a859(0x339)]{constructor(){const _0x17c675=_0x19a859;super(),_0x521fa5(this,_0x17c675(0x165)),this[_0x17c675(0x165)]=_0x496cb2[_0x17c675(0x1e3)](window,'popstate')['pipe'](_0x496cb2['takeUntil'](this['dispose$']),_0x496cb2[_0x17c675(0x35f)](0x1),_0x496cb2['mapTo'](void 0x0));}['setParam'](_0x220a78,_0x5d7098,_0x4cdb2a=!0x1){const _0x2dc95f=_0x19a859,_0x4858b3=new URL(window[_0x2dc95f(0x128)][_0x2dc95f(0x242)]);_0x4858b3[_0x2dc95f(0x31d)][_0x2dc95f(0x17d)](_0x220a78,_0x5d7098),_0x4cdb2a?window['history'][_0x2dc95f(0x17e)]('','',_0x4858b3[_0x2dc95f(0x246)]()):window['history'][_0x2dc95f(0x255)]('','',_0x4858b3[_0x2dc95f(0x246)]());}[_0x19a859(0x151)](_0x3ede4a,_0x4b7416=!0x1){const _0x24506d=_0x19a859,_0x10d6c8=new URL(window[_0x24506d(0x128)][_0x24506d(0x242)]);_0x10d6c8[_0x24506d(0x31d)][_0x24506d(0x227)](_0x3ede4a),_0x4b7416?window[_0x24506d(0x292)][_0x24506d(0x17e)]('','',_0x10d6c8[_0x24506d(0x246)]()):window[_0x24506d(0x292)][_0x24506d(0x255)]('','',_0x10d6c8[_0x24506d(0x246)]());}[_0x19a859(0x20a)](_0x5e1abf){const _0x589ef9=_0x19a859;var _0x416e8d;return(_0x416e8d=new URL(window[_0x589ef9(0x128)][_0x589ef9(0x242)])['searchParams'][_0x589ef9(0x223)](_0x5e1abf))!=null?_0x416e8d:void 0x0;}}var _0x38d471=Object[_0x19a859(0x301)],_0x55e279=Object[_0x19a859(0x385)],_0x20489b=(_0x39c423,_0x3e05ea,_0x23b123)=>_0x3e05ea in _0x39c423?_0x38d471(_0x39c423,_0x3e05ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b123}):_0x39c423[_0x3e05ea]=_0x23b123,_0x3b8278=(_0x5be6c6,_0x2e3a03,_0x3aa7c6,_0x3d8fd7)=>{const _0x8bdeba=_0x19a859;for(var _0x2599da=_0x3d8fd7>0x1?void 0x0:_0x3d8fd7?_0x55e279(_0x2e3a03,_0x3aa7c6):_0x2e3a03,_0x1c1591=_0x5be6c6[_0x8bdeba(0x344)]-0x1,_0x4dec44;_0x1c1591>=0x0;_0x1c1591--)(_0x4dec44=_0x5be6c6[_0x1c1591])&&(_0x2599da=_0x4dec44(_0x2599da)||_0x2599da);return _0x2599da;},_0x5bca95=(_0x380308,_0x148c9e)=>(_0x40b562,_0x570dce)=>_0x148c9e(_0x40b562,_0x570dce,_0x380308),_0xd877f6=(_0x51ed10,_0x5ec9f8,_0x20b0de)=>_0x20489b(_0x51ed10,_0x5ec9f8+'',_0x20b0de);const _0x536ec4='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x4c3250[_0x19a859(0x1d5)]=class extends _0x5bf9c6[_0x19a859(0x1c1)]{constructor(_0x42850e=_0x15e6bd,_0x18edff,_0x29fa8c,_0xa5fe81){const _0x4a2ce0=_0x19a859;super(),this[_0x4a2ce0(0x375)]=_0x42850e,this['_renderManagerService']=_0x18edff,this['_injector']=_0x29fa8c,this['_configService']=_0xa5fe81;const {..._0x4f7214}=_0x5bf9c6[_0x4a2ce0(0x1f4)]({},_0x15e6bd,this['_config']);this[_0x4a2ce0(0x150)][_0x4a2ce0(0x291)](_0x598514,_0x4f7214);}[_0x19a859(0x256)](){const _0x278a7c=_0x19a859;this[_0x278a7c(0x11f)](),this[_0x278a7c(0x2cf)]();}[_0x19a859(0x287)](){this['_registerRenderDependencies']();}[_0x19a859(0x11f)](){const _0x2606cf=_0x19a859;var _0x4ac783;const _0x1e19b2=[[_0x30d5cc],[_0x4c0a13],[_0x28b55a],[_0x4794ff],[_0x299122],[_0x1b2902,{'useClass':_0x2d34a4}],[_0x28d1f0[_0x2606cf(0x16c)],{'useClass':_0x28d1f0[_0x2606cf(0x290)]}],[_0x2c72d0['ILocalCacheService'],{'useClass':_0x25e0c4}],[_0x4c3250[_0x2606cf(0x134)]],[_0x48fe55],[_0x461047],[_0x3097e7],[_0x41ef61],[_0x4c3250[_0x2606cf(0x1f1)]]];_0x5bf9c6['registerDependencies'](this[_0x2606cf(0x380)],_0x5bf9c6[_0x2606cf(0x184)](_0x1e19b2,(_0x4ac783=this['_config'])==null?void 0x0:_0x4ac783[_0x2606cf(0x397)]));}['_registerRenderDependencies'](){const _0x2c5416=_0x19a859;this[_0x2c5416(0x305)](this[_0x2c5416(0x388)]['registerRenderModule'](_0x5bf9c6[_0x2c5416(0x2cb)][_0x2c5416(0x25f)],[_0x488d8f])),this[_0x2c5416(0x305)](this[_0x2c5416(0x388)][_0x2c5416(0x2cd)](_0x5bf9c6[_0x2c5416(0x2cb)]['UNIVER_SHEET'],[_0x9b9b90]));}[_0x19a859(0x2cf)](){const _0x58ec57=_0x19a859;_0x5bf9c6['touchDependencies'](this[_0x58ec57(0x380)],[[_0x3097e7],[_0x4c3250[_0x58ec57(0x134)]],[_0x48fe55],[_0x461047],[_0x4c3250[_0x58ec57(0x1f1)]]]);}},_0xd877f6(_0x4c3250[_0x19a859(0x1d5)],_0x19a859(0x1c0),_0x536ec4),_0x4c3250[_0x19a859(0x1d5)]=_0x3b8278([_0x5bf9c6[_0x19a859(0x14e)](_0x2c72d0[_0x19a859(0x1f5)]),_0x5bca95(0x1,_0x5d1039[_0x19a859(0x2b9)]),_0x5bca95(0x2,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x5bca95(0x3,_0x5bf9c6[_0x19a859(0x236)])],_0x4c3250[_0x19a859(0x1d5)]);var _0x10dc38=Object[_0x19a859(0x385)],_0x5d1f84=(_0x15b804,_0x276d95,_0x17debd,_0x1e255d)=>{for(var _0x406a47=_0x1e255d>0x1?void 0x0:_0x1e255d?_0x10dc38(_0x276d95,_0x17debd):_0x276d95,_0x437907=_0x15b804['length']-0x1,_0x404c9c;_0x437907>=0x0;_0x437907--)(_0x404c9c=_0x15b804[_0x437907])&&(_0x406a47=_0x404c9c(_0x406a47)||_0x406a47);return _0x406a47;},_0x3f7ca0=(_0x472ae2,_0x2b0d19)=>(_0x46310d,_0x43a3e0)=>_0x2b0d19(_0x46310d,_0x43a3e0,_0x472ae2);_0x4c3250[_0x19a859(0x18f)]=class extends _0x2c72d0[_0x19a859(0x337)]{constructor(_0xa06f35,_0x40346b,_0x1a99fe,_0x306d89,_0x55739c){super(_0xa06f35,_0x40346b,_0x1a99fe,_0x306d89,_0x55739c);}async[_0x19a859(0x30f)](_0x2c70f9){const _0x441338=_0x19a859,_0x5b6b0b=await this[_0x441338(0x2ea)](),_0x4560cf=this[_0x441338(0x38a)](_0x2c70f9,_0x5b6b0b);return this[_0x441338(0x2cc)](_0x4560cf);}['_createSocketURL'](_0x17c4a9,_0x430708){const _0x1b7fe9=_0x19a859,_0x328e32=typeof window>'u'?new URL(_0x17c4a9):new URL(_0x17c4a9,window['location'][_0x1b7fe9(0x276)]);_0x328e32[_0x1b7fe9(0x31d)][_0x1b7fe9(0x17d)](_0x1b7fe9(0x170),_0x430708);const _0x1c6d7d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1b7fe9(0x128)][_0x1b7fe9(0x2c3)]);return _0x1c6d7d['get'](_0x1b7fe9(0x20c))&&_0x328e32['searchParams'][_0x1b7fe9(0x17d)](_0x1b7fe9(0x20c),_0x1c6d7d[_0x1b7fe9(0x223)]('runId')),_0x328e32[_0x1b7fe9(0x246)]();}async[_0x19a859(0x2ea)](){const _0x56fcc5=_0x19a859;var _0x2ec385,_0x35f6ca,_0x261588;const _0x2e0401=this['_configService'][_0x56fcc5(0x329)](_0x2c72d0[_0x56fcc5(0x310)]),_0x3fc08c=(_0x2ec385=_0x2e0401==null?void 0x0:_0x2e0401[_0x56fcc5(0x35d)])!=null?_0x2ec385:_0x2c72d0[_0x56fcc5(0x240)];return(_0x261588=(_0x35f6ca=(await this[_0x56fcc5(0x283)][_0x56fcc5(0x223)](_0x3fc08c,{'headers':{'Content-Type':_0x56fcc5(0x2e5)}}))[_0x56fcc5(0x369)])==null?void 0x0:_0x35f6ca[_0x56fcc5(0x160)])!=null?_0x261588:'';}},_0x4c3250[_0x19a859(0x18f)]=_0x5d1f84([_0x3f7ca0(0x0,_0x5bf9c6[_0x19a859(0x116)](_0x5bf9c6[_0x19a859(0x35e)])),_0x3f7ca0(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x28d1f0[_0x19a859(0x2a8)])),_0x3f7ca0(0x2,_0x5bf9c6[_0x19a859(0x236)]),_0x3f7ca0(0x3,_0x5bf9c6[_0x19a859(0x1bb)]),_0x3f7ca0(0x4,_0x4e6003[_0x19a859(0x126)])],_0x4c3250[_0x19a859(0x18f)]);const _0x1a01ef=0x7530,_0x3b6a89=_0x19a859(0x132);class _0x34154d extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(){const _0x570c32=_0x19a859;super(),_0x521fa5(this,'_id',_0x5bf9c6[_0x570c32(0x1e0)]()),_0x521fa5(this,'_selfUnitIDs',new Set()),_0x521fa5(this,_0x570c32(0x286),new Map()),_0x521fa5(this,'_heartbeatTimer',null),_0x521fa5(this,'_clearOtherTimers',new Map()),_0x521fa5(this,_0x570c32(0x370),new Map()),this[_0x570c32(0x187)]();}[_0x19a859(0x27b)](){const _0x1a5805=_0x19a859;super[_0x1a5805(0x27b)](),this['_clearOtherTimers'][_0x1a5805(0x139)]((_0x54987c,_0x353955)=>this[_0x1a5805(0x39f)](_0x353955)),this[_0x1a5805(0x1be)]&&window[_0x1a5805(0x39c)](this['_heartbeatTimer']);}[_0x19a859(0x1ad)](_0x212c04){const _0x47f20f=_0x19a859;return this['_ensureSubject'](_0x212c04)[_0x47f20f(0x38f)](_0x496cb2[_0x47f20f(0x27d)]());}['editingUnit'](_0xd29f59){const _0x4339e2=_0x19a859;this[_0x4339e2(0x331)][_0x4339e2(0x390)]===0x0&&this[_0x4339e2(0x1ac)](),this[_0x4339e2(0x331)]['add'](_0xd29f59),this['_send']({'type':0x0,'memberID':this[_0x4339e2(0x3a1)],'unitIDs':[_0xd29f59],'isForwarded':!0x1});}[_0x19a859(0x36b)](_0x2302c9){const _0x4db6f8=_0x19a859;this['_selfUnitIDs'][_0x4db6f8(0x227)](_0x2302c9),this['_selfUnitIDs'][_0x4db6f8(0x390)]===0x0&&this[_0x4db6f8(0x1be)]&&window[_0x4db6f8(0x39c)](this[_0x4db6f8(0x1be)]);}[_0x19a859(0x187)](){const _0x19a3e3=_0x19a859;this[_0x19a3e3(0x305)](_0x5bf9c6['toDisposable'](_0x496cb2[_0x19a3e3(0x1e3)](window,_0x19a3e3(0x245))[_0x19a3e3(0x28a)](_0x51c660=>{const _0x1453a8=_0x19a3e3;if(_0x51c660[_0x1453a8(0x153)]!==_0x3b6a89||!_0x51c660[_0x1453a8(0x31a)])return;const _0x51221a=JSON[_0x1453a8(0x2ad)](_0x51c660[_0x1453a8(0x31a)]);this[_0x1453a8(0x221)](_0x51221a);}))),window[_0x19a3e3(0x36c)](_0x19a3e3(0x1c5),()=>this[_0x19a3e3(0x235)]({'type':0x1,'memberID':this[_0x19a3e3(0x3a1)],'unitIDs':Array['from'](this[_0x19a3e3(0x331)])}));}[_0x19a859(0x221)](_0x2c49e1){const _0x33822e=_0x19a859;switch(_0x2c49e1[_0x33822e(0x2a0)]){case 0x0:this[_0x33822e(0x17a)](_0x2c49e1);break;case 0x1:this[_0x33822e(0x325)](_0x2c49e1);break;case 0x2:this[_0x33822e(0x300)](_0x2c49e1);break;}}[_0x19a859(0x17a)](_0x40ce47){const _0x332ff4=_0x19a859,{unitIDs:_0x9f2945,memberID:_0x762de4,isForwarded:_0x16a1f1}=_0x40ce47;_0x9f2945[_0x332ff4(0x139)](_0x616234=>{const _0x1626f3=_0x332ff4;if(!_0x16a1f1&&this['_unitOnClients']['has'](_0x616234)&&this[_0x1626f3(0x268)](_0x616234)['next'](_0x2c72d0[_0x1626f3(0x14f)][_0x1626f3(0x320)]),!this[_0x1626f3(0x286)][_0x1626f3(0x2b8)](_0x616234)||!this[_0x1626f3(0x286)][_0x1626f3(0x223)](_0x616234)[_0x1626f3(0x2b8)](_0x762de4)){const _0x356ca5=this[_0x1626f3(0x286)][_0x1626f3(0x223)](_0x616234)||new Set();_0x356ca5['add'](_0x762de4),this['_unitOnClients'][_0x1626f3(0x17d)](_0x616234,_0x356ca5),this[_0x1626f3(0x387)](_0x762de4);}}),_0x16a1f1||this[_0x332ff4(0x235)]({'type':0x0,'memberID':this[_0x332ff4(0x3a1)],'unitIDs':[...this[_0x332ff4(0x331)]],'isForwarded':!0x0});}[_0x19a859(0x387)](_0x4d884c){const _0x4c33c=_0x19a859;this['_removeClearOtherTimer'](_0x4d884c);const _0x26ed1f=window[_0x4c33c(0x374)](()=>{const _0x153fc4=_0x4c33c;this[_0x153fc4(0x286)][_0x153fc4(0x139)](_0x353b8f=>{const _0x47e9c1=_0x153fc4;_0x353b8f[_0x47e9c1(0x227)](_0x4d884c);});},_0x1a01ef*0x2);this[_0x4c33c(0x24f)][_0x4c33c(0x17d)](_0x4d884c,_0x26ed1f);}['_removeClearOtherTimer'](_0xac5cfe){const _0x570fc1=_0x19a859;if(this[_0x570fc1(0x24f)][_0x570fc1(0x2b8)](_0xac5cfe)){const _0x5c120c=this[_0x570fc1(0x24f)][_0x570fc1(0x223)](_0xac5cfe);_0x5c120c&&window[_0x570fc1(0x2fb)](_0x5c120c),this[_0x570fc1(0x24f)][_0x570fc1(0x17d)](_0xac5cfe,null);}}[_0x19a859(0x325)](_0x126b5c){const _0x251dba=_0x19a859,{memberID:_0x7c419d,unitIDs:_0x251b83}=_0x126b5c;_0x251b83[_0x251dba(0x139)](_0x197357=>{const _0x41a874=_0x251dba;var _0x3ed355;const _0x537d93=this['_unitOnClients'][_0x41a874(0x223)](_0x197357);_0x537d93&&(_0x537d93[_0x41a874(0x227)](_0x7c419d),(_0x3ed355=this[_0x41a874(0x268)](_0x197357))==null||_0x3ed355['next'](_0x537d93[_0x41a874(0x390)]===0x0?_0x2c72d0[_0x41a874(0x14f)]['NO_OTHER_CLIENTS_EDITING']:_0x2c72d0[_0x41a874(0x14f)][_0x41a874(0x320)]));}),this[_0x251dba(0x39f)](_0x7c419d);}[_0x19a859(0x300)](_0xfdde90){const _0x16d9d4=_0x19a859;this[_0x16d9d4(0x387)](_0xfdde90[_0x16d9d4(0x21a)]);}[_0x19a859(0x235)](_0x3ea8da){const _0x317b27=_0x19a859;localStorage[_0x317b27(0x1ae)](_0x3b6a89,JSON['stringify'](_0x3ea8da));}[_0x19a859(0x1ac)](){const _0x58e42b=_0x19a859;this[_0x58e42b(0x1be)]=window['setInterval'](()=>{const _0x4b0b58=_0x58e42b;this[_0x4b0b58(0x235)]({'type':0x2,'memberID':this[_0x4b0b58(0x3a1)]});},_0x1a01ef);}[_0x19a859(0x268)](_0x5244ff){const _0x4c18b4=_0x19a859;return this[_0x4c18b4(0x370)]['has'](_0x5244ff)||this[_0x4c18b4(0x370)][_0x4c18b4(0x17d)](_0x5244ff,new _0x496cb2[(_0x4c18b4(0x3a5))](_0x2c72d0['UnitStatus'][_0x4c18b4(0x371)])),this[_0x4c18b4(0x370)][_0x4c18b4(0x223)](_0x5244ff);}}var _0x16942c=(_0x11e3a7=>(_0x11e3a7[_0x11e3a7['UNDEFINED']=0x0]=_0x19a859(0x16e),_0x11e3a7[_0x11e3a7['OK']=0x1]='OK',_0x11e3a7[_0x11e3a7[_0x19a859(0x25d)]=0x2]='INTERNAL_ERROR',_0x11e3a7[_0x11e3a7[_0x19a859(0x22b)]=0x3]=_0x19a859(0x22b),_0x11e3a7[_0x11e3a7[_0x19a859(0x352)]=0x4]='NOT_FOUND',_0x11e3a7[_0x11e3a7['UNAUTHENTICATED']=0x5]=_0x19a859(0x281),_0x11e3a7[_0x11e3a7['ALREADY_EXISTS']=0x6]=_0x19a859(0x135),_0x11e3a7[_0x11e3a7['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x11e3a7[_0x11e3a7[_0x19a859(0x2a6)]=0x8]='TOO_MANY_REQUESTS',_0x11e3a7[_0x11e3a7[_0x19a859(0x1c3)]=0x9]='COMPLETION_FINISHED',_0x11e3a7[_0x11e3a7[_0x19a859(0x364)]=0xa]='LOGIN_FAILED',_0x11e3a7[_0x11e3a7[_0x19a859(0x10e)]=0x1389]=_0x19a859(0x10e),_0x11e3a7[_0x11e3a7[_0x19a859(0x356)]=0x1771]=_0x19a859(0x356),_0x11e3a7[_0x11e3a7[_0x19a859(0x159)]=0x1772]=_0x19a859(0x159),_0x11e3a7[_0x11e3a7['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x19a859(0x190),_0x11e3a7[_0x11e3a7[_0x19a859(0x1c8)]=0x1b59]=_0x19a859(0x1c8),_0x11e3a7[_0x11e3a7[_0x19a859(0x2b1)]=0x1b5a]=_0x19a859(0x2b1),_0x11e3a7[_0x11e3a7[_0x19a859(0x295)]=0x1b5b]=_0x19a859(0x295),_0x11e3a7[_0x11e3a7[_0x19a859(0x2c9)]=0x1b5c]=_0x19a859(0x2c9),_0x11e3a7[_0x11e3a7[_0x19a859(0x2a3)]=0x1b5d]=_0x19a859(0x2a3),_0x11e3a7[_0x11e3a7[_0x19a859(0x262)]=0x1f41]=_0x19a859(0x262),_0x11e3a7[_0x11e3a7[_0x19a859(0x2fd)]=0x2329]=_0x19a859(0x2fd),_0x11e3a7[_0x11e3a7['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x19a859(0x13d),_0x11e3a7[_0x11e3a7['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x11e3a7[_0x11e3a7['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x19a859(0x1c2),_0x11e3a7[_0x11e3a7[_0x19a859(0x282)]=0x232d]=_0x19a859(0x282),_0x11e3a7[_0x11e3a7[_0x19a859(0x252)]=0x2711]=_0x19a859(0x252),_0x11e3a7[_0x11e3a7[_0x19a859(0x284)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x11e3a7[_0x11e3a7['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x19a859(0x2e1),_0x11e3a7[_0x11e3a7[_0x19a859(0x173)]=0x2714]=_0x19a859(0x173),_0x11e3a7[_0x11e3a7[_0x19a859(0x215)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x11e3a7[_0x11e3a7[_0x19a859(0x32d)]=0x271b]=_0x19a859(0x32d),_0x11e3a7[_0x11e3a7[_0x19a859(0x332)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x11e3a7[_0x11e3a7['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x11e3a7[_0x11e3a7['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x11e3a7[_0x11e3a7[_0x19a859(0x209)]=0x2ee3]=_0x19a859(0x209),_0x11e3a7[_0x11e3a7[_0x19a859(0x142)]=0x2ee4]=_0x19a859(0x142),_0x11e3a7[_0x11e3a7[_0x19a859(0x1a6)]=0x2ee5]=_0x19a859(0x1a6),_0x11e3a7[_0x11e3a7[_0x19a859(0x34d)]=0x32c9]=_0x19a859(0x34d),_0x11e3a7[_0x11e3a7[_0x19a859(0x17b)]=0x32ca]=_0x19a859(0x17b),_0x11e3a7[_0x11e3a7[_0x19a859(0x1b0)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x11e3a7[_0x11e3a7[_0x19a859(0x2dc)]=-0x1]=_0x19a859(0x2dc),_0x11e3a7))(_0x16942c||{}),_0x49044d=Object[_0x19a859(0x385)],_0x23af9d=(_0x2e231f,_0x38c2fd,_0x48590f,_0x24380d)=>{const _0x18bc74=_0x19a859;for(var _0x204e82=_0x24380d>0x1?void 0x0:_0x24380d?_0x49044d(_0x38c2fd,_0x48590f):_0x38c2fd,_0x290771=_0x2e231f[_0x18bc74(0x344)]-0x1,_0x1ecaec;_0x290771>=0x0;_0x290771--)(_0x1ecaec=_0x2e231f[_0x290771])&&(_0x204e82=_0x1ecaec(_0x204e82)||_0x204e82);return _0x204e82;},_0x2ac5b0=(_0x44cc1d,_0x139546)=>(_0x586b09,_0xa2fb5d)=>_0x139546(_0x586b09,_0xa2fb5d,_0x44cc1d);_0x4c3250[_0x19a859(0x131)]=class extends _0x5bf9c6[_0x19a859(0x2b3)]{constructor(_0x290b01,_0x1f9fcb,_0x484865){const _0x4f654f=_0x19a859;super(),this[_0x4f654f(0x1c9)]=_0x290b01,this[_0x4f654f(0x283)]=_0x1f9fcb,this[_0x4f654f(0x150)]=_0x484865;}async['runOnServer'](_0x541fbf,_0x512535,_0x5f0a0e,..._0x1d99d8){const _0x5a4956=_0x19a859;var _0x328fa6,_0xb20131,_0x2c5775,_0x26ba26;const _0x49bc2c=this[_0x5a4956(0x1c9)][_0x5a4956(0x280)]();if(!_0x49bc2c)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5d43c1=((_0x328fa6=this[_0x5a4956(0x150)]['getConfig'](_0x2c72d0[_0x5a4956(0x1cc)]))!=null?_0x328fa6:_0x2c72d0['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x541fbf+_0x5a4956(0x2d8)+_0x512535,_0x22d31f=new URL(window[_0x5a4956(0x128)]['href']),_0x1ed427={'scriptId':_0x541fbf,'runId':(_0xb20131=_0x22d31f['searchParams']['get'](_0x5a4956(0x20c)))!=null?_0xb20131:'','function':_0x512535,'unitId':_0x49bc2c[_0x5a4956(0x1b2)](),'argsOfFunction':JSON[_0x5a4956(0x21b)](_0x1d99d8),'invokeId':(_0x2c5775=_0x5f0a0e['invokeId'])!=null?_0x2c5775:'','executionId':(_0x26ba26=_0x5f0a0e['executionId'])!=null?_0x26ba26:''};try{const _0x216956=await this[_0x5a4956(0x283)][_0x5a4956(0x3a7)](_0x5d43c1,{'body':_0x1ed427});return _0x216956[_0x5a4956(0x369)][_0x5a4956(0x29c)]&&_0x216956[_0x5a4956(0x369)][_0x5a4956(0x29c)][_0x5a4956(0x1a4)]!==_0x16942c['OK']?'Failed':_0x216956[_0x5a4956(0x369)][_0x5a4956(0x203)];}catch{return'Failed';}}},_0x4c3250[_0x19a859(0x131)]=_0x23af9d([_0x2ac5b0(0x0,_0x5bf9c6[_0x19a859(0x2f7)]),_0x2ac5b0(0x1,_0x5bf9c6[_0x19a859(0x116)](_0x28d1f0[_0x19a859(0x2a8)])),_0x2ac5b0(0x2,_0x5bf9c6[_0x19a859(0x236)])],_0x4c3250[_0x19a859(0x131)]),_0x4c3250['CollaborationStatusDisplay']=_0x4957f6,_0x4c3250[_0x19a859(0x1bc)]=_0x1b2902,_0x4c3250['SheetCollabCursorShape']=_0x30557c,_0x4c3250[_0x19a859(0x31c)]=_0x34154d,_0x4c3250['WebURLService']=_0x2d34a4,Object[_0x19a859(0x301)](_0x4c3250,Symbol[_0x19a859(0x1ee)],{'value':'Module'});}));