/*! 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.triggersActionsUi_bundle_jsonpfunction=window.triggersActionsUi_bundle_jsonpfunction||[]).push([[6],{112:function(n,e,r){"use strict";function t(n){return n}function i(n){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(e,"__esModule",{value:!0}),e.bindTo_=e.bind_=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.not=e.unsafeCoerce=e.identity=void 0,e.identity=t,e.unsafeCoerce=t,e.not=function(n){return function(e){return!n(e)}},e.constant=function(n){return function(){return n}},e.constTrue=function(){return!0},e.constFalse=function(){return!1},e.constNull=function(){return null},e.constUndefined=function(){},e.constVoid=function(){},e.flip=function(n){return function(e,r){return n(r,e)}},e.flow=function(n,e,r,t,i,a,o,u,c){switch(arguments.length){case 1:return n;case 2:return function(){return e(n.apply(this,arguments))};case 3:return function(){return r(e(n.apply(this,arguments)))};case 4:return function(){return t(r(e(n.apply(this,arguments))))};case 5:return function(){return i(t(r(e(n.apply(this,arguments)))))};case 6:return function(){return a(i(t(r(e(n.apply(this,arguments))))))};case 7:return function(){return o(a(i(t(r(e(n.apply(this,arguments)))))))};case 8:return function(){return u(o(a(i(t(r(e(n.apply(this,arguments))))))))};case 9:return function(){return c(u(o(a(i(t(r(e(n.apply(this,arguments)))))))))}}},e.tuple=function(){for(var n=[],e=0;e!c.includes(e.type))).map((([n,e])=>{const r=u.a[n];return[n,{type:r.type,array:r.normalize.includes("array"),required:!!r.required,...r.scaling_factor?{scaling_factor:r.scaling_factor}:{},...r.ignore_above?{ignore_above:r.ignore_above}:{},...r.multi_fields?{multi_fields:r.multi_fields}:{}}]}))),{[a.o]:{type:"float",array:!1,required:!1},[a.p]:{type:"keyword",array:!1,required:!1},[a.s]:{type:"date",array:!1,required:!1},[a.t]:{type:"keyword",array:!1,required:!1},[a.u]:{type:"keyword",array:!1,required:!1},[a.v]:{type:"keyword",array:!1,required:!1},[a.x]:{type:"keyword",array:!1,required:!1},[a.y]:{type:"keyword",array:!1,required:!1},[a.z]:{type:"keyword",array:!1,required:!1},[a.B]:{type:"keyword",array:!1,required:!1},[a.E]:{type:"keyword",array:!0,required:!1},[a.G]:{type:"keyword",array:!1,required:!1},[a.H]:{type:"keyword",array:!1,required:!1},[a.J]:{type:"keyword",array:!1,required:!1},[a.K]:{type:"keyword",array:!1,required:!1},[a.M]:{type:"date",array:!1,required:!1},[a.N]:{type:"keyword",array:!1,required:!1},[a.P]:{type:"keyword",array:!1,required:!1},[a.Q]:{type:"keyword",array:!1,required:!1},[a.V]:{type:"long",array:!1,required:!1},[a.W]:{type:"date",array:!1,required:!1},[a.X]:{type:"keyword",array:!0,required:!1},[a.Y]:{type:"date",array:!1,required:!1},[a.Z]:{type:"keyword",array:!0,required:!1},[a.ab]:{type:"keyword",array:!1,required:!1},[a.eb]:{type:"keyword",array:!1,required:!1},[a.hb]:{type:"keyword",array:!1,required:!1},[a.jb]:{type:"keyword",array:!1,required:!1}});a.f,a.g,a.c,a.h,r(193),r(57);function y(n,...e){const r=Object.keys(n).filter((n=>e.some((e=>{if(e===n)return!0;const r=n.split("."),t=e.split(".");return t.indexOf("*")===t.length-1&&r.every(((n,e)=>{const r=t.length-1"number"==typeof n),((n,e)=>t.either.chain(d.string.validate(n,e),(r=>{const t=Number(r);return isNaN(t)?d.failure(n,e):d.success(t)}))),(n=>n)),l=new d.Type("BooleanFromString",(n=>"string"==typeof n),((n,e)=>t.either.chain(d.string.validate(n,e),(r=>{switch(r.toLowerCase().trim()){case"1":case"true":case"yes":return d.success(!0);case"0":case"false":case"no":return d.success(!1);default:return d.failure(n,e)}}))),(n=>n)),h={keyword:d.string,version:d.string,text:d.string,date:d.string,boolean:d.union([d.boolean,l]),byte:d.union([d.number,p]),long:d.union([d.number,p]),integer:d.union([d.number,p]),short:d.union([d.number,p]),double:d.union([d.number,p]),float:d.union([d.number,p]),scaled_float:d.union([d.number,p]),unsigned_long:d.union([d.number,p]),flattened:d.UnknownRecord},v=n=>{const e=d.union([n,d.array(d.union([n,d.nullType]))]);return new d.Type("castArray",e.is,e.validate,(n=>Array.isArray(n)?n:[n]))},g=n=>{const e=d.union([n,d.array(n)]);return new d.Type("castSingle",e.is,e.validate,(n=>Array.isArray(n)?n[0]:n))};!function(n){function e(n){return Object(i.mapValues)(n,(n=>{const e=n.type in h?h[n.type]:d.unknown;return n.array?v(e):g(e)}))}const r=Object(i.pickBy)(n,(n=>n.required));d.intersection([d.exact(d.partial(e(n))),d.type(e(r))])}(f);var m=r(155)},155:function(n,e,r){"use strict";r.d(e,"a",(function(){return t}));const t="/internal/rac/alerts"},177:function(n,e,r){n.exports=r(61)(448)},193:function(n,e,r){"use strict";(function(n,e){r(207);var t=r(208),i=r.n(t);r(28),r(9),r(209),i.a.resolve(i.a.join(n,"..")),"\n/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n// ---------------------------------- WARNING ----------------------------------\n// this file was generated, and should not be edited by hand\n// ---------------------------------- WARNING ----------------------------------\nimport * as rt from 'io-ts';\nimport { Either } from 'fp-ts/lib/Either';\n%%IMPORTS%%\nconst ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;\nexport const IsoDateString = new rt.Type(\n 'IsoDateString',\n rt.string.is,\n (input, context): Either => {\n if (typeof input === 'string' && ISO_DATE_PATTERN.test(input)) {\n return rt.success(input);\n } else {\n return rt.failure(input, context);\n }\n },\n rt.identity\n);\nexport type IsoDateStringC = typeof IsoDateString;\nexport const schemaDate = IsoDateString;\nexport const schemaDateArray = rt.array(IsoDateString);\nexport const schemaDateRange = rt.partial({\n gte: schemaDate,\n lte: schemaDate,\n});\nexport const schemaDateRangeArray = rt.array(schemaDateRange);\nexport const schemaUnknown = rt.unknown;\nexport const schemaUnknownArray = rt.array(rt.unknown);\nexport const schemaString = rt.string;\nexport const schemaStringArray = rt.array(schemaString);\nexport const schemaNumber = rt.number;\nexport const schemaNumberArray = rt.array(schemaNumber);\nexport const schemaStringOrNumber = rt.union([schemaString, schemaNumber]);\nexport const schemaStringOrNumberArray = rt.array(schemaStringOrNumber);\nexport const schemaBoolean = rt.boolean;\nexport const schemaBooleanArray = rt.array(schemaBoolean);\nconst schemaGeoPointCoords = rt.type({\n type: schemaString,\n coordinates: schemaNumberArray,\n});\nconst schemaGeoPointString = schemaString;\nconst schemaGeoPointLatLon = rt.type({\n lat: schemaNumber,\n lon: schemaNumber,\n});\nconst schemaGeoPointLocation = rt.type({\n location: schemaNumberArray,\n});\nconst schemaGeoPointLocationString = rt.type({\n location: schemaString,\n});\nexport const schemaGeoPoint = rt.union([\n schemaGeoPointCoords,\n schemaGeoPointString,\n schemaGeoPointLatLon,\n schemaGeoPointLocation,\n schemaGeoPointLocationString,\n]);\nexport const schemaGeoPointArray = rt.array(schemaGeoPoint);\n// prettier-ignore\nconst %%schemaPrefix%%Required = %%REQUIRED_FIELDS%%;\nconst %%schemaPrefix%%Optional = %%OPTIONAL_FIELDS%%;\n\n// prettier-ignore\nexport const %%schemaPrefix%%Schema = rt.intersection([%%schemaPrefix%%Required, %%schemaPrefix%%Optional%%INCLUDED_SCHEMAS%%]);\n// prettier-ignore\nexport type %%schemaPrefix%% = rt.TypeOf;\n\n".trim()}).call(this,"/",r(177))},207:function(n,e){},208:function(n,e,r){n.exports=r(61)(1734)},209:function(n,e,r){"use strict";r.d(e,"a",(function(){return o}));var t=r(16),i=r.n(t);const a="".padStart(2);class LineWriter{constructor(n="\n"){i()(this,"_indent",""),i()(this,"_lines",[]),i()(this,"_separator",void 0),this._indent="",this._lines=[],this._separator=n}addLine(n){this._lines.push(`${this._indent}${n}`)}addLineAndIndent(n){this._lines.push(`${this._indent}${n}`),this._indent=`${this._indent}${a}`}dedentAndAddLine(n){this._indent=this._indent.substr(2),this._lines.push(`${this._indent}${n}`)}indent(){this._indent=`${this._indent}${a}`}dedent(){this._indent=this._indent.substr(2)}getContent(){return this._lines.join(this._separator)}}const o=(n="\n")=>new LineWriter(n)},211:function(n,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=r(212),i=r(126);function a(n){return void 0!==n.message?n.message:"Invalid value "+("function"==typeof(e=n.value)?t.getFunctionName(e):"number"!=typeof e||isFinite(e)?JSON.stringify(e):isNaN(e)?"NaN":e>0?"Infinity":"-Infinity")+" supplied to "+n.context.map((function(n){return n.key+": "+n.type.name})).join("/");var e}function o(n){return n.map(a)}function u(){return["No errors!"]}e.failure=o,e.success=u,e.PathReporter={report:i.fold(o,u)}},212:function(n,e,r){"use strict";var t,i=this&&this.__extends||(t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])},t(n,e)},function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return a=Object.assign||function(n){for(var e,r=1,t=arguments.length;r"},e.getContextEntry=function(n,e){return{key:n,type:e}},e.appendContext=function(n,e,r,t){for(var i=n.length,a=Array(i+1),o=0;o"),new P(r,(function(r){return e.UnknownArray.is(r)&&r.every(n.is)}),(function(r,t){return c(e.UnknownArray.validate(r,t),(function(r){for(var i=r.length,a=r,u=[],c=0;c0?e.failures(u):e.success(a)}))}),n.encode===e.identity?e.identity:function(e){return e.map(n.encode)},n)};var R=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.props=a,o._tag="InterfaceType",o}return i(e,n),e}(s);e.InterfaceType=R;var U=function(n){return Object.keys(n).map((function(e){return e+": "+n[e].name})).join(", ")},I=function(n){for(var r=0;r0?e.failures(s):e.success(c)}))}),I(i)?e.identity:function(n){for(var r=a({},n),o=0;o"};e.partial=function(n,r){void 0===r&&(r=D(L(n)));var t=Object.keys(n),i=t.map((function(e){return n[e]})),u=t.length;return new E(r,(function(r){if(e.UnknownRecord.is(r)){for(var i=0;i0?e.failures(s):e.success(c)}))}),I(i)?e.identity:function(n){for(var e=a({},n),r=0;r0?e.failures(u):e.success(f?a:t)}return d(r)&&Array.isArray(t)?e.success(t):e.failure(t,i)}),n.encode===e.identity&&r.encode===e.identity?e.identity:function(e){for(var t={},i=Object.keys(e),a=i.length,o=0;o0){var i=t[0],a=t[1],u=a.length,s=function(n){for(var e=0;e0?e.failures(u):e.success(B(r,a))},0===n.length?e.identity:function(e){return B(e,n.map((function(n){return n.encode(e)})))},n)};var V=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.types=a,o._tag="TupleType",o}return i(e,n),e}(s);e.TupleType=V,e.tuple=function(n,r){void 0===r&&(r="["+n.map((function(n){return n.name})).join(", ")+"]");var t=n.length;return new V(r,(function(r){return e.UnknownArray.is(r)&&r.length===t&&n.every((function(n,e){return n.is(r[e])}))}),(function(r,i){return c(e.UnknownArray.validate(r,i),(function(r){for(var a=r.length>t?r.slice(0,t):r,u=[],c=0;c0?e.failures(u):e.success(a)}))}),I(n)?e.identity:function(e){return n.map((function(n,r){return n.encode(e[r])}))},n)};var M=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.type=a,o._tag="ReadonlyType",o}return i(e,n),e}(s);e.ReadonlyType=M,e.readonly=function(n,r){return void 0===r&&(r="Readonly<"+n.name+">"),new M(r,n.is,(function(e,r){return u(n.validate(e,r),(function(n){return n}))}),n.encode===e.identity?e.identity:n.encode,n)};var W=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.type=a,o._tag="ReadonlyArrayType",o}return i(e,n),e}(s);e.ReadonlyArrayType=W,e.readonlyArray=function(n,r){void 0===r&&(r="ReadonlyArray<"+n.name+">");var t=e.array(n);return new W(r,t.is,(function(n,e){return u(t.validate(n,e),(function(n){return n}))}),t.encode,n)},e.strict=function(n,r){return e.exact(e.type(n),r)};var J=function(n){function e(e,r,t,i,a,o){var u=n.call(this,e,r,t,i,a)||this;return u.tag=o,u}return i(e,n),e}(G);e.TaggedUnionType=J,e.taggedUnion=function(n,r,t){void 0===t&&(t=F(r));var i=e.union(r,t);return i instanceof J?i:(console.warn("[io-ts] Cannot build a tagged union for "+t+", returning a de-optimized union"),new J(t,i.is,i.validate,i.encode,r,n))};var K=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.type=a,o._tag="ExactType",o}return i(e,n),e}(s);e.ExactType=K;var z=function(n){switch(n._tag){case"RefinementType":case"ReadonlyType":return z(n.type);case"InterfaceType":case"StrictType":case"PartialType":return n.props;case"IntersectionType":return n.types.reduce((function(n,e){return Object.assign(n,z(e))}),{})}},Q=function(n,e){for(var r=Object.getOwnPropertyNames(n),t=!1,i={},a=0;a"}(n));var t=z(n);return new K(r,n.is,(function(r,i){return c(e.UnknownRecord.validate(r,i),(function(){return u(n.validate(r,i),(function(n){return Q(n,t)}))}))}),(function(e){return n.encode(Q(e,t))}),n)},e.getValidationError=function(n,e){return{value:n,context:e}},e.getDefaultContext=function(n){return[{key:"",type:n}]};var H=function(n){function r(){var r=n.call(this,"never",(function(n){return!1}),(function(n,r){return e.failure(n,r)}),(function(){throw new Error("cannot encode never")}))||this;return r._tag="NeverType",r}return i(r,n),r}(s);e.NeverType=H,e.never=new H;var Z=function(n){function r(){var r=n.call(this,"any",(function(n){return!0}),e.success,e.identity)||this;return r._tag="AnyType",r}return i(r,n),r}(s);e.AnyType=Z,e.any=new Z,e.Dictionary=e.UnknownRecord;var X=function(n){function r(){var r=n.call(this,"object",(function(n){return null!==n&&"object"==typeof n}),(function(n,t){return r.is(n)?e.success(n):e.failure(n,t)}),e.identity)||this;return r._tag="ObjectType",r}return i(r,n),r}(s);function Y(n,r,t){return void 0===t&&(t="("+n.name+" | "+e.getFunctionName(r)+")"),new A(t,(function(e){return n.is(e)&&r(e)}),(function(t,i){return c(n.validate(t,i),(function(n){return r(n)?e.success(n):e.failure(n,i)}))}),n.encode,n,r)}e.ObjectType=X,e.object=new X,e.refinement=Y,e.Integer=Y(e.number,Number.isInteger,"Integer"),e.dictionary=e.record;var nn=function(n){function e(e,r,t,i,a){var o=n.call(this,e,r,t,i)||this;return o.props=a,o._tag="StrictType",o}return i(e,n),e}(s);e.StrictType=nn,e.clean=function(n){return n},e.alias=function(n){return function(){return n}};var en=function(n){return n.length>0};function rn(n,e){for(var r=[],t=0,i=n;t