!function(e){function t(t){for(var n,i,a=t[0],l=t[1],o=0,p=[];os.i18n.translate("expressionXY.xyVis.help",{defaultMessage:"An X/Y chart"}),getMetricHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.metric",{defaultMessage:"Vertical axis"}),getXAxisHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.x",{defaultMessage:"Horizontal axis"}),getBreakdownHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.breakDown",{defaultMessage:"Break down by"}),getSplitRowHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.splitRow",{defaultMessage:"Split rows by"}),getSplitColumnHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.splitColumn",{defaultMessage:"Split columns by"}),getMarkSizeHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.markSize",{defaultMessage:"Mark size"}),getReferenceLineHelp:()=>s.i18n.translate("expressionXY.xyVis.logDatatable.breakDown",{defaultMessage:"Break down by"}),getLegendHelp:()=>s.i18n.translate("expressionXY.xyVis.legend.help",{defaultMessage:"Configure the chart legend."}),getFittingFunctionHelp:()=>s.i18n.translate("expressionXY.xyVis.fittingFunction.help",{defaultMessage:"Define how missing values are treated"}),getEndValueHelp:()=>s.i18n.translate("expressionXY.xyVis.endValue.help",{defaultMessage:"End value"}),getValueLabelsHelp:()=>s.i18n.translate("expressionXY.xyVis.valueLabels.help",{defaultMessage:"Value labels mode"}),getDataLayerHelp:()=>s.i18n.translate("expressionXY.xyVis.dataLayer.help",{defaultMessage:"Data layer of visual series"}),getReferenceLinesHelp:()=>s.i18n.translate("expressionXY.xyVis.referenceLines.help",{defaultMessage:"Reference line"}),getAnnotationLayerHelp:()=>s.i18n.translate("expressionXY.xyVis.annotationLayer.help",{defaultMessage:"Annotation layer"}),getCurveTypeHelp:()=>s.i18n.translate("expressionXY.xyVis.curveType.help",{defaultMessage:"Define how curve type is rendered for a line chart"}),getFillOpacityHelp:()=>s.i18n.translate("expressionXY.xyVis.fillOpacity.help",{defaultMessage:"Define the area chart fill opacity"}),getHideEndzonesHelp:()=>s.i18n.translate("expressionXY.xyVis.hideEndzones.help",{defaultMessage:"Hide endzone markers for partial data"}),getValuesInLegendHelp:()=>s.i18n.translate("expressionXY.xyVis.valuesInLegend.help",{defaultMessage:"Show values in legend"}),getAriaLabelHelp:()=>s.i18n.translate("expressionXY.xyVis.ariaLabel.help",{defaultMessage:"Specifies the aria label of the xy chart"}),getXAxisConfigHelp:()=>s.i18n.translate("expressionXY.xyVis.xAxisConfig.help",{defaultMessage:"Specifies x-axis config"}),getyAxisConfigsHelp:()=>s.i18n.translate("expressionXY.xyVis.yAxisConfigs.help",{defaultMessage:"Specifies y-axes configs"}),getDetailedTooltipHelp:()=>s.i18n.translate("expressionXY.xyVis.detailedTooltip.help",{defaultMessage:"Show detailed tooltip"}),getShowTooltipHelp:()=>s.i18n.translate("expressionXY.xyVis.showTooltip.help",{defaultMessage:"Show tooltip"}),getOrderBucketsBySum:()=>s.i18n.translate("expressionXY.xyVis.orderBucketsBySum.help",{defaultMessage:"Order buckets by sum"}),getAddTimeMakerHelp:()=>s.i18n.translate("expressionXY.xyVis.addTimeMaker.help",{defaultMessage:"Show time marker"}),getMarkSizeRatioHelp:()=>s.i18n.translate("expressionXY.xyVis.markSizeRatio.help",{defaultMessage:"Specifies the ratio of the dots at the line and area charts"}),getMinTimeBarIntervalHelp:()=>s.i18n.translate("expressionXY.xyVis.xAxisInterval.help",{defaultMessage:"Specifies the min interval for time bar chart"}),getSplitColumnAccessorHelp:()=>s.i18n.translate("expressionXY.xyVis.splitColumnAccessor.help",{defaultMessage:"Specifies split column of the xy chart"}),getSplitRowAccessorHelp:()=>s.i18n.translate("expressionXY.xyVis.splitRowAccessor.help",{defaultMessage:"Specifies split row of the xy chart"}),getLayersHelp:()=>s.i18n.translate("expressionXY.layeredXyVis.layers.help",{defaultMessage:"Layers of visual series"}),getDataLayerFnHelp:()=>s.i18n.translate("expressionXY.dataLayer.help",{defaultMessage:"Configure a layer in the xy chart"}),getSimpleView:()=>s.i18n.translate("expressionXY.dataLayer.simpleView.help",{defaultMessage:"Show / hide details"}),getXAccessorHelp:()=>s.i18n.translate("expressionXY.dataLayer.xAccessor.help",{defaultMessage:"X-axis"}),getSeriesTypeHelp:()=>s.i18n.translate("expressionXY.dataLayer.seriesType.help",{defaultMessage:"The type of chart to display."}),getXScaleTypeHelp:()=>s.i18n.translate("expressionXY.dataLayer.xScaleType.help",{defaultMessage:"The scale type of the x axis"}),getIsHistogramHelp:()=>s.i18n.translate("expressionXY.dataLayer.isHistogram.help",{defaultMessage:"Whether to layout the chart as a histogram"}),getIsStackedHelp:()=>s.i18n.translate("expressionXY.dataLayer.isStacked.help",{defaultMessage:"Layout of the chart in stacked mode"}),getIsPercentageHelp:()=>s.i18n.translate("expressionXY.dataLayer.isPercentage.help",{defaultMessage:"Whether to layout the chart has percentage mode"}),getIsHorizontalHelp:()=>s.i18n.translate("expressionXY.dataLayer.isHorizontal.help",{defaultMessage:"Layout of the chart is horizontal"}),getSplitAccessorHelp:()=>s.i18n.translate("expressionXY.dataLayer.splitAccessor.help",{defaultMessage:"The column to split by"}),getAccessorsHelp:()=>s.i18n.translate("expressionXY.dataLayer.accessors.help",{defaultMessage:"The columns to display on the y axis."}),getMarkSizeAccessorHelp:()=>s.i18n.translate("expressionXY.dataLayer.markSizeAccessor.help",{defaultMessage:"Mark size accessor"}),getLineWidthHelp:()=>s.i18n.translate("expressionXY.dataLayer.lineWidth.help",{defaultMessage:"Line width"}),getShowPointsHelp:()=>s.i18n.translate("expressionXY.dataLayer.showPoints.help",{defaultMessage:"Show points"}),getPointsRadiusHelp:()=>s.i18n.translate("expressionXY.dataLayer.pointsRadius.help",{defaultMessage:"Points radius"}),getShowLinesHelp:()=>s.i18n.translate("expressionXY.dataLayer.showLines.help",{defaultMessage:"Show lines between points"}),getDecorationsHelp:()=>s.i18n.translate("expressionXY.dataLayer.decorations.help",{defaultMessage:"Additional decoration for data"}),getColumnToLabelHelp:()=>s.i18n.translate("expressionXY.layer.columnToLabel.help",{defaultMessage:"JSON key-value pairs of column ID to label"}),getPaletteHelp:()=>s.i18n.translate("expressionXY.dataLayer.palette.help",{defaultMessage:"Palette"}),getTableHelp:()=>s.i18n.translate("expressionXY.layers.table.help",{defaultMessage:"Table"}),getLayerIdHelp:()=>s.i18n.translate("expressionXY.layers.layerId.help",{defaultMessage:"Layer ID"}),getRLAccessorsHelp:()=>s.i18n.translate("expressionXY.referenceLineLayer.accessors.help",{defaultMessage:"The columns to display on the y axis."}),getRLDecorationConfigHelp:()=>s.i18n.translate("expressionXY.referenceLineLayer.decorationConfig.help",{defaultMessage:"Additional decoration for reference line"}),getRLHelp:()=>s.i18n.translate("expressionXY.referenceLineLayer.help",{defaultMessage:"Configure a reference line in the xy chart"}),getForAccessorHelp:()=>s.i18n.translate("expressionXY.decorationConfig.forAccessor.help",{defaultMessage:"The accessor this configuration is for"}),getColorHelp:()=>s.i18n.translate("expressionXY.decorationConfig.color.help",{defaultMessage:"The color of the series"}),getAxisIdHelp:()=>s.i18n.translate("expressionXY.decorationConfig.axisId.help",{defaultMessage:"Id of axis"}),getAnnotationLayerFnHelp:()=>s.i18n.translate("expressionXY.annotationLayer.help",{defaultMessage:"Configure an annotation layer in the xy chart"}),getAnnotationLayerSimpleViewHelp:()=>s.i18n.translate("expressionXY.annotationLayer.simpleView.help",{defaultMessage:"Show / hide details"}),getAnnotationLayerAnnotationsHelp:()=>s.i18n.translate("expressionXY.annotationLayer.annotations.help",{defaultMessage:"Annotations"}),getXAxisConfigFnHelp:()=>s.i18n.translate("expressionXY.xAxisConfigFn.help",{defaultMessage:"Configure the xy chart's x-axis config"}),getYAxisConfigFnHelp:()=>s.i18n.translate("expressionXY.yAxisConfigFn.help",{defaultMessage:"Configure the xy chart's y-axis config"}),getAxisModeHelp:()=>s.i18n.translate("expressionXY.axisConfig.mode.help",{defaultMessage:"Scale mode. Can be normal, percentage, wiggle or silhouette"}),getAxisBoundsMarginHelp:()=>s.i18n.translate("expressionXY.axisConfig.boundsMargin.help",{defaultMessage:"Margin of bounds"}),getAxisExtentHelp:()=>s.i18n.translate("expressionXY.axisConfig.extent.help",{defaultMessage:"Axis extents"}),getAxisScaleTypeHelp:()=>s.i18n.translate("expressionXY.axisConfig.scaleType.help",{defaultMessage:"The scale type of the axis"}),getAxisTitleHelp:()=>s.i18n.translate("expressionXY.axisConfig.title.help",{defaultMessage:"Title of axis"}),getAxisPositionHelp:()=>s.i18n.translate("expressionXY.axisConfig.position.help",{defaultMessage:"Position of axis"}),getAxisHideHelp:()=>s.i18n.translate("expressionXY.axisConfig.hide.help",{defaultMessage:"Hide the axis"}),getAxisLabelColorHelp:()=>s.i18n.translate("expressionXY.axisConfig.labelColor.help",{defaultMessage:"Color of the axis labels"}),getAxisShowOverlappingLabelsHelp:()=>s.i18n.translate("expressionXY.axisConfig.showOverlappingLabels.help",{defaultMessage:"Show overlapping labels"}),getAxisShowDuplicatesHelp:()=>s.i18n.translate("expressionXY.axisConfig.showDuplicates.help",{defaultMessage:"Show duplicated ticks"}),getAxisShowGridLinesHelp:()=>s.i18n.translate("expressionXY.axisConfig.showGridLines.help",{defaultMessage:"Specifies whether or not the gridlines of the axis are visible"}),getAxisLabelsOrientationHelp:()=>s.i18n.translate("expressionXY.axisConfig.labelsOrientation.help",{defaultMessage:"Specifies the labels orientation of the axis"}),getAxisShowLabelsHelp:()=>s.i18n.translate("expressionXY.axisConfig.showLabels.help",{defaultMessage:"Show labels"}),getAxisShowTitleHelp:()=>s.i18n.translate("expressionXY.axisConfig.showTitle.help",{defaultMessage:"Show title of the axis"}),getAxisTruncateHelp:()=>s.i18n.translate("expressionXY.axisConfig.truncate.help",{defaultMessage:"The number of symbols before truncating"}),getReferenceLineNameHelp:()=>s.i18n.translate("expressionXY.referenceLine.name.help",{defaultMessage:"Reference line name"}),getReferenceLineValueHelp:()=>s.i18n.translate("expressionXY.referenceLine.Value.help",{defaultMessage:"Reference line value"}),getTimeLabel:()=>s.i18n.translate("expressionXY.annotation.time",{defaultMessage:"Time"}),getLabelLabel:()=>s.i18n.translate("expressionXY.annotation.label",{defaultMessage:"Label"})}},function(e,t,n){"use strict";n.d(t,"z",(function(){return s})),n.d(t,"o",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"t",(function(){return l})),n.d(t,"j",(function(){return o})),n.d(t,"B",(function(){return r})),n.d(t,"D",(function(){return p})),n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"A",(function(){return g})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return y})),n.d(t,"s",(function(){return x})),n.d(t,"u",(function(){return b})),n.d(t,"q",(function(){return m})),n.d(t,"m",(function(){return A})),n.d(t,"k",(function(){return v})),n.d(t,"d",(function(){return L})),n.d(t,"r",(function(){return _})),n.d(t,"l",(function(){return H})),n.d(t,"n",(function(){return S})),n.d(t,"v",(function(){return M})),n.d(t,"C",(function(){return T})),n.d(t,"x",(function(){return C})),n.d(t,"y",(function(){return X})),n.d(t,"w",(function(){return w})),n.d(t,"c",(function(){return Y})),n.d(t,"e",(function(){return O}));const s="xyVis",i="layeredXyVis",a="dataDecorationConfig",l="referenceLineDecorationConfig",o="extendedReferenceLineDecorationConfig",r="xAxisConfig",p="yAxisConfig",u="dataLayer",c="extendedDataLayer",d="legendConfig",g="xyVis",h="annotationLayer",f="extendedAnnotationLayer",y="axisExtentConfig",x="referenceLine",b="referenceLineLayer",m={DATA:"data",REFERENCELINE:"referenceLine",ANNOTATIONS:"annotations"},A={NONE:"None",ZERO:"Zero",LINEAR:"Linear",CARRY:"Carry",LOOKAHEAD:"Lookahead",AVERAGE:"Average",NEAREST:"Nearest"},v={NONE:"None",ZERO:"Zero",NEAREST:"Nearest"},L={FULL:"full",CUSTOM:"custom",DATA_BOUNDS:"dataBounds"},_={SOLID:"solid",DASHED:"dashed",DOTTED:"dotted",DOT_DASHED:"dot-dashed"},H={NONE:"none",ABOVE:"above",BELOW:"below"},S={AUTO:"auto",LEFT:"left",RIGHT:"right",ABOVE:"above",BELOW:"below"},M={BAR:"bar",LINE:"line",AREA:"area"},T={TIME:"time",LINEAR:"linear",LOG:"log",SQRT:"sqrt"},C={TIME:"time",LINEAR:"linear",ORDINAL:"ordinal"},X={LINEAR:"LINEAR",CURVE_MONOTONE_X:"CURVE_MONOTONE_X",CURVE_STEP_AFTER:"CURVE_STEP_AFTER"},w={HIDE:"hide",SHOW:"show"},Y={EMPTY:"empty",ASTERISK:"asterisk",ALERT:"alert",BELL:"bell",BOLT:"bolt",BUG:"bug",CIRCLE:"circle",EDITOR_COMMENT:"editorComment",FLAG:"flag",HEART:"heart",MAP_MARKER:"mapMarker",PIN_FILLED:"pinFilled",STAR_EMPTY:"starEmpty",STAR_FILLED:"starFilled",TAG:"tag",TRIANGLE:"triangle"},O={NORMAL:"normal",PERCENTAGE:"percentage",WIGGLE:"wiggle",SILHOUETTE:"silhouette"}},function(e,t){e.exports=__kbnSharedDeps__.ElasticCharts},function(e,t){e.exports=__kbnSharedDeps__.EmotionReact},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/visualizations/common/constants");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/visualizations/common/utils");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));const s=e=>{if(e){var t;const n=e=>e.type?e:e.child?n(e.child):void 0;return null===(t=n(e))||void 0===t?void 0:t.type}},i=e=>{if(e){var t;const n=e=>e.child?n(e.child):e;return null===(t=n(e))||void 0===t?void 0:t.type}};function a(e,t){return e&&e[t]?Object.fromEntries(Object.entries(e[t]).map((([e,t])=>"ignore"===t?[e,void 0]:[e,t]))):{}}},function(e,t){e.exports=__kbnSharedDeps__.ReactDom},function(e,t,n){e.exports=n(18)(1466)},function(e,t){e.exports=__kbnSharedDeps__.Moment},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/charts/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.KbnAnalytics},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.React},function(e,t,n){n(17),__kbnBundles__.define("plugin/expressionXY/public",n,19)},function(e,t,n){n.p=window.__kbnPublicPath__.expressionXY},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return j})),n.d(t,"LayerTypes",(function(){return l.q})),n.d(t,"XYCurveTypes",(function(){return l.y}));var s=n(10),i=n.n(s),a=n(11),l=n(2),o=n(1);const r={legend:{types:[l.p],help:o.a.getLegendHelp(),default:`{${l.p}}`},fittingFunction:{types:["string"],options:[...Object.values(l.m)],help:o.a.getFittingFunctionHelp(),strict:!0},endValue:{types:["string"],options:[...Object.values(l.k)],help:o.a.getEndValueHelp(),strict:!0},emphasizeFitting:{types:["boolean"],default:!1,help:""},valueLabels:{types:["string"],options:[...Object.values(l.w)],help:o.a.getValueLabelsHelp(),strict:!0,default:l.w.HIDE},fillOpacity:{types:["number"],help:o.a.getFillOpacityHelp()},hideEndzones:{types:["boolean"],default:!1,help:o.a.getHideEndzonesHelp()},valuesInLegend:{types:["boolean"],default:!1,help:o.a.getValuesInLegendHelp()},ariaLabel:{types:["string"],help:o.a.getAriaLabelHelp()},xAxisConfig:{types:[l.B],help:o.a.getXAxisConfigHelp()},yAxisConfigs:{types:[l.D],help:o.a.getyAxisConfigsHelp(),multi:!0},detailedTooltip:{types:["boolean"],help:o.a.getDetailedTooltipHelp()},showTooltip:{types:["boolean"],default:!0,help:o.a.getShowTooltipHelp()},orderBucketsBySum:{types:["boolean"],default:!1,help:o.a.getOrderBucketsBySum()},addTimeMarker:{types:["boolean"],default:!1,help:o.a.getAddTimeMakerHelp()},markSizeRatio:{types:["number"],help:o.a.getMarkSizeRatioHelp()},minTimeBarInterval:{types:["string"],help:o.a.getMinTimeBarIntervalHelp()}},p={simpleView:{types:["boolean"],default:!1,help:o.a.getSimpleView()},seriesType:{aliases:["_"],types:["string"],options:[...Object.values(l.v)],help:o.a.getSeriesTypeHelp(),required:!0,strict:!0},xScaleType:{options:[...Object.values(l.x)],help:o.a.getXScaleTypeHelp(),strict:!0},isHistogram:{types:["boolean"],default:!1,help:o.a.getIsHistogramHelp()},isPercentage:{types:["boolean"],default:!1,help:o.a.getIsPercentageHelp()},isStacked:{types:["boolean"],default:!1,help:o.a.getIsStackedHelp()},isHorizontal:{types:["boolean"],default:!1,help:o.a.getIsHorizontalHelp()},curveType:{types:["string"],options:[...Object.values(l.y)],help:o.a.getCurveTypeHelp(),strict:!0},lineWidth:{types:["number"],help:o.a.getLineWidthHelp()},showPoints:{types:["boolean"],help:o.a.getShowPointsHelp()},pointsRadius:{types:["number"],help:o.a.getPointsRadiusHelp()},showLines:{types:["boolean"],help:o.a.getShowLinesHelp()},decorations:{types:[l.f],help:o.a.getDecorationsHelp(),multi:!0},columnToLabel:{types:["string"],help:o.a.getColumnToLabelHelp()},palette:{types:["palette","system_palette"],help:o.a.getPaletteHelp(),default:"{palette}"}},u={name:l.z,type:"render",inputTypes:["datatable"],help:o.a.getXYHelp(),args:{...r,...p,xAccessor:{types:["string","vis_dimension"],help:o.a.getXAccessorHelp()},splitAccessors:{types:["string","vis_dimension"],help:o.a.getSplitAccessorHelp(),multi:!0},accessors:{types:["string","vis_dimension"],help:o.a.getAccessorsHelp(),multi:!0},referenceLines:{types:[l.s],help:o.a.getReferenceLinesHelp(),multi:!0},splitColumnAccessor:{types:["vis_dimension","string"],help:o.a.getSplitColumnAccessorHelp()},splitRowAccessor:{types:["vis_dimension","string"],help:o.a.getSplitRowAccessorHelp()},markSizeAccessor:{types:["vis_dimension","string"],help:o.a.getMarkSizeAccessorHelp()}},async fn(e,t,s){const{xyVisFn:i}=await n.e(3).then(n.bind(null,76));return await i(e,t,s)}};var c=n(0);const d={name:l.o,type:"render",inputTypes:["datatable"],help:o.a.getXYHelp(),args:{...r,layers:{types:[l.i,l.u,l.s],help:c.i18n.translate("expressionXY.layeredXyVis.layers.help",{defaultMessage:"Layers of visual series"}),multi:!0},annotations:{types:["event_annotations_result"],help:c.i18n.translate("expressionXY.layeredXyVis.annotations.help",{defaultMessage:"Annotations"})},splitColumnAccessor:{types:["vis_dimension","string"],help:o.a.getSplitColumnAccessorHelp()},splitRowAccessor:{types:["vis_dimension","string"],help:o.a.getSplitRowAccessorHelp()},singleTable:{types:["boolean"],help:c.i18n.translate("expressionXY.layeredXyVis.singleTable.help",{defaultMessage:"All layers use the one datatable"}),default:!1}},async fn(e,t,s){const{layeredXyVisFn:i}=await n.e(2).then(n.bind(null,77));return await i(e,t,s)}};var g=n(3),h=n(5);const f={name:l.p,aliases:[],type:l.p,help:c.i18n.translate("expressionXY.legendConfig.help",{defaultMessage:"Configure the xy chart's legend"}),inputTypes:["null"],args:{isVisible:{types:["boolean"],help:c.i18n.translate("expressionXY.legendConfig.isVisible.help",{defaultMessage:"Specifies whether or not the legend is visible."}),default:!0},position:{types:["string"],options:[g.Position.Top,g.Position.Right,g.Position.Bottom,g.Position.Left],help:c.i18n.translate("expressionXY.legendConfig.position.help",{defaultMessage:"Specifies the legend position."}),strict:!0},showSingleSeries:{types:["boolean"],help:c.i18n.translate("expressionXY.legendConfig.showSingleSeries.help",{defaultMessage:"Specifies whether a legend with just a single entry should be shown"})},isInside:{types:["boolean"],help:c.i18n.translate("expressionXY.legendConfig.isInside.help",{defaultMessage:"Specifies whether a legend is inside the chart"})},horizontalAlignment:{types:["string"],options:[g.HorizontalAlignment.Right,g.HorizontalAlignment.Left],help:c.i18n.translate("expressionXY.legendConfig.horizontalAlignment.help",{defaultMessage:"Specifies the horizontal alignment of the legend when it is displayed inside chart."}),strict:!0},verticalAlignment:{types:["string"],options:[g.VerticalAlignment.Top,g.VerticalAlignment.Bottom],help:c.i18n.translate("expressionXY.legendConfig.verticalAlignment.help",{defaultMessage:"Specifies the vertical alignment of the legend when it is displayed inside chart."}),strict:!0},floatingColumns:{types:["number"],help:c.i18n.translate("expressionXY.legendConfig.floatingColumns.help",{defaultMessage:"Specifies the number of columns when legend is displayed inside chart."})},maxLines:{types:["number"],help:c.i18n.translate("expressionXY.legendConfig.maxLines.help",{defaultMessage:"Specifies the number of lines per legend item."})},shouldTruncate:{types:["boolean"],default:!0,help:c.i18n.translate("expressionXY.legendConfig.shouldTruncate.help",{defaultMessage:"Specifies whether the legend items will be truncated or not"})},legendSize:{types:["string"],help:c.i18n.translate("expressionXY.legendConfig.legendSize.help",{defaultMessage:"Specifies the legend size."}),options:[h.LegendSize.AUTO,h.LegendSize.SMALL,h.LegendSize.MEDIUM,h.LegendSize.LARGE,h.LegendSize.EXTRA_LARGE],strict:!0}},async fn(e,t,s){const{legendConfigFn:i}=await n.e(5).then(n.bind(null,78));return await i(e,t,s)}};function y(){return{name:l.a,aliases:[],type:l.a,inputTypes:["datatable"],help:o.a.getAnnotationLayerFnHelp(),args:{layerId:{types:["string"],help:o.a.getLayerIdHelp()},simpleView:{types:["boolean"],default:!1,help:o.a.getAnnotationLayerSimpleViewHelp()},annotations:{types:["manual_point_event_annotation","manual_range_event_annotation","query_point_event_annotation"],help:o.a.getAnnotationLayerAnnotationsHelp(),multi:!0}},fn:(e,t)=>{var n;return{type:l.a,...t,annotations:null!==(n=t.annotations)&&void 0!==n?n:[],layerType:l.q.ANNOTATIONS}}}}function x(){return{name:l.h,aliases:[],type:l.h,inputTypes:["null"],help:o.a.getAnnotationLayerFnHelp(),args:{simpleView:{types:["boolean"],default:!1,help:o.a.getAnnotationLayerSimpleViewHelp()},annotations:{types:["manual_point_event_annotation","manual_range_event_annotation","query_point_event_annotation"],help:o.a.getAnnotationLayerAnnotationsHelp(),multi:!0},layerId:{types:["string"],help:o.a.getLayerIdHelp()}},fn:(e,t)=>{var n;return{type:l.h,...t,annotations:null!==(n=t.annotations)&&void 0!==n?n:[],layerType:l.q.ANNOTATIONS}}}}const b={forAccessor:{types:["string"],help:o.a.getForAccessorHelp()},axisId:{types:["string"],help:o.a.getAxisIdHelp()},color:{types:["string"],help:o.a.getColorHelp()}},m={name:l.f,aliases:[],type:l.f,help:c.i18n.translate("expressionXY.dataDecorationConfig.help",{defaultMessage:"Configure the decoration of data"}),inputTypes:["null"],args:{...b},fn:(e,t)=>({type:l.f,...t})},A={title:{types:["string"],help:o.a.getAxisTitleHelp()},id:{types:["string"],help:o.a.getAxisIdHelp()},hide:{types:["boolean"],help:o.a.getAxisHideHelp()},labelColor:{types:["string"],help:o.a.getAxisLabelColorHelp()},showOverlappingLabels:{types:["boolean"],help:o.a.getAxisShowOverlappingLabelsHelp()},showDuplicates:{types:["boolean"],help:o.a.getAxisShowDuplicatesHelp()},showGridLines:{types:["boolean"],help:o.a.getAxisShowGridLinesHelp(),default:!1},labelsOrientation:{types:["number"],options:[0,-90,-45],help:o.a.getAxisLabelsOrientationHelp()},showLabels:{types:["boolean"],help:o.a.getAxisShowLabelsHelp(),default:!0},showTitle:{types:["boolean"],help:o.a.getAxisShowTitleHelp(),default:!0},truncate:{types:["number"],help:o.a.getAxisTruncateHelp()},extent:{types:[l.b],help:o.a.getAxisExtentHelp(),default:`{${l.b}}`}},v={name:l.D,aliases:[],type:l.D,help:o.a.getYAxisConfigFnHelp(),inputTypes:["null"],args:{...A,mode:{types:["string"],options:[...Object.values(l.e)],help:o.a.getAxisModeHelp()},boundsMargin:{types:["number"],help:o.a.getAxisBoundsMarginHelp()},scaleType:{options:[...Object.values(l.C)],help:o.a.getAxisScaleTypeHelp(),default:l.C.LINEAR},position:{types:["string"],options:[g.Position.Right,g.Position.Left],help:o.a.getAxisPositionHelp(),strict:!0}},fn(e,t){var n;return{type:l.D,...t,position:null!==(n=t.position)&&void 0!==n?n:g.Position.Left}}},L={name:l.B,aliases:[],type:l.B,help:o.a.getXAxisConfigFnHelp(),inputTypes:["null"],args:{...A,position:{types:["string"],options:[g.Position.Top,g.Position.Bottom],help:o.a.getAxisPositionHelp(),strict:!0}},fn(e,t){var n;return{type:l.B,...t,position:null!==(n=t.position)&&void 0!==n?n:g.Position.Bottom}}},_={name:l.t,aliases:[],type:l.t,help:o.a.getDecorationsHelp(),inputTypes:["null"],args:{...b,position:{types:["string"],options:[g.Position.Right,g.Position.Left,g.Position.Bottom],help:c.i18n.translate("expressionXY.referenceLine.position.help",{defaultMessage:"Position of axis (first axis of that position) to which the reference line belongs."}),default:g.Position.Left,strict:!0},lineStyle:{types:["string"],options:[...Object.values(l.r)],help:c.i18n.translate("expressionXY.decorationConfig.lineStyle.help",{defaultMessage:"The style of the reference line"}),strict:!0},lineWidth:{types:["number"],help:c.i18n.translate("expressionXY.decorationConfig.lineWidth.help",{defaultMessage:"The width of the reference line"})},icon:{types:["string"],help:c.i18n.translate("expressionXY.decorationConfig.icon.help",{defaultMessage:"An optional icon used for reference lines"}),options:[...Object.values(l.c)],strict:!0},iconPosition:{types:["string"],options:[...Object.values(l.n)],help:c.i18n.translate("expressionXY.decorationConfig.iconPosition.help",{defaultMessage:"The placement of the icon for the reference line"}),strict:!0},textVisibility:{types:["boolean"],help:c.i18n.translate("expressionXY.decorationConfig.textVisibility.help",{defaultMessage:"Visibility of the label on the reference line"})},fill:{types:["string"],options:[...Object.values(l.l)],help:c.i18n.translate("expressionXY.decorationConfig.fill.help",{defaultMessage:"Fill"}),strict:!0}},fn:(e,t)=>({type:l.t,...t})},H={name:l.i,aliases:[],type:l.i,help:o.a.getDataLayerFnHelp(),inputTypes:["datatable"],args:{...p,xAccessor:{types:["vis_dimension","string"],help:o.a.getXAccessorHelp()},splitAccessors:{types:["vis_dimension","string"],help:o.a.getSplitAccessorHelp(),multi:!0},accessors:{types:["vis_dimension","string"],help:o.a.getAccessorsHelp(),multi:!0},markSizeAccessor:{types:["vis_dimension","string"],help:o.a.getMarkSizeAccessorHelp()},layerId:{types:["string"],help:o.a.getLayerIdHelp()}},async fn(e,t,s){const{extendedDataLayerFn:i}=await n.e(4).then(n.bind(null,79));return await i(e,t,s)}},S={name:l.b,aliases:[],type:l.b,help:c.i18n.translate("expressionXY.axisExtentConfig.help",{defaultMessage:"Configure the xy chart's axis extents"}),inputTypes:["null"],args:{mode:{types:["string"],help:c.i18n.translate("expressionXY.axisExtentConfig.extentMode.help",{defaultMessage:"The extent mode"}),options:[...Object.values(l.d)],strict:!0,default:l.d.FULL},lowerBound:{types:["number"],help:c.i18n.translate("expressionXY.axisExtentConfig.lowerBound.help",{defaultMessage:"Lower bound"})},upperBound:{types:["number"],help:c.i18n.translate("expressionXY.axisExtentConfig.upperBound.help",{defaultMessage:"Upper bound"})},enforce:{types:["boolean"],help:c.i18n.translate("expressionXY.axisExtentConfig.enforce.help",{defaultMessage:"Enforce extent params."})},niceValues:{types:["boolean"],help:c.i18n.translate("expressionXY.axisExtentConfig.niceValues.help",{defaultMessage:"Enable axis extents value rounding"})}},fn(e,t){if(t.mode===l.d.CUSTOM&&void 0!==t.lowerBound&&void 0!==t.upperBound&&t.lowerBound>=t.upperBound)throw new Error(c.i18n.translate("expressionXY.reusable.function.axisExtentConfig.errors.emptyUpperBound",{defaultMessage:"Upper bound should be greater than lower bound, if custom mode is enabled."}));return{type:l.b,...t}}},M={name:l.s,aliases:[],type:l.s,help:o.a.getRLHelp(),inputTypes:["datatable","null"],args:{name:{types:["string"],help:o.a.getReferenceLineNameHelp()},value:{types:["number"],help:o.a.getReferenceLineValueHelp(),required:!0},position:{types:["string"],options:[g.Position.Right,g.Position.Left],help:c.i18n.translate("expressionXY.referenceLine.position.help",{defaultMessage:"Position of axis (first axis of that position) to which the reference line belongs."}),default:g.Position.Left,strict:!0},axisId:{types:["string"],help:c.i18n.translate("expressionXY.referenceLine.axisId.help",{defaultMessage:'Id of axis to which the reference line belongs. It has higher priority than "position"'})},color:{types:["string"],help:o.a.getColorHelp()},lineStyle:{types:["string"],options:[...Object.values(l.r)],help:c.i18n.translate("expressionXY.decorationConfig.lineStyle.help",{defaultMessage:"The style of the reference line"}),default:l.r.SOLID,strict:!0},lineWidth:{types:["number"],help:c.i18n.translate("expressionXY.decorationConfig.lineWidth.help",{defaultMessage:"The width of the reference line"}),default:1},icon:{types:["string"],help:c.i18n.translate("expressionXY.decorationConfig.icon.help",{defaultMessage:"An optional icon used for reference lines"}),options:[...Object.values(l.c)],strict:!0},iconPosition:{types:["string"],options:[...Object.values(l.n)],help:c.i18n.translate("expressionXY.decorationConfig.iconPosition.help",{defaultMessage:"The placement of the icon for the reference line"}),default:l.n.AUTO,strict:!0},textVisibility:{types:["boolean"],help:c.i18n.translate("expressionXY.decorationConfig.textVisibility.help",{defaultMessage:"Visibility of the label on the reference line"})},fill:{types:["string"],options:[...Object.values(l.l)],help:c.i18n.translate("expressionXY.decorationConfig.fill.help",{defaultMessage:"Fill"}),default:l.l.NONE,strict:!0},forAccessor:{types:["string"],help:""}},fn(e,t){var n,s;const i=void 0!==t.name&&void 0===t.textVisibility||void 0!==t.name&&t.textVisibility,a=t.forAccessor&&e?null===(n=e.columns.find((({id:e})=>e===t.forAccessor)))||void 0===n?void 0:n.meta:void 0;return{type:l.s,layerType:l.q.REFERENCELINE,lineLength:null!==(s=null==e?void 0:e.rows.length)&&void 0!==s?s:0,decorations:[{...t,textVisibility:i,type:l.j,valueMeta:a}]}}},T={name:l.u,aliases:[],type:l.u,help:o.a.getRLHelp(),inputTypes:["datatable"],args:{accessors:{types:["string"],help:o.a.getRLAccessorsHelp(),multi:!0},decorations:{types:[l.t],help:o.a.getRLDecorationConfigHelp(),multi:!0},columnToLabel:{types:["string"],help:o.a.getColumnToLabelHelp()},table:{types:["datatable"],help:o.a.getTableHelp()},layerId:{types:["string"],help:o.a.getLayerIdHelp()}},async fn(e,t,s){const{referenceLineLayerFn:i}=await n.e(6).then(n.bind(null,80));return await i(e,t,s)}};var C=n(9),X=n.n(C),w=n(12),Y=n(4),O=(n(15),n(8)),E=n.n(O),R=n(13),D=n(14),V=n(6),P=n(7),k={name:"zxsb69",styles:"position:relative;width:100%;height:100%"};function I(){return{name:"event_annotations_result",aliases:[],type:"event_annotations_result",inputTypes:["null"],help:o.a.getAnnotationLayerFnHelp(),args:{layers:{types:[l.h],multi:!0,help:o.a.getAnnotationLayerFnHelp()},datatable:{types:["datatable"],help:o.a.getAnnotationLayerFnHelp()}},fn:(e,t)=>({...t,type:"event_annotations_result",layers:t.layers||[],datatable:t.datatable||{}})}}function F(e){const t=e.get("dateFormat:tz");return"Browser"===t?i.a.tz.guess():t}class plugin_ExpressionXyPlugin{setup(e,{expressions:t,charts:s}){t.registerFunction(v),t.registerFunction(m),t.registerFunction(_),t.registerFunction(f),t.registerFunction(H),t.registerFunction(S),t.registerFunction(L),t.registerFunction(y),t.registerFunction(x),t.registerFunction(I),t.registerFunction(M),t.registerFunction(T),t.registerFunction(u),t.registerFunction(d),t.registerRenderer((({getStartDeps:e})=>({name:"xyVis",displayName:"XY chart",help:c.i18n.translate("expressionXY.xyVis.renderer.help",{defaultMessage:"X/Y chart renderer"}),validate:()=>{},reuseDomNode:!0,render:async(t,s,i)=>{const a=await e(),[{XYChartReportable:o},{calculateMinInterval:r,getDataLayers:p}]=await Promise.all([n.e(0).then(n.bind(null,43)),n.e(0).then(n.bind(null,31))]);i.onDestroy((()=>E.a.unmountComponentAtNode(t)));const u=await(async(e,t)=>e&&t?await Promise.all(e.map((e=>{var n,s;const i=null!==(n=null===(s=e.splitAccessors)||void 0===s?void 0:s.map((t=>{const n=e.table.columns.find((({id:e})=>e===t));return{columnMeta:null==n?void 0:n.meta}})))&&void 0!==n?n:[];return t(i)}))):[])(p(s.args.layers),i.getCompatibleCellValueActions),c=k;E.a.render(Object(Y.jsx)(D.KibanaThemeProvider,{theme$:a.kibanaTheme.theme$},Object(Y.jsx)(w.I18nProvider,null,Object(Y.jsx)("div",{css:c,"data-test-subj":"xyVisChart"},Object(Y.jsx)(o,X()({},s,{data:a.data,formatFactory:a.formatFactory,chartsActiveCursorService:a.activeCursor,chartsThemeService:a.theme,paletteService:a.paletteService,timeZone:a.timeZone,timeFormat:a.timeFormat,eventAnnotationService:a.eventAnnotationService,useLegacyTimeAxis:a.useLegacyTimeAxis,minInterval:r(a.data.datatableUtilities,s),interactive:i.isInteractive(),onClickValue:e=>{i.event({name:"filter",data:e})},onClickMultiValue:e=>{i.event({name:"multiFilter",data:e})},layerCellValueActions:u,onSelectRange:e=>{i.event({name:"brush",data:e})},renderMode:i.getRenderMode(),syncColors:s.syncColors,syncTooltips:s.syncTooltips,syncCursor:s.syncCursor,uiState:i.uiState,renderComplete:()=>{const e=i.getExecutionContext(),t=Object(P.a)(e),n=Object(P.b)(e);if(a.usageCollection&&t&&n){const e=((e,{layers:t,yAxisConfigs:n},s,i)=>{const a=i.getDataLayers(t);if(a.length){var o,r;const[i]=a,p=i.seriesType===l.v.BAR?i.isHorizontal?"horizontal_bar":"vertical_bar":i.seriesType,u=t.reduce(((e,t)=>(e.mixedXY||t.layerType!==l.q.DATA||t.seriesType===i.seriesType||(e.mixedXY=!0),e[t.layerType]+=1,e)),{mixedXY:!1,[l.q.REFERENCELINE]:0,[l.q.ANNOTATIONS]:0,[l.q.DATA]:0}),c=Object.values((null!=n?n:[]).reduce(((e,t)=>{var n;return t.position&&(e[t.position]=(null!==(n=e[t.position])&&void 0!==n?n:0)+1),e}),{})).find((e=>e>1)),d=(null!==(o=i.splitAccessors)&&void 0!==o?o:[]).map((e=>{var t,n,s,a;return null===(t=Object(V.getColumnByAccessor)(e,i.table.columns))||void 0===t||null===(n=t.meta)||void 0===n||null===(s=n.sourceParams)||void 0===s||null===(a=s.type)||void 0===a?void 0:a.toString()})).filter(Boolean),g=a.map((e=>e.accessors.reduce(((t,n)=>{var s,i,a,l;const o=null===(s=Object(V.getColumnByAccessor)(n,e.table.columns))||void 0===s||null===(i=s.meta)||void 0===i||null===(a=i.sourceParams)||void 0===a||null===(l=a.type)||void 0===l?void 0:l.toString();return o&&["avg_bucket","min_bucket","max_bucket","sum_bucket"].includes(o)&&t.push(o),t}),[]))).flat();return[[p,i.isPercentage?"percentage":void 0,i.isStacked?"stacked":void 0].filter(Boolean).join("_"),u[l.q.REFERENCELINE]?"reference_layer":void 0,u[l.q.ANNOTATIONS]?"annotation_layer":void 0,u[l.q.DATA]>1?"multiple_data_layers":void 0,u.mixedXY?"mixed_xy":void 0,i.markSizeAccessor?"metric_dot_size":void 0,c?"multi_axis_same_side":void 0,d.length>1&&!d.every((e=>"terms"===e))?"multi_split_non_terms":void 0,g.length>1||1===g.length&&null!==(r=i.splitAccessors)&&void 0!==r&&r.length?"aggregate_bucket":void 0,s?`render_${u.mixedXY?"mixed_xy":p}_convertable`:void 0].filter(Boolean).map((t=>`render_${e}_${t}`))}})(n,s.args,Boolean(s.canNavigateToLens),{getDataLayers:p});e&&a.usageCollection.reportUiCounter(t,R.METRIC_TYPE.COUNT,e)}i.done()}}))))),t)}}))({getStartDeps:async()=>{const[t,n]=await e.getStartServices(),{data:s,usageCollection:i,fieldFormats:l,eventAnnotation:o,charts:{activeCursor:r,theme:p,palettes:u}}=n,c=await u.getPalettes(),{theme:d}=t,g=await o.getService(),h=e.uiSettings.get(a.LEGACY_TIME_AXIS);return{data:s,formatFactory:l.deserialize,kibanaTheme:d,theme:p,usageCollection:i,activeCursor:r,paletteService:c,useLegacyTimeAxis:h,eventAnnotationService:g,timeZone:F(e.uiSettings),timeFormat:e.uiSettings.get("dateFormat")}}}))}start(e){}stop(){}}function j(){return new plugin_ExpressionXyPlugin}},function(e,t){e.exports=__kbnSharedDeps__.Lodash},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/charts/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.KbnUiTheme},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/expressions/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/data/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.EmotionCache},function(e,t,n){n.r(t);var s=__kbnBundles__.get("plugin/data/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(s))},function(e,t){e.exports=__kbnSharedDeps__.KbnDatemath},function(e,t){e.exports=__kbnSharedDeps__.KbnEsQuery}]);