@univerjs-pro/sheets-chart-ui 1.0.0-rc.0 → 1.0.1

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/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/sheets-chart-clipboard.controller.d.ts +1 -0
  62. package/lib/types/controllers/ui.controller.d.ts +4 -5
  63. package/lib/types/index.d.ts +4 -0
  64. package/lib/types/locale/en-US.d.ts +1 -0
  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 +20 -20
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43ae1d=_0x4e81;(function(_0x4de7c3,_0x4304ea){const _0x2c4c26=_0x4e81,_0x236d20=_0x4de7c3();while(!![]){try{const _0x2f6358=-parseInt(_0x2c4c26(0x3ac))/0x1*(parseInt(_0x2c4c26(0x305))/0x2)+parseInt(_0x2c4c26(0x150))/0x3+-parseInt(_0x2c4c26(0x37e))/0x4+-parseInt(_0x2c4c26(0x22e))/0x5*(parseInt(_0x2c4c26(0x2de))/0x6)+parseInt(_0x2c4c26(0x202))/0x7+parseInt(_0x2c4c26(0x1d3))/0x8+-parseInt(_0x2c4c26(0x254))/0x9*(parseInt(_0x2c4c26(0x18a))/0xa);if(_0x2f6358===_0x4304ea)break;else _0x236d20['push'](_0x236d20['shift']());}catch(_0x4d210e){_0x236d20['push'](_0x236d20['shift']());}}}(_0x24c9,0xd3b2e));import{ChartModelService as _0x595f50,ChartUpdateConfigCommand as _0xb1f4b6,ChartUpdateConfigMutation as _0x213703,ChartUpdateSourceCommand as _0x31550b,InsertChartCommand as _0x569c16,InsertSheetsChartMutation as _0x1d759f,RemoveSheetsChartMutation as _0x4cf3af,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0xfd255,SHEETS_CHART_PLUGIN_NAME as _0x178cfc,SheetChartConfigAdapter as _0x682920,SheetsChartService as _0x41220f,UniverSheetsChartPlugin as _0x5d6970,getAllowedChartTypes as _0x346aab,toInsertChartMutationSource as _0x1700d9}from'@univerjs-pro/sheets-chart';import{CommandType as _0x3add26,DependentOn as _0x133936,Disposable as _0x54a426,DisposableCollection as _0x8d3d8,DrawingTypeEnum as _0x473930,FOCUSING_COMMON_DRAWINGS as _0x310321,FOCUSING_PANEL_EDITOR as _0x47ca4b,ICommandService as _0x54b7b3,IConfigService as _0x1f3f65,IContextService as _0x5b7fbe,IUniverInstanceService as _0x3ff803,Inject as _0x44acc1,Injector as _0x3a74b5,LocaleService as _0x3df75b,Plugin as _0x12fb9d,ThemeService as _0x86ad9e,UniverInstanceType as _0x819f79,createIdentifier as _0x199261,debounce as _0x221eb2,generateRandomId as _0xd29c3b,isValidRange as _0x5d14ea,merge as _0x18eb9b,numberToABC as _0x317bd4,toDisposable as _0x3219a2,touchDependencies as _0x39253b}from'@univerjs/core';import{IDrawingManagerService as _0x27cbdb,UniverDrawingPlugin as _0x4be8e7,getDrawingShapeKeyByDrawingSearch as _0x2b4663,getOrCreateDrawingCopyPlan as _0x4efece}from'@univerjs/drawing';import{DrawingApplyType as _0xa7aea8,ISheetDrawingService as _0x9bd290,RemoveSheetDrawingCommand as _0xaba04b,SetDrawingApplyMutation as _0x4b363e,UniverSheetsDrawingPlugin as _0x48e88e,transformToDrawingPosition as _0x12c401}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x448a37,SheetCanvasFloatDomManagerService as _0x53eb3b,SheetDrawingHitTestService as _0x382176,UniverSheetsDrawingMobileUIPlugin as _0x5a621c,UniverSheetsDrawingUIPlugin as _0x3ed4a9}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x3a14ad,ISheetClipboardService as _0x52faeb,PREDEFINED_HOOK_NAME as _0x4a361e,SheetCanvasPopManagerService as _0x4d1f3b,SheetCopyCommand as _0x574b71,SheetPrintInterceptorService as _0x513023,SheetSkeletonManagerService as _0x2888a9,UniverSheetsMobileUIPlugin as _0x772c08,UniverSheetsUIPlugin as _0x3da466,deriveStateFromActiveSheet$ as _0x4ee795,getCurrentRangeDisable$ as _0x1a89ca}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x93e166,ComponentManager as _0x3c2bc6,ContextMenuGroup as _0x211093,ContextMenuPosition as _0x4b7499,IMenuManagerService as _0xb39bf0,ISidebarService as _0x34137d,IconManager as _0x11a0ce,KeyCode as _0x597b83,MenuItemType as _0x193693,NativeTextEditorShortcutBehavior as _0xc6c06e,RibbonInsertGroup as _0x4b7bb2,UniverMobileUIPlugin as _0x2793be,getMenuHiddenObservable as _0x2dcc8d,useDependency as _0x264eea,useObservable as _0x3802ad}from'@univerjs/ui';import{BehaviorSubject as _0x217544,Observable as _0x150224,Subject as _0x243eda,combineLatest as _0x576058,combineLatestWith as _0x8b71a4,debounceTime as _0x362366,distinctUntilChanged as _0x5b1f16,filter as _0x54f1db,fromEvent as _0x5b6eee,map as _0x398d86,merge as _0xbccbd7,pairwise as _0x3d85d7,skip as _0x2c826b,startWith as _0x127833,take as _0x16f4cd,throttleTime as _0x16a82d,withLatestFrom as _0x51b35c}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x2d474f,CHART_HOST_BORDER_RADIUS as _0x3f34f1,CHART_TYPE_CATALOG as _0x447d63,ChartAxisSection as _0x325638,ChartCommonDataMappingSection as _0x1c7d9a,ChartDomFrame as _0x5aa803,ChartEditBlockTitle as _0x1a0262,ChartEditPanel as _0x556d57,ChartEditPanelSection as _0x42aa09,ChartEditPanelTab as _0x1b739b,ChartEditPanelTabs as _0x156b81,ChartEditorCapability as _0x23e5ef,ChartEditorProvider as _0x59bb5b,ChartElementFloatMenuAdapterRegistry as _0x235f09,ChartFrameContentMode as _0x2725bb,ChartFrameLayout as _0x4b5df9,ChartFunnelStyleSection as _0x339e22,ChartGradientFillField as _0x5523f3,ChartGridlinesAndTicksSection as _0x68f7a,ChartHeatmapStyleSection as _0x42a362,ChartHostAdapter as _0x24bb6e,ChartImageExportService as _0x96fe31,ChartIndicatorLineSection as _0xe0844f,ChartLegendSection as _0x5e7ccf,ChartLineAndAreaSection as _0x439ff8,ChartNumberFormatAtom as _0x1d638a,ChartParetoSeriesSection as _0x91fa59,ChartPieStyleSection as _0x53b72e,ChartRadarStyleSection as _0x22850c,ChartRelationStyleSection as _0x49732b,ChartSectionAccordion as _0x115b7e,ChartSectionAccordionContent as _0x357788,ChartSectionAccordionItem as _0x229f4c,ChartSectionAccordionTrigger as _0x57e444,ChartSeriesSection as _0xdf3b14,ChartStackField as _0xf847d1,ChartStyleSection as _0x488152,ChartThemeField as _0x4354e4,ChartTitlesSection as _0x24fff5,ChartTrendlineSection as _0x4d82e5,ChartTypeField as _0xefb803,ChartTypeSpecificDataSection as _0x5e1a24,ChartTypeSpecificSetupSection as _0x4d9744,ChartTypeSpecificStyleSection as _0x1188c6,ChartUIService as _0x78f7fa,ChartViewStateRegistry as _0x41522e,ChartWaterfallSetupFields as _0x386208,ChartWaterfallStyleSection as _0x5930eb,ChartWordCloudStyleSection as _0x4ee7b5,DEFAULT_CHART_AXIS_VALUES as _0x351002,DEFAULT_CHART_FUNNEL_VALUES as _0x47aef4,DEFAULT_CHART_HEATMAP_VALUES as _0x52e881,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x1a7ff3,DEFAULT_CHART_LEGEND_VALUES as _0x4bf079,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x2c5fe6,DEFAULT_CHART_PARETO_VALUES as _0x37d5e7,DEFAULT_CHART_PIE_VALUES as _0x342796,DEFAULT_CHART_RADAR_VALUES as _0x296f34,DEFAULT_CHART_RELATION_VALUES as _0x20ee59,DEFAULT_CHART_SERIES_VALUES as _0x57dbac,DEFAULT_CHART_STYLE_VALUES as _0x4be417,DEFAULT_CHART_TITLE_VALUES as _0x5759a5,DEFAULT_CHART_TRENDLINE_VALUES as _0x31a9c4,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x1fe1d9,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5f0535,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x138892,UniverChartMobileUIPlugin as _0x1f71be,UniverChartUIPlugin as _0x591a44,buildChartTypeSelectOptions as _0x5947b5,chartTypeSupportsCapability as _0x33e81d,chartTypeSupportsLineAndAreaStyle as _0x276a5b,createChartElementFloatMenuAdapter as _0x214df7,resolveChartCreationIntent as _0x3dd3d9,resolveChartEditPanelRoute as _0x3ccb13,resolveChartElementSelection as _0xe0c4fd,useChartEditorChartType as _0xa3e76a,useChartEditorHasRightAxis as _0x30c67c}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x1ecc9,ChartImageExportFormat as _0x15339a,ChartImageSourceType as _0x535f28,ChartRenderMode as _0x699515,ChartSourceHeaderTitleType as _0x18c070,ChartThemeService as _0x17a071,ChartTypeBits as _0x16f780,ChartWaterfallStyleTarget as _0x47b5d6,DataOrientation as _0x10ef62,EChartRenderEngineName as _0xeebfe1,IChartRenderModelManagerService as _0x177621,ImageChartHost as _0x3b9250,PieSecondaryPlotType as _0x5f30d6,RTLChartStyle as _0x1f058e,chartBitsUtils as _0x71cbfa,chartImageSourceToDataUrl as _0x35915e,chartTypeCanUseTrendLine as _0x3c727d,resolveChartRuntimeStyle as _0x379fb9,resolveChartStyleBackgroundColor as _0x497a66,resolveDefaultChartHostFrameStyle as _0x2acefd}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x506545,RemoveSheetCommand as _0x5b84c8,SheetInterceptorService as _0x5848a0,SheetPermissionCheckController as _0x37875f,SheetSkeletonService as _0x48ad2a,SheetsSelectionsService as _0x5348d4,UniverSheetsPlugin as _0x11d84d,WorkbookEditablePermission as _0xaedc6a,WorksheetEditPermission as _0x32c40f,attachRangeWithCoord as _0x324c11,discreteRangeToRange as _0x3b8566,getSheetCommandTarget as _0x26241a}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x2b576a,matchToken as _0x42b2c3,serializeRangeWithSheet as _0x244a32}from'@univerjs/engine-formula';import{insertGroupObject as _0x1c1062}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x371881,IRenderManagerService as _0x21bbf8,ObjectType as _0x2b9848,RENDER_CLASS_TYPE as _0x520502,Rect as _0x56118d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x57ae52,Transform as _0x5dc6c0,UniverRenderEnginePlugin as _0x5e0ab2}from'@univerjs/engine-render';import{useCallback as _0x23e1e1,useEffect as _0x1bfc43,useMemo as _0x5213fb,useRef as _0x35f672,useState as _0xa10a8}from'react';import{Button as _0x215329,MobileColorPicker as _0xafcfcd,MobileDialog as _0x29b476,MobileDropdown as _0x17c777,MobileDropdownMenu as _0x188be6,MobileSelect as _0x5c8792}from'@univerjs/design';import{MobileRangeSelector as _0x4b0535,RangeSelector as _0x2e42ae}from'@univerjs/sheets-formula-ui';import{Fragment as _0x2117c7,jsx as _0x5f4f07,jsxs as _0x44cbe2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x2a21e7}from'@univerjs-pro/license';import{PenIcon as _0xd7ece7}from'@univerjs/icons';const Mr='sheets-chart-ui.config',Nr={'enableChartElementFloatMenu':!0x0},Pr={'type':_0x3add26[_0x43ae1d(0x1e8)],'id':_0x43ae1d(0x17c),'handler'(){return!0x0;}},U={'type':_0x3add26['OPERATION'],'id':'sheet.operation.open-chart-panel','handler'(){return!0x0;}};function Fr(_0xcca82f){const _0x25a671=_0x43ae1d;let _0x59a342=_0xcca82f[_0x25a671(0x117)](_0x9bd290)[_0x25a671(0x220)]();if(_0x59a342[_0x25a671(0x1c5)]!==0x1)return null;let _0x2b582c=_0x59a342[0x0];return _0x2b582c[_0x25a671(0x30d)]===_0x473930[_0x25a671(0x194)]?_0x2b582c:null;}function Ir(_0x30239,_0x122664){const _0x3ac2ee=_0x43ae1d;let _0x475d60=document['createElement']('a');_0x475d60[_0x3ac2ee(0x2b3)]=_0x30239,_0x475d60[_0x3ac2ee(0x217)]=_0x122664,_0x475d60[_0x3ac2ee(0x25f)]();}const Lr={'id':_0x43ae1d(0x1be),'type':_0x3add26['COMMAND'],'handler':(_0x5af2c5,_0x1b081f)=>{const _0x49ef90=_0x43ae1d;let _0x6899ef=Fr(_0x5af2c5);return _0x6899ef?_0x5af2c5[_0x49ef90(0x117)](_0x54b7b3)[_0x49ef90(0x132)](U['id'],{'unitId':_0x6899ef[_0x49ef90(0x2ea)],'subUnitId':_0x6899ef[_0x49ef90(0x2d0)],'drawingId':_0x6899ef[_0x49ef90(0x26e)],..._0x1b081f!=null&&_0x1b081f['route']?{'route':_0x1b081f[_0x49ef90(0x1de)]}:{}}):!0x1;}},Rr={'id':_0x43ae1d(0x183),'type':_0x3add26[_0x43ae1d(0x343)],'handler':_0x573a4d=>Fr(_0x573a4d)?_0x573a4d[_0x43ae1d(0x117)](_0x54b7b3)[_0x43ae1d(0x132)](_0x574b71['id']):!0x1},zr={'id':_0x43ae1d(0x18e),'type':_0x3add26[_0x43ae1d(0x343)],'handler':async _0x5d7097=>{const _0x13f830=_0x43ae1d;let _0x327dec=Fr(_0x5d7097);if(!_0x327dec)return!0x1;let _0x2e9f69=await _0x5d7097[_0x13f830(0x117)](_0x96fe31)['exportImage']({'unitId':_0x327dec[_0x13f830(0x2ea)],'subUnitId':_0x327dec['subUnitId'],'getId':()=>_0x327dec[_0x13f830(0x26e)]});return _0x2e9f69?(Ir(_0x2e9f69,_0x327dec[_0x13f830(0x26e)]+_0x13f830(0x2e3)),!0x0):!0x1;}},Br={'id':'sheet.command.chart.delete-focused-chart','type':_0x3add26[_0x43ae1d(0x343)],'handler':_0x30e54a=>{const _0x587348=_0x43ae1d;let _0x825a82=Fr(_0x30e54a);return _0x825a82?_0x30e54a[_0x587348(0x117)](_0x54b7b3)['executeCommand'](_0xaba04b['id'],{'unitId':_0x825a82[_0x587348(0x2ea)],'drawings':[{'unitId':_0x825a82['unitId'],'subUnitId':_0x825a82[_0x587348(0x2d0)],'drawingId':_0x825a82['drawingId'],'drawingType':_0x473930['DRAWING_CHART']}]}):!0x1;}},W={'type':_0x3add26[_0x43ae1d(0x343)],'id':'sheet.command.menu-insert-chart','handler':async(_0x391b84,_0x1a503e)=>{const _0x3b42c3=_0x43ae1d;let _0x48f247=_0x26241a(_0x391b84['get'](_0x3ff803));if(!_0x48f247)return!0x1;let _0x22e9e4=_0x391b84[_0x3b42c3(0x117)](_0x5348d4)[_0x3b42c3(0x25c)]();if(!_0x22e9e4)return!0x1;let {range:_0x545b0d}=_0x22e9e4,_0xf625bb=_0x391b84[_0x3b42c3(0x117)](_0x54b7b3),{unitId:_0x1cb05e,subUnitId:_0x53fa3f}=_0x48f247,{pieSecondaryPlotType:_0x42afdd,value:_0x13e464}=_0x1a503e,_0x282588=_0x42afdd!==void 0x0;if(_0x282588&&(_0x13e464!==_0x16f780[_0x3b42c3(0x19a)]||_0x42afdd!==_0x5f30d6[_0x3b42c3(0x19a)]&&_0x42afdd!==_0x5f30d6[_0x3b42c3(0x32a)]))return!0x1;let _0x3534ac=_0x282588?_0xd29c3b():void 0x0;return _0xf625bb[_0x3b42c3(0x132)](_0x569c16['id'],{'unitId':_0x1cb05e,'subUnitId':_0x53fa3f,'chartType':_0x13e464,..._0x3534ac&&_0x42afdd?{'chartId':_0x3534ac,'config':{'unitId':_0x1cb05e,'chartModelId':_0x3534ac,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x42afdd}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x545b0d[_0x3b42c3(0x2ea)]??_0x1cb05e,'subUnitId':_0x545b0d[_0x3b42c3(0x12c)]??_0x53fa3f,'range':_0x545b0d}}});}};function Vr(_0x26d825,_0x3a240c){const _0x10d218=_0x43ae1d;if(_0x26d825==null)return'';if(Array[_0x10d218(0x34e)](_0x26d825)){var _0xe06447;let _0x1a9c8c=(_0xe06447=_0x26d825[0x0])==null?void 0x0:_0xe06447['range'];return _0x1a9c8c?Hr(_0x1a9c8c,_0x3a240c):'';}else return Hr(_0x26d825['rangeInfo'],_0x3a240c);}function Hr(_0x48a258,_0x40607b){const _0x390c26=_0x43ae1d;var _0x57f8ab;let {unitId:_0x34452e,subUnitId:_0x319e28,range:_0x295f10}=_0x48a258,_0x2f34b8=(_0x57f8ab=_0x40607b[_0x390c26(0x285)](_0x34452e))==null?void 0x0:_0x57f8ab['getSheetBySheetId'](_0x319e28);return _0x2f34b8?_0x244a32(_0x2f34b8[_0x390c26(0x356)](),_0x295f10):'';}const Ur=_0x447d63[_0x43ae1d(0x2ce)](_0x3a2d31=>({'id':'id'in _0x3a2d31?_0x3a2d31['id']:void 0x0,'labelId':_0x3a2d31[_0x43ae1d(0x232)],'pieSecondaryPlotType':'pieSecondaryPlotType'in _0x3a2d31?_0x3a2d31[_0x43ae1d(0x3d7)]:void 0x0,'value':_0x3a2d31[_0x43ae1d(0x17e)],'icon':_0x3a2d31[_0x43ae1d(0x31a)]}));function Wr(_0x458b82=Ur){const _0x34d43c=_0x43ae1d;return _0x458b82[_0x34d43c(0x2ce)](({id:_0x1f0781,icon:_0x3ff348,value:_0x4a7146})=>{const _0x110c1f=_0x34d43c;let _0x30b692=_0x3dd3d9(_0x1f0781??String(_0x4a7146)),_0x2f8b79=_0x30b692?{'value':_0x30b692['chartType'],..._0x30b692[_0x110c1f(0x3d7)]?{'pieSecondaryPlotType':_0x30b692[_0x110c1f(0x3d7)]}:{}}:{'value':_0x4a7146};return{'icon':_0x3ff348,'value':_0x1f0781??_0x4a7146,'params':_0x2f8b79};});}const Gr=(_0x5246cd,_0x3f48ec)=>{const _0x42e494=_0x43ae1d;if(_0x3f48ec[_0x42e494(0x1c5)]===0x1&&_0x3f48ec[0x0]===_0x42e494(0x16d))return _0x5246cd;if(_0x3f48ec[_0x42e494(0x1c5)]>0x1){let _0x2cf1e2=new Set();for(let _0x3642cb of _0x3f48ec)_0x2cf1e2[_0x42e494(0x28e)](Number(_0x3642cb));return _0x5246cd['filter'](_0x4e0bda=>_0x2cf1e2[_0x42e494(0x187)](_0x4e0bda[_0x42e494(0x17e)]));}return[];};function Kr(_0x179cda){const _0x234dff=_0x43ae1d;let _0x1f0200=_0x179cda[_0x234dff(0x117)](_0x3ff803),_0x1eff59=_0x346aab(_0x179cda),_0x10c7c7=Gr(Ur[_0x234dff(0x372)](),_0x1eff59),_0xaa6f0d=Wr(_0x10c7c7)[_0x234dff(0x2ce)]((_0x1b1d97,_0x22baf9)=>({'icon':_0x1b1d97[_0x234dff(0x392)],'value':_0x1b1d97[_0x234dff(0x17e)],'params':_0x1b1d97[_0x234dff(0x396)],'label':_0x234dff(0x2fe)+_0x10c7c7[_0x22baf9]['labelId']}));return{'id':W['id'],'type':_0x193693['SELECTOR'],'selectionsCommandId':W['id'],'selections':_0xaa6f0d,'icon':_0x234dff(0x34a),'tooltip':'sheets-chart-ui.common.insertChart','activated$':_0x4ee795(_0x1f0200,!0x1,()=>new _0x150224(_0x273c0b=>{const _0x85cc32=_0x234dff;_0x273c0b[_0x85cc32(0x162)](!0x1);})),'hidden$':_0x2dcc8d(_0x179cda,_0x819f79[_0x234dff(0x23d)]),'disabled$':_0x1a89ca(_0x179cda)};}function qr(_0x20f0b6){const _0x5f37b1=_0x43ae1d;let _0x527207=_0x20f0b6[_0x5f37b1(0x117)](_0x9bd290);return _0x527207[_0x5f37b1(0x214)]['pipe'](_0x127833(_0x527207[_0x5f37b1(0x220)]()),_0x398d86(()=>Fr(_0x20f0b6)==null));}function Jr(_0x5bad09){const _0x4b710a=_0x43ae1d;return{'id':Lr['id'],'commandId':Lr['id'],'type':_0x193693[_0x4b710a(0x222)],'title':_0x5bad09[_0x4b710a(0x117)](_0x3df75b)['t'](_0x4b710a(0x160)),'icon':'PenIcon','hidden$':qr(_0x5bad09)};}function Yr(_0x4b4b14){const _0x217c8a=_0x43ae1d;return{'id':Rr['id'],'commandId':Rr['id'],'type':_0x193693[_0x217c8a(0x222)],'title':_0x4b4b14[_0x217c8a(0x117)](_0x3df75b)['t'](_0x217c8a(0x1ac)),'icon':_0x217c8a(0x3bc),'hidden$':qr(_0x4b4b14)};}function Xr(_0x235c66){const _0x48854f=_0x43ae1d;return{'id':zr['id'],'commandId':zr['id'],'type':_0x193693[_0x48854f(0x222)],'title':_0x235c66[_0x48854f(0x117)](_0x3df75b)['t'](_0x48854f(0x313)),'icon':_0x48854f(0x165),'hidden$':qr(_0x235c66)};}function Zr(_0x168d9d){const _0x2ae2cc=_0x43ae1d;return{'id':Br['id'],'commandId':Br['id'],'type':_0x193693[_0x2ae2cc(0x222)],'title':_0x168d9d[_0x2ae2cc(0x117)](_0x3df75b)['t']('sheets-chart-ui.common.deleteChart'),'icon':_0x2ae2cc(0x36b),'hidden$':qr(_0x168d9d)};}const Qr={[_0x4b7bb2[_0x43ae1d(0x184)]]:{[W['id']]:{'order':0x4,'menuItemFactory':Kr}},[_0x4b7499['DRAWING']]:{[_0x211093[_0x43ae1d(0x15e)]]:{[Lr['id']]:{'order':0x0,'menuItemFactory':Jr},[Rr['id']]:{'order':0x1,'menuItemFactory':Yr},[zr['id']]:{'order':0x3,'menuItemFactory':Xr},[Br['id']]:{'order':0x4,'menuItemFactory':Zr}}}};function $r(_0x24ca53){const _0x8b3493=_0x43ae1d;return _0x24ca53===_0x16f780['Combination']||_0x24ca53===_0x16f780['Radar']||_0x24ca53===_0x16f780[_0x8b3493(0x2c5)]||_0x71cbfa[_0x8b3493(0x2c6)](_0x24ca53,_0x16f780[_0x8b3493(0x33f)])||_0x71cbfa['baseOn'](_0x24ca53,_0x16f780['Column'])||_0x71cbfa[_0x8b3493(0x2c6)](_0x24ca53,_0x16f780[_0x8b3493(0x346)])||_0x71cbfa[_0x8b3493(0x2c6)](_0x24ca53,_0x16f780[_0x8b3493(0x1f6)]);}function ei(_0x1f281a){const _0x4882d2=_0x43ae1d;return $r(_0x1f281a)||_0x71cbfa['baseOn'](_0x1f281a,_0x16f780[_0x4882d2(0x19a)])||_0x71cbfa[_0x4882d2(0x2c6)](_0x1f281a,_0x16f780[_0x4882d2(0x20f)])||_0x71cbfa[_0x4882d2(0x2c6)](_0x1f281a,_0x16f780[_0x4882d2(0x27b)]);}function ti(_0x1a79e9,_0x10c2de){const _0x154905=_0x43ae1d;let _0x19ad47=_0xe0c4fd(_0x1a79e9,_0x10c2de),_0x1c74cd=_0x19ad47?_0x3ccb13(_0x19ad47[_0x154905(0x2ee)]):void 0x0;if(!(!_0x19ad47||!_0x1c74cd))return{..._0x19ad47,'route':_0x1c74cd,'showFloatMenu':ei(_0x1a79e9['chartType'])&&_0x19ad47[_0x154905(0x327)]};}function ni(_0x19028a,_0x3f5064=0x1){const _0x2d80cd=_0x43ae1d;return{'width':Math['max'](_0x3f5064,_0x19028a[_0x2d80cd(0x387)]),'height':Math[_0x2d80cd(0x1c1)](_0x3f5064,_0x19028a['height'])};}function ri(_0x5bab69,_0x1f22c4={},_0x3cf48a={'left':0x0,'top':0x0}){const _0x440fc2=_0x43ae1d;let _0x25f526=_0x1f22c4[_0x440fc2(0x3d8)]??0x1,_0x1485e8=_0x1f22c4[_0x440fc2(0x120)]??0x1,_0x3e3d9c=_0x4b5df9[_0x440fc2(0x1ed)]({'logicalOuterRect':{'left':_0x3cf48a[_0x440fc2(0x324)]>0x0?-_0x3cf48a['left']:0x0,'top':_0x3cf48a[_0x440fc2(0x271)]>0x0?-_0x3cf48a[_0x440fc2(0x271)]:0x0,...ni(_0x5bab69)},'scale':{'scaleX':_0x25f526,'scaleY':_0x1485e8},'hostStyle':{},'contentMode':_0x2725bb['Overlay']});return{'left':_0x3e3d9c[_0x440fc2(0x26a)][_0x440fc2(0x324)],'top':_0x3e3d9c[_0x440fc2(0x26a)][_0x440fc2(0x271)],'width':_0x3e3d9c['logicalOuterRect'][_0x440fc2(0x387)],'height':_0x3e3d9c['logicalOuterRect'][_0x440fc2(0x386)],'scaleX':_0x25f526,'scaleY':_0x1485e8};}function ii(_0x512358){'@babel/helpers - typeof';const _0xb3d66d=_0x43ae1d;return ii=typeof Symbol==_0xb3d66d(0x261)&&typeof Symbol[_0xb3d66d(0x11a)]==_0xb3d66d(0x3dc)?function(_0x38b388){return typeof _0x38b388;}:function(_0xef3c3c){const _0x264df3=_0xb3d66d;return _0xef3c3c&&typeof Symbol=='function'&&_0xef3c3c[_0x264df3(0x297)]===Symbol&&_0xef3c3c!==Symbol['prototype']?_0x264df3(0x3dc):typeof _0xef3c3c;},ii(_0x512358);}function ai(_0x259d53,_0x921fdf){const _0xa707d1=_0x43ae1d;if(ii(_0x259d53)!=_0xa707d1(0x3b8)||!_0x259d53)return _0x259d53;var _0x34dc6b=_0x259d53[Symbol[_0xa707d1(0x1fc)]];if(_0x34dc6b!==void 0x0){var _0x115534=_0x34dc6b['call'](_0x259d53,_0x921fdf||_0xa707d1(0x129));if(ii(_0x115534)!=_0xa707d1(0x3b8))return _0x115534;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x921fdf===_0xa707d1(0x3cc)?String:Number)(_0x259d53);}function oi(_0x16900d){const _0x2d5bb3=_0x43ae1d;var _0x152b91=ai(_0x16900d,'string');return ii(_0x152b91)==_0x2d5bb3(0x3dc)?_0x152b91:_0x152b91+'';}function _0x4e81(_0x1d0303,_0x40b1fa){_0x1d0303=_0x1d0303-0x113;const _0x24c9cf=_0x24c9();let _0x4e817f=_0x24c9cf[_0x1d0303];return _0x4e817f;}function G(_0x5db1c8,_0x2153d0,_0x3031e4){const _0x449029=_0x43ae1d;return(_0x2153d0=oi(_0x2153d0))in _0x5db1c8?Object[_0x449029(0x30c)](_0x5db1c8,_0x2153d0,{'value':_0x3031e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5db1c8[_0x2153d0]=_0x3031e4,_0x5db1c8;}function si(_0x74fd25){const _0x31e9b0=_0x43ae1d;switch(_0x74fd25['type']){case _0x535f28[_0x31e9b0(0x158)]:return _0x74fd25[_0x31e9b0(0x178)];case _0x535f28[_0x31e9b0(0x19b)]:return _0x74fd25[_0x31e9b0(0x128)];default:return;}}var ci=class extends _0x56118d{constructor(_0x1c6ead,_0x5928b4,_0x14803c,_0x27b05b=()=>!0x1,_0x1c2389=()=>{}){const _0xcb12e1=_0x43ae1d;super(_0x1c6ead,{..._0x5928b4,'evented':_0x5928b4[_0xcb12e1(0x11d)]??!0x0}),this[_0xcb12e1(0x15c)]=_0x14803c,this[_0xcb12e1(0x2fa)]=_0x27b05b,this[_0xcb12e1(0x2e2)]=_0x1c2389,G(this,'_urlImage',null),G(this,_0xcb12e1(0x370),null),G(this,_0xcb12e1(0x231),null),G(this,_0xcb12e1(0x2c4),null),this[_0xcb12e1(0x353)](_0x2b9848[_0xcb12e1(0x256)]);}[_0x43ae1d(0x37b)](){const _0xcaf257=_0x43ae1d;this[_0xcaf257(0x1e4)](),this[_0xcaf257(0x284)]=null,this[_0xcaf257(0x370)]=null,this['_requestedUrl']=null,this[_0xcaf257(0x2e2)](),super['dispose']();}[_0x43ae1d(0x3cd)](_0x501631,_0x109198){const _0x1f382e=_0x43ae1d;if(!this['visible'])return this['makeDirty'](!0x1),this;if(this['_shouldSuppressRender']()){let _0x9aff48=this[_0x1f382e(0x15c)]();return _0x9aff48&&this['_getDrawable'](_0x9aff48),this[_0x1f382e(0x13b)](!0x1),this;}if(!this[_0x1f382e(0x1d9)])return this;let {width:_0x1c3fbe,height:_0x96e8f4,left:_0x38ea0c,top:_0x4c0e91}=this[_0x1f382e(0x265)]();if(this[_0x1f382e(0x273)](_0x109198)){let {top:_0x118b26,left:_0x3bfe1a,bottom:_0x386ce3,right:_0xa1d581}=_0x109198[_0x1f382e(0x1a4)];if(_0x1c3fbe+this['strokeWidth']+_0x38ea0c<_0x3bfe1a||_0xa1d581<_0x38ea0c||_0x96e8f4+this[_0x1f382e(0x34c)]+_0x4c0e91<_0x118b26||_0x386ce3<_0x4c0e91)return this;}let _0x571cae=this['transform']['getMatrix']();_0x501631[_0x1f382e(0x205)]();let _0x5594b2=_0x38ea0c+_0x1c3fbe/0x2,_0x42e8a7=_0x4c0e91+_0x96e8f4/0x2;return _0x501631['transform'](_0x571cae[0x0],_0x571cae[0x1],_0x571cae[0x2],_0x571cae[0x3],_0x5594b2,_0x42e8a7),this[_0x1f382e(0x3aa)]!==0x1&&(_0x501631[_0x1f382e(0x123)]=this[_0x1f382e(0x3aa)]),this[_0x1f382e(0x199)](_0x501631,void 0x0,_0x1c3fbe,_0x96e8f4),_0x501631['restore'](),this[_0x1f382e(0x13b)](!0x1),this;}[_0x43ae1d(0x199)](_0x1f3286,_0x2c324b,_0x599ee6=this[_0x43ae1d(0x387)],_0x4a1919=this['height']){const _0x2eecd5=_0x43ae1d;this[_0x2eecd5(0x35a)](_0x1f3286,_0x599ee6,_0x4a1919,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x2eecd5(0x2a1)](_0x1f3286,_0x599ee6,_0x4a1919),this['_drawChartFrame'](_0x1f3286,_0x599ee6,_0x4a1919,{'fill':void 0x0});}[_0x43ae1d(0x35a)](_0x35a2b2,_0x4ac1e8,_0x8f4c91,_0x11531d){const _0x5379e2=_0x43ae1d;_0x35a2b2[_0x5379e2(0x205)](),_0x35a2b2[_0x5379e2(0x38a)](-_0x4ac1e8/0x2,-_0x8f4c91/0x2),_0x56118d['drawWith'](_0x35a2b2,li(this,_0x4ac1e8,_0x8f4c91,_0x11531d)),_0x35a2b2[_0x5379e2(0x3d1)]();}[_0x43ae1d(0x1fe)](_0x55c25f){const _0x40bd5d=_0x43ae1d;let {left:_0x2766e8,top:_0x3b618b,width:_0x37550d,height:_0x9599f5}=this[_0x40bd5d(0x265)](),_0x1131fe=_0x2766e8+_0x37550d/0x2,_0x3100a9=_0x3b618b+_0x9599f5/0x2,_0x3cd908=this[_0x40bd5d(0x1d9)][_0x40bd5d(0x3c2)](),_0x3a5b96=new _0x5dc6c0([_0x3cd908[0x0],_0x3cd908[0x1],_0x3cd908[0x2],_0x3cd908[0x3],_0x1131fe,_0x3100a9]),_0x3ecca6=this[_0x40bd5d(0x357)](),_0x3133ef=(this[_0x40bd5d(0x36f)]&&(_0x3ecca6==null?void 0x0:_0x3ecca6[_0x40bd5d(0x28f)])===_0x520502[_0x40bd5d(0x2e8)]?_0x3ecca6[_0x40bd5d(0x2a3)][_0x40bd5d(0x137)](_0x3a5b96):_0x3a5b96)[_0x40bd5d(0x3bf)]()['applyPoint'](_0x55c25f),_0x183042=_0x37550d/0x2,_0x2730ca=_0x9599f5/0x2;return _0x3133ef['x']>=-_0x183042-this['strokeWidth']/0x2&&_0x3133ef['x']<=_0x183042+this[_0x40bd5d(0x34c)]/0x2&&_0x3133ef['y']>=-_0x2730ca-this['strokeWidth']/0x2&&_0x3133ef['y']<=_0x2730ca+this[_0x40bd5d(0x34c)]/0x2;}[_0x43ae1d(0x2a1)](_0x206e38,_0x46d7e8,_0x5ec11d){const _0x4b06e3=_0x43ae1d;let _0x48329d=this[_0x4b06e3(0x15c)](),_0x8d568d=_0x48329d?this['_getDrawable'](_0x48329d):void 0x0;if(!_0x8d568d)return;let {width:_0x12d039,height:_0x5710ff}=ni({'width':_0x46d7e8,'height':_0x5ec11d},0x0);_0x12d039!==0x0&&_0x5710ff!==0x0&&(_0x206e38[_0x4b06e3(0x205)](),_0x206e38[_0x4b06e3(0x38a)](-_0x46d7e8/0x2,-_0x5ec11d/0x2),ui(_0x206e38,_0x12d039,_0x5710ff,this[_0x4b06e3(0x190)]),_0x206e38[_0x4b06e3(0x34d)](),_0x206e38[_0x4b06e3(0x38b)](_0x8d568d,0x0,0x0,_0x12d039,_0x5710ff),_0x206e38['restore']());}[_0x43ae1d(0x304)](_0x1b6aad){const _0x1ae695=_0x43ae1d;var _0x2bca2d;let _0x1df32e=si(_0x1b6aad);if(_0x1df32e)return _0x1df32e;if(_0x1b6aad[_0x1ae695(0x1ad)]===_0x535f28[_0x1ae695(0x2ed)]&&(this[_0x1ae695(0x231)]!==_0x1b6aad[_0x1ae695(0x115)]&&(this[_0x1ae695(0x231)]=_0x1b6aad[_0x1ae695(0x115)],this[_0x1ae695(0x1e4)](),this[_0x1ae695(0x370)]!==_0x1b6aad[_0x1ae695(0x115)]&&this['_loadUrlImage'](_0x1b6aad[_0x1ae695(0x115)])),(_0x2bca2d=this[_0x1ae695(0x284)])!=null&&_0x2bca2d[_0x1ae695(0x1f1)]&&this[_0x1ae695(0x284)]['naturalWidth']>0x0&&this[_0x1ae695(0x284)][_0x1ae695(0x1f5)]>0x0))return this[_0x1ae695(0x284)];}[_0x43ae1d(0x30e)](_0x2b782a){const _0x203cff=_0x43ae1d;let _0x1c8ee0=document[_0x203cff(0x3b0)](_0x203cff(0x153));this[_0x203cff(0x2c4)]=_0x1c8ee0,_0x1c8ee0[_0x203cff(0x238)]=_0x203cff(0x2a6),_0x1c8ee0[_0x203cff(0x13e)]=()=>{const _0x541b6b=_0x203cff;this['_requestedUrl']===_0x2b782a&&this[_0x541b6b(0x2c4)]===_0x1c8ee0&&(_0x1c8ee0[_0x541b6b(0x317)]>0x0&&_0x1c8ee0[_0x541b6b(0x1f5)]>0x0&&(this['_url']=_0x2b782a,this[_0x541b6b(0x284)]=_0x1c8ee0),this[_0x541b6b(0x1e4)](),this[_0x541b6b(0x13b)](!0x0));},_0x1c8ee0[_0x203cff(0x292)]=()=>{const _0x49743a=_0x203cff;this[_0x49743a(0x2c4)]===_0x1c8ee0&&this[_0x49743a(0x1e4)]();},_0x1c8ee0[_0x203cff(0x3ae)]=_0x2b782a;}[_0x43ae1d(0x1e4)](){const _0x335e47=_0x43ae1d;this[_0x335e47(0x2c4)]&&=(this[_0x335e47(0x2c4)][_0x335e47(0x13e)]=null,this['_pendingUrlImage'][_0x335e47(0x292)]=null,null);}};function li(_0x34d0c3,_0x23eb33,_0x43956a,_0x1a0c45){const _0x230940=_0x43ae1d;let _0x19ce66=Object[_0x230940(0x12e)](_0x34d0c3);return Object['defineProperty'](_0x19ce66,_0x230940(0x387),{'value':_0x23eb33}),Object[_0x230940(0x30c)](_0x19ce66,_0x230940(0x386),{'value':_0x43956a}),Object['keys'](_0x1a0c45)[_0x230940(0x298)](_0x170810=>{const _0xea6d91=_0x230940;Object[_0xea6d91(0x30c)](_0x19ce66,_0x170810,{'value':_0x1a0c45[_0x170810]});}),_0x19ce66;}function ui(_0x4290a3,_0x2ea852,_0x308ba0,_0x1bab00){const _0x494c84=_0x43ae1d;let _0x51bbf9=Math[_0x494c84(0x18d)](_0x1bab00||0x0,_0x2ea852/0x2,_0x308ba0/0x2);if(_0x4290a3[_0x494c84(0x1e3)](),!_0x51bbf9){_0x4290a3[_0x494c84(0x240)](0x0,0x0,_0x2ea852,_0x308ba0),_0x4290a3[_0x494c84(0x249)]();return;}_0x4290a3[_0x494c84(0x3a3)](_0x51bbf9,0x0),_0x4290a3[_0x494c84(0x200)](_0x2ea852-_0x51bbf9,0x0),_0x4290a3[_0x494c84(0x379)](_0x2ea852-_0x51bbf9,_0x51bbf9,_0x51bbf9,Math['PI']*0x3/0x2,0x0,!0x1),_0x4290a3[_0x494c84(0x200)](_0x2ea852,_0x308ba0-_0x51bbf9),_0x4290a3[_0x494c84(0x379)](_0x2ea852-_0x51bbf9,_0x308ba0-_0x51bbf9,_0x51bbf9,0x0,Math['PI']/0x2,!0x1),_0x4290a3[_0x494c84(0x200)](_0x51bbf9,_0x308ba0),_0x4290a3[_0x494c84(0x379)](_0x51bbf9,_0x308ba0-_0x51bbf9,_0x51bbf9,Math['PI']/0x2,Math['PI'],!0x1),_0x4290a3[_0x494c84(0x200)](0x0,_0x51bbf9),_0x4290a3[_0x494c84(0x379)](_0x51bbf9,_0x51bbf9,_0x51bbf9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4290a3[_0x494c84(0x249)]();}function _0x24c9(){const _0xc31328=['crossOrigin','_setHostStyle','WordCloud','1000','sheetTransform','UNIVER_SHEET','offsetWidth','_renderWhenConfigReady','rect','updateFloatDom','sheets-chart-ui.section.gauge','_activateDataUpdateAnimation','_applyActiveChartRuntimeZIndex','allSettled','name','_sheetDrawingHitTestService','chartEditorOpen$','closePath','getConfig','zIndex','unsubscribe','_registerAdapter','_chartEventHandlers','_resetChartRuntimeZIndex','_univerInstanceService','_activateEditPanelState','_activeDomReadyChartIds','_chartEditorOpen$','62334luJCps','setPanelRoute','CHART','_renderDebounceMap','_prepareDataUpdateRender','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','Positive','_chartElementEditMode','getCurrentLastSelection','objects','sheets-chart-ui.common.legend','click','_restoreFloatDomPositionStream','function','config','undo','decorate','getRealBound','REMOVE','mergeMenu','_clearSheetChartRuntimeCaches','isRowDirection','logicalOuterRect','sheet-chart-setup-panel','_chartHostMap','sheets-chart-ui.section.relation','drawingId','ChartStyle','update','top','_iconManager','isRender','cancel','addObject','univer-overflow-visible','_sheetInterceptorService','ChartAndAxisTitles','Literals','blockExecuteWithoutPermission','Waterfall','syncHostLayout','setDataUpdateAnimation','_registerIcons','initPanel','style','startColumn','section','sheets-chart-element-float-menu','_urlImage','getUnit','chartRenderMode','_cancelDebouncedCallbacks','querySelector','onTransformChange$','_popupChartId','innerHeight','getBatchAddOp','from','add','classType','subscribeEvent','sourceSubUnitId','onerror','RightVerticalAxis','_pendingHost','darkMode$','nextVersion','constructor','forEach','isConnected','indexOf','filter','Column','getDrawingData','checkMounted','fromEntries','syncLayout','_drawChartImage','supports','ancestorTransform','number','Chord','anonymous','allSeriesStyle','sheets-chart-ui.host.provider','_subscribeChartEvents','bounds','sheets-chart-ui.common.deleteChart','hidePanel','_cacheActiveDomChartSnapshot','sheets-chart-ui.section.treemap','_commandService','cumulativeLineStyle','div','Legend','href','sheets-chart-ui.section.gridlinesAndTicks','getRenderUnitById','getValue','clientHeight','chartEditorOpen','createChartInstance','COMMA','Bubble','univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','Sankey','_addWatermark','setDataRange','Treemap','_disposeChartEventSubscriptions','permissionCheckWithoutRange','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_pendingUrlImage','Boxplot','baseOn','targetSubUnitId','sheets-chart-ui.section.chord','_sidebarDisposable','_createHost','setElementEditMode','setConfig','tab','map','clearChart','subUnitId','Fail\x20to\x20create\x20float\x20dom','visible','_snapshotStore','ENTER','sheets-chart-ui.common.verticalAxis','open','_sheetSkeletonService','startX','sheet.chart.edit.panel','_renderModelManager','Histogram','_openEditPanelByDoubleClick','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3870VTdAfl','sheets-chart-ui.common.dataRange','Trendline','isElementEditModeActive','_disposeImage','.png','getActiveSheet','hasOwnProperty','axis','_pendingMutationConfigRenders','GROUP','_resolveChartRenderMode','unitId','renderChartsForPrinting','drawingIds','Url','target','_getOrCreateSheetChartHost','(prefers-reduced-motion:\x20reduce)','sheets-chart-ui.section.candlestick','_sheetClipboardService','sheets-chart-ui.section.pie','_rect','Radar','bind','_lastActiveSheet','clientWidth','right','_shouldSuppressRender','_generateCopyPasteMutations','_rerenderLatest','Dom','sheets-chart-ui.chartTypes.','getContextValue','nativeEvent','add$','getElementById','Heatmap','_getDrawable','1716bHAGBC','intercept','setHostStyle','PieStyle','parentElement','header','getBatchRemoveOp','defineProperty','drawingType','_loadUrlImage','top-center','_pendingDataUpdateChartIds','_alignFloatDomPositionWithSceneRender','sheetDisposed$','sheets-chart-ui.common.exportImage','getChartPopupMenus','_openPanel','removeHost$','naturalWidth','activeChartModel','_bindChartEventHandler','iconName','_getOrCreateChartRenderInstance','featurePluginUngroupUpdate$','SVG','waterfallStyle','Relation','createRuntimeChartStyle','_waiter','interceptCommand','endX','left','setProps','_localeService','showFloatMenu','removeChartModel','#-#','Bar','_dataUpdateAnimationTimers','sheet-chart-style-panel','sheets-chart-ui.common.editChart','groupId','setImage','univer-my-1\x20univer-text-xs\x20univer-text-red-500','focusDrawing','series','mobile-sheet-chart-setup-panel','titles','getBatchUpdateOp','_entries','pipe','sheets-chart-ui.common.customize','getId','range','verify','_renderManagerService','Style','setActiveChartModel','Line','version','_renderChartModel','Reference','COMMAND','univer-shrink-0','getHostSize','Area','rightY','_disposeChartDomInstance','sidebarOptions$','ChartIcon','Sunburst','strokeWidth','clip','isArray','abs','defaultValues','sheets-chart-ui.chord.target','clearPanelRoute','setObjectType','sheets-chart-ui.common.invalidDataRange','_activateHostWrapper','getName','getParent','_activeChartId','sheets-chart-ui.section.histogram','_drawChartFrame','_init','_initSheetChange','_sheetCanvasFloatDomManagerService','_chartRenderService','_registerChartImageRenderObjectFactory','_initCopyPaste','innerWidth','Funnel','_injector','Gauge','_setChartRuntimeZIndex','executeChartUpdateConfig','_initMenus','call','_rangeSelectMode','sheets-chart-ui.waterfall.negative','DeleteIcon','asObservable','takeSnapshot','dataUrl','isInGroup','_url','endY','concat','getChartDataSource','_chartModelService','commitSnapshot','_menuManagerService','hit','getObject','arc','_sheetsChartService','dispose','_getOuterRect','chartType','648732bubKRK','ensureHost','References','_dataUpdateAnimationDuration','dom','_themeService','_initCommands','dataset','height','width','sheets-chart-ui.common.trendline','_panelInitialized','translate','drawImage','activeRuntimeModel','Candlestick','values','dblclick','@univerjs-pro/sheets-chart-ui','_getPlacement','icon','enableChartElementFloatMenu','_getHostPlacement','requestPaint','params','chartModelAdded$','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','resize','_initDrawingDeactivationListener','UniverSheetsChartUIPlugin','missing-float-dom','current','_contextService','mode','getSubUnitId','items','_clearHiddenSelectedTarget','moveTo','_sheetPrintInterceptorService','scale','openChartPanelById','registerFeatureMenu','chartId','segmented','opacity','seriesId','326QMCTND','register','src','_copyInfo','createElement','direction$','_initPermission','chartModelRemoved$','category','transparent','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','onStarting','object','_canAnimateDataUpdate','position$','_adapterRegistry','CopyDoubleIcon','subscribe','_disposed','invert','clear','_clearChartRuntimeCache','getMatrix','ParetoBarSeries','_chartHostProvider','getRenderColor','ensureMount','isManaged','_chartEventSubscriptions','_requestPaint','entries','format','string','render','heatmap','localPoint','prototype','restore','indicatorLine','sheets-chart.ui.service','sheets-chart-ui.section.sunburst','activeChartModel$','_deactivateDataUpdateAnimation','pieSecondaryPlotType','scaleX','_initActiveChartModelListener','startY','lineAndArea','symbol','_updateTransform','Series','_clearPanelState','activeSheet$','sheets-chart-ui.common.heatmap','onRendered','sheetChartDataAnimationDuration','_config','url','invalidateSnapshot','get','sheets-chart-ui.section.paretoLine','pluginName','iterator','_cancelHostWait','getRangeInfo','evented','_shouldEnableChartElementEdit','_requestChartCanvasRender','scaleY','_generatePasteMutations','_isChartElementEditEnabled','globalAlpha','_drawingManagerService','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_applyHostInteractionState','featurePluginOrderUpdate$','imageBitmap','default','ensureHandle','contains','sheetId','trim','create','_chartSnapshotStoreService','sheets-chart-ui.config','sheets-chart-ui.waterfall.positive','executeCommand','getSheetId','_generateCutPasteMutations','_image','INSERT','multiply','_createImageChartHost','_chartThemeService','split','makeDirty','.chart-host','anchorRect$','onload','_removeHost$','_frameStyle','funnel','idMap','disposeWithMe','dataSource','-univer-mx-4\x20univer-overflow-visible','absolute','rightYAxis','getInterceptPoints','_lastRenderInputMap','_deactivateEditPanelState','_resizeChart','getCurrentTypeOfUnit$','getHostClientRect','getSkeleton','image','3158115JmgnSB','chartModelId','sheets-chart-ui.common.useAsCategoryLabels','img','small','endsWith','wordCloud','_getFloatDomInfo','Canvas','border','style$','blur','_getImage','visibilityState','OTHERS','_chartUIService','sheets-chart-ui.common.openChartPanel','_componentManager','next','pointerEvents','markHostNotReady','DownloadImageIcon','redo','_getSceneAndTransformerByDrawingSearch','_initPrinting','OVERRIDE_NATIVE','some','Data','getDirection','all','getRenderModel','setChartEditorOpen','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','config$','getDrawingOrder','_closePopup','set','HorizontalAxis','scroll','_executeChartUpdateSourceConfig','canvas','_getChartRenderObject','_canvasFloatDomService','_sheetDrawingService','sheet.operation.hide-chart-panel','getUnitId','value','getFloatDomInfo','_sheetsChartUIService','getBoundingClientRect','startRow','sheet.command.chart.copy-focused-chart','MEDIA','CUT','pareto','has','pie','label','3240CIRlVR','getCurrentUnitOfType','_initActiveRuntimeLayerListener','min','sheet.command.chart.export-focused-image','_domFrame','radius','removeHost','promise','barStyle','DRAWING_CHART','_focusedDrawings','color','getRect','getCanvasElement','_draw','Pie','ImageBitmap','matchMedia','_getChartSnapshotKey','getTransformerByCreate','transformChange$','isFinite','_snapshotKey','setContextValue','handleActiveSubUnitChange','viewBound','panelRoute$','error','markUnmanaged','delete','sheets-chart-ui.section.lineAndArea','scene','_createPrintingChartObject','sheets-chart-ui.common.copy','type','packageName','none','rangeInfo','push','_bindChartEventHandlers','setOrientation','_sidebarService','sheets-chart-ui.common.switchRowColumn','renderTransition','assignStyle','_listenChartUpdateMutations','exportImage','updateFloatDomProps','LineAndArea','getChartSourceSpec','setBorder','sheet.command.chart.open-focused-panel','Row','_markNotReady','max','GridlinesAndTicks','rangeSelectMode','_configService','length','sheets-chart-ui.section.paretoBar','setStyle','onDoubleClick$','_openFloatMenu','getSheetBySheetId','-univer-mx-4','_disposeChartRenderInstance','_registerComponents','onDispose','VerticalAxis','_renderAfterChartUpdateMutation','univer-flex\x20univer-flex-col\x20univer-gap-3','_version','10513032SNYLsX','_scheduleDataUpdateAnimationEnd','clientY','_restoreHostWrapper','remove$','serialize','transform','_syncActiveEditChart','sheetChartDataAnimation','children','with','route','offsetLeft','_resolvedConfig','sheets-chart-ui.common.chart','_managed','beginPath','_clearPendingUrlImage','isLatest','data$','interceptor','OPERATION','getObjectIncludeInGroup','_markReady','stringify','inactive-sheet','resolve','hidden','_chartInstanceMap','Subtotal','complete','close','_isProviderDisposed','_chartRenderMode','naturalHeight','Scatter','_resolveLayout','_applyHostStyle','_dataUpdateAnimationChartIds','GeneralSeries','_chartChangeSubscriptions','toPrimitive','sheets-chart-ui.common.setup','isHit','mountNode','lineTo','_disposeChartEventSubscription','10556378oWAXNl','getDrawingByParam','_createCopyInfoByRange','save','clientX','_debounceHandle','featurePluginGroupUpdate$','bottom','Image','afterRender$','setRangeSelectMode','_popupSessionKey','sheets-chart-ui.section.radar','Pareto','UPDATE','mobile-sheet-chart-style-panel','_createChartRenderInstanceContext','getChartModel','focus$','_getChartRenderSkipReason','domId','download','getFocusedUnit','_clearSelectedTarget','getSheetBySheetName','_sheetPermissionCheckController','_savedWrapperStyle','exportImg','IndicatorLine','_panelRoute$','getFocusDrawings','_disposeChartChangeListeners','BUTTON','matches','every','_debounceHandleMap','getChartSnapshotImage','then','attachPopupToDynamicAbsolutePosition','_sheetCanvasPopManagerService','_popupDisposable','dataSource$','onCommandExecuted','getImage','2495jWmlcS','waterfall','_handleDrawingDoubleClick','_requestedUrl','labelId','sheets-chart-ui.common.chartAndAxisTitles','_pendingToken','parent','sheets-chart-ui.common.chartStyle','copyId'];_0x24c9=function(){return _0xc31328;};return _0x24c9();}function K(_0x541abd){const _0x2df675=_0x43ae1d;(_0x541abd==null?void 0x0:_0x541abd[_0x2df675(0x1ad)])===_0x535f28[_0x2df675(0x19b)]&&_0x541abd[_0x2df675(0x128)][_0x2df675(0x1f2)]();}function di(_0x5cd730){const _0x1abb80=_0x43ae1d;return _0x5cd730[_0x1abb80(0x2ea)]+_0x1abb80(0x329)+_0x5cd730[_0x1abb80(0x2d0)]+_0x1abb80(0x329)+_0x5cd730[_0x1abb80(0x3a8)];}var fi=class extends _0x54a426{constructor(..._0x3039fe){const _0x444af8=_0x43ae1d;super(..._0x3039fe),G(this,_0x444af8(0x336),new Map());}['nextVersion'](_0x55d0a7){const _0x4e6598=_0x43ae1d;let _0x48cb3b=di(_0x55d0a7),_0x2ddffc=this['_entries'][_0x4e6598(0x117)](_0x48cb3b)??{'version':0x0};return _0x2ddffc[_0x4e6598(0x340)]+=0x1,this[_0x4e6598(0x336)][_0x4e6598(0x174)](_0x48cb3b,_0x2ddffc),_0x2ddffc[_0x4e6598(0x340)];}[_0x43ae1d(0x1e5)](_0x2c76b8,_0x59fbe0){const _0xd45cbc=_0x43ae1d;var _0x5ee4b7;return((_0x5ee4b7=this[_0xd45cbc(0x336)][_0xd45cbc(0x117)](di(_0x2c76b8)))==null?void 0x0:_0x5ee4b7[_0xd45cbc(0x340)])===_0x59fbe0;}[_0x43ae1d(0x32f)](_0x15c790,_0xfc3b37,_0x3c234f){const _0x5a2836=_0x43ae1d;if(!this[_0x5a2836(0x1e5)](_0x15c790,_0x3c234f))return K(_0xfc3b37),!0x1;let _0x2c151a=di(_0x15c790),_0x3d761b=this['_entries'][_0x5a2836(0x117)](_0x2c151a)??{'version':_0x3c234f},_0x1c9bf1=_0x3d761b[_0x5a2836(0x14f)];return _0x3d761b[_0x5a2836(0x14f)]=_0xfc3b37,_0x3d761b[_0x5a2836(0x340)]=_0x3c234f,this[_0x5a2836(0x336)][_0x5a2836(0x174)](_0x2c151a,_0x3d761b),_0x1c9bf1!==_0xfc3b37&&K(_0x1c9bf1),!0x0;}[_0x43ae1d(0x22d)](_0x47f181){const _0x5e3c66=_0x43ae1d;var _0x5a1541;return(_0x5a1541=this['_entries'][_0x5e3c66(0x117)](di(_0x47f181)))==null?void 0x0:_0x5a1541[_0x5e3c66(0x14f)];}['clearImage'](_0x1dedcd){const _0x4cf4c2=_0x43ae1d;let _0xbf69f9=di(_0x1dedcd),_0x5cd337=this['_entries'][_0x4cf4c2(0x117)](_0xbf69f9);_0x5cd337&&(K(_0x5cd337[_0x4cf4c2(0x14f)]),this['_entries'][_0x4cf4c2(0x1a8)](_0xbf69f9));}['clearChart'](_0x42e86b){const _0x4acdef=_0x43ae1d;for(let [_0x241bc8,_0x3f767d]of this['_entries'])_0x241bc8[_0x4acdef(0x155)](_0x4acdef(0x329)+_0x42e86b)&&(K(_0x3f767d[_0x4acdef(0x14f)]),this[_0x4acdef(0x336)]['delete'](_0x241bc8));}[_0x43ae1d(0x37b)](){const _0xb64fc2=_0x43ae1d;this['_entries'][_0xb64fc2(0x298)](_0x46166d=>K(_0x46166d[_0xb64fc2(0x14f)])),this[_0xb64fc2(0x336)][_0xb64fc2(0x3c0)](),super['dispose']();}};function pi(_0x44942c,_0x580f71=0x7d0){let _0x1ac255=null,_0x1cb43d=null,_0x249231=!0x1,_0x29c3db=()=>{},_0x3048d6=()=>{_0x1ac255!=null&&(clearInterval(_0x1ac255),_0x1ac255=null),_0x1cb43d!=null&&(clearTimeout(_0x1cb43d),_0x1cb43d=null);};return{'promise':new Promise((_0x21b34a,_0x227c8a)=>{_0x29c3db=_0x227c8a;let _0x248628=()=>{let _0x1b53bd=document['getElementById'](_0x44942c);!_0x1b53bd||_0x249231||(_0x249231=!0x0,_0x3048d6(),_0x21b34a(_0x1b53bd));};_0x248628(),!_0x249231&&(_0x1ac255=setInterval(_0x248628,16.666666666666668),_0x1cb43d=setTimeout(()=>{const _0x3773cf=_0x4e81;_0x249231||(_0x249231=!0x0,_0x3048d6(),_0x227c8a(Error(_0x3773cf(0x398)+_0x44942c+'\x22.')));},_0x580f71));}),'cancel':()=>{const _0x3b8930=_0x4e81;_0x249231||(_0x249231=!0x0,_0x3048d6(),_0x29c3db(Error(_0x3b8930(0x2c3)+_0x44942c+'\x22.')));}};}var mi=class extends _0x54a426{constructor(_0x102f3c,_0x2aaab6,_0xc1440d,_0x50aa95,_0xcfdda1,_0x12d086,_0x5b5a9d){const _0x5c4610=_0x43ae1d;super(),this[_0x5c4610(0x3a8)]=_0x102f3c,this[_0x5c4610(0x157)]=_0x2aaab6,this['_getPlacement']=_0xc1440d,this['_setHostStyle']=_0x50aa95,this[_0x5c4610(0x1f3)]=_0xcfdda1,this[_0x5c4610(0x1ea)]=_0x12d086,this[_0x5c4610(0x1c0)]=_0x5b5a9d,G(this,_0x5c4610(0x39f),_0x699515[_0x5c4610(0x2fd)]),G(this,_0x5c4610(0x18f),null),G(this,'_managed',!0x1),G(this,_0x5c4610(0x234),null),G(this,_0x5c4610(0x294),null),G(this,_0x5c4610(0x321),null),G(this,'_hostStyle',{}),G(this,_0x5c4610(0x21c),null),G(this,_0x5c4610(0x381),null);}[_0x43ae1d(0x3c7)](){return this['_managed'];}['markUnmanaged'](){const _0x21cd78=_0x43ae1d;this[_0x21cd78(0x1e2)]=!0x1;}['getRect'](){const _0x2a3cfe=_0x43ae1d;let _0x8db291=this[_0x2a3cfe(0x391)]();return _0x8db291?{'width':_0x8db291[_0x2a3cfe(0x387)],'height':_0x8db291[_0x2a3cfe(0x386)]}:null;}[_0x43ae1d(0x1c7)](_0x35c87f){const _0x96abaf=_0x43ae1d;this['_hostStyle']=_0x35c87f,this[_0x96abaf(0x239)](_0x35c87f),this[_0x96abaf(0x1f8)]();}async[_0x43ae1d(0x12a)](){const _0x19f1d3=_0x43ae1d;if(this['_disposed']||this[_0x19f1d3(0x1f3)]())throw Error(_0x19f1d3(0x2d1));let _0x4dabf3=this[_0x19f1d3(0x157)](),_0x5df5bd=(_0x4dabf3==null?void 0x0:_0x4dabf3[_0x19f1d3(0x216)])??this[_0x19f1d3(0x3a8)],_0x1e6268=document[_0x19f1d3(0x302)](_0x5df5bd);if(this['_domFrame']&&_0x1e6268!=null&&_0x1e6268[_0x19f1d3(0x12b)](this['_domFrame']['mountNode']))return{'mountNode':this[_0x19f1d3(0x18f)][_0x19f1d3(0x1ff)],'dispose':()=>{const _0x54aa87=_0x19f1d3;this['dispose'](),_0x4dabf3==null||_0x4dabf3[_0x54aa87(0x37b)][_0x54aa87(0x37b)]();}};if(this[_0x19f1d3(0x294)])return this[_0x19f1d3(0x294)];let _0x59506a=this[_0x19f1d3(0x2ca)]();return this['_pendingHost']=_0x59506a,_0x59506a[_0x19f1d3(0x227)](()=>{const _0x1b34c1=_0x19f1d3;this[_0x1b34c1(0x294)]===_0x59506a&&(this[_0x1b34c1(0x294)]=null);},()=>{const _0x1df100=_0x19f1d3;this[_0x1df100(0x294)]===_0x59506a&&(this[_0x1df100(0x294)]=null);}),_0x59506a;}async[_0x43ae1d(0x3c6)](){const _0x4a723f=_0x43ae1d;try{return(await this[_0x4a723f(0x12a)]())[_0x4a723f(0x1ff)];}catch{return null;}}['checkMounted'](){const _0x2e0c44=_0x43ae1d;let _0x12755e=this['_getFloatDomInfo'](),_0x4bb576=(_0x12755e==null?void 0x0:_0x12755e[_0x2e0c44(0x216)])??this[_0x2e0c44(0x3a8)],_0x49afee=document[_0x2e0c44(0x302)](_0x4bb576);return!!(this[_0x2e0c44(0x18f)]&&_0x49afee!=null&&_0x49afee['contains'](this['_domFrame'][_0x2e0c44(0x1ff)]));}[_0x43ae1d(0x2a0)](){const _0x3fc84a=_0x43ae1d;if(!this[_0x3fc84a(0x18f)])return;let _0x3ac540=this[_0x3fc84a(0x391)]();_0x3ac540&&this[_0x3fc84a(0x18f)][_0x3fc84a(0x270)](this[_0x3fc84a(0x1f7)](_0x3ac540),this[_0x3fc84a(0x140)]());}['markReady'](){this['_markReady']();}['markNotReady'](){const _0x8e5458=_0x43ae1d;this[_0x8e5458(0x1c0)]();}[_0x43ae1d(0x27d)](_0x3f7ff4){const _0x1dde16=_0x43ae1d;this[_0x1dde16(0x381)]=_0x3f7ff4;let _0x2fedc4=this['_getFloatDomInfo'](),_0x396e78=document[_0x1dde16(0x302)]((_0x2fedc4==null?void 0x0:_0x2fedc4[_0x1dde16(0x216)])??this[_0x1dde16(0x3a8)]);_0x396e78&&this[_0x1dde16(0x126)](_0x396e78);}[_0x43ae1d(0x37b)](){const _0x3c7286=_0x43ae1d;var _0xbe79;this[_0x3c7286(0x3be)]||(this['markNotReady'](),this[_0x3c7286(0x234)]=null,this[_0x3c7286(0x294)]=null,this[_0x3c7286(0x11b)](),this[_0x3c7286(0x1e2)]=!0x1,this[_0x3c7286(0x381)]=null,(_0xbe79=this[_0x3c7286(0x18f)])==null||_0xbe79[_0x3c7286(0x37b)](),this[_0x3c7286(0x18f)]=null,this['_restoreHostWrapper'](),super[_0x3c7286(0x37b)]());}async[_0x43ae1d(0x2ca)](){const _0x5e5367=_0x43ae1d;let _0x2c0c3a=this[_0x5e5367(0x157)]();if(!_0x2c0c3a)throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x3759ee=_0x2c0c3a[_0x5e5367(0x216)]??this[_0x5e5367(0x3a8)],_0x5c6d77=pi(_0x3759ee),_0x594fa1=Symbol(this['chartId']);this[_0x5e5367(0x234)]=_0x594fa1,this[_0x5e5367(0x321)]=_0x5c6d77;try{let _0x4d1134=await _0x5c6d77[_0x5e5367(0x192)],_0x2556f8=this[_0x5e5367(0x157)](),_0x2d8ea5=(_0x2556f8==null?void 0x0:_0x2556f8[_0x5e5367(0x216)])??this['chartId'];if(this['_disposed']||this[_0x5e5367(0x1f3)]()||this['_pendingToken']!==_0x594fa1||!_0x2556f8||_0x2d8ea5!==_0x3759ee||document[_0x5e5367(0x302)](_0x3759ee)!==_0x4d1134||!_0x4d1134[_0x5e5367(0x299)])throw Error(_0x5e5367(0x2d1));let _0x5180e4=this[_0x5e5367(0x391)]();if(!_0x5180e4)throw Error(_0x5e5367(0x2d1));let _0x577779=new _0x5aa803(_0x4d1134);return _0x577779[_0x5e5367(0x270)](this[_0x5e5367(0x1f7)](_0x5180e4),this[_0x5e5367(0x140)]()),this[_0x5e5367(0x355)](_0x4d1134),this[_0x5e5367(0x18f)]=_0x577779,this[_0x5e5367(0x1e2)]=!0x0,{'mountNode':_0x577779[_0x5e5367(0x1ff)],'dispose':()=>{const _0x573a6e=_0x5e5367;this['dispose'](),_0x2c0c3a[_0x573a6e(0x37b)][_0x573a6e(0x37b)]();}};}finally{this[_0x5e5367(0x321)]===_0x5c6d77&&(this[_0x5e5367(0x321)]=null),this[_0x5e5367(0x234)]===_0x594fa1&&(this[_0x5e5367(0x234)]=null);}}[_0x43ae1d(0x11b)](){const _0x54a59d=_0x43ae1d;let _0x137b5a=this[_0x54a59d(0x321)];_0x137b5a&&(_0x137b5a[_0x54a59d(0x274)](),this[_0x54a59d(0x321)]=null);}[_0x43ae1d(0x1f8)](){const _0x48ee3f=_0x43ae1d;let _0x46406a=this[_0x48ee3f(0x391)]();this[_0x48ee3f(0x18f)]&&_0x46406a&&this['_domFrame'][_0x48ee3f(0x270)](this[_0x48ee3f(0x1f7)](_0x46406a),this[_0x48ee3f(0x140)]());}[_0x43ae1d(0x1f7)](_0x532ee9){const _0x31f76b=_0x43ae1d;return _0x4b5df9['resolve']({'logicalOuterRect':{'left':_0x532ee9['left'],'top':_0x532ee9[_0x31f76b(0x271)],'width':_0x532ee9[_0x31f76b(0x387)],'height':_0x532ee9['height']},'scale':{'scaleX':_0x532ee9[_0x31f76b(0x3d8)],'scaleY':_0x532ee9[_0x31f76b(0x120)]},'hostStyle':this[_0x31f76b(0x140)](),'contentMode':_0x2725bb['Overlay']});}['_frameStyle'](){return{...this['_hostStyle'],'radius':_0x3f34f1};}[_0x43ae1d(0x355)](_0x140451){const _0xc346c9=_0x43ae1d;let _0x2127c2=_0x140451[_0xc346c9(0x309)];_0x2127c2&&(this['_savedWrapperStyle']||={'zIndex':_0x2127c2[_0xc346c9(0x280)][_0xc346c9(0x24b)],'pointerEvents':_0x2127c2[_0xc346c9(0x280)]['pointerEvents']},_0x2127c2[_0xc346c9(0x280)][_0xc346c9(0x24b)]=_0xc346c9(0x23b),this[_0xc346c9(0x126)](_0x140451));}[_0x43ae1d(0x126)](_0x2282bc){const _0x4096d0=_0x43ae1d;let _0x58e154=_0x2282bc[_0x4096d0(0x309)];if(!_0x58e154)return;let _0x164f6a=this[_0x4096d0(0x381)];if(_0x164f6a!=null){_0x2282bc[_0x4096d0(0x385)][_0x4096d0(0x1db)]='true',_0x2282bc['dataset'][_0x4096d0(0x113)]=String(_0x164f6a),_0x58e154[_0x4096d0(0x280)][_0x4096d0(0x163)]=_0x4096d0(0x1af);return;}delete _0x2282bc[_0x4096d0(0x385)][_0x4096d0(0x1db)],delete _0x2282bc[_0x4096d0(0x385)][_0x4096d0(0x113)],_0x58e154[_0x4096d0(0x280)][_0x4096d0(0x163)]='auto';}[_0x43ae1d(0x1d6)](){const _0x2a6d25=_0x43ae1d;if(!this[_0x2a6d25(0x21c)])return;let _0x4cdbac=this[_0x2a6d25(0x157)](),_0x515396=(_0x4cdbac==null?void 0x0:_0x4cdbac[_0x2a6d25(0x216)])??this[_0x2a6d25(0x3a8)],_0x6d58ff=document['getElementById'](_0x515396);_0x6d58ff==null||delete _0x6d58ff['dataset']['sheetChartDataAnimation'],_0x6d58ff==null||delete _0x6d58ff[_0x2a6d25(0x385)][_0x2a6d25(0x113)];let _0x6d9306=_0x6d58ff==null?void 0x0:_0x6d58ff[_0x2a6d25(0x309)];_0x6d9306&&(_0x6d9306['style'][_0x2a6d25(0x24b)]=this[_0x2a6d25(0x21c)][_0x2a6d25(0x24b)],_0x6d9306[_0x2a6d25(0x280)]['pointerEvents']=this[_0x2a6d25(0x21c)][_0x2a6d25(0x163)]),this['_savedWrapperStyle']=null;}},hi=class extends _0x3b9250{constructor(_0x437850,_0x5c03bf,_0x459025,_0x97ca30,_0xf0e501,_0x9ef75e){const _0x22efd9=_0x43ae1d;super(_0x437850),this[_0x22efd9(0x37c)]=_0x5c03bf,this['_setHostStyle']=_0x459025,this['_snapshotKey']=_0x97ca30,this['_snapshotStore']=_0xf0e501,this[_0x22efd9(0x3c9)]=_0x9ef75e;}['getRect'](){const _0x1cee4=_0x43ae1d;let _0x29cd4b=this[_0x1cee4(0x37c)]();return _0x29cd4b?ni(_0x29cd4b):null;}[_0x43ae1d(0x1c7)](_0x2eacc9){const _0x1158e0=_0x43ae1d;this[_0x1158e0(0x239)](_0x2eacc9);}[_0x43ae1d(0x296)](){const _0x4c40b9=_0x43ae1d;return this[_0x4c40b9(0x2d3)][_0x4c40b9(0x296)](this[_0x4c40b9(0x1a1)]);}['commitSnapshot'](_0x17e0fb,_0x3c5ab5){const _0x4c6cb9=_0x43ae1d;return this[_0x4c6cb9(0x2d3)][_0x4c6cb9(0x32f)](this[_0x4c6cb9(0x1a1)],_0x17e0fb,_0x3c5ab5);}['requestPaint'](){const _0x574d15=_0x43ae1d;this[_0x574d15(0x3c9)]();}['invalidateSnapshot'](){const _0x306b91=_0x43ae1d;this[_0x306b91(0x2d3)][_0x306b91(0x296)](this['_snapshotKey']);}};function q(_0xb6bfb2,_0x5d1feb){return function(_0x4c13b8,_0x386b20){_0x5d1feb(_0x4c13b8,_0x386b20,_0xb6bfb2);};}function J(_0xb062d2,_0x523bee,_0x5a136d,_0x41c8f5){const _0x355326=_0x43ae1d;var _0x1af41f=arguments['length'],_0x123972=_0x1af41f<0x3?_0x523bee:_0x41c8f5===null?_0x41c8f5=Object['getOwnPropertyDescriptor'](_0x523bee,_0x5a136d):_0x41c8f5,_0x37b5df;if(typeof Reflect==_0x355326(0x3b8)&&typeof Reflect[_0x355326(0x264)]==_0x355326(0x261))_0x123972=Reflect[_0x355326(0x264)](_0xb062d2,_0x523bee,_0x5a136d,_0x41c8f5);else{for(var _0x3ad493=_0xb062d2[_0x355326(0x1c5)]-0x1;_0x3ad493>=0x0;_0x3ad493--)(_0x37b5df=_0xb062d2[_0x3ad493])&&(_0x123972=(_0x1af41f<0x3?_0x37b5df(_0x123972):_0x1af41f>0x3?_0x37b5df(_0x523bee,_0x5a136d,_0x123972):_0x37b5df(_0x523bee,_0x5a136d))||_0x123972);}return _0x1af41f>0x3&&_0x123972&&Object[_0x355326(0x30c)](_0x523bee,_0x5a136d,_0x123972),_0x123972;}const gi=0.5;function _i(_0x51ad4e){const _0x264b4e=_0x43ae1d;let _0x3d70c4=Math[_0x264b4e(0x1c1)](_0x51ad4e[_0x264b4e(0x323)]-_0x51ad4e[_0x264b4e(0x2d8)],0x0),_0x181ee6=Math[_0x264b4e(0x1c1)](_0x51ad4e[_0x264b4e(0x371)]-_0x51ad4e[_0x264b4e(0x3da)],0x0),_0x2815c3=_0x51ad4e[_0x264b4e(0x146)]['left']&&_0x51ad4e[_0x264b4e(0x387)]-_0x3d70c4>gi,_0x26d79a=_0x51ad4e[_0x264b4e(0x146)][_0x264b4e(0x271)]&&_0x51ad4e[_0x264b4e(0x386)]-_0x181ee6>gi;return!_0x2815c3&&!_0x26d79a?_0x51ad4e:{..._0x51ad4e,'absolute':{'left':!_0x2815c3&&_0x51ad4e[_0x264b4e(0x146)][_0x264b4e(0x324)],'top':!_0x26d79a&&_0x51ad4e[_0x264b4e(0x146)][_0x264b4e(0x271)]}};}function vi(_0x2a901c){const _0x17f604=_0x43ae1d;if(!Object[_0x17f604(0x3d0)][_0x17f604(0x2e5)][_0x17f604(0x368)](_0x2a901c,_0x17f604(0x159)))return _0x2a901c;let {border:_0x2dcd52,..._0x558ad5}=_0x2a901c;return{..._0x558ad5,'stroke':(_0x2dcd52==null?void 0x0:_0x2dcd52[_0x17f604(0x196)])??_0x17f604(0x3b5),'strokeWidth':(_0x2dcd52==null?void 0x0:_0x2dcd52['width'])??0x0};}let yi=class extends _0x54a426{constructor(_0x172e4c,_0x349bae,_0x8c110c,_0x53f3da){const _0x1de09b=_0x43ae1d;super(),this[_0x1de09b(0x35d)]=_0x172e4c,this[_0x1de09b(0x33c)]=_0x349bae,this[_0x1de09b(0x12f)]=_0x8c110c,this[_0x1de09b(0x17a)]=_0x53f3da,G(this,_0x1de09b(0x26c),new Map()),G(this,'_activeDomReadyChartIds',new Set()),G(this,'_removeHost$',new _0x243eda()),G(this,_0x1de09b(0x316),this['_removeHost$']['asObservable']()),this['disposeWithMe'](this[_0x1de09b(0x35d)][_0x1de09b(0x1d7)]['subscribe'](_0xb7ae9f=>{const _0x3abd25=_0x1de09b;let _0x2628f9=this['_chartHostMap'][_0x3abd25(0x117)](_0xb7ae9f['id']);_0x2628f9!=null&&_0x2628f9[_0x3abd25(0x3c7)]()&&(_0x2628f9[_0x3abd25(0x1a7)](),this['_removeHost$']['next'](_0xb7ae9f['id']));}));}[_0x43ae1d(0x167)](_0x2224ed){const _0x569bc3=_0x43ae1d;if(_0x2224ed==null)return;let _0x13c935=this[_0x569bc3(0x33c)]['getRenderUnitById'](_0x2224ed),_0x568fa1=_0x13c935==null?void 0x0:_0x13c935[_0x569bc3(0x1aa)];return _0x13c935==null||_0x568fa1==null?null:{'scene':_0x568fa1,'transformer':_0x568fa1[_0x569bc3(0x19e)](),'renderUnit':_0x13c935,'canvas':_0x13c935['engine'][_0x569bc3(0x198)]()};}[_0x43ae1d(0x1bd)](_0x16851b,_0x18740d){const _0x3cba36=_0x43ae1d;let _0x18d8aa=this[_0x3cba36(0x35d)],_0x52fe59=_0x18740d||'transparent',_0x5083b6=_0x18d8aa[_0x3cba36(0x17f)](_0x16851b);if(_0x5083b6){let {unitId:_0x123f1f,subUnitId:_0x2ba2ec}=_0x5083b6;_0x18d8aa[_0x3cba36(0x1ba)](_0x123f1f,_0x2ba2ec,_0x16851b,{'stroke':_0x52fe59});}}[_0x43ae1d(0x307)](_0x13b5f7,_0x31e02b){const _0x40c2d5=_0x43ae1d;let _0xe336ff=this['_sheetCanvasFloatDomManagerService'],_0x3a3b69=_0xe336ff['getFloatDomInfo'](_0x13b5f7);if(_0x3a3b69){let {unitId:_0x30f5b2,subUnitId:_0x59ab57}=_0x3a3b69;_0xe336ff[_0x40c2d5(0x1ba)](_0x30f5b2,_0x59ab57,_0x13b5f7,vi(_0x31e02b));}}[_0x43ae1d(0x345)](_0x49d473){const _0x395839=_0x43ae1d;let _0x88dc6=this['_sheetCanvasFloatDomManagerService'][_0x395839(0x17f)](_0x49d473);return _0x88dc6?_0x88dc6['rect']:null;}[_0x43ae1d(0x14d)](_0x47dd78){const _0x11bea6=_0x43ae1d;let _0x27d489=this[_0x11bea6(0x35d)][_0x11bea6(0x17f)](_0x47dd78),_0x1ed80e=document[_0x11bea6(0x302)]((_0x27d489==null?void 0x0:_0x27d489[_0x11bea6(0x216)])??_0x47dd78);return(_0x1ed80e==null?void 0x0:_0x1ed80e[_0x11bea6(0x181)]())??null;}['setDataUpdateAnimation'](_0x5a03df,_0x2686f4){const _0x40e5ca=_0x43ae1d;var _0x4c00b2;(_0x4c00b2=this[_0x40e5ca(0x26c)][_0x40e5ca(0x117)](_0x5a03df))==null||_0x4c00b2[_0x40e5ca(0x27d)](_0x2686f4);}['checkHost'](_0x42bbd4){const _0x42a32b=_0x43ae1d;var _0xc63ded;return((_0xc63ded=this[_0x42a32b(0x26c)][_0x42a32b(0x117)](_0x42bbd4))==null?void 0x0:_0xc63ded[_0x42a32b(0x29e)]())??!0x1;}[_0x43ae1d(0x27c)](_0x4d8c02){const _0x5fc443=_0x43ae1d;var _0x1e90a2;(_0x1e90a2=this[_0x5fc443(0x26c)][_0x5fc443(0x117)](_0x4d8c02))==null||_0x1e90a2[_0x5fc443(0x2a0)]();}[_0x43ae1d(0x191)](_0x537f65){const _0x1339a1=_0x43ae1d;let _0x363ce8=this[_0x1339a1(0x26c)][_0x1339a1(0x117)](_0x537f65);_0x363ce8==null||_0x363ce8[_0x1339a1(0x37b)](),this['_chartHostMap'][_0x1339a1(0x1a8)](_0x537f65);}async['ensureHost'](_0x425ea7,_0xd3675){const _0x51a03d=_0x43ae1d;if(_0xd3675===_0x699515[_0x51a03d(0x20a)])return this[_0x51a03d(0x138)](_0x425ea7);if(_0xd3675===_0x699515['Dom'])return this[_0x51a03d(0x2ef)](_0x425ea7);let _0x523f81=this[_0x51a03d(0x2ef)](_0x425ea7);if(!_0x523f81)throw Error(_0x51a03d(0x2d1));return _0x523f81[_0x51a03d(0x12a)]();}['isDomReady'](_0x18ca80){const _0x21f260=_0x43ae1d;var _0x17130d;return this[_0x21f260(0x252)][_0x21f260(0x187)](_0x18ca80)?(_0x17130d=this[_0x21f260(0x26c)][_0x21f260(0x117)](_0x18ca80))!=null&&_0x17130d[_0x21f260(0x29e)]()?!0x0:(this[_0x21f260(0x252)][_0x21f260(0x1a8)](_0x18ca80),this[_0x21f260(0x260)](_0x18ca80),!0x1):!0x1;}[_0x43ae1d(0x164)](_0x5e0eda){const _0x4232f4=_0x43ae1d;this[_0x4232f4(0x252)][_0x4232f4(0x1a8)](_0x5e0eda)&&(this[_0x4232f4(0x260)](_0x5e0eda),this[_0x4232f4(0x11f)](_0x5e0eda));}[_0x43ae1d(0x116)](_0x123f39){const _0x508b84=_0x43ae1d;let _0x22a326=this[_0x508b84(0x19d)](_0x123f39);_0x22a326&&this[_0x508b84(0x12f)]['nextVersion'](_0x22a326);}[_0x43ae1d(0x138)](_0x2a48a1){const _0x209853=_0x43ae1d;let _0x100b29=this[_0x209853(0x19d)](_0x2a48a1);return!_0x100b29||!this['getHostSize'](_0x2a48a1)?null:new hi(_0x2a48a1,()=>this[_0x209853(0x345)](_0x2a48a1),_0x514196=>this['setHostStyle'](_0x2a48a1,_0x514196),_0x100b29,this['_chartSnapshotStoreService'],()=>this[_0x209853(0x11f)](_0x2a48a1));}[_0x43ae1d(0x2ef)](_0x235f27){const _0x2c4e46=_0x43ae1d;if(!this[_0x2c4e46(0x345)](_0x235f27))return null;this[_0x2c4e46(0x17a)][_0x2c4e46(0x241)](_0x235f27,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x4cd0a9=this[_0x2c4e46(0x26c)][_0x2c4e46(0x117)](_0x235f27);if(_0x4cd0a9)return _0x4cd0a9;let _0x1648b9=new mi(_0x235f27,()=>this['_sheetCanvasFloatDomManagerService'][_0x2c4e46(0x17f)](_0x235f27),()=>this['_getHostPlacement'](_0x235f27),_0x2ec7f1=>this[_0x2c4e46(0x307)](_0x235f27,_0x2ec7f1),()=>this['_disposed'],()=>this['_markHostReady'](_0x235f27),()=>this[_0x2c4e46(0x164)](_0x235f27));return this['_chartHostMap'][_0x2c4e46(0x174)](_0x235f27,_0x1648b9),_0x1648b9;}['_markHostReady'](_0x3dfe96){const _0x185eba=_0x43ae1d;this[_0x185eba(0x252)][_0x185eba(0x187)](_0x3dfe96)||(this[_0x185eba(0x252)][_0x185eba(0x28e)](_0x3dfe96),this[_0x185eba(0x311)](_0x3dfe96),this[_0x185eba(0x11f)](_0x3dfe96));}['_alignFloatDomPositionWithSceneRender'](_0x5dc2f0){const _0x174580=_0x43ae1d;var _0x1fc7cb;let _0x2b8a15=this['_sheetCanvasFloatDomManagerService'][_0x174580(0x17f)](_0x5dc2f0),_0x93d7e3=_0x2b8a15?(_0x1fc7cb=this[_0x174580(0x33c)][_0x174580(0x2b5)](_0x2b8a15[_0x174580(0x2ea)]))==null?void 0x0:_0x1fc7cb['scene']:null;if(!_0x2b8a15||!_0x93d7e3)return;let _0x39ddf8=_0xbccbd7(_0x2b8a15[_0x174580(0x3ba)][_0x174580(0x337)](_0x16f4cd(0x1)),_0x93d7e3[_0x174580(0x20b)]['pipe'](_0x51b35c(_0x2b8a15['position$']),_0x398d86(([,_0x3ca860])=>_0x3ca860)))[_0x174580(0x337)](_0x5b1f16(),_0x398d86(_i));this[_0x174580(0x17a)]['updateFloatDom'](_0x5dc2f0,{'position$':_0x39ddf8});}[_0x43ae1d(0x260)](_0x231f4d){const _0x23ce45=_0x43ae1d;let _0x25157c=this['_sheetCanvasFloatDomManagerService'][_0x23ce45(0x17f)](_0x231f4d);_0x25157c&&this[_0x23ce45(0x17a)][_0x23ce45(0x241)](_0x231f4d,{'position$':_0x25157c['position$']});}[_0x43ae1d(0x19d)](_0x2157ab){const _0x216752=_0x43ae1d;let _0x3cf92e=this[_0x216752(0x35d)][_0x216752(0x17f)](_0x2157ab);return _0x3cf92e?{'unitId':_0x3cf92e[_0x216752(0x2ea)],'subUnitId':_0x3cf92e[_0x216752(0x2d0)],'chartId':_0x2157ab}:null;}['_requestChartCanvasRender'](_0x3352e7){const _0x1f1e99=_0x43ae1d;var _0x43383b,_0x25649c,_0x3910cb;let _0x2a30b7=this[_0x1f1e99(0x35d)][_0x1f1e99(0x17f)](_0x3352e7);if(!_0x2a30b7)return;let _0x5433b9=(_0x43383b=this[_0x1f1e99(0x33c)][_0x1f1e99(0x2b5)](_0x2a30b7[_0x1f1e99(0x2ea)]))==null?void 0x0:_0x43383b[_0x1f1e99(0x1aa)],_0x1785a6=(_0x5433b9==null||(_0x25649c=_0x5433b9[_0x1f1e99(0x1e9)])==null?void 0x0:_0x25649c[_0x1f1e99(0x368)](_0x5433b9,_0x2b4663({'unitId':_0x2a30b7['unitId'],'subUnitId':_0x2a30b7['subUnitId'],'drawingId':_0x3352e7})))??(_0x5433b9==null?void 0x0:_0x5433b9[_0x1f1e99(0x378)](_0x2b4663({'unitId':_0x2a30b7[_0x1f1e99(0x2ea)],'subUnitId':_0x2a30b7[_0x1f1e99(0x2d0)],'drawingId':_0x3352e7})))??null;_0x1785a6==null||(_0x3910cb=_0x1785a6[_0x1f1e99(0x13b)])==null||_0x3910cb[_0x1f1e99(0x368)](_0x1785a6,!0x0),_0x5433b9==null||_0x5433b9['makeDirty'](!0x0);}[_0x43ae1d(0x394)](_0x2008f3){const _0x2767c8=_0x43ae1d;let _0x19849e=this['_sheetCanvasFloatDomManagerService'][_0x2767c8(0x17f)](_0x2008f3);if(!_0x19849e)return null;let _0x1dc2df=this[_0x2767c8(0x167)](_0x19849e[_0x2767c8(0x2ea)]),_0x49eaba=_0x1dc2df==null?void 0x0:_0x1dc2df[_0x2767c8(0x1aa)],_0x5db9af=document[_0x2767c8(0x302)](_0x19849e[_0x2767c8(0x216)]??_0x2008f3);return ri(_0x19849e[_0x2767c8(0x240)],{'scaleX':(_0x49eaba==null?void 0x0:_0x49eaba[_0x2767c8(0x3d8)])??0x1,'scaleY':(_0x49eaba==null?void 0x0:_0x49eaba[_0x2767c8(0x120)])??0x1},_0x5db9af?{'left':_0x5db9af[_0x2767c8(0x1df)],'top':_0x5db9af['offsetTop']}:void 0x0);}[_0x43ae1d(0x37b)](){const _0x4a4712=_0x43ae1d;this[_0x4a4712(0x3be)]||(this[_0x4a4712(0x26c)][_0x4a4712(0x298)](_0xcf29e2=>_0xcf29e2['dispose']()),this[_0x4a4712(0x26c)][_0x4a4712(0x3c0)](),this[_0x4a4712(0x252)]['clear'](),this[_0x4a4712(0x13f)]['complete'](),super[_0x4a4712(0x37b)]());}};yi=J([q(0x0,_0x44acc1(_0x53eb3b)),q(0x1,_0x44acc1(_0x21bbf8)),q(0x2,_0x44acc1(fi)),q(0x3,_0x44acc1(_0x93e166))],yi);const bi=_0x199261(_0x43ae1d(0x2a8)),xi=_0x699515['Image'];var Si=class extends _0x3b9250{constructor(_0x386a34,_0x46f770){const _0x2d32d2=_0x43ae1d;super(_0x386a34),this[_0x2d32d2(0x2f4)]=_0x46f770,G(this,_0x2d32d2(0x1d2),0x0),G(this,_0x2d32d2(0x135),void 0x0),G(this,_0x2d32d2(0x280),{});}[_0x43ae1d(0x197)](){const _0xbdb3b1=_0x43ae1d;return this[_0xbdb3b1(0x2f4)];}['setStyle'](_0x107725){const _0x4a9813=_0x43ae1d;this[_0x4a9813(0x280)]=_0x107725;}['nextVersion'](){const _0x218db0=_0x43ae1d;return++this[_0x218db0(0x1d2)];}[_0x43ae1d(0x375)](_0x306255,_0x6ba1b1){const _0x37e0e0=_0x43ae1d;return _0x6ba1b1===this[_0x37e0e0(0x1d2)]?(K(this[_0x37e0e0(0x135)]),this[_0x37e0e0(0x135)]=_0x306255,!0x0):(K(_0x306255),!0x1);}[_0x43ae1d(0x395)](){}[_0x43ae1d(0x116)](){const _0x5ef1e7=_0x43ae1d;this[_0x5ef1e7(0x1d2)]+=0x1;}[_0x43ae1d(0x36d)](){const _0x448623=_0x43ae1d;let _0x5a11fd=this['_image'];return this[_0x448623(0x135)]=void 0x0,_0x5a11fd;}['dispose'](){const _0x4f13e5=_0x43ae1d;K(this[_0x4f13e5(0x135)]),this[_0x4f13e5(0x135)]=void 0x0,super['dispose']();}};function Ci(_0x532b2a,_0x3b546c,_0x581c90){const _0x44f108=_0x43ae1d;let _0x475ff6=_0x532b2a['getRuntimeContext'](_0x3b546c);return _0x379fb9({..._0x532b2a[_0x44f108(0x280)],'runtime':{..._0x475ff6,'layoutInset':0x8,..._0x581c90===void 0x0?{}:{'addWatermark':_0x581c90}},'direction':_0x3b546c},_0x532b2a[_0x44f108(0x37d)]);}let Y=class extends _0x54a426{constructor(_0x3d2c2c,_0x4ed8fb,_0x25bd4b,_0x243d9f,_0x2b2608,_0x2a5ec6,_0x28f321,_0x108d97,_0x33e5cf,_0x19a6dd,_0x1566d3,_0x5e534c,_0x512619){const _0x1d0ab1=_0x43ae1d;super(),this['_chartHostProvider']=_0x3d2c2c,this[_0x1d0ab1(0x35d)]=_0x4ed8fb,this[_0x1d0ab1(0x374)]=_0x25bd4b,this[_0x1d0ab1(0x124)]=_0x243d9f,this[_0x1d0ab1(0x250)]=_0x2b2608,this[_0x1d0ab1(0x33c)]=_0x2a5ec6,this[_0x1d0ab1(0x326)]=_0x28f321,this[_0x1d0ab1(0x363)]=_0x108d97,this[_0x1d0ab1(0x139)]=_0x33e5cf,this[_0x1d0ab1(0x383)]=_0x19a6dd,this[_0x1d0ab1(0x1c4)]=_0x1566d3,this[_0x1d0ab1(0x12f)]=_0x5e534c,this[_0x1d0ab1(0x2da)]=_0x512619,G(this,_0x1d0ab1(0x1ef),new Map()),G(this,_0x1d0ab1(0x24e),new Map()),G(this,_0x1d0ab1(0x3c8),new Map()),G(this,_0x1d0ab1(0x25b),new Map()),G(this,_0x1d0ab1(0x257),new Map()),G(this,_0x1d0ab1(0x225),new Map()),G(this,'_chartChangeSubscriptions',new Map()),G(this,_0x1d0ab1(0x1f4),void 0x0),G(this,_0x1d0ab1(0x2be),void 0x0),G(this,_0x1d0ab1(0x149),new Map()),G(this,_0x1d0ab1(0x1f9),new Set()),G(this,_0x1d0ab1(0x32b),new Map()),G(this,'_activeChartId',null),G(this,_0x1d0ab1(0x2f7),null);let _0x44a430=_0x346aab(this[_0x1d0ab1(0x363)]),_0x1df902=this[_0x1d0ab1(0x1c4)][_0x1d0ab1(0x24a)](_0xfd255);this[_0x1d0ab1(0x1f4)]=(_0x1df902==null?void 0x0:_0x1df902[_0x1d0ab1(0x286)])??xi,this[_0x1d0ab1(0x2be)]=_0x44a430['length']!==0x1||_0x44a430[0x0]!==_0x1d0ab1(0x16d),this['_registerChartImageRenderObjectFactory'](),this['_initActiveChartModelListener'](),this[_0x1d0ab1(0x39a)](),this[_0x1d0ab1(0x18c)](),this[_0x1d0ab1(0x1a3)]();}[_0x43ae1d(0x226)](_0x2f6713){const _0x55ac51=_0x43ae1d;let _0x325546=this['_getChartSnapshotKey'](_0x2f6713);return _0x325546?this[_0x55ac51(0x12f)]['getImage'](_0x325546):void 0x0;}[_0x43ae1d(0x2e9)](_0x40e33e){const _0x25266d=_0x43ae1d;var _0x6168d5;return((_0x6168d5=this['_chartModelService'][_0x25266d(0x318)])==null?void 0x0:_0x6168d5['id'])===_0x40e33e?_0x699515[_0x25266d(0x2fd)]:this['_chartRenderMode'];}[_0x43ae1d(0x19d)](_0x1a9928){const _0x31ad60=_0x43ae1d;let _0x14cf21=this['_sheetCanvasFloatDomManagerService'][_0x31ad60(0x17f)](_0x1a9928);return _0x14cf21?{'unitId':_0x14cf21[_0x31ad60(0x2ea)],'subUnitId':_0x14cf21['subUnitId'],'chartId':_0x1a9928}:null;}[_0x43ae1d(0x35f)](){const _0x4d3f0e=_0x43ae1d;this[_0x4d3f0e(0x1f4)]===_0x699515[_0x4d3f0e(0x20a)]&&this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService']['registerRenderObjectFactory'](_0x473930['DRAWING_CHART'],({key:_0x1391b3,config:_0x14785a,unitId:_0x5301de,subUnitId:_0x107792,drawingId:_0x194411})=>new ci(_0x1391b3,_0x14785a,()=>this[_0x4d3f0e(0x12f)][_0x4d3f0e(0x22d)]({'unitId':_0x5301de,'subUnitId':_0x107792,'chartId':_0x194411}),()=>this[_0x4d3f0e(0x3c4)]['isDomReady'](_0x194411))));}[_0x43ae1d(0x3d9)](){const _0xa30217=_0x43ae1d;this[_0xa30217(0x143)](this[_0xa30217(0x374)]['activeChartModel$'][_0xa30217(0x3bd)](_0x20ef97=>{const _0x2b6e76=_0xa30217;let _0x41de80=(_0x20ef97==null?void 0x0:_0x20ef97['id'])??null,_0x555fe3=this[_0x2b6e76(0x358)];_0x555fe3!==_0x41de80&&(_0x555fe3&&(this[_0x2b6e76(0x3c4)][_0x2b6e76(0x164)](_0x555fe3),this['_resetChartRuntimeZIndex'](_0x555fe3),this['_disposeChartDomInstance'](_0x555fe3)),this[_0x2b6e76(0x358)]=_0x41de80,_0x41de80&&(this[_0x2b6e76(0x3d6)](_0x41de80),this[_0x2b6e76(0x3c4)][_0x2b6e76(0x164)](_0x41de80),this['_applyActiveChartRuntimeZIndex'](_0x41de80),this[_0x2b6e76(0x2fc)](_0x41de80)));}));}[_0x43ae1d(0x39a)](){const _0x46dfed=_0x43ae1d;this[_0x46dfed(0x143)](this['_drawingManagerService'][_0x46dfed(0x208)][_0x46dfed(0x3bd)](_0x454151=>{const _0x36d4e9=_0x46dfed;var _0x152cb7;let _0x2dbaf8=(_0x152cb7=this[_0x36d4e9(0x374)]['activeChartModel'])==null?void 0x0:_0x152cb7['id'];_0x2dbaf8&&_0x454151[_0x36d4e9(0x16a)](_0x2a180a=>_0x2a180a[_0x36d4e9(0x1dc)]['some'](_0x373468=>_0x373468[_0x36d4e9(0x26e)]===_0x2dbaf8))&&this[_0x36d4e9(0x374)]['setActiveChartModel'](null);})),this[_0x46dfed(0x143)](this[_0x46dfed(0x124)][_0x46dfed(0x31c)][_0x46dfed(0x3bd)](_0x45fc31=>{const _0x47f906=_0x46dfed;var _0x58cee1;let _0x35d0f6=(_0x58cee1=this[_0x47f906(0x374)][_0x47f906(0x318)])==null?void 0x0:_0x58cee1['id'];_0x35d0f6&&_0x45fc31[_0x47f906(0x16a)](_0x1c22ec=>_0x1c22ec[_0x47f906(0x235)][_0x47f906(0x26e)]===_0x35d0f6||_0x1c22ec['children'][_0x47f906(0x16a)](_0x29d603=>_0x29d603[_0x47f906(0x26e)]===_0x35d0f6))&&this[_0x47f906(0x374)][_0x47f906(0x33e)](null);}));}[_0x43ae1d(0x18c)](){const _0x1dfc52=_0x43ae1d;this[_0x1dfc52(0x143)](this[_0x1dfc52(0x124)][_0x1dfc52(0x127)]['subscribe'](_0x5d9ead=>{const _0x2ab3a6=_0x1dfc52;var _0x4e5a77;let _0x4ba6d8=(_0x4e5a77=this[_0x2ab3a6(0x374)]['activeChartModel'])==null?void 0x0:_0x4e5a77['id'];if(!_0x4ba6d8){_0x5d9ead[_0x2ab3a6(0x2ec)][_0x2ab3a6(0x298)](_0x3251d1=>{const _0xa97995=_0x2ab3a6;this[_0xa97995(0x374)][_0xa97995(0x213)](_0x3251d1)&&this[_0xa97995(0x24f)](_0x3251d1);});return;}let _0x1ee0a1=this[_0x2ab3a6(0x35d)][_0x2ab3a6(0x17f)](_0x4ba6d8);(_0x1ee0a1==null?void 0x0:_0x1ee0a1['unitId'])===_0x5d9ead[_0x2ab3a6(0x2ea)]&&_0x1ee0a1[_0x2ab3a6(0x2d0)]===_0x5d9ead['subUnitId']&&this[_0x2ab3a6(0x244)](_0x4ba6d8);})),this[_0x1dfc52(0x143)](this[_0x1dfc52(0x124)][_0x1dfc52(0x301)][_0x1dfc52(0x3bd)](_0x5c7be4=>{const _0x4a3288=_0x1dfc52;var _0x5dec43;let _0x12bc49=(_0x5dec43=this[_0x4a3288(0x374)][_0x4a3288(0x318)])==null?void 0x0:_0x5dec43['id'];if(!_0x12bc49)return;let _0x1a9a16=this[_0x4a3288(0x35d)][_0x4a3288(0x17f)](_0x12bc49);_0x1a9a16&&_0x5c7be4[_0x4a3288(0x16a)](_0x41be59=>_0x41be59['unitId']===_0x1a9a16[_0x4a3288(0x2ea)]&&_0x41be59['subUnitId']===_0x1a9a16[_0x4a3288(0x2d0)])&&this[_0x4a3288(0x244)](_0x12bc49);})),this['disposeWithMe'](this['_chartModelService'][_0x1dfc52(0x3b3)][_0x1dfc52(0x3bd)](_0x12d297=>{const _0x4db610=_0x1dfc52;var _0x32dffe;this[_0x4db610(0x221)](_0x12d297),this['_deactivateDataUpdateAnimation'](_0x12d297),this[_0x4db610(0x149)][_0x4db610(0x1a8)](_0x12d297),this[_0x4db610(0x12f)][_0x4db610(0x2cf)](_0x12d297),this[_0x4db610(0x3c1)](_0x12d297),this[_0x4db610(0x3c4)][_0x4db610(0x164)](_0x12d297),((_0x32dffe=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x32dffe['id'])===_0x12d297?this[_0x4db610(0x374)]['setActiveChartModel'](null):this[_0x4db610(0x24f)](_0x12d297),this[_0x4db610(0x1cc)](_0x12d297);}));}[_0x43ae1d(0x2fc)](_0x2a847c){const _0x32a0d1=_0x43ae1d;let _0x282198=this[_0x32a0d1(0x149)]['get'](_0x2a847c);_0x282198&&this['render'](_0x2a847c,_0x282198[_0x32a0d1(0x262)],_0x282198[_0x32a0d1(0x280)]);}['_disposeChartDomInstance'](_0x49166b){const _0x1cde8f=_0x43ae1d;let _0x30934d=this[_0x1cde8f(0x1ef)][_0x1cde8f(0x117)](_0x49166b);(_0x30934d==null?void 0x0:_0x30934d['mode'])===_0x1cde8f(0x382)&&(this[_0x1cde8f(0x2c1)](_0x49166b),_0x30934d[_0x1cde8f(0x37b)](),this['_chartInstanceMap'][_0x1cde8f(0x1a8)](_0x49166b)),this[_0x1cde8f(0x3c4)][_0x1cde8f(0x164)](_0x49166b),this[_0x1cde8f(0x3c4)][_0x1cde8f(0x191)](_0x49166b);}[_0x43ae1d(0x1cc)](_0x5649a4){const _0x4f540f=_0x43ae1d;let _0x42d562=this['_chartInstanceMap'][_0x4f540f(0x117)](_0x5649a4);_0x42d562&&(this[_0x4f540f(0x2c1)](_0x5649a4),_0x42d562[_0x4f540f(0x37b)](),this[_0x4f540f(0x1ef)]['delete'](_0x5649a4)),this[_0x4f540f(0x3c4)]['markHostNotReady'](_0x5649a4),this[_0x4f540f(0x3c4)][_0x4f540f(0x191)](_0x5649a4);}[_0x43ae1d(0x3c1)](_0x5516b1){const _0x3133af=_0x43ae1d;var _0x1d0b31,_0x7055a;(_0x1d0b31=this[_0x3133af(0x2da)][_0x3133af(0x16e)](_0xeebfe1))==null||(_0x7055a=_0x1d0b31['clearRuntimeCache'])==null||_0x7055a['call'](_0x1d0b31,_0x5516b1);}[_0x43ae1d(0x268)](_0x20f655,_0x441227){const _0x3a0e49=_0x43ae1d;let _0x2138a5=this[_0x3a0e49(0x124)]['getDrawingData'](_0x20f655,_0x441227);Object[_0x3a0e49(0x38e)](_0x2138a5??{})['forEach'](_0x4e6fca=>{const _0xa8c160=_0x3a0e49;_0x4e6fca[_0xa8c160(0x30d)]===_0x473930[_0xa8c160(0x194)]&&this['_clearChartRuntimeCache'](_0x4e6fca[_0xa8c160(0x26e)]);});}['_getChartRenderObject'](_0x2720fd,_0x25b47b){const _0xee9459=_0x43ae1d;var _0x3d18f3;return((_0x3d18f3=_0x2720fd[_0xee9459(0x1e9)])==null?void 0x0:_0x3d18f3[_0xee9459(0x368)](_0x2720fd,_0x25b47b))??_0x2720fd[_0xee9459(0x378)](_0x25b47b)??null;}['_getChartRenderObjectContext'](_0x2af793){const _0x124cf4=_0x43ae1d;var _0x523ce3;let _0x276d38=this[_0x124cf4(0x35d)]['getFloatDomInfo'](_0x2af793);if(!_0x276d38)return null;let _0x3abbd7=(_0x523ce3=this[_0x124cf4(0x33c)][_0x124cf4(0x2b5)](_0x276d38[_0x124cf4(0x2ea)]))==null?void 0x0:_0x523ce3[_0x124cf4(0x1aa)];if(!_0x3abbd7)return null;let _0x1910d7=this[_0x124cf4(0x179)](_0x3abbd7,_0x2b4663({'unitId':_0x276d38[_0x124cf4(0x2ea)],'subUnitId':_0x276d38[_0x124cf4(0x2d0)],'drawingId':_0x2af793}));return _0x1910d7?{'info':_0x276d38,'scene':_0x3abbd7,'chartObject':_0x1910d7}:null;}[_0x43ae1d(0x365)](_0x26a360,_0x4be1c1){const _0x52455a=_0x43ae1d;var _0x3b6a2a,_0x538c18,_0x2ae47f,_0x4891ef;let _0x556c42=this['_getChartRenderObjectContext'](_0x26a360);_0x556c42&&((_0x3b6a2a=(_0x538c18=_0x556c42['chartObject'])[_0x52455a(0x325)])==null||_0x3b6a2a['call'](_0x538c18,{'zIndex':_0x4be1c1}),(_0x2ae47f=(_0x4891ef=_0x556c42['chartObject'])[_0x52455a(0x13b)])==null||_0x2ae47f[_0x52455a(0x368)](_0x4891ef,!0x0),_0x556c42[_0x52455a(0x1aa)][_0x52455a(0x13b)](!0x0));}[_0x43ae1d(0x244)](_0x1f0fb3){const _0x4c7c82=_0x43ae1d;let _0x4acfe0=this['_sheetCanvasFloatDomManagerService'][_0x4c7c82(0x17f)](_0x1f0fb3);if(!_0x4acfe0)return;let _0x22fe64=this[_0x4c7c82(0x124)][_0x4c7c82(0x172)](_0x4acfe0[_0x4c7c82(0x2ea)],_0x4acfe0[_0x4c7c82(0x2d0)]);this['_setChartRuntimeZIndex'](_0x1f0fb3,_0x22fe64[_0x4c7c82(0x1c5)]);}[_0x43ae1d(0x24f)](_0x90f94b){const _0x41ce9c=_0x43ae1d;let _0x5e69fc=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x90f94b);if(!_0x5e69fc)return;let _0xfbc0a4=this['_drawingManagerService'][_0x41ce9c(0x172)](_0x5e69fc['unitId'],_0x5e69fc[_0x41ce9c(0x2d0)]),_0x35bf90=_0xfbc0a4[_0x41ce9c(0x29a)](_0x90f94b);this[_0x41ce9c(0x365)](_0x90f94b,_0x35bf90===-0x1?Math[_0x41ce9c(0x1c1)](_0xfbc0a4['length']-0x1,0x0):_0x35bf90);}[_0x43ae1d(0x14b)](_0x5a6940,_0x2226e4){const _0x61c544=_0x43ae1d;let _0x568a42=this['_sheetCanvasFloatDomManagerService'][_0x61c544(0x17f)](_0x5a6940);if(_0x2226e4[_0x61c544(0x387)]!==void 0x0&&_0x2226e4[_0x61c544(0x386)]!==void 0x0&&_0x568a42){var _0x49b59a;let {subUnitId:_0x2df74f}=_0x568a42,_0x5bbd33=(_0x49b59a=this[_0x61c544(0x250)][_0x61c544(0x18b)](_0x819f79[_0x61c544(0x23d)]))==null?void 0x0:_0x49b59a[_0x61c544(0x2e4)]();if((_0x5bbd33==null?void 0x0:_0x5bbd33['getSheetId']())===_0x2df74f){let {width:_0x34d7f0,height:_0x11f9a1}=_0x2226e4,_0x2b41a1=this[_0x61c544(0x374)]['getChartModel'](_0x5a6940),_0x319978=_0x2b41a1==null?void 0x0:_0x2b41a1[_0x61c544(0x280)];if(Math[_0x61c544(0x34f)](_0x34d7f0-((_0x319978==null?void 0x0:_0x319978[_0x61c544(0x387)])||0x0))>0x1||Math[_0x61c544(0x34f)](_0x11f9a1-((_0x319978==null?void 0x0:_0x319978[_0x61c544(0x386)])||0x0))>0x1){_0x2b41a1==null||_0x2b41a1[_0x61c544(0x1b7)]({..._0x319978,'width':_0x34d7f0,'height':_0x11f9a1});let _0x508128=this[_0x61c544(0x1ef)][_0x61c544(0x117)](_0x5a6940);_0x508128&&(this['_chartHostProvider']['syncHostLayout'](_0x5a6940),_0x508128[_0x61c544(0x399)]());}}}}[_0x43ae1d(0x207)](_0x127376,_0x4b416a,_0x2ee4f0=0x0){const _0x398add=_0x43ae1d;let _0x5d61f2=this[_0x398add(0x225)][_0x398add(0x117)](_0x127376);_0x5d61f2||(_0x5d61f2=_0x221eb2(_0x1e5c21=>{const _0x10f656=_0x398add;this[_0x10f656(0x14b)](_0x127376,_0x1e5c21);},_0x2ee4f0),this[_0x398add(0x225)]['set'](_0x127376,_0x5d61f2)),_0x5d61f2(_0x4b416a);}[_0x43ae1d(0x1a3)](){const _0x53195d=_0x43ae1d;let _0x7310e4=this[_0x53195d(0x257)],_0x51af7c=_0x4a707b=>{const _0x1f9dd6=_0x53195d;if(!_0x7310e4[_0x1f9dd6(0x187)](_0x4a707b)){let _0x493902=_0x221eb2((_0xdcf6ab,_0x11ec64,_0x5214b8,_0x2aa3b7)=>{const _0xcac45a=_0x1f9dd6;var _0x3a6f0e,_0x3bb559;if(!_0x5214b8)return;(_0x3a6f0e=_0x5214b8['category'])==null||_0x3a6f0e[_0xcac45a(0x3a1)][_0xcac45a(0x298)]((_0x2f9f4e,_0x302c5d)=>{const _0x15cdb8=_0xcac45a;_0x2f9f4e[_0x15cdb8(0x189)]||=this[_0x15cdb8(0x326)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x302c5d+0x1);}),_0x5214b8[_0xcac45a(0x332)][_0xcac45a(0x298)]((_0x123a9c,_0x4aa8b2)=>{const _0x1d914c=_0xcac45a;_0x123a9c['name']||=this[_0x1d914c(0x326)]['t'](_0x1d914c(0x351))+'\x20'+(_0x4aa8b2+0x1);});let _0x5869ea=this[_0xcac45a(0x320)](_0xdcf6ab,_0x2aa3b7),_0x5eda32=(_0x3bb559=this['_univerInstanceService']['getCurrentUnitOfType'](_0x819f79['UNIVER_SHEET']))==null?void 0x0:_0x3bb559[_0xcac45a(0x2e4)]();(_0x5eda32==null?void 0x0:_0x5eda32['getSheetId']())===_0x11ec64&&this[_0xcac45a(0x3cd)](_0xdcf6ab['id'],_0x5214b8,_0x5869ea);},0x11);_0x7310e4[_0x1f9dd6(0x174)](_0x4a707b,_0x493902);}return _0x7310e4[_0x1f9dd6(0x117)](_0x4a707b);};this[_0x53195d(0x143)](this[_0x53195d(0x250)]['focused$'][_0x53195d(0x3bd)](_0x1a720a=>{const _0x3b352e=_0x53195d;let _0x36cc33=this[_0x3b352e(0x250)][_0x3b352e(0x18b)](_0x819f79[_0x3b352e(0x23d)]);if(_0x1a720a&&_0x36cc33&&_0x36cc33[_0x3b352e(0x17d)]()===_0x1a720a){var _0x445bcc;let _0x101f2f=_0x36cc33[_0x3b352e(0x2e4)]()['getSheetId']();this[_0x3b352e(0x2f7)]&&(this[_0x3b352e(0x2f7)]['unitId']!==_0x1a720a||this['_lastActiveSheet']['subUnitId']!==_0x101f2f)&&this[_0x3b352e(0x268)](this[_0x3b352e(0x2f7)][_0x3b352e(0x2ea)],this[_0x3b352e(0x2f7)][_0x3b352e(0x2d0)]),this[_0x3b352e(0x2f7)]={'unitId':_0x1a720a,'subUnitId':_0x101f2f};let _0x86ddd3=this[_0x3b352e(0x124)][_0x3b352e(0x29d)](_0x1a720a,_0x101f2f);if(!((_0x445bcc=this[_0x3b352e(0x33c)][_0x3b352e(0x2b5)](_0x1a720a))!=null&&_0x445bcc[_0x3b352e(0x1dd)](_0x2888a9)[_0x3b352e(0x14e)](_0x101f2f)))return;if(_0x86ddd3)for(let _0x10ee68 in _0x86ddd3){let {drawingId:_0x3de7dd}=_0x86ddd3[_0x10ee68],_0xc2e8e2=this[_0x3b352e(0x374)][_0x3b352e(0x213)](_0x3de7dd);_0xc2e8e2&&_0x51af7c(_0xc2e8e2['id'])(_0xc2e8e2,_0x101f2f,_0xc2e8e2['config'],this[_0x3b352e(0x326)][_0x3b352e(0x16c)]());}}})),this['disposeWithMe'](this['_themeService'][_0x53195d(0x295)]['subscribe'](()=>{const _0x5d42a8=_0x53195d;var _0x473433;let _0x3713e8=this[_0x5d42a8(0x250)][_0x5d42a8(0x18b)](_0x819f79[_0x5d42a8(0x23d)]);if(!_0x3713e8)return;let _0x85c01=_0x3713e8[_0x5d42a8(0x17d)](),_0x555586=_0x3713e8[_0x5d42a8(0x2e4)]()[_0x5d42a8(0x133)](),_0x4d3b8d=this[_0x5d42a8(0x124)]['getDrawingData'](_0x85c01,_0x555586);if((_0x473433=this[_0x5d42a8(0x33c)]['getRenderUnitById'](_0x85c01))!=null&&_0x473433[_0x5d42a8(0x1dd)](_0x2888a9)[_0x5d42a8(0x14e)](_0x555586)&&_0x4d3b8d)for(let _0x1da821 in _0x4d3b8d){let {drawingId:_0x37ecaf}=_0x4d3b8d[_0x1da821],_0x10c51a=this[_0x5d42a8(0x374)]['getChartModel'](_0x37ecaf);_0x10c51a&&_0x51af7c(_0x10c51a['id'])(_0x10c51a,_0x555586,_0x10c51a[_0x5d42a8(0x262)],this[_0x5d42a8(0x326)][_0x5d42a8(0x16c)]());}})),this[_0x53195d(0x143)](this[_0x53195d(0x124)][_0x53195d(0x301)][_0x53195d(0x3bd)](_0x1ca445=>{_0x1ca445['forEach'](_0xe81001=>{const _0x4f487a=_0x4e81;var _0x2462f1;let {drawingId:_0x38c4b2,unitId:_0x23b002,subUnitId:_0x4ba5c4}=_0xe81001,_0x14aeec=this[_0x4f487a(0x33c)][_0x4f487a(0x2b5)](_0x23b002);if((_0x14aeec==null?void 0x0:_0x14aeec[_0x4f487a(0x1ad)])!==_0x819f79[_0x4f487a(0x23d)]||!_0x14aeec[_0x4f487a(0x1dd)](_0x2888a9)[_0x4f487a(0x14e)](_0x4ba5c4))return;let {drawingType:_0x9e9c03}=this[_0x4f487a(0x124)]['getDrawingByParam'](_0xe81001);if(_0x9e9c03!==_0x473930[_0x4f487a(0x194)])return;let _0x1265a9=this[_0x4f487a(0x35d)]['getFloatDomInfo'](_0x38c4b2);this[_0x4f487a(0x221)](_0x38c4b2);let _0x1bb206=new _0x54a426();this['_chartChangeSubscriptions'][_0x4f487a(0x174)](_0x38c4b2,_0x1bb206);let _0x48a85b=(_0x1265a9==null?void 0x0:_0x1265a9[_0x4f487a(0x216)])??_0x38c4b2,_0x15dc6c=_0x1265a9==null?void 0x0:_0x1265a9['rect'],_0x5e2b58=(_0x2462f1=this[_0x4f487a(0x33c)][_0x4f487a(0x2b5)](_0x23b002))==null?void 0x0:_0x2462f1[_0x4f487a(0x1aa)];_0x15dc6c&&_0x1bb206[_0x4f487a(0x143)](_0x15dc6c[_0x4f487a(0x289)]['subscribeEvent'](_0x58d718=>{const _0x8a78c6=_0x4f487a;let {type:_0x4a9a8e,value:_0x2fefdf}=_0x58d718;if(_0x57ae52[_0x8a78c6(0x399)]===_0x4a9a8e||_0x57ae52['all']===_0x4a9a8e){let {width:_0x52cd68,height:_0x5edadf}=_0x2fefdf;this[_0x8a78c6(0x207)](_0x38c4b2,{'width':_0x52cd68,'height':_0x5edadf},0x64);}})),_0x5e2b58&&_0x1bb206[_0x4f487a(0x143)](_0x5e2b58[_0x4f487a(0x289)][_0x4f487a(0x290)](_0x280a2a=>{const _0x40b1eb=_0x4f487a;var _0xf55f9d;_0x280a2a[_0x40b1eb(0x1ad)]===_0x57ae52[_0x40b1eb(0x3a5)]&&(_0xf55f9d=document['getElementById'](_0x48a85b))!=null&&_0xf55f9d[_0x40b1eb(0x288)](_0x40b1eb(0x13c))&&this['_chartHostProvider'][_0x40b1eb(0x27c)](_0x38c4b2);}));let _0x2b37b9=this[_0x4f487a(0x374)]['getChartModel'](_0x38c4b2);_0x2b37b9&&_0x1bb206['disposeWithMe'](_0x576058([_0x2b37b9[_0x4f487a(0x171)],_0x2b37b9[_0x4f487a(0x15a)],this[_0x4f487a(0x326)][_0x4f487a(0x3b1)]])[_0x4f487a(0x3bd)](([_0x5e6309,_0x2d0997,_0x2feecb])=>{_0x51af7c(_0x2b37b9['id'])(_0x2b37b9,_0x4ba5c4,_0x5e6309,_0x2feecb);}));});})),this[_0x53195d(0x143)](_0x576058([this[_0x53195d(0x124)][_0x53195d(0x1d7)]])['subscribe'](([_0x5bfbb6])=>{_0x5bfbb6['forEach'](_0x2ac80e=>{const _0x5c1e1d=_0x4e81;var _0x5aa099;let {drawingId:_0x3b7ebf}=_0x2ac80e;this[_0x5c1e1d(0x221)](_0x3b7ebf),((_0x5aa099=this['_chartModelService'][_0x5c1e1d(0x318)])==null?void 0x0:_0x5aa099['id'])===_0x3b7ebf&&this[_0x5c1e1d(0x374)][_0x5c1e1d(0x33e)](null),this[_0x5c1e1d(0x2c1)](_0x3b7ebf),this[_0x5c1e1d(0x24e)][_0x5c1e1d(0x1a8)](_0x3b7ebf),this[_0x5c1e1d(0x3c4)]['markHostNotReady'](_0x3b7ebf),this['_resetChartRuntimeZIndex'](_0x3b7ebf),this[_0x5c1e1d(0x1cc)](_0x3b7ebf),this[_0x5c1e1d(0x12f)][_0x5c1e1d(0x2cf)](_0x3b7ebf),this['_clearChartRuntimeCache'](_0x3b7ebf),this[_0x5c1e1d(0x149)]['delete'](_0x3b7ebf),this['_chartElementEditMode'][_0x5c1e1d(0x1a8)](_0x3b7ebf);});}));}[_0x43ae1d(0x2cb)](_0x26bd22,_0x8775c7){const _0x340959=_0x43ae1d;var _0x3d4086;_0x8775c7?this[_0x340959(0x25b)][_0x340959(0x174)](_0x26bd22,!0x0):this[_0x340959(0x25b)]['delete'](_0x26bd22),(_0x3d4086=this['_chartInstanceMap'][_0x340959(0x117)](_0x26bd22))==null||_0x3d4086['setElementEditMode'](_0x8775c7);}async[_0x43ae1d(0x1b9)](_0x24406e,_0x2b3690){const _0x170f05=_0x43ae1d;var _0xd217e0;let _0x59e1df=this[_0x170f05(0x149)]['get'](_0x24406e),_0x68011a=(_0xd217e0=this[_0x170f05(0x35d)][_0x170f05(0x17f)](_0x24406e))==null?void 0x0:_0xd217e0[_0x170f05(0x240)];if(_0x59e1df&&_0x68011a)return(await this[_0x170f05(0x2da)][_0x170f05(0x1b9)]({'chartId':_0x24406e,'config':_0x59e1df[_0x170f05(0x262)],'style':_0x59e1df[_0x170f05(0x280)],'width':_0x68011a['width'],'height':_0x68011a[_0x170f05(0x386)]},_0x2b3690))[_0x170f05(0x36e)];if((_0x2b3690==null?void 0x0:_0x2b3690[_0x170f05(0x3cb)])===_0x15339a[_0x170f05(0x31d)])return;let _0x41937a=this['_getCurrentSnapshotImage'](_0x24406e);return _0x41937a?_0x35915e(_0x41937a):void 0x0;}['on'](_0x2d5175,_0x3ac342,_0x114405){const _0x1bade1=_0x43ae1d;let _0x3fd55c=this[_0x1bade1(0x24e)][_0x1bade1(0x117)](_0x2d5175);_0x3fd55c||(_0x3fd55c=new Map(),this['_chartEventHandlers'][_0x1bade1(0x174)](_0x2d5175,_0x3fd55c));let _0x2e9f1f=_0x3fd55c[_0x1bade1(0x117)](_0x3ac342);_0x2e9f1f||(_0x2e9f1f=new Set(),_0x3fd55c[_0x1bade1(0x174)](_0x3ac342,_0x2e9f1f)),_0x2e9f1f[_0x1bade1(0x28e)](_0x114405);let _0x35ef52=this[_0x1bade1(0x1ef)]['get'](_0x2d5175);return _0x35ef52&&this[_0x1bade1(0x319)](_0x2d5175,_0x35ef52,_0x3ac342,_0x114405),{'dispose':()=>{const _0x115de2=_0x1bade1;var _0x32a6cf;(_0x32a6cf=this[_0x115de2(0x24e)][_0x115de2(0x117)](_0x2d5175))==null||(_0x32a6cf=_0x32a6cf['get'](_0x3ac342))==null||_0x32a6cf['delete'](_0x114405),this[_0x115de2(0x201)](_0x2d5175,_0x3ac342,_0x114405);}};}['_getCurrentSnapshotImage'](_0x136b46){const _0x47abf4=_0x43ae1d;let _0x2295d7=this[_0x47abf4(0x250)][_0x47abf4(0x18b)](_0x819f79['UNIVER_SHEET']),_0x3e0d4c=_0x2295d7==null?void 0x0:_0x2295d7[_0x47abf4(0x2e4)](),_0x22b270=_0x2295d7==null?void 0x0:_0x2295d7[_0x47abf4(0x17d)](),_0x146f36=_0x3e0d4c==null?void 0x0:_0x3e0d4c[_0x47abf4(0x133)]();if(!(!_0x22b270||!_0x146f36))return this[_0x47abf4(0x12f)][_0x47abf4(0x22d)]({'unitId':_0x22b270,'subUnitId':_0x146f36,'chartId':_0x136b46});}[_0x43ae1d(0x1b2)](_0x1aff97,_0x25e46b){const _0xa12561=_0x43ae1d;let _0x32a43c=this[_0xa12561(0x24e)][_0xa12561(0x117)](_0x1aff97);_0x32a43c&&_0x32a43c[_0xa12561(0x298)]((_0xd8ab3c,_0x1f4dd1)=>{const _0x49a7dc=_0xa12561;_0xd8ab3c[_0x49a7dc(0x298)](_0x3b5467=>this[_0x49a7dc(0x319)](_0x1aff97,_0x25e46b,_0x1f4dd1,_0x3b5467));});}[_0x43ae1d(0x319)](_0x1deff9,_0x504314,_0x4710df,_0x207ae9){const _0x55e7eb=_0x43ae1d;let _0x5874c4=this[_0x55e7eb(0x3c8)][_0x55e7eb(0x117)](_0x1deff9);_0x5874c4||(_0x5874c4=new Map(),this[_0x55e7eb(0x3c8)]['set'](_0x1deff9,_0x5874c4));let _0x1c0934=_0x5874c4[_0x55e7eb(0x117)](_0x4710df);_0x1c0934||(_0x1c0934=new Map(),_0x5874c4['set'](_0x4710df,_0x1c0934)),!_0x1c0934[_0x55e7eb(0x187)](_0x207ae9)&&_0x1c0934[_0x55e7eb(0x174)](_0x207ae9,_0x504314['on'](_0x4710df,_0x207ae9));}[_0x43ae1d(0x201)](_0x2fbeb4,_0x2716ce,_0x2d7b2c){const _0x84d71f=_0x43ae1d;var _0x4ba6f5,_0x4a2739;let _0x173ead=(_0x4ba6f5=this[_0x84d71f(0x3c8)][_0x84d71f(0x117)](_0x2fbeb4))==null?void 0x0:_0x4ba6f5['get'](_0x2716ce);_0x173ead==null||(_0x4a2739=_0x173ead[_0x84d71f(0x117)](_0x2d7b2c))==null||_0x4a2739[_0x84d71f(0x37b)](),_0x173ead==null||_0x173ead['delete'](_0x2d7b2c);}[_0x43ae1d(0x2c1)](_0x57f6c7){const _0x55c2bd=_0x43ae1d;let _0x56bef5=this[_0x55c2bd(0x3c8)]['get'](_0x57f6c7);_0x56bef5==null||_0x56bef5[_0x55c2bd(0x298)](_0x1fcb1c=>{const _0x2c38fa=_0x55c2bd;_0x1fcb1c[_0x2c38fa(0x298)](_0x18f940=>_0x18f940['dispose']()),_0x1fcb1c[_0x2c38fa(0x3c0)]();}),this[_0x55c2bd(0x3c8)]['delete'](_0x57f6c7);}[_0x43ae1d(0x320)](_0xf86a9c,_0x49f441){return Ci(_0xf86a9c,_0x49f441,this['_addWatermark']);}['checkChartCanRender'](_0x1e81c0){const _0x3401ca=_0x43ae1d;return this[_0x3401ca(0x215)](_0x1e81c0)==null;}[_0x43ae1d(0x215)](_0x52fd45){const _0x20f477=_0x43ae1d;var _0x5c86a3;let _0x40f0ab=this[_0x20f477(0x35d)]['getFloatDomInfo'](_0x52fd45);if(!_0x40f0ab)return _0x20f477(0x39c);let {subUnitId:_0x21a6fe}=_0x40f0ab,_0x4aa41c=(_0x5c86a3=this['_univerInstanceService'][_0x20f477(0x18b)](_0x819f79[_0x20f477(0x23d)]))==null?void 0x0:_0x5c86a3['getActiveSheet']();if(!_0x4aa41c)return'missing-active-sheet';if(_0x4aa41c[_0x20f477(0x133)]()!==_0x21a6fe)return _0x20f477(0x1ec);}async['render'](_0x4137e0,_0x3dd527,_0x34c3e5,_0x4b425e={}){const _0x13789b=_0x43ae1d;let _0x55444d=this[_0x13789b(0x2da)][_0x13789b(0x16e)](_0xeebfe1);if(!_0x55444d)return;let _0x3b0453=this[_0x13789b(0x149)][_0x13789b(0x117)](_0x4137e0);if(this['_lastRenderInputMap'][_0x13789b(0x174)](_0x4137e0,{'config':_0x3dd527,'style':_0x34c3e5}),this[_0x13789b(0x215)](_0x4137e0))return;let {canAnimate:_0x4e09ec,renderMode:_0x3d8424,shouldStartTransientAnimation:_0x750843,transientAnimationActive:_0x45155a}=this[_0x13789b(0x258)](_0x4137e0,_0x3b0453!=null,_0x4b425e['animateDataUpdate']===!0x0);if(_0x3d8424===_0x699515['Image'])this[_0x13789b(0x348)](_0x4137e0);else{var _0x2f99b4;this['_chartHostProvider']['invalidateSnapshot'](_0x4137e0),((_0x2f99b4=this['_chartModelService'][_0x13789b(0x318)])==null?void 0x0:_0x2f99b4['id'])===_0x4137e0&&this[_0x13789b(0x244)](_0x4137e0);}let _0x38384e=_0x3d8424===_0x699515[_0x13789b(0x20a)]?_0x699515[_0x13789b(0x20a)]:_0x699515[_0x13789b(0x2fd)],_0x10fcf3=await this[_0x13789b(0x3c4)][_0x13789b(0x37f)](_0x4137e0,_0x38384e);if(!_0x10fcf3){_0x750843&&this['_deactivateDataUpdateAnimation'](_0x4137e0);return;}this[_0x13789b(0x3c4)][_0x13789b(0x27d)](_0x4137e0,_0x45155a?_0x1ecc9:null);let _0x195d46=this[_0x13789b(0x31b)](_0x4137e0,_0x38384e,_0x55444d);_0x195d46[_0x13789b(0x2f6)](_0x10fcf3);try{let _0x218cd7={'chartId':_0x4137e0,'config':_0x3dd527,'style':_0x34c3e5};_0x4e09ec&&_0x3b0453&&_0x195d46[_0x13789b(0x1b6)]?await _0x195d46[_0x13789b(0x1b6)]({'chartId':_0x4137e0,'config':_0x3b0453[_0x13789b(0x262)],'style':_0x3b0453[_0x13789b(0x280)]},_0x218cd7,{'duration':_0x1ecc9}):await _0x195d46[_0x13789b(0x3cd)](_0x218cd7),await this['_cacheActiveDomChartSnapshot'](_0x4137e0,_0x3d8424,_0x195d46),_0x4e09ec&&_0x45155a&&this[_0x13789b(0x1d4)](_0x4137e0);}catch(_0x46c4a8){if(_0x750843&&this['_deactivateDataUpdateAnimation'](_0x4137e0),_0x3d8424!==_0x699515[_0x13789b(0x20a)])throw _0x46c4a8;}}async[_0x43ae1d(0x2ad)](_0x38070d,_0x402f69,_0x47f10c){const _0x6afbc6=_0x43ae1d;var _0xc0156a;if(_0x402f69!==_0x699515[_0x6afbc6(0x2fd)]||((_0xc0156a=this[_0x6afbc6(0x374)][_0x6afbc6(0x318)])==null?void 0x0:_0xc0156a['id'])!==_0x38070d)return;let _0x3a2e29=await this[_0x6afbc6(0x3c4)][_0x6afbc6(0x37f)](_0x38070d,_0x699515[_0x6afbc6(0x20a)]);if(!_0x3a2e29)return;let _0x2f4c9d=_0x3a2e29[_0x6afbc6(0x296)]();try{let _0x268822=await _0x47f10c[_0x6afbc6(0x21d)]();_0x268822&&_0x3a2e29[_0x6afbc6(0x375)]({'type':_0x535f28['Url'],'url':_0x268822},_0x2f4c9d)&&_0x3a2e29[_0x6afbc6(0x395)]();}catch{}}['_prepareDataUpdateRender'](_0x4a85f0,_0x1301bc,_0x57ae59){const _0x728624=_0x43ae1d;let _0x5a53f3=this[_0x728624(0x2e9)](_0x4a85f0),_0xe7c019=_0x5a53f3===_0x699515['Dom']&&_0x57ae59&&_0x1301bc&&this[_0x728624(0x3b9)](_0x4a85f0),_0x4990a2=this[_0x728624(0x1f9)][_0x728624(0x187)](_0x4a85f0);return{'canAnimate':_0xe7c019,'renderMode':_0x4990a2?_0x699515[_0x728624(0x2fd)]:_0x5a53f3,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0x4990a2};}[_0x43ae1d(0x3b9)](_0x30d29a){const _0x486cff=_0x43ae1d;var _0x50966e,_0x1f8724,_0x40b89e,_0x49616b;if(typeof document>'u'||typeof window>'u'||document[_0x486cff(0x15d)]===_0x486cff(0x1ee)||(_0x50966e=(_0x1f8724=window)[_0x486cff(0x19c)])!=null&&(_0x50966e=_0x50966e[_0x486cff(0x368)](_0x1f8724,_0x486cff(0x2f0)))!=null&&_0x50966e[_0x486cff(0x223)]||(_0x40b89e=(_0x49616b=window)[_0x486cff(0x19c)])!=null&&(_0x40b89e=_0x40b89e[_0x486cff(0x368)](_0x49616b,'print'))!=null&&_0x40b89e[_0x486cff(0x223)])return!0x1;let _0x560384=this[_0x486cff(0x3c4)][_0x486cff(0x14d)](_0x30d29a);return _0x560384!=null&&_0x560384[_0x486cff(0x387)]>0x0&&_0x560384['height']>0x0&&_0x560384['right']>0x0&&_0x560384[_0x486cff(0x209)]>0x0&&_0x560384['left']<window[_0x486cff(0x361)]&&_0x560384[_0x486cff(0x271)]<window[_0x486cff(0x28b)];}[_0x43ae1d(0x243)](_0x26e94b){const _0x467aec=_0x43ae1d;let _0x3824a7=this[_0x467aec(0x32b)][_0x467aec(0x117)](_0x26e94b);_0x3824a7&&(clearTimeout(_0x3824a7),this[_0x467aec(0x32b)]['delete'](_0x26e94b)),this['_dataUpdateAnimationChartIds'][_0x467aec(0x28e)](_0x26e94b),this[_0x467aec(0x3c4)][_0x467aec(0x27d)](_0x26e94b,_0x1ecc9);}['_scheduleDataUpdateAnimationEnd'](_0x1c2dd5){const _0x8ac2ad=_0x43ae1d;let _0x358c5b=this[_0x8ac2ad(0x32b)][_0x8ac2ad(0x117)](_0x1c2dd5);_0x358c5b&&clearTimeout(_0x358c5b);let _0x38ed7b=setTimeout(()=>{const _0x492367=_0x8ac2ad;this[_0x492367(0x32b)]['delete'](_0x1c2dd5),this[_0x492367(0x1f9)][_0x492367(0x1a8)](_0x1c2dd5)&&(this[_0x492367(0x3c4)][_0x492367(0x27d)](_0x1c2dd5,null),this[_0x492367(0x348)](_0x1c2dd5),this['_rerenderLatest'](_0x1c2dd5));},_0x1ecc9);this[_0x8ac2ad(0x32b)][_0x8ac2ad(0x174)](_0x1c2dd5,_0x38ed7b);}[_0x43ae1d(0x3d6)](_0x14b2df){const _0x3e7f4b=_0x43ae1d;let _0x324931=this[_0x3e7f4b(0x32b)][_0x3e7f4b(0x117)](_0x14b2df);_0x324931&&(clearTimeout(_0x324931),this[_0x3e7f4b(0x32b)][_0x3e7f4b(0x1a8)](_0x14b2df)),this[_0x3e7f4b(0x1f9)]['delete'](_0x14b2df),this['_chartHostProvider'][_0x3e7f4b(0x27d)](_0x14b2df,null);}async[_0x43ae1d(0x2eb)](_0x29bcc7,_0x5e10de,_0x1bee59){const _0x1e4e62=_0x43ae1d;let _0x5da723=this['_drawingManagerService'][_0x1e4e62(0x29d)](_0x29bcc7,_0x5e10de),_0x30673a=this[_0x1e4e62(0x124)][_0x1e4e62(0x172)](_0x29bcc7,_0x5e10de),_0x2efe80=Object['values'](_0x5da723??{})[_0x1e4e62(0x29b)](_0x5a97c4=>_0x5a97c4[_0x1e4e62(0x30d)]===_0x473930['DRAWING_CHART']&&_0x5a97c4[_0x1e4e62(0x1ee)]!==!0x0);await Promise[_0x1e4e62(0x245)](_0x2efe80[_0x1e4e62(0x2ce)](async _0x2afb41=>{const _0x1134de=_0x1e4e62;let _0x42f512=await this[_0x1134de(0x1ab)](_0x2afb41,_0x30673a);_0x42f512&&(_0x1bee59[_0x1134de(0x275)](_0x42f512,_0x371881),_0x2afb41['groupId']&&_0x1c1062({'drawingId':_0x2afb41[_0x1134de(0x32e)],'unitId':_0x29bcc7,'subUnitId':_0x5e10de},_0x42f512,_0x1bee59,this[_0x1134de(0x124)]));}));}async[_0x43ae1d(0x1ab)](_0x190a5b,_0x4d9d80){const _0x930439=_0x43ae1d;let _0x42b181=this[_0x930439(0x374)][_0x930439(0x213)](_0x190a5b[_0x930439(0x26e)]),_0xc0ed80=this[_0x930439(0x2da)]['getRenderModel'](_0xeebfe1),_0x2ed2b2=_0x190a5b[_0x930439(0x1d9)],_0x21f642=_0x42b181==null?void 0x0:_0x42b181[_0x930439(0x262)];if(!_0x42b181||!_0xc0ed80||!_0x2ed2b2||!_0x21f642||_0x2ed2b2['width']==null||_0x2ed2b2['height']==null)return null;let _0x2e19f7=new Si(_0x190a5b[_0x930439(0x26e)],{'width':_0x2ed2b2[_0x930439(0x387)],'height':_0x2ed2b2[_0x930439(0x386)]}),_0x919a42=_0xc0ed80[_0x930439(0x2b9)](_0x699515[_0x930439(0x20a)],this[_0x930439(0x212)]());_0x919a42[_0x930439(0x2f6)](_0x2e19f7);let _0x37dbc1;try{await _0x919a42[_0x930439(0x3cd)]({'chartId':_0x190a5b[_0x930439(0x26e)],'config':_0x21f642,'style':this[_0x930439(0x320)](_0x42b181,this[_0x930439(0x326)][_0x930439(0x16c)]())});}catch(_0x3ab336){console[_0x930439(0x1a6)](_0x930439(0x259),_0x3ab336);}finally{_0x37dbc1=_0x2e19f7['takeSnapshot'](),_0x919a42['dispose'](),_0x2e19f7[_0x930439(0x37b)]();}let _0x15de34=this['_chartSnapshotStoreService'][_0x930439(0x22d)]({'unitId':_0x190a5b['unitId'],'subUnitId':_0x190a5b[_0x930439(0x2d0)],'chartId':_0x190a5b[_0x930439(0x26e)]}),_0x48225e=_0x37dbc1??_0x15de34;if(!_0x48225e)return null;let _0x2f8e5c=_0x4d9d80[_0x930439(0x29a)](_0x190a5b['drawingId']);return new ci(_0x2b4663(_0x190a5b),{..._0x2ed2b2,..._0x448a37,...vi(_0x2e19f7[_0x930439(0x280)]),'visible':!0x0,'zIndex':_0x2f8e5c===-0x1?Math[_0x930439(0x1c1)](_0x4d9d80[_0x930439(0x1c5)]-0x1,0x0):_0x2f8e5c},()=>_0x48225e,void 0x0,_0x37dbc1?()=>K(_0x37dbc1):void 0x0);}[_0x43ae1d(0x31b)](_0x31c88d,_0x16a21b,_0x333e2f){const _0x4a6709=_0x43ae1d;let _0xea0fb7=this['_chartInstanceMap'][_0x4a6709(0x117)](_0x31c88d);if((_0xea0fb7==null?void 0x0:_0xea0fb7['mode'])===_0x16a21b)return _0xea0fb7;_0xea0fb7&&(this[_0x4a6709(0x2c1)](_0x31c88d),_0xea0fb7[_0x4a6709(0x37b)](),this['_chartInstanceMap'][_0x4a6709(0x1a8)](_0x31c88d));let _0x5e1b40=_0x333e2f[_0x4a6709(0x2b9)](_0x16a21b,this[_0x4a6709(0x212)]());return this['_chartInstanceMap'][_0x4a6709(0x174)](_0x31c88d,_0x5e1b40),_0x5e1b40['setElementEditMode'](this[_0x4a6709(0x25b)][_0x4a6709(0x117)](_0x31c88d)===!0x0),this['_bindChartEventHandlers'](_0x31c88d,_0x5e1b40),_0x5e1b40;}[_0x43ae1d(0x212)](){const _0x31d824=_0x43ae1d;return{'resolveHostStyle':({style:_0x227fc1})=>_0x2acefd({'style':_0x227fc1,'getRenderColor':_0x142fcb=>this[_0x31d824(0x139)][_0x31d824(0x3c5)](_0x142fcb)}),'resolveRenderBackgroundColor':({style:_0x492c67})=>this[_0x31d824(0x139)][_0x31d824(0x3c5)](_0x497a66(_0x492c67))};}['_disposeChartChangeListeners'](_0x2fe889){const _0x4f1b72=_0x43ae1d;var _0x44c6e9,_0x6049ea,_0x382e30;(_0x44c6e9=this['_chartChangeSubscriptions'][_0x4f1b72(0x117)](_0x2fe889))==null||_0x44c6e9[_0x4f1b72(0x37b)](),this[_0x4f1b72(0x1fb)][_0x4f1b72(0x1a8)](_0x2fe889),(_0x6049ea=this[_0x4f1b72(0x257)][_0x4f1b72(0x117)](_0x2fe889))==null||_0x6049ea['cancel'](),this[_0x4f1b72(0x257)][_0x4f1b72(0x1a8)](_0x2fe889),(_0x382e30=this[_0x4f1b72(0x225)]['get'](_0x2fe889))==null||_0x382e30[_0x4f1b72(0x274)](),this['_debounceHandleMap']['delete'](_0x2fe889);}[_0x43ae1d(0x287)](){const _0x38a31c=_0x43ae1d;this[_0x38a31c(0x257)][_0x38a31c(0x298)](_0x5ed93d=>_0x5ed93d[_0x38a31c(0x274)]()),this['_renderDebounceMap'][_0x38a31c(0x3c0)](),this['_debounceHandleMap'][_0x38a31c(0x298)](_0x59b8df=>_0x59b8df[_0x38a31c(0x274)]()),this['_debounceHandleMap'][_0x38a31c(0x3c0)]();}[_0x43ae1d(0x37b)](){const _0x458fe9=_0x43ae1d;this[_0x458fe9(0x1fb)][_0x458fe9(0x298)](_0x1e44b2=>_0x1e44b2[_0x458fe9(0x37b)]()),this['_chartChangeSubscriptions']['clear'](),this[_0x458fe9(0x32b)][_0x458fe9(0x298)](_0x5bc465=>clearTimeout(_0x5bc465)),this[_0x458fe9(0x32b)][_0x458fe9(0x3c0)](),this[_0x458fe9(0x1f9)][_0x458fe9(0x3c0)](),Array[_0x458fe9(0x28d)](this[_0x458fe9(0x1ef)]['keys']())[_0x458fe9(0x298)](_0x59e9de=>this[_0x458fe9(0x1cc)](_0x59e9de)),this[_0x458fe9(0x25b)][_0x458fe9(0x3c0)](),this[_0x458fe9(0x287)](),this[_0x458fe9(0x149)][_0x458fe9(0x3c0)](),this['_activeChartId']=null,this[_0x458fe9(0x2f7)]=null,super[_0x458fe9(0x37b)]();}};Y=J([q(0x0,bi),q(0x1,_0x44acc1(_0x53eb3b)),q(0x2,_0x44acc1(_0x595f50)),q(0x3,_0x27cbdb),q(0x4,_0x3ff803),q(0x5,_0x44acc1(_0x21bbf8)),q(0x6,_0x44acc1(_0x3df75b)),q(0x7,_0x44acc1(_0x3a74b5)),q(0x8,_0x44acc1(_0x17a071)),q(0x9,_0x44acc1(_0x86ad9e)),q(0xa,_0x1f3f65),q(0xb,_0x44acc1(fi)),q(0xc,_0x177621)],Y);const X=_0x199261(_0x43ae1d(0x3d3));let wi=class extends _0x78f7fa{constructor(_0x615585,_0x367510,_0x2f61ab,_0x13a7f5,_0x320841){const _0x526e3f=_0x43ae1d;super(_0x320841),this[_0x526e3f(0x374)]=_0x615585,this[_0x526e3f(0x37a)]=_0x367510,this['_commandService']=_0x2f61ab,this[_0x526e3f(0x250)]=_0x13a7f5,G(this,_0x526e3f(0x369),!0x1),G(this,'_chartEditorOpen$',new _0x217544(!0x1)),G(this,'_panelRoute$',new _0x217544(null)),G(this,_0x526e3f(0x248),this[_0x526e3f(0x253)][_0x526e3f(0x36c)]()),G(this,_0x526e3f(0x1a5),this[_0x526e3f(0x21f)][_0x526e3f(0x36c)]());}get[_0x43ae1d(0x38c)](){const _0x3a2946=_0x43ae1d;return this[_0x3a2946(0x374)][_0x3a2946(0x318)]??null;}get[_0x43ae1d(0x2b8)](){const _0xec1e65=_0x43ae1d;return this['_chartEditorOpen$'][_0xec1e65(0x2b6)]();}get[_0x43ae1d(0x1c3)](){const _0x1bf0ed=_0x43ae1d;return this[_0x1bf0ed(0x369)];}[_0x43ae1d(0x20c)](_0x34adc3){this['_rangeSelectMode']=_0x34adc3;}[_0x43ae1d(0x16f)](_0x4527ca){const _0x33b5a0=_0x43ae1d;this[_0x33b5a0(0x253)][_0x33b5a0(0x2b6)]()!==_0x4527ca&&this[_0x33b5a0(0x253)]['next'](_0x4527ca);}[_0x43ae1d(0x2e1)](_0x1c6734){const _0x5d0a97=_0x43ae1d;var _0x1a595a;return this[_0x5d0a97(0x2b8)]&&((_0x1a595a=this[_0x5d0a97(0x374)]['activeChartModel'])==null?void 0x0:_0x1a595a['id'])===_0x1c6734;}[_0x43ae1d(0x255)](_0x2d2792,_0xed9153){const _0x521794=_0x43ae1d;this[_0x521794(0x21f)][_0x521794(0x162)]({'chartId':_0x2d2792,'route':_0xed9153});}[_0x43ae1d(0x352)](){const _0x18fc4d=_0x43ae1d;this[_0x18fc4d(0x21f)][_0x18fc4d(0x162)](null);}[_0x43ae1d(0x2bf)](_0x416ea7){const _0x2e8842=_0x43ae1d;let _0x5a770b=this[_0x2e8842(0x374)][_0x2e8842(0x318)];_0x5a770b&&this['_executeChartUpdateSourceConfig']({'chartModelId':_0x5a770b['id'],'range':_0x416ea7});}[_0x43ae1d(0x1b3)](_0x1c5a71){const _0x50cb70=_0x43ae1d;let _0x1d0ab5=this['_chartModelService'][_0x50cb70(0x318)];if(!_0x1d0ab5)return;let _0x551b44=this[_0x50cb70(0x37a)][_0x50cb70(0x1bc)](_0x1d0ab5['id']);if(!_0x551b44||Array['isArray'](_0x551b44))return;let _0x44c8a4={..._0x551b44,'isRowDirection':_0x1c5a71===_0x10ef62[_0x50cb70(0x1bf)]};this[_0x50cb70(0x177)]({'chartModelId':_0x1d0ab5['id'],'range':_0x44c8a4});}[_0x43ae1d(0x366)](_0x32c181){const _0xb20f9d=_0x43ae1d;var _0x5aabe8;this[_0xb20f9d(0x2af)]['executeCommand'](_0xb1f4b6['id'],{..._0x32c181,'unitId':((_0x5aabe8=this[_0xb20f9d(0x250)][_0xb20f9d(0x218)]())==null?void 0x0:_0x5aabe8[_0xb20f9d(0x17d)]())??''});}[_0x43ae1d(0x177)](_0xcfc9e2){const _0xa2c34=_0x43ae1d;var _0x1c8727;this[_0xa2c34(0x2af)][_0xa2c34(0x132)](_0x31550b['id'],{..._0xcfc9e2,'unitId':((_0x1c8727=this['_univerInstanceService'][_0xa2c34(0x218)]())==null?void 0x0:_0x1c8727[_0xa2c34(0x17d)]())??''});}['dispose'](){const _0x5a9683=_0x43ae1d;this[_0x5a9683(0x253)][_0x5a9683(0x1f1)](),this['_panelRoute$']['complete'](),super[_0x5a9683(0x37b)]();}};wi=J([q(0x0,_0x44acc1(_0x595f50)),q(0x1,_0x44acc1(_0x41220f)),q(0x2,_0x54b7b3),q(0x3,_0x3ff803),q(0x4,_0x44acc1(_0x41522e))],wi);var Ti;const Ei={'axis':{..._0x351002,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x47aef4,'heatmap':_0x52e881,'indicatorLine':_0x1a7ff3,'legend':_0x4bf079,'lineAndArea':_0x2c5fe6,'pareto':_0x37d5e7,'pie':_0x342796,'relation':{..._0x20ee59,'useValueAsSymbolSize':!0x0},'radar':_0x296f34,'series':{..._0x57dbac,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Ti=_0x1f058e[_0x43ae1d(0x2a7)])==null?void 0x0:Ti[_0x43ae1d(0x147)])??!0x1}},'style':_0x4be417,'titles':_0x5759a5,'trendline':_0x31a9c4,'waterfall':{..._0x1fe1d9,'useSubtotal':!0x0},'waterfallStyle':_0x5f0535,'wordCloud':_0x138892},Di=_0x2ce56e=>_0x2ce56e[_0x43ae1d(0x18b)](_0x819f79[_0x43ae1d(0x23d)])[_0x43ae1d(0x17d)](),Oi=_0xca841=>{const _0x29d872=_0x43ae1d;var _0x35ca98;return(_0x35ca98=_0xca841[_0x29d872(0x18b)](_0x819f79['UNIVER_SHEET'])[_0x29d872(0x2e4)]())==null?void 0x0:_0x35ca98['getSheetId']();},ki=[_0x16f780['Line'],_0x16f780[_0x43ae1d(0x2f5)],_0x16f780[_0x43ae1d(0x23a)],_0x16f780['Scatter'],_0x16f780[_0x43ae1d(0x362)],_0x16f780[_0x43ae1d(0x31f)],_0x16f780[_0x43ae1d(0x2bd)],_0x16f780[_0x43ae1d(0x303)],_0x16f780[_0x43ae1d(0x2c5)],_0x16f780[_0x43ae1d(0x38d)],_0x16f780['Histogram'],_0x16f780[_0x43ae1d(0x2c0)],_0x16f780[_0x43ae1d(0x34b)],_0x16f780[_0x43ae1d(0x364)],_0x16f780[_0x43ae1d(0x2a5)]];function Ai(){const _0x5d374f=_0x43ae1d;let _0x165bb5=_0xa3e76a();return _0x5f4f07(_0x5523f3,{'visible':ki['every'](_0x7f82ae=>!_0x71cbfa[_0x5d374f(0x2c6)](_0x165bb5,_0x7f82ae))});}const ji=_0x33c8bb=>{const _0x4081d4=_0x43ae1d;var _0x4eea0a;let _0x158efe=_0x264eea(X),_0x5168f0=_0x264eea(_0x595f50),_0x3843cc=_0x264eea(_0x3df75b),_0x2f5931=_0x346aab(_0x264eea(_0x3a74b5)),_0x4e0db1=_0x5213fb(()=>_0x5947b5(Gr(Ur['concat'](),_0x2f5931)[_0x4081d4(0x2ce)](_0x2617a5=>({'id':_0x2617a5['id'],'label':_0x3843cc['t'](_0x4081d4(0x2fe)+_0x2617a5[_0x4081d4(0x232)]),'pieSecondaryPlotType':_0x2617a5[_0x4081d4(0x3d7)],'value':_0x2617a5[_0x4081d4(0x17e)]}))),[_0x2f5931,_0x3843cc]),_0x24ddd8=_0x3802ad(_0x5168f0[_0x4081d4(0x3d5)],_0x5168f0[_0x4081d4(0x318)]),_0x241d5d=_0x3802ad(_0x24ddd8==null?void 0x0:_0x24ddd8[_0x4081d4(0x22b)],_0x24ddd8==null?void 0x0:_0x24ddd8[_0x4081d4(0x144)]),_0x5cda16=_0x3802ad(_0x241d5d==null?void 0x0:_0x241d5d['rangeInfo$'],_0x241d5d==null?void 0x0:_0x241d5d[_0x4081d4(0x11c)]()),_0x57433c=Array[_0x4081d4(0x34e)](_0x5cda16),_0x54a1a8=_0x5cda16&&!_0x57433c&&_0x5cda16[_0x4081d4(0x269)]?_0x10ef62['Row']:_0x10ef62[_0x4081d4(0x29c)],_0x59dcdc=_0x57433c?(_0x4eea0a=_0x5cda16[0x0])==null?void 0x0:_0x4eea0a['range']:_0x5cda16==null?void 0x0:_0x5cda16[_0x4081d4(0x1b0)];return _0x44cbe2(_0x4081d4(0x2b1),{'className':_0x4081d4(0x170),'children':[_0x5f4f07(_0xefb803,{'options':_0x4e0db1}),_0x5f4f07(_0x4d9744,{}),_0x5f4f07(_0x4354e4,{}),_0x5f4f07(Ai,{}),_0x5f4f07(_0xf847d1,{}),_0x5f4f07(Mi,{'dataRange':_0x5cda16,'primaryRange':_0x59dcdc}),_0x5f4f07(_0x1c7d9a,{'categoryToggleLabel':_0x3843cc['t']('sheets-chart-ui.common.useAsCategoryLabels',_0x54a1a8===_0x10ef62[_0x4081d4(0x1bf)]?_0x54a1a8+'\x20'+(((_0x59dcdc==null?void 0x0:_0x59dcdc[_0x4081d4(0x33a)][_0x4081d4(0x182)])??0x0)+0x1):_0x54a1a8+'\x20'+_0x317bd4((_0x59dcdc==null?void 0x0:_0x59dcdc[_0x4081d4(0x33a)][_0x4081d4(0x281)])??0x0)),'orientationControl':_0x57433c?void 0x0:_0x5f4f07(_0x215329,{'size':_0x4081d4(0x154),'onClick':()=>_0x158efe[_0x4081d4(0x1b3)](_0x54a1a8===_0x10ef62[_0x4081d4(0x1bf)]?_0x10ef62[_0x4081d4(0x29c)]:_0x10ef62[_0x4081d4(0x1bf)]),'children':_0x3843cc['t'](_0x4081d4(0x1b5))})}),_0x5f4f07(_0x5e1a24,{}),_0x5f4f07(_0x386208,{'defaultValues':_0x33c8bb['defaultValues'][_0x4081d4(0x22f)]})]});};function Mi(_0x269ad0){const _0x327699=_0x43ae1d;let {dataRange:_0x4763c5,primaryRange:_0x3af4b9}=_0x269ad0,_0x92c7e5=_0x264eea(X),_0x22e8b3=_0x264eea(_0x3df75b),_0x4fa4c9=_0x264eea(_0x3ff803),_0x114184=_0x264eea(_0x5b7fbe),[_0x434261,_0x48f645]=_0xa10a8(!0x1),[_0x35916c,_0x38107e]=_0xa10a8(!0x1),[_0x3b670a,_0x24b0c5]=_0xa10a8(),_0x177612=Di(_0x4fa4c9),_0x1d84c0=Oi(_0x4fa4c9),_0x59c3dd=_0x4763c5?Vr(_0x4763c5,_0x4fa4c9):'',_0x5b27e7=_0x35f672(_0x59c3dd),_0x56cf58=_0x35f672(void 0x0),_0x4fbd50=_0x35f672(null);_0x1bfc43(()=>{const _0x1f0f48=_0x4e81;_0x92c7e5[_0x1f0f48(0x20c)](_0x434261),_0x114184[_0x1f0f48(0x1a2)](_0x47ca4b,_0x434261);},[_0x114184,_0x434261,_0x92c7e5]),_0x1bfc43(()=>()=>{const _0x12ba5a=_0x4e81;_0x92c7e5[_0x12ba5a(0x20c)](!0x1),_0x114184['setContextValue'](_0x47ca4b,!0x1);},[_0x114184,_0x92c7e5]);let _0x1c7dfd=_0x23e1e1(_0xe0b30f=>{const _0x9254a0=_0x4e81;var _0x736218;if(Vr(_0x4763c5,_0x4fa4c9)===_0xe0b30f)return _0x24b0c5(void 0x0),!0x0;let _0x300be0=_0xe0b30f[_0x9254a0(0x13a)](_0x42b2c3[_0x9254a0(0x2ba)]);if(!_0xe0b30f[_0x9254a0(0x12d)]()||_0x300be0[_0x9254a0(0x1c5)]!==0x1||!((_0x736218=_0x4fbd50[_0x9254a0(0x39d)])!=null&&_0x736218[_0x9254a0(0x33b)]()))return _0x24b0c5(_0x22e8b3['t'](_0x9254a0(0x354))),!0x1;let {unitId:_0x2a5b72,sheetName:_0xd13a7d,range:_0x5b9218}=_0x2b576a(_0x300be0[0x0]),_0x4c9665=_0x2a5b72||_0x177612,_0x42d8aa=_0x4fa4c9[_0x9254a0(0x285)](_0x4c9665),_0x55ccde=(_0x3af4b9==null?void 0x0:_0x3af4b9[_0x9254a0(0x2ea)])===_0x4c9665?_0x3af4b9['subUnitId']:_0x1d84c0,_0x44a61e=_0xd13a7d?_0x42d8aa==null?void 0x0:_0x42d8aa[_0x9254a0(0x21a)](_0xd13a7d):_0x42d8aa==null?void 0x0:_0x42d8aa[_0x9254a0(0x1ca)](_0x55ccde??'');return!_0x42d8aa||!_0x44a61e||!_0x5d14ea(_0x5b9218,_0x44a61e)?(_0x24b0c5(_0x22e8b3['t'](_0x9254a0(0x354))),!0x1):(_0x24b0c5(void 0x0),_0x92c7e5[_0x9254a0(0x2bf)]({'rangeInfo':{'range':_0x5b9218,'unitId':_0x4c9665,'subUnitId':_0x44a61e[_0x9254a0(0x133)]()}}),!0x0);},[_0x4763c5,_0x22e8b3,_0x3af4b9,_0x92c7e5,_0x1d84c0,_0x177612,_0x4fa4c9]),_0x8ab6f0=_0x5213fb(()=>({'keyCodes':[{'keyCode':_0x597b83[_0x327699(0x2d4)],'nativeTextEditorBehavior':_0xc6c06e[_0x327699(0x169)]}],'handler':_0x18d3c9=>{const _0x52ace0=_0x327699;_0x18d3c9===_0x597b83[_0x52ace0(0x2d4)]&&_0x1c7dfd(_0x5b27e7[_0x52ace0(0x39d)])&&(_0x56cf58[_0x52ace0(0x39d)]=_0x5b27e7[_0x52ace0(0x39d)]);}}),[_0x1c7dfd]);return _0x5f4f07('div',{'className':_0x327699(0x1d1),'children':_0x44cbe2(_0x327699(0x2b1),{'children':[_0x5f4f07(_0x1a0262,{'title':_0x22e8b3['t']('sheets-chart-ui.common.dataRange')}),_0x5f4f07(_0x2e42ae,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x177612,'subUnitId':_0x1d84c0,'initialValue':_0x59c3dd,'keyboardEventConfig':_0x8ab6f0,'selectorRef':_0x4fbd50,'onChange':(_0xa4d745,_0x497567)=>{const _0xb84d0b=_0x327699;_0x5b27e7['current']=_0x497567,_0x35916c&&_0x56cf58[_0xb84d0b(0x39d)]!==_0x497567&&_0x1c7dfd(_0x497567)&&(_0x56cf58['current']=_0x497567);},'onFocusChange':(_0x2f40b5,_0x1f4ce1)=>{const _0x5bc66b=_0x327699;if(_0x1f4ce1!==void 0x0&&(_0x5b27e7[_0x5bc66b(0x39d)]=_0x1f4ce1),_0x35916c||_0x48f645(_0x2f40b5),_0x2f40b5)_0x56cf58[_0x5bc66b(0x39d)]=_0x5b27e7[_0x5bc66b(0x39d)];else{let _0x307eaa=_0x56cf58[_0x5bc66b(0x39d)];_0x56cf58[_0x5bc66b(0x39d)]=void 0x0,_0x307eaa!==void 0x0&&_0x5b27e7[_0x5bc66b(0x39d)]!==_0x307eaa&&_0x1c7dfd(_0x5b27e7[_0x5bc66b(0x39d)]);}},'onRangeSelectorDialogVisibleChange':_0x562ab5=>{_0x38107e(_0x562ab5),_0x48f645(_0x562ab5);}}),_0x3b670a?_0x5f4f07(_0x327699(0x2b1),{'className':_0x327699(0x330),'children':_0x3b670a}):null]})});}function Z(_0x512731){const _0x1fd4a5=_0x43ae1d;return _0x44cbe2(_0x229f4c,{'id':_0x512731['id'],'children':[_0x5f4f07(_0x57e444,{'children':_0x512731[_0x1fd4a5(0x189)]}),_0x5f4f07(_0x357788,{'children':_0x512731[_0x1fd4a5(0x1dc)]})]});}const Ni=_0x1597c0=>{const _0x31fb35=_0x43ae1d;let _0x4709b3=_0x264eea(_0x3df75b),_0x41fa55=_0x264eea(X),_0x1c66e2=_0x264eea(_0x595f50),_0x570454=_0x3802ad(_0x1c66e2['activeChartModel$'],_0x1c66e2['activeChartModel']),_0x905026=_0x3802ad(_0x41fa55[_0x31fb35(0x1a5)],null),_0x356559=_0x905026&&_0x905026[_0x31fb35(0x3a8)]===(_0x570454==null?void 0x0:_0x570454['id'])?_0x905026[_0x31fb35(0x1de)]:null,_0x260507=_0xa3e76a(),_0x4d5fd4=_0x30c67c(),[_0x27461e,_0x5c498a]=_0xa10a8(null);_0x1bfc43(()=>{const _0x5cefcc=_0x31fb35;_0x356559!=null&&_0x356559[_0x5cefcc(0x282)]&&_0x5c498a(_0x356559[_0x5cefcc(0x282)]);},[_0x356559]);let _0x267a97=_0x71cbfa[_0x31fb35(0x2c6)](_0x260507,_0x16f780[_0x31fb35(0x19a)]),_0x4ff900=_0x260507===_0x16f780[_0x31fb35(0x2f5)],_0x5e7a26=_0x260507===_0x16f780[_0x31fb35(0x23a)],_0x182e80=_0x260507===_0x16f780[_0x31fb35(0x362)],_0x76890c=_0x71cbfa['baseOn'](_0x260507,_0x16f780[_0x31fb35(0x2bb)]),_0x18e507=_0x260507===_0x16f780[_0x31fb35(0x31f)],_0x3a9906=_0x260507===_0x16f780[_0x31fb35(0x27b)],_0x41e6a2=_0x260507===_0x16f780[_0x31fb35(0x20f)],_0x4059c0=_0x260507===_0x16f780[_0x31fb35(0x303)],_0x34863a,_0x306242;switch(_0x260507){case _0x16f780[_0x31fb35(0x38d)]:_0x34863a=_0x42aa09[_0x31fb35(0x38d)],_0x306242=_0x4709b3['t'](_0x31fb35(0x2f1));break;case _0x16f780[_0x31fb35(0x2db)]:_0x34863a=_0x42aa09['Histogram'],_0x306242=_0x4709b3['t'](_0x31fb35(0x359));break;case _0x16f780['Treemap']:_0x34863a=_0x42aa09[_0x31fb35(0x2c0)],_0x306242=_0x4709b3['t'](_0x31fb35(0x2ae));break;case _0x16f780[_0x31fb35(0x34b)]:_0x34863a=_0x42aa09[_0x31fb35(0x34b)],_0x306242=_0x4709b3['t'](_0x31fb35(0x3d4));break;case _0x16f780[_0x31fb35(0x364)]:_0x34863a=_0x42aa09[_0x31fb35(0x364)],_0x306242=_0x4709b3['t'](_0x31fb35(0x242));break;case _0x16f780[_0x31fb35(0x2a5)]:_0x34863a=_0x42aa09[_0x31fb35(0x2a5)],_0x306242=_0x4709b3['t'](_0x31fb35(0x2c8));break;}let _0x2bb840=_0x33e81d(_0x260507,_0x23e5ef[_0x31fb35(0x1fa)])&&!_0x76890c&&!_0x41e6a2;return _0x44cbe2(_0x115b7e,{'value':_0x27461e,'onChange':_0x5c498a,'children':[_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x26f)],'label':_0x4709b3['t'](_0x31fb35(0x236)),'children':_0x5f4f07(_0x488152,{'defaultValues':_0x1597c0[_0x31fb35(0x350)]['style']})}),_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x278)],'label':_0x4709b3['t'](_0x31fb35(0x233)),'children':_0x5f4f07(_0x24fff5,{'commitMode':_0x31fb35(0x15b),'defaultValues':_0x1597c0[_0x31fb35(0x350)]['titles'],'selectedTitleKey':_0x356559==null?void 0x0:_0x356559['titleKey']})}),_0x2bb840&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x3de)],'label':_0x4709b3['t']('sheets-chart-ui.common.series'),'children':_0x5f4f07(_0xdf3b14,{'defaultValues':_0x1597c0['defaultValues'][_0x31fb35(0x332)],'NumberFormatField':_0x1d638a,'selectedSeriesId':_0x356559==null?void 0x0:_0x356559[_0x31fb35(0x3ab)]})}),_0x3a9906&&_0x5f4f07(Z,{'id':_0x42aa09['WaterfallSeries'],'label':_0x4709b3['t']('sheets-chart-ui.section.waterfall'),'children':_0x5f4f07(_0x5930eb,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x31e)],'getDefaultBucketName':({seriesName:_0x2f7756,target:_0x29d68e})=>_0x29d68e===_0x47b5d6[_0x31fb35(0x1f0)]?_0x4709b3['t']('sheets-chart-ui.waterfall.subtotal'):_0x2f7756?_0x2f7756+'-('+_0x4709b3['t'](_0x29d68e===_0x47b5d6[_0x31fb35(0x25a)]?_0x31fb35(0x131):_0x31fb35(0x36a))+')':'','NumberFormatField':_0x1d638a,'selectedSeriesId':_0x356559==null?void 0x0:_0x356559[_0x31fb35(0x3ab)]})}),_0x41e6a2&&_0x44cbe2(_0x2117c7,{'children':[_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x3c3)],'label':_0x4709b3['t'](_0x31fb35(0x1c6)),'children':_0x5f4f07(_0x91fa59,{'defaultValues':_0x1597c0['defaultValues'][_0x31fb35(0x186)],'NumberFormatField':_0x1d638a,'showDataPointEditor':!0x0,'target':_0x31fb35(0x193)})}),_0x5f4f07(Z,{'id':_0x42aa09['ParetoLineSeries'],'label':_0x4709b3['t'](_0x31fb35(0x118)),'children':_0x5f4f07(_0x91fa59,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x186)],'NumberFormatField':_0x1d638a,'showDataPointEditor':!0x1,'target':_0x31fb35(0x2b0)})})]}),_0x267a97&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x308)],'label':_0x4709b3['t'](_0x31fb35(0x2f3)),'children':_0x5f4f07(_0x53b72e,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x188)],'NumberFormatField':_0x1d638a})}),_0x5e7a26&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x23a)],'label':_0x4709b3['t']('sheets-chart-ui.section.wordCloud'),'children':_0x5f4f07(_0x4ee7b5,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x156)]})}),_0x4ff900&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x2f5)],'label':_0x4709b3['t'](_0x31fb35(0x20e)),'children':_0x5f4f07(_0x22850c,{'defaultValues':_0x1597c0[_0x31fb35(0x350)]['radar']})}),_0x182e80&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x362)],'label':_0x4709b3['t']('sheets-chart-ui.section.funnel'),'children':_0x5f4f07(_0x339e22,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x141)],'gapControl':'select'})}),_0x4059c0&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x303)],'label':_0x4709b3['t'](_0x31fb35(0x3e1)),'children':_0x5f4f07(_0x42a362,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x3ce)]})}),_0x18e507&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x31f)],'label':_0x4709b3['t'](_0x31fb35(0x26d)),'children':_0x5f4f07(_0x49732b,{'defaultValues':_0x1597c0[_0x31fb35(0x350)]['relation']})}),_0x276a5b(_0x260507)&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x1bb)],'label':_0x4709b3['t'](_0x31fb35(0x1a9)),'children':_0x5f4f07(_0x439ff8,{'defaultValues':_0x1597c0['defaultValues'][_0x31fb35(0x3db)],'lineStyleControl':_0x31fb35(0x3a9)})}),_0x33e81d(_0x260507,_0x23e5ef[_0x31fb35(0x2b2)])&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x2b2)],'label':_0x4709b3['t'](_0x31fb35(0x25e)),'children':_0x5f4f07(_0x5e7ccf,{'defaultValues':_0x1597c0[_0x31fb35(0x350)]['legend']})}),_0x33e81d(_0x260507,_0x23e5ef['Axes'])&&_0x44cbe2(_0x2117c7,{'children':[_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x175)],'label':_0x4709b3['t']('sheets-chart-ui.common.horizontalAxis'),'children':_0x5f4f07(_0x325638,{'axis':'x','defaultValues':_0x1597c0['defaultValues'][_0x31fb35(0x2e6)],'NumberFormatField':_0x1d638a})}),_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x1cf)],'label':_0x4709b3['t'](_0x31fb35(0x2d5)),'children':_0x5f4f07(_0x325638,{'axis':'y','defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x2e6)],'NumberFormatField':_0x1d638a})}),_0x4d5fd4&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x293)],'label':_0x4709b3['t']('sheets-chart-ui.common.rightVerticalAxis'),'children':_0x5f4f07(_0x325638,{'axis':_0x31fb35(0x347),'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x2e6)],'NumberFormatField':_0x1d638a})}),_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x1c2)],'label':_0x4709b3['t'](_0x31fb35(0x2b4)),'children':_0x5f4f07(_0x68f7a,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x2e6)]})})]}),_0x33e81d(_0x260507,_0x23e5ef[_0x31fb35(0x21e)])&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x21e)],'label':_0x4709b3['t']('sheets-chart-ui.section.indicatorLine'),'children':_0x5f4f07(_0xe0844f,{'defaultValues':_0x1597c0[_0x31fb35(0x350)][_0x31fb35(0x3d2)]})}),_0x3c727d(_0x260507)&&_0x5f4f07(Z,{'id':_0x42aa09[_0x31fb35(0x2e0)],'label':_0x4709b3['t'](_0x31fb35(0x388)),'children':_0x5f4f07(_0x4d82e5,{'defaultValues':_0x1597c0['defaultValues']['trendline']})}),_0x34863a&&_0x306242&&_0x5f4f07(Z,{'id':_0x34863a,'label':_0x306242,'children':_0x5f4f07(_0x1188c6,{})})]});};function Pi(_0x394e23){const _0x4cb1b2=_0x43ae1d;let {className:_0x4012f4}=_0x394e23,[_0x52813b,_0x19be09]=_0xa10a8(_0x1b739b['Data']),_0x55e8c3=_0x264eea(_0x3a74b5),_0x3d656f=_0x264eea(_0x3df75b),_0xc74663=_0x264eea(X),_0x1b6f1d=_0x264eea(_0x595f50),_0x990c2c=_0x264eea(_0x41220f),_0x14f847=_0x3802ad(_0x1b6f1d[_0x4cb1b2(0x3d5)],_0x1b6f1d[_0x4cb1b2(0x318)]),_0x100119=_0x3802ad(_0xc74663[_0x4cb1b2(0x1a5)],null),_0x5ecc7d=_0x5213fb(()=>{const _0x53a6e2=_0x4cb1b2;var _0x5a9a0c;if(!_0x14f847)return null;let _0x5e09ad=_0x990c2c[_0x53a6e2(0x1bc)](_0x14f847['id']);if(!_0x5e09ad)return null;let _0xea84bd=Array['isArray'](_0x5e09ad)?(_0x5a9a0c=_0x5e09ad[0x0])==null?void 0x0:_0x5a9a0c[_0x53a6e2(0x33a)]:_0x5e09ad[_0x53a6e2(0x1b0)];return _0xea84bd?new _0x24bb6e(_0x14f847,new _0x682920({'unitId':_0xea84bd[_0x53a6e2(0x2ea)],'subUnitId':_0xea84bd[_0x53a6e2(0x2d0)],'chartId':_0x14f847['id'],'injector':_0x55e8c3})):null;},[_0x14f847,_0x55e8c3,_0x990c2c]);return _0x1bfc43(()=>{const _0x28db5a=_0x4cb1b2;var _0x5974b3,_0x1392d0;!_0x14f847||(_0x100119==null?void 0x0:_0x100119[_0x28db5a(0x3a8)])!==_0x14f847['id']||(((_0x5974b3=_0x100119[_0x28db5a(0x1de)])==null?void 0x0:_0x5974b3[_0x28db5a(0x2cd)])===_0x1b739b[_0x28db5a(0x33d)]&&_0x19be09(_0x1b739b[_0x28db5a(0x33d)]),((_0x1392d0=_0x100119['route'])==null?void 0x0:_0x1392d0['tab'])===_0x1b739b[_0x28db5a(0x16b)]&&_0x19be09(_0x1b739b['Data']));},[_0x14f847,_0x100119]),_0x5ecc7d?_0x5f4f07(_0x59bb5b,{'chartUIService':_0xc74663,'hostAdapter':_0x5ecc7d,'children':_0x44cbe2(_0x4cb1b2(0x2b1),{'className':_0x4cb1b2(0x125)+(_0x52813b===_0x1b739b[_0x4cb1b2(0x33d)]?_0x4cb1b2(0x276):'univer-overflow-hidden')+_0x4cb1b2(0x2dd)+(_0x4012f4??'')+_0x4cb1b2(0x3b6),'children':[_0x5f4f07(_0x156b81,{'ariaLabel':_0x3d656f['t'](_0x4cb1b2(0x32d)),'className':_0x4cb1b2(0x344),'items':[{'label':_0x3d656f['t'](_0x4cb1b2(0x1fd)),'panelId':Ii,'value':_0x1b739b['Data']},{'label':_0x3d656f['t']('sheets-chart-ui.common.customize'),'panelId':Li,'value':_0x1b739b['Style']}],'value':_0x52813b,'onChange':_0x19be09}),_0x52813b===_0x1b739b[_0x4cb1b2(0x16b)]?_0x5f4f07(_0x556d57,{'id':Ii,'label':_0x3d656f['t'](_0x4cb1b2(0x1fd)),'children':_0x5f4f07(ji,{'defaultValues':Ei})}):_0x5f4f07(_0x556d57,{'id':Li,'className':_0x4cb1b2(0x1cb),'label':_0x3d656f['t']('sheets-chart-ui.common.customize'),'children':_0x5f4f07(Ni,{'defaultValues':Ei})})]})}):null;}const Fi='sheet.chart.edit.panel',Ii=_0x43ae1d(0x26b),Li=_0x43ae1d(0x32c);function Ri(_0xeccda7){const _0x4519a1=_0x43ae1d;return _0xeccda7[_0x4519a1(0x1c5)]===0x1&&zi(_0xeccda7[0x0]);}function zi(_0x2d4c49){const _0x178117=_0x43ae1d;return(_0x2d4c49==null?void 0x0:_0x2d4c49[_0x178117(0x30d)])===_0x473930[_0x178117(0x194)]&&!_0x2d4c49[_0x178117(0x32e)];}let Bi=class extends _0x54a426{constructor(_0x1c9041,_0xc4e96e,_0x1c2436,_0x4d26ac,_0x4a69ee,_0x235d5d,_0x37af77,_0x5d0ae7,_0xe79a3e,_0x5ae78d,_0x19bed4,_0x342376,_0x527d24,_0x164d2f){const _0x126f0b=_0x43ae1d;var _0x35f2f9;super(),this['_drawingManagerService']=_0x1c9041,this[_0x126f0b(0x250)]=_0xc4e96e,this[_0x126f0b(0x374)]=_0x1c2436,this[_0x126f0b(0x35e)]=_0x4d26ac,this[_0x126f0b(0x247)]=_0x4a69ee,this[_0x126f0b(0x1b4)]=_0x235d5d,this['_menuManagerService']=_0x37af77,this[_0x126f0b(0x35d)]=_0x5d0ae7,this[_0x126f0b(0x229)]=_0xe79a3e,this[_0x126f0b(0x2af)]=_0x5ae78d,this[_0x126f0b(0x180)]=_0x19bed4,this['_contextService']=_0x342376,this[_0x126f0b(0x326)]=_0x527d24,G(this,_0x126f0b(0x2c9),null),G(this,_0x126f0b(0x122),void 0x0),this[_0x126f0b(0x122)]=((_0x35f2f9=_0x164d2f[_0x126f0b(0x24a)](_0x126f0b(0x130)))==null?void 0x0:_0x35f2f9[_0x126f0b(0x393)])===!0x0,this[_0x126f0b(0x367)](),this[_0x126f0b(0x143)](this['_univerInstanceService'][_0x126f0b(0x14c)](_0x819f79[_0x126f0b(0x23d)])['subscribe'](_0x3f3d1d=>{const _0x3c99c3=_0x126f0b;var _0x5dad97;_0x3f3d1d||(_0x5dad97=this[_0x3c99c3(0x2c9)])==null||_0x5dad97[_0x3c99c3(0x37b)]();})),this[_0x126f0b(0x143)](_0x3219a2(this[_0x126f0b(0x247)][_0x126f0b(0x1c8)][_0x126f0b(0x3bd)](async({drawing:_0x19395a})=>{await this['_handleDrawingDoubleClick'](_0x19395a);})));}[_0x43ae1d(0x315)](){const _0x5a1130=_0x43ae1d;this[_0x5a1130(0x2c9)]=this[_0x5a1130(0x1b4)][_0x5a1130(0x2d6)]({'id':Fi,'header':{'title':this[_0x5a1130(0x326)]['t']('sheets-chart-ui.common.editChart')},'width':0x154,'children':{'label':Fi},'onClose':()=>{const _0x595343=_0x5a1130;this[_0x595343(0x2c9)]=null,this[_0x595343(0x14a)](),this[_0x595343(0x374)]['activeChartModel']&&this['_chartModelService'][_0x595343(0x33e)](null),this['_drawingManagerService'][_0x595343(0x331)](null),this['_contextService'][_0x595343(0x1a2)](_0x310321,!0x1);}});}['hidePanel'](){const _0x201ee2=_0x43ae1d;let _0x485f43=this[_0x201ee2(0x2c9)];this[_0x201ee2(0x2c9)]=null,this['_deactivateEditPanelState'](),this['_chartModelService'][_0x201ee2(0x318)]&&this[_0x201ee2(0x374)][_0x201ee2(0x33e)](null),_0x485f43==null||_0x485f43[_0x201ee2(0x37b)]();}[_0x43ae1d(0x27f)](){const _0x1cef53=_0x43ae1d;let _0x3a1185=this['_univerInstanceService'][_0x1cef53(0x18b)](_0x819f79[_0x1cef53(0x23d)]);this[_0x1cef53(0x143)](this['_sidebarService'][_0x1cef53(0x349)]['subscribe'](_0x43e8ae=>{const _0x33dbad=_0x1cef53;_0x43e8ae['id']===_0x33dbad(0x2d9)&&(_0x43e8ae['visible']||this[_0x33dbad(0x1b4)][_0x33dbad(0x349)][_0x33dbad(0x162)]({'visible':!0x1}));})),this[_0x1cef53(0x143)](_0x576058([this[_0x1cef53(0x374)][_0x1cef53(0x3d5)],this[_0x1cef53(0x180)][_0x1cef53(0x248)]])[_0x1cef53(0x337)](_0x398d86(([_0x3ee54a,_0x56943f])=>_0x56943f?(_0x3ee54a==null?void 0x0:_0x3ee54a['id'])??null:null),_0x5b1f16(),_0x127833(null),_0x3d85d7())[_0x1cef53(0x3bd)](([_0x2e6756,_0x528d1d])=>{const _0x4c0ddd=_0x1cef53;this[_0x4c0ddd(0x1da)](_0x2e6756,_0x528d1d);})),this[_0x1cef53(0x143)](this['_chartModelService']['activeChartModel$'][_0x1cef53(0x3bd)](_0x3e9774=>{!_0x3e9774&&this['_sidebarDisposable']&&this['hidePanel']();})),this[_0x1cef53(0x143)](this['_commandService'][_0x1cef53(0x22c)](_0x1ccebc=>{const _0x5e6824=_0x1cef53;if(_0x1ccebc['id']===U['id']){let _0x17e366=_0x1ccebc['params'];if(!zi(this[_0x5e6824(0x124)][_0x5e6824(0x203)]({'unitId':_0x17e366[_0x5e6824(0x2ea)],'subUnitId':_0x17e366[_0x5e6824(0x2d0)],'drawingId':_0x17e366[_0x5e6824(0x26e)]})))return;this[_0x5e6824(0x3a6)](_0x17e366['drawingId'],_0x17e366[_0x5e6824(0x1de)]);}if(_0x1ccebc['id']===Pr['id']&&this[_0x5e6824(0x2ac)](),_0x1ccebc['id']===_0x4cf3af['id']){var _0xb0a291;_0x1ccebc[_0x5e6824(0x396)][_0x5e6824(0x3a8)]===((_0xb0a291=this['_chartModelService'][_0x5e6824(0x318)])==null?void 0x0:_0xb0a291['id'])&&this[_0x5e6824(0x2ac)](),this[_0x5e6824(0x39e)][_0x5e6824(0x2ff)](_0x310321)&&(this['_contextService'][_0x5e6824(0x1a2)](_0x310321,!0x1),this[_0x5e6824(0x124)][_0x5e6824(0x331)](null));}})),this[_0x1cef53(0x143)](this[_0x1cef53(0x35d)][_0x1cef53(0x1d7)][_0x1cef53(0x3bd)](({id:_0x48083b})=>{const _0x126426=_0x1cef53;this[_0x126426(0x180)][_0x126426(0x2e1)](_0x48083b)&&this[_0x126426(0x2ac)]();})),this[_0x1cef53(0x143)](this['_sheetCanvasFloatDomManagerService'][_0x1cef53(0x19f)][_0x1cef53(0x3bd)](({id:_0x5d2e0c})=>{const _0x56875d=_0x1cef53;this['_sheetsChartUIService'][_0x56875d(0x2e1)](_0x5d2e0c)&&(this[_0x56875d(0x180)][_0x56875d(0x352)](),this['_chartRenderService'][_0x56875d(0x2cb)](_0x5d2e0c,!0x1),this['_shouldEnableChartElementEdit'](_0x5d2e0c)&&this['_chartRenderService']['setElementEditMode'](_0x5d2e0c,!0x0));})),this[_0x1cef53(0x143)](this[_0x1cef53(0x124)][_0x1cef53(0x214)][_0x1cef53(0x3bd)](_0x3e9823=>{const _0x13eff8=_0x1cef53;let _0x36f70e=_0x3e9823[0x0];if(!this['_sheetsChartUIService'][_0x13eff8(0x1c3)]){if(Ri(_0x3e9823)){var _0x425693;let _0x404d4d=this[_0x13eff8(0x374)][_0x13eff8(0x213)](_0x36f70e[_0x13eff8(0x26e)]);_0x404d4d&&((_0x425693=this[_0x13eff8(0x374)]['activeChartModel'])==null?void 0x0:_0x425693['id'])!==_0x404d4d['id']&&this[_0x13eff8(0x374)][_0x13eff8(0x33e)](_0x404d4d);return;}this[_0x13eff8(0x374)][_0x13eff8(0x318)]&&this[_0x13eff8(0x374)][_0x13eff8(0x33e)](null),!_0x36f70e&&!this[_0x13eff8(0x180)]['rangeSelectMode']&&this[_0x13eff8(0x2ac)]();}})),_0x3a1185&&(this[_0x1cef53(0x143)](_0x3a1185[_0x1cef53(0x312)][_0x1cef53(0x3bd)](()=>{const _0x48e796=_0x1cef53;this[_0x48e796(0x2ac)]();})),this[_0x1cef53(0x143)](_0x3a1185[_0x1cef53(0x3e0)][_0x1cef53(0x3bd)](()=>{const _0xb5deea=_0x1cef53;this[_0xb5deea(0x2ac)]();})));}async[_0x43ae1d(0x230)](_0x2dc8b9){const _0x333fb5=_0x43ae1d;this['_sheetsChartUIService']['chartEditorOpen']||zi(_0x2dc8b9)&&await this[_0x333fb5(0x2dc)](_0x2dc8b9['unitId'],_0x2dc8b9[_0x333fb5(0x2d0)],_0x2dc8b9[_0x333fb5(0x26e)]);}async[_0x43ae1d(0x2dc)](_0x41005f,_0x309961,_0x7fe330){const _0x5dbf29=_0x43ae1d;this[_0x5dbf29(0x374)]['getChartModel'](_0x7fe330)&&await this[_0x5dbf29(0x2af)]['executeCommand'](U['id'],{'unitId':_0x41005f,'subUnitId':_0x309961,'drawingId':_0x7fe330});}['openChartPanelById'](_0x4a4185,_0x419cb7){const _0x36c023=_0x43ae1d;let _0x4457a8=this[_0x36c023(0x374)][_0x36c023(0x213)](_0x4a4185);_0x4457a8&&(this[_0x36c023(0x374)][_0x36c023(0x33e)](_0x4457a8),this[_0x36c023(0x315)](),this[_0x36c023(0x251)](_0x4a4185,_0x419cb7??null));}[_0x43ae1d(0x251)](_0x3b65be,_0x3838d5){const _0x184d08=_0x43ae1d;this[_0x184d08(0x180)][_0x184d08(0x16f)](!0x0),this[_0x184d08(0x180)][_0x184d08(0x255)](_0x3b65be,_0x3838d5);}[_0x43ae1d(0x14a)](){const _0x403380=_0x43ae1d;this['_sheetsChartUIService'][_0x403380(0x16f)](!0x1);}['_syncActiveEditChart'](_0x2d32a4,_0x17c8b){const _0x10a641=_0x43ae1d;_0x2d32a4!==_0x17c8b&&(_0x2d32a4&&this[_0x10a641(0x35e)]['setElementEditMode'](_0x2d32a4,!0x1),this[_0x10a641(0x180)][_0x10a641(0x352)](),_0x17c8b&&(this[_0x10a641(0x180)][_0x10a641(0x255)](_0x17c8b,null),this[_0x10a641(0x35e)]['setElementEditMode'](_0x17c8b,this[_0x10a641(0x11e)](_0x17c8b))));}[_0x43ae1d(0x367)](){const _0x5dddd8=_0x43ae1d;this[_0x5dddd8(0x376)][_0x5dddd8(0x267)](Qr),this[_0x5dddd8(0x229)][_0x5dddd8(0x3a7)](_0x473930[_0x5dddd8(0x194)],this[_0x5dddd8(0x314)][_0x5dddd8(0x2f6)](this));}['_shouldEnableChartElementEdit'](_0x32a2b1){const _0x3f21c0=_0x43ae1d;let _0x2c51e5=this[_0x3f21c0(0x374)][_0x3f21c0(0x213)](_0x32a2b1);return!this[_0x3f21c0(0x122)]||!_0x2c51e5?!0x1:ei(_0x2c51e5[_0x3f21c0(0x37d)]);}[_0x43ae1d(0x314)](_0x2bfa19,_0xebd132,_0x4da576,_0x159e20){const _0x4ea122=_0x43ae1d;return[{'label':this[_0x4ea122(0x326)]['t'](_0x4ea122(0x160)),'index':0x0,'commandId':U['id'],'commandParams':{'unitId':_0x2bfa19,'subUnitId':_0xebd132,'drawingId':_0x4da576},'disable':_0x159e20!==_0x473930[_0x4ea122(0x194)]},{'label':this[_0x4ea122(0x326)]['t'](_0x4ea122(0x2ab)),'index':0x1,'commandId':_0xaba04b['id'],'commandParams':{'unitId':_0x2bfa19,'drawings':[{'unitId':_0x2bfa19,'subUnitId':_0xebd132,'drawingId':_0x4da576,'drawingType':_0x159e20}]},'disable':!0x1},{'label':this[_0x4ea122(0x326)]['t']('sheets-chart-ui.common.hideChartPanel'),'index':0x2,'commandId':Pr['id'],'commandParams':{'unitId':_0x2bfa19,'subUnitId':_0xebd132,'drawingId':_0x4da576},'disable':!0x1}];}};Bi=J([q(0x0,_0x27cbdb),q(0x1,_0x3ff803),q(0x2,_0x44acc1(_0x595f50)),q(0x3,_0x44acc1(Y)),q(0x4,_0x44acc1(_0x382176)),q(0x5,_0x44acc1(_0x34137d)),q(0x6,_0xb39bf0),q(0x7,_0x44acc1(_0x53eb3b)),q(0x8,_0x44acc1(_0x4d1f3b)),q(0x9,_0x54b7b3),q(0xa,X),q(0xb,_0x5b7fbe),q(0xc,_0x44acc1(_0x3df75b)),q(0xd,_0x1f3f65)],Bi);var Vi=_0x43ae1d(0x390),Hi='1.0.0-rc.0';let Ui=class extends _0x54a426{constructor(_0x1537dd,_0x3b31ae){const _0x40c6aa=_0x43ae1d;super(),this['_chartHostProviderService']=_0x1537dd,this[_0x40c6aa(0x374)]=_0x3b31ae,this[_0x40c6aa(0x35b)]();}[_0x43ae1d(0x35b)](){const _0x17329b=_0x43ae1d;this[_0x17329b(0x143)](this['_chartHostProviderService'][_0x17329b(0x316)][_0x17329b(0x3bd)](_0x23b967=>{const _0x16787b=_0x17329b;this[_0x16787b(0x374)][_0x16787b(0x328)](_0x23b967);}));}};Ui=J([q(0x0,bi),q(0x1,_0x44acc1(_0x595f50))],Ui);let Wi=class extends _0x54a426{constructor(_0x3c340b,_0x556a76,_0x2ead76,_0x9f1c9b,_0x1ecd60,_0x39e425){const _0x5e4306=_0x43ae1d;super(),this[_0x5e4306(0x374)]=_0x3c340b,this[_0x5e4306(0x35e)]=_0x556a76,this[_0x5e4306(0x326)]=_0x2ead76,this[_0x5e4306(0x15f)]=_0x9f1c9b,this['_commandService']=_0x1ecd60,this[_0x5e4306(0x3a4)]=_0x39e425,G(this,_0x5e4306(0x2e7),new Map()),G(this,_0x5e4306(0x310),new Set()),this[_0x5e4306(0x35b)](),this[_0x5e4306(0x1b8)](),this[_0x5e4306(0x168)]();}[_0x43ae1d(0x168)](){const _0x54df11=_0x43ae1d;this[_0x54df11(0x143)](this['_sheetPrintInterceptorService'][_0x54df11(0x1e7)][_0x54df11(0x306)](this['_sheetPrintInterceptorService']['interceptor'][_0x54df11(0x148)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0xec016,_0x364054,_0x5c5430)=>{const _0x8441f7=_0x54df11;let _0x3369d7=this['_chartRenderService']['renderChartsForPrinting'](_0x364054[_0x8441f7(0x2ea)],_0x364054[_0x8441f7(0x2d0)],_0x364054['scene']);return _0x364054['resourceCollector'][_0x8441f7(0x28e)](_0x3369d7),_0x5c5430(_0xec016);}}));}[_0x43ae1d(0x35b)](){const _0x3dc33a=_0x43ae1d;this[_0x3dc33a(0x143)](this[_0x3dc33a(0x374)][_0x3dc33a(0x397)][_0x3dc33a(0x3bd)](_0xfdae6c=>{const _0x5b7e92=_0x3dc33a;if(_0xfdae6c){let _0x4a6e4f=new _0x8d3d8();_0x4a6e4f[_0x5b7e92(0x28e)](_0xfdae6c[_0x5b7e92(0x144)][_0x5b7e92(0x1e6)][_0x5b7e92(0x337)](_0x2c826b(0x1))[_0x5b7e92(0x3bd)](()=>{const _0x37cb65=_0x5b7e92;this[_0x37cb65(0x310)][_0x37cb65(0x28e)](_0xfdae6c['id']);})),_0x4a6e4f[_0x5b7e92(0x28e)](_0xfdae6c[_0x5b7e92(0x171)][_0x5b7e92(0x337)](_0x8b71a4(_0xfdae6c[_0x5b7e92(0x15a)]),_0x8b71a4(this[_0x5b7e92(0x326)][_0x5b7e92(0x3b1)]),_0x362366(0x64))[_0x5b7e92(0x3bd)](([[_0x214ea3,_0x52dd8f],_0x97092b])=>{const _0x428cec=_0x5b7e92;var _0x2e4eef;if(!_0x214ea3)return;(_0x2e4eef=_0x214ea3[_0x428cec(0x3b4)])==null||_0x2e4eef[_0x428cec(0x3a1)][_0x428cec(0x298)]((_0xd48fa4,_0x2056d3)=>{const _0x415bf0=_0x428cec;_0xd48fa4[_0x415bf0(0x189)]||=this[_0x415bf0(0x326)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x2056d3+0x1);}),_0x214ea3['series']['forEach']((_0x2e4322,_0x369c85)=>{const _0x211968=_0x428cec;_0x2e4322[_0x211968(0x246)]||=this[_0x211968(0x326)]['t'](_0x211968(0x351))+'\x20'+(_0x369c85+0x1);});let _0x463e15=this['_chartRenderService'][_0x428cec(0x320)](_0xfdae6c,_0x97092b),_0x35654c=this[_0x428cec(0x310)][_0x428cec(0x1a8)](_0xfdae6c['id']);this['_chartRenderService'][_0x428cec(0x3cd)](_0xfdae6c['id'],_0x214ea3,_0x463e15,{'animateDataUpdate':_0x35654c});})),_0xfdae6c[_0x5b7e92(0x1ce)](()=>{const _0xbefd0d=_0x5b7e92;this[_0xbefd0d(0x310)][_0xbefd0d(0x1a8)](_0xfdae6c['id']),_0x4a6e4f[_0xbefd0d(0x37b)]();});}}));}[_0x43ae1d(0x1b8)](){const _0x152a3c=_0x43ae1d;this['disposeWithMe'](this['_commandService'][_0x152a3c(0x22c)](_0x226828=>{const _0x14ef92=_0x152a3c;if(_0x226828['id']!==_0x213703['id'])return;let _0x43cb9c=_0x226828['params'];_0x43cb9c!=null&&_0x43cb9c[_0x14ef92(0x151)]&&Promise['resolve']()[_0x14ef92(0x227)](()=>this[_0x14ef92(0x1d0)](_0x43cb9c));}));}[_0x43ae1d(0x1d0)](_0x5e635e){const _0x50db0e=_0x43ae1d;let _0x20ed74=this[_0x50db0e(0x374)][_0x50db0e(0x213)](_0x5e635e[_0x50db0e(0x151)]);if(!_0x20ed74||_0x20ed74[_0x50db0e(0x37d)]!==_0x16f780[_0x50db0e(0x23a)])return;let _0x137a43=_0x20ed74[_0x50db0e(0x262)];if(!_0x137a43){this[_0x50db0e(0x23f)](_0x20ed74);return;}this[_0x50db0e(0x341)](_0x20ed74,_0x137a43);}[_0x43ae1d(0x23f)](_0x102eb1){const _0x2d5e58=_0x43ae1d;if(this[_0x2d5e58(0x2e7)][_0x2d5e58(0x117)](_0x102eb1['id']))return;let _0x1063da=_0x102eb1['config$'][_0x2d5e58(0x337)](_0x54f1db(_0x320e66=>_0x320e66!=null),_0x16f4cd(0x1))[_0x2d5e58(0x3bd)](_0x360869=>{const _0x459232=_0x2d5e58;this['_pendingMutationConfigRenders'][_0x459232(0x1a8)](_0x102eb1['id']),this[_0x459232(0x341)](_0x102eb1,_0x360869);});this[_0x2d5e58(0x2e7)][_0x2d5e58(0x174)](_0x102eb1['id'],_0x1063da),_0x102eb1[_0x2d5e58(0x1ce)](()=>{const _0x3dec1b=_0x2d5e58;_0x1063da[_0x3dec1b(0x24c)](),this['_pendingMutationConfigRenders'][_0x3dec1b(0x1a8)](_0x102eb1['id']);});}['_renderChartModel'](_0x34e73d,_0x27221b){const _0x246828=_0x43ae1d;let _0x414b1c=this[_0x246828(0x35e)][_0x246828(0x320)](_0x34e73d,this[_0x246828(0x326)][_0x246828(0x16c)]());this[_0x246828(0x35e)][_0x246828(0x3cd)](_0x34e73d['id'],_0x27221b,_0x414b1c);}};Wi=J([q(0x0,_0x44acc1(_0x595f50)),q(0x1,_0x44acc1(Y)),q(0x2,_0x44acc1(_0x3df75b)),q(0x3,X),q(0x4,_0x54b7b3),q(0x5,_0x44acc1(_0x513023))],Wi);function Gi(_0x3d06a7,_0x44899f){const _0x43b19a=_0x43ae1d;return _0x3d06a7['unitId']!==_0x44899f[_0x43b19a(0x2ea)]||_0x3d06a7[_0x43b19a(0x2d0)]!==_0x44899f[_0x43b19a(0x291)]?_0x3d06a7:{..._0x3d06a7,'subUnitId':_0x44899f[_0x43b19a(0x2c7)]};}function Ki(_0x550443,_0x9504b4){const _0x5884da=_0x43ae1d;return(_0x550443==null?void 0x0:_0x550443[_0x5884da(0x1ad)])===_0x18c070[_0x5884da(0x342)]?{..._0x550443,'source':Gi(_0x550443['source'],_0x9504b4)}:_0x550443;}function qi(_0xef19b7,_0x44e1a0){const _0x11a8a4=_0x43ae1d;let {rangeInfo:_0x187c9d}=_0xef19b7;return Array[_0x11a8a4(0x34e)](_0x187c9d)?{..._0xef19b7,'rangeInfo':_0x187c9d['map'](_0x2438b5=>({..._0x2438b5,..._0x2438b5[_0x11a8a4(0x30a)]?{'header':Ki(_0x2438b5[_0x11a8a4(0x30a)],_0x44e1a0)}:{},'range':Gi(_0x2438b5[_0x11a8a4(0x33a)],_0x44e1a0)}))}:{..._0xef19b7,'rangeInfo':{..._0x187c9d,..._0x187c9d['header']?{'header':{..._0x187c9d['header'],..._0x187c9d[_0x11a8a4(0x30a)][_0x11a8a4(0x334)]?{'titles':Ji(_0x187c9d['header']['titles'],_0x44e1a0)}:{}}}:{},'rangeInfo':Gi(_0x187c9d[_0x11a8a4(0x1b0)],_0x44e1a0)}};}function Ji(_0x4aba4a,_0x57440a){const _0x556aec=_0x43ae1d;return _0x4aba4a['type']===_0x18c070[_0x556aec(0x279)]?{..._0x4aba4a,'values':{..._0x4aba4a[_0x556aec(0x38e)]}}:_0x4aba4a[_0x556aec(0x1ad)]===_0x18c070[_0x556aec(0x380)]?{..._0x4aba4a,'values':Object[_0x556aec(0x29f)](Object[_0x556aec(0x3ca)](_0x4aba4a[_0x556aec(0x38e)])[_0x556aec(0x2ce)](([_0x468e1e,_0x5bac3e])=>[_0x468e1e,_0x5bac3e&&Gi(_0x5bac3e,_0x57440a)]))}:{..._0x4aba4a,'values':Object['fromEntries'](Object['entries'](_0x4aba4a[_0x556aec(0x38e)])['map'](([_0x4087be,_0x778221])=>[_0x4087be,_0x778221&&Ki(_0x778221,_0x57440a)]))};}function Yi(_0x4d7b5a,_0x33d7ed,_0x43c52b,_0x4a8671){const _0x3db3e1=_0x43ae1d;let _0x1302d3=_0x4efece(_0x4d7b5a,_0x33d7ed,_0x43c52b),_0x2324c2=[];for(let _0x2537c5 of _0x33d7ed){let _0x5c78f7=_0x1302d3[_0x3db3e1(0x142)][_0x3db3e1(0x117)](_0x2537c5[_0x3db3e1(0x26e)]),_0x51e54b=_0x4a8671(_0x2537c5);!_0x5c78f7||!_0x51e54b||_0x2324c2[_0x3db3e1(0x1b1)]({'targetChartId':_0x5c78f7,'source':qi(_0x51e54b,_0x43c52b)});}return _0x2324c2;}let Xi=class extends _0x54a426{constructor(_0x59ddc5,_0x5ab3f2,_0x3a0f95,_0x379b16,_0x6a3d14){const _0x147536=_0x43ae1d;super(),this[_0x147536(0x250)]=_0x59ddc5,this['_sheetInterceptorService']=_0x5ab3f2,this[_0x147536(0x17b)]=_0x3a0f95,this[_0x147536(0x374)]=_0x379b16,this[_0x147536(0x37a)]=_0x6a3d14,this[_0x147536(0x35c)]();}[_0x43ae1d(0x35c)](){const _0x5cab50=_0x43ae1d;this['disposeWithMe'](this[_0x5cab50(0x277)][_0x5cab50(0x322)]({'getMutations':_0x5088d5=>{const _0x4c174a=_0x5cab50;if(_0x5088d5['id']===_0x5b84c8['id']){let _0x39100d=_0x26241a(this[_0x4c174a(0x250)],_0x5088d5[_0x4c174a(0x396)]);if(!_0x39100d)return{'redos':[],'undos':[]};let {unitId:_0x92312b,subUnitId:_0xb997ce}=_0x39100d,_0x164d43=this['_sheetDrawingService']['getDrawingData'](_0x92312b,_0xb997ce),_0xf5dbf=Object[_0x4c174a(0x38e)](_0x164d43)[_0x4c174a(0x29b)](_0x3005e7=>_0x3005e7[_0x4c174a(0x30d)]===_0x473930['DRAWING_CHART']);if(_0xf5dbf['length']===0x0)return{'redos':[],'undos':[]};let _0x302f05=[],_0x425c37=[];for(let _0x5f1f92=0x0;_0x5f1f92<_0xf5dbf[_0x4c174a(0x1c5)];_0x5f1f92++){let _0x4fbdd8=_0xf5dbf[_0x5f1f92],_0x1d85d3=this[_0x4c174a(0x374)][_0x4c174a(0x213)](_0x4fbdd8['drawingId']);if(!_0x1d85d3)continue;let _0x449f98=this['_sheetsChartService'][_0x4c174a(0x1bc)](_0x1d85d3['id']);if(!_0x449f98)continue;let {chartType:_0x5ca070,context:_0x2b74f6,style:_0x3c6ce9,dataAggregation:_0x1422ed}=_0x1d85d3[_0x4c174a(0x1d8)]();_0x302f05['push']({'id':_0x4cf3af['id'],'params':{'unitId':_0x92312b,'subUnitId':_0xb997ce,'chartId':_0x4fbdd8[_0x4c174a(0x26e)]}}),_0x425c37['push']({'id':_0x1d759f['id'],'params':{'unitId':_0x92312b,'subUnitId':_0xb997ce,'chartId':_0x4fbdd8[_0x4c174a(0x26e)],'chartType':_0x5ca070,..._0x1700d9(_0x449f98),'context':_0x2b74f6,'style':_0x3c6ce9,'dataAggregation':_0x1422ed}});}return{'redos':_0x302f05,'undos':_0x425c37};}else{if(_0x5088d5['id']===_0x506545['id']){let {unitId:_0x103ad1,subUnitId:_0x14156b,targetSubUnitId:_0x11359d,copyContext:_0xdd3c51}=_0x5088d5[_0x4c174a(0x396)];if(!_0x103ad1||!_0x14156b||!_0x11359d)return{'redos':[],'undos':[]};let _0x2c6664=this[_0x4c174a(0x17b)][_0x4c174a(0x29d)](_0x103ad1,_0x14156b),_0x551c40=Object[_0x4c174a(0x38e)](_0x2c6664)[_0x4c174a(0x29b)](_0x118bfc=>_0x118bfc['drawingType']===_0x473930[_0x4c174a(0x194)]);if(_0x551c40[_0x4c174a(0x1c5)]===0x0)return{'redos':[],'undos':[]};let _0x29f0d4=Yi(_0xdd3c51,_0x551c40,{'unitId':_0x103ad1,'sourceSubUnitId':_0x14156b,'targetSubUnitId':_0x11359d},_0x3dd592=>{const _0x407c6b=_0x4c174a;let _0x3b3aa4=this[_0x407c6b(0x374)][_0x407c6b(0x213)](_0x3dd592[_0x407c6b(0x26e)]);if(!_0x3b3aa4)return;let _0x1c03c4=this[_0x407c6b(0x37a)][_0x407c6b(0x1bc)](_0x3b3aa4['id']);if(!_0x1c03c4)return;let {chartType:_0x45bcf8,context:_0x104534,style:_0x2c5a6c,dataAggregation:_0x144aca}=_0x3b3aa4[_0x407c6b(0x1d8)]();return{'rangeInfo':_0x1c03c4,'chartType':_0x45bcf8,'context':_0x104534,'style':_0x2c5a6c,'dataAggregation':_0x144aca};}),_0x1f8b80=[],_0x1c2eb4=[];for(let {targetChartId:_0x4b5ab2,source:_0x2efedd}of _0x29f0d4){let {rangeInfo:_0x3f4ed4,chartType:_0x5102c7,context:_0x24b5d8,style:_0x5bb143,dataAggregation:_0x49ac89}=_0x2efedd;_0x1f8b80[_0x4c174a(0x1b1)]({'id':_0x1d759f['id'],'params':{'unitId':_0x103ad1,'subUnitId':_0x11359d,'chartId':_0x4b5ab2,'chartType':_0x5102c7,..._0x1700d9(_0x3f4ed4),'context':_0x24b5d8,'style':_0x5bb143,'dataAggregation':_0x49ac89}}),_0x1c2eb4['push']({'id':_0x4cf3af['id'],'params':{'unitId':_0x103ad1,'subUnitId':_0x11359d,'chartId':_0x4b5ab2}});}return{'redos':_0x1f8b80,'undos':_0x1c2eb4};}}return{'redos':[],'undos':[]};}}));}};Xi=J([q(0x0,_0x44acc1(_0x3ff803)),q(0x1,_0x44acc1(_0x5848a0)),q(0x2,_0x44acc1(_0x9bd290)),q(0x3,_0x44acc1(_0x595f50)),q(0x4,_0x44acc1(_0x41220f))],Xi);const Zi=_0x486c3e=>_0x486c3e[_0x43ae1d(0x18b)](_0x819f79[_0x43ae1d(0x23d)])[_0x43ae1d(0x17d)](),Qi=_0x58cd81=>{const _0x6f7d28=_0x43ae1d;var _0x44d367;return(_0x44d367=_0x58cd81[_0x6f7d28(0x18b)](_0x819f79[_0x6f7d28(0x23d)])[_0x6f7d28(0x2e4)]())==null?void 0x0:_0x44d367[_0x6f7d28(0x133)]();},$i=[_0x16f780[_0x43ae1d(0x33f)],_0x16f780[_0x43ae1d(0x2f5)],_0x16f780['WordCloud'],_0x16f780[_0x43ae1d(0x1f6)],_0x16f780[_0x43ae1d(0x362)],_0x16f780[_0x43ae1d(0x31f)],_0x16f780[_0x43ae1d(0x2bd)],_0x16f780[_0x43ae1d(0x303)],_0x16f780[_0x43ae1d(0x2c5)],_0x16f780['Candlestick'],_0x16f780[_0x43ae1d(0x2db)],_0x16f780['Treemap'],_0x16f780['Sunburst'],_0x16f780[_0x43ae1d(0x364)],_0x16f780[_0x43ae1d(0x2a5)]];function ea(){const _0x492d7c=_0x43ae1d;let _0x16c614=_0xa3e76a();return _0x5f4f07(_0x5523f3,{'visible':$i[_0x492d7c(0x224)](_0x68d422=>!_0x71cbfa[_0x492d7c(0x2c6)](_0x16c614,_0x68d422))});}function ta(_0x532e7c){const _0x17d232=_0x43ae1d;var _0x4e2c22;let _0x5b2a72=_0x264eea(X),_0x4dbaad=_0x264eea(_0x595f50),_0x302ff0=_0x264eea(_0x41220f),_0x3070b2=_0x264eea(_0x3df75b),_0x4b0a17=_0x346aab(_0x264eea(_0x3a74b5)),_0x59c3ed=_0x5213fb(()=>_0x5947b5(Gr(Ur[_0x17d232(0x372)](),_0x4b0a17)['map'](_0x319805=>({'id':_0x319805['id'],'label':_0x3070b2['t']('sheets-chart-ui.chartTypes.'+_0x319805[_0x17d232(0x232)]),'pieSecondaryPlotType':_0x319805['pieSecondaryPlotType'],'value':_0x319805['value']}))),[_0x4b0a17,_0x3070b2]),_0x49c103=_0x3802ad(_0x4dbaad[_0x17d232(0x3d5)],_0x4dbaad['activeChartModel']),_0x4e517a=_0x49c103?_0x302ff0[_0x17d232(0x373)](_0x49c103['id']):void 0x0,_0x563a15=_0x3802ad(_0x4e517a==null?void 0x0:_0x4e517a['rangeInfo$'],_0x4e517a==null?void 0x0:_0x4e517a['getRangeInfo']()),_0x2adf69=Array['isArray'](_0x563a15),_0x5bd987=_0x563a15&&!_0x2adf69&&_0x563a15['isRowDirection']?_0x10ef62['Row']:_0x10ef62[_0x17d232(0x29c)],_0x1ac933=_0x2adf69?(_0x4e2c22=_0x563a15[0x0])==null?void 0x0:_0x4e2c22[_0x17d232(0x33a)]:_0x563a15==null?void 0x0:_0x563a15[_0x17d232(0x1b0)];return _0x44cbe2(_0x17d232(0x2b1),{'className':_0x17d232(0x170),'children':[_0x5f4f07(_0xefb803,{'options':_0x59c3ed}),_0x5f4f07(_0x4d9744,{}),_0x5f4f07(_0x4354e4,{}),_0x5f4f07(ea,{}),_0x5f4f07(_0xf847d1,{}),_0x5f4f07(na,{'dataRange':_0x563a15,'primaryRange':_0x1ac933}),_0x5f4f07(_0x1c7d9a,{'categoryToggleLabel':_0x3070b2['t'](_0x17d232(0x152),_0x5bd987===_0x10ef62[_0x17d232(0x1bf)]?_0x5bd987+'\x20'+(((_0x1ac933==null?void 0x0:_0x1ac933[_0x17d232(0x33a)][_0x17d232(0x182)])??0x0)+0x1):_0x5bd987+'\x20'+_0x317bd4((_0x1ac933==null?void 0x0:_0x1ac933['range'][_0x17d232(0x281)])??0x0)),'orientationControl':_0x2adf69?void 0x0:_0x5f4f07(_0x215329,{'size':_0x17d232(0x154),'onClick':()=>_0x5b2a72[_0x17d232(0x1b3)](_0x5bd987===_0x10ef62[_0x17d232(0x1bf)]?_0x10ef62[_0x17d232(0x29c)]:_0x10ef62['Row']),'children':_0x3070b2['t'](_0x17d232(0x1b5))})}),_0x5f4f07(_0x5e1a24,{}),_0x5f4f07(_0x386208,{'defaultValues':_0x532e7c['defaultValues'][_0x17d232(0x22f)]})]});}function na(_0x3584f3){const _0x4ca9ad=_0x43ae1d;let {dataRange:_0x36046a,primaryRange:_0x353cea}=_0x3584f3,_0x486014=_0x264eea(X),_0x23bca7=_0x264eea(_0x3df75b),_0x57873d=_0x264eea(_0x3ff803),[_0x30e150,_0x17f10c]=_0xa10a8(!0x1),[_0x1fa7e8,_0x3db1b7]=_0xa10a8(!0x1),_0x3bc4a9=Zi(_0x57873d),_0x52c1fe=Qi(_0x57873d);_0x1bfc43(()=>{const _0x3e91c1=_0x4e81;_0x486014[_0x3e91c1(0x20c)](_0x30e150);},[_0x30e150,_0x486014]);let _0x3ae268=_0x5213fb(()=>_0x221eb2(async _0x30a5fb=>{const _0x132aa7=_0x4e81;var _0xc1b6e8;if(Vr(_0x36046a,_0x57873d)===_0x30a5fb)return;let _0x331b69=_0x30a5fb[_0x132aa7(0x13a)](',')['filter'](Boolean)[_0x132aa7(0x2ce)](_0x2b576a)[0x0];if(!_0x331b69)return;let {unitId:_0x4822af,sheetName:_0x33bcd6,range:_0x43b5c4}=_0x331b69,_0x3089a3=_0x4822af||_0x3bc4a9,_0x35bd96=((_0xc1b6e8=_0x57873d[_0x132aa7(0x285)](_0x3089a3)['getSheetBySheetName'](_0x33bcd6))==null?void 0x0:_0xc1b6e8[_0x132aa7(0x133)]())||(_0x353cea==null?void 0x0:_0x353cea['subUnitId'])||_0x52c1fe;_0x35bd96&&_0x486014[_0x132aa7(0x2bf)]({'rangeInfo':{'range':_0x43b5c4,'unitId':_0x3089a3,'subUnitId':_0x35bd96}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x36046a,_0x353cea,_0x486014,_0x52c1fe,_0x3bc4a9,_0x57873d]);return _0x1bfc43(()=>()=>_0x3ae268[_0x4ca9ad(0x274)](),[_0x3ae268]),_0x5f4f07(_0x4ca9ad(0x2b1),{'className':_0x4ca9ad(0x1d1),'children':_0x44cbe2('div',{'children':[_0x5f4f07(_0x1a0262,{'title':_0x23bca7['t'](_0x4ca9ad(0x2df))}),_0x5f4f07(_0x4b0535,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x3bc4a9,'subUnitId':_0x52c1fe,'initialValue':_0x36046a?Vr(_0x36046a,_0x57873d):'','onChange':(_0x4820e1,_0xaf8c77)=>_0x3ae268(_0xaf8c77),'onFocusChange':_0x32fa1d=>{_0x1fa7e8||_0x17f10c(_0x32fa1d);},'onRangeSelectorDialogVisibleChange':_0x42a8a1=>{_0x3db1b7(_0x42a8a1),_0x17f10c(_0x42a8a1);}})]})});}const ra=_0x43ae1d(0x333),ia=_0x43ae1d(0x211),aa={'ColorPickerComponent':_0xafcfcd,'DialogComponent':_0x29b476,'DropdownComponent':_0x17c777,'DropdownMenuComponent':_0x188be6,'SelectComponent':_0x5c8792};function oa(){const _0x16586c=_0x43ae1d;let [_0xaffafa,_0x2b04ff]=_0xa10a8(_0x1b739b['Data']),_0xe34e40=_0x264eea(_0x3a74b5),_0x36792e=_0x264eea(_0x3df75b),_0xd08919=_0x264eea(X),_0x4535cd=_0x264eea(_0x595f50),_0x56e119=_0x264eea(_0x41220f),_0x3a227d=_0x3802ad(_0x4535cd[_0x16586c(0x3d5)],_0x4535cd[_0x16586c(0x318)]),_0x4d12bf=_0x3802ad(_0xd08919[_0x16586c(0x1a5)],null),_0x578ec2=_0x5213fb(()=>{const _0x4edcac=_0x16586c;var _0x471555;if(!_0x3a227d)return null;let _0x515a40=_0x56e119[_0x4edcac(0x1bc)](_0x3a227d['id']);if(!_0x515a40)return null;let _0x2b28bc=Array[_0x4edcac(0x34e)](_0x515a40)?(_0x471555=_0x515a40[0x0])==null?void 0x0:_0x471555[_0x4edcac(0x33a)]:_0x515a40[_0x4edcac(0x1b0)];return _0x2b28bc?new _0x24bb6e(_0x3a227d,new _0x682920({'unitId':_0x2b28bc['unitId'],'subUnitId':_0x2b28bc[_0x4edcac(0x2d0)],'chartId':_0x3a227d['id'],'injector':_0xe34e40})):null;},[_0x3a227d,_0xe34e40,_0x56e119]);if(_0x1bfc43(()=>{const _0x3aca63=_0x16586c;var _0x3df9b9,_0x3cc83d;!_0x3a227d||(_0x4d12bf==null?void 0x0:_0x4d12bf[_0x3aca63(0x3a8)])!==_0x3a227d['id']||(((_0x3df9b9=_0x4d12bf[_0x3aca63(0x1de)])==null?void 0x0:_0x3df9b9[_0x3aca63(0x2cd)])===_0x1b739b[_0x3aca63(0x33d)]&&_0x2b04ff(_0x1b739b[_0x3aca63(0x33d)]),((_0x3cc83d=_0x4d12bf[_0x3aca63(0x1de)])==null?void 0x0:_0x3cc83d[_0x3aca63(0x2cd)])===_0x1b739b[_0x3aca63(0x16b)]&&_0x2b04ff(_0x1b739b[_0x3aca63(0x16b)]));},[_0x3a227d,_0x4d12bf]),!_0x578ec2)return null;let _0x3ed4d7=_0x44cbe2(_0x16586c(0x2b1),{'className':_0x16586c(0x2bc),'children':[_0x5f4f07(_0x156b81,{'ariaLabel':_0x36792e['t'](_0x16586c(0x32d)),'className':'univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','items':[{'label':_0x36792e['t'](_0x16586c(0x1fd)),'panelId':ra,'value':_0x1b739b[_0x16586c(0x16b)]},{'label':_0x36792e['t'](_0x16586c(0x338)),'panelId':ia,'value':_0x1b739b[_0x16586c(0x33d)]}],'value':_0xaffafa,'onChange':_0x2b04ff}),_0xaffafa===_0x1b739b[_0x16586c(0x16b)]?_0x5f4f07(_0x556d57,{'id':ra,'className':_0x16586c(0x276),'label':_0x36792e['t']('sheets-chart-ui.common.setup'),'children':_0x5f4f07(ta,{'defaultValues':Ei})}):_0x5f4f07(_0x556d57,{'id':ia,'className':_0x16586c(0x145),'label':_0x36792e['t']('sheets-chart-ui.common.customize'),'children':_0x5f4f07(Ni,{'defaultValues':Ei})})]});return _0x5f4f07(_0x59bb5b,{'chartUIService':_0xd08919,'components':aa,'hostAdapter':_0x578ec2,'children':_0x3ed4d7});}let sa=class extends _0x54a426{constructor(_0xdbd841){const _0x44fd9c=_0x43ae1d;super(),this[_0x44fd9c(0x143)](_0xdbd841['register'](Fi,oa));}};sa=J([q(0x0,_0x44acc1(_0x3c2bc6))],sa);let ca=class extends _0x54a426{constructor(_0x5c0cf9,_0x1eb103,_0x54937b,_0x27d923,_0x105775,_0x4db76f,_0x2a2096,_0x122215,_0x5fdd1d){const _0x38dcdb=_0x43ae1d;super(),this[_0x38dcdb(0x124)]=_0x5c0cf9,this['_chartModelService']=_0x1eb103,this['_sidebarService']=_0x54937b,this[_0x38dcdb(0x376)]=_0x27d923,this[_0x38dcdb(0x229)]=_0x105775,this[_0x38dcdb(0x2af)]=_0x4db76f,this[_0x38dcdb(0x180)]=_0x2a2096,this[_0x38dcdb(0x39e)]=_0x122215,this['_localeService']=_0x5fdd1d,G(this,_0x38dcdb(0x2c9),null),G(this,_0x38dcdb(0x389),!0x1),this['_initMenus']();}[_0x43ae1d(0x37b)](){const _0x387f7f=_0x43ae1d;this[_0x387f7f(0x2ac)](),super['dispose']();}[_0x43ae1d(0x27f)](){const _0x1624c6=_0x43ae1d;this[_0x1624c6(0x389)]||(this[_0x1624c6(0x389)]=!0x0,this[_0x1624c6(0x143)](this[_0x1624c6(0x2af)][_0x1624c6(0x22c)](_0x35ee97=>{const _0x1f89bd=_0x1624c6;if(_0x35ee97['id']!==U['id'])return;let _0x2caeef=_0x35ee97[_0x1f89bd(0x396)];this['openChartPanelById'](_0x2caeef['drawingId'],_0x2caeef[_0x1f89bd(0x1de)]);})));}[_0x43ae1d(0x3a6)](_0x5341bc,_0x4bb1fa){const _0x7fe596=_0x43ae1d;let _0x193b0e=this[_0x7fe596(0x374)][_0x7fe596(0x213)](_0x5341bc);_0x193b0e&&(this['_chartModelService'][_0x7fe596(0x33e)](_0x193b0e),this[_0x7fe596(0x315)](),this[_0x7fe596(0x180)][_0x7fe596(0x16f)](!0x0),this['_sheetsChartUIService'][_0x7fe596(0x255)](_0x5341bc,_0x4bb1fa??null));}[_0x43ae1d(0x2ac)](){const _0x2a45f4=_0x43ae1d;let _0x2f97a6=this[_0x2a45f4(0x2c9)];this[_0x2a45f4(0x2c9)]=null,this[_0x2a45f4(0x3df)](),_0x2f97a6==null||_0x2f97a6[_0x2a45f4(0x37b)]();}[_0x43ae1d(0x367)](){const _0x388c61=_0x43ae1d;this['_menuManagerService']['mergeMenu']({[_0x4b7bb2['MEDIA']]:{[W['id']]:{'order':0x4,'menuItemFactory':Kr}}}),this['_sheetCanvasPopManagerService'][_0x388c61(0x3a7)](_0x473930[_0x388c61(0x194)],(_0x205edf,_0x76e029,_0x359d76,_0x57aeec)=>[{'label':this[_0x388c61(0x326)]['t'](_0x388c61(0x32d)),'index':0x0,'commandId':U['id'],'commandParams':{'unitId':_0x205edf,'subUnitId':_0x76e029,'drawingId':_0x359d76},'disable':_0x57aeec!==_0x473930['DRAWING_CHART']},{'label':this['_localeService']['t']('sheets-chart-ui.common.deleteChart'),'index':0x1,'commandId':_0xaba04b['id'],'commandParams':{'unitId':_0x205edf,'drawings':[{'unitId':_0x205edf,'subUnitId':_0x76e029,'drawingId':_0x359d76,'drawingType':_0x57aeec}]},'disable':!0x1}],_0x388c61(0x1e1));}[_0x43ae1d(0x315)](){const _0x1a9f3e=_0x43ae1d;this[_0x1a9f3e(0x2c9)]=this['_sidebarService'][_0x1a9f3e(0x2d6)]({'id':Fi,'header':{'title':this['_localeService']['t'](_0x1a9f3e(0x32d))},'children':{'label':Fi},'onClose':()=>{const _0x1eb70c=_0x1a9f3e;this['_sidebarDisposable']=null,this[_0x1eb70c(0x3df)]();}});}['_clearPanelState'](){const _0x4da100=_0x43ae1d;this[_0x4da100(0x180)][_0x4da100(0x16f)](!0x1),this[_0x4da100(0x180)][_0x4da100(0x352)](),this[_0x4da100(0x374)]['activeChartModel']&&this[_0x4da100(0x374)]['setActiveChartModel'](null),this['_drawingManagerService']['focusDrawing'](null),this[_0x4da100(0x39e)]['setContextValue'](_0x310321,!0x1);}};ca=J([q(0x0,_0x27cbdb),q(0x1,_0x44acc1(_0x595f50)),q(0x2,_0x44acc1(_0x34137d)),q(0x3,_0xb39bf0),q(0x4,_0x44acc1(_0x4d1f3b)),q(0x5,_0x54b7b3),q(0x6,X),q(0x7,_0x5b7fbe),q(0x8,_0x44acc1(_0x3df75b))],ca);let la=class extends _0x54a426{constructor(_0x18d2a4,_0x2ec56e,_0xf6e1ce,_0x198d2e,_0x1ff0d4){const _0x3e54d4=_0x43ae1d;super(),this[_0x3e54d4(0x2d7)]=_0x18d2a4,this[_0x3e54d4(0x2f2)]=_0x2ec56e,this['_sheetDrawingService']=_0xf6e1ce,this[_0x3e54d4(0x374)]=_0x198d2e,this[_0x3e54d4(0x37a)]=_0x1ff0d4,G(this,_0x3e54d4(0x3af),void 0x0),this[_0x3e54d4(0x360)]();}get['_focusedDrawings'](){const _0x2dc378=_0x43ae1d;return this[_0x2dc378(0x17b)]['getFocusDrawings']();}[_0x43ae1d(0x360)](){const _0x4af45a=_0x43ae1d;this['disposeWithMe'](this[_0x4af45a(0x2f2)]['addClipboardHook']({'id':_0x178cfc,'onBeforeCopyFocusedObject':(_0x23f0ee,_0x1dd6f8,_0x1b08e4)=>{const _0x3f3e7d=_0x4af45a;this[_0x3f3e7d(0x3af)]=null;let _0x48937a=this[_0x3f3e7d(0x195)][_0x3f3e7d(0x29b)](_0x1d83a4=>_0x1d83a4[_0x3f3e7d(0x30d)]===_0x473930[_0x3f3e7d(0x194)]);return _0x48937a[_0x3f3e7d(0x1c5)]===0x0?!0x1:(this['_copyInfo']={'unitId':_0x23f0ee,'subUnitId':_0x1dd6f8,'copyType':_0x1b08e4,'drawings':_0x48937a},!0x0);},'onBeforeCopy':(_0x4cd414,_0x23bb99,_0x40cf47,_0x305211)=>{const _0x37195c=_0x4af45a;this[_0x37195c(0x3af)]=null,this[_0x37195c(0x204)](_0x4cd414,_0x23bb99,_0x40cf47,_0x305211);},'onPasteCells':(_0x44036e,_0x240159,_0x909116,_0x2f8193)=>{const _0x4ee0e5=_0x4af45a;if(!_0x2f8193[_0x4ee0e5(0x237)]||!_0x44036e||!this[_0x4ee0e5(0x3af)])return{'redos':[],'undos':[]};let {pasteType:_0x58528f}=_0x2f8193;return _0x58528f===_0x4a361e['DEFAULT_PASTE']?this[_0x4ee0e5(0x121)](_0x240159,this[_0x4ee0e5(0x3af)]['copyType']===_0x3a14ad[_0x4ee0e5(0x185)]):{'redos':[],'undos':[]};}}));}[_0x43ae1d(0x204)](_0x458e60,_0x21cb4a,_0x4f46da,_0x29c849){const _0x1a74b8=_0x43ae1d;let _0x9dfccc=this['_sheetSkeletonService'][_0x1a74b8(0x14e)](_0x458e60,_0x21cb4a);if(!_0x9dfccc)return;let _0x1b5f1a=_0x324c11(_0x9dfccc,_0x4f46da);if(!_0x1b5f1a)return;let {startX:_0x7d44a4,endX:_0x75035b,startY:_0x5d42a3,endY:_0x1683ed}=_0x1b5f1a,_0x1ecc05=this[_0x1a74b8(0x17b)][_0x1a74b8(0x29d)](_0x458e60,_0x21cb4a),_0x74f87c=[];for(let [_0x1b5579,_0x153307]of Object[_0x1a74b8(0x3ca)](_0x1ecc05)){if(_0x153307[_0x1a74b8(0x30d)]!==_0x473930[_0x1a74b8(0x194)])continue;let {transform:_0x458ad6}=_0x153307;if(!_0x458ad6)continue;let {left:_0x25918a=0x0,top:_0x2f7a66=0x0,width:_0x2f8fb5=0x0,height:_0x12896d=0x0}=_0x458ad6;_0x7d44a4<=_0x25918a&&_0x75035b>=_0x25918a+_0x2f8fb5&&_0x5d42a3<=_0x2f7a66&&_0x1683ed>=_0x2f7a66+_0x12896d&&_0x74f87c['push'](_0x153307);}_0x74f87c[_0x1a74b8(0x1c5)]>0x0&&(this[_0x1a74b8(0x3af)]={'unitId':_0x458e60,'subUnitId':_0x21cb4a,'copyType':_0x29c849,'copyRange':_0x4f46da,'drawings':_0x74f87c});}[_0x43ae1d(0x121)](_0x52f13e,_0x30be69){const _0x1fdcff=_0x43ae1d;let {unitId:_0x2e8f8d,subUnitId:_0x220003,range:_0x424690}=_0x52f13e,_0x57e65e=this[_0x1fdcff(0x2d7)][_0x1fdcff(0x14e)](_0x2e8f8d,_0x220003);if(!_0x57e65e)return{'redos':[],'undos':[]};let _0x3d00df=_0x3b8566(_0x424690),{unitId:_0x137064,subUnitId:_0x1510cd,copyRange:_0x44ac2d,drawings:_0x43c43e}=this[_0x1fdcff(0x3af)],_0x150429=this[_0x1fdcff(0x2d7)][_0x1fdcff(0x14e)](_0x137064,_0x1510cd);if(!_0x150429)return{'redos':[],'undos':[]};let _0x47fc36=[],_0x907514=[];for(let _0xc05013 of _0x43c43e){let {drawingId:_0x3a19c7,transform:_0x1081d9,sheetTransform:_0x543449}=_0xc05013,_0x90609c=this[_0x1fdcff(0x374)][_0x1fdcff(0x213)](_0x3a19c7);if(!_0x90609c||!_0x1081d9||!_0x543449)continue;let _0x563ab3=this[_0x1fdcff(0x3dd)]({'transform':_0x1081d9,'sheetTransform':_0x543449},{'skeleton':_0x150429,'range':_0x44ac2d},{'skeleton':_0x57e65e,'range':_0x3d00df});if(_0x30be69){let {redos:_0x1ed7de,undos:_0x5debc9}=this['_generateCutPasteMutations']({'fromUnitId':_0x137064,'fromSubUnitId':_0x1510cd,'toUnitId':_0x2e8f8d,'toSubUnitId':_0x220003,'drawing':_0xc05013,'newTransforms':_0x563ab3},_0x90609c);_0x47fc36[_0x1fdcff(0x1b1)](..._0x1ed7de),_0x907514[_0x1fdcff(0x1b1)](..._0x5debc9);continue;}let {redos:_0x30ace9,undos:_0x106d0b}=this[_0x1fdcff(0x2fb)]({'toUnitId':_0x2e8f8d,'toSubUnitId':_0x220003,'drawing':_0xc05013,'newTransforms':_0x563ab3},_0x90609c);_0x47fc36[_0x1fdcff(0x1b1)](..._0x30ace9),_0x907514['push'](..._0x106d0b);}return{'redos':_0x47fc36,'undos':_0x907514};}[_0x43ae1d(0x134)](_0x5a622a,_0x6b31c6){const _0x5275ec=_0x43ae1d;let {fromUnitId:_0x579fb4,fromSubUnitId:_0xb6ee64,toUnitId:_0x55534f,toSubUnitId:_0x2b9f75,drawing:_0xdd2ede,newTransforms:_0x54a9c}=_0x5a622a,_0x231611={..._0xdd2ede,'unitId':_0x55534f,'subUnitId':_0x2b9f75,'transform':_0x54a9c[_0x5275ec(0x1d9)],'sheetTransform':_0x54a9c[_0x5275ec(0x23c)]};if(_0x55534f===_0x579fb4&&_0x2b9f75===_0xb6ee64){let {redo:_0x1da460,undo:_0x2adadb,objects:_0x29c795}=this[_0x5275ec(0x17b)][_0x5275ec(0x335)]([_0x231611]);return{'redos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'type':_0xa7aea8[_0x5275ec(0x210)],'op':_0x1da460,'objects':_0x29c795}}],'undos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'type':_0xa7aea8[_0x5275ec(0x210)],'op':_0x2adadb,'objects':_0x29c795}}]};}else{let _0x408745=this[_0x5275ec(0x17b)][_0x5275ec(0x30b)]([_0xdd2ede]),_0x3ebdd4=this[_0x5275ec(0x17b)]['getBatchAddOp']([_0x231611]),_0x2ccbb7=this[_0x5275ec(0x37a)][_0x5275ec(0x1bc)](_0x6b31c6['id']);if(!_0x2ccbb7)return{'redos':[],'undos':[]};let {chartType:_0x5081c8,context:_0x53efd3,style:_0x55899a,dataAggregation:_0x40d4fa}=_0x6b31c6['serialize']();return{'redos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x579fb4,'subUnitId':_0xb6ee64,'type':_0xa7aea8[_0x5275ec(0x266)],'op':_0x408745['redo'],'objects':_0x408745['objects']}},{'id':_0x4cf3af['id'],'params':{'unitId':_0x579fb4,'subUnitId':_0xb6ee64,'chartId':_0xdd2ede[_0x5275ec(0x26e)]}},{'id':_0x4b363e['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'type':_0xa7aea8[_0x5275ec(0x136)],'op':_0x3ebdd4[_0x5275ec(0x166)],'objects':_0x3ebdd4[_0x5275ec(0x25d)]}},{'id':_0x1d759f['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'chartId':_0xdd2ede['drawingId'],'chartType':_0x5081c8,..._0x1700d9(_0x2ccbb7),'context':_0x53efd3,'style':_0x55899a,'dataAggregation':_0x40d4fa}}],'undos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x579fb4,'subUnitId':_0xb6ee64,'type':_0xa7aea8['INSERT'],'op':_0x408745[_0x5275ec(0x263)],'objects':_0x408745[_0x5275ec(0x25d)]}},{'id':_0x1d759f['id'],'params':{'unitId':_0x579fb4,'subUnitId':_0xb6ee64,'chartId':_0xdd2ede[_0x5275ec(0x26e)],'chartType':_0x5081c8,..._0x1700d9(_0x2ccbb7),'context':_0x53efd3,'style':_0x55899a,'dataAggregation':_0x40d4fa}},{'id':_0x4b363e['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'type':_0xa7aea8[_0x5275ec(0x266)],'op':_0x3ebdd4[_0x5275ec(0x263)],'objects':_0x3ebdd4[_0x5275ec(0x25d)]}},{'id':_0x4cf3af['id'],'params':{'unitId':_0x55534f,'subUnitId':_0x2b9f75,'chartId':_0xdd2ede[_0x5275ec(0x26e)]}}]};}}[_0x43ae1d(0x2fb)](_0x3aac13,_0x3c3ffc){const _0x314859=_0x43ae1d;let {toUnitId:_0x5b344e,toSubUnitId:_0x2f8251,drawing:_0x4d5a5f,newTransforms:_0x329a3d}=_0x3aac13,_0x420e1b=_0xd29c3b(),_0x533794={..._0x4d5a5f,'unitId':_0x5b344e,'subUnitId':_0x2f8251,'drawingId':_0x420e1b,'transform':_0x329a3d[_0x314859(0x1d9)],'sheetTransform':_0x329a3d[_0x314859(0x23c)]},{redo:_0x914b34,undo:_0x1f2688,objects:_0x4178a8}=this[_0x314859(0x17b)][_0x314859(0x28c)]([_0x533794]),_0x2a7a62=this[_0x314859(0x37a)][_0x314859(0x1bc)](_0x3c3ffc['id']);if(!_0x2a7a62)return{'redos':[],'undos':[]};let {chartType:_0x243dd4,context:_0x1fc58d,style:_0x371cba,dataAggregation:_0x1ebcf8}=_0x3c3ffc[_0x314859(0x1d8)]();return{'redos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x5b344e,'subUnitId':_0x2f8251,'type':_0xa7aea8[_0x314859(0x136)],'op':_0x914b34,'objects':_0x4178a8}},{'id':_0x1d759f['id'],'params':{'unitId':_0x5b344e,'subUnitId':_0x2f8251,'chartId':_0x420e1b,'chartType':_0x243dd4,..._0x1700d9(_0x2a7a62),'context':_0x1fc58d,'style':_0x371cba,'dataAggregation':_0x1ebcf8}}],'undos':[{'id':_0x4b363e['id'],'params':{'unitId':_0x5b344e,'subUnitId':_0x2f8251,'type':_0xa7aea8[_0x314859(0x266)],'op':_0x1f2688,'objects':_0x4178a8}},{'id':_0x4cf3af['id'],'params':{'unitId':_0x5b344e,'subUnitId':_0x2f8251,'chartId':_0x420e1b}}]};}['_updateTransform'](_0x2d49c3,_0x34f553,_0x2bff17){const _0x2042c8=_0x43ae1d;let {range:_0x35ed9e,skeleton:_0x47a6a3}=_0x34f553,{range:_0x5d96c8,skeleton:_0x3abfd7}=_0x2bff17,{transform:_0x3200a0,sheetTransform:_0x2b5996}=_0x2d49c3,_0x254ad2={..._0x3200a0};if(_0x35ed9e){let _0x41e84f=_0x324c11(_0x47a6a3,_0x35ed9e),_0x3bd2d7=_0x324c11(_0x3abfd7,_0x5d96c8);if(_0x41e84f&&_0x3bd2d7){let _0x140ca5=_0x3bd2d7['startX']-_0x41e84f['startX'],_0x41fc55=_0x3bd2d7[_0x2042c8(0x3da)]-_0x41e84f[_0x2042c8(0x3da)];_0x254ad2['left']=(_0x254ad2['left']??0x0)+_0x140ca5,_0x254ad2[_0x2042c8(0x271)]=(_0x254ad2[_0x2042c8(0x271)]??0x0)+_0x41fc55;}}else{let _0x32c562=_0x324c11(_0x3abfd7,_0x5d96c8);_0x254ad2[_0x2042c8(0x324)]=_0x32c562==null?void 0x0:_0x32c562['startX'],_0x254ad2['top']=_0x32c562==null?void 0x0:_0x32c562[_0x2042c8(0x3da)];}return{'transform':_0x254ad2,'sheetTransform':_0x12c401(_0x254ad2,_0x3abfd7)??_0x2b5996};}};la=J([q(0x0,_0x44acc1(_0x48ad2a)),q(0x1,_0x44acc1(_0x52faeb)),q(0x2,_0x44acc1(_0x9bd290)),q(0x3,_0x44acc1(_0x595f50)),q(0x4,_0x44acc1(_0x41220f))],la);let ua=class extends _0x54a426{constructor(_0x57cde2,_0x368c97,_0x465da9,_0x305e19){const _0x5628ca=_0x43ae1d;super(),this['_commandService']=_0x57cde2,this['_localeService']=_0x368c97,this[_0x5628ca(0x21b)]=_0x465da9,this['_sheetsChartService']=_0x305e19,this['_initPermission']();}[_0x43ae1d(0x3b2)](){const _0x2fc42e=_0x43ae1d;this[_0x2fc42e(0x143)](this[_0x2fc42e(0x2af)]['beforeCommandExecuted'](_0x2d68f7=>{const _0x4cad54=_0x2fc42e;let _0x376423,_0x49b104;if(_0x2d68f7['id']===_0x569c16['id']){let _0x25f496=_0x2d68f7[_0x4cad54(0x396)];_0x376423=_0x25f496[_0x4cad54(0x2ea)],_0x49b104=_0x25f496[_0x4cad54(0x2d0)];}else{if(_0x2d68f7['id']===_0xb1f4b6['id']||_0x2d68f7['id']===_0x31550b['id']){let _0x45ca28=_0x2d68f7['params'];_0x376423=_0x45ca28['unitId'],_0x49b104=this[_0x4cad54(0x37a)][_0x4cad54(0x3a0)](_0x45ca28['unitId'],_0x45ca28['chartModelId']);}}!_0x376423||!_0x49b104||this[_0x4cad54(0x21b)][_0x4cad54(0x2c2)]({'workbookTypes':[_0xaedc6a],'worksheetTypes':[_0x32c40f]},_0x376423,_0x49b104)||this[_0x4cad54(0x21b)][_0x4cad54(0x27a)](this[_0x4cad54(0x326)]['t']('sheets-chart-ui.permission.editErr'));}));}};ua=J([q(0x0,_0x44acc1(_0x54b7b3)),q(0x1,_0x44acc1(_0x3df75b)),q(0x2,_0x44acc1(_0x37875f)),q(0x3,_0x44acc1(_0x41220f))],ua);let da=class extends _0x54a426{constructor(_0xb9135b,_0x15140a){const _0xf58ba4=_0x43ae1d;super(),this['_renderService']=_0x15140a,this['disposeWithMe'](_0xb9135b[_0xf58ba4(0x3ad)](this));}[_0x43ae1d(0x2a2)](_0x307e49){const _0x5a5ccf=_0x43ae1d;return _0x5a5ccf(0x2ea)in _0x307e49&&_0x5a5ccf(0x2d0)in _0x307e49;}['exportImage'](_0xf25902,_0x32ecd1){const _0x10e403=_0x43ae1d;return this['_renderService'][_0x10e403(0x1b9)](_0xf25902[_0x10e403(0x339)](),_0x32ecd1);}};da=J([q(0x0,_0x44acc1(_0x96fe31)),q(0x1,_0x44acc1(Y))],da);let Q=class extends _0x12fb9d{constructor(_0x475e84=Nr,_0x133c8c,_0x5a4a3d,_0x855009){const _0x33ac2f=_0x43ae1d;super(),this[_0x33ac2f(0x114)]=_0x475e84,this[_0x33ac2f(0x363)]=_0x133c8c,this[_0x33ac2f(0x1c4)]=_0x5a4a3d,this[_0x33ac2f(0x2af)]=_0x855009;let {..._0x53e70d}=_0x18eb9b({},Nr,this[_0x33ac2f(0x114)]);this[_0x33ac2f(0x1c4)][_0x33ac2f(0x2cc)](Mr,_0x53e70d),this[_0x33ac2f(0x384)]();}['onStarting'](){const _0x417f79=_0x43ae1d;let _0x2c833d=[[sa],[X,{'useClass':wi}],[bi,{'useClass':yi}],[fi],[Y],[da],[ca],[Ui],[Wi],[la],[Xi],[ua]],_0x197f98=[[sa],[ca],[Wi],[Ui],[da],[X],[la],[Xi],[ua]];_0x2c833d[_0x417f79(0x298)](_0x47e54d=>this[_0x417f79(0x363)][_0x417f79(0x28e)](_0x47e54d)),_0x39253b(this[_0x417f79(0x363)],_0x197f98);}[_0x43ae1d(0x3e2)](){const _0x5ed8bf=_0x43ae1d;var _0x5c44d2;(_0x5c44d2=this[_0x5ed8bf(0x363)][_0x5ed8bf(0x117)](ca))==null||_0x5c44d2[_0x5ed8bf(0x27f)]();}[_0x43ae1d(0x384)](){const _0xfa407e=_0x43ae1d;[W,U][_0xfa407e(0x298)](_0x2b2801=>this[_0xfa407e(0x143)](this[_0xfa407e(0x2af)]['registerCommand'](_0x2b2801)));}};G(Q,'type',_0x819f79[_0x43ae1d(0x23d)]),G(Q,_0x43ae1d(0x119),_0x43ae1d(0x39b)),G(Q,_0x43ae1d(0x1ae),Vi),G(Q,_0x43ae1d(0x340),Hi),Q=J([_0x133936(_0x2a21e7,_0x4be8e7,_0x5e0ab2,_0x11d84d,_0x48e88e,_0x1f71be,_0x5d6970,_0x5a621c,_0x772c08,_0x2793be),q(0x1,_0x44acc1(_0x3a74b5)),q(0x2,_0x1f3f65),q(0x3,_0x54b7b3)],Q);const fa={'scaleX':0x1,'scaleY':0x1};function pa(_0x103f43){const _0x3836fd=_0x43ae1d;let _0x5e9938=_0x103f43[_0x3836fd(0x300)];return _0x5e9938 instanceof MouseEvent?_0x5e9938:void 0x0;}function ma(_0x23009d){const _0x581677=_0x43ae1d;let _0x26470c=_0x23009d[_0x581677(0x300)],_0x499ad4=_0x26470c==null?void 0x0:_0x26470c['target'];return _0x499ad4 instanceof Element?_0x499ad4:void 0x0;}function ha(_0x384aae){const _0x458375=_0x43ae1d;var _0x128226;return(_0x128226=ma(_0x384aae))==null?void 0x0:_0x128226[_0x458375(0x181)]();}function ga(_0xbcc9d3){const _0x3203d6=_0x43ae1d;return _0xbcc9d3['width']||_0xbcc9d3[_0x3203d6(0x2f9)]-_0xbcc9d3[_0x3203d6(0x324)];}function _a(_0x86b84f){const _0x196ceb=_0x43ae1d;return _0x86b84f[_0x196ceb(0x386)]||_0x86b84f['bottom']-_0x86b84f[_0x196ceb(0x271)];}function va(_0x1db0df,_0x476502){const _0x87f29e=_0x43ae1d;let _0x56c360=_0x1db0df[_0x87f29e(0x2f8)]||(_0x1db0df instanceof HTMLElement?_0x1db0df[_0x87f29e(0x23e)]:0x0),_0x3fe307=_0x1db0df[_0x87f29e(0x2b7)]||(_0x1db0df instanceof HTMLElement?_0x1db0df['offsetHeight']:0x0),_0x16126=ga(_0x476502),_0x593180=_a(_0x476502);return{'scaleX':_0x56c360>0x0&&_0x16126>0x0?_0x16126/_0x56c360:fa[_0x87f29e(0x3d8)],'scaleY':_0x3fe307>0x0&&_0x593180>0x0?_0x593180/_0x3fe307:fa[_0x87f29e(0x120)]};}function ya(_0x1391ca,_0x1385d6,_0x3c99de){const _0x1434e1=_0x43ae1d;return{'left':_0x1391ca['left']+_0x1385d6[_0x1434e1(0x324)]*_0x3c99de['scaleX'],'right':_0x1391ca['left']+_0x1385d6['right']*_0x3c99de[_0x1434e1(0x3d8)],'top':_0x1391ca['top']+_0x1385d6[_0x1434e1(0x271)]*_0x3c99de[_0x1434e1(0x120)],'bottom':_0x1391ca[_0x1434e1(0x271)]+_0x1385d6[_0x1434e1(0x209)]*_0x3c99de[_0x1434e1(0x120)]};}function ba(_0x525b24){const _0x3c4fc7=_0x43ae1d;let _0x4bec77=ma(_0x525b24),_0xb48caf=_0x525b24['hit'][_0x3c4fc7(0x2aa)];return _0x4bec77&&_0xb48caf?()=>{let _0x1f260d=_0x4bec77['getBoundingClientRect']();return ya(_0x1f260d,_0xb48caf,va(_0x4bec77,_0x1f260d));}:()=>{const _0x18f67e=_0x3c4fc7;let _0x31301b=ha(_0x525b24);if(_0x31301b&&_0xb48caf)return ya(_0x31301b,_0xb48caf,_0x4bec77?va(_0x4bec77,_0x31301b):fa);let _0x4132ad=pa(_0x525b24),_0x3536c9=_0x4bec77&&_0x31301b?va(_0x4bec77,_0x31301b):fa,_0x3e04f4=(_0x4132ad==null?void 0x0:_0x4132ad[_0x18f67e(0x206)])??(_0x31301b?_0x31301b[_0x18f67e(0x324)]+_0x525b24['localPoint']['x']*_0x3536c9['scaleX']:_0x525b24[_0x18f67e(0x3cf)]['x']),_0x35db09=(_0x4132ad==null?void 0x0:_0x4132ad[_0x18f67e(0x1d5)])??(_0x31301b?_0x31301b[_0x18f67e(0x271)]+_0x525b24['localPoint']['y']*_0x3536c9[_0x18f67e(0x120)]:_0x525b24[_0x18f67e(0x3cf)]['y']);return{'left':_0x3e04f4,'right':_0x3e04f4+0x1,'top':_0x35db09,'bottom':_0x35db09+0x1};};}function xa(_0x4e2fdf){const _0x38a3d7=_0x43ae1d;return typeof _0x4e2fdf==_0x38a3d7(0x2a4)&&Number[_0x38a3d7(0x1a0)](_0x4e2fdf);}function Sa(_0x38b579){const _0x175c6d=_0x43ae1d;if(!_0x38b579||typeof _0x38b579!=_0x175c6d(0x3b8))return!0x0;let {startX:_0x58606b,endX:_0x3eae37,startY:_0x5e1a44,endY:_0x1325c9}=_0x38b579;return!xa(_0x58606b)||!xa(_0x3eae37)||!xa(_0x5e1a44)||!xa(_0x1325c9)||_0x3eae37-_0x58606b>0x2&&_0x1325c9-_0x5e1a44>0x2;}function Ca(_0x4eb260){const _0x1dd8d2=_0x43ae1d;return _0x4eb260[_0x1dd8d2(0x2f9)]<=_0x4eb260[_0x1dd8d2(0x324)]||_0x4eb260['bottom']<=_0x4eb260[_0x1dd8d2(0x271)]?!0x1:typeof window>'u'||_0x4eb260['right']>0x0&&_0x4eb260[_0x1dd8d2(0x209)]>0x0&&_0x4eb260[_0x1dd8d2(0x324)]<window[_0x1dd8d2(0x361)]&&_0x4eb260[_0x1dd8d2(0x271)]<window[_0x1dd8d2(0x28b)];}function wa(_0x109bc9){const _0x13ee9d=_0x43ae1d;var _0xa6b84d;return _0x109bc9==null||(_0xa6b84d=_0x109bc9[_0x13ee9d(0x2b6)])==null?void 0x0:_0xa6b84d[_0x13ee9d(0x368)](_0x109bc9);}function Ta(_0x21d8f2,_0xb755a1,_0x4cc980){const _0x2ac5f7=_0x43ae1d;let _0x2315dc=ba(_0x21d8f2),_0x23f65f=wa(_0xb755a1),_0xbda442=_0x2315dc(),_0x1cce31=new _0x217544(_0xbda442),_0xe1a9b7=new _0x8d3d8(),_0x1db7b7=!0x1,_0x40f737=!0x1,_0xdefb2c=_0x106e86=>Sa(_0x23f65f)&&Ca(_0x106e86),_0x156287=()=>{_0x40f737||_0x1db7b7||(_0x40f737=!0x0,queueMicrotask(()=>{if(_0x40f737=!0x1,!_0x1db7b7){let _0x298550=_0x2315dc();if(!_0xdefb2c(_0x298550)){_0x4cc980();return;}_0x1cce31['next'](_0x298550);}}));};return _0xb755a1&&_0xe1a9b7[_0x2ac5f7(0x28e)](_0xb755a1[_0x2ac5f7(0x3bd)](_0xd46a9a=>{_0x23f65f=_0xd46a9a,_0x156287();})),typeof window<'u'&&_0xe1a9b7[_0x2ac5f7(0x28e)](_0xbccbd7(_0x5b6eee(window,_0x2ac5f7(0x176),{'capture':!0x0}),_0x5b6eee(window,_0x2ac5f7(0x399)))['pipe'](_0x16a82d(0x10))[_0x2ac5f7(0x3bd)](_0x156287)),{'initialRect':_0xbda442,'anchorRect$':_0x1cce31[_0x2ac5f7(0x36c)](),'visible':_0xdefb2c(_0xbda442),'dispose':()=>{_0x1db7b7=!0x0,_0xe1a9b7['dispose'](),_0x1cce31['complete']();}};}const Ea=_0x43ae1d(0x283);let Da=class extends _0x54a426{constructor(_0x50377f,_0x51cf8b,_0x44c58b,_0x2b9dfa,_0xa7f740,_0x2af8f3,_0x179403,_0x2fb406,_0x348594){const _0x324ebd=_0x43ae1d;super(),this[_0x324ebd(0x374)]=_0x50377f,this[_0x324ebd(0x35e)]=_0x51cf8b,this[_0x324ebd(0x3c4)]=_0x44c58b,this[_0x324ebd(0x229)]=_0x2b9dfa,this['_sheetCanvasFloatDomManagerService']=_0xa7f740,this['_chartUIService']=_0x2af8f3,this[_0x324ebd(0x3bb)]=_0x179403,this[_0x324ebd(0x2af)]=_0x2fb406,this[_0x324ebd(0x363)]=_0x348594,G(this,'_popupDisposable',null),G(this,'_popupChartId',null),G(this,_0x324ebd(0x20d),null),this[_0x324ebd(0x24d)](),this['_subscribeChartEvents']();}['dispose'](){const _0x3b4724=_0x43ae1d;this[_0x3b4724(0x173)](),super[_0x3b4724(0x37b)]();}[_0x43ae1d(0x24d)](){const _0x2b0ed4=_0x43ae1d;let _0x8b10b0=_0x214df7({'chartUIService':this[_0x2b0ed4(0x15f)],'getHostAdapter':_0x373c48=>{const _0x5b251e=_0x2b0ed4;let _0x42b97a=this[_0x5b251e(0x374)][_0x5b251e(0x213)](_0x373c48[_0x5b251e(0x3a8)]);if(!(!_0x42b97a||!_0x373c48[_0x5b251e(0x2d0)]))return new _0x24bb6e(_0x42b97a,new _0x682920({'unitId':_0x373c48['unitId'],'subUnitId':_0x373c48['subUnitId'],'chartId':_0x373c48['chartId'],'injector':this[_0x5b251e(0x363)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x16b4ad=>{const _0x5f22f7=_0x2b0ed4;let {unitId:_0x59b625,subUnitId:_0xd13aa9,drawingId:_0x346375,chartId:_0xaa1b03}=_0x16b4ad,_0x3b135b=_0x3ccb13(_0x16b4ad['target']);this[_0x5f22f7(0x2af)][_0x5f22f7(0x132)](U['id'],{'unitId':_0x59b625,'subUnitId':_0xd13aa9??'','drawingId':_0x346375??_0xaa1b03,..._0x3b135b?{'route':_0x3b135b}:{}});}});this[_0x2b0ed4(0x143)](this['_adapterRegistry'][_0x2b0ed4(0x3ad)](Ea,_0x8b10b0));}[_0x43ae1d(0x2a9)](){const _0x10ab11=_0x43ae1d;this[_0x10ab11(0x143)](this[_0x10ab11(0x374)][_0x10ab11(0x397)][_0x10ab11(0x3bd)](_0x558817=>{const _0x498697=_0x10ab11;let _0x4de03e=new _0x8d3d8();_0x4de03e[_0x498697(0x28e)](this[_0x498697(0x35e)]['on'](_0x558817['id'],_0x498697(0x25f),_0x19b9ac=>{const _0xd3b2aa=_0x498697;this[_0xd3b2aa(0x1c9)](_0x558817['id'],_0x19b9ac);})),_0x4de03e[_0x498697(0x28e)](this[_0x498697(0x35e)]['on'](_0x558817['id'],_0x498697(0x38f),()=>{const _0x5c63ad=_0x498697;this[_0x5c63ad(0x2dc)](_0x558817['id']);})),_0x558817[_0x498697(0x1ce)](()=>{const _0x25e443=_0x498697;_0x4de03e[_0x25e443(0x37b)](),this[_0x25e443(0x219)](_0x558817['id']);}),this[_0x498697(0x143)](_0x4de03e);})),this[_0x10ab11(0x143)](_0x576058([this['_chartModelService'][_0x10ab11(0x3d5)],this[_0x10ab11(0x15f)][_0x10ab11(0x248)]])['subscribe'](([_0x497117,_0x360bd2])=>{const _0x5562d7=_0x10ab11;(!_0x360bd2||this[_0x5562d7(0x28a)]&&(_0x497117==null?void 0x0:_0x497117['id'])!==this[_0x5562d7(0x28a)])&&this[_0x5562d7(0x173)]();})),this[_0x10ab11(0x143)](this[_0x10ab11(0x35d)][_0x10ab11(0x19f)][_0x10ab11(0x3bd)](({id:_0x330f05})=>{this['_clearSelectedTarget'](_0x330f05);})),this[_0x10ab11(0x143)](this[_0x10ab11(0x35d)][_0x10ab11(0x1d7)][_0x10ab11(0x3bd)](({id:_0x11be28})=>{const _0x59e0b4=_0x10ab11;this[_0x59e0b4(0x219)](_0x11be28);})),this[_0x10ab11(0x143)](this[_0x10ab11(0x3c4)][_0x10ab11(0x316)]['subscribe'](_0x1881d4=>{const _0x48147e=_0x10ab11;this[_0x48147e(0x219)](_0x1881d4);}));}[_0x43ae1d(0x2dc)](_0x209b49){const _0x17aafd=_0x43ae1d;if(this['_chartUIService'][_0x17aafd(0x2b8)])return;let _0x1a0ff1=this[_0x17aafd(0x374)][_0x17aafd(0x213)](_0x209b49),_0x41d214=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x209b49);!_0x1a0ff1||!_0x41d214||this[_0x17aafd(0x2af)][_0x17aafd(0x132)](U['id'],{'unitId':_0x41d214[_0x17aafd(0x2ea)],'subUnitId':_0x41d214[_0x17aafd(0x2d0)]??'','drawingId':_0x209b49});}[_0x43ae1d(0x1c9)](_0x506bfa,_0x3a4250){const _0x108736=_0x43ae1d;if(!this[_0x108736(0x15f)]['isElementEditModeActive'](_0x506bfa))return;let _0x8fc44d=this[_0x108736(0x374)]['getChartModel'](_0x506bfa),_0x2ec81e=_0x8fc44d?ti(_0x8fc44d,_0x3a4250[_0x108736(0x377)]):void 0x0;if(!_0x2ec81e){this[_0x108736(0x15f)][_0x108736(0x352)](),this['_closePopup']();return;}let _0xd04095=this[_0x108736(0x35d)][_0x108736(0x17f)](_0x506bfa);if(!_0x8fc44d||!_0xd04095){this[_0x108736(0x15f)][_0x108736(0x352)](),this['_closePopup']();return;}let _0x2253e9=JSON[_0x108736(0x1eb)]([_0xd04095[_0x108736(0x2ea)],_0xd04095[_0x108736(0x2d0)],_0x506bfa,_0x2ec81e[_0x108736(0x2ee)]]);if(this[_0x108736(0x22a)]&&this[_0x108736(0x20d)]===_0x2253e9||(this[_0x108736(0x15f)][_0x108736(0x255)](_0x506bfa,_0x2ec81e['route']),this[_0x108736(0x173)](),!_0x2ec81e[_0x108736(0x327)]))return;let _0x34c114=Ta(_0x3a4250,_0xd04095[_0x108736(0x3ba)],()=>this[_0x108736(0x3a2)](_0x506bfa));if(!_0x34c114[_0x108736(0x2d2)]){_0x34c114['dispose']();return;}let _0x33899b=this[_0x108736(0x229)][_0x108736(0x228)](_0x34c114['initialRect'],_0x34c114[_0x108736(0x13d)],{'componentKey':_0x2d474f,'constrainToCanvas':!0x0,'direction':_0x108736(0x30f),'offset':[0x0,0x8],'extraProps':{'unitId':_0xd04095[_0x108736(0x2ea)],'subUnitId':_0xd04095[_0x108736(0x2d0)],'chartId':_0x506bfa,'drawingId':_0x506bfa,'element':_0x3a4250[_0x108736(0x377)],'target':_0x2ec81e['target'],'adapterKey':Ea}},_0xd04095[_0x108736(0x2ea)],_0xd04095[_0x108736(0x2d0)])??null;if(!_0x33899b){_0x34c114['dispose']();return;}let _0x1b1108=new _0x8d3d8();_0x1b1108[_0x108736(0x28e)](_0x33899b),_0x1b1108[_0x108736(0x28e)](_0x34c114),this[_0x108736(0x22a)]=_0x1b1108,this[_0x108736(0x28a)]=_0x506bfa,this[_0x108736(0x20d)]=_0x2253e9;}['_closePopup'](){const _0x144a97=_0x43ae1d;var _0x531285;(_0x531285=this['_popupDisposable'])==null||_0x531285[_0x144a97(0x37b)](),this[_0x144a97(0x22a)]=null,this['_popupChartId']=null,this[_0x144a97(0x20d)]=null;}['_clearSelectedTarget'](_0x1e3aba){const _0x4e2794=_0x43ae1d;!this['_chartUIService'][_0x4e2794(0x2e1)](_0x1e3aba)&&this[_0x4e2794(0x28a)]!==_0x1e3aba||(this[_0x4e2794(0x15f)][_0x4e2794(0x352)](),this[_0x4e2794(0x28a)]===_0x1e3aba&&this['_closePopup']());}[_0x43ae1d(0x3a2)](_0x833dc5){const _0x331c7a=_0x43ae1d;this[_0x331c7a(0x219)](_0x833dc5),this[_0x331c7a(0x15f)][_0x331c7a(0x2e1)](_0x833dc5)&&(this[_0x331c7a(0x35e)][_0x331c7a(0x2cb)](_0x833dc5,!0x1),this[_0x331c7a(0x35e)][_0x331c7a(0x2cb)](_0x833dc5,!0x0));}};Da=J([q(0x0,_0x44acc1(_0x595f50)),q(0x1,_0x44acc1(Y)),q(0x2,bi),q(0x3,_0x44acc1(_0x4d1f3b)),q(0x4,_0x44acc1(_0x53eb3b)),q(0x5,X),q(0x6,_0x44acc1(_0x235f09)),q(0x7,_0x54b7b3),q(0x8,_0x44acc1(_0x3a74b5))],Da);let Oa=class extends _0x54a426{constructor(_0x4d6326,_0x4bb621){const _0x2bd378=_0x43ae1d;super(),this['_componentManager']=_0x4d6326,this[_0x2bd378(0x272)]=_0x4bb621,this[_0x2bd378(0x27e)](),this[_0x2bd378(0x1cd)]();}['_registerIcons'](){const _0x3f2db2=_0x43ae1d;this[_0x3f2db2(0x143)](this[_0x3f2db2(0x272)][_0x3f2db2(0x3ad)]({'PenIcon':_0xd7ece7}));}['_registerComponents'](){const _0x54956c=_0x43ae1d;[[Fi,Pi]][_0x54956c(0x298)](([_0x351e17,_0x110021])=>{const _0x28ea26=_0x54956c;this['disposeWithMe'](this[_0x28ea26(0x161)]['register'](_0x351e17,_0x110021));});}};Oa=J([q(0x0,_0x44acc1(_0x3c2bc6)),q(0x1,_0x44acc1(_0x11a0ce))],Oa);let $=class extends _0x12fb9d{constructor(_0x94a05d=Nr,_0x173e8b,_0x5c4993,_0x289057){const _0x2c8b5d=_0x43ae1d;super(),this['_config']=_0x94a05d,this['_injector']=_0x173e8b,this['_configService']=_0x5c4993,this[_0x2c8b5d(0x2af)]=_0x289057,G(this,_0x2c8b5d(0x1e0),void 0x0);let {..._0x24a290}=_0x18eb9b({},Nr,this[_0x2c8b5d(0x114)]);this[_0x2c8b5d(0x1e0)]=_0x24a290,this[_0x2c8b5d(0x1c4)][_0x2c8b5d(0x2cc)](Mr,_0x24a290),this[_0x2c8b5d(0x384)]();}[_0x43ae1d(0x3b7)](){const _0x818280=_0x43ae1d;this[_0x818280(0x363)][_0x818280(0x28e)]([Oa]),this[_0x818280(0x363)][_0x818280(0x117)](Oa);let _0x3f4f17=this[_0x818280(0x363)],_0x16aad5=[[X,{'useClass':wi}],[bi,{'useClass':yi}],[fi],[Y],[da],[Bi],[Ui],[Wi],[la],[Xi],[ua]],_0x3e8dd5=[[Bi],[Wi],[Ui],[da],[X],[la],[Xi],[ua]];this[_0x818280(0x1e0)]['enableChartElementFloatMenu']&&(_0x16aad5[_0x818280(0x1b1)]([Da]),_0x3e8dd5[_0x818280(0x1b1)]([Da])),_0x16aad5[_0x818280(0x298)](_0x591f16=>_0x3f4f17[_0x818280(0x28e)](_0x591f16)),_0x39253b(this[_0x818280(0x363)],_0x3e8dd5);}['onRendered'](){const _0x20aa95=_0x43ae1d;var _0x4d04af;(_0x4d04af=this['_injector'][_0x20aa95(0x117)](Bi))==null||_0x4d04af[_0x20aa95(0x27f)]();}[_0x43ae1d(0x384)](){const _0x1d0ae1=_0x43ae1d;[W,Lr,Rr,zr,Br,U,Pr][_0x1d0ae1(0x298)](_0x27841d=>this[_0x1d0ae1(0x143)](this[_0x1d0ae1(0x2af)]['registerCommand'](_0x27841d)));}};G($,_0x43ae1d(0x1ad),_0x819f79['UNIVER_SHEET']),G($,_0x43ae1d(0x119),'UniverSheetsChartUIPlugin'),G($,_0x43ae1d(0x1ae),Vi),G($,_0x43ae1d(0x340),Hi),$=J([_0x133936(_0x2a21e7,_0x4be8e7,_0x5e0ab2,_0x11d84d,_0x48e88e,_0x591a44,_0x5d6970,_0x3ed4a9,_0x3da466),q(0x1,_0x44acc1(_0x3a74b5)),q(0x2,_0x1f3f65),q(0x3,_0x54b7b3)],$);export{X as ISheetsChartUIService,Mr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Bi as SheetsChartUIController,Qr as SheetsChartUIMenuSchema,wi as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin};
1
+ const _0xca568b=_0x28a2;(function(_0x562907,_0x44280d){const _0x44f301=_0x28a2,_0x5d57b6=_0x562907();while(!![]){try{const _0x26176b=-parseInt(_0x44f301(0x3cb))/0x1+parseInt(_0x44f301(0x1a1))/0x2+parseInt(_0x44f301(0x36b))/0x3+-parseInt(_0x44f301(0x2f5))/0x4*(-parseInt(_0x44f301(0x43d))/0x5)+-parseInt(_0x44f301(0x2ad))/0x6*(parseInt(_0x44f301(0x37b))/0x7)+parseInt(_0x44f301(0x3f1))/0x8+parseInt(_0x44f301(0x386))/0x9*(parseInt(_0x44f301(0x3dd))/0xa);if(_0x26176b===_0x44280d)break;else _0x5d57b6['push'](_0x5d57b6['shift']());}catch(_0x5e485b){_0x5d57b6['push'](_0x5d57b6['shift']());}}}(_0x3e2b,0xb0f20));import{CommandType as _0x901a74,DependentOn as _0x75347f,Disposable as _0x110283,DisposableCollection as _0x47b662,DrawingTypeEnum as _0x1dc4b2,FOCUSING_COMMON_DRAWINGS as _0x284d3d,FOCUSING_PANEL_EDITOR as _0x5ccab9,ICommandService as _0x5a9a36,IConfigService as _0x116807,IContextService as _0x2b586f,IUniverInstanceService as _0x46e33a,Inject as _0x2b7ebf,Injector as _0x34eb6c,LocaleService as _0x3ad976,Plugin as _0x327d6b,ThemeService as _0xa588aa,UniverInstanceType as _0x50b631,createIdentifier as _0x2d4252,debounce as _0x2132b5,generateRandomId as _0x4a5315,isValidRange as _0x55ef7f,merge as _0x37ac4e,numberToABC as _0xa3323e,toDisposable as _0xc69da6,touchDependencies as _0x548fbf}from'@univerjs/core';import{ChartModelService as _0x781fb3,ChartUpdateConfigCommand as _0x180bba,ChartUpdateConfigMutation as _0x1d8ae1,ChartUpdateSourceCommand as _0x2edcc4,InsertChartCommand as _0x438cd9,InsertSheetsChartMutation as _0x217994,RemoveSheetsChartMutation as _0x31720e,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x5a48a3,SHEETS_CHART_PLUGIN_NAME as _0x347d8f,SheetChartConfigAdapter as _0x14bce4,SheetsChartService as _0xb7f357,UniverSheetsChartPlugin as _0x3f74b2,getAllowedChartTypes as _0x14bcc6,toInsertChartMutationSource as _0x16c66f}from'@univerjs-pro/sheets-chart';import{IDrawingManagerService as _0x23c247,UniverDrawingPlugin as _0x1e792f,getDrawingShapeKeyByDrawingSearch as _0x3e2347,getOrCreateDrawingCopyPlan as _0x38f8fe}from'@univerjs/drawing';import{DrawingApplyType as _0x5c18f9,ISheetDrawingService as _0x124322,RemoveSheetDrawingCommand as _0x7fd27d,SetDrawingApplyMutation as _0x3866ba,UniverSheetsDrawingPlugin as _0x223cfa,transformToDrawingPosition as _0x3c121b}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x512cc9,SheetCanvasFloatDomManagerService as _0x48f4a3,SheetDrawingHitTestService as _0x548ade,UniverSheetsDrawingMobileUIPlugin as _0x1d2bf4,UniverSheetsDrawingUIPlugin as _0x1d075b}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x3e768c,ISheetClipboardService as _0x3c57bc,PREDEFINED_HOOK_NAME as _0x360986,SheetCanvasPopManagerService as _0x4aa645,SheetCopyCommand as _0x2f50ba,SheetPrintInterceptorService as _0x3fc87b,SheetSkeletonManagerService as _0x218d8c,UniverSheetsMobileUIPlugin as _0x42b49c,UniverSheetsUIPlugin as _0x290150,deriveStateFromActiveSheet$ as _0xb91ccc,getCurrentRangeDisable$ as _0x7b657b}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x364740,ComponentManager as _0x16eb50,ContextMenuGroup as _0xeb12f,ContextMenuPosition as _0x3e1e41,IMenuManagerService as _0x3ebd35,ISidebarService as _0xd6bb73,IconManager as _0x2f16d2,KeyCode as _0x5744b4,MenuItemType as _0x32a9bc,NativeTextEditorShortcutBehavior as _0x146e00,RibbonInsertGroup as _0x584736,UniverMobileUIPlugin as _0x28a947,getMenuHiddenObservable as _0x4fb29b,useDependency as _0x2b41d0,useObservable as _0x4561a1}from'@univerjs/ui';import{BehaviorSubject as _0x16eb2c,Observable as _0x441a4f,Subject as _0x1d042d,combineLatest as _0x3c6cb0,combineLatestWith as _0x28f114,debounceTime as _0x59ab39,distinctUntilChanged as _0x3c6b25,filter as _0x483739,fromEvent as _0x2e3bd5,map as _0xd28067,merge as _0x3fa440,pairwise as _0x5f076a,skip as _0x4c54ad,startWith as _0x4bd3e7,switchMap as _0x51b589,take as _0x55b78a,throttleTime as _0x1b536f,withLatestFrom as _0x546631}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x1fff77,CHART_HOST_BORDER_RADIUS as _0x3b4d08,CHART_TYPE_CATALOG as _0x489704,ChartAxisSection as _0x21b2fb,ChartCommonDataMappingSection as _0x308311,ChartDomFrame as _0x5a5cc2,ChartEditBlockTitle as _0x114623,ChartEditPanel as _0x1ace4b,ChartEditPanelSection as _0x2db269,ChartEditPanelTab as _0x5c4d69,ChartEditPanelTabs as _0x405993,ChartEditorCapability as _0x59d3bb,ChartEditorProvider as _0x527efa,ChartElementFloatMenuAdapterRegistry as _0x4b0b38,ChartFrameContentMode as _0x52688,ChartFrameLayout as _0x3f7b33,ChartFunnelStyleSection as _0xe1359c,ChartGradientFillField as _0x23b483,ChartGridlinesAndTicksSection as _0x524836,ChartHeatmapStyleSection as _0x27b74d,ChartHostAdapter as _0x10f55f,ChartImageExportService as _0x4aa169,ChartIndicatorLineSection as _0xd050ed,ChartLegendSection as _0x3e358e,ChartLineAndAreaSection as _0x282c08,ChartNumberFormatAtom as _0x2e8e1e,ChartParetoSeriesSection as _0x2de80d,ChartPieStyleSection as _0xd82e6f,ChartRadarStyleSection as _0x21a72f,ChartRelationStyleSection as _0x28a800,ChartSectionAccordion as _0x4b3c95,ChartSectionAccordionContent as _0x10e497,ChartSectionAccordionItem as _0x464020,ChartSectionAccordionTrigger as _0x51fc53,ChartSeriesSection as _0xf65fa1,ChartStackField as _0x3a8440,ChartStyleSection as _0x22c00b,ChartThemeField as _0x3ef36c,ChartTitlesSection as _0x10905c,ChartTrendlineSection as _0x2eba1e,ChartTypeField as _0x42165a,ChartTypeSpecificDataSection as _0x2e34e5,ChartTypeSpecificSetupSection as _0x5a3ad4,ChartTypeSpecificStyleSection as _0x485569,ChartUIService as _0x11b0f5,ChartViewStateRegistry as _0x10f33b,ChartWaterfallSetupFields as _0x5d390c,ChartWaterfallStyleSection as _0x291bbf,ChartWordCloudStyleSection as _0x822830,DEFAULT_CHART_AXIS_VALUES as _0x16ed26,DEFAULT_CHART_FUNNEL_VALUES as _0x175ef0,DEFAULT_CHART_HEATMAP_VALUES as _0x1d2cd9,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x1dd226,DEFAULT_CHART_LEGEND_VALUES as _0x4d1df9,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x57770f,DEFAULT_CHART_PARETO_VALUES as _0x23c6ff,DEFAULT_CHART_PIE_VALUES as _0x5a4fba,DEFAULT_CHART_RADAR_VALUES as _0x42178d,DEFAULT_CHART_RELATION_VALUES as _0x1c2f0d,DEFAULT_CHART_SERIES_VALUES as _0x820d3d,DEFAULT_CHART_STYLE_VALUES as _0xf3605b,DEFAULT_CHART_TITLE_VALUES as _0x2946a4,DEFAULT_CHART_TRENDLINE_VALUES as _0x37aaa1,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x251a93,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0xba125f,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4f9d89,MobileChartEditorProvider as _0x282e27,UniverChartMobileUIPlugin as _0x3cd5fc,UniverChartUIPlugin as _0x29446d,buildChartTypeSelectOptions as _0x3e2b77,chartTypeSupportsCapability as _0x5c782b,chartTypeSupportsLineAndAreaStyle as _0x1128f1,createChartElementFloatMenuAdapter as _0x38fe22,resolveChartCreationIntent as _0x1d9cca,resolveChartEditPanelRoute as _0x498bfb,resolveChartElementSelection as _0x32b31e,useChartEditorChartType as _0x3cdaa0,useChartEditorHasRightAxis as _0x44523d}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x3ec9cf,ChartImageExportFormat as _0x3459c1,ChartImageSourceType as _0x44200d,ChartRenderMode as _0x13effc,ChartSourceHeaderTitleType as _0x4c1868,ChartThemeService as _0x5c00e3,ChartTypeBits as _0xd24882,ChartWaterfallStyleTarget as _0x129870,DataOrientation as _0x389e65,EChartRenderEngineName as _0x5bf36d,IChartRenderModelManagerService as _0x5d8531,ImageChartHost as _0x3e25ad,PieSecondaryPlotType as _0x32ddf9,RTLChartStyle as _0x5aa36e,chartBitsUtils as _0x3ede69,chartImageSourceToDataUrl as _0x1ee32c,chartTypeCanUseTrendLine as _0x51cc42,resolveChartRuntimeStyle as _0x2dbc64,resolveChartStyleBackgroundColor as _0x490695,resolveDefaultChartHostFrameStyle as _0x3b0e43}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x564b78,RemoveSheetCommand as _0xce777d,SheetInterceptorService as _0x30d687,SheetPermissionCheckController as _0x49ff14,SheetSkeletonService as _0x225140,SheetsSelectionsService as _0x27be9b,UniverSheetsPlugin as _0x3fd6e8,WorkbookEditablePermission as _0xd0e974,WorksheetEditPermission as _0x437d18,attachRangeWithCoord as _0x2f01d5,discreteRangeToRange as _0x2b8b50,getSheetCommandTarget as _0x5413b8}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x1b0b9d,matchToken as _0x3427c4,serializeRangeWithSheet as _0x27d138}from'@univerjs/engine-formula';import{insertGroupObject as _0x36767e}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x16b88b,IRenderManagerService as _0x52b878,ObjectType as _0xd8dccc,RENDER_CLASS_TYPE as _0x26103c,Rect as _0x43b5eb,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x583ffa,Transform as _0x6b3b55,UniverRenderEnginePlugin as _0x8fec38}from'@univerjs/engine-render';import{useCallback as _0x1237c0,useEffect as _0x397741,useMemo as _0x32aaef,useRef as _0x5410e6,useState as _0x758b4d}from'react';import{Button as _0x47a323,Checkbox as _0x52ebba}from'@univerjs/design';import{MobileRangeSelector as _0x2ede0d,RangeSelector as _0x578873}from'@univerjs/sheets-formula-ui';import{Fragment as _0x1e5c7c,jsx as _0x2897c9,jsxs as _0x5a92d2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x47aa2e}from'@univerjs-pro/license';import{PenIcon as _0x54078f}from'@univerjs/icons';const H={'type':_0x901a74[_0xca568b(0x25f)],'id':'sheet.operation.open-chart-panel','handler'(){return!0x0;}},jr=_0xca568b(0x296),Mr={'enableChartElementFloatMenu':!0x0},Nr={'type':_0x901a74[_0xca568b(0x25f)],'id':_0xca568b(0x1ae),'handler'(){return!0x0;}};function Pr(_0x31fdae){const _0x35424d=_0xca568b;let _0x565a23=_0x31fdae[_0x35424d(0x29a)](_0x124322)[_0x35424d(0x458)]();if(_0x565a23[_0x35424d(0x3c2)]!==0x1)return null;let _0x4ff2c4=_0x565a23[0x0];return _0x4ff2c4[_0x35424d(0x2ac)]===_0x1dc4b2[_0x35424d(0x1b7)]?_0x4ff2c4:null;}function Fr(_0x5a328e,_0x2ffb76){const _0x132b9c=_0xca568b;let _0x4f93a6=document['createElement']('a');_0x4f93a6[_0x132b9c(0x389)]=_0x5a328e,_0x4f93a6[_0x132b9c(0x2db)]=_0x2ffb76,_0x4f93a6['click']();}const Ir={'id':_0xca568b(0x1e5),'type':_0x901a74[_0xca568b(0x208)],'handler':(_0x760e17,_0xc41699)=>{const _0x2ef1ca=_0xca568b;let _0x549a34=Pr(_0x760e17);return _0x549a34?_0x760e17[_0x2ef1ca(0x29a)](_0x5a9a36)[_0x2ef1ca(0x304)](H['id'],{'unitId':_0x549a34[_0x2ef1ca(0x2f9)],'subUnitId':_0x549a34[_0x2ef1ca(0x254)],'drawingId':_0x549a34[_0x2ef1ca(0x22a)],..._0xc41699!=null&&_0xc41699[_0x2ef1ca(0x3ae)]?{'route':_0xc41699['route']}:{}}):!0x1;}},Lr={'id':_0xca568b(0x297),'type':_0x901a74[_0xca568b(0x208)],'handler':_0x364c41=>Pr(_0x364c41)?_0x364c41[_0xca568b(0x29a)](_0x5a9a36)['executeCommand'](_0x2f50ba['id']):!0x1},Rr={'id':_0xca568b(0x2a6),'type':_0x901a74[_0xca568b(0x208)],'handler':async _0x28016f=>{const _0x4f3b3e=_0xca568b;let _0x6de0f6=Pr(_0x28016f);if(!_0x6de0f6)return!0x1;let _0x4b671d=await _0x28016f[_0x4f3b3e(0x29a)](_0x4aa169)['exportImage']({'unitId':_0x6de0f6[_0x4f3b3e(0x2f9)],'subUnitId':_0x6de0f6[_0x4f3b3e(0x254)],'getId':()=>_0x6de0f6[_0x4f3b3e(0x22a)]});return _0x4b671d?(Fr(_0x4b671d,_0x6de0f6['drawingId']+_0x4f3b3e(0x279)),!0x0):!0x1;}},zr={'id':_0xca568b(0x299),'type':_0x901a74[_0xca568b(0x208)],'handler':_0x1258a1=>{const _0x124c53=_0xca568b;let _0x40dafc=Pr(_0x1258a1);return _0x40dafc?_0x1258a1[_0x124c53(0x29a)](_0x5a9a36)[_0x124c53(0x304)](_0x7fd27d['id'],{'unitId':_0x40dafc['unitId'],'drawings':[{'unitId':_0x40dafc[_0x124c53(0x2f9)],'subUnitId':_0x40dafc[_0x124c53(0x254)],'drawingId':_0x40dafc[_0x124c53(0x22a)],'drawingType':_0x1dc4b2[_0x124c53(0x1b7)]}]}):!0x1;}},U={'type':_0x901a74[_0xca568b(0x208)],'id':_0xca568b(0x364),'handler':async(_0x1d2161,_0x4957d3)=>{const _0x197db4=_0xca568b;let _0x1cdc43=_0x5413b8(_0x1d2161[_0x197db4(0x29a)](_0x46e33a));if(!_0x1cdc43)return!0x1;let _0x324058=_0x1d2161['get'](_0x27be9b)['getCurrentLastSelection']();if(!_0x324058)return!0x1;let {range:_0x5dbd55}=_0x324058,_0x1377dc=_0x1d2161[_0x197db4(0x29a)](_0x5a9a36),{unitId:_0x5f21a1,subUnitId:_0x35fee5}=_0x1cdc43,{pieSecondaryPlotType:_0x242b07,value:_0x3be013}=_0x4957d3,_0x2cadfb=_0x242b07!==void 0x0;if(_0x2cadfb&&(_0x3be013!==_0xd24882[_0x197db4(0x1e8)]||_0x242b07!==_0x32ddf9[_0x197db4(0x1e8)]&&_0x242b07!==_0x32ddf9[_0x197db4(0x33e)]))return!0x1;let _0x596214=_0x2cadfb?_0x4a5315():void 0x0;return _0x1377dc[_0x197db4(0x304)](_0x438cd9['id'],{'unitId':_0x5f21a1,'subUnitId':_0x35fee5,'chartType':_0x3be013,..._0x596214&&_0x242b07?{'chartId':_0x596214,'config':{'unitId':_0x5f21a1,'chartModelId':_0x596214,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x242b07}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x5dbd55['unitId']??_0x5f21a1,'subUnitId':_0x5dbd55[_0x197db4(0x223)]??_0x35fee5,'range':_0x5dbd55}}});}};function Br(_0x2a6758,_0x3000cf){const _0x8467dc=_0xca568b;if(_0x2a6758==null)return'';if(Array[_0x8467dc(0x363)](_0x2a6758)){var _0x4c4c2b;let _0x44e41b=(_0x4c4c2b=_0x2a6758[0x0])==null?void 0x0:_0x4c4c2b[_0x8467dc(0x2e2)];return _0x44e41b?Vr(_0x44e41b,_0x3000cf):'';}return Vr(_0x2a6758[_0x8467dc(0x412)],_0x3000cf);}function Vr(_0x5aca80,_0x16c2dc){const _0x317ada=_0xca568b;var _0x3d6b2a;let {unitId:_0x2b8ac3,subUnitId:_0x9f2fa8,range:_0x10028a}=_0x5aca80,_0x2dfed7=(_0x3d6b2a=_0x16c2dc[_0x317ada(0x361)](_0x2b8ac3))==null?void 0x0:_0x3d6b2a[_0x317ada(0x21f)](_0x9f2fa8);if(!_0x2dfed7)return'';let _0x469c3e=_0x2dfed7[_0x317ada(0x3c1)]();return _0x27d138(_0x469c3e,_0x10028a);}const Hr=_0x489704[_0xca568b(0x226)](_0x290ce7=>({'id':'id'in _0x290ce7?_0x290ce7['id']:void 0x0,'labelId':_0x290ce7[_0xca568b(0x2a0)],'pieSecondaryPlotType':'pieSecondaryPlotType'in _0x290ce7?_0x290ce7['pieSecondaryPlotType']:void 0x0,'value':_0x290ce7[_0xca568b(0x2e3)],'icon':_0x290ce7[_0xca568b(0x27d)]}));function Ur(_0x4cd4c4=Hr){return _0x4cd4c4['map'](({id:_0x173472,icon:_0x223294,value:_0x4135b9})=>{const _0x2d781c=_0x28a2;let _0x43e203=_0x1d9cca(_0x173472??String(_0x4135b9)),_0x3368ea=_0x43e203?{'value':_0x43e203[_0x2d781c(0x436)],..._0x43e203[_0x2d781c(0x344)]?{'pieSecondaryPlotType':_0x43e203['pieSecondaryPlotType']}:{}}:{'value':_0x4135b9};return{'icon':_0x223294,'value':_0x173472??_0x4135b9,'params':_0x3368ea};});}const Wr=(_0xd33c8d,_0x483889)=>{const _0x1e1dec=_0xca568b;if(_0x483889[_0x1e1dec(0x3c2)]===0x1&&_0x483889[0x0]===_0x1e1dec(0x1eb))return _0xd33c8d;if(_0x483889[_0x1e1dec(0x3c2)]>0x1){let _0x18d84d=new Set();for(let _0x209cfe of _0x483889)_0x18d84d[_0x1e1dec(0x36f)](Number(_0x209cfe));return _0xd33c8d[_0x1e1dec(0x37d)](_0x273988=>_0x18d84d['has'](_0x273988[_0x1e1dec(0x2e3)]));}return[];};function Gr(_0x1b2229){const _0x451dcc=_0xca568b;let _0x3975c8=_0x1b2229['get'](_0x46e33a),_0x2957bc=_0x14bcc6(_0x1b2229),_0x45446c=Wr(Hr[_0x451dcc(0x42d)](),_0x2957bc),_0x1caea4=Ur(_0x45446c)[_0x451dcc(0x226)]((_0x4ba6b7,_0x5e4370)=>({'icon':_0x4ba6b7[_0x451dcc(0x1b8)],'value':_0x4ba6b7[_0x451dcc(0x2e3)],'params':_0x4ba6b7[_0x451dcc(0x2f1)],'label':_0x451dcc(0x43c)+_0x45446c[_0x5e4370]['labelId']}));return{'id':U['id'],'type':_0x32a9bc['SELECTOR'],'selectionsCommandId':U['id'],'selections':_0x1caea4,'icon':_0x451dcc(0x255),'tooltip':'sheets-chart-ui.common.insertChart','activated$':_0xb91ccc(_0x3975c8,!0x1,()=>new _0x441a4f(_0x25bda5=>{_0x25bda5['next'](!0x1);})),'hidden$':_0x4fb29b(_0x1b2229,_0x50b631[_0x451dcc(0x2f0)]),'disabled$':_0x7b657b(_0x1b2229)};}function Kr(_0x57ffcd){const _0x5c21c5=_0xca568b;let _0x5cb09c=_0x57ffcd[_0x5c21c5(0x29a)](_0x124322);return _0x5cb09c[_0x5c21c5(0x2f2)][_0x5c21c5(0x2d3)](_0x4bd3e7(_0x5cb09c[_0x5c21c5(0x458)]()),_0xd28067(()=>Pr(_0x57ffcd)==null));}function qr(_0x128cb4){const _0x362aef=_0xca568b;return{'id':Ir['id'],'commandId':Ir['id'],'type':_0x32a9bc[_0x362aef(0x36e)],'title':_0x128cb4[_0x362aef(0x29a)](_0x3ad976)['t'](_0x362aef(0x227)),'icon':'PenIcon','hidden$':Kr(_0x128cb4)};}function Jr(_0x832a9){const _0x5138a6=_0xca568b;return{'id':Lr['id'],'commandId':Lr['id'],'type':_0x32a9bc[_0x5138a6(0x36e)],'title':_0x832a9[_0x5138a6(0x29a)](_0x3ad976)['t'](_0x5138a6(0x424)),'icon':'CopyDoubleIcon','hidden$':Kr(_0x832a9)};}function Yr(_0xee0d8b){const _0x5e4e7b=_0xca568b;return{'id':Rr['id'],'commandId':Rr['id'],'type':_0x32a9bc['BUTTON'],'title':_0xee0d8b[_0x5e4e7b(0x29a)](_0x3ad976)['t']('sheets-chart-ui.common.exportImage'),'icon':'DownloadImageIcon','hidden$':Kr(_0xee0d8b)};}function Xr(_0x52d030){const _0x171173=_0xca568b;return{'id':zr['id'],'commandId':zr['id'],'type':_0x32a9bc[_0x171173(0x36e)],'title':_0x52d030[_0x171173(0x29a)](_0x3ad976)['t'](_0x171173(0x370)),'icon':_0x171173(0x39b),'hidden$':Kr(_0x52d030)};}const Zr={[_0x584736[_0xca568b(0x348)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Gr}},[_0x3e1e41[_0xca568b(0x31d)]]:{[_0xeb12f[_0xca568b(0x34d)]]:{[Ir['id']]:{'order':0x0,'menuItemFactory':qr},[Lr['id']]:{'order':0x1,'menuItemFactory':Jr},[Rr['id']]:{'order':0x3,'menuItemFactory':Yr},[zr['id']]:{'order':0x4,'menuItemFactory':Xr}}}};function Qr(_0x1ce052){const _0x2ddfe3=_0xca568b;return _0x1ce052===_0xd24882['Combination']||_0x1ce052===_0xd24882[_0x2ddfe3(0x1c8)]||_0x1ce052===_0xd24882[_0x2ddfe3(0x335)]||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x2fe)])||_0x3ede69['baseOn'](_0x1ce052,_0xd24882[_0x2ddfe3(0x38c)])||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x2af)])||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x259)]);}function $r(_0x594ff4){const _0xb1dbfb=_0xca568b;return Qr(_0x594ff4)||_0x3ede69['baseOn'](_0x594ff4,_0xd24882['Pie'])||_0x3ede69[_0xb1dbfb(0x45c)](_0x594ff4,_0xd24882[_0xb1dbfb(0x244)])||_0x3ede69[_0xb1dbfb(0x45c)](_0x594ff4,_0xd24882[_0xb1dbfb(0x3c4)]);}function ei(_0x1ee4e5,_0xafb01c){const _0x2d1565=_0xca568b;let _0x1059c7=_0x32b31e(_0x1ee4e5,_0xafb01c),_0x2fdcf7=_0x1059c7?_0x498bfb(_0x1059c7[_0x2d1565(0x2b0)]):void 0x0;if(_0x1059c7&&_0x2fdcf7)return{..._0x1059c7,'route':_0x2fdcf7,'showFloatMenu':$r(_0x1ee4e5[_0x2d1565(0x436)])&&_0x1059c7[_0x2d1565(0x36c)]};}function ti(_0xe5e936,_0x44576d=0x1){const _0x374e94=_0xca568b;return{'width':Math[_0x374e94(0x3ea)](_0x44576d,_0xe5e936['width']),'height':Math[_0x374e94(0x3ea)](_0x44576d,_0xe5e936['height'])};}function ni(_0x5c9b0e,_0x385093={},_0x3b77d6={'left':0x0,'top':0x0}){const _0x20d80d=_0xca568b;let _0x22045b=_0x385093['scaleX']??0x1,_0x229acd=_0x385093['scaleY']??0x1,_0x384954=_0x3f7b33[_0x20d80d(0x3d6)]({'logicalOuterRect':{'left':_0x3b77d6[_0x20d80d(0x2c3)]>0x0?-_0x3b77d6[_0x20d80d(0x2c3)]:0x0,'top':_0x3b77d6[_0x20d80d(0x45a)]>0x0?-_0x3b77d6['top']:0x0,...ti(_0x5c9b0e)},'scale':{'scaleX':_0x22045b,'scaleY':_0x229acd},'hostStyle':{},'contentMode':_0x52688[_0x20d80d(0x305)]});return{'left':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x2c3)],'top':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x45a)],'width':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x285)],'height':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x3ce)],'scaleX':_0x22045b,'scaleY':_0x229acd};}function ri(_0x301ed1){'@babel/helpers - typeof';const _0x56285f=_0xca568b;return ri=typeof Symbol=='function'&&typeof Symbol[_0x56285f(0x3a0)]==_0x56285f(0x449)?function(_0x4f1b03){return typeof _0x4f1b03;}:function(_0x5b6982){const _0x5ab881=_0x56285f;return _0x5b6982&&typeof Symbol=='function'&&_0x5b6982[_0x5ab881(0x30d)]===Symbol&&_0x5b6982!==Symbol['prototype']?_0x5ab881(0x449):typeof _0x5b6982;},ri(_0x301ed1);}function ii(_0x1fb096,_0x518fcc){const _0x18da97=_0xca568b;if(ri(_0x1fb096)!=_0x18da97(0x38e)||!_0x1fb096)return _0x1fb096;var _0xfc8162=_0x1fb096[Symbol[_0x18da97(0x42a)]];if(_0xfc8162!==void 0x0){var _0x5c62a4=_0xfc8162[_0x18da97(0x2b9)](_0x1fb096,_0x518fcc||'default');if(ri(_0x5c62a4)!=_0x18da97(0x38e))return _0x5c62a4;throw TypeError(_0x18da97(0x1c5));}return(_0x518fcc==='string'?String:Number)(_0x1fb096);}function ai(_0x108d17){const _0x4aa397=_0xca568b;var _0x44aa4e=ii(_0x108d17,_0x4aa397(0x25e));return ri(_0x44aa4e)==_0x4aa397(0x449)?_0x44aa4e:_0x44aa4e+'';}function W(_0x172a6d,_0x4ed37b,_0x6c71da){const _0x191904=_0xca568b;return(_0x4ed37b=ai(_0x4ed37b))in _0x172a6d?Object[_0x191904(0x3be)](_0x172a6d,_0x4ed37b,{'value':_0x6c71da,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x172a6d[_0x4ed37b]=_0x6c71da,_0x172a6d;}function oi(_0x1050b5){const _0x424353=_0xca568b;switch(_0x1050b5[_0x424353(0x1bc)]){case _0x44200d['Canvas']:return _0x1050b5[_0x424353(0x3d7)];case _0x44200d[_0x424353(0x1fe)]:return _0x1050b5[_0x424353(0x1c1)];default:return;}}var si=class extends _0x43b5eb{constructor(_0xaacee3,_0x47b14d,_0x560caf,_0x19851d=()=>!0x1,_0x11e086=()=>{}){const _0x13f48a=_0xca568b;super(_0xaacee3,{..._0x47b14d,'evented':_0x47b14d[_0x13f48a(0x27b)]??!0x0}),this[_0x13f48a(0x34b)]=_0x560caf,this[_0x13f48a(0x238)]=_0x19851d,this[_0x13f48a(0x323)]=_0x11e086,W(this,_0x13f48a(0x3c5),null),W(this,_0x13f48a(0x2b7),null),W(this,_0x13f48a(0x462),null),W(this,_0x13f48a(0x1ad),null),this[_0x13f48a(0x246)](_0xd8dccc[_0x13f48a(0x1ba)]);}[_0xca568b(0x406)](){const _0x2cacc9=_0xca568b;this[_0x2cacc9(0x414)](),this[_0x2cacc9(0x3c5)]=null,this[_0x2cacc9(0x2b7)]=null,this[_0x2cacc9(0x462)]=null,this[_0x2cacc9(0x323)](),super[_0x2cacc9(0x406)]();}[_0xca568b(0x23d)](_0x51c217,_0x9e7bdb){const _0x509567=_0xca568b;if(!this[_0x509567(0x1a0)])return this[_0x509567(0x30e)](!0x1),this;if(this['_shouldSuppressRender']()){let _0x41e41c=this[_0x509567(0x34b)]();return _0x41e41c&&this['_getDrawable'](_0x41e41c),this[_0x509567(0x30e)](!0x1),this;}if(!this[_0x509567(0x21c)])return this;let {width:_0x1910cb,height:_0x301b9e,left:_0x19c1c4,top:_0x1ade6b}=this['getRealBound']();if(this[_0x509567(0x24a)](_0x9e7bdb)){let {top:_0x5c6894,left:_0x565979,bottom:_0x246378,right:_0x5a4977}=_0x9e7bdb[_0x509567(0x3b4)];if(_0x1910cb+this[_0x509567(0x37a)]+_0x19c1c4<_0x565979||_0x5a4977<_0x19c1c4||_0x301b9e+this['strokeWidth']+_0x1ade6b<_0x5c6894||_0x246378<_0x1ade6b)return this;}let _0x26194c=this[_0x509567(0x21c)]['getMatrix']();_0x51c217[_0x509567(0x404)]();let _0x4fad52=_0x19c1c4+_0x1910cb/0x2,_0x61b4dd=_0x1ade6b+_0x301b9e/0x2;return _0x51c217['transform'](_0x26194c[0x0],_0x26194c[0x1],_0x26194c[0x2],_0x26194c[0x3],_0x4fad52,_0x61b4dd),this[_0x509567(0x2d6)]!==0x1&&(_0x51c217['globalAlpha']=this[_0x509567(0x2d6)]),this[_0x509567(0x1e7)](_0x51c217,void 0x0,_0x1910cb,_0x301b9e),_0x51c217[_0x509567(0x3a3)](),this[_0x509567(0x30e)](!0x1),this;}[_0xca568b(0x1e7)](_0x147583,_0x3e1c64,_0x8b5a69=this['width'],_0x10a1f7=this[_0xca568b(0x3ce)]){const _0x2d887c=_0xca568b;this[_0x2d887c(0x2fc)](_0x147583,_0x8b5a69,_0x10a1f7,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x2d887c(0x3a6)](_0x147583,_0x8b5a69,_0x10a1f7),this['_drawChartFrame'](_0x147583,_0x8b5a69,_0x10a1f7,{'fill':void 0x0});}['_drawChartFrame'](_0x5c828b,_0xe1c36c,_0x17d99c,_0x5a0197){const _0x2f85cf=_0xca568b;_0x5c828b[_0x2f85cf(0x404)](),_0x5c828b[_0x2f85cf(0x1c6)](-_0xe1c36c/0x2,-_0x17d99c/0x2),_0x43b5eb[_0x2f85cf(0x3f7)](_0x5c828b,ci(this,_0xe1c36c,_0x17d99c,_0x5a0197)),_0x5c828b[_0x2f85cf(0x3a3)]();}[_0xca568b(0x29c)](_0x46fdba){const _0x53aa43=_0xca568b;let {left:_0x56d25a,top:_0x28cbf5,width:_0x2c2678,height:_0x47cd51}=this[_0x53aa43(0x309)](),_0x10df8b=_0x56d25a+_0x2c2678/0x2,_0x1a9f60=_0x28cbf5+_0x47cd51/0x2,_0xf89efd=this['transform'][_0x53aa43(0x34f)](),_0x377bc4=new _0x6b3b55([_0xf89efd[0x0],_0xf89efd[0x1],_0xf89efd[0x2],_0xf89efd[0x3],_0x10df8b,_0x1a9f60]),_0x4d5e48=this[_0x53aa43(0x1cd)](),_0x5ef7db=(this['isInGroup']&&(_0x4d5e48==null?void 0x0:_0x4d5e48[_0x53aa43(0x403)])===_0x26103c[_0x53aa43(0x3a9)]?_0x4d5e48[_0x53aa43(0x1e9)]['multiply'](_0x377bc4):_0x377bc4)['invert']()[_0x53aa43(0x3bf)](_0x46fdba),_0x444178=_0x2c2678/0x2,_0x218ad5=_0x47cd51/0x2;return _0x5ef7db['x']>=-_0x444178-this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['x']<=_0x444178+this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['y']>=-_0x218ad5-this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['y']<=_0x218ad5+this[_0x53aa43(0x37a)]/0x2;}[_0xca568b(0x3a6)](_0x4cda24,_0x44d819,_0x5aca3e){const _0x315f0c=_0xca568b;let _0x1dd623=this['_getImage'](),_0x500eef=_0x1dd623?this[_0x315f0c(0x24b)](_0x1dd623):void 0x0;if(!_0x500eef)return;let {width:_0x257910,height:_0x224e5f}=ti({'width':_0x44d819,'height':_0x5aca3e},0x0);_0x257910!==0x0&&_0x224e5f!==0x0&&(_0x4cda24['save'](),_0x4cda24['translate'](-_0x44d819/0x2,-_0x5aca3e/0x2),li(_0x4cda24,_0x257910,_0x224e5f,this['radius']),_0x4cda24[_0x315f0c(0x45b)](),_0x4cda24[_0x315f0c(0x2ff)](_0x500eef,0x0,0x0,_0x257910,_0x224e5f),_0x4cda24[_0x315f0c(0x3a3)]());}[_0xca568b(0x24b)](_0x570887){const _0x37d161=_0xca568b;var _0x8723bb;let _0x148c55=oi(_0x570887);if(_0x148c55)return _0x148c55;if(_0x570887['type']===_0x44200d[_0x37d161(0x3b0)]&&(this[_0x37d161(0x462)]!==_0x570887[_0x37d161(0x20f)]&&(this[_0x37d161(0x462)]=_0x570887[_0x37d161(0x20f)],this[_0x37d161(0x414)](),this[_0x37d161(0x2b7)]!==_0x570887[_0x37d161(0x20f)]&&this[_0x37d161(0x291)](_0x570887[_0x37d161(0x20f)])),(_0x8723bb=this[_0x37d161(0x3c5)])!=null&&_0x8723bb['complete']&&this[_0x37d161(0x3c5)]['naturalWidth']>0x0&&this['_urlImage'][_0x37d161(0x282)]>0x0))return this[_0x37d161(0x3c5)];}['_loadUrlImage'](_0x8fb6de){const _0x502d27=_0xca568b;let _0x4ac437=document['createElement'](_0x502d27(0x236));this[_0x502d27(0x1ad)]=_0x4ac437,_0x4ac437[_0x502d27(0x209)]=_0x502d27(0x35f),_0x4ac437[_0x502d27(0x22c)]=()=>{const _0x36cab7=_0x502d27;this[_0x36cab7(0x462)]===_0x8fb6de&&this[_0x36cab7(0x1ad)]===_0x4ac437&&(_0x4ac437[_0x36cab7(0x313)]>0x0&&_0x4ac437['naturalHeight']>0x0&&(this[_0x36cab7(0x2b7)]=_0x8fb6de,this[_0x36cab7(0x3c5)]=_0x4ac437),this[_0x36cab7(0x414)](),this[_0x36cab7(0x30e)](!0x0));},_0x4ac437[_0x502d27(0x3ca)]=()=>{const _0x54c7cc=_0x502d27;this[_0x54c7cc(0x1ad)]===_0x4ac437&&this['_clearPendingUrlImage']();},_0x4ac437[_0x502d27(0x450)]=_0x8fb6de;}['_clearPendingUrlImage'](){const _0xec1012=_0xca568b;this[_0xec1012(0x1ad)]&&=(this[_0xec1012(0x1ad)][_0xec1012(0x22c)]=null,this[_0xec1012(0x1ad)]['onerror']=null,null);}};function ci(_0x18e41b,_0x19d39a,_0x2d2486,_0x5f5d63){const _0x1f0761=_0xca568b;let _0x588afd=Object[_0x1f0761(0x393)](_0x18e41b);return Object[_0x1f0761(0x3be)](_0x588afd,_0x1f0761(0x285),{'value':_0x19d39a}),Object[_0x1f0761(0x3be)](_0x588afd,_0x1f0761(0x3ce),{'value':_0x2d2486}),Object[_0x1f0761(0x2a3)](_0x5f5d63)[_0x1f0761(0x308)](_0x3f02a3=>{const _0x35671f=_0x1f0761;Object[_0x35671f(0x3be)](_0x588afd,_0x3f02a3,{'value':_0x5f5d63[_0x3f02a3]});}),_0x588afd;}function li(_0x1fd668,_0x1f58bd,_0x27a96d,_0x3e1e63){const _0x7dc10b=_0xca568b;let _0x54357e=Math[_0x7dc10b(0x2ea)](_0x3e1e63||0x0,_0x1f58bd/0x2,_0x27a96d/0x2);if(_0x1fd668[_0x7dc10b(0x1be)](),!_0x54357e){_0x1fd668[_0x7dc10b(0x351)](0x0,0x0,_0x1f58bd,_0x27a96d),_0x1fd668[_0x7dc10b(0x2e7)]();return;}_0x1fd668[_0x7dc10b(0x378)](_0x54357e,0x0),_0x1fd668['lineTo'](_0x1f58bd-_0x54357e,0x0),_0x1fd668['arc'](_0x1f58bd-_0x54357e,_0x54357e,_0x54357e,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fd668[_0x7dc10b(0x376)](_0x1f58bd,_0x27a96d-_0x54357e),_0x1fd668[_0x7dc10b(0x249)](_0x1f58bd-_0x54357e,_0x27a96d-_0x54357e,_0x54357e,0x0,Math['PI']/0x2,!0x1),_0x1fd668['lineTo'](_0x54357e,_0x27a96d),_0x1fd668[_0x7dc10b(0x249)](_0x54357e,_0x27a96d-_0x54357e,_0x54357e,Math['PI']/0x2,Math['PI'],!0x1),_0x1fd668['lineTo'](0x0,_0x54357e),_0x1fd668['arc'](_0x54357e,_0x54357e,_0x54357e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fd668[_0x7dc10b(0x2e7)]();}function G(_0x3397ae){const _0x3f9df4=_0xca568b;(_0x3397ae==null?void 0x0:_0x3397ae[_0x3f9df4(0x1bc)])===_0x44200d[_0x3f9df4(0x1fe)]&&_0x3397ae[_0x3f9df4(0x1c1)][_0x3f9df4(0x3dc)]();}function ui(_0x4f3136){const _0x2ea839=_0xca568b;return _0x4f3136[_0x2ea839(0x2f9)]+_0x2ea839(0x441)+_0x4f3136[_0x2ea839(0x254)]+_0x2ea839(0x441)+_0x4f3136[_0x2ea839(0x400)];}function _0x28a2(_0x30a4fa,_0x3abbd3){_0x30a4fa=_0x30a4fa-0x19e;const _0x3e2b33=_0x3e2b();let _0x28a2fd=_0x3e2b33[_0x30a4fa];return _0x28a2fd;}var di=class extends _0x110283{constructor(..._0x13d260){super(..._0x13d260),W(this,'_entries',new Map());}['nextVersion'](_0x25f630){const _0x2e1f0c=_0xca568b;let _0x3ac7c1=ui(_0x25f630),_0xfd11a1=this['_entries']['get'](_0x3ac7c1)??{'version':0x0};return _0xfd11a1[_0x2e1f0c(0x337)]+=0x1,this['_entries'][_0x2e1f0c(0x210)](_0x3ac7c1,_0xfd11a1),_0xfd11a1[_0x2e1f0c(0x337)];}[_0xca568b(0x314)](_0x30c46e,_0x32551b){const _0x2b3865=_0xca568b;var _0x3664d1;return((_0x3664d1=this[_0x2b3865(0x1ff)]['get'](ui(_0x30c46e)))==null?void 0x0:_0x3664d1['version'])===_0x32551b;}[_0xca568b(0x43e)](_0x38cfde,_0x1dfeaa,_0x5cd854){const _0x5261b0=_0xca568b;if(!this['isLatest'](_0x38cfde,_0x5cd854))return G(_0x1dfeaa),!0x1;let _0x40747c=ui(_0x38cfde),_0x879839=this[_0x5261b0(0x1ff)][_0x5261b0(0x29a)](_0x40747c)??{'version':_0x5cd854},_0x5ab869=_0x879839[_0x5261b0(0x384)];return _0x879839['image']=_0x1dfeaa,_0x879839['version']=_0x5cd854,this[_0x5261b0(0x1ff)][_0x5261b0(0x210)](_0x40747c,_0x879839),_0x5ab869!==_0x1dfeaa&&G(_0x5ab869),!0x0;}[_0xca568b(0x267)](_0x45415e){const _0x48ed15=_0xca568b;var _0x45bc00;return(_0x45bc00=this[_0x48ed15(0x1ff)]['get'](ui(_0x45415e)))==null?void 0x0:_0x45bc00['image'];}[_0xca568b(0x20d)](_0x3aa9cb){const _0x4c8d36=_0xca568b;let _0xa4c2e9=ui(_0x3aa9cb),_0x3bf685=this['_entries'][_0x4c8d36(0x29a)](_0xa4c2e9);_0x3bf685&&(G(_0x3bf685[_0x4c8d36(0x384)]),this['_entries'][_0x4c8d36(0x28b)](_0xa4c2e9));}[_0xca568b(0x329)](_0x21cc9d){const _0x54312e=_0xca568b;for(let [_0x4338bb,_0x2be315]of this[_0x54312e(0x1ff)])_0x4338bb[_0x54312e(0x3d8)](_0x54312e(0x441)+_0x21cc9d)&&(G(_0x2be315['image']),this[_0x54312e(0x1ff)]['delete'](_0x4338bb));}[_0xca568b(0x406)](){const _0x329d50=_0xca568b;this[_0x329d50(0x1ff)][_0x329d50(0x308)](_0x1932a2=>G(_0x1932a2[_0x329d50(0x384)])),this[_0x329d50(0x1ff)][_0x329d50(0x2a4)](),super[_0x329d50(0x406)]();}};function fi(_0x6ee5d7,_0x274e5b=0x7d0){let _0x25daa5=null,_0x19a0ed=null,_0x2e3864=!0x1,_0x500ed5=()=>{},_0x56eba8=()=>{_0x25daa5!=null&&(clearInterval(_0x25daa5),_0x25daa5=null),_0x19a0ed!=null&&(clearTimeout(_0x19a0ed),_0x19a0ed=null);};return{'promise':new Promise((_0x135d2e,_0x381667)=>{_0x500ed5=_0x381667;let _0xb694b2=()=>{const _0xde12e0=_0x28a2;let _0x558575=document[_0xde12e0(0x2fd)](_0x6ee5d7);_0x558575&&!_0x2e3864&&(_0x2e3864=!0x0,_0x56eba8(),_0x135d2e(_0x558575));};_0xb694b2(),!_0x2e3864&&(_0x25daa5=setInterval(_0xb694b2,16.666666666666668),_0x19a0ed=setTimeout(()=>{const _0x125c83=_0x28a2;_0x2e3864||(_0x2e3864=!0x0,_0x56eba8(),_0x381667(Error(_0x125c83(0x206)+_0x6ee5d7+'\x22.')));},_0x274e5b));}),'cancel':()=>{const _0x169a35=_0x28a2;_0x2e3864||(_0x2e3864=!0x0,_0x56eba8(),_0x500ed5(Error(_0x169a35(0x45f)+_0x6ee5d7+'\x22.')));}};}var pi=class extends _0x110283{constructor(_0x2cd082,_0x44df7b,_0x3c20b1,_0x41a1fe,_0x5a9db5,_0x121dbc,_0x1e6e4f){const _0x11c4d6=_0xca568b;super(),this[_0x11c4d6(0x400)]=_0x2cd082,this[_0x11c4d6(0x2c7)]=_0x44df7b,this[_0x11c4d6(0x221)]=_0x3c20b1,this[_0x11c4d6(0x3b2)]=_0x41a1fe,this['_isProviderDisposed']=_0x5a9db5,this[_0x11c4d6(0x420)]=_0x121dbc,this[_0x11c4d6(0x264)]=_0x1e6e4f,W(this,_0x11c4d6(0x448),_0x13effc[_0x11c4d6(0x237)]),W(this,_0x11c4d6(0x429),null),W(this,_0x11c4d6(0x39e),!0x1),W(this,_0x11c4d6(0x417),null),W(this,_0x11c4d6(0x1df),null),W(this,_0x11c4d6(0x22e),null),W(this,_0x11c4d6(0x372),{}),W(this,'_savedWrapperStyle',null),W(this,_0x11c4d6(0x1cc),null);}['isManaged'](){const _0xe173d2=_0xca568b;return this[_0xe173d2(0x39e)];}[_0xca568b(0x39f)](){const _0x808578=_0xca568b;this[_0x808578(0x39e)]=!0x1;}[_0xca568b(0x3a7)](){const _0x78cc0f=_0xca568b;let _0x12207c=this[_0x78cc0f(0x221)]();return _0x12207c?{'width':_0x12207c[_0x78cc0f(0x285)],'height':_0x12207c[_0x78cc0f(0x3ce)]}:null;}[_0xca568b(0x319)](_0x2e3aef){const _0xc873d7=_0xca568b;this['_hostStyle']=_0x2e3aef,this[_0xc873d7(0x3b2)](_0x2e3aef),this[_0xc873d7(0x3b9)]();}async['ensureHandle'](){const _0x4bd769=_0xca568b;if(this[_0x4bd769(0x3f2)]||this[_0x4bd769(0x26f)]())throw Error(_0x4bd769(0x23e));let _0x1843e9=this[_0x4bd769(0x2c7)](),_0x48d0e3=(_0x1843e9==null?void 0x0:_0x1843e9[_0x4bd769(0x2ae)])??this[_0x4bd769(0x400)],_0xadaaa0=document['getElementById'](_0x48d0e3);if(this['_domFrame']&&_0xadaaa0!=null&&_0xadaaa0[_0x4bd769(0x328)](this['_domFrame'][_0x4bd769(0x1e4)]))return{'mountNode':this['_domFrame'][_0x4bd769(0x1e4)],'dispose':()=>{const _0x3d7fcc=_0x4bd769;this['dispose'](),_0x1843e9==null||_0x1843e9['dispose'][_0x3d7fcc(0x406)]();}};if(this[_0x4bd769(0x1df)])return this['_pendingHost'];let _0xd4b763=this[_0x4bd769(0x2a5)]();return this[_0x4bd769(0x1df)]=_0xd4b763,_0xd4b763[_0x4bd769(0x358)](()=>{const _0x209887=_0x4bd769;this[_0x209887(0x1df)]===_0xd4b763&&(this[_0x209887(0x1df)]=null);},()=>{const _0x3200ba=_0x4bd769;this[_0x3200ba(0x1df)]===_0xd4b763&&(this[_0x3200ba(0x1df)]=null);}),_0xd4b763;}async[_0xca568b(0x2c2)](){const _0x35c32d=_0xca568b;try{return(await this['ensureHandle']())[_0x35c32d(0x1e4)];}catch{return null;}}[_0xca568b(0x353)](){const _0x5ecd65=_0xca568b;let _0x567c1d=this[_0x5ecd65(0x2c7)](),_0xc60168=(_0x567c1d==null?void 0x0:_0x567c1d['domId'])??this[_0x5ecd65(0x400)],_0x4ebea5=document[_0x5ecd65(0x2fd)](_0xc60168);return!!(this[_0x5ecd65(0x429)]&&_0x4ebea5!=null&&_0x4ebea5[_0x5ecd65(0x328)](this[_0x5ecd65(0x429)][_0x5ecd65(0x1e4)]));}[_0xca568b(0x44b)](){const _0x40d5f8=_0xca568b;if(!this[_0x40d5f8(0x429)])return;let _0xeb0932=this[_0x40d5f8(0x221)]();_0xeb0932&&this[_0x40d5f8(0x429)][_0x40d5f8(0x385)](this[_0x40d5f8(0x40a)](_0xeb0932),this[_0x40d5f8(0x26d)]());}['markReady'](){const _0x338c2d=_0xca568b;this[_0x338c2d(0x420)]();}[_0xca568b(0x290)](){const _0x5f200d=_0xca568b;this[_0x5f200d(0x264)]();}[_0xca568b(0x269)](_0x60a985){const _0x518ca1=_0xca568b;this['_dataUpdateAnimationDuration']=_0x60a985;let _0x1298a8=this[_0x518ca1(0x2c7)](),_0x45d3a0=document[_0x518ca1(0x2fd)]((_0x1298a8==null?void 0x0:_0x1298a8['domId'])??this[_0x518ca1(0x400)]);_0x45d3a0&&this[_0x518ca1(0x35d)](_0x45d3a0);}[_0xca568b(0x406)](){const _0x5329e4=_0xca568b;var _0x2e9ad0;this[_0x5329e4(0x3f2)]||(this[_0x5329e4(0x290)](),this[_0x5329e4(0x417)]=null,this[_0x5329e4(0x1df)]=null,this[_0x5329e4(0x1b2)](),this[_0x5329e4(0x39e)]=!0x1,this[_0x5329e4(0x1cc)]=null,(_0x2e9ad0=this[_0x5329e4(0x429)])==null||_0x2e9ad0[_0x5329e4(0x406)](),this[_0x5329e4(0x429)]=null,this[_0x5329e4(0x240)](),super[_0x5329e4(0x406)]());}async[_0xca568b(0x2a5)](){const _0x3c235f=_0xca568b;let _0x241db2=this[_0x3c235f(0x2c7)]();if(!_0x241db2)throw Error(_0x3c235f(0x23e));let _0x191656=_0x241db2[_0x3c235f(0x2ae)]??this[_0x3c235f(0x400)],_0x1f9da8=fi(_0x191656),_0x259a99=Symbol(this[_0x3c235f(0x400)]);this['_pendingToken']=_0x259a99,this['_waiter']=_0x1f9da8;try{let _0x700029=await _0x1f9da8[_0x3c235f(0x306)],_0x5dbc0d=this[_0x3c235f(0x2c7)](),_0x4cd18f=(_0x5dbc0d==null?void 0x0:_0x5dbc0d[_0x3c235f(0x2ae)])??this[_0x3c235f(0x400)];if(this['_disposed']||this[_0x3c235f(0x26f)]()||this['_pendingToken']!==_0x259a99||!_0x5dbc0d||_0x4cd18f!==_0x191656||document[_0x3c235f(0x2fd)](_0x191656)!==_0x700029||!_0x700029[_0x3c235f(0x2bd)])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x25b6ab=this['_getPlacement']();if(!_0x25b6ab)throw Error(_0x3c235f(0x23e));let _0x1a51c2=new _0x5a5cc2(_0x700029);return _0x1a51c2[_0x3c235f(0x385)](this[_0x3c235f(0x40a)](_0x25b6ab),this[_0x3c235f(0x26d)]()),this[_0x3c235f(0x36a)](_0x700029),this[_0x3c235f(0x429)]=_0x1a51c2,this[_0x3c235f(0x39e)]=!0x0,{'mountNode':_0x1a51c2[_0x3c235f(0x1e4)],'dispose':()=>{this['dispose'](),_0x241db2['dispose']['dispose']();}};}finally{this[_0x3c235f(0x22e)]===_0x1f9da8&&(this[_0x3c235f(0x22e)]=null),this[_0x3c235f(0x417)]===_0x259a99&&(this[_0x3c235f(0x417)]=null);}}['_cancelHostWait'](){const _0x1d68a3=_0xca568b;let _0x5856ca=this['_waiter'];_0x5856ca&&(_0x5856ca[_0x1d68a3(0x1db)](),this[_0x1d68a3(0x22e)]=null);}[_0xca568b(0x3b9)](){const _0x58c79e=_0xca568b;let _0x2a6501=this[_0x58c79e(0x221)]();this['_domFrame']&&_0x2a6501&&this['_domFrame'][_0x58c79e(0x385)](this[_0x58c79e(0x40a)](_0x2a6501),this[_0x58c79e(0x26d)]());}[_0xca568b(0x40a)](_0x2732f4){const _0x1625e2=_0xca568b;return _0x3f7b33[_0x1625e2(0x3d6)]({'logicalOuterRect':{'left':_0x2732f4[_0x1625e2(0x2c3)],'top':_0x2732f4[_0x1625e2(0x45a)],'width':_0x2732f4[_0x1625e2(0x285)],'height':_0x2732f4[_0x1625e2(0x3ce)]},'scale':{'scaleX':_0x2732f4[_0x1625e2(0x437)],'scaleY':_0x2732f4[_0x1625e2(0x3c3)]},'hostStyle':this['_frameStyle'](),'contentMode':_0x52688[_0x1625e2(0x305)]});}[_0xca568b(0x26d)](){const _0x1a7c4d=_0xca568b;return{...this[_0x1a7c4d(0x372)],'radius':_0x3b4d08};}[_0xca568b(0x36a)](_0x5e4094){const _0x5270b1=_0xca568b;let _0x281a73=_0x5e4094['parentElement'];_0x281a73&&(this[_0x5270b1(0x311)]||={'zIndex':_0x281a73[_0x5270b1(0x26b)]['zIndex'],'pointerEvents':_0x281a73['style']['pointerEvents']},_0x281a73['style'][_0x5270b1(0x1b1)]=_0x5270b1(0x2fa),this[_0x5270b1(0x35d)](_0x5e4094));}[_0xca568b(0x35d)](_0x3c50d0){const _0x50b5e5=_0xca568b;let _0x1074ef=_0x3c50d0[_0x50b5e5(0x379)];if(!_0x1074ef)return;let _0x56696d=this['_dataUpdateAnimationDuration'];if(_0x56696d!=null){_0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimation']='true',_0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimationDuration']=String(_0x56696d),_0x1074ef[_0x50b5e5(0x26b)]['pointerEvents']=_0x50b5e5(0x265);return;}delete _0x3c50d0[_0x50b5e5(0x3ec)][_0x50b5e5(0x38b)],delete _0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimationDuration'],_0x1074ef[_0x50b5e5(0x26b)]['pointerEvents']='auto';}[_0xca568b(0x240)](){const _0x327ee6=_0xca568b;if(!this[_0x327ee6(0x311)])return;let _0x57b6ca=this[_0x327ee6(0x2c7)](),_0x395b6d=(_0x57b6ca==null?void 0x0:_0x57b6ca['domId'])??this[_0x327ee6(0x400)],_0x5484aa=document['getElementById'](_0x395b6d);_0x5484aa==null||delete _0x5484aa[_0x327ee6(0x3ec)][_0x327ee6(0x38b)],_0x5484aa==null||delete _0x5484aa[_0x327ee6(0x3ec)][_0x327ee6(0x19e)];let _0x5765e5=_0x5484aa==null?void 0x0:_0x5484aa[_0x327ee6(0x379)];_0x5765e5&&(_0x5765e5[_0x327ee6(0x26b)][_0x327ee6(0x1b1)]=this[_0x327ee6(0x311)][_0x327ee6(0x1b1)],_0x5765e5[_0x327ee6(0x26b)][_0x327ee6(0x1cb)]=this[_0x327ee6(0x311)]['pointerEvents']),this[_0x327ee6(0x311)]=null;}},mi=class extends _0x3e25ad{constructor(_0x1989f6,_0x5995fc,_0x586ff5,_0x36a3f4,_0x172e07,_0x5c2c01){const _0x27fe03=_0xca568b;super(_0x1989f6),this[_0x27fe03(0x2f6)]=_0x5995fc,this[_0x27fe03(0x3b2)]=_0x586ff5,this['_snapshotKey']=_0x36a3f4,this[_0x27fe03(0x1dd)]=_0x172e07,this['_requestPaint']=_0x5c2c01;}['getRect'](){const _0x27c4b8=_0xca568b;let _0x5a572e=this[_0x27c4b8(0x2f6)]();return _0x5a572e?ti(_0x5a572e):null;}[_0xca568b(0x319)](_0x430c12){const _0x574b0c=_0xca568b;this[_0x574b0c(0x3b2)](_0x430c12);}[_0xca568b(0x399)](){const _0x47353=_0xca568b;return this['_snapshotStore'][_0x47353(0x399)](this[_0x47353(0x3d0)]);}[_0xca568b(0x2ba)](_0x49843f,_0x33cf60){const _0x463171=_0xca568b;return this[_0x463171(0x1dd)][_0x463171(0x43e)](this['_snapshotKey'],_0x49843f,_0x33cf60);}['requestPaint'](){const _0x2d743a=_0xca568b;this[_0x2d743a(0x398)]();}[_0xca568b(0x33a)](){const _0x47c481=_0xca568b;this[_0x47c481(0x1dd)]['nextVersion'](this['_snapshotKey']);}};function K(_0x2d25c1,_0x2a2e3f){return function(_0xf469db,_0x5ec02b){_0x2a2e3f(_0xf469db,_0x5ec02b,_0x2d25c1);};}function q(_0x2f172f,_0x425026,_0x3a31bc,_0x470875){const _0x3ca662=_0xca568b;var _0x46026e=arguments[_0x3ca662(0x3c2)],_0x31bfee=_0x46026e<0x3?_0x425026:_0x470875===null?_0x470875=Object[_0x3ca662(0x3ff)](_0x425026,_0x3a31bc):_0x470875,_0x3a73cf;if(typeof Reflect=='object'&&typeof Reflect[_0x3ca662(0x2c5)]=='function')_0x31bfee=Reflect[_0x3ca662(0x2c5)](_0x2f172f,_0x425026,_0x3a31bc,_0x470875);else{for(var _0x2c49e3=_0x2f172f[_0x3ca662(0x3c2)]-0x1;_0x2c49e3>=0x0;_0x2c49e3--)(_0x3a73cf=_0x2f172f[_0x2c49e3])&&(_0x31bfee=(_0x46026e<0x3?_0x3a73cf(_0x31bfee):_0x46026e>0x3?_0x3a73cf(_0x425026,_0x3a31bc,_0x31bfee):_0x3a73cf(_0x425026,_0x3a31bc))||_0x31bfee);}return _0x46026e>0x3&&_0x31bfee&&Object[_0x3ca662(0x3be)](_0x425026,_0x3a31bc,_0x31bfee),_0x31bfee;}const hi=0.5;function gi(_0x4f9d98){const _0x23148d=_0xca568b;let _0x1f685c=Math['max'](_0x4f9d98['endX']-_0x4f9d98[_0x23148d(0x3b7)],0x0),_0x51aa56=Math['max'](_0x4f9d98[_0x23148d(0x2c4)]-_0x4f9d98['startY'],0x0),_0x4a986e=_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x2c3)]&&_0x4f9d98['width']-_0x1f685c>hi,_0x59d9b2=_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x45a)]&&_0x4f9d98[_0x23148d(0x3ce)]-_0x51aa56>hi;return!_0x4a986e&&!_0x59d9b2?_0x4f9d98:{..._0x4f9d98,'absolute':{'left':!_0x4a986e&&_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x2c3)],'top':!_0x59d9b2&&_0x4f9d98['absolute'][_0x23148d(0x45a)]}};}function _i(_0x327e35){const _0x492491=_0xca568b;if(!Object[_0x492491(0x2f3)][_0x492491(0x3e5)][_0x492491(0x2b9)](_0x327e35,_0x492491(0x34a)))return _0x327e35;let {border:_0x5dc0c3,..._0x226878}=_0x327e35;return{..._0x226878,'stroke':(_0x5dc0c3==null?void 0x0:_0x5dc0c3['color'])??'transparent','strokeWidth':(_0x5dc0c3==null?void 0x0:_0x5dc0c3['width'])??0x0};}let vi=class extends _0x110283{constructor(_0x2ce846,_0x34c6b0,_0x380623,_0x1c78cd){const _0x5eae11=_0xca568b;super(),this['_sheetCanvasFloatDomManagerService']=_0x2ce846,this[_0x5eae11(0x19f)]=_0x34c6b0,this[_0x5eae11(0x26e)]=_0x380623,this['_canvasFloatDomService']=_0x1c78cd,W(this,'_chartHostMap',new Map()),W(this,'_activeDomReadyChartIds',new Set()),W(this,_0x5eae11(0x38d),new _0x1d042d()),W(this,_0x5eae11(0x380),this['_removeHost$'][_0x5eae11(0x3a8)]()),this[_0x5eae11(0x1e0)](this[_0x5eae11(0x40f)]['remove$'][_0x5eae11(0x1f1)](_0x1515a4=>{const _0x111297=_0x5eae11;let _0x3bb291=this['_chartHostMap'][_0x111297(0x29a)](_0x1515a4['id']);_0x3bb291!=null&&_0x3bb291['isManaged']()&&(_0x3bb291[_0x111297(0x39f)](),this[_0x111297(0x38d)][_0x111297(0x1b5)](_0x1515a4['id']));}));}[_0xca568b(0x3df)](_0x2e5b9b){const _0xa24ae7=_0xca568b;if(_0x2e5b9b==null)return;let _0x29d9af=this[_0xa24ae7(0x19f)]['getRenderUnitById'](_0x2e5b9b),_0x5cddef=_0x29d9af==null?void 0x0:_0x29d9af['scene'];return _0x29d9af==null||_0x5cddef==null?null:{'scene':_0x5cddef,'transformer':_0x5cddef['getTransformerByCreate'](),'renderUnit':_0x29d9af,'canvas':_0x29d9af[_0xa24ae7(0x382)]['getCanvasElement']()};}['setBorder'](_0x4b793d,_0x1cbbff){const _0x338b81=_0xca568b;let _0x443731=this[_0x338b81(0x40f)],_0x4aa37f=_0x1cbbff||_0x338b81(0x3eb),_0x16dfe3=_0x443731[_0x338b81(0x35a)](_0x4b793d);if(_0x16dfe3){let {unitId:_0x18a5c6,subUnitId:_0x23dddc}=_0x16dfe3;_0x443731['updateFloatDomProps'](_0x18a5c6,_0x23dddc,_0x4b793d,{'stroke':_0x4aa37f});}}['setHostStyle'](_0xc185a0,_0x461592){const _0x236b27=_0xca568b;let _0x31e014=this['_sheetCanvasFloatDomManagerService'],_0x4dd695=_0x31e014[_0x236b27(0x35a)](_0xc185a0);if(_0x4dd695){let {unitId:_0x19923a,subUnitId:_0x5cb2cb}=_0x4dd695;_0x31e014[_0x236b27(0x3da)](_0x19923a,_0x5cb2cb,_0xc185a0,_i(_0x461592));}}[_0xca568b(0x1f0)](_0x40511d){const _0x561ef8=_0xca568b;let _0x95af80=this[_0x561ef8(0x40f)][_0x561ef8(0x35a)](_0x40511d);return _0x95af80?_0x95af80[_0x561ef8(0x351)]:null;}[_0xca568b(0x1da)](_0x3828e5){const _0x315047=_0xca568b;let _0x13e028=this['_sheetCanvasFloatDomManagerService'][_0x315047(0x35a)](_0x3828e5),_0x3b2a39=document[_0x315047(0x2fd)]((_0x13e028==null?void 0x0:_0x13e028['domId'])??_0x3828e5);return(_0x3b2a39==null?void 0x0:_0x3b2a39[_0x315047(0x1af)]())??null;}[_0xca568b(0x269)](_0x31a29e,_0x2e5349){const _0x5d3525=_0xca568b;var _0x2948dc;(_0x2948dc=this[_0x5d3525(0x33b)][_0x5d3525(0x29a)](_0x31a29e))==null||_0x2948dc[_0x5d3525(0x269)](_0x2e5349);}['checkHost'](_0x166caa){const _0x17ec73=_0xca568b;var _0x592da5;return((_0x592da5=this[_0x17ec73(0x33b)][_0x17ec73(0x29a)](_0x166caa))==null?void 0x0:_0x592da5[_0x17ec73(0x353)]())??!0x1;}[_0xca568b(0x1aa)](_0xb75610){const _0x4a1e4a=_0xca568b;var _0x11f862;(_0x11f862=this[_0x4a1e4a(0x33b)][_0x4a1e4a(0x29a)](_0xb75610))==null||_0x11f862['syncLayout']();}[_0xca568b(0x342)](_0x5a6748){const _0x3984e9=_0xca568b;let _0x53460e=this['_chartHostMap'][_0x3984e9(0x29a)](_0x5a6748);_0x53460e==null||_0x53460e['dispose'](),this['_chartHostMap'][_0x3984e9(0x28b)](_0x5a6748);}async['ensureHost'](_0x558b7e,_0x1511d6){const _0x33c5e6=_0xca568b;if(_0x1511d6===_0x13effc['Image'])return this[_0x33c5e6(0x3f8)](_0x558b7e);if(_0x1511d6===_0x13effc[_0x33c5e6(0x237)])return this[_0x33c5e6(0x2cb)](_0x558b7e);let _0x46182b=this[_0x33c5e6(0x2cb)](_0x558b7e);if(!_0x46182b)throw Error(_0x33c5e6(0x23e));return _0x46182b['ensureHandle']();}['isDomReady'](_0x176bf7){const _0x2707dc=_0xca568b;var _0x4f1dd7;return this['_activeDomReadyChartIds'][_0x2707dc(0x3e1)](_0x176bf7)?(_0x4f1dd7=this['_chartHostMap'][_0x2707dc(0x29a)](_0x176bf7))!=null&&_0x4f1dd7['checkMounted']()?!0x0:(this['_activeDomReadyChartIds']['delete'](_0x176bf7),this[_0x2707dc(0x405)](_0x176bf7),!0x1):!0x1;}[_0xca568b(0x2c0)](_0x3950d8){const _0x169e80=_0xca568b;this[_0x169e80(0x421)][_0x169e80(0x28b)](_0x3950d8)&&(this[_0x169e80(0x405)](_0x3950d8),this[_0x169e80(0x1f5)](_0x3950d8));}[_0xca568b(0x33a)](_0x13d8f1){const _0x6e607a=_0xca568b;let _0x1b7449=this['_getChartSnapshotKey'](_0x13d8f1);_0x1b7449&&this[_0x6e607a(0x26e)]['nextVersion'](_0x1b7449);}['_createImageChartHost'](_0x4a6b1a){const _0x4a239b=_0xca568b;let _0xda408f=this[_0x4a239b(0x3d4)](_0x4a6b1a);return!_0xda408f||!this['getHostSize'](_0x4a6b1a)?null:new mi(_0x4a6b1a,()=>this['getHostSize'](_0x4a6b1a),_0x3a1a2e=>this[_0x4a239b(0x1c7)](_0x4a6b1a,_0x3a1a2e),_0xda408f,this[_0x4a239b(0x26e)],()=>this[_0x4a239b(0x1f5)](_0x4a6b1a));}[_0xca568b(0x2cb)](_0x1ddfda){const _0x502152=_0xca568b;if(!this['getHostSize'](_0x1ddfda))return null;this[_0x502152(0x317)][_0x502152(0x1f6)](_0x1ddfda,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x2e6172=this[_0x502152(0x33b)][_0x502152(0x29a)](_0x1ddfda);if(_0x2e6172)return _0x2e6172;let _0xcbf322=new pi(_0x1ddfda,()=>this[_0x502152(0x40f)][_0x502152(0x35a)](_0x1ddfda),()=>this['_getHostPlacement'](_0x1ddfda),_0x5ac3b0=>this[_0x502152(0x1c7)](_0x1ddfda,_0x5ac3b0),()=>this[_0x502152(0x3f2)],()=>this['_markHostReady'](_0x1ddfda),()=>this[_0x502152(0x2c0)](_0x1ddfda));return this[_0x502152(0x33b)][_0x502152(0x210)](_0x1ddfda,_0xcbf322),_0xcbf322;}['_markHostReady'](_0x39e54c){const _0x29f9f7=_0xca568b;this[_0x29f9f7(0x421)]['has'](_0x39e54c)||(this[_0x29f9f7(0x421)][_0x29f9f7(0x36f)](_0x39e54c),this[_0x29f9f7(0x1a3)](_0x39e54c),this[_0x29f9f7(0x1f5)](_0x39e54c));}[_0xca568b(0x1a3)](_0x465365){const _0x110099=_0xca568b;var _0xa7501c;let _0xed5b2b=this[_0x110099(0x40f)]['getFloatDomInfo'](_0x465365),_0x5b8115=_0xed5b2b?(_0xa7501c=this['_renderManagerService'][_0x110099(0x26c)](_0xed5b2b[_0x110099(0x2f9)]))==null?void 0x0:_0xa7501c[_0x110099(0x288)]:null;if(!_0xed5b2b||!_0x5b8115)return;let _0x24af16=_0x3fa440(_0xed5b2b['position$']['pipe'](_0x55b78a(0x1)),_0x5b8115[_0x110099(0x411)][_0x110099(0x2d3)](_0x546631(_0xed5b2b[_0x110099(0x413)]),_0xd28067(([,_0x47b5e2])=>_0x47b5e2)))[_0x110099(0x2d3)](_0x3c6b25(),_0xd28067(gi));this['_canvasFloatDomService'][_0x110099(0x1f6)](_0x465365,{'position$':_0x24af16});}[_0xca568b(0x405)](_0x4ca010){const _0x121e38=_0xca568b;let _0x5c7b53=this[_0x121e38(0x40f)][_0x121e38(0x35a)](_0x4ca010);_0x5c7b53&&this[_0x121e38(0x317)]['updateFloatDom'](_0x4ca010,{'position$':_0x5c7b53[_0x121e38(0x413)]});}[_0xca568b(0x3d4)](_0x52769b){const _0x2584a4=_0xca568b;let _0x2baa10=this[_0x2584a4(0x40f)]['getFloatDomInfo'](_0x52769b);return _0x2baa10?{'unitId':_0x2baa10[_0x2584a4(0x2f9)],'subUnitId':_0x2baa10[_0x2584a4(0x254)],'chartId':_0x52769b}:null;}[_0xca568b(0x1f5)](_0x56f1cb){const _0x1cede0=_0xca568b;var _0x29472a,_0x17a678,_0x49e671;let _0x42a397=this[_0x1cede0(0x40f)][_0x1cede0(0x35a)](_0x56f1cb);if(!_0x42a397)return;let _0x1285a4=(_0x29472a=this[_0x1cede0(0x19f)][_0x1cede0(0x26c)](_0x42a397['unitId']))==null?void 0x0:_0x29472a[_0x1cede0(0x288)],_0x279f1e=(_0x1285a4==null||(_0x17a678=_0x1285a4[_0x1cede0(0x41a)])==null?void 0x0:_0x17a678[_0x1cede0(0x2b9)](_0x1285a4,_0x3e2347({'unitId':_0x42a397[_0x1cede0(0x2f9)],'subUnitId':_0x42a397[_0x1cede0(0x254)],'drawingId':_0x56f1cb})))??(_0x1285a4==null?void 0x0:_0x1285a4[_0x1cede0(0x233)](_0x3e2347({'unitId':_0x42a397[_0x1cede0(0x2f9)],'subUnitId':_0x42a397[_0x1cede0(0x254)],'drawingId':_0x56f1cb})))??null;_0x279f1e==null||(_0x49e671=_0x279f1e['makeDirty'])==null||_0x49e671['call'](_0x279f1e,!0x0),_0x1285a4==null||_0x1285a4[_0x1cede0(0x30e)](!0x0);}['_getHostPlacement'](_0xc9f050){const _0x42dfa8=_0xca568b;let _0x1563c6=this['_sheetCanvasFloatDomManagerService'][_0x42dfa8(0x35a)](_0xc9f050);if(!_0x1563c6)return null;let _0x24c48a=this[_0x42dfa8(0x3df)](_0x1563c6['unitId']),_0x3ef725=_0x24c48a==null?void 0x0:_0x24c48a[_0x42dfa8(0x288)],_0x430f45=document['getElementById'](_0x1563c6['domId']??_0xc9f050);return ni(_0x1563c6[_0x42dfa8(0x351)],{'scaleX':(_0x3ef725==null?void 0x0:_0x3ef725[_0x42dfa8(0x437)])??0x1,'scaleY':(_0x3ef725==null?void 0x0:_0x3ef725[_0x42dfa8(0x3c3)])??0x1},_0x430f45?{'left':_0x430f45[_0x42dfa8(0x442)],'top':_0x430f45[_0x42dfa8(0x3af)]}:void 0x0);}[_0xca568b(0x406)](){const _0x47597f=_0xca568b;this['_disposed']||(this['_chartHostMap'][_0x47597f(0x308)](_0x5a06ae=>_0x5a06ae[_0x47597f(0x406)]()),this[_0x47597f(0x33b)][_0x47597f(0x2a4)](),this[_0x47597f(0x421)]['clear'](),this[_0x47597f(0x38d)][_0x47597f(0x388)](),super[_0x47597f(0x406)]());}};vi=q([K(0x0,_0x2b7ebf(_0x48f4a3)),K(0x1,_0x2b7ebf(_0x52b878)),K(0x2,_0x2b7ebf(di)),K(0x3,_0x2b7ebf(_0x364740))],vi);const yi=_0x2d4252(_0xca568b(0x219)),bi=_0x13effc[_0xca568b(0x224)];var xi=class extends _0x3e25ad{constructor(_0x52ba44,_0x5c79da){const _0x10caa3=_0xca568b;super(_0x52ba44),this[_0x10caa3(0x43a)]=_0x5c79da,W(this,_0x10caa3(0x3fe),0x0),W(this,'_image',void 0x0),W(this,_0x10caa3(0x26b),{});}[_0xca568b(0x3a7)](){const _0x588e78=_0xca568b;return this[_0x588e78(0x43a)];}[_0xca568b(0x319)](_0x337698){const _0x2b4088=_0xca568b;this[_0x2b4088(0x26b)]=_0x337698;}[_0xca568b(0x399)](){const _0x1c5ef2=_0xca568b;return++this[_0x1c5ef2(0x3fe)];}[_0xca568b(0x2ba)](_0x81fe74,_0x67e4f){const _0x4dbd55=_0xca568b;return _0x67e4f===this[_0x4dbd55(0x3fe)]?(G(this[_0x4dbd55(0x2b1)]),this['_image']=_0x81fe74,!0x0):(G(_0x81fe74),!0x1);}[_0xca568b(0x232)](){}['invalidateSnapshot'](){const _0x68a68=_0xca568b;this[_0x68a68(0x3fe)]+=0x1;}['takeSnapshot'](){const _0x300693=_0xca568b;let _0x16a70c=this[_0x300693(0x2b1)];return this[_0x300693(0x2b1)]=void 0x0,_0x16a70c;}[_0xca568b(0x406)](){const _0x42ea0d=_0xca568b;G(this[_0x42ea0d(0x2b1)]),this[_0x42ea0d(0x2b1)]=void 0x0,super['dispose']();}};function Si(_0x3720ef,_0x513ac6,_0x1a572d){const _0x57aa38=_0xca568b;let _0x3b26b3=_0x3720ef[_0x57aa38(0x2bb)](_0x513ac6),_0x5d86ca={..._0x3720ef[_0x57aa38(0x26b)],'runtime':{..._0x3b26b3,'layoutInset':0x8,..._0x1a572d===void 0x0?{}:{'addWatermark':_0x1a572d}},'direction':_0x513ac6};return _0x2dbc64(_0x5d86ca,_0x3720ef[_0x57aa38(0x436)]);}let J=class extends _0x110283{constructor(_0x4180ef,_0xd9d1a8,_0x51150d,_0x48e0be,_0x486cdc,_0x52c3a4,_0x53009a,_0x33e80f,_0x5eda05,_0x301626,_0x4b38ae,_0xc7e6ba,_0x489d1e){const _0x5027db=_0xca568b;super(),this[_0x5027db(0x26a)]=_0x4180ef,this[_0x5027db(0x40f)]=_0xd9d1a8,this[_0x5027db(0x3f0)]=_0x51150d,this[_0x5027db(0x1a2)]=_0x48e0be,this['_univerInstanceService']=_0x486cdc,this[_0x5027db(0x19f)]=_0x52c3a4,this[_0x5027db(0x375)]=_0x53009a,this[_0x5027db(0x289)]=_0x33e80f,this[_0x5027db(0x35b)]=_0x5eda05,this[_0x5027db(0x3f9)]=_0x301626,this[_0x5027db(0x239)]=_0x4b38ae,this[_0x5027db(0x26e)]=_0xc7e6ba,this['_renderModelManager']=_0x489d1e,W(this,'_chartInstanceMap',new Map()),W(this,_0x5027db(0x2f4),new Map()),W(this,'_chartEventSubscriptions',new Map()),W(this,_0x5027db(0x341),new Map()),W(this,_0x5027db(0x276),new Map()),W(this,_0x5027db(0x354),new Map()),W(this,_0x5027db(0x435),new Map()),W(this,_0x5027db(0x444),void 0x0),W(this,_0x5027db(0x374),void 0x0),W(this,'_lastRenderInputMap',new Map()),W(this,_0x5027db(0x280),new Set()),W(this,'_dataUpdateAnimationTimers',new Map()),W(this,_0x5027db(0x272),null),W(this,'_lastActiveSheet',null);let _0x482c80=_0x14bcc6(this[_0x5027db(0x289)]),_0x206256=this[_0x5027db(0x239)][_0x5027db(0x1ab)](_0x5a48a3);this[_0x5027db(0x444)]=(_0x206256==null?void 0x0:_0x206256[_0x5027db(0x29f)])??bi,this[_0x5027db(0x374)]=_0x482c80['length']!==0x1||_0x482c80[0x0]!==_0x5027db(0x1eb),this[_0x5027db(0x2d0)](),this[_0x5027db(0x24e)](),this[_0x5027db(0x2d2)](),this[_0x5027db(0x230)](),this[_0x5027db(0x409)]();}[_0xca568b(0x22f)](_0x54e0ea){const _0x554925=_0xca568b;let _0x25dd58=this[_0x554925(0x3d4)](_0x54e0ea);return _0x25dd58?this[_0x554925(0x26e)]['getImage'](_0x25dd58):void 0x0;}[_0xca568b(0x245)](_0x14428b){const _0x18743a=_0xca568b;var _0x2e7f76;return((_0x2e7f76=this[_0x18743a(0x3f0)][_0x18743a(0x242)])==null?void 0x0:_0x2e7f76['id'])===_0x14428b?_0x13effc['Dom']:this['_chartRenderMode'];}[_0xca568b(0x3d4)](_0x1a3cb6){const _0x27a149=_0xca568b;let _0x35fda8=this[_0x27a149(0x40f)][_0x27a149(0x35a)](_0x1a3cb6);return _0x35fda8?{'unitId':_0x35fda8['unitId'],'subUnitId':_0x35fda8[_0x27a149(0x254)],'chartId':_0x1a3cb6}:null;}['_registerChartImageRenderObjectFactory'](){const _0x507995=_0xca568b;this[_0x507995(0x444)]===_0x13effc['Image']&&this['disposeWithMe'](this[_0x507995(0x40f)]['registerRenderObjectFactory'](_0x1dc4b2[_0x507995(0x1b7)],({key:_0x4180ad,config:_0x2bd421,unitId:_0x590090,subUnitId:_0x5af8b8,drawingId:_0x1dde16})=>new si(_0x4180ad,_0x2bd421,()=>this['_chartSnapshotStoreService'][_0x507995(0x267)]({'unitId':_0x590090,'subUnitId':_0x5af8b8,'chartId':_0x1dde16}),()=>this[_0x507995(0x26a)][_0x507995(0x415)](_0x1dde16))));}[_0xca568b(0x24e)](){const _0x3a8d3d=_0xca568b;this[_0x3a8d3d(0x1e0)](this['_chartModelService'][_0x3a8d3d(0x2b2)][_0x3a8d3d(0x1f1)](_0x502202=>{const _0xd2250=_0x3a8d3d;let _0x12ba80=(_0x502202==null?void 0x0:_0x502202['id'])??null,_0x413331=this[_0xd2250(0x272)];_0x413331!==_0x12ba80&&(_0x413331&&(this['_chartHostProvider'][_0xd2250(0x2c0)](_0x413331),this[_0xd2250(0x2a2)](_0x413331),this[_0xd2250(0x454)](_0x413331)),this[_0xd2250(0x272)]=_0x12ba80,_0x12ba80&&(this[_0xd2250(0x39c)](_0x12ba80),this[_0xd2250(0x26a)]['markHostNotReady'](_0x12ba80),this[_0xd2250(0x1c4)](_0x12ba80),this['_rerenderLatest'](_0x12ba80)));}));}[_0xca568b(0x2d2)](){const _0x547612=_0xca568b;this[_0x547612(0x1e0)](this['_drawingManagerService'][_0x547612(0x301)][_0x547612(0x1f1)](_0x39f109=>{const _0x11d746=_0x547612;var _0x5edff0;let _0x4c96b8=(_0x5edff0=this[_0x11d746(0x3f0)][_0x11d746(0x242)])==null?void 0x0:_0x5edff0['id'];_0x4c96b8&&_0x39f109[_0x11d746(0x25c)](_0x4d3672=>_0x4d3672[_0x11d746(0x2b4)][_0x11d746(0x25c)](_0x50afd8=>_0x50afd8['drawingId']===_0x4c96b8))&&this[_0x11d746(0x3f0)][_0x11d746(0x1fa)](null);})),this[_0x547612(0x1e0)](this[_0x547612(0x1a2)][_0x547612(0x423)]['subscribe'](_0x35a261=>{const _0x47cd46=_0x547612;var _0x31dc5f;let _0x1c7c5e=(_0x31dc5f=this['_chartModelService'][_0x47cd46(0x242)])==null?void 0x0:_0x31dc5f['id'];_0x1c7c5e&&_0x35a261[_0x47cd46(0x25c)](_0x2130bb=>_0x2130bb[_0x47cd46(0x25a)][_0x47cd46(0x22a)]===_0x1c7c5e||_0x2130bb[_0x47cd46(0x2b4)][_0x47cd46(0x25c)](_0x2ccfe5=>_0x2ccfe5[_0x47cd46(0x22a)]===_0x1c7c5e))&&this[_0x47cd46(0x3f0)][_0x47cd46(0x1fa)](null);}));}[_0xca568b(0x230)](){const _0x1aa7e7=_0xca568b;this[_0x1aa7e7(0x1e0)](this[_0x1aa7e7(0x1a2)]['featurePluginOrderUpdate$'][_0x1aa7e7(0x1f1)](_0x436459=>{const _0x20e71a=_0x1aa7e7;var _0x43b3e5;let _0x277e4a=(_0x43b3e5=this[_0x20e71a(0x3f0)]['activeChartModel'])==null?void 0x0:_0x43b3e5['id'];if(!_0x277e4a){_0x436459[_0x20e71a(0x2e1)]['forEach'](_0x5caab8=>{this['_chartModelService']['getChartModel'](_0x5caab8)&&this['_resetChartRuntimeZIndex'](_0x5caab8);});return;}let _0x22b0a8=this[_0x20e71a(0x40f)][_0x20e71a(0x35a)](_0x277e4a);(_0x22b0a8==null?void 0x0:_0x22b0a8[_0x20e71a(0x2f9)])===_0x436459[_0x20e71a(0x2f9)]&&_0x22b0a8['subUnitId']===_0x436459[_0x20e71a(0x254)]&&this[_0x20e71a(0x1c4)](_0x277e4a);})),this['disposeWithMe'](this['_drawingManagerService'][_0x1aa7e7(0x2dc)][_0x1aa7e7(0x1f1)](_0x2d32f2=>{const _0x253214=_0x1aa7e7;var _0x3d8e60;let _0xfe2faf=(_0x3d8e60=this[_0x253214(0x3f0)][_0x253214(0x242)])==null?void 0x0:_0x3d8e60['id'];if(!_0xfe2faf)return;let _0x5b8570=this[_0x253214(0x40f)]['getFloatDomInfo'](_0xfe2faf);_0x5b8570&&_0x2d32f2[_0x253214(0x25c)](_0x58a489=>_0x58a489[_0x253214(0x2f9)]===_0x5b8570[_0x253214(0x2f9)]&&_0x58a489[_0x253214(0x254)]===_0x5b8570[_0x253214(0x254)])&&this['_applyActiveChartRuntimeZIndex'](_0xfe2faf);})),this[_0x1aa7e7(0x1e0)](this[_0x1aa7e7(0x3f0)][_0x1aa7e7(0x41c)]['subscribe'](_0x3df2dc=>{const _0x120961=_0x1aa7e7;var _0x1e180b;this['_disposeChartChangeListeners'](_0x3df2dc),this[_0x120961(0x39c)](_0x3df2dc),this[_0x120961(0x203)][_0x120961(0x28b)](_0x3df2dc),this[_0x120961(0x26e)][_0x120961(0x329)](_0x3df2dc),this[_0x120961(0x44f)](_0x3df2dc),this[_0x120961(0x26a)][_0x120961(0x2c0)](_0x3df2dc),((_0x1e180b=this[_0x120961(0x3f0)][_0x120961(0x242)])==null?void 0x0:_0x1e180b['id'])===_0x3df2dc?this['_chartModelService'][_0x120961(0x1fa)](null):this['_resetChartRuntimeZIndex'](_0x3df2dc),this['_disposeChartRenderInstance'](_0x3df2dc);}));}[_0xca568b(0x217)](_0x1fc39f){const _0x578f26=_0xca568b;let _0x374a7f=this[_0x578f26(0x203)][_0x578f26(0x29a)](_0x1fc39f);_0x374a7f&&this[_0x578f26(0x23d)](_0x1fc39f,_0x374a7f['config'],_0x374a7f[_0x578f26(0x26b)]);}[_0xca568b(0x454)](_0x43cdbc){const _0x2ab626=_0xca568b;let _0xd4a527=this[_0x2ab626(0x40d)]['get'](_0x43cdbc);(_0xd4a527==null?void 0x0:_0xd4a527[_0x2ab626(0x448)])===_0x2ab626(0x3a5)&&(this[_0x2ab626(0x434)](_0x43cdbc),_0xd4a527[_0x2ab626(0x406)](),this['_chartInstanceMap'][_0x2ab626(0x28b)](_0x43cdbc)),this[_0x2ab626(0x26a)][_0x2ab626(0x2c0)](_0x43cdbc),this[_0x2ab626(0x26a)]['removeHost'](_0x43cdbc);}['_disposeChartRenderInstance'](_0x5d4631){const _0x45ce7d=_0xca568b;let _0x1b3b7e=this['_chartInstanceMap'][_0x45ce7d(0x29a)](_0x5d4631);_0x1b3b7e&&(this[_0x45ce7d(0x434)](_0x5d4631),_0x1b3b7e[_0x45ce7d(0x406)](),this[_0x45ce7d(0x40d)]['delete'](_0x5d4631)),this[_0x45ce7d(0x26a)][_0x45ce7d(0x2c0)](_0x5d4631),this[_0x45ce7d(0x26a)][_0x45ce7d(0x342)](_0x5d4631);}['_clearChartRuntimeCache'](_0x466979){const _0x36b463=_0xca568b;var _0x287ae2,_0x3e6ae7;(_0x287ae2=this[_0x36b463(0x234)][_0x36b463(0x327)](_0x5bf36d))==null||(_0x3e6ae7=_0x287ae2['clearRuntimeCache'])==null||_0x3e6ae7['call'](_0x287ae2,_0x466979);}[_0xca568b(0x416)](_0x17e3be,_0x1a0ea6){const _0x12cd17=_0xca568b;let _0x68cbfc=this[_0x12cd17(0x1a2)][_0x12cd17(0x340)](_0x17e3be,_0x1a0ea6);Object[_0x12cd17(0x377)](_0x68cbfc??{})[_0x12cd17(0x308)](_0x1bf926=>{const _0x353dc8=_0x12cd17;_0x1bf926[_0x353dc8(0x2ac)]===_0x1dc4b2['DRAWING_CHART']&&this[_0x353dc8(0x44f)](_0x1bf926[_0x353dc8(0x22a)]);});}[_0xca568b(0x350)](_0xdb07b1,_0x26f333){const _0x53de33=_0xca568b;var _0x18ecf1;return((_0x18ecf1=_0xdb07b1[_0x53de33(0x41a)])==null?void 0x0:_0x18ecf1['call'](_0xdb07b1,_0x26f333))??_0xdb07b1[_0x53de33(0x233)](_0x26f333)??null;}[_0xca568b(0x1ce)](_0x34ded7){const _0x5a9655=_0xca568b;var _0x59d106;let _0x4674b2=this[_0x5a9655(0x40f)][_0x5a9655(0x35a)](_0x34ded7);if(!_0x4674b2)return null;let _0x31f185=(_0x59d106=this['_renderManagerService']['getRenderUnitById'](_0x4674b2[_0x5a9655(0x2f9)]))==null?void 0x0:_0x59d106[_0x5a9655(0x288)];if(!_0x31f185)return null;let _0x316a32=this[_0x5a9655(0x350)](_0x31f185,_0x3e2347({'unitId':_0x4674b2['unitId'],'subUnitId':_0x4674b2[_0x5a9655(0x254)],'drawingId':_0x34ded7}));return _0x316a32?{'info':_0x4674b2,'scene':_0x31f185,'chartObject':_0x316a32}:null;}[_0xca568b(0x359)](_0x117b92,_0x47eb05){const _0x452947=_0xca568b;var _0x5c8845,_0x27ae0d,_0x4d28dd,_0x45d168;let _0x57ded5=this[_0x452947(0x1ce)](_0x117b92);_0x57ded5&&((_0x5c8845=(_0x27ae0d=_0x57ded5[_0x452947(0x1ca)])[_0x452947(0x3cf)])==null||_0x5c8845[_0x452947(0x2b9)](_0x27ae0d,{'zIndex':_0x47eb05}),(_0x4d28dd=(_0x45d168=_0x57ded5[_0x452947(0x1ca)])['makeDirty'])==null||_0x4d28dd['call'](_0x45d168,!0x0),_0x57ded5[_0x452947(0x288)][_0x452947(0x30e)](!0x0));}['_applyActiveChartRuntimeZIndex'](_0x402882){const _0x3ddff0=_0xca568b;let _0x3d5a38=this[_0x3ddff0(0x40f)]['getFloatDomInfo'](_0x402882);if(!_0x3d5a38)return;let _0x4da8ec=this[_0x3ddff0(0x1a2)]['getDrawingOrder'](_0x3d5a38['unitId'],_0x3d5a38[_0x3ddff0(0x254)]);this[_0x3ddff0(0x359)](_0x402882,_0x4da8ec[_0x3ddff0(0x3c2)]);}[_0xca568b(0x2a2)](_0x75e950){const _0x3b6cf6=_0xca568b;let _0x5223ef=this[_0x3b6cf6(0x40f)]['getFloatDomInfo'](_0x75e950);if(!_0x5223ef)return;let _0x2be02f=this[_0x3b6cf6(0x1a2)][_0x3b6cf6(0x3c7)](_0x5223ef['unitId'],_0x5223ef['subUnitId']),_0x543d11=_0x2be02f[_0x3b6cf6(0x3bb)](_0x75e950);this[_0x3b6cf6(0x359)](_0x75e950,_0x543d11===-0x1?Math['max'](_0x2be02f[_0x3b6cf6(0x3c2)]-0x1,0x0):_0x543d11);}[_0xca568b(0x1ef)](_0xc54425,_0x102ecc){const _0x314920=_0xca568b;let _0x44f391=this[_0x314920(0x40f)][_0x314920(0x35a)](_0xc54425);if(_0x102ecc[_0x314920(0x285)]!==void 0x0&&_0x102ecc[_0x314920(0x3ce)]!==void 0x0&&_0x44f391){var _0x1771eb;let {subUnitId:_0x2835f1}=_0x44f391,_0x384790=(_0x1771eb=this[_0x314920(0x31a)][_0x314920(0x293)](_0x50b631[_0x314920(0x2f0)]))==null?void 0x0:_0x1771eb[_0x314920(0x295)]();if((_0x384790==null?void 0x0:_0x384790[_0x314920(0x1d5)]())===_0x2835f1){let {width:_0x3aac45,height:_0x5a6b29}=_0x102ecc,_0xba3ea4=this[_0x314920(0x3f0)][_0x314920(0x284)](_0xc54425),_0x316207=_0xba3ea4==null?void 0x0:_0xba3ea4[_0x314920(0x26b)];if(Math[_0x314920(0x395)](_0x3aac45-((_0x316207==null?void 0x0:_0x316207['width'])||0x0))>0x1||Math['abs'](_0x5a6b29-((_0x316207==null?void 0x0:_0x316207['height'])||0x0))>0x1){_0xba3ea4==null||_0xba3ea4[_0x314920(0x43f)]({..._0x316207,'width':_0x3aac45,'height':_0x5a6b29});let _0x500fef=this[_0x314920(0x40d)]['get'](_0xc54425);_0x500fef&&(this['_chartHostProvider'][_0x314920(0x1aa)](_0xc54425),_0x500fef[_0x314920(0x222)]());}}}}[_0xca568b(0x463)](_0x2cc4be,_0x51a135,_0x526251=0x0){const _0x4fab3c=_0xca568b;let _0x351f76=this[_0x4fab3c(0x354)][_0x4fab3c(0x29a)](_0x2cc4be);_0x351f76||(_0x351f76=_0x2132b5(_0x616bdb=>{const _0x5e5b8f=_0x4fab3c;this[_0x5e5b8f(0x1ef)](_0x2cc4be,_0x616bdb);},_0x526251),this[_0x4fab3c(0x354)]['set'](_0x2cc4be,_0x351f76)),_0x351f76(_0x51a135);}['handleActiveSubUnitChange'](){const _0x5ec740=_0xca568b;let _0xe8fba7=this[_0x5ec740(0x276)],_0x2b0479=_0x228c7a=>{const _0x1feb23=_0x5ec740;if(!_0xe8fba7[_0x1feb23(0x3e1)](_0x228c7a)){let _0x52b125=_0x2132b5((_0x32fe70,_0x39c4bc,_0x508d6e,_0x508cf4)=>{const _0xb36aa8=_0x1feb23;var _0x3857f0,_0x4bbc35;if(!_0x508d6e)return;(_0x3857f0=_0x508d6e['category'])==null||_0x3857f0[_0xb36aa8(0x3fa)][_0xb36aa8(0x308)]((_0x436671,_0x398b0e)=>{const _0x6d5ab9=_0xb36aa8;_0x436671[_0x6d5ab9(0x248)]||=this[_0x6d5ab9(0x375)]['t'](_0x6d5ab9(0x32a))+'\x20'+(_0x398b0e+0x1);}),_0x508d6e[_0xb36aa8(0x241)][_0xb36aa8(0x308)]((_0x3b410a,_0x59f107)=>{const _0x501d5a=_0xb36aa8;_0x3b410a[_0x501d5a(0x33f)]||=this[_0x501d5a(0x375)]['t'](_0x501d5a(0x38f))+'\x20'+(_0x59f107+0x1);});let _0x3dc9ca=this[_0xb36aa8(0x1b6)](_0x32fe70,_0x508cf4),_0x34ee42=(_0x4bbc35=this[_0xb36aa8(0x31a)][_0xb36aa8(0x293)](_0x50b631[_0xb36aa8(0x2f0)]))==null?void 0x0:_0x4bbc35[_0xb36aa8(0x295)]();(_0x34ee42==null?void 0x0:_0x34ee42[_0xb36aa8(0x1d5)]())===_0x39c4bc&&this[_0xb36aa8(0x23d)](_0x32fe70['id'],_0x508d6e,_0x3dc9ca);},0x11);_0xe8fba7[_0x1feb23(0x210)](_0x228c7a,_0x52b125);}return _0xe8fba7['get'](_0x228c7a);};this[_0x5ec740(0x1e0)](this[_0x5ec740(0x31a)][_0x5ec740(0x21a)][_0x5ec740(0x1f1)](_0x2f8efd=>{const _0x1d5361=_0x5ec740;let _0x153b70=this[_0x1d5361(0x31a)][_0x1d5361(0x293)](_0x50b631['UNIVER_SHEET']);if(_0x2f8efd&&_0x153b70&&_0x153b70[_0x1d5361(0x360)]()===_0x2f8efd){var _0x241a1b;let _0x176092=_0x153b70[_0x1d5361(0x295)]()[_0x1d5361(0x1d5)]();this[_0x1d5361(0x261)]&&(this[_0x1d5361(0x261)][_0x1d5361(0x2f9)]!==_0x2f8efd||this[_0x1d5361(0x261)][_0x1d5361(0x254)]!==_0x176092)&&this[_0x1d5361(0x416)](this[_0x1d5361(0x261)][_0x1d5361(0x2f9)],this[_0x1d5361(0x261)][_0x1d5361(0x254)]),this['_lastActiveSheet']={'unitId':_0x2f8efd,'subUnitId':_0x176092};let _0x4b3347=this['_drawingManagerService'][_0x1d5361(0x340)](_0x2f8efd,_0x176092);if(!((_0x241a1b=this[_0x1d5361(0x19f)]['getRenderUnitById'](_0x2f8efd))!=null&&_0x241a1b['with'](_0x218d8c)['getSkeleton'](_0x176092)))return;if(_0x4b3347)for(let _0x22c1e4 in _0x4b3347){let {drawingId:_0x5b181d}=_0x4b3347[_0x22c1e4],_0x513eec=this[_0x1d5361(0x3f0)][_0x1d5361(0x284)](_0x5b181d);_0x513eec&&_0x2b0479(_0x513eec['id'])(_0x513eec,_0x176092,_0x513eec['config'],this[_0x1d5361(0x375)][_0x1d5361(0x321)]());}}})),this[_0x5ec740(0x1e0)](this[_0x5ec740(0x3f9)][_0x5ec740(0x1dc)][_0x5ec740(0x1f1)](()=>{const _0x1c04ee=_0x5ec740;var _0x2f9adf;let _0x1b67ad=this[_0x1c04ee(0x31a)][_0x1c04ee(0x293)](_0x50b631[_0x1c04ee(0x2f0)]);if(!_0x1b67ad)return;let _0x32215b=_0x1b67ad['getUnitId'](),_0xbde6ca=_0x1b67ad['getActiveSheet']()[_0x1c04ee(0x1d5)](),_0x5877a4=this[_0x1c04ee(0x1a2)][_0x1c04ee(0x340)](_0x32215b,_0xbde6ca);if((_0x2f9adf=this['_renderManagerService'][_0x1c04ee(0x26c)](_0x32215b))!=null&&_0x2f9adf[_0x1c04ee(0x31c)](_0x218d8c)[_0x1c04ee(0x2e0)](_0xbde6ca)&&_0x5877a4)for(let _0x1d097e in _0x5877a4){let {drawingId:_0x5d97af}=_0x5877a4[_0x1d097e],_0x1ba99d=this[_0x1c04ee(0x3f0)]['getChartModel'](_0x5d97af);_0x1ba99d&&_0x2b0479(_0x1ba99d['id'])(_0x1ba99d,_0xbde6ca,_0x1ba99d[_0x1c04ee(0x3cc)],this['_localeService'][_0x1c04ee(0x321)]());}})),this['disposeWithMe'](this['_drawingManagerService']['add$'][_0x5ec740(0x1f1)](_0x285103=>{const _0x515f9d=_0x5ec740;_0x285103[_0x515f9d(0x308)](_0x89968f=>{const _0x5312fa=_0x515f9d;var _0x46f195;let {drawingId:_0x4f8fe8,unitId:_0x3de1fa,subUnitId:_0x2283a8}=_0x89968f,_0x51ca94=this['_renderManagerService'][_0x5312fa(0x26c)](_0x3de1fa);if((_0x51ca94==null?void 0x0:_0x51ca94[_0x5312fa(0x1bc)])!==_0x50b631[_0x5312fa(0x2f0)]||!_0x51ca94['with'](_0x218d8c)[_0x5312fa(0x2e0)](_0x2283a8))return;let {drawingType:_0x3d7cd2}=this[_0x5312fa(0x1a2)]['getDrawingByParam'](_0x89968f);if(_0x3d7cd2!==_0x1dc4b2['DRAWING_CHART'])return;let _0x54b583=this['_sheetCanvasFloatDomManagerService'][_0x5312fa(0x35a)](_0x4f8fe8);this[_0x5312fa(0x3ac)](_0x4f8fe8);let _0x2b5e65=new _0x110283();this[_0x5312fa(0x435)][_0x5312fa(0x210)](_0x4f8fe8,_0x2b5e65);let _0x445593=(_0x54b583==null?void 0x0:_0x54b583[_0x5312fa(0x2ae)])??_0x4f8fe8,_0x589a98=_0x54b583==null?void 0x0:_0x54b583[_0x5312fa(0x351)],_0x520824=(_0x46f195=this['_renderManagerService']['getRenderUnitById'](_0x3de1fa))==null?void 0x0:_0x46f195[_0x5312fa(0x288)];_0x589a98&&_0x2b5e65[_0x5312fa(0x1e0)](_0x589a98['onTransformChange$'][_0x5312fa(0x2e8)](_0x2f41b0=>{const _0x37789b=_0x5312fa;let {type:_0x5e211d,value:_0x295eb5}=_0x2f41b0;if(_0x583ffa[_0x37789b(0x222)]===_0x5e211d||_0x583ffa[_0x37789b(0x1eb)]===_0x5e211d){let {width:_0x4de089,height:_0x39dbb0}=_0x295eb5;this['_debounceHandle'](_0x4f8fe8,{'width':_0x4de089,'height':_0x39dbb0},0x64);}})),_0x520824&&_0x2b5e65['disposeWithMe'](_0x520824['onTransformChange$'][_0x5312fa(0x2e8)](_0x26677d=>{const _0x468a2a=_0x5312fa;var _0x29279e;_0x26677d[_0x468a2a(0x1bc)]===_0x583ffa[_0x468a2a(0x1e6)]&&(_0x29279e=document['getElementById'](_0x445593))!=null&&_0x29279e[_0x468a2a(0x247)](_0x468a2a(0x3fd))&&this[_0x468a2a(0x26a)]['syncHostLayout'](_0x4f8fe8);}));let _0x4ee988=this[_0x5312fa(0x3f0)][_0x5312fa(0x284)](_0x4f8fe8);_0x4ee988&&_0x2b5e65[_0x5312fa(0x1e0)](_0x3c6cb0([_0x4ee988[_0x5312fa(0x1d7)],_0x4ee988['style$'],this[_0x5312fa(0x375)][_0x5312fa(0x1a4)]])[_0x5312fa(0x1f1)](([_0x46b0d1,_0x471b2c,_0x46d716])=>{_0x2b0479(_0x4ee988['id'])(_0x4ee988,_0x2283a8,_0x46b0d1,_0x46d716);}));});})),this[_0x5ec740(0x1e0)](_0x3c6cb0([this[_0x5ec740(0x1a2)][_0x5ec740(0x2de)]])['subscribe'](([_0x1d5310])=>{const _0x21f218=_0x5ec740;_0x1d5310[_0x21f218(0x308)](_0x4c5a14=>{const _0x500e8b=_0x21f218;var _0xfad8b0;let {drawingId:_0x11d5a3}=_0x4c5a14;this[_0x500e8b(0x3ac)](_0x11d5a3),((_0xfad8b0=this[_0x500e8b(0x3f0)][_0x500e8b(0x242)])==null?void 0x0:_0xfad8b0['id'])===_0x11d5a3&&this[_0x500e8b(0x3f0)][_0x500e8b(0x1fa)](null),this[_0x500e8b(0x434)](_0x11d5a3),this[_0x500e8b(0x2f4)][_0x500e8b(0x28b)](_0x11d5a3),this[_0x500e8b(0x26a)][_0x500e8b(0x2c0)](_0x11d5a3),this[_0x500e8b(0x2a2)](_0x11d5a3),this[_0x500e8b(0x445)](_0x11d5a3),this['_chartSnapshotStoreService'][_0x500e8b(0x329)](_0x11d5a3),this[_0x500e8b(0x44f)](_0x11d5a3),this[_0x500e8b(0x203)][_0x500e8b(0x28b)](_0x11d5a3),this['_chartElementEditMode'][_0x500e8b(0x28b)](_0x11d5a3);});}));}['setElementEditMode'](_0x2b4115,_0x5ddbc3){const _0x5c93ea=_0xca568b;var _0x2b4d14;_0x5ddbc3?this[_0x5c93ea(0x341)][_0x5c93ea(0x210)](_0x2b4115,!0x0):this['_chartElementEditMode']['delete'](_0x2b4115),(_0x2b4d14=this[_0x5c93ea(0x40d)]['get'](_0x2b4115))==null||_0x2b4d14['setElementEditMode'](_0x5ddbc3);}async[_0xca568b(0x42c)](_0x199eb4,_0x31af71){const _0xf6e820=_0xca568b;var _0x17c26b;let _0x2e7b60=this['_lastRenderInputMap']['get'](_0x199eb4),_0x828201=(_0x17c26b=this[_0xf6e820(0x40f)][_0xf6e820(0x35a)](_0x199eb4))==null?void 0x0:_0x17c26b['rect'];if(_0x2e7b60&&_0x828201)return(await this['_renderModelManager'][_0xf6e820(0x42c)]({'chartId':_0x199eb4,'config':_0x2e7b60[_0xf6e820(0x3cc)],'style':_0x2e7b60[_0xf6e820(0x26b)],'width':_0x828201[_0xf6e820(0x285)],'height':_0x828201['height']},_0x31af71))['dataUrl'];if((_0x31af71==null?void 0x0:_0x31af71[_0xf6e820(0x23f)])===_0x3459c1[_0xf6e820(0x1bd)])return;let _0x40aa99=this[_0xf6e820(0x1b4)](_0x199eb4);return _0x40aa99?_0x1ee32c(_0x40aa99):void 0x0;}['on'](_0x3db467,_0xf6ce51,_0x2e2add){const _0x2a493a=_0xca568b;let _0xa7412d=this[_0x2a493a(0x2f4)]['get'](_0x3db467);_0xa7412d||(_0xa7412d=new Map(),this[_0x2a493a(0x2f4)][_0x2a493a(0x210)](_0x3db467,_0xa7412d));let _0x5f1c0e=_0xa7412d[_0x2a493a(0x29a)](_0xf6ce51);_0x5f1c0e||(_0x5f1c0e=new Set(),_0xa7412d[_0x2a493a(0x210)](_0xf6ce51,_0x5f1c0e)),_0x5f1c0e[_0x2a493a(0x36f)](_0x2e2add);let _0x594f3d=this['_chartInstanceMap']['get'](_0x3db467);return _0x594f3d&&this['_bindChartEventHandler'](_0x3db467,_0x594f3d,_0xf6ce51,_0x2e2add),{'dispose':()=>{const _0x54ddc0=_0x2a493a;var _0x5d2173;(_0x5d2173=this[_0x54ddc0(0x2f4)]['get'](_0x3db467))==null||(_0x5d2173=_0x5d2173[_0x54ddc0(0x29a)](_0xf6ce51))==null||_0x5d2173[_0x54ddc0(0x28b)](_0x2e2add),this[_0x54ddc0(0x3e9)](_0x3db467,_0xf6ce51,_0x2e2add);}};}[_0xca568b(0x1b4)](_0x199216){const _0x527c77=_0xca568b;let _0x6329fb=this[_0x527c77(0x31a)][_0x527c77(0x293)](_0x50b631['UNIVER_SHEET']),_0x4958f7=_0x6329fb==null?void 0x0:_0x6329fb[_0x527c77(0x295)](),_0x1d2b74=_0x6329fb==null?void 0x0:_0x6329fb[_0x527c77(0x360)](),_0x561b1b=_0x4958f7==null?void 0x0:_0x4958f7[_0x527c77(0x1d5)]();if(_0x1d2b74&&_0x561b1b)return this['_chartSnapshotStoreService'][_0x527c77(0x267)]({'unitId':_0x1d2b74,'subUnitId':_0x561b1b,'chartId':_0x199216});}[_0xca568b(0x273)](_0x5b1344,_0x23e41c){const _0x40e5d7=_0xca568b;let _0x2673c8=this[_0x40e5d7(0x2f4)]['get'](_0x5b1344);_0x2673c8&&_0x2673c8[_0x40e5d7(0x308)]((_0x3a95f3,_0x35f1cb)=>{const _0x5b137d=_0x40e5d7;_0x3a95f3[_0x5b137d(0x308)](_0x4f6d83=>this[_0x5b137d(0x27c)](_0x5b1344,_0x23e41c,_0x35f1cb,_0x4f6d83));});}[_0xca568b(0x27c)](_0x4c30d,_0x201c4e,_0x477780,_0x3a540b){const _0x133151=_0xca568b;let _0x1e8ff0=this['_chartEventSubscriptions']['get'](_0x4c30d);_0x1e8ff0||(_0x1e8ff0=new Map(),this['_chartEventSubscriptions'][_0x133151(0x210)](_0x4c30d,_0x1e8ff0));let _0x3425f7=_0x1e8ff0['get'](_0x477780);_0x3425f7||(_0x3425f7=new Map(),_0x1e8ff0['set'](_0x477780,_0x3425f7)),!_0x3425f7[_0x133151(0x3e1)](_0x3a540b)&&_0x3425f7[_0x133151(0x210)](_0x3a540b,_0x201c4e['on'](_0x477780,_0x3a540b));}[_0xca568b(0x3e9)](_0x223e0a,_0x2ca24a,_0x2263d6){const _0x2c1b93=_0xca568b;var _0x26839c,_0x3bc2ca;let _0x4faba8=(_0x26839c=this[_0x2c1b93(0x32c)][_0x2c1b93(0x29a)](_0x223e0a))==null?void 0x0:_0x26839c[_0x2c1b93(0x29a)](_0x2ca24a);_0x4faba8==null||(_0x3bc2ca=_0x4faba8['get'](_0x2263d6))==null||_0x3bc2ca[_0x2c1b93(0x406)](),_0x4faba8==null||_0x4faba8['delete'](_0x2263d6);}[_0xca568b(0x434)](_0x3ecf43){const _0x364c3e=_0xca568b;let _0xc9e5d1=this[_0x364c3e(0x32c)]['get'](_0x3ecf43);_0xc9e5d1==null||_0xc9e5d1[_0x364c3e(0x308)](_0x1eb4ed=>{const _0xbe3dec=_0x364c3e;_0x1eb4ed[_0xbe3dec(0x308)](_0x4c8b09=>_0x4c8b09[_0xbe3dec(0x406)]()),_0x1eb4ed[_0xbe3dec(0x2a4)]();}),this[_0x364c3e(0x32c)][_0x364c3e(0x28b)](_0x3ecf43);}[_0xca568b(0x1b6)](_0x28704f,_0x120b66){const _0x940a61=_0xca568b;return Si(_0x28704f,_0x120b66,this[_0x940a61(0x374)]);}['checkChartCanRender'](_0x51f45c){const _0x280ffa=_0xca568b;return this[_0x280ffa(0x21b)](_0x51f45c)==null;}[_0xca568b(0x21b)](_0x2909b9){const _0x315361=_0xca568b;var _0x6492d0;let _0x4c0fa9=this[_0x315361(0x40f)][_0x315361(0x35a)](_0x2909b9);if(!_0x4c0fa9)return _0x315361(0x1fb);let {subUnitId:_0xd2f899}=_0x4c0fa9,_0x6b0022=(_0x6492d0=this['_univerInstanceService'][_0x315361(0x293)](_0x50b631[_0x315361(0x2f0)]))==null?void 0x0:_0x6492d0[_0x315361(0x295)]();if(!_0x6b0022)return'missing-active-sheet';if(_0x6b0022[_0x315361(0x1d5)]()!==_0xd2f899)return _0x315361(0x266);}async[_0xca568b(0x23d)](_0x34d39f,_0x247a36,_0x29bd36,_0x313d94={}){const _0x126ef2=_0xca568b;let _0x54321e=this[_0x126ef2(0x234)]['getRenderModel'](_0x5bf36d);if(!_0x54321e)return;let _0x114d98=this[_0x126ef2(0x203)][_0x126ef2(0x29a)](_0x34d39f);if(this['_lastRenderInputMap'][_0x126ef2(0x210)](_0x34d39f,{'config':_0x247a36,'style':_0x29bd36}),this['_getChartRenderSkipReason'](_0x34d39f))return;let {canAnimate:_0x2580ce,renderMode:_0x533e3d,shouldStartTransientAnimation:_0x5cc8ac,transientAnimationActive:_0x531fc7}=this[_0x126ef2(0x1e1)](_0x34d39f,_0x114d98!=null,_0x313d94[_0x126ef2(0x371)]===!0x0);if(_0x533e3d===_0x13effc[_0x126ef2(0x224)])this[_0x126ef2(0x454)](_0x34d39f);else{var _0x535975;this['_chartHostProvider']['invalidateSnapshot'](_0x34d39f),((_0x535975=this['_chartModelService'][_0x126ef2(0x242)])==null?void 0x0:_0x535975['id'])===_0x34d39f&&this[_0x126ef2(0x1c4)](_0x34d39f);}let _0x563e30=_0x533e3d===_0x13effc['Image']?_0x13effc['Image']:_0x13effc[_0x126ef2(0x237)],_0x3df36f=await this['_chartHostProvider'][_0x126ef2(0x431)](_0x34d39f,_0x563e30);if(!_0x3df36f){_0x5cc8ac&&this[_0x126ef2(0x39c)](_0x34d39f);return;}this[_0x126ef2(0x26a)]['setDataUpdateAnimation'](_0x34d39f,_0x531fc7?_0x3ec9cf:null);let _0x1f57ab=this['_getOrCreateChartRenderInstance'](_0x34d39f,_0x563e30,_0x54321e);_0x1f57ab['bind'](_0x3df36f);try{let _0xa51e1a={'chartId':_0x34d39f,'config':_0x247a36,'style':_0x29bd36};_0x2580ce&&_0x114d98&&_0x1f57ab[_0x126ef2(0x40c)]?await _0x1f57ab['renderTransition']({'chartId':_0x34d39f,'config':_0x114d98[_0x126ef2(0x3cc)],'style':_0x114d98[_0x126ef2(0x26b)]},_0xa51e1a,{'duration':_0x3ec9cf}):await _0x1f57ab[_0x126ef2(0x23d)](_0xa51e1a),await this[_0x126ef2(0x37c)](_0x34d39f,_0x533e3d,_0x1f57ab),_0x2580ce&&_0x531fc7&&this[_0x126ef2(0x29e)](_0x34d39f);}catch(_0x23c789){if(_0x5cc8ac&&this['_deactivateDataUpdateAnimation'](_0x34d39f),_0x533e3d!==_0x13effc[_0x126ef2(0x224)])throw _0x23c789;}}async[_0xca568b(0x37c)](_0x16ae5c,_0x30bde9,_0x2d9c8f){const _0x5200c1=_0xca568b;var _0x4643fd;if(_0x30bde9!==_0x13effc['Dom']||((_0x4643fd=this[_0x5200c1(0x3f0)][_0x5200c1(0x242)])==null?void 0x0:_0x4643fd['id'])!==_0x16ae5c)return;let _0x3d942e=await this[_0x5200c1(0x26a)][_0x5200c1(0x431)](_0x16ae5c,_0x13effc[_0x5200c1(0x224)]);if(!_0x3d942e)return;let _0x28e1a6=_0x3d942e[_0x5200c1(0x399)]();try{let _0x466158=await _0x2d9c8f['exportImg']();_0x466158&&_0x3d942e['commitSnapshot']({'type':_0x44200d[_0x5200c1(0x3b0)],'url':_0x466158},_0x28e1a6)&&_0x3d942e[_0x5200c1(0x232)]();}catch{}}['_prepareDataUpdateRender'](_0x368203,_0x2c142d,_0x3218fc){const _0x56fa4f=_0xca568b;let _0x174f47=this['_resolveChartRenderMode'](_0x368203),_0x3ca3c8=_0x174f47===_0x13effc[_0x56fa4f(0x237)]&&_0x3218fc&&_0x2c142d&&this['_canAnimateDataUpdate'](_0x368203),_0xf9f03=this['_dataUpdateAnimationChartIds'][_0x56fa4f(0x3e1)](_0x368203);return{'canAnimate':_0x3ca3c8,'renderMode':_0xf9f03?_0x13effc['Dom']:_0x174f47,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0xf9f03};}[_0xca568b(0x262)](_0x3b385c){const _0x210a2e=_0xca568b;var _0x4e6d9d,_0x3b755b,_0x567ca1,_0x2570e1;if(typeof document>'u'||typeof window>'u'||document[_0x210a2e(0x202)]===_0x210a2e(0x315)||(_0x4e6d9d=(_0x3b755b=window)['matchMedia'])!=null&&(_0x4e6d9d=_0x4e6d9d[_0x210a2e(0x2b9)](_0x3b755b,_0x210a2e(0x44e)))!=null&&_0x4e6d9d[_0x210a2e(0x362)]||(_0x567ca1=(_0x2570e1=window)[_0x210a2e(0x24f)])!=null&&(_0x567ca1=_0x567ca1[_0x210a2e(0x2b9)](_0x2570e1,_0x210a2e(0x419)))!=null&&_0x567ca1[_0x210a2e(0x362)])return!0x1;let _0xac187=this['_chartHostProvider'][_0x210a2e(0x1da)](_0x3b385c);return _0xac187!=null&&_0xac187['width']>0x0&&_0xac187[_0x210a2e(0x3ce)]>0x0&&_0xac187[_0x210a2e(0x334)]>0x0&&_0xac187['bottom']>0x0&&_0xac187[_0x210a2e(0x2c3)]<window[_0x210a2e(0x251)]&&_0xac187[_0x210a2e(0x45a)]<window['innerHeight'];}[_0xca568b(0x2d5)](_0x59b6c4){const _0x3e3f2a=_0xca568b;let _0x2ab144=this[_0x3e3f2a(0x433)]['get'](_0x59b6c4);_0x2ab144&&(clearTimeout(_0x2ab144),this[_0x3e3f2a(0x433)]['delete'](_0x59b6c4)),this[_0x3e3f2a(0x280)][_0x3e3f2a(0x36f)](_0x59b6c4),this['_chartHostProvider'][_0x3e3f2a(0x269)](_0x59b6c4,_0x3ec9cf);}[_0xca568b(0x29e)](_0xdef0d2){const _0x47d0f3=_0xca568b;let _0x5d7652=this[_0x47d0f3(0x433)]['get'](_0xdef0d2);_0x5d7652&&clearTimeout(_0x5d7652);let _0x31dca7=setTimeout(()=>{const _0x491b70=_0x47d0f3;this[_0x491b70(0x433)][_0x491b70(0x28b)](_0xdef0d2),this['_dataUpdateAnimationChartIds']['delete'](_0xdef0d2)&&(this[_0x491b70(0x26a)][_0x491b70(0x269)](_0xdef0d2,null),this[_0x491b70(0x454)](_0xdef0d2),this['_rerenderLatest'](_0xdef0d2));},_0x3ec9cf);this[_0x47d0f3(0x433)][_0x47d0f3(0x210)](_0xdef0d2,_0x31dca7);}[_0xca568b(0x39c)](_0x31dea5){const _0x58c09d=_0xca568b;let _0x474f1c=this[_0x58c09d(0x433)][_0x58c09d(0x29a)](_0x31dea5);_0x474f1c&&(clearTimeout(_0x474f1c),this[_0x58c09d(0x433)][_0x58c09d(0x28b)](_0x31dea5)),this[_0x58c09d(0x280)][_0x58c09d(0x28b)](_0x31dea5),this['_chartHostProvider'][_0x58c09d(0x269)](_0x31dea5,null);}async[_0xca568b(0x1d3)](_0x6861ef,_0x83d933,_0x6206c9){const _0x58f09b=_0xca568b;let _0x4783db=this[_0x58f09b(0x1a2)]['getDrawingData'](_0x6861ef,_0x83d933),_0x2eaf50=this['_drawingManagerService'][_0x58f09b(0x3c7)](_0x6861ef,_0x83d933),_0x46de29=Object[_0x58f09b(0x377)](_0x4783db??{})['filter'](_0x3895e5=>_0x3895e5[_0x58f09b(0x2ac)]===_0x1dc4b2[_0x58f09b(0x1b7)]&&_0x3895e5[_0x58f09b(0x315)]!==!0x0);await Promise[_0x58f09b(0x25b)](_0x46de29[_0x58f09b(0x226)](async _0x61a80c=>{const _0x39e337=_0x58f09b;let _0x8aa874=await this[_0x39e337(0x1d0)](_0x61a80c,_0x2eaf50);_0x8aa874&&(_0x6206c9[_0x39e337(0x373)](_0x8aa874,_0x16b88b),_0x61a80c[_0x39e337(0x459)]&&_0x36767e({'drawingId':_0x61a80c[_0x39e337(0x459)],'unitId':_0x6861ef,'subUnitId':_0x83d933},_0x8aa874,_0x6206c9,this[_0x39e337(0x1a2)]));}));}async[_0xca568b(0x1d0)](_0x20ce2a,_0x86b019){const _0x439d46=_0xca568b;let _0xa445d4=this[_0x439d46(0x3f0)][_0x439d46(0x284)](_0x20ce2a['drawingId']),_0x9cad99=this[_0x439d46(0x234)][_0x439d46(0x327)](_0x5bf36d),_0x11e0c0=_0x20ce2a['transform'],_0xa1d9e0=_0xa445d4==null?void 0x0:_0xa445d4['config'];if(!_0xa445d4||!_0x9cad99||!_0x11e0c0||!_0xa1d9e0||_0x11e0c0[_0x439d46(0x285)]==null||_0x11e0c0[_0x439d46(0x3ce)]==null)return null;let _0x2708e5=new xi(_0x20ce2a[_0x439d46(0x22a)],{'width':_0x11e0c0[_0x439d46(0x285)],'height':_0x11e0c0[_0x439d46(0x3ce)]}),_0x131362=_0x9cad99[_0x439d46(0x330)](_0x13effc[_0x439d46(0x224)],this[_0x439d46(0x456)]());_0x131362[_0x439d46(0x2a9)](_0x2708e5);let _0x5543a7;try{await _0x131362[_0x439d46(0x23d)]({'chartId':_0x20ce2a['drawingId'],'config':_0xa1d9e0,'style':this[_0x439d46(0x1b6)](_0xa445d4,this[_0x439d46(0x375)][_0x439d46(0x321)]())});}catch(_0x207c20){console['error'](_0x439d46(0x1b0),_0x207c20);}finally{_0x5543a7=_0x2708e5['takeSnapshot'](),_0x131362[_0x439d46(0x406)](),_0x2708e5[_0x439d46(0x406)]();}let _0x6cbb19=this[_0x439d46(0x26e)][_0x439d46(0x267)]({'unitId':_0x20ce2a[_0x439d46(0x2f9)],'subUnitId':_0x20ce2a[_0x439d46(0x254)],'chartId':_0x20ce2a[_0x439d46(0x22a)]}),_0x314695=_0x5543a7??_0x6cbb19;if(!_0x314695)return null;let _0x2d271d=_0x86b019['indexOf'](_0x20ce2a['drawingId']);return new si(_0x3e2347(_0x20ce2a),{..._0x11e0c0,..._0x512cc9,..._i(_0x2708e5[_0x439d46(0x26b)]),'visible':!0x0,'zIndex':_0x2d271d===-0x1?Math[_0x439d46(0x3ea)](_0x86b019[_0x439d46(0x3c2)]-0x1,0x0):_0x2d271d},()=>_0x314695,void 0x0,_0x5543a7?()=>G(_0x5543a7):void 0x0);}[_0xca568b(0x263)](_0x4f5381,_0xb0b5d1,_0x1644a4){const _0x2f5f32=_0xca568b;let _0x5e50ba=this['_chartInstanceMap'][_0x2f5f32(0x29a)](_0x4f5381);if((_0x5e50ba==null?void 0x0:_0x5e50ba['mode'])===_0xb0b5d1)return _0x5e50ba;_0x5e50ba&&(this[_0x2f5f32(0x434)](_0x4f5381),_0x5e50ba[_0x2f5f32(0x406)](),this[_0x2f5f32(0x40d)][_0x2f5f32(0x28b)](_0x4f5381));let _0x50a7b1=_0x1644a4[_0x2f5f32(0x330)](_0xb0b5d1,this[_0x2f5f32(0x456)]());return this[_0x2f5f32(0x40d)][_0x2f5f32(0x210)](_0x4f5381,_0x50a7b1),_0x50a7b1[_0x2f5f32(0x253)](this[_0x2f5f32(0x341)]['get'](_0x4f5381)===!0x0),this[_0x2f5f32(0x273)](_0x4f5381,_0x50a7b1),_0x50a7b1;}[_0xca568b(0x456)](){const _0x32eb2e=_0xca568b;return{'resolveHostStyle':({style:_0x8b5954})=>_0x3b0e43({'style':_0x8b5954,'getRenderColor':_0x199012=>this[_0x32eb2e(0x35b)][_0x32eb2e(0x44d)](_0x199012)}),'resolveRenderBackgroundColor':({style:_0x5e28b8})=>this[_0x32eb2e(0x35b)][_0x32eb2e(0x44d)](_0x490695(_0x5e28b8))};}[_0xca568b(0x3ac)](_0x1807b3){const _0xda9e5d=_0xca568b;var _0x48d8db,_0x55624e,_0x4b2bbd;(_0x48d8db=this[_0xda9e5d(0x435)][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x48d8db['dispose'](),this[_0xda9e5d(0x435)][_0xda9e5d(0x28b)](_0x1807b3),(_0x55624e=this['_renderDebounceMap'][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x55624e[_0xda9e5d(0x1db)](),this['_renderDebounceMap']['delete'](_0x1807b3),(_0x4b2bbd=this['_debounceHandleMap'][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x4b2bbd[_0xda9e5d(0x1db)](),this[_0xda9e5d(0x354)][_0xda9e5d(0x28b)](_0x1807b3);}[_0xca568b(0x31b)](){const _0x25731a=_0xca568b;this[_0x25731a(0x276)]['forEach'](_0x31d38c=>_0x31d38c['cancel']()),this['_renderDebounceMap'][_0x25731a(0x2a4)](),this[_0x25731a(0x354)][_0x25731a(0x308)](_0x5d62d1=>_0x5d62d1['cancel']()),this[_0x25731a(0x354)]['clear']();}[_0xca568b(0x406)](){const _0x1fe5a3=_0xca568b;this[_0x1fe5a3(0x435)][_0x1fe5a3(0x308)](_0x1576c8=>_0x1576c8[_0x1fe5a3(0x406)]()),this[_0x1fe5a3(0x435)][_0x1fe5a3(0x2a4)](),this[_0x1fe5a3(0x433)][_0x1fe5a3(0x308)](_0x10681d=>clearTimeout(_0x10681d)),this['_dataUpdateAnimationTimers'][_0x1fe5a3(0x2a4)](),this['_dataUpdateAnimationChartIds'][_0x1fe5a3(0x2a4)](),Array[_0x1fe5a3(0x216)](this[_0x1fe5a3(0x40d)][_0x1fe5a3(0x2a3)]())['forEach'](_0x4988d0=>this[_0x1fe5a3(0x445)](_0x4988d0)),this[_0x1fe5a3(0x341)][_0x1fe5a3(0x2a4)](),this[_0x1fe5a3(0x31b)](),this[_0x1fe5a3(0x203)][_0x1fe5a3(0x2a4)](),this['_activeChartId']=null,this[_0x1fe5a3(0x261)]=null,super[_0x1fe5a3(0x406)]();}};J=q([K(0x0,yi),K(0x1,_0x2b7ebf(_0x48f4a3)),K(0x2,_0x2b7ebf(_0x781fb3)),K(0x3,_0x23c247),K(0x4,_0x46e33a),K(0x5,_0x2b7ebf(_0x52b878)),K(0x6,_0x2b7ebf(_0x3ad976)),K(0x7,_0x2b7ebf(_0x34eb6c)),K(0x8,_0x2b7ebf(_0x5c00e3)),K(0x9,_0x2b7ebf(_0xa588aa)),K(0xa,_0x116807),K(0xb,_0x2b7ebf(di)),K(0xc,_0x5d8531)],J);const Y=_0x2d4252('sheets-chart.ui.service');let Ci=class extends _0x11b0f5{constructor(_0x44640f,_0x1e7613,_0x485259,_0x1910ce,_0x2eda35){const _0x2ba8cb=_0xca568b;super(_0x2eda35),this[_0x2ba8cb(0x3f0)]=_0x44640f,this[_0x2ba8cb(0x1ac)]=_0x1e7613,this[_0x2ba8cb(0x214)]=_0x485259,this['_univerInstanceService']=_0x1910ce,W(this,_0x2ba8cb(0x451),!0x1),W(this,'_chartEditorOpen$',new _0x16eb2c(!0x1)),W(this,_0x2ba8cb(0x1a6),new _0x16eb2c(null)),W(this,'chartEditorOpen$',this[_0x2ba8cb(0x3b1)][_0x2ba8cb(0x3a8)]()),W(this,'panelRoute$',this[_0x2ba8cb(0x1a6)][_0x2ba8cb(0x3a8)]());}get[_0xca568b(0x40e)](){const _0x402b3d=_0xca568b;return this[_0x402b3d(0x3f0)][_0x402b3d(0x242)]??null;}get[_0xca568b(0x3c6)](){const _0x422dd4=_0xca568b;return this[_0x422dd4(0x3b1)][_0x422dd4(0x2bc)]();}get[_0xca568b(0x235)](){const _0x2f8c48=_0xca568b;return this[_0x2f8c48(0x451)];}[_0xca568b(0x39a)](_0x18e79c){const _0x34d5be=_0xca568b;this[_0x34d5be(0x451)]=_0x18e79c;}['setChartEditorOpen'](_0x17a274){const _0x5af455=_0xca568b;this[_0x5af455(0x3b1)][_0x5af455(0x2bc)]()!==_0x17a274&&this[_0x5af455(0x3b1)][_0x5af455(0x1b5)](_0x17a274);}[_0xca568b(0x1de)](_0x281407){const _0x3ebb41=_0xca568b;var _0x21150a;return this[_0x3ebb41(0x3c6)]&&((_0x21150a=this[_0x3ebb41(0x3f0)]['activeChartModel'])==null?void 0x0:_0x21150a['id'])===_0x281407;}[_0xca568b(0x3e6)](_0x4258cb,_0xb1c03d){const _0x1fb857=_0xca568b;this[_0x1fb857(0x1a6)]['next']({'chartId':_0x4258cb,'route':_0xb1c03d});}[_0xca568b(0x1f9)](){const _0x409199=_0xca568b;this['_panelRoute$'][_0x409199(0x1b5)](null);}[_0xca568b(0x1f3)](_0xafeca1){const _0x32ee0d=_0xca568b;let _0x4dcbcd=this[_0x32ee0d(0x3f0)][_0x32ee0d(0x242)];_0x4dcbcd&&this[_0x32ee0d(0x42f)]({'chartModelId':_0x4dcbcd['id'],'range':_0xafeca1});}[_0xca568b(0x2ab)](_0x333134){const _0x4ec7ea=_0xca568b;let _0x3a80a5=this[_0x4ec7ea(0x3f0)][_0x4ec7ea(0x242)];if(!_0x3a80a5)return;let _0x5d9c78=this[_0x4ec7ea(0x1ac)]['getChartSourceSpec'](_0x3a80a5['id']);if(!_0x5d9c78||Array[_0x4ec7ea(0x363)](_0x5d9c78))return;let _0x5a68c3={..._0x5d9c78,'isRowDirection':_0x333134===_0x389e65[_0x4ec7ea(0x31e)]};this['_executeChartUpdateSourceConfig']({'chartModelId':_0x3a80a5['id'],'range':_0x5a68c3});}[_0xca568b(0x277)](_0x1514ec){const _0x3a95b1=_0xca568b;var _0x255921;this[_0x3a95b1(0x214)][_0x3a95b1(0x304)](_0x180bba['id'],{..._0x1514ec,'unitId':((_0x255921=this['_univerInstanceService'][_0x3a95b1(0x425)]())==null?void 0x0:_0x255921[_0x3a95b1(0x360)]())??''});}['_executeChartUpdateSourceConfig'](_0x8d4f0c){const _0x2fd4bc=_0xca568b;var _0x449f43;this[_0x2fd4bc(0x214)][_0x2fd4bc(0x304)](_0x2edcc4['id'],{..._0x8d4f0c,'unitId':((_0x449f43=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x449f43['getUnitId']())??''});}[_0xca568b(0x406)](){const _0x3a5c54=_0xca568b;this['_chartEditorOpen$'][_0x3a5c54(0x388)](),this[_0x3a5c54(0x1a6)]['complete'](),super[_0x3a5c54(0x406)]();}};Ci=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(_0xb7f357)),K(0x2,_0x5a9a36),K(0x3,_0x46e33a),K(0x4,_0x2b7ebf(_0x10f33b))],Ci);var wi;const Ti={'axis':{..._0x16ed26,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x175ef0,'heatmap':_0x1d2cd9,'indicatorLine':_0x1dd226,'legend':_0x4d1df9,'lineAndArea':_0x57770f,'pareto':_0x23c6ff,'pie':_0x5a4fba,'relation':{..._0x1c2f0d,'useValueAsSymbolSize':!0x0},'radar':_0x42178d,'series':{..._0x820d3d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((wi=_0x5aa36e[_0xca568b(0x1e2)])==null?void 0x0:wi['rightYAxis'])??!0x1}},'style':_0xf3605b,'titles':_0x2946a4,'trendline':_0x37aaa1,'waterfall':{..._0x251a93,'useSubtotal':!0x0},'waterfallStyle':_0xba125f,'wordCloud':_0x4f9d89},Ei=_0x1167cc=>_0x1167cc['getCurrentUnitOfType'](_0x50b631[_0xca568b(0x2f0)])[_0xca568b(0x360)](),Di=_0x204a5e=>{const _0x33366b=_0xca568b;var _0x2325bb;return(_0x2325bb=_0x204a5e[_0x33366b(0x293)](_0x50b631['UNIVER_SHEET'])[_0x33366b(0x295)]())==null?void 0x0:_0x2325bb[_0x33366b(0x1d5)]();},Oi=[_0xd24882[_0xca568b(0x2fe)],_0xd24882[_0xca568b(0x1c8)],_0xd24882[_0xca568b(0x2a8)],_0xd24882[_0xca568b(0x259)],_0xd24882[_0xca568b(0x292)],_0xd24882[_0xca568b(0x2e5)],_0xd24882[_0xca568b(0x212)],_0xd24882[_0xca568b(0x1c9)],_0xd24882[_0xca568b(0x335)],_0xd24882[_0xca568b(0x3fc)],_0xd24882[_0xca568b(0x2c9)],_0xd24882[_0xca568b(0x2a7)],_0xd24882[_0xca568b(0x422)],_0xd24882['Gauge'],_0xd24882[_0xca568b(0x30b)]];function ki(){const _0x35f5a2=_0xca568b;let _0x2d0aff=_0x3cdaa0(),_0x31f72e=Oi[_0x35f5a2(0x23a)](_0x383abc=>!_0x3ede69[_0x35f5a2(0x45c)](_0x2d0aff,_0x383abc));return _0x2897c9(_0x23b483,{'visible':_0x31f72e});}const Ai=_0x2c3a6b=>{const _0x3324b9=_0xca568b;var _0x4f8f71;let _0x241d8e=_0x2b41d0(Y),_0x12236a=_0x2b41d0(_0x781fb3),_0x5552d0=_0x2b41d0(_0x3ad976),_0x1c23ae=_0x2b41d0(_0x34eb6c),_0x4f3fda=_0x14bcc6(_0x1c23ae),_0x4327c0=_0x32aaef(()=>{const _0x3e36ce=_0x28a2;let _0x510287=Wr(Hr[_0x3e36ce(0x42d)](),_0x4f3fda);return _0x3e2b77(_0x510287[_0x3e36ce(0x226)](_0x342956=>({'id':_0x342956['id'],'label':_0x5552d0['t'](_0x3e36ce(0x43c)+_0x342956['labelId']),'pieSecondaryPlotType':_0x342956[_0x3e36ce(0x344)],'value':_0x342956[_0x3e36ce(0x2e3)]})));},[_0x4f3fda,_0x5552d0]),_0xba3faa=_0x4561a1(_0x12236a[_0x3324b9(0x2b2)],_0x12236a[_0x3324b9(0x242)]),_0x1868a1=_0x4561a1(_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x1ee)],_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x28d)]),_0x2e6862=_0x4561a1(_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x1ec)],_0xba3faa==null?void 0x0:_0xba3faa['dataSource']),_0x577278=_0x4561a1(_0x2e6862==null?void 0x0:_0x2e6862[_0x3324b9(0x33c)],_0x2e6862==null?void 0x0:_0x2e6862[_0x3324b9(0x41f)]()),_0x28c423=Array[_0x3324b9(0x363)](_0x577278),_0x3f37f1=_0x577278&&!_0x28c423&&_0x577278[_0x3324b9(0x1d2)]?_0x389e65[_0x3324b9(0x31e)]:_0x389e65[_0x3324b9(0x38c)],_0x34c4d4=_0x28c423?(_0x4f8f71=_0x577278[0x0])==null?void 0x0:_0x4f8f71[_0x3324b9(0x2e2)]:_0x577278==null?void 0x0:_0x577278[_0x3324b9(0x412)];return _0x5a92d2(_0x3324b9(0x298),{'className':_0x3324b9(0x2b5),'children':[_0x2897c9(_0x42165a,{'options':_0x4327c0}),_0x2897c9(_0x5a3ad4,{}),_0x2897c9(_0x3ef36c,{}),_0x2897c9(ki,{}),_0x2897c9(_0x3a8440,{}),_0x2897c9(ji,{'dataRange':_0x577278,'primaryRange':_0x34c4d4}),_0x2897c9(_0x308311,{'categoryToggleLabel':_0x5552d0['t'](_0x3324b9(0x349),_0x3f37f1===_0x389e65[_0x3324b9(0x31e)]?_0x3f37f1+'\x20'+(((_0x34c4d4==null?void 0x0:_0x34c4d4[_0x3324b9(0x2e2)][_0x3324b9(0x44a)])??0x0)+0x1):_0x3f37f1+'\x20'+_0xa3323e((_0x34c4d4==null?void 0x0:_0x34c4d4[_0x3324b9(0x2e2)][_0x3324b9(0x29d)])??0x0)),'orientationControl':_0x28c423?void 0x0:_0x2897c9(_0x47a323,{'size':_0x3324b9(0x461),'onClick':()=>_0x241d8e[_0x3324b9(0x2ab)](_0x3f37f1===_0x389e65[_0x3324b9(0x31e)]?_0x389e65[_0x3324b9(0x38c)]:_0x389e65[_0x3324b9(0x31e)]),'children':_0x5552d0['t'](_0x3324b9(0x2f8))})}),_0x2897c9(_0x2e34e5,{}),_0x2897c9(_0x5d390c,{'defaultValues':_0x2c3a6b[_0x3324b9(0x345)][_0x3324b9(0x205)]}),_0x2897c9(_0x52ebba,{'checked':(_0x1868a1==null?void 0x0:_0x1868a1[_0x3324b9(0x3e3)])===!0x1,'disabled':!_0xba3faa,'onChange':_0x145cce=>{_0xba3faa&&_0x241d8e['executeChartUpdateConfig']({'chartModelId':_0xba3faa['id'],'context':{'plotVisibleOnly':!_0x145cce}});},'children':_0x5552d0['t']('sheets-chart-ui.common.showHiddenData')})]});};function ji(_0x4fa984){const _0x273b88=_0xca568b;let {dataRange:_0x559030,primaryRange:_0x38a7e2}=_0x4fa984,_0x5bd382=_0x2b41d0(Y),_0xcc30ce=_0x2b41d0(_0x3ad976),_0x5f3525=_0x2b41d0(_0x46e33a),_0x4e37c8=_0x2b41d0(_0x2b586f),[_0x46f5b6,_0x3a2787]=_0x758b4d(!0x1),[_0x4804e6,_0x30a3a0]=_0x758b4d(!0x1),[_0x4e053c,_0x43730b]=_0x758b4d(),_0x2c3f7d=Ei(_0x5f3525),_0x596bc5=Di(_0x5f3525),_0x517465=_0x559030?Br(_0x559030,_0x5f3525):'',_0x5b52dc=_0x5410e6(_0x517465),_0x4d6b81=_0x5410e6(void 0x0),_0xa38849=_0x5410e6(null);_0x397741(()=>{const _0x79fe99=_0x28a2;_0x5bd382['setRangeSelectMode'](_0x46f5b6),_0x4e37c8[_0x79fe99(0x31f)](_0x5ccab9,_0x46f5b6);},[_0x4e37c8,_0x46f5b6,_0x5bd382]),_0x397741(()=>()=>{const _0x42a40b=_0x28a2;_0x5bd382[_0x42a40b(0x39a)](!0x1),_0x4e37c8[_0x42a40b(0x31f)](_0x5ccab9,!0x1);},[_0x4e37c8,_0x5bd382]);let _0x32799f=_0x1237c0(_0x563ef6=>{const _0x444df5=_0x28a2;var _0x3dc64a;if(Br(_0x559030,_0x5f3525)===_0x563ef6)return _0x43730b(void 0x0),!0x0;let _0x171436=_0x563ef6[_0x444df5(0x20e)](_0x3427c4[_0x444df5(0x322)]);if(!_0x563ef6[_0x444df5(0x23c)]()||_0x171436[_0x444df5(0x3c2)]!==0x1||!((_0x3dc64a=_0xa38849['current'])!=null&&_0x3dc64a[_0x444df5(0x430)]()))return _0x43730b(_0xcc30ce['t'](_0x444df5(0x3e4))),!0x1;let {unitId:_0x24b1c6,sheetName:_0xbb40a3,range:_0x2cc2f1}=_0x1b0b9d(_0x171436[0x0]),_0x19f0f4=_0x24b1c6||_0x2c3f7d,_0x783448=_0x5f3525['getUnit'](_0x19f0f4),_0x27f7f1=(_0x38a7e2==null?void 0x0:_0x38a7e2[_0x444df5(0x2f9)])===_0x19f0f4?_0x38a7e2[_0x444df5(0x254)]:_0x596bc5,_0x3873de=_0xbb40a3?_0x783448==null?void 0x0:_0x783448[_0x444df5(0x357)](_0xbb40a3):_0x783448==null?void 0x0:_0x783448['getSheetBySheetId'](_0x27f7f1??'');return!_0x783448||!_0x3873de||!_0x55ef7f(_0x2cc2f1,_0x3873de)?(_0x43730b(_0xcc30ce['t'](_0x444df5(0x3e4))),!0x1):(_0x43730b(void 0x0),_0x5bd382[_0x444df5(0x1f3)]({'rangeInfo':{'range':_0x2cc2f1,'unitId':_0x19f0f4,'subUnitId':_0x3873de[_0x444df5(0x1d5)]()}}),!0x0);},[_0x559030,_0xcc30ce,_0x38a7e2,_0x5bd382,_0x596bc5,_0x2c3f7d,_0x5f3525]),_0x5774bb=_0x32aaef(()=>({'keyCodes':[{'keyCode':_0x5744b4[_0x273b88(0x28e)],'nativeTextEditorBehavior':_0x146e00['OVERRIDE_NATIVE']}],'handler':_0x3f2024=>{const _0x3f0bd1=_0x273b88;_0x3f2024===_0x5744b4['ENTER']&&_0x32799f(_0x5b52dc[_0x3f0bd1(0x3f6)])&&(_0x4d6b81[_0x3f0bd1(0x3f6)]=_0x5b52dc[_0x3f0bd1(0x3f6)]);}}),[_0x32799f]);return _0x2897c9(_0x273b88(0x298),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':_0x5a92d2(_0x273b88(0x298),{'children':[_0x2897c9(_0x114623,{'title':_0xcc30ce['t'](_0x273b88(0x439))}),_0x2897c9(_0x578873,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x2c3f7d,'subUnitId':_0x596bc5,'initialValue':_0x517465,'keyboardEventConfig':_0x5774bb,'selectorRef':_0xa38849,'onChange':(_0xba4016,_0x996829)=>{const _0x414c1c=_0x273b88;_0x5b52dc[_0x414c1c(0x3f6)]=_0x996829,_0x4804e6&&_0x4d6b81['current']!==_0x996829&&_0x32799f(_0x996829)&&(_0x4d6b81[_0x414c1c(0x3f6)]=_0x996829);},'onFocusChange':(_0x58288a,_0x28ed6c)=>{const _0x4eb1c0=_0x273b88;if(_0x28ed6c!==void 0x0&&(_0x5b52dc[_0x4eb1c0(0x3f6)]=_0x28ed6c),_0x4804e6||_0x3a2787(_0x58288a),_0x58288a)_0x4d6b81[_0x4eb1c0(0x3f6)]=_0x5b52dc[_0x4eb1c0(0x3f6)];else{let _0xfde1cf=_0x4d6b81['current'];_0x4d6b81['current']=void 0x0,_0xfde1cf!==void 0x0&&_0x5b52dc['current']!==_0xfde1cf&&_0x32799f(_0x5b52dc['current']);}},'onRangeSelectorDialogVisibleChange':_0xaf7ea=>{_0x30a3a0(_0xaf7ea),_0x3a2787(_0xaf7ea);}}),_0x4e053c?_0x2897c9(_0x273b88(0x298),{'className':_0x273b88(0x250),'children':_0x4e053c}):null]})});}function X(_0x2a4c4a){const _0x52b20e=_0xca568b;return _0x5a92d2(_0x464020,{'id':_0x2a4c4a['id'],'children':[_0x2897c9(_0x51fc53,{'children':_0x2a4c4a[_0x52b20e(0x248)]}),_0x2897c9(_0x10e497,{'children':_0x2a4c4a[_0x52b20e(0x2b4)]})]});}const Mi=_0x3ec057=>{const _0x12b79a=_0xca568b;let _0xd3c317=_0x2b41d0(_0x3ad976),_0x28821b=_0x2b41d0(Y),_0x5b296e=_0x2b41d0(_0x781fb3),_0x948b55=_0x4561a1(_0x5b296e[_0x12b79a(0x2b2)],_0x5b296e[_0x12b79a(0x242)]),_0x5d6b70=_0x4561a1(_0x28821b[_0x12b79a(0x3fb)],null),_0x8e09c4=_0x5d6b70&&_0x5d6b70[_0x12b79a(0x400)]===(_0x948b55==null?void 0x0:_0x948b55['id'])?_0x5d6b70[_0x12b79a(0x3ae)]:null,_0x2a4134=_0x3cdaa0(),_0xadf9d9=_0x44523d(),[_0x22af60,_0x4aa5d1]=_0x758b4d(null);_0x397741(()=>{const _0x4d4a8c=_0x12b79a;_0x8e09c4!=null&&_0x8e09c4[_0x4d4a8c(0x294)]&&_0x4aa5d1(_0x8e09c4[_0x4d4a8c(0x294)]);},[_0x8e09c4]);let _0x2748d5=_0x3ede69[_0x12b79a(0x45c)](_0x2a4134,_0xd24882[_0x12b79a(0x1e8)]),_0x118c22=_0x2a4134===_0xd24882[_0x12b79a(0x1c8)],_0x258b69=_0x2a4134===_0xd24882['WordCloud'],_0xb3d99e=_0x2a4134===_0xd24882[_0x12b79a(0x292)],_0x23b5ea=_0x3ede69[_0x12b79a(0x45c)](_0x2a4134,_0xd24882[_0x12b79a(0x213)]),_0x5e04b1=_0x2a4134===_0xd24882[_0x12b79a(0x2e5)],_0x404e22=_0x2a4134===_0xd24882[_0x12b79a(0x3c4)],_0x106c54=_0x2a4134===_0xd24882[_0x12b79a(0x244)],_0x57414a=_0x2a4134===_0xd24882[_0x12b79a(0x1c9)],_0x250733,_0x547c55;switch(_0x2a4134){case _0xd24882[_0x12b79a(0x3fc)]:_0x250733=_0x2db269[_0x12b79a(0x3fc)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x333));break;case _0xd24882[_0x12b79a(0x2c9)]:_0x250733=_0x2db269['Histogram'],_0x547c55=_0xd3c317['t'](_0x12b79a(0x3bc));break;case _0xd24882['Treemap']:_0x250733=_0x2db269[_0x12b79a(0x2a7)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x22d));break;case _0xd24882[_0x12b79a(0x422)]:_0x250733=_0x2db269[_0x12b79a(0x422)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x41b));break;case _0xd24882['Gauge']:_0x250733=_0x2db269[_0x12b79a(0x355)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x271));break;case _0xd24882[_0x12b79a(0x30b)]:_0x250733=_0x2db269[_0x12b79a(0x30b)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x432));}let _0x39a450=_0x5c782b(_0x2a4134,_0x59d3bb[_0x12b79a(0x2cc)])&&!_0x23b5ea&&!_0x106c54;return _0x5a92d2(_0x4b3c95,{'value':_0x22af60,'onChange':_0x4aa5d1,'children':[_0x2897c9(X,{'id':_0x2db269['ChartStyle'],'label':_0xd3c317['t'](_0x12b79a(0x1c0)),'children':_0x2897c9(_0x22c00b,{'defaultValues':_0x3ec057[_0x12b79a(0x345)]['style']})}),_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x44c)],'label':_0xd3c317['t'](_0x12b79a(0x2a1)),'children':_0x2897c9(_0x10905c,{'commitMode':_0x12b79a(0x22b),'defaultValues':_0x3ec057['defaultValues']['titles'],'selectedTitleKey':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x392)]})}),_0x39a450&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x3d1)],'label':_0xd3c317['t'](_0x12b79a(0x3aa)),'children':_0x2897c9(_0xf65fa1,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x241)],'NumberFormatField':_0x2e8e1e,'selectedSeriesId':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x3ad)]})}),_0x404e22&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x369)],'label':_0xd3c317['t'](_0x12b79a(0x42e)),'children':_0x2897c9(_0x291bbf,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1a7)],'getDefaultBucketName':({seriesName:_0x4ee56f,target:_0x1ac0b5})=>_0x1ac0b5===_0x129870[_0x12b79a(0x2aa)]?_0xd3c317['t']('sheets-chart-ui.waterfall.subtotal'):_0x4ee56f?_0x4ee56f+'-('+_0xd3c317['t'](_0x1ac0b5===_0x129870[_0x12b79a(0x2ca)]?'sheets-chart-ui.waterfall.positive':'sheets-chart-ui.waterfall.negative')+')':'','NumberFormatField':_0x2e8e1e,'selectedSeriesId':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x3ad)]})}),_0x106c54&&_0x5a92d2(_0x1e5c7c,{'children':[_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x318)],'label':_0xd3c317['t']('sheets-chart-ui.section.paretoBar'),'children':_0x2897c9(_0x2de80d,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x316)],'NumberFormatField':_0x2e8e1e,'showDataPointEditor':!0x0,'target':_0x12b79a(0x2ce)})}),_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x275)],'label':_0xd3c317['t'](_0x12b79a(0x32f)),'children':_0x2897c9(_0x2de80d,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x316)],'NumberFormatField':_0x2e8e1e,'showDataPointEditor':!0x1,'target':_0x12b79a(0x35c)})})]}),_0x2748d5&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x30c)],'label':_0xd3c317['t'](_0x12b79a(0x3f4)),'children':_0x2897c9(_0xd82e6f,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x2cf)],'NumberFormatField':_0x2e8e1e})}),_0x258b69&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2a8)],'label':_0xd3c317['t']('sheets-chart-ui.section.wordCloud'),'children':_0x2897c9(_0x822830,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x36d)]})}),_0x118c22&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x1c8)],'label':_0xd3c317['t'](_0x12b79a(0x397)),'children':_0x2897c9(_0x21a72f,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fd)]})}),_0xb3d99e&&_0x2897c9(X,{'id':_0x2db269['Funnel'],'label':_0xd3c317['t'](_0x12b79a(0x401)),'children':_0x2897c9(_0xe1359c,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x428)],'gapControl':'select'})}),_0x57414a&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x1c9)],'label':_0xd3c317['t'](_0x12b79a(0x39d)),'children':_0x2897c9(_0x27b74d,{'defaultValues':_0x3ec057['defaultValues'][_0x12b79a(0x243)]})}),_0x5e04b1&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2e5)],'label':_0xd3c317['t']('sheets-chart-ui.section.relation'),'children':_0x2897c9(_0x28a800,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x270)]})}),_0x1128f1(_0x2a4134)&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2be)],'label':_0xd3c317['t'](_0x12b79a(0x1a5)),'children':_0x2897c9(_0x282c08,{'defaultValues':_0x3ec057['defaultValues']['lineAndArea'],'lineStyleControl':_0x12b79a(0x457)})}),_0x5c782b(_0x2a4134,_0x59d3bb[_0x12b79a(0x3e0)])&&_0x2897c9(X,{'id':_0x2db269['Legend'],'label':_0xd3c317['t'](_0x12b79a(0x407)),'children':_0x2897c9(_0x3e358e,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x312)]})}),_0x5c782b(_0x2a4134,_0x59d3bb['Axes'])&&_0x5a92d2(_0x1e5c7c,{'children':[_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x45e)],'label':_0xd3c317['t']('sheets-chart-ui.common.horizontalAxis'),'children':_0x2897c9(_0x21b2fb,{'axis':'x','defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fc)],'NumberFormatField':_0x2e8e1e})}),_0x2897c9(X,{'id':_0x2db269['VerticalAxis'],'label':_0xd3c317['t']('sheets-chart-ui.common.verticalAxis'),'children':_0x2897c9(_0x21b2fb,{'axis':'y','defaultValues':_0x3ec057['defaultValues'][_0x12b79a(0x1fc)],'NumberFormatField':_0x2e8e1e})}),_0xadf9d9&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x347)],'label':_0xd3c317['t'](_0x12b79a(0x367)),'children':_0x2897c9(_0x21b2fb,{'axis':_0x12b79a(0x1c3),'defaultValues':_0x3ec057[_0x12b79a(0x345)]['axis'],'NumberFormatField':_0x2e8e1e})}),_0x2897c9(X,{'id':_0x2db269['GridlinesAndTicks'],'label':_0xd3c317['t']('sheets-chart-ui.section.gridlinesAndTicks'),'children':_0x2897c9(_0x524836,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fc)]})})]}),_0x5c782b(_0x2a4134,_0x59d3bb['IndicatorLine'])&&_0x2897c9(X,{'id':_0x2db269['IndicatorLine'],'label':_0xd3c317['t'](_0x12b79a(0x1d6)),'children':_0x2897c9(_0xd050ed,{'defaultValues':_0x3ec057[_0x12b79a(0x345)]['indicatorLine']})}),_0x51cc42(_0x2a4134)&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2b8)],'label':_0xd3c317['t'](_0x12b79a(0x2d9)),'children':_0x2897c9(_0x2eba1e,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x28a)]})}),_0x250733&&_0x547c55&&_0x2897c9(X,{'id':_0x250733,'label':_0x547c55,'children':_0x2897c9(_0x485569,{})})]});};function Ni(_0x481c19){const _0x137d68=_0xca568b;let {className:_0x4cacbf}=_0x481c19,[_0x23a1bc,_0x2a516f]=_0x758b4d(_0x5c4d69[_0x137d68(0x2e6)]),_0x20ca1d=_0x2b41d0(_0x34eb6c),_0x5984e9=_0x2b41d0(_0x3ad976),_0x3c627e=_0x2b41d0(Y),_0x45e9bb=_0x2b41d0(_0x781fb3),_0x40ba89=_0x2b41d0(_0xb7f357),_0x4d2b1d=_0x4561a1(_0x45e9bb[_0x137d68(0x2b2)],_0x45e9bb[_0x137d68(0x242)]),_0x1d87d9=_0x4561a1(_0x3c627e[_0x137d68(0x3fb)],null),_0x479dd0=_0x32aaef(()=>{const _0x2fbc77=_0x137d68;var _0x343f9f;if(!_0x4d2b1d)return null;let _0x24825e=_0x40ba89['getChartSourceSpec'](_0x4d2b1d['id']);if(!_0x24825e)return null;let _0x57f959=Array[_0x2fbc77(0x363)](_0x24825e)?(_0x343f9f=_0x24825e[0x0])==null?void 0x0:_0x343f9f['range']:_0x24825e[_0x2fbc77(0x412)];return _0x57f959?new _0x10f55f(_0x4d2b1d,new _0x14bce4({'unitId':_0x57f959[_0x2fbc77(0x2f9)],'subUnitId':_0x57f959['subUnitId'],'chartId':_0x4d2b1d['id'],'injector':_0x20ca1d})):null;},[_0x4d2b1d,_0x20ca1d,_0x40ba89]);if(_0x397741(()=>{const _0x4bd968=_0x137d68;var _0x97a7a,_0x278a6f;_0x4d2b1d&&(_0x1d87d9==null?void 0x0:_0x1d87d9['chartId'])===_0x4d2b1d['id']&&(((_0x97a7a=_0x1d87d9[_0x4bd968(0x3ae)])==null?void 0x0:_0x97a7a[_0x4bd968(0x343)])===_0x5c4d69['Style']&&_0x2a516f(_0x5c4d69[_0x4bd968(0x1f2)]),((_0x278a6f=_0x1d87d9[_0x4bd968(0x3ae)])==null?void 0x0:_0x278a6f['tab'])===_0x5c4d69[_0x4bd968(0x2e6)]&&_0x2a516f(_0x5c4d69['Data']));},[_0x4d2b1d,_0x1d87d9]),!_0x479dd0)return null;let _0x3ae8d9=_0x5a92d2(_0x137d68(0x298),{'className':_0x137d68(0x29b)+(_0x23a1bc===_0x5c4d69[_0x137d68(0x1f2)]?'univer-overflow-visible':'univer-overflow-hidden')+_0x137d68(0x2ee)+(_0x4cacbf??'')+_0x137d68(0x2d4),'children':[_0x2897c9(_0x405993,{'ariaLabel':_0x5984e9['t'](_0x137d68(0x2df)),'className':_0x137d68(0x352),'items':[{'label':_0x5984e9['t']('sheets-chart-ui.common.setup'),'panelId':Pi,'value':_0x5c4d69[_0x137d68(0x2e6)]},{'label':_0x5984e9['t'](_0x137d68(0x256)),'panelId':Fi,'value':_0x5c4d69[_0x137d68(0x1f2)]}],'value':_0x23a1bc,'onChange':_0x2a516f}),_0x23a1bc===_0x5c4d69['Data']?_0x2897c9(_0x1ace4b,{'id':Pi,'label':_0x5984e9['t'](_0x137d68(0x2c1)),'children':_0x2897c9(Ai,{'defaultValues':Ti})}):_0x2897c9(_0x1ace4b,{'id':Fi,'className':'-univer-mx-4','label':_0x5984e9['t']('sheets-chart-ui.common.customize'),'children':_0x2897c9(Mi,{'defaultValues':Ti})})]});return _0x2897c9(_0x527efa,{'chartUIService':_0x3c627e,'hostAdapter':_0x479dd0,'children':_0x3ae8d9});}const Z=_0xca568b(0x2bf),Pi='sheet-chart-setup-panel',Fi=_0xca568b(0x1e3);function Ii(_0x4a1e59){const _0x222beb=_0xca568b;return _0x4a1e59[_0x222beb(0x3c2)]===0x1&&Li(_0x4a1e59[0x0]);}function Li(_0x26d127){const _0x59483e=_0xca568b;return(_0x26d127==null?void 0x0:_0x26d127[_0x59483e(0x2ac)])===_0x1dc4b2[_0x59483e(0x1b7)]&&!_0x26d127[_0x59483e(0x459)];}let Ri=class extends _0x110283{constructor(_0x1c11ba,_0x26fcfe,_0x3756ed,_0x47beaa,_0xbcea34,_0x4040c9,_0x2ae074,_0x2fd64d,_0xd40f5c,_0x7bc914,_0x59d295,_0x4409e7,_0x76d077,_0x17d6f1,_0x421e83){const _0x375865=_0xca568b;var _0x32d3e5;super(),this[_0x375865(0x1a2)]=_0x1c11ba,this[_0x375865(0x31a)]=_0x26fcfe,this[_0x375865(0x3f0)]=_0x3756ed,this['_sheetsChartService']=_0x47beaa,this['_chartRenderService']=_0xbcea34,this[_0x375865(0x2d1)]=_0x4040c9,this[_0x375865(0x2b6)]=_0x2ae074,this[_0x375865(0x452)]=_0x2fd64d,this[_0x375865(0x40f)]=_0xd40f5c,this[_0x375865(0x207)]=_0x7bc914,this['_commandService']=_0x59d295,this['_sheetsChartUIService']=_0x4409e7,this[_0x375865(0x20a)]=_0x76d077,this[_0x375865(0x375)]=_0x17d6f1,W(this,_0x375865(0x1d1),null),W(this,_0x375865(0x42b),void 0x0),this['_isChartElementEditEnabled']=((_0x32d3e5=_0x421e83[_0x375865(0x1ab)]('sheets-chart-ui.config'))==null?void 0x0:_0x32d3e5[_0x375865(0x3ee)])===!0x0,this[_0x375865(0x381)](),this['disposeWithMe'](this[_0x375865(0x31a)][_0x375865(0x1bf)](_0x50b631['UNIVER_SHEET'])['subscribe'](_0x64b51a=>{const _0x283245=_0x375865;var _0x2cdf5c;_0x64b51a||(_0x2cdf5c=this[_0x283245(0x1d1)])==null||_0x2cdf5c['dispose']();})),this[_0x375865(0x1e0)](_0xc69da6(this[_0x375865(0x2d1)][_0x375865(0x3cd)][_0x375865(0x1f1)](async({drawing:_0x35d102})=>{const _0x4ebc20=_0x375865;await this[_0x4ebc20(0x32d)](_0x35d102);})));}[_0xca568b(0x41d)](){const _0x360de8=_0xca568b;this[_0x360de8(0x1d1)]=this[_0x360de8(0x2b6)][_0x360de8(0x339)]({'id':Z,'header':{'title':this['_localeService']['t'](_0x360de8(0x2df))},'width':0x154,'children':{'label':Z},'onClose':()=>{const _0x5bdf03=_0x360de8;this[_0x5bdf03(0x1d1)]=null,this['_deactivateEditPanelState'](),this[_0x5bdf03(0x3f0)][_0x5bdf03(0x242)]&&this['_chartModelService'][_0x5bdf03(0x1fa)](null),this[_0x5bdf03(0x1a2)][_0x5bdf03(0x225)](null),this[_0x5bdf03(0x20a)][_0x5bdf03(0x31f)](_0x284d3d,!0x1);}});}[_0xca568b(0x27f)](){const _0x1eb0a7=_0xca568b;let _0x3c500d=this[_0x1eb0a7(0x1d1)];this[_0x1eb0a7(0x1d1)]=null,this['_deactivateEditPanelState'](),this['_chartModelService'][_0x1eb0a7(0x242)]&&this[_0x1eb0a7(0x3f0)][_0x1eb0a7(0x1fa)](null),_0x3c500d==null||_0x3c500d['dispose']();}[_0xca568b(0x324)](){const _0x12955a=_0xca568b;let _0x417d2d=this[_0x12955a(0x31a)][_0x12955a(0x293)](_0x50b631[_0x12955a(0x2f0)]);this[_0x12955a(0x1e0)](this['_sidebarService'][_0x12955a(0x2fb)]['subscribe'](_0x19a12d=>{const _0x218eb7=_0x12955a;_0x19a12d['id']===_0x218eb7(0x2bf)&&(_0x19a12d['visible']||this[_0x218eb7(0x2b6)][_0x218eb7(0x2fb)][_0x218eb7(0x1b5)]({'visible':!0x1}));})),this[_0x12955a(0x1e0)](_0x3c6cb0([this[_0x12955a(0x3f0)][_0x12955a(0x2b2)],this[_0x12955a(0x1cf)][_0x12955a(0x30a)]])[_0x12955a(0x2d3)](_0xd28067(([_0x20d898,_0x968ed9])=>_0x968ed9?(_0x20d898==null?void 0x0:_0x20d898['id'])??null:null),_0x3c6b25(),_0x4bd3e7(null),_0x5f076a())[_0x12955a(0x1f1)](([_0xd1e124,_0x2773cd])=>{const _0x28657d=_0x12955a;this[_0x28657d(0x268)](_0xd1e124,_0x2773cd);})),this[_0x12955a(0x1e0)](this[_0x12955a(0x3f0)][_0x12955a(0x2b2)]['subscribe'](_0x297bce=>{const _0x3acff5=_0x12955a;!_0x297bce&&this['_sidebarDisposable']&&this[_0x3acff5(0x27f)]();})),this[_0x12955a(0x1e0)](this[_0x12955a(0x214)]['onCommandExecuted'](_0x1229f0=>{const _0x2a92da=_0x12955a;if(_0x1229f0['id']===H['id']){let _0x5a7391=_0x1229f0[_0x2a92da(0x2f1)];if(!Li(this[_0x2a92da(0x1a2)]['getDrawingByParam']({'unitId':_0x5a7391[_0x2a92da(0x2f9)],'subUnitId':_0x5a7391[_0x2a92da(0x254)],'drawingId':_0x5a7391[_0x2a92da(0x22a)]})))return;this['openChartPanelById'](_0x5a7391[_0x2a92da(0x22a)],_0x5a7391[_0x2a92da(0x3ae)]);}if(_0x1229f0['id']===Nr['id']&&this[_0x2a92da(0x27f)](),_0x1229f0['id']===_0x31720e['id']){var _0x1cfadd;_0x1229f0[_0x2a92da(0x2f1)][_0x2a92da(0x400)]===((_0x1cfadd=this['_chartModelService'][_0x2a92da(0x242)])==null?void 0x0:_0x1cfadd['id'])&&this[_0x2a92da(0x27f)](),this['_contextService']['getContextValue'](_0x284d3d)&&(this[_0x2a92da(0x20a)]['setContextValue'](_0x284d3d,!0x1),this['_drawingManagerService'][_0x2a92da(0x225)](null));}})),this[_0x12955a(0x1e0)](this['_sheetCanvasFloatDomManagerService'][_0x12955a(0x2de)]['subscribe'](({id:_0x1796f5})=>{const _0x1ef87c=_0x12955a;this[_0x1ef87c(0x1cf)]['isElementEditModeActive'](_0x1796f5)&&this[_0x1ef87c(0x27f)]();})),this['disposeWithMe'](this[_0x12955a(0x40f)][_0x12955a(0x21d)][_0x12955a(0x1f1)](({id:_0x370995})=>{const _0x3d0443=_0x12955a;this['_sheetsChartUIService'][_0x3d0443(0x1de)](_0x370995)&&(this['_sheetsChartUIService'][_0x3d0443(0x1f9)](),this[_0x3d0443(0x28f)][_0x3d0443(0x253)](_0x370995,!0x1),this[_0x3d0443(0x43b)](_0x370995)&&this[_0x3d0443(0x28f)][_0x3d0443(0x253)](_0x370995,!0x0));})),this['disposeWithMe'](this[_0x12955a(0x1a2)]['focus$'][_0x12955a(0x1f1)](_0x355b78=>{const _0x33a7fb=_0x12955a;let _0x59a39a=_0x355b78[0x0];if(!this[_0x33a7fb(0x1cf)][_0x33a7fb(0x235)]){if(Ii(_0x355b78)){var _0x2c44e4;let _0xf9bc46=this['_chartModelService']['getChartModel'](_0x59a39a[_0x33a7fb(0x22a)]);_0xf9bc46&&this[_0x33a7fb(0x396)](_0xf9bc46['id'])&&((_0x2c44e4=this[_0x33a7fb(0x3f0)][_0x33a7fb(0x242)])==null?void 0x0:_0x2c44e4['id'])!==_0xf9bc46['id']&&this[_0x33a7fb(0x3f0)][_0x33a7fb(0x1fa)](_0xf9bc46);return;}this['_chartModelService'][_0x33a7fb(0x242)]&&this[_0x33a7fb(0x3f0)]['setActiveChartModel'](null),!_0x59a39a&&!this[_0x33a7fb(0x1cf)][_0x33a7fb(0x235)]&&this[_0x33a7fb(0x27f)]();}})),_0x417d2d&&(this[_0x12955a(0x1e0)](_0x417d2d['sheetDisposed$'][_0x12955a(0x1f1)](()=>{const _0xe4f180=_0x12955a;this[_0xe4f180(0x27f)]();})),this['disposeWithMe'](_0x417d2d[_0x12955a(0x2b3)]['subscribe'](()=>{const _0x47d45b=_0x12955a;this[_0x47d45b(0x27f)]();})));}async[_0xca568b(0x32d)](_0x2489eb){const _0x5c79bb=_0xca568b;this[_0x5c79bb(0x1cf)]['chartEditorOpen']||Li(_0x2489eb)&&this[_0x5c79bb(0x396)](_0x2489eb['drawingId'])&&await this[_0x5c79bb(0x258)](_0x2489eb[_0x5c79bb(0x2f9)],_0x2489eb[_0x5c79bb(0x254)],_0x2489eb[_0x5c79bb(0x22a)]);}async[_0xca568b(0x258)](_0x3104eb,_0x5705b6,_0x228fc2){const _0x3744dc=_0xca568b;this[_0x3744dc(0x3f0)][_0x3744dc(0x284)](_0x228fc2)&&this['_isOwnedChart'](_0x228fc2)&&await this[_0x3744dc(0x214)][_0x3744dc(0x304)](H['id'],{'unitId':_0x3104eb,'subUnitId':_0x5705b6,'drawingId':_0x228fc2});}[_0xca568b(0x310)](_0x10df55,_0x329af7){const _0x8ccda3=_0xca568b;let _0x511199=this[_0x8ccda3(0x3f0)][_0x8ccda3(0x284)](_0x10df55);_0x511199&&this[_0x8ccda3(0x396)](_0x10df55)&&(this[_0x8ccda3(0x3f0)][_0x8ccda3(0x1fa)](_0x511199),this[_0x8ccda3(0x41d)](),this['_activateEditPanelState'](_0x10df55,_0x329af7??null));}[_0xca568b(0x3db)](_0xd98c2f,_0x3fe35a){const _0x2f8762=_0xca568b;this[_0x2f8762(0x1cf)]['setChartEditorOpen'](!0x0),this['_sheetsChartUIService'][_0x2f8762(0x3e6)](_0xd98c2f,_0x3fe35a);}[_0xca568b(0x3bd)](){const _0x11be14=_0xca568b;this['_sheetsChartUIService'][_0x11be14(0x418)](!0x1);}[_0xca568b(0x268)](_0x674e72,_0x23470d){const _0x3a1ad0=_0xca568b;_0x674e72!==_0x23470d&&(_0x674e72&&this[_0x3a1ad0(0x28f)][_0x3a1ad0(0x253)](_0x674e72,!0x1),this['_sheetsChartUIService']['clearPanelRoute'](),_0x23470d&&(this['_sheetsChartUIService']['setPanelRoute'](_0x23470d,null),this[_0x3a1ad0(0x28f)]['setElementEditMode'](_0x23470d,this[_0x3a1ad0(0x43b)](_0x23470d))));}[_0xca568b(0x381)](){const _0x4d6c0e=_0xca568b;this[_0x4d6c0e(0x452)]['mergeMenu'](Zr),this['_sheetCanvasPopManagerService'][_0x4d6c0e(0x28c)](_0x1dc4b2['DRAWING_CHART'],this[_0x4d6c0e(0x391)][_0x4d6c0e(0x2a9)](this));}[_0xca568b(0x43b)](_0x149d88){const _0x14e883=_0xca568b;let _0x1bfe4f=this[_0x14e883(0x3f0)][_0x14e883(0x284)](_0x149d88);return!this[_0x14e883(0x42b)]||!_0x1bfe4f||!this[_0x14e883(0x396)](_0x149d88)?!0x1:$r(_0x1bfe4f[_0x14e883(0x436)]);}[_0xca568b(0x391)](_0x4f91b8,_0x54fc31,_0x38f4aa,_0x27f01c){const _0x49179e=_0xca568b;if(!this[_0x49179e(0x3f0)][_0x49179e(0x284)](_0x38f4aa))return[];let _0x867fb=[{'label':this[_0x49179e(0x375)]['t']('sheets-chart-ui.common.openChartPanel'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa},'disable':_0x27f01c!==_0x1dc4b2[_0x49179e(0x1b7)]}];return this[_0x49179e(0x396)](_0x38f4aa)?[..._0x867fb,{'label':this[_0x49179e(0x375)]['t']('sheets-chart-ui.common.deleteChart'),'index':0x1,'commandId':_0x7fd27d['id'],'commandParams':{'unitId':_0x4f91b8,'drawings':[{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa,'drawingType':_0x27f01c}]},'disable':!0x1},{'label':this[_0x49179e(0x375)]['t'](_0x49179e(0x410)),'index':0x2,'commandId':Nr['id'],'commandParams':{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa},'disable':!0x1}]:_0x867fb;}[_0xca568b(0x396)](_0x1dd97f){const _0x3111ce=_0xca568b;return this['_sheetsChartService'][_0x3111ce(0x35e)](_0x1dd97f)!==void 0x0;}};Ri=q([K(0x0,_0x23c247),K(0x1,_0x46e33a),K(0x2,_0x2b7ebf(_0x781fb3)),K(0x3,_0x2b7ebf(_0xb7f357)),K(0x4,_0x2b7ebf(J)),K(0x5,_0x2b7ebf(_0x548ade)),K(0x6,_0x2b7ebf(_0xd6bb73)),K(0x7,_0x3ebd35),K(0x8,_0x2b7ebf(_0x48f4a3)),K(0x9,_0x2b7ebf(_0x4aa645)),K(0xa,_0x5a9a36),K(0xb,Y),K(0xc,_0x2b586f),K(0xd,_0x2b7ebf(_0x3ad976)),K(0xe,_0x116807)],Ri);var zi=_0xca568b(0x300),Bi=_0xca568b(0x23b);let Vi=class extends _0x110283{constructor(_0x3ed874,_0x14de02){const _0x5629cd=_0xca568b;super(),this[_0x5629cd(0x460)]=_0x3ed874,this[_0x5629cd(0x3f0)]=_0x14de02,this['_init']();}[_0xca568b(0x257)](){const _0x38ed7f=_0xca568b;this[_0x38ed7f(0x1e0)](this[_0x38ed7f(0x460)][_0x38ed7f(0x380)]['subscribe'](_0x24171b=>{const _0x389282=_0x38ed7f;this[_0x389282(0x3f0)]['removeChartModel'](_0x24171b);}));}};Vi=q([K(0x0,yi),K(0x1,_0x2b7ebf(_0x781fb3))],Vi);let Hi=class extends _0x110283{constructor(_0x33cd34,_0x2acfd7,_0x248834,_0x563248,_0x48011f,_0x1cb922){const _0x3085d1=_0xca568b;super(),this[_0x3085d1(0x3f0)]=_0x33cd34,this[_0x3085d1(0x28f)]=_0x2acfd7,this[_0x3085d1(0x375)]=_0x248834,this[_0x3085d1(0x2c8)]=_0x563248,this[_0x3085d1(0x214)]=_0x48011f,this[_0x3085d1(0x3b6)]=_0x1cb922,W(this,_0x3085d1(0x231),new Map()),W(this,_0x3085d1(0x3ef),new Set()),this[_0x3085d1(0x257)](),this[_0x3085d1(0x278)](),this[_0x3085d1(0x383)]();}[_0xca568b(0x383)](){const _0x5aa8d2=_0xca568b;this[_0x5aa8d2(0x1e0)](this[_0x5aa8d2(0x3b6)][_0x5aa8d2(0x37f)][_0x5aa8d2(0x3e8)](this[_0x5aa8d2(0x3b6)][_0x5aa8d2(0x37f)][_0x5aa8d2(0x455)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x439358,_0x581a23,_0x5009fb)=>{const _0x2c59c7=_0x5aa8d2;let _0x206558=this[_0x2c59c7(0x28f)][_0x2c59c7(0x1d3)](_0x581a23[_0x2c59c7(0x2f9)],_0x581a23[_0x2c59c7(0x254)],_0x581a23[_0x2c59c7(0x288)]);return _0x581a23['resourceCollector']['add'](_0x206558),_0x5009fb(_0x439358);}}));}[_0xca568b(0x257)](){const _0x31a1d4=_0xca568b;this[_0x31a1d4(0x1e0)](this[_0x31a1d4(0x3f0)]['chartModelAdded$'][_0x31a1d4(0x1f1)](_0x577a3c=>{const _0xec2ba=_0x31a1d4;if(_0x577a3c){let _0x355c8b=new _0x47b662();_0x355c8b[_0xec2ba(0x36f)](_0x577a3c[_0xec2ba(0x1ec)][_0xec2ba(0x2d3)](_0x51b589(_0x20711f=>_0x20711f['data$']['pipe'](_0x4c54ad(0x1))))[_0xec2ba(0x1f1)](()=>{const _0x4a6c3d=_0xec2ba;this[_0x4a6c3d(0x3ef)][_0x4a6c3d(0x36f)](_0x577a3c['id']);})),_0x355c8b[_0xec2ba(0x36f)](_0x577a3c[_0xec2ba(0x1d7)]['pipe'](_0x28f114(_0x577a3c[_0xec2ba(0x390)]),_0x28f114(this['_localeService'][_0xec2ba(0x1a4)]),_0x59ab39(0x64))['subscribe'](([[_0x4ef89b,_0x4663a6],_0x15df49])=>{const _0x4abea7=_0xec2ba;var _0x4b38e9;if(!_0x4ef89b)return;(_0x4b38e9=_0x4ef89b[_0x4abea7(0x365)])==null||_0x4b38e9['items']['forEach']((_0x301ffd,_0x165257)=>{const _0x2b8e84=_0x4abea7;_0x301ffd[_0x2b8e84(0x248)]||=this['_localeService']['t']('sheets-chart-ui.common.category')+'\x20'+(_0x165257+0x1);}),_0x4ef89b[_0x4abea7(0x241)][_0x4abea7(0x308)]((_0x5c4d78,_0x403031)=>{const _0x2a3914=_0x4abea7;_0x5c4d78[_0x2a3914(0x33f)]||=this[_0x2a3914(0x375)]['t'](_0x2a3914(0x38f))+'\x20'+(_0x403031+0x1);});let _0x47d95e=this[_0x4abea7(0x28f)][_0x4abea7(0x1b6)](_0x577a3c,_0x15df49),_0x526edb=this['_pendingDataUpdateChartIds'][_0x4abea7(0x28b)](_0x577a3c['id']);this[_0x4abea7(0x28f)][_0x4abea7(0x23d)](_0x577a3c['id'],_0x4ef89b,_0x47d95e,{'animateDataUpdate':_0x526edb});})),_0x577a3c[_0xec2ba(0x20b)](()=>{const _0x5661b3=_0xec2ba;this[_0x5661b3(0x3ef)]['delete'](_0x577a3c['id']),_0x355c8b[_0x5661b3(0x406)]();});}}));}[_0xca568b(0x278)](){const _0x5ddb72=_0xca568b;this[_0x5ddb72(0x1e0)](this[_0x5ddb72(0x214)][_0x5ddb72(0x2cd)](_0xb7742c=>{const _0x1e4b9a=_0x5ddb72;if(_0xb7742c['id']!==_0x1d8ae1['id'])return;let _0x17d1bc=_0xb7742c[_0x1e4b9a(0x2f1)];_0x17d1bc!=null&&_0x17d1bc['chartModelId']&&Promise[_0x1e4b9a(0x3d6)]()[_0x1e4b9a(0x358)](()=>this[_0x1e4b9a(0x20c)](_0x17d1bc));}));}[_0xca568b(0x20c)](_0x261efc){const _0x205e83=_0xca568b;let _0x46cdb4=this['_chartModelService'][_0x205e83(0x284)](_0x261efc[_0x205e83(0x3e7)]);if(!_0x46cdb4||_0x46cdb4['chartType']!==_0xd24882['WordCloud'])return;let _0x1ecd84=_0x46cdb4[_0x205e83(0x3cc)];if(!_0x1ecd84){this[_0x205e83(0x2d8)](_0x46cdb4);return;}this[_0x205e83(0x1c2)](_0x46cdb4,_0x1ecd84);}[_0xca568b(0x2d8)](_0x315308){const _0x5c118a=_0xca568b;if(this[_0x5c118a(0x231)][_0x5c118a(0x29a)](_0x315308['id']))return;let _0x4375a8=_0x315308[_0x5c118a(0x1d7)][_0x5c118a(0x2d3)](_0x483739(_0xc20c38=>_0xc20c38!=null),_0x55b78a(0x1))['subscribe'](_0x50d8d7=>{const _0x3a6503=_0x5c118a;this['_pendingMutationConfigRenders'][_0x3a6503(0x28b)](_0x315308['id']),this['_renderChartModel'](_0x315308,_0x50d8d7);});this[_0x5c118a(0x231)]['set'](_0x315308['id'],_0x4375a8),_0x315308['onDispose'](()=>{const _0x3a4f6f=_0x5c118a;_0x4375a8[_0x3a4f6f(0x3a1)](),this[_0x3a4f6f(0x231)][_0x3a4f6f(0x28b)](_0x315308['id']);});}['_renderChartModel'](_0x4a7bad,_0x54d0f8){let _0xd6a8c1=this['_chartRenderService']['createRuntimeChartStyle'](_0x4a7bad,this['_localeService']['getDirection']());this['_chartRenderService']['render'](_0x4a7bad['id'],_0x54d0f8,_0xd6a8c1);}};Hi=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(J)),K(0x2,_0x2b7ebf(_0x3ad976)),K(0x3,Y),K(0x4,_0x5a9a36),K(0x5,_0x2b7ebf(_0x3fc87b))],Hi);function Ui(_0x105d99,_0x1a3812){const _0x180d73=_0xca568b;return _0x105d99[_0x180d73(0x2f9)]!==_0x1a3812[_0x180d73(0x2f9)]||_0x105d99[_0x180d73(0x254)]!==_0x1a3812[_0x180d73(0x21e)]?_0x105d99:{..._0x105d99,'subUnitId':_0x1a3812['targetSubUnitId']};}function Wi(_0x104555,_0x4012ae){const _0x5db368=_0xca568b;return(_0x104555==null?void 0x0:_0x104555[_0x5db368(0x1bc)])===_0x4c1868[_0x5db368(0x24c)]?{..._0x104555,'source':Ui(_0x104555[_0x5db368(0x356)],_0x4012ae)}:_0x104555;}function Gi(_0x2bc695,_0x376340){const _0x270abf=_0xca568b;let {rangeInfo:_0x32c22b}=_0x2bc695;return Array['isArray'](_0x32c22b)?{..._0x2bc695,'rangeInfo':_0x32c22b['map'](_0x17ce60=>({..._0x17ce60,..._0x17ce60[_0x270abf(0x220)]?{'header':Wi(_0x17ce60[_0x270abf(0x220)],_0x376340)}:{},'range':Ui(_0x17ce60[_0x270abf(0x2e2)],_0x376340)}))}:{..._0x2bc695,'rangeInfo':{..._0x32c22b,..._0x32c22b['header']?{'header':{..._0x32c22b[_0x270abf(0x220)],..._0x32c22b[_0x270abf(0x220)]['titles']?{'titles':Ki(_0x32c22b[_0x270abf(0x220)][_0x270abf(0x1a9)],_0x376340)}:{}}}:{},'rangeInfo':Ui(_0x32c22b[_0x270abf(0x412)],_0x376340)}};}function Ki(_0x425cd3,_0x2a2117){const _0x6992c0=_0xca568b;return _0x425cd3['type']===_0x4c1868[_0x6992c0(0x1b9)]?{..._0x425cd3,'values':{..._0x425cd3[_0x6992c0(0x377)]}}:_0x425cd3['type']===_0x4c1868[_0x6992c0(0x33d)]?{..._0x425cd3,'values':Object[_0x6992c0(0x438)](Object['entries'](_0x425cd3[_0x6992c0(0x377)])[_0x6992c0(0x226)](([_0x3f4257,_0x30b6b0])=>[_0x3f4257,_0x30b6b0&&Ui(_0x30b6b0,_0x2a2117)]))}:{..._0x425cd3,'values':Object[_0x6992c0(0x438)](Object['entries'](_0x425cd3[_0x6992c0(0x377)])[_0x6992c0(0x226)](([_0x4ae4db,_0x32d796])=>[_0x4ae4db,_0x32d796&&Wi(_0x32d796,_0x2a2117)]))};}function qi(_0x221b30,_0x34ef04,_0x4e0734,_0x575d2b){const _0x4312fd=_0xca568b;let _0x461ba2=_0x38f8fe(_0x221b30,_0x34ef04,_0x4e0734),_0x1702c0=[];for(let _0x44ce6a of _0x34ef04){let _0x4f9e4c=_0x461ba2['idMap']['get'](_0x44ce6a[_0x4312fd(0x22a)]),_0x2097ab=_0x575d2b(_0x44ce6a);_0x4f9e4c&&_0x2097ab&&_0x1702c0[_0x4312fd(0x338)]({'targetChartId':_0x4f9e4c,'source':Gi(_0x2097ab,_0x4e0734)});}return _0x1702c0;}let Ji=class extends _0x110283{constructor(_0x221c77,_0x274639,_0x512f13,_0x13c0d0,_0x388753){const _0x34391f=_0xca568b;super(),this[_0x34391f(0x31a)]=_0x221c77,this[_0x34391f(0x25d)]=_0x274639,this[_0x34391f(0x447)]=_0x512f13,this[_0x34391f(0x3f0)]=_0x13c0d0,this[_0x34391f(0x1ac)]=_0x388753,this['_initSheetChange']();}['_initSheetChange'](){const _0x4b31e2=_0xca568b;this['disposeWithMe'](this[_0x4b31e2(0x25d)][_0x4b31e2(0x2ec)]({'getMutations':_0x906b7c=>{const _0x2ae2c6=_0x4b31e2;if(_0x906b7c['id']===_0xce777d['id']){let _0x45ceb1=_0x5413b8(this['_univerInstanceService'],_0x906b7c[_0x2ae2c6(0x2f1)]);if(!_0x45ceb1)return{'redos':[],'undos':[]};let {unitId:_0x2c44e6,subUnitId:_0x584aef}=_0x45ceb1,_0x130d72=this[_0x2ae2c6(0x447)]['getDrawingData'](_0x2c44e6,_0x584aef),_0x23dfb1=Object[_0x2ae2c6(0x377)](_0x130d72)[_0x2ae2c6(0x37d)](_0x50f977=>_0x50f977[_0x2ae2c6(0x2ac)]===_0x1dc4b2['DRAWING_CHART']);if(_0x23dfb1[_0x2ae2c6(0x3c2)]===0x0)return{'redos':[],'undos':[]};let _0x16360c=[],_0x517271=[];for(let _0x21b674=0x0;_0x21b674<_0x23dfb1[_0x2ae2c6(0x3c2)];_0x21b674++){let _0x4c6dd7=_0x23dfb1[_0x21b674],_0x3281e7=this[_0x2ae2c6(0x3f0)]['getChartModel'](_0x4c6dd7[_0x2ae2c6(0x22a)]);if(!_0x3281e7)continue;let _0x56b22d=this['_sheetsChartService'][_0x2ae2c6(0x35e)](_0x3281e7['id']);if(!_0x56b22d)continue;let {chartType:_0x2475b3,context:_0x13395e,style:_0x4cf713,dataAggregation:_0x33bc1d}=_0x3281e7[_0x2ae2c6(0x286)]();_0x16360c[_0x2ae2c6(0x338)]({'id':_0x31720e['id'],'params':{'unitId':_0x2c44e6,'subUnitId':_0x584aef,'chartId':_0x4c6dd7[_0x2ae2c6(0x22a)]}}),_0x517271[_0x2ae2c6(0x338)]({'id':_0x217994['id'],'params':{'unitId':_0x2c44e6,'subUnitId':_0x584aef,'chartId':_0x4c6dd7['drawingId'],'chartType':_0x2475b3,..._0x16c66f(_0x56b22d),'context':_0x13395e,'style':_0x4cf713,'dataAggregation':_0x33bc1d}});}return{'redos':_0x16360c,'undos':_0x517271};}if(_0x906b7c['id']===_0x564b78['id']){let {unitId:_0x5b15c7,subUnitId:_0xa235d9,targetSubUnitId:_0x4be037,copyContext:_0x2ae0d6}=_0x906b7c[_0x2ae2c6(0x2f1)];if(!_0x5b15c7||!_0xa235d9||!_0x4be037)return{'redos':[],'undos':[]};let _0x31c71a=this[_0x2ae2c6(0x447)]['getDrawingData'](_0x5b15c7,_0xa235d9),_0xe8f6cd=Object[_0x2ae2c6(0x377)](_0x31c71a)['filter'](_0x11f120=>_0x11f120['drawingType']===_0x1dc4b2['DRAWING_CHART']);if(_0xe8f6cd[_0x2ae2c6(0x3c2)]===0x0)return{'redos':[],'undos':[]};let _0x16562c=qi(_0x2ae0d6,_0xe8f6cd,{'unitId':_0x5b15c7,'sourceSubUnitId':_0xa235d9,'targetSubUnitId':_0x4be037},_0x4ba749=>{const _0x1b516b=_0x2ae2c6;let _0xf1b35c=this[_0x1b516b(0x3f0)][_0x1b516b(0x284)](_0x4ba749['drawingId']);if(!_0xf1b35c)return;let _0xe4e7a2=this[_0x1b516b(0x1ac)][_0x1b516b(0x35e)](_0xf1b35c['id']);if(!_0xe4e7a2)return;let {chartType:_0x3eee02,context:_0x43f701,style:_0x209bb1,dataAggregation:_0x1c1219}=_0xf1b35c[_0x1b516b(0x286)]();return{'rangeInfo':_0xe4e7a2,'chartType':_0x3eee02,'context':_0x43f701,'style':_0x209bb1,'dataAggregation':_0x1c1219};}),_0x1a4349=[],_0x54c92c=[];for(let {targetChartId:_0xeb55dc,source:_0x52e53b}of _0x16562c){let {rangeInfo:_0x55bb81,chartType:_0x49f1cf,context:_0x4a02c8,style:_0x496b01,dataAggregation:_0x2386d0}=_0x52e53b;_0x1a4349[_0x2ae2c6(0x338)]({'id':_0x217994['id'],'params':{'unitId':_0x5b15c7,'subUnitId':_0x4be037,'chartId':_0xeb55dc,'chartType':_0x49f1cf,..._0x16c66f(_0x55bb81),'context':_0x4a02c8,'style':_0x496b01,'dataAggregation':_0x2386d0}}),_0x54c92c[_0x2ae2c6(0x338)]({'id':_0x31720e['id'],'params':{'unitId':_0x5b15c7,'subUnitId':_0x4be037,'chartId':_0xeb55dc}});}return{'redos':_0x1a4349,'undos':_0x54c92c};}return{'redos':[],'undos':[]};}}));}};Ji=q([K(0x0,_0x2b7ebf(_0x46e33a)),K(0x1,_0x2b7ebf(_0x30d687)),K(0x2,_0x2b7ebf(_0x124322)),K(0x3,_0x2b7ebf(_0x781fb3)),K(0x4,_0x2b7ebf(_0xb7f357))],Ji);const Yi=_0x3f144d=>_0x3f144d[_0xca568b(0x293)](_0x50b631[_0xca568b(0x2f0)])[_0xca568b(0x360)](),Xi=_0x32310c=>{const _0x36f0c9=_0xca568b;var _0x52fd9a;return(_0x52fd9a=_0x32310c[_0x36f0c9(0x293)](_0x50b631[_0x36f0c9(0x2f0)])['getActiveSheet']())==null?void 0x0:_0x52fd9a[_0x36f0c9(0x1d5)]();},Zi=[_0xd24882[_0xca568b(0x2fe)],_0xd24882['Radar'],_0xd24882[_0xca568b(0x2a8)],_0xd24882[_0xca568b(0x259)],_0xd24882[_0xca568b(0x292)],_0xd24882[_0xca568b(0x2e5)],_0xd24882['Sankey'],_0xd24882[_0xca568b(0x1c9)],_0xd24882[_0xca568b(0x335)],_0xd24882[_0xca568b(0x3fc)],_0xd24882['Histogram'],_0xd24882[_0xca568b(0x2a7)],_0xd24882[_0xca568b(0x422)],_0xd24882[_0xca568b(0x355)],_0xd24882[_0xca568b(0x30b)]];function Qi(){const _0x10f7fe=_0xca568b;let _0x2c9527=_0x3cdaa0(),_0x4fcabb=Zi[_0x10f7fe(0x23a)](_0x4c856b=>!_0x3ede69['baseOn'](_0x2c9527,_0x4c856b));return _0x2897c9(_0x23b483,{'visible':_0x4fcabb});}function $i(_0x537e29){const _0x358981=_0xca568b;var _0x1a9595;let _0x406d3a=_0x2b41d0(Y),_0x593f44=_0x2b41d0(_0x781fb3),_0x4cf9ef=_0x2b41d0(_0xb7f357),_0x423745=_0x2b41d0(_0x3ad976),_0x1ebc4d=_0x2b41d0(_0x34eb6c),_0x3324df=_0x14bcc6(_0x1ebc4d),_0x3eff26=_0x32aaef(()=>{const _0x78afda=_0x28a2;let _0x4e7b37=Wr(Hr[_0x78afda(0x42d)](),_0x3324df);return _0x3e2b77(_0x4e7b37[_0x78afda(0x226)](_0xafd3ca=>({'id':_0xafd3ca['id'],'label':_0x423745['t'](_0x78afda(0x43c)+_0xafd3ca[_0x78afda(0x2a0)]),'pieSecondaryPlotType':_0xafd3ca[_0x78afda(0x344)],'value':_0xafd3ca[_0x78afda(0x2e3)]})));},[_0x3324df,_0x423745]),_0x1db858=_0x4561a1(_0x593f44[_0x358981(0x2b2)],_0x593f44['activeChartModel']),_0x38a264=_0x1db858?_0x4cf9ef[_0x358981(0x3d5)](_0x1db858['id']):void 0x0,_0x1738cb=_0x4561a1(_0x38a264==null?void 0x0:_0x38a264[_0x358981(0x33c)],_0x38a264==null?void 0x0:_0x38a264[_0x358981(0x41f)]()),_0x5af4cd=Array[_0x358981(0x363)](_0x1738cb),_0x162031=_0x1738cb&&!_0x5af4cd&&_0x1738cb[_0x358981(0x1d2)]?_0x389e65['Row']:_0x389e65[_0x358981(0x38c)],_0x9f108a=_0x5af4cd?(_0x1a9595=_0x1738cb[0x0])==null?void 0x0:_0x1a9595[_0x358981(0x2e2)]:_0x1738cb==null?void 0x0:_0x1738cb['rangeInfo'];return _0x5a92d2(_0x358981(0x298),{'className':_0x358981(0x2b5),'children':[_0x2897c9(_0x42165a,{'options':_0x3eff26}),_0x2897c9(_0x5a3ad4,{}),_0x2897c9(_0x3ef36c,{}),_0x2897c9(Qi,{}),_0x2897c9(_0x3a8440,{}),_0x2897c9(ea,{'dataRange':_0x1738cb,'primaryRange':_0x9f108a}),_0x2897c9(_0x308311,{'categoryToggleLabel':_0x423745['t'](_0x358981(0x349),_0x162031===_0x389e65[_0x358981(0x31e)]?_0x162031+'\x20'+(((_0x9f108a==null?void 0x0:_0x9f108a[_0x358981(0x2e2)][_0x358981(0x44a)])??0x0)+0x1):_0x162031+'\x20'+_0xa3323e((_0x9f108a==null?void 0x0:_0x9f108a[_0x358981(0x2e2)][_0x358981(0x29d)])??0x0)),'orientationControl':_0x5af4cd?void 0x0:_0x2897c9(_0x47a323,{'size':_0x358981(0x461),'onClick':()=>_0x406d3a[_0x358981(0x2ab)](_0x162031===_0x389e65[_0x358981(0x31e)]?_0x389e65[_0x358981(0x38c)]:_0x389e65['Row']),'children':_0x423745['t'](_0x358981(0x2f8))})}),_0x2897c9(_0x2e34e5,{}),_0x2897c9(_0x5d390c,{'defaultValues':_0x537e29[_0x358981(0x345)][_0x358981(0x205)]})]});}function ea(_0x48b3fa){const _0x3c0f24=_0xca568b;let {dataRange:_0x51e984,primaryRange:_0x294582}=_0x48b3fa,_0x2740f1=_0x2b41d0(Y),_0x574fb7=_0x2b41d0(_0x3ad976),_0x49d78b=_0x2b41d0(_0x46e33a),[_0xd07c6a,_0x2b0635]=_0x758b4d(!0x1),[_0x56bbd8,_0x1bef53]=_0x758b4d(!0x1),_0x2d18cb=Yi(_0x49d78b),_0x354bb5=Xi(_0x49d78b);_0x397741(()=>{const _0x4fb7cc=_0x28a2;_0x2740f1[_0x4fb7cc(0x39a)](_0xd07c6a);},[_0xd07c6a,_0x2740f1]);let _0x3c12c7=_0x32aaef(()=>_0x2132b5(async _0x140b1c=>{const _0x8bf1c8=_0x28a2;var _0x2964f8;if(Br(_0x51e984,_0x49d78b)===_0x140b1c)return;let _0x1dfb60=_0x140b1c[_0x8bf1c8(0x20e)](',')[_0x8bf1c8(0x37d)](Boolean)[_0x8bf1c8(0x226)](_0x1b0b9d)[0x0];if(!_0x1dfb60)return;let {unitId:_0x491387,sheetName:_0x2bc4b6,range:_0x3b989f}=_0x1dfb60,_0x1e609a=_0x491387||_0x2d18cb,_0x4849ca=((_0x2964f8=_0x49d78b[_0x8bf1c8(0x361)](_0x1e609a)['getSheetBySheetName'](_0x2bc4b6))==null?void 0x0:_0x2964f8[_0x8bf1c8(0x1d5)]())||(_0x294582==null?void 0x0:_0x294582[_0x8bf1c8(0x254)])||_0x354bb5;_0x4849ca&&_0x2740f1[_0x8bf1c8(0x1f3)]({'rangeInfo':{'range':_0x3b989f,'unitId':_0x1e609a,'subUnitId':_0x4849ca}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x51e984,_0x294582,_0x2740f1,_0x354bb5,_0x2d18cb,_0x49d78b]);return _0x397741(()=>()=>_0x3c12c7[_0x3c0f24(0x1db)](),[_0x3c12c7]),_0x2897c9(_0x3c0f24(0x298),{'className':_0x3c0f24(0x368),'children':_0x5a92d2(_0x3c0f24(0x298),{'children':[_0x2897c9(_0x114623,{'title':_0x574fb7['t'](_0x3c0f24(0x439))}),_0x2897c9(_0x2ede0d,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x2d18cb,'subUnitId':_0x354bb5,'initialValue':_0x51e984?Br(_0x51e984,_0x49d78b):'','onChange':(_0x4ce9f0,_0x5c64d5)=>_0x3c12c7(_0x5c64d5),'onFocusChange':_0x5b9c3b=>{_0x56bbd8||_0x2b0635(_0x5b9c3b);},'onRangeSelectorDialogVisibleChange':_0x58e2f7=>{_0x1bef53(_0x58e2f7),_0x2b0635(_0x58e2f7);}})]})});}const ta=_0xca568b(0x3c9),na=_0xca568b(0x426);function ra(){const _0x3e7b8a=_0xca568b;let [_0x27ee10,_0x23b59d]=_0x758b4d(_0x5c4d69['Data']),_0x42e818=_0x2b41d0(_0x34eb6c),_0x19d599=_0x2b41d0(_0x3ad976),_0x300047=_0x2b41d0(Y),_0x440036=_0x2b41d0(_0x781fb3),_0x297590=_0x2b41d0(_0xb7f357),_0x24c0d7=_0x4561a1(_0x440036[_0x3e7b8a(0x2b2)],_0x440036[_0x3e7b8a(0x242)]),_0x74a043=_0x4561a1(_0x300047['panelRoute$'],null),_0x90552a=_0x32aaef(()=>{const _0x5b2c05=_0x3e7b8a;var _0x3ded71;if(!_0x24c0d7)return null;let _0x25b563=_0x297590['getChartSourceSpec'](_0x24c0d7['id']);if(!_0x25b563)return null;let _0x22a9af=Array['isArray'](_0x25b563)?(_0x3ded71=_0x25b563[0x0])==null?void 0x0:_0x3ded71['range']:_0x25b563[_0x5b2c05(0x412)];return _0x22a9af?new _0x10f55f(_0x24c0d7,new _0x14bce4({'unitId':_0x22a9af[_0x5b2c05(0x2f9)],'subUnitId':_0x22a9af[_0x5b2c05(0x254)],'chartId':_0x24c0d7['id'],'injector':_0x42e818})):null;},[_0x24c0d7,_0x42e818,_0x297590]);if(_0x397741(()=>{const _0x2e73c7=_0x3e7b8a;var _0x28cb59,_0x1c069b;_0x24c0d7&&(_0x74a043==null?void 0x0:_0x74a043[_0x2e73c7(0x400)])===_0x24c0d7['id']&&(((_0x28cb59=_0x74a043[_0x2e73c7(0x3ae)])==null?void 0x0:_0x28cb59[_0x2e73c7(0x343)])===_0x5c4d69[_0x2e73c7(0x1f2)]&&_0x23b59d(_0x5c4d69[_0x2e73c7(0x1f2)]),((_0x1c069b=_0x74a043[_0x2e73c7(0x3ae)])==null?void 0x0:_0x1c069b[_0x2e73c7(0x343)])===_0x5c4d69[_0x2e73c7(0x2e6)]&&_0x23b59d(_0x5c4d69[_0x2e73c7(0x2e6)]));},[_0x24c0d7,_0x74a043]),!_0x90552a)return null;let _0x1ee1b4=_0x5a92d2(_0x3e7b8a(0x298),{'className':'univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x2897c9(_0x405993,{'ariaLabel':_0x19d599['t'](_0x3e7b8a(0x2df)),'className':_0x3e7b8a(0x211),'items':[{'label':_0x19d599['t'](_0x3e7b8a(0x2c1)),'panelId':ta,'value':_0x5c4d69['Data']},{'label':_0x19d599['t'](_0x3e7b8a(0x256)),'panelId':na,'value':_0x5c4d69[_0x3e7b8a(0x1f2)]}],'value':_0x27ee10,'onChange':_0x23b59d}),_0x27ee10===_0x5c4d69[_0x3e7b8a(0x2e6)]?_0x2897c9(_0x1ace4b,{'id':ta,'className':_0x3e7b8a(0x2e9),'label':_0x19d599['t'](_0x3e7b8a(0x2c1)),'children':_0x2897c9($i,{'defaultValues':Ti})}):_0x2897c9(_0x1ace4b,{'id':na,'className':_0x3e7b8a(0x427),'label':_0x19d599['t'](_0x3e7b8a(0x256)),'children':_0x2897c9(Mi,{'defaultValues':Ti})})]});return _0x2897c9(_0x282e27,{'chartUIService':_0x300047,'hostAdapter':_0x90552a,'children':_0x1ee1b4});}let ia=class extends _0x110283{constructor(_0x26bc6d){const _0x140b05=_0xca568b;super(),this[_0x140b05(0x1e0)](_0x26bc6d[_0x140b05(0x2ef)](Z,ra));}};ia=q([K(0x0,_0x2b7ebf(_0x16eb50))],ia);let aa=class extends _0x110283{constructor(_0x1bbbf0,_0x557dcf,_0x5ea77a,_0x587ff4,_0x4e4308,_0x3f8ede,_0x36a06a,_0x17b414,_0x3bbf19){const _0x479955=_0xca568b;super(),this[_0x479955(0x1a2)]=_0x1bbbf0,this[_0x479955(0x3f0)]=_0x557dcf,this['_sidebarService']=_0x5ea77a,this['_menuManagerService']=_0x587ff4,this[_0x479955(0x207)]=_0x4e4308,this[_0x479955(0x214)]=_0x3f8ede,this[_0x479955(0x1cf)]=_0x36a06a,this['_contextService']=_0x17b414,this['_localeService']=_0x3bbf19,W(this,_0x479955(0x1d1),null),W(this,_0x479955(0x1f4),!0x1),this[_0x479955(0x381)]();}[_0xca568b(0x406)](){const _0x411ed2=_0xca568b;this[_0x411ed2(0x27f)](),super[_0x411ed2(0x406)]();}[_0xca568b(0x324)](){const _0x571cb5=_0xca568b;this[_0x571cb5(0x1f4)]||(this['_panelInitialized']=!0x0,this[_0x571cb5(0x1e0)](this['_commandService']['onCommandExecuted'](_0x4cebd1=>{const _0x112cf0=_0x571cb5;if(_0x4cebd1['id']!==H['id'])return;let _0x4531b3=_0x4cebd1['params'];this[_0x112cf0(0x310)](_0x4531b3[_0x112cf0(0x22a)],_0x4531b3[_0x112cf0(0x3ae)]);})));}['openChartPanelById'](_0x3f8442,_0x4f787c){const _0x2f7109=_0xca568b;let _0x39aa3b=this[_0x2f7109(0x3f0)][_0x2f7109(0x284)](_0x3f8442);_0x39aa3b&&(this[_0x2f7109(0x3f0)][_0x2f7109(0x1fa)](_0x39aa3b),this[_0x2f7109(0x41d)](),this['_sheetsChartUIService'][_0x2f7109(0x418)](!0x0),this[_0x2f7109(0x1cf)][_0x2f7109(0x3e6)](_0x3f8442,_0x4f787c??null));}['hidePanel'](){const _0x41517d=_0xca568b;let _0x5ac8a8=this[_0x41517d(0x1d1)];this[_0x41517d(0x1d1)]=null,this[_0x41517d(0x3c0)](),_0x5ac8a8==null||_0x5ac8a8['dispose']();}['_initMenus'](){const _0x16273d=_0xca568b;this[_0x16273d(0x452)][_0x16273d(0x287)]({[_0x584736[_0x16273d(0x348)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Gr}}}),this[_0x16273d(0x207)][_0x16273d(0x28c)](_0x1dc4b2[_0x16273d(0x1b7)],(_0x59ffe9,_0x54097e,_0x3030a7,_0xcea132)=>[{'label':this['_localeService']['t']('sheets-chart-ui.common.editChart'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x59ffe9,'subUnitId':_0x54097e,'drawingId':_0x3030a7},'disable':_0xcea132!==_0x1dc4b2['DRAWING_CHART']},{'label':this[_0x16273d(0x375)]['t'](_0x16273d(0x370)),'index':0x1,'commandId':_0x7fd27d['id'],'commandParams':{'unitId':_0x59ffe9,'drawings':[{'unitId':_0x59ffe9,'subUnitId':_0x54097e,'drawingId':_0x3030a7,'drawingType':_0xcea132}]},'disable':!0x1}],'sheets-chart-ui.common.chart');}[_0xca568b(0x41d)](){const _0x5b7afa=_0xca568b;this[_0x5b7afa(0x1d1)]=this[_0x5b7afa(0x2b6)][_0x5b7afa(0x339)]({'id':Z,'header':{'title':this['_localeService']['t'](_0x5b7afa(0x2df))},'children':{'label':Z},'onClose':()=>{const _0x53c7d3=_0x5b7afa;this[_0x53c7d3(0x1d1)]=null,this[_0x53c7d3(0x3c0)]();}});}[_0xca568b(0x3c0)](){const _0x205d92=_0xca568b;this[_0x205d92(0x1cf)][_0x205d92(0x418)](!0x1),this[_0x205d92(0x1cf)][_0x205d92(0x1f9)](),this[_0x205d92(0x3f0)][_0x205d92(0x242)]&&this[_0x205d92(0x3f0)][_0x205d92(0x1fa)](null),this[_0x205d92(0x1a2)][_0x205d92(0x225)](null),this['_contextService']['setContextValue'](_0x284d3d,!0x1);}};aa=q([K(0x0,_0x23c247),K(0x1,_0x2b7ebf(_0x781fb3)),K(0x2,_0x2b7ebf(_0xd6bb73)),K(0x3,_0x3ebd35),K(0x4,_0x2b7ebf(_0x4aa645)),K(0x5,_0x5a9a36),K(0x6,Y),K(0x7,_0x2b586f),K(0x8,_0x2b7ebf(_0x3ad976))],aa);let oa=class extends _0x110283{constructor(_0x4dea4a,_0x43a55d,_0x3624c4,_0x41deda,_0x12add6){const _0x44ceff=_0xca568b;super(),this['_sheetSkeletonService']=_0x4dea4a,this[_0x44ceff(0x307)]=_0x43a55d,this[_0x44ceff(0x447)]=_0x3624c4,this['_chartModelService']=_0x41deda,this['_sheetsChartService']=_0x12add6,W(this,_0x44ceff(0x3c8),void 0x0),this['_initCopyPaste']();}get[_0xca568b(0x3ab)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0xca568b(0x1d8)](){const _0x528988=_0xca568b;this[_0x528988(0x1e0)](this['_sheetClipboardService'][_0x528988(0x228)]({'id':_0x347d8f,'onBeforeCopyFocusedObject':(_0x27af69,_0x1f8496,_0x27f868)=>{const _0x22546f=_0x528988;this[_0x22546f(0x3c8)]=null;let _0x3de531=this['_focusedDrawings']['filter'](_0xf2f5d=>this[_0x22546f(0x396)](_0xf2f5d));return _0x3de531['length']!==0x0&&(this[_0x22546f(0x3c8)]={'unitId':_0x27af69,'subUnitId':_0x1f8496,'copyType':_0x27f868,'drawings':_0x3de531},!0x0);},'onBeforeCopy':(_0x35b71b,_0x17718a,_0x35b393,_0x401ab4)=>{const _0x3acd5d=_0x528988;this[_0x3acd5d(0x3c8)]=null,this['_createCopyInfoByRange'](_0x35b71b,_0x17718a,_0x35b393,_0x401ab4);},'onPasteCells':(_0x21f2c7,_0x118382,_0x5473ee,_0x492a4c)=>{const _0x36c7b3=_0x528988;if(!_0x492a4c[_0x36c7b3(0x3d9)]||!_0x21f2c7||!this[_0x36c7b3(0x3c8)])return{'redos':[],'undos':[]};let {pasteType:_0x1a6314}=_0x492a4c;return _0x1a6314===_0x360986['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x118382,this[_0x36c7b3(0x3c8)][_0x36c7b3(0x3a2)]===_0x3e768c[_0x36c7b3(0x260)]):{'redos':[],'undos':[]};}}));}[_0xca568b(0x303)](_0x3b8689,_0x3ee0c7,_0x5dc5f4,_0x5cc08c){const _0x553d98=_0xca568b;let _0x4c8a76=this[_0x553d98(0x1f7)]['getSkeleton'](_0x3b8689,_0x3ee0c7);if(!_0x4c8a76)return;let _0x16503d=_0x2f01d5(_0x4c8a76,_0x5dc5f4);if(!_0x16503d)return;let {startX:_0x341b25,endX:_0x4ab63e,startY:_0x1ace82,endY:_0x3caea0}=_0x16503d,_0x36644b=this[_0x553d98(0x447)][_0x553d98(0x340)](_0x3b8689,_0x3ee0c7),_0xac8746=[];for(let [_0x32e44a,_0x41ed6d]of Object[_0x553d98(0x3d3)](_0x36644b)){if(!this[_0x553d98(0x396)](_0x41ed6d))continue;let {transform:_0x180b75}=_0x41ed6d;if(!_0x180b75)continue;let {left:_0x3ba44a=0x0,top:_0x549137=0x0,width:_0x49a1a0=0x0,height:_0x3d82bf=0x0}=_0x180b75;_0x341b25<=_0x3ba44a&&_0x4ab63e>=_0x3ba44a+_0x49a1a0&&_0x1ace82<=_0x549137&&_0x3caea0>=_0x549137+_0x3d82bf&&_0xac8746[_0x553d98(0x338)](_0x41ed6d);}_0xac8746[_0x553d98(0x3c2)]>0x0&&(this[_0x553d98(0x3c8)]={'unitId':_0x3b8689,'subUnitId':_0x3ee0c7,'copyType':_0x5cc08c,'copyRange':_0x5dc5f4,'drawings':_0xac8746});}['_isOwnedChart'](_0x2e3af7){const _0x2acf0c=_0xca568b;return _0x2e3af7[_0x2acf0c(0x2ac)]===_0x1dc4b2['DRAWING_CHART']&&this[_0x2acf0c(0x1ac)][_0x2acf0c(0x3e2)](_0x2e3af7[_0x2acf0c(0x2f9)],_0x2e3af7[_0x2acf0c(0x22a)])===_0x2e3af7[_0x2acf0c(0x254)];}['_generatePasteMutations'](_0x113be1,_0x439bdc){const _0x2c32ad=_0xca568b;let {unitId:_0xdae3f8,subUnitId:_0x551733,range:_0x518b7e}=_0x113be1,_0x100bb8=this[_0x2c32ad(0x1f7)][_0x2c32ad(0x2e0)](_0xdae3f8,_0x551733);if(!_0x100bb8)return{'redos':[],'undos':[]};let _0x228294=_0x2b8b50(_0x518b7e),{unitId:_0x1dfa25,subUnitId:_0x2807fe,copyRange:_0x3c3507,drawings:_0x40dd53}=this[_0x2c32ad(0x3c8)],_0x29f9ec=this['_sheetSkeletonService'][_0x2c32ad(0x2e0)](_0x1dfa25,_0x2807fe);if(!_0x29f9ec)return{'redos':[],'undos':[]};let _0x2197ad=[],_0x5559ad=[];for(let _0x116613 of _0x40dd53){let {drawingId:_0x12b088,transform:_0x205162,sheetTransform:_0x12df10}=_0x116613,_0x89c7f4=this['_chartModelService']['getChartModel'](_0x12b088);if(!_0x89c7f4||!_0x205162||!_0x12df10)continue;let _0x4c5ee7=this['_updateTransform']({'transform':_0x205162,'sheetTransform':_0x12df10},{'skeleton':_0x29f9ec,'range':_0x3c3507},{'skeleton':_0x100bb8,'range':_0x228294});if(_0x439bdc){let {redos:_0x2532b3,undos:_0x3a1da8}=this['_generateCutPasteMutations']({'fromUnitId':_0x1dfa25,'fromSubUnitId':_0x2807fe,'toUnitId':_0xdae3f8,'toSubUnitId':_0x551733,'drawing':_0x116613,'newTransforms':_0x4c5ee7},_0x89c7f4);_0x2197ad[_0x2c32ad(0x338)](..._0x2532b3),_0x5559ad['push'](..._0x3a1da8);continue;}let {redos:_0x10d90b,undos:_0x45d6ce}=this['_generateCopyPasteMutations']({'toUnitId':_0xdae3f8,'toSubUnitId':_0x551733,'drawing':_0x116613,'newTransforms':_0x4c5ee7},_0x89c7f4);_0x2197ad['push'](..._0x10d90b),_0x5559ad['push'](..._0x45d6ce);}return{'redos':_0x2197ad,'undos':_0x5559ad};}[_0xca568b(0x1d4)](_0x4ddb18,_0x2b7fbc){const _0x3b54a2=_0xca568b;let {fromUnitId:_0x399958,fromSubUnitId:_0x43014c,toUnitId:_0x24c186,toSubUnitId:_0x4e5a08,drawing:_0x50f7e7,newTransforms:_0x1501e1}=_0x4ddb18,_0x53a8df={..._0x50f7e7,'unitId':_0x24c186,'subUnitId':_0x4e5a08,'transform':_0x1501e1[_0x3b54a2(0x21c)],'sheetTransform':_0x1501e1[_0x3b54a2(0x387)]};if(_0x24c186===_0x399958&&_0x4e5a08===_0x43014c){let {redo:_0x32fee3,undo:_0x39955b,objects:_0x50f5fa}=this[_0x3b54a2(0x447)][_0x3b54a2(0x1ed)]([_0x53a8df]);return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x332)],'op':_0x32fee3,'objects':_0x50f5fa}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9['UPDATE'],'op':_0x39955b,'objects':_0x50f5fa}}]};}{let _0x261920=this[_0x3b54a2(0x447)][_0x3b54a2(0x40b)]([_0x50f7e7]),_0x1fd9d5=this['_sheetDrawingService']['getBatchAddOp']([_0x53a8df]),_0x58dc60=this[_0x3b54a2(0x1ac)][_0x3b54a2(0x35e)](_0x2b7fbc['id']);if(!_0x58dc60)return{'redos':[],'undos':[]};let {chartType:_0xbf52a9,context:_0x77799b,style:_0x108df2,dataAggregation:_0x2b9702}=_0x2b7fbc[_0x3b54a2(0x286)]();return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'type':_0x5c18f9[_0x3b54a2(0x274)],'op':_0x261920[_0x3b54a2(0x408)],'objects':_0x261920[_0x3b54a2(0x30f)]}},{'id':_0x31720e['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'chartId':_0x50f7e7[_0x3b54a2(0x22a)]}},{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x3b8)],'op':_0x1fd9d5[_0x3b54a2(0x408)],'objects':_0x1fd9d5[_0x3b54a2(0x30f)]}},{'id':_0x217994['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'chartId':_0x50f7e7[_0x3b54a2(0x22a)],'chartType':_0xbf52a9,..._0x16c66f(_0x58dc60),'context':_0x77799b,'style':_0x108df2,'dataAggregation':_0x2b9702}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'type':_0x5c18f9['INSERT'],'op':_0x261920[_0x3b54a2(0x38a)],'objects':_0x261920[_0x3b54a2(0x30f)]}},{'id':_0x217994['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'chartId':_0x50f7e7[_0x3b54a2(0x22a)],'chartType':_0xbf52a9,..._0x16c66f(_0x58dc60),'context':_0x77799b,'style':_0x108df2,'dataAggregation':_0x2b9702}},{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x274)],'op':_0x1fd9d5['undo'],'objects':_0x1fd9d5['objects']}},{'id':_0x31720e['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'chartId':_0x50f7e7['drawingId']}}]};}}[_0xca568b(0x1bb)](_0x3a1c36,_0x5c5027){const _0x2e32fb=_0xca568b;let {toUnitId:_0x168870,toSubUnitId:_0x5655f5,drawing:_0x478f3c,newTransforms:_0x5271c1}=_0x3a1c36,_0x38d600=_0x4a5315(),_0x5f02e3={..._0x478f3c,'unitId':_0x168870,'subUnitId':_0x5655f5,'drawingId':_0x38d600,'transform':_0x5271c1[_0x2e32fb(0x21c)],'sheetTransform':_0x5271c1['sheetTransform']},{redo:_0x41afd1,undo:_0x1fab86,objects:_0x5c2980}=this[_0x2e32fb(0x447)][_0x2e32fb(0x27a)]([_0x5f02e3]),_0x1b04ba=this['_sheetsChartService'][_0x2e32fb(0x35e)](_0x5c5027['id']);if(!_0x1b04ba)return{'redos':[],'undos':[]};let {chartType:_0x2fffed,context:_0x2af8b9,style:_0x491210,dataAggregation:_0x803878}=_0x5c5027[_0x2e32fb(0x286)]();return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'type':_0x5c18f9[_0x2e32fb(0x3b8)],'op':_0x41afd1,'objects':_0x5c2980}},{'id':_0x217994['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'chartId':_0x38d600,'chartType':_0x2fffed,..._0x16c66f(_0x1b04ba),'context':_0x2af8b9,'style':_0x491210,'dataAggregation':_0x803878}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'type':_0x5c18f9[_0x2e32fb(0x274)],'op':_0x1fab86,'objects':_0x5c2980}},{'id':_0x31720e['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'chartId':_0x38d600}}]};}[_0xca568b(0x1f8)](_0x8f690d,_0x5b03bb,_0x5c6c96){const _0x454810=_0xca568b;let {range:_0x18d18e,skeleton:_0x15ae3e}=_0x5b03bb,{range:_0x46c42d,skeleton:_0x541a49}=_0x5c6c96,{transform:_0x1992e7,sheetTransform:_0x14a91a}=_0x8f690d,_0x242f43={..._0x1992e7};if(_0x18d18e){let _0x80266e=_0x2f01d5(_0x15ae3e,_0x18d18e),_0x235262=_0x2f01d5(_0x541a49,_0x46c42d);if(_0x80266e&&_0x235262){let _0x4f5b6c=_0x235262['startX']-_0x80266e[_0x454810(0x3b7)],_0x32de6c=_0x235262[_0x454810(0x325)]-_0x80266e[_0x454810(0x325)];_0x242f43[_0x454810(0x2c3)]=(_0x242f43[_0x454810(0x2c3)]??0x0)+_0x4f5b6c,_0x242f43[_0x454810(0x45a)]=(_0x242f43[_0x454810(0x45a)]??0x0)+_0x32de6c;}}else{let _0x38d82b=_0x2f01d5(_0x541a49,_0x46c42d);_0x242f43[_0x454810(0x2c3)]=_0x38d82b==null?void 0x0:_0x38d82b[_0x454810(0x3b7)],_0x242f43[_0x454810(0x45a)]=_0x38d82b==null?void 0x0:_0x38d82b['startY'];}return{'transform':_0x242f43,'sheetTransform':_0x3c121b(_0x242f43,_0x541a49)??_0x14a91a};}};oa=q([K(0x0,_0x2b7ebf(_0x225140)),K(0x1,_0x2b7ebf(_0x3c57bc)),K(0x2,_0x2b7ebf(_0x124322)),K(0x3,_0x2b7ebf(_0x781fb3)),K(0x4,_0x2b7ebf(_0xb7f357))],oa);let sa=class extends _0x110283{constructor(_0x384008,_0x2c62fe,_0x274532,_0x25bc4d){const _0x1dd6ee=_0xca568b;super(),this[_0x1dd6ee(0x214)]=_0x384008,this['_localeService']=_0x2c62fe,this['_sheetPermissionCheckController']=_0x274532,this[_0x1dd6ee(0x1ac)]=_0x25bc4d,this[_0x1dd6ee(0x336)]();}['_initPermission'](){const _0x23ac9f=_0xca568b;this['disposeWithMe'](this[_0x23ac9f(0x214)]['beforeCommandExecuted'](_0x4f2c24=>{const _0x29caaa=_0x23ac9f;let _0x28b332,_0x406b3b;if(_0x4f2c24['id']===_0x438cd9['id']){let _0x5664a0=_0x4f2c24[_0x29caaa(0x2f1)];_0x28b332=_0x5664a0[_0x29caaa(0x2f9)],_0x406b3b=_0x5664a0[_0x29caaa(0x254)];}else{if(_0x4f2c24['id']===_0x180bba['id']||_0x4f2c24['id']===_0x2edcc4['id']){let _0xa9d5c5=_0x4f2c24[_0x29caaa(0x2f1)];_0x28b332=_0xa9d5c5[_0x29caaa(0x2f9)],_0x406b3b=this[_0x29caaa(0x1ac)][_0x29caaa(0x3e2)](_0xa9d5c5['unitId'],_0xa9d5c5[_0x29caaa(0x3e7)]);}}_0x28b332&&_0x406b3b&&(this[_0x29caaa(0x446)][_0x29caaa(0x37e)]({'workbookTypes':[_0xd0e974],'worksheetTypes':[_0x437d18]},_0x28b332,_0x406b3b)||this[_0x29caaa(0x446)][_0x29caaa(0x320)](this[_0x29caaa(0x375)]['t'](_0x29caaa(0x331))));}));}};sa=q([K(0x0,_0x2b7ebf(_0x5a9a36)),K(0x1,_0x2b7ebf(_0x3ad976)),K(0x2,_0x2b7ebf(_0x49ff14)),K(0x3,_0x2b7ebf(_0xb7f357))],sa);let ca=class extends _0x110283{constructor(_0x4c1321,_0x1d30c1){const _0x1a0bd9=_0xca568b;super(),this['_renderService']=_0x1d30c1,this['disposeWithMe'](_0x4c1321[_0x1a0bd9(0x2ef)](this));}[_0xca568b(0x3de)](_0x3c6688){const _0xcd2b43=_0xca568b;return _0xcd2b43(0x2f9)in _0x3c6688&&_0xcd2b43(0x254)in _0x3c6688;}[_0xca568b(0x42c)](_0x525882,_0x10da51){const _0x19e928=_0xca568b;return this[_0x19e928(0x201)][_0x19e928(0x42c)](_0x525882[_0x19e928(0x200)](),_0x10da51);}};ca=q([K(0x0,_0x2b7ebf(_0x4aa169)),K(0x1,_0x2b7ebf(J))],ca);let Q=class extends _0x327d6b{constructor(_0x3dad44=Mr,_0x3ebc10,_0x430612,_0x4238f6){const _0x2518ff=_0xca568b;super(),this[_0x2518ff(0x1ea)]=_0x3dad44,this[_0x2518ff(0x289)]=_0x3ebc10,this['_configService']=_0x430612,this['_commandService']=_0x4238f6;let {..._0x106809}=_0x37ac4e({},Mr,this[_0x2518ff(0x1ea)]);this[_0x2518ff(0x239)]['setConfig'](jr,_0x106809),this['_initCommands']();}[_0xca568b(0x3ba)](){const _0x15f2d8=_0xca568b;let _0x214bb3=[[ia],[Y,{'useClass':Ci}],[yi,{'useClass':vi}],[di],[J],[ca],[aa],[Vi],[Hi],[oa],[Ji],[sa]],_0x14905c=[[ia],[aa],[Hi],[Vi],[ca],[Y],[oa],[Ji],[sa]];_0x214bb3[_0x15f2d8(0x308)](_0x40b263=>this[_0x15f2d8(0x289)][_0x15f2d8(0x36f)](_0x40b263)),_0x548fbf(this[_0x15f2d8(0x289)],_0x14905c);}['onRendered'](){const _0x21afff=_0xca568b;var _0x491756;(_0x491756=this[_0x21afff(0x289)][_0x21afff(0x29a)](aa))==null||_0x491756[_0x21afff(0x324)]();}[_0xca568b(0x2ed)](){const _0x349898=_0xca568b;[U,H][_0x349898(0x308)](_0x3d572d=>this[_0x349898(0x1e0)](this[_0x349898(0x214)][_0x349898(0x302)](_0x3d572d)));}};W(Q,_0xca568b(0x1bc),_0x50b631[_0xca568b(0x2f0)]),W(Q,'pluginName',_0xca568b(0x2eb)),W(Q,'packageName',zi),W(Q,_0xca568b(0x337),Bi),Q=q([_0x75347f(_0x47aa2e,_0x1e792f,_0x8fec38,_0x3fd6e8,_0x223cfa,_0x3cd5fc,_0x3f74b2,_0x1d2bf4,_0x42b49c,_0x28a947),K(0x1,_0x2b7ebf(_0x34eb6c)),K(0x2,_0x116807),K(0x3,_0x5a9a36)],Q);const la={'scaleX':0x1,'scaleY':0x1};function ua(_0x421b65){const _0x312a08=_0xca568b;let _0x2a8cc7=_0x421b65[_0x312a08(0x24d)];return _0x2a8cc7 instanceof MouseEvent?_0x2a8cc7:void 0x0;}function da(_0x50e95c){const _0x2fa1c8=_0xca568b;let _0x5297f=_0x50e95c['nativeEvent'],_0x2f66db=_0x5297f==null?void 0x0:_0x5297f[_0x2fa1c8(0x2b0)];return _0x2f66db instanceof Element?_0x2f66db:void 0x0;}function fa(_0x16b625){var _0x320453;return(_0x320453=da(_0x16b625))==null?void 0x0:_0x320453['getBoundingClientRect']();}function pa(_0x5e8999){const _0x556f2d=_0xca568b;return _0x5e8999['width']||_0x5e8999['right']-_0x5e8999[_0x556f2d(0x2c3)];}function ma(_0x1003c2){const _0x1d66d3=_0xca568b;return _0x1003c2[_0x1d66d3(0x3ce)]||_0x1003c2['bottom']-_0x1003c2[_0x1d66d3(0x45a)];}function ha(_0x29a49d,_0x3cb295){const _0x3916fb=_0xca568b;let _0x11dd74=_0x29a49d[_0x3916fb(0x453)]||(_0x29a49d instanceof HTMLElement?_0x29a49d[_0x3916fb(0x215)]:0x0),_0x69f38f=_0x29a49d[_0x3916fb(0x402)]||(_0x29a49d instanceof HTMLElement?_0x29a49d[_0x3916fb(0x252)]:0x0),_0x3bce97=pa(_0x3cb295),_0x438dfa=ma(_0x3cb295);return{'scaleX':_0x11dd74>0x0&&_0x3bce97>0x0?_0x3bce97/_0x11dd74:la[_0x3916fb(0x437)],'scaleY':_0x69f38f>0x0&&_0x438dfa>0x0?_0x438dfa/_0x69f38f:la['scaleY']};}function ga(_0x39964a,_0x222b18,_0x35b966){const _0xbc611c=_0xca568b;return{'left':_0x39964a[_0xbc611c(0x2c3)]+_0x222b18[_0xbc611c(0x2c3)]*_0x35b966['scaleX'],'right':_0x39964a['left']+_0x222b18[_0xbc611c(0x334)]*_0x35b966[_0xbc611c(0x437)],'top':_0x39964a[_0xbc611c(0x45a)]+_0x222b18['top']*_0x35b966[_0xbc611c(0x3c3)],'bottom':_0x39964a['top']+_0x222b18['bottom']*_0x35b966[_0xbc611c(0x3c3)]};}function _a(_0x4eee82){const _0x1839b7=_0xca568b;let _0x422695=da(_0x4eee82),_0x5ecc1b=_0x4eee82[_0x1839b7(0x2e4)][_0x1839b7(0x443)];return _0x422695&&_0x5ecc1b?()=>{const _0x5210cc=_0x1839b7;let _0x1d7064=_0x422695[_0x5210cc(0x1af)]();return ga(_0x1d7064,_0x5ecc1b,ha(_0x422695,_0x1d7064));}:()=>{const _0x177023=_0x1839b7;let _0x1e1476=fa(_0x4eee82);if(_0x1e1476&&_0x5ecc1b)return ga(_0x1e1476,_0x5ecc1b,_0x422695?ha(_0x422695,_0x1e1476):la);let _0x44a7e9=ua(_0x4eee82),_0x561cc1=_0x422695&&_0x1e1476?ha(_0x422695,_0x1e1476):la,_0xd36320=(_0x44a7e9==null?void 0x0:_0x44a7e9[_0x177023(0x34e)])??(_0x1e1476?_0x1e1476[_0x177023(0x2c3)]+_0x4eee82['localPoint']['x']*_0x561cc1[_0x177023(0x437)]:_0x4eee82[_0x177023(0x32e)]['x']),_0x554aa1=(_0x44a7e9==null?void 0x0:_0x44a7e9[_0x177023(0x440)])??(_0x1e1476?_0x1e1476[_0x177023(0x45a)]+_0x4eee82[_0x177023(0x32e)]['y']*_0x561cc1['scaleY']:_0x4eee82[_0x177023(0x32e)]['y']);return{'left':_0xd36320,'right':_0xd36320+0x1,'top':_0x554aa1,'bottom':_0x554aa1+0x1};};}function va(_0x1347ee){const _0x25117c=_0xca568b;return typeof _0x1347ee==_0x25117c(0x2f7)&&Number[_0x25117c(0x2da)](_0x1347ee);}function ya(_0xbc4d4b){if(!_0xbc4d4b||typeof _0xbc4d4b!='object')return!0x0;let {startX:_0x2bf35e,endX:_0x5226ce,startY:_0x3e9588,endY:_0x11863d}=_0xbc4d4b;return!va(_0x2bf35e)||!va(_0x5226ce)||!va(_0x3e9588)||!va(_0x11863d)||_0x5226ce-_0x2bf35e>0x2&&_0x11863d-_0x3e9588>0x2;}function ba(_0x1db426){const _0xfd3a7a=_0xca568b;return _0x1db426[_0xfd3a7a(0x334)]<=_0x1db426[_0xfd3a7a(0x2c3)]||_0x1db426[_0xfd3a7a(0x2c6)]<=_0x1db426['top']?!0x1:typeof window>'u'||_0x1db426[_0xfd3a7a(0x334)]>0x0&&_0x1db426[_0xfd3a7a(0x2c6)]>0x0&&_0x1db426['left']<window['innerWidth']&&_0x1db426[_0xfd3a7a(0x45a)]<window['innerHeight'];}function xa(_0x2c91bf){const _0x31f88c=_0xca568b;var _0x466f9b;return _0x2c91bf==null||(_0x466f9b=_0x2c91bf[_0x31f88c(0x2bc)])==null?void 0x0:_0x466f9b[_0x31f88c(0x2b9)](_0x2c91bf);}function Sa(_0x3fd7c7,_0xd2e324,_0x1eaa9e){const _0xa1a669=_0xca568b;let _0x35c755=_a(_0x3fd7c7),_0x5cfbcb=xa(_0xd2e324),_0x5a23de=_0x35c755(),_0x7fefe=new _0x16eb2c(_0x5a23de),_0x9b80a1=new _0x47b662(),_0x18ea65=!0x1,_0x2a7677=!0x1,_0x4d8d47=_0x1b6f65=>ya(_0x5cfbcb)&&ba(_0x1b6f65),_0x44c054=()=>{_0x2a7677||_0x18ea65||(_0x2a7677=!0x0,queueMicrotask(()=>{const _0x4d429e=_0x28a2;if(_0x2a7677=!0x1,!_0x18ea65){let _0x27a152=_0x35c755();if(!_0x4d8d47(_0x27a152)){_0x1eaa9e();return;}_0x7fefe[_0x4d429e(0x1b5)](_0x27a152);}}));};return _0xd2e324&&_0x9b80a1[_0xa1a669(0x36f)](_0xd2e324[_0xa1a669(0x1f1)](_0x500e00=>{_0x5cfbcb=_0x500e00,_0x44c054();})),typeof window<'u'&&_0x9b80a1[_0xa1a669(0x36f)](_0x3fa440(_0x2e3bd5(window,_0xa1a669(0x281),{'capture':!0x0}),_0x2e3bd5(window,_0xa1a669(0x222)))[_0xa1a669(0x2d3)](_0x1b536f(0x10))['subscribe'](_0x44c054)),{'initialRect':_0x5a23de,'anchorRect$':_0x7fefe['asObservable'](),'visible':_0x4d8d47(_0x5a23de),'dispose':()=>{const _0x22f709=_0xa1a669;_0x18ea65=!0x0,_0x9b80a1[_0x22f709(0x406)](),_0x7fefe[_0x22f709(0x388)]();}};}const Ca='sheets-chart-element-float-menu';let wa=class extends _0x110283{constructor(_0x1922b6,_0x59834d,_0x2769e7,_0x20ab88,_0x21bf36,_0x2a4326,_0x27a718,_0x3032cd,_0x1d4434){const _0xeb05d3=_0xca568b;super(),this['_chartModelService']=_0x1922b6,this[_0xeb05d3(0x28f)]=_0x59834d,this[_0xeb05d3(0x26a)]=_0x2769e7,this[_0xeb05d3(0x207)]=_0x20ab88,this[_0xeb05d3(0x40f)]=_0x21bf36,this['_chartUIService']=_0x2a4326,this['_adapterRegistry']=_0x27a718,this[_0xeb05d3(0x214)]=_0x3032cd,this[_0xeb05d3(0x289)]=_0x1d4434,W(this,_0xeb05d3(0x45d),null),W(this,_0xeb05d3(0x32b),null),W(this,'_popupSessionKey',null),this[_0xeb05d3(0x1a8)](),this[_0xeb05d3(0x2d7)]();}['dispose'](){const _0x47d523=_0xca568b;this[_0x47d523(0x366)](),super['dispose']();}[_0xca568b(0x1a8)](){const _0x4fb2fe=_0xca568b;let _0x36fe70=_0x38fe22({'chartUIService':this[_0x4fb2fe(0x2c8)],'getHostAdapter':_0x5dea5f=>{const _0x446ee2=_0x4fb2fe;let _0x8674ca=this[_0x446ee2(0x3f0)]['getChartModel'](_0x5dea5f[_0x446ee2(0x400)]);if(_0x8674ca&&_0x5dea5f[_0x446ee2(0x254)])return new _0x10f55f(_0x8674ca,new _0x14bce4({'unitId':_0x5dea5f[_0x446ee2(0x2f9)],'subUnitId':_0x5dea5f[_0x446ee2(0x254)],'chartId':_0x5dea5f['chartId'],'injector':this[_0x446ee2(0x289)]}));},'close':()=>this[_0x4fb2fe(0x366)](),'openFullPanel':_0x75ae50=>{const _0x136091=_0x4fb2fe;let {unitId:_0x35cd1b,subUnitId:_0x2b01b6,drawingId:_0x743e32,chartId:_0x2c4927}=_0x75ae50,_0x3f394e=_0x498bfb(_0x75ae50[_0x136091(0x2b0)]);this[_0x136091(0x214)][_0x136091(0x304)](H['id'],{'unitId':_0x35cd1b,'subUnitId':_0x2b01b6??'','drawingId':_0x743e32??_0x2c4927,..._0x3f394e?{'route':_0x3f394e}:{}});}});this[_0x4fb2fe(0x1e0)](this[_0x4fb2fe(0x346)]['register'](Ca,_0x36fe70));}[_0xca568b(0x2d7)](){const _0x44aa4c=_0xca568b;this[_0x44aa4c(0x1e0)](this[_0x44aa4c(0x3f0)][_0x44aa4c(0x229)]['subscribe'](_0x83f142=>{const _0x182fbf=_0x44aa4c;let _0x23e9ac=new _0x47b662();_0x23e9ac[_0x182fbf(0x36f)](this[_0x182fbf(0x28f)]['on'](_0x83f142['id'],'click',_0x25e12f=>{const _0x296563=_0x182fbf;this[_0x296563(0x2dd)](_0x83f142['id'],_0x25e12f);})),_0x23e9ac[_0x182fbf(0x36f)](this[_0x182fbf(0x28f)]['on'](_0x83f142['id'],'dblclick',()=>{const _0x194659=_0x182fbf;this[_0x194659(0x258)](_0x83f142['id']);})),_0x83f142[_0x182fbf(0x20b)](()=>{const _0x55e925=_0x182fbf;_0x23e9ac[_0x55e925(0x406)](),this[_0x55e925(0x3f3)](_0x83f142['id']);}),this['disposeWithMe'](_0x23e9ac);})),this['disposeWithMe'](_0x3c6cb0([this['_chartModelService'][_0x44aa4c(0x2b2)],this[_0x44aa4c(0x2c8)][_0x44aa4c(0x30a)]])['subscribe'](([_0xb06b0f,_0x4ea376])=>{const _0x320119=_0x44aa4c;(!_0x4ea376||this[_0x320119(0x32b)]&&(_0xb06b0f==null?void 0x0:_0xb06b0f['id'])!==this[_0x320119(0x32b)])&&this[_0x320119(0x366)]();})),this[_0x44aa4c(0x1e0)](this[_0x44aa4c(0x40f)][_0x44aa4c(0x21d)][_0x44aa4c(0x1f1)](({id:_0x1b6ce9})=>{this['_clearSelectedTarget'](_0x1b6ce9);})),this[_0x44aa4c(0x1e0)](this['_sheetCanvasFloatDomManagerService'][_0x44aa4c(0x2de)]['subscribe'](({id:_0x308995})=>{const _0x3cabdd=_0x44aa4c;this[_0x3cabdd(0x3f3)](_0x308995);})),this[_0x44aa4c(0x1e0)](this['_chartHostProvider'][_0x44aa4c(0x380)][_0x44aa4c(0x1f1)](_0x59f991=>{this['_clearSelectedTarget'](_0x59f991);}));}[_0xca568b(0x258)](_0x37b8bd){const _0x44ba11=_0xca568b;if(this['_chartUIService'][_0x44ba11(0x3c6)])return;let _0x5dd848=this[_0x44ba11(0x3f0)][_0x44ba11(0x284)](_0x37b8bd),_0x9c600f=this[_0x44ba11(0x40f)]['getFloatDomInfo'](_0x37b8bd);_0x5dd848&&_0x9c600f&&this['_commandService'][_0x44ba11(0x304)](H['id'],{'unitId':_0x9c600f[_0x44ba11(0x2f9)],'subUnitId':_0x9c600f[_0x44ba11(0x254)]??'','drawingId':_0x37b8bd});}[_0xca568b(0x2dd)](_0x51d3b3,_0x173b05){const _0x379e87=_0xca568b;if(!this[_0x379e87(0x2c8)]['isElementEditModeActive'](_0x51d3b3))return;let _0xc8a165=this[_0x379e87(0x3f0)][_0x379e87(0x284)](_0x51d3b3),_0x3dc06a=_0xc8a165?ei(_0xc8a165,_0x173b05[_0x379e87(0x2e4)]):void 0x0;if(!_0x3dc06a){this[_0x379e87(0x2c8)][_0x379e87(0x1f9)](),this[_0x379e87(0x366)]();return;}let _0x3bf1c6=this[_0x379e87(0x40f)]['getFloatDomInfo'](_0x51d3b3);if(!_0xc8a165||!_0x3bf1c6){this['_chartUIService'][_0x379e87(0x1f9)](),this['_closePopup']();return;}let _0x382bed=JSON[_0x379e87(0x3ed)]([_0x3bf1c6['unitId'],_0x3bf1c6['subUnitId'],_0x51d3b3,_0x3dc06a[_0x379e87(0x2b0)]]);if(this[_0x379e87(0x45d)]&&this[_0x379e87(0x3b3)]===_0x382bed||(this[_0x379e87(0x2c8)][_0x379e87(0x3e6)](_0x51d3b3,_0x3dc06a[_0x379e87(0x3ae)]),this['_closePopup'](),!_0x3dc06a[_0x379e87(0x36c)]))return;let _0x1df6b2=Sa(_0x173b05,_0x3bf1c6['position$'],()=>this[_0x379e87(0x3f5)](_0x51d3b3));if(!_0x1df6b2[_0x379e87(0x1a0)]){_0x1df6b2[_0x379e87(0x406)]();return;}let _0x1d45b7=this[_0x379e87(0x207)][_0x379e87(0x41e)](_0x1df6b2[_0x379e87(0x326)],_0x1df6b2[_0x379e87(0x27e)],{'componentKey':_0x1fff77,'constrainToCanvas':!0x0,'direction':_0x379e87(0x3d2),'offset':[0x0,0x8],'extraProps':{'unitId':_0x3bf1c6['unitId'],'subUnitId':_0x3bf1c6[_0x379e87(0x254)],'chartId':_0x51d3b3,'drawingId':_0x51d3b3,'element':_0x173b05['hit'],'target':_0x3dc06a['target'],'adapterKey':Ca}},_0x3bf1c6['unitId'],_0x3bf1c6[_0x379e87(0x254)])??null;if(!_0x1d45b7){_0x1df6b2[_0x379e87(0x406)]();return;}let _0xe43a7=new _0x47b662();_0xe43a7['add'](_0x1d45b7),_0xe43a7['add'](_0x1df6b2),this[_0x379e87(0x45d)]=_0xe43a7,this[_0x379e87(0x32b)]=_0x51d3b3,this[_0x379e87(0x3b3)]=_0x382bed;}[_0xca568b(0x366)](){const _0x5710a2=_0xca568b;var _0x225c1b;(_0x225c1b=this[_0x5710a2(0x45d)])==null||_0x225c1b['dispose'](),this[_0x5710a2(0x45d)]=null,this[_0x5710a2(0x32b)]=null,this['_popupSessionKey']=null;}['_clearSelectedTarget'](_0x3b3807){const _0x5a4dcf=_0xca568b;(this[_0x5a4dcf(0x2c8)]['isElementEditModeActive'](_0x3b3807)||this[_0x5a4dcf(0x32b)]===_0x3b3807)&&(this[_0x5a4dcf(0x2c8)][_0x5a4dcf(0x1f9)](),this['_popupChartId']===_0x3b3807&&this[_0x5a4dcf(0x366)]());}[_0xca568b(0x3f5)](_0xebe43a){const _0xc3ff28=_0xca568b;this['_clearSelectedTarget'](_0xebe43a),this['_chartUIService']['isElementEditModeActive'](_0xebe43a)&&(this['_chartRenderService'][_0xc3ff28(0x253)](_0xebe43a,!0x1),this[_0xc3ff28(0x28f)][_0xc3ff28(0x253)](_0xebe43a,!0x0));}};wa=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(J)),K(0x2,yi),K(0x3,_0x2b7ebf(_0x4aa645)),K(0x4,_0x2b7ebf(_0x48f4a3)),K(0x5,Y),K(0x6,_0x2b7ebf(_0x4b0b38)),K(0x7,_0x5a9a36),K(0x8,_0x2b7ebf(_0x34eb6c))],wa);let Ta=class extends _0x110283{constructor(_0x17d96a,_0x4ecbf0){const _0x4a8abc=_0xca568b;super(),this[_0x4a8abc(0x283)]=_0x17d96a,this[_0x4a8abc(0x34c)]=_0x4ecbf0,this[_0x4a8abc(0x1b3)](),this[_0x4a8abc(0x3a4)]();}[_0xca568b(0x1b3)](){const _0x37e8b7=_0xca568b;this[_0x37e8b7(0x1e0)](this[_0x37e8b7(0x34c)]['register']({'PenIcon':_0x54078f}));}[_0xca568b(0x3a4)](){[[Z,Ni]]['forEach'](([_0x139e97,_0xe5d9f2])=>{const _0x357a0b=_0x28a2;this[_0x357a0b(0x1e0)](this[_0x357a0b(0x283)][_0x357a0b(0x2ef)](_0x139e97,_0xe5d9f2));});}};Ta=q([K(0x0,_0x2b7ebf(_0x16eb50)),K(0x1,_0x2b7ebf(_0x2f16d2))],Ta);let $=class extends _0x327d6b{constructor(_0x38491d=Mr,_0x1b16cf,_0x37f73f,_0x5a9e9c){const _0x46d549=_0xca568b;super(),this[_0x46d549(0x1ea)]=_0x38491d,this[_0x46d549(0x289)]=_0x1b16cf,this[_0x46d549(0x239)]=_0x37f73f,this['_commandService']=_0x5a9e9c,W(this,'_resolvedConfig',void 0x0);let {..._0x490e02}=_0x37ac4e({},Mr,this['_config']);this[_0x46d549(0x204)]=_0x490e02,this[_0x46d549(0x239)]['setConfig'](jr,_0x490e02),this[_0x46d549(0x2ed)]();}[_0xca568b(0x3ba)](){const _0x45fbc7=_0xca568b;this['_injector'][_0x45fbc7(0x36f)]([Ta]),this[_0x45fbc7(0x289)][_0x45fbc7(0x29a)](Ta);let _0x1a2821=this[_0x45fbc7(0x289)],_0x59e96e=[[Y,{'useClass':Ci}],[yi,{'useClass':vi}],[di],[J],[ca],[Ri],[Vi],[Hi],[oa],[Ji],[sa]],_0x322ccf=[[Ri],[Hi],[Vi],[ca],[Y],[oa],[Ji],[sa]];this[_0x45fbc7(0x204)][_0x45fbc7(0x3ee)]&&(_0x59e96e['push']([wa]),_0x322ccf[_0x45fbc7(0x338)]([wa])),_0x59e96e[_0x45fbc7(0x308)](_0x2d9d54=>_0x1a2821[_0x45fbc7(0x36f)](_0x2d9d54)),_0x548fbf(this[_0x45fbc7(0x289)],_0x322ccf);}[_0xca568b(0x3b5)](){const _0x3626d7=_0xca568b;var _0x659a3a;(_0x659a3a=this[_0x3626d7(0x289)][_0x3626d7(0x29a)](Ri))==null||_0x659a3a[_0x3626d7(0x324)]();}['_initCommands'](){const _0x3fdf13=_0xca568b;[U,Ir,Lr,Rr,zr,H,Nr][_0x3fdf13(0x308)](_0xe67d27=>this[_0x3fdf13(0x1e0)](this['_commandService'][_0x3fdf13(0x302)](_0xe67d27)));}};W($,_0xca568b(0x1bc),_0x50b631[_0xca568b(0x2f0)]),W($,_0xca568b(0x218),'UniverSheetsChartUIPlugin'),W($,'packageName',zi),W($,_0xca568b(0x337),Bi),$=q([_0x75347f(_0x47aa2e,_0x1e792f,_0x8fec38,_0x3fd6e8,_0x223cfa,_0x29446d,_0x3f74b2,_0x1d075b,_0x290150),K(0x1,_0x2b7ebf(_0x34eb6c)),K(0x2,_0x116807),K(0x3,_0x5a9a36)],$);export{H as ChartOpenPanelOperation,J as ChartRenderService,Y as ISheetsChartUIService,jr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Ri as SheetsChartUIController,Zr as SheetsChartUIMenuSchema,Ci as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin,Sa as createChartElementPopupAnchorObserver};function _0x3e2b(){const _0x21648=['opacity','_subscribeChartEvents','_renderWhenConfigReady','sheets-chart-ui.common.trendline','isFinite','download','add$','_openFloatMenu','remove$','sheets-chart-ui.common.editChart','getSkeleton','drawingIds','range','value','hit','Relation','Data','closePath','subscribeEvent','univer-overflow-visible','min','UniverSheetsChartUIPlugin','interceptCommand','_initCommands','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','UNIVER_SHEET','params','focus$','prototype','_chartEventHandlers','4VLmxfe','_getOuterRect','number','sheets-chart-ui.common.switchRowColumn','unitId','1000','sidebarOptions$','_drawChartFrame','getElementById','Line','drawImage','@univerjs-pro/sheets-chart-ui','featurePluginGroupUpdate$','registerCommand','_createCopyInfoByRange','executeCommand','Overlay','promise','_sheetClipboardService','forEach','getRealBound','chartEditorOpen$','Chord','PieStyle','constructor','makeDirty','objects','openChartPanelById','_savedWrapperStyle','legend','naturalWidth','isLatest','hidden','pareto','_canvasFloatDomService','ParetoBarSeries','setStyle','_univerInstanceService','_cancelDebouncedCallbacks','with','DRAWING','Row','setContextValue','blockExecuteWithoutPermission','getDirection','COMMA','_disposeImage','initPanel','startY','initialRect','getRenderModel','contains','clearChart','sheets-chart-ui.common.category','_popupChartId','_chartEventSubscriptions','_handleDrawingDoubleClick','localPoint','sheets-chart-ui.section.paretoLine','createChartInstance','sheets-chart-ui.permission.editErr','UPDATE','sheets-chart-ui.section.candlestick','right','Boxplot','_initPermission','version','push','open','invalidateSnapshot','_chartHostMap','rangeInfo$','References','Bar','name','getDrawingData','_chartElementEditMode','removeHost','tab','pieSecondaryPlotType','defaultValues','_adapterRegistry','RightVerticalAxis','MEDIA','sheets-chart-ui.common.useAsCategoryLabels','border','_getImage','_iconManager','OTHERS','clientX','getMatrix','_getChartRenderObject','rect','univer-shrink-0','checkMounted','_debounceHandleMap','Gauge','source','getSheetBySheetName','then','_setChartRuntimeZIndex','getFloatDomInfo','_chartThemeService','cumulativeLineStyle','_applyHostInteractionState','getChartSourceSpec','anonymous','getUnitId','getUnit','matches','isArray','sheet.command.menu-insert-chart','category','_closePopup','sheets-chart-ui.common.rightVerticalAxis','univer-flex\x20univer-flex-col\x20univer-gap-3','WaterfallSeries','_activateHostWrapper','851451szbIGE','showFloatMenu','wordCloud','BUTTON','add','sheets-chart-ui.common.deleteChart','animateDataUpdate','_hostStyle','addObject','_addWatermark','_localeService','lineTo','values','moveTo','parentElement','strokeWidth','749sBJijj','_cacheActiveDomChartSnapshot','filter','permissionCheckWithoutRange','interceptor','removeHost$','_initMenus','engine','_initPrinting','image','update','61767RPmrwN','sheetTransform','complete','href','undo','sheetChartDataAnimation','Column','_removeHost$','object','sheets-chart-ui.chord.target','style$','getChartPopupMenus','titleKey','create','logicalOuterRect','abs','_isOwnedChart','sheets-chart-ui.section.radar','_requestPaint','nextVersion','setRangeSelectMode','DeleteIcon','_deactivateDataUpdateAnimation','sheets-chart-ui.common.heatmap','_managed','markUnmanaged','iterator','unsubscribe','copyType','restore','_registerComponents','dom','_drawChartImage','getRect','asObservable','GROUP','sheets-chart-ui.common.series','_focusedDrawings','_disposeChartChangeListeners','seriesId','route','offsetTop','Url','_chartEditorOpen$','_setHostStyle','_popupSessionKey','viewBound','onRendered','_sheetPrintInterceptorService','startX','INSERT','_applyHostStyle','onStarting','indexOf','sheets-chart-ui.section.histogram','_deactivateEditPanelState','defineProperty','applyPoint','_clearPanelState','getName','length','scaleY','Waterfall','_urlImage','chartEditorOpen','getDrawingOrder','_copyInfo','mobile-sheet-chart-setup-panel','onerror','935137TgLXvM','config','onDoubleClick$','height','setProps','_snapshotKey','Series','top-center','entries','_getChartSnapshotKey','getChartDataSource','resolve','canvas','endsWith','copyId','updateFloatDomProps','_activateEditPanelState','close','20ePZTmC','supports','_getSceneAndTransformerByDrawingSearch','Legend','has','getSubUnitId','plotVisibleOnly','sheets-chart-ui.common.invalidDataRange','hasOwnProperty','setPanelRoute','chartModelId','intercept','_disposeChartEventSubscription','max','transparent','dataset','stringify','enableChartElementFloatMenu','_pendingDataUpdateChartIds','_chartModelService','8190440vPXRVb','_disposed','_clearSelectedTarget','sheets-chart-ui.section.pie','_clearHiddenSelectedTarget','current','drawWith','_createImageChartHost','_themeService','items','panelRoute$','Candlestick','.chart-host','_version','getOwnPropertyDescriptor','chartId','sheets-chart-ui.section.funnel','clientHeight','classType','save','_restoreFloatDomPositionStream','dispose','sheets-chart-ui.common.legend','redo','handleActiveSubUnitChange','_resolveLayout','getBatchRemoveOp','renderTransition','_chartInstanceMap','activeRuntimeModel','_sheetCanvasFloatDomManagerService','sheets-chart-ui.common.hideChartPanel','afterRender$','rangeInfo','position$','_clearPendingUrlImage','isDomReady','_clearSheetChartRuntimeCaches','_pendingToken','setChartEditorOpen','print','getObjectIncludeInGroup','sheets-chart-ui.section.sunburst','chartModelRemoved$','_openPanel','attachPopupToDynamicAbsolutePosition','getRangeInfo','_markReady','_activeDomReadyChartIds','Sunburst','featurePluginUngroupUpdate$','sheets-chart-ui.common.copy','getFocusedUnit','mobile-sheet-chart-style-panel','-univer-mx-4\x20univer-overflow-visible','funnel','_domFrame','toPrimitive','_isChartElementEditEnabled','exportImage','concat','sheets-chart-ui.section.waterfall','_executeChartUpdateSourceConfig','verify','ensureHost','sheets-chart-ui.section.chord','_dataUpdateAnimationTimers','_disposeChartEventSubscriptions','_chartChangeSubscriptions','chartType','scaleX','fromEntries','sheets-chart-ui.common.dataRange','_rect','_shouldEnableChartElementEdit','sheets-chart-ui.chartTypes.','6521135JrxdvC','setImage','assignStyle','clientY','#-#','offsetLeft','bounds','_chartRenderMode','_disposeChartRenderInstance','_sheetPermissionCheckController','_sheetDrawingService','mode','symbol','startRow','syncLayout','ChartAndAxisTitles','getRenderColor','(prefers-reduced-motion:\x20reduce)','_clearChartRuntimeCache','src','_rangeSelectMode','_menuManagerService','clientWidth','_disposeChartDomInstance','getInterceptPoints','_createChartRenderInstanceContext','segmented','getFocusDrawings','groupId','top','clip','baseOn','_popupDisposable','HorizontalAxis','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_chartHostProviderService','small','_requestedUrl','_debounceHandle','sheetChartDataAnimationDuration','_renderManagerService','visible','536294XKuHUH','_drawingManagerService','_alignFloatDomPositionWithSceneRender','direction$','sheets-chart-ui.section.lineAndArea','_panelRoute$','waterfallStyle','_registerAdapter','titles','syncHostLayout','getConfig','_sheetsChartService','_pendingUrlImage','sheet.operation.hide-chart-panel','getBoundingClientRect','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','zIndex','_cancelHostWait','_registerIcons','_getCurrentSnapshotImage','next','createRuntimeChartStyle','DRAWING_CHART','icon','Literals','CHART','_generateCopyPasteMutations','type','SVG','beginPath','getCurrentTypeOfUnit$','sheets-chart-ui.common.chartStyle','imageBitmap','_renderChartModel','rightY','_applyActiveChartRuntimeZIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','translate','setHostStyle','Radar','Heatmap','chartObject','pointerEvents','_dataUpdateAnimationDuration','getParent','_getChartRenderObjectContext','_sheetsChartUIService','_createPrintingChartObject','_sidebarDisposable','isRowDirection','renderChartsForPrinting','_generateCutPasteMutations','getSheetId','sheets-chart-ui.section.indicatorLine','config$','_initCopyPaste','absolute','getHostClientRect','cancel','darkMode$','_snapshotStore','isElementEditModeActive','_pendingHost','disposeWithMe','_prepareDataUpdateRender','allSeriesStyle','sheet-chart-style-panel','mountNode','sheet.command.chart.open-focused-panel','scale','_draw','Pie','ancestorTransform','_config','all','dataSource$','getBatchUpdateOp','context$','_resizeChart','getHostSize','subscribe','Style','setDataRange','_panelInitialized','_requestChartCanvasRender','updateFloatDom','_sheetSkeletonService','_updateTransform','clearPanelRoute','setActiveChartModel','missing-float-dom','axis','radar','ImageBitmap','_entries','getId','_renderService','visibilityState','_lastRenderInputMap','_resolvedConfig','waterfall','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_sheetCanvasPopManagerService','COMMAND','crossOrigin','_contextService','onDispose','_renderAfterChartUpdateMutation','clearImage','split','url','set','univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','Sankey','Bubble','_commandService','offsetWidth','from','_rerenderLatest','pluginName','sheets-chart-ui.host.provider','focused$','_getChartRenderSkipReason','transform','transformChange$','sourceSubUnitId','getSheetBySheetId','header','_getPlacement','resize','sheetId','Image','focusDrawing','map','sheets-chart-ui.common.openChartPanel','addClipboardHook','chartModelAdded$','drawingId','blur','onload','sheets-chart-ui.section.treemap','_waiter','getChartSnapshotImage','_initActiveRuntimeLayerListener','_pendingMutationConfigRenders','requestPaint','getObject','_renderModelManager','rangeSelectMode','img','Dom','_shouldSuppressRender','_configService','every','1.0.1','trim','render','Fail\x20to\x20create\x20float\x20dom','format','_restoreHostWrapper','series','activeChartModel','heatmap','Pareto','_resolveChartRenderMode','setObjectType','querySelector','label','arc','isRender','_getDrawable','Reference','nativeEvent','_initActiveChartModelListener','matchMedia','univer-my-1\x20univer-text-xs\x20univer-text-red-500','innerWidth','offsetHeight','setElementEditMode','subUnitId','ChartIcon','sheets-chart-ui.common.customize','_init','_openEditPanelByDoubleClick','Scatter','parent','allSettled','some','_sheetInterceptorService','string','OPERATION','CUT','_lastActiveSheet','_canAnimateDataUpdate','_getOrCreateChartRenderInstance','_markNotReady','none','inactive-sheet','getImage','_syncActiveEditChart','setDataUpdateAnimation','_chartHostProvider','style','getRenderUnitById','_frameStyle','_chartSnapshotStoreService','_isProviderDisposed','relation','sheets-chart-ui.section.gauge','_activeChartId','_bindChartEventHandlers','REMOVE','ParetoLineSeries','_renderDebounceMap','executeChartUpdateConfig','_listenChartUpdateMutations','.png','getBatchAddOp','evented','_bindChartEventHandler','iconName','anchorRect$','hidePanel','_dataUpdateAnimationChartIds','scroll','naturalHeight','_componentManager','getChartModel','width','serialize','mergeMenu','scene','_injector','trendline','delete','registerFeatureMenu','context','ENTER','_chartRenderService','markNotReady','_loadUrlImage','Funnel','getCurrentUnitOfType','section','getActiveSheet','sheets-chart-ui.config','sheet.command.chart.copy-focused-chart','div','sheet.command.chart.delete-focused-chart','get','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isHit','startColumn','_scheduleDataUpdateAnimationEnd','chartRenderMode','labelId','sheets-chart-ui.common.chartAndAxisTitles','_resetChartRuntimeZIndex','keys','clear','_createHost','sheet.command.chart.export-focused-image','Treemap','WordCloud','bind','Subtotal','setOrientation','drawingType','69186AJxkmS','domId','Area','target','_image','activeChartModel$','activeSheet$','children','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','_sidebarService','_url','Trendline','call','commitSnapshot','getRuntimeContext','getValue','isConnected','LineAndArea','sheet.chart.edit.panel','markHostNotReady','sheets-chart-ui.common.setup','ensureMount','left','endY','decorate','bottom','_getFloatDomInfo','_chartUIService','Histogram','Positive','_getOrCreateSheetChartHost','GeneralSeries','onCommandExecuted','barStyle','pie','_registerChartImageRenderObjectFactory','_sheetDrawingHitTestService','_initDrawingDeactivationListener','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_activateDataUpdateAnimation'];_0x3e2b=function(){return _0x21648;};return _0x3e2b();}