LocalCDN-Firefox-Chrome-Brave/resources/algoliasearch3.33.0_algolia...

13 lines
172 KiB
JavaScript
Raw Normal View History

2020-04-14 07:42:56 +02:00
/*! algoliasearch 3.33.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearch=e()}}(function(){var e;return function t(e,r,n){function o(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){var r=e[a][1][t];return o(r?r:t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,r){(function(n){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,n)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(t){}}function u(){var e;try{e=r.storage.debug}catch(t){}return!e&&"undefined"!=typeof n&&"env"in n&&(e=n.env.DEBUG),e}function c(){try{return window.localStorage}catch(e){}}r=t.exports=e(2),r.log=a,r.formatArgs=i,r.save=s,r.load=u,r.useColors=o,r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(u())}).call(this,e(11))},{11:11,2:2}],2:[function(e,t,r){function n(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function o(e){function t(){if(t.enabled){var e=t,n=+new Date,o=n-(c||n);e.diff=o,e.prev=c,e.curr=n,c=n;for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=r.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;s++;var o=r.formatters[n];if("function"==typeof o){var a=i[s];t=o.call(e,a),i.splice(s,1),s--}return t}),r.formatArgs.call(e,i);var u=t.log||r.log||console.log.bind(console);u.apply(e,i)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=n(e),"function"==typeof r.init&&r.init(t),t}function i(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,o=0;o<n;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")))}function a(){r.enable("")}function s(e){var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}r=t.exports=o.debug=o["default"]=o,r.coerce=u,r.disable=a,r.enable=i,r.enabled=s,r.humanize=e(8),r.names=[],r.skips=[],r.formatters={};var c},{8:8}],3:[function(t,r,n){(function(o,i){!function(t,o){"object"==typeof n&&"undefined"!=typeof r?r.exports=o():"function"==typeof e&&e.amd?e(o):t.ES6Promise=o()}(this,function(){"use strict";function e(e){var t=typeof e;retur
r=void 0);var u={requests:i(t,function(e){var t={indexName:s.indexName,objectID:e};return r&&(t.attributesToRetrieve=r.join(",")),t})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:u,callback:n})},n.prototype.as=null,n.prototype.indexName=null,n.prototype.typeAheadArgs=null,n.prototype.typeAheadValueOption=null},{21:21,22:22,23:23,24:24,27:27,28:28,29:29,7:7}],17:[function(e,t,r){"use strict";var n=e(15),o=e(18);t.exports=o(n,"Browser (lite)")},{15:15,18:18}],18:[function(e,t,r){(function(r){"use strict";var n=e(5),o=n.Promise||e(3).Promise;t.exports=function(t,i){function a(t,r,n){var o=e(22);return n=o(n||{}),n._ua=n._ua||a.ua,new s(t,r,n)}function s(){t.apply(this,arguments)}var u=e(6),c=e(25),l=e(19),p=e(20),f=e(30);i=i||"","debug"===r.env.NODE_ENV&&e(1).enable("algoliasearch*"),a.version=e(32),a.ua="Algolia for JavaScript ("+a.version+"); "+i,a.initPlaces=f(a),n.__algolia={debug:e(1),algoliasearch:a};var d={hasXMLHttpRequest:"XMLHttpRequest"in n,hasXDomainRequest:"XDomainRequest"in n};return d.hasXMLHttpRequest&&(d.cors="withCredentials"in new XMLHttpRequest),u(s,t),s.prototype._request=function(e,t){return new o(function(r,n){function o(){if(!h){clearTimeout(f);var e;try{e={body:JSON.parse(m.responseText),responseText:m.responseText,statusCode:m.status,headers:m.getAllResponseHeaders&&m.getAllResponseHeaders()||{}}}catch(t){e=new c.UnparsableJSON({more:m.responseText})}e instanceof c.UnparsableJSON?n(e):r(e)}}function i(e){h||(clearTimeout(f),n(new c.Network({more:e})))}function a(){h=!0,m.abort(),n(new c.RequestTimeout)}function s(){g=!0,clearTimeout(f),f=setTimeout(a,t.timeouts.complete)}function u(){g||s()}function p(){!g&&m.readyState>1&&s()}if(!d.cors&&!d.hasXDomainRequest)return void n(new c.Network("CORS not supported"));e=l(e,t.headers);var f,h,y=t.body,m=d.cors?new XMLHttpRequest:new XDomainRequest,g=!1;f=setTimeout(a,t.timeouts.connect),m.onprogress=u,"onreadystatechange"in m&&(m.onreadystatechange=p),m.onload=o,m.onerror=i,m instanceof XMLHttpRequest?(m.open(t.method,e,!0),t.forceAuthHeaders&&(m.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),m.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):m.open(t.method,e),d.cors&&(y&&("POST"===t.method?m.setRequestHeader("content-type","application/x-www-form-urlencoded"):m.setRequestHeader("content-type","application/json")),m.setRequestHeader("accept","application/json")),y?m.send(y):m.send()})},s.prototype._request.fallback=function(e,t){return e=l(e,t.headers),new o(function(r,n){p(e,t,function(e,t){return e?void n(e):void r(t)})})},s.prototype._promise={reject:function(e){return o.reject(e)},resolve:function(e){return o.resolve(e)},delay:function(e){return new o(function(t){setTimeout(t,e)})},all:function(e){return o.all(e)}},a}}).call(this,e(11))},{1:1,11:11,19:19,20:20,22:22,25:25,3:3,30:30,32:32,5:5,6:6}],19:[function(e,t,r){"use strict";function n(e,t){return e+=/\?/.test(e)?"&":"?",e+o(t)}t.exports=n;var o=e(13)},{13:13}],20:[function(e,t,r){"use strict";function n(e,t,r){function n(){t.debug("JSONP: success"),m||f||(m=!0,p||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),s(),r(new o.JSONPScriptFail)))}function a(){"loaded"!==this.readyState&&"complete"!==this.readyState||n()}function s(){clearTimeout(g),h.onload=null,h.onreadystatechange=null,h.onerror=null,d.removeChild(h)}function u(){try{delete window[y],delete window[y+"_loaded"]}catch(e){window[y]=window[y+"_loaded"]=void 0}}function c(){t.debug("JSONP: Script timeout"),f=!0,s(),r(new o.RequestTimeout)}function l(){t.debug("JSONP: Script error"),m||f||(s(),r(new o.JSONPScriptError))}if("GET"!==t.method)return void r(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var p=!1,f=!1;i+=1;var d=document.getElementsByTagName("head")[0],h=document.createElement("script"),y="algoliaJSONP_"+i,m=!1;window[y]=function(e){return u(),f?void t.debug("JSONP: Late answer, ignoring"):(p=!0,s(),void r(null,{body:e,responseText:JSON.stringify(e)}))},e+="&c
2020-04-14 07:42:56 +02:00
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearchHelper=e()}}(function(){return function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=r[s]={exports:{}};t[s][0].call(f.exports,function(e){var r=t[s][1][e];return i(r?r:e)},f,f.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";function n(e,t,r){return new i(e,t,r)}var i=e("./src/algoliasearch.helper"),a=e("./src/SearchParameters"),s=e("./src/SearchResults");n.version=e("./src/version.js"),n.AlgoliaSearchHelper=i,n.SearchParameters=a,n.SearchResults=s,n.url=e("./src/url"),t.exports=n},{"./src/SearchParameters":291,"./src/SearchResults":294,"./src/algoliasearch.helper":295,"./src/url":299,"./src/version.js":300}],2:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,a,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var f=new Error('Uncaught, unspecified "error" event. ('+t+")");throw f.context=t,f}if(r=this._events[e],o(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(s(r))for(a=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,c=0;c<n;c++)u[c].apply(this,a);return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(r=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,a,o;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events
t.exports=n},{"./_baseRest":75,"./_isIterateeCall":160}],113:[function(e,t,r){function n(e,t){return function(r,n){if(null==r)return r;if(!i(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}var i=e("./isArrayLike");t.exports=n},{"./isArrayLike":235}],114:[function(e,t,r){function n(e){return function(t,r,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var c=s[e?o:++i];if(r(a[c],c,a)===!1)break}return t}}t.exports=n},{}],115:[function(e,t,r){function n(e,t,r){function n(){var t=this&&this!==a&&this instanceof n?c:e;return t.apply(o?r:this,arguments)}var o=t&s,c=i(e);return n}var i=e("./_createCtor"),a=e("./_root"),s=1;t.exports=n},{"./_createCtor":116,"./_root":193}],116:[function(e,t,r){function n(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=i(e.prototype),n=e.apply(r,t);return a(n)?n:r}}var i=e("./_baseCreate"),a=e("./isObject");t.exports=n},{"./_baseCreate":39,"./isObject":244}],117:[function(e,t,r){function n(e,t,r){function n(){for(var a=arguments.length,h=Array(a),p=a,d=c(n);p--;)h[p]=arguments[p];var _=a<3&&h[0]!==d&&h[a-1]!==d?[]:u(h,d);if(a-=_.length,a<r)return o(e,t,s,n.placeholder,void 0,h,_,void 0,void 0,r-a);var v=this&&this!==f&&this instanceof n?l:e;return i(v,this,h)}var l=a(e);return n}var i=e("./_apply"),a=e("./_createCtor"),s=e("./_createHybrid"),o=e("./_createRecurry"),c=e("./_getHolder"),u=e("./_replaceHolders"),f=e("./_root");t.exports=n},{"./_apply":20,"./_createCtor":116,"./_createHybrid":119,"./_createRecurry":122,"./_getHolder":136,"./_replaceHolders":192,"./_root":193}],118:[function(e,t,r){function n(e){return function(t,r,n){var o=Object(t);if(!a(t)){var c=i(r,3);t=s(t),r=function(e){return c(o[e],e,o)}}var u=e(t,r,n);return u>-1?o[c?t[u]:u]:void 0}}var i=e("./_baseIteratee"),a=e("./isArrayLike"),s=e("./keys");t.exports=n},{"./_baseIteratee":60,"./isArrayLike":235,"./keys":251}],119:[function(e,t,r){function n(e,t,r,m,b,x,j,R,F,A){function O(){for(var p=arguments.length,d=Array(p),_=p;_--;)d[_]=arguments[_];if(E)var v=u(O),y=s(d,v);if(m&&(d=i(d,m,b,E)),x&&(d=a(d,x,j,E)),p-=y,E&&p<A){var g=l(d,v);return c(e,t,n,O.placeholder,r,d,g,R,F,A-p)}var C=S?r:this,H=P?C[e]:e;return p=d.length,R?d=f(d,R):T&&p>1&&d.reverse(),w&&F<p&&(d.length=F),this&&this!==h&&this instanceof O&&(H=I||o(H)),H.apply(C,d)}var w=t&y,S=t&p,P=t&d,E=t&(_|v),T=t&g,I=P?void 0:o(e);return O}var i=e("./_composeArgs"),a=e("./_composeArgsRight"),s=e("./_countHolders"),o=e("./_createCtor"),c=e("./_createRecurry"),u=e("./_getHolder"),f=e("./_reorder"),l=e("./_replaceHolders"),h=e("./_root"),p=1,d=2,_=8,v=16,y=128,g=512;t.exports=n},{"./_composeArgs":104,"./_composeArgsRight":105,"./_countHolders":111,"./_createCtor":116,"./_createRecurry":122,"./_getHolder":136,"./_reorder":191,"./_replaceHolders":192,"./_root":193}],120:[function(e,t,r){function n(e,t){return function(r,n){return i(r,e,t(n),{})}}var i=e("./_baseInverter");t.exports=n},{"./_baseInverter":52}],121:[function(e,t,r){function n(e,t,r,n){function c(){for(var t=-1,a=arguments.length,o=-1,l=n.length,h=Array(l+a),p=this&&this!==s&&this instanceof c?f:e;++o<l;)h[o]=n[o];for(;a--;)h[o++]=arguments[++t];return i(p,u?r:this,h)}var u=t&o,f=a(e);return c}var i=e("./_apply"),a=e("./_createCtor"),s=e("./_root"),o=1;t.exports=n},{"./_apply":20,"./_createCtor":116,"./_root":193}],122:[function(e,t,r){function n(e,t,r,n,p,d,_,v,y,g){var m=t&f,b=m?_:void 0,x=m?void 0:_,j=m?d:void 0,R=m?void 0:d;t|=m?l:h,t&=~(m?h:l),t&u||(t&=~(o|c));var F=[e,t,p,j,b,R,x,v,y,g],A=r.apply(void 0,F);return i(e)&&a(A,F),A.placeholder=n,s(A,e,t)}var i=e("./_isLaziable"),a=e("./_setData"),s=e("./_setWrapToString"),o=1,c=2,u=4,f=8,l=32,h=64;t.exports=n},{"./_isLaziable":163,"./_setData":196,"./_setWrapToString":199}],123:[function(e,t,r){fun
}t.exports=n},{}],245:[function(e,t,r){function n(e){return null!=e&&"object"==typeof e}t.exports=n},{}],246:[function(e,t,r){function n(e){if(!s(e)||i(e)!=o)return!1;var t=a(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==h}var i=e("./_baseGetTag"),a=e("./_getPrototype"),s=e("./isObjectLike"),o="[object Object]",c=Function.prototype,u=Object.prototype,f=c.toString,l=u.hasOwnProperty,h=f.call(Object);t.exports=n},{"./_baseGetTag":48,"./_getPrototype":140,"./isObjectLike":245}],247:[function(e,t,r){function n(e){return"string"==typeof e||!a(e)&&s(e)&&i(e)==o}var i=e("./_baseGetTag"),a=e("./isArray"),s=e("./isObjectLike"),o="[object String]";t.exports=n},{"./_baseGetTag":48,"./isArray":234,"./isObjectLike":245}],248:[function(e,t,r){function n(e){return"symbol"==typeof e||a(e)&&i(e)==s}var i=e("./_baseGetTag"),a=e("./isObjectLike"),s="[object Symbol]";t.exports=n},{"./_baseGetTag":48,"./isObjectLike":245}],249:[function(e,t,r){var n=e("./_baseIsTypedArray"),i=e("./_baseUnary"),a=e("./_nodeUtil"),s=a&&a.isTypedArray,o=s?i(s):n;t.exports=o},{"./_baseIsTypedArray":59,"./_baseUnary":84,"./_nodeUtil":185}],250:[function(e,t,r){function n(e){return void 0===e}t.exports=n},{}],251:[function(e,t,r){function n(e){return s(e)?i(e):a(e)}var i=e("./_arrayLikeKeys"),a=e("./_baseKeys"),s=e("./isArrayLike");t.exports=n},{"./_arrayLikeKeys":25,"./_baseKeys":61,"./isArrayLike":235}],252:[function(e,t,r){function n(e){return s(e)?i(e,!0):a(e)}var i=e("./_arrayLikeKeys"),a=e("./_baseKeysIn"),s=e("./isArrayLike");t.exports=n},{"./_arrayLikeKeys":25,"./_baseKeysIn":62,"./isArrayLike":235}],253:[function(e,t,r){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.exports=n},{}],254:[function(e,t,r){function n(e,t){var r=o(e)?i:s;return r(e,a(t,3))}var i=e("./_arrayMap"),a=e("./_baseIteratee"),s=e("./_baseMap"),o=e("./isArray");t.exports=n},{"./_arrayMap":26,"./_baseIteratee":60,"./_baseMap":64,"./isArray":234}],255:[function(e,t,r){function n(e,t){var r={};return t=s(t,3),a(e,function(e,n,a){i(r,t(e,n,a),e)}),r}var i=e("./_baseAssignValue"),a=e("./_baseForOwn"),s=e("./_baseIteratee");t.exports=n},{"./_baseAssignValue":36,"./_baseForOwn":45,"./_baseIteratee":60}],256:[function(e,t,r){function n(e,t){var r={};return t=s(t,3),a(e,function(e,n,a){i(r,n,t(e,n,a))}),r}var i=e("./_baseAssignValue"),a=e("./_baseForOwn"),s=e("./_baseIteratee");t.exports=n},{"./_baseAssignValue":36,"./_baseForOwn":45,"./_baseIteratee":60}],257:[function(e,t,r){function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(n.Cache||i),r}var i=e("./_MapCache"),a="Expected a function";n.Cache=i,t.exports=n},{"./_MapCache":10}],258:[function(e,t,r){var n=e("./_baseMerge"),i=e("./_createAssigner"),a=i(function(e,t,r){n(e,t,r)});t.exports=a},{"./_baseMerge":67,"./_createAssigner":112}],259:[function(e,t,r){function n(){}t.exports=n},{}],260:[function(e,t,r){var n=e("./_arrayMap"),i=e("./_baseClone"),a=e("./_baseUnset"),s=e("./_castPath"),o=e("./_copyObject"),c=e("./_customOmitClone"),u=e("./_flatRest"),f=e("./_getAllKeysIn"),l=1,h=2,p=4,d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=s(t,e),u||(u=t.length>1),t}),o(e,f(e),r),u&&(r=i(r,l|h|p,c));for(var d=t.length;d--;)a(r,t[d]);return r});t.exports=d},{"./_arrayMap":26,"./_baseClone":38,"./_baseUnset":85,"./_castPath":90,"./_copyObject":107,"./_customOmitClone":125,"./_flatRest":130,"./_getAllKeysIn":133}],261:[function(e,t,r){function n(e,t,r,n){return null==e?[]:(a(t)||(t=null==t?[]:[t]),r=n?void 0:r,a(r)||(r=null==r?[]:[r]),i(e,t,r))}var i=e("./_baseOrderBy"),a=e("./isArray");t.exports=n},{"./_baseOrderBy":69,"./isArray":234}],262:[function(e,t,r){var n=e("./_baseRest"),i=e("./_createWrap"),a=e("./_getHolder"),s=e("./_replaceHolders"),o=32,c=n(function(e,t){var r=s(t,a(c));return i(e,o,void 0,t,r)});c.placeh
index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=A(r);if(this.isNumericRefined(e,t,n))return this;var i=F({},this.numericRefinements);return i[e]=F({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){if(void 0!==r){var n=A(r);return this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,i){return i===e&&r.op===t&&y(r.val,n)})}):this}return void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){return g(e)?{}:m(e)?h(this.numericRefinements,e):b(e)?l(this.numericRefinements,function(t,r,n){var i={};return c(r,function(t,r){var a=[];c(t,function(t){var i=e({val:t,op:r},n,"numeric");i||a.push(t)}),v(a)||(i[r]=a)}),v(i)||(t[n]=i),t},{}):void 0},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return w.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:w.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return w.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:w.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return w.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:w.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)
},n.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=n},{"./DerivedHelper":288,"./SearchParameters":291,"./SearchResults":294,"./requestBuilder":298,"./url":299,"./version":300,events:2,"lodash/flatten":223,"lodash/forEach":224,"lodash/isEmpty":238,"lodash/map":254,util:287}],296:[function(e,t,r){"use strict";var n=e("lodash/reduce"),i=e("lodash/find"),a=e("lodash/startsWith");t.exports=function(e,t){return n(e,function(e,r){var n=r.split(":");if(t&&1===n.length){var s=i(t,function(e){return a(e,r[0])});s&&(n=s.split(":"))}return e[0].push(n[0]),e[1].push(n[1]),e},[[],[]])}},{"lodash/find":221,"lodash/reduce":267,"lodash/startsWith":268}],297:[function(e,t,r){"use strict";function n(e){if(s(e))return e;if(o(e))return parseFloat(e);if(a(e))return i(e,n);throw new Error("The value should be a number, a parseable string or an array of those.")}var i=e("lodash/map"),a=e("lodash/isArray"),s=e("lodash/isNumber"),o=e("lodash/isString");t.exports=n},{"lodash/isArray":234,"lodash/isNumber":243,"lodash/isString":247,"lodash/map":254}],298:[function(e,t,r){"use strict";var n=e("lodash/forEach"),i=e("lodash/map"),a=e("lodash/reduce"),s=e("lodash/merge"),o=e("lodash/isArray"),c={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:c._getHitsSearchParams(t)}),n(t.getRefinedDisjunctiveFacets(),function(n){r.push({indexName:e,params:c._getDisjunctiveFacetSearchParams(t,n)})}),n(t.getRefinedHierarchicalFacets(),function(n){var i=t.getHierarchicalFacetByName(n),a=t.getHierarchicalRefinement(n),s=t._getHierarchicalFacetSeparator(i);a.length>0&&a[0].split(s).length>1&&r.push({indexName:e,params:c._getDisjunctiveFacetSearchParams(t,n,!0)})}),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(c._getHitsHierarchicalFacetsAttributes(e)),r=c._getFacetFilters(e),n=c._getNumericFilters(e),i=c._getTagFilters(e),a={facets:t,tagFilters:i};return r.length>0&&(a.facetFilters=r),n.length>0&&(a.numericFilters=n),s(e.getQueryParams(),a)},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=c._getFacetFilters(e,t,r),i=c._getNumericFilters(e,t),a=c._getTagFilters(e),o={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:a},u=e.getHierarchicalFacetByName(t);return u?o.facets=c._getDisjunctiveHierarchicalFacetAttribute(e,u,r):o.facets=t,i.length>0&&(o.numericFilters=i),n.length>0&&(o.facetFilters=n),s(e.getQueryParams(),o)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return n(e.numericRefinements,function(e,a){n(e,function(e,s){t!==a&&n(e,function(e){if(o(e)){var t=i(e,function(e){return a+s+e});r.push(t)}else r.push(a+s+e)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var i=[];return n(e.facetsRefinements,function(e,t){n(e,function(e){i.push(t+":"+e)})}),n(e.facetsExcludes,function(e,t){n(e,function(e){i.push(t+":-"+e)})}),n(e.disjunctiveFacetsRefinements,function(e,r){if(r!==t&&e&&0!==e.length){var a=[];n(e,function(e){a.push(r+":"+e)}),i.push(a)}}),n(e.hierarchicalFacetsRefinements,function(n,a){var s=n[0];if(void 0!==s){var o,c,u=e.getHierarchicalFacetByName(a),f=e._getHierarchicalFacetSeparator(u),l=e._getHierarchicalRootPath(u);if(t===a){if(s.indexOf(f)===-1||!l&&r===!0||l&&l.split(f).length===s.split(f).length)return;l?(c=l.split(f).length-1,s=l):(c=s.split(f).length-2,s=s.slice(0,s.lastIndexOf(f))),o=u.attributes[c]}else c=s.split(f).length-1,o=u.attributes[c];o&&i.push([o+":"+s])}}),i},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return a(e.hierarchicalFacets,function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(r===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=e.getH