diff --git a/browser/elastic-builder.min.js b/browser/elastic-builder.min.js index d484ecd..bda89b5 100644 --- a/browser/elastic-builder.min.js +++ b/browser/elastic-builder.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=42)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(43),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(46),e.GeoShape=r(47),e.IndexedShape=r(48),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(49),e.consts=r(17),e.util=r(6)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=w.Symbol,Q=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=k?k.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(45),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),k=N(l,"Map"),Q=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(k),j=B(Q),$=B(E),C=B(P);function R(t){return!(!W(t)||function(t){return!!w&&w in t}(t))&&(U(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||k&&G(new k)!=u||Q&&"[object Promise]"!=G(Q.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!U(t)}var J=q||function(){return!1};function U(t){var e=W(t)?b.call(t):"";return e==n||e==o}function W(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(16),r(44)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(18);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(17),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(18),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(17),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";e.MatchAllQuery=r(50),e.MatchNoneQuery=r(51),e.fullTextQueries=r(52),e.termLevelQueries=r(39),e.compoundQueries=r(71),e.joiningQueries=r(84),e.geoQueries=r(89),e.specializedQueries=r(94),e.spanQueries=r(99)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(60),e.TermsQuery=r(61),e.TermsSetQuery=r(62),e.RangeQuery=r(63),e.ExistsQuery=r(64),e.PrefixQuery=r(65),e.WildcardQuery=r(66),e.RegexpQuery=r(67),e.FuzzyQuery=r(68),e.TypeQuery=r(69),e.IdsQuery=r(70)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(72),e.WeightScoreFunction=r(73),e.RandomScoreFunction=r(74),e.FieldValueFactorFunction=r(75),e.DecayScoreFunction=r(76)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,SearchTemplate:l,Query:p,util:{constructorWrapper:_}}=r(1),{MatchAllQuery:f,MatchNoneQuery:d,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:m,MatchPhrasePrefixQuery:w,MultiMatchQuery:x,CommonTermsQuery:O,QueryStringQuery:b,SimpleQueryStringQuery:S},termLevelQueries:{TermQuery:v,TermsQuery:A,TermsSetQuery:q,RangeQuery:D,ExistsQuery:T,PrefixQuery:k,WildcardQuery:Q,RegexpQuery:E,FuzzyQuery:P,TypeQuery:z,IdsQuery:M},compoundQueries:{ConstantScoreQuery:F,BoolQuery:j,DisMaxQuery:$,FunctionScoreQuery:C,BoostingQuery:R,scoreFunctions:{ScriptScoreFunction:N,WeightScoreFunction:G,RandomScoreFunction:B,FieldValueFactorFunction:L,DecayScoreFunction:H}},joiningQueries:{NestedQuery:I,HasChildQuery:J,HasParentQuery:U,ParentIdQuery:W},geoQueries:{GeoShapeQuery:V,GeoBoundingBoxQuery:Z,GeoDistanceQuery:K,GeoPolygonQuery:Y},specializedQueries:{MoreLikeThisQuery:X,ScriptQuery:tt,PercolateQuery:et,DistanceFeatureQuery:rt},spanQueries:{SpanTermQuery:st,SpanMultiTermQuery:it,SpanFirstQuery:nt,SpanNearQuery:ot,SpanOrQuery:ut,SpanNotQuery:ct,SpanContainingQuery:at,SpanWithinQuery:ht,SpanFieldMaskingQuery:gt}}=r(38),{metricsAggregations:{AvgAggregation:lt,CardinalityAggregation:pt,ExtendedStatsAggregation:_t,GeoBoundsAggregation:ft,GeoCentroidAggregation:dt,MaxAggregation:yt,MinAggregation:mt,PercentilesAggregation:wt,PercentileRanksAggregation:xt,ScriptedMetricAggregation:Ot,StatsAggregation:bt,SumAggregation:St,TopHitsAggregation:vt,ValueCountAggregation:At},bucketAggregations:{AdjacencyMatrixAggregation:qt,ChildrenAggregation:Dt,CompositeAggregation:Tt,DateHistogramAggregation:kt,AutoDateHistogramAggregation:Qt,VariableWidthHistogramAggregation:Et,DateRangeAggregation:Pt,DiversifiedSamplerAggregation:zt,FilterAggregation:Mt,FiltersAggregation:Ft,GeoDistanceAggregation:jt,GeoHashGridAggregation:$t,GeoHexGridAggregation:Ct,GeoTileGridAggregation:Rt,GlobalAggregation:Nt,HistogramAggregation:Gt,IpRangeAggregation:Bt,MissingAggregation:Lt,NestedAggregation:Ht,ParentAggregation:It,RangeAggregation:Jt,RareTermsAggregation:Ut,ReverseNestedAggregation:Wt,SamplerAggregation:Vt,SignificantTermsAggregation:Zt,SignificantTextAggregation:Kt,TermsAggregation:Yt},pipelineAggregations:{AvgBucketAggregation:Xt,DerivativeAggregation:te,MaxBucketAggregation:ee,MinBucketAggregation:re,SumBucketAggregation:se,StatsBucketAggregation:ie,ExtendedStatsBucketAggregation:ne,PercentilesBucketAggregation:oe,MovingAverageAggregation:ue,MovingFunctionAggregation:ce,CumulativeSumAggregation:ae,BucketScriptAggregation:he,BucketSelectorAggregation:ge,SerialDifferencingAggregation:le,BucketSortAggregation:pe},matrixAggregations:{MatrixStatsAggregation:_e}}=r(109),{TermSuggester:fe,DirectGenerator:de,PhraseSuggester:ye,CompletionSuggester:me}=r(175),we=r(180);e.RequestBodySearch=s,e.requestBodySearch=_(s),e.Query=p,e.query=_(p),e.MatchAllQuery=f,e.matchAllQuery=_(f),e.MatchNoneQuery=d,e.matchNoneQuery=_(d),e.MatchQuery=y,e.matchQuery=_(y),e.MatchPhraseQuery=m,e.matchPhraseQuery=_(m),e.MatchPhrasePrefixQuery=w,e.matchPhrasePrefixQuery=_(w),e.MultiMatchQuery=x,e.multiMatchQuery=_(x),e.CommonTermsQuery=O,e.commonTermsQuery=_(O),e.QueryStringQuery=b,e.queryStringQuery=_(b),e.SimpleQueryStringQuery=S,e.simpleQueryStringQuery=_(S),e.TermQuery=v,e.termQuery=_(v),e.TermsQuery=A,e.termsQuery=_(A),e.TermsSetQuery=q,e.termsSetQuery=_(q),e.RangeQuery=D,e.rangeQuery=_(D),e.ExistsQuery=T,e.existsQuery=_(T),e.PrefixQuery=k,e.prefixQuery=_(k),e.WildcardQuery=Q,e.wildcardQuery=_(Q),e.RegexpQuery=E,e.regexpQuery=_(E),e.FuzzyQuery=P,e.fuzzyQuery=_(P),e.TypeQuery=z,e.typeQuery=_(z),e.IdsQuery=M,e.idsQuery=_(M),e.ConstantScoreQuery=F,e.constantScoreQuery=_(F),e.BoolQuery=j,e.boolQuery=_(j),e.DisMaxQuery=$,e.disMaxQuery=_($),e.FunctionScoreQuery=C,e.functionScoreQuery=_(C),e.BoostingQuery=R,e.boostingQuery=_(R),e.NestedQuery=I,e.nestedQuery=_(I),e.HasChildQuery=J,e.hasChildQuery=_(J),e.HasParentQuery=U,e.hasParentQuery=_(U),e.ParentIdQuery=W,e.parentIdQuery=_(W),e.GeoShapeQuery=V,e.geoShapeQuery=_(V),e.GeoBoundingBoxQuery=Z,e.geoBoundingBoxQuery=_(Z),e.GeoDistanceQuery=K,e.geoDistanceQuery=_(K),e.GeoPolygonQuery=Y,e.geoPolygonQuery=_(Y),e.MoreLikeThisQuery=X,e.moreLikeThisQuery=_(X),e.ScriptQuery=tt,e.scriptQuery=_(tt),e.PercolateQuery=et,e.percolateQuery=_(et),e.DistanceFeatureQuery=rt,e.distanceFeatureQuery=_(rt),e.SpanTermQuery=st,e.spanTermQuery=_(st),e.SpanMultiTermQuery=it,e.spanMultiTermQuery=_(it),e.SpanFirstQuery=nt,e.spanFirstQuery=_(nt),e.SpanNearQuery=ot,e.spanNearQuery=_(ot),e.SpanOrQuery=ut,e.spanOrQuery=_(ut),e.SpanNotQuery=ct,e.spanNotQuery=_(ct),e.SpanContainingQuery=at,e.spanContainingQuery=_(at),e.SpanWithinQuery=ht,e.spanWithinQuery=_(ht),e.SpanFieldMaskingQuery=gt,e.spanFieldMaskingQuery=_(gt),e.AvgAggregation=lt,e.avgAggregation=_(lt),e.CardinalityAggregation=pt,e.cardinalityAggregation=_(pt),e.ExtendedStatsAggregation=_t,e.extendedStatsAggregation=_(_t),e.GeoBoundsAggregation=ft,e.geoBoundsAggregation=_(ft),e.GeoCentroidAggregation=dt,e.geoCentroidAggregation=_(dt),e.MaxAggregation=yt,e.maxAggregation=_(yt),e.MinAggregation=mt,e.minAggregation=_(mt),e.PercentilesAggregation=wt,e.percentilesAggregation=_(wt),e.PercentileRanksAggregation=xt,e.percentileRanksAggregation=_(xt),e.ScriptedMetricAggregation=Ot,e.scriptedMetricAggregation=_(Ot),e.StatsAggregation=bt,e.statsAggregation=_(bt),e.SumAggregation=St,e.sumAggregation=_(St),e.TopHitsAggregation=vt,e.topHitsAggregation=_(vt),e.ValueCountAggregation=At,e.valueCountAggregation=_(At),e.AdjacencyMatrixAggregation=qt,e.adjacencyMatrixAggregation=_(qt),e.ChildrenAggregation=Dt,e.childrenAggregation=_(Dt),e.CompositeAggregation=Tt,e.compositeAggregation=_(Tt),e.DateHistogramAggregation=kt,e.dateHistogramAggregation=_(kt),e.AutoDateHistogramAggregation=Qt,e.autoDateHistogramAggregation=_(Qt),e.VariableWidthHistogramAggregation=Et,e.variableWidthHistogramAggregation=_(Et),e.DateRangeAggregation=Pt,e.dateRangeAggregation=_(Pt),e.DiversifiedSamplerAggregation=zt,e.diversifiedSamplerAggregation=_(zt),e.FilterAggregation=Mt,e.filterAggregation=_(Mt),e.FiltersAggregation=Ft,e.filtersAggregation=_(Ft),e.GeoDistanceAggregation=jt,e.geoDistanceAggregation=_(jt),e.GeoHashGridAggregation=$t,e.geoHashGridAggregation=_($t),e.GeoHexGridAggregation=Ct,e.geoHexGridAggregation=_(Ct),e.GeoTileGridAggregation=Rt,e.geoTileGridAggregation=_(Rt),e.GlobalAggregation=Nt,e.globalAggregation=_(Nt),e.HistogramAggregation=Gt,e.histogramAggregation=_(Gt),e.IpRangeAggregation=Bt,e.ipRangeAggregation=_(Bt),e.MissingAggregation=Lt,e.missingAggregation=_(Lt),e.NestedAggregation=Ht,e.nestedAggregation=_(Ht),e.ParentAggregation=It,e.parentAggregation=_(It),e.RangeAggregation=Jt,e.rangeAggregation=_(Jt),e.RareTermsAggregation=Ut,e.rareTermsAggregation=_(Ut),e.ReverseNestedAggregation=Wt,e.reverseNestedAggregation=_(Wt),e.SamplerAggregation=Vt,e.samplerAggregation=_(Vt),e.SignificantTermsAggregation=Zt,e.significantTermsAggregation=_(Zt),e.SignificantTextAggregation=Kt,e.significantTextAggregation=_(Kt),e.TermsAggregation=Yt,e.termsAggregation=_(Yt),e.AvgBucketAggregation=Xt,e.avgBucketAggregation=_(Xt),e.DerivativeAggregation=te,e.derivativeAggregation=_(te),e.MaxBucketAggregation=ee,e.maxBucketAggregation=_(ee),e.MinBucketAggregation=re,e.minBucketAggregation=_(re),e.BucketSortAggregation=pe,e.bucketSortAggregation=_(pe),e.SumBucketAggregation=se,e.sumBucketAggregation=_(se),e.StatsBucketAggregation=ie,e.statsBucketAggregation=_(ie),e.ExtendedStatsBucketAggregation=ne,e.extendedStatsBucketAggregation=_(ne),e.PercentilesBucketAggregation=oe,e.percentilesBucketAggregation=_(oe),e.MovingAverageAggregation=ue,e.movingAverageAggregation=_(ue),e.MovingFunctionAggregation=ce,e.movingFunctionAggregation=_(ce),e.CumulativeSumAggregation=ae,e.cumulativeSumAggregation=_(ae),e.BucketScriptAggregation=he,e.bucketScriptAggregation=_(he),e.BucketSelectorAggregation=ge,e.bucketSelectorAggregation=_(ge),e.SerialDifferencingAggregation=le,e.serialDifferencingAggregation=_(le),e.MatrixStatsAggregation=_e,e.matrixStatsAggregation=_(_e),e.ScriptScoreFunction=N,e.scriptScoreFunction=_(N),e.WeightScoreFunction=G,e.weightScoreFunction=_(G),e.RandomScoreFunction=B,e.randomScoreFunction=_(B),e.FieldValueFactorFunction=L,e.fieldValueFactorFunction=_(L),e.DecayScoreFunction=H,e.decayScoreFunction=_(H),e.TermSuggester=fe,e.termSuggester=_(fe),e.DirectGenerator=de,e.directGenerator=_(de),e.PhraseSuggester=ye,e.phraseSuggester=_(ye),e.CompletionSuggester=me,e.completionSuggester=_(me),e.recipes=we,e.cookMissingQuery=we.missingQuery,e.cookRandomSortQuery=we.randomSortQuery,e.cookFilterQuery=we.filterQuery,e.Highlight=i,e.highlight=_(i),e.Script=n,e.script=_(n),e.GeoPoint=o,e.geoPoint=_(o),e.GeoShape=u,e.geoShape=_(u),e.IndexedShape=c,e.indexedShape=_(c),e.Sort=a,e.sort=_(a),e.Rescore=h,e.rescore=_(h),e.InnerHits=g,e.innerHits=_(g),e.SearchTemplate=l,e.searchTemplate=_(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6);function d(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=d(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=d(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=w.Symbol,Q=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=k?k.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(17),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(18),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(53),e.MatchPhraseQuery=r(54),e.MatchPhrasePrefixQuery=r(55),e.MultiMatchQuery=r(56),e.CommonTermsQuery=r(57),e.QueryStringQuery=r(58),e.SimpleQueryStringQuery=r(59)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(18),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(41),e.ConstantScoreQuery=r(77),e.BoolQuery=r(78),e.DisMaxQuery=r(81),e.FunctionScoreQuery=r(82),e.BoostingQuery=r(83)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(79),n=r(80),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?k.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):U(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(41),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(85),e.HasChildQuery=r(86),e.HasParentQuery=r(87),e.ParentIdQuery=r(88)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(14),e.GeoShapeQuery=r(90),e.GeoBoundingBoxQuery=r(91),e.GeoDistanceQuery=r(92),e.GeoPolygonQuery=r(93)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(14),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(14);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(95),e.ScriptQuery=r(96),e.PercolateQuery=r(97),e.DistanceFeatureQuery=r(98)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(100),e.SpanMultiTermQuery=r(101),e.SpanFirstQuery=r(102),e.SpanNearQuery=r(103),e.SpanOrQuery=r(104),e.SpanNotQuery=r(105),e.SpanContainingQuery=r(106),e.SpanWithinQuery=r(107),e.SpanFieldMaskingQuery=r(108)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(39),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(110),e.bucketAggregations=r(125),e.pipelineAggregations=r(157),e.matrixAggregations=r(173)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(4),e.AvgAggregation=r(111),e.CardinalityAggregation=r(112),e.ExtendedStatsAggregation=r(113),e.GeoBoundsAggregation=r(114),e.GeoCentroidAggregation=r(115),e.MaxAggregation=r(116),e.MinAggregation=r(117),e.PercentilesAggregation=r(118),e.PercentileRanksAggregation=r(119),e.ScriptedMetricAggregation=r(120),e.StatsAggregation=r(121),e.SumAggregation=r(122),e.TopHitsAggregation=r(123),e.ValueCountAggregation=r(124)},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(4),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(4),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(15),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(126),e.ChildrenAggregation=r(127),e.CompositeAggregation=r(128),e.DateHistogramAggregation=r(133),e.AutoDateHistogramAggregation=r(134),e.VariableWidthHistogramAggregation=r(135),e.DateRangeAggregation=r(136),e.DiversifiedSamplerAggregation=r(137),e.FilterAggregation=r(138),e.FiltersAggregation=r(139),e.GeoDistanceAggregation=r(140),e.GeoHashGridAggregation=r(141),e.GeoHexGridAggregation=r(142),e.GeoTileGridAggregation=r(143),e.GlobalAggregation=r(144),e.HistogramAggregation=r(145),e.IpRangeAggregation=r(146),e.MissingAggregation=r(147),e.NestedAggregation=r(148),e.ParentAggregation=r(149),e.RangeAggregation=r(150),e.RareTermsAggregation=r(151),e.ReverseNestedAggregation=r(152),e.SamplerAggregation=r(153),e.SignificantTermsAggregation=r(154),e.SignificantTextAggregation=r(155),e.TermsAggregation=r(156)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(129);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(130),e.HistogramValuesSource=r(131),e.DateHistogramValuesSource=r(132)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(15),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(15),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(3),e.AvgBucketAggregation=r(158),e.DerivativeAggregation=r(159),e.MaxBucketAggregation=r(160),e.MinBucketAggregation=r(161),e.SumBucketAggregation=r(162),e.StatsBucketAggregation=r(163),e.ExtendedStatsBucketAggregation=r(164),e.PercentilesBucketAggregation=r(165),e.MovingAverageAggregation=r(166),e.MovingFunctionAggregation=r(167),e.CumulativeSumAggregation=r(168),e.BucketScriptAggregation=r(169),e.BucketSelectorAggregation=r(170),e.SerialDifferencingAggregation=r(171),e.BucketSortAggregation=r(172)},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(3),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(174)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(176),e.DirectGenerator=r(177),e.PhraseSuggester=r(178),e.CompletionSuggester=r(179)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(38),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=42)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(43),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(46),e.GeoShape=r(47),e.IndexedShape=r(48),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(49),e.consts=r(17),e.util=r(6)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(45),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),Q=N(l,"Map"),k=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(Q),j=B(k),$=B(E),C=B(P);function R(t){return!(!W(t)||function(t){return!!w&&w in t}(t))&&(U(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||Q&&G(new Q)!=u||k&&"[object Promise]"!=G(k.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!U(t)}var J=q||function(){return!1};function U(t){var e=W(t)?b.call(t):"";return e==n||e==o}function W(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(16),r(44)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(18);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(17),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(18),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(17),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";e.MatchAllQuery=r(50),e.MatchNoneQuery=r(51),e.fullTextQueries=r(52),e.termLevelQueries=r(39),e.compoundQueries=r(71),e.joiningQueries=r(84),e.geoQueries=r(89),e.specializedQueries=r(94),e.spanQueries=r(100)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(60),e.TermsQuery=r(61),e.TermsSetQuery=r(62),e.RangeQuery=r(63),e.ExistsQuery=r(64),e.PrefixQuery=r(65),e.WildcardQuery=r(66),e.RegexpQuery=r(67),e.FuzzyQuery=r(68),e.TypeQuery=r(69),e.IdsQuery=r(70)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(72),e.WeightScoreFunction=r(73),e.RandomScoreFunction=r(74),e.FieldValueFactorFunction=r(75),e.DecayScoreFunction=r(76)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,SearchTemplate:l,Query:p,util:{constructorWrapper:_}}=r(1),{MatchAllQuery:f,MatchNoneQuery:d,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:m,MatchPhrasePrefixQuery:w,MultiMatchQuery:x,CommonTermsQuery:O,QueryStringQuery:b,SimpleQueryStringQuery:S},termLevelQueries:{TermQuery:v,TermsQuery:A,TermsSetQuery:q,RangeQuery:D,ExistsQuery:T,PrefixQuery:Q,WildcardQuery:k,RegexpQuery:E,FuzzyQuery:P,TypeQuery:z,IdsQuery:M},compoundQueries:{ConstantScoreQuery:F,BoolQuery:j,DisMaxQuery:$,FunctionScoreQuery:C,BoostingQuery:R,scoreFunctions:{ScriptScoreFunction:N,WeightScoreFunction:G,RandomScoreFunction:B,FieldValueFactorFunction:L,DecayScoreFunction:H}},joiningQueries:{NestedQuery:I,HasChildQuery:J,HasParentQuery:U,ParentIdQuery:W},geoQueries:{GeoShapeQuery:V,GeoBoundingBoxQuery:Z,GeoDistanceQuery:K,GeoPolygonQuery:Y},specializedQueries:{MoreLikeThisQuery:X,ScriptQuery:tt,ScriptScoreQuery:et,PercolateQuery:rt,DistanceFeatureQuery:st},spanQueries:{SpanTermQuery:it,SpanMultiTermQuery:nt,SpanFirstQuery:ot,SpanNearQuery:ut,SpanOrQuery:ct,SpanNotQuery:at,SpanContainingQuery:ht,SpanWithinQuery:gt,SpanFieldMaskingQuery:lt}}=r(38),{metricsAggregations:{AvgAggregation:pt,CardinalityAggregation:_t,ExtendedStatsAggregation:ft,GeoBoundsAggregation:dt,GeoCentroidAggregation:yt,MaxAggregation:mt,MinAggregation:wt,PercentilesAggregation:xt,PercentileRanksAggregation:Ot,ScriptedMetricAggregation:bt,StatsAggregation:St,SumAggregation:vt,TopHitsAggregation:At,ValueCountAggregation:qt},bucketAggregations:{AdjacencyMatrixAggregation:Dt,ChildrenAggregation:Tt,CompositeAggregation:Qt,DateHistogramAggregation:kt,AutoDateHistogramAggregation:Et,VariableWidthHistogramAggregation:Pt,DateRangeAggregation:zt,DiversifiedSamplerAggregation:Mt,FilterAggregation:Ft,FiltersAggregation:jt,GeoDistanceAggregation:$t,GeoHashGridAggregation:Ct,GeoHexGridAggregation:Rt,GeoTileGridAggregation:Nt,GlobalAggregation:Gt,HistogramAggregation:Bt,IpRangeAggregation:Lt,MissingAggregation:Ht,NestedAggregation:It,ParentAggregation:Jt,RangeAggregation:Ut,RareTermsAggregation:Wt,ReverseNestedAggregation:Vt,SamplerAggregation:Zt,SignificantTermsAggregation:Kt,SignificantTextAggregation:Yt,TermsAggregation:Xt},pipelineAggregations:{AvgBucketAggregation:te,DerivativeAggregation:ee,MaxBucketAggregation:re,MinBucketAggregation:se,SumBucketAggregation:ie,StatsBucketAggregation:ne,ExtendedStatsBucketAggregation:oe,PercentilesBucketAggregation:ue,MovingAverageAggregation:ce,MovingFunctionAggregation:ae,CumulativeSumAggregation:he,BucketScriptAggregation:ge,BucketSelectorAggregation:le,SerialDifferencingAggregation:pe,BucketSortAggregation:_e},matrixAggregations:{MatrixStatsAggregation:fe}}=r(110),{TermSuggester:de,DirectGenerator:ye,PhraseSuggester:me,CompletionSuggester:we}=r(176),xe=r(181);e.RequestBodySearch=s,e.requestBodySearch=_(s),e.Query=p,e.query=_(p),e.MatchAllQuery=f,e.matchAllQuery=_(f),e.MatchNoneQuery=d,e.matchNoneQuery=_(d),e.MatchQuery=y,e.matchQuery=_(y),e.MatchPhraseQuery=m,e.matchPhraseQuery=_(m),e.MatchPhrasePrefixQuery=w,e.matchPhrasePrefixQuery=_(w),e.MultiMatchQuery=x,e.multiMatchQuery=_(x),e.CommonTermsQuery=O,e.commonTermsQuery=_(O),e.QueryStringQuery=b,e.queryStringQuery=_(b),e.SimpleQueryStringQuery=S,e.simpleQueryStringQuery=_(S),e.TermQuery=v,e.termQuery=_(v),e.TermsQuery=A,e.termsQuery=_(A),e.TermsSetQuery=q,e.termsSetQuery=_(q),e.RangeQuery=D,e.rangeQuery=_(D),e.ExistsQuery=T,e.existsQuery=_(T),e.PrefixQuery=Q,e.prefixQuery=_(Q),e.WildcardQuery=k,e.wildcardQuery=_(k),e.RegexpQuery=E,e.regexpQuery=_(E),e.FuzzyQuery=P,e.fuzzyQuery=_(P),e.TypeQuery=z,e.typeQuery=_(z),e.IdsQuery=M,e.idsQuery=_(M),e.ConstantScoreQuery=F,e.constantScoreQuery=_(F),e.BoolQuery=j,e.boolQuery=_(j),e.DisMaxQuery=$,e.disMaxQuery=_($),e.FunctionScoreQuery=C,e.functionScoreQuery=_(C),e.BoostingQuery=R,e.boostingQuery=_(R),e.NestedQuery=I,e.nestedQuery=_(I),e.HasChildQuery=J,e.hasChildQuery=_(J),e.HasParentQuery=U,e.hasParentQuery=_(U),e.ParentIdQuery=W,e.parentIdQuery=_(W),e.GeoShapeQuery=V,e.geoShapeQuery=_(V),e.GeoBoundingBoxQuery=Z,e.geoBoundingBoxQuery=_(Z),e.GeoDistanceQuery=K,e.geoDistanceQuery=_(K),e.GeoPolygonQuery=Y,e.geoPolygonQuery=_(Y),e.MoreLikeThisQuery=X,e.moreLikeThisQuery=_(X),e.ScriptQuery=tt,e.scriptQuery=_(tt),e.ScriptScoreQuery=et,e.scriptScoreQuery=_(et),e.PercolateQuery=rt,e.percolateQuery=_(rt),e.DistanceFeatureQuery=st,e.distanceFeatureQuery=_(st),e.SpanTermQuery=it,e.spanTermQuery=_(it),e.SpanMultiTermQuery=nt,e.spanMultiTermQuery=_(nt),e.SpanFirstQuery=ot,e.spanFirstQuery=_(ot),e.SpanNearQuery=ut,e.spanNearQuery=_(ut),e.SpanOrQuery=ct,e.spanOrQuery=_(ct),e.SpanNotQuery=at,e.spanNotQuery=_(at),e.SpanContainingQuery=ht,e.spanContainingQuery=_(ht),e.SpanWithinQuery=gt,e.spanWithinQuery=_(gt),e.SpanFieldMaskingQuery=lt,e.spanFieldMaskingQuery=_(lt),e.AvgAggregation=pt,e.avgAggregation=_(pt),e.CardinalityAggregation=_t,e.cardinalityAggregation=_(_t),e.ExtendedStatsAggregation=ft,e.extendedStatsAggregation=_(ft),e.GeoBoundsAggregation=dt,e.geoBoundsAggregation=_(dt),e.GeoCentroidAggregation=yt,e.geoCentroidAggregation=_(yt),e.MaxAggregation=mt,e.maxAggregation=_(mt),e.MinAggregation=wt,e.minAggregation=_(wt),e.PercentilesAggregation=xt,e.percentilesAggregation=_(xt),e.PercentileRanksAggregation=Ot,e.percentileRanksAggregation=_(Ot),e.ScriptedMetricAggregation=bt,e.scriptedMetricAggregation=_(bt),e.StatsAggregation=St,e.statsAggregation=_(St),e.SumAggregation=vt,e.sumAggregation=_(vt),e.TopHitsAggregation=At,e.topHitsAggregation=_(At),e.ValueCountAggregation=qt,e.valueCountAggregation=_(qt),e.AdjacencyMatrixAggregation=Dt,e.adjacencyMatrixAggregation=_(Dt),e.ChildrenAggregation=Tt,e.childrenAggregation=_(Tt),e.CompositeAggregation=Qt,e.compositeAggregation=_(Qt),e.DateHistogramAggregation=kt,e.dateHistogramAggregation=_(kt),e.AutoDateHistogramAggregation=Et,e.autoDateHistogramAggregation=_(Et),e.VariableWidthHistogramAggregation=Pt,e.variableWidthHistogramAggregation=_(Pt),e.DateRangeAggregation=zt,e.dateRangeAggregation=_(zt),e.DiversifiedSamplerAggregation=Mt,e.diversifiedSamplerAggregation=_(Mt),e.FilterAggregation=Ft,e.filterAggregation=_(Ft),e.FiltersAggregation=jt,e.filtersAggregation=_(jt),e.GeoDistanceAggregation=$t,e.geoDistanceAggregation=_($t),e.GeoHashGridAggregation=Ct,e.geoHashGridAggregation=_(Ct),e.GeoHexGridAggregation=Rt,e.geoHexGridAggregation=_(Rt),e.GeoTileGridAggregation=Nt,e.geoTileGridAggregation=_(Nt),e.GlobalAggregation=Gt,e.globalAggregation=_(Gt),e.HistogramAggregation=Bt,e.histogramAggregation=_(Bt),e.IpRangeAggregation=Lt,e.ipRangeAggregation=_(Lt),e.MissingAggregation=Ht,e.missingAggregation=_(Ht),e.NestedAggregation=It,e.nestedAggregation=_(It),e.ParentAggregation=Jt,e.parentAggregation=_(Jt),e.RangeAggregation=Ut,e.rangeAggregation=_(Ut),e.RareTermsAggregation=Wt,e.rareTermsAggregation=_(Wt),e.ReverseNestedAggregation=Vt,e.reverseNestedAggregation=_(Vt),e.SamplerAggregation=Zt,e.samplerAggregation=_(Zt),e.SignificantTermsAggregation=Kt,e.significantTermsAggregation=_(Kt),e.SignificantTextAggregation=Yt,e.significantTextAggregation=_(Yt),e.TermsAggregation=Xt,e.termsAggregation=_(Xt),e.AvgBucketAggregation=te,e.avgBucketAggregation=_(te),e.DerivativeAggregation=ee,e.derivativeAggregation=_(ee),e.MaxBucketAggregation=re,e.maxBucketAggregation=_(re),e.MinBucketAggregation=se,e.minBucketAggregation=_(se),e.BucketSortAggregation=_e,e.bucketSortAggregation=_(_e),e.SumBucketAggregation=ie,e.sumBucketAggregation=_(ie),e.StatsBucketAggregation=ne,e.statsBucketAggregation=_(ne),e.ExtendedStatsBucketAggregation=oe,e.extendedStatsBucketAggregation=_(oe),e.PercentilesBucketAggregation=ue,e.percentilesBucketAggregation=_(ue),e.MovingAverageAggregation=ce,e.movingAverageAggregation=_(ce),e.MovingFunctionAggregation=ae,e.movingFunctionAggregation=_(ae),e.CumulativeSumAggregation=he,e.cumulativeSumAggregation=_(he),e.BucketScriptAggregation=ge,e.bucketScriptAggregation=_(ge),e.BucketSelectorAggregation=le,e.bucketSelectorAggregation=_(le),e.SerialDifferencingAggregation=pe,e.serialDifferencingAggregation=_(pe),e.MatrixStatsAggregation=fe,e.matrixStatsAggregation=_(fe),e.ScriptScoreFunction=N,e.scriptScoreFunction=_(N),e.WeightScoreFunction=G,e.weightScoreFunction=_(G),e.RandomScoreFunction=B,e.randomScoreFunction=_(B),e.FieldValueFactorFunction=L,e.fieldValueFactorFunction=_(L),e.DecayScoreFunction=H,e.decayScoreFunction=_(H),e.TermSuggester=de,e.termSuggester=_(de),e.DirectGenerator=ye,e.directGenerator=_(ye),e.PhraseSuggester=me,e.phraseSuggester=_(me),e.CompletionSuggester=we,e.completionSuggester=_(we),e.recipes=xe,e.cookMissingQuery=xe.missingQuery,e.cookRandomSortQuery=xe.randomSortQuery,e.cookFilterQuery=xe.filterQuery,e.Highlight=i,e.highlight=_(i),e.Script=n,e.script=_(n),e.GeoPoint=o,e.geoPoint=_(o),e.GeoShape=u,e.geoShape=_(u),e.IndexedShape=c,e.indexedShape=_(c),e.Sort=a,e.sort=_(a),e.Rescore=h,e.rescore=_(h),e.InnerHits=g,e.innerHits=_(g),e.SearchTemplate=l,e.searchTemplate=_(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6);function d(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=d(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=d(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=U(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function U(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(16))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(17),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(18),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(53),e.MatchPhraseQuery=r(54),e.MatchPhrasePrefixQuery=r(55),e.MultiMatchQuery=r(56),e.CommonTermsQuery=r(57),e.QueryStringQuery=r(58),e.SimpleQueryStringQuery=r(59)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(18),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(41),e.ConstantScoreQuery=r(77),e.BoolQuery=r(78),e.DisMaxQuery=r(81),e.FunctionScoreQuery=r(82),e.BoostingQuery=r(83)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(79),n=r(80),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?Q.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):U(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(41),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(85),e.HasChildQuery=r(86),e.HasParentQuery=r(87),e.ParentIdQuery=r(88)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(14),e.GeoShapeQuery=r(90),e.GeoBoundingBoxQuery=r(91),e.GeoDistanceQuery=r(92),e.GeoPolygonQuery=r(93)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(14),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(14),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(14);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(95),e.ScriptQuery=r(96),e.ScriptScoreQuery=r(97),e.PercolateQuery=r(98),e.DistanceFeatureQuery=r(99)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1);t.exports=class extends s{constructor(){super("script_score")}query(t){return n(t,s),this._queryOpts.query=t,this}script(t){return n(t,i),this._queryOpts.script=t,this}minScore(t){return this._queryOpts.min_score=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(101),e.SpanMultiTermQuery=r(102),e.SpanFirstQuery=r(103),e.SpanNearQuery=r(104),e.SpanOrQuery=r(105),e.SpanNotQuery=r(106),e.SpanContainingQuery=r(107),e.SpanWithinQuery=r(108),e.SpanFieldMaskingQuery=r(109)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(39),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(111),e.bucketAggregations=r(126),e.pipelineAggregations=r(158),e.matrixAggregations=r(174)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(4),e.AvgAggregation=r(112),e.CardinalityAggregation=r(113),e.ExtendedStatsAggregation=r(114),e.GeoBoundsAggregation=r(115),e.GeoCentroidAggregation=r(116),e.MaxAggregation=r(117),e.MinAggregation=r(118),e.PercentilesAggregation=r(119),e.PercentileRanksAggregation=r(120),e.ScriptedMetricAggregation=r(121),e.StatsAggregation=r(122),e.SumAggregation=r(123),e.TopHitsAggregation=r(124),e.ValueCountAggregation=r(125)},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(4),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(4),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(15),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(127),e.ChildrenAggregation=r(128),e.CompositeAggregation=r(129),e.DateHistogramAggregation=r(134),e.AutoDateHistogramAggregation=r(135),e.VariableWidthHistogramAggregation=r(136),e.DateRangeAggregation=r(137),e.DiversifiedSamplerAggregation=r(138),e.FilterAggregation=r(139),e.FiltersAggregation=r(140),e.GeoDistanceAggregation=r(141),e.GeoHashGridAggregation=r(142),e.GeoHexGridAggregation=r(143),e.GeoTileGridAggregation=r(144),e.GlobalAggregation=r(145),e.HistogramAggregation=r(146),e.IpRangeAggregation=r(147),e.MissingAggregation=r(148),e.NestedAggregation=r(149),e.ParentAggregation=r(150),e.RangeAggregation=r(151),e.RareTermsAggregation=r(152),e.ReverseNestedAggregation=r(153),e.SamplerAggregation=r(154),e.SignificantTermsAggregation=r(155),e.SignificantTextAggregation=r(156),e.TermsAggregation=r(157)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(130);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(131),e.HistogramValuesSource=r(132),e.DateHistogramValuesSource=r(133)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(15),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(15),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(15);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(3),e.AvgBucketAggregation=r(159),e.DerivativeAggregation=r(160),e.MaxBucketAggregation=r(161),e.MinBucketAggregation=r(162),e.SumBucketAggregation=r(163),e.StatsBucketAggregation=r(164),e.ExtendedStatsBucketAggregation=r(165),e.PercentilesBucketAggregation=r(166),e.MovingAverageAggregation=r(167),e.MovingFunctionAggregation=r(168),e.CumulativeSumAggregation=r(169),e.BucketScriptAggregation=r(170),e.BucketSelectorAggregation=r(171),e.SerialDifferencingAggregation=r(172),e.BucketSortAggregation=r(173)},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(3),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(3),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(175)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(177),e.DirectGenerator=r(178),e.PhraseSuggester=r(179),e.CompletionSuggester=r(180)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(38),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 89d42b3..495d173 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - elastic-builder 2.23.0 | Documentation + elastic-builder 2.24.0 | Documentation @@ -15,7 +15,7 @@

elastic-builder

-
2.23.0
+
2.24.0
elastic-builder +
  • + ScriptScoreQuery + + + + + +
  • + +
  • @@ -7192,7 +7232,7 @@

    -
    + src/core/request-body-search.js @@ -7282,7 +7322,7 @@

    - + src/core/request-body-search.js @@ -7362,7 +7402,7 @@

    - + src/core/request-body-search.js @@ -7456,7 +7496,7 @@

    - + src/core/request-body-search.js @@ -7549,7 +7589,7 @@

    - + src/core/request-body-search.js @@ -7650,7 +7690,7 @@

    - + src/core/request-body-search.js @@ -7751,7 +7791,7 @@

    - + src/core/request-body-search.js @@ -7858,7 +7898,7 @@

    - + src/core/request-body-search.js @@ -7948,7 +7988,7 @@

    - + src/core/request-body-search.js @@ -8035,7 +8075,7 @@

    - + src/core/request-body-search.js @@ -8116,7 +8156,7 @@

    - + src/core/request-body-search.js @@ -8199,7 +8239,7 @@

    - + src/core/request-body-search.js @@ -8284,7 +8324,7 @@

    - + src/core/request-body-search.js @@ -8392,7 +8432,7 @@

    - + src/core/request-body-search.js @@ -8501,7 +8541,7 @@

    - + src/core/request-body-search.js @@ -8595,7 +8635,7 @@

    - + src/core/request-body-search.js @@ -8678,7 +8718,7 @@

    - + src/core/request-body-search.js @@ -8792,7 +8832,7 @@

    - + src/core/request-body-search.js @@ -8898,7 +8938,7 @@

    - + src/core/request-body-search.js @@ -9012,7 +9052,7 @@

    - + src/core/request-body-search.js @@ -9121,7 +9161,7 @@

    - + src/core/request-body-search.js @@ -9210,7 +9250,7 @@

    - + src/core/request-body-search.js @@ -9307,7 +9347,7 @@

    - + src/core/request-body-search.js @@ -9409,7 +9449,7 @@

    - + src/core/request-body-search.js @@ -9540,7 +9580,7 @@

    - + src/core/request-body-search.js @@ -9628,7 +9668,7 @@

    - + src/core/request-body-search.js @@ -9716,7 +9756,7 @@

    - + src/core/request-body-search.js @@ -9816,7 +9856,7 @@

    - + src/core/request-body-search.js @@ -9915,7 +9955,7 @@

    - + src/core/request-body-search.js @@ -10003,7 +10043,7 @@

    - + src/core/request-body-search.js @@ -10140,7 +10180,7 @@

    - + src/core/request-body-search.js @@ -10236,7 +10276,7 @@

    - + src/core/request-body-search.js @@ -10368,7 +10408,7 @@

    - + src/core/query.js @@ -10438,7 +10478,7 @@

    - + src/core/query.js @@ -10518,7 +10558,7 @@

    - + src/core/query.js @@ -10609,7 +10649,7 @@

    - + src/core/query.js @@ -10674,7 +10714,7 @@

    - + src/core/query.js @@ -10744,7 +10784,7 @@

    - + src/queries/match-all-query.js @@ -10810,7 +10850,7 @@

    - + src/queries/match-none-query.js @@ -10936,7 +10976,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11022,7 +11062,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11114,7 +11154,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11207,7 +11247,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11300,7 +11340,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11395,7 +11435,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11475,7 +11515,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11546,7 +11586,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11640,7 +11680,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11729,7 +11769,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11813,7 +11853,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11900,7 +11940,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11980,7 +12020,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12060,7 +12100,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12185,7 +12225,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12310,7 +12350,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12391,7 +12431,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12489,7 +12529,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12590,7 +12630,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12693,7 +12733,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12758,7 +12798,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12845,7 +12885,7 @@

    - + src/queries/full-text-queries/match-phrase-query.js @@ -12935,7 +12975,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13024,7 +13064,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13117,7 +13157,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13211,7 +13251,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13295,7 +13335,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13389,7 +13429,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13541,7 +13581,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13625,7 +13665,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13714,7 +13754,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13798,7 +13838,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13880,7 +13920,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13969,7 +14009,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14049,7 +14089,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14129,7 +14169,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14254,7 +14294,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14379,7 +14419,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14469,7 +14509,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14563,7 +14603,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14656,7 +14696,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14745,7 +14785,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14842,7 +14882,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14931,7 +14971,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15022,7 +15062,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15113,7 +15153,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15201,7 +15241,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15297,7 +15337,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15392,7 +15432,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15487,7 +15527,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15578,7 +15618,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15659,7 +15699,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15743,7 +15783,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15824,7 +15864,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15912,7 +15952,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -15994,7 +16034,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16076,7 +16116,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16156,7 +16196,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16236,7 +16276,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16316,7 +16356,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16405,7 +16445,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16485,7 +16525,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16610,7 +16650,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16735,7 +16775,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16817,7 +16857,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16899,7 +16939,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16981,7 +17021,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17061,7 +17101,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17147,7 +17187,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17239,7 +17279,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17319,7 +17359,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17401,7 +17441,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17486,7 +17526,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17574,7 +17614,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17757,7 +17797,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -17849,7 +17889,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -17929,7 +17969,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18009,7 +18049,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18075,7 +18115,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18163,7 +18203,7 @@

    - + src/queries/term-level-queries/term-query.js @@ -18251,7 +18291,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18348,7 +18388,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18428,7 +18468,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18508,7 +18548,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18599,7 +18639,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18692,7 +18732,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18778,7 +18818,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18858,7 +18898,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18938,7 +18978,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19018,7 +19058,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19098,7 +19138,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19169,7 +19209,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19263,7 +19303,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19343,7 +19383,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19423,7 +19463,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19514,7 +19554,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19594,7 +19634,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19686,7 +19726,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19757,7 +19797,7 @@

    - + src/queries/term-level-queries/multi-term-query-base.js @@ -19827,7 +19867,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -19913,7 +19953,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -19977,7 +20017,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20057,7 +20097,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20137,7 +20177,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20217,7 +20257,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20297,7 +20337,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20378,7 +20418,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20459,7 +20499,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20543,7 +20583,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20627,7 +20667,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20707,7 +20747,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20798,7 +20838,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20889,7 +20929,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20960,7 +21000,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21043,7 +21083,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21128,7 +21168,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21216,7 +21256,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21346,7 +21386,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21434,7 +21474,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21522,7 +21562,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21652,7 +21692,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21742,7 +21782,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21847,7 +21887,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21935,7 +21975,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22025,7 +22065,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22155,7 +22195,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22255,7 +22295,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22342,7 +22382,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22426,7 +22466,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22509,7 +22549,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22595,7 +22635,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22676,7 +22716,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22757,7 +22797,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22844,7 +22884,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -22935,7 +22975,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23018,7 +23058,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23098,7 +23138,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23244,7 +23284,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23329,7 +23369,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23410,7 +23450,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23498,7 +23538,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23576,7 +23616,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23671,7 +23711,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23780,7 +23820,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23878,7 +23918,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23976,7 +24016,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24059,7 +24099,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24145,7 +24185,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24226,7 +24266,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24297,7 +24337,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24378,7 +24418,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24462,7 +24502,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24552,7 +24592,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24657,7 +24697,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24740,7 +24780,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24836,7 +24876,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24932,7 +24972,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25012,7 +25052,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25093,7 +25133,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25176,7 +25216,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25264,7 +25304,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25378,7 +25418,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25461,7 +25501,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25545,7 +25585,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25695,7 +25735,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25791,7 +25831,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25874,7 +25914,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25991,7 +26031,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26079,7 +26119,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26167,7 +26207,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26269,7 +26309,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26354,7 +26394,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26462,7 +26502,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26544,7 +26584,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26625,7 +26665,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26718,7 +26758,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26816,7 +26856,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -26922,7 +26962,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -26989,7 +27029,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27071,7 +27111,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27152,7 +27192,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27256,7 +27296,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27350,7 +27390,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27435,7 +27475,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27516,7 +27556,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27669,7 +27709,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27754,7 +27794,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27834,7 +27874,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27941,7 +27981,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -28012,7 +28052,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28114,7 +28154,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28178,7 +28218,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28269,7 +28309,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28360,7 +28400,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28451,7 +28491,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28544,7 +28584,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28646,7 +28686,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28729,7 +28769,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28812,7 +28852,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28895,7 +28935,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28978,7 +29018,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29058,7 +29098,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29138,7 +29178,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29218,7 +29258,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29298,7 +29338,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29405,7 +29445,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29500,7 +29540,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29583,7 +29623,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29679,7 +29719,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29776,7 +29816,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -29861,7 +29901,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -30047,7 +30087,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30151,7 +30191,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30233,7 +30273,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30328,7 +30368,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30413,7 +30453,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30496,7 +30536,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30579,7 +30619,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30662,7 +30702,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30745,7 +30785,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30826,7 +30866,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30908,7 +30948,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30990,7 +31030,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31071,7 +31111,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31152,7 +31192,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31234,7 +31274,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31316,7 +31356,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31404,7 +31444,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31486,7 +31526,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31572,7 +31612,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31658,7 +31698,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31743,7 +31783,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -31846,7 +31886,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -31929,7 +31969,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32012,7 +32052,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32102,7 +32142,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32192,7 +32232,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32274,7 +32314,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32356,7 +32396,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32438,7 +32478,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32519,7 +32559,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32600,7 +32640,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32748,7 +32788,7 @@

    - + src/queries/span-queries/span-query-base.js @@ -32810,7 +32850,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -32906,7 +32946,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -32986,7 +33026,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33066,7 +33106,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33137,7 +33177,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33220,7 +33260,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33306,7 +33346,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33389,7 +33429,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33469,7 +33509,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33555,7 +33595,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33631,7 +33671,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33724,7 +33764,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33806,7 +33846,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33890,7 +33930,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -33962,7 +34002,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -34060,7 +34100,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34136,7 +34176,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34216,7 +34256,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34297,7 +34337,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34378,7 +34418,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34458,7 +34498,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34544,7 +34584,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34607,7 +34647,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34688,7 +34728,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34774,7 +34814,7 @@

    - + src/queries/span-queries/span-containing-query.js @@ -34850,7 +34890,7 @@

    - + src/queries/span-queries/span-within-query.js @@ -34926,7 +34966,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35031,7 +35071,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35111,7 +35151,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35260,7 +35300,7 @@

    - + src/core/aggregation.js @@ -35354,7 +35394,7 @@

    - + src/core/aggregation.js @@ -35435,7 +35475,7 @@

    - + src/core/aggregation.js @@ -35529,7 +35569,7 @@

    - + src/core/aggregation.js @@ -35612,7 +35652,7 @@

    - + src/core/aggregation.js @@ -35713,7 +35753,7 @@

    - + src/core/aggregation.js @@ -35814,7 +35854,7 @@

    - + src/core/aggregation.js @@ -35895,7 +35935,7 @@

    - + src/core/aggregation.js @@ -35960,7 +36000,7 @@

    - + src/core/aggregation.js @@ -36090,7 +36130,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36186,7 +36226,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36267,7 +36307,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36375,7 +36415,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36462,7 +36502,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36548,7 +36588,7 @@

    - + src/aggregations/metrics-aggregations/avg-aggregation.js @@ -36661,7 +36701,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36762,7 +36802,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36826,7 +36866,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36924,7 +36964,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37037,7 +37077,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37132,7 +37172,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37223,7 +37263,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37287,7 +37327,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37351,7 +37391,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37438,7 +37478,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37539,7 +37579,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37608,7 +37648,7 @@

    - + src/aggregations/metrics-aggregations/max-aggregation.js @@ -37717,7 +37757,7 @@

    - + src/aggregations/metrics-aggregations/min-aggregation.js @@ -37826,7 +37866,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -37929,7 +37969,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38020,7 +38060,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38122,7 +38162,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38218,7 +38258,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38315,7 +38355,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38414,7 +38454,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38542,7 +38582,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38606,7 +38646,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38697,7 +38737,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38788,7 +38828,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38875,7 +38915,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38963,7 +39003,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39064,7 +39104,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39169,7 +39209,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39233,7 +39273,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39297,7 +39337,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39361,7 +39401,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39443,7 +39483,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39526,7 +39566,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39610,7 +39650,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39695,7 +39735,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39785,7 +39825,7 @@

    - + src/aggregations/metrics-aggregations/stats-aggregation.js @@ -39895,7 +39935,7 @@

    - + src/aggregations/metrics-aggregations/sum-aggregation.js @@ -40017,7 +40057,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40129,7 +40169,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40193,7 +40233,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40257,7 +40297,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40321,7 +40361,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40385,7 +40425,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40466,7 +40506,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40547,7 +40587,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40643,7 +40683,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40738,7 +40778,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40820,7 +40860,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40901,7 +40941,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40982,7 +41022,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41062,7 +41102,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41146,7 +41186,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41230,7 +41270,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41320,7 +41360,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41406,7 +41446,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41492,7 +41532,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41593,7 +41633,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41722,7 +41762,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -41818,7 +41858,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -41899,7 +41939,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -42010,7 +42050,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42098,7 +42138,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42162,7 +42202,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42226,7 +42266,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42327,7 +42367,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42421,7 +42461,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42510,7 +42550,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42613,7 +42653,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42694,7 +42734,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42789,7 +42829,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42883,7 +42923,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42970,7 +43010,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43069,7 +43109,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43167,7 +43207,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43231,7 +43271,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43295,7 +43335,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43381,7 +43421,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43475,7 +43515,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43586,7 +43626,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43670,7 +43710,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43847,7 +43887,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -43956,7 +43996,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44037,7 +44077,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44128,7 +44168,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44209,7 +44249,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44298,7 +44338,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44382,7 +44422,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44465,7 +44505,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44536,7 +44576,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/terms-values-source.js @@ -44629,7 +44669,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -44733,7 +44773,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -44819,7 +44859,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -44923,7 +44963,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45004,7 +45044,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45097,7 +45137,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45193,7 +45233,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45279,7 +45319,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45377,7 +45417,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45483,7 +45523,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45566,7 +45606,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45660,7 +45700,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45751,7 +45791,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45859,7 +45899,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45947,7 +45987,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46053,7 +46093,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46160,7 +46200,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46247,7 +46287,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46342,7 +46382,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46450,7 +46490,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46544,7 +46584,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46637,7 +46677,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46739,7 +46779,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -46836,7 +46876,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -46920,7 +46960,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47026,7 +47066,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47135,7 +47175,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47216,7 +47256,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47317,7 +47357,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47387,7 +47427,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47483,7 +47523,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47587,7 +47627,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47709,7 +47749,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47791,7 +47831,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47874,7 +47914,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47979,7 +48019,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48078,7 +48118,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48142,7 +48182,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48206,7 +48246,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48303,7 +48343,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48395,7 +48435,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48459,7 +48499,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48523,7 +48563,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48627,7 +48667,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48721,7 +48761,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48815,7 +48855,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48909,7 +48949,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49012,7 +49052,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49108,7 +49148,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49206,7 +49246,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49270,7 +49310,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49334,7 +49374,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49428,7 +49468,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49531,7 +49571,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49642,7 +49682,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49735,7 +49775,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49799,7 +49839,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49863,7 +49903,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49952,7 +49992,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50036,7 +50076,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50123,7 +50163,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50213,7 +50253,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50277,7 +50317,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50346,7 +50386,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation.js @@ -50456,7 +50496,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50555,7 +50595,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50624,7 +50664,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50716,7 +50756,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50785,7 +50825,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -50883,7 +50923,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -50947,7 +50987,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51011,7 +51051,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51098,7 +51138,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51205,7 +51245,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51269,7 +51309,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51333,7 +51373,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51419,7 +51459,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation.js @@ -51539,7 +51579,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51636,7 +51676,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51724,7 +51764,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51813,7 +51853,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51901,7 +51941,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51989,7 +52029,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52070,7 +52110,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52139,7 +52179,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52247,7 +52287,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52311,7 +52351,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52375,7 +52415,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52464,7 +52504,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52566,7 +52606,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52630,7 +52670,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52694,7 +52734,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52781,7 +52821,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -52887,7 +52927,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -52969,7 +53009,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53057,7 +53097,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53145,7 +53185,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53231,7 +53271,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53315,7 +53355,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53396,7 +53436,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53501,7 +53541,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53606,7 +53646,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53720,7 +53760,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53784,7 +53824,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53851,7 +53891,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53953,7 +53993,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54055,7 +54095,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54141,7 +54181,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54210,7 +54250,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54290,7 +54330,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54384,7 +54424,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54453,7 +54493,7 @@

    - + src/aggregations/bucket-aggregations/significant-terms-aggregation.js @@ -54556,7 +54596,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54661,7 +54701,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54758,7 +54798,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54852,7 +54892,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54916,7 +54956,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54985,7 +55025,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55076,7 +55116,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55158,7 +55198,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55262,7 +55302,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55358,7 +55398,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55552,7 +55592,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55661,7 +55701,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55760,7 +55800,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55845,7 +55885,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55931,7 +55971,7 @@

    - + src/aggregations/pipeline-aggregations/avg-bucket-aggregation.js @@ -56034,7 +56074,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56146,7 +56186,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56248,7 +56288,7 @@

    - + src/aggregations/pipeline-aggregations/max-bucket-aggregation.js @@ -56356,7 +56396,7 @@

    - + src/aggregations/pipeline-aggregations/min-bucket-aggregation.js @@ -56464,7 +56504,7 @@

    - + src/aggregations/pipeline-aggregations/sum-bucket-aggregation.js @@ -56568,7 +56608,7 @@

    - + src/aggregations/pipeline-aggregations/stats-bucket-aggregation.js @@ -56673,7 +56713,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -56779,7 +56819,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -56866,7 +56906,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -56972,7 +57012,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -57058,7 +57098,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57176,7 +57216,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57240,7 +57280,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57349,7 +57389,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57438,7 +57478,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57533,7 +57573,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57623,7 +57663,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57720,7 +57760,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -57859,7 +57899,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -57947,7 +57987,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58035,7 +58075,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58127,7 +58167,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58226,7 +58266,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58295,7 +58335,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58406,7 +58446,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58502,7 +58542,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58621,7 +58661,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58685,7 +58725,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58781,7 +58821,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -58885,7 +58925,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -58972,7 +59012,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59066,7 +59106,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59147,7 +59187,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59228,7 +59268,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59374,7 +59414,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59465,7 +59505,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59554,7 +59594,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59645,7 +59685,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59802,7 +59842,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -59873,7 +59913,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -59956,7 +59996,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60037,7 +60077,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60108,7 +60148,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60204,7 +60244,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60288,7 +60328,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60372,7 +60412,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60443,7 +60483,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60511,7 +60551,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60597,7 +60637,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60685,7 +60725,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60766,7 +60806,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60847,7 +60887,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60954,7 +60994,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -61041,7 +61081,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61159,7 +61199,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61249,7 +61289,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61317,7 +61357,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61385,7 +61425,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61453,7 +61493,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61534,7 +61574,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61618,7 +61658,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61703,7 +61743,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61785,7 +61825,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61867,7 +61907,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61998,7 +62038,7 @@

    - + src/core/suggester.js @@ -62108,7 +62148,7 @@

    - + src/core/suggester.js @@ -62190,7 +62230,7 @@

    - + src/core/suggester.js @@ -62270,7 +62310,7 @@

    - + src/core/suggester.js @@ -62340,7 +62380,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62464,7 +62504,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62546,7 +62586,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62628,7 +62668,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62720,7 +62760,7 @@

    - + src/suggesters/term-suggester.js @@ -62836,7 +62876,7 @@

    - + src/suggesters/term-suggester.js @@ -62942,7 +62982,7 @@

    - + src/suggesters/term-suggester.js @@ -63053,7 +63093,7 @@

    - + src/suggesters/term-suggester.js @@ -63137,7 +63177,7 @@

    - + src/suggesters/term-suggester.js @@ -63222,7 +63262,7 @@

    - + src/suggesters/term-suggester.js @@ -63305,7 +63345,7 @@

    - + src/suggesters/term-suggester.js @@ -63392,7 +63432,7 @@

    - + src/suggesters/term-suggester.js @@ -63479,7 +63519,7 @@

    - + src/suggesters/term-suggester.js @@ -63568,7 +63608,7 @@

    - + src/suggesters/term-suggester.js @@ -63695,7 +63735,7 @@

    - + src/suggesters/direct-generator.js @@ -63769,7 +63809,7 @@

    - + src/suggesters/direct-generator.js @@ -63851,7 +63891,7 @@

    - + src/suggesters/direct-generator.js @@ -63931,7 +63971,7 @@

    - + src/suggesters/direct-generator.js @@ -64048,7 +64088,7 @@

    - + src/suggesters/direct-generator.js @@ -64132,7 +64172,7 @@

    - + src/suggesters/direct-generator.js @@ -64217,7 +64257,7 @@

    - + src/suggesters/direct-generator.js @@ -64300,7 +64340,7 @@

    - + src/suggesters/direct-generator.js @@ -64387,7 +64427,7 @@

    - + src/suggesters/direct-generator.js @@ -64474,7 +64514,7 @@

    - + src/suggesters/direct-generator.js @@ -64563,7 +64603,7 @@

    - + src/suggesters/direct-generator.js @@ -64647,7 +64687,7 @@

    - + src/suggesters/direct-generator.js @@ -64730,7 +64770,7 @@

    - + src/suggesters/direct-generator.js @@ -64800,7 +64840,7 @@

    - + src/suggesters/phrase-suggester.js @@ -64921,7 +64961,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65008,7 +65048,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65092,7 +65132,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65179,7 +65219,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65269,7 +65309,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65352,7 +65392,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65445,7 +65485,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65572,7 +65612,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65675,7 +65715,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65778,7 +65818,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65848,7 +65888,7 @@

    - + src/suggesters/completion-suggester.js @@ -65967,7 +66007,7 @@

    - + src/suggesters/completion-suggester.js @@ -66047,7 +66087,7 @@

    - + src/suggesters/completion-suggester.js @@ -66130,7 +66170,7 @@

    - + src/suggesters/completion-suggester.js @@ -66215,7 +66255,7 @@

    - + src/suggesters/completion-suggester.js @@ -66310,7 +66350,7 @@

    - + src/suggesters/completion-suggester.js @@ -66391,7 +66431,7 @@

    - + src/suggesters/completion-suggester.js @@ -66474,7 +66514,7 @@

    - + src/suggesters/completion-suggester.js @@ -66558,7 +66598,7 @@

    - + src/suggesters/completion-suggester.js @@ -66644,7 +66684,7 @@

    - + src/suggesters/completion-suggester.js @@ -66732,7 +66772,7 @@

    - + src/suggesters/completion-suggester.js @@ -66830,7 +66870,7 @@

    - + src/suggesters/completion-suggester.js @@ -66913,7 +66953,7 @@

    - + src/suggesters/completion-suggester.js @@ -67113,7 +67153,7 @@

    - + src/core/highlight.js @@ -67222,7 +67262,7 @@

    - + src/core/highlight.js @@ -67304,7 +67344,7 @@

    - + src/core/highlight.js @@ -67396,7 +67436,7 @@

    - + src/core/highlight.js @@ -67498,7 +67538,7 @@

    - + src/core/highlight.js @@ -67600,7 +67640,7 @@

    - + src/core/highlight.js @@ -67674,7 +67714,7 @@

    - + src/core/highlight.js @@ -67762,7 +67802,7 @@

    - + src/core/highlight.js @@ -67861,7 +67901,7 @@

    - + src/core/highlight.js @@ -67964,7 +68004,7 @@

    - + src/core/highlight.js @@ -68065,7 +68105,7 @@

    - + src/core/highlight.js @@ -68184,7 +68224,7 @@

    - + src/core/highlight.js @@ -68307,7 +68347,7 @@

    - + src/core/highlight.js @@ -68393,7 +68433,7 @@

    - + src/core/highlight.js @@ -68490,7 +68530,7 @@

    - + src/core/highlight.js @@ -68591,7 +68631,7 @@

    - + src/core/highlight.js @@ -68682,7 +68722,7 @@

    - + src/core/highlight.js @@ -68774,7 +68814,7 @@

    - + src/core/highlight.js @@ -68897,7 +68937,7 @@

    - + src/core/highlight.js @@ -68993,7 +69033,7 @@

    - + src/core/highlight.js @@ -69111,7 +69151,7 @@

    - + src/core/highlight.js @@ -69181,7 +69221,7 @@

    - + src/core/script.js @@ -69289,7 +69329,7 @@

    - + src/core/script.js @@ -69371,7 +69411,7 @@

    - + src/core/script.js @@ -69454,7 +69494,7 @@

    - + src/core/script.js @@ -69537,7 +69577,7 @@

    - + src/core/script.js @@ -69621,7 +69661,7 @@

    - + src/core/script.js @@ -69711,7 +69751,7 @@

    - + src/core/script.js @@ -69799,7 +69839,7 @@

    - + src/core/script.js @@ -69880,7 +69920,7 @@

    - + src/core/script.js @@ -69950,7 +69990,7 @@

    - + src/core/geo-point.js @@ -70005,7 +70045,7 @@

    - + src/core/geo-point.js @@ -70086,7 +70126,7 @@

    - + src/core/geo-point.js @@ -70167,7 +70207,7 @@

    - + src/core/geo-point.js @@ -70258,7 +70298,7 @@

    - + src/core/geo-point.js @@ -70354,7 +70394,7 @@

    - + src/core/geo-point.js @@ -70435,7 +70475,7 @@

    - + src/core/geo-point.js @@ -70505,7 +70545,7 @@

    - + src/core/geo-shape.js @@ -70615,7 +70655,7 @@

    - + src/core/geo-shape.js @@ -70723,7 +70763,7 @@

    - + src/core/geo-shape.js @@ -70813,7 +70853,7 @@

    - + src/core/geo-shape.js @@ -70903,7 +70943,7 @@

    - + src/core/geo-shape.js @@ -70974,7 +71014,7 @@

    - + src/core/indexed-shape.js @@ -71068,7 +71108,7 @@

    - + src/core/indexed-shape.js @@ -71149,7 +71189,7 @@

    - + src/core/indexed-shape.js @@ -71230,7 +71270,7 @@

    - + src/core/indexed-shape.js @@ -71311,7 +71351,7 @@

    - + src/core/indexed-shape.js @@ -71393,7 +71433,7 @@

    - + src/core/indexed-shape.js @@ -71464,7 +71504,7 @@

    - + src/core/sort.js @@ -71559,7 +71599,7 @@

    - + src/core/sort.js @@ -71648,7 +71688,7 @@

    - + src/core/sort.js @@ -71758,7 +71798,7 @@

    - + src/core/sort.js @@ -71851,7 +71891,7 @@

    - + src/core/sort.js @@ -71953,7 +71993,7 @@

    - + src/core/sort.js @@ -72091,7 +72131,7 @@

    - + src/core/sort.js @@ -72179,7 +72219,7 @@

    - + src/core/sort.js @@ -72268,7 +72308,7 @@

    - + src/core/sort.js @@ -72376,7 +72416,7 @@

    - + src/core/sort.js @@ -72472,7 +72512,7 @@

    - + src/core/sort.js @@ -72566,7 +72606,7 @@

    - + src/core/sort.js @@ -72670,7 +72710,7 @@

    - + src/core/sort.js @@ -72752,7 +72792,7 @@

    - + src/core/sort.js @@ -72833,7 +72873,7 @@

    - + src/core/sort.js @@ -72914,7 +72954,7 @@

    - + src/core/sort.js @@ -72984,7 +73024,7 @@

    - + src/core/rescore.js @@ -73088,7 +73128,7 @@

    - + src/core/rescore.js @@ -73169,7 +73209,7 @@

    - + src/core/rescore.js @@ -73260,7 +73300,7 @@

    - + src/core/rescore.js @@ -73341,7 +73381,7 @@

    - + src/core/rescore.js @@ -73422,7 +73462,7 @@

    - + src/core/rescore.js @@ -73516,7 +73556,7 @@

    - + src/core/rescore.js @@ -73586,7 +73626,7 @@

    - + src/core/inner-hits.js @@ -73671,7 +73711,7 @@

    - + src/core/inner-hits.js @@ -73753,7 +73793,7 @@

    - + src/core/inner-hits.js @@ -73834,7 +73874,7 @@

    - + src/core/inner-hits.js @@ -73916,7 +73956,7 @@

    - + src/core/inner-hits.js @@ -74009,7 +74049,7 @@

    - + src/core/inner-hits.js @@ -74104,7 +74144,7 @@

    - + src/core/inner-hits.js @@ -74189,7 +74229,7 @@

    - + src/core/inner-hits.js @@ -74269,7 +74309,7 @@

    - + src/core/inner-hits.js @@ -74353,7 +74393,7 @@

    - + src/core/inner-hits.js @@ -74433,7 +74473,7 @@

    - + src/core/inner-hits.js @@ -74523,7 +74563,7 @@

    - + src/core/inner-hits.js @@ -74609,7 +74649,7 @@

    - + src/core/inner-hits.js @@ -74690,7 +74730,7 @@

    - + src/core/inner-hits.js @@ -74770,7 +74810,7 @@

    - + src/core/inner-hits.js @@ -74840,7 +74880,7 @@

    - + src/core/search-template.js @@ -74968,7 +75008,7 @@

    - + src/core/search-template.js @@ -75050,7 +75090,7 @@

    - + src/core/search-template.js @@ -75132,7 +75172,7 @@

    - + src/core/search-template.js @@ -75215,7 +75255,7 @@

    - + src/core/search-template.js @@ -75315,7 +75355,7 @@

    - + src/core/search-template.js @@ -75396,7 +75436,7 @@

    - + src/core/search-template.js @@ -75466,7 +75506,7 @@

    - + src/index.js @@ -75538,7 +75578,7 @@

    - + src/core/inspect.js @@ -75608,6 +75648,328 @@

    + + + + +
    + + + + + +

    A query that uses a script to provide a custom score for returned documents.

    +

    Elasticsearch reference

    +

    NOTE: This query was added in elasticsearch v7.0.

    + + + +
    new ScriptScoreQuery()
    + + + +

    + Extends + + Query + +

    + + + + + + + + + + + + + + + + + + +
    Example
    + + +
    const qry = esb.scriptScoreQuery()
    +  .query(esb.matchQuery("message", "elasticsearch"))
    +  .script(esb.script().source("doc['my-int'].value / 10"))
    + + + + + + +
    Instance Members
    +
    + +
    +
    +
    + + query(query) +
    +
    + +
    + +
    +
    +
    + + script(script) +
    +
    + +
    + +
    +
    +
    + + minScore(limit) +
    +
    + +
    + +
    + + + +
    @@ -75622,7 +75984,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -75710,7 +76072,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -75789,7 +76151,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -75869,7 +76231,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -75958,7 +76320,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -76062,7 +76424,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -76148,7 +76510,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76242,7 +76604,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76306,7 +76668,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76370,7 +76732,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76459,7 +76821,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76543,7 +76905,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -76630,7 +76992,7 @@

    - + src/aggregations/bucket-aggregations/geo-tile-grid-aggregation.js @@ -76725,7 +77087,7 @@