/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.monitoring_bundle_jsonpfunction=window.monitoring_bundle_jsonpfunction||[]).push([[0],{144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(145),i=n(146),a=n(147),u=n(148);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(r),f=s(o),c=s(i),d=s(a),p=s(u);function h(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var g={symbols:{"!":{postfix:{symbol:"!",f:function e(t){return t%1||!(+t>=0)?NaN:t>170?1/0:0===t?1:t*e(t-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,t){return Math.pow(e,t)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,t){return e*t},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,t){return e/t},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,t){return e+t},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:h,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,t){return e-t},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:h,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}},b=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,f.default(n)}return c.default(t,e),t}(d.default(Error)),m=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function y(e,t){var n,r=e.pop();return t.push(r.f.apply(r,(n=[]).concat.apply(n,t.splice(-r.argCount)))),r.precedence}function v(e){return e.split("").reverse().join("")}var w=/--[\S]*/g;function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}var S=["Top","Right","Bottom","Left"];function k(e,t){if(!e)return t.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,t),n.reduce((function(e,t){return""+e+x(t)}));var r=e.replace(/([a-z])([A-Z])/g,"$1"+t+"$2");return e===r?""+e+t:r}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o1?(t=t.slice(0,-1),t+=", "+r[i]):1===a.length&&(t+=""+r[i])}else r[i]&&(t+=r[i]+" ");return t.trim()}var _={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"},P=function(e,t,n){var r=""+n[0]+(n[1]||""),o=""+n[0]/2+(n[1]||""),i=""+t[0]+(t[1]||""),a=""+t[0]/2+(t[1]||"");switch(e){case"top":return"0 "+o+" "+i+" "+o;case"topLeft":return r+" "+i+" 0 0";case"left":return a+" "+r+" "+a+" 0";case"bottomLeft":return r+" 0 0 "+i;case"bottom":return i+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+r+" "+i;case"right":return a+" 0 "+a+" "+r;default:return"0 "+r+" "+i+" 0"}};function B(e){return Math.round(255*e)}function H(e,t,n){return B(e)+","+B(t)+","+B(n)}function K(e,t,n,r){if(void 0===r&&(r=H),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),u=0,s=0,l=0;o>=0&&o<1?(u=i,s=a):o>=1&&o<2?(u=a,s=i):o>=2&&o<3?(s=i,l=a):o>=3&&o<4?(s=a,l=i):o>=4&&o<5?(u=a,l=i):o>=5&&o<6&&(u=i,l=a);var f=n-i/2;return r(u+f,s+f,l+f)}var G={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=/^#[a-fA-F0-9]{6}$/,J=/^#[a-fA-F0-9]{8}$/,Z=/^#[a-fA-F0-9]{3}$/,Y=/^#[a-fA-F0-9]{4}$/,ee=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,te=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,ne=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,re=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function oe(e){if("string"!=typeof e)throw new b(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return G[t]?"#"+G[t]:e}(e);if(t.match(X))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(J)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Z))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Y)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=ee.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=te.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=ne.exec(t);if(a){var u="rgb("+K(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=ee.exec(u);if(!s)throw new b(4,t,u);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var l=re.exec(t.substring(0,50));if(l){var f="rgb("+K(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=ee.exec(f);if(!c)throw new b(4,t,f);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])}}throw new b(5)}function ie(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),u=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=i-a,l=u>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r=1?fe(e,t,n):"rgba("+K(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?fe(e.hue,e.saturation,e.lightness):"rgba("+K(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new b(2)}function pe(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ae("#"+ue(e)+ue(t)+ue(n));if("object"==typeof e&&void 0===t&&void 0===n)return ae("#"+ue(e.red)+ue(e.green)+ue(e.blue));throw new b(6)}function he(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=oe(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?pe(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?pe(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new b(7)}var ge=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},be=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},me=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},ye=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function ve(e){if("object"!=typeof e)throw new b(8);if(be(e))return he(e);if(ge(e))return pe(e);if(ye(e))return de(e);if(me(e))return ce(e);throw new b(8)}function we(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):we(e,t,r)}}function xe(e){return we(e,e.length,[])}function Se(e,t){if("transparent"===t)return t;var n=ie(t);return ve(l.default({},n,{hue:n.hue+parseFloat(e)}))}var ke=xe(Se);function je(e,t,n){return Math.max(e,Math.min(t,n))}function Ie(e,t){if("transparent"===t)return t;var n=ie(t);return ve(l.default({},n,{lightness:je(0,1,n.lightness-parseFloat(e))}))}var Ae=xe(Ie);function ze(e,t){if("transparent"===t)return t;var n=ie(t);return ve(l.default({},n,{saturation:je(0,1,n.saturation-parseFloat(e))}))}var Ce=xe(ze);function Fe(e){if("transparent"===e)return 0;var t=oe(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function Oe(e,t){var n=Fe(e),r=Fe(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}function Ee(e,t){if("transparent"===t)return t;var n=ie(t);return ve(l.default({},n,{lightness:je(0,1,n.lightness+parseFloat(e))}))}var Te=xe(Ee);function Le(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=oe(t),o=l.default({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=oe(n),a=l.default({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),u=o.alpha-a.alpha,s=2*parseFloat(e)-1,f=((s*u==-1?s:s+u)/(1+s*u)+1)/2,c=1-f;return he({red:Math.floor(o.red*f+a.red*c),green:Math.floor(o.green*f+a.green*c),blue:Math.floor(o.blue*f+a.blue*c),alpha:o.alpha*(parseFloat(e)/1)+a.alpha*(1-parseFloat(e)/1)})}var $e=xe(Le);function Me(e,t){if("transparent"===t)return t;var n=oe(t),r="number"==typeof n.alpha?n.alpha:1;return he(l.default({},n,{alpha:je(0,1,(100*r+100*parseFloat(e))/100)}))}var Re=xe(Me),Ve="#000",qe="#fff";function De(e,t){if("transparent"===t)return t;var n=ie(t);return ve(l.default({},n,{saturation:je(0,1,n.saturation+parseFloat(e))}))}var Qe=xe(De);function We(e,t){return"transparent"===t?t:ve(l.default({},ie(t),{hue:parseFloat(e)}))}var Ue=xe(We);function Ne(e,t){return"transparent"===t?t:ve(l.default({},ie(t),{lightness:parseFloat(e)}))}var _e=xe(Ne);function Pe(e,t){return"transparent"===t?t:ve(l.default({},ie(t),{saturation:parseFloat(e)}))}var Be=xe(Pe);function He(e,t){return"transparent"===t?t:$e(parseFloat(e),"rgb(0, 0, 0)",t)}var Ke=xe(He);function Ge(e,t){return"transparent"===t?t:$e(parseFloat(e),"rgb(255, 255, 255)",t)}var Xe=xe(Ge);function Je(e,t){if("transparent"===t)return t;var n=oe(t),r="number"==typeof n.alpha?n.alpha:1;return he(l.default({},n,{alpha:je(0,1,+(100*r-100*parseFloat(e)).toFixed(2)/100)}))}var Ze=xe(Je),Ye=["top","right","bottom","left"];function et(e,t){return e(t?":"+t:"")}function tt(e,t,n){if(!t)throw new b(67);if(0===e.length)return et(t,null);for(var r=[],o=0;o8)throw new b(64);return{animation:t.map((function(e){if(r&&!Array.isArray(e)||!r&&Array.isArray(e))throw new b(65);if(Array.isArray(e)&&e.length>8)throw new b(66);return Array.isArray(e)?e.join(" "):e})).join(", ")}},t.backgroundImages=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=0?((o={})["border"+x(e)+"Width"]=n[0],o["border"+x(e)+"Style"]=n[1],o["border"+x(e)+"Color"]=n[2],o):(n.unshift(e),{borderWidth:n[0],borderStyle:n[1],borderColor:n[2]})},t.borderColor=function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(r=a()).done;){var u,s,f=r.value;if(!f.prop||!f.fromSize||!f.toSize)throw new b(50);i[f.prop]=f.fromSize,o["@media (min-width: "+t+")"]=l.default({},o["@media (min-width: "+t+")"],((u={})[f.prop]=$(f.fromSize,f.toSize,t,n),u)),o["@media (min-width: "+n+")"]=l.default({},o["@media (min-width: "+n+")"],((s={})[f.prop]=f.toSize,s))}return l.default({},i,o)}var c,d,p;if(!e.prop||!e.fromSize||!e.toSize)throw new b(51);return(p={})[e.prop]=e.fromSize,p["@media (min-width: "+t+")"]=((c={})[e.prop]=$(e.fromSize,e.toSize,t,n),c),p["@media (min-width: "+n+")"]=((d={})[e.prop]=e.toSize,d),p},t.fontFace=function(e){var t=e.fontFamily,n=e.fontFilePath,r=e.fontStretch,o=e.fontStyle,i=e.fontVariant,a=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.formatHint,f=void 0!==l&&l,c=e.localFonts,d=e.unicodeRange,p=e.fontDisplay,h=e.fontVariationSettings,g=e.fontFeatureSettings;if(!t)throw new b(55);if(!n&&!c)throw new b(52);if(c&&!Array.isArray(c))throw new b(53);if(!Array.isArray(s))throw new b(54);var m={"@font-face":{fontFamily:t,src:W(n,c,s,f),unicodeRange:d,fontStretch:r,fontStyle:o,fontVariant:i,fontWeight:a,fontDisplay:p,fontVariationSettings:h,fontFeatureSettings:g}};return JSON.parse(JSON.stringify(m))},t.getContrast=Oe,t.getLuminance=Fe,t.getValueAndUnit=E,t.grayscale=function(e){return"transparent"===e?e:ve(l.default({},ie(e),{saturation:0}))},t.hiDPI=U,t.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},t.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},t.hsl=ce,t.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?de({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):ce({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new b(45)},t.hsla=de,t.invert=function(e){if("transparent"===e)return e;var t=oe(e);return ve(l.default({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))},t.lighten=Te,t.linearGradient=function(e){var t=e.colorStops,n=e.fallback,r=e.toDirection,o=void 0===r?"":r;if(!t||t.length<2)throw new b(56);return{backgroundColor:n||t[0].replace(/,\s+/g,",").split(" ")[0].replace(/,(?=\S)/g,", "),backgroundImage:N(R||(R=p.default(["linear-gradient(","",")"])),o,t.join(", ").replace(/,(?=\S)/g,", "))}},t.margin=function(){for(var e=arguments.length,t=new Array(e),n=0;n0)break}while(y(o,i));u="postfix"===m.notation,")"!==m.symbol&&(o.push(m),u&&y(o,i))}else if(d){if(o.push(d.prefix||d.func),d.func&&(!(n=a.exec(e))||"("!==n[0]))throw new b(38,n?n.index:e.length,e)}else i.push(+f),u=!0}while(n&&o.length);if(o.length)throw new b(39,n?n.index:e.length,e);if(n)throw new b(40,n?n.index:e.length,e);return i.pop()}(v(n.replace(m,"")),t)+(r?v(r[0]):"")},t.meetsContrastGuidelines=function(e,t){var n=Oe(e,t);return{AA:n>=4.5,AALarge:n>=3,AAA:n>=7,AAALarge:n>=4.5}},t.mix=$e,t.modularScale=function(e,t,n){if(void 0===t&&(t="1em"),void 0===n&&(n=1.333),"number"!=typeof e)throw new b(42);if("string"==typeof n&&!T[n])throw new b(43);var r="string"==typeof t?E(t):[t,""],o=r[0],i=r[1],a="string"==typeof n?T[n]:n;if("string"==typeof o)throw new b(44,t);return""+o*Math.pow(a,e)+(i||"")},t.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},t.opacify=Re,t.padding=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=0&&e?l.default({},j.apply(void 0,[""].concat(n)),{position:e}):j.apply(void 0,["",e].concat(n))},t.radialGradient=function(e){var t=e.colorStops,n=e.extent,r=void 0===n?"":n,o=e.fallback,i=e.position,a=void 0===i?"":i,u=e.shape,s=void 0===u?"":u;if(!t||t.length<2)throw new b(57);return{backgroundColor:o||t[0].split(" ")[0],backgroundImage:N(V||(V=p.default(["radial-gradient(","","","",")"])),a,s,r,t.join(", "))}},t.readableColor=function(e,t,n,r){void 0===t&&(t=Ve),void 0===n&&(n=qe),void 0===r&&(r=!0);var o=Fe(e)>.179,i=o?t:n;return!r||Oe(e,i)>=4.5?i:o?Ve:qe},t.rem=L,t.retinaImage=function(e,t,n,r,o){var i;if(void 0===n&&(n="png"),void 0===o&&(o="_2x"),!e)throw new b(58);var a=n.replace(/^\./,""),u=r?r+"."+a:""+e+o+"."+a;return(i={backgroundImage:"url("+e+"."+a+")"})[U()]=l.default({backgroundImage:"url("+u+")"},t?{backgroundSize:t}:{}),i},t.rgb=pe,t.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return"number"==typeof e.alpha?he({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):pe({red:e.red,green:e.green,blue:e.blue});throw new b(46)},t.rgba=he,t.saturate=Qe,t.setHue=Ue,t.setLightness=_e,t.setSaturation=Be,t.shade=Ke,t.size=function(e,t){return void 0===t&&(t=e),{height:e,width:t}},t.stripUnit=z,t.textInputs=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const{name:t,label:n,setRuleParams:o,errors:a}=e,c=f.exec(e.duration),d=c&&c[1]?parseInt(c[1],10):1,p=c&&c[2]?c[2]:r.MINUTE,[h,g]=i.a.useState(d),[b,m]=i.a.useState(p),y=Object.values(r).map((e=>({value:e,text:l(e)})));return i.a.useEffect((()=>{o(t,`${h}${b}`)}),[b,h]),Object(s.jsx)(u.EuiFormRow,{label:n,error:a,isInvalid:(null==a?void 0:a.length)>0},Object(s.jsx)(u.EuiFlexGroup,null,Object(s.jsx)(u.EuiFlexItem,{grow:2},Object(s.jsx)(u.EuiFieldNumber,{compressed:!0,value:h,onChange:e=>{let t=parseInt(e.target.value,10);isNaN(t)&&(t=0),g(t)}})),Object(s.jsx)(u.EuiFlexItem,{grow:4},Object(s.jsx)(u.EuiSelect,{compressed:!0,value:b,onChange:e=>m(e.target.value),options:y}))))}},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(30);const o=(e,t)=>{try{return e?JSON.stringify(Object(r.toElasticsearchQuery)(Object(r.fromKueryExpression)(e),t)):""}catch(e){return""}}},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n(30),o=n(0),i=n(5),a=n.n(i),u=n(9),s=n.n(u),l=n(7),f=n(22);function c(...e){return(t,n)=>e.reduce(((e,t)=>t(e,n)||e),t)}n(15);var d=n(144),p=n(37),h=n(2);const g=e=>{const{isSelected:t,onClick:n,onMouseEnter:r,suggestion:o}=e;return Object(h.jsx)(b,{isSelected:t,onClick:n,onMouseEnter:r},Object(h.jsx)(y,{suggestionType:o.type},Object(h.jsx)(l.EuiIcon,{type:x(o.type)})),Object(h.jsx)(v,null,o.text),Object(h.jsx)(w,null,o.description))};g.defaultProps={isSelected:!1};const b=f.euiStyled.div` display: flex; flex-direction: row; font-size: ${e=>e.theme.eui.euiFontSizeS}; height: ${e=>e.theme.eui.euiSizeXL}; white-space: nowrap; background-color: ${e=>e.isSelected?e.theme.eui.euiColorLightestShade:"transparent"}; `,m=f.euiStyled.div` align-items: center; cursor: pointer; display: flex; flex-direction: row; height: ${e=>e.theme.eui.euiSizeXL}; padding: ${e=>e.theme.eui.euiSizeXS}; `,y=Object(f.euiStyled)(m)` background-color: ${e=>Object(d.transparentize)(.9,S(e.theme,e.suggestionType))}; color: ${e=>S(e.theme,e.suggestionType)}; flex: 0 0 auto; justify-content: center; width: ${e=>e.theme.eui.euiSizeXL}; `,v=Object(f.euiStyled)(m)` flex: 2 0 0; font-family: ${e=>e.theme.eui.euiCodeFontFamily}; `,w=Object(f.euiStyled)(m)` flex: 3 0 0; p { display: inline; span { font-family: ${e=>e.theme.eui.euiCodeFontFamily}; } } `,x=e=>{switch(e){case p.QuerySuggestionTypes.Field:return"kqlField";case p.QuerySuggestionTypes.Value:return"kqlValue";case p.QuerySuggestionTypes.RecentSearch:return"search";case p.QuerySuggestionTypes.Conjunction:return"kqlSelector";case p.QuerySuggestionTypes.Operator:return"kqlOperand";default:return"empty"}},S=(e,t)=>{switch(t){case p.QuerySuggestionTypes.Field:return null==e?void 0:e.eui.euiColorVis7;case p.QuerySuggestionTypes.Value:return null==e?void 0:e.eui.euiColorVis0;case p.QuerySuggestionTypes.Operator:return null==e?void 0:e.eui.euiColorVis1;case p.QuerySuggestionTypes.Conjunction:return null==e?void 0:e.eui.euiColorVis2;case p.QuerySuggestionTypes.RecentSearch:default:return null==e?void 0:e.eui.euiColorMediumShade}};class autocomplete_field_AutocompleteField extends a.a.Component{constructor(...e){super(...e),s()(this,"state",{areSuggestionsVisible:!1,isFocused:!1,selectedIndex:null}),s()(this,"inputElement",null),s()(this,"handleChangeInputRef",(e=>{this.inputElement=e})),s()(this,"handleChange",(e=>{this.changeValue(e.currentTarget.value)})),s()(this,"handleKeyDown",(e=>{const{suggestions:t}=this.props;switch(e.key){case"ArrowUp":e.preventDefault(),t.length>0&&this.setState(c(A,k));break;case"ArrowDown":e.preventDefault(),t.length>0?this.setState(c(A,j)):this.updateSuggestions();break;case"Enter":e.preventDefault(),null!==this.state.selectedIndex?this.applySelectedSuggestion():this.submit();break;case"Escape":e.preventDefault(),this.setState(z)}})),s()(this,"handleKeyUp",(e=>{switch(e.key){case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.updateSuggestions()}})),s()(this,"handleFocus",(()=>{this.setState(c(A,C))})),s()(this,"handleBlur",(()=>{this.setState(c(z,F))})),s()(this,"selectSuggestionAt",(e=>()=>{this.setState(I(e))})),s()(this,"applySelectedSuggestion",(()=>{null!==this.state.selectedIndex&&this.applySuggestionAt(this.state.selectedIndex)()})),s()(this,"applySuggestionAt",(e=>()=>{const{value:t,suggestions:n}=this.props,r=n[e];if(!r)return;const o=t.substr(0,r.start)+r.text+t.substr(r.end);this.setState(z),this.changeValue(o),this.focusInputElement()})),s()(this,"changeValue",(e=>{const{onChange:t}=this.props;t&&t(e)})),s()(this,"focusInputElement",(()=>{this.inputElement&&this.inputElement.focus()})),s()(this,"showSuggestions",(()=>{this.setState(A)})),s()(this,"submit",(()=>{const{isValid:e,onSubmit:t,value:n}=this.props;e&&t&&t(n),this.setState(z)})),s()(this,"updateSuggestions",(()=>{const e=this.inputElement&&this.inputElement.selectionStart||0;this.props.loadSuggestions(this.props.value,e,200)}))}render(){const{suggestions:e,isLoadingSuggestions:t,isValid:n,placeholder:r,value:o,disabled:i,"aria-label":a}=this.props,{areSuggestionsVisible:u,selectedIndex:s}=this.state;return Object(h.jsx)(l.EuiOutsideClickDetector,{onOutsideClick:this.handleBlur},Object(h.jsx)(O,null,Object(h.jsx)(l.EuiFieldSearch,{fullWidth:!0,disabled:i,inputRef:this.handleChangeInputRef,isLoading:t,isInvalid:!n,onChange:this.handleChange,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onSearch:this.submit,placeholder:r,value:o,"aria-label":a}),u&&!t&&e.length>0?Object(h.jsx)(E,null,e.map(((e,t)=>Object(h.jsx)(g,{key:e.text,suggestion:e,isSelected:t===s,onMouseEnter:this.selectSuggestionAt(t),onClick:this.applySuggestionAt(t)})))):null))}componentDidMount(){this.inputElement&&this.props.autoFocus&&this.inputElement.focus()}componentDidUpdate(e){const t=e.value!==this.props.value,n=e.suggestions!==this.props.suggestions;t&&this.updateSuggestions(),t&&""===this.props.value&&this.submit(),n&&this.state.isFocused&&this.showSuggestions()}}const k=(e,t)=>({...e,selectedIndex:0===t.suggestions.length?null:null!==e.selectedIndex?(e.selectedIndex+t.suggestions.length-1)%t.suggestions.length:Math.max(t.suggestions.length-1,0)}),j=(e,t)=>({...e,selectedIndex:0===t.suggestions.length?null:null!==e.selectedIndex?(e.selectedIndex+1)%t.suggestions.length:0}),I=e=>(t,n)=>({...t,selectedIndex:0===n.suggestions.length?null:e>=0&&e({...e,areSuggestionsVisible:!0}),z=e=>({...e,areSuggestionsVisible:!1,selectedIndex:null}),C=e=>({...e,isFocused:!0}),F=e=>({...e,isFocused:!1}),O=f.euiStyled.div` position: relative; `,E=Object(f.euiStyled)(l.EuiPanel).attrs((()=>({paddingSize:"none",hasShadow:!0})))` position: absolute; width: 100%; margin-top: 2px; overflow-x: hidden; overflow-y: scroll; z-index: ${e=>e.theme.eui.euiZLevel1}; max-height: 322px; `;var T=n(17);class with_kuery_autocompletion_WithKueryAutocompletionComponent extends a.a.Component{constructor(...e){super(...e),s()(this,"state",{currentRequest:null,suggestions:[]}),s()(this,"loadSuggestions",(async(e,t,n,r)=>{var o;const{indexPattern:i}=this.props,a="kuery";if(!(null===(o=this.props.kibana.services.unifiedSearch)||void 0===o?void 0:o.autocomplete.hasQuerySuggestions(a)))return;this.setState({currentRequest:{expression:e,cursorPosition:t},suggestions:[]});const u=await this.props.kibana.services.unifiedSearch.autocomplete.getQuerySuggestions({language:a,query:e,selectionStart:t,selectionEnd:t,indexPatterns:[i],boolFilter:[]})||[],s=r?r(u):u;this.setState((r=>r.currentRequest&&r.currentRequest.expression!==e&&r.currentRequest.cursorPosition!==t?r:{...r,currentRequest:null,suggestions:n?s.slice(0,n):s}))}))}render(){const{currentRequest:e,suggestions:t}=this.state;return this.props.children({isLoadingSuggestions:null!==e,loadSuggestions:this.loadSuggestions,suggestions:t})}}const L=Object(T.withKibana)(with_kuery_autocompletion_WithKueryAutocompletionComponent),$=({derivedIndexPattern:e,onSubmit:t,onChange:n,value:a,placeholder:u,curryLoadSuggestions:s=M})=>{const[l,f]=Object(i.useState)(a||""),[c,d]=Object(i.useState)(!0);Object(i.useEffect)((()=>{a&&f(a)}),[a]);const p=e=>{d(function(e){try{Object(r.fromKueryExpression)(e)}catch(e){return!1}return!0}(e)),f(e),n&&n(e)},g=o.i18n.translate("xpack.monitoring.alerts.kqlSearchFieldPlaceholder",{defaultMessage:"Search for monitoring data"});return Object(h.jsx)(L,{indexPattern:e},(({isLoadingSuggestions:e,loadSuggestions:n,suggestions:r})=>Object(h.jsx)(autocomplete_field_AutocompleteField,{"aria-label":u,isLoadingSuggestions:e,isValid:c,loadSuggestions:s(n),onChange:p,onSubmit:t,placeholder:u||g,suggestions:r,value:l})))},M=e=>(...t)=>e(...t)},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),o=n(1);const i=`${o.x},${o.y},${o.z},${o.w}`,a=(e,t)=>{const n=function(e,t,n){if(!e.ui.ccs.enabled||!n)return t;const r=t.split(",").map((e=>`${n}:${e}`)).join(",");return"*"===n?`${r},${t}`:r}(t||{},i,o.e),[a,u]=Object(r.useState)(!0),[s,l]=Object(r.useState)();return Object(r.useEffect)((()=>{!async function(){const t=await e.create({title:n});l(t),u(!1)}()}),[n,e]),{loading:a,derivedIndexPattern:s}}}}]);