/*! 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.security_bundle_jsonpfunction=window.security_bundle_jsonpfunction||[]).push([[0],{114:function(t,e,s){"use strict";var r=s(205),h=s(206);function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=d,e.resolve=function(t,e){return d(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?d(t,!1,!0).resolveObject(e):e},e.format=function(t){return h.isString(t)&&(t=d(t)),t instanceof n?t.format():n.prototype.format.call(t)},e.Url=n;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=s(207);function d(t,e,s){if(t&&h.isObject(t)&&t instanceof n)return t;var r=new n;return r.parse(t,e,s),r}n.prototype.parse=function(t,e,s){if(!h.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),a=-1!==n&&n127?k+="x":k+=$[_];if(!k.match(f)){var L=N.slice(0,I),P=N.slice(I+1),H=$.match(m);H&&(L.push(H[1]),P.unshift(H[2])),P.length&&(d="/"+P.join(".")+d),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var K=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+K,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==d[0]&&(d="/"+d))}if(!v[x])for(I=0,S=u.length;I0)&&s.host.split("@"))&&(s.auth=R.shift(),s.host=s.hostname=R.shift())),s.search=t.search,s.query=t.query,h.isNull(s.pathname)&&h.isNull(s.search)||(s.path=(s.pathname?s.pathname:"")+(s.search?s.search:"")),s.href=s.format(),s;if(!q.length)return s.pathname=null,s.search?s.path="/"+s.search:s.path=null,s.href=s.format(),s;for(var w=q.slice(-1)[0],C=(s.host||t.host||q.length>1)&&("."===w||".."===w)||""===w,I=0,U=q.length;U>=0;U--)"."===(w=q[U])?q.splice(U,1):".."===w?(q.splice(U,1),I++):I&&(q.splice(U,1),I--);if(!O&&!x)for(;I--;I)q.unshift("..");!O||""===q[0]||q[0]&&"/"===q[0].charAt(0)||q.unshift(""),C&&"/"!==q.join("/").substr(-1)&&q.push("");var R,N=""===q[0]||q[0]&&"/"===q[0].charAt(0);return A&&(s.hostname=s.host=N?"":q.length?q.shift():"",(R=!!(s.host&&s.host.indexOf("@")>0)&&s.host.split("@"))&&(s.auth=R.shift(),s.host=s.hostname=R.shift())),(O=O||s.host&&q.length)&&!N&&q.unshift(""),q.length?s.pathname=q.join("/"):(s.pathname=null,s.path=null),h.isNull(s.pathname)&&h.isNull(s.search)||(s.path=(s.pathname?s.pathname:"")+(s.search?s.search:"")),s.auth=t.auth||s.auth,s.slashes=s.slashes||t.slashes,s.href=s.format(),s},n.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},205:function(t,e,s){t.exports=s(28)(2947)},206:function(t,e,s){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},207:function(t,e,s){"use strict";e.decode=e.parse=s(208),e.encode=e.stringify=s(209)},208:function(t,e,s){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,s,n){e=e||"&",s=s||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var i=1e3;n&&"number"==typeof n.maxKeys&&(i=n.maxKeys);var l=t.length;i>0&&l>i&&(l=i);for(var u=0;u=0?(c=v.substr(0,y),p=v.substr(y+1)):(c=v,p=""),f=decodeURIComponent(c),m=decodeURIComponent(p),r(o,f)?h(o[f])?o[f].push(m):o[f]=[o[f],m]:o[f]=m}return o};var h=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},209:function(t,e,s){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,s,a){return e=e||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?n(o(t),(function(o){var a=encodeURIComponent(r(o))+s;return h(t[o])?n(t[o],(function(t){return a+encodeURIComponent(r(t))})).join(e):a+encodeURIComponent(r(t[o]))})).join(e):a?encodeURIComponent(r(a))+s+encodeURIComponent(r(t)):""};var h=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var s=[],r=0;r0&&(o=o[0]),function(t,e=""){const{protocol:s,hostname:h,port:n,pathname:o}=Object(r.parse)(t,!1,!0);if(null!==s||null!==h||null!==n)return!1;if(e){const t=new URL(String(o),"https://localhost").pathname;return(null==o?void 0:o.startsWith("/"))&&(t===e||t.startsWith(`${e}/`))}return!0}(o,e)?o+(n||""):`${e}/`):`${e}/`}}}]);