/*! elasticsearch - v13.0.1 - 2017-05-09 * http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html * Copyright (c) 2017 Elasticsearch BV; Licensed Apache-2.0 */ ;(function () { /* prevent lodash from detecting external amd loaders */var define; !function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.elasticsearch=b():a.elasticsearch=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(){throw new Error('Looks like you are expecting the previous "elasticsearch" module. It is now the "es" module. To create a client with this module use `new es.Client(params)`.')}d.Client=c(1),d.ConnectionPool=c(33),d.Transport=c(2),d.errors=c(17),a.exports=d},function(a,b,c){function d(a){function b(){a.hasOwnProperty("log")||(a.log="warning"),a.hosts||a.host||(a.host="http://localhost:9200"),this.close=function(){this.transport.close()},this.transport=new e(a),g.each(b.prototype,g.bind(function(a,b){a.prototype instanceof f.ApiNamespace&&(this[b]=new a(this.transport,this))},this)),delete this._namespaces}if(a=a||{},a.__reused)throw new Error("Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33");a.__reused=!0,b.prototype=g.funcEnum(a,"apiVersion",d.apis,"_default"),a.sniffEndpoint||b.prototype!==d.apis["0.90"]||(a.sniffEndpoint="/_cluster/nodes");var h=b;return a.plugins&&(h.prototype=g.cloneDeep(h.prototype),g.each(a.plugins,function(b){h=b(h,a,{apis:c(47),connectors:c(37),loggers:c(30),selectors:c(34),serializers:c(42),Client:c(1),clientAction:f,Connection:c(39),ConnectionPool:c(33),Errors:c(17),Host:c(18),Log:c(28),Logger:c(32),NodesToHost:c(45),Transport:c(2),utils:c(4)})||h})),new h}a.exports=d;var e=c(2),f=c(46),g=c(4);d.apis=c(47)},function(a,b,c){(function(b){function d(a){var b=this;a=b._config=a||{};var f="function"==typeof a.log?a.log:c(28);a.log=b.log=new f(a);var j=e.funcEnum(a,"connectionPool",d.connectionPools,"main");b.connectionPool=new j(a);var k=e.funcEnum(a,"serializer",d.serializers,"json");b.serializer=new k(a),b.nodesToHostCallback=e.funcEnum(a,"nodesToHostCallback",d.nodesToHostCallbacks,"main"),b.maxRetries=a.hasOwnProperty("maxRetries")?a.maxRetries:3,b.sniffEndpoint=a.hasOwnProperty("sniffEndpoint")?a.sniffEndpoint:"/_nodes/_all/http",b.requestTimeout=a.hasOwnProperty("requestTimeout")?a.requestTimeout:3e4,a.hasOwnProperty("defer")&&(b.defer=a.defer);var l=!a.hasOwnProperty("randomizeHosts")||!!a.randomizeHosts;if(a.host&&(a.hosts=a.host),a.hosts){var m=e.createArray(a.hosts,function(a){if(e.isPlainObject(a)||e.isString(a)||a instanceof g)return a});if(!m)throw new TypeError("Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.");l&&(m=e.shuffle(m)),b.setHosts(m)}a.hasOwnProperty("sniffedNodesProtocol")?b.sniffedNodesProtocol=a.sniffedNodesProtocol||null:b.sniffedNodesProtocol=i(b.connectionPool.getAllHosts())||null,a.sniffOnStart&&b.sniff(),a.sniffInterval&&b._timeout(function c(){b.sniff(),b._timeout(c,a.sniffInterval)},a.sniffInterval),a.sniffOnConnectionFault&&h(b)}a.exports=d;var e=c(4),f=c(17),g=c(18),h=c(25),i=c(26);d.connectionPools={main:c(33)},d.serializers=c(42),d.nodesToHostCallbacks={main:c(45)},d.prototype.defer=function(){if("undefined"==typeof Promise)throw new Error("No Promise implementation found. In order for elasticsearch-js to create promises either specify the `defer` configuration or include a global Promise shim");var a={};return a.promise=new Promise(function(b,c){a.resolve=b,a.reject=c}),a},d.prototype.request=function(a,c){function d(b,c){r||(b?h(b):c?(j=c,k=j.request(a.req,g)):(o.log.warning("No living connections"),h(new f.NoConnections)))}function g(b,c,e,g){if(!r){if(k=void 0,b instanceof f.RequestTypeError)return o.log.error("Connection refused to execute the request",b),void h(b,c,e,g);if(b){j.setStatus("dead");var i=b.message||"";i="\n"+a.req.method+" "+j.host.makeUrl(a.req)+(i.length?" => ":"")+i,p?(p--,o.log.error("Request error, retrying"+i),o.connectionPool.select(d)):(o.log.error("Request complete with error"+i),h(new f.ConnectionFault(b)))}else o.log.debug("Request complete"),h(void 0,c,e,g)}}function h(b,d,g,h){if(!r){o._timeout(l);var i,j=!h||h["content-type"]&&~h["content-type"].indexOf("application/json");if(!b&&d&&(j?(i=o.serializer.deserialize(d),null==i&&(b=new f.Serialization,i=d)):i=d),(!b||b instanceof f.Serialization)&&(g<200||g>=300)&&(!a.ignore||!e.include(a.ignore,g))){var k=e.pick(a.req,["path","query","body"]);k.statusCode=g,k.response=d,401===g&&h&&h["www-authenticate"]&&(k.wwwAuthenticateDirective=h["www-authenticate"]),b=f[g]?new f[g](i&&i.error,k):new f.Generic("unknown error",k)}a.castExists&&(b&&b instanceof f.NotFound?(i=!1,b=void 0):i=!b),"function"==typeof c?b?c(b,i,g):c(void 0,i,g):b?(b.body=i,b.status=g,n.reject(b)):n.resolve(i)}}function i(){r||(r=!0,p=0,o._timeout(l),"function"==typeof k&&k())}var j,k,l,m,n,o=this,p=this.maxRetries,q=this.requestTimeout,r=!1,s=a.body,t=a.headers?e.transform(a.headers,function(a,b,c){a[String(c).toLowerCase()]=b}):{};if(o.log.debug("starting request",a),"function"==typeof c?(b.domain&&(c=b.domain.bind(c)),m={abort:i}):(n=this.defer(),m=n.promise,m.abort=i),s&&"GET"===a.method)return e.nextTick(h,new TypeError('Body can not be sent with method "GET"')),m;if(s){var u=o.serializer,v=u[a.bulkBody?"bulkBody":"serialize"];s=v.call(u,s),t["content-type"]||(t["content-type"]=v.contentType)}return a.hasOwnProperty("maxRetries")&&(p=a.maxRetries),a.hasOwnProperty("requestTimeout")&&(q=a.requestTimeout),a.req={method:a.method,path:a.path||"/",query:a.query,body:s,headers:t},q&&q!==1/0&&(l=this._timeout(function(){h(new f.RequestTimeout("Request Timeout after "+q+"ms")),i()},q)),j?d(void 0,j):o.connectionPool.select(d),m},d.prototype._timeout=function(a,b){if(!this.closed){var c,d=this._timers||(this._timers=[]);if("function"!=typeof a&&(c=a,a=void 0),a)return c=setTimeout(function(){e.pull(d,c),a()},b),d.push(c),c;if(c){clearTimeout(c);var f=this._timers.indexOf(c);f!==-1&&this._timers.splice(f,1)}}},d.prototype.sniff=function(a){var b=this,c=this.nodesToHostCallback,d=this.log,f=this.sniffedNodesProtocol;a="function"==typeof a?a:e.noop,this.request({path:this.sniffEndpoint,query:{filter_path:["nodes.*.http.publish_address","nodes.*.name","nodes.*.hostname","nodes.*.host","nodes.*.version"].join(",")},method:"GET"},function(g,h,i){if(!g&&h&&h.nodes){var j;try{j=c(h.nodes)}catch(a){return void d.error(new Error("Unable to convert node list from "+this.sniffEndpoint+" to hosts durring sniff. Encountered error:\n"+(a.stack||a.message)))}e.forEach(j,function(a){f&&(a.protocol=f)}),b.setHosts(j)}a(g,h,i)})},d.prototype.setHosts=function(a){var b=this._config;this.connectionPool.setHosts(e.map(a,function(a){return a instanceof g?a:new g(a,b)}))},d.prototype.close=function(){this.log.close(),this.closed=!0,e.each(this._timers,clearTimeout),this._timers=null,this.connectionPool.close()}}).call(b,c(3))},function(a,b){function c(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}function e(a){if(k===setTimeout)return setTimeout(a,0);if((k===c||!k)&&setTimeout)return k=setTimeout,setTimeout(a,0);try{return k(a,0)}catch(b){try{return k.call(null,a,0)}catch(b){return k.call(this,a,0)}}}function f(a){if(l===clearTimeout)return clearTimeout(a);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(a);try{return l(a)}catch(b){try{return l.call(null,a)}catch(b){return l.call(this,a)}}}function g(){p&&n&&(p=!1,n.length?o=n.concat(o):q=-1,o.length&&h())}function h(){if(!p){var a=e(g);p=!0;for(var b=o.length;b;){for(n=o,o=[];++q1)for(var c=1;c=97&&e<=122||e>=48&&e<=57,g=e>=65&&e<=90,!g&&h||(k.length&&j.push(k),k=""),(g||h)&&(h&&k.length?k+=f:k=!j.length&&a||j.length&&b?f.toUpperCase():f.toLowerCase());return k.length&&j.push(k),j.length&&"_"===d.charAt(0)&&(j[0]="_"+j[0]),j.join(c)}}var f=c(9),g=c(10),h=c(13),i=h.assign({},h,g);i.joinPath=f.join,i.get=c(15),i.trimEnd=c(16),i.deepMerge=function(a,b){return i.each(b,function(c,d){switch(typeof a[d]){case"undefined":a[d]=b[d];break;case"object":i.isArray(a[d])&&i.isArray(b[d])?a[d]=a[d].concat(b[d]):i.isPlainObject(a[d])&&i.isPlainObject(b[d])&&i.deepMerge(a[d],b[d])}}),a},i.each(["String","Object","PlainObject","Array","Finite","Function","RegExp"],function(a){var b=i["is"+a];i["isArrayOf"+a+"s"]=function(a){return i.isArray(a)&&i.every(a.slice(0,10),b)}}),i.ucfirst=function(a){return a[0].toUpperCase()+a.substring(1).toLowerCase()},i.studlyCase=e(!0,!0,""),i.camelCase=e(!1,!0,""),i.snakeCase=e(!1,!1,"_"),i.toLowerString=function(a){return a?"string"!=typeof a&&(a=a.toString()):a="",a.toLowerCase()},i.toUpperString=function(a){return a?"string"!=typeof a&&(a=a.toString()):a="",a.toUpperCase()},i.isNumeric=function(a){return"object"!=typeof a&&a-parseFloat(a)>=0};var j=/^(\d+(?:\.\d+)?)(M|w|d|h|m|s|y|ms)$/;i.isInterval=function(a){return!(!a.match||!a.match(j))},i.repeat=function(a,b){return new Array(b+1).join(a)},i.applyArgs=function(a,b,c,d){switch(d=d||0,c.length-d){case 0:return a.call(b);case 1:return a.call(b,c[0+d]);case 2:return a.call(b,c[0+d],c[1+d]);case 3:return a.call(b,c[0+d],c[1+d],c[2+d]);case 4:return a.call(b,c[0+d],c[1+d],c[2+d],c[3+d]);case 5:return a.call(b,c[0+d],c[1+d],c[2+d],c[3+d],c[4+d]);default:return a.apply(b,Array.prototype.slice.call(c,d))}},i.nextTick=function(a){b.nextTick(i.bindKey(i,"applyArgs",a,null,arguments,1))},i.handler=function(a){return a._provideBound=!0,a},i.scheduled=i.handler,i.makeBoundMethods=function(a){a.bound={};for(var b in a)"function"==typeof a[b]&&a[b]._provideBound===!0&&(a.bound[b]=i.bind(a[b],a))},i.noop=function(){},i.funcEnum=function(a,b,c,d){var e=a[b];switch(typeof e){case"undefined":return c[d];case"function":return e;case"string":if(c.hasOwnProperty(e))return c[e];default:var f="Invalid "+b+' "'+e+'", expected a function';switch(i.size(c)){case 0:break;case 1:f+=" or "+i.keys(c)[0];break;default:f+=" or one of "+i.keys(c).join(", ")}throw new TypeError(f)}},i.createArray=function(a,b){b="function"==typeof b?b:i.identity;var c,d,e=[];for(i.isArray(a)||(a=[a]),d=0;d=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function q(a){return+a!=a&&(a=0),g.alloc(+a)}function r(a,b){if(g.isBuffer(a))return a.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":case void 0:return T(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return W(a).length;default:if(d)return T(a).length;b=(""+b).toLowerCase(),d=!0}}function s(a,b,c){var d=!1;if((void 0===b||b<0)&&(b=0),b>this.length)return"";if((void 0===c||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,b>>>=0,c<=b)return"";for(a||(a="utf8");;)switch(a){case"hex":return H(this,b,c);case"utf8":case"utf-8":return D(this,b,c);case"ascii":return F(this,b,c);case"latin1":case"binary":return G(this,b,c);case"base64":return C(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function t(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function u(a,b,c,d,e){if(0===a.length)return-1;if("string"==typeof c?(d=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,isNaN(c)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return-1;c=a.length-1}else if(c<0){if(!e)return-1;c=0}if("string"==typeof b&&(b=g.from(b,d)),g.isBuffer(b))return 0===b.length?-1:v(a,b,c,d,e);if("number"==typeof b)return b=255&b,g.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):v(a,[b],c,d,e);throw new TypeError("val must be string, number or Buffer")}function v(a,b,c,d,e){function f(a,b){return 1===g?a[b]:a.readUInt16BE(b*g)}var g=1,h=a.length,i=b.length;if(void 0!==d&&(d=String(d).toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return-1;g=2,h/=2,i/=2,c/=2}var j;if(e){var k=-1;for(j=c;jh&&(c=h-i),j=c;j>=0;j--){for(var l=!0,m=0;me&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new TypeError("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;g239?4:f>223?3:f>191?2:1;if(e+h<=c){var i,j,k,l;switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return E(d)}function E(a){var b=a.length;if(b<=aa)return String.fromCharCode.apply(String,a);for(var c="",d=0;dd)&&(c=d);for(var e="",f=b;fc)throw new RangeError("Trying to access beyond buffer length")}function K(a,b,c,d,e,f){if(!g.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError("Index out of range")}function L(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}function M(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}function N(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function O(a,b,c,d,e){return e||N(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(a,b,c,d,23,4),c+4}function P(a,b,c,d,e){return e||N(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(a,b,c,d,52,8),c+8}function Q(a){if(a=R(a).replace(ba,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function R(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function S(a){return a<16?"0"+a.toString(16):a.toString(16)}function T(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;g55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function U(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function W(a){return Z.toByteArray(Q(a))}function X(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function Y(a){return a!==a}var Z=c(6),$=c(7),_=c(8);b.Buffer=g,b.SlowBuffer=q,b.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:d(),b.kMaxLength=e(),g.poolSize=8192,g._augment=function(a){return a.__proto__=g.prototype,a},g.from=function(a,b,c){return h(null,a,b,c)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0})),g.alloc=function(a,b,c){return j(null,a,b,c)},g.allocUnsafe=function(a){return k(null,a)},g.allocUnsafeSlow=function(a){return k(null,a)},g.isBuffer=function(a){return!(null==a||!a._isBuffer)},g.compare=function(a,b){if(!g.isBuffer(a)||!g.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,f=Math.min(c,d);e0&&(a=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(a+=" ... ")),""},g.prototype.compare=function(a,b,c,d,e){if(!g.isBuffer(a))throw new TypeError("Argument must be a Buffer");if(void 0===b&&(b=0),void 0===c&&(c=a?a.length:0),void 0===d&&(d=0),void 0===e&&(e=this.length),b<0||c>a.length||d<0||e>this.length)throw new RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return-1;if(b>=c)return 1;if(b>>>=0,c>>>=0,d>>>=0,e>>>=0,this===a)return 0;for(var f=e-d,h=c-b,i=Math.min(f,h),j=this.slice(d,e),k=a.slice(b,c),l=0;le)&&(c=e),a.length>0&&(c<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var f=!1;;)switch(d){case"hex":return w(this,a,b,c);case"utf8":case"utf-8":return x(this,a,b,c);case"ascii":return y(this,a,b,c);case"latin1":case"binary":return z(this,a,b,c);case"base64":return A(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,a,b,c);default:if(f)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),f=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var aa=4096;g.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,a<0?(a+=c,a<0&&(a=0)):a>c&&(a=c),b<0?(b+=c,b<0&&(b=0)):b>c&&(b=c),b0&&(e*=256);)d+=this[a+--b]*e;return d},g.prototype.readUInt8=function(a,b){return b||J(a,1,this.length),this[a]},g.prototype.readUInt16LE=function(a,b){return b||J(a,2,this.length),this[a]|this[a+1]<<8},g.prototype.readUInt16BE=function(a,b){return b||J(a,2,this.length),this[a]<<8|this[a+1]},g.prototype.readUInt32LE=function(a,b){return b||J(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},g.prototype.readUInt32BE=function(a,b){return b||J(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},g.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||J(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},g.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||J(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},g.prototype.readInt8=function(a,b){return b||J(a,1,this.length),128&this[a]?(255-this[a]+1)*-1:this[a]},g.prototype.readInt16LE=function(a,b){b||J(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},g.prototype.readInt16BE=function(a,b){b||J(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},g.prototype.readInt32LE=function(a,b){return b||J(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},g.prototype.readInt32BE=function(a,b){return b||J(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},g.prototype.readFloatLE=function(a,b){return b||J(a,4,this.length),$.read(this,a,!0,23,4)},g.prototype.readFloatBE=function(a,b){return b||J(a,4,this.length),$.read(this,a,!1,23,4)},g.prototype.readDoubleLE=function(a,b){return b||J(a,8,this.length),$.read(this,a,!0,52,8)},g.prototype.readDoubleBE=function(a,b){return b||J(a,8,this.length),$.read(this,a,!1,52,8)},g.prototype.writeUIntLE=function(a,b,c,d){if(a=+a,b=0|b,c=0|c,!d){var e=Math.pow(2,8*c)-1;K(this,a,b,c,e,0)}var f=1,g=0;for(this[b]=255&a;++g=0&&(g*=256);)this[b+f]=a/g&255;return b+c},g.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,1,255,0),g.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},g.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):L(this,a,b,!0),b+2},g.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):L(this,a,b,!1),b+2},g.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):M(this,a,b,!0),b+4},g.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):M(this,a,b,!1),b+4},g.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);K(this,a,b,c,e-1,-e)}var f=0,g=1,h=0;for(this[b]=255&a;++f>0)-h&255;return b+c},g.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);K(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0;for(this[b+f]=255&a;--f>=0&&(g*=256);)a<0&&0===h&&0!==this[b+f+1]&&(h=1),this[b+f]=(a/g>>0)-h&255;return b+c},g.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,1,127,-128),g.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[b]=255&a,b+1},g.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):L(this,a,b,!0),b+2},g.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):L(this,a,b,!1),b+2},g.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):M(this,a,b,!0),b+4},g.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||K(this,a,b,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),g.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):M(this,a,b,!1),b+4},g.prototype.writeFloatLE=function(a,b,c){return O(this,a,b,!0,c)},g.prototype.writeFloatBE=function(a,b,c){return O(this,a,b,!1,c)},g.prototype.writeDoubleLE=function(a,b,c){return P(this,a,b,!0,c)},g.prototype.writeDoubleBE=function(a,b,c){return P(this,a,b,!1,c)},g.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&d=this.length)throw new RangeError("sourceStart out of bounds");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b=0;--e)a[e+b]=this[e+c];else if(f<1e3||!g.TYPED_ARRAY_SUPPORT)for(e=0;e>>=0,c=void 0===c?this.length:c>>>0,a||(a=0);var f;if("number"==typeof a)for(f=b;f0)throw new Error("Invalid string. Length must be a multiple of 4"); return"="===a[b-2]?2:"="===a[b-1]?1:0}function d(a){return 3*a.length/4-c(a)}function e(a){var b,d,e,f,g,h,i=a.length;g=c(a),h=new k(3*i/4-g),e=g>0?i-4:i;var l=0;for(b=0,d=0;b>16&255,h[l++]=f>>8&255,h[l++]=255&f;return 2===g?(f=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,h[l++]=255&f):1===g&&(f=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,h[l++]=f>>8&255,h[l++]=255&f),h}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;gk?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}b.byteLength=d,b.toByteArray=e,b.fromByteArray=h;for(var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,n=l.length;m>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},function(a,b){var c={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==c.call(a)}},function(a,b,c){(function(a){function c(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(b=g+"/"+b,e="/"===g.charAt(0))}return b=c(d(b.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+b||"."},b.normalize=function(a){var e=b.isAbsolute(a),f="/"===g(a,-1);return a=c(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},b.isAbsolute=function(a){return"/"===a.charAt(0)},b.join=function(){var a=Array.prototype.slice.call(arguments,0);return b.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},b.relative=function(a,c){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=b.resolve(a).substr(1),c=b.resolve(c).substr(1);for(var e=d(a.split("/")),f=d(c.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(c)?d.showHidden=c:c&&b._extend(d,c),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,c,d){if(a.customInspect&&c&&A(c.inspect)&&c.inspect!==b.inspect&&(!c.constructor||c.constructor.prototype!==c)){var e=c.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,c);if(f)return f;var g=Object.keys(c),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(c)),z(c)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(c);if(0===g.length){if(A(c)){var q=c.name?": "+c.name:"";return a.stylize("[Function"+q+"]","special")}if(w(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(y(c))return a.stylize(Date.prototype.toString.call(c),"date");if(z(c))return k(c)}var r="",s=!1,u=["{","}"];if(o(c)&&(s=!0,u=["[","]"]),A(c)){var v=c.name?": "+c.name:"";r=" [Function"+v+"]"}if(w(c)&&(r=" "+RegExp.prototype.toString.call(c)),y(c)&&(r=" "+Date.prototype.toUTCString.call(c)),z(c)&&(r=" "+k(c)),0===g.length&&(!s||0==c.length))return u[0]+r+u[1];if(d<0)return w(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var x;return x=s?l(a,c,d,p,g):g.map(function(b){return m(a,c,d,p,b,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;g-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;b.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),h=d[c];c-1?0:-1:a?0:-1}function h(a){var b=this.cache,c=typeof a;if("boolean"==c||null==a)b[a]=!0;else{"number"!=c&&"string"!=c&&(c="object");var d="number"==c?a:z+a,e=b[c]||(b[c]={});"object"==c?(e[d]||(e[d]=[])).push(a):e[d]=!0}}function i(a){return a.charCodeAt(0)}function j(a,b){for(var c=a.criteria,d=b.criteria,e=-1,f=c.length;++eh||"undefined"==typeof g)return 1;if(g=A&&d===f,i=[];if(h){var j=l(b);j?(d=g,b=j):h=!1}for(;++c-1});return e.pop(),f.pop(),t&&(q(e),q(f)),g}function ha(a,b,c,d,e){(kd(b)?db:yd)(b,function(b,f){var g,h,i=b,j=a[f];if(b&&((h=kd(b))||zd(b))){for(var k=d.length;k--;)if(g=d[k]==b){j=e[k];break}if(!g){var l;c&&(i=c(j,b),(l="undefined"!=typeof i)&&(j=i)),l||(j=h?kd(j)?j:[]:zd(j)?j:{}),d.push(b),e.push(j),l||ha(j,b,c,d,e)}}else c&&(i=c(j,b),"undefined"==typeof i&&(i=b)),"undefined"!=typeof i&&(j=i);a[f]=j})}function ia(a,b){return a+Oc(ed()*(b-a+1))}function ka(a,b,c){var d=-1,e=pa(),h=a?a.length:0,i=[],j=!b&&h>=A&&e===f,k=c||j?n():i;if(j){var m=l(k);e=g,k=m}for(;++d3&&"function"==typeof b[c-2])var d=v(b[--c-1],b[c--],2);else c>2&&"function"==typeof b[c-1]&&(d=b[--c]);for(var e=s(arguments,1,c),f=-1,g=n(),h=n();++f-1:"number"==typeof f?g=(Qa(a)?a.indexOf(b,c):e(a,b,c))>-1:ud(a,function(a){if(++d>=c)return!(g=a===b)}),g}function _a(a,c,d){var e=!0;if(c=b.createCallback(c,d,3),kd(a))for(var f=-1,g=a.length;++ff&&(f=j)}else c=null==c&&Qa(a)?i:b.createCallback(c,d,3),ud(a,function(a,b,d){var g=c(a,b,d);g>e&&(e=g,f=a)});return f}function ib(a,c,d){var e=1/0,f=e;if("function"!=typeof c&&d&&d[c]===a&&(c=null),null==c&&kd(a))for(var g=-1,h=a.length;++g=A&&l(b?a[b]:i)))}var k=a[0],m=-1,o=k?k.length:0,p=[];a:for(;++m>>1;d(a[h])1?arguments:arguments[0],b=-1,c=a?hb(Dd(a,"length")):0,d=uc(c<0?0:c);++b2?ma(a,17,s(arguments,2),null,b):ma(a,1,null,null,b)}function Qb(a){for(var b=arguments.length>1?ea(arguments,!0,!1,1):Ba(a),c=-1,d=b.length;++c2?ma(b,19,s(arguments,2),null,a):ma(b,3,null,null,a)}function Sb(){for(var a=arguments,b=a.length;b--;)if(!Ka(a[b]))throw new Ec;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}}function Tb(a,b){return b="number"==typeof b?b:+b||a.length,ma(a,4,null,null,null,b)}function Ub(a,b,c){var d,e,f,g,h,i,j,k=0,l=!1,m=!0;if(!Ka(a))throw new Ec;if(b=bd(0,b)||0,c===!0){var n=!0;m=!1}else La(c)&&(n=c.leading,l="maxWait"in c&&(bd(b,c.maxWait)||0),m="trailing"in c?c.trailing:m);var o=function(){var c=b-(Fd()-g);if(c<=0){e&&Nc(e);var l=j;e=i=j=u,l&&(k=Fd(),f=a.apply(h,d),i||e||(d=h=null))}else i=Uc(o,c)},p=function(){i&&Nc(i),e=i=j=u,(m||l!==b)&&(k=Fd(),f=a.apply(h,d),i||e||(d=h=null))};return function(){if(d=arguments,g=Fd(),h=this,j=m&&(i||!n),l===!1)var c=n&&!i;else{e||n||(k=g);var q=l-(g-k),r=q<=0;r?(e&&(e=Nc(e)),k=g,f=a.apply(h,d)):e||(e=Uc(p,q))}return r&&i?i=Nc(i):i||b===l||(i=Uc(o,b)),c&&(r=!0,f=a.apply(h,d)),!r||i||e||(d=h=null),f}}function Vb(a){if(!Ka(a))throw new Ec;var b=s(arguments,1);return Uc(function(){a.apply(u,b)},1)}function Wb(a,b){if(!Ka(a))throw new Ec;var c=s(arguments,2);return Uc(function(){a.apply(u,c)},b)}function Xb(a,b){if(!Ka(a))throw new Ec;var c=function(){var d=c.cache,e=b?b.apply(this,arguments):z+arguments[0];return Rc.call(d,e)?d[e]:d[e]=a.apply(this,arguments)};return c.cache={},c}function Yb(a){var b,c;if(!Ka(a))throw new Ec;return function(){return b?c:(b=!0,c=a.apply(this,arguments),a=null,c)}}function Zb(a){return ma(a,16,s(arguments,1))}function $b(a){return ma(a,32,null,s(arguments,1))}function _b(a,b,c){var d=!0,e=!0;if(!Ka(a))throw new Ec;return c===!1?d=!1:La(c)&&(d="leading"in c?c.leading:d,e="trailing"in c?c.trailing:e),aa.leading=d,aa.maxWait=b,aa.trailing=e,Ub(a,b,aa)}function ac(a,b){return ma(b,16,[a])}function bc(a){return function(){return a}}function cc(a,b,c){var d=typeof a;if(null==a||"function"==d)return v(a,b,c);if("object"!=d)return ic(a);var e=md(a),f=e[0],g=a[f];return 1!=e.length||g!==g||La(g)?function(b){for(var c=e.length,d=!1;c--&&(d=ga(b[e[c]],a[e[c]],null,!0)););return d}:function(a){var b=a[f];return g===b&&(0!==g||1/g==1/b)}}function dc(a){return null==a?"":Dc(a).replace(td,oa)}function ec(a){return a}function fc(a,d,e){var f=!0,g=d&&Ba(d);d&&(e||g.length)||(null==e&&(e=d),h=c,d=a,a=b,g=Ba(d)),e===!1?f=!1:La(e)&&"chain"in e&&(f=e.chain);var h=a,i=Ka(h);db(g,function(b){var c=a[b]=d[b];i&&(h.prototype[b]=function(){var b=this.__chain__,d=this.__wrapped__,e=[d];Sc.apply(e,arguments);var g=c.apply(a,e);if(f||b){if(d===g&&La(g))return this;g=new h(g),g.__chain__=b}return g})})}function gc(){return a._=Jc,this}function hc(){}function ic(a){return function(b){return b[a]}}function jc(a,b,c){var d=null==a,e=null==b;if(null==c&&("boolean"==typeof a&&e?(c=a,a=1):e||"boolean"!=typeof b||(c=b,e=!0)),d&&e&&(b=1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=ed();return cd(a+f*(b-a+parseFloat("1e-"+((f+"").length-1))),b)}return ia(a,b)}function kc(a,b){if(a){var c=a[b];return Ka(c)?a[b]():c}}function lc(a,c,d){var e=b.templateSettings;a=Dc(a||""),d=wd({},d,e);var f,g=wd({},d.imports,e.imports),h=md(g),i=Ya(g),j=0,k=d.interpolate||L,l="__p += '",n=Cc((d.escape||L).source+"|"+k.source+"|"+(k===J?G:L).source+"|"+(d.evaluate||L).source+"|$","g"); a.replace(n,function(b,c,d,e,g,h){return d||(d=e),l+=a.slice(j,h).replace(N,m),c&&(l+="' +\n__e("+c+") +\n'"),g&&(f=!0,l+="';\n"+g+";\n__p += '"),d&&(l+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),j=h+b.length,b}),l+="';\n";var o=d.variable,p=o;p||(o="obj",l="with ("+o+") {\n"+l+"\n}\n"),l=(f?l.replace(D,""):l).replace(E,"$1").replace(F,"$1;"),l="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var q="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+Q++ +"]")+"\n*/";try{var r=yc(h,"return "+l+q).apply(u,i)}catch(a){throw a.source=l,a}return c?r(c):(r.source=l,r)}function mc(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=uc(a);for(b=v(b,c,1);++d/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:J,variable:"",imports:{_:b}};var id=function(a){var b="var index, iterable = "+a.firstArg+", result = "+a.init+";\nif (!iterable) return result;\n"+a.top+";";a.array?(b+="\nvar length = iterable.length; index = -1;\nif ("+a.array+") { ",hd.unindexedChars&&(b+="\n if (isString(iterable)) {\n iterable = iterable.split('')\n } "),b+="\n while (++index < length) {\n "+a.loop+";\n }\n}\nelse { "):hd.nonEnumArgs&&(b+="\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n "+a.loop+";\n }\n } else { "),hd.enumPrototypes&&(b+="\n var skipProto = typeof iterable == 'function';\n "),hd.enumErrorProps&&(b+="\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ");var c=[];if(hd.enumPrototypes&&c.push('!(skipProto && index == "prototype")'),hd.enumErrorProps&&c.push('!(skipErrorProps && (index == "message" || index == "name"))'),a.useHas&&a.keys)b+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n",c.length&&(b+=" if ("+c.join(" && ")+") {\n "),b+=a.loop+"; ",c.length&&(b+="\n }"),b+="\n } ";else if(b+="\n for (index in iterable) {\n",a.useHas&&c.push("hasOwnProperty.call(iterable, index)"),c.length&&(b+=" if ("+c.join(" && ")+") {\n "),b+=a.loop+"; ",c.length&&(b+="\n }"),b+="\n } ",hd.nonEnumShadows){for(b+="\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n ",k=0;k<7;k++)b+="\n index = '"+a.shadowedProps[k]+"';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",a.useHas||(b+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),b+=") {\n "+a.loop+";\n } ";b+="\n } "}return(a.array||hd.nonEnumArgs)&&(b+="\n}"),b+=a.bottom+";\nreturn result"};Yc||(h=function(){function b(){}return function(c){if(La(c)){b.prototype=c;var d=new b;b.prototype=null}return d||a.Object()}}());var jd=Xc?function(a,b){ba.value=b,Xc(a,"__bindData__",ba),ba.value=null}:hc;hd.argsClass||(ta=function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Rc.call(a,"callee")&&!Tc.call(a,"callee")||!1});var kd=Zc||function(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Kc.call(a)==S||!1},ld=na({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),md=ad?function(a){return La(a)?hd.enumPrototypes&&"function"==typeof a||hd.nonEnumArgs&&a.length&&ta(a)?ld(a):ad(a):[]}:ld,nd={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:md,loop:"if (callback(iterable[index], index, collection) === false) return result"},od={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",keys:md,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},pd={top:"if (!objectTypes[typeof iterable]) return result;\n"+nd.top,array:!1},qd={"&":"&","<":"<",">":">",'"':""","'":"'"},rd=Da(qd),sd=Cc("("+md(rd).join("|")+")","g"),td=Cc("["+md(qd).join("")+"]","g"),ud=na(nd),vd=na(od,{top:od.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),wd=na(od),xd=na(nd,pd,{useHas:!1}),yd=na(nd,pd);Ka(/x/)&&(Ka=function(a){return"function"==typeof a&&Kc.call(a)==W});var zd=Qc?function(a){if(!a||Kc.call(a)!=Y||!hd.argsClass&&ta(a))return!1;var b=a.valueOf,c=qa(b)&&(c=Qc(b))&&Qc(c);return c?a==c||Qc(a)==c:ra(a)}:ra,Ad=la(function(a,b,c){Rc.call(a,c)?a[c]++:a[c]=1}),Bd=la(function(a,b,c){(Rc.call(a,c)?a[c]:a[c]=[]).push(b)}),Cd=la(function(a,b,c){a[c]=b}),Dd=gb,Ed=ab,Fd=qa(Fd=wc.now)&&Fd||function(){return(new wc).getTime()},Gd=8==dd(C+"08")?dd:function(a,b){return dd(Qa(a)?a.replace(K,""):a,b||0)};return b.after=Ob,b.assign=vd,b.at=Za,b.bind=Pb,b.bindAll=Qb,b.bindKey=Rb,b.chain=pc,b.compact=sb,b.compose=Sb,b.constant=bc,b.countBy=Ad,b.create=wa,b.createCallback=cc,b.curry=Tb,b.debounce=Ub,b.defaults=wd,b.defer=Vb,b.delay=Wb,b.difference=tb,b.filter=ab,b.flatten=xb,b.forEach=db,b.forEachRight=eb,b.forIn=xd,b.forInRight=za,b.forOwn=yd,b.forOwnRight=Aa,b.functions=Ba,b.groupBy=Bd,b.indexBy=Cd,b.initial=zb,b.intersection=Ab,b.invert=Da,b.invoke=fb,b.keys=md,b.map=gb,b.mapValues=Sa,b.max=hb,b.memoize=Xb,b.merge=Ta,b.min=ib,b.omit=Ua,b.once=Yb,b.pairs=Va,b.partial=Zb,b.partialRight=$b,b.pick=Wa,b.pluck=Dd,b.property=ic,b.pull=Db,b.range=Eb,b.reject=lb,b.remove=Fb,b.rest=Gb,b.shuffle=nb,b.sortBy=qb,b.tap=qc,b.throttle=_b,b.times=mc,b.toArray=rb,b.transform=Xa,b.union=Ib,b.uniq=Jb,b.values=Ya,b.where=Ed,b.without=Kb,b.wrap=ac,b.xor=Lb,b.zip=Mb,b.zipObject=Nb,b.collect=gb,b.drop=Gb,b.each=db,b.eachRight=eb,b.extend=vd,b.methods=Ba,b.object=Nb,b.select=ab,b.tail=Gb,b.unique=Jb,b.unzip=Mb,fc(b),b.clone=ua,b.cloneDeep=va,b.contains=$a,b.escape=dc,b.every=_a,b.find=bb,b.findIndex=ub,b.findKey=xa,b.findLast=cb,b.findLastIndex=vb,b.findLastKey=ya,b.has=Ca,b.identity=ec,b.indexOf=yb,b.isArguments=ta,b.isArray=kd,b.isBoolean=Ea,b.isDate=Fa,b.isElement=Ga,b.isEmpty=Ha,b.isEqual=Ia,b.isFinite=Ja,b.isFunction=Ka,b.isNaN=Ma,b.isNull=Na,b.isNumber=Oa,b.isObject=La,b.isPlainObject=zd,b.isRegExp=Pa,b.isString=Qa,b.isUndefined=Ra,b.lastIndexOf=Cb,b.mixin=fc,b.noConflict=gc,b.noop=hc,b.now=Fd,b.parseInt=Gd,b.random=jc,b.reduce=jb,b.reduceRight=kb,b.result=kc,b.runInContext=t,b.size=ob,b.some=pb,b.sortedIndex=Hb,b.template=lc,b.unescape=nc,b.uniqueId=oc,b.all=_a,b.any=pb,b.detect=bb,b.findWhere=bb,b.foldl=jb,b.foldr=kb,b.include=$a,b.inject=jb,fc(function(){var a={};return yd(b,function(c,d){b.prototype[d]||(a[d]=c)}),a}(),!1),b.first=wb,b.last=Bb,b.sample=mb,b.take=wb,b.head=wb,yd(b,function(a,d){var e="sample"!==d;b.prototype[d]||(b.prototype[d]=function(b,d){var f=this.__chain__,g=a(this.__wrapped__,b,d);return f||null!=b&&(!d||e&&"function"==typeof b)?new c(g,f):g})}),b.VERSION="2.4.2",b.prototype.chain=rc,b.prototype.toString=sc,b.prototype.value=tc,b.prototype.valueOf=tc,ud(["join","pop","shift"],function(a){var d=Fc[a];b.prototype[a]=function(){var a=this.__chain__,b=d.apply(this.__wrapped__,arguments);return a?new c(b,a):b}}),ud(["push","reverse","sort","unshift"],function(a){var c=Fc[a];b.prototype[a]=function(){return c.apply(this.__wrapped__,arguments),this}}),ud(["concat","slice","splice"],function(a){var d=Fc[a];b.prototype[a]=function(){return new c(d.apply(this.__wrapped__,arguments),this.__chain__)}}),hd.spliceObjects||ud(["pop","shift","splice"],function(a){var d=Fc[a],e="splice"==a;b.prototype[a]=function(){var a=this.__chain__,b=this.__wrapped__,f=d.apply(b,arguments);return 0===b.length&&delete b[0],a||e?new c(f,a):f}}),b}var u,v=[],w=[],x=0,y={},z=+new Date+"",A=75,B=40,C=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎              ",D=/\b__p \+= '';/g,E=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,H=/\w*$/,I=/^\s*function[ \n\r\t]+\w/,J=/<%=([\s\S]+?)%>/g,K=RegExp("^["+C+"]*0+(?=.$)"),L=/($^)/,M=/\bthis\b/,N=/['\n\r\t\u2028\u2029\\]/g,O=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],P=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q=0,R="[object Arguments]",S="[object Array]",T="[object Boolean]",U="[object Date]",V="[object Error]",W="[object Function]",X="[object Number]",Y="[object Object]",Z="[object RegExp]",$="[object String]",_={};_[W]=!1,_[R]=_[S]=_[T]=_[U]=_[X]=_[Y]=_[Z]=_[$]=!0;var aa={leading:!1,maxWait:0,trailing:!1},ba={configurable:!1,enumerable:!1,value:null,writable:!1},ca={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},da={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},ea={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},fa=da[typeof window]&&window||this,ga=da[typeof b]&&b&&!b.nodeType&&b,ha=da[typeof a]&&a&&!a.nodeType&&a,ia=(ha&&ha.exports===ga&&ga,da[typeof e]&&e);!ia||ia.global!==ia&&ia.window!==ia||(fa=ia);var ja=t();fa._=ja,d=function(){return ja}.call(b,c,b,a),!(d!==u&&(a.exports=d))}).call(this)}).call(b,c(14)(a),function(){return this}())},function(a,b){a.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children=[],a.webpackPolyfill=1),a}},function(a,b){(function(b){function c(a,b){return null==a?void 0:a[b]}function d(a){var b=!1;if(null!=a&&"function"!=typeof a.toString)try{b=!!(a+"")}catch(a){}return b}function e(a){var b=-1,c=a?a.length:0;for(this.clear();++b-1}function p(a,b){var c=this.__data__,d=w(c,a);return d<0?c.push([a,b]):c[d][1]=b,this}function q(a){var b=-1,c=a?a.length:0;for(this.clear();++b-1;);return c}function h(a){return M.test(a)}function i(a){return h(a)?j(a):c(a)}function j(a){return a.match(L)||[]}function k(a,b,c){var d=-1,e=a.length;b<0&&(b=-b>e?0:e+b),c=c>e?e:c,c<0&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Array(e);++d=d?a:k(a,b,c)}function n(a){return!!a&&"object"==typeof a}function o(a){return"symbol"==typeof a||n(a)&&R.call(a)==s}function p(a){return null==a?"":l(a)}function q(a,b,c){if(a=p(a),a&&(c||void 0===b))return a.replace(t,"");if(!a||!(b=l(b)))return a;var d=i(a),e=g(d,i(b))+1;return m(d,0,e).join("")}var r=1/0,s="[object Symbol]",t=/\s+$/,u="\\ud800-\\udfff",v="\\u0300-\\u036f\\ufe20-\\ufe23",w="\\u20d0-\\u20f0",x="\\ufe0e\\ufe0f",y="["+u+"]",z="["+v+w+"]",A="\\ud83c[\\udffb-\\udfff]",B="(?:"+z+"|"+A+")",C="[^"+u+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",F="\\u200d",G=B+"?",H="["+x+"]?",I="(?:"+F+"(?:"+[C,D,E].join("|")+")"+H+G+")*",J=H+G+I,K="(?:"+[C+z+"?",z,D,E,y].join("|")+")",L=RegExp(A+"(?="+A+")|"+K+J,"g"),M=RegExp("["+F+u+v+w+x+"]"),N="object"==typeof b&&b&&b.Object===Object&&b,O="object"==typeof self&&self&&self.Object===Object&&self,P=N||O||Function("return this")(),Q=Object.prototype,R=Q.toString,S=P.Symbol,T=S?S.prototype:void 0,U=T?T.toString:void 0;a.exports=q}).call(b,function(){return this}())},function(a,b,c){function d(a,b,c){this.message=a,Error.call(this,this.message),h?Error.captureStackTrace(this,b):i?this.stack=(new Error).stack:this.stack="",c&&(f.assign(this,c),this.toString=function(){return a+" :: "+JSON.stringify(c)},this.toJSON=function(){return f.assign({msg:a},c)})}function e(a){const b=[];return function a(c){if("object"!=typeof c)return JSON.stringify(c);if(b.indexOf(c)>-1)return"[circular]";b.push(c);try{return"{ "+f.map(c,function(b,c){return c+"="+a(b)}).join(" & ")+" }"}finally{b.pop()}}(a)}var f=c(4),g=a.exports,h="function"==typeof Error.captureStackTrace,i=!!(new Error).stack;g._Abstract=d,f.inherits(d,Error),g.ConnectionFault=function(a){d.call(this,a||"Connection Failure",g.ConnectionFault)},f.inherits(g.ConnectionFault,d),g.NoConnections=function(a){d.call(this,a||"No Living connections",g.NoConnections)},f.inherits(g.NoConnections,d),g.Generic=function(a,b){d.call(this,a||"Generic Error",g.Generic,b)},f.inherits(g.Generic,d),g.RequestTimeout=function(a){d.call(this,a||"Request Timeout",g.RequestTimeout)},f.inherits(g.RequestTimeout,d),g.Serialization=function(a){d.call(this,a||"Unable to parse/serialize body",g.Serialization)},f.inherits(g.Serialization,d),g.RequestTypeError=function(a){d.call(this,"Cross-domain AJAX requests "+a+" are not supported",g.RequestTypeError)},f.inherits(g.RequestTypeError,d);var j=[[300,"Multiple Choices"],[301,"Moved Permanently"],[302,"Found"],[303,"See Other"],[304,"Not Modified"],[305,"Use Proxy"],[307,"Temporary Redirect"],[308,"Permanent Redirect"],[400,"Bad Request"],[401,"Authentication Exception"],[402,"Payment Required"],[403,["Authorization Exception","Forbidden"]],[404,"Not Found"],[405,"Method Not Allowed"],[406,"Not Acceptable"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Request Entity Too Large"],[414,"Request URIToo Long"],[415,"Unsupported Media Type"],[416,"Requested Range Not Satisfiable"],[417,"Expectation Failed"],[418,"Im ATeapot"],[421,"Too Many Connections From This IP"],[426,"Upgrade Required"],[429,"Too Many Requests"],[450,"Blocked By Windows Parental Controls"],[494,"Request Header Too Large"],[497,"HTTPTo HTTPS"],[499,"Client Closed Request"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"HTTPVersion Not Supported"],[506,"Variant Also Negotiates"],[510,"Not Extended"]];f.each(j,function(a){function b(a,g){this.status=c,this.displayName=k;var h=null;return f.isPlainObject(a)&&(h=a,a=null),h?(a=[].concat(h.root_cause||[]).reduce(function(a,b){a&&(a+=" (and) "),a+="["+b.type+"] "+b.reason;var c=f.omit(b,["type","reason"]);return f.size(c)&&(a+=", with "+e(c)),a},""),a||(h.type&&(a+="["+h.type+"] "),h.reason&&(a+=h.reason)),d.call(this,a||j,b,g),this):(d.call(this,a||j,b,g),this)}var c=a[0],h=a[1],i=[].concat(h,c),j=i[0],k=f.studlyCase(j);i=f.uniq(i.concat(k)),f.inherits(b,d),i.forEach(function(a){g[a]=b})})},function(a,b,c){(function(b){function d(a,b){if(a=i.clone(a||{}),b=b||{},this.protocol="http",this.host="localhost",this.path="",this.port=9200,this.query=null,this.headers=null,this.suggestCompression=!!b.suggestCompression,this.ssl=i.defaults({},a.ssl||{},b.ssl||{},n),"string"==typeof a){var c=a.indexOf(":"),e=a.indexOf("/"),o=e===-1,p=c>-1&&o,q=!p&&c",'"',"`"," ","\r","\n","\t"],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=c(22);d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=d!==-1&&d127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;B0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},function(a,b,c){var d;(function(a,e){!function(f){function g(a){throw RangeError(G[a]); }function h(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function i(a,b){var c=a.split("@"),d="";c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(F,".");var e=a.split("."),f=h(e,b).join(".");return d+f}function j(a){for(var b,c,d=[],e=0,f=a.length;e=55296&&b<=56319&&e65535&&(a-=65536,b+=J(a>>>10&1023|55296),a=56320|1023&a),b+=J(a)}).join("")}function l(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:v}function m(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function n(a,b,c){var d=0;for(a=c?I(a/z):a>>1,a+=I(a/b);a>H*x>>1;d+=v)a=I(a/H);return I(d+(H+1)*a/(a+y))}function o(a){var b,c,d,e,f,h,i,j,m,o,p=[],q=a.length,r=0,s=B,t=A;for(c=a.lastIndexOf(C),c<0&&(c=0),d=0;d=128&&g("not-basic"),p.push(a.charCodeAt(d));for(e=c>0?c+1:0;e=q&&g("invalid-input"),j=l(a.charCodeAt(e++)),(j>=v||j>I((u-r)/h))&&g("overflow"),r+=j*h,m=i<=t?w:i>=t+x?x:i-t,!(jI(u/o)&&g("overflow"),h*=o;b=p.length+1,t=n(r-f,b,0==f),I(r/b)>u-s&&g("overflow"),s+=I(r/b),r%=b,p.splice(r++,0,s)}return k(p)}function p(a){var b,c,d,e,f,h,i,k,l,o,p,q,r,s,t,y=[];for(a=j(a),q=a.length,b=B,c=0,f=A,h=0;h=b&&pI((u-c)/r)&&g("overflow"),c+=(i-b)*r,b=i,h=0;hu&&g("overflow"),p==b){for(k=c,l=v;o=l<=f?w:l>=f+x?x:l-f,!(k= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=v-w,I=Math.floor,J=String.fromCharCode;t={version:"1.3.2",ucs2:{decode:j,encode:k},decode:o,encode:p,toASCII:r,toUnicode:q},d=function(){return t}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))}(this)}).call(b,c(14)(a),function(){return this}())},function(a,b){"use strict";a.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},function(a,b,c){"use strict";b.decode=b.parse=c(23),b.encode=b.stringify=c(24)},function(a,b){"use strict";function c(a,b){return Object.prototype.hasOwnProperty.call(a,b)}a.exports=function(a,b,d,e){b=b||"&",d=d||"=";var f={};if("string"!=typeof a||0===a.length)return f;var g=/\+/g;a=a.split(b);var h=1e3;e&&"number"==typeof e.maxKeys&&(h=e.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;j=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),c(f,m)?Array.isArray(f[m])?f[m].push(n):f[m]=[f[m],n]:f[m]=n}return f}},function(a,b){"use strict";var c=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};a.exports=function(a,b,d,e){return b=b||"&",d=d||"=",null===a&&(a=void 0),"object"==typeof a?Object.keys(a).map(function(e){var f=encodeURIComponent(c(e))+d;return Array.isArray(a[e])?a[e].map(function(a){return f+encodeURIComponent(c(a))}).join(b):f+encodeURIComponent(c(a[e]))}).join(b):e?encodeURIComponent(c(e))+d+encodeURIComponent(c(a)):""}},function(a,b,c){var d=c(4);a.exports=function(a){var b=0,c=a.connectionPool,e=c._onConnectionDied,f=function(){f.timerId=a._timeout(f.timerId),a.sniff()},g=function(a){var b=d.now();return function(){return b-a}};c._onConnectionDied=function(d,h){var i=e.call(c,d,h);b=f.timerId?b+1:0;var j=c.calcDeadTimeout(b,1e3);return f.timerId&&j-1&&a%1==0&&a<=v}function s(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function t(a){return!!a&&"object"==typeof a}function u(){return!1}var v=9007199254740991,w="[object Arguments]",x="[object Function]",y="[object GeneratorFunction]",z="[object Map]",A="[object Object]",B="[object Promise]",C="[object Set]",D="[object WeakMap]",E="[object DataView]",F=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,H="object"==typeof a&&a&&a.Object===Object&&a,I="object"==typeof self&&self&&self.Object===Object&&self,J=H||I||Function("return this")(),K="object"==typeof b&&b&&!b.nodeType&&b,L=K&&"object"==typeof c&&c&&!c.nodeType&&c,M=L&&L.exports===K,N=Function.prototype,O=Object.prototype,P=J["__core-js_shared__"],Q=function(){var a=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),R=N.toString,S=O.hasOwnProperty,T=O.toString,U=RegExp("^"+R.call(S).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=M?J.Buffer:void 0,W=O.propertyIsEnumerable,X=V?V.isBuffer:void 0,Y=f(Object.keys,Object),Z=i(J,"DataView"),$=i(J,"Map"),_=i(J,"Promise"),aa=i(J,"Set"),ba=i(J,"WeakMap"),ca=!W.call({valueOf:1},"valueOf"),da=l(Z),ea=l($),fa=l(_),ga=l(aa),ha=l(ba),ia=g;(Z&&ia(new Z(new ArrayBuffer(1)))!=E||$&&ia(new $)!=z||_&&ia(_.resolve())!=B||aa&&ia(new aa)!=C||ba&&ia(new ba)!=D)&&(ia=function(a){var b=T.call(a),c=b==A?a.constructor:void 0,d=c?l(c):void 0;if(d)switch(d){case da:return E;case ea:return z;case fa:return B;case ga:return C;case ha:return D}return b});var ja=Array.isArray,ka=X||u;c.exports=p}).call(b,function(){return this}(),c(14)(a))},function(a,b,c){(function(b){function d(a){if(a=a||{},a.log){var b,c;if(c=e.isArrayOfStrings(a.log)?[{levels:a.log}]:e.createArray(a.log,function(a){return e.isPlainObject(a)?a:"string"==typeof a?{level:a}:void 0}),!c)throw new TypeError("Invalid logging output config. Expected either a log level, array of log levels, a logger config object, or an array of logger config objects.");for(b=0;b=0)return d.levels.slice(0,b+1);case"object":if(e.isArray(a)){var c=e.intersection(a,d.levels);if(c.length===a.length)return c}default:throw new TypeError("invalid logging level "+a+". Expected zero or more of these options: "+d.levels.join(", "))}},d.join=function(a){return e.map(a,function(a){return e.isPlainObject(a)?JSON.stringify(a,null,2)+"\n":a.toString()}).join(" ")},d.prototype.addOutput=function(a){a=a||{},a.levels=d.parseLevels(a.levels||a.level||"warning"),delete a.level;var c=e.funcEnum(a,"type",d.loggers,b.browser?"console":"stdio");return new c(this,a)},d.prototype.error=function(a){if(this.listenerCount("error"))return this.emit("error",a instanceof Error?a:new Error(a))},d.prototype.warning=function(){if(this.listenerCount("warning"))return this.emit("warning",d.join(arguments))},d.prototype.info=function(){if(this.listenerCount("info"))return this.emit("info",d.join(arguments))},d.prototype.debug=function(){if(this.listenerCount("debug"))return this.emit("debug",d.join(arguments))},d.prototype.trace=function(a,b,c,e,f){if(this.listenerCount("trace"))return this.emit("trace",d.normalizeTraceArgs(a,b,c,e,f))},d.normalizeTraceArgs=function(a,b,c,d,g){return"string"==typeof b?b=f.parse(b,!0,!0):(b=e.clone(b),b.path&&(b.query=f.parse(b.path,!0,!1).query),!b.pathname&&b.path&&(b.pathname=b.path.split("?").shift())),delete b.auth,{method:a,url:f.format(b),body:c,status:g,response:d}},a.exports=d}).call(b,c(3))},function(a,b){function c(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function d(a){return"function"==typeof a}function e(a){return"number"==typeof a}function f(a){return"object"==typeof a&&null!==a}function g(a){return void 0===a}a.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._maxListeners=void 0,c.defaultMaxListeners=10,c.prototype.setMaxListeners=function(a){if(!e(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},c.prototype.emit=function(a){var b,c,e,h,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;var k=new Error('Uncaught, unspecified "error" event. ('+b+")");throw k.context=b,k}if(c=this._events[a],g(c))return!1;if(d(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),c.apply(this,h)}else if(f(c))for(h=Array.prototype.slice.call(arguments,1),j=c.slice(),e=j.length,i=0;i0&&this._events[a].length>e&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())),this},c.prototype.on=c.prototype.addListener,c.prototype.once=function(a,b){function c(){this.removeListener(a,c),e||(e=!0,b.apply(this,arguments))}if(!d(b))throw TypeError("listener must be a function");var e=!1;return c.listener=b,this.on(a,c),this},c.prototype.removeListener=function(a,b){var c,e,g,h;if(!d(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],g=c.length,e=-1,c===b||d(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(f(c)){for(h=g;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){e=h;break}if(e<0)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(e,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},c.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],d(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},c.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?d(this._events[a])?[this._events[a]]:this._events[a].slice():[]},c.prototype.listenerCount=function(a){if(this._events){var b=this._events[a];if(d(b))return 1;if(b)return b.length}return 0},c.listenerCount=function(a,b){return a.listenerCount(b)}},function(a,b,c){a.exports={console:c(31)}},function(a,b,c){function d(a,b){e.call(this,a,b),this.color=!f.has(b,"color")||!!b.color}a.exports=d;var e=c(32),f=c(4);f.inherits(d,e),d.prototype.setupListeners=function(a){e.prototype.setupListeners.call(this,a)},d.prototype.write=function(a,b,c){console[c]&&console[c](this.format(a,b))},d.prototype.onError=f.handler(function(a){var b=console.error?"error":"log";this.write("Error"===a.name?"ERROR":a.name,a.stack||a.message,b)}),d.prototype.onWarning=f.handler(function(a){this.write("WARNING",a,console.warn?"warn":"log")}),d.prototype.onInfo=f.handler(function(a){this.write("INFO",a,console.info?"info":"log")}),d.prototype.onDebug=f.handler(function(a){this.write("DEBUG",a,console.debug?"debug":"log")}),d.prototype.onTrace=f.handler(function(a){this.write("TRACE",this._formatTraceMessage(a),"log")})},function(a,b,c){function d(a,b){this.log=a,this.listeningLevels=[],g.makeBoundMethods(this),this.log.once("closing",this.bound.cleanUpListeners),this.setupListeners(b.levels)}function e(a){return a<10?"0"+a.toString(10):a.toString(10)}function f(a,b){var c=g.repeat(" ",b||2);return(a||"").split(/\r?\n/).map(function(a){return c+a}).join("\n")}var g=c(4);d.prototype.timestamp=function(){var a=new Date;return a.getUTCFullYear()+"-"+e(a.getUTCMonth()+1)+"-"+e(a.getUTCDate())+"T"+e(a.getUTCHours())+":"+e(a.getUTCMinutes())+":"+e(a.getUTCSeconds())+"Z"},d.prototype.format=function(a,b){return a+": "+this.timestamp()+"\n"+f(b)+"\n\n"},d.prototype.write=function(){throw new Error("This should be overwritten by the logger")},d.prototype.setupListeners=function(a){this.cleanUpListeners(),this.listeningLevels=[],g.each(a,g.bind(function(a){var b="on"+g.ucfirst(a);if(!this.bound[b])throw new Error('Unable to listen for level "'+a+'"');this.listeningLevels.push(a),this.log.on(a,this.bound[b])},this))},d.prototype.cleanUpListeners=g.handler(function(){g.each(this.listeningLevels,g.bind(function(a){this.log.removeListener(a,this.bound["on"+g.ucfirst(a)])},this))}),d.prototype.onError=g.handler(function(a){this.write("Error"===a.name?"ERROR":a.name,a.stack)}),d.prototype.onWarning=g.handler(function(a){this.write("WARNING",a)}),d.prototype.onInfo=g.handler(function(a){this.write("INFO",a)}),d.prototype.onDebug=g.handler(function(a){this.write("DEBUG",a)}),d.prototype.onTrace=g.handler(function(a){this.write("TRACE",this._formatTraceMessage(a))}),d.prototype._formatTraceMessage=function(a){return"-> "+a.method+" "+a.url+"\n"+this._prettyJson(a.body)+"\n<- "+a.status+"\n"+this._prettyJson(a.response)},d.prototype._prettyJson=function(a){try{return"string"==typeof a&&(a=JSON.parse(a)),JSON.stringify(a,null," ").replace(/'/g,"\\u0027")}catch(b){return"string"==typeof a?a:""}},a.exports=d},function(a,b,c){(function(b){function d(a){a=a||{},e.makeBoundMethods(this),a.log?this.log=a.log:(this.log=new f,a.log=this.log),this._config=a,this.selector=e.funcEnum(a,"selector",d.selectors,d.defaultSelector),this.Connection=e.funcEnum(a,"connectionClass",d.connectionClasses,d.defaultConnectionClass),this.deadTimeout=a.hasOwnProperty("deadTimeout")?a.deadTimeout:6e4,this.maxDeadTimeout=a.hasOwnProperty("maxDeadTimeout")?a.maxDeadTimeout:18e5,this.calcDeadTimeout=e.funcEnum(a,"calcDeadTimeout",d.calcDeadTimeoutOptions,"exponential"),this.index={},this._conns={alive:[],dead:[]},this._timeouts=[]}a.exports=d;var e=c(4),f=c(28);d.selectors=c(34),d.defaultSelector="roundRobin",d.connectionClasses=c(37),d.defaultConnectionClass=d.connectionClasses._default,delete d.connectionClasses._default,d.calcDeadTimeoutOptions={flat:function(a,b){return b},exponential:function(a,b){return Math.min(2*b*Math.pow(2,.5*a-1),this.maxDeadTimeout)}},d.prototype.select=function(a){if(this._conns.alive.length)if(this.selector.length>1)this.selector(this._conns.alive,a);else try{e.nextTick(a,void 0,this.selector(this._conns.alive))}catch(b){a(b)}else this._timeouts.length?this._selectDeadConnection(a):e.nextTick(a,void 0)},d.prototype.onStatusSet=e.handler(function(a,b,c){var d,f="dead"===a,g=f&&"dead"===b,h=!f&&"dead"===b,i=b===a,j=this._conns[b],k=this._conns[a];return!(!i||f)||(j!==k&&(e.isArray(j)&&(d=j.indexOf(c),d!==-1&&j.splice(d,1)),e.isArray(k)&&(d=k.indexOf(c),d===-1&&k.push(c))),f&&this._onConnectionDied(c,g),void(h&&this._onConnectionRevived(c)))}),d.prototype._onConnectionRevived=function(a){for(var b,c=0;c-1){var k=g.split("/");if(2!==k.length)throw i;h.host=k.shift(),g=k.shift()}if(g.indexOf(":")<0)throw i;var l=g.split(":");if(2!==l.length)throw i;h.host=h.host||l[0],h.port=parseInt(l[1],10),b.push(h)}},[])}}var e=c(4),f=/\[(?:(.*)\/)?(.+?):(\d+)\]/;a.exports=d("http.publish_address")},function(a,b,c){function d(a){a=a||h.identity;var b=function(b){function c(a,c){"function"==typeof a?(c=a,a={}):(a=a||{},c="function"==typeof c?c:null);try{return f(this.transport,b,h.clone(a),c)}catch(a){if("function"!=typeof c){var d=this.transport.defer();return d.reject(a),d.promise}h.nextTick(c,a)}}return b=a(b),h.isPlainObject(b.params)||(b.params={}),b.method||(b.method="GET"),c.spec=b,c};return b.proxy=function(a,b){return function(c,d){return"function"==typeof c?(d=c,c={}):(c=c||{},d="function"==typeof d?d:null),b.transform&&b.transform(c),a.call(this,c,d)}},b}function e(a,b){var c,d,e={};if(a.req)for(a.reqParamKeys||(a.reqParamKeys=h.keys(a.req)),c=0;c-1&&(c=g(c)),h.isArray(c))return c.map(function(c){return a(b,c,d)}).join(",");for(var e=0;e1?"one of "+b.options.join(","):b.options[0]))},duration:function(a,b,c){if(h.isNumeric(b)||h.isInterval(b))return b;throw new TypeError("Invalid "+c+": expected a number or interval (an integer followed by one of M, w, d, h, m, s, y or ms).")},list:function(a,b,c){switch(typeof b){case"number":case"boolean":return""+b;case"string":b=g(b);case"object":if(h.isArray(b))return b.join(",");default:throw new TypeError("Invalid "+c+": expected be a comma separated list, array, number or string.")}},boolean:function(a,b){return b=h.isString(b)?b.toLowerCase():b,"no"!==b&&"off"!==b&&!!b},number:function(a,b,c){if(h.isNumeric(b))return 1*b;throw new TypeError("Invalid "+c+": expected a number.")},string:function(a,b,c){switch(typeof b){case"number":case"string":return""+b;default:throw new TypeError("Invalid "+c+": expected a string.")}},time:function(a,b,c){if("string"==typeof b)return b;if(h.isNumeric(b))return""+b;if(b instanceof Date)return""+b.getTime();throw new TypeError("Invalid "+c+": expected some sort of time.")}}},function(a,b,c){a.exports={_default:c(48),5.3:c(48),5.2:c(49),5.1:c(50),"5.0":c(51),2.4:c(52),"5.x":c(53),5.4:c(54),master:c(55)}},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{ type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}]}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch", req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards" }},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},human:{type:"boolean",default:!1},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},human:{type:"boolean",default:!1},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{ fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"integer",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}], needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},human:{type:"boolean",default:!1},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},human:{type:"boolean",default:!1},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"integer",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"integer",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT" }),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},human:{type:"boolean",default:!1},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},human:{type:"boolean",default:!1},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},rewrite:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},human:{type:"boolean",default:!1},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST" }),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","nodes","snapshot","tasks"],f.bulk=d({params:{consistency:{type:"enum",options:["one","quorum","all"]},refresh:{type:"boolean"},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{bytes:{type:"enum",options:["b","k","m","g"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}}}),f.cat.prototype.threadPool=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},v:{type:"boolean",default:!1},fullId:{type:"boolean",default:!1,name:"full_id"}},url:{fmt:"/_cat/thread_pool"}}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"DELETE"}),f.cluster=e(),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"number",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForRelocatingShards:{type:"number",name:"wait_for_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.delete=d({params:{consistency:{type:"enum",options:["one","quorum","all"]},parent:{type:"string"},refresh:{type:"boolean"},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteScript=d({params:{version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteTemplate=d({params:{version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},fields:{type:"list"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{fields:{type:"list"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({params:{version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({params:{version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{consistency:{type:"enum",options:["one","quorum","all"]},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"boolean"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilters:{type:"list",name:"char_filters"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filters:{type:"list"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"POST"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.deleteWarmer=d({params:{masterTimeout:{type:"time",name:"master_timeout"},name:{type:"list"}},url:{fmt:"/<%=index%>/_warmer/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_warmers","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getAliases=d({params:{timeout:{type:"time"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_aliases/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_aliases",req:{index:{type:"list"}}},{fmt:"/_aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_aliases"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean", name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.getWarmer=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_warmer/<%=name%>",req:{index:{type:"list"},type:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_warmer/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_warmer",req:{index:{type:"list"}}},{fmt:"/_warmer/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_warmer"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.optimize=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_optimize",req:{index:{type:"list"}}},{fmt:"/_optimize"}],method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.putWarmer=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_warmer/<%=name%>",req:{index:{type:"list"},type:{type:"list"},name:{type:"string"}}},{fmt:"/<%=index%>/_warmer/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},{fmt:"/_warmer/<%=name%>",req:{name:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},human:{type:"boolean",default:!1},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},rewrite:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.mget=d({params:{fields:{type:"list"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch","count","scan"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},human:{type:"boolean",default:!1},level:{type:"enum",default:"node",options:["node","indices","shards"]},types:{type:"list"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({params:{opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},needBody:!0,method:"PUT"}),f.putTemplate=d({params:{opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},consistency:{type:"enum",options:["one","quorum","all"]},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},fields:{type:"list"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch","count","scan"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchExists=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/exists",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/exists",req:{index:{type:"list"}}},{fmt:"/_search/exists"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch","count","scan"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"}},urls:[{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}},{fmt:"/_tasks"}]}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},dfs:{type:"boolean",default:!1,required:!1},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{consistency:{type:"enum",options:["one","quorum","all"]},fields:{type:"list"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"boolean"},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},script:{type:"string"},scriptId:{type:"string",name:"script_id"},scriptedUpsert:{type:"boolean",name:"scripted_upsert"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},fields:{type:"list"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time",default:"1m"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},consistency:{type:"enum",options:["one","quorum","all"]},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"}),f.create=d.proxy(f.index,{transform:function(a){a.op_type="create"}})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","remote","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{ type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}]}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({ params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.remote=e(),f.remote.prototype.info=d({url:{fmt:"/_remote/info"}}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","remote","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number", default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}]}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},percolateRouting:{type:"string",name:"percolate_routing"},percolatePreference:{type:"string",name:"percolate_preference"},percolateFormat:{type:"enum",options:["ids"],name:"percolate_format"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.remote=e(),f.remote.prototype.info=d({url:{fmt:"/_remote/info"}}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"], name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices","ingest","nodes","remote","snapshot","tasks"],f.bulk=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),f.cat=e(),f.cat.prototype.aliases=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),f.cat.prototype.allocation=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),f.cat.prototype.count=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),f.cat.prototype.fielddata=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),f.cat.prototype.health=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),f.cat.prototype.help=d({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),f.cat.prototype.indices=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),f.cat.prototype.master=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),f.cat.prototype.nodeattrs=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),f.cat.prototype.nodes=d({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),f.cluster.prototype.health=d({params:{level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),f.cluster.prototype.pendingTasks=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),f.cluster.prototype.putSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},method:"PUT"}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}]}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteTemplate=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),f.indices.prototype.exists=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),f.indices.prototype.existsTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),f.indices.prototype.existsType=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),f.indices.prototype.flush=d({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),f.indices.prototype.flushSynced=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),f.indices.prototype.forcemerge=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),f.indices.prototype.get=d({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/<%=feature%>",req:{index:{type:"list"},feature:{type:"list",options:["_settings","_mappings","_aliases"]}}},{fmt:"/<%=index%>",req:{index:{type:"list"}}}]}),f.indices.prototype.getAlias=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list" }}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),f.indices.prototype.updateAliases=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),f.indices.prototype.upgrade=d({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),f.indices.prototype.validateQuery=d({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_validate/query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),f.info=d({url:{fmt:"/"}}),f.ingest=e(),f.ingest.prototype.deletePipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.ingest.prototype.getPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),f.ingest.prototype.putPipeline=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.ingest.prototype.simulate=d({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.remote=e(),f.remote.prototype.info=d({url:{fmt:"/_remote/info"}}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})}])}); }());