@univerjs-pro/collaboration-client-ui 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +17 -17
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x167c(){const _0x223fe2=['collaboration-client-ui.collabStatus.conflict','InsertRowCommandId','defineProperty','_showText','_startCalculationLimit','endColumn','code','@univerjs/engine-render','_getScale','_imageIoService','handleDeleteRangeMoveUp','SetWorksheetActivateCommand','_initWindowErrorListener','sessionTicket','_startDocCollabCursor','_configService','clearInterval','Failed','params','status','_colorIndex','href','subscribe','attrs','M0\x200H16V16H0z','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','WebSocketService','_transformService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','selections','_clearPolling','split','getLocalCacheKey','url(#$1','div','Tools','collaboration-client-ui.collabStatus.offline','React','getStateCache','serializeRangeWithSheet','_getSaveTimeout','TEXT','_showGuardMessage','_collabSessionService','_getFormulaLimitStatus','_instanceService','isFormulaId','_cursorInfo$','set','_handleLeaveEvent','_anchorDot','size','onPointerMove$','_setFormulaLimitStatus','_drawAnchor','i18nKey','_scheduleSaving','UniverProCollaboration','disableLocalCache','some','_assignedColors','_pollingInterval','_handleEvent','with','UniverCore','then','@univerjs/docs-ui','4PxWpch','univer-border-none\x20univer-bg-transparent','SheetSkeletonManagerService','_id','get','Enter','MUTATION','operators','SetTextSelectionsOperation','COLORS','_doCreateSocket','_injector','DependentOn','_offsetY','ILogService','generateRandomId','includes','setParam','univer-appearance-none','error','UPDATE_CURSOR','_memberService','_createSocketURL','push','sheetID','width','tag','VIEW_MAIN','setShapeProps','_setupSubUnitSync','_updateLocalCursor','DocStateChangeManagerService','distinctUntilChanged','all','pulse','_saveCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','clickable','collaboration-client-ui.formula.calculation.unable','fillRule','symbol','useDependency','unshift','START_CALCULATION','executeCommand','_localCacheService','CollaborationSocketService','ISnapshotServerService','ISocketService','MemberService','LocaleService','lineno','unload','stringify','_checkAndWaitForCalculationPermission','_taskIds','univer-inline-flex\x20univer-items-center\x20univer-justify-center','onPointerLeave$','SetFormulaCalculationStartMutation','span','[LogService\x20Error]:\x20','RegularPolygon','debounce','path','\x20-\x20','ticket','getSheetId','NOT_COLLAB','takeUntil','ONLINE','[Window\x20Error]:\x20','loadOfflineData','tooltipKey','forEach','Optional','_toggleOnline','prototype','OFFLINE','m1Prime','wsSessionTicketUrl','univer-m-0\x20univer-p-0','rgba(','_saveTaskMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getMemberID','function','_updateCollabCursors','findNodePositionByCharIndex','AWAITING','IMessageService','colorClass','_checkCalculationAvailable','pluginName','functionsExecutedState','docStateChange$','UNIVER_SHEET','_ensureSubject','unsubscribe','getFormulaLimitStatusUrl','_labelPosition','/universer-api/license/formula/limit/start','DocIMEInputManagerService','exports','@univerjs/docs','Error','join','_collaborationController','mutations','@univerjs/protocol','merge','Shape','getAllUnitsForType','#0B9EFB','NO_OTHER_CLIENTS_EDITING','_releaseCalculationLimit','icon','transformMutationsWithChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unhandledrejection','transformMutation','_textBubble','InsertColCommandId','registerDependencies','6044936KmHUQH','disposeWithMe','_initStatusListener','labelPosition','runId','_render','_cursor','collaboration-client-ui.session.will-retry','@univerjs/ui','ILocalStorageService','_cursorShapes','_shapes','_updateURLWithCurrentState','http://www.w3.org/2000/svg','SheetsSelectionsService','closePath','whenReady','startColumn','map','_docTransformIMECacheService','IUniverInstanceService','_beforeCloseService','idSuffix','getCollabCursors$','getActiveSheet','trim','_handleHeartbeatEvent','key','useMemo','saveOfflineData','removeParam','substring','LOCAL_CACHE_INTERVAL_KEY','_init','_send','SetFormulaCalculationNotificationMutation','_hideTimer','onCommandExecuted','editingUnit','fromEvent','setUndoRedoMutationParamsCache','UniverCollaborationClientUIPlugin','sheetId','jiqing.500','colno','spin','fillText','mergeOverrideWithDependencies','_messageService','_eventUnsubscribe','text','origin','univerjs-icon\x20univerjs-icon-','getRelativeToViewportCoord','RichTextEditingMutation','send','Plugin','_docTransformSelectionsService','blue.400','button','CollaborationStatus','next','_httpService','getMergeData','row','registerRefRange','collaboration-client-ui.collabClient.tooltip.reconnect','setOffsetY','FETCH_MISS','offsetY','SUCCESS','body','_drawTextRange','search','searchParams','_getMergeRange','rgba','@univerjs/rpc','CONFLICT','univer-text-red-500','?taskId=','_logService','9RfnPus','assignAColorForMemberID','isArray','DesktopCollaborationStatusDisplayController','_getSheetObject','runOnServer','show','addClipboardHook','getColor','ITransformService','1597475HOqSRl','_highlight','_initEvent','moveTo','JOIN_ROOM_FAILED','hovered','collaboration-client-ui.permission.content','undoState','newValue','off-line-icon_clip0_910_343','collaboration-client-ui.session.collaboration-timeout','getVpScrollXYInfoByPosToVp','_selfUnitIDs','svg','createIdentifier','NodePositionConvertToRectRange','MessageType','type','Success','limitInfo','find','max','getTypeOfUnitAdded$','toDisposable','SessionStatus','HTTPService','getUnhiddenWorksheets','_sheetSkeletonManagerService','_heartbeatTimer','_uiPartsService','InsertRangeMoveDownCommandId','black','getSkeleton','createElement','restore','CanceledError','SetSelectionsOperation','startsWith','random','override','isTransformMutationsWithChangesetSuccess','actions','save','stageInfo','iterator','@univerjs-pro/collaboration-client-ui','_collabCursorController','current','Unknown\x20user','stage','CollaborationEvent','entries','reconnect','/universer-api/license/formula/limit/status','translate(.97)','event$','getCurrentSelections','_draw','_entities','Subject','[Unhandled\x20Rejection]:\x20','_urlService','_stopBlinking','transformIMECache','memberID','Vector2','delete','6IHgnCR','_startSheetCollabCursor','handleIRemoveRow','application/json','source','_refreshCollabCursors','color','length','entityInit$','asObservable','doc.mutation.rich-text-editing','uni.network.url-service','purple.300','getCellPositionByOffset','reason','DisposableCollection','IURLService','_setupBeforeClosingHandler','dispose$','rgba(255,\x20255,\x20255,\x200.01)','_localeService','UniverIcon','SHEET_VIEWPORT_KEY','OffLineIcon','handleInsertRangeMoveDown','_online','OnLineIcon','_cursors','_initStatusComponent','TEXT_RANGE_LAYER_INDEX','currentTheme$','flatMap','UniverCollaborationClientPlugin','registerBeforeClose','isTransformMutationFailure','displayName','unitId','indicator','yellow.400','SOCKET_FAILED','preventDefault','collaboration-client-ui.collabStatus.syncing','_color','exhaustSavingTask','storage','on-line-icon_clip0_910_349','_revisionService','parseInt','location','loadUnit','_transformHistoryAndStateStack','IImageIoService','UniverDesign','_docTransformStateCacheService','_blinkIntervalTimer','imageSourceType','CLOSE_ROOM','DOC_RANGE_TYPE','onPointerEnter$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','Inject','beginPath','startFormulaLimitUrl','message','activeSheet$','ThemeService','lineTo','_roomMembers$','_scheduleHeartbeat','slice','@univerjs/engine-formula','univer-text-gray-400','_name','UniverDrawing','CollaborationController','filename','handleInsertRangeMoveRight','rgb','addObjects','Workbook','_lastResponseTimestamp','_initResize','string','transform','univer-text-green-500','onStarting','use','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','SOCKET_FAILED_RETRY','startRow','resize','_registerRenderDependencies','_anchor','switchMap','setTimeout','_config','FromArray','DocCollaborationEntity','on-line-icon','DEFAULT_WS_SESSION_TICKET_URL','_initUnhandledRejectionListener','_docSyncEditingCollabCursorService','registerRenderModule','_hover','useCallback','getTypeOfUnitDisposed$','UniverRpc','_onCursorDelete','EffectRefRangId','history','connectInjector','Injector','static','replaceState','LOCAL_CACHE_INTERVAL','collaboration-client-ui.collabStatus.fetchMiss','call','ICommandService','combineLatest','showText','@univerjs/sheets-ui','_monkeyPatchLogService','ILocalCacheService','values','228170BpUUwE','@univerjs/drawing','clipPath','triggerDblclick','disposeUnit','@univerjs-pro/collaboration-client','INotificationService','forwardRef','redoState','getOffsetConfig','mask','urlChange$','UniverEngineRender','saveImage','strokeWidth','IDocClipboardService','WebURLService','useRef','bind','complete','amd','_hasFormulaInDirtyRanges','now','defs','polite','getUnitId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','CollaborationSessionService','onRendered','getParam','IConfigService','663468AQWeUx','highlightSecond','_session','enableFrontendLog','collabCursorState$','pushState','handleInsertCol','0\x200\x2017\x2016','arc','font','replaceDocRanges','subUnitId','bottom','defIds','currentColor','getUndoRedoMutationParamsCache','cursorInfo','deepClone','_currentUsage','backgroundColor','_pointerMoveDisposable','_initCommandInterceptor','_disabled','react','rxjs','react/jsx-runtime','_renderManagerService','isActive','CollaborationUIEventService','colorChannel1','init','debug','roomMembers','_isBlinkVisible','getItem','popstate','roomMembers$','Rect','transformSelections','collaboration-client-ui.collaboration.single-unit.warning','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','BehaviorSubject','...','UniverProCollaborationClientUi','_handleJoinEvent','23507440bvGlRa','_cachedData','_collabCursorState$','deserializeRangeWithSheet','setStateCache','_initCommandExecutedListener','eventID','_syncEditingCollabCursorService','_notificationService','_onCursorUpdate','textRanges','_drawRectRange','_removeCollabCursors','pipe','transformRemoteChangeset','getConfig','getActiveRange','selection','_handleHover','getColorFromTheme','FormulaExecuteStageType','addEventListener','fillStyle','UnitStatus','_themeService','height','url(#off-line-icon_clip0_910_343)','add','_univerInstanceService','unitID','registerComponent','default','_scene','white','getCoordByCell','post','invokeId','name','subunit','clsx','subscribeEvent','endRow','debounceTime','true','1499178evZyWU','_localStorageService','getMember','/universer-api/frontend/logs','_maxFormulaLimit','from','4274330EPcyqQ','off-line-icon','setInterval','/universer-api/license/formula/limit/done','ColorKit','_initEntityListener','Warning','_transformUndoRedoStack','getFocusedUnit','_blinkTimer','drawWith','replace','Loading','top','touchDependencies','loading-multi-icon','children','xlink:href','DeleteRangeMoveUpCommandId','collaboration-client-ui.permission.title','Disposable','_unitStatus','useObservable','jsx','SheetCollabCursorShape','data','collaboration-client-ui.collabStatus.synced','BuiltInUIPart','univer-flex\x20univer-items-center\x20univer-justify-center','addHandlerCallback','measureText','_getLighterColor','_toggleOffline','RefRangeService','_clearOtherTimers','@univerjs/sheets','setItem','_refRangeService','fill','highlight','LoadingMultiIcon','_applyCommand','syncEditingCollabCursor','_backgroundColor','Tooltip','getRangePointData','@univerjs-pro/collaboration','ranges','_hovered','SUBMIT_CHANGESET_TIMEOUT','getDocRanges','getOwnPropertyDescriptor','getValue','none','_context','saveTaskMap','_uploadLog','WebBrowserSingleActiveUnitService','shift','PERMISSION_DENIED','filter','univer-text-orange-500','ErrorCode','UniverDocsUi','isFormulaString','collaboration-client-ui.session.connection-failed','handleMoveRange','_highlightSecond','1em','setConfig','USERS_LEAVE','evenodd','RxDisposable','transformStateCache','_collaborationSessionService','onTransformChange$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','IRenderManagerService','_docStateChangeManagerService','decorate','getCurrentUnitOfType','OTHER_CLIENTS_EDITING','has','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','cursorInfo$','toString','_document','\x20at\x20','hide','/run/','object','toPrimitive','0.2)','_getSessionTicket',',\x200.2)','[CollaborationDataLoaderController]','makeDirty','DocSkeletonManagerService','isInternalEditorID','requireSession','28FMUDpA','min','parse','_docClipboardService','_memberID','getAncestorScale','PENDING','RECT','_colorAssignService','getUniverSheetInstance','_entityInit$','getCurrentTypeOfUnit$','UniverSheetsUi','_status$','UniverInstanceType','CollaborationUIEventId','getRenderById','addObject','totalFormulasToCalculate','_updateSubUnitFromURLParams','UNIVER_DOC','dispose','_collaborationUIEventService','round','clearTimeout','getSheetBySheetId','Module','_commandService','_scheduleClearOtherTimer','DocSelectionManagerService','UniverProCollaborationClient','_startBlinking','onMouseMove','_unitOnClients','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setAlpha','_removeClearOtherTimer','_transformPreviousActiveRange','assign','univer-text-blue-500','_range','unit','0.25.1','m2Prime','beforeCommandExecuted','runRefRangeMutations'];_0x167c=function(){return _0x223fe2;};return _0x167c();}function _0x405a(_0x32d589,_0x3c4225){_0x32d589=_0x32d589-0x13e;const _0x167ceb=_0x167c();let _0x405a6e=_0x167ceb[_0x32d589];return _0x405a6e;}(function(_0x2ba2b0,_0x25a278){const _0x5d2637=_0x405a,_0x213447=_0x2ba2b0();while(!![]){try{const _0x24e2c3=parseInt(_0x5d2637(0x2a7))/0x1*(-parseInt(_0x5d2637(0x22a))/0x2)+parseInt(_0x5d2637(0x2c6))/0x3*(-parseInt(_0x5d2637(0x3fa))/0x4)+-parseInt(_0x5d2637(0x1e7))/0x5+-parseInt(_0x5d2637(0x31f))/0x6*(-parseInt(_0x5d2637(0x389))/0x7)+-parseInt(_0x5d2637(0x18b))/0x8+parseInt(_0x5d2637(0x1dd))/0x9*(-parseInt(_0x5d2637(0x325))/0xa)+parseInt(_0x5d2637(0x2f3))/0xb;if(_0x24e2c3===_0x25a278)break;else _0x213447['push'](_0x213447['shift']());}catch(_0x2b64b3){_0x213447['push'](_0x213447['shift']());}}}(_0x167c,0xb1cd9),function(_0x21a902,_0x5e4408){const _0x3af0ae=_0x405a;typeof exports==_0x3af0ae(0x37f)&&typeof module<'u'?_0x5e4408(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define==_0x3af0ae(0x165)&&define[_0x3af0ae(0x2bb)]?define([_0x3af0ae(0x176),_0x3af0ae(0x2ac),'@univerjs/core',_0x3af0ae(0x193),_0x3af0ae(0x2de),'rxjs/operators','@univerjs/design',_0x3af0ae(0x2dd),_0x3af0ae(0x2df),_0x3af0ae(0x1d8),_0x3af0ae(0x348),_0x3af0ae(0x3be),'@univerjs/network',_0x3af0ae(0x3f9),_0x3af0ae(0x2a8),_0x3af0ae(0x353),_0x3af0ae(0x177),_0x3af0ae(0x271),_0x3af0ae(0x2a3),_0x3af0ae(0x17c)],_0x5e4408):(_0x21a902=typeof globalThis<'u'?globalThis:_0x21a902||self,_0x5e4408(_0x21a902[_0x3af0ae(0x2f1)]={},_0x21a902[_0x3af0ae(0x3a7)],_0x21a902[_0x3af0ae(0x3f7)],_0x21a902['UniverUi'],_0x21a902[_0x3af0ae(0x2de)],_0x21a902[_0x3af0ae(0x2de)][_0x3af0ae(0x401)],_0x21a902[_0x3af0ae(0x25e)],_0x21a902[_0x3af0ae(0x3dc)],_0x21a902[_0x3af0ae(0x3dc)],_0x21a902[_0x3af0ae(0x295)],_0x21a902['UniverSheets'],_0x21a902[_0x3af0ae(0x2b3)],_0x21a902['UniverNetwork'],_0x21a902[_0x3af0ae(0x364)],_0x21a902[_0x3af0ae(0x274)],_0x21a902[_0x3af0ae(0x3f0)],_0x21a902['UniverDocs'],_0x21a902['UniverEngineFormula'],_0x21a902[_0x3af0ae(0x395)],_0x21a902['UniverProtocol']));}(this,function(_0x2f94b9,_0x20efb1,_0x1d062f,_0x25f9de,_0x5df150,_0x231056,_0x36848a,_0xac8e66,_0xd5ac84,_0x1a5bc2,_0x396996,_0xc630f2,_0x287543,_0x1c6b1f,_0x55bfd1,_0x600789,_0x55d528,_0x4f0b10,_0x5c8585,_0x3c5971){const _0x339b6f=_0x405a;Object[_0x339b6f(0x3b9)](_0x2f94b9,Symbol['toStringTag'],{'value':_0x339b6f(0x3a3)});function _0x58c7d5({ref:_0x340379,..._0x2c8674}){const _0x508370=_0x339b6f;let {icon:_0x252d4a,id:_0x35b781,className:_0x2a566b,extend:_0x36ab7a,..._0x30ed38}=_0x2c8674,_0x26b5ba=(_0x508370(0x1bf)+_0x35b781+'\x20'+(_0x2a566b||''))[_0x508370(0x1a4)](),_0x57855d=(0x0,_0xac8e66[_0x508370(0x2b8)])('_'+_0x540173());return _0x5c742c(_0x252d4a,''+_0x35b781,{'defIds':_0x252d4a[_0x508370(0x2d3)],'idSuffix':_0x57855d[_0x508370(0x216)]},{'ref':_0x340379,'className':_0x26b5ba,..._0x30ed38},_0x36ab7a);}function _0x5c742c(_0x2a45bf,_0x235f26,_0x5f1eac,_0x2a4263,_0x2dae54){const _0x41f7e0=_0x339b6f;return(0x0,_0xac8e66[_0x41f7e0(0x208)])(_0x2a45bf[_0x41f7e0(0x414)],{'key':_0x235f26,..._0x28609e(_0x2a45bf,_0x5f1eac,_0x2dae54),..._0x2a4263},(_0x329b43(_0x2a45bf,_0x5f1eac)['children']||[])[_0x41f7e0(0x19d)]((_0x49f1fb,_0x394b46)=>_0x5c742c(_0x49f1fb,_0x235f26+'-'+_0x2a45bf[_0x41f7e0(0x414)]+'-'+_0x394b46,_0x5f1eac,void 0x0,_0x2dae54)));}function _0x28609e(_0x3539c0,_0x21f92f,_0x495fe8){const _0x1ddf3f=_0x339b6f;let _0x616746={..._0x3539c0[_0x1ddf3f(0x3ce)]};_0x495fe8!=null&&_0x495fe8['colorChannel1']&&_0x616746[_0x1ddf3f(0x34b)]==='colorChannel1'&&(_0x616746[_0x1ddf3f(0x34b)]=_0x495fe8[_0x1ddf3f(0x2e3)]),_0x3539c0[_0x1ddf3f(0x414)]==='mask'&&_0x616746['id']&&(_0x616746['id']+=_0x21f92f[_0x1ddf3f(0x1a1)]),Object['entries'](_0x616746)[_0x1ddf3f(0x159)](([_0x2d887c,_0x61cef9])=>{const _0x53ce5c=_0x1ddf3f;_0x2d887c===_0x53ce5c(0x2b1)&&typeof _0x61cef9=='string'&&(_0x616746[_0x2d887c]=_0x61cef9[_0x53ce5c(0x330)](/url\(#(.*)\)/,'url(#$1'+_0x21f92f['idSuffix']+')'));});let {defIds:_0x205f5c}=_0x21f92f;return!_0x205f5c||_0x205f5c[_0x1ddf3f(0x231)]===0x0?_0x616746:(_0x3539c0[_0x1ddf3f(0x414)]===_0x1ddf3f(0x281)&&_0x616746[_0x1ddf3f(0x336)]&&(_0x616746[_0x1ddf3f(0x336)]+=_0x21f92f[_0x1ddf3f(0x1a1)]),Object[_0x1ddf3f(0x21a)](_0x616746)[_0x1ddf3f(0x159)](([_0x563186,_0xb01a06])=>{const _0x2775bc=_0x1ddf3f;typeof _0xb01a06==_0x2775bc(0x27d)&&(_0x616746[_0x563186]=_0xb01a06[_0x2775bc(0x330)](/url\(#(.*)\)/,_0x2775bc(0x3d8)+_0x21f92f[_0x2775bc(0x1a1)]+')'));}),_0x616746);}function _0x329b43(_0x1a60a9,_0x5a0b22){const _0x5cd642=_0x339b6f;var _0x57c42e;let {defIds:_0x40e7df}=_0x5a0b22;return!_0x40e7df||_0x40e7df[_0x5cd642(0x231)]===0x0?_0x1a60a9:_0x1a60a9[_0x5cd642(0x414)]===_0x5cd642(0x2be)&&(_0x57c42e=_0x1a60a9[_0x5cd642(0x335)])!=null&&_0x57c42e['length']?{..._0x1a60a9,'children':_0x1a60a9[_0x5cd642(0x335)][_0x5cd642(0x19d)](_0x4ed2e5=>typeof _0x4ed2e5[_0x5cd642(0x3ce)]['id']=='string'&&_0x40e7df&&_0x40e7df[_0x5cd642(0x40a)](_0x4ed2e5[_0x5cd642(0x3ce)]['id'])?{..._0x4ed2e5,'attrs':{..._0x4ed2e5[_0x5cd642(0x3ce)],'id':_0x4ed2e5['attrs']['id']+_0x5a0b22[_0x5cd642(0x1a1)]}}:_0x4ed2e5)}:_0x1a60a9;}function _0x540173(){const _0x50c330=_0x339b6f;return Math[_0x50c330(0x20d)]()['toString'](0x24)[_0x50c330(0x1aa)](0x2,0x8);}_0x58c7d5[_0x339b6f(0x24d)]=_0x339b6f(0x23f);let _0x472634={'tag':_0x339b6f(0x1f4),'attrs':{'xmlns':_0x339b6f(0x198),'fill':_0x339b6f(0x35a),'viewBox':'0\x200\x2016\x2016','width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x339b6f(0x30d)},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'stroke':_0x339b6f(0x2d4),'d':_0x339b6f(0x3d0),'strokeLinecap':_0x339b6f(0x3a0),'strokeLinejoin':_0x339b6f(0x3a0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x339b6f(0x2a9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':_0x339b6f(0x314),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x339b6f(0x1f0)]},_0x3ea82d=(0x0,_0xac8e66[_0x339b6f(0x2ae)])(function(_0xbee988,_0xf5d57){const _0x541897=_0x339b6f;return(0x0,_0xac8e66['createElement'])(_0x58c7d5,Object[_0x541897(0x3af)]({},_0xbee988,{'id':_0x541897(0x326),'ref':_0xf5d57,'icon':_0x472634}));});_0x3ea82d[_0x339b6f(0x24d)]=_0x339b6f(0x241);let _0x5462e4={'tag':'svg','attrs':{'xmlns':_0x339b6f(0x198),'fill':_0x339b6f(0x35a),'viewBox':_0x339b6f(0x2cd),'width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'stroke':_0x339b6f(0x2d4),'d':_0x339b6f(0x282),'strokeLinecap':_0x339b6f(0x3a0),'strokeLinejoin':_0x339b6f(0x3a0),'strokeWidth':1.2}}]},{'tag':_0x339b6f(0x2be),'attrs':{},'children':[{'tag':_0x339b6f(0x2a9),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':_0x339b6f(0x314),'d':_0x339b6f(0x3cf),'transform':_0x339b6f(0x21d)}}]}]}],'defIds':[_0x339b6f(0x257)]},_0x575ca4=(0x0,_0xac8e66[_0x339b6f(0x2ae)])(function(_0x456f49,_0x14a7a2){const _0x54e44c=_0x339b6f;return(0x0,_0xac8e66[_0x54e44c(0x208)])(_0x58c7d5,Object[_0x54e44c(0x3af)]({},_0x456f49,{'id':_0x54e44c(0x28d),'ref':_0x14a7a2,'icon':_0x5462e4}));});_0x575ca4[_0x339b6f(0x24d)]=_0x339b6f(0x244);let _0x5f39e8={'tag':_0x339b6f(0x1f4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x339b6f(0x35a),'viewBox':'0\x200\x2016\x2016','width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':'#0B9EFB','d':_0x339b6f(0x266),'fillOpacity':0.2,'fillRule':_0x339b6f(0x36c),'clipRule':'evenodd'}},{'tag':'path','attrs':{'fill':_0x339b6f(0x180),'d':_0x339b6f(0x2ee),'fillRule':_0x339b6f(0x36c),'clipRule':_0x339b6f(0x36c)}}]},_0x194ce2=(0x0,_0xac8e66['forwardRef'])(function(_0x3cce8c,_0x4e38cc){const _0x2baeb5=_0x339b6f;return(0x0,_0xac8e66[_0x2baeb5(0x208)])(_0x58c7d5,Object[_0x2baeb5(0x3af)]({},_0x3cce8c,{'id':_0x2baeb5(0x334),'ref':_0x4e38cc,'icon':_0x5f39e8}));});_0x194ce2[_0x339b6f(0x24d)]=_0x339b6f(0x34d);function _0x42a252(_0x487fd0){const _0x270753=_0x339b6f;switch(_0x487fd0){case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x15d)]:return{'icon':(0x0,_0xd5ac84['jsx'])(_0x3ea82d,{}),'colorClass':_0x270753(0x1da),'i18nKey':_0x270753(0x3db),'tooltipKey':_0x270753(0x1cd),'clickable':!0x0,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x1d9)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x3ea82d,{}),'colorClass':_0x270753(0x362),'i18nKey':_0x270753(0x3b7),'clickable':!0x1,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x1cf)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':_0x270753(0x29e),'clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x153)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x575ca4,{}),'colorClass':_0x270753(0x272),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x168)]:case _0x20efb1['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1['CollaborationStatus'][_0x270753(0x38f)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':_0x270753(0x253),'clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1[_0x270753(0x1c7)]['SYNCED']:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x575ca4,{}),'colorClass':_0x270753(0x27f),'i18nKey':_0x270753(0x33f),'clickable':!0x1,'indicator':_0x270753(0x29b)};}}function _0x4ee0fa(_0x919d0c){const _0x29f38a=_0x339b6f;let {status$:_0x124798}=_0x919d0c,_0x4959e8=(0x0,_0x25f9de[_0x29f38a(0x33b)])(_0x124798,_0x20efb1[_0x29f38a(0x1c7)][_0x29f38a(0x153)]),_0x1f198b=(0x0,_0x25f9de[_0x29f38a(0x423)])(_0x1d062f[_0x29f38a(0x142)]),_0x145c8f=(0x0,_0x25f9de[_0x29f38a(0x423)])(_0x20efb1[_0x29f38a(0x2c2)]),_0x4603c3=(0x0,_0xac8e66[_0x29f38a(0x1a7)])(()=>_0x42a252(_0x4959e8),[_0x4959e8]),_0x518f24=_0x4959e8!==_0x20efb1['CollaborationStatus'][_0x29f38a(0x15d)],_0x43431f=_0x1f198b['t'](_0x4603c3[_0x29f38a(0x3ee)]),_0x158ac2=_0x4603c3[_0x29f38a(0x158)]?_0x1f198b['t'](_0x4603c3['tooltipKey']):_0x43431f,_0x4812e8=(0x0,_0xac8e66[_0x29f38a(0x293)])(()=>{const _0x457ee3=_0x29f38a;_0x518f24||_0x145c8f[_0x457ee3(0x21b)]();},[_0x518f24,_0x145c8f]),_0x4d4334=(0x0,_0xac8e66['useCallback'])(_0x1c7c19=>{const _0x8f0347=_0x29f38a;!_0x518f24&&(_0x1c7c19[_0x8f0347(0x1a6)]===_0x8f0347(0x3ff)||_0x1c7c19['key']==='\x20')&&(_0x1c7c19[_0x8f0347(0x252)](),_0x145c8f[_0x8f0347(0x21b)]());},[_0x518f24,_0x145c8f]),_0x50e7cb=(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x14b),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])(_0x29f38a(0x341),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4603c3[_0x29f38a(0x16a)],{'univer-animate-spin':_0x4603c3[_0x29f38a(0x24f)]===_0x29f38a(0x1b8),'univer-animate-pulse':_0x4603c3[_0x29f38a(0x24f)]===_0x29f38a(0x41c)}),'aria-hidden':_0x29f38a(0x31e),'children':_0x4603c3[_0x29f38a(0x183)]}),_0x1fbe68=(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x14b),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg','univer-transition-all\x20univer-duration-200',_0x29f38a(0x378),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x4603c3[_0x29f38a(0x41f)],'univer-cursor-default':!_0x4603c3[_0x29f38a(0x41f)]}),'children':_0x50e7cb});return _0x4603c3[_0x29f38a(0x41f)]?(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x36848a[_0x29f38a(0x351)],{'title':_0x158ac2,'placement':_0x29f38a(0x2d2),'children':(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x1c6),{'type':_0x29f38a(0x1c6),'onClick':_0x4812e8,'onKeyDown':_0x4d4334,'className':(0x0,_0x36848a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x29f38a(0x3fb),_0x29f38a(0x160),_0x29f38a(0x40c)),'aria-label':_0x43431f+_0x29f38a(0x150)+_0x158ac2,'role':_0x29f38a(0x3ca),'aria-live':_0x29f38a(0x2bf),'aria-atomic':_0x29f38a(0x31e),'children':_0x1fbe68})}):(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x36848a[_0x29f38a(0x351)],{'title':_0x158ac2,'placement':_0x29f38a(0x2d2),'children':(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x3d9),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])(_0x29f38a(0x148),_0x29f38a(0x3fb),_0x29f38a(0x160)),'aria-label':_0x43431f,'role':_0x29f38a(0x3ca),'aria-live':_0x29f38a(0x2bf),'aria-atomic':_0x29f38a(0x31e),'children':_0x1fbe68})});}function _0x56888d(_0x4a0f2c){'@babel/helpers - typeof';const _0x94c2ff=_0x339b6f;return _0x56888d=typeof Symbol=='function'&&typeof Symbol[_0x94c2ff(0x213)]==_0x94c2ff(0x422)?function(_0x3d42af){return typeof _0x3d42af;}:function(_0x4f93bd){const _0x1e2f41=_0x94c2ff;return _0x4f93bd&&typeof Symbol==_0x1e2f41(0x165)&&_0x4f93bd['constructor']===Symbol&&_0x4f93bd!==Symbol[_0x1e2f41(0x15c)]?_0x1e2f41(0x422):typeof _0x4f93bd;},_0x56888d(_0x4a0f2c);}function _0x37e4d0(_0x590cf6,_0x1f4740){const _0x21431d=_0x339b6f;if(_0x56888d(_0x590cf6)!=_0x21431d(0x37f)||!_0x590cf6)return _0x590cf6;var _0x24e249=_0x590cf6[Symbol[_0x21431d(0x380)]];if(_0x24e249!==void 0x0){var _0x4c74b4=_0x24e249[_0x21431d(0x29f)](_0x590cf6,_0x1f4740||_0x21431d(0x312));if(_0x56888d(_0x4c74b4)!=_0x21431d(0x37f))return _0x4c74b4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1f4740===_0x21431d(0x27d)?String:Number)(_0x590cf6);}function _0x1eb7bb(_0x46ec26){const _0x2f25db=_0x339b6f;var _0x2bc9f3=_0x37e4d0(_0x46ec26,_0x2f25db(0x27d));return _0x56888d(_0x2bc9f3)==_0x2f25db(0x422)?_0x2bc9f3:_0x2bc9f3+'';}function _0x1050e7(_0x330a98,_0x2bf9f6,_0xa3e105){const _0xcbf937=_0x339b6f;return(_0x2bf9f6=_0x1eb7bb(_0x2bf9f6))in _0x330a98?Object[_0xcbf937(0x3b9)](_0x330a98,_0x2bf9f6,{'value':_0xa3e105,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x330a98[_0x2bf9f6]=_0xa3e105,_0x330a98;}function _0x21c55a(_0x2d7a36,_0x1a0316){return function(_0x1080df,_0x54ac25){_0x1a0316(_0x1080df,_0x54ac25,_0x2d7a36);};}function _0x8db4f3(_0xe2d024,_0x564045,_0x188b13,_0x5bdbe6){const _0x52b6aa=_0x339b6f;var _0x452096=arguments[_0x52b6aa(0x231)],_0x1b4fb3=_0x452096<0x3?_0x564045:_0x5bdbe6===null?_0x5bdbe6=Object[_0x52b6aa(0x358)](_0x564045,_0x188b13):_0x5bdbe6,_0x3c756c;if(typeof Reflect=='object'&&typeof Reflect[_0x52b6aa(0x374)]==_0x52b6aa(0x165))_0x1b4fb3=Reflect[_0x52b6aa(0x374)](_0xe2d024,_0x564045,_0x188b13,_0x5bdbe6);else{for(var _0x308e28=_0xe2d024[_0x52b6aa(0x231)]-0x1;_0x308e28>=0x0;_0x308e28--)(_0x3c756c=_0xe2d024[_0x308e28])&&(_0x1b4fb3=(_0x452096<0x3?_0x3c756c(_0x1b4fb3):_0x452096>0x3?_0x3c756c(_0x564045,_0x188b13,_0x1b4fb3):_0x3c756c(_0x564045,_0x188b13))||_0x1b4fb3);}return _0x452096>0x3&&_0x1b4fb3&&Object[_0x52b6aa(0x3b9)](_0x564045,_0x188b13,_0x1b4fb3),_0x1b4fb3;}let _0x22b7f5=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x2bb641,_0x2cb03e,_0x2878e6,_0x41af0a){const _0x71cb39=_0x339b6f;super(),this['_univerInstanceService']=_0x2bb641,this[_0x71cb39(0x405)]=_0x2cb03e,this['_collaborationController']=_0x2878e6,this[_0x71cb39(0x204)]=_0x41af0a,_0x1050e7(this,_0x71cb39(0x396),new _0x5df150['BehaviorSubject'](_0x20efb1['CollaborationStatus'][_0x71cb39(0x153)])),this[_0x71cb39(0x246)](),this['_initStatusListener']();}[_0x339b6f(0x18d)](){const _0x577076=_0x339b6f;this['disposeWithMe']((0x0,_0x5df150['merge'])(this['_univerInstanceService']['focused$'],this[_0x577076(0x30f)][_0x577076(0x394)](_0x1d062f[_0x577076(0x397)][_0x577076(0x39d)]),this[_0x577076(0x30f)][_0x577076(0x394)](_0x1d062f[_0x577076(0x397)][_0x577076(0x16f)]))[_0x577076(0x300)]((0x0,_0x231056[_0x577076(0x19d)])(()=>_0x277f5b(this['_univerInstanceService'])),(0x0,_0x231056[_0x577076(0x41a)])(),(0x0,_0x5df150[_0x577076(0x288)])(_0x34f2e6=>_0x34f2e6?this['_collaborationController']['getCollabEntity$'](_0x34f2e6):(0x0,_0x5df150['of'])(null)),(0x0,_0x5df150[_0x577076(0x288)])(_0x599eee=>_0x599eee?_0x599eee['status$']:(0x0,_0x5df150['of'])(_0x20efb1[_0x577076(0x1c7)][_0x577076(0x153)])))[_0x577076(0x3cd)](_0x2ef6af=>{const _0x27aefd=_0x577076;this['_status$'][_0x27aefd(0x1c8)](_0x2ef6af);}));}['_initStatusComponent'](){const _0x2db265=_0x339b6f;this[_0x2db265(0x18c)](this[_0x2db265(0x204)][_0x2db265(0x311)](_0x25f9de[_0x2db265(0x340)]['HEADER_MENU'],()=>(0x0,_0x25f9de[_0x2db265(0x299)])(_0x7a77eb({'status$':this[_0x2db265(0x396)][_0x2db265(0x233)]()}),this[_0x2db265(0x405)])));}};_0x22b7f5=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x275)])),_0x21c55a(0x3,_0x25f9de['IUIPartsService'])],_0x22b7f5);function _0x277f5b(_0x4d1de8){const _0x491849=_0x339b6f;let _0x1dea84=_0x4d1de8[_0x491849(0x32d)](),_0x5ca663=_0x1dea84==null?void 0x0:_0x1dea84[_0x491849(0x2c0)]();if(_0x5ca663&&!(0x0,_0x1d062f[_0x491849(0x387)])(_0x5ca663))return _0x5ca663;let _0x5b52d5=_0x4d1de8[_0x491849(0x375)](_0x1d062f[_0x491849(0x397)][_0x491849(0x39d)]),_0x5c5833=_0x5b52d5==null?void 0x0:_0x5b52d5[_0x491849(0x2c0)]();if(_0x5c5833&&!(0x0,_0x1d062f[_0x491849(0x387)])(_0x5c5833))return _0x5c5833;let _0x4901a6=_0x4d1de8[_0x491849(0x375)](_0x1d062f['UniverInstanceType']['UNIVER_SHEET']);if(_0x4901a6)return _0x4901a6['getUnitId']();let _0xccb35=_0x4d1de8[_0x491849(0x17f)](_0x1d062f['UniverInstanceType'][_0x491849(0x39d)])[_0x491849(0x1fb)](_0x489c9b=>!(0x0,_0x1d062f[_0x491849(0x387)])(_0x489c9b[_0x491849(0x2c0)]()));return _0xccb35?_0xccb35[_0x491849(0x2c0)]():null;}function _0x7a77eb(_0x4cfbd4){let {status$:_0x16a9e3}=_0x4cfbd4;return function(){const _0x536735=_0x405a;return(0x0,_0xd5ac84[_0x536735(0x33c)])(_0x4ee0fa,{'status$':_0x16a9e3});};}let _0x388e4a=(0x0,_0x1d062f[_0x339b6f(0x1f5)])(_0x339b6f(0x235)),_0x8bd3ea=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0xecf6f5,_0x56f05f,_0x3470d7,_0x2a1a67,_0xc62f92){const _0x62c8e5=_0x339b6f;super(),this['_urlService']=_0xecf6f5,this[_0x62c8e5(0x1dc)]=_0x56f05f,this[_0x62c8e5(0x3a4)]=_0x3470d7,this['_dataLoaderService']=_0x2a1a67,_0xc62f92?_0xc62f92==null||_0xc62f92[_0x62c8e5(0x19b)]()[_0x62c8e5(0x3f8)](()=>this[_0x62c8e5(0x1ac)]()):(this['_logService']['debug'](_0x62c8e5(0x384),_0x62c8e5(0x3ab)),this['_init']());}async[_0x339b6f(0x1ac)](){const _0x33de03=_0x339b6f;let _0x1897a8=this['_urlService']['getParam'](_0x33de03(0x3b2)),_0x361235=this[_0x33de03(0x224)][_0x33de03(0x2c4)](_0x33de03(0x1f8)),_0x41f1d3=this[_0x33de03(0x224)][_0x33de03(0x2c4)](_0x33de03(0x319));if(!_0x1897a8||!_0x361235){this[_0x33de03(0x1dc)][_0x33de03(0x2e5)](_0x33de03(0x384),_0x33de03(0x185));return;}let _0x308d4f=await this['_dataLoaderService'][_0x33de03(0x25b)](_0x1897a8,Number(_0x361235),_0x41f1d3);_0x308d4f&&_0x308d4f instanceof _0x1d062f[_0x33de03(0x27a)]&&this[_0x33de03(0x417)](_0x308d4f);}async[_0x339b6f(0x417)](_0x1cd77d){const _0x34c09a=_0x339b6f;await this[_0x34c09a(0x39c)](_0x1cd77d),_0x1cd77d[_0x34c09a(0x26b)][_0x34c09a(0x300)]((0x0,_0x5df150[_0x34c09a(0x154)])(this[_0x34c09a(0x23c)]))[_0x34c09a(0x3cd)](_0x599b4c=>{const _0x212bb4=_0x34c09a;_0x599b4c&&this[_0x212bb4(0x197)](_0x599b4c);}),this[_0x34c09a(0x224)][_0x34c09a(0x2b2)][_0x34c09a(0x300)]((0x0,_0x5df150['takeUntil'])(this[_0x34c09a(0x23c)]))[_0x34c09a(0x3cd)](()=>this[_0x34c09a(0x39c)](_0x1cd77d));}[_0x339b6f(0x197)](_0xce6784,_0x296474=!0x1){const _0x96c48e=_0x339b6f;let _0x354984=this['_urlService'][_0x96c48e(0x2c4)](_0x96c48e(0x319));_0xce6784[_0x96c48e(0x152)]()!==_0x354984&&this[_0x96c48e(0x224)][_0x96c48e(0x40b)](_0x96c48e(0x319),_0xce6784[_0x96c48e(0x152)](),_0x296474);}async[_0x339b6f(0x39c)](_0x13004f){const _0x20f1af=_0x339b6f;var _0x4454a6;let _0x35cb3=this[_0x20f1af(0x224)]['getParam']('subunit');if(!_0x35cb3||!_0x13004f[_0x20f1af(0x3a2)](_0x35cb3)){let _0x4c2661=_0x13004f[_0x20f1af(0x201)]()[0x0],_0x358875=_0x13004f[_0x20f1af(0x3a2)](_0x4c2661);if(!_0x358875)return;this['_updateURLWithCurrentState'](_0x358875,!0x0),await this[_0x20f1af(0x3a4)][_0x20f1af(0x426)](_0x396996[_0x20f1af(0x3c2)]['id'],{'unitId':_0x13004f[_0x20f1af(0x2c0)](),'subUnitId':_0x4c2661});return;}((_0x4454a6=_0x13004f['getActiveSheet']())==null?void 0x0:_0x4454a6[_0x20f1af(0x152)]())!==_0x35cb3&&await this['_commandService'][_0x20f1af(0x426)](_0x396996[_0x20f1af(0x3c2)]['id'],{'unitId':_0x13004f[_0x20f1af(0x2c0)](),'subUnitId':_0x35cb3});}};_0x8bd3ea=_0x8db4f3([_0x21c55a(0x0,_0x388e4a),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x2,_0x1d062f['ICommandService']),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1['DataLoaderService'])),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x15a)])(_0x1a5bc2['IRemoteInstanceService']))],_0x8bd3ea);var _0x5cf5d0=_0x339b6f(0x214),_0x57d268=_0x339b6f(0x3b3);let _0x57c67b=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x53aa11,_0x5b9649){const _0x79eab6=_0x339b6f;super(),this[_0x79eab6(0x38c)]=_0x53aa11,this[_0x79eab6(0x3c0)]=_0x5b9649,this[_0x79eab6(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x135e2f=_0x339b6f;let _0x11a18e=this;this[_0x135e2f(0x18c)](this['_docClipboardService'][_0x135e2f(0x1e4)]({'onBeforePasteImage':async _0x2dab72=>{const _0x19b5bd=_0x135e2f;let _0x5c997b=await _0x11a18e['_imageIoService'][_0x19b5bd(0x2b4)](_0x2dab72);return _0x5c997b?{'source':_0x5c997b[_0x19b5bd(0x22e)],'imageSourceType':_0x5c997b[_0x19b5bd(0x261)]}:null;}}));}};_0x57c67b=_0x8db4f3([_0x21c55a(0x0,_0x1c6b1f[_0x339b6f(0x2b6)]),_0x21c55a(0x1,_0x55bfd1[_0x339b6f(0x25d)])],_0x57c67b);let _0x1a0ae4=[_0x339b6f(0x236),_0x339b6f(0x1b6),'green.600','red.300',_0x339b6f(0x1c5),_0x339b6f(0x250)];var _0x47fa48=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(..._0x46a497){const _0xd2dd4a=_0x339b6f;super(..._0x46a497),_0x1050e7(this,_0xd2dd4a(0x3f3),new Map()),_0x1050e7(this,_0xd2dd4a(0x3cb),0x0);}['assignAColorForMemberID'](_0x4af2f8){const _0x11e48e=_0x339b6f;if(this[_0x11e48e(0x3f3)][_0x11e48e(0x377)](_0x4af2f8))return this[_0x11e48e(0x3f3)][_0x11e48e(0x3fe)](_0x4af2f8);let _0x2912f3=_0x1a0ae4[this[_0x11e48e(0x3cb)]];return this[_0x11e48e(0x3cb)]=(this['_colorIndex']+0x1)%_0x1a0ae4[_0x11e48e(0x231)],this[_0x11e48e(0x3f3)][_0x11e48e(0x3e7)](_0x4af2f8,_0x2912f3),_0x2912f3;}};function _0x508943(_0x30e04d){let _0x23ab4e='';for(let _0x5183cd of _0x30e04d){let {startOffset:_0x2580d8,endOffset:_0x29318e,isActive:_0x46a557,rangeType:_0x3ab92b,segmentId:_0x52e7d0,segmentPage:_0x268d9b}=_0x5183cd;_0x23ab4e['length']&&(_0x23ab4e+=','),_0x23ab4e+=_0x2580d8+':'+_0x29318e+':'+(_0x46a557?'1':'0')+':'+_0x3ab92b+':'+_0x52e7d0+':'+_0x268d9b;}return _0x23ab4e;}function _0x5283db(_0x4d898d){const _0x53e921=_0x339b6f;let _0x170a31=_0x4d898d[_0x53e921(0x3d6)](','),_0x838153=[];for(let _0x3d2063 of _0x170a31){let [_0x44e79b,_0x4eaa64,_0x3c8633,_0x419eef,_0xd83619,_0x56c15e]=_0x3d2063[_0x53e921(0x3d6)](':');_0x838153[_0x53e921(0x411)]({'startOffset':Number(_0x44e79b),'endOffset':Number(_0x4eaa64),'collapsed':_0x44e79b===_0x4eaa64,'isActive':_0x3c8633==='1','rangeType':_0x419eef===_0x1d062f['DOC_RANGE_TYPE'][_0x53e921(0x3e0)]?_0x1d062f[_0x53e921(0x263)]['TEXT']:_0x1d062f[_0x53e921(0x263)][_0x53e921(0x390)],'segmentId':typeof _0xd83619=='string'?String(_0xd83619):'','segmentPage':Number(_0x56c15e==null?-0x1:_0x56c15e)});}return _0x838153[_0x53e921(0x3f2)](_0x3e4731=>_0x3e4731[_0x53e921(0x2e1)])||(_0x838153[0x0][_0x53e921(0x2e1)]=!0x0),_0x838153;}var _0x2b1e68=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(..._0x16d8bd){const _0x48185c=_0x339b6f;super(..._0x16d8bd),_0x1050e7(this,'_collabCursorState$',new _0x5df150[(_0x48185c(0x2ef))](null)),_0x1050e7(this,_0x48185c(0x2ca),this[_0x48185c(0x2f5)][_0x48185c(0x233)]());}[_0x339b6f(0x34f)](_0x17ae53){const _0x2305c6=_0x339b6f;let {unitID:_0x200e17,memberID:_0x42cf91,textRanges:_0x13b7d2}=_0x17ae53,_0x3ded76=_0x508943(_0x13b7d2);if(_0x3ded76==='')return;let _0x591586={'unitID':_0x200e17,'memberID':_0x42cf91,'selection':_0x3ded76};this[_0x2305c6(0x2f5)][_0x2305c6(0x1c8)](_0x591586);}};let _0x46dd2d=class extends _0x1d062f['RxDisposable']{get[_0x339b6f(0x2d6)](){const _0x1b0df1=_0x339b6f;return this[_0x1b0df1(0x3e6)][_0x1b0df1(0x359)]();}get['roomMembers'](){const _0x36ad9f=_0x339b6f;return this[_0x36ad9f(0x26e)][_0x36ad9f(0x359)]();}constructor(_0xbd439f,_0x6003a4,_0x57469e,_0x578826,_0x4e5efb,_0x11f637,_0x35e397,_0x47789f,_0x2d0b81){const _0x431539=_0x339b6f;super(),this['unitID']=_0xbd439f,this['_session']=_0x6003a4,this[_0x431539(0x405)]=_0x57469e,this[_0x431539(0x391)]=_0x578826,this[_0x431539(0x40f)]=_0x4e5efb,this['_syncEditingCollabCursorService']=_0x11f637,this[_0x431539(0x3d2)]=_0x35e397,this['_univerInstanceService']=_0x47789f,this['_commandService']=_0x2d0b81,_0x1050e7(this,_0x431539(0x243),!0x1),_0x1050e7(this,_0x431539(0x1ac),!0x1),_0x1050e7(this,_0x431539(0x3e6),new _0x5df150['BehaviorSubject'](new Map())),_0x1050e7(this,_0x431539(0x379),this[_0x431539(0x3e6)][_0x431539(0x233)]()),_0x1050e7(this,'_roomMembers$',new _0x5df150[(_0x431539(0x2ef))]([])),_0x1050e7(this,_0x431539(0x2ea),this[_0x431539(0x26e)]['pipe']((0x0,_0x5df150['debounceTime'])(0x12c))),_0x1050e7(this,_0x431539(0x418),(0x0,_0x1d062f[_0x431539(0x14e)])(_0x3d68d4=>{const _0x4ff308=_0x431539;let _0x3f80be={'eventID':_0x600789[_0x4ff308(0x219)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4ff308(0x310)],'memberID':this[_0x4ff308(0x2c8)][_0x4ff308(0x164)](),'selection':_0x508943(_0x3d68d4)}};this[_0x4ff308(0x2c8)]['send'](_0x3f80be,this[_0x4ff308(0x310)]);},0x64));}[_0x339b6f(0x39e)](){const _0x2df67e=_0x339b6f;super[_0x2df67e(0x39e)](),this[_0x2df67e(0x3e6)][_0x2df67e(0x1c8)](new Map()),this[_0x2df67e(0x3e6)][_0x2df67e(0x2ba)](),this['_roomMembers$'][_0x2df67e(0x1c8)]([]),this[_0x2df67e(0x26e)][_0x2df67e(0x2ba)]();}[_0x339b6f(0x2e4)](){const _0x513a9d=_0x339b6f;this['_init']||(this[_0x513a9d(0x1ac)]=!0x0,this[_0x513a9d(0x2c8)]['sessionStatus$'][_0x513a9d(0x300)]((0x0,_0x5df150['takeUntil'])(this['dispose$']))['subscribe'](_0x590975=>{const _0x2c8c80=_0x513a9d;_0x590975===_0x20efb1[_0x2c8c80(0x1ff)][_0x2c8c80(0x155)]?this[_0x2c8c80(0x15b)]():this[_0x2c8c80(0x345)]();}),this[_0x513a9d(0x2c8)][_0x513a9d(0x21e)][_0x513a9d(0x300)]((0x0,_0x5df150[_0x513a9d(0x154)])(this['dispose$']))[_0x513a9d(0x3cd)](_0x346581=>{const _0x4844ba=_0x513a9d;let _0x3fb39b=_0x346581[_0x4844ba(0x2f9)];_0x3fb39b===_0x600789[_0x4844ba(0x219)][_0x4844ba(0x40e)]&&this[_0x4844ba(0x2fc)](_0x346581),_0x3fb39b===_0x600789['CollaborationEvent'][_0x4844ba(0x36b)]&&this['_onCursorDelete'](_0x346581);}),this[_0x513a9d(0x18c)](this[_0x513a9d(0x3a4)][_0x513a9d(0x1b0)](_0x44442c=>{const _0x1ec7ed=_0x513a9d;let _0x3649aa=_0x44442c[_0x1ec7ed(0x3c9)];_0x3649aa!=null&&this[_0x1ec7ed(0x243)]&&_0x44442c['id']===_0x55d528[_0x1ec7ed(0x402)]['id']&&_0x3649aa['unitId']===this[_0x1ec7ed(0x310)]&&_0x3649aa['isEditing']===!0x1&&_0x3649aa[_0x1ec7ed(0x354)]['length']>0x0&&this[_0x1ec7ed(0x418)](_0x3649aa['ranges']);})),this[_0x513a9d(0x2fa)][_0x513a9d(0x2ca)][_0x513a9d(0x300)]((0x0,_0x5df150['takeUntil'])(this['dispose$']))['subscribe'](_0xa307fc=>{const _0x3353a6=_0x513a9d;if((_0xa307fc==null?void 0x0:_0xa307fc['unitID'])!==this[_0x3353a6(0x310)])return;let _0x337417={'eventID':_0x600789[_0x3353a6(0x219)][_0x3353a6(0x40e)],'data':_0xa307fc};this[_0x3353a6(0x2fc)](_0x337417);}),this[_0x513a9d(0x18c)](this[_0x513a9d(0x3a4)][_0x513a9d(0x1b0)](_0x10ca22=>{const _0x4dc43a=_0x513a9d;if(_0x10ca22[_0x4dc43a(0x3c9)]==null)return;let _0x4b3903=_0x10ca22[_0x4dc43a(0x3c9)];if(_0x10ca22['id']!==_0x55d528[_0x4dc43a(0x1c1)]['id']||_0x4b3903[_0x4dc43a(0x24e)]!==this[_0x4dc43a(0x310)])return;let _0x347be7={'id':_0x4dc43a(0x234),'params':_0x4b3903},_0x559fbc=this['cursorInfo'];for(let [_0x2bcef5,_0x4c37d3]of _0x559fbc){let _0x2a3cc1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4dc43a(0x310)],'actions':null,'textRanges':_0x4c37d3[_0x4dc43a(0x354)]}},_0x16653f=this[_0x4dc43a(0x3d2)]['transformMutation'](_0x347be7,_0x2a3cc1,!0x1);if((0x0,_0x600789[_0x4dc43a(0x24c)])(_0x16653f))throw _0x16653f['error'];_0x559fbc[_0x4dc43a(0x3e7)](_0x2bcef5,{..._0x4c37d3,'ranges':_0x16653f[_0x4dc43a(0x3b4)][_0x4dc43a(0x3c9)]['textRanges']});}queueMicrotask(()=>{const _0x3cac36=_0x4dc43a;this[_0x3cac36(0x3e6)][_0x3cac36(0x1c8)](_0x559fbc);});})));}['_onCursorUpdate'](_0x515796){const _0x543538=_0x339b6f;var _0x252b6f,_0x2a4c4b;let {memberID:_0x54b83f,selection:_0x1f6396}=_0x515796[_0x543538(0x33e)],_0x3728e3=_0x5283db(_0x1f6396),_0x3af45b=(_0x252b6f=(_0x2a4c4b=this[_0x543538(0x40f)][_0x543538(0x321)](this[_0x543538(0x310)],_0x54b83f))==null?void 0x0:_0x2a4c4b[_0x543538(0x318)])==null?_0x543538(0x217):_0x252b6f,_0x4824d5={'color':this[_0x543538(0x391)][_0x543538(0x1de)](_0x54b83f),'name':_0x3af45b,'ranges':_0x3728e3},_0x47b93d=this[_0x543538(0x2d6)];_0x47b93d[_0x543538(0x3e7)](_0x54b83f,_0x4824d5),this[_0x543538(0x3e6)][_0x543538(0x1c8)](_0x47b93d);}[_0x339b6f(0x296)](_0x4594e5){const _0x3fc289=_0x339b6f;let {memberID:_0x6ac76}=_0x4594e5[_0x3fc289(0x33e)],_0x53aa6a=this['cursorInfo'];_0x53aa6a[_0x3fc289(0x229)](_0x6ac76),this[_0x3fc289(0x3e6)][_0x3fc289(0x1c8)](_0x53aa6a);}[_0x339b6f(0x15b)](){const _0x379173=_0x339b6f;var _0x1549f7;if(this[_0x379173(0x243)]=!0x0,((_0x1549f7=this[_0x379173(0x30f)][_0x379173(0x32d)]())==null?void 0x0:_0x1549f7[_0x379173(0x2c0)]())!==this['unitID'])return;let _0x450edd=this['_injector'][_0x379173(0x3fe)](_0x55d528[_0x379173(0x3a6)])[_0x379173(0x357)]();Array[_0x379173(0x1df)](_0x450edd)&&_0x450edd[_0x379173(0x231)]>0x0&&this[_0x379173(0x418)](_0x450edd);}['_toggleOffline'](){const _0x3764e2=_0x339b6f;this[_0x3764e2(0x243)]=!0x1;}};_0x46dd2d=_0x8db4f3([_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x47fa48)),_0x21c55a(0x4,(0x0,_0x1d062f['Inject'])(_0x20efb1['MemberService'])),_0x21c55a(0x5,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2b1e68)),_0x21c55a(0x6,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x7,_0x1d062f['IUniverInstanceService']),_0x21c55a(0x8,_0x1d062f[_0x339b6f(0x2a0)])],_0x46dd2d);let _0x1f9a72=()=>{let _0x72d455=[],_0x308392=!0x1;return _0xb2c1dd=>{_0x72d455['push'](_0xb2c1dd),_0x308392||(_0x308392=!0x0,setTimeout(()=>{const _0x25cf5f=_0x405a;_0x72d455[_0x25cf5f(0x159)](_0x55f75b=>_0x55f75b()),_0x72d455=[],_0x308392=!0x1;}));};},_0x2ae18d=class extends _0x1d062f['RxDisposable']{get[_0x339b6f(0x2d6)](){const _0x221736=_0x339b6f;return this[_0x221736(0x3e6)][_0x221736(0x359)]();}get[_0x339b6f(0x2e6)](){const _0x5b5e3a=_0x339b6f;return this[_0x5b5e3a(0x26e)]['getValue']();}constructor(_0x4c5a2f,_0x482618,_0x253231,_0x35a672,_0x4d1f90,_0x42937a,_0x40d8e1,_0x44a212){const _0x304dd5=_0x339b6f;super(),this[_0x304dd5(0x310)]=_0x4c5a2f,this['_session']=_0x482618,this[_0x304dd5(0x405)]=_0x253231,this['_colorAssignService']=_0x35a672,this[_0x304dd5(0x40f)]=_0x4d1f90,this[_0x304dd5(0x30f)]=_0x42937a,this[_0x304dd5(0x3a4)]=_0x40d8e1,this[_0x304dd5(0x34a)]=_0x44a212,_0x1050e7(this,'_online',!0x1),_0x1050e7(this,_0x304dd5(0x1ac),!0x1),_0x1050e7(this,_0x304dd5(0x3e6),new _0x5df150[(_0x304dd5(0x2ef))](new Map())),_0x1050e7(this,_0x304dd5(0x379),this[_0x304dd5(0x3e6)][_0x304dd5(0x233)]()),_0x1050e7(this,_0x304dd5(0x26e),new _0x5df150['BehaviorSubject']([])),_0x1050e7(this,'roomMembers$',this[_0x304dd5(0x26e)][_0x304dd5(0x300)]((0x0,_0x5df150[_0x304dd5(0x31d)])(0x12c))),_0x1050e7(this,_0x304dd5(0x418),(0x0,_0x1d062f[_0x304dd5(0x14e)])((_0x411668,_0xe97204)=>{const _0x3b4178=_0x304dd5;let _0x58abde={'eventID':_0x600789[_0x3b4178(0x219)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x3b4178(0x164)](),'selection':(0x0,_0x4f0b10[_0x3b4178(0x3de)])(_0x411668,_0xe97204['range'])}};this[_0x3b4178(0x2c8)][_0x3b4178(0x1c2)](_0x58abde,this[_0x3b4178(0x310)]);},0x64));}['dispose'](){const _0x546bf0=_0x339b6f;super[_0x546bf0(0x39e)](),this['_cursorInfo$'][_0x546bf0(0x1c8)](new Map()),this[_0x546bf0(0x3e6)][_0x546bf0(0x2ba)](),this['_roomMembers$'][_0x546bf0(0x1c8)]([]),this[_0x546bf0(0x26e)][_0x546bf0(0x2ba)]();}['init'](){const _0x824305=_0x339b6f;this['_init']||(this['_init']=!0x0,this[_0x824305(0x2c8)]['sessionStatus$']['pipe']((0x0,_0x5df150['takeUntil'])(this[_0x824305(0x23c)]))[_0x824305(0x3cd)](_0x209100=>{const _0x10f85c=_0x824305;_0x209100===_0x20efb1[_0x10f85c(0x1ff)][_0x10f85c(0x155)]?this[_0x10f85c(0x15b)]():this[_0x10f85c(0x345)]();}),this['_session'][_0x824305(0x21e)]['pipe']((0x0,_0x5df150['takeUntil'])(this[_0x824305(0x23c)]))[_0x824305(0x3cd)](_0x407948=>{const _0x25e592=_0x824305;let _0x29aa2b=_0x407948[_0x25e592(0x2f9)];_0x29aa2b===_0x600789[_0x25e592(0x219)][_0x25e592(0x40e)]&&this['_onCursorUpdate'](_0x407948),_0x29aa2b===_0x600789[_0x25e592(0x219)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x407948);}),this['_onRefRangeChange'](),this[_0x824305(0x18c)](this['_commandService'][_0x824305(0x1b0)](_0x5736bd=>{const _0x5bee4b=_0x824305;if(this[_0x5bee4b(0x243)]&&_0x5736bd['id']===_0x396996[_0x5bee4b(0x20b)]['id']&&_0x5736bd[_0x5bee4b(0x3c9)]['unitId']===this['unitID']){let _0x50d59b=_0x5736bd[_0x5bee4b(0x3c9)];this[_0x5bee4b(0x418)](_0x50d59b[_0x5bee4b(0x2d1)],_0x50d59b[_0x5bee4b(0x3d4)][0x0]);}})));}[_0x339b6f(0x2fc)](_0x483dc4){const _0x45512a=_0x339b6f;var _0x43608b,_0x302a31;let {memberID:_0x37a3a6,selection:_0x2c0e65}=_0x483dc4[_0x45512a(0x33e)],{sheetName:_0x538475,range:_0x78f254}=(0x0,_0x4f0b10[_0x45512a(0x2f6)])(_0x2c0e65),_0x4bb234={'name':(_0x43608b=(_0x302a31=this[_0x45512a(0x40f)][_0x45512a(0x321)](this[_0x45512a(0x310)],_0x37a3a6))==null?void 0x0:_0x302a31[_0x45512a(0x318)])==null?_0x45512a(0x217):_0x43608b,'range':this[_0x45512a(0x1d6)](_0x538475,_0x78f254),'sheetID':_0x538475,'color':this['_colorAssignService'][_0x45512a(0x1de)](_0x37a3a6),'selection':_0x2c0e65},_0x10180c=this['cursorInfo'];_0x10180c[_0x45512a(0x3e7)](_0x37a3a6,_0x4bb234),this[_0x45512a(0x3e6)][_0x45512a(0x1c8)](_0x10180c);}['_onCursorDelete'](_0x374889){const _0x148773=_0x339b6f;let {memberID:_0x2f8f29}=_0x374889['data'],_0x10ff30=this['cursorInfo'];_0x10ff30[_0x148773(0x229)](_0x2f8f29),this['_cursorInfo$']['next'](_0x10ff30);}[_0x339b6f(0x1d6)](_0x119823,_0x439905){const _0x25cb9c=_0x339b6f;var _0x363eb8;let _0x54cc58=(_0x363eb8=this[_0x25cb9c(0x30f)][_0x25cb9c(0x392)](this[_0x25cb9c(0x310)]))==null||(_0x363eb8=_0x363eb8['getSheetBySheetId'](_0x119823))==null?void 0x0:_0x363eb8[_0x25cb9c(0x1ca)]();return(_0x54cc58==null?void 0x0:_0x54cc58[_0x25cb9c(0x1fb)](_0x3084d4=>_0x1d062f['Rectangle']['contains'](_0x3084d4,_0x439905)))||_0x439905;}['_onRefRangeChange'](){const _0xdf8b9=_0x339b6f;let _0x54ea51=new _0x1d062f[(_0xdf8b9(0x239))](),_0x488e7a=_0x1f9a72(),_0x26c0f4=()=>{const _0x520e3e=_0xdf8b9;_0x54ea51[_0x520e3e(0x39e)]();let _0x1ff0b6=(_0x55465a,_0x260a6e,_0xa0efd1,_0x3ca4b1)=>{const _0x36fc85=_0x520e3e;let _0x2d36e1=[];switch(_0x55465a['id']){case _0x396996['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:_0x2d36e1=(0x0,_0x396996['handleDeleteRangeMoveLeft'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x337)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x3c1)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x189)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x2cc)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x205)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x242)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['InsertRangeMoveRightCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x277)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x3b8)]:_0x2d36e1=(0x0,_0x396996['handleInsertRow'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['MoveRangeCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x367)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['RemoveColCommandId']:_0x2d36e1=(0x0,_0x396996['handleIRemoveCol'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['RemoveRowCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x22c)])(_0x55465a,_0x3ca4b1);break;}let _0x269372=(0x0,_0x396996[_0x36fc85(0x3b6)])(_0x2d36e1,_0x3ca4b1),_0x83c5a3=this['cursorInfo'][_0x36fc85(0x3fe)](_0x260a6e);if(_0x83c5a3&&_0x269372){let _0x3f6acf={..._0x83c5a3,'range':_0x269372};this[_0x36fc85(0x2d6)][_0x36fc85(0x3e7)](_0x260a6e,_0x3f6acf),_0x488e7a(()=>{const _0x106381=_0x36fc85;let _0x323e48=this[_0x106381(0x34a)][_0x106381(0x1cc)](_0x269372,_0x4091c8=>(_0x323e48['dispose'](),_0x1ff0b6(_0x4091c8,_0x260a6e,_0xa0efd1,_0x269372)));_0x54ea51[_0x106381(0x30e)](_0x323e48);});}return{'redos':[],'undos':[]};};this[_0x520e3e(0x2d6)][_0x520e3e(0x159)]((_0x7b165,_0x17309c)=>{const _0x4fa7ab=_0x520e3e;let {range:_0x2e4952,sheetID:_0x29a4c0}=_0x7b165,_0x59ae70=this[_0x4fa7ab(0x34a)]['registerRefRange'](_0x2e4952,_0x53de25=>(_0x59ae70[_0x4fa7ab(0x39e)](),_0x1ff0b6(_0x53de25,_0x17309c,_0x29a4c0,_0x2e4952)));_0x54ea51[_0x4fa7ab(0x30e)](_0x59ae70);});};this[_0xdf8b9(0x18c)]((0x0,_0x1d062f[_0xdf8b9(0x1fe)])(this[_0xdf8b9(0x3e6)][_0xdf8b9(0x3cd)](()=>{_0x26c0f4();})));}[_0x339b6f(0x15b)](){const _0x4b67db=_0x339b6f;var _0x1c631f,_0xe8961d;if(this[_0x4b67db(0x243)]=!0x0,((_0x1c631f=this[_0x4b67db(0x30f)]['getFocusedUnit']())==null?void 0x0:_0x1c631f[_0x4b67db(0x2c0)]())!==this[_0x4b67db(0x310)])return;let _0xdb17f8=(_0xe8961d=this[_0x4b67db(0x405)]['get'](_0x396996[_0x4b67db(0x199)])[_0x4b67db(0x21f)]())==null?void 0x0:_0xe8961d[0x0],_0x2a7916=this[_0x4b67db(0x30f)][_0x4b67db(0x375)](_0x1d062f[_0x4b67db(0x397)]['UNIVER_SHEET'])[_0x4b67db(0x1a3)]();_0xdb17f8&&_0x2a7916&&this[_0x4b67db(0x418)](_0x2a7916[_0x4b67db(0x152)](),_0xdb17f8);}[_0x339b6f(0x345)](){const _0x273fb9=_0x339b6f;this[_0x273fb9(0x243)]=!0x1;}};_0x2ae18d=_0x8db4f3([_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,(0x0,_0x1d062f['Inject'])(_0x47fa48)),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x141)])),_0x21c55a(0x5,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x6,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x7,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x396996[_0x339b6f(0x346)]))],_0x2ae18d);let _0xe35be2=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x15123c,_0x4fa4e5,_0x47b97f){const _0xae22e5=_0x339b6f;super(),this['_univerInstanceService']=_0x15123c,this[_0xae22e5(0x405)]=_0x4fa4e5,this[_0xae22e5(0x3e2)]=_0x47b97f,_0x1050e7(this,_0xae22e5(0x221),new Map()),_0x1050e7(this,_0xae22e5(0x393),new _0x5df150[(_0xae22e5(0x222))]()),this['_init']();}[_0x339b6f(0x39e)](){const _0x15a95a=_0x339b6f;super[_0x15a95a(0x39e)](),this[_0x15a95a(0x393)][_0x15a95a(0x2ba)](),this[_0x15a95a(0x221)][_0x15a95a(0x159)](_0x186d63=>_0x186d63[_0x15a95a(0x39e)]());}[_0x339b6f(0x1a2)](_0x36517a){const _0x2475ea=_0x339b6f;return this['_entities'][_0x2475ea(0x377)](_0x36517a)?this[_0x2475ea(0x221)]['get'](_0x36517a)['cursorInfo$']:this[_0x2475ea(0x393)][_0x2475ea(0x300)]((0x0,_0x5df150[_0x2475ea(0x361)])(_0x36093e=>_0x36093e[_0x2475ea(0x310)]===_0x36517a),(0x0,_0x5df150['switchMap'])(_0xf3926d=>_0xf3926d[_0x2475ea(0x379)]));}['_init'](){const _0x4f1eeb=_0x339b6f;this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x1fd)](_0x1d062f['UniverInstanceType']['UNIVER_SHEET'])[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))['subscribe'](async _0x5d4ae4=>{const _0x3ab1e2=_0x4f1eeb;let _0x12e4ed=_0x5d4ae4['unit'][_0x3ab1e2(0x2c0)](),_0x5d2bef=await this[_0x3ab1e2(0x22b)](_0x12e4ed);this[_0x3ab1e2(0x393)][_0x3ab1e2(0x1c8)](_0x5d2bef),this[_0x3ab1e2(0x221)]['set'](_0x12e4ed,_0x5d2bef);}),this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x1fd)](_0x1d062f[_0x4f1eeb(0x397)]['UNIVER_DOC'])[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))[_0x4f1eeb(0x300)]((0x0,_0x5df150['filter'])(_0x1a9263=>!_0x1a9263[_0x4f1eeb(0x3b2)][_0x4f1eeb(0x2c0)]()[_0x4f1eeb(0x20c)]('__')))['subscribe'](async _0x329967=>{const _0x3b66d4=_0x4f1eeb;let {unit:_0x365638}=_0x329967,_0xa8c036=_0x365638[_0x3b66d4(0x2c0)](),_0x52a41c=await this[_0x3b66d4(0x3c5)](_0xa8c036);this['_entityInit$']['next'](_0x52a41c),this[_0x3b66d4(0x221)][_0x3b66d4(0x3e7)](_0xa8c036,_0x52a41c);}),(0x0,_0x5df150[_0x4f1eeb(0x17d)])(this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x294)](_0x1d062f[_0x4f1eeb(0x397)][_0x4f1eeb(0x39d)]),this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x294)](_0x1d062f[_0x4f1eeb(0x397)]['UNIVER_SHEET']))[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))['subscribe'](_0x109259=>{const _0xaf0aa7=_0x4f1eeb;let _0x3b93a5=_0x109259[_0xaf0aa7(0x2c0)](),_0x4ab989=this[_0xaf0aa7(0x221)]['get'](_0x3b93a5);_0x4ab989&&(_0x4ab989[_0xaf0aa7(0x39e)](),this[_0xaf0aa7(0x221)][_0xaf0aa7(0x229)](_0x3b93a5));});}async['_startSheetCollabCursor'](_0x5701ed){const _0x5d9d80=_0x339b6f;let _0x5514f1=await this['_collabSessionService'][_0x5d9d80(0x388)](_0x5701ed),_0x2a8885=this['_injector']['createInstance'](_0x2ae18d,_0x5701ed,_0x5514f1);return _0x2a8885[_0x5d9d80(0x2e4)](),_0x2a8885;}async[_0x339b6f(0x3c5)](_0x101c4d){const _0x491adb=_0x339b6f;let _0xe292be=await this[_0x491adb(0x3e2)][_0x491adb(0x388)](_0x101c4d),_0x4669bf=this[_0x491adb(0x405)]['createInstance'](_0x46dd2d,_0x101c4d,_0xe292be);return _0x4669bf[_0x491adb(0x2e4)](),_0x4669bf;}};_0xe35be2=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f['Injector'])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2c2)]))],_0xe35be2);function _0x5d9e82(_0x5a5d46,_0x145505){const _0x52f867=_0x339b6f;var _0xdf41fa,_0x326d10,_0x90207e;let {radius:_0x29999e,width:_0x463dc5,height:_0x57b60b}=_0x145505;_0x29999e=(_0xdf41fa=_0x29999e)==null?0x0:_0xdf41fa,_0x463dc5=(_0x326d10=_0x463dc5)==null?0x1e:_0x326d10,_0x57b60b=(_0x90207e=_0x57b60b)==null?0x1e:_0x90207e;let _0x6f8f2c=0x0,_0x569592=0x0,_0x24489b=0x0;_0x6f8f2c=_0x569592=_0x24489b=Math[_0x52f867(0x38a)](_0x29999e,_0x463dc5/0x2,_0x57b60b/0x2),_0x5a5d46[_0x52f867(0x268)](),_0x5a5d46[_0x52f867(0x1ea)](_0x6f8f2c,0x0),_0x5a5d46[_0x52f867(0x26d)](_0x463dc5-_0x569592,0x0),_0x5a5d46[_0x52f867(0x2ce)](_0x463dc5-_0x569592,_0x569592,_0x569592,Math['PI']*0x3/0x2,0x0,!0x1),_0x5a5d46[_0x52f867(0x26d)](_0x463dc5,_0x57b60b-_0x24489b),_0x5a5d46['arc'](_0x463dc5-_0x24489b,_0x57b60b-_0x24489b,_0x24489b,0x0,Math['PI']/0x2,!0x1),_0x5a5d46['lineTo'](0x0,_0x57b60b),_0x5a5d46[_0x52f867(0x26d)](0x0,_0x6f8f2c),_0x5a5d46[_0x52f867(0x2ce)](_0x6f8f2c,_0x6f8f2c,_0x6f8f2c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5a5d46[_0x52f867(0x19a)](),_0x145505[_0x52f867(0x34b)]&&(_0x5a5d46[_0x52f867(0x211)](),_0x5a5d46[_0x52f867(0x309)]=_0x145505[_0x52f867(0x34b)],_0x145505[_0x52f867(0x421)]===_0x52f867(0x36c)?_0x5a5d46['fill'](_0x52f867(0x36c)):_0x5a5d46[_0x52f867(0x34b)](),_0x5a5d46['restore']());}var _0x34d0f3=class _0x4c44ce extends _0xc630f2[_0x339b6f(0x17e)]{constructor(_0x4c487c,_0x3ae490){const _0x44a19d=_0x339b6f;super(_0x4c487c,_0x3ae490),_0x1050e7(this,'color',void 0x0),_0x1050e7(this,_0x44a19d(0x1bd),void 0x0),this[_0x44a19d(0x230)]=_0x3ae490==null?void 0x0:_0x3ae490[_0x44a19d(0x230)],this['text']=_0x3ae490==null?void 0x0:_0x3ae490[_0x44a19d(0x1bd)];}static['drawWith'](_0x27860b,_0x2972c4){const _0x24fb60=_0x339b6f;let {text:_0x13437a,color:_0x1a7bea}=_0x2972c4;_0x27860b[_0x24fb60(0x211)](),_0x27860b[_0x24fb60(0x2cf)]=_0x24fb60(0x265);let _0x3a2e98=_0x27860b[_0x24fb60(0x343)](_0x13437a)[_0x24fb60(0x413)];if(_0x5d9e82(_0x27860b,{'height':0x14,'radius':0x4,'width':Math[_0x24fb60(0x38a)](_0x3a2e98+0x8,0xc8),'fill':_0x1a7bea,'evented':!0x1}),_0x27860b[_0x24fb60(0x309)]='#FFF',_0x3a2e98>0xc0){let _0x4a8fe7='',_0x5935da=0x0;for(let _0x4ccdef of _0x13437a){let _0x24c898=_0x27860b[_0x24fb60(0x343)](_0x4ccdef)[_0x24fb60(0x413)];if(_0x5935da+_0x24c898<=0xc0-_0x27860b[_0x24fb60(0x343)](_0x24fb60(0x2f0))[_0x24fb60(0x413)])_0x4a8fe7+=_0x4ccdef,_0x5935da+=_0x24c898;else{_0x4a8fe7+='...';break;}}_0x27860b[_0x24fb60(0x1b9)](_0x4a8fe7,0x4,0xf);}else _0x27860b['fillText'](_0x13437a,0x4,0xf);_0x27860b[_0x24fb60(0x209)]();}[_0x339b6f(0x220)](_0x5803ab){const _0x52ea1e=_0x339b6f;_0x4c44ce[_0x52ea1e(0x32f)](_0x5803ab,this);}};let _0x91abee='collab-text-anchor-';var _0x338f74=class{constructor(_0x5e9087,_0xc05dc4,_0x31697b,_0x592f1b){const _0x183fdd=_0x339b6f;this[_0x183fdd(0x191)]=_0x5e9087,this[_0x183fdd(0x313)]=_0xc05dc4,this['_docSkeleton']=_0x31697b,this[_0x183fdd(0x37b)]=_0x592f1b,_0x1050e7(this,_0x183fdd(0x196),[]),_0x1050e7(this,_0x183fdd(0x287),null),_0x1050e7(this,_0x183fdd(0x188),null),_0x1050e7(this,_0x183fdd(0x3e9),null),_0x1050e7(this,_0x183fdd(0x1af),null),_0x1050e7(this,_0x183fdd(0x1bc),null),this[_0x183fdd(0x190)]();}set[_0x339b6f(0x292)](_0x22f37c){const _0x63e7c8=_0x339b6f;_0x22f37c?(this[_0x63e7c8(0x3e9)]&&this[_0x63e7c8(0x3e9)][_0x63e7c8(0x37d)](),this['_textBubble']&&this[_0x63e7c8(0x188)][_0x63e7c8(0x1e3)]()):(this[_0x63e7c8(0x3e9)]&&this[_0x63e7c8(0x3e9)][_0x63e7c8(0x1e3)](),this[_0x63e7c8(0x188)]&&this[_0x63e7c8(0x188)][_0x63e7c8(0x37d)]());}[_0x339b6f(0x39e)](){const _0x19f252=_0x339b6f;for(let _0x204e7f of this[_0x19f252(0x196)])_0x204e7f[_0x19f252(0x39e)]();this['_textBubble']&&this['_textBubble'][_0x19f252(0x39e)](),this[_0x19f252(0x3e9)]&&this[_0x19f252(0x3e9)][_0x19f252(0x39e)](),this[_0x19f252(0x287)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x19f252(0x1bc)]();}[_0x339b6f(0x190)](){const _0x5e98aa=_0x339b6f;let {_docSkeleton:_0x1e82a5,_document:_0x42e02b}=this,{color:_0x4e3ff4,name:_0x467f6d,ranges:_0x158c5a}=this[_0x5e98aa(0x191)],_0x1ba043=_0x42e02b[_0x5e98aa(0x2b0)](),{docsLeft:_0x7b334c,docsTop:_0x2e3919}=_0x1ba043,_0x112c69=new _0x1c6b1f['NodePositionConvertToCursor'](_0x1ba043,_0x1e82a5);for(let {startOffset:_0xf8b5b1,endOffset:_0x5d8d77,rangeType:_0x4292a7,segmentId:_0x5daebb,segmentPage:_0x349a6d,collapsed:_0x50c225,isActive:_0x5362b5}of _0x158c5a){let _0x362aef=_0x1e82a5['findNodePositionByCharIndex'](_0xf8b5b1,!0x0,_0x5daebb,_0x349a6d),_0x50ad21=_0x1e82a5[_0x5e98aa(0x167)](_0x5d8d77,!0x0,_0x5daebb,_0x349a6d);if(_0x50ad21==null&&(_0x50ad21=_0x1e82a5[_0x5e98aa(0x167)](_0x5d8d77-0x1,!0x1,_0x5daebb,_0x349a6d)),_0x5362b5){let {contentBoxPointGroup:_0x39fc84}=_0x112c69[_0x5e98aa(0x352)](_0x50ad21,_0x50ad21);if(_0x39fc84[_0x5e98aa(0x231)]===0x0)continue;this[_0x5e98aa(0x3ed)](_0x4e3ff4,_0x39fc84,_0x7b334c,_0x2e3919,_0x467f6d),this[_0x5e98aa(0x1bc)]=this[_0x5e98aa(0x305)]();}if(_0x362aef&&_0x50ad21){if(_0x4292a7===_0x1d062f['DOC_RANGE_TYPE'][_0x5e98aa(0x390)]){var _0x5f275d;let {pointGroup:_0x51e215}=(_0x5f275d=new _0x1c6b1f[(_0x5e98aa(0x1f6))](_0x1ba043,_0x1e82a5)[_0x5e98aa(0x352)](_0x362aef,_0x50ad21))==null?{}:_0x5f275d;if(_0x51e215==null||_0x51e215['length']===0x0)continue;this[_0x5e98aa(0x2fe)](_0x4e3ff4,_0x51e215,_0x7b334c,_0x2e3919);}else{if(!_0x50c225){let {borderBoxPointGroup:_0x25b057}=_0x112c69[_0x5e98aa(0x352)](_0x362aef,_0x50ad21);if(_0x25b057[_0x5e98aa(0x231)]===0x0)continue;this[_0x5e98aa(0x1d3)](_0x4e3ff4,_0x25b057,_0x7b334c,_0x2e3919);}}}}}[_0x339b6f(0x3ed)](_0x56916f,_0x4f1579,_0x1b85a5,_0x1cae80,_0x8fd2ed){const _0x35111d=_0x339b6f;let {left:_0x2fb7c9,top:_0x3ee6ff,height:_0x90ae99}=this['_getAnchorBounding'](_0x4f1579),_0x18d432=1.5/this[_0x35111d(0x3bf)](),_0x29a359=new _0xc630f2[(_0x35111d(0x2eb))](_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80,'height':_0x90ae99,'width':1.5,'fill':_0x56916f||(0x0,_0xc630f2[_0x35111d(0x1e5)])(_0x1d062f[_0x35111d(0x403)][_0x35111d(0x206)],0x0),'strokeWidth':_0x18d432,'stroke':_0x35111d(0x23d),'evented':!0x0});this[_0x35111d(0x287)]=_0x29a359,this[_0x35111d(0x313)]['addObject'](_0x29a359,_0x1c6b1f[_0x35111d(0x247)]);let _0xf01dc0=new _0xc630f2[(_0x35111d(0x2eb))](_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x56916f||(0x0,_0xc630f2[_0x35111d(0x1e5)])(_0x1d062f[_0x35111d(0x403)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x56916f||(0x0,_0xc630f2['getColor'])(_0x1d062f[_0x35111d(0x403)][_0x35111d(0x206)],0x0),'evented':!0x1});this[_0x35111d(0x3e9)]=_0xf01dc0,this[_0x35111d(0x313)][_0x35111d(0x39a)](_0xf01dc0,_0x1c6b1f[_0x35111d(0x247)]);let _0x3f32b2=new _0x34d0f3(_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80-0x14,'text':_0x8fd2ed,'color':_0x56916f});this['_textBubble']=_0x3f32b2,this[_0x35111d(0x313)][_0x35111d(0x39a)](_0x3f32b2,_0x1c6b1f['TEXT_RANGE_LAYER_INDEX']),this[_0x35111d(0x292)]=!0x1;}[_0x339b6f(0x305)](){const _0x2b9ef2=_0x339b6f;let _0x187e89=this['_anchor']['onPointerEnter$'][_0x2b9ef2(0x31b)](()=>{const _0x4e7203=_0x2b9ef2;this[_0x4e7203(0x292)]=!0x0;}),_0x29ef8e=this[_0x2b9ef2(0x287)][_0x2b9ef2(0x149)][_0x2b9ef2(0x31b)](()=>{const _0x1e4380=_0x2b9ef2;this[_0x1e4380(0x1af)]&&clearTimeout(this[_0x1e4380(0x1af)]),this[_0x1e4380(0x1af)]=setTimeout(()=>{const _0xf19f7a=_0x1e4380;this[_0xf19f7a(0x292)]=!0x1;},0x7d0);});return()=>{const _0x1003d6=_0x2b9ef2;_0x187e89[_0x1003d6(0x171)](),_0x29ef8e[_0x1003d6(0x171)]();};}[_0x339b6f(0x1d3)](_0x2080d9,_0x48d8a1,_0x566d0b,_0xe5c0c1){const _0x4d9430=_0x339b6f;let _0x54cdd8=0.2,_0x34d3c9=new _0x1d062f[(_0x4d9430(0x329))](_0x2080d9)[_0x4d9430(0x3ac)](_0x54cdd8)['toRgbString'](),_0x39ebf6=new _0xc630f2[(_0x4d9430(0x14d))]('collab-text-range-'+(0x0,_0x1d062f[_0x4d9430(0x409)])(0x6),{'pointsGroup':_0x48d8a1,'fill':_0x34d3c9||(0x0,_0xc630f2[_0x4d9430(0x1e5)])(_0x1d062f[_0x4d9430(0x403)][_0x4d9430(0x206)],_0x54cdd8),'left':_0x566d0b,'top':_0xe5c0c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4d9430(0x196)][_0x4d9430(0x411)](_0x39ebf6),this['_scene'][_0x4d9430(0x39a)](_0x39ebf6,_0x1c6b1f['TEXT_RANGE_LAYER_INDEX']);}[_0x339b6f(0x2fe)](_0x255656,_0x5750bf,_0x5bcdd7,_0x41bb2a){const _0x1d6606=_0x339b6f;let _0x3d38e3=0.2,_0x5e9ae9=new _0x1d062f[(_0x1d6606(0x329))](_0x255656)[_0x1d6606(0x3ac)](_0x3d38e3)['toRgbString'](),_0x9964be=new _0xc630f2[(_0x1d6606(0x14d))]('collab-rect-range-'+(0x0,_0x1d062f[_0x1d6606(0x409)])(0x6),{'pointsGroup':_0x5750bf,'fill':_0x5e9ae9||(0x0,_0xc630f2[_0x1d6606(0x1e5)])(_0x1d062f[_0x1d6606(0x403)][_0x1d6606(0x206)],_0x3d38e3),'left':_0x5bcdd7,'top':_0x41bb2a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d6606(0x196)]['push'](_0x9964be),this[_0x1d6606(0x313)]['addObject'](_0x9964be,_0x1c6b1f[_0x1d6606(0x247)]);}['_getAnchorBounding'](_0x20680e){let _0x4602fd=_0x20680e[0x0],_0x5c4761=_0x4602fd[0x0],_0x40effb=_0x4602fd[0x2],{x:_0x16f44a,y:_0x5e0f32}=_0x5c4761,{x:_0x592753,y:_0xf3348a}=_0x40effb;return{'left':_0x16f44a,'top':_0x5e0f32,'width':_0x592753-_0x16f44a,'height':_0xf3348a-_0x5e0f32};}[_0x339b6f(0x3bf)](){const _0x198b39=_0x339b6f;let {scaleX:_0x2c2852,scaleY:_0x265997}=this['_scene'][_0x198b39(0x38e)]();return Math[_0x198b39(0x1fc)](_0x2c2852,_0x265997);}};let _0x1993ee=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x88c1a5,_0x193bf8,_0x27b4a7,_0x723228,_0x12da7f){const _0x4ad199=_0x339b6f;super(),this['_context']=_0x88c1a5,this['_docSkeletonManagerService']=_0x193bf8,this[_0x4ad199(0x215)]=_0x27b4a7,this[_0x4ad199(0x3a4)]=_0x723228,this[_0x4ad199(0x30b)]=_0x12da7f,_0x1050e7(this,'_cursorShapes',[]),_0x1050e7(this,_0x4ad199(0x245),[]),this['_init']();}['_init'](){const _0x5d2460=_0x339b6f;let _0x44aa23=this[_0x5d2460(0x35b)]['unitId'],_0x4af419=this['_docSkeletonManagerService'];this[_0x5d2460(0x18c)]((0x0,_0x5df150[_0x5d2460(0x2a1)])([this['_collabCursorController'][_0x5d2460(0x1a2)](_0x44aa23),this[_0x5d2460(0x30b)][_0x5d2460(0x248)]])['pipe']((0x0,_0x231056[_0x5d2460(0x19d)])(([_0x2b6632,_0x1fafed])=>({'skeleton':_0x4af419[_0x5d2460(0x207)](),'cursors':[..._0x2b6632[_0x5d2460(0x2a6)]()][_0x5d2460(0x249)](_0x28a922=>({..._0x28a922,'color':this[_0x5d2460(0x30b)][_0x5d2460(0x306)](_0x28a922[_0x5d2460(0x230)])}))})))[_0x5d2460(0x3cd)](_0x4d0912=>{const _0x11d5c5=_0x5d2460;if(this[_0x11d5c5(0x2ff)](),_0x4d0912){let {skeleton:_0xf23851,cursors:_0x3aa0fc}=_0x4d0912;this[_0x11d5c5(0x166)](_0xf23851,_0x3aa0fc);}})),this[_0x5d2460(0x27c)](),this[_0x5d2460(0x2f8)]();}[_0x339b6f(0x166)](_0x36a711,_0x1255cd){const _0x32fcfa=_0x339b6f;let {scene:_0x4fdbe4,mainComponent:_0x296da2}=this[_0x32fcfa(0x35b)],_0x5db0fc=_0x1255cd['map'](_0x648431=>new _0x338f74(_0x648431,_0x4fdbe4,_0x36a711,_0x296da2));this['_cursorShapes']=_0x5db0fc,this['_cursors']=_0x1255cd;}[_0x339b6f(0x22f)](){const _0x21436e=_0x339b6f;this[_0x21436e(0x2ff)]();let {scene:_0xa93df9,mainComponent:_0x1747cb}=this[_0x21436e(0x35b)],_0x2c45af=this['_docSkeletonManagerService'][_0x21436e(0x207)](),_0x19c356=this[_0x21436e(0x245)][_0x21436e(0x19d)](_0x428f1b=>new _0x338f74(_0x428f1b,_0xa93df9,_0x2c45af,_0x1747cb));this[_0x21436e(0x195)]=_0x19c356;}[_0x339b6f(0x2ff)](){const _0x4cfbc6=_0x339b6f;this[_0x4cfbc6(0x195)][_0x4cfbc6(0x159)](_0x5770df=>_0x5770df['dispose']()),this[_0x4cfbc6(0x195)]=[];}[_0x339b6f(0x2f8)](){const _0x3c3358=_0x339b6f;let _0x2ab33d=[_0x1c6b1f['SetDocZoomRatioOperation']['id']];this[_0x3c3358(0x18c)](this[_0x3c3358(0x3a4)][_0x3c3358(0x1b0)](_0x3661ca=>{const _0x1e1b5f=_0x3c3358;_0x2ab33d[_0x1e1b5f(0x40a)](_0x3661ca['id'])&&_0x3661ca[_0x1e1b5f(0x3c9)][_0x1e1b5f(0x24e)]===this[_0x1e1b5f(0x35b)][_0x1e1b5f(0x24e)]&&this['_refreshCollabCursors']();}));}[_0x339b6f(0x27c)](){const _0x241846=_0x339b6f;this[_0x241846(0x18c)]((0x0,_0x1d062f['fromEventSubject'])(this['_context']['engine'][_0x241846(0x370)])[_0x241846(0x300)]((0x0,_0x231056[_0x241846(0x361)])(_0x3115ed=>_0x3115ed['type']===_0xc630f2[_0x241846(0x163)][_0x241846(0x285)]),(0x0,_0x231056['throttleTime'])(0x10))[_0x241846(0x3cd)](()=>{const _0x2f5ceb=_0x241846;this[_0x2f5ceb(0x22f)]();}));}};_0x1993ee=_0x8db4f3([_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x55d528[_0x339b6f(0x386)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0xe35be2)),_0x21c55a(0x3,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x26c)]))],_0x1993ee);var _0x56d40a=class extends _0xc630f2[_0x339b6f(0x17e)]{constructor(_0x3e708d,_0x5a1a75){const _0x1cf65c=_0x339b6f;if(super(_0x3e708d,_0x5a1a75),_0x1050e7(this,_0x1cf65c(0x254),void 0x0),_0x1050e7(this,'_hovered',!0x1),_0x1050e7(this,_0x1cf65c(0x3b1),void 0x0),_0x1050e7(this,_0x1cf65c(0x273),''),_0x1050e7(this,_0x1cf65c(0x173),'top'),_0x1050e7(this,_0x1cf65c(0x350),void 0x0),_0x1050e7(this,_0x1cf65c(0x3ba),void 0x0),_0x1050e7(this,_0x1cf65c(0x1e8),void 0x0),_0x1050e7(this,_0x1cf65c(0x368),0x4),_0x1050e7(this,_0x1cf65c(0x32e),void 0x0),_0x1050e7(this,_0x1cf65c(0x260),void 0x0),_0x1050e7(this,_0x1cf65c(0x2e7),!0x0),_0x1050e7(this,_0x1cf65c(0x407),0x0),_0x5a1a75){var _0x321109;if(this[_0x1cf65c(0x416)](_0x5a1a75),_0x5a1a75['highlight']&&((_0x321109=_0x5a1a75['highlightSecond'])==null?this['_highlightSecond']:_0x321109)){var _0x6ed8a8;this[_0x1cf65c(0x3a8)]((_0x6ed8a8=_0x5a1a75[_0x1cf65c(0x2c7)])==null?this[_0x1cf65c(0x368)]:_0x6ed8a8);}}this[_0x1cf65c(0x264)][_0x1cf65c(0x31b)](()=>this[_0x1cf65c(0x416)]({'hovered':!0x0})),this[_0x1cf65c(0x149)][_0x1cf65c(0x31b)](()=>this[_0x1cf65c(0x416)]({'hovered':!0x1}));}[_0x339b6f(0x1ce)](_0x467224){const _0x5df469=_0x339b6f;this[_0x5df469(0x407)]=_0x467224;}[_0x339b6f(0x416)](_0x4837e5){const _0x38d849=_0x339b6f;var _0x1e6750,_0x24f204,_0x25c658,_0x12e507,_0x70cf99,_0x570556,_0x32d3dc;this[_0x38d849(0x254)]=(_0x1e6750=_0x4837e5['color'])==null?this[_0x38d849(0x254)]:_0x1e6750,this[_0x38d849(0x355)]=(_0x24f204=_0x4837e5[_0x38d849(0x1ec)])==null?this[_0x38d849(0x355)]:_0x24f204,this[_0x38d849(0x3b1)]=(_0x25c658=_0x4837e5['range'])==null?this[_0x38d849(0x3b1)]:_0x25c658,this[_0x38d849(0x273)]=(_0x12e507=_0x4837e5['name'])==null?this[_0x38d849(0x273)]:_0x12e507,this[_0x38d849(0x173)]=(_0x70cf99=_0x4837e5[_0x38d849(0x18e)])==null?this[_0x38d849(0x173)]:_0x70cf99,this[_0x38d849(0x350)]=(_0x570556=_0x4837e5[_0x38d849(0x2d9)])==null?this[_0x38d849(0x350)]:_0x570556,this[_0x38d849(0x3ba)]=(_0x32d3dc=_0x4837e5[_0x38d849(0x2a2)])==null?this[_0x38d849(0x3ba)]:_0x32d3dc,_0x4837e5[_0x38d849(0x2c7)]!==void 0x0&&(this[_0x38d849(0x368)]=_0x4837e5['highlightSecond']),_0x4837e5[_0x38d849(0x34c)]!==void 0x0&&(this[_0x38d849(0x1e8)]=_0x4837e5['highlight']),_0x4837e5[_0x38d849(0x1d0)]!==void 0x0&&(this[_0x38d849(0x407)]=_0x4837e5[_0x38d849(0x1d0)]),this['transformByState']({'width':_0x4837e5[_0x38d849(0x413)],'height':_0x4837e5[_0x38d849(0x30c)]});}[_0x339b6f(0x3a9)](_0x474513){const _0x5494fb=_0x339b6f;let {row:_0x467bc4,column:_0x50747f}=_0x474513;if(_0x467bc4>=this[_0x5494fb(0x3b1)][_0x5494fb(0x284)]&&_0x467bc4<=this[_0x5494fb(0x3b1)][_0x5494fb(0x31c)]&&_0x50747f>=this[_0x5494fb(0x3b1)][_0x5494fb(0x19c)]&&_0x50747f<=this[_0x5494fb(0x3b1)][_0x5494fb(0x3bc)]){this[_0x5494fb(0x416)]({'hovered':!0x0});return;}this[_0x5494fb(0x416)]({'hovered':!0x1});}['_startBlinking'](_0x5e6455){const _0x1b948b=_0x339b6f;this[_0x1b948b(0x225)](),this[_0x1b948b(0x2e7)]=!0x0,this[_0x1b948b(0x260)]=window[_0x1b948b(0x327)](()=>{const _0x4b6939=_0x1b948b;this[_0x4b6939(0x2e7)]=!this[_0x4b6939(0x2e7)],this[_0x4b6939(0x385)](!0x0);},0x1f4),this[_0x1b948b(0x32e)]=window[_0x1b948b(0x289)](()=>{const _0x35cab0=_0x1b948b;this[_0x35cab0(0x225)](),this[_0x35cab0(0x2e7)]=!0x0,this[_0x35cab0(0x385)](!0x0);},_0x5e6455*0x3e8);}[_0x339b6f(0x225)](){const _0x3fbba5=_0x339b6f;this['_blinkIntervalTimer']&&(window[_0x3fbba5(0x3c7)](this[_0x3fbba5(0x260)]),this['_blinkIntervalTimer']=void 0x0),this[_0x3fbba5(0x32e)]&&(window[_0x3fbba5(0x3a1)](this[_0x3fbba5(0x32e)]),this[_0x3fbba5(0x32e)]=void 0x0);}[_0x339b6f(0x2aa)](_0xfea44a){return!0x1;}[_0x339b6f(0x39e)](){const _0x20c5fc=_0x339b6f;this[_0x20c5fc(0x225)](),super['dispose']();}['_draw'](_0x7283e3){const _0x3ff28d=_0x339b6f;let _0x9a3419=this[_0x3ff28d(0x254)],_0x50c91b=this['_backgroundColor'];if(this[_0x3ff28d(0x1e8)]&&!this[_0x3ff28d(0x2e7)]&&(_0x9a3419=this['_getLighterColor'](this['_color']),_0x50c91b=this[_0x3ff28d(0x350)]?this[_0x3ff28d(0x344)](this['_backgroundColor']):void 0x0),_0xc630f2[_0x3ff28d(0x2eb)][_0x3ff28d(0x32f)](_0x7283e3,{'width':this[_0x3ff28d(0x413)],'height':this[_0x3ff28d(0x30c)],'strokeWidth':this[_0x3ff28d(0x2b5)]||1.5,'stroke':_0x9a3419,'evented':!0x1,'fill':_0x50c91b}),this[_0x3ff28d(0x355)]||this[_0x3ff28d(0x3ba)]){var _0x127c4c;_0x7283e3[_0x3ff28d(0x211)](),_0x7283e3[_0x3ff28d(0x27e)](0x1,0x0,0x0,0x1,this[_0x3ff28d(0x413)],(this[_0x3ff28d(0x173)]===_0x3ff28d(0x2d2)?0x0:-0x14)+((_0x127c4c=this[_0x3ff28d(0x407)])==null?0x0:_0x127c4c)),_0x34d0f3['drawWith'](_0x7283e3,{'text':this[_0x3ff28d(0x273)],'color':_0x9a3419}),_0x7283e3['restore']();}}[_0x339b6f(0x344)](_0x139957){const _0xda22b3=_0x339b6f;return _0x139957[_0xda22b3(0x20c)]('#')?_0xda22b3(0x161)+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x1,0x3),0x10)+',\x20'+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x3,0x5),0x10)+',\x20'+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x5,0x7),0x10)+_0xda22b3(0x383):_0x139957['startsWith'](_0xda22b3(0x1d7))?_0x139957[_0xda22b3(0x330)](/[\d.]+\)$/g,_0xda22b3(0x381)):_0x139957[_0xda22b3(0x20c)](_0xda22b3(0x278))?_0x139957[_0xda22b3(0x330)](_0xda22b3(0x278),'rgba')['replace'](')',_0xda22b3(0x383)):_0x139957;}};let _0x4439c2=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x5aa858,_0x197dc1,_0x5a883e,_0x26aca5){const _0x156d70=_0x339b6f;super(),this[_0x156d70(0x35b)]=_0x5aa858,this[_0x156d70(0x202)]=_0x197dc1,this['_collabCursorController']=_0x5a883e,this[_0x156d70(0x30b)]=_0x26aca5,_0x1050e7(this,_0x156d70(0x245),new Set()),_0x1050e7(this,'_lastPointer',null),_0x1050e7(this,_0x156d70(0x2da),null),this[_0x156d70(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x46f89f=_0x339b6f;this[_0x46f89f(0x202)]['currentSkeleton$']['pipe']((0x0,_0x231056[_0x46f89f(0x154)])(this['dispose$']),(0x0,_0x231056[_0x46f89f(0x288)])(_0x4fd524=>{const _0x3d20e5=_0x46f89f;if(_0x4fd524){let _0x387ebe=_0x4fd524[_0x3d20e5(0x1b5)];return(0x0,_0x5df150[_0x3d20e5(0x2a1)])(this['_collabCursorController'][_0x3d20e5(0x1a2)](this[_0x3d20e5(0x35b)][_0x3d20e5(0x24e)]),this['_themeService'][_0x3d20e5(0x248)])[_0x3d20e5(0x300)]((0x0,_0x231056['map'])(([_0x99b821,_0x307797])=>{const _0xb0baf0=_0x3d20e5;let _0x2fca83=new Map();return _0x99b821[_0xb0baf0(0x159)]((_0x489573,_0x36777f)=>{const _0x29b216=_0xb0baf0;if(_0x489573[_0x29b216(0x412)]===_0x387ebe){let _0x1cd818={..._0x489573};_0x1cd818[_0x29b216(0x230)]=this[_0x29b216(0x30b)][_0x29b216(0x306)](_0x489573[_0x29b216(0x230)]),_0x2fca83[_0x29b216(0x3e7)](_0x36777f,_0x1cd818);}}),{'skeleton':_0x4fd524,'cursors':_0x2fca83};}));}return(0x0,_0x5df150['of'])({'skeleton':null,'cursors':new Map()});}))[_0x46f89f(0x3cd)](({skeleton:_0x7162d7,cursors:_0x133604})=>{const _0x197001=_0x46f89f;this[_0x197001(0x2ff)](),_0x7162d7&&this['_updateCollabCursors'](_0x7162d7,_0x133604);}),this[_0x46f89f(0x18c)](this[_0x46f89f(0x202)]['currentSkeleton$'][_0x46f89f(0x300)]((0x0,_0x231056[_0x46f89f(0x154)])(this[_0x46f89f(0x23c)]))[_0x46f89f(0x3cd)](_0x50839a=>{const _0x493c5f=_0x46f89f;var _0x2f34ac;if(_0x50839a==null)return;(_0x2f34ac=this['_pointerMoveDisposable'])==null||_0x2f34ac[_0x493c5f(0x171)](),this[_0x493c5f(0x2da)]=null;let {skeleton:_0x5247f3}=_0x50839a,{scene:_0x38f524}=this[_0x493c5f(0x35b)];this[_0x493c5f(0x2da)]=_0x38f524[_0x493c5f(0x3eb)][_0x493c5f(0x31b)]((0x0,_0x1d062f[_0x493c5f(0x14e)])(_0x1c54a6=>{const _0x5598dd=_0x493c5f;var _0x482523,_0x4d0e83;let {offsetX:_0x3f9d5c,offsetY:_0x46f13d}=_0x1c54a6,{x:_0x537712,y:_0x25a320}=_0x38f524[_0x5598dd(0x1c0)](_0xc630f2[_0x5598dd(0x228)][_0x5598dd(0x28b)]([_0x3f9d5c,_0x46f13d])),{scaleX:_0x198e67,scaleY:_0x34a0a6}=_0x38f524[_0x5598dd(0x38e)](),_0x2d0742=_0x38f524['getViewport'](_0xc630f2[_0x5598dd(0x240)][_0x5598dd(0x415)]),_0x1a9fcc=_0x38f524[_0x5598dd(0x1f2)](_0xc630f2[_0x5598dd(0x228)][_0x5598dd(0x28b)]([_0x537712,_0x25a320]),_0x2d0742),_0x587547=_0x5247f3[_0x5598dd(0x237)](_0x3f9d5c,_0x46f13d,_0x198e67,_0x34a0a6,_0x1a9fcc);((_0x482523=this['_lastPointer'])==null?void 0x0:_0x482523['column'])===_0x587547['column']&&((_0x4d0e83=this['_lastPointer'])==null?void 0x0:_0x4d0e83[_0x5598dd(0x1cb)])===_0x587547[_0x5598dd(0x1cb)]||this[_0x5598dd(0x245)][_0x5598dd(0x159)](_0x13efa7=>{_0x13efa7['onMouseMove'](_0x587547);});},0x64));})),this[_0x46f89f(0x18c)]((0x0,_0x1d062f[_0x46f89f(0x1fe)])(()=>{const _0x1b7df1=_0x46f89f;var _0x765cc5;(_0x765cc5=this['_pointerMoveDisposable'])==null||_0x765cc5[_0x1b7df1(0x171)](),this[_0x1b7df1(0x2da)]=null;}));}['_updateCollabCursors'](_0x2e0e6f,_0x2d2c15){const _0x31fa6f=_0x339b6f;let _0x2fd09d=this[_0x31fa6f(0x202)]['getCurrentSkeleton']();if(!_0x2fd09d)return;let _0x5adae6=this['_getSheetObject']();if(!_0x5adae6)return;this['_cursors'][_0x31fa6f(0x159)](_0xf7ff08=>{const _0xe76bcc=_0x31fa6f;_0xf7ff08[_0xe76bcc(0x385)]();});let {scene:_0x5e06d3}=_0x5adae6,_0x170198=_0x14305e(Array[_0x31fa6f(0x324)](_0x2d2c15[_0x31fa6f(0x2a6)]()))['map'](_0x50635c=>{const _0x57ae3d=_0x31fa6f;let {color:_0x42d82c,range:_0x1136ce,name:_0x1305bc,selection:_0x3c2f0e,sheetID:_0x124f96}=_0x50635c,{startColumn:_0x1336f2,startRow:_0x17c438,endColumn:_0x18d925,endRow:_0x4bbe1f}=_0x1136ce,_0x24974a=(0x0,_0x5c8585[_0x57ae3d(0x315)])(_0x17c438,_0x1336f2,_0x5e06d3,_0x2fd09d),_0x3836df=(0x0,_0x5c8585['getCoordByCell'])(_0x4bbe1f,_0x18d925,_0x5e06d3,_0x2fd09d),{columnHeaderHeightAndMarginTop:_0x1b1d91}=_0x2fd09d,{startX:_0x34d5fd,startY:_0x145d84}=_0x24974a,{endX:_0x207e7d,endY:_0x73a516}=_0x3836df,_0x5855e3=_0x207e7d-_0x34d5fd,_0x5da4bd=_0x73a516-_0x145d84;return new _0x56d40a(_0x1305bc,{'labelPosition':_0x145d84-_0x1b1d91>=0x14?_0x57ae3d(0x332):_0x57ae3d(0x2d2),'sheetID':_0x124f96,'range':_0x1136ce,'color':_0x42d82c,'name':_0x1305bc,'selection':_0x3c2f0e,'left':_0x34d5fd,'top':_0x145d84,'width':_0x5855e3,'height':_0x5da4bd,'evented':!0x1,'zIndex':0x1389});});_0x5e06d3[_0x31fa6f(0x279)](_0x170198,0x1),this[_0x31fa6f(0x245)]=new Set(_0x170198);}[_0x339b6f(0x2ff)](){const _0x5b1665=_0x339b6f;var _0x213afd;(_0x213afd=this[_0x5b1665(0x245)])==null||_0x213afd[_0x5b1665(0x159)](_0x56189b=>_0x56189b[_0x5b1665(0x39e)]());}[_0x339b6f(0x1e1)](){const _0x20b7e6=_0x339b6f;return(0x0,_0x5c8585['getSheetObject'])(this[_0x20b7e6(0x35b)]['unit'],this['_context']);}};_0x4439c2=_0x8db4f3([_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x5c8585[_0x339b6f(0x3fc)])),_0x21c55a(0x2,(0x0,_0x1d062f['Inject'])(_0xe35be2)),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x26c)]))],_0x4439c2);function _0x14305e(_0x214043){const _0x258499=_0x339b6f;let _0x58d0d4=new Map();return _0x214043['forEach'](_0x363679=>{const _0x2a4324=_0x405a;if(_0x58d0d4[_0x2a4324(0x377)](_0x363679['selection'])){let _0xeff4e8=_0x58d0d4[_0x2a4324(0x3fe)](_0x363679[_0x2a4324(0x304)]);_0xeff4e8[_0x2a4324(0x318)]+=',\x20'+_0x363679[_0x2a4324(0x318)];}else _0x58d0d4[_0x2a4324(0x3e7)](_0x363679[_0x2a4324(0x304)],_0x363679);}),Array[_0x258499(0x324)](_0x58d0d4[_0x258499(0x2a6)]());}let _0x1e8c36=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x2c6cb4,_0x1d891d,_0x277eb8,_0x5d25d7,_0x4eb37b,_0x4da8f8){const _0x35db21=_0x339b6f;super(),this[_0x35db21(0x1a0)]=_0x2c6cb4,this[_0x35db21(0x427)]=_0x1d891d,this[_0x35db21(0x39f)]=_0x277eb8,this[_0x35db21(0x1bb)]=_0x5d25d7,this[_0x35db21(0x2fb)]=_0x4eb37b,this['_localeService']=_0x4da8f8,this[_0x35db21(0x23b)](),this[_0x35db21(0x1e9)]();}[_0x339b6f(0x23b)](){const _0x4734a0=_0x339b6f;this[_0x4734a0(0x18c)](this[_0x4734a0(0x1a0)][_0x4734a0(0x24b)](()=>{const _0x11f2ef=_0x4734a0;if(this[_0x11f2ef(0x427)][_0x11f2ef(0x35c)][_0x11f2ef(0x3ea)])return this[_0x11f2ef(0x23e)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x339b6f(0x1e9)](){const _0x381047=_0x339b6f;this[_0x381047(0x18c)](this['_collaborationUIEventService'][_0x381047(0x21e)][_0x381047(0x3cd)](_0x5d6460=>{const _0x5b3aad=_0x381047;_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)]['OTHER_CLIENT_EDITING']&&this[_0x5b3aad(0x1bb)]['show']({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this['_localeService']['t'](_0x5b3aad(0x2ed))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x262)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x360)]&&this[_0x5b3aad(0x2fb)][_0x5b3aad(0x1e3)]({'title':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x338)),'content':this['_localeService']['t'](_0x5b3aad(0x1ed)),'type':_0x5b3aad(0x40d),'duration':0x0}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x1d9)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x178)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.closeRoom')+'('+_0x5d6460[_0x5b3aad(0x33e)]+')'}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x1eb)]&&this['_messageService']['show']({'type':_0x36848a['MessageType'][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5d6460['data']||'')}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x283)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x192))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x251)]&&this[_0x5b3aad(0x1bb)]['show']({'type':_0x36848a['MessageType'][_0x5b3aad(0x178)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x366))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x356)]&&this['_messageService'][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x178)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x1f1))});}));}};_0x1e8c36=_0x8db4f3([_0x21c55a(0x0,_0x25f9de['IBeforeCloseService']),_0x21c55a(0x1,_0x20efb1[_0x339b6f(0x2a5)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2e2)])),_0x21c55a(0x3,_0x25f9de[_0x339b6f(0x169)]),_0x21c55a(0x4,_0x25f9de[_0x339b6f(0x2ad)]),_0x21c55a(0x5,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x142)]))],_0x1e8c36);let _0x5f31b3={},_0x2f9daa=class{constructor(_0x2741df,_0x327435){const _0x39b9b8=_0x339b6f;this[_0x39b9b8(0x3d2)]=_0x2741df,this[_0x39b9b8(0x2e0)]=_0x327435;}[_0x339b6f(0x226)](_0x324f4a){const _0x2b67e7=_0x339b6f;this[_0x2b67e7(0x32c)](_0x324f4a),this[_0x2b67e7(0x3ae)](_0x324f4a);}[_0x339b6f(0x301)](_0x11bec9){const _0x47b126=_0x339b6f;let {unitID:_0x2ba42f}=_0x11bec9,{redoCache:_0x3ad925}=this['_renderManagerService']['getRenderById'](_0x2ba42f)['with'](_0x1c6b1f[_0x47b126(0x175)])['getUndoRedoMutationParamsCache']();if(_0x3ad925['length']===0x0)return _0x11bec9;let _0x3e60ea=_0x1d062f[_0x47b126(0x3da)][_0x47b126(0x2d7)](_0x11bec9[_0x47b126(0x17b)][0x0]);for(let _0x205a35=0x0;_0x205a35<_0x3ad925[_0x47b126(0x231)];_0x205a35++){let _0x47dda1={'id':_0x47b126(0x234),'params':{..._0x3ad925[_0x205a35]}},_0x57de10=this[_0x47b126(0x3d2)][_0x47b126(0x187)](_0x3e60ea,_0x47dda1,!0x1);if((0x0,_0x600789[_0x47b126(0x24c)])(_0x57de10))throw _0x57de10[_0x47b126(0x40d)];_0x3e60ea=_0x57de10[_0x47b126(0x15e)];}return{..._0x1d062f['Tools'][_0x47b126(0x2d7)](_0x11bec9),'mutations':[_0x3e60ea]};}[_0x339b6f(0x32c)](_0x492b3b){const _0x401a07=_0x339b6f;let {unitID:_0x38365e}=_0x492b3b,_0x23485d=this[_0x401a07(0x2e0)][_0x401a07(0x399)](_0x38365e)[_0x401a07(0x3f6)](_0x1c6b1f[_0x401a07(0x175)]),{undoCache:_0x39a1ce,redoCache:_0x43534f}=_0x23485d[_0x401a07(0x2d5)]();if(_0x39a1ce['length']===0x0||_0x43534f[_0x401a07(0x231)]===0x0)return;let _0x38b57e=[],_0x9ca92f=[],_0xd57ea7=_0x1d062f['Tools'][_0x401a07(0x2d7)](_0x492b3b[_0x401a07(0x17b)][0x0]),_0x216629=_0x1d062f['Tools'][_0x401a07(0x2d7)](_0x492b3b['mutations'][0x0]);for(let _0x736289=_0x39a1ce[_0x401a07(0x231)]-0x1;_0x736289>=0x0;_0x736289--){let _0x5a09a0={'id':_0x401a07(0x234),'params':{..._0x39a1ce[_0x736289]}},_0x577f11={'id':_0x401a07(0x234),'params':{..._0x43534f[_0x736289]}},_0x242413=this[_0x401a07(0x3d2)][_0x401a07(0x187)](_0xd57ea7,_0x5a09a0,!0x1),_0x577c45=this[_0x401a07(0x3d2)][_0x401a07(0x187)](_0x216629,_0x577f11,!0x1);if((0x0,_0x600789[_0x401a07(0x24c)])(_0x242413))throw _0x242413['error'];if((0x0,_0x600789[_0x401a07(0x24c)])(_0x577c45))throw _0x577c45['error'];_0x38b57e[_0x401a07(0x424)](_0x242413[_0x401a07(0x3b4)][_0x401a07(0x3c9)]),_0x9ca92f[_0x401a07(0x424)](_0x577c45[_0x401a07(0x3b4)][_0x401a07(0x3c9)]),_0xd57ea7=_0x242413['m1Prime'],_0x216629=_0x577c45[_0x401a07(0x15e)];}_0x23485d[_0x401a07(0x1b3)]({'undoCache':_0x38b57e,'redoCache':_0x9ca92f});}['_transformPreviousActiveRange'](_0x49d48b){const _0x5e088e=_0x339b6f;let {unitID:_0x2159e1}=_0x49d48b,_0x5d9a60=this[_0x5e088e(0x2e0)]['getRenderById'](_0x2159e1)[_0x5e088e(0x3f6)](_0x1c6b1f[_0x5e088e(0x175)]),_0x44a3af=_0x5d9a60[_0x5e088e(0x303)]();if(_0x44a3af==null)return;let _0x17f4ca=[{'id':_0x5e088e(0x234),'params':{'unitId':_0x49d48b[_0x5e088e(0x310)],'actions':null,'textRanges':[_0x44a3af]}}],_0x4ec8b=this[_0x5e088e(0x3d2)][_0x5e088e(0x184)](_0x49d48b,_0x17f4ca);if(!(0x0,_0x600789['isTransformMutationsWithChangesetSuccess'])(_0x4ec8b))throw _0x4ec8b[_0x5e088e(0x40d)];let _0x191347=_0x4ec8b[_0x5e088e(0x3b4)][0x0][_0x5e088e(0x3c9)]['textRanges'];Array[_0x5e088e(0x1df)](_0x191347)&&_0x191347[_0x5e088e(0x231)]&&_0x5d9a60['setActiveRange'](_0x191347[0x0]);}};_0x2f9daa=_0x8db4f3([_0x21c55a(0x0,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x1,_0xc630f2['IRenderManagerService'])],_0x2f9daa);let _0x426fe9=class{constructor(_0x392e73,_0x3ddf02,_0x411458){const _0x3b9d28=_0x339b6f;this[_0x3b9d28(0x405)]=_0x392e73,this[_0x3b9d28(0x3d2)]=_0x3ddf02,this[_0x3b9d28(0x373)]=_0x411458;}[_0x339b6f(0x36e)](_0x6a4abd){const _0x298426=_0x339b6f;this[_0x298426(0x25c)](_0x6a4abd);}[_0x339b6f(0x301)](_0x481db4){const _0x437648=_0x339b6f;let {unitID:_0xc15899}=_0x481db4,{collaboration:_0x29d757}=this[_0x437648(0x373)][_0x437648(0x3dd)](_0xc15899);if(_0x29d757[_0x437648(0x231)]===0x0)return _0x481db4;let _0x56b176=_0x1d062f[_0x437648(0x3da)]['deepClone'](_0x481db4[_0x437648(0x17b)][0x0]);for(let _0x2fc5a8=0x0;_0x2fc5a8<_0x29d757[_0x437648(0x231)];_0x2fc5a8++){let _0x5d2ed4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29d757[_0x2fc5a8][_0x437648(0x24e)],..._0x29d757[_0x2fc5a8]['redoState']}},_0x25f5db=this[_0x437648(0x3d2)][_0x437648(0x187)](_0x56b176,_0x5d2ed4,!0x1);if((0x0,_0x600789['isTransformMutationFailure'])(_0x25f5db))throw _0x25f5db[_0x437648(0x40d)];_0x56b176=_0x25f5db[_0x437648(0x15e)];}return{..._0x1d062f[_0x437648(0x3da)][_0x437648(0x2d7)](_0x481db4),'mutations':[_0x56b176]};}[_0x339b6f(0x25c)](_0x1c965a){const _0x3aeea4=_0x339b6f;let {unitID:_0x2ea3df}=_0x1c965a,{history:_0x1fcceb,collaboration:_0x11ac62}=this['_docStateChangeManagerService'][_0x3aeea4(0x3dd)](_0x2ea3df);if(_0x1fcceb[_0x3aeea4(0x231)]===0x0&&_0x11ac62['length']===0x0)return;let _0x4286ad=[],_0x52c9d3=[],_0x4febd4=_0x1d062f[_0x3aeea4(0x3da)]['deepClone'](_0x1c965a[_0x3aeea4(0x17b)][0x0]),_0x22c69c=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a['mutations'][0x0]);for(let _0x1b98f9=_0x1fcceb[_0x3aeea4(0x231)]-0x1;_0x1b98f9>=0x0;_0x1b98f9--){let _0x2a4586={'id':_0x3aeea4(0x234),'params':{'unitId':_0x1fcceb[_0x1b98f9][_0x3aeea4(0x24e)],..._0x1fcceb[_0x1b98f9]['undoState']}},_0x8bd0ae={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fcceb[_0x1b98f9][_0x3aeea4(0x24e)],..._0x1fcceb[_0x1b98f9][_0x3aeea4(0x2af)]}},_0x52f0b5=this[_0x3aeea4(0x3d2)][_0x3aeea4(0x187)](_0x4febd4,_0x2a4586,!0x1),_0x545380=this['_transformService'][_0x3aeea4(0x187)](_0x22c69c,_0x8bd0ae,!0x1);if((0x0,_0x600789['isTransformMutationFailure'])(_0x52f0b5))throw _0x52f0b5['error'];if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x545380))throw _0x545380[_0x3aeea4(0x40d)];_0x4286ad['unshift']({..._0x1fcceb[_0x1b98f9],'undoState':_0x52f0b5[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)],'redoState':_0x545380[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)]}),_0x4febd4=_0x52f0b5[_0x3aeea4(0x15e)],_0x22c69c=_0x545380[_0x3aeea4(0x15e)];}_0x4febd4=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a[_0x3aeea4(0x17b)][0x0]),_0x22c69c=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a[_0x3aeea4(0x17b)][0x0]);for(let _0x21ab90=_0x11ac62[_0x3aeea4(0x231)]-0x1;_0x21ab90>=0x0;_0x21ab90--){let _0x372d9f={'id':_0x3aeea4(0x234),'params':{'unitId':_0x11ac62[_0x21ab90][_0x3aeea4(0x24e)],..._0x11ac62[_0x21ab90][_0x3aeea4(0x1ee)]}},_0x4b4554={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11ac62[_0x21ab90][_0x3aeea4(0x24e)],..._0x11ac62[_0x21ab90][_0x3aeea4(0x2af)]}},_0x53801d=this['_transformService'][_0x3aeea4(0x187)](_0x4febd4,_0x372d9f,!0x1),_0x3291c5=this[_0x3aeea4(0x3d2)][_0x3aeea4(0x187)](_0x22c69c,_0x4b4554,!0x1);if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x53801d))throw _0x53801d[_0x3aeea4(0x40d)];if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x3291c5))throw _0x3291c5['error'];_0x52c9d3[_0x3aeea4(0x424)]({..._0x11ac62[_0x21ab90],'undoState':_0x53801d['m2Prime'][_0x3aeea4(0x3c9)],'redoState':_0x3291c5[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)]}),_0x4febd4=_0x53801d[_0x3aeea4(0x15e)],_0x22c69c=_0x3291c5['m1Prime'];}this[_0x3aeea4(0x373)][_0x3aeea4(0x2f7)](_0x2ea3df,{'history':_0x4286ad,'collaboration':_0x52c9d3});}};_0x426fe9=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f['Injector'])),_0x21c55a(0x1,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1c6b1f[_0x339b6f(0x419)]))],_0x426fe9);let _0x330553=class{constructor(_0x390cb1,_0x3697b3){const _0x38e567=_0x339b6f;this[_0x38e567(0x405)]=_0x390cb1,this[_0x38e567(0x3d2)]=_0x3697b3;}[_0x339b6f(0x2ec)](_0xd35342){const _0x1e3021=_0x339b6f;var _0x44d473;let _0x22b9d1=this[_0x1e3021(0x405)][_0x1e3021(0x3fe)](_0x55d528[_0x1e3021(0x3a6)]),_0x31d66f=(_0x44d473=_0x22b9d1[_0x1e3021(0x357)]())==null?[]:_0x44d473;if(_0x31d66f[_0x1e3021(0x231)]===0x0)return;let _0x124374=_0xd35342[_0x1e3021(0x310)],_0x3b5423=[{'id':_0x1e3021(0x234),'params':{'unitId':_0x124374,'actions':null,'textRanges':_0x31d66f}}],_0x1a0c05=this['_transformService'][_0x1e3021(0x184)](_0xd35342,_0x3b5423);if(!(0x0,_0x600789[_0x1e3021(0x20f)])(_0x1a0c05))throw _0x1a0c05[_0x1e3021(0x40d)];let _0x31b3a3=_0x1a0c05['m2Prime'][0x0][_0x1e3021(0x3c9)][_0x1e3021(0x2fd)];Array[_0x1e3021(0x1df)](_0x31b3a3)&&_0x31b3a3[_0x1e3021(0x231)]&&_0x22b9d1[_0x1e3021(0x2d0)](_0x31b3a3,{'unitId':_0x124374,'subUnitId':_0x124374},!0x1);}};_0x330553=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,_0x600789[_0x339b6f(0x1e6)])],_0x330553);let _0x3a0d44=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x4d3551,_0x55b83a,_0x49d61e,_0x24f92c,_0x17eda3,_0x46d60f,_0x5cf45c,_0x5e5aef){const _0x300022=_0x339b6f;super(),this[_0x300022(0x373)]=_0x4d3551,this[_0x300022(0x17a)]=_0x55b83a,this[_0x300022(0x19e)]=_0x49d61e,this[_0x300022(0x25f)]=_0x24f92c,this[_0x300022(0x1c4)]=_0x17eda3,this[_0x300022(0x290)]=_0x46d60f,this[_0x300022(0x1bb)]=_0x5cf45c,this[_0x300022(0x23e)]=_0x5e5aef,_0x1050e7(this,_0x300022(0x396),new _0x5df150[(_0x300022(0x2ef))](_0x20efb1[_0x300022(0x1c7)][_0x300022(0x153)])),this['_initEntityListener']();}[_0x339b6f(0x32a)](){const _0x1537af=_0x339b6f;this[_0x1537af(0x18c)](this[_0x1537af(0x17a)][_0x1537af(0x232)][_0x1537af(0x3cd)](_0x499291=>{const _0x191c11=_0x1537af;let _0x1ada58=this[_0x191c11(0x373)][_0x191c11(0x16e)][_0x191c11(0x3cd)](_0x22e692=>{const _0xa29cb9=_0x191c11;if(_0x22e692==null)return;let {unitId:_0x25e4a6,redoState:_0x355919,commandId:_0x4d83bf}=_0x22e692;if(_0x25e4a6!==_0x499291[_0xa29cb9(0x310)])return;let _0x5b364a={'id':_0x4d83bf,'type':_0x1d062f['CommandType'][_0xa29cb9(0x400)],'params':{'unitId':_0x25e4a6,'actions':_0x355919[_0xa29cb9(0x210)],'textRanges':null}};_0x499291['onLocalMutation'](_0x5b364a);});_0x499291[_0x191c11(0x18c)](_0x1ada58),_0x499291 instanceof _0x20efb1[_0x191c11(0x28c)]&&_0x499291[_0x191c11(0x342)]({'onTransformIME':_0x3a9e1c=>this['_docTransformIMECacheService'][_0x191c11(0x226)](_0x3a9e1c),'onTransformState':_0x5016b6=>this['_docTransformStateCacheService'][_0x191c11(0x36e)](_0x5016b6),'onTransformSelections':_0x3f489f=>this[_0x191c11(0x1c4)][_0x191c11(0x2ec)](_0x3f489f),'onSyncEditingCollabCursor':_0x311b8a=>this[_0x191c11(0x290)]['syncEditingCollabCursor'](_0x311b8a),'onTransformRemoteChangesetByIMECache':_0x8ef852=>this[_0x191c11(0x19e)][_0x191c11(0x301)](_0x8ef852),'onTransformRemoteChangesetByStateCache':_0x386cfe=>this[_0x191c11(0x25f)][_0x191c11(0x301)](_0x386cfe)});}));}};_0x3a0d44=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1c6b1f[_0x339b6f(0x419)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x275)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2f9daa)),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x426fe9)),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x330553)),_0x21c55a(0x5,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2b1e68)),_0x21c55a(0x6,_0x25f9de[_0x339b6f(0x169)]),_0x21c55a(0x7,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x142)]))],_0x3a0d44);let _0x133a91=class extends _0x1d062f['Disposable']{constructor(_0x4f2ef7,_0x29c3ed,_0x246272,_0x422068){const _0x1e3785=_0x339b6f;super(),this['_injector']=_0x4f2ef7,this[_0x1e3785(0x1c9)]=_0x29c3ed,this[_0x1e3785(0x1dc)]=_0x246272,this[_0x1e3785(0x36f)]=_0x422068,_0x1050e7(this,'_memberID',void 0x0),this[_0x1e3785(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x1ce168=_0x339b6f;this[_0x1ce168(0x3c3)](),this[_0x1ce168(0x28f)](),this[_0x1ce168(0x2a4)](),this['_initUserListener']();}['_initUserListener'](){const _0x309475=_0x339b6f;this[_0x309475(0x18c)](this['_collaborationSessionService']['socket$']['subscribe'](_0x3056fb=>{const _0x106ba0=_0x309475;this[_0x106ba0(0x38d)]=_0x3056fb==null?void 0x0:_0x3056fb[_0x106ba0(0x227)];}));}['_initWindowErrorListener'](){const _0x3698d9=_0x339b6f;let _0x274490=_0x5d59e0=>{const _0xafe2b0=_0x405a;var _0x774674;this[_0xafe2b0(0x35d)](_0xafe2b0(0x40d),_0xafe2b0(0x156)+_0x5d59e0[_0xafe2b0(0x26a)]+_0xafe2b0(0x37c)+_0x5d59e0[_0xafe2b0(0x276)]+':'+_0x5d59e0[_0xafe2b0(0x143)]+':'+_0x5d59e0[_0xafe2b0(0x1b7)]+'\x0a'+(((_0x774674=_0x5d59e0['error'])==null?void 0x0:_0x774674['stack'])||''));};window[_0x3698d9(0x308)](_0x3698d9(0x40d),_0x274490),this[_0x3698d9(0x18c)](()=>{const _0x13d66b=_0x3698d9;window['removeEventListener'](_0x13d66b(0x40d),_0x274490);});}[_0x339b6f(0x28f)](){const _0x397889=_0x339b6f;let _0x3c52eb=_0x418a8a=>{const _0x3983ff=_0x405a;this['_uploadLog'](_0x3983ff(0x40d),_0x3983ff(0x223)+_0x418a8a[_0x3983ff(0x238)]);};window['addEventListener'](_0x397889(0x186),_0x3c52eb),this[_0x397889(0x18c)](()=>{window['removeEventListener']('unhandledrejection',_0x3c52eb);});}['_monkeyPatchLogService'](){const _0x2d8a4c=_0x339b6f;let _0x36803a=this[_0x2d8a4c(0x1dc)]['error'][_0x2d8a4c(0x2b9)](this['_logService']);this[_0x2d8a4c(0x1dc)][_0x2d8a4c(0x40d)]=(..._0x42bbb2)=>{const _0xf54ba0=_0x2d8a4c;let _0x4af86a=_0x42bbb2['map'](_0x2307ab=>_0x2307ab instanceof Error?_0x2307ab['message']+'\x0a'+_0x2307ab['stack']:String(_0x2307ab))[_0xf54ba0(0x179)]('\x20');this[_0xf54ba0(0x35d)](_0xf54ba0(0x40d),_0xf54ba0(0x14c)+_0x4af86a),_0x36803a(..._0x42bbb2);},this[_0x2d8a4c(0x18c)](()=>{const _0x85405d=_0x2d8a4c;this[_0x85405d(0x1dc)]['error']=_0x36803a;});}[_0x339b6f(0x35d)](_0x27fe6c,_0x1066b8){const _0xae86ce=_0x339b6f;try{let _0x2f9a91={'userId':this['_memberID'],'logLabel':_0x27fe6c,'content':_0x1066b8};this[_0xae86ce(0x1c9)][_0xae86ce(0x316)](_0xae86ce(0x322),{'body':_0x2f9a91})['catch'](()=>{});}catch{}}};_0x133a91=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2c2)]))],_0x133a91);function _0x17896e(_0xfb011e){const _0x3197ca=_0x339b6f;var _0x49ce74,_0x1f3606;let _0x57f78e=(_0x49ce74=_0xfb011e['stageInfo'])==null?void 0x0:_0x49ce74[_0x3197ca(0x218)],_0x3c1ec6=((_0x1f3606=_0xfb011e[_0x3197ca(0x212)])==null?void 0x0:_0x1f3606[_0x3197ca(0x39b)])||0x0;return _0x57f78e===_0x4f0b10[_0x3197ca(0x307)][_0x3197ca(0x425)]&&_0x3c1ec6>0x0;}function _0x5a7335(_0x3f5daf){const _0x3d4c3f=_0x339b6f;return _0x3f5daf[_0x3d4c3f(0x16d)]===_0x4f0b10['FormulaExecutedStateType'][_0x3d4c3f(0x1d1)];}let _0x21999d=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x30a0b3,_0x55ebcc,_0x3a59fd,_0x19214a,_0x14de31,_0x2923c0,_0x1aa21d){const _0x541a86=_0x339b6f;super(),this[_0x541a86(0x1bb)]=_0x30a0b3,this['_commandService']=_0x55ebcc,this[_0x541a86(0x3c6)]=_0x3a59fd,this[_0x541a86(0x1c9)]=_0x19214a,this[_0x541a86(0x30f)]=_0x14de31,this[_0x541a86(0x1dc)]=_0x2923c0,this[_0x541a86(0x23e)]=_0x1aa21d,_0x1050e7(this,_0x541a86(0x3f4),null),_0x1050e7(this,'_maxFormulaLimit',0x0),_0x1050e7(this,_0x541a86(0x2d8),0x0),_0x1050e7(this,_0x541a86(0x147),[]),_0x1050e7(this,_0x541a86(0x27b),0x0),this[_0x541a86(0x2db)]();}[_0x339b6f(0x2db)](){const _0xbfe04f=_0x339b6f;this['disposeWithMe'](this[_0xbfe04f(0x3a4)][_0xbfe04f(0x3b5)]((_0xc26415,_0x428a76)=>{const _0x2e75e9=_0xbfe04f;var _0x3f751a;if(_0xc26415['id']!==_0x4f0b10[_0x2e75e9(0x14a)]['id'])return;let _0xd83a07=_0xc26415[_0x2e75e9(0x3c9)];if(this[_0x2e75e9(0x2bc)]((_0x3f751a=_0xd83a07['dirtyRanges'])==null?[]:_0x3f751a)&&!this[_0x2e75e9(0x16b)]())throw this[_0x2e75e9(0x146)](_0xc26415,_0x428a76),this[_0x2e75e9(0x3e1)](),new _0x1d062f[(_0x2e75e9(0x20a))]();})),this[_0xbfe04f(0x18c)](this[_0xbfe04f(0x3a4)][_0xbfe04f(0x1b0)]((_0x1e0401,_0x28bf6c)=>{const _0x19148e=_0xbfe04f;if(_0x1e0401['id']!==_0x4f0b10[_0x19148e(0x1ae)]['id'])return;let _0x4078f4=_0x1e0401['params'];if(_0x17896e(_0x4078f4)){let _0x30277b=(0x0,_0x1d062f[_0x19148e(0x409)])();this[_0x19148e(0x147)][_0x19148e(0x411)](_0x30277b),this[_0x19148e(0x3bb)](_0x30277b);}else{if(_0x5a7335(_0x4078f4)&&this[_0x19148e(0x147)][_0x19148e(0x231)]>0x0){let _0x50360f=this[_0x19148e(0x147)][_0x19148e(0x35f)]();this[_0x19148e(0x182)](_0x50360f);}}}));}['dispose'](){const _0xd414e=_0x339b6f;super['dispose'](),this[_0xd414e(0x3d5)](),this[_0xd414e(0x147)]=[],this[_0xd414e(0x2d8)]=0x0,this[_0xd414e(0x323)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x390f1b,_0x3b5382){const _0xa7b8ec=_0x339b6f;for(let _0x11e5a1=0x0;_0x11e5a1<0x1e;_0x11e5a1++)try{if(await this[_0xa7b8ec(0x3e3)](),this[_0xa7b8ec(0x16b)]()){this[_0xa7b8ec(0x34e)](_0x390f1b,_0x3b5382),this[_0xa7b8ec(0x1bb)][_0xa7b8ec(0x1e3)]({'content':this[_0xa7b8ec(0x23e)]['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x36848a[_0xa7b8ec(0x1f7)][_0xa7b8ec(0x1f9)]});return;}await new Promise(_0x4e3076=>{const _0x4f5742=_0xa7b8ec;this[_0x4f5742(0x3f4)]=window[_0x4f5742(0x289)](_0x4e3076,0x3e8);});}catch(_0x35adf5){this[_0xa7b8ec(0x1dc)][_0xa7b8ec(0x40d)](_0x35adf5);}this[_0xa7b8ec(0x1bb)][_0xa7b8ec(0x1e3)]({'content':this[_0xa7b8ec(0x23e)]['t'](_0xa7b8ec(0x420)),'type':_0x36848a[_0xa7b8ec(0x1f7)]['Error']});}[_0x339b6f(0x34e)](_0x50289c,_0x515fcd){const _0xdc331e=_0x339b6f;try{this[_0xdc331e(0x3a4)]['executeCommand'](_0x50289c['id'],_0x50289c[_0xdc331e(0x3c9)],_0x515fcd);}catch(_0x5781db){this[_0xdc331e(0x1dc)][_0xdc331e(0x40d)](_0x5781db);}}[_0x339b6f(0x3ec)](_0x576e10,_0x2b5826){const _0x59959a=_0x339b6f;_0x2b5826<this[_0x59959a(0x27b)]||(this[_0x59959a(0x27b)]=_0x2b5826,this[_0x59959a(0x323)]=Number['parseInt'](_0x576e10['maxFormulaLimit']),this[_0x59959a(0x2d8)]=Number['parseInt'](_0x576e10['currentUsage']));}async[_0x339b6f(0x3bb)](_0x573beb){const _0x3e4852=_0x339b6f;let _0x5dabb5=Date['now']();try{var _0x294206,_0x67fa1d;let _0x5ea973=((_0x294206=this[_0x3e4852(0x3c6)]['getConfig'](_0x20efb1[_0x3e4852(0x371)]))==null?void 0x0:_0x294206[_0x3e4852(0x269)])||_0x3e4852(0x174),_0x3f9928=(await this['_httpService'][_0x3e4852(0x316)](_0x5ea973,{'body':JSON[_0x3e4852(0x145)]({'taskId':_0x573beb})}))[_0x3e4852(0x1d2)];if(((_0x67fa1d=_0x3f9928['error'])==null?void 0x0:_0x67fa1d[_0x3e4852(0x3bd)])!==_0x3c5971[_0x3e4852(0x363)]['OK'])return;this[_0x3e4852(0x3ec)](_0x3f9928[_0x3e4852(0x1fa)],_0x5dabb5);}catch(_0x12de09){this[_0x3e4852(0x1dc)][_0x3e4852(0x40d)](_0x12de09);}}async[_0x339b6f(0x3e3)](_0x3ee990){const _0x145f6c=_0x339b6f;let _0x2d030c=Date[_0x145f6c(0x2bd)]();try{var _0x3e14ff,_0x2b7697;let _0x3e3cdd=((_0x3e14ff=this[_0x145f6c(0x3c6)][_0x145f6c(0x302)](_0x20efb1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3e14ff[_0x145f6c(0x172)])||_0x145f6c(0x21c),_0x329c79=_0x3ee990?_0x3e3cdd+_0x145f6c(0x1db)+encodeURIComponent(_0x3ee990):_0x3e3cdd,_0xa3e691=(await this[_0x145f6c(0x1c9)]['get'](_0x329c79))['body'];if(((_0x2b7697=_0xa3e691['error'])==null?void 0x0:_0x2b7697['code'])!==_0x3c5971['ErrorCode']['OK'])return;this[_0x145f6c(0x3ec)](_0xa3e691['limitInfo'],_0x2d030c);}catch(_0x422d86){this['_logService'][_0x145f6c(0x40d)](_0x422d86);}}async['_releaseCalculationLimit'](_0x21580d){const _0x35351e=_0x339b6f;let _0x36d994=Date[_0x35351e(0x2bd)]();try{var _0x3f794f,_0x37d715;let _0x2b4d27=((_0x3f794f=this['_configService'][_0x35351e(0x302)](_0x20efb1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3f794f['releaseFormulaLimitUrl'])||_0x35351e(0x328),_0x452eb3=(await this[_0x35351e(0x1c9)][_0x35351e(0x316)](_0x2b4d27,{'body':JSON[_0x35351e(0x145)]({'taskId':_0x21580d})}))[_0x35351e(0x1d2)];if(((_0x37d715=_0x452eb3[_0x35351e(0x40d)])==null?void 0x0:_0x37d715[_0x35351e(0x3bd)])!==_0x3c5971[_0x35351e(0x363)]['OK'])return;this[_0x35351e(0x3ec)](_0x452eb3[_0x35351e(0x1fa)],_0x36d994);}catch(_0x485fb2){this[_0x35351e(0x1dc)][_0x35351e(0x40d)](_0x485fb2);}}[_0x339b6f(0x16b)](){const _0x3ea46e=_0x339b6f;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x3ea46e(0x323)]-this[_0x3ea46e(0x2d8)]>0x0;}['_clearPolling'](){const _0x353f22=_0x339b6f;this[_0x353f22(0x3f4)]&&(clearTimeout(this[_0x353f22(0x3f4)]),this['_pollingInterval']=null);}[_0x339b6f(0x3e1)](){const _0x488816=_0x339b6f;this[_0x488816(0x1bb)][_0x488816(0x1e3)]({'content':this[_0x488816(0x23e)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':_0x36848a['MessageType'][_0x488816(0x331)]});}['_hasFormulaInDirtyRanges'](_0xa44bb7){const _0x1fe6cf=_0x339b6f;for(let _0x13c7af of _0xa44bb7){let {unitId:_0x4f2220,sheetId:_0x3da177,range:_0xaf59d6}=_0x13c7af,_0x169b36=this[_0x1fe6cf(0x30f)]['getUnit'](_0x4f2220);if(!_0x169b36)continue;let _0x2a0af4=_0x169b36[_0x1fe6cf(0x3a2)](_0x3da177);if(!_0x2a0af4)continue;let _0x40b502=_0x2a0af4['getCellMatrix']();for(let _0x548f29=_0xaf59d6[_0x1fe6cf(0x284)];_0x548f29<=_0xaf59d6[_0x1fe6cf(0x31c)];_0x548f29++)for(let _0xb8748d=_0xaf59d6[_0x1fe6cf(0x19c)];_0xb8748d<=_0xaf59d6[_0x1fe6cf(0x3bc)];_0xb8748d++){let _0x1cf628=_0x40b502[_0x1fe6cf(0x359)](_0x548f29,_0xb8748d);if(_0x1cf628&&((0x0,_0x1d062f[_0x1fe6cf(0x365)])(_0x1cf628['f'])||(0x0,_0x1d062f[_0x1fe6cf(0x3e5)])(_0x1cf628['si'])))return!0x0;}}return!0x1;}};_0x21999d=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x25f9de[_0x339b6f(0x169)])),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x4,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x5,_0x1d062f['ILogService']),_0x21c55a(0x6,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x142)]))],_0x21999d);let _0x4e1f85=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x40be25,_0x41b3f6,_0x81d36e){const _0x1697ae=_0x339b6f;super(),this[_0x1697ae(0x3c6)]=_0x40be25,this['_localStorageService']=_0x41b3f6,this[_0x1697ae(0x258)]=_0x81d36e,_0x1050e7(this,_0x1697ae(0x2f4),new Map()),_0x1050e7(this,_0x1697ae(0x162),new Map()),_0x1050e7(this,_0x1697ae(0x2dc),!0x1);}[_0x339b6f(0x3f1)](){const _0x258f87=_0x339b6f;this[_0x258f87(0x2dc)]=!0x0;}['enableLocalCache'](){const _0x296eee=_0x339b6f;this[_0x296eee(0x2dc)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x339b6f(0x39e)](){const _0x3b42ce=_0x339b6f;this[_0x3b42ce(0x255)]()['then'](()=>super[_0x3b42ce(0x39e)]());}async[_0x339b6f(0x157)](_0x4f5397){const _0x4573d5=_0x339b6f;return this[_0x4573d5(0x2dc)]?null:this[_0x4573d5(0x320)][_0x4573d5(0x2e8)]((0x0,_0x20efb1['getLocalCacheKey'])(_0x4f5397));}async[_0x339b6f(0x1a8)](_0x3bc5db,_0x325d69){const _0x293bc2=_0x339b6f;return!!this[_0x293bc2(0x320)]['setItem'](_0x3bc5db,_0x325d69);}['updateOfflineData'](_0x482b61,_0x4d8a2e,_0x21323b,_0x2b5610){const _0x6a839f=_0x339b6f;let _0x454a52=this[_0x6a839f(0x258)]['getCurrentRevOfUnit'](_0x482b61);this['_cachedData'][_0x6a839f(0x3e7)](_0x482b61,{'unitID':_0x482b61,'type':_0x4d8a2e,'awaitingChangeset':_0x21323b,'mutations':_0x2b5610,'rev':_0x454a52}),this['_saveTaskMap'][_0x6a839f(0x377)](_0x482b61)||this[_0x6a839f(0x3ef)](_0x482b61);}['_scheduleSaving'](_0x58979e){const _0x5391d4=_0x339b6f;let _0x222a48=this[_0x5391d4(0x3df)]();_0x222a48===0x0?this[_0x5391d4(0x41d)](_0x58979e):this[_0x5391d4(0x162)][_0x5391d4(0x3e7)](_0x58979e,setTimeout(()=>this[_0x5391d4(0x41d)](_0x58979e),_0x222a48));}[_0x339b6f(0x3df)](){const _0x20bb51=_0x339b6f;var _0x27bd96;return(_0x27bd96=this[_0x20bb51(0x3c6)][_0x20bb51(0x302)](_0x20efb1[_0x20bb51(0x1ab)]))==null?_0x20efb1[_0x20bb51(0x29d)]:_0x27bd96;}[_0x339b6f(0x41d)](_0x2e3e75){const _0x1a1b7e=_0x339b6f;let _0x1737cd=this['_saveTaskMap'][_0x1a1b7e(0x3fe)](_0x2e3e75);return _0x1737cd!==void 0x0&&window[_0x1a1b7e(0x3a1)](_0x1737cd),this[_0x1a1b7e(0x320)][_0x1a1b7e(0x349)]((0x0,_0x20efb1[_0x1a1b7e(0x3d7)])(_0x2e3e75),this[_0x1a1b7e(0x2f4)][_0x1a1b7e(0x3fe)](_0x2e3e75))[_0x1a1b7e(0x3f8)](()=>this[_0x1a1b7e(0x162)][_0x1a1b7e(0x229)](_0x2e3e75));}async[_0x339b6f(0x255)](){const _0x1f3270=_0x339b6f;let _0x139d1a=[];this['_saveTaskMap'][_0x1f3270(0x159)]((_0xf8f7ac,_0xd565f7)=>{const _0x21add5=_0x1f3270;window[_0x21add5(0x3a1)](_0xf8f7ac),_0x139d1a['push'](this[_0x21add5(0x41d)](_0xd565f7)[_0x21add5(0x3f8)](()=>{const _0x1f9ec6=_0x21add5;this[_0x1f9ec6(0x162)][_0x1f9ec6(0x229)](_0xd565f7);}));}),await Promise[_0x1f3270(0x41b)](_0x139d1a);}};_0x4e1f85=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x194)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x600789['RevisionService']))],_0x4e1f85);var _0x5af43f=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(){const _0x4e9cec=_0x339b6f;super(),_0x1050e7(this,_0x4e9cec(0x2b2),void 0x0),this[_0x4e9cec(0x2b2)]=(0x0,_0x5df150[_0x4e9cec(0x1b2)])(window,_0x4e9cec(0x2e9))[_0x4e9cec(0x300)]((0x0,_0x5df150[_0x4e9cec(0x154)])(this[_0x4e9cec(0x23c)]),(0x0,_0x5df150['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,_0x5df150['mapTo'])(void 0x0));}[_0x339b6f(0x40b)](_0x24d715,_0x532df0,_0x7906d1=!0x1){const _0x2a020d=_0x339b6f;let _0x3ae342=new URL(window[_0x2a020d(0x25a)][_0x2a020d(0x3cc)]);_0x3ae342[_0x2a020d(0x1d5)]['set'](_0x24d715,_0x532df0),_0x7906d1?window[_0x2a020d(0x298)][_0x2a020d(0x29c)]('','',_0x3ae342['toString']()):window[_0x2a020d(0x298)]['pushState']('','',_0x3ae342[_0x2a020d(0x37a)]());}[_0x339b6f(0x1a9)](_0x10c93f,_0xb876c4=!0x1){const _0x8f7c21=_0x339b6f;let _0x22e2cc=new URL(window[_0x8f7c21(0x25a)][_0x8f7c21(0x3cc)]);_0x22e2cc[_0x8f7c21(0x1d5)]['delete'](_0x10c93f),_0xb876c4?window[_0x8f7c21(0x298)][_0x8f7c21(0x29c)]('','',_0x22e2cc['toString']()):window[_0x8f7c21(0x298)][_0x8f7c21(0x2cb)]('','',_0x22e2cc[_0x8f7c21(0x37a)]());}[_0x339b6f(0x2c4)](_0x58cbb6){const _0x549918=_0x339b6f;var _0x3acb4c;return(_0x3acb4c=new URL(window['location'][_0x549918(0x3cc)])[_0x549918(0x1d5)]['get'](_0x58cbb6))==null?void 0x0:_0x3acb4c;}};let _0x1034bb=class extends _0x1d062f[_0x339b6f(0x1c3)]{constructor(_0x510131=_0x5f31b3,_0x4fe85b,_0x56ac43,_0x3c2cbe){const _0x57bd53=_0x339b6f;super(),this[_0x57bd53(0x28a)]=_0x510131,this[_0x57bd53(0x2e0)]=_0x4fe85b,this[_0x57bd53(0x405)]=_0x56ac43,this['_configService']=_0x3c2cbe;let {..._0x104912}=(0x0,_0x1d062f[_0x57bd53(0x17d)])({},_0x5f31b3,this[_0x57bd53(0x28a)]);this[_0x57bd53(0x3c6)][_0x57bd53(0x36a)]('collaboration-client-ui.config',_0x104912);}[_0x339b6f(0x280)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x339b6f(0x2c3)](){const _0x12ec53=_0x339b6f;this[_0x12ec53(0x286)]();}['_registerDependencies'](){const _0x2c820e=_0x339b6f;var _0x3ddf31;let _0x258ac9=[[_0x47fa48],[_0x21999d],[_0x330553],[_0x2f9daa],[_0x426fe9],[_0x2b1e68],[_0x388e4a,{'useClass':_0x5af43f}],[_0x287543[_0x2c820e(0x140)],{'useClass':_0x287543[_0x2c820e(0x3d1)]}],[_0x20efb1[_0x2c820e(0x2a5)],{'useClass':_0x4e1f85}],[_0x22b7f5],[_0x3a0d44],[_0x1e8c36],[_0xe35be2],[_0x57c67b],[_0x8bd3ea]];this['_config'][_0x2c820e(0x2c9)]&&_0x258ac9[_0x2c820e(0x411)]([_0x133a91]),(0x0,_0x1d062f[_0x2c820e(0x18a)])(this[_0x2c820e(0x405)],(0x0,_0x1d062f[_0x2c820e(0x1ba)])(_0x258ac9,(_0x3ddf31=this[_0x2c820e(0x28a)])==null?void 0x0:_0x3ddf31[_0x2c820e(0x20e)]));}[_0x339b6f(0x286)](){const _0x290e17=_0x339b6f;this[_0x290e17(0x18c)](this[_0x290e17(0x2e0)][_0x290e17(0x291)](_0x1d062f[_0x290e17(0x397)]['UNIVER_DOC'],[_0x1993ee])),this[_0x290e17(0x18c)](this['_renderManagerService'][_0x290e17(0x291)](_0x1d062f['UniverInstanceType'][_0x290e17(0x16f)],[_0x4439c2]));}['_initDependencies'](){const _0x3e2b75=_0x339b6f;(0x0,_0x1d062f['touchDependencies'])(this['_injector'],[[_0xe35be2],[_0x22b7f5],[_0x3a0d44],[_0x1e8c36],[_0x8bd3ea],[_0x21999d],[_0x57c67b]]),this[_0x3e2b75(0x28a)][_0x3e2b75(0x2c9)]&&(0x0,_0x1d062f[_0x3e2b75(0x333)])(this['_injector'],[[_0x133a91]]);}};_0x1050e7(_0x1034bb,_0x339b6f(0x16c),_0x339b6f(0x3d3)),_0x1050e7(_0x1034bb,'packageName',_0x5cf5d0),_0x1050e7(_0x1034bb,'version',_0x57d268),_0x1034bb=_0x8db4f3([(0x0,_0x1d062f[_0x339b6f(0x406)])(_0x20efb1[_0x339b6f(0x24a)]),_0x21c55a(0x1,_0xc630f2[_0x339b6f(0x372)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,_0x1d062f['IConfigService'])],_0x1034bb);let _0x272630=class extends _0x20efb1[_0x339b6f(0x13e)]{constructor(_0x34ae52,_0x1dccbf,_0x479aff,_0x78ff83,_0x42a52a){super(_0x34ae52,_0x1dccbf,_0x479aff,_0x78ff83,_0x42a52a);}async['createSocket'](_0x41ecea){const _0x103502=_0x339b6f;let _0x5708db=await this[_0x103502(0x382)](),_0x1d3f80=this[_0x103502(0x410)](_0x41ecea,_0x5708db);return this[_0x103502(0x404)](_0x1d3f80);}[_0x339b6f(0x410)](_0x31dbc4,_0x5fe916){const _0x151b2a=_0x339b6f;let _0x37c2c9=typeof window>'u'?new URL(_0x31dbc4):new URL(_0x31dbc4,window['location'][_0x151b2a(0x1be)]);_0x37c2c9['searchParams'][_0x151b2a(0x3e7)](_0x151b2a(0x3c4),_0x5fe916);let _0x4c6049=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x151b2a(0x1d4)]);return _0x4c6049[_0x151b2a(0x3fe)]('runId')&&_0x37c2c9[_0x151b2a(0x1d5)][_0x151b2a(0x3e7)](_0x151b2a(0x18f),_0x4c6049['get'](_0x151b2a(0x18f))),_0x37c2c9[_0x151b2a(0x37a)]();}async[_0x339b6f(0x382)](){const _0x4a5a91=_0x339b6f;var _0x3922eb,_0x3fe6b7,_0x2a1109;let _0x3a0bfe=this[_0x4a5a91(0x3c6)][_0x4a5a91(0x302)](_0x20efb1[_0x4a5a91(0x371)]),_0x43c228=(_0x3922eb=_0x3a0bfe==null?void 0x0:_0x3a0bfe[_0x4a5a91(0x15f)])==null?_0x20efb1[_0x4a5a91(0x28e)]:_0x3922eb;return(_0x3fe6b7=(_0x2a1109=(await this[_0x4a5a91(0x1c9)][_0x4a5a91(0x3fe)](_0x43c228,{'headers':{'Content-Type':_0x4a5a91(0x22d)}}))[_0x4a5a91(0x1d2)])==null?void 0x0:_0x2a1109[_0x4a5a91(0x151)])==null?'':_0x3fe6b7;}};_0x272630=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x3,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x4,_0x600789[_0x339b6f(0x13f)])],_0x272630);let _0x264939=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x78d6b8,_0x59c109,_0x5ea0f9){const _0x2acd9f=_0x339b6f;super(),this[_0x2acd9f(0x3e4)]=_0x78d6b8,this[_0x2acd9f(0x1c9)]=_0x59c109,this[_0x2acd9f(0x3c6)]=_0x5ea0f9;}async[_0x339b6f(0x1e2)](_0x20db91,_0x3b491e,_0xb436de,..._0x3ddf4e){const _0x4ab4a9=_0x339b6f;var _0x383e2d,_0x49d2bb,_0x4ab72f,_0x153b2a;let _0x3859d7=this['_instanceService'][_0x4ab4a9(0x32d)]();if(!_0x3859d7)throw Error(_0x4ab4a9(0x2c1));let _0x229bb9=((_0x383e2d=this[_0x4ab4a9(0x3c6)][_0x4ab4a9(0x302)](_0x20efb1[_0x4ab4a9(0x41e)]))==null?_0x20efb1['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x383e2d)+'/'+_0x20db91+_0x4ab4a9(0x37e)+_0x3b491e,_0x3a8c20={'scriptId':_0x20db91,'runId':(_0x49d2bb=new URL(window['location']['href'])[_0x4ab4a9(0x1d5)][_0x4ab4a9(0x3fe)](_0x4ab4a9(0x18f)))==null?'':_0x49d2bb,'function':_0x3b491e,'unitId':_0x3859d7[_0x4ab4a9(0x2c0)](),'argsOfFunction':JSON['stringify'](_0x3ddf4e),'invokeId':(_0x4ab72f=_0xb436de[_0x4ab4a9(0x317)])==null?'':_0x4ab72f,'executionId':(_0x153b2a=_0xb436de['executionId'])==null?'':_0x153b2a};try{let _0x479385=await this[_0x4ab4a9(0x1c9)][_0x4ab4a9(0x316)](_0x229bb9,{'body':_0x3a8c20});return _0x479385[_0x4ab4a9(0x1d2)][_0x4ab4a9(0x40d)]&&_0x479385[_0x4ab4a9(0x1d2)][_0x4ab4a9(0x40d)][_0x4ab4a9(0x3bd)]!==_0x3c5971[_0x4ab4a9(0x363)]['OK']?'Failed':_0x479385[_0x4ab4a9(0x1d2)]['result'];}catch{return _0x4ab4a9(0x3c8);}}};_0x264939=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)])],_0x264939);let _0x892552=0x7530,_0x45da45='ACTIVE_UNIT_EVENT_CHANNEL';var _0x37c832=class extends _0x1d062f['Disposable']{constructor(){const _0xb8a7b8=_0x339b6f;super(),_0x1050e7(this,'_id',(0x0,_0x1d062f[_0xb8a7b8(0x409)])()),_0x1050e7(this,_0xb8a7b8(0x1f3),new Set()),_0x1050e7(this,'_unitOnClients',new Map()),_0x1050e7(this,_0xb8a7b8(0x203),null),_0x1050e7(this,_0xb8a7b8(0x347),new Map()),_0x1050e7(this,_0xb8a7b8(0x33a),new Map()),this[_0xb8a7b8(0x1ac)]();}[_0x339b6f(0x39e)](){const _0x5b3f01=_0x339b6f;super[_0x5b3f01(0x39e)](),this['_clearOtherTimers']['forEach']((_0x59f2cd,_0x73fe19)=>this[_0x5b3f01(0x3ad)](_0x73fe19)),this[_0x5b3f01(0x203)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x26d66c){const _0x4504a4=_0x339b6f;return this[_0x4504a4(0x170)](_0x26d66c)['pipe']((0x0,_0x5df150[_0x4504a4(0x41a)])());}[_0x339b6f(0x1b1)](_0x3eebfb){const _0x4e406e=_0x339b6f;this[_0x4e406e(0x1f3)][_0x4e406e(0x3ea)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4e406e(0x1f3)][_0x4e406e(0x30e)](_0x3eebfb),this[_0x4e406e(0x1ad)]({'type':0x0,'memberID':this[_0x4e406e(0x3fd)],'unitIDs':[_0x3eebfb],'isForwarded':!0x1});}[_0x339b6f(0x2ab)](_0x4ed507){const _0x1f72ba=_0x339b6f;this[_0x1f72ba(0x1f3)][_0x1f72ba(0x229)](_0x4ed507),this[_0x1f72ba(0x1f3)][_0x1f72ba(0x3ea)]===0x0&&this[_0x1f72ba(0x203)]&&window[_0x1f72ba(0x3c7)](this[_0x1f72ba(0x203)]);}[_0x339b6f(0x1ac)](){const _0x63c9f7=_0x339b6f;this[_0x63c9f7(0x18c)]((0x0,_0x1d062f['toDisposable'])((0x0,_0x5df150[_0x63c9f7(0x1b2)])(window,_0x63c9f7(0x256))[_0x63c9f7(0x3cd)](_0x1092af=>{const _0x48a88e=_0x63c9f7;if(_0x1092af['key']!==_0x45da45||!_0x1092af[_0x48a88e(0x1ef)])return;let _0x51d47a=JSON[_0x48a88e(0x38b)](_0x1092af[_0x48a88e(0x1ef)]);this['_handleEvent'](_0x51d47a);}))),window[_0x63c9f7(0x308)](_0x63c9f7(0x144),()=>this[_0x63c9f7(0x1ad)]({'type':0x1,'memberID':this[_0x63c9f7(0x3fd)],'unitIDs':Array[_0x63c9f7(0x324)](this['_selfUnitIDs'])}));}[_0x339b6f(0x3f5)](_0x136b73){const _0x2c96be=_0x339b6f;switch(_0x136b73[_0x2c96be(0x1f8)]){case 0x0:this['_handleJoinEvent'](_0x136b73);break;case 0x1:this[_0x2c96be(0x3e8)](_0x136b73);break;case 0x2:this[_0x2c96be(0x1a5)](_0x136b73);break;}}[_0x339b6f(0x2f2)](_0x4d85b7){const _0x154e0d=_0x339b6f;let {unitIDs:_0x38e7d1,memberID:_0x29262d,isForwarded:_0x58e6fa}=_0x4d85b7;_0x38e7d1[_0x154e0d(0x159)](_0x4c1d9a=>{const _0x37d5a2=_0x154e0d;if(!_0x58e6fa&&this[_0x37d5a2(0x3aa)]['has'](_0x4c1d9a)&&this[_0x37d5a2(0x170)](_0x4c1d9a)[_0x37d5a2(0x1c8)](_0x20efb1[_0x37d5a2(0x30a)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x37d5a2(0x377)](_0x4c1d9a)||!this['_unitOnClients'][_0x37d5a2(0x3fe)](_0x4c1d9a)[_0x37d5a2(0x377)](_0x29262d)){let _0x3f27b1=this['_unitOnClients'][_0x37d5a2(0x3fe)](_0x4c1d9a)||new Set();_0x3f27b1[_0x37d5a2(0x30e)](_0x29262d),this[_0x37d5a2(0x3aa)]['set'](_0x4c1d9a,_0x3f27b1),this[_0x37d5a2(0x3a5)](_0x29262d);}}),_0x58e6fa||this['_send']({'type':0x0,'memberID':this[_0x154e0d(0x3fd)],'unitIDs':[...this[_0x154e0d(0x1f3)]],'isForwarded':!0x0});}[_0x339b6f(0x3a5)](_0x3ff0be){const _0x252997=_0x339b6f;this[_0x252997(0x3ad)](_0x3ff0be);let _0x4b5d6d=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x30959a=>{const _0x1db19f=_0x405a;_0x30959a[_0x1db19f(0x229)](_0x3ff0be);});},_0x892552*0x2);this['_clearOtherTimers'][_0x252997(0x3e7)](_0x3ff0be,_0x4b5d6d);}['_removeClearOtherTimer'](_0x2e04f2){const _0x2eaa34=_0x339b6f;if(this[_0x2eaa34(0x347)]['has'](_0x2e04f2)){let _0x3721b4=this[_0x2eaa34(0x347)][_0x2eaa34(0x3fe)](_0x2e04f2);_0x3721b4&&window['clearTimeout'](_0x3721b4),this[_0x2eaa34(0x347)][_0x2eaa34(0x3e7)](_0x2e04f2,null);}}[_0x339b6f(0x3e8)](_0x213d5b){let {memberID:_0x3bb102,unitIDs:_0x514b85}=_0x213d5b;_0x514b85['forEach'](_0x148de8=>{const _0x39fbcb=_0x405a;var _0x27b79f;let _0x4303b4=this[_0x39fbcb(0x3aa)][_0x39fbcb(0x3fe)](_0x148de8);_0x4303b4&&(_0x4303b4[_0x39fbcb(0x229)](_0x3bb102),(_0x27b79f=this[_0x39fbcb(0x170)](_0x148de8))==null||_0x27b79f[_0x39fbcb(0x1c8)](_0x4303b4[_0x39fbcb(0x3ea)]===0x0?_0x20efb1['UnitStatus'][_0x39fbcb(0x181)]:_0x20efb1[_0x39fbcb(0x30a)][_0x39fbcb(0x376)]));}),this['_removeClearOtherTimer'](_0x3bb102);}['_handleHeartbeatEvent'](_0x435986){const _0x3950e1=_0x339b6f;this[_0x3950e1(0x3a5)](_0x435986[_0x3950e1(0x227)]);}[_0x339b6f(0x1ad)](_0x17120c){const _0x191d1c=_0x339b6f;localStorage[_0x191d1c(0x349)](_0x45da45,JSON['stringify'](_0x17120c));}[_0x339b6f(0x26f)](){const _0x59135f=_0x339b6f;this[_0x59135f(0x203)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},_0x892552);}['_ensureSubject'](_0x3c1f12){const _0x46dcb6=_0x339b6f;return this['_unitStatus'][_0x46dcb6(0x377)](_0x3c1f12)||this[_0x46dcb6(0x33a)][_0x46dcb6(0x3e7)](_0x3c1f12,new _0x5df150['BehaviorSubject'](_0x20efb1[_0x46dcb6(0x30a)][_0x46dcb6(0x181)])),this['_unitStatus'][_0x46dcb6(0x3fe)](_0x3c1f12);}};Object['defineProperty'](_0x2f94b9,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x272630;}}),Object[_0x339b6f(0x3b9)](_0x2f94b9,'CollaborationDataLoaderController',{'enumerable':!0x0,'get':function(){return _0x8bd3ea;}}),Object[_0x339b6f(0x3b9)](_0x2f94b9,_0x339b6f(0x1e0),{'enumerable':!0x0,'get':function(){return _0x22b7f5;}}),_0x2f94b9[_0x339b6f(0x23a)]=_0x388e4a,Object[_0x339b6f(0x3b9)](_0x2f94b9,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return _0x264939;}}),_0x2f94b9[_0x339b6f(0x33d)]=_0x56d40a,Object[_0x339b6f(0x3b9)](_0x2f94b9,_0x339b6f(0x1b4),{'enumerable':!0x0,'get':function(){return _0x1034bb;}}),_0x2f94b9[_0x339b6f(0x35e)]=_0x37c832,_0x2f94b9[_0x339b6f(0x2b7)]=_0x5af43f;}));
1
+ function _0x46c2(){const _0x22b851=['sessionTicket','_getAnchorBounding','_backgroundColor','InsertRangeMoveDownCommandId','jsx','decorate','_transformService','_session','merge','syncEditingCollabCursor','_initCommandExecutedListener','_initResize','_checkAndWaitForCalculationPermission','spin','_entities','_status$','entries','collaboration-client-ui.collabStatus.notCollab','_textBubble','code','getCurrentTypeOfUnit$','key','isFormulaId','onCommandExecuted','newValue','registerRefRange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','redoState','UniverInstanceType','registerComponent','disposeUnit','_getSheetObject','startRow','textRanges','_initWindowErrorListener','1029348aqnaaE','transform','_anchorDot','round','NOT_COLLAB','shift','whenReady','_getSaveTimeout','function','@univerjs-pro/collaboration-client','slice','blue.400','CanceledError','_heartbeatTimer','getSheetBySheetId','loadUnit','SheetSkeletonManagerService','on-line-icon_clip0_910_349','_removeCollabCursors','UniverNetwork','transformMutation','_docTransformStateCacheService','getAncestorScale','reason','Inject','_scheduleSaving','div','IRenderManagerService','displayName','_roomMembers$','[LogService\x20Error]:\x20','connectInjector','_memberID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','arc','setStateCache','\x20-\x20','drawWith','UniverEngineFormula','univer-text-gray-400','_revisionService','has','getItem','_removeClearOtherTimer','disposeWithMe','_instanceService','includes','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_colorAssignService','0.2)','parse','collaboration-client-ui.formula.calculation.started','requireSession','getCurrentRevOfUnit','unitId','Error','mutations','generateRandomId','_isBlinkVisible','InsertColCommandId','result','set','mask','subunit','onPointerEnter$','IUIPartsService','getCollabEntity$','4KLdsYY','_checkCalculationAvailable','endColumn','_uiPartsService','registerBeforeClose','_applyCommand','UniverEngineRender','getAllUnitsForType','react/jsx-runtime','filter','_initStatusComponent','source','NO_OTHER_CLIENTS_EDITING','getStateCache','_lastResponseTimestamp','Injector','_setupSubUnitSync','getUnit','324362irlvSm','amd','isActive','next','INotificationService','static','_lastPointer','closePath','setAlpha','_scheduleClearOtherTimer','_messageService','subUnitId','throttleTime','DataLoaderService','SYNCED','FormulaExecutedStateType','/universer-api/license/formula/limit/status','getOwnPropertyDescriptor','fill','DocSelectionManagerService','shareReplay','m1Prime','Optional','getViewport','5722uddrFu','_hover','_localStorageService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','OTHER_CLIENTS_EDITING','10ahaDId','UniverIcon','ICommandService','MoveRangeCommandId','ONLINE','DependentOn','SUBMIT_CHANGESET_TIMEOUT','dispose$','_unitOnClients','max','_online','Vector2','WebSocketService','getUndoRedoMutationParamsCache','_stopBlinking','_highlight','_themeService','toStringTag','updateOfflineData','show','8971413iTNEtB','transformStateCache','currentTheme$','tooltipKey','getCoordByCell','highlight','addObjects','exhaustSavingTask','isFormulaString','icon','backgroundColor','attrs','replace','_releaseCalculationLimit','getRenderById','EffectRefRangId','roomMembers','11207ktWoWi','limitInfo','setActiveRange','_imageIoService','_onCursorDelete','from','storage','tag','mapTo','_docClipboardService','unshift','loading-multi-icon','_highlightSecond','START_CALCULATION','with','unhandledrejection','UNIVER_SHEET','searchParams','collab-text-anchor-','ranges','/run/','_refRangeService','useRef','_saveCache','AWAITING','_sheetSkeletonManagerService','clsx','_color','UNIVER_DOC','location','data','saveImage','InsertRangeMoveRightCommandId','onPointerLeave$','url(#$1','RevisionService','_docStateChangeManagerService','getTypeOfUnitDisposed$','_monkeyPatchLogService','isTransformMutationFailure','registerDependencies','handleIRemoveCol','some','handleInsertRangeMoveRight','getVpScrollXYInfoByPosToVp','RegularPolygon','PERMISSION_DENIED','startFormulaLimitUrl','_drawAnchor','getColorFromTheme','assign','_unitStatus','@univerjs/rpc','registerRenderModule','IMessageService','clearInterval','getCurrentUnitOfType','selection','cursorInfo','collaboration-client-ui.collabStatus.offline','UniverCore','IUniverInstanceService','xlink:href','getSheetId','getFocusedUnit','IDocClipboardService','_init','hovered','subscribe','DocStateChangeManagerService','complete','_taskIds','ColorKit','_render','getUnhiddenWorksheets',',\x200.2)','createIdentifier','highlightSecond','_assignedColors','pushState','random','setTimeout','_localeService','_hideTimer','_uploadLog','getValue','_registerRenderDependencies','_config','TEXT','getLocalCacheKey','defs','_context','_startDocCollabCursor','unitID','@univerjs/protocol','colno','AWAITING_WITH_PENDING','_disabled','953845CDiTvO','collaboration-client-ui.session.collaboration-timeout','_saveTaskMap','removeParam','_pointerMoveDisposable','ILocalCacheService','polite','_startSheetCollabCursor','_range','_onRefRangeChange','handleInsertRow','assignAColorForMemberID','getRangePointData','UniverProCollaborationClientUi','findNodePositionByCharIndex','0\x200\x2016\x2016','getParam','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','green.600','debounce','_onCursorUpdate','530982mUOcNa','RemoveColCommandId','addEventListener','_collaborationSessionService','measureText','forEach','init','MessageType','then','true','_currentUsage','UniverRpc','JOIN_ROOM_FAILED','status$','collaboration-client-ui.formula.calculation.waiting','ErrorCode','_initUnhandledRejectionListener','_cursorShapes','_collabCursorController','collaboration-client-ui.formula.calculation.unable','href','stageInfo','_syncEditingCollabCursorService','createInstance','colorClass','getActiveSheet','@univerjs/network','DocCollaborationEntity','_httpService','setConfig','_urlService','_collaborationController','evenodd','row','string','distinctUntilChanged','ThemeService','159YIBqyn','takeUntil','collaboration-client-ui.collabStatus.fetchMiss','memberID','getColor','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','toString','startsWith','_clearOtherTimers','Rectangle','@univerjs/ui','FromArray','setInterval','_setupBeforeClosingHandler','fromEventSubject','UPDATE_CURSOR','jiqing.500','serializeRangeWithSheet','_docSkeletonManagerService','default','Failed','setShapeProps','IRemoteInstanceService','getCurrentSkeleton','@univerjs-pro/collaboration','_docTransformSelectionsService','white','univer-flex\x20univer-items-center\x20univer-justify-center','_createSocketURL','packageName','unsubscribe','DisposableCollection','engine','CONFLICT','transformIMECache','endRow','strokeWidth','clipPath','url(#off-line-icon_clip0_910_343)','isEditing','isTransformMutationsWithChangesetSuccess','moveTo','0.25.2','call','SOCKET_FAILED','_toggleOffline','range','IConfigService','_docSyncEditingCollabCursorService','_anchor','handleMoveRange','type','join','rgba(255,\x20255,\x20255,\x200.01)','Warning','transformByState','_ensureSubject','runId','Shape','_cursorInfo$','univer-text-orange-500','body','UniverDocs','debug','createElement','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CollaborationUIEventService','button','_scene','saveOfflineData','ITransformService','setItem','collaboration-client-ui.session.connection-failed','useCallback','collaboration-client-ui.collabStatus.syncing','object','find','univer-transition-all\x20univer-duration-200','_showGuardMessage','_id','@univerjs/core','_showText','OFFLINE','_docTransformIMECacheService','UniverDrawing','send','RichTextEditingMutation','iterator','RemoteUniscriptService','Unknown\x20user','RefRangeService','getSkeleton','_getMergeRange','clearTimeout','size','UniverCollaborationClientUIPlugin','_handleJoinEvent','_maxFormulaLimit','delete','_transformPreviousActiveRange','collaboration-client-ui.collaboration.offline-data-not-saved','SetTextSelectionsOperation','PENDING','defIds','totalFormulasToCalculate','_initEvent','_updateLocalCursor','getMemberID','@univerjs/engine-render','filename','_handleHover','entityInit$','application/json','_selfUnitIDs','react','setUndoRedoMutationParamsCache','Tooltip','top','DesktopCollaborationStatusDisplayController','SetWorksheetActivateCommand','actions','\x20at\x20','enableLocalCache','urlChange$','DeleteRangeMoveLeftCommandId','FETCH_MISS','_pollingInterval','split','touchDependencies','CollaborationEvent','_startCalculationLimit','catch','text','_commandService','status','currentColor','Rect','_getSessionTicket','_configService','_getScale','addObject','_handleEvent','UnitStatus','switchMap','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UniverDocsUi','message','restore','OTHER_CLIENT_EDITING','collaboration-client-ui.collabStatus.synced','setParam','parseInt','getFormulaLimitStatusUrl','symbol','_refreshCollabCursors','handleInsertCol','_hasFormulaInDirtyRanges','_handleLeaveEvent','_initEntityListener','span','@univerjs/design','maxFormulaLimit','runRefRangeMutations','onRendered','handleDeleteRangeMoveUp','width','invokeId','getActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','indicator','_colorIndex','getMergeData','get','DocIMEInputManagerService','asObservable','undoState','collaboration-client-ui.config','univer-text-blue-500','addHandlerCallback','BrowserCollaborationSocketService','none','UniverProCollaborationClient','_shapes','CollaborationController','column','collaboration-client-ui.collaboration.closeRoom','onPointerMove$','onMouseMove','post','_drawRectRange','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','RECT','color','hide','idSuffix','_document','isInternalEditorID','MemberService','transformMutationsWithChangeset','functionsExecutedState','_univerInstanceService','HTTPService','UniverCollaborationClientPlugin','_draw','startColumn','getUnitId','IImageIoService','MUTATION','offsetY','_blinkIntervalTimer','stage','_drawTextRange','executionId','i18nKey','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_blinkTimer','_cachedData','removeEventListener','_name','uni.network.url-service','UniverDesign','current','/universer-api/frontend/logs','ACTIVE_UNIT_EVENT_CHANNEL','USERS_LEAVE','docStateChange$','override','clickable','getSheetObject','now','executeCommand','subscribeEvent','purple.300','?taskId=','_logService','useMemo','cursorInfo$','_getFormulaLimitStatus','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','CollaborationUIEventId','CommandType','saveTaskMap','params','_eventUnsubscribe','_clearPolling','runOnServer','fillText','Plugin','ILogService','m2Prime','_transformUndoRedoStack','mergeOverrideWithDependencies','handleDeleteRangeMoveLeft','_collaborationUIEventService','getTypeOfUnitAdded$','reconnect','univer-border-none\x20univer-bg-transparent','eventID','map','collaboration-client-ui.collabStatus.conflict','transformRemoteChangeset','_initCommandInterceptor','rgba(','ticket','path','_updateURLWithCurrentState','doc.mutation.rich-text-editing','univer-h-8\x20univer-w-8\x20univer-rounded-lg','add','error','lineTo','InsertRowCommandId','combineLatest','labelPosition','UniverSheets','getRelativeToViewportCoord','LOCAL_CACHE_INTERVAL_KEY','defineProperty','origin','sessionStatus$','_cursor','NodePositionConvertToCursor','off-line-icon_clip0_910_343','push','_scheduleHeartbeat','onTransformChange$','SHEET_VIEWPORT_KEY','dispose','_toggleOnline','deserializeRangeWithSheet','SheetCollabCursorShape','_initUserListener','black','disableLocalCache','152evpopl','replaceDocRanges','_hovered','red.300','COLORS','SUCCESS','_getLighterColor','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','isArray','bottom','RxDisposable','Workbook','Subject','wsSessionTicketUrl','getDocRanges','_updateCollabCursors','history','SetFormulaCalculationNotificationMutation','NodePositionConvertToRectRange','TEXT_RANGE_LAYER_INDEX','_notificationService','use','prototype','event$','length','yellow.400','IBeforeCloseService','name','_beforeCloseService','@univerjs/docs-ui','unit','bind','_updateSubUnitFromURLParams','@univerjs/sheets','React','DeleteRangeMoveUpCommandId','@univerjs/sheets-ui','Disposable','_transformHistoryAndStateStack','beginPath','toDisposable','_cursors','transformSelections','SetFormulaCalculationStartMutation','beforeCommandExecuted','getMember','DOC_RANGE_TYPE','http://www.w3.org/2000/svg','_entityInit$','getConfig','rxjs/operators','LoadingMultiIcon','/universer-api/license/formula/limit/start','values','CollaborationSocketService','_initStatusListener','popstate','url(#on-line-icon_clip0_910_349)','editingUnit','_collabCursorState$','_collabSessionService','Loading','onLocalMutation','LocaleService','0\x200\x2017\x2016','rxjs','version','1em','_labelPosition','_send','currentSkeleton$','pipe','_localCacheService','colorChannel1','deepClone','CollaborationStatus','collab-rect-range-','Tools','_offsetY','_renderManagerService','toRgbString','VIEW_MAIN','rgb','enableFrontendLog','M0\x200H16V16H0z','_dataLoaderService','forwardRef','exports','rgba','_setFormulaLimitStatus','stringify','_injector','makeDirty','[Window\x20Error]:\x20','CollaborationSessionService','BehaviorSubject','univer-m-0\x20univer-p-0','pluginName','ISocketService','children','SessionStatus','fromEvent','search'];_0x46c2=function(){return _0x22b851;};return _0x46c2();}function _0x91f5(_0x55f7e4,_0x282964){_0x55f7e4=_0x55f7e4-0x1d3;const _0x46c265=_0x46c2();let _0x91f556=_0x46c265[_0x55f7e4];return _0x91f556;}(function(_0x57bfaa,_0xb904c3){const _0x1cd1c3=_0x91f5,_0x37f023=_0x57bfaa();while(!![]){try{const _0x592238=-parseInt(_0x1cd1c3(0x3f8))/0x1+-parseInt(_0x1cd1c3(0x410))/0x2*(parseInt(_0x1cd1c3(0x1f2))/0x3)+-parseInt(_0x1cd1c3(0x3e6))/0x4*(parseInt(_0x1cd1c3(0x49c))/0x5)+parseInt(_0x1cd1c3(0x3a3))/0x6+-parseInt(_0x1cd1c3(0x43a))/0x7*(parseInt(_0x1cd1c3(0x319))/0x8)+parseInt(_0x1cd1c3(0x4b1))/0x9*(-parseInt(_0x1cd1c3(0x415))/0xa)+parseInt(_0x1cd1c3(0x429))/0xb;if(_0x592238===_0xb904c3)break;else _0x37f023['push'](_0x37f023['shift']());}catch(_0x27e237){_0x37f023['push'](_0x37f023['shift']());}}}(_0x46c2,0x38630),function(_0x2f73ea,_0x446762){const _0x2f2aa0=_0x91f5;typeof exports==_0x2f2aa0(0x23e)&&typeof module<'u'?_0x446762(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define==_0x2f2aa0(0x3ab)&&define[_0x2f2aa0(0x3f9)]?define([_0x2f2aa0(0x370),_0x2f2aa0(0x3ac),_0x2f2aa0(0x243),_0x2f2aa0(0x1fc),_0x2f2aa0(0x35a),_0x2f2aa0(0x34b),_0x2f2aa0(0x293),_0x2f2aa0(0x265),_0x2f2aa0(0x3ee),_0x2f2aa0(0x46e),_0x2f2aa0(0x33a),_0x2f2aa0(0x25f),_0x2f2aa0(0x1e7),_0x2f2aa0(0x336),'@univerjs/drawing',_0x2f2aa0(0x20a),'@univerjs/docs','@univerjs/engine-formula',_0x2f2aa0(0x33d),_0x2f2aa0(0x498)],_0x446762):(_0x2f73ea=typeof globalThis<'u'?globalThis:_0x2f73ea||self,_0x446762(_0x2f73ea[_0x2f2aa0(0x4a9)]={},_0x2f73ea[_0x2f2aa0(0x2a8)],_0x2f73ea[_0x2f2aa0(0x476)],_0x2f73ea['UniverUi'],_0x2f73ea[_0x2f2aa0(0x35a)],_0x2f73ea['rxjs']['operators'],_0x2f73ea[_0x2f2aa0(0x2cf)],_0x2f73ea[_0x2f2aa0(0x33b)],_0x2f73ea[_0x2f2aa0(0x33b)],_0x2f73ea[_0x2f2aa0(0x1d8)],_0x2f73ea[_0x2f2aa0(0x305)],_0x2f73ea[_0x2f2aa0(0x3ec)],_0x2f73ea[_0x2f2aa0(0x3b6)],_0x2f73ea[_0x2f2aa0(0x284)],_0x2f73ea[_0x2f2aa0(0x247)],_0x2f73ea['UniverProCollaboration'],_0x2f73ea[_0x2f2aa0(0x230)],_0x2f73ea[_0x2f2aa0(0x3c9)],_0x2f73ea['UniverSheetsUi'],_0x2f73ea['UniverProtocol']));}(this,function(_0x250da0,_0x513f25,_0xa51970,_0x1ea15a,_0x2b7fe7,_0x4302c0,_0x51b08e,_0x4a9f5f,_0x168cd7,_0x44d82f,_0x544b28,_0x5644b4,_0xd84e90,_0x301a88,_0x15046a,_0x55a71b,_0x57e165,_0x2b6b2b,_0x48e544,_0x5003eb){const _0x1c395f=_0x91f5;Object[_0x1c395f(0x308)](_0x250da0,Symbol[_0x1c395f(0x426)],{'value':'Module'});function _0x4c9397({ref:_0x5a1bb0,..._0x404261}){const _0x4ac416=_0x1c395f;let {icon:_0x42e2e8,id:_0x1a395e,className:_0x4174bc,extend:_0x46cebf,..._0x51c7f7}=_0x404261,_0x51f20d=('univerjs-icon\x20univerjs-icon-'+_0x1a395e+'\x20'+(_0x4174bc||''))['trim'](),_0x55f149=(0x0,_0x4a9f5f[_0x4ac416(0x450)])('_'+_0x366b17());return _0x8aaaa4(_0x42e2e8,''+_0x1a395e,{'defIds':_0x42e2e8[_0x4ac416(0x25a)],'idSuffix':_0x55f149[_0x4ac416(0x2d0)]},{'ref':_0x5a1bb0,'className':_0x51f20d,..._0x51c7f7},_0x46cebf);}function _0x8aaaa4(_0x161fc7,_0x4f2139,_0x102d02,_0x33e970,_0x18eac8){const _0x278d4d=_0x1c395f;return(0x0,_0x4a9f5f[_0x278d4d(0x232)])(_0x161fc7[_0x278d4d(0x441)],{'key':_0x4f2139,..._0x4c4f88(_0x161fc7,_0x102d02,_0x18eac8),..._0x33e970},(_0x2dea41(_0x161fc7,_0x102d02)[_0x278d4d(0x37c)]||[])[_0x278d4d(0x2f5)]((_0x407918,_0x28db64)=>_0x8aaaa4(_0x407918,_0x4f2139+'-'+_0x161fc7[_0x278d4d(0x441)]+'-'+_0x28db64,_0x102d02,void 0x0,_0x18eac8)));}function _0x4c4f88(_0x4b761f,_0x1a17c9,_0x54d1ef){const _0x485d2c=_0x1c395f;let _0x2e268f={..._0x4b761f[_0x485d2c(0x434)]};_0x54d1ef!=null&&_0x54d1ef[_0x485d2c(0x362)]&&_0x2e268f[_0x485d2c(0x40a)]==='colorChannel1'&&(_0x2e268f['fill']=_0x54d1ef['colorChannel1']),_0x4b761f['tag']===_0x485d2c(0x3e1)&&_0x2e268f['id']&&(_0x2e268f['id']+=_0x1a17c9[_0x485d2c(0x2b5)]),Object[_0x485d2c(0x390)](_0x2e268f)[_0x485d2c(0x4b6)](([_0x1c2a4b,_0x4ce79c])=>{const _0x3b5559=_0x485d2c;_0x1c2a4b===_0x3b5559(0x3e1)&&typeof _0x4ce79c==_0x3b5559(0x1ef)&&(_0x2e268f[_0x1c2a4b]=_0x4ce79c['replace'](/url\(#(.*)\)/,_0x3b5559(0x45c)+_0x1a17c9[_0x3b5559(0x2b5)]+')'));});let {defIds:_0x47a146}=_0x1a17c9;return!_0x47a146||_0x47a146[_0x485d2c(0x331)]===0x0?_0x2e268f:(_0x4b761f[_0x485d2c(0x441)]===_0x485d2c(0x32e)&&_0x2e268f[_0x485d2c(0x478)]&&(_0x2e268f[_0x485d2c(0x478)]+=_0x1a17c9[_0x485d2c(0x2b5)]),Object[_0x485d2c(0x390)](_0x2e268f)[_0x485d2c(0x4b6)](([_0x7704e6,_0x2ae213])=>{const _0x373ece=_0x485d2c;typeof _0x2ae213=='string'&&(_0x2e268f[_0x7704e6]=_0x2ae213['replace'](/url\(#(.*)\)/,_0x373ece(0x45c)+_0x1a17c9[_0x373ece(0x2b5)]+')'));}),_0x2e268f);}function _0x2dea41(_0x2474d3,_0x204a62){const _0x3d0776=_0x1c395f;var _0x2f512d;let {defIds:_0x5f4a16}=_0x204a62;return!_0x5f4a16||_0x5f4a16[_0x3d0776(0x331)]===0x0?_0x2474d3:_0x2474d3[_0x3d0776(0x441)]==='defs'&&(_0x2f512d=_0x2474d3['children'])!=null&&_0x2f512d[_0x3d0776(0x331)]?{..._0x2474d3,'children':_0x2474d3[_0x3d0776(0x37c)][_0x3d0776(0x2f5)](_0x1df194=>typeof _0x1df194['attrs']['id']=='string'&&_0x5f4a16&&_0x5f4a16[_0x3d0776(0x3d1)](_0x1df194['attrs']['id'])?{..._0x1df194,'attrs':{..._0x1df194['attrs'],'id':_0x1df194[_0x3d0776(0x434)]['id']+_0x204a62['idSuffix']}}:_0x1df194)}:_0x2474d3;}function _0x366b17(){const _0x35b5fb=_0x1c395f;return Math[_0x35b5fb(0x48a)]()['toString'](0x24)['substring'](0x2,0x8);}_0x4c9397[_0x1c395f(0x3bf)]=_0x1c395f(0x416);let _0x15447c={'tag':'svg','attrs':{'xmlns':_0x1c395f(0x348),'fill':_0x1c395f(0x2a7),'viewBox':_0x1c395f(0x4ab),'width':_0x1c395f(0x35c),'height':_0x1c395f(0x35c)},'children':[{'tag':'g','attrs':{'clipPath':_0x1c395f(0x218)},'children':[{'tag':_0x1c395f(0x2fb),'attrs':{'stroke':_0x1c395f(0x27a),'d':_0x1c395f(0x1f7),'strokeLinecap':_0x1c395f(0x3a6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1c395f(0x494),'attrs':{},'children':[{'tag':_0x1c395f(0x217),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1c395f(0x2fb),'attrs':{'fill':_0x1c395f(0x20c),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1c395f(0x30d)]},_0x3fed4a=(0x0,_0x4a9f5f['forwardRef'])(function(_0x4d88e1,_0x2affc8){const _0x49c6d4=_0x1c395f;return(0x0,_0x4a9f5f['createElement'])(_0x4c9397,Object[_0x49c6d4(0x46c)]({},_0x4d88e1,{'id':'off-line-icon','ref':_0x2affc8,'icon':_0x15447c}));});_0x3fed4a[_0x1c395f(0x3bf)]='OffLineIcon';let _0x56fd22={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x1c395f(0x359),'width':_0x1c395f(0x35c),'height':_0x1c395f(0x35c)},'children':[{'tag':'g','attrs':{'clipPath':_0x1c395f(0x352)},'children':[{'tag':_0x1c395f(0x2fb),'attrs':{'stroke':_0x1c395f(0x27a),'d':_0x1c395f(0x2b1),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1c395f(0x494),'attrs':{},'children':[{'tag':_0x1c395f(0x217),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1c395f(0x2fb),'attrs':{'fill':_0x1c395f(0x20c),'d':_0x1c395f(0x36d),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1c395f(0x3b4)]},_0x4ff806=(0x0,_0x4a9f5f['forwardRef'])(function(_0x18ffee,_0x2473b3){const _0x467ba9=_0x1c395f;return(0x0,_0x4a9f5f[_0x467ba9(0x232)])(_0x4c9397,Object[_0x467ba9(0x46c)]({},_0x18ffee,{'id':'on-line-icon','ref':_0x2473b3,'icon':_0x56fd22}));});_0x4ff806[_0x1c395f(0x3bf)]='OnLineIcon';let _0x44d541={'tag':'svg','attrs':{'xmlns':_0x1c395f(0x348),'fill':'none','viewBox':_0x1c395f(0x4ab),'width':_0x1c395f(0x35c),'height':_0x1c395f(0x35c)},'children':[{'tag':_0x1c395f(0x2fb),'attrs':{'fill':'#0B9EFB','d':'M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','fillOpacity':0.2,'fillRule':_0x1c395f(0x1ed),'clipRule':'evenodd'}},{'tag':_0x1c395f(0x2fb),'attrs':{'fill':'#0B9EFB','d':_0x1c395f(0x2e1),'fillRule':'evenodd','clipRule':_0x1c395f(0x1ed)}}]},_0x4bde9b=(0x0,_0x4a9f5f[_0x1c395f(0x36f)])(function(_0x3d3139,_0x4980f5){const _0x42403c=_0x1c395f;return(0x0,_0x4a9f5f['createElement'])(_0x4c9397,Object['assign']({},_0x3d3139,{'id':_0x42403c(0x445),'ref':_0x4980f5,'icon':_0x44d541}));});_0x4bde9b[_0x1c395f(0x3bf)]=_0x1c395f(0x34c);function _0x3c5dfe(_0xfbeb19){const _0x113699=_0x1c395f;switch(_0xfbeb19){case _0x513f25['CollaborationStatus'][_0x113699(0x245)]:return{'icon':(0x0,_0x168cd7[_0x113699(0x384)])(_0x3fed4a,{}),'colorClass':'univer-text-red-500','i18nKey':_0x113699(0x475),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x113699(0x3fd)};case _0x513f25[_0x113699(0x364)]['CONFLICT']:return{'icon':(0x0,_0x168cd7[_0x113699(0x384)])(_0x3fed4a,{}),'colorClass':_0x113699(0x22e),'i18nKey':_0x113699(0x2f6),'clickable':!0x1,'indicator':_0x113699(0x3fd)};case _0x513f25[_0x113699(0x364)][_0x113699(0x270)]:return{'icon':(0x0,_0x168cd7[_0x113699(0x384)])(_0x4bde9b,{}),'colorClass':_0x113699(0x2a4),'i18nKey':_0x113699(0x1f4),'clickable':!0x1,'indicator':_0x113699(0x38d)};case _0x513f25[_0x113699(0x364)]['NOT_COLLAB']:return{'icon':(0x0,_0x168cd7['jsx'])(_0x4ff806,{}),'colorClass':_0x113699(0x3ca),'i18nKey':_0x113699(0x391),'clickable':!0x1,'indicator':_0x113699(0x3fd)};case _0x513f25[_0x113699(0x364)][_0x113699(0x452)]:case _0x513f25[_0x113699(0x364)][_0x113699(0x49a)]:return{'icon':(0x0,_0x168cd7[_0x113699(0x384)])(_0x4bde9b,{}),'colorClass':_0x113699(0x2a4),'i18nKey':_0x113699(0x23d),'clickable':!0x1,'indicator':_0x113699(0x38d)};case _0x513f25[_0x113699(0x364)][_0x113699(0x259)]:return{'icon':(0x0,_0x168cd7[_0x113699(0x384)])(_0x4bde9b,{}),'colorClass':_0x113699(0x2a4),'i18nKey':_0x113699(0x23d),'clickable':!0x1,'indicator':_0x113699(0x38d)};case _0x513f25['CollaborationStatus'][_0x113699(0x406)]:return{'icon':(0x0,_0x168cd7['jsx'])(_0x4ff806,{}),'colorClass':'univer-text-green-500','i18nKey':_0x113699(0x288),'clickable':!0x1,'indicator':_0x113699(0x3fd)};}}function _0x2410fa(_0x398c31){const _0x407b72=_0x1c395f;let {status$:_0x1e1c67}=_0x398c31,_0x56a8d2=(0x0,_0x1ea15a['useObservable'])(_0x1e1c67,_0x513f25[_0x407b72(0x364)][_0x407b72(0x3a7)]),_0x28bd55=(0x0,_0x1ea15a['useDependency'])(_0xa51970[_0x407b72(0x358)]),_0x3f5486=(0x0,_0x1ea15a['useDependency'])(_0x513f25[_0x407b72(0x377)]),_0x23ab12=(0x0,_0x4a9f5f[_0x407b72(0x2de)])(()=>_0x3c5dfe(_0x56a8d2),[_0x56a8d2]),_0x2a4aaa=_0x56a8d2!==_0x513f25[_0x407b72(0x364)]['OFFLINE'],_0x132bcc=_0x28bd55['t'](_0x23ab12[_0x407b72(0x2c8)]),_0x26d67c=_0x23ab12['tooltipKey']?_0x28bd55['t'](_0x23ab12[_0x407b72(0x42c)]):_0x132bcc,_0x478e67=(0x0,_0x4a9f5f['useCallback'])(()=>{const _0x365cf3=_0x407b72;_0x2a4aaa||_0x3f5486[_0x365cf3(0x2f2)]();},[_0x2a4aaa,_0x3f5486]),_0x527d4d=(0x0,_0x4a9f5f[_0x407b72(0x23c)])(_0x49083d=>{const _0x33cd2e=_0x407b72;!_0x2a4aaa&&(_0x49083d[_0x33cd2e(0x395)]==='Enter'||_0x49083d[_0x33cd2e(0x395)]==='\x20')&&(_0x49083d['preventDefault'](),_0x3f5486[_0x33cd2e(0x2f2)]());},[_0x2a4aaa,_0x3f5486]),_0x261119=(0x0,_0x168cd7['jsx'])(_0x407b72(0x292),{'className':(0x0,_0x51b08e[_0x407b72(0x454)])(_0x407b72(0x20d),_0x407b72(0x3d2),_0x23ab12[_0x407b72(0x1e5)],{'univer-animate-spin':_0x23ab12[_0x407b72(0x29c)]===_0x407b72(0x38d),'univer-animate-pulse':_0x23ab12['indicator']==='pulse'}),'aria-hidden':_0x407b72(0x1d6),'children':_0x23ab12[_0x407b72(0x432)]}),_0x3227ba=(0x0,_0x168cd7[_0x407b72(0x384)])(_0x407b72(0x292),{'className':(0x0,_0x51b08e[_0x407b72(0x454)])(_0x407b72(0x20d),_0x407b72(0x2fe),_0x407b72(0x240),_0x407b72(0x320),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x23ab12[_0x407b72(0x2d6)],'univer-cursor-default':!_0x23ab12[_0x407b72(0x2d6)]}),'children':_0x261119});return _0x23ab12[_0x407b72(0x2d6)]?(0x0,_0x168cd7[_0x407b72(0x384)])(_0x51b08e[_0x407b72(0x267)],{'title':_0x26d67c,'placement':'bottom','children':(0x0,_0x168cd7[_0x407b72(0x384)])(_0x407b72(0x236),{'type':_0x407b72(0x236),'onClick':_0x478e67,'onKeyDown':_0x527d4d,'className':(0x0,_0x51b08e[_0x407b72(0x454)])(_0x407b72(0x3c4),'univer-border-none\x20univer-bg-transparent',_0x407b72(0x379),'univer-appearance-none'),'aria-label':_0x132bcc+_0x407b72(0x3c7)+_0x26d67c,'role':_0x407b72(0x279),'aria-live':_0x407b72(0x4a2),'aria-atomic':'true','children':_0x3227ba})}):(0x0,_0x168cd7[_0x407b72(0x384)])(_0x51b08e[_0x407b72(0x267)],{'title':_0x26d67c,'placement':_0x407b72(0x322),'children':(0x0,_0x168cd7[_0x407b72(0x384)])(_0x407b72(0x3bd),{'className':(0x0,_0x51b08e[_0x407b72(0x454)])(_0x407b72(0x3c4),_0x407b72(0x2f3),_0x407b72(0x379)),'aria-label':_0x132bcc,'role':_0x407b72(0x279),'aria-live':'polite','aria-atomic':_0x407b72(0x1d6),'children':_0x3227ba})});}function _0x1cd5fd(_0x5708ce){'@babel/helpers - typeof';const _0x1803e1=_0x1c395f;return _0x1cd5fd=typeof Symbol==_0x1803e1(0x3ab)&&typeof Symbol[_0x1803e1(0x24a)]==_0x1803e1(0x28c)?function(_0x18d3ee){return typeof _0x18d3ee;}:function(_0x5ee7db){const _0x16339d=_0x1803e1;return _0x5ee7db&&typeof Symbol==_0x16339d(0x3ab)&&_0x5ee7db['constructor']===Symbol&&_0x5ee7db!==Symbol[_0x16339d(0x32f)]?'symbol':typeof _0x5ee7db;},_0x1cd5fd(_0x5708ce);}function _0x2b53c1(_0x144157,_0x232faf){const _0x26d941=_0x1c395f;if(_0x1cd5fd(_0x144157)!=_0x26d941(0x23e)||!_0x144157)return _0x144157;var _0xaa615=_0x144157[Symbol['toPrimitive']];if(_0xaa615!==void 0x0){var _0x2bcdab=_0xaa615[_0x26d941(0x21d)](_0x144157,_0x232faf||_0x26d941(0x205));if(_0x1cd5fd(_0x2bcdab)!=_0x26d941(0x23e))return _0x2bcdab;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x232faf==='string'?String:Number)(_0x144157);}function _0xbe161f(_0x29f349){const _0x36802a=_0x1c395f;var _0x58f161=_0x2b53c1(_0x29f349,_0x36802a(0x1ef));return _0x1cd5fd(_0x58f161)=='symbol'?_0x58f161:_0x58f161+'';}function _0x3dacf4(_0x588a49,_0x42d648,_0x5c062a){const _0x2c0e90=_0x1c395f;return(_0x42d648=_0xbe161f(_0x42d648))in _0x588a49?Object[_0x2c0e90(0x308)](_0x588a49,_0x42d648,{'value':_0x5c062a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x588a49[_0x42d648]=_0x5c062a,_0x588a49;}function _0x47c7dc(_0x284381,_0xb58efb){return function(_0x537cb2,_0x4dae96){_0xb58efb(_0x537cb2,_0x4dae96,_0x284381);};}function _0x29ab40(_0x678429,_0x5decf3,_0x2ba5f1,_0x43198f){const _0x54db72=_0x1c395f;var _0x444716=arguments[_0x54db72(0x331)],_0x3184dd=_0x444716<0x3?_0x5decf3:_0x43198f===null?_0x43198f=Object[_0x54db72(0x409)](_0x5decf3,_0x2ba5f1):_0x43198f,_0x31c8f1;if(typeof Reflect=='object'&&typeof Reflect[_0x54db72(0x385)]=='function')_0x3184dd=Reflect[_0x54db72(0x385)](_0x678429,_0x5decf3,_0x2ba5f1,_0x43198f);else{for(var _0x49500f=_0x678429[_0x54db72(0x331)]-0x1;_0x49500f>=0x0;_0x49500f--)(_0x31c8f1=_0x678429[_0x49500f])&&(_0x3184dd=(_0x444716<0x3?_0x31c8f1(_0x3184dd):_0x444716>0x3?_0x31c8f1(_0x5decf3,_0x2ba5f1,_0x3184dd):_0x31c8f1(_0x5decf3,_0x2ba5f1))||_0x3184dd);}return _0x444716>0x3&&_0x3184dd&&Object[_0x54db72(0x308)](_0x5decf3,_0x2ba5f1,_0x3184dd),_0x3184dd;}let _0x473dd1=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(_0x1041e6,_0xad6b81,_0x3bce2f,_0x3dde61){const _0x3e2bfe=_0x1c395f;super(),this['_univerInstanceService']=_0x1041e6,this[_0x3e2bfe(0x374)]=_0xad6b81,this[_0x3e2bfe(0x1ec)]=_0x3bce2f,this[_0x3e2bfe(0x3e9)]=_0x3dde61,_0x3dacf4(this,_0x3e2bfe(0x38f),new _0x2b7fe7['BehaviorSubject'](_0x513f25[_0x3e2bfe(0x364)][_0x3e2bfe(0x3a7)])),this[_0x3e2bfe(0x3f0)](),this[_0x3e2bfe(0x350)]();}[_0x1c395f(0x350)](){const _0x4d568d=_0x1c395f;this['disposeWithMe']((0x0,_0x2b7fe7[_0x4d568d(0x388)])(this[_0x4d568d(0x2bb)]['focused$'],this[_0x4d568d(0x2bb)][_0x4d568d(0x394)](_0xa51970[_0x4d568d(0x39c)][_0x4d568d(0x456)]),this[_0x4d568d(0x2bb)][_0x4d568d(0x394)](_0xa51970['UniverInstanceType'][_0x4d568d(0x44a)]))['pipe']((0x0,_0x4302c0[_0x4d568d(0x2f5)])(()=>_0x2b2e48(this[_0x4d568d(0x2bb)])),(0x0,_0x4302c0['distinctUntilChanged'])(),(0x0,_0x2b7fe7['switchMap'])(_0x60e10=>_0x60e10?this[_0x4d568d(0x1ec)][_0x4d568d(0x3e5)](_0x60e10):(0x0,_0x2b7fe7['of'])(null)),(0x0,_0x2b7fe7[_0x4d568d(0x282)])(_0x116a2a=>_0x116a2a?_0x116a2a[_0x4d568d(0x1da)]:(0x0,_0x2b7fe7['of'])(_0x513f25[_0x4d568d(0x364)][_0x4d568d(0x3a7)])))[_0x4d568d(0x47e)](_0x5f4524=>{const _0x2ab098=_0x4d568d;this[_0x2ab098(0x38f)][_0x2ab098(0x3fb)](_0x5f4524);}));}[_0x1c395f(0x3f0)](){const _0x2e48d4=_0x1c395f;this[_0x2e48d4(0x3cf)](this[_0x2e48d4(0x3e9)][_0x2e48d4(0x39d)](_0x1ea15a['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x1ea15a[_0x2e48d4(0x3c2)])(_0x3f429e({'status$':this[_0x2e48d4(0x38f)][_0x2e48d4(0x2a1)]()}),this[_0x2e48d4(0x374)])));}};_0x473dd1=_0x29ab40([_0x47c7dc(0x0,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x1,(0x0,_0xa51970['Inject'])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x2aa)])),_0x47c7dc(0x3,_0x1ea15a[_0x1c395f(0x3e4)])],_0x473dd1);function _0x2b2e48(_0x48a7c0){const _0x468942=_0x1c395f;let _0x5d48fa=_0x48a7c0[_0x468942(0x47a)](),_0x127e8d=_0x5d48fa==null?void 0x0:_0x5d48fa['getUnitId']();if(_0x127e8d&&!(0x0,_0xa51970['isInternalEditorID'])(_0x127e8d))return _0x127e8d;let _0x573c60=_0x48a7c0[_0x468942(0x472)](_0xa51970[_0x468942(0x39c)][_0x468942(0x456)]),_0x5f0d9=_0x573c60==null?void 0x0:_0x573c60[_0x468942(0x2c0)]();if(_0x5f0d9&&!(0x0,_0xa51970[_0x468942(0x2b7)])(_0x5f0d9))return _0x5f0d9;let _0x136e78=_0x48a7c0[_0x468942(0x472)](_0xa51970[_0x468942(0x39c)][_0x468942(0x44a)]);if(_0x136e78)return _0x136e78['getUnitId']();let _0x361459=_0x48a7c0[_0x468942(0x3ed)](_0xa51970['UniverInstanceType'][_0x468942(0x456)])['find'](_0x223dac=>!(0x0,_0xa51970[_0x468942(0x2b7)])(_0x223dac['getUnitId']()));return _0x361459?_0x361459['getUnitId']():null;}function _0x3f429e(_0xafaa10){let {status$:_0x390d61}=_0xafaa10;return function(){const _0x111a48=_0x91f5;return(0x0,_0x168cd7[_0x111a48(0x384)])(_0x2410fa,{'status$':_0x390d61});};}let _0x4c9c87=(0x0,_0xa51970[_0x1c395f(0x486)])(_0x1c395f(0x2ce)),_0x28bfcf=class extends _0xa51970[_0x1c395f(0x323)]{constructor(_0x179d83,_0x106ac5,_0x3272fc,_0x1716c6,_0x1e91e3){const _0x1875b2=_0x1c395f;super(),this['_urlService']=_0x179d83,this['_logService']=_0x106ac5,this[_0x1875b2(0x278)]=_0x3272fc,this[_0x1875b2(0x36e)]=_0x1716c6,_0x1e91e3?_0x1e91e3==null||_0x1e91e3[_0x1875b2(0x3a9)]()[_0x1875b2(0x1d5)](()=>this[_0x1875b2(0x47c)]()):(this[_0x1875b2(0x2dd)][_0x1875b2(0x231)]('[CollaborationDataLoaderController]',_0x1875b2(0x283)),this[_0x1875b2(0x47c)]());}async['_init'](){const _0x5db165=_0x1c395f;let _0x30b3f4=this[_0x5db165(0x1eb)][_0x5db165(0x4ac)](_0x5db165(0x337)),_0x435c76=this['_urlService']['getParam'](_0x5db165(0x225)),_0x2e087a=this[_0x5db165(0x1eb)]['getParam'](_0x5db165(0x3e2));if(!_0x30b3f4||!_0x435c76){this[_0x5db165(0x2dd)][_0x5db165(0x231)]('[CollaborationDataLoaderController]',_0x5db165(0x4ad));return;}let _0x297173=await this[_0x5db165(0x36e)][_0x5db165(0x3b2)](_0x30b3f4,Number(_0x435c76),_0x2e087a);_0x297173&&_0x297173 instanceof _0xa51970[_0x5db165(0x324)]&&this['_setupSubUnitSync'](_0x297173);}async[_0x1c395f(0x3f6)](_0xe6fa18){const _0x292d5c=_0x1c395f;await this[_0x292d5c(0x339)](_0xe6fa18),_0xe6fa18['activeSheet$']['pipe']((0x0,_0x2b7fe7[_0x292d5c(0x1f3)])(this[_0x292d5c(0x41c)]))['subscribe'](_0x44d5ef=>{const _0x3f3d42=_0x292d5c;_0x44d5ef&&this[_0x3f3d42(0x2fc)](_0x44d5ef);}),this[_0x292d5c(0x1eb)][_0x292d5c(0x26e)][_0x292d5c(0x360)]((0x0,_0x2b7fe7['takeUntil'])(this[_0x292d5c(0x41c)]))[_0x292d5c(0x47e)](()=>this[_0x292d5c(0x339)](_0xe6fa18));}[_0x1c395f(0x2fc)](_0x281838,_0x1fe83c=!0x1){const _0x3f199d=_0x1c395f;let _0x30efc9=this[_0x3f199d(0x1eb)][_0x3f199d(0x4ac)](_0x3f199d(0x3e2));_0x281838[_0x3f199d(0x479)]()!==_0x30efc9&&this[_0x3f199d(0x1eb)][_0x3f199d(0x289)](_0x3f199d(0x3e2),_0x281838[_0x3f199d(0x479)](),_0x1fe83c);}async[_0x1c395f(0x339)](_0xb2cb10){const _0x229186=_0x1c395f;var _0x33f2eb;let _0x1a2174=this[_0x229186(0x1eb)][_0x229186(0x4ac)](_0x229186(0x3e2));if(!_0x1a2174||!_0xb2cb10['getSheetBySheetId'](_0x1a2174)){let _0x234029=_0xb2cb10[_0x229186(0x484)]()[0x0],_0x2033be=_0xb2cb10[_0x229186(0x3b1)](_0x234029);if(!_0x2033be)return;this['_updateURLWithCurrentState'](_0x2033be,!0x0),await this[_0x229186(0x278)][_0x229186(0x2d9)](_0x544b28[_0x229186(0x26a)]['id'],{'unitId':_0xb2cb10['getUnitId'](),'subUnitId':_0x234029});return;}((_0x33f2eb=_0xb2cb10[_0x229186(0x1e6)]())==null?void 0x0:_0x33f2eb[_0x229186(0x479)]())!==_0x1a2174&&await this[_0x229186(0x278)][_0x229186(0x2d9)](_0x544b28[_0x229186(0x26a)]['id'],{'unitId':_0xb2cb10[_0x229186(0x2c0)](),'subUnitId':_0x1a2174});}};_0x28bfcf=_0x29ab40([_0x47c7dc(0x0,_0x4c9c87),_0x47c7dc(0x1,_0xa51970[_0x1c395f(0x2eb)]),_0x47c7dc(0x2,_0xa51970[_0x1c395f(0x417)]),_0x47c7dc(0x3,(0x0,_0xa51970['Inject'])(_0x513f25[_0x1c395f(0x405)])),_0x47c7dc(0x4,(0x0,_0xa51970[_0x1c395f(0x40e)])(_0x44d82f[_0x1c395f(0x208)]))],_0x28bfcf);var _0x87174='@univerjs-pro/collaboration-client-ui',_0x3ad8ef=_0x1c395f(0x21c);let _0x558662=class extends _0xa51970[_0x1c395f(0x323)]{constructor(_0x4c42b8,_0x182bfa){const _0x1c9c74=_0x1c395f;super(),this[_0x1c9c74(0x443)]=_0x4c42b8,this[_0x1c9c74(0x43d)]=_0x182bfa,this['_init']();}[_0x1c395f(0x47c)](){const _0x4f470b=_0x1c395f;let _0x113eae=this;this['disposeWithMe'](this[_0x4f470b(0x443)]['addClipboardHook']({'onBeforePasteImage':async _0x48ead4=>{const _0xaf79ea=_0x4f470b;let _0x247157=await _0x113eae['_imageIoService'][_0xaf79ea(0x459)](_0x48ead4);return _0x247157?{'source':_0x247157[_0xaf79ea(0x3f1)],'imageSourceType':_0x247157['imageSourceType']}:null;}}));}};_0x558662=_0x29ab40([_0x47c7dc(0x0,_0x301a88[_0x1c395f(0x47b)]),_0x47c7dc(0x1,_0x15046a[_0x1c395f(0x2c1)])],_0x558662);let _0x188d93=[_0x1c395f(0x2db),_0x1c395f(0x202),_0x1c395f(0x4ae),_0x1c395f(0x31c),_0x1c395f(0x3ae),_0x1c395f(0x332)];var _0x3bd223=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(..._0x523aa3){super(..._0x523aa3),_0x3dacf4(this,'_assignedColors',new Map()),_0x3dacf4(this,'_colorIndex',0x0);}[_0x1c395f(0x4a7)](_0x29260f){const _0x4db228=_0x1c395f;if(this[_0x4db228(0x488)][_0x4db228(0x3cc)](_0x29260f))return this[_0x4db228(0x488)][_0x4db228(0x29f)](_0x29260f);let _0x29ecae=_0x188d93[this['_colorIndex']];return this[_0x4db228(0x29d)]=(this['_colorIndex']+0x1)%_0x188d93['length'],this[_0x4db228(0x488)]['set'](_0x29260f,_0x29ecae),_0x29ecae;}};function _0x212fae(_0x5efe0c){const _0x56ee35=_0x1c395f;let _0x167f2a='';for(let _0xd915da of _0x5efe0c){let {startOffset:_0x4c97eb,endOffset:_0x43c885,isActive:_0xba3c04,rangeType:_0x5a00b0,segmentId:_0x5469be,segmentPage:_0xa3bbee}=_0xd915da;_0x167f2a[_0x56ee35(0x331)]&&(_0x167f2a+=','),_0x167f2a+=_0x4c97eb+':'+_0x43c885+':'+(_0xba3c04?'1':'0')+':'+_0x5a00b0+':'+_0x5469be+':'+_0xa3bbee;}return _0x167f2a;}function _0x16315f(_0x5523db){const _0x505a78=_0x1c395f;let _0x183403=_0x5523db[_0x505a78(0x272)](','),_0x338084=[];for(let _0x58d7a3 of _0x183403){let [_0x57fcb1,_0x359d17,_0x336750,_0x33e48f,_0xb266d2,_0x457747]=_0x58d7a3[_0x505a78(0x272)](':');_0x338084[_0x505a78(0x30e)]({'startOffset':Number(_0x57fcb1),'endOffset':Number(_0x359d17),'collapsed':_0x57fcb1===_0x359d17,'isActive':_0x336750==='1','rangeType':_0x33e48f===_0xa51970[_0x505a78(0x347)]['TEXT']?_0xa51970[_0x505a78(0x347)][_0x505a78(0x492)]:_0xa51970[_0x505a78(0x347)]['RECT'],'segmentId':typeof _0xb266d2=='string'?String(_0xb266d2):'','segmentPage':Number(_0x457747==null?-0x1:_0x457747)});}return _0x338084[_0x505a78(0x464)](_0x3d4134=>_0x3d4134[_0x505a78(0x3fa)])||(_0x338084[0x0][_0x505a78(0x3fa)]=!0x0),_0x338084;}var _0x44ff4a=class extends _0xa51970[_0x1c395f(0x323)]{constructor(..._0x902b1f){const _0x3ee197=_0x1c395f;super(..._0x902b1f),_0x3dacf4(this,_0x3ee197(0x354),new _0x2b7fe7['BehaviorSubject'](null)),_0x3dacf4(this,'collabCursorState$',this[_0x3ee197(0x354)][_0x3ee197(0x2a1)]());}[_0x1c395f(0x389)](_0x5b4f35){const _0x275ff0=_0x1c395f;let {unitID:_0x392c5e,memberID:_0x10b24b,textRanges:_0x46f539}=_0x5b4f35,_0x7794c4=_0x212fae(_0x46f539);if(_0x7794c4==='')return;let _0xec2bd9={'unitID':_0x392c5e,'memberID':_0x10b24b,'selection':_0x7794c4};this[_0x275ff0(0x354)][_0x275ff0(0x3fb)](_0xec2bd9);}};let _0x27d61b=class extends _0xa51970[_0x1c395f(0x323)]{get[_0x1c395f(0x474)](){const _0x455976=_0x1c395f;return this[_0x455976(0x22d)][_0x455976(0x48f)]();}get[_0x1c395f(0x439)](){const _0x3eac2b=_0x1c395f;return this[_0x3eac2b(0x3c0)][_0x3eac2b(0x48f)]();}constructor(_0x47e87f,_0x34d5c4,_0x4f1572,_0x2903bb,_0x40b034,_0x96be3b,_0x48cf57,_0x326b11,_0x390631){const _0x45f40a=_0x1c395f;super(),this[_0x45f40a(0x497)]=_0x47e87f,this[_0x45f40a(0x387)]=_0x34d5c4,this[_0x45f40a(0x374)]=_0x4f1572,this[_0x45f40a(0x3d3)]=_0x2903bb,this['_memberService']=_0x40b034,this[_0x45f40a(0x1e3)]=_0x96be3b,this['_transformService']=_0x48cf57,this[_0x45f40a(0x2bb)]=_0x326b11,this[_0x45f40a(0x278)]=_0x390631,_0x3dacf4(this,'_online',!0x1),_0x3dacf4(this,_0x45f40a(0x47c),!0x1),_0x3dacf4(this,_0x45f40a(0x22d),new _0x2b7fe7[(_0x45f40a(0x378))](new Map())),_0x3dacf4(this,'cursorInfo$',this[_0x45f40a(0x22d)][_0x45f40a(0x2a1)]()),_0x3dacf4(this,_0x45f40a(0x3c0),new _0x2b7fe7[(_0x45f40a(0x378))]([])),_0x3dacf4(this,'roomMembers$',this[_0x45f40a(0x3c0)]['pipe']((0x0,_0x2b7fe7['debounceTime'])(0x12c))),_0x3dacf4(this,'_updateLocalCursor',(0x0,_0xa51970['debounce'])(_0x5a41fb=>{const _0x1bb209=_0x45f40a;let _0x464ba2={'eventID':_0x55a71b[_0x1bb209(0x274)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1bb209(0x497)],'memberID':this[_0x1bb209(0x387)][_0x1bb209(0x25e)](),'selection':_0x212fae(_0x5a41fb)}};this['_session'][_0x1bb209(0x248)](_0x464ba2,this[_0x1bb209(0x497)]);},0x64));}['dispose'](){const _0x4fbd4a=_0x1c395f;super[_0x4fbd4a(0x312)](),this[_0x4fbd4a(0x22d)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x4fbd4a(0x3c0)][_0x4fbd4a(0x3fb)]([]),this[_0x4fbd4a(0x3c0)][_0x4fbd4a(0x480)]();}[_0x1c395f(0x1d3)](){const _0x582a28=_0x1c395f;this['_init']||(this[_0x582a28(0x47c)]=!0x0,this[_0x582a28(0x387)]['sessionStatus$']['pipe']((0x0,_0x2b7fe7['takeUntil'])(this[_0x582a28(0x41c)]))[_0x582a28(0x47e)](_0x463825=>{const _0x3e1372=_0x582a28;_0x463825===_0x513f25[_0x3e1372(0x37d)]['ONLINE']?this[_0x3e1372(0x313)]():this[_0x3e1372(0x21f)]();}),this[_0x582a28(0x387)][_0x582a28(0x330)]['pipe']((0x0,_0x2b7fe7['takeUntil'])(this['dispose$']))['subscribe'](_0x51e8d8=>{const _0x25b66a=_0x582a28;let _0x2d7945=_0x51e8d8['eventID'];_0x2d7945===_0x55a71b['CollaborationEvent'][_0x25b66a(0x201)]&&this[_0x25b66a(0x4b0)](_0x51e8d8),_0x2d7945===_0x55a71b['CollaborationEvent'][_0x25b66a(0x2d3)]&&this[_0x25b66a(0x43e)](_0x51e8d8);}),this[_0x582a28(0x3cf)](this[_0x582a28(0x278)]['onCommandExecuted'](_0x26ca36=>{const _0x5687b9=_0x582a28;let _0x5612f5=_0x26ca36[_0x5687b9(0x2e5)];_0x5612f5!=null&&this[_0x5687b9(0x41f)]&&_0x26ca36['id']===_0x57e165[_0x5687b9(0x258)]['id']&&_0x5612f5[_0x5687b9(0x3d9)]===this[_0x5687b9(0x497)]&&_0x5612f5[_0x5687b9(0x219)]===!0x1&&_0x5612f5[_0x5687b9(0x44d)][_0x5687b9(0x331)]>0x0&&this[_0x5687b9(0x25d)](_0x5612f5[_0x5687b9(0x44d)]);})),this[_0x582a28(0x1e3)]['collabCursorState$'][_0x582a28(0x360)]((0x0,_0x2b7fe7[_0x582a28(0x1f3)])(this[_0x582a28(0x41c)]))[_0x582a28(0x47e)](_0x371233=>{const _0x3b05a5=_0x582a28;if((_0x371233==null?void 0x0:_0x371233[_0x3b05a5(0x497)])!==this['unitID'])return;let _0x5daba0={'eventID':_0x55a71b[_0x3b05a5(0x274)]['UPDATE_CURSOR'],'data':_0x371233};this[_0x3b05a5(0x4b0)](_0x5daba0);}),this[_0x582a28(0x3cf)](this[_0x582a28(0x278)][_0x582a28(0x397)](_0x1ec847=>{const _0x4886ed=_0x582a28;if(_0x1ec847['params']==null)return;let _0x1dca7a=_0x1ec847[_0x4886ed(0x2e5)];if(_0x1ec847['id']!==_0x57e165[_0x4886ed(0x249)]['id']||_0x1dca7a[_0x4886ed(0x3d9)]!==this[_0x4886ed(0x497)])return;let _0x2bf2b9={'id':_0x4886ed(0x2fd),'params':_0x1dca7a},_0x47cf69=this[_0x4886ed(0x474)];for(let [_0x104767,_0x1f458b]of _0x47cf69){let _0x15cd38={'id':_0x4886ed(0x2fd),'params':{'unitId':this[_0x4886ed(0x497)],'actions':null,'textRanges':_0x1f458b[_0x4886ed(0x44d)]}},_0x520719=this['_transformService']['transformMutation'](_0x2bf2b9,_0x15cd38,!0x1);if((0x0,_0x55a71b[_0x4886ed(0x461)])(_0x520719))throw _0x520719[_0x4886ed(0x300)];_0x47cf69[_0x4886ed(0x3e0)](_0x104767,{..._0x1f458b,'ranges':_0x520719[_0x4886ed(0x2ec)][_0x4886ed(0x2e5)][_0x4886ed(0x3a1)]});}queueMicrotask(()=>{const _0x319cd2=_0x4886ed;this[_0x319cd2(0x22d)][_0x319cd2(0x3fb)](_0x47cf69);});})));}[_0x1c395f(0x4b0)](_0x2e380c){const _0x29e8d3=_0x1c395f;var _0x5b0368,_0x4ab883;let {memberID:_0x20d6d7,selection:_0xfeaaf6}=_0x2e380c[_0x29e8d3(0x458)],_0x2cad00=_0x16315f(_0xfeaaf6),_0x152ed9=(_0x5b0368=(_0x4ab883=this['_memberService'][_0x29e8d3(0x346)](this['unitID'],_0x20d6d7))==null?void 0x0:_0x4ab883[_0x29e8d3(0x334)])==null?'Unknown\x20user':_0x5b0368,_0x1e84ac={'color':this[_0x29e8d3(0x3d3)]['assignAColorForMemberID'](_0x20d6d7),'name':_0x152ed9,'ranges':_0x2cad00},_0x23b605=this[_0x29e8d3(0x474)];_0x23b605[_0x29e8d3(0x3e0)](_0x20d6d7,_0x1e84ac),this['_cursorInfo$'][_0x29e8d3(0x3fb)](_0x23b605);}[_0x1c395f(0x43e)](_0x227dcb){const _0x4ae984=_0x1c395f;let {memberID:_0x4b2dc}=_0x227dcb[_0x4ae984(0x458)],_0xc547bd=this[_0x4ae984(0x474)];_0xc547bd[_0x4ae984(0x255)](_0x4b2dc),this[_0x4ae984(0x22d)]['next'](_0xc547bd);}[_0x1c395f(0x313)](){const _0x1adbc8=_0x1c395f;var _0x687889;if(this[_0x1adbc8(0x41f)]=!0x0,((_0x687889=this[_0x1adbc8(0x2bb)][_0x1adbc8(0x47a)]())==null?void 0x0:_0x687889[_0x1adbc8(0x2c0)]())!==this[_0x1adbc8(0x497)])return;let _0x462102=this[_0x1adbc8(0x374)]['get'](_0x57e165['DocSelectionManagerService'])[_0x1adbc8(0x327)]();Array['isArray'](_0x462102)&&_0x462102[_0x1adbc8(0x331)]>0x0&&this[_0x1adbc8(0x25d)](_0x462102);}[_0x1c395f(0x21f)](){const _0x1ed9f7=_0x1c395f;this[_0x1ed9f7(0x41f)]=!0x1;}};_0x27d61b=_0x29ab40([_0x47c7dc(0x2,(0x0,_0xa51970['Inject'])(_0xa51970['Injector'])),_0x47c7dc(0x3,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x3bd223)),_0x47c7dc(0x4,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x2b8)])),_0x47c7dc(0x5,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x44ff4a)),_0x47c7dc(0x6,_0x55a71b[_0x1c395f(0x239)]),_0x47c7dc(0x7,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x8,_0xa51970[_0x1c395f(0x417)])],_0x27d61b);let _0x164951=()=>{let _0x3b0c8e=[],_0x49a149=!0x1;return _0x1f307f=>{const _0x5afe56=_0x91f5;_0x3b0c8e[_0x5afe56(0x30e)](_0x1f307f),_0x49a149||(_0x49a149=!0x0,setTimeout(()=>{const _0x3c401d=_0x5afe56;_0x3b0c8e[_0x3c401d(0x4b6)](_0x3e0005=>_0x3e0005()),_0x3b0c8e=[],_0x49a149=!0x1;}));};},_0x539254=class extends _0xa51970[_0x1c395f(0x323)]{get[_0x1c395f(0x474)](){const _0x26a4ef=_0x1c395f;return this[_0x26a4ef(0x22d)]['getValue']();}get[_0x1c395f(0x439)](){const _0x2b464f=_0x1c395f;return this[_0x2b464f(0x3c0)][_0x2b464f(0x48f)]();}constructor(_0x95c800,_0x2eb70c,_0xb1b413,_0x322dec,_0x3a59b8,_0xfa747a,_0x26ea45,_0x26ce32){const _0x135ee2=_0x1c395f;super(),this[_0x135ee2(0x497)]=_0x95c800,this['_session']=_0x2eb70c,this[_0x135ee2(0x374)]=_0xb1b413,this['_colorAssignService']=_0x322dec,this['_memberService']=_0x3a59b8,this[_0x135ee2(0x2bb)]=_0xfa747a,this[_0x135ee2(0x278)]=_0x26ea45,this[_0x135ee2(0x44f)]=_0x26ce32,_0x3dacf4(this,_0x135ee2(0x41f),!0x1),_0x3dacf4(this,_0x135ee2(0x47c),!0x1),_0x3dacf4(this,_0x135ee2(0x22d),new _0x2b7fe7[(_0x135ee2(0x378))](new Map())),_0x3dacf4(this,'cursorInfo$',this[_0x135ee2(0x22d)][_0x135ee2(0x2a1)]()),_0x3dacf4(this,_0x135ee2(0x3c0),new _0x2b7fe7[(_0x135ee2(0x378))]([])),_0x3dacf4(this,'roomMembers$',this[_0x135ee2(0x3c0)][_0x135ee2(0x360)]((0x0,_0x2b7fe7['debounceTime'])(0x12c))),_0x3dacf4(this,_0x135ee2(0x25d),(0x0,_0xa51970[_0x135ee2(0x4af)])((_0x206743,_0x5defcf)=>{const _0xf7d409=_0x135ee2;let _0x571db0={'eventID':_0x55a71b[_0xf7d409(0x274)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xf7d409(0x497)],'memberID':this[_0xf7d409(0x387)]['getMemberID'](),'selection':(0x0,_0x2b6b2b[_0xf7d409(0x203)])(_0x206743,_0x5defcf[_0xf7d409(0x220)])}};this[_0xf7d409(0x387)]['send'](_0x571db0,this['unitID']);},0x64));}[_0x1c395f(0x312)](){const _0x25c3c5=_0x1c395f;super[_0x25c3c5(0x312)](),this['_cursorInfo$'][_0x25c3c5(0x3fb)](new Map()),this[_0x25c3c5(0x22d)][_0x25c3c5(0x480)](),this['_roomMembers$'][_0x25c3c5(0x3fb)]([]),this[_0x25c3c5(0x3c0)][_0x25c3c5(0x480)]();}[_0x1c395f(0x1d3)](){const _0x4b560a=_0x1c395f;this[_0x4b560a(0x47c)]||(this[_0x4b560a(0x47c)]=!0x0,this['_session'][_0x4b560a(0x30a)]['pipe']((0x0,_0x2b7fe7[_0x4b560a(0x1f3)])(this[_0x4b560a(0x41c)]))[_0x4b560a(0x47e)](_0x26527d=>{const _0x1ad204=_0x4b560a;_0x26527d===_0x513f25[_0x1ad204(0x37d)][_0x1ad204(0x419)]?this[_0x1ad204(0x313)]():this['_toggleOffline']();}),this[_0x4b560a(0x387)][_0x4b560a(0x330)]['pipe']((0x0,_0x2b7fe7['takeUntil'])(this[_0x4b560a(0x41c)]))['subscribe'](_0x535cff=>{const _0x67e5f8=_0x4b560a;let _0x30ecf1=_0x535cff[_0x67e5f8(0x2f4)];_0x30ecf1===_0x55a71b['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x535cff),_0x30ecf1===_0x55a71b['CollaborationEvent'][_0x67e5f8(0x2d3)]&&this[_0x67e5f8(0x43e)](_0x535cff);}),this[_0x4b560a(0x4a5)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0xc2b503=>{const _0x402129=_0x4b560a;if(this[_0x402129(0x41f)]&&_0xc2b503['id']===_0x544b28['SetSelectionsOperation']['id']&&_0xc2b503[_0x402129(0x2e5)][_0x402129(0x3d9)]===this[_0x402129(0x497)]){let _0x215e49=_0xc2b503[_0x402129(0x2e5)];this['_updateLocalCursor'](_0x215e49[_0x402129(0x403)],_0x215e49['selections'][0x0]);}})));}[_0x1c395f(0x4b0)](_0x1b9b73){const _0x3e6900=_0x1c395f;var _0x2f48c3,_0x56eac4;let {memberID:_0x4ee8a6,selection:_0x5edc44}=_0x1b9b73[_0x3e6900(0x458)],{sheetName:_0x3019ab,range:_0x16f4a1}=(0x0,_0x2b6b2b[_0x3e6900(0x314)])(_0x5edc44),_0x192ed4={'name':(_0x2f48c3=(_0x56eac4=this['_memberService'][_0x3e6900(0x346)](this[_0x3e6900(0x497)],_0x4ee8a6))==null?void 0x0:_0x56eac4[_0x3e6900(0x334)])==null?_0x3e6900(0x24c):_0x2f48c3,'range':this[_0x3e6900(0x24f)](_0x3019ab,_0x16f4a1),'sheetID':_0x3019ab,'color':this['_colorAssignService'][_0x3e6900(0x4a7)](_0x4ee8a6),'selection':_0x5edc44},_0x14ca1d=this[_0x3e6900(0x474)];_0x14ca1d[_0x3e6900(0x3e0)](_0x4ee8a6,_0x192ed4),this[_0x3e6900(0x22d)][_0x3e6900(0x3fb)](_0x14ca1d);}['_onCursorDelete'](_0x5dfbf2){const _0x5d5a6b=_0x1c395f;let {memberID:_0x4b3e18}=_0x5dfbf2[_0x5d5a6b(0x458)],_0x21cde6=this[_0x5d5a6b(0x474)];_0x21cde6['delete'](_0x4b3e18),this[_0x5d5a6b(0x22d)]['next'](_0x21cde6);}[_0x1c395f(0x24f)](_0x1ae663,_0x12ae44){const _0x588a07=_0x1c395f;var _0xfa5fe;let _0x25cde2=(_0xfa5fe=this[_0x588a07(0x2bb)]['getUniverSheetInstance'](this['unitID']))==null||(_0xfa5fe=_0xfa5fe[_0x588a07(0x3b1)](_0x1ae663))==null?void 0x0:_0xfa5fe[_0x588a07(0x29e)]();return(_0x25cde2==null?void 0x0:_0x25cde2[_0x588a07(0x23f)](_0x2f73f6=>_0xa51970[_0x588a07(0x1fb)]['contains'](_0x2f73f6,_0x12ae44)))||_0x12ae44;}[_0x1c395f(0x4a5)](){const _0x3dc693=_0x1c395f;let _0x5decd6=new _0xa51970[(_0x3dc693(0x211))](),_0x1cfebb=_0x164951(),_0x45c9e7=()=>{const _0x278007=_0x3dc693;_0x5decd6[_0x278007(0x312)]();let _0x3b6bc4=(_0x5a3e27,_0x280c43,_0x14e820,_0x3a2acf)=>{const _0x192c0b=_0x278007;let _0x1a96cf=[];switch(_0x5a3e27['id']){case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x26f)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x2ef)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x33c)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x297)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x3de)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x28e)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x383)]:_0x1a96cf=(0x0,_0x544b28['handleInsertRangeMoveDown'])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x45a)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x465)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x302)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x4a6)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28['EffectRefRangId'][_0x192c0b(0x418)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x224)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)][_0x192c0b(0x4b2)]:_0x1a96cf=(0x0,_0x544b28[_0x192c0b(0x463)])(_0x5a3e27,_0x3a2acf);break;case _0x544b28[_0x192c0b(0x438)]['RemoveRowCommandId']:_0x1a96cf=(0x0,_0x544b28['handleIRemoveRow'])(_0x5a3e27,_0x3a2acf);break;}let _0x4350c5=(0x0,_0x544b28[_0x192c0b(0x295)])(_0x1a96cf,_0x3a2acf),_0x4ce93b=this[_0x192c0b(0x474)][_0x192c0b(0x29f)](_0x280c43);if(_0x4ce93b&&_0x4350c5){let _0x776941={..._0x4ce93b,'range':_0x4350c5};this[_0x192c0b(0x474)][_0x192c0b(0x3e0)](_0x280c43,_0x776941),_0x1cfebb(()=>{const _0x2facc1=_0x192c0b;let _0x58083f=this[_0x2facc1(0x44f)][_0x2facc1(0x399)](_0x4350c5,_0x1e4e0a=>(_0x58083f[_0x2facc1(0x312)](),_0x3b6bc4(_0x1e4e0a,_0x280c43,_0x14e820,_0x4350c5)));_0x5decd6[_0x2facc1(0x2ff)](_0x58083f);});}return{'redos':[],'undos':[]};};this[_0x278007(0x474)][_0x278007(0x4b6)]((_0x40e1fd,_0x144fb6)=>{const _0x45b2c6=_0x278007;let {range:_0x46a0c5,sheetID:_0x19b743}=_0x40e1fd,_0x4ef898=this[_0x45b2c6(0x44f)][_0x45b2c6(0x399)](_0x46a0c5,_0x4ad298=>(_0x4ef898['dispose'](),_0x3b6bc4(_0x4ad298,_0x144fb6,_0x19b743,_0x46a0c5)));_0x5decd6['add'](_0x4ef898);});};this[_0x3dc693(0x3cf)]((0x0,_0xa51970[_0x3dc693(0x341)])(this[_0x3dc693(0x22d)]['subscribe'](()=>{_0x45c9e7();})));}[_0x1c395f(0x313)](){const _0x40761a=_0x1c395f;var _0x232008,_0x2bd7c6;if(this['_online']=!0x0,((_0x232008=this[_0x40761a(0x2bb)][_0x40761a(0x47a)]())==null?void 0x0:_0x232008[_0x40761a(0x2c0)]())!==this[_0x40761a(0x497)])return;let _0x4f0a94=(_0x2bd7c6=this[_0x40761a(0x374)]['get'](_0x544b28['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x2bd7c6[0x0],_0x5ab8b9=this[_0x40761a(0x2bb)][_0x40761a(0x472)](_0xa51970[_0x40761a(0x39c)]['UNIVER_SHEET'])['getActiveSheet']();_0x4f0a94&&_0x5ab8b9&&this[_0x40761a(0x25d)](_0x5ab8b9[_0x40761a(0x479)](),_0x4f0a94);}[_0x1c395f(0x21f)](){const _0x3e765d=_0x1c395f;this[_0x3e765d(0x41f)]=!0x1;}};_0x539254=_0x29ab40([_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x3,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x3bd223)),_0x47c7dc(0x4,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x2b8)])),_0x47c7dc(0x5,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x6,_0xa51970['ICommandService']),_0x47c7dc(0x7,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x544b28[_0x1c395f(0x24d)]))],_0x539254);let _0x2471fd=class extends _0xa51970['RxDisposable']{constructor(_0x4ae8b0,_0xd3f9a8,_0x3e5318){const _0x5f306f=_0x1c395f;super(),this[_0x5f306f(0x2bb)]=_0x4ae8b0,this[_0x5f306f(0x374)]=_0xd3f9a8,this[_0x5f306f(0x355)]=_0x3e5318,_0x3dacf4(this,_0x5f306f(0x38e),new Map()),_0x3dacf4(this,_0x5f306f(0x349),new _0x2b7fe7[(_0x5f306f(0x325))]()),this[_0x5f306f(0x47c)]();}[_0x1c395f(0x312)](){const _0xd58802=_0x1c395f;super['dispose'](),this[_0xd58802(0x349)][_0xd58802(0x480)](),this['_entities'][_0xd58802(0x4b6)](_0xbea7dc=>_0xbea7dc['dispose']());}['getCollabCursors$'](_0x1ca569){const _0x2a9e0b=_0x1c395f;return this['_entities']['has'](_0x1ca569)?this[_0x2a9e0b(0x38e)][_0x2a9e0b(0x29f)](_0x1ca569)['cursorInfo$']:this['_entityInit$'][_0x2a9e0b(0x360)]((0x0,_0x2b7fe7['filter'])(_0x2571eb=>_0x2571eb[_0x2a9e0b(0x497)]===_0x1ca569),(0x0,_0x2b7fe7['switchMap'])(_0x22d513=>_0x22d513[_0x2a9e0b(0x2df)]));}[_0x1c395f(0x47c)](){const _0x3a7be2=_0x1c395f;this['_univerInstanceService'][_0x3a7be2(0x2f1)](_0xa51970['UniverInstanceType'][_0x3a7be2(0x44a)])[_0x3a7be2(0x360)]((0x0,_0x2b7fe7[_0x3a7be2(0x1f3)])(this[_0x3a7be2(0x41c)]))['subscribe'](async _0x293bd2=>{const _0x338f63=_0x3a7be2;let _0x43ae07=_0x293bd2['unit'][_0x338f63(0x2c0)](),_0x245056=await this[_0x338f63(0x4a3)](_0x43ae07);this[_0x338f63(0x349)][_0x338f63(0x3fb)](_0x245056),this[_0x338f63(0x38e)][_0x338f63(0x3e0)](_0x43ae07,_0x245056);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0xa51970[_0x3a7be2(0x39c)][_0x3a7be2(0x456)])[_0x3a7be2(0x360)]((0x0,_0x2b7fe7[_0x3a7be2(0x1f3)])(this[_0x3a7be2(0x41c)]))[_0x3a7be2(0x360)]((0x0,_0x2b7fe7[_0x3a7be2(0x3ef)])(_0x40f2e1=>!_0x40f2e1[_0x3a7be2(0x337)][_0x3a7be2(0x2c0)]()[_0x3a7be2(0x1f9)]('__')))['subscribe'](async _0x2aa858=>{const _0x131e7d=_0x3a7be2;let {unit:_0x665849}=_0x2aa858,_0xfdfd59=_0x665849[_0x131e7d(0x2c0)](),_0x1b3fb8=await this[_0x131e7d(0x496)](_0xfdfd59);this['_entityInit$'][_0x131e7d(0x3fb)](_0x1b3fb8),this[_0x131e7d(0x38e)][_0x131e7d(0x3e0)](_0xfdfd59,_0x1b3fb8);}),(0x0,_0x2b7fe7['merge'])(this[_0x3a7be2(0x2bb)][_0x3a7be2(0x45f)](_0xa51970[_0x3a7be2(0x39c)]['UNIVER_DOC']),this[_0x3a7be2(0x2bb)][_0x3a7be2(0x45f)](_0xa51970[_0x3a7be2(0x39c)][_0x3a7be2(0x44a)]))[_0x3a7be2(0x360)]((0x0,_0x2b7fe7[_0x3a7be2(0x1f3)])(this[_0x3a7be2(0x41c)]))[_0x3a7be2(0x47e)](_0x1d5eda=>{const _0x1924f9=_0x3a7be2;let _0x41b198=_0x1d5eda[_0x1924f9(0x2c0)](),_0x2c41e0=this[_0x1924f9(0x38e)][_0x1924f9(0x29f)](_0x41b198);_0x2c41e0&&(_0x2c41e0['dispose'](),this['_entities'][_0x1924f9(0x255)](_0x41b198));});}async[_0x1c395f(0x4a3)](_0x38509f){const _0x3d5a72=_0x1c395f;let _0x349f1c=await this['_collabSessionService']['requireSession'](_0x38509f),_0x358f75=this[_0x3d5a72(0x374)]['createInstance'](_0x539254,_0x38509f,_0x349f1c);return _0x358f75[_0x3d5a72(0x1d3)](),_0x358f75;}async[_0x1c395f(0x496)](_0x461814){const _0x32b763=_0x1c395f;let _0x26496f=await this[_0x32b763(0x355)][_0x32b763(0x3d7)](_0x461814),_0x20cbb5=this[_0x32b763(0x374)][_0x32b763(0x1e4)](_0x27d61b,_0x461814,_0x26496f);return _0x20cbb5[_0x32b763(0x1d3)](),_0x20cbb5;}};_0x2471fd=_0x29ab40([_0x47c7dc(0x0,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25['CollaborationSessionService']))],_0x2471fd);function _0x1c1a05(_0x14ca74,_0x57c40a){const _0x16696e=_0x1c395f;var _0x20769e,_0x34bd3a,_0x7ff918;let {radius:_0x27bcee,width:_0x49de22,height:_0x3480fa}=_0x57c40a;_0x27bcee=(_0x20769e=_0x27bcee)==null?0x0:_0x20769e,_0x49de22=(_0x34bd3a=_0x49de22)==null?0x1e:_0x34bd3a,_0x3480fa=(_0x7ff918=_0x3480fa)==null?0x1e:_0x7ff918;let _0x3c1818=0x0,_0xe6b4a2=0x0,_0x34676e=0x0;_0x3c1818=_0xe6b4a2=_0x34676e=Math['min'](_0x27bcee,_0x49de22/0x2,_0x3480fa/0x2),_0x14ca74[_0x16696e(0x340)](),_0x14ca74[_0x16696e(0x21b)](_0x3c1818,0x0),_0x14ca74['lineTo'](_0x49de22-_0xe6b4a2,0x0),_0x14ca74[_0x16696e(0x3c5)](_0x49de22-_0xe6b4a2,_0xe6b4a2,_0xe6b4a2,Math['PI']*0x3/0x2,0x0,!0x1),_0x14ca74[_0x16696e(0x301)](_0x49de22,_0x3480fa-_0x34676e),_0x14ca74[_0x16696e(0x3c5)](_0x49de22-_0x34676e,_0x3480fa-_0x34676e,_0x34676e,0x0,Math['PI']/0x2,!0x1),_0x14ca74[_0x16696e(0x301)](0x0,_0x3480fa),_0x14ca74[_0x16696e(0x301)](0x0,_0x3c1818),_0x14ca74[_0x16696e(0x3c5)](_0x3c1818,_0x3c1818,_0x3c1818,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14ca74[_0x16696e(0x3ff)](),_0x57c40a[_0x16696e(0x40a)]&&(_0x14ca74['save'](),_0x14ca74['fillStyle']=_0x57c40a['fill'],_0x57c40a['fillRule']==='evenodd'?_0x14ca74[_0x16696e(0x40a)]('evenodd'):_0x14ca74['fill'](),_0x14ca74[_0x16696e(0x286)]());}var _0x17685e=class _0x11972f extends _0x5644b4[_0x1c395f(0x22c)]{constructor(_0x34534f,_0x5690f7){const _0x2b8718=_0x1c395f;super(_0x34534f,_0x5690f7),_0x3dacf4(this,_0x2b8718(0x2b3),void 0x0),_0x3dacf4(this,_0x2b8718(0x277),void 0x0),this[_0x2b8718(0x2b3)]=_0x5690f7==null?void 0x0:_0x5690f7[_0x2b8718(0x2b3)],this[_0x2b8718(0x277)]=_0x5690f7==null?void 0x0:_0x5690f7[_0x2b8718(0x277)];}static[_0x1c395f(0x3c8)](_0x2d752e,_0x2f96d8){const _0x41f739=_0x1c395f;let {text:_0x1a3ff4,color:_0x16c941}=_0x2f96d8;_0x2d752e['save'](),_0x2d752e['font']=_0x41f739(0x29b);let _0x4c14db=_0x2d752e[_0x41f739(0x4b5)](_0x1a3ff4)['width'];if(_0x1c1a05(_0x2d752e,{'height':0x14,'radius':0x4,'width':Math['min'](_0x4c14db+0x8,0xc8),'fill':_0x16c941,'evented':!0x1}),_0x2d752e['fillStyle']='#FFF',_0x4c14db>0xc0){let _0x573ebf='',_0x15d154=0x0;for(let _0x488351 of _0x1a3ff4){let _0x188fce=_0x2d752e[_0x41f739(0x4b5)](_0x488351)[_0x41f739(0x298)];if(_0x15d154+_0x188fce<=0xc0-_0x2d752e[_0x41f739(0x4b5)]('...')[_0x41f739(0x298)])_0x573ebf+=_0x488351,_0x15d154+=_0x188fce;else{_0x573ebf+='...';break;}}_0x2d752e[_0x41f739(0x2e9)](_0x573ebf,0x4,0xf);}else _0x2d752e[_0x41f739(0x2e9)](_0x1a3ff4,0x4,0xf);_0x2d752e[_0x41f739(0x286)]();}[_0x1c395f(0x2be)](_0x5a9598){const _0x4c2aa9=_0x1c395f;_0x11972f[_0x4c2aa9(0x3c8)](_0x5a9598,this);}};let _0x292419=_0x1c395f(0x44c);var _0x1781f9=class{constructor(_0x1188e0,_0x5e1bb5,_0x5eb8c0,_0x732d0a){const _0x1baaed=_0x1c395f;this[_0x1baaed(0x30b)]=_0x1188e0,this[_0x1baaed(0x237)]=_0x5e1bb5,this['_docSkeleton']=_0x5eb8c0,this[_0x1baaed(0x2b6)]=_0x732d0a,_0x3dacf4(this,'_shapes',[]),_0x3dacf4(this,'_anchor',null),_0x3dacf4(this,_0x1baaed(0x392),null),_0x3dacf4(this,_0x1baaed(0x3a5),null),_0x3dacf4(this,_0x1baaed(0x48d),null),_0x3dacf4(this,_0x1baaed(0x2e6),null),this[_0x1baaed(0x483)]();}set[_0x1c395f(0x411)](_0x350fb7){const _0x517dcf=_0x1c395f;_0x350fb7?(this[_0x517dcf(0x3a5)]&&this[_0x517dcf(0x3a5)][_0x517dcf(0x2b4)](),this[_0x517dcf(0x392)]&&this[_0x517dcf(0x392)]['show']()):(this[_0x517dcf(0x3a5)]&&this['_anchorDot'][_0x517dcf(0x428)](),this['_textBubble']&&this[_0x517dcf(0x392)]['hide']());}[_0x1c395f(0x312)](){const _0x2e8f1e=_0x1c395f;for(let _0x3884a7 of this[_0x2e8f1e(0x2a9)])_0x3884a7[_0x2e8f1e(0x312)]();this[_0x2e8f1e(0x392)]&&this[_0x2e8f1e(0x392)][_0x2e8f1e(0x312)](),this['_anchorDot']&&this[_0x2e8f1e(0x3a5)][_0x2e8f1e(0x312)](),this[_0x2e8f1e(0x223)]&&this[_0x2e8f1e(0x223)][_0x2e8f1e(0x312)](),this[_0x2e8f1e(0x2e6)]&&this[_0x2e8f1e(0x2e6)]();}[_0x1c395f(0x483)](){const _0x2bba4b=_0x1c395f;let {_docSkeleton:_0x3a7be4,_document:_0xe585bc}=this,{color:_0x3f0f96,name:_0x20bc3d,ranges:_0x4ed167}=this['_cursor'],_0x1209a4=_0xe585bc['getOffsetConfig'](),{docsLeft:_0x224b7c,docsTop:_0x394229}=_0x1209a4,_0x533095=new _0x301a88[(_0x2bba4b(0x30c))](_0x1209a4,_0x3a7be4);for(let {startOffset:_0x4bc4a0,endOffset:_0x2644f3,rangeType:_0x3e2085,segmentId:_0x1f6ee5,segmentPage:_0x15e2be,collapsed:_0x14bc1b,isActive:_0x15b66d}of _0x4ed167){let _0x8c9dc4=_0x3a7be4['findNodePositionByCharIndex'](_0x4bc4a0,!0x0,_0x1f6ee5,_0x15e2be),_0x244c69=_0x3a7be4[_0x2bba4b(0x4aa)](_0x2644f3,!0x0,_0x1f6ee5,_0x15e2be);if(_0x244c69==null&&(_0x244c69=_0x3a7be4[_0x2bba4b(0x4aa)](_0x2644f3-0x1,!0x1,_0x1f6ee5,_0x15e2be)),_0x15b66d){let {contentBoxPointGroup:_0x182de4}=_0x533095['getRangePointData'](_0x244c69,_0x244c69);if(_0x182de4[_0x2bba4b(0x331)]===0x0)continue;this[_0x2bba4b(0x46a)](_0x3f0f96,_0x182de4,_0x224b7c,_0x394229,_0x20bc3d),this['_eventUnsubscribe']=this[_0x2bba4b(0x261)]();}if(_0x8c9dc4&&_0x244c69){if(_0x3e2085===_0xa51970[_0x2bba4b(0x347)][_0x2bba4b(0x2b2)]){var _0x35db80;let {pointGroup:_0x47401a}=(_0x35db80=new _0x301a88[(_0x2bba4b(0x32b))](_0x1209a4,_0x3a7be4)[_0x2bba4b(0x4a8)](_0x8c9dc4,_0x244c69))==null?{}:_0x35db80;if(_0x47401a==null||_0x47401a[_0x2bba4b(0x331)]===0x0)continue;this['_drawRectRange'](_0x3f0f96,_0x47401a,_0x224b7c,_0x394229);}else{if(!_0x14bc1b){let {borderBoxPointGroup:_0x3aded8}=_0x533095[_0x2bba4b(0x4a8)](_0x8c9dc4,_0x244c69);if(_0x3aded8[_0x2bba4b(0x331)]===0x0)continue;this[_0x2bba4b(0x2c6)](_0x3f0f96,_0x3aded8,_0x224b7c,_0x394229);}}}}}['_drawAnchor'](_0x2160aa,_0x486171,_0x4492f7,_0x45c065,_0x569489){const _0x5ee492=_0x1c395f;let {left:_0x1f8e67,top:_0x5639fa,height:_0x113cb2}=this['_getAnchorBounding'](_0x486171),_0x10531a=1.5/this[_0x5ee492(0x27e)](),_0x5a0e16=new _0x5644b4[(_0x5ee492(0x27b))](_0x292419+(0x0,_0xa51970['generateRandomId'])(0x6),{'left':_0x1f8e67+_0x4492f7-_0x10531a,'top':_0x5639fa+_0x45c065,'height':_0x113cb2,'width':1.5,'fill':_0x2160aa||(0x0,_0x5644b4['getColor'])(_0xa51970[_0x5ee492(0x31d)][_0x5ee492(0x317)],0x0),'strokeWidth':_0x10531a,'stroke':_0x5ee492(0x227),'evented':!0x0});this[_0x5ee492(0x223)]=_0x5a0e16,this[_0x5ee492(0x237)][_0x5ee492(0x27f)](_0x5a0e16,_0x301a88[_0x5ee492(0x32c)]);let _0xb4cd94=new _0x5644b4['Rect'](_0x292419+(0x0,_0xa51970[_0x5ee492(0x3dc)])(0x6),{'left':_0x1f8e67+_0x4492f7-_0x10531a,'top':_0x5639fa+_0x45c065-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x2160aa||(0x0,_0x5644b4[_0x5ee492(0x1f6)])(_0xa51970[_0x5ee492(0x31d)][_0x5ee492(0x317)],0x0),'strokeWidth':0x0,'stroke':_0x2160aa||(0x0,_0x5644b4[_0x5ee492(0x1f6)])(_0xa51970[_0x5ee492(0x31d)][_0x5ee492(0x317)],0x0),'evented':!0x1});this[_0x5ee492(0x3a5)]=_0xb4cd94,this[_0x5ee492(0x237)][_0x5ee492(0x27f)](_0xb4cd94,_0x301a88[_0x5ee492(0x32c)]);let _0x6dfbf9=new _0x17685e(_0x292419+(0x0,_0xa51970[_0x5ee492(0x3dc)])(0x6),{'left':_0x1f8e67+_0x4492f7-_0x10531a,'top':_0x5639fa+_0x45c065-0x14,'text':_0x569489,'color':_0x2160aa});this[_0x5ee492(0x392)]=_0x6dfbf9,this[_0x5ee492(0x237)][_0x5ee492(0x27f)](_0x6dfbf9,_0x301a88[_0x5ee492(0x32c)]),this[_0x5ee492(0x411)]=!0x1;}[_0x1c395f(0x261)](){const _0x237171=_0x1c395f;let _0x514363=this[_0x237171(0x223)][_0x237171(0x3e3)][_0x237171(0x2da)](()=>{const _0x3077f5=_0x237171;this[_0x3077f5(0x411)]=!0x0;}),_0x376aaa=this['_anchor'][_0x237171(0x45b)][_0x237171(0x2da)](()=>{const _0x265fea=_0x237171;this[_0x265fea(0x48d)]&&clearTimeout(this[_0x265fea(0x48d)]),this['_hideTimer']=setTimeout(()=>{const _0x33ca93=_0x265fea;this[_0x33ca93(0x411)]=!0x1;},0x7d0);});return()=>{const _0xcb1935=_0x237171;_0x514363[_0xcb1935(0x210)](),_0x376aaa[_0xcb1935(0x210)]();};}['_drawTextRange'](_0x5c74f4,_0x1ce049,_0x3268a0,_0x1f0ed1){const _0x1f4bc1=_0x1c395f;let _0x246e1a=0.2,_0x1ef51a=new _0xa51970[(_0x1f4bc1(0x482))](_0x5c74f4)[_0x1f4bc1(0x400)](_0x246e1a)[_0x1f4bc1(0x369)](),_0x356c78=new _0x5644b4[(_0x1f4bc1(0x467))]('collab-text-range-'+(0x0,_0xa51970[_0x1f4bc1(0x3dc)])(0x6),{'pointsGroup':_0x1ce049,'fill':_0x1ef51a||(0x0,_0x5644b4[_0x1f4bc1(0x1f6)])(_0xa51970['COLORS']['black'],_0x246e1a),'left':_0x3268a0,'top':_0x1f0ed1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1f4bc1(0x2a9)][_0x1f4bc1(0x30e)](_0x356c78),this[_0x1f4bc1(0x237)][_0x1f4bc1(0x27f)](_0x356c78,_0x301a88['TEXT_RANGE_LAYER_INDEX']);}[_0x1c395f(0x2b0)](_0x2e2e65,_0xc5c882,_0x382877,_0x3cfad8){const _0x344777=_0x1c395f;let _0x525424=0.2,_0x3827d5=new _0xa51970[(_0x344777(0x482))](_0x2e2e65)['setAlpha'](_0x525424)[_0x344777(0x369)](),_0x27be84=new _0x5644b4[(_0x344777(0x467))](_0x344777(0x365)+(0x0,_0xa51970[_0x344777(0x3dc)])(0x6),{'pointsGroup':_0xc5c882,'fill':_0x3827d5||(0x0,_0x5644b4[_0x344777(0x1f6)])(_0xa51970[_0x344777(0x31d)][_0x344777(0x317)],_0x525424),'left':_0x382877,'top':_0x3cfad8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x344777(0x2a9)][_0x344777(0x30e)](_0x27be84),this[_0x344777(0x237)][_0x344777(0x27f)](_0x27be84,_0x301a88[_0x344777(0x32c)]);}[_0x1c395f(0x381)](_0xe32e1a){let _0x46654e=_0xe32e1a[0x0],_0x3e8351=_0x46654e[0x0],_0x15a433=_0x46654e[0x2],{x:_0x4927c0,y:_0x54b8fc}=_0x3e8351,{x:_0x2c096d,y:_0x586307}=_0x15a433;return{'left':_0x4927c0,'top':_0x54b8fc,'width':_0x2c096d-_0x4927c0,'height':_0x586307-_0x54b8fc};}[_0x1c395f(0x27e)](){const _0x2c9b29=_0x1c395f;let {scaleX:_0xbdd2fe,scaleY:_0x37c214}=this[_0x2c9b29(0x237)][_0x2c9b29(0x3b9)]();return Math[_0x2c9b29(0x41e)](_0xbdd2fe,_0x37c214);}};let _0x2624a9=class extends _0xa51970['RxDisposable']{constructor(_0x109c66,_0x58697c,_0x23169d,_0xaee2a2,_0x5676bf){const _0x31a6b0=_0x1c395f;super(),this['_context']=_0x109c66,this[_0x31a6b0(0x204)]=_0x58697c,this[_0x31a6b0(0x1df)]=_0x23169d,this['_commandService']=_0xaee2a2,this[_0x31a6b0(0x425)]=_0x5676bf,_0x3dacf4(this,'_cursorShapes',[]),_0x3dacf4(this,_0x31a6b0(0x342),[]),this[_0x31a6b0(0x47c)]();}[_0x1c395f(0x47c)](){const _0x4cf5f0=_0x1c395f;let _0x1c51c2=this['_context']['unitId'],_0x2cd994=this[_0x4cf5f0(0x204)];this[_0x4cf5f0(0x3cf)]((0x0,_0x2b7fe7['combineLatest'])([this['_collabCursorController']['getCollabCursors$'](_0x1c51c2),this['_themeService'][_0x4cf5f0(0x42b)]])[_0x4cf5f0(0x360)]((0x0,_0x4302c0[_0x4cf5f0(0x2f5)])(([_0x1bf79a,_0x328e2c])=>({'skeleton':_0x2cd994[_0x4cf5f0(0x24e)](),'cursors':[..._0x1bf79a[_0x4cf5f0(0x34e)]()]['flatMap'](_0x342844=>({..._0x342844,'color':this[_0x4cf5f0(0x425)][_0x4cf5f0(0x46b)](_0x342844['color'])}))})))[_0x4cf5f0(0x47e)](_0x282e66=>{const _0x5b4510=_0x4cf5f0;if(this[_0x5b4510(0x3b5)](),_0x282e66){let {skeleton:_0x5cf48d,cursors:_0x185e1e}=_0x282e66;this[_0x5b4510(0x328)](_0x5cf48d,_0x185e1e);}})),this['_initResize'](),this[_0x4cf5f0(0x38a)]();}[_0x1c395f(0x328)](_0x14aa92,_0x41d054){const _0x3e4aff=_0x1c395f;let {scene:_0x1659b2,mainComponent:_0x575b68}=this['_context'],_0x5dbba5=_0x41d054[_0x3e4aff(0x2f5)](_0x52d6e8=>new _0x1781f9(_0x52d6e8,_0x1659b2,_0x14aa92,_0x575b68));this[_0x3e4aff(0x1de)]=_0x5dbba5,this['_cursors']=_0x41d054;}[_0x1c395f(0x28d)](){const _0x30a0d2=_0x1c395f;this['_removeCollabCursors']();let {scene:_0x17c457,mainComponent:_0x10c459}=this[_0x30a0d2(0x495)],_0x5ba6a7=this[_0x30a0d2(0x204)][_0x30a0d2(0x24e)](),_0x25c88b=this[_0x30a0d2(0x342)][_0x30a0d2(0x2f5)](_0x2f6954=>new _0x1781f9(_0x2f6954,_0x17c457,_0x5ba6a7,_0x10c459));this[_0x30a0d2(0x1de)]=_0x25c88b;}[_0x1c395f(0x3b5)](){const _0x53f42f=_0x1c395f;this[_0x53f42f(0x1de)][_0x53f42f(0x4b6)](_0x40f56c=>_0x40f56c[_0x53f42f(0x312)]()),this[_0x53f42f(0x1de)]=[];}[_0x1c395f(0x38a)](){const _0x59c070=_0x1c395f;let _0x2b75c0=[_0x301a88['SetDocZoomRatioOperation']['id']];this[_0x59c070(0x3cf)](this[_0x59c070(0x278)]['onCommandExecuted'](_0x533f56=>{const _0x2d68a5=_0x59c070;_0x2b75c0[_0x2d68a5(0x3d1)](_0x533f56['id'])&&_0x533f56[_0x2d68a5(0x2e5)][_0x2d68a5(0x3d9)]===this[_0x2d68a5(0x495)][_0x2d68a5(0x3d9)]&&this[_0x2d68a5(0x28d)]();}));}[_0x1c395f(0x38b)](){const _0x5eeabd=_0x1c395f;this[_0x5eeabd(0x3cf)]((0x0,_0xa51970[_0x5eeabd(0x200)])(this[_0x5eeabd(0x495)][_0x5eeabd(0x212)][_0x5eeabd(0x310)])['pipe']((0x0,_0x4302c0[_0x5eeabd(0x3ef)])(_0x3d359f=>_0x3d359f['type']===_0x5644b4['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),(0x0,_0x4302c0[_0x5eeabd(0x404)])(0x10))['subscribe'](()=>{const _0x3b8d5b=_0x5eeabd;this[_0x3b8d5b(0x28d)]();}));}};_0x2624a9=_0x29ab40([_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x57e165['DocSkeletonManagerService'])),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x2471fd)),_0x47c7dc(0x3,_0xa51970[_0x1c395f(0x417)]),_0x47c7dc(0x4,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x1f1)]))],_0x2624a9);var _0x12ca0b=class extends _0x5644b4[_0x1c395f(0x22c)]{constructor(_0x102b85,_0x2508fc){const _0x278e41=_0x1c395f;if(super(_0x102b85,_0x2508fc),_0x3dacf4(this,_0x278e41(0x455),void 0x0),_0x3dacf4(this,_0x278e41(0x31b),!0x1),_0x3dacf4(this,_0x278e41(0x4a4),void 0x0),_0x3dacf4(this,_0x278e41(0x2cd),''),_0x3dacf4(this,_0x278e41(0x35d),'top'),_0x3dacf4(this,_0x278e41(0x382),void 0x0),_0x3dacf4(this,'_showText',void 0x0),_0x3dacf4(this,'_highlight',void 0x0),_0x3dacf4(this,_0x278e41(0x446),0x4),_0x3dacf4(this,_0x278e41(0x2ca),void 0x0),_0x3dacf4(this,'_blinkIntervalTimer',void 0x0),_0x3dacf4(this,_0x278e41(0x3dd),!0x0),_0x3dacf4(this,_0x278e41(0x367),0x0),_0x2508fc){var _0x3bf722;if(this[_0x278e41(0x207)](_0x2508fc),_0x2508fc[_0x278e41(0x42e)]&&((_0x3bf722=_0x2508fc[_0x278e41(0x487)])==null?this[_0x278e41(0x446)]:_0x3bf722)){var _0x4d0041;this['_startBlinking']((_0x4d0041=_0x2508fc[_0x278e41(0x487)])==null?this[_0x278e41(0x446)]:_0x4d0041);}}this['onPointerEnter$'][_0x278e41(0x2da)](()=>this[_0x278e41(0x207)]({'hovered':!0x0})),this[_0x278e41(0x45b)][_0x278e41(0x2da)](()=>this[_0x278e41(0x207)]({'hovered':!0x1}));}['setOffsetY'](_0x56a80d){const _0x4e2110=_0x1c395f;this[_0x4e2110(0x367)]=_0x56a80d;}[_0x1c395f(0x207)](_0x3256a2){const _0x90c6ab=_0x1c395f;var _0x1d3646,_0x3c75e2,_0x203e44,_0x2fa02e,_0x544cc4,_0x1443df,_0xcf2541;this[_0x90c6ab(0x455)]=(_0x1d3646=_0x3256a2[_0x90c6ab(0x2b3)])==null?this['_color']:_0x1d3646,this['_hovered']=(_0x3c75e2=_0x3256a2[_0x90c6ab(0x47d)])==null?this['_hovered']:_0x3c75e2,this[_0x90c6ab(0x4a4)]=(_0x203e44=_0x3256a2[_0x90c6ab(0x220)])==null?this[_0x90c6ab(0x4a4)]:_0x203e44,this['_name']=(_0x2fa02e=_0x3256a2[_0x90c6ab(0x334)])==null?this[_0x90c6ab(0x2cd)]:_0x2fa02e,this[_0x90c6ab(0x35d)]=(_0x544cc4=_0x3256a2[_0x90c6ab(0x304)])==null?this[_0x90c6ab(0x35d)]:_0x544cc4,this[_0x90c6ab(0x382)]=(_0x1443df=_0x3256a2[_0x90c6ab(0x433)])==null?this[_0x90c6ab(0x382)]:_0x1443df,this[_0x90c6ab(0x244)]=(_0xcf2541=_0x3256a2['showText'])==null?this[_0x90c6ab(0x244)]:_0xcf2541,_0x3256a2[_0x90c6ab(0x487)]!==void 0x0&&(this[_0x90c6ab(0x446)]=_0x3256a2[_0x90c6ab(0x487)]),_0x3256a2[_0x90c6ab(0x42e)]!==void 0x0&&(this[_0x90c6ab(0x424)]=_0x3256a2[_0x90c6ab(0x42e)]),_0x3256a2['offsetY']!==void 0x0&&(this[_0x90c6ab(0x367)]=_0x3256a2[_0x90c6ab(0x2c3)]),this[_0x90c6ab(0x229)]({'width':_0x3256a2['width'],'height':_0x3256a2['height']});}['onMouseMove'](_0x3c85bf){const _0x29b040=_0x1c395f;let {row:_0x1d6bbd,column:_0x4700c4}=_0x3c85bf;if(_0x1d6bbd>=this[_0x29b040(0x4a4)][_0x29b040(0x3a0)]&&_0x1d6bbd<=this[_0x29b040(0x4a4)][_0x29b040(0x215)]&&_0x4700c4>=this['_range'][_0x29b040(0x2bf)]&&_0x4700c4<=this[_0x29b040(0x4a4)][_0x29b040(0x3e8)]){this[_0x29b040(0x207)]({'hovered':!0x0});return;}this[_0x29b040(0x207)]({'hovered':!0x1});}['_startBlinking'](_0x3ed07f){const _0x4540e6=_0x1c395f;this[_0x4540e6(0x423)](),this[_0x4540e6(0x3dd)]=!0x0,this[_0x4540e6(0x2c4)]=window['setInterval'](()=>{const _0x53a3cb=_0x4540e6;this[_0x53a3cb(0x3dd)]=!this[_0x53a3cb(0x3dd)],this[_0x53a3cb(0x375)](!0x0);},0x1f4),this[_0x4540e6(0x2ca)]=window[_0x4540e6(0x48b)](()=>{const _0x358cda=_0x4540e6;this[_0x358cda(0x423)](),this[_0x358cda(0x3dd)]=!0x0,this['makeDirty'](!0x0);},_0x3ed07f*0x3e8);}[_0x1c395f(0x423)](){const _0x5af1f5=_0x1c395f;this['_blinkIntervalTimer']&&(window[_0x5af1f5(0x471)](this[_0x5af1f5(0x2c4)]),this[_0x5af1f5(0x2c4)]=void 0x0),this[_0x5af1f5(0x2ca)]&&(window[_0x5af1f5(0x250)](this[_0x5af1f5(0x2ca)]),this[_0x5af1f5(0x2ca)]=void 0x0);}['triggerDblclick'](_0x56ba53){return!0x1;}[_0x1c395f(0x312)](){const _0x2cd8cd=_0x1c395f;this[_0x2cd8cd(0x423)](),super[_0x2cd8cd(0x312)]();}[_0x1c395f(0x2be)](_0x1f983a){const _0x19f21d=_0x1c395f;let _0x3fede1=this[_0x19f21d(0x455)],_0xe58ad8=this[_0x19f21d(0x382)];if(this['_highlight']&&!this[_0x19f21d(0x3dd)]&&(_0x3fede1=this[_0x19f21d(0x31f)](this[_0x19f21d(0x455)]),_0xe58ad8=this[_0x19f21d(0x382)]?this['_getLighterColor'](this[_0x19f21d(0x382)]):void 0x0),_0x5644b4['Rect'][_0x19f21d(0x3c8)](_0x1f983a,{'width':this[_0x19f21d(0x298)],'height':this['height'],'strokeWidth':this[_0x19f21d(0x216)]||1.5,'stroke':_0x3fede1,'evented':!0x1,'fill':_0xe58ad8}),this[_0x19f21d(0x31b)]||this[_0x19f21d(0x244)]){var _0xfdc4a8;_0x1f983a['save'](),_0x1f983a[_0x19f21d(0x3a4)](0x1,0x0,0x0,0x1,this['width'],(this[_0x19f21d(0x35d)]===_0x19f21d(0x322)?0x0:-0x14)+((_0xfdc4a8=this[_0x19f21d(0x367)])==null?0x0:_0xfdc4a8)),_0x17685e['drawWith'](_0x1f983a,{'text':this[_0x19f21d(0x2cd)],'color':_0x3fede1}),_0x1f983a[_0x19f21d(0x286)]();}}[_0x1c395f(0x31f)](_0x51de4f){const _0x2e4ec1=_0x1c395f;return _0x51de4f[_0x2e4ec1(0x1f9)]('#')?_0x2e4ec1(0x2f9)+Number[_0x2e4ec1(0x28a)](_0x51de4f[_0x2e4ec1(0x3ad)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x51de4f[_0x2e4ec1(0x3ad)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x51de4f['slice'](0x5,0x7),0x10)+',\x200.2)':_0x51de4f['startsWith'](_0x2e4ec1(0x371))?_0x51de4f[_0x2e4ec1(0x435)](/[\d.]+\)$/g,_0x2e4ec1(0x3d4)):_0x51de4f['startsWith'](_0x2e4ec1(0x36b))?_0x51de4f[_0x2e4ec1(0x435)](_0x2e4ec1(0x36b),_0x2e4ec1(0x371))[_0x2e4ec1(0x435)](')',_0x2e4ec1(0x485)):_0x51de4f;}};let _0x478e5e=class extends _0xa51970['RxDisposable']{constructor(_0x3d4125,_0x1eeabc,_0x8a6de2,_0x22bce9){const _0xa1ed98=_0x1c395f;super(),this[_0xa1ed98(0x495)]=_0x3d4125,this[_0xa1ed98(0x453)]=_0x1eeabc,this[_0xa1ed98(0x1df)]=_0x8a6de2,this['_themeService']=_0x22bce9,_0x3dacf4(this,'_cursors',new Set()),_0x3dacf4(this,'_lastPointer',null),_0x3dacf4(this,'_pointerMoveDisposable',null),this[_0xa1ed98(0x47c)]();}['_init'](){const _0x1b3eff=_0x1c395f;this[_0x1b3eff(0x453)][_0x1b3eff(0x35f)][_0x1b3eff(0x360)]((0x0,_0x4302c0[_0x1b3eff(0x1f3)])(this[_0x1b3eff(0x41c)]),(0x0,_0x4302c0[_0x1b3eff(0x282)])(_0x22b659=>{const _0x565fcd=_0x1b3eff;if(_0x22b659){let _0x4a9105=_0x22b659['sheetId'];return(0x0,_0x2b7fe7[_0x565fcd(0x303)])(this[_0x565fcd(0x1df)]['getCollabCursors$'](this[_0x565fcd(0x495)][_0x565fcd(0x3d9)]),this[_0x565fcd(0x425)]['currentTheme$'])[_0x565fcd(0x360)]((0x0,_0x4302c0[_0x565fcd(0x2f5)])(([_0x509420,_0x46e98a])=>{const _0x73d186=_0x565fcd;let _0x2a372b=new Map();return _0x509420[_0x73d186(0x4b6)]((_0x4dd65e,_0x339f32)=>{const _0x3bb66c=_0x73d186;if(_0x4dd65e['sheetID']===_0x4a9105){let _0xc9a2a4={..._0x4dd65e};_0xc9a2a4['color']=this['_themeService'][_0x3bb66c(0x46b)](_0x4dd65e[_0x3bb66c(0x2b3)]),_0x2a372b[_0x3bb66c(0x3e0)](_0x339f32,_0xc9a2a4);}}),{'skeleton':_0x22b659,'cursors':_0x2a372b};}));}return(0x0,_0x2b7fe7['of'])({'skeleton':null,'cursors':new Map()});}))[_0x1b3eff(0x47e)](({skeleton:_0x167fa9,cursors:_0x470860})=>{const _0x51eba7=_0x1b3eff;this[_0x51eba7(0x3b5)](),_0x167fa9&&this[_0x51eba7(0x328)](_0x167fa9,_0x470860);}),this[_0x1b3eff(0x3cf)](this[_0x1b3eff(0x453)]['currentSkeleton$'][_0x1b3eff(0x360)]((0x0,_0x4302c0['takeUntil'])(this[_0x1b3eff(0x41c)]))[_0x1b3eff(0x47e)](_0x4cbfca=>{const _0x175e7a=_0x1b3eff;var _0x58db6f;if(_0x4cbfca==null)return;(_0x58db6f=this[_0x175e7a(0x4a0)])==null||_0x58db6f[_0x175e7a(0x210)](),this[_0x175e7a(0x4a0)]=null;let {skeleton:_0xd7216f}=_0x4cbfca,{scene:_0x37647a}=this[_0x175e7a(0x495)];this['_pointerMoveDisposable']=_0x37647a[_0x175e7a(0x2ad)][_0x175e7a(0x2da)]((0x0,_0xa51970['debounce'])(_0x3bf040=>{const _0x2d7246=_0x175e7a;var _0x115cbe,_0x58fa12;let {offsetX:_0xac26db,offsetY:_0x315e4a}=_0x3bf040,{x:_0x6f1065,y:_0x3d67d}=_0x37647a[_0x2d7246(0x306)](_0x5644b4[_0x2d7246(0x420)]['FromArray']([_0xac26db,_0x315e4a])),{scaleX:_0x58e0e0,scaleY:_0x2a8334}=_0x37647a[_0x2d7246(0x3b9)](),_0x20a147=_0x37647a[_0x2d7246(0x40f)](_0x5644b4[_0x2d7246(0x311)][_0x2d7246(0x36a)]),_0x4cd4ca=_0x37647a[_0x2d7246(0x466)](_0x5644b4['Vector2'][_0x2d7246(0x1fd)]([_0x6f1065,_0x3d67d]),_0x20a147),_0x9b4783=_0xd7216f['getCellPositionByOffset'](_0xac26db,_0x315e4a,_0x58e0e0,_0x2a8334,_0x4cd4ca);((_0x115cbe=this[_0x2d7246(0x3fe)])==null?void 0x0:_0x115cbe['column'])===_0x9b4783[_0x2d7246(0x2ab)]&&((_0x58fa12=this[_0x2d7246(0x3fe)])==null?void 0x0:_0x58fa12[_0x2d7246(0x1ee)])===_0x9b4783[_0x2d7246(0x1ee)]||this['_cursors'][_0x2d7246(0x4b6)](_0x25edb9=>{const _0x1ba1ab=_0x2d7246;_0x25edb9[_0x1ba1ab(0x2ae)](_0x9b4783);});},0x64));})),this[_0x1b3eff(0x3cf)]((0x0,_0xa51970[_0x1b3eff(0x341)])(()=>{var _0x5d8cca;(_0x5d8cca=this['_pointerMoveDisposable'])==null||_0x5d8cca['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x1c395f(0x328)](_0x324efa,_0xc884ef){const _0xa06c6c=_0x1c395f;let _0x203be5=this[_0xa06c6c(0x453)][_0xa06c6c(0x209)]();if(!_0x203be5)return;let _0x2e0e53=this[_0xa06c6c(0x39f)]();if(!_0x2e0e53)return;this['_cursors'][_0xa06c6c(0x4b6)](_0x2fc0bd=>{const _0x558e84=_0xa06c6c;_0x2fc0bd[_0x558e84(0x375)]();});let {scene:_0x401b08}=_0x2e0e53,_0x51214f=_0x67a7e1(Array[_0xa06c6c(0x43f)](_0xc884ef[_0xa06c6c(0x34e)]()))['map'](_0xd3f991=>{const _0x2201e5=_0xa06c6c;let {color:_0x54f4ba,range:_0x8f8a3f,name:_0x451df8,selection:_0x18019f,sheetID:_0x6a9bc7}=_0xd3f991,{startColumn:_0x15118c,startRow:_0x29bdc3,endColumn:_0x1a0183,endRow:_0x40923f}=_0x8f8a3f,_0x5063d7=(0x0,_0x48e544[_0x2201e5(0x42d)])(_0x29bdc3,_0x15118c,_0x401b08,_0x203be5),_0x51e9be=(0x0,_0x48e544['getCoordByCell'])(_0x40923f,_0x1a0183,_0x401b08,_0x203be5),{columnHeaderHeightAndMarginTop:_0x569b26}=_0x203be5,{startX:_0x51b5e8,startY:_0x2a1be2}=_0x5063d7,{endX:_0x2bac67,endY:_0x2a0dfc}=_0x51e9be,_0x392c5a=_0x2bac67-_0x51b5e8,_0x30af82=_0x2a0dfc-_0x2a1be2;return new _0x12ca0b(_0x451df8,{'labelPosition':_0x2a1be2-_0x569b26>=0x14?_0x2201e5(0x268):_0x2201e5(0x322),'sheetID':_0x6a9bc7,'range':_0x8f8a3f,'color':_0x54f4ba,'name':_0x451df8,'selection':_0x18019f,'left':_0x51b5e8,'top':_0x2a1be2,'width':_0x392c5a,'height':_0x30af82,'evented':!0x1,'zIndex':0x1389});});_0x401b08[_0xa06c6c(0x42f)](_0x51214f,0x1),this[_0xa06c6c(0x342)]=new Set(_0x51214f);}[_0x1c395f(0x3b5)](){const _0x3df150=_0x1c395f;var _0x2fc5cd;(_0x2fc5cd=this['_cursors'])==null||_0x2fc5cd[_0x3df150(0x4b6)](_0x4ecb2c=>_0x4ecb2c[_0x3df150(0x312)]());}[_0x1c395f(0x39f)](){const _0x5e22f4=_0x1c395f;return(0x0,_0x48e544[_0x5e22f4(0x2d7)])(this['_context']['unit'],this['_context']);}};_0x478e5e=_0x29ab40([_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x48e544[_0x1c395f(0x3b3)])),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x2471fd)),_0x47c7dc(0x3,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x1f1)]))],_0x478e5e);function _0x67a7e1(_0x2891d7){const _0xdd08ad=_0x1c395f;let _0x5e3da7=new Map();return _0x2891d7[_0xdd08ad(0x4b6)](_0x136a01=>{const _0x158c1c=_0xdd08ad;if(_0x5e3da7[_0x158c1c(0x3cc)](_0x136a01[_0x158c1c(0x473)])){let _0x23374d=_0x5e3da7['get'](_0x136a01[_0x158c1c(0x473)]);_0x23374d[_0x158c1c(0x334)]+=',\x20'+_0x136a01[_0x158c1c(0x334)];}else _0x5e3da7[_0x158c1c(0x3e0)](_0x136a01[_0x158c1c(0x473)],_0x136a01);}),Array[_0xdd08ad(0x43f)](_0x5e3da7[_0xdd08ad(0x34e)]());}let _0x71d6ca=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(_0x1f786a,_0x5a07aa,_0x2337e9,_0x50e090,_0x381567,_0x54bf7d){const _0xf1ffa6=_0x1c395f;super(),this[_0xf1ffa6(0x335)]=_0x1f786a,this['_localCacheService']=_0x5a07aa,this[_0xf1ffa6(0x2f0)]=_0x2337e9,this[_0xf1ffa6(0x402)]=_0x50e090,this[_0xf1ffa6(0x32d)]=_0x381567,this['_localeService']=_0x54bf7d,this[_0xf1ffa6(0x1ff)](),this[_0xf1ffa6(0x25c)]();}['_setupBeforeClosingHandler'](){const _0x3e12d8=_0x1c395f;this[_0x3e12d8(0x3cf)](this['_beforeCloseService'][_0x3e12d8(0x3ea)](()=>{const _0x11634a=_0x3e12d8;if(this[_0x11634a(0x361)][_0x11634a(0x2e4)][_0x11634a(0x251)])return this['_localeService']['t'](_0x11634a(0x257));}));}[_0x1c395f(0x25c)](){const _0x5cd482=_0x1c395f;this['disposeWithMe'](this[_0x5cd482(0x2f0)][_0x5cd482(0x330)]['subscribe'](_0x508e73=>{const _0x491094=_0x5cd482;_0x508e73['id']===_0x513f25['CollaborationUIEventId'][_0x491094(0x287)]&&this['_messageService'][_0x491094(0x428)]({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x228)],'content':this[_0x491094(0x48c)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)]['CLOSE_ROOM']&&this[_0x491094(0x402)][_0x491094(0x428)]({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x228)],'content':this['_localeService']['t'](_0x491094(0x2ac))}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)][_0x491094(0x468)]&&this['_notificationService'][_0x491094(0x428)]({'title':this[_0x491094(0x48c)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x491094(0x48c)]['t']('collaboration-client-ui.permission.content'),'type':_0x491094(0x300),'duration':0x0}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)][_0x491094(0x213)]&&this['_messageService'][_0x491094(0x428)]({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x3da)],'content':this[_0x491094(0x48c)]['t'](_0x491094(0x2ac))+'('+_0x508e73[_0x491094(0x458)]+')'}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)][_0x491094(0x1d9)]&&this[_0x491094(0x402)][_0x491094(0x428)]({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x228)],'content':this['_localeService']['t'](_0x508e73[_0x491094(0x458)]||'')}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)]['SOCKET_FAILED_RETRY']&&this[_0x491094(0x402)]['show']({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x228)],'content':this[_0x491094(0x48c)]['t']('collaboration-client-ui.session.will-retry')}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)][_0x491094(0x21e)]&&this[_0x491094(0x402)][_0x491094(0x428)]({'type':_0x51b08e[_0x491094(0x1d4)][_0x491094(0x3da)],'content':this['_localeService']['t'](_0x491094(0x23b))}),_0x508e73['id']===_0x513f25[_0x491094(0x2e2)][_0x491094(0x41b)]&&this[_0x491094(0x402)][_0x491094(0x428)]({'type':_0x51b08e['MessageType'][_0x491094(0x3da)],'content':this[_0x491094(0x48c)]['t'](_0x491094(0x49d))});}));}};_0x71d6ca=_0x29ab40([_0x47c7dc(0x0,_0x1ea15a[_0x1c395f(0x333)]),_0x47c7dc(0x1,_0x513f25[_0x1c395f(0x4a1)]),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x235)])),_0x47c7dc(0x3,_0x1ea15a[_0x1c395f(0x470)]),_0x47c7dc(0x4,_0x1ea15a[_0x1c395f(0x3fc)]),_0x47c7dc(0x5,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970['LocaleService']))],_0x71d6ca);let _0x2b68dd={},_0x224968=class{constructor(_0x4ed8dd,_0x14f40c){const _0xcd5ccf=_0x1c395f;this[_0xcd5ccf(0x386)]=_0x4ed8dd,this[_0xcd5ccf(0x368)]=_0x14f40c;}[_0x1c395f(0x214)](_0x153758){const _0x4d033b=_0x1c395f;this['_transformUndoRedoStack'](_0x153758),this[_0x4d033b(0x256)](_0x153758);}[_0x1c395f(0x2f7)](_0xe2ccaf){const _0x6fe036=_0x1c395f;let {unitID:_0x16c02e}=_0xe2ccaf,{redoCache:_0x2a0ebd}=this['_renderManagerService'][_0x6fe036(0x437)](_0x16c02e)[_0x6fe036(0x448)](_0x301a88[_0x6fe036(0x2a0)])['getUndoRedoMutationParamsCache']();if(_0x2a0ebd[_0x6fe036(0x331)]===0x0)return _0xe2ccaf;let _0x10d780=_0xa51970[_0x6fe036(0x366)][_0x6fe036(0x363)](_0xe2ccaf[_0x6fe036(0x3db)][0x0]);for(let _0x33956d=0x0;_0x33956d<_0x2a0ebd[_0x6fe036(0x331)];_0x33956d++){let _0x7f15de={'id':_0x6fe036(0x2fd),'params':{..._0x2a0ebd[_0x33956d]}},_0x4b1271=this[_0x6fe036(0x386)]['transformMutation'](_0x10d780,_0x7f15de,!0x1);if((0x0,_0x55a71b[_0x6fe036(0x461)])(_0x4b1271))throw _0x4b1271[_0x6fe036(0x300)];_0x10d780=_0x4b1271['m1Prime'];}return{..._0xa51970['Tools'][_0x6fe036(0x363)](_0xe2ccaf),'mutations':[_0x10d780]};}[_0x1c395f(0x2ed)](_0x4c5b52){const _0x437e9b=_0x1c395f;let {unitID:_0x567c62}=_0x4c5b52,_0x5d1a3a=this[_0x437e9b(0x368)][_0x437e9b(0x437)](_0x567c62)[_0x437e9b(0x448)](_0x301a88[_0x437e9b(0x2a0)]),{undoCache:_0x52148e,redoCache:_0x459692}=_0x5d1a3a[_0x437e9b(0x422)]();if(_0x52148e[_0x437e9b(0x331)]===0x0||_0x459692[_0x437e9b(0x331)]===0x0)return;let _0x367182=[],_0x2d4c4d=[],_0x1edad6=_0xa51970[_0x437e9b(0x366)][_0x437e9b(0x363)](_0x4c5b52[_0x437e9b(0x3db)][0x0]),_0x4d89ac=_0xa51970['Tools'][_0x437e9b(0x363)](_0x4c5b52[_0x437e9b(0x3db)][0x0]);for(let _0x26d1a8=_0x52148e['length']-0x1;_0x26d1a8>=0x0;_0x26d1a8--){let _0x489dea={'id':_0x437e9b(0x2fd),'params':{..._0x52148e[_0x26d1a8]}},_0xddff9d={'id':_0x437e9b(0x2fd),'params':{..._0x459692[_0x26d1a8]}},_0x2309a3=this[_0x437e9b(0x386)][_0x437e9b(0x3b7)](_0x1edad6,_0x489dea,!0x1),_0x420a37=this[_0x437e9b(0x386)][_0x437e9b(0x3b7)](_0x4d89ac,_0xddff9d,!0x1);if((0x0,_0x55a71b['isTransformMutationFailure'])(_0x2309a3))throw _0x2309a3[_0x437e9b(0x300)];if((0x0,_0x55a71b[_0x437e9b(0x461)])(_0x420a37))throw _0x420a37[_0x437e9b(0x300)];_0x367182[_0x437e9b(0x444)](_0x2309a3[_0x437e9b(0x2ec)][_0x437e9b(0x2e5)]),_0x2d4c4d['unshift'](_0x420a37[_0x437e9b(0x2ec)][_0x437e9b(0x2e5)]),_0x1edad6=_0x2309a3[_0x437e9b(0x40d)],_0x4d89ac=_0x420a37[_0x437e9b(0x40d)];}_0x5d1a3a[_0x437e9b(0x266)]({'undoCache':_0x367182,'redoCache':_0x2d4c4d});}[_0x1c395f(0x256)](_0x5e76f3){const _0x1b2f9e=_0x1c395f;let {unitID:_0x304b57}=_0x5e76f3,_0x58bf27=this['_renderManagerService'][_0x1b2f9e(0x437)](_0x304b57)[_0x1b2f9e(0x448)](_0x301a88[_0x1b2f9e(0x2a0)]),_0x1f4579=_0x58bf27[_0x1b2f9e(0x29a)]();if(_0x1f4579==null)return;let _0x30b81e=[{'id':_0x1b2f9e(0x2fd),'params':{'unitId':_0x5e76f3[_0x1b2f9e(0x497)],'actions':null,'textRanges':[_0x1f4579]}}],_0x170b24=this[_0x1b2f9e(0x386)][_0x1b2f9e(0x2b9)](_0x5e76f3,_0x30b81e);if(!(0x0,_0x55a71b[_0x1b2f9e(0x21a)])(_0x170b24))throw _0x170b24['error'];let _0x1f2518=_0x170b24[_0x1b2f9e(0x2ec)][0x0][_0x1b2f9e(0x2e5)][_0x1b2f9e(0x3a1)];Array['isArray'](_0x1f2518)&&_0x1f2518['length']&&_0x58bf27[_0x1b2f9e(0x43c)](_0x1f2518[0x0]);}};_0x224968=_0x29ab40([_0x47c7dc(0x0,_0x55a71b[_0x1c395f(0x239)]),_0x47c7dc(0x1,_0x5644b4[_0x1c395f(0x3be)])],_0x224968);let _0x4d2ce4=class{constructor(_0x2c6c68,_0x3f98c2,_0x450eee){const _0x21b74b=_0x1c395f;this[_0x21b74b(0x374)]=_0x2c6c68,this[_0x21b74b(0x386)]=_0x3f98c2,this['_docStateChangeManagerService']=_0x450eee;}['transformStateCache'](_0x4450f9){this['_transformHistoryAndStateStack'](_0x4450f9);}[_0x1c395f(0x2f7)](_0x360331){const _0x15b962=_0x1c395f;let {unitID:_0x3152c4}=_0x360331,{collaboration:_0x6726de}=this[_0x15b962(0x45e)][_0x15b962(0x3f3)](_0x3152c4);if(_0x6726de['length']===0x0)return _0x360331;let _0x1be06a=_0xa51970['Tools'][_0x15b962(0x363)](_0x360331[_0x15b962(0x3db)][0x0]);for(let _0x3a83b6=0x0;_0x3a83b6<_0x6726de[_0x15b962(0x331)];_0x3a83b6++){let _0x4730b2={'id':_0x15b962(0x2fd),'params':{'unitId':_0x6726de[_0x3a83b6]['unitId'],..._0x6726de[_0x3a83b6][_0x15b962(0x39b)]}},_0x246196=this[_0x15b962(0x386)][_0x15b962(0x3b7)](_0x1be06a,_0x4730b2,!0x1);if((0x0,_0x55a71b[_0x15b962(0x461)])(_0x246196))throw _0x246196[_0x15b962(0x300)];_0x1be06a=_0x246196[_0x15b962(0x40d)];}return{..._0xa51970['Tools'][_0x15b962(0x363)](_0x360331),'mutations':[_0x1be06a]};}[_0x1c395f(0x33f)](_0x465249){const _0x585340=_0x1c395f;let {unitID:_0x4acab7}=_0x465249,{history:_0x54852a,collaboration:_0x47fc70}=this[_0x585340(0x45e)][_0x585340(0x3f3)](_0x4acab7);if(_0x54852a[_0x585340(0x331)]===0x0&&_0x47fc70['length']===0x0)return;let _0xeb4473=[],_0xe63fde=[],_0x2bf387=_0xa51970[_0x585340(0x366)][_0x585340(0x363)](_0x465249[_0x585340(0x3db)][0x0]),_0x216e7d=_0xa51970['Tools'][_0x585340(0x363)](_0x465249['mutations'][0x0]);for(let _0x27095a=_0x54852a[_0x585340(0x331)]-0x1;_0x27095a>=0x0;_0x27095a--){let _0x333d15={'id':_0x585340(0x2fd),'params':{'unitId':_0x54852a[_0x27095a][_0x585340(0x3d9)],..._0x54852a[_0x27095a][_0x585340(0x2a2)]}},_0x31af8a={'id':_0x585340(0x2fd),'params':{'unitId':_0x54852a[_0x27095a][_0x585340(0x3d9)],..._0x54852a[_0x27095a][_0x585340(0x39b)]}},_0x13df02=this['_transformService']['transformMutation'](_0x2bf387,_0x333d15,!0x1),_0xa112f9=this[_0x585340(0x386)]['transformMutation'](_0x216e7d,_0x31af8a,!0x1);if((0x0,_0x55a71b[_0x585340(0x461)])(_0x13df02))throw _0x13df02[_0x585340(0x300)];if((0x0,_0x55a71b['isTransformMutationFailure'])(_0xa112f9))throw _0xa112f9[_0x585340(0x300)];_0xeb4473[_0x585340(0x444)]({..._0x54852a[_0x27095a],'undoState':_0x13df02[_0x585340(0x2ec)]['params'],'redoState':_0xa112f9['m2Prime'][_0x585340(0x2e5)]}),_0x2bf387=_0x13df02[_0x585340(0x40d)],_0x216e7d=_0xa112f9[_0x585340(0x40d)];}_0x2bf387=_0xa51970[_0x585340(0x366)][_0x585340(0x363)](_0x465249[_0x585340(0x3db)][0x0]),_0x216e7d=_0xa51970[_0x585340(0x366)][_0x585340(0x363)](_0x465249[_0x585340(0x3db)][0x0]);for(let _0x59ea7e=_0x47fc70[_0x585340(0x331)]-0x1;_0x59ea7e>=0x0;_0x59ea7e--){let _0x323c5e={'id':_0x585340(0x2fd),'params':{'unitId':_0x47fc70[_0x59ea7e][_0x585340(0x3d9)],..._0x47fc70[_0x59ea7e][_0x585340(0x2a2)]}},_0x5d1edb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47fc70[_0x59ea7e][_0x585340(0x3d9)],..._0x47fc70[_0x59ea7e][_0x585340(0x39b)]}},_0x548e5a=this[_0x585340(0x386)][_0x585340(0x3b7)](_0x2bf387,_0x323c5e,!0x1),_0x47f5d7=this[_0x585340(0x386)][_0x585340(0x3b7)](_0x216e7d,_0x5d1edb,!0x1);if((0x0,_0x55a71b[_0x585340(0x461)])(_0x548e5a))throw _0x548e5a['error'];if((0x0,_0x55a71b['isTransformMutationFailure'])(_0x47f5d7))throw _0x47f5d7[_0x585340(0x300)];_0xe63fde[_0x585340(0x444)]({..._0x47fc70[_0x59ea7e],'undoState':_0x548e5a[_0x585340(0x2ec)]['params'],'redoState':_0x47f5d7[_0x585340(0x2ec)][_0x585340(0x2e5)]}),_0x2bf387=_0x548e5a[_0x585340(0x40d)],_0x216e7d=_0x47f5d7[_0x585340(0x40d)];}this[_0x585340(0x45e)][_0x585340(0x3c6)](_0x4acab7,{'history':_0xeb4473,'collaboration':_0xe63fde});}};_0x4d2ce4=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x1,_0x55a71b[_0x1c395f(0x239)]),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x301a88[_0x1c395f(0x47f)]))],_0x4d2ce4);let _0x164c98=class{constructor(_0x28a030,_0x417c2f){const _0x191800=_0x1c395f;this['_injector']=_0x28a030,this[_0x191800(0x386)]=_0x417c2f;}[_0x1c395f(0x343)](_0x4b774f){const _0x57792b=_0x1c395f;var _0x1d8188;let _0x2b46af=this[_0x57792b(0x374)][_0x57792b(0x29f)](_0x57e165[_0x57792b(0x40b)]),_0x5bc6f0=(_0x1d8188=_0x2b46af[_0x57792b(0x327)]())==null?[]:_0x1d8188;if(_0x5bc6f0[_0x57792b(0x331)]===0x0)return;let _0x33ad59=_0x4b774f['unitID'],_0x48c980=[{'id':_0x57792b(0x2fd),'params':{'unitId':_0x33ad59,'actions':null,'textRanges':_0x5bc6f0}}],_0x56d067=this[_0x57792b(0x386)][_0x57792b(0x2b9)](_0x4b774f,_0x48c980);if(!(0x0,_0x55a71b[_0x57792b(0x21a)])(_0x56d067))throw _0x56d067['error'];let _0x4e82c4=_0x56d067[_0x57792b(0x2ec)][0x0]['params'][_0x57792b(0x3a1)];Array[_0x57792b(0x321)](_0x4e82c4)&&_0x4e82c4[_0x57792b(0x331)]&&_0x2b46af[_0x57792b(0x31a)](_0x4e82c4,{'unitId':_0x33ad59,'subUnitId':_0x33ad59},!0x1);}};_0x164c98=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x1,_0x55a71b[_0x1c395f(0x239)])],_0x164c98);let _0x1070da=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(_0x5c73b9,_0x479b1b,_0x39ecf3,_0x4999e0,_0x274f81,_0xcfa227,_0x5e992a,_0x24b726){const _0x5a073d=_0x1c395f;super(),this['_docStateChangeManagerService']=_0x5c73b9,this[_0x5a073d(0x1ec)]=_0x479b1b,this['_docTransformIMECacheService']=_0x39ecf3,this[_0x5a073d(0x3b8)]=_0x4999e0,this[_0x5a073d(0x20b)]=_0x274f81,this['_docSyncEditingCollabCursorService']=_0xcfa227,this[_0x5a073d(0x402)]=_0x5e992a,this[_0x5a073d(0x48c)]=_0x24b726,_0x3dacf4(this,_0x5a073d(0x38f),new _0x2b7fe7['BehaviorSubject'](_0x513f25[_0x5a073d(0x364)][_0x5a073d(0x3a7)])),this[_0x5a073d(0x291)]();}[_0x1c395f(0x291)](){const _0x3b98ea=_0x1c395f;this['disposeWithMe'](this[_0x3b98ea(0x1ec)][_0x3b98ea(0x262)][_0x3b98ea(0x47e)](_0xdc8fa=>{const _0x44a890=_0x3b98ea;let _0x74ba64=this['_docStateChangeManagerService'][_0x44a890(0x2d4)][_0x44a890(0x47e)](_0x4f6980=>{const _0x5ef608=_0x44a890;if(_0x4f6980==null)return;let {unitId:_0x37b39b,redoState:_0x1fee8e,commandId:_0x29e435}=_0x4f6980;if(_0x37b39b!==_0xdc8fa[_0x5ef608(0x497)])return;let _0x58357a={'id':_0x29e435,'type':_0xa51970[_0x5ef608(0x2e3)][_0x5ef608(0x2c2)],'params':{'unitId':_0x37b39b,'actions':_0x1fee8e[_0x5ef608(0x26b)],'textRanges':null}};_0xdc8fa[_0x5ef608(0x357)](_0x58357a);});_0xdc8fa['disposeWithMe'](_0x74ba64),_0xdc8fa instanceof _0x513f25[_0x44a890(0x1e8)]&&_0xdc8fa[_0x44a890(0x2a5)]({'onTransformIME':_0x240579=>this[_0x44a890(0x246)][_0x44a890(0x214)](_0x240579),'onTransformState':_0x2a3d3b=>this['_docTransformStateCacheService'][_0x44a890(0x42a)](_0x2a3d3b),'onTransformSelections':_0x3daa13=>this[_0x44a890(0x20b)]['transformSelections'](_0x3daa13),'onSyncEditingCollabCursor':_0x5142ae=>this[_0x44a890(0x222)][_0x44a890(0x389)](_0x5142ae),'onTransformRemoteChangesetByIMECache':_0x4b4d44=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x4b4d44),'onTransformRemoteChangesetByStateCache':_0x141e8a=>this[_0x44a890(0x3b8)]['transformRemoteChangeset'](_0x141e8a)});}));}};_0x1070da=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x301a88[_0x1c395f(0x47f)])),_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x2aa)])),_0x47c7dc(0x2,(0x0,_0xa51970['Inject'])(_0x224968)),_0x47c7dc(0x3,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x4d2ce4)),_0x47c7dc(0x4,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x164c98)),_0x47c7dc(0x5,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x44ff4a)),_0x47c7dc(0x6,_0x1ea15a[_0x1c395f(0x470)]),_0x47c7dc(0x7,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x358)]))],_0x1070da);let _0x41e65f=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(_0x3a3bf7,_0x464086,_0x5da741,_0x386547){const _0x3b632f=_0x1c395f;super(),this[_0x3b632f(0x374)]=_0x3a3bf7,this[_0x3b632f(0x1e9)]=_0x464086,this[_0x3b632f(0x2dd)]=_0x5da741,this[_0x3b632f(0x4b4)]=_0x386547,_0x3dacf4(this,_0x3b632f(0x3c3),void 0x0),this[_0x3b632f(0x47c)]();}[_0x1c395f(0x47c)](){const _0x5369b3=_0x1c395f;this[_0x5369b3(0x3a2)](),this[_0x5369b3(0x1dd)](),this[_0x5369b3(0x460)](),this[_0x5369b3(0x316)]();}[_0x1c395f(0x316)](){const _0x3cfe90=_0x1c395f;this[_0x3cfe90(0x3cf)](this['_collaborationSessionService']['socket$'][_0x3cfe90(0x47e)](_0x1da54a=>{this['_memberID']=_0x1da54a==null?void 0x0:_0x1da54a['memberID'];}));}[_0x1c395f(0x3a2)](){const _0x1ec88c=_0x1c395f;let _0x20decc=_0x3b94ca=>{const _0x3d0e00=_0x91f5;var _0x586610;this[_0x3d0e00(0x48e)](_0x3d0e00(0x300),_0x3d0e00(0x376)+_0x3b94ca[_0x3d0e00(0x285)]+_0x3d0e00(0x26c)+_0x3b94ca[_0x3d0e00(0x260)]+':'+_0x3b94ca['lineno']+':'+_0x3b94ca[_0x3d0e00(0x499)]+'\x0a'+(((_0x586610=_0x3b94ca[_0x3d0e00(0x300)])==null?void 0x0:_0x586610['stack'])||''));};window['addEventListener']('error',_0x20decc),this[_0x1ec88c(0x3cf)](()=>{const _0x4eb2b9=_0x1ec88c;window[_0x4eb2b9(0x2cc)](_0x4eb2b9(0x300),_0x20decc);});}['_initUnhandledRejectionListener'](){const _0x266807=_0x1c395f;let _0x3e2c5a=_0x39c919=>{const _0x58b1f5=_0x91f5;this[_0x58b1f5(0x48e)](_0x58b1f5(0x300),'[Unhandled\x20Rejection]:\x20'+_0x39c919[_0x58b1f5(0x3ba)]);};window[_0x266807(0x4b3)](_0x266807(0x449),_0x3e2c5a),this['disposeWithMe'](()=>{const _0x175089=_0x266807;window[_0x175089(0x2cc)](_0x175089(0x449),_0x3e2c5a);});}[_0x1c395f(0x460)](){const _0x3fb7ef=_0x1c395f;let _0x38849e=this[_0x3fb7ef(0x2dd)][_0x3fb7ef(0x300)][_0x3fb7ef(0x338)](this[_0x3fb7ef(0x2dd)]);this[_0x3fb7ef(0x2dd)]['error']=(..._0x38a08a)=>{const _0x23de65=_0x3fb7ef;let _0x261152=_0x38a08a[_0x23de65(0x2f5)](_0x6f2fce=>_0x6f2fce instanceof Error?_0x6f2fce[_0x23de65(0x285)]+'\x0a'+_0x6f2fce['stack']:String(_0x6f2fce))[_0x23de65(0x226)]('\x20');this[_0x23de65(0x48e)](_0x23de65(0x300),_0x23de65(0x3c1)+_0x261152),_0x38849e(..._0x38a08a);},this[_0x3fb7ef(0x3cf)](()=>{const _0x4d2cfc=_0x3fb7ef;this[_0x4d2cfc(0x2dd)][_0x4d2cfc(0x300)]=_0x38849e;});}[_0x1c395f(0x48e)](_0xfd4bc8,_0x17f377){const _0x376921=_0x1c395f;try{let _0x46a6d4={'userId':this[_0x376921(0x3c3)],'logLabel':_0xfd4bc8,'content':_0x17f377};this['_httpService'][_0x376921(0x2af)](_0x376921(0x2d1),{'body':_0x46a6d4})[_0x376921(0x276)](()=>{});}catch{}}};_0x41e65f=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970['Injector'])),_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xd84e90[_0x1c395f(0x2bc)])),_0x47c7dc(0x2,_0xa51970[_0x1c395f(0x2eb)]),_0x47c7dc(0x3,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x513f25[_0x1c395f(0x377)]))],_0x41e65f);function _0x424cd3(_0x1e305c){const _0x19094c=_0x1c395f;var _0x214449,_0x1a43d4;let _0x2947a5=(_0x214449=_0x1e305c[_0x19094c(0x1e2)])==null?void 0x0:_0x214449[_0x19094c(0x2c5)],_0xb49d73=((_0x1a43d4=_0x1e305c['stageInfo'])==null?void 0x0:_0x1a43d4[_0x19094c(0x25b)])||0x0;return _0x2947a5===_0x2b6b2b['FormulaExecuteStageType'][_0x19094c(0x447)]&&_0xb49d73>0x0;}function _0x4b638d(_0x221927){const _0x4fed25=_0x1c395f;return _0x221927[_0x4fed25(0x2ba)]===_0x2b6b2b[_0x4fed25(0x407)][_0x4fed25(0x31e)];}let _0x2e6585=class extends _0xa51970['Disposable']{constructor(_0x1356b6,_0x228e5e,_0x4311d4,_0x242716,_0x22db5a,_0x4a2308,_0x879ad4){const _0xefa09=_0x1c395f;super(),this[_0xefa09(0x402)]=_0x1356b6,this[_0xefa09(0x278)]=_0x228e5e,this[_0xefa09(0x27d)]=_0x4311d4,this[_0xefa09(0x1e9)]=_0x242716,this['_univerInstanceService']=_0x22db5a,this[_0xefa09(0x2dd)]=_0x4a2308,this['_localeService']=_0x879ad4,_0x3dacf4(this,_0xefa09(0x271),null),_0x3dacf4(this,_0xefa09(0x254),0x0),_0x3dacf4(this,_0xefa09(0x1d7),0x0),_0x3dacf4(this,_0xefa09(0x481),[]),_0x3dacf4(this,_0xefa09(0x3f4),0x0),this[_0xefa09(0x2f8)]();}[_0x1c395f(0x2f8)](){const _0x38e863=_0x1c395f;this['disposeWithMe'](this[_0x38e863(0x278)][_0x38e863(0x345)]((_0x310f50,_0x386110)=>{const _0x3c633c=_0x38e863;var _0x4074d8;if(_0x310f50['id']!==_0x2b6b2b[_0x3c633c(0x344)]['id'])return;let _0x135cd9=_0x310f50[_0x3c633c(0x2e5)];if(this[_0x3c633c(0x28f)]((_0x4074d8=_0x135cd9['dirtyRanges'])==null?[]:_0x4074d8)&&!this[_0x3c633c(0x3e7)]())throw this[_0x3c633c(0x38c)](_0x310f50,_0x386110),this[_0x3c633c(0x241)](),new _0xa51970[(_0x3c633c(0x3af))]();})),this[_0x38e863(0x3cf)](this['_commandService'][_0x38e863(0x397)]((_0x12e716,_0x239de4)=>{const _0x187e9f=_0x38e863;if(_0x12e716['id']!==_0x2b6b2b[_0x187e9f(0x32a)]['id'])return;let _0x6d6697=_0x12e716[_0x187e9f(0x2e5)];if(_0x424cd3(_0x6d6697)){let _0x1145b3=(0x0,_0xa51970[_0x187e9f(0x3dc)])();this['_taskIds'][_0x187e9f(0x30e)](_0x1145b3),this[_0x187e9f(0x275)](_0x1145b3);}else{if(_0x4b638d(_0x6d6697)&&this[_0x187e9f(0x481)][_0x187e9f(0x331)]>0x0){let _0x4833c1=this[_0x187e9f(0x481)][_0x187e9f(0x3a8)]();this[_0x187e9f(0x436)](_0x4833c1);}}}));}['dispose'](){const _0x48bbbd=_0x1c395f;super[_0x48bbbd(0x312)](),this[_0x48bbbd(0x2e7)](),this[_0x48bbbd(0x481)]=[],this[_0x48bbbd(0x1d7)]=0x0,this[_0x48bbbd(0x254)]=0x0,this[_0x48bbbd(0x3f4)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x23966a,_0x1dd7ba){const _0x5438f8=_0x1c395f;for(let _0x299646=0x0;_0x299646<0x1e;_0x299646++)try{if(await this[_0x5438f8(0x2e0)](),this['_checkCalculationAvailable']()){this[_0x5438f8(0x3eb)](_0x23966a,_0x1dd7ba),this[_0x5438f8(0x402)][_0x5438f8(0x428)]({'content':this[_0x5438f8(0x48c)]['t'](_0x5438f8(0x3d6)),'type':_0x51b08e[_0x5438f8(0x1d4)]['Success']});return;}await new Promise(_0x4165b6=>{const _0x25402f=_0x5438f8;this[_0x25402f(0x271)]=window[_0x25402f(0x48b)](_0x4165b6,0x3e8);});}catch(_0x4252a6){this[_0x5438f8(0x2dd)][_0x5438f8(0x300)](_0x4252a6);}this[_0x5438f8(0x402)][_0x5438f8(0x428)]({'content':this[_0x5438f8(0x48c)]['t'](_0x5438f8(0x1e0)),'type':_0x51b08e[_0x5438f8(0x1d4)][_0x5438f8(0x3da)]});}[_0x1c395f(0x3eb)](_0x145bef,_0x4712e8){const _0x26945f=_0x1c395f;try{this[_0x26945f(0x278)][_0x26945f(0x2d9)](_0x145bef['id'],_0x145bef[_0x26945f(0x2e5)],_0x4712e8);}catch(_0x289d20){this['_logService'][_0x26945f(0x300)](_0x289d20);}}['_setFormulaLimitStatus'](_0x53eb09,_0x18b725){const _0x31d68e=_0x1c395f;_0x18b725<this['_lastResponseTimestamp']||(this[_0x31d68e(0x3f4)]=_0x18b725,this[_0x31d68e(0x254)]=Number[_0x31d68e(0x28a)](_0x53eb09[_0x31d68e(0x294)]),this[_0x31d68e(0x1d7)]=Number[_0x31d68e(0x28a)](_0x53eb09['currentUsage']));}async[_0x1c395f(0x275)](_0x31dc70){const _0x24a631=_0x1c395f;let _0xd8d1cc=Date[_0x24a631(0x2d8)]();try{var _0x57243f,_0x11b023;let _0x2c6d59=((_0x57243f=this[_0x24a631(0x27d)][_0x24a631(0x34a)](_0x513f25['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57243f[_0x24a631(0x469)])||_0x24a631(0x34d),_0x440d72=(await this['_httpService'][_0x24a631(0x2af)](_0x2c6d59,{'body':JSON['stringify']({'taskId':_0x31dc70})}))['body'];if(((_0x11b023=_0x440d72[_0x24a631(0x300)])==null?void 0x0:_0x11b023[_0x24a631(0x393)])!==_0x5003eb['ErrorCode']['OK'])return;this[_0x24a631(0x372)](_0x440d72[_0x24a631(0x43b)],_0xd8d1cc);}catch(_0x46fb08){this[_0x24a631(0x2dd)]['error'](_0x46fb08);}}async[_0x1c395f(0x2e0)](_0x3d1faf){const _0x34d608=_0x1c395f;let _0x33082f=Date[_0x34d608(0x2d8)]();try{var _0x3ce9cb,_0x1c3997;let _0x5e2e2e=((_0x3ce9cb=this[_0x34d608(0x27d)][_0x34d608(0x34a)](_0x513f25[_0x34d608(0x39a)]))==null?void 0x0:_0x3ce9cb[_0x34d608(0x28b)])||_0x34d608(0x408),_0x48c1fb=_0x3d1faf?_0x5e2e2e+_0x34d608(0x2dc)+encodeURIComponent(_0x3d1faf):_0x5e2e2e,_0x14b128=(await this[_0x34d608(0x1e9)][_0x34d608(0x29f)](_0x48c1fb))[_0x34d608(0x22f)];if(((_0x1c3997=_0x14b128[_0x34d608(0x300)])==null?void 0x0:_0x1c3997[_0x34d608(0x393)])!==_0x5003eb[_0x34d608(0x1dc)]['OK'])return;this[_0x34d608(0x372)](_0x14b128['limitInfo'],_0x33082f);}catch(_0x40888c){this['_logService']['error'](_0x40888c);}}async[_0x1c395f(0x436)](_0xca436d){const _0x36afc5=_0x1c395f;let _0x337ca4=Date['now']();try{var _0x8c43b0,_0x480bed;let _0x507a60=((_0x8c43b0=this[_0x36afc5(0x27d)][_0x36afc5(0x34a)](_0x513f25[_0x36afc5(0x39a)]))==null?void 0x0:_0x8c43b0['releaseFormulaLimitUrl'])||'/universer-api/license/formula/limit/done',_0x1b44be=(await this[_0x36afc5(0x1e9)][_0x36afc5(0x2af)](_0x507a60,{'body':JSON[_0x36afc5(0x373)]({'taskId':_0xca436d})}))['body'];if(((_0x480bed=_0x1b44be[_0x36afc5(0x300)])==null?void 0x0:_0x480bed['code'])!==_0x5003eb[_0x36afc5(0x1dc)]['OK'])return;this[_0x36afc5(0x372)](_0x1b44be[_0x36afc5(0x43b)],_0x337ca4);}catch(_0x459520){this[_0x36afc5(0x2dd)][_0x36afc5(0x300)](_0x459520);}}[_0x1c395f(0x3e7)](){const _0x14cfef=_0x1c395f;return this[_0x14cfef(0x254)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x14cfef(0x1d7)]>0x0;}[_0x1c395f(0x2e7)](){const _0x33fce3=_0x1c395f;this['_pollingInterval']&&(clearTimeout(this[_0x33fce3(0x271)]),this[_0x33fce3(0x271)]=null);}[_0x1c395f(0x241)](){const _0xa1890a=_0x1c395f;this[_0xa1890a(0x402)]['show']({'content':this['_localeService']['t'](_0xa1890a(0x1db)),'type':_0x51b08e['MessageType'][_0xa1890a(0x356)]});}[_0x1c395f(0x28f)](_0x3ee56a){const _0x5f31eb=_0x1c395f;for(let _0x39d114 of _0x3ee56a){let {unitId:_0x5172ff,sheetId:_0x4e29f2,range:_0x46f419}=_0x39d114,_0x1cf72a=this['_univerInstanceService'][_0x5f31eb(0x3f7)](_0x5172ff);if(!_0x1cf72a)continue;let _0x2872c2=_0x1cf72a['getSheetBySheetId'](_0x4e29f2);if(!_0x2872c2)continue;let _0x3b76c4=_0x2872c2['getCellMatrix']();for(let _0xbdd591=_0x46f419[_0x5f31eb(0x3a0)];_0xbdd591<=_0x46f419[_0x5f31eb(0x215)];_0xbdd591++)for(let _0x5d7bf7=_0x46f419[_0x5f31eb(0x2bf)];_0x5d7bf7<=_0x46f419[_0x5f31eb(0x3e8)];_0x5d7bf7++){let _0x3bf855=_0x3b76c4[_0x5f31eb(0x48f)](_0xbdd591,_0x5d7bf7);if(_0x3bf855&&((0x0,_0xa51970[_0x5f31eb(0x431)])(_0x3bf855['f'])||(0x0,_0xa51970[_0x5f31eb(0x396)])(_0x3bf855['si'])))return!0x0;}}return!0x1;}};_0x2e6585=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0x1ea15a[_0x1c395f(0x470)])),_0x47c7dc(0x1,_0xa51970[_0x1c395f(0x417)]),_0x47c7dc(0x2,_0xa51970[_0x1c395f(0x221)]),_0x47c7dc(0x3,(0x0,_0xa51970['Inject'])(_0xd84e90[_0x1c395f(0x2bc)])),_0x47c7dc(0x4,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x5,_0xa51970['ILogService']),_0x47c7dc(0x6,(0x0,_0xa51970['Inject'])(_0xa51970[_0x1c395f(0x358)]))],_0x2e6585);let _0x434c3c=class extends _0xa51970[_0x1c395f(0x33e)]{constructor(_0x4ff426,_0x407755,_0x1edd52){const _0x361096=_0x1c395f;super(),this[_0x361096(0x27d)]=_0x4ff426,this[_0x361096(0x412)]=_0x407755,this[_0x361096(0x3cb)]=_0x1edd52,_0x3dacf4(this,_0x361096(0x2cb),new Map()),_0x3dacf4(this,_0x361096(0x49e),new Map()),_0x3dacf4(this,_0x361096(0x49b),!0x1);}[_0x1c395f(0x318)](){const _0x589d25=_0x1c395f;this[_0x589d25(0x49b)]=!0x0;}[_0x1c395f(0x26d)](){const _0x4f6b41=_0x1c395f;this[_0x4f6b41(0x49b)]=!0x1;}get[_0x1c395f(0x2e4)](){const _0x4d76b4=_0x1c395f;return this[_0x4d76b4(0x49e)];}[_0x1c395f(0x312)](){const _0x23efb5=_0x1c395f;this[_0x23efb5(0x430)]()[_0x23efb5(0x1d5)](()=>super[_0x23efb5(0x312)]());}async['loadOfflineData'](_0x1f7c3c){const _0x46b44c=_0x1c395f;return this['_disabled']?null:this[_0x46b44c(0x412)][_0x46b44c(0x3cd)]((0x0,_0x513f25[_0x46b44c(0x493)])(_0x1f7c3c));}async[_0x1c395f(0x238)](_0x41e959,_0x1facec){const _0x1ffc9b=_0x1c395f;return!!this[_0x1ffc9b(0x412)][_0x1ffc9b(0x23a)](_0x41e959,_0x1facec);}[_0x1c395f(0x427)](_0x5c67e5,_0x29ee9d,_0x198247,_0x1bbbe2){const _0x5016d7=_0x1c395f;let _0x11eede=this[_0x5016d7(0x3cb)][_0x5016d7(0x3d8)](_0x5c67e5);this[_0x5016d7(0x2cb)][_0x5016d7(0x3e0)](_0x5c67e5,{'unitID':_0x5c67e5,'type':_0x29ee9d,'awaitingChangeset':_0x198247,'mutations':_0x1bbbe2,'rev':_0x11eede}),this['_saveTaskMap']['has'](_0x5c67e5)||this[_0x5016d7(0x3bc)](_0x5c67e5);}[_0x1c395f(0x3bc)](_0x35ea89){const _0x4c1e6c=_0x1c395f;let _0x21873d=this[_0x4c1e6c(0x3aa)]();_0x21873d===0x0?this[_0x4c1e6c(0x451)](_0x35ea89):this[_0x4c1e6c(0x49e)][_0x4c1e6c(0x3e0)](_0x35ea89,setTimeout(()=>this['_saveCache'](_0x35ea89),_0x21873d));}['_getSaveTimeout'](){const _0x33b9d6=_0x1c395f;var _0x323c3c;return(_0x323c3c=this[_0x33b9d6(0x27d)][_0x33b9d6(0x34a)](_0x513f25[_0x33b9d6(0x307)]))==null?_0x513f25['LOCAL_CACHE_INTERVAL']:_0x323c3c;}[_0x1c395f(0x451)](_0x155b24){const _0x52d0ee=_0x1c395f;let _0x14d2fd=this['_saveTaskMap'][_0x52d0ee(0x29f)](_0x155b24);return _0x14d2fd!==void 0x0&&window[_0x52d0ee(0x250)](_0x14d2fd),this[_0x52d0ee(0x412)]['setItem']((0x0,_0x513f25[_0x52d0ee(0x493)])(_0x155b24),this[_0x52d0ee(0x2cb)][_0x52d0ee(0x29f)](_0x155b24))[_0x52d0ee(0x1d5)](()=>this['_saveTaskMap'][_0x52d0ee(0x255)](_0x155b24));}async[_0x1c395f(0x430)](){const _0x4fd6bc=_0x1c395f;let _0x16b34f=[];this[_0x4fd6bc(0x49e)]['forEach']((_0x267e05,_0x72b578)=>{const _0x3b524c=_0x4fd6bc;window[_0x3b524c(0x250)](_0x267e05),_0x16b34f[_0x3b524c(0x30e)](this['_saveCache'](_0x72b578)[_0x3b524c(0x1d5)](()=>{const _0x1c8969=_0x3b524c;this[_0x1c8969(0x49e)][_0x1c8969(0x255)](_0x72b578);}));}),await Promise['all'](_0x16b34f);}};_0x434c3c=_0x29ab40([_0x47c7dc(0x0,_0xa51970[_0x1c395f(0x221)]),_0x47c7dc(0x1,_0xa51970['ILocalStorageService']),_0x47c7dc(0x2,(0x0,_0xa51970['Inject'])(_0x55a71b[_0x1c395f(0x45d)]))],_0x434c3c);var _0x5e836f=class extends _0xa51970[_0x1c395f(0x323)]{constructor(){const _0x1d8d0e=_0x1c395f;super(),_0x3dacf4(this,_0x1d8d0e(0x26e),void 0x0),this[_0x1d8d0e(0x26e)]=(0x0,_0x2b7fe7[_0x1d8d0e(0x37e)])(window,_0x1d8d0e(0x351))[_0x1d8d0e(0x360)]((0x0,_0x2b7fe7[_0x1d8d0e(0x1f3)])(this[_0x1d8d0e(0x41c)]),(0x0,_0x2b7fe7[_0x1d8d0e(0x40c)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,_0x2b7fe7[_0x1d8d0e(0x442)])(void 0x0));}[_0x1c395f(0x289)](_0xff5cf7,_0x58d48e,_0x28646d=!0x1){const _0x3e75cf=_0x1c395f;let _0x1a289f=new URL(window[_0x3e75cf(0x457)]['href']);_0x1a289f['searchParams'][_0x3e75cf(0x3e0)](_0xff5cf7,_0x58d48e),_0x28646d?window[_0x3e75cf(0x329)]['replaceState']('','',_0x1a289f[_0x3e75cf(0x1f8)]()):window['history'][_0x3e75cf(0x489)]('','',_0x1a289f[_0x3e75cf(0x1f8)]());}[_0x1c395f(0x49f)](_0x690904,_0x8fa833=!0x1){const _0x5e726c=_0x1c395f;let _0x2d44f9=new URL(window[_0x5e726c(0x457)]['href']);_0x2d44f9['searchParams']['delete'](_0x690904),_0x8fa833?window[_0x5e726c(0x329)]['replaceState']('','',_0x2d44f9['toString']()):window[_0x5e726c(0x329)][_0x5e726c(0x489)]('','',_0x2d44f9['toString']());}[_0x1c395f(0x4ac)](_0x4d9da4){const _0x1dd601=_0x1c395f;var _0x5e4235;return(_0x5e4235=new URL(window[_0x1dd601(0x457)][_0x1dd601(0x1e1)])['searchParams'][_0x1dd601(0x29f)](_0x4d9da4))==null?void 0x0:_0x5e4235;}};let _0x4355ff=class extends _0xa51970[_0x1c395f(0x2ea)]{constructor(_0x5a14ae=_0x2b68dd,_0x313024,_0x1d18ed,_0x5338bf){const _0x481c7e=_0x1c395f;super(),this[_0x481c7e(0x491)]=_0x5a14ae,this[_0x481c7e(0x368)]=_0x313024,this[_0x481c7e(0x374)]=_0x1d18ed,this[_0x481c7e(0x27d)]=_0x5338bf;let {..._0x241f94}=(0x0,_0xa51970['merge'])({},_0x2b68dd,this['_config']);this[_0x481c7e(0x27d)][_0x481c7e(0x1ea)](_0x481c7e(0x2a3),_0x241f94);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}[_0x1c395f(0x296)](){const _0x4b8b43=_0x1c395f;this[_0x4b8b43(0x490)]();}['_registerDependencies'](){const _0x4b8e1e=_0x1c395f;var _0x36d8f4;let _0x26b5b6=[[_0x3bd223],[_0x2e6585],[_0x164c98],[_0x224968],[_0x4d2ce4],[_0x44ff4a],[_0x4c9c87,{'useClass':_0x5e836f}],[_0xd84e90[_0x4b8e1e(0x37b)],{'useClass':_0xd84e90[_0x4b8e1e(0x421)]}],[_0x513f25[_0x4b8e1e(0x4a1)],{'useClass':_0x434c3c}],[_0x473dd1],[_0x1070da],[_0x71d6ca],[_0x2471fd],[_0x558662],[_0x28bfcf]];this['_config']['enableFrontendLog']&&_0x26b5b6[_0x4b8e1e(0x30e)]([_0x41e65f]),(0x0,_0xa51970[_0x4b8e1e(0x462)])(this[_0x4b8e1e(0x374)],(0x0,_0xa51970[_0x4b8e1e(0x2ee)])(_0x26b5b6,(_0x36d8f4=this[_0x4b8e1e(0x491)])==null?void 0x0:_0x36d8f4[_0x4b8e1e(0x2d5)]));}[_0x1c395f(0x490)](){const _0x463fd2=_0x1c395f;this[_0x463fd2(0x3cf)](this[_0x463fd2(0x368)][_0x463fd2(0x46f)](_0xa51970[_0x463fd2(0x39c)][_0x463fd2(0x456)],[_0x2624a9])),this[_0x463fd2(0x3cf)](this[_0x463fd2(0x368)][_0x463fd2(0x46f)](_0xa51970['UniverInstanceType'][_0x463fd2(0x44a)],[_0x478e5e]));}['_initDependencies'](){const _0x5adb75=_0x1c395f;(0x0,_0xa51970[_0x5adb75(0x273)])(this[_0x5adb75(0x374)],[[_0x2471fd],[_0x473dd1],[_0x1070da],[_0x71d6ca],[_0x28bfcf],[_0x2e6585],[_0x558662]]),this[_0x5adb75(0x491)][_0x5adb75(0x36c)]&&(0x0,_0xa51970[_0x5adb75(0x273)])(this[_0x5adb75(0x374)],[[_0x41e65f]]);}};_0x3dacf4(_0x4355ff,_0x1c395f(0x37a),_0x1c395f(0x234)),_0x3dacf4(_0x4355ff,_0x1c395f(0x20f),_0x87174),_0x3dacf4(_0x4355ff,_0x1c395f(0x35b),_0x3ad8ef),_0x4355ff=_0x29ab40([(0x0,_0xa51970[_0x1c395f(0x41a)])(_0x513f25[_0x1c395f(0x2bd)]),_0x47c7dc(0x1,_0x5644b4[_0x1c395f(0x3be)]),_0x47c7dc(0x2,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x3,_0xa51970[_0x1c395f(0x221)])],_0x4355ff);let _0x8a9dde=class extends _0x513f25[_0x1c395f(0x34f)]{constructor(_0x20a110,_0x3ca97e,_0x3134aa,_0x19ca98,_0x4c9f8f){super(_0x20a110,_0x3ca97e,_0x3134aa,_0x19ca98,_0x4c9f8f);}async['createSocket'](_0x3d3eea){const _0x1b964f=_0x1c395f;let _0x2f6f16=await this[_0x1b964f(0x27c)](),_0x57e809=this[_0x1b964f(0x20e)](_0x3d3eea,_0x2f6f16);return this['_doCreateSocket'](_0x57e809);}[_0x1c395f(0x20e)](_0x3af7d2,_0x209b95){const _0x461ef8=_0x1c395f;let _0xe65685=typeof window>'u'?new URL(_0x3af7d2):new URL(_0x3af7d2,window['location'][_0x461ef8(0x309)]);_0xe65685[_0x461ef8(0x44b)][_0x461ef8(0x3e0)](_0x461ef8(0x380),_0x209b95);let _0x2204d7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x461ef8(0x457)][_0x461ef8(0x37f)]);return _0x2204d7['get'](_0x461ef8(0x22b))&&_0xe65685['searchParams'][_0x461ef8(0x3e0)](_0x461ef8(0x22b),_0x2204d7[_0x461ef8(0x29f)](_0x461ef8(0x22b))),_0xe65685[_0x461ef8(0x1f8)]();}async[_0x1c395f(0x27c)](){const _0x4af349=_0x1c395f;var _0x3a25ca,_0x1b22b6,_0x4e4f23;let _0x983838=this[_0x4af349(0x27d)][_0x4af349(0x34a)](_0x513f25['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0xc73e12=(_0x3a25ca=_0x983838==null?void 0x0:_0x983838[_0x4af349(0x326)])==null?_0x513f25['DEFAULT_WS_SESSION_TICKET_URL']:_0x3a25ca;return(_0x1b22b6=(_0x4e4f23=(await this[_0x4af349(0x1e9)][_0x4af349(0x29f)](_0xc73e12,{'headers':{'Content-Type':_0x4af349(0x263)}}))[_0x4af349(0x22f)])==null?void 0x0:_0x4e4f23[_0x4af349(0x2fa)])==null?'':_0x1b22b6;}};_0x8a9dde=_0x29ab40([_0x47c7dc(0x0,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xa51970[_0x1c395f(0x3f5)])),_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xd84e90[_0x1c395f(0x2bc)])),_0x47c7dc(0x2,_0xa51970[_0x1c395f(0x221)]),_0x47c7dc(0x3,_0xa51970[_0x1c395f(0x2eb)]),_0x47c7dc(0x4,_0x55a71b['ISnapshotServerService'])],_0x8a9dde);let _0x1ec752=class extends _0xa51970['Disposable']{constructor(_0x193545,_0x4f1b4d,_0x1a53c3){const _0x5833b9=_0x1c395f;super(),this[_0x5833b9(0x3d0)]=_0x193545,this[_0x5833b9(0x1e9)]=_0x4f1b4d,this[_0x5833b9(0x27d)]=_0x1a53c3;}async[_0x1c395f(0x2e8)](_0x13f484,_0x209d8c,_0x386868,..._0x278036){const _0x4fb4ce=_0x1c395f;var _0x57983e,_0x1848d9,_0x530a8b,_0x2c8eef;let _0x154d87=this[_0x4fb4ce(0x3d0)][_0x4fb4ce(0x47a)]();if(!_0x154d87)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0xde33ab=((_0x57983e=this[_0x4fb4ce(0x27d)][_0x4fb4ce(0x34a)](_0x513f25[_0x4fb4ce(0x413)]))==null?_0x513f25[_0x4fb4ce(0x2c9)]:_0x57983e)+'/'+_0x13f484+_0x4fb4ce(0x44e)+_0x209d8c,_0x4dfc6d={'scriptId':_0x13f484,'runId':(_0x1848d9=new URL(window[_0x4fb4ce(0x457)][_0x4fb4ce(0x1e1)])[_0x4fb4ce(0x44b)]['get']('runId'))==null?'':_0x1848d9,'function':_0x209d8c,'unitId':_0x154d87[_0x4fb4ce(0x2c0)](),'argsOfFunction':JSON['stringify'](_0x278036),'invokeId':(_0x530a8b=_0x386868[_0x4fb4ce(0x299)])==null?'':_0x530a8b,'executionId':(_0x2c8eef=_0x386868[_0x4fb4ce(0x2c7)])==null?'':_0x2c8eef};try{let _0x2d90fc=await this[_0x4fb4ce(0x1e9)]['post'](_0xde33ab,{'body':_0x4dfc6d});return _0x2d90fc[_0x4fb4ce(0x22f)]['error']&&_0x2d90fc[_0x4fb4ce(0x22f)][_0x4fb4ce(0x300)][_0x4fb4ce(0x393)]!==_0x5003eb[_0x4fb4ce(0x1dc)]['OK']?_0x4fb4ce(0x206):_0x2d90fc['body'][_0x4fb4ce(0x3df)];}catch{return _0x4fb4ce(0x206);}}};_0x1ec752=_0x29ab40([_0x47c7dc(0x0,_0xa51970[_0x1c395f(0x477)]),_0x47c7dc(0x1,(0x0,_0xa51970[_0x1c395f(0x3bb)])(_0xd84e90[_0x1c395f(0x2bc)])),_0x47c7dc(0x2,_0xa51970[_0x1c395f(0x221)])],_0x1ec752);let _0xa04a2d=0x7530,_0x54a7c3=_0x1c395f(0x2d2);var _0x3cb4b3=class extends _0xa51970['Disposable']{constructor(){const _0x5ae9b0=_0x1c395f;super(),_0x3dacf4(this,_0x5ae9b0(0x242),(0x0,_0xa51970['generateRandomId'])()),_0x3dacf4(this,_0x5ae9b0(0x264),new Set()),_0x3dacf4(this,_0x5ae9b0(0x41d),new Map()),_0x3dacf4(this,_0x5ae9b0(0x3b0),null),_0x3dacf4(this,_0x5ae9b0(0x1fa),new Map()),_0x3dacf4(this,_0x5ae9b0(0x46d),new Map()),this[_0x5ae9b0(0x47c)]();}['dispose'](){const _0x46aef7=_0x1c395f;super['dispose'](),this[_0x46aef7(0x1fa)][_0x46aef7(0x4b6)]((_0x58ae16,_0x17e128)=>this['_removeClearOtherTimer'](_0x17e128)),this[_0x46aef7(0x3b0)]&&window[_0x46aef7(0x471)](this[_0x46aef7(0x3b0)]);}[_0x1c395f(0x233)](_0x47df70){const _0x5e8630=_0x1c395f;return this[_0x5e8630(0x22a)](_0x47df70)['pipe']((0x0,_0x2b7fe7[_0x5e8630(0x1f0)])());}[_0x1c395f(0x353)](_0x15ac66){const _0x289fb2=_0x1c395f;this[_0x289fb2(0x264)][_0x289fb2(0x251)]===0x0&&this['_scheduleHeartbeat'](),this[_0x289fb2(0x264)]['add'](_0x15ac66),this[_0x289fb2(0x35e)]({'type':0x0,'memberID':this[_0x289fb2(0x242)],'unitIDs':[_0x15ac66],'isForwarded':!0x1});}[_0x1c395f(0x39e)](_0x444d54){const _0x5668b4=_0x1c395f;this[_0x5668b4(0x264)][_0x5668b4(0x255)](_0x444d54),this[_0x5668b4(0x264)][_0x5668b4(0x251)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x5668b4(0x3b0)]);}[_0x1c395f(0x47c)](){const _0x13b572=_0x1c395f;this[_0x13b572(0x3cf)]((0x0,_0xa51970[_0x13b572(0x341)])((0x0,_0x2b7fe7[_0x13b572(0x37e)])(window,_0x13b572(0x440))[_0x13b572(0x47e)](_0x50b27b=>{const _0x5ad322=_0x13b572;if(_0x50b27b[_0x5ad322(0x395)]!==_0x54a7c3||!_0x50b27b[_0x5ad322(0x398)])return;let _0x383a4e=JSON[_0x5ad322(0x3d5)](_0x50b27b['newValue']);this['_handleEvent'](_0x383a4e);}))),window[_0x13b572(0x4b3)]('unload',()=>this[_0x13b572(0x35e)]({'type':0x1,'memberID':this[_0x13b572(0x242)],'unitIDs':Array[_0x13b572(0x43f)](this['_selfUnitIDs'])}));}[_0x1c395f(0x280)](_0x514b67){const _0x231454=_0x1c395f;switch(_0x514b67[_0x231454(0x225)]){case 0x0:this[_0x231454(0x253)](_0x514b67);break;case 0x1:this['_handleLeaveEvent'](_0x514b67);break;case 0x2:this['_handleHeartbeatEvent'](_0x514b67);break;}}['_handleJoinEvent'](_0x3fc772){const _0x4f683c=_0x1c395f;let {unitIDs:_0x51079c,memberID:_0x559973,isForwarded:_0x34b51d}=_0x3fc772;_0x51079c[_0x4f683c(0x4b6)](_0x55cb7e=>{const _0x4d30e8=_0x4f683c;if(!_0x34b51d&&this['_unitOnClients'][_0x4d30e8(0x3cc)](_0x55cb7e)&&this[_0x4d30e8(0x22a)](_0x55cb7e)[_0x4d30e8(0x3fb)](_0x513f25[_0x4d30e8(0x281)][_0x4d30e8(0x414)]),!this[_0x4d30e8(0x41d)][_0x4d30e8(0x3cc)](_0x55cb7e)||!this[_0x4d30e8(0x41d)][_0x4d30e8(0x29f)](_0x55cb7e)[_0x4d30e8(0x3cc)](_0x559973)){let _0x452267=this[_0x4d30e8(0x41d)]['get'](_0x55cb7e)||new Set();_0x452267[_0x4d30e8(0x2ff)](_0x559973),this[_0x4d30e8(0x41d)][_0x4d30e8(0x3e0)](_0x55cb7e,_0x452267),this[_0x4d30e8(0x401)](_0x559973);}}),_0x34b51d||this[_0x4f683c(0x35e)]({'type':0x0,'memberID':this[_0x4f683c(0x242)],'unitIDs':[...this[_0x4f683c(0x264)]],'isForwarded':!0x0});}[_0x1c395f(0x401)](_0x44fe69){const _0x1e9cdb=_0x1c395f;this['_removeClearOtherTimer'](_0x44fe69);let _0x520533=window[_0x1e9cdb(0x48b)](()=>{const _0x57b8ee=_0x1e9cdb;this[_0x57b8ee(0x41d)][_0x57b8ee(0x4b6)](_0xb03e7e=>{_0xb03e7e['delete'](_0x44fe69);});},_0xa04a2d*0x2);this[_0x1e9cdb(0x1fa)][_0x1e9cdb(0x3e0)](_0x44fe69,_0x520533);}[_0x1c395f(0x3ce)](_0x3b0f0a){const _0x170fe5=_0x1c395f;if(this['_clearOtherTimers'][_0x170fe5(0x3cc)](_0x3b0f0a)){let _0x7f2521=this['_clearOtherTimers'][_0x170fe5(0x29f)](_0x3b0f0a);_0x7f2521&&window[_0x170fe5(0x250)](_0x7f2521),this['_clearOtherTimers'][_0x170fe5(0x3e0)](_0x3b0f0a,null);}}[_0x1c395f(0x290)](_0x2d9f15){const _0x11c723=_0x1c395f;let {memberID:_0x5d981f,unitIDs:_0x3e7446}=_0x2d9f15;_0x3e7446[_0x11c723(0x4b6)](_0x1f4df4=>{const _0x4135bb=_0x11c723;var _0x2c1886;let _0x5b39da=this[_0x4135bb(0x41d)]['get'](_0x1f4df4);_0x5b39da&&(_0x5b39da[_0x4135bb(0x255)](_0x5d981f),(_0x2c1886=this['_ensureSubject'](_0x1f4df4))==null||_0x2c1886[_0x4135bb(0x3fb)](_0x5b39da[_0x4135bb(0x251)]===0x0?_0x513f25[_0x4135bb(0x281)][_0x4135bb(0x3f2)]:_0x513f25[_0x4135bb(0x281)]['OTHER_CLIENTS_EDITING']));}),this[_0x11c723(0x3ce)](_0x5d981f);}['_handleHeartbeatEvent'](_0x24cb6d){const _0x4a8066=_0x1c395f;this[_0x4a8066(0x401)](_0x24cb6d[_0x4a8066(0x1f5)]);}[_0x1c395f(0x35e)](_0x49612e){const _0x41cd72=_0x1c395f;localStorage['setItem'](_0x54a7c3,JSON[_0x41cd72(0x373)](_0x49612e));}[_0x1c395f(0x30f)](){const _0x118ef1=_0x1c395f;this[_0x118ef1(0x3b0)]=window[_0x118ef1(0x1fe)](()=>{const _0x521d7a=_0x118ef1;this[_0x521d7a(0x35e)]({'type':0x2,'memberID':this[_0x521d7a(0x242)]});},_0xa04a2d);}[_0x1c395f(0x22a)](_0xc227cf){const _0x282624=_0x1c395f;return this[_0x282624(0x46d)][_0x282624(0x3cc)](_0xc227cf)||this[_0x282624(0x46d)][_0x282624(0x3e0)](_0xc227cf,new _0x2b7fe7['BehaviorSubject'](_0x513f25['UnitStatus'][_0x282624(0x3f2)])),this[_0x282624(0x46d)][_0x282624(0x29f)](_0xc227cf);}};Object[_0x1c395f(0x308)](_0x250da0,_0x1c395f(0x2a6),{'enumerable':!0x0,'get':function(){return _0x8a9dde;}}),Object[_0x1c395f(0x308)](_0x250da0,'CollaborationDataLoaderController',{'enumerable':!0x0,'get':function(){return _0x28bfcf;}}),Object['defineProperty'](_0x250da0,_0x1c395f(0x269),{'enumerable':!0x0,'get':function(){return _0x473dd1;}}),_0x250da0['IURLService']=_0x4c9c87,Object[_0x1c395f(0x308)](_0x250da0,_0x1c395f(0x24b),{'enumerable':!0x0,'get':function(){return _0x1ec752;}}),_0x250da0[_0x1c395f(0x315)]=_0x12ca0b,Object['defineProperty'](_0x250da0,_0x1c395f(0x252),{'enumerable':!0x0,'get':function(){return _0x4355ff;}}),_0x250da0['WebBrowserSingleActiveUnitService']=_0x3cb4b3,_0x250da0['WebURLService']=_0x5e836f;}));