Files
docker-docs/js/docsearch.min.js
John Mulhausen 3dc985adba Test run
2016-08-18 19:14:27 -07:00

6 lines
98 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! docsearch 2.1.4 | © Algolia | github.com/algolia/docsearch */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.docsearch=e():t.docsearch=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports=n(1)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=i(r),s=n(3),a=i(s),u=n(56),c=i(u),l=(0,o.default)(a.default);l.version=c.default,e.default=l,t.exports=e.default},function(t,e){"use strict";function n(t){var e=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return new(i.apply(t,[null].concat(n)))};return e.__proto__=t,e.prototype=t.prototype,e}var i=Function.prototype.bind;t.exports=n},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(4),u=i(a),c=n(7),l=i(c),h=n(35),p=i(h),f=n(53),d=i(f),m=n(54),g=i(m),v=n(56),y=i(v),b=n(55),w=i(b),_="Usage:\n documentationSearch({\n apiKey,\n indexName,\n inputSelector,\n [ appId ],\n [ algoliaOptions.{hitsPerPage} ]\n [ autocompleteOptions.{hint,debug} ]\n})",x=function(){function t(e){var n=e.apiKey,i=e.indexName,s=e.inputSelector,a=e.appId,u=void 0===a?"BH4D9OD16A":a,c=e.debug,h=void 0!==c&&c,f=e.algoliaOptions,m=void 0===f?{}:f,g=e.autocompleteOptions,v=void 0===g?{debug:!1,hint:!1,autoselect:!0}:g,b=e.transformData,w=void 0!==b&&b,_=e.handleSelected,x=void 0!==_&&_,S=e.enhancedSearchInput,C=void 0!==S&&S,T=e.layout,A=void 0===T?"collumns":T;r(this,t),t.checkArguments({apiKey:n,indexName:i,inputSelector:s,debug:h,algoliaOptions:m,autocompleteOptions:v,transformData:w,handleSelected:x,enhancedSearchInput:C,layout:A}),this.apiKey=n,this.appId=u,this.indexName=i,this.input=t.getInputFromSelector(s),this.algoliaOptions=o({hitsPerPage:5},m);var E=!(!v||!v.debug)&&v.debug;v.debug=h||E,this.autocompleteOptions=v,this.autocompleteOptions.cssClasses={prefix:"ds"},x=x||this.handleSelected,this.isSimpleLayout="simple"===A,this.client=(0,l.default)(this.appId,this.apiKey),this.client.addAlgoliaAgent("docsearch.js "+y.default),C&&(t.injectSearchBox(this.input),this.input=t.getInputFromSelector("#docsearch")),this.autocomplete=(0,p.default)(this.input,v,[{source:this.getAutocompleteSource(w),templates:{suggestion:t.getSuggestionTemplate(this.isSimpleLayout),footer:d.default.footer,empty:t.getEmptyTemplate()}}]),this.autocomplete.on("autocomplete:selected",x.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),C&&t.bindSearchBoxEvent()}return s(t,[{key:"getAutocompleteSource",value:function(e){var n=this;return function(i,r){n.client.search([{indexName:n.indexName,query:i,params:n.algoliaOptions}]).then(function(n){var i=n.results[0].hits;e&&(i=e(i)||i),r(t.formatHits(i))})}}},{key:"handleSelected",value:function(t,e,n){t.setVal(""),window.location.href=n.url}},{key:"handleShown",value:function(t){var e=t.offset().left+t.width()/2,n=(0,w.default)(document).width()/2;isNaN(n)&&(n=900);var i=e-n>=0?"algolia-autocomplete-right":"algolia-autocomplete-left",r=e-n<0?"algolia-autocomplete-right":"algolia-autocomplete-left",o=(0,w.default)(".algolia-autocomplete");o.hasClass(i)||o.addClass(i),o.hasClass(r)&&o.removeClass(r)}}],[{key:"checkArguments",value:function(e){if(!e.apiKey||!e.indexName)throw new Error(_);if(!t.getInputFromSelector(e.inputSelector))throw new Error("Error: No input element in the page matches "+e.inputSelector)}},{key:"injectSearchBox",value:function(t){t.before(d.default.searchBox),t.remove()}},{key:"bindSearchBoxEvent",value:function(){(0,w.default)('.searchbox [type="reset"]').on("click",function(){(0,w.default)("input#docsearch").focus(),(0,w.default)(this).addClass("hide"),p.default.autocomplete.setVal("")}),(0,w.default)("input#docsearch").on("keyup",function(){var t=document.querySelector("input#docsearch"),e=document.querySelector('.searchbox [type="reset"]');e.className="searchbox__reset",0===t.value.length&&(e.className+=" hide")})}},{key:"getInputFromSelector",value:function(t){var e=(0,w.default)(t).filter("input");return e.length?(0,w.default)(e[0]):null}},{key:"formatHits",value:function(e){var n=g.default.deepClone(e),i=n.map(function(t){return t._highlightResult&&(t._highlightResult=g.default.mergeKeyWithParent(t._highlightResult,"hierarchy")),g.default.mergeKeyWithParent(t,"hierarchy")}),r=g.default.groupBy(i,"lvl0");return w.default.each(r,function(t,e){var n=g.default.groupBy(e,"lvl1"),i=g.default.flattenAndFlagFirst(n,"isSubCategoryHeader");r[t]=i}),r=g.default.flattenAndFlagFirst(r,"isCategoryHeader"),r.map(function(e){var n=t.formatURL(e),i=g.default.getHighlightedValue(e,"lvl0"),r=g.default.getHighlightedValue(e,"lvl1")||i,o=g.default.compact([g.default.getHighlightedValue(e,"lvl2")||r,g.default.getHighlightedValue(e,"lvl3"),g.default.getHighlightedValue(e,"lvl4"),g.default.getHighlightedValue(e,"lvl5"),g.default.getHighlightedValue(e,"lvl6")]).join('<span class="aa-suggestion-title-separator"> </span>'),s=g.default.getSnippetedValue(e,"content"),a=r&&""!==r||o&&""!==o,u=!r||""===r||r===i,c=o&&""!==o&&o!==r,l=!c&&r&&""!==r&&r!==i,h=!l&&!c;return{isLvl0:h,isLvl1:l,isLvl2:c,isLvl1EmptyOrDuplicate:u,isCategoryHeader:e.isCategoryHeader,isSubCategoryHeader:e.isSubCategoryHeader,isTextOrSubcatoryNonEmpty:a,category:i,subcategory:r,title:o,text:s,url:n}})}},{key:"formatURL",value:function(t){var e=t.url,n=t.anchor;if(e){var i=e.indexOf("#")!==-1;return i?e:n?t.url+"#"+t.anchor:e}return n?"#"+t.anchor:(console.warn("no anchor nor url for : ",JSON.stringify(t)),null)}},{key:"getEmptyTemplate",value:function(){return function(t){return u.default.compile(d.default.empty).render(t)}}},{key:"getSuggestionTemplate",value:function(t){var e=t?d.default.suggestionSimple:d.default.suggestion,n=u.default.compile(e);return function(t){return n.render(t)}}}]),t}();e.default=x,t.exports=e.default},function(t,e,n){var i=n(5);i.Template=n(6).Template,i.template=i.Template,t.exports=i},function(t,e,n){!function(t){function e(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function n(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function i(t,e,n){if(e.charAt(n)!=t.charAt(0))return!1;for(var i=1,r=t.length;i<r;i++)if(e.charAt(n+i)!=t.charAt(i))return!1;return!0}function r(e,n,i,a){var u=[],c=null,l=null,h=null;for(l=i[i.length-1];e.length>0;){if(h=e.shift(),l&&"<"==l.tag&&!(h.tag in _))throw new Error("Illegal content in < super tag.");if(t.tags[h.tag]<=t.tags.$||o(h,a))i.push(h),h.nodes=r(e,h.tag,i,a);else{if("/"==h.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+h.n);if(c=i.pop(),h.n!=c.n&&!s(h.n,c.n,a))throw new Error("Nesting error: "+c.n+" vs. "+h.n);return c.end=h.i,u}"\n"==h.tag&&(h.last=0==e.length||"\n"==e[0].tag)}u.push(h)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return u}function o(t,e){for(var n=0,i=e.length;n<i;n++)if(e[n].o==t.n)return t.tag="#",!0}function s(t,e,n){for(var i=0,r=n.length;i<r;i++)if(n[i].c==t&&n[i].o==e)return!0}function a(t){var e=[];for(var n in t)e.push('"'+c(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+e.join(",")+" }"}function u(t){var e=[];for(var n in t.partials)e.push('"'+c(n)+'":{name:"'+c(t.partials[n].name)+'", '+u(t.partials[n])+"}");return"partials: {"+e.join(",")+"}, subs: "+a(t.subs)}function c(t){return t.replace(y,"\\\\").replace(m,'\\"').replace(g,"\\n").replace(v,"\\r").replace(b,"\\u2028").replace(w,"\\u2029")}function l(t){return~t.indexOf(".")?"d":"f"}function h(t,e){var n="<"+(e.prefix||""),i=n+t.n+x++;return e.partials[i]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+c(i)+'",c,p,"'+(t.indent||"")+'"));',i}function p(t,e){e.code+="t.b(t.t(t."+l(t.n)+'("'+c(t.n)+'",c,p,0)));'}function f(t){return"t.b("+t+");"}var d=/\S/,m=/\"/g,g=/\n/g,v=/\r/g,y=/\\/g,b=/\u2028/,w=/\u2029/;t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},t.scan=function(r,o){function s(){y.length>0&&(b.push({tag:"_t",text:new String(y)}),y="")}function a(){for(var e=!0,n=x;n<b.length;n++)if(e=t.tags[b[n].tag]<t.tags._v||"_t"==b[n].tag&&null===b[n].text.match(d),!e)return!1;return e}function u(t,e){if(s(),t&&a())for(var n,i=x;i<b.length;i++)b[i].text&&((n=b[i+1])&&">"==n.tag&&(n.indent=b[i].text.toString()),b.splice(i,1));else e||b.push({tag:"\n"});w=!1,x=b.length}function c(t,e){var i="="+C,r=t.indexOf(i,e),o=n(t.substring(t.indexOf("=",e)+1,r)).split(" ");return S=o[0],C=o[o.length-1],r+i.length-1}var l=r.length,h=0,p=1,f=2,m=h,g=null,v=null,y="",b=[],w=!1,_=0,x=0,S="{{",C="}}";for(o&&(o=o.split(" "),S=o[0],C=o[1]),_=0;_<l;_++)m==h?i(S,r,_)?(--_,s(),m=p):"\n"==r.charAt(_)?u(w):y+=r.charAt(_):m==p?(_+=S.length-1,v=t.tags[r.charAt(_+1)],g=v?r.charAt(_+1):"_v","="==g?(_=c(r,_),m=h):(v&&_++,m=f),w=_):i(C,r,_)?(b.push({tag:g,n:n(y),otag:S,ctag:C,i:"/"==g?w-S.length:_+C.length}),y="",_+=C.length-1,m=h,"{"==g&&("}}"==C?_++:e(b[b.length-1]))):y+=r.charAt(_);return u(w,!0),b};var _={_t:!0,"\n":!0,$:!0,"/":!0};t.stringify=function(e,n,i){return"{code: function (c,p,i) { "+t.wrapMain(e.code)+" },"+u(e)+"}"};var x=0;t.generate=function(e,n,i){x=0;var r={code:"",subs:{},partials:{}};return t.walk(e,r),i.asString?this.stringify(r,n,i):this.makeTemplate(r,n,i)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,e,n){var i=this.makePartials(t);return i.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(i,e,this,n)},t.makePartials=function(t){var e,n={subs:{},partials:t.partials,name:t.name};for(e in n.partials)n.partials[e]=this.makePartials(n.partials[e]);for(e in t.subs)n.subs[e]=new Function("c","p","t","i",t.subs[e]);return n},t.codegen={"#":function(e,n){n.code+="if(t.s(t."+l(e.n)+'("'+c(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(e.nodes,n),n.code+="});c.pop();}"},"^":function(e,n){n.code+="if(!t.s(t."+l(e.n)+'("'+c(e.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(e.nodes,n),n.code+="};"},">":h,"<":function(e,n){var i={partials:{},code:"",subs:{},inPartial:!0};t.walk(e.nodes,i);var r=n.partials[h(e,n)];r.subs=i.subs,r.partials=i.partials},$:function(e,n){var i={subs:{},code:"",partials:n.partials,prefix:e.n};t.walk(e.nodes,i),n.subs[e.n]=i.code,n.inPartial||(n.code+='t.sub("'+c(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=f('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+l(t.n)+'("'+c(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=f('"'+c(t.text)+'"')},"{":p,"&":p},t.walk=function(e,n){for(var i,r=0,o=e.length;r<o;r++)i=t.codegen[e[r].tag],i&&i(e[r],n);return n},t.parse=function(t,e,n){return n=n||{},r(t,"",[],n.sectionTags||[])},t.cache={},t.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},t.compile=function(e,n){n=n||{};var i=t.cacheKey(e,n),r=this.cache[i];if(r){var o=r.partials;for(var s in o)delete o[s].instance;return r}return r=this.generate(this.parse(this.scan(e,n.delimiters),e,n),e,n),this.cache[i]=r}}(e)},function(t,e,n){!function(t){function e(t,e,n){var i;return e&&"object"==typeof e&&(void 0!==e[t]?i=e[t]:n&&e.get&&"function"==typeof e.get&&(i=e.get(t))),i}function n(t,e,n,i,r,o){function s(){}function a(){}s.prototype=t,a.prototype=t.subs;var u,c=new s;c.subs=new a,c.subsText={},c.buf="",i=i||{},c.stackSubs=i,c.subsText=o;for(u in e)i[u]||(i[u]=e[u]);for(u in i)c.subs[u]=i[u];r=r||{},c.stackPartials=r;for(u in n)r[u]||(r[u]=n[u]);for(u in r)c.partials[u]=r[u];return c}function i(t){return String(null===t||void 0===t?"":t)}function r(t){return t=i(t),l.test(t)?t.replace(o,"&amp;").replace(s,"&lt;").replace(a,"&gt;").replace(u,"&#39;").replace(c,"&quot;"):t}t.Template=function(t,e,n,i){t=t||{},this.r=t.code||this.r,this.c=n,this.options=i||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,n){return""},v:r,t:i,render:function(t,e,n){return this.ri([t],e||{},n)},ri:function(t,e,n){return this.r(t,e,n)},ep:function(t,e){var i=this.partials[t],r=e[i.name];if(i.instance&&i.base==r)return i.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[t].base=r,i.subs){e.stackText||(e.stackText={});for(key in i.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);r=n(r,i.subs,i.partials,this.stackSubs,this.stackPartials,e.stackText)}return this.partials[t].instance=r,r},rp:function(t,e,n,i){var r=this.ep(t,n);return r?r.ri(e,n,i):""},rs:function(t,e,n){var i=t[t.length-1];if(!h(i))return void n(t,e,this);for(var r=0;r<i.length;r++)t.push(i[r]),n(t,e,this),t.pop()},s:function(t,e,n,i,r,o,s){var a;return(!h(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,n,i,r,o,s)),a=!!t,!i&&a&&e&&e.push("object"==typeof t?t:e[e.length-1]),a)},d:function(t,n,i,r){var o,s=t.split("."),a=this.f(s[0],n,i,r),u=this.options.modelGet,c=null;if("."===t&&h(n[n.length-2]))a=n[n.length-1];else for(var l=1;l<s.length;l++)o=e(s[l],a,u),void 0!==o?(c=a,a=o):a="";return!(r&&!a)&&(r||"function"!=typeof a||(n.push(c),a=this.mv(a,n,i),n.pop()),a)},f:function(t,n,i,r){for(var o=!1,s=null,a=!1,u=this.options.modelGet,c=n.length-1;c>=0;c--)if(s=n[c],o=e(t,s,u),void 0!==o){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,n,i)),o):!r&&""},ls:function(t,e,n,r,o){var s=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(i(t.call(e,r)),e,n)),this.options.delimiters=s,!1},ct:function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,n,i,r,o,s){var a,u=e[e.length-1],c=t.call(u);return"function"==typeof c?!!i||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,u,n,a.substring(r,o),s)):c},mv:function(t,e,n){var r=e[e.length-1],o=t.call(r);return"function"==typeof o?this.ct(i(o.call(r)),r,n):o},sub:function(t,e,n,i){var r=this.subs[t];r&&(this.activeSub=t,r(e,n,this,i),this.activeSub=!1)}};var o=/&/g,s=/</g,a=/>/g,u=/\'/g,c=/\"/g,l=/[&<>\"\']/,h=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){"use strict";var i=n(8),r=n(22);t.exports=r(i,"(lite) ")},function(t,e,n){function i(t,e,i){var o=n(18)("algoliasearch"),a=n(21),c=n(16),l=n(17),h="Usage: algoliasearch(applicationID, apiKey, opts)";if(i._allowEmptyCredentials!==!0&&!t)throw new u.AlgoliaSearchError("Please provide an application ID. "+h);if(i._allowEmptyCredentials!==!0&&!e)throw new u.AlgoliaSearchError("Please provide an API key. "+h);this.applicationID=t,this.apiKey=e;var p=s([this.applicationID+"-1.algolianet.com",this.applicationID+"-2.algolianet.com",this.applicationID+"-3.algolianet.com"]);this.hosts={read:[],write:[]},this.hostIndex={read:0,write:0},i=i||{};var f=i.protocol||"https:",d=void 0===i.timeout?2e3:i.timeout;if(/:$/.test(f)||(f+=":"),"http:"!==i.protocol&&"https:"!==i.protocol)throw new u.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+i.protocol+"`)");i.hosts?c(i.hosts)?(this.hosts.read=a(i.hosts),this.hosts.write=a(i.hosts)):(this.hosts.read=a(i.hosts.read),this.hosts.write=a(i.hosts.write)):(this.hosts.read=[this.applicationID+"-dsn.algolia.net"].concat(p),this.hosts.write=[this.applicationID+".algolia.net"].concat(p)),this.hosts.read=l(this.hosts.read,r(f)),this.hosts.write=l(this.hosts.write,r(f)),this.requestTimeout=d,this.extraHeaders=[],this.cache=i._cache||{},this._ua=i._ua,this._useCache=!(void 0!==i._useCache&&!i._cache)||i._useCache,this._useFallback=void 0===i.useFallback||i.useFallback,this._setTimeout=i._setTimeout,o("init done, %j",this)}function r(t){return function(e){return t+"//"+e.toLowerCase()}}function o(t){if(void 0===Array.prototype.toJSON)return JSON.stringify(t);var e=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(t);return Array.prototype.toJSON=e,n}function s(t){for(var e,n,i=t.length;0!==i;)n=Math.floor(Math.random()*i),i-=1,e=t[i],t[i]=t[n],t[n]=e;return t}function a(t){var e={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i;i="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":t[n],e[n]=i}return e}t.exports=i;var u=n(9),c=n(12),l=n(13),h=500;i.prototype.initIndex=function(t){return new l(this,t)},i.prototype.setExtraHeader=function(t,e){this.extraHeaders.push({name:t.toLowerCase(),value:e})},i.prototype.addAlgoliaAgent=function(t){this._ua+=";"+t},i.prototype._jsonRequest=function(t){function e(n,c){function h(t){var e=t&&t.body&&t.body.message&&t.body.status||t.statusCode||t&&t.body&&200;s("received response: statusCode: %s, computed statusCode: %d, headers: %j",t.statusCode,e,t.headers);var n=2===Math.floor(e/100),o=new Date;if(g.push({currentHost:x,headers:a(r),content:i||null,contentLength:void 0!==i?i.length:null,method:c.method,timeout:c.timeout,url:c.url,startTime:_,endTime:o,duration:o-_,statusCode:e}),n)return p._useCache&&l&&(l[w]=t.responseText),t.body;var h=4!==Math.floor(e/100);if(h)return f+=1,y();s("unrecoverable error");var d=new u.AlgoliaSearchError(t.body&&t.body.message,{debugData:g,statusCode:e});return p._promise.reject(d)}function v(e){s("error: %s, stack: %s",e.message,e.stack);var n=new Date;return g.push({currentHost:x,headers:a(r),content:i||null,contentLength:void 0!==i?i.length:null,method:c.method,timeout:c.timeout,url:c.url,startTime:_,endTime:n,duration:n-_}),e instanceof u.AlgoliaSearchError||(e=new u.Unknown(e&&e.message,e)),f+=1,e instanceof u.Unknown||e instanceof u.UnparsableJSON||f>=p.hosts[t.hostType].length&&(d||!m)?(e.debugData=g,p._promise.reject(e)):e instanceof u.RequestTimeout?b():y()}function y(){return s("retrying request"),p.hostIndex[t.hostType]=(p.hostIndex[t.hostType]+1)%p.hosts[t.hostType].length,e(n,c)}function b(){return s("retrying request with higher timeout"),p.hostIndex[t.hostType]=(p.hostIndex[t.hostType]+1)%p.hosts[t.hostType].length,c.timeout=p.requestTimeout*(f+1),e(n,c)}var w,_=new Date;if(p._useCache&&(w=t.url),p._useCache&&i&&(w+="_body_"+c.body),p._useCache&&l&&void 0!==l[w])return s("serving response from cache"),p._promise.resolve(JSON.parse(l[w]));if(f>=p.hosts[t.hostType].length)return!m||d?(s("could not get any response"),p._promise.reject(new u.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+p.applicationID,{debugData:g}))):(s("switching to fallback"),f=0,c.method=t.fallback.method,c.url=t.fallback.url,c.jsonBody=t.fallback.body,c.jsonBody&&(c.body=o(c.jsonBody)),r=p._computeRequestHeaders(),c.timeout=p.requestTimeout*(f+1),p.hostIndex[t.hostType]=0,d=!0,e(p._request.fallback,c));var x=p.hosts[t.hostType][p.hostIndex[t.hostType]],S=x+c.url,C={body:c.body,jsonBody:c.jsonBody,method:c.method,headers:r,timeout:c.timeout,debug:s};return s("method: %s, url: %s, headers: %j, timeout: %d",C.method,S,C.headers,C.timeout),n===p._request.fallback&&s("using fallback"),n.call(p,S,C).then(h,v)}var i,r,s=n(18)("algoliasearch:"+t.url),l=t.cache,p=this,f=0,d=!1,m=p._useFallback&&p._request.fallback&&t.fallback;this.apiKey.length>h&&void 0!==t.body&&void 0!==t.body.params?(t.body.apiKey=this.apiKey,r=this._computeRequestHeaders(!1)):r=this._computeRequestHeaders(),void 0!==t.body&&(i=o(t.body)),s("request start");var g=[],v=e(p._request,{url:t.url,method:t.method,body:i,jsonBody:t.body,timeout:p.requestTimeout*(f+1)});return t.callback?void v.then(function(e){c(function(){t.callback(null,e)},p._setTimeout||setTimeout)},function(e){c(function(){t.callback(e)},p._setTimeout||setTimeout)}):v},i.prototype._getSearchParams=function(t,e){if(void 0===t||null===t)return e;for(var n in t)null!==n&&void 0!==t[n]&&t.hasOwnProperty(n)&&(e+=""===e?"":"&",e+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?o(t[n]):t[n]));return e},i.prototype._computeRequestHeaders=function(t){var e=n(11),i={"x-algolia-agent":this._ua,"x-algolia-application-id":this.applicationID};return t!==!1&&(i["x-algolia-api-key"]=this.apiKey),this.userToken&&(i["x-algolia-usertoken"]=this.userToken),this.securityTags&&(i["x-algolia-tagfilters"]=this.securityTags),this.extraHeaders&&e(this.extraHeaders,function(t){i[t.name]=t.value}),i},i.prototype.search=function(t,e,i){var r=n(16),o=n(17),s="Usage: client.search(arrayOfQueries[, callback])";if(!r(t))throw new Error(s);"function"==typeof e?(i=e,e={}):void 0===e&&(e={});var a=this,u={requests:o(t,function(t){var e="";return void 0!==t.query&&(e+="query="+encodeURIComponent(t.query)),{indexName:t.indexName,params:a._getSearchParams(t.params,e)}})},c=o(u.requests,function(t,e){return e+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(t.indexName)+"?"+t.params)}).join("&"),l="/1/indexes/*/queries";return void 0!==e.strategy&&(l+="?strategy="+e.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:l,body:u,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:c}},callback:i})},i.prototype.setSecurityTags=function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var i=[],r=0;r<t[n].length;++r)i.push(t[n][r]);e.push("("+i.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.securityTags=t},i.prototype.setUserToken=function(t){this.userToken=t},i.prototype.clearCache=function(){this.cache={}},i.prototype.setRequestTimeout=function(t){t&&(this.requestTimeout=parseInt(t,10))}},function(t,e,n){"use strict";function i(t,e){var i=n(11),r=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):r.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",e&&i(e,function(t,e){r[e]=t})}function r(t,e){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(e),i.apply(this,n),this.name="AlgoliaSearch"+t+"Error"}return o(n,i),n}var o=n(10);o(i,Error),t.exports={AlgoliaSearchError:i,UnparsableJSON:r("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:r("RequestTimeout","Request timedout before getting a response"),Network:r("Network","Network issue, see err.more for details"),JSONPScriptFail:r("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:r("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:r("Unknown","Unknown error occured")}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function(t,e,r){if("[object Function]"!==i.call(e))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)e.call(r,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(r,t[a],a,t)}},function(t,e){t.exports=function(t,e){e(t,0)}},function(t,e,n){function i(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var r=n(14);t.exports=i,i.prototype.clearCache=function(){this.cache={}},i.prototype.search=r("query"),i.prototype.similarSearch=r("similarQuery"),i.prototype.browse=function(t,e,i){var r,o,s=n(15),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(r=0,i=arguments[0],t=void 0):"number"==typeof arguments[0]?(r=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(i=arguments[1],o=void 0),t=void 0,e=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(i=arguments[1]),e=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(i=arguments[1],e=void 0),e=s({},e||{},{page:r,hitsPerPage:o,query:t});var u=this.as._getSearchParams(e,"");return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse?"+u,hostType:"read",callback:i})},i.prototype.browseFrom=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse?cursor="+encodeURIComponent(t),hostType:"read",callback:e})},i.prototype._search=function(t,e,n){return this.as._jsonRequest({cache:this.cache,method:"POST",url:e||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:t},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:t}},callback:n})},i.prototype.getObject=function(t,e,n){var i=this;1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var r="";if(void 0!==e){r="?attributes=";for(var o=0;o<e.length;++o)0!==o&&(r+=","),r+=e[o]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/"+encodeURIComponent(t)+r,hostType:"read",callback:n})},i.prototype.getObjects=function(t,e,i){var r=n(16),o=n(17),s="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!r(t))throw new Error(s);var a=this;1!==arguments.length&&"function"!=typeof e||(i=e,e=void 0);var u={requests:o(t,function(t){var n={indexName:a.indexName,objectID:t};return e&&(n.attributesToRetrieve=e.join(",")),n})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:u,callback:i})},i.prototype.as=null,i.prototype.indexName=null,i.prototype.typeAheadArgs=null,i.prototype.typeAheadValueOption=null},function(t,e,n){function i(t,e){return function(n,i,o){if("function"==typeof n&&"object"==typeof i||"object"==typeof o)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(o=n,n=""):1!==arguments.length&&"function"!=typeof i||(o=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):void 0!==n&&null!==n||(n="");var s="";return void 0!==n&&(s+=t+"="+encodeURIComponent(n)),void 0!==i&&(s=this.as._getSearchParams(i,s)),this._search(s,e,o)}}t.exports=i;var r=n(9)},function(t,e,n){var i=n(11);t.exports=function t(e){var n=Array.prototype.slice.call(arguments);return i(n,function(n){for(var i in n)n.hasOwnProperty(i)&&("object"==typeof e[i]&&"object"==typeof n[i]?e[i]=t({},e[i],n[i]):void 0!==n[i]&&(e[i]=n[i]))}),e}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var i=n(11);t.exports=function(t,e){var n=[];return i(t,function(i,r){n.push(e(i,r,t))}),n}},function(t,e,n){function i(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function r(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var i="color: "+this.color;t=[t[0],i,"color: inherit"].concat(Array.prototype.slice.call(t,1));var r=0,o=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))}),t.splice(o,0,i),t}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function a(){var t;try{t=e.storage.debug}catch(t){}return t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(19),e.log=o,e.formatArgs=r,e.save=s,e.load=a,e.useColors=i,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(a())},function(t,e,n){function i(){return e.colors[l++%e.colors.length]}function r(t){function n(){}function r(){var t=r,n=+new Date,o=n-(c||n);t.diff=o,t.prev=c,t.curr=n,c=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=i());var s=Array.prototype.slice.call(arguments);s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(n,i){if("%%"===n)return n;a++;var r=e.formatters[i];if("function"==typeof r){var o=s[a];n=r.call(t,o),s.splice(a,1),a--}return n}),"function"==typeof e.formatArgs&&(s=e.formatArgs.apply(t,s));var u=r.log||e.log||console.log.bind(console);u.apply(t,s)}n.enabled=!1,r.enabled=!0;var o=e.enabled(t)?r:n;return o.namespace=t,o}function o(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&(t=n[r].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function a(t){var n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=r,e.coerce=u,e.disable=s,e.enable=o,e.enabled=a,e.humanize=n(20),e.names=[],e.skips=[],e.formatters={};var c,l=0},function(t,e){function n(t){if(t=""+t,!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function i(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function r(t){return o(t,c,"day")||o(t,u,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,l=365.25*c;t.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e.long?r(t):i(t)}},function(t,e){t.exports=function(t){return JSON.parse(JSON.stringify(t))}},function(t,e,n){"use strict";var i=n(23),r=i.Promise||n(24).Promise;t.exports=function(t,e){function o(t,e,i){var r=n(21),a=n(33);return i=r(i||{}),void 0===i.protocol&&(i.protocol=a()),i._ua=i._ua||o.ua,new s(t,e,i)}function s(){t.apply(this,arguments)}var a=n(10),u=n(9),c=n(29),l=n(31),h=n(32);e=e||"",o.version=n(34),o.ua="Algolia for vanilla JavaScript "+e+o.version,o.initPlaces=h(o),i.__algolia={debug:n(18),algoliasearch:o};var p={hasXMLHttpRequest:"XMLHttpRequest"in i,hasXDomainRequest:"XDomainRequest"in i};return p.hasXMLHttpRequest&&(p.cors="withCredentials"in new XMLHttpRequest,
p.timeout="timeout"in new XMLHttpRequest),a(s,t),s.prototype._request=function(t,e){return new r(function(n,i){function r(){if(!l){p.timeout||clearTimeout(a);var t;try{t={body:JSON.parse(f.responseText),responseText:f.responseText,statusCode:f.status,headers:f.getAllResponseHeaders&&f.getAllResponseHeaders()||{}}}catch(e){t=new u.UnparsableJSON({more:f.responseText})}t instanceof u.UnparsableJSON?i(t):n(t)}}function o(t){l||(p.timeout||clearTimeout(a),i(new u.Network({more:t})))}function s(){p.timeout||(l=!0,f.abort()),i(new u.RequestTimeout)}if(!p.cors&&!p.hasXDomainRequest)return void i(new u.Network("CORS not supported"));t=c(t,e.headers);var a,l,h=e.body,f=p.cors?new XMLHttpRequest:new XDomainRequest;f instanceof XMLHttpRequest?f.open(e.method,t,!0):f.open(e.method,t),p.cors&&(h&&("POST"===e.method?f.setRequestHeader("content-type","application/x-www-form-urlencoded"):f.setRequestHeader("content-type","application/json")),f.setRequestHeader("accept","application/json")),f.onprogress=function(){},f.onload=r,f.onerror=o,p.timeout?(f.timeout=e.timeout,f.ontimeout=s):a=setTimeout(s,e.timeout),f.send(h)})},s.prototype._request.fallback=function(t,e){return t=c(t,e.headers),new r(function(n,i){l(t,e,function(t,e){return t?void i(t):void n(e)})})},s.prototype._promise={reject:function(t){return r.reject(t)},resolve:function(t){return r.resolve(t)},delay:function(t){return new r(function(e){setTimeout(e,t)})}},o}},function(t,e){(function(e){"undefined"!=typeof window?t.exports=window:"undefined"!=typeof e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(e,function(){return this}())},function(t,e,n){var i;(function(t,r,o){(function(){"use strict";function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return"function"==typeof t}function u(t){G=t}function c(t){tt=t}function l(){return function(){t.nextTick(m)}}function h(){return function(){Z(m)}}function p(){var t=0,e=new it(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function f(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<Y;t+=2){var e=st[t],n=st[t+1];e(n),st[t]=void 0,st[t+1]=void 0}Y=0}function g(){try{var t=n(27);return Z=t.runOnLoop||t.runOnContext,h()}catch(t){return d()}}function v(t,e){var n=this,i=new this.constructor(b);void 0===i[ct]&&q(i);var r=n._state;if(r){var o=arguments[r-1];tt(function(){D(r,i,o,n._result)})}else I(n,i,t,e);return i}function y(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(b);return E(n,t),n}function b(){}function w(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function x(t){try{return t.then}catch(t){return ft.error=t,ft}}function S(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function C(t,e,n){tt(function(t){var i=!1,r=S(n,e,function(n){i||(i=!0,e!==n?E(t,n):O(t,n))},function(e){i||(i=!0,N(t,e))},"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,N(t,r))},t)}function T(t,e){e._state===ht?O(t,e._result):e._state===pt?N(t,e._result):I(e,void 0,function(e){E(t,e)},function(e){N(t,e)})}function A(t,e,n){e.constructor===t.constructor&&n===at&&constructor.resolve===ut?T(t,e):n===ft?N(t,ft.error):void 0===n?O(t,e):a(n)?C(t,e,n):O(t,e)}function E(t,e){t===e?N(t,w()):s(e)?A(t,e,x(e)):O(t,e)}function k(t){t._onerror&&t._onerror(t._result),j(t)}function O(t,e){t._state===lt&&(t._result=e,t._state=ht,0!==t._subscribers.length&&tt(j,t))}function N(t,e){t._state===lt&&(t._state=pt,t._result=e,tt(k,t))}function I(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+ht]=n,r[o+pt]=i,0===o&&t._state&&tt(j,t)}function j(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i,r,o=t._result,s=0;s<e.length;s+=3)i=e[s],r=e[s+n],i?D(n,i,r,o):r(o);t._subscribers.length=0}}function P(){this.error=null}function R(t,e){try{return t(e)}catch(t){return dt.error=t,dt}}function D(t,e,n,i){var r,o,s,u,c=a(n);if(c){if(r=R(n,i),r===dt?(u=!0,o=r.error,r=null):s=!0,e===r)return void N(e,_())}else r=i,s=!0;e._state!==lt||(c&&s?E(e,r):u?N(e,o):t===ht?O(e,r):t===pt&&N(e,r))}function $(t,e){try{e(function(e){E(t,e)},function(e){N(t,e)})}catch(e){N(t,e)}}function L(){return mt++}function q(t){t[ct]=mt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function H(t){return new wt(this,t).promise}function M(t){var e=this;return new e(W(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(b);return N(n,t),n}function V(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function B(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(t){this[ct]=L(),this._result=this._state=void 0,this._subscribers=[],b!==t&&("function"!=typeof t&&V(),this instanceof U?$(this,t):B())}function K(t,e){this._instanceConstructor=t,this.promise=new t(b),this.promise[ct]||q(this.promise),W(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?O(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&O(this.promise,this._result))):N(this.promise,J())}function J(){return new Error("Array Methods must be provided an Array")}function z(){var t;if("undefined"!=typeof r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;e&&"[object Promise]"===Object.prototype.toString.call(e.resolve())&&!e.cast||(t.Promise=bt)}var X;X=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var Z,G,Q,W=X,Y=0,tt=function(t,e){st[Y]=t,st[Y+1]=e,Y+=2,2===Y&&(G?G(m):Q())},et="undefined"!=typeof window?window:void 0,nt=et||{},it=nt.MutationObserver||nt.WebKitMutationObserver,rt="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),ot="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,st=new Array(1e3);Q=rt?l():it?p():ot?f():void 0===et?g():d();var at=v,ut=y,ct=Math.random().toString(36).substring(16),lt=void 0,ht=1,pt=2,ft=new P,dt=new P,mt=0,gt=H,vt=M,yt=F,bt=U;U.all=gt,U.race=vt,U.resolve=ut,U.reject=yt,U._setScheduler=u,U._setAsap=c,U._asap=tt,U.prototype={constructor:U,then:at,catch:function(t){return this.then(null,t)}};var wt=K;K.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===lt&&n<t;n++)this._eachEntry(e[n],n)},K.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===ut){var r=x(t);if(r===at&&t._state!==lt)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===bt){var o=new n(b);A(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(i(t),e)},K.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===lt&&(this._remaining--,t===pt?N(i,n):this._result[e]=n),0===this._remaining&&O(i,this._result)},K.prototype._willSettleAt=function(t,e){var n=this;I(t,void 0,function(t){n._settledAt(ht,e,t)},function(t){n._settledAt(pt,e,t)})};var _t=z,xt={Promise:bt,polyfill:_t};n(28).amd?(i=function(){return xt}.call(e,n,e,o),!(void 0!==i&&(o.exports=i))):"undefined"!=typeof o&&o.exports?o.exports=xt:"undefined"!=typeof this&&(this.ES6Promise=xt),_t()}).call(this)}).call(e,n(25),function(){return this}(),n(26)(t))},function(t,e){function n(t){return u===setTimeout?setTimeout(t,0):u.call(null,t,0)}function i(t){c===clearTimeout?clearTimeout(t):c.call(null,t)}function r(){f&&h&&(f=!1,h.length?p=h.concat(p):d=-1,p.length&&o())}function o(){if(!f){var t=n(r);f=!0;for(var e=p.length;e;){for(h=p,p=[];++d<e;)h&&h[d].run();d=-1,e=p.length}h=null,f=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function a(){}var u,c,l=t.exports={};!function(){try{u=setTimeout}catch(t){u=function(){throw new Error("setTimeout is not defined")}}try{c=clearTimeout}catch(t){c=function(){throw new Error("clearTimeout is not defined")}}}();var h,p=[],f=!1,d=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];p.push(new s(t,e)),1!==p.length||f||n(o)},s.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=a,l.addListener=a,l.once=a,l.off=a,l.removeListener=a,l.removeAllListeners=a,l.emit=a,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){"use strict";function i(t,e){return t+=/\?/.test(t)?"&":"?",t+r(e)}t.exports=i;var r=n(30)},function(t,e){"use strict";function n(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,s,a){return e=e||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?n(o(t),function(o){var a=encodeURIComponent(i(o))+s;return r(t[o])?n(t[o],function(t){return a+encodeURIComponent(i(t))}).join(e):a+encodeURIComponent(i(t[o]))}).join(e):a?encodeURIComponent(i(a))+s+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";function i(t,e,n){function i(){e.debug("JSONP: success"),g||p||(g=!0,h||(e.debug("JSONP: Fail. Script loaded but did not call the callback"),a(),n(new r.JSONPScriptFail)))}function s(){"loaded"!==this.readyState&&"complete"!==this.readyState||i()}function a(){clearTimeout(v),d.onload=null,d.onreadystatechange=null,d.onerror=null,f.removeChild(d)}function u(){try{delete window[m],delete window[m+"_loaded"]}catch(t){window[m]=window[m+"_loaded"]=void 0}}function c(){e.debug("JSONP: Script timeout"),p=!0,a(),n(new r.RequestTimeout)}function l(){e.debug("JSONP: Script error"),g||p||(a(),n(new r.JSONPScriptError))}if("GET"!==e.method)return void n(new Error("Method "+e.method+" "+t+" is not supported by JSONP."));e.debug("JSONP: start");var h=!1,p=!1;o+=1;var f=document.getElementsByTagName("head")[0],d=document.createElement("script"),m="algoliaJSONP_"+o,g=!1;window[m]=function(t){return u(),p?void e.debug("JSONP: Late answer, ignoring"):(h=!0,a(),void n(null,{body:t}))},t+="&callback="+m,e.jsonBody&&e.jsonBody.params&&(t+="&"+e.jsonBody.params);var v=setTimeout(c,e.timeout);d.onreadystatechange=s,d.onload=i,d.onerror=l,d.async=!0,d.defer=!0,d.src=t,f.appendChild(d)}t.exports=i;var r=n(9),o=0},function(t,e,n){function i(t){return function(e,i,o){var s=n(21);o=o&&s(o)||{},o.hosts=o.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof e&&void 0!==e||(e="",i="",o._allowEmptyCredentials=!0);var a=t(e,i,o),u=a.initIndex("places");return u.search=r("query","/1/places/query"),u}}t.exports=i;var r=n(14)},function(t,e){"use strict";function n(){var t=window.document.location.protocol;return"http:"!==t&&"https:"!==t&&(t="http:"),t}t.exports=n},function(t,e){"use strict";t.exports="3.18.0"},function(t,e,n){"use strict";t.exports=n(36)},function(t,e,n){"use strict";function i(t,e,n,i){n=a.isArray(n)?n:[].slice.call(arguments,2);var r=o(t).each(function(t,r){var s=o(r),a=new l({el:s}),h=i||new c({input:s,eventBus:a,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts});s.data(u,h)});return r.autocomplete={},a.each(["open","close","getVal","setVal","destroy"],function(t){r.autocomplete[t]=function(){var e,n=arguments;return r.each(function(i,r){var s=o(r).data(u);e=s[t].apply(s,n)}),e}}),r}var r=window.$;n(37);var o=window.Zepto;window.$=r;var s=n(38);s.element=o;var a=n(39);a.isArray=o.isArray,a.isFunction=o.isFunction,a.isObject=o.isPlainObject,a.bind=o.proxy,a.each=function(t,e){function n(t,n){return e(n,t)}o.each(t,n)},a.map=o.map,a.mixin=o.extend,a.Event=o.Event;var u="aaAutocomplete",c=n(40),l=n(41);i.sources=c.sources,t.exports=i},function(t,e,n){var i;!function(r,o){i=function(){return o(r)}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))}(window,function(t){var e=function(){function e(t){return null==t?String(t):Z[G.call(t)]||"object"}function n(t){return"function"==e(t)}function i(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function o(t){return"object"==e(t)}function s(t){return o(t)&&!i(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){var e=!!t&&"length"in t&&t.length,n=T.type(t);return"function"!=n&&!i(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function u(t){return I.call(t,function(t){return null!=t})}function c(t){return t.length>0?T.fn.concat.apply([],t):t}function l(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function h(t){return t in D?D[t]:D[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function p(t,e){return"number"!=typeof e||$[l(t)]?e:e+"px"}function f(t){var e,n;return R[t]||(e=P.createElement(t),P.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),R[t]=n),R[t]}function d(t){return"children"in t?j.call(t.children):T.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function m(t,e){var n,i=t?t.length:0;for(n=0;n<i;n++)this[n]=t[n];this.length=i,this.selector=e||""}function g(t,e,n){for(C in e)n&&(s(e[C])||tt(e[C]))?(s(e[C])&&!s(t[C])&&(t[C]={}),tt(e[C])&&!tt(t[C])&&(t[C]=[]),g(t[C],e[C],n)):e[C]!==S&&(t[C]=e[C])}function v(t,e){return null==e?T(t):T(t).filter(e)}function y(t,e,i,r){return n(e)?e.call(t,i,r):e}function b(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e){var n=t.className||"",i=n&&n.baseVal!==S;return e===S?i?n.baseVal:n:void(i?n.baseVal=e:t.className=e)}function _(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?T.parseJSON(t):t):t}catch(e){return t}}function x(t,e){e(t);for(var n=0,i=t.childNodes.length;n<i;n++)x(t.childNodes[n],e)}var S,C,T,A,E,k,O=[],N=O.concat,I=O.filter,j=O.slice,P=t.document,R={},D={},$={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},L=/^\s*<(\w+|!)[^>]*>/,q=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,H=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,M=/^(?:body|html)$/i,F=/([A-Z])/g,V=["val","css","html","text","data","width","height","offset"],B=["after","prepend","before","append"],U=P.createElement("table"),K=P.createElement("tr"),J={tr:P.createElement("tbody"),tbody:U,thead:U,tfoot:U,td:K,th:K,"*":P.createElement("div")},z=/complete|loaded|interactive/,X=/^[\w-]*$/,Z={},G=Z.toString,Q={},W=P.createElement("div"),Y={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},tt=Array.isArray||function(t){return t instanceof Array};return Q.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=W).appendChild(t),i=~Q.qsa(r,e).indexOf(t),o&&W.removeChild(t),i},E=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},k=function(t){return I.call(t,function(e,n){return t.indexOf(e)==n})},Q.fragment=function(t,e,n){var i,r,o;return q.test(t)&&(i=T(P.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(H,"<$1></$2>")),e===S&&(e=L.test(t)&&RegExp.$1),e in J||(e="*"),o=J[e],o.innerHTML=""+t,i=T.each(j.call(o.childNodes),function(){o.removeChild(this)})),s(n)&&(r=T(i),T.each(n,function(t,e){V.indexOf(t)>-1?r[t](e):r.attr(t,e)})),i},Q.Z=function(t,e){return new m(t,e)},Q.isZ=function(t){return t instanceof Q.Z},Q.init=function(t,e){var i;if(!t)return Q.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&L.test(t))i=Q.fragment(t,RegExp.$1,e),t=null;else{if(e!==S)return T(e).find(t);i=Q.qsa(P,t)}else{if(n(t))return T(P).ready(t);if(Q.isZ(t))return t;if(tt(t))i=u(t);else if(o(t))i=[t],t=null;else if(L.test(t))i=Q.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==S)return T(e).find(t);i=Q.qsa(P,t)}}return Q.Z(i,t)},T=function(t,e){return Q.init(t,e)},T.extend=function(t){var e,n=j.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){g(t,n,e)}),t},Q.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,s=X.test(o);return t.getElementById&&s&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:j.call(s&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},T.contains=P.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},T.type=e,T.isFunction=n,T.isWindow=i,T.isArray=tt,T.isPlainObject=s,T.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},T.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},T.inArray=function(t,e,n){return O.indexOf.call(e,t,n)},T.camelCase=E,T.trim=function(t){return null==t?"":String.prototype.trim.call(t)},T.uuid=0,T.support={},T.expr={},T.noop=function(){},T.map=function(t,e){var n,i,r,o=[];if(a(t))for(i=0;i<t.length;i++)n=e(t[i],i),null!=n&&o.push(n);else for(r in t)n=e(t[r],r),null!=n&&o.push(n);return c(o)},T.each=function(t,e){var n,i;if(a(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},T.grep=function(t,e){return I.call(t,e)},t.JSON&&(T.parseJSON=JSON.parse),T.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Z["[object "+e+"]"]=e.toLowerCase()}),T.fn={constructor:Q.Z,length:0,forEach:O.forEach,reduce:O.reduce,push:O.push,sort:O.sort,splice:O.splice,indexOf:O.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=Q.isZ(e)?e.toArray():e;return N.apply(Q.isZ(this)?this.toArray():this,n)},map:function(t){return T(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return T(j.apply(this,arguments))},ready:function(t){return z.test(P.readyState)&&P.body?t(T):P.addEventListener("DOMContentLoaded",function(){t(T)},!1),this},get:function(t){return t===S?j.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return O.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return n(t)?this.not(this.not(t)):T(I.call(this,function(e){return Q.matches(e,t)}))},add:function(t,e){return T(k(this.concat(T(t,e))))},is:function(t){return this.length>0&&Q.matches(this[0],t)},not:function(t){var e=[];if(n(t)&&t.call!==S)this.each(function(n){t.call(this,n)||e.push(this)});else{var i="string"==typeof t?this.filter(t):a(t)&&n(t.item)?j.call(t):T(t);this.forEach(function(t){i.indexOf(t)<0&&e.push(t)})}return T(e)},has:function(t){return this.filter(function(){return o(t)?T.contains(this,t):T(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!o(t)?t:T(t)},last:function(){var t=this[this.length-1];return t&&!o(t)?t:T(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?T(t).filter(function(){var t=this;return O.some.call(n,function(e){return T.contains(e,t)})}):1==this.length?T(Q.qsa(this[0],t)):this.map(function(){return Q.qsa(this,t)}):T()},closest:function(t,e){var n=[],i="object"==typeof t&&T(t);return this.each(function(o,s){for(;s&&!(i?i.indexOf(s)>=0:Q.matches(s,t));)s=s!==e&&!r(s)&&s.parentNode;s&&n.indexOf(s)<0&&n.push(s)}),T(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=T.map(n,function(t){if((t=t.parentNode)&&!r(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},parent:function(t){return v(k(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return d(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||j.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return I.call(d(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return T.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=f(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=n(t);if(this[0]&&!e)var i=T(t).get(0),r=i.parentNode||this.length>1;return this.each(function(n){T(this).wrapAll(e?t.call(this,n):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){T(this[0]).before(t=T(t));for(var e;(e=t.children()).length;)t=e.first();T(t).append(this)}return this},wrapInner:function(t){var e=n(t);return this.each(function(n){var i=T(this),r=i.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){T(this).replaceWith(T(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=T(this);(t===S?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return T(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return T(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;T(this).empty().append(y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(o(t))for(C in t)b(this,C,t[C]);else b(this,t,y(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:S},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){b(this,t)},this)})},prop:function(t,e){return t=Y[t]||t,1 in arguments?this.each(function(n){this[t]=y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=Y[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(F,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,e):this.attr(n);return null!==i?_(i):S},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=y(this,t,e,this.value)})):this[0]&&(this[0].multiple?T(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=T(this),i=y(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(P.documentElement!==this[0]&&!T.contains(P.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,n){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[E(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(tt(t)){if(!i)return;var r={},o=getComputedStyle(i,"");return T.each(t,function(t,e){r[e]=i.style[E(e)]||o.getPropertyValue(e)}),r}}var s="";if("string"==e(t))n||0===n?s=l(t)+":"+p(t,n):this.each(function(){this.style.removeProperty(l(t))});else for(C in t)t[C]||0===t[C]?s+=l(C)+":"+p(C,t[C])+";":this.each(function(){this.style.removeProperty(l(C))});return this.each(function(){this.style.cssText+=";"+s})},index:function(t){return t?this.indexOf(T(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&O.some.call(this,function(t){return this.test(w(t))},h(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){A=[];var n=w(this),i=y(this,t,e,n);i.split(/\s+/g).forEach(function(t){T(this).hasClass(t)||A.push(t)},this),A.length&&w(this,n+(n?" ":"")+A.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===S)return w(this,"");A=w(this),y(this,t,e,A).split(/\s+/g).forEach(function(t){A=A.replace(h(t)," ")}),w(this,A.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var i=T(this),r=y(this,t,n,w(this));r.split(/\s+/g).forEach(function(t){(e===S?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===S?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===S?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=M.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(T(t).css("margin-top"))||0,n.left-=parseFloat(T(t).css("margin-left"))||0,i.top+=parseFloat(T(e[0]).css("border-top-width"))||0,i.left+=parseFloat(T(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||P.body;t&&!M.test(t.nodeName)&&"static"==T(t).css("position");)t=t.offsetParent;return t})}},T.fn.detach=T.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});T.fn[t]=function(n){var o,s=this[0];return n===S?i(s)?s["inner"+e]:r(s)?s.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){s=T(this),s.css(t,y(this,n,e,s[t]()))})}}),B.forEach(function(n,i){var r=i%2;T.fn[n]=function(){var n,o,s=T.map(arguments,function(t){var i=[];return n=e(t),"array"==n?(t.forEach(function(t){return t.nodeType!==S?i.push(t):T.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(Q.fragment(t)))}),i):"object"==n||null==t?t:Q.fragment(t)}),a=this.length>1;return s.length<1?this:this.each(function(e,n){o=r?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var u=T.contains(P.documentElement,o);s.forEach(function(e){if(a)e=e.cloneNode(!0);else if(!o)return T(e).remove();o.insertBefore(e,n),u&&x(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},T.fn[r?n+"To":"insert"+(i?"Before":"After")]=function(t){return T(t)[n](this),this}}),Q.Z.prototype=m.prototype=T.fn,Q.uniq=k,Q.deserializeValue=_,T.zepto=Q,T}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function n(t){return t._zid||(t._zid=f++)}function i(t,e,i,s){if(e=r(e),e.ns)var a=o(e.ns);return(v[n(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||a.test(t.ns))&&(!i||n(t.fn)===n(i))&&(!s||t.sel==s)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function o(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function s(t,e){return t.del&&!b&&t.e in w||!!e}function a(t){return _[t]||b&&w[t]||t}function u(t,i,o,u,c,h,f){var d=n(t),m=v[d]||(v[d]=[]);i.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(o);var i=r(n);i.fn=o,i.sel=c,i.e in _&&(o=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return i.fn.apply(this,arguments)}),i.del=h;var d=h||o;i.proxy=function(e){if(e=l(e),!e.isImmediatePropagationStopped()){e.data=u;var n=d.apply(t,e._args==p?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},i.i=m.length,m.push(i),"addEventListener"in t&&t.addEventListener(a(i.e),i.proxy,s(i,f))})}function c(t,e,r,o,u){var c=n(t);(e||"").split(/\s/).forEach(function(e){i(t,e,r,o).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,s(e,u))})})}function l(t,n){return!n&&t.isDefaultPrevented||(n||(n=t),e.each(T,function(e,i){var r=n[e];t[e]=function(){return this[i]=x,r&&r.apply(n,arguments)},t[i]=S}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==p?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=x)),t}function h(t){var e,n={originalEvent:t};for(e in t)C.test(e)||t[e]===p||(n[e]=t[e]);return l(n,t)}var p,f=1,d=Array.prototype.slice,m=e.isFunction,g=function(t){return"string"==typeof t},v={},y={},b="onfocusin"in t,w={focus:"focusin",blur:"focusout"},_={mouseenter:"mouseover",mouseleave:"mouseout"};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",e.event={add:u,remove:c},e.proxy=function(t,i){var r=2 in arguments&&d.call(arguments,2);if(m(t)){var o=function(){return t.apply(i,r?r.concat(d.call(arguments)):arguments)};return o._zid=n(t),o}if(g(i))return r?(r.unshift(t[i],t),e.proxy.apply(null,r)):e.proxy(t[i],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},S=function(){return!1},C=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,i,r,o){var s,a,l=this;return t&&!g(t)?(e.each(t,function(t,e){l.on(t,n,i,e,o)}),l):(g(n)||m(r)||r===!1||(r=i,i=n,n=p),r!==p&&i!==!1||(r=i,i=p),r===!1&&(r=S),l.each(function(l,p){o&&(s=function(t){return c(p,t.type,r),r.apply(this,arguments)}),n&&(a=function(t){var i,o=e(t.target).closest(n,p).get(0);if(o&&o!==p)return i=e.extend(h(t),{currentTarget:o,liveFired:p}),(s||r).apply(o,[i].concat(d.call(arguments,1)))}),u(p,t,r,i,n,a||s)}))},e.fn.off=function(t,n,i){var r=this;return t&&!g(t)?(e.each(t,function(t,e){r.off(t,n,e)}),r):(g(n)||m(i)||i===!1||(i=n,n=p),i===!1&&(i=S),r.each(function(){
c(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=g(t)||e.isPlainObject(t)?e.Event(t):l(t),t._args=n,this.each(function(){t.type in w&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,o;return this.each(function(s,a){r=h(g(t)?e.Event(t):t),r._args=n,r.target=a,e.each(i(a,t.type||t),function(t,e){if(o=e.proxy(r),r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){g(t)||(e=t,t=e.type);var n=document.createEvent(y[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),l(n)}}(e),function(t){var e,n=[];t.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout(function(){n=[]},6e4)),this.parentNode.removeChild(this))})}}(e),function(t){function e(e,i){var u=e[a],c=u&&r[u];if(void 0===i)return c||n(e);if(c){if(i in c)return c[i];var l=s(i);if(l in c)return c[l]}return o.call(t(e),i)}function n(e,n,o){var u=e[a]||(e[a]=++t.uuid),c=r[u]||(r[u]=i(e));return void 0!==n&&(c[s(n)]=o),c}function i(e){var n={};return t.each(e.attributes||u,function(e,i){0==i.name.indexOf("data-")&&(n[s(i.name.replace("data-",""))]=t.zepto.deserializeValue(i.value))}),n}var r={},o=t.fn.data,s=t.camelCase,a=t.expando="Zepto"+ +new Date,u=[];t.fn.data=function(i,r){return void 0===r?t.isPlainObject(i)?this.each(function(e,r){t.each(i,function(t,e){n(r,t,e)})}):0 in this?e(this[0],i):void 0:this.each(function(){n(this,i,r)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(e){var n=e[a],i=n&&r[n];return!!i&&!t.isEmptyObject(i)},t.fn.removeData=function(e){return"string"==typeof e&&(e=e.split(/\s+/)),this.each(function(){var n=this[a],i=n&&r[n];i&&t.each(e||i,function(t){delete i[e?s(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(e),e})},function(t,e){"use strict";t.exports={element:null}},function(t,e,n){"use strict";var i=n(38);t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return void 0===t||null===t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))}),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,function(i,r){if(n=e.call(null,i,r,t),!n)return!1}),!!n):n},getUniqueId:function(){var t=0;return function(){return t++}}(),templatify:function(t){if(this.isFunction(t))return t;var e=i.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},className:function(t,e,n){return(n?"":".")+t+"-"+e}}},function(t,e,n){"use strict";function i(t){var e,n,o;t=t||{},t.input||u.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.openOnFocus=!!t.openOnFocus,this.minLength=u.isNumber(t.minLength)?t.minLength:1,this.cssClasses=t.cssClasses=u.mixin({},d.defaultClasses,t.cssClasses||{}),this.$node=r(t),e=this.$node.find(u.className(this.cssClasses.prefix,this.cssClasses.dropdownMenu)),n=this.$node.find(u.className(this.cssClasses.prefix,this.cssClasses.input)),o=this.$node.find(u.className(this.cssClasses.prefix,this.cssClasses.hint)),t.dropdownMenuContainer&&c.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),n.on("blur.aa",function(t){var i=document.activeElement;u.isMsie()&&(e.is(i)||e.has(i).length>0)&&(t.preventDefault(),t.stopImmediatePropagation(),u.defer(function(){n.focus()}))}),e.on("mousedown.aa",function(t){t.preventDefault()}),this.eventBus=t.eventBus||new l({el:n}),this.dropdown=new i.Dropdown({menu:e,datasets:t.datasets,templates:t.templates,cssClasses:this.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new i.Input({input:n,hint:o}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(n,t),this._setLanguageDirection()}function r(t){var e,n,i,r;e=c.element(t.input),n=c.element(f.wrapper.replace("%ROOT%",t.cssClasses.root)).css(d.wrapper),"block"===e.css("display")&&"table"===e.parent().css("display")&&n.css("display","table-cell");var s=f.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);i=c.element(s).css(d.dropdown),t.templates&&t.templates.dropdownMenu&&i.html(u.templatify(t.templates.dropdownMenu)()),r=e.clone().css(d.hint).css(o(e)),r.val("").addClass(u.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),r.removeData&&r.removeData(),e.data(a,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")}),e.addClass(u.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1}).css(t.hint?d.input:d.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(t){}return e.wrap(n).parent().prepend(t.hint?r:null).append(i)}function o(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function s(t,e){var n=t.find(u.className(e.prefix,e.input));u.each(n.data(a),function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)}),n.detach().removeClass(u.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(a),t.remove()}var a="aaAttrs",u=n(39),c=n(38),l=n(41),h=n(42),p=n(46),f=n(48),d=n(49);u.mixin(i.prototype,{_bindKeyboardShortcuts:function(t,e){if(e.keyboardShortcuts){var n=[];u.each(e.keyboardShortcuts,function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)}),c.element(document).keydown(function(e){var i=e.target||e.srcElement,r=i.tagName;if(!i.isContentEditable&&"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r){var o=e.which||e.keyCode;n.indexOf(o)!==-1&&(t.focus(),e.stopPropagation(),e.preventDefault())}})}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n)},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor();e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onShown:function(){this.eventBus.trigger("shown")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){this.debug||(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close())},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion(),n?(this._select(n),e.preventDefault()):this.autoselect&&i&&(this._select(i),e.preventDefault())},_onTabKeyed:function(t,e){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n),e.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r,o;t=this.dropdown.getDatumForTopSuggestion(),t&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=h.normalizeQuery(e),i=u.escapeRegExChars(n),r=new RegExp("^(?:"+i+")(.+$)","i"),o=r.exec(t.value),o?this.input.setHint(e+o[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,r;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&(r=this.dropdown.getDatumForTopSuggestion(),r&&this.input.setInputValue(r.value),this.eventBus.trigger("autocompleted",r.raw,r.datasetName))},_select:function(t){"undefined"!=typeof t.value&&this.input.setQuery(t.value),this.input.setInputValue(t.value,!0),this._setLanguageDirection();var e=this.eventBus.trigger("selected",t.raw,t.datasetName);e.isDefaultPrevented()===!1&&(this.dropdown.close(),u.defer(u.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=u.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),s(this.$node,this.cssClasses),this.$node=null}}),i.Dropdown=p,i.Input=h,i.sources=n(50),t.exports=i},function(t,e,n){"use strict";function i(t){t&&t.el||o.error("EventBus initialized without el"),this.$el=s.element(t.el)}var r="autocomplete:",o=n(39),s=n(38);o.mixin(i.prototype,{trigger:function(t){var e=[].slice.call(arguments,1),n=o.Event(r+t);return this.$el.trigger(n,e),n}}),t.exports=i},function(t,e,n){"use strict";function i(t){var e,n,i,o,s=this;t=t||{},t.input||u.error("input is missing"),e=u.bind(this._onBlur,this),n=u.bind(this._onFocus,this),i=u.bind(this._onKeydown,this),o=u.bind(this._onInput,this),this.$hint=c.element(t.hint),this.$input=c.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",i),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=u.noop),u.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(t){a[t.which||t.keyCode]||u.defer(u.bind(s._onInput,s,t))}):this.$input.on("input.aa",o),this.query=this.$input.val(),this.$overflowHelper=r(this.$input)}function r(t){return c.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var a;a={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var u=n(39),c=n(38),l=n(43);i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},u.mixin(i.prototype,l,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=a[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,r;switch(t){case"tab":i=this.getHint(),r=this.getInputValue(),n=i&&i!==r&&!s(e);break;case"up":case"down":n=!s(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;switch(t){case"tab":n=!s(e);break;default:n=!0}return n},_checkInputValue:function(){var t,e,n;t=this.getInputValue(),e=o(t,this.query),n=!(!e||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){"undefined"==typeof t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n,i;t=this.getInputValue(),e=this.getHint(),n=t!==e&&0===e.indexOf(t),i=""!==t&&n&&!this.hasOverflow(),i||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,u.isNumber(e)?e===t:!document.selection||(n=document.selection.createRange(),n.moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=i},function(t,e,n){(function(e){"use strict";function n(t,e,n,i){var r;if(!n)return this;for(e=e.split(l),n=i?c(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function i(t,e,i){return n.call(this,"async",t,e,i)}function r(t,e,i){return n.call(this,"sync",t,e,i)}function o(t){var e;if(!this._callbacks)return this;for(t=t.split(l);e=t.shift();)delete this._callbacks[e];return this}function s(t){var e,n,i,r,o;if(!this._callbacks)return this;for(t=t.split(l),i=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)r=a(n.sync,this,[e].concat(i)),o=a(n.async,this,[e].concat(i)),r()&&h(o);return this}function a(t,e,n){function i(){for(var i,r=0,o=t.length;!i&&r<o;r+=1)i=t[r].apply(e,n)===!1;return!i}return i}function u(){var t;return t=window.setImmediate?function(t){e(function(){t()})}:function(t){setTimeout(function(){t()},0)}}function c(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var l=/\s+/,h=u();t.exports={onSync:r,onAsync:i,off:o,trigger:s}}).call(e,n(44).setImmediate)},function(t,e,n){(function(t,i){function r(t,e){this._id=t,this._clearFn=e}var o=n(45).nextTick,s=Function.prototype.apply,a=Array.prototype.slice,u={},c=0;e.setTimeout=function(){return new r(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=c++,i=!(arguments.length<2)&&a.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(i?t.apply(null,i):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof i?i:function(t){delete u[t]}}).call(e,n(44).setImmediate,n(44).clearImmediate)},function(t,e){function n(t){return u===setTimeout?setTimeout(t,0):u.call(null,t,0)}function i(t){c===clearTimeout?clearTimeout(t):c.call(null,t)}function r(){f&&h&&(f=!1,h.length?p=h.concat(p):d=-1,p.length&&o())}function o(){if(!f){var t=n(r);f=!0;for(var e=p.length;e;){for(h=p,p=[];++d<e;)h&&h[d].run();d=-1,e=p.length}h=null,f=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function a(){}var u,c,l=t.exports={};!function(){try{u=setTimeout}catch(t){u=function(){throw new Error("setTimeout is not defined")}}try{c=clearTimeout}catch(t){c=function(){throw new Error("clearTimeout is not defined")}}}();var h,p=[],f=!1,d=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];p.push(new s(t,e)),1!==p.length||f||n(o)},s.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=a,l.addListener=a,l.once=a,l.off=a,l.removeListener=a,l.removeAllListeners=a,l.emit=a,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){"use strict";function i(t){var e,n,i,a=this;t=t||{},t.menu||o.error("menu is required"),o.isArray(t.datasets)||o.isObject(t.datasets)||o.error("1 or more datasets required"),t.datasets||o.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.templates={},e=o.bind(this._onSuggestionClick,this),n=o.bind(this._onSuggestionMouseEnter,this),i=o.bind(this._onSuggestionMouseLeave,this);var u=o.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("click.aa",u,e).on("mouseenter.aa",u,n).on("mouseleave.aa",u,i),t.templates&&t.templates.header&&(this.templates.header=o.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),this.datasets=o.map(t.datasets,function(e){return r(a.$menu,e,t.cssClasses)}),o.each(this.datasets,function(t){var e=t.getRoot();e&&0===e.parent().length&&a.$menu.append(e),t.onSync("rendered",a._onRendered,a)}),t.templates&&t.templates.footer&&(this.templates.footer=o.templatify(t.templates.footer),this.$menu.append(this.templates.footer())),t.templates&&t.templates.empty&&(this.templates.empty=o.templatify(t.templates.empty),this.$empty=s.element('<div class="'+o.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty))}function r(t,e,n){return new i.Dataset(o.mixin({$menu:t,cssClasses:n},e))}var o=n(39),s=n(38),a=n(43),u=n(47),c=n(49);o.mixin(i.prototype,a,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);e.hasClass(o.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))||(this._removeCursor(),this._setCursor(e,!1))},_onSuggestionMouseLeave:function(t){if(t.relatedTarget){var e=s.element(t.relatedTarget);if(e.closest("."+o.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return}this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){function n(t){return t.isEmpty()}if(this.isEmpty=o.every(this.datasets,n),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length<this.minLength)this._hide();else{var i=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(i),this._show()}else this._hide();else this.isOpen&&(this.$empty&&this.$empty.empty(),e.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block"),this.trigger("shown")},_getSuggestions:function(){return this.$menu.find(o.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(o.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(o.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(o.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))},_moveCursor:function(t){var e,n,i,r;if(this.isOpen){if(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),i=e.index(n)+t,i=(i+1)%(e.length+1)-1,i===-1)return void this.trigger("cursorRemoved");i<-1&&(i=e.length-1),this._setCursor(r=e.eq(i),!0),this._ensureVisible(r)}},_ensureVisible:function(t){var e,n,i,r;e=t.position().top,n=e+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),r=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),e<0?this.$menu.scrollTop(i+e):r<n&&this.$menu.scrollTop(i+(n-r))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?c.ltr:c.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:u.extractDatum(t),value:u.extractValue(t),datasetName:u.extractDatasetName(t)}),e},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(t){function e(e){e.update(t)}o.each(this.datasets,e)},empty:function(){function t(t){t.clear()}o.each(this.datasets,t),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function t(t){t.destroy()}this.$menu.off(".aa"),this.$menu=null,o.each(this.datasets,t)}}),i.Dataset=u,t.exports=i},function(t,e,n){"use strict";function i(t){t=t||{},t.templates=t.templates||{},t.source||l.error("missing source"),t.name&&!s(t.name)&&l.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name="undefined"==typeof t.name||null===t.name?l.getUniqueId():t.name,this.source=t.source,this.displayFn=r(t.display||t.displayKey),this.templates=o(t.templates,this.displayFn),this.cssClasses=l.mixin({},f.defaultClasses,t.cssClasses||{});var e=l.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(e+"-"+this.name).length>0?h.element(t.$menu.find(e+"-"+this.name)[0]):h.element(p.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu}function r(t){function e(e){return e[t]}return t=t||"value",l.isFunction(t)?t:e}function o(t,e){function n(t){return"<p>"+e(t)+"</p>"}return{empty:t.empty&&l.templatify(t.empty),header:t.header&&l.templatify(t.header),footer:t.footer&&l.templatify(t.footer),suggestion:t.suggestion||n}}function s(t){return/^[_a-zA-Z0-9-]+$/.test(t)}var a="aaDataset",u="aaValue",c="aaDatum",l=n(39),h=n(38),p=n(48),f=n(49),d=n(43);i.extractDatasetName=function(t){return h.element(t).data(a)},i.extractValue=function(t){return h.element(t).data(u)},i.extractDatum=function(t){var e=h.element(t).data(c);return"string"==typeof e&&(e=JSON.parse(e)),e},l.mixin(i.prototype,d,{_render:function(t,e){function n(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),d.templates.empty.apply(this,e)}function i(){function t(t){var e,n=p.suggestion.replace("%PREFIX%",o.cssClasses.prefix).replace("%SUGGESTION%",o.cssClasses.suggestion);return e=h.element(n).append(d.templates.suggestion.apply(this,[t].concat(r))),e.data(a,d.name),e.data(u,d.displayFn(t)||void 0),e.data(c,JSON.stringify(t)),e.children().each(function(){h.element(this).css(f.suggestionChild)}),e}var n,i,r=[].slice.call(arguments,0),o=this,s=p.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return n=h.element(s).css(f.suggestions),i=l.map(e,t),n.append.apply(n,i),n}function r(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!s}].concat(e),d.templates.header.apply(this,e)}function o(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!s}].concat(e),d.templates.footer.apply(this,e)}if(this.$el){var s,d=this,m=[].slice.call(arguments,2);this.$el.empty(),s=e&&e.length,this._isEmpty=!s,!s&&this.templates.empty?this.$el.html(n.apply(this,m)).prepend(d.templates.header?r.apply(this,m):null).append(d.templates.footer?o.apply(this,m):null):s&&this.$el.html(i.apply(this,m)).prepend(d.templates.header?r.apply(this,m):null).append(d.templates.footer?o.apply(this,m):null),this.$menu&&this.$menu.addClass(this.cssClasses.prefix+"-"+(s?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+"-"+(s?"without":"with")+"-"+this.name),this.trigger("rendered",t)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!n.canceled&&t===n.query){var i=[].slice.call(arguments,1);i=[t,e].concat(i),n._render.apply(n,i)}}var n=this;this.query=t,this.canceled=!1,this.source(t,e)},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.$el=null}}),t.exports=i},function(t,e){"use strict";t.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%-%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%-%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%-%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%-%SUGGESTION%"></div>'}},function(t,e,n){"use strict";var i=n(39),r={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"}};i.isMsie()&&i.mixin(r.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(r.input,{marginTop:"-1px"}),t.exports=r},function(t,e,n){"use strict";t.exports={hits:n(51),popularIn:n(52)}},function(t,e,n){"use strict";var i=n(39);t.exports=function(t,e){function n(n,r){t.search(n,e,function(t,e){return t?void i.error(t.message):void r(e.hits,e)})}return n}},function(t,e,n){"use strict";var i=n(39);t.exports=function(t,e,n,r){function o(o,u){t.search(o,e,function(t,e){if(t)return void i.error(t.message);if(e.hits.length>0){var o=e.hits[0],c=i.mixin({hitsPerPage:0},n);return delete c.source,delete c.index,void a.search(s(o),c,function(t,n){if(t)return void i.error(t.message);var s=[];if(r.includeAll){var a=r.allTitle||"All departments";s.push(i.mixin({facet:{value:a,count:n.nbHits}},i.cloneDeep(o)))}i.each(n.facets,function(t,e){i.each(t,function(t,n){s.push(i.mixin({facet:{facet:e,value:n,count:t}},i.cloneDeep(o)))})});for(var c=1;c<e.hits.length;++c)s.push(e.hits[c]);u(s,e)})}u([])})}if(!n.source)return i.error("Missing 'source' key");var s=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var a=n.index;return r=r||{},o}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="algolia-docsearch",i=n+"-suggestion",r=n+"-footer",o={suggestion:'\n <div class="'+i+"\n {{#isCategoryHeader}}"+i+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+i+'__secondary{{/isSubCategoryHeader}}\n ">\n <div class="'+i+'--category-header">\n <span class="'+i+'--category-header-lvl0">{{{category}}}</span>\n </div>\n <div class="'+i+'--wrapper">\n <div class="'+i+'--subcategory-column">\n <span class="'+i+'--subcategory-column-text">{{{subcategory}}}</span>\n </div>\n {{#isTextOrSubcatoryNonEmpty}}\n <div class="'+i+'--content">\n <div class="'+i+'--subcategory-inline">{{{subcategory}}}</div>\n <div class="'+i+'--title">{{{title}}}</div>\n {{#text}}<div class="'+i+'--text">{{{text}}}</div>{{/text}}\n </div>\n {{/isTextOrSubcatoryNonEmpty}}\n </div>\n </div>\n ',suggestionSimple:'\n <div class="'+i+"\n {{#isCategoryHeader}}"+i+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+i+'__secondary{{/isSubCategoryHeader}}\n suggestion-layout-simple\n ">\n <div class="'+i+'--category-header">\n {{^isLvl0}}\n <span class="'+i+"--category-header-lvl0 "+i+'--category-header-item">{{{category}}}</span>\n {{^isLvl1}}\n {{^isLvl1EmptyOrDuplicate}}\n <span class="'+i+"--category-header-lvl1 "+i+'--category-header-item">\n {{{subcategory}}}\n </span>\n {{/isLvl1EmptyOrDuplicate}}\n {{/isLvl1}}\n {{/isLvl0}}\n <div class="'+i+"--title "+i+'--category-header-item">\n {{#isLvl2}}\n {{{title}}}\n {{/isLvl2}}\n {{#isLvl1}}\n {{{subcategory}}}\n {{/isLvl1}}\n {{#isLvl0}}\n {{{category}}}\n {{/isLvl0}}\n </div>\n </div>\n <div class="'+i+'--wrapper">\n {{#text}}\n <div class="'+i+'--content">\n <div class="'+i+'--text">{{{text}}}</div>\n </div>\n {{/text}}\n </div>\n </div>\n ',footer:'\n <div class="'+r+'">\n Search by <a class="'+r+'--logo" href="https://www.algolia.com/docsearch">Algolia</a>\n </div>\n ',empty:'\n <div class="'+i+'">\n <div class="'+i+'--wrapper">\n <div class="'+i+"--content "+i+'--no-results">\n <div class="'+i+'--title">\n <div class="'+i+'--text">\n No results found for query <b>"{{{query}}}"</b>\n </div>\n </div>\n </div>\n </div>\n </div>\n ',
searchBox:'\n <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n\t<div role="search" class="searchbox__wrapper">\n\t\t<input id="docsearch" type="search" name="search" placeholder="Search in the doc" autocomplete="off" required="required" class="searchbox__input">\n\t\t<button type="submit" title="Submit your search query." class="searchbox__submit" >\n\t\t<svg width=12 height=12 role="img" aria-label="Search">\n\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n\t\t\t\t</svg>\n\t\t\t</button>\n\t\t<button type="reset" title="Clear the search query." class="searchbox__reset hide">\n\t\t<svg width=12 height=12 role="img" aria-label="Reset">\n\t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n\t\t\t</svg>\n\t\t</button>\n\t</div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n\t<svg xmlns="http://www.w3.org/2000/svg">\n\t\t<symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"/></symbol>\n\t\t<symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"/></symbol>\n\t</svg>\n</div>\n '};e.default=o,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(55),o=i(r),s={mergeKeyWithParent:function(t,e){if(void 0===t[e])return t;if("object"!=typeof t[e])return t;var n=o.default.extend({},t,t[e]);return delete n[e],n},groupBy:function(t,e){var n={};return o.default.each(t,function(t,i){if(void 0===i[e])throw new Error("[groupBy]: Object has no key "+e);var r=i[e];"string"==typeof r&&(r=r.toLowerCase()),n[r]||(n[r]=[]),n[r].push(i)}),n},values:function(t){return Object.keys(t).map(function(e){return t[e]})},flatten:function(t){var e=[];return t.forEach(function(t){return Array.isArray(t)?void t.forEach(function(t){e.push(t)}):void e.push(t)}),e},flattenAndFlagFirst:function(t,e){var n=this.values(t).map(function(t){return t.map(function(t,n){return t[e]=0===n,t})});return this.flatten(n)},compact:function(t){var e=[];return t.forEach(function(t){t&&e.push(t)}),e},getHighlightedValue:function(t,e){return t._highlightResult&&t._highlightResult[e]&&t._highlightResult[e].value?t._highlightResult[e].value:t[e]},getSnippetedValue:function(t,e){if(!t._snippetResult||!t._snippetResult[e]||!t._snippetResult[e].value)return t[e];var n=t._snippetResult[e].value;return n[0]!==n[0].toUpperCase()&&(n="…"+n),[".","!","?"].indexOf(n[n.length-1])===-1&&(n+="…"),n},deepClone:function(t){return JSON.parse(JSON.stringify(t))}};e.default=s,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=window.$,r=window.Zepto;n(37);var o=window.Zepto;window.$=i,window.Zepto=r,e.default=o,t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="2.1.4",t.exports=e.default}])});
//# sourceMappingURL=dist/cdn/docsearch.min.js.map