-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path343-f7b746d273fb1db70623.js
2 lines (2 loc) · 64.7 KB
/
343-f7b746d273fb1db70623.js
1
2
(self.webpackChunk_axiomatics_alfa_language_support_documentation=self.webpackChunk_axiomatics_alfa_language_support_documentation||[]).push([[343],{88343:function(e,t,n){"use strict";n.r(t),n.d(t,{DocSearchModal:function(){return Nt}});n(84944);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){},i=0;function c(e){return 0===e.suggestions.length?0:e.suggestions.reduce((function(e,t){return e+t.items.length}),0)}function s(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getInputValue:function(e){return e.state.query},getSuggestionUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onHighlight:a},e)}function u(e,t,n,r){if(null===t&&e<0)return n-1;if(null!==r&&0===t&&e<0)return n-1;var o=(null===t?-1:t)+e;return o<=-1||o>=n?null===r?null:0:o}function l(e){var t=e.state,n=function(e){var t=e.state,n=t.suggestions.map((function(e){return e.items.length})).reduce((function(e,t,n){var r=(e[n-1]||0)+t;return e.push(r),e}),[]).reduce((function(e,n){return n<=t.highlightedIndex?e+1:e}),0);return t.suggestions[n]}({state:t});if(!n)return null;var r=n.items[function(e){for(var t=e.state,n=e.suggestion,r=!1,o=0,a=0;!1===r;){var i=t.suggestions[o];if(i===n){r=!0;break}a+=i.items.length,o++}return t.highlightedIndex-a}({state:t,suggestion:n})],o=n.source;return{item:r,itemValue:o.getInputValue({suggestion:r,state:t}),itemUrl:o.getSuggestionUrl({suggestion:r,state:t}),source:o}}function f(e,t){return e===t||e.contains&&e.contains(t)}function h(e){var t=e.state;if(!1===e.props.enableCompletion||!1===t.isOpen||null===t.highlightedIndex||"stalled"===t.status)return null;var n=l({state:t}).itemValue;if(t.query.length>0&&0===n.toLocaleLowerCase().indexOf(t.query.toLocaleLowerCase())){var r=t.query+n.slice(t.query.length);return r===t.query?null:r}return null}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return{state:t.initialState,getState:function(){return this.state},send:function(n,r){this.state=function(e,t){return p(p({},e),{},{completion:h({state:e,props:t})})}(e({type:n,value:r},this.state,t),t),t.onStateChange({state:this.state})}}}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(17727);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=null;function D(e){var t,n=e.query,r=e.store,o=e.props,a=e.setHighlightedIndex,i=e.setQuery,c=e.setSuggestions,s=e.setIsOpen,u=e.setStatus,l=e.setContext,f=e.nextState,h=void 0===f?{}:f;return o.onInput?Promise.resolve(o.onInput({query:n,state:r.getState(),setHighlightedIndex:a,setQuery:i,setSuggestions:c,setIsOpen:s,setStatus:u,setContext:l})):(x&&clearTimeout(x),a(o.defaultHighlightedIndex),i(n),0===n.length&&!1===o.openOnFocus?(u("idle"),c(r.getState().suggestions.map((function(e){return P(P({},e),{},{items:[]})}))),s(null!==(t=h.isOpen)&&void 0!==t?t:o.shouldDropdownShow({state:r.getState()})),Promise.resolve()):(u("loading"),x=o.environment.setTimeout((function(){u("stalled")}),o.stallThreshold),o.getSources({query:n,state:r.getState(),setHighlightedIndex:a,setQuery:i,setSuggestions:c,setIsOpen:s,setStatus:u,setContext:l}).then((function(e){return u("loading"),Promise.all(e.map((function(e){return Promise.resolve(e.getSuggestions({query:n,state:r.getState(),setHighlightedIndex:a,setQuery:i,setSuggestions:c,setIsOpen:s,setStatus:u,setContext:l})).then((function(t){return{source:e,items:t}}))}))).then((function(e){var t;u("idle"),c(e),s(null!==(t=h.isOpen)&&void 0!==t?t:0===n.length&&o.openOnFocus||o.shouldDropdownShow({state:r.getState()}))})).catch((function(e){throw u("error"),e})).finally((function(){x&&clearTimeout(x)}))}))))}function I(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e){var t=e.store,n=e.props,r=e.setHighlightedIndex,o=e.setQuery,a=e.setSuggestions,i=e.setIsOpen,c=e.setStatus,s=e.setContext;return{getEnvironmentProps:function(e){return{onTouchStart:function(r){!1!==t.getState().isOpen&&r.target!==e.inputElement&&(!1===[e.searchBoxElement,e.dropdownElement].some((function(e){return e&&(f(e,r.target)||f(e,n.environment.document.activeElement))}))&&t.send("blur",null))},onTouchMove:function(r){!1!==t.getState().isOpen&&e.inputElement===n.environment.document.activeElement&&r.target!==e.inputElement&&e.inputElement.blur()}}},getRootProps:function(e){return k({role:"combobox","aria-expanded":t.getState().isOpen,"aria-haspopup":"listbox","aria-owns":t.getState().isOpen?"".concat(n.id,"-menu"):void 0,"aria-labelledby":"".concat(n.id,"-label")},e)},getFormProps:function(e){e.inputElement;return k({action:"",noValidate:!0,role:"search",onSubmit:function(u){u.preventDefault(),n.onSubmit({state:t.getState(),setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s,event:u}),t.send("submit",null),e.inputElement&&e.inputElement.blur()},onReset:function(u){u.preventDefault(),n.openOnFocus&&D({query:"",store:t,props:n,setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s}),t.send("reset",null),e.inputElement&&e.inputElement.focus()}},I(e,["inputElement"]))},getLabelProps:function(e){return k({htmlFor:"".concat(n.id,"-input"),id:"".concat(n.id,"-label")},e)},getInputProps:function(e){function u(){(n.openOnFocus||t.getState().query.length>0)&&D({query:t.getState().query,store:t,props:n,setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s}),t.send("focus",null)}var f="ontouchstart"in n.environment,g=e||{},p=(g.inputElement,g.maxLength),m=void 0===p?512:p,d=I(g,["inputElement","maxLength"]);return k({"aria-autocomplete":n.enableCompletion?"both":"list","aria-activedescendant":t.getState().isOpen&&null!==t.getState().highlightedIndex?"".concat(n.id,"-item-").concat(t.getState().highlightedIndex):void 0,"aria-controls":t.getState().isOpen?"".concat(n.id,"-menu"):void 0,"aria-labelledby":"".concat(n.id,"-label"),value:t.getState().query,id:"".concat(n.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",autoFocus:n.autoFocus,placeholder:n.placeholder,maxLength:m,type:"search",onChange:function(e){D({query:e.currentTarget.value.slice(0,m),store:t,props:n,setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s})},onKeyDown:function(e){!function(e){var t=e.event,n=e.store,r=e.props,o=e.setHighlightedIndex,a=e.setQuery,i=e.setSuggestions,c=e.setIsOpen,s=e.setStatus,u=e.setContext;if("ArrowUp"===t.key||"ArrowDown"===t.key){t.preventDefault(),n.send(t.key,{shiftKey:t.shiftKey});var f=r.environment.document.getElementById("".concat(r.id,"-item-").concat(n.getState().highlightedIndex));null==f||f.scrollIntoView(!1);var g=l({state:n.getState()});if(null!==n.getState().highlightedIndex&&g){var p=g.item,m=g.itemValue,d=g.itemUrl,v=g.source;v.onHighlight({suggestion:p,suggestionValue:m,suggestionUrl:d,source:v,state:n.getState(),setHighlightedIndex:o,setQuery:a,setSuggestions:i,setIsOpen:c,setStatus:s,setContext:u,event:t})}}else if(("Tab"===t.key||"ArrowRight"===t.key&&t.target.selectionStart===n.getState().query.length)&&r.enableCompletion&&null!==n.getState().highlightedIndex){t.preventDefault();var y=h({state:n.getState(),props:r});y&&D({query:y,store:n,props:r,setHighlightedIndex:o,setQuery:a,setSuggestions:i,setIsOpen:c,setStatus:s,setContext:u})}else if("Escape"===t.key)t.preventDefault(),n.send(t.key,null);else if("Enter"===t.key){if(null===n.getState().highlightedIndex||n.getState().suggestions.every((function(e){return 0===e.items.length})))return;t.preventDefault();var b=l({state:n.getState()}),O=b.item,S=b.itemValue,E=b.itemUrl,w=b.source;t.metaKey||t.ctrlKey?void 0!==E&&r.navigator.navigateNewTab({suggestionUrl:E,suggestion:O,state:n.getState()}):t.shiftKey?void 0!==E&&r.navigator.navigateNewWindow({suggestionUrl:E,suggestion:O,state:n.getState()}):t.altKey||(D({query:S,store:n,props:r,setHighlightedIndex:o,setQuery:a,setSuggestions:i,setIsOpen:c,setStatus:s,setContext:u,nextState:{isOpen:!1}}).then((function(){w.onSelect({suggestion:O,suggestionValue:S,suggestionUrl:E,source:w,state:n.getState(),setHighlightedIndex:o,setQuery:a,setSuggestions:i,setIsOpen:c,setStatus:s,setContext:u,event:t})})),void 0!==E&&r.navigator.navigate({suggestionUrl:E,suggestion:O,state:n.getState()}))}}({event:e,store:t,props:n,setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s})},onFocus:u,onBlur:function(){f||t.send("blur",null)},onClick:function(){e.inputElement!==n.environment.document.activeElement||t.getState().isOpen||u()}},d)},getDropdownProps:function(e){return k({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){t.send("mouseleave",null)}},e)},getMenuProps:function(e){return k({role:"listbox","aria-labelledby":"".concat(n.id,"-label"),id:"".concat(n.id,"-menu")},e)},getItemProps:function(e){var u=e.item,f=e.source,h=I(e,["item","source"]);return k({id:"".concat(n.id,"-item-").concat(u.__autocomplete_id),role:"option","aria-selected":t.getState().highlightedIndex===u.__autocomplete_id,onMouseMove:function(e){if(u.__autocomplete_id!==t.getState().highlightedIndex){t.send("mousemove",u.__autocomplete_id);var n=l({state:t.getState()});if(null!==t.getState().highlightedIndex&&n){var f=n.item,h=n.itemValue,g=n.itemUrl,p=n.source;p.onHighlight({suggestion:f,suggestionValue:h,suggestionUrl:g,source:p,state:t.getState(),setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s,event:e})}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){if(void 0===f.getSuggestionUrl({suggestion:u,state:t.getState()})&&!function(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)){var l=f.getInputValue({suggestion:u,state:t.getState()});D({query:l,store:t,props:n,setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s,nextState:{isOpen:!1}}).then((function(){f.onSelect({suggestion:u,suggestionValue:l,suggestionUrl:f.getSuggestionUrl({suggestion:u,state:t.getState()}),source:f,state:t.getState(),setHighlightedIndex:r,setQuery:o,setSuggestions:a,setIsOpen:i,setStatus:c,setContext:s,event:e})}))}}},h)}}}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e,t,n){switch(e.type){case"setHighlightedIndex":return A(A({},t),{},{highlightedIndex:e.value});case"setQuery":return A(A({},t),{},{query:e.value});case"setSuggestions":return A(A({},t),{},{suggestions:e.value});case"setIsOpen":return A(A({},t),{},{isOpen:e.value});case"setStatus":return A(A({},t),{},{status:e.value});case"setContext":return A(A({},t),{},{context:A(A({},t.context),e.value)});case"ArrowDown":return A(A({},t),{},{highlightedIndex:u(1,t.highlightedIndex,c(t),n.defaultHighlightedIndex)});case"ArrowUp":return A(A({},t),{},{highlightedIndex:u(-1,t.highlightedIndex,c(t),n.defaultHighlightedIndex)});case"Escape":return t.isOpen?A(A({},t),{},{isOpen:!1}):A(A({},t),{},{query:"",status:"idle",statusContext:{},suggestions:[]});case"submit":return A(A({},t),{},{highlightedIndex:null,isOpen:!1,status:"idle",statusContext:{}});case"reset":return A(A({},t),{},{highlightedIndex:!0===n.openOnFocus?n.defaultHighlightedIndex:null,isOpen:n.openOnFocus,status:"idle",statusContext:{},query:""});case"focus":return A(A({},t),{},{highlightedIndex:n.defaultHighlightedIndex,isOpen:n.openOnFocus||t.query.length>0});case"blur":return A(A({},t),{},{isOpen:!1,highlightedIndex:null});case"mousemove":return A(A({},t),{},{highlightedIndex:e.value});case"mouseleave":return A(A({},t),{},{highlightedIndex:n.defaultHighlightedIndex});default:return t}};function R(e){var t=function(e){var t,n,r="undefined"!=typeof window?window:{};return S(S({openOnFocus:!1,placeholder:"",autoFocus:!1,defaultHighlightedIndex:null,enableCompletion:!1,stallThreshold:300,environment:r,shouldDropdownShow:function(e){return c(e.state)>0},onStateChange:a,onSubmit:a},e),{},{id:null!==(t=e.id)&&void 0!==t?t:"autocomplete-".concat(i++),initialState:S({highlightedIndex:null,query:"",completion:null,suggestions:[],isOpen:!1,status:"idle",statusContext:{},context:{}},e.initialState),getSources:(n=e.getSources,function(e){return Promise.resolve(n(e)).then((function(e){return Promise.all(e.filter(Boolean).map((function(e){return Promise.resolve(s(e))})))}))}),navigator:S({navigate:function(e){var t=e.suggestionUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.suggestionUrl,n=r.open(t,"_blank","noopener");n&&n.focus()},navigateNewWindow:function(e){var t=e.suggestionUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e),n=d(M,t),r=function(e){var t=e.store;return{setHighlightedIndex:function(e){t.send("setHighlightedIndex",e)},setQuery:function(e){t.send("setQuery",e)},setSuggestions:function(e){var n=0,r=e.map((function(e){return y(y({},e),{},{items:e.items.map((function(e){return y(y({},e),{},{__autocomplete_id:n++})}))})}));t.send("setSuggestions",r)},setIsOpen:function(e){t.send("setIsOpen",e)},setStatus:function(e){t.send("setStatus",e)},setContext:function(e){t.send("setContext",e)}}}({store:n}),o=r.setHighlightedIndex,u=r.setQuery,l=r.setSuggestions,f=r.setIsOpen,h=r.setStatus,g=r.setContext,p=H({store:n,props:t,setHighlightedIndex:o,setQuery:u,setSuggestions:l,setIsOpen:f,setStatus:h,setContext:g}),m=p.getEnvironmentProps,v=p.getRootProps,b=p.getFormProps,O=p.getLabelProps,E=p.getInputProps,w=p.getDropdownProps,P=p.getMenuProps,j=p.getItemProps;return{setHighlightedIndex:o,setQuery:u,setSuggestions:l,setIsOpen:f,setStatus:h,setContext:g,getEnvironmentProps:m,getRootProps:v,getFormProps:b,getInputProps:E,getLabelProps:O,getDropdownProps:w,getMenuProps:P,getItemProps:j,refresh:function(){return D({query:n.getState().query,store:n,props:t,setHighlightedIndex:o,setQuery:u,setSuggestions:l,setIsOpen:f,setStatus:h,setContext:g})}}}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){var t=e.searchClient,n=e.queries;return"function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("autocomplete-core","1.0.0-alpha.28"),t.search(n.map((function(e){return{indexName:e.indexName,query:e.query,params:L({hitsPerPage:5,highlightPreTag:"<mark>",highlightPostTag:"</mark>"},e.params)}})))}var U=n(67294);function Q(){return U.createElement("a",{href:"https://www.algolia.com/docsearch",target:"_blank",rel:"noopener noreferrer"},U.createElement("span",{className:"DocSearch-Label"},"Search by"),U.createElement("svg",{width:"77",height:"19"},U.createElement("path",{d:"M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z",fill:"currentColor",fillRule:"evenodd"})))}function V(){return U.createElement(U.Fragment,null,U.createElement("div",{className:"DocSearch-Logo"},U.createElement(Q,null)),U.createElement("ul",{className:"DocSearch-Commands"},U.createElement("li",null,U.createElement("span",{className:"DocSearch-Commands-Key"},U.createElement(B,null,U.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),U.createElement("span",{className:"DocSearch-Label"},"to select")),U.createElement("li",null,U.createElement("span",{className:"DocSearch-Commands-Key"},U.createElement(B,null,U.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),U.createElement("span",{className:"DocSearch-Commands-Key"},U.createElement(B,null,U.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),U.createElement("span",{className:"DocSearch-Label"},"to navigate")),U.createElement("li",null,U.createElement("span",{className:"DocSearch-Commands-Key"},U.createElement(B,null,U.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),U.createElement("span",{className:"DocSearch-Label"},"to close"))))}function B(e){return U.createElement("svg",{width:"15",height:"15"},U.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},e.children))}function K(e){var t=e.hit,n=e.children;return U.createElement("a",{href:t.url},n)}function J(){return U.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function W(){return U.createElement("div",{className:"DocSearch-ErrorScreen"},U.createElement("div",{className:"DocSearch-Screen-Icon"},U.createElement(J,null)),U.createElement("p",{className:"DocSearch-Title"},"Unable to fetch results"),U.createElement("p",{className:"DocSearch-Help"},"You might want to check your network connection."))}function Z(){return U.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function Y(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e){var t=e.state.context.searchSuggestions;return U.createElement("div",{className:"DocSearch-NoResults"},U.createElement("div",{className:"DocSearch-Screen-Icon"},U.createElement(Z,null)),U.createElement("p",{className:"DocSearch-Title"},'No results for "',U.createElement("strong",null,e.state.query),'"'),t&&t.length>0&&U.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},U.createElement("p",{className:"DocSearch-Help"},"Try searching for:"),U.createElement("ul",null,t.slice(0,3).reduce((function(t,n){return[].concat(Y(t),[U.createElement("li",{key:n},U.createElement("button",{className:"DocSearch-Prefill",key:n,onClick:function(){e.setQuery(n.toLowerCase()+" "),e.refresh(),e.inputRef.current.focus()}},n))])}),[]))),U.createElement("p",{className:"DocSearch-Help"},"Believe this query should return results?"," ",U.createElement("a",{href:"https://github.com/algolia/docsearch-configs/issues/new?template=Missing_results.md&title=[".concat(e.indexName,']+Missing+results+for+query+"').concat(e.state.query,'"'),target:"_blank",rel:"noopener noreferrer"},"Let us know"),"."))}function X(e){switch(e.type){case"lvl1":return U.createElement(ee,null);case"content":return U.createElement(ne,null);default:return U.createElement(te,null)}}function ee(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function te(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function ne(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function re(){return U.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),U.createElement("path",{d:"M8 17l-6-6 6-6"})))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function se(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function ue(e){var t=e.hit,n=e.attribute,r=e.tagName,o=void 0===r?"span":r,a=ce(e,["hit","attribute","tagName"]);return(0,U.createElement)(o,ae(ae({},a),{},{dangerouslySetInnerHTML:{__html:se(t,"_snippetResult.".concat(n,".value"))||se(t,n)}}))}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(e){return e.suggestion&&0!==e.suggestion.items.length?U.createElement("section",{className:"DocSearch-Hits"},U.createElement("div",{className:"DocSearch-Hit-source"},e.title),U.createElement("ul",e.getMenuProps(),e.suggestion.items.map((function(t,n){return U.createElement(pe,he({key:[e.title,t.objectID].join(":"),item:t,index:n},e))})))):null}function pe(e){var t=e.item,n=e.index,r=e.renderIcon,o=e.renderAction,a=e.getItemProps,i=e.onItemClick,c=e.suggestion,s=e.hitComponent,u=le(U.useState(!1),2),l=u[0],f=u[1],h=le(U.useState(!1),2),g=h[0],p=h[1],m=U.useRef(null),d=s;return U.createElement("li",he({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",l&&"DocSearch-Hit--deleting",g&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){m.current&&m.current()}},a({item:t,source:c.source,onClick:function(){i(t)}})),U.createElement(d,{hit:t},U.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&"lvl1"===t.type&&U.createElement("div",{className:"DocSearch-Hit-content-wrapper"},U.createElement(ue,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&U.createElement(ue,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&("lvl2"===t.type||"lvl3"===t.type||"lvl4"===t.type||"lvl5"===t.type||"lvl6"===t.type)&&U.createElement("div",{className:"DocSearch-Hit-content-wrapper"},U.createElement(ue,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),U.createElement(ue,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),"content"===t.type&&U.createElement("div",{className:"DocSearch-Hit-content-wrapper"},U.createElement(ue,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),U.createElement(ue,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),o({item:t,runDeleteTransition:function(e){f(!0),m.current=e},runFavoriteTransition:function(e){p(!0),m.current=e}}))))}function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function de(e){return U.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.suggestions.map((function(t,n){if(0===t.items.length)return null;var r=t.items[0].hierarchy.lvl0;return U.createElement(ge,me({},e,{key:n,title:r,suggestion:t,renderIcon:function(e){var n,r=e.item,o=e.index;return U.createElement(U.Fragment,null,r.__docsearch_parent&&U.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},U.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},r.__docsearch_parent!==(null===(n=t.items[o+1])||void 0===n?void 0:n.__docsearch_parent)?U.createElement("path",{d:"M8 6v21M20 27H8.3"}):U.createElement("path",{d:"M8 6v42M20 27H8.3"}))),U.createElement("div",{className:"DocSearch-Hit-icon"},U.createElement(X,{type:r.type})))},renderAction:function(){return U.createElement("div",{className:"DocSearch-Hit-action"},U.createElement(re,null))}}))})),e.resultsFooterComponent&&U.createElement("section",{className:"DocSearch-HitsFooter"},U.createElement(e.resultsFooterComponent,{state:e.state})))}function ve(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),U.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function ye(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function be(){return U.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},U.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Oe(){return(Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Se(e){return"idle"===e.state.status&&!1===e.hasSuggestions?e.disableUserPersonalization?null:U.createElement("div",{className:"DocSearch-StartScreen"},U.createElement("p",{className:"DocSearch-Help"},"No recent searches")):!1===e.hasSuggestions?null:U.createElement("div",{className:"DocSearch-Dropdown-Container"},U.createElement(ge,Oe({},e,{title:"Recent",suggestion:e.state.suggestions[0],renderIcon:function(){return U.createElement("div",{className:"DocSearch-Hit-icon"},U.createElement(ve,null))},renderAction:function(t){var n=t.item,r=t.runFavoriteTransition,o=t.runDeleteTransition;return U.createElement(U.Fragment,null,U.createElement("div",{className:"DocSearch-Hit-action"},U.createElement("button",{className:"DocSearch-Hit-action-button",title:"Save this search",onClick:function(t){t.preventDefault(),t.stopPropagation(),r((function(){e.favoriteSearches.add(n),e.recentSearches.remove(n),e.refresh()}))}},U.createElement(ye,null))),U.createElement("div",{className:"DocSearch-Hit-action"},U.createElement("button",{className:"DocSearch-Hit-action-button",title:"Remove this search from history",onClick:function(t){t.preventDefault(),t.stopPropagation(),o((function(){e.recentSearches.remove(n),e.refresh()}))}},U.createElement(be,null))))}})),U.createElement(ge,Oe({},e,{title:"Favorites",suggestion:e.state.suggestions[1],renderIcon:function(){return U.createElement("div",{className:"DocSearch-Hit-icon"},U.createElement(ye,null))},renderAction:function(t){var n=t.item,r=t.runDeleteTransition;return U.createElement("div",{className:"DocSearch-Hit-action"},U.createElement("button",{className:"DocSearch-Hit-action-button",title:"Remove this search from favorites",onClick:function(t){t.preventDefault(),t.stopPropagation(),r((function(){e.favoriteSearches.remove(n),e.refresh()}))}},U.createElement(be,null)))}})))}function Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var we=U.memo((function(e){if("error"===e.state.status)return U.createElement(W,null);var t=e.state.suggestions.some((function(e){return e.items.length>0}));return e.state.query?!1===t?U.createElement(G,e):U.createElement(de,e):U.createElement(Se,Ee({},e,{hasSuggestions:t}))}),(function(e,t){return"loading"===t.state.status||"stalled"===t.state.status}));function Pe(){return U.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},U.createElement("g",{fill:"none",fillRule:"evenodd"},U.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},U.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),U.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},U.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function je(){return U.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},U.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function xe(){return(xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e){var t=e.getFormProps({inputElement:e.inputRef.current}).onReset;return U.useEffect((function(){e.autoFocus&&e.inputRef.current&&e.inputRef.current.focus()}),[e.autoFocus,e.inputRef]),U.createElement(U.Fragment,null,U.createElement("form",{action:"",role:"search",noValidate:!0,className:"DocSearch-Form",onSubmit:function(e){e.preventDefault()},onReset:t},U.createElement("label",xe({className:"DocSearch-MagnifierLabel"},e.getLabelProps()),U.createElement(je,null)),U.createElement("div",{className:"DocSearch-LoadingIndicator"},U.createElement(Pe,null)),U.createElement("input",xe({className:"DocSearch-Input",ref:e.inputRef},e.getInputProps({inputElement:e.inputRef.current,autoFocus:e.autoFocus,maxLength:64,enterkeyhint:"go"}))),U.createElement("button",{type:"reset",title:"Clear the query",className:"DocSearch-Reset",hidden:!e.state.query,onClick:t},U.createElement(be,null))),U.createElement("button",{className:"DocSearch-Cancel",onClick:e.onClose},"Cancel"))}function Ie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ce(e){return!1===function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(t){return!1}}()?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function ke(e){var t=e.key,n=e.limit,r=void 0===n?5:n,o=Ce(t),a=o.getItem().slice(0,r);return{add:function(e){var t=e,n=(t._highlightResult,t._snippetResult,Ie(t,["_highlightResult","_snippetResult"])),i=a.findIndex((function(e){return e.objectID===n.objectID}));i>-1&&a.splice(i,1),a.unshift(n),a=a.slice(0,r),o.setItem(a)},remove:function(e){a=a.filter((function(t){return t.objectID!==e.objectID})),o.setItem(a)},getAll:function(){return a}}}var Ne=n(19756);var He=n(96156),qe=n(87329),Ae=n(34699),_e=["facetName","facetQuery"];function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){(0,He.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=(0,Ae.Z)(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return(0,Ae.Z)(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var a=o();return a[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(a)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function Le(e){var t=(0,qe.Z)(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return(0,Ae.Z)(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,o).catch((function(){return Le({caches:t}).get(e,r,o)}))},set:function(e,r){return n.set(e,r).catch((function(){return Le({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return Le({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return Le({caches:t}).clear()}))}}}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var i=r(),c=o&&o.miss||function(){return Promise.resolve()};return i.then((function(e){return c(e)})).then((function(){return i}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function ze(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function Ue(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function Qe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[o++])}))}var Ve="4.9.1",Be={WithinQueryParameters:0,WithinHeaders:1};function Ke(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var Je={Read:1,Write:2,Any:3},We=1,Ze=2,Ye=3,$e=12e4;function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We;return Re(Re({},e),{},{status:t,lastUpdate:Date.now()})}function Xe(e){return"string"==typeof e?{protocol:"https",url:e,accept:Je.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||Je.Any}}var et="GET",tt="POST";function nt(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(Ge(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===We||Date.now()-e.lastUpdate>$e}(e)})),r=e.filter((function(e){return function(e){return e.status===Ye&&Date.now()-e.lastUpdate<=$e}(e)})),o=[].concat((0,qe.Z)(n),(0,qe.Z)(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return Xe(e)})):t}}))}function rt(e,t,n,r){var o=[],a=function(e,t){if(e.method===et||void 0===e.data&&void 0===t.data)return;var n=Array.isArray(e.data)?e.data:Re(Re({},e.data),t.data);return JSON.stringify(n)}(n,r),i=function(e,t){var n=Re(Re({},e.headers),t.headers),r={};return Object.keys(n).forEach((function(e){var t=n[e];r[e.toLowerCase()]=t})),r}(e,r),c=n.method,s=n.method!==et?{}:Re(Re({},n.data),r.data),u=Re(Re(Re({"x-algolia-agent":e.userAgent.value},e.queryParameters),s),r.queryParameters),l=0,f=function t(s,f){var h=s.pop();if(void 0===h)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:ct(o)};var g={data:a,headers:i,method:c,url:at(h,n.path,u),connectTimeout:f(l,e.timeouts.connect),responseTimeout:f(l,r.timeout)},p=function(e){var t={request:g,response:e,host:h,triesLeft:s.length};return o.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var r=p(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",st(r)),e.hostsCache.set(h,Ge(h,n.isTimedOut?Ye:Ze))]).then((function(){return t(s,f)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,o=n;try{o=JSON.parse(n).message}catch(a){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(o,r,t)}(e,ct(o))}};return e.requester.send(g).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return nt(e.hostsCache,t).then((function(e){return f((0,qe.Z)(e.statelessHosts).reverse(),e.getTimeout)}))}function ot(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function at(e,t,n){var r=it(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function it(e){return Object.keys(e).map((function(t){return Qe("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function ct(e){return e.map((function(e){return st(e)}))}function st(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return Re(Re({},e),{},{request:Re(Re({},e.request),{},{headers:Re(Re({},e.request.headers),t)})})}var ut=function(e){var t=e.appId,n=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===Be.WithinHeaders?r:{}},queryParameters:function(){return e===Be.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:Be.WithinHeaders,t,e.apiKey),r=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,a=e.responsesCache,i=e.timeouts,c=e.userAgent,s=e.hosts,u=e.queryParameters,l={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:a,timeouts:i,userAgent:c,headers:e.headers,queryParameters:u,hosts:s.map((function(e){return Xe(e)})),read:function(e,t){var n=Ke(t,l.timeouts.read),r=function(){return rt(l,l.hosts.filter((function(e){return 0!=(e.accept&Je.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:l.queryParameters,headers:l.headers}};return l.responsesCache.get(o,(function(){return l.requestsCache.get(o,(function(){return l.requestsCache.set(o,r()).then((function(e){return Promise.all([l.requestsCache.delete(o),e])}),(function(e){return Promise.all([l.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=(0,Ae.Z)(e,2);return t[0],t[1]}))}))}),{miss:function(e){return l.responsesCache.set(o,e)}})},write:function(e,t){return rt(l,l.hosts.filter((function(e){return 0!=(e.accept&Je.Write)})),e,Ke(t,l.timeouts.write))}};return l}(Re(Re({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:Je.Read},{url:"".concat(t,".algolia.net"),accept:Je.Write}].concat(ze([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:Re(Re(Re({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:Re(Re({},n.queryParameters()),e.queryParameters)}));return Ue({transporter:r,appId:t,addAlgoliaAgent:function(e,t){r.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then((function(){}))}},e.methods)},lt=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return Ue(r,n.methods)}},ft=function(e){return function(t,n){var r=t.map((function(e){return Re(Re({},e),{},{params:it(e.params||{})})}));return e.transporter.read({method:tt,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},ht=function(e){return function(t,n){return Promise.all(t.map((function(t){var r=t.params,o=r.facetName,a=r.facetQuery,i=function(e,t){if(null==e)return{};var n,r,o=(0,Ne.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,_e);return lt(e)(t.indexName,{methods:{searchForFacetValues:mt}}).searchForFacetValues(o,a,Re(Re({},n),i))})))}},gt=function(e){return function(t,n,r){return e.transporter.read({method:tt,path:Qe("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},pt=function(e){return function(t,n){return e.transporter.read({method:tt,path:Qe("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},mt=function(e){return function(t,n,r){return e.transporter.read({method:tt,path:Qe("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},dt=1,vt=2,yt=3;function bt(e,t,n){var r,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,o=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},a=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(a),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(a),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(a),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(r=yt,{debug:function(e,t){return dt>=r&&console.debug(e,t),Promise.resolve()},info:function(e,t){return vt>=r&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:Fe(),requestsCache:Fe({serializable:!1}),hostsCache:Le({caches:[Te({key:"".concat(Ve,"-").concat(e)}),Fe()]}),userAgent:ot(Ve).add({segment:"Browser",version:"lite"}),authMode:Be.WithinQueryParameters};return ut(Re(Re(Re({},o),n),{},{methods:{search:ft,searchForFacetValues:ht,multipleQueries:ft,multipleSearchForFacetValues:ht,initIndex:function(e){return function(t){return lt(e)(t,{methods:{search:pt,searchForFacetValues:mt,findAnswers:gt}})}}}}))}bt.version=Ve;var Ot=bt,St="1.0.0-alpha.28";function Et(){}function wt(e){return e}function Pt(e,t){return e.reduce((function(e,n){var r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].length<5&&e[r].push(n),e}),{})}function jt(){return(jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nt(e){var t=e.appId,n=void 0===t?"BH4D9OD16A":t,r=e.apiKey,o=e.indexName,a=e.placeholder,i=void 0===a?"Search docs":a,c=e.searchParameters,s=e.onClose,u=void 0===s?Et:s,l=e.transformItems,f=void 0===l?wt:l,h=e.hitComponent,g=void 0===h?K:h,p=e.resultsFooterComponent,m=void 0===p?function(){return null}:p,d=e.navigator,v=e.initialScrollY,y=void 0===v?0:v,b=e.transformSearchClient,O=void 0===b?wt:b,S=e.disableUserPersonalization,E=void 0!==S&&S,w=e.initialQuery,P=void 0===w?"":w,j=Ct(U.useState({query:"",suggestions:[]}),2),x=j[0],D=j[1],I=U.useRef(null),C=U.useRef(null),k=U.useRef(null),N=U.useRef(null),H=U.useRef(10),q=U.useRef(P||"undefined"!=typeof window?window.getSelection().toString().slice(0,64):"").current,A=function(e,t,n){return U.useMemo((function(){var r=Ot(e,t);return r.addAlgoliaAgent("docsearch",St),!1===/docsearch.js \(.*\)/.test(r.transporter.userAgent.value)&&r.addAlgoliaAgent("docsearch-react",St),n(r)}),[e,t,n])}(n,r,O),_=U.useRef(ke({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(o),limit:10})).current,M=U.useRef(ke({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(o),limit:0===_.getAll().length?7:4})).current,T=U.useCallback((function(e){if(!E){var t="content"===e.type?e.__docsearch_parent:e;t&&-1===_.getAll().findIndex((function(e){return e.objectID===t.objectID}))&&M.add(t)}}),[_,M,E]),L=U.useMemo((function(){return R({id:"docsearch",defaultHighlightedIndex:0,placeholder:i,openOnFocus:!0,initialState:{query:q,context:{searchSuggestions:[]}},navigator:d,onStateChange:function(e){var t=e.state;D(t)},getSources:function(e){var t,n=e.query,r=e.state,a=e.setContext,i=e.setStatus;return n?(t={searchClient:A,queries:[{indexName:o,query:n,params:Dt({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(H.current),"hierarchy.lvl2:".concat(H.current),"hierarchy.lvl3:".concat(H.current),"hierarchy.lvl4:".concat(H.current),"hierarchy.lvl5:".concat(H.current),"hierarchy.lvl6:".concat(H.current),"content:".concat(H.current)],snippetEllipsisText:"…",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20},c)}]},z({searchClient:t.searchClient,queries:t.queries}).then((function(e){return e.results}))).catch((function(e){throw"RetryError"===e.name&&i("error"),e})).then((function(e){var t=e[0].hits,n=e[0].nbHits,o=Pt(t,(function(e){return e.hierarchy.lvl0}));return r.context.searchSuggestions.length<Object.keys(o).length&&a({searchSuggestions:Object.keys(o)}),a({nbHits:n}),Object.values(o).map((function(e){return{onSelect:function(e){var t=e.suggestion;T(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return Object.values(Pt(e,(function(e){return e.hierarchy.lvl1}))).map(f).map((function(e){return e.map((function(t){return Dt(Dt({},t),{},{__docsearch_parent:"lvl1"!==t.type&&e.find((function(e){return"lvl1"===e.type&&e.hierarchy.lvl1===t.hierarchy.lvl1}))})}))})).flat()}}}))})):E?[]:[{onSelect:function(e){var t=e.suggestion;T(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return M.getAll()}},{onSelect:function(e){var t=e.suggestion;T(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return _.getAll()}}]}})}),[o,c,A,u,M,_,T,q,i,d,f,E]),F=L.getEnvironmentProps,Q=L.getRootProps,B=L.refresh;return function(e){var t=e.getEnvironmentProps,n=e.dropdownElement,r=e.searchBoxElement,o=e.inputElement;U.useEffect((function(){if(n&&r&&o){var e=t({dropdownElement:n,searchBoxElement:r,inputElement:o}),a=e.onTouchStart,i=e.onTouchMove;return window.addEventListener("touchstart",a),window.addEventListener("touchmove",i),function(){window.removeEventListener("touchstart",a),window.removeEventListener("touchmove",i)}}}),[t,n,r,o])}({getEnvironmentProps:F,dropdownElement:k.current,searchBoxElement:C.current,inputElement:N.current}),function(e){var t=e.container;U.useEffect((function(){if(t){var e=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),n=e[0],r=e[e.length-1];return t.addEventListener("keydown",o),function(){t.removeEventListener("keydown",o)}}function o(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus()))}}),[t])}({container:I.current}),U.useEffect((function(){return document.body.classList.add("DocSearch--active"),function(){var e,t;document.body.classList.remove("DocSearch--active"),null===(e=(t=window).scrollTo)||void 0===e||e.call(t,0,y)}}),[]),U.useEffect((function(){window.matchMedia("(max-width: 750px)").matches&&(H.current=5)}),[]),U.useEffect((function(){k.current&&(k.current.scrollTop=0)}),[x.query]),U.useEffect((function(){q.length>0&&(B(),N.current&&N.current.focus())}),[q,B]),U.createElement("div",jt({ref:I},Q({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container","stalled"===x.status&&"DocSearch-Container--Stalled","error"===x.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),onMouseDown:function(e){e.target===e.currentTarget&&u()}}),U.createElement("div",{className:"DocSearch-Modal"},U.createElement("header",{className:"DocSearch-SearchBar",ref:C},U.createElement(De,jt({},L,{state:x,autoFocus:0===q.length,onClose:u,inputRef:N}))),U.createElement("div",{className:"DocSearch-Dropdown",ref:k},U.createElement(we,jt({},L,{indexName:o,state:x,hitComponent:g,resultsFooterComponent:m,disableUserPersonalization:E,recentSearches:M,favoriteSearches:_,onItemClick:function(e){T(e),u()},inputRef:N}))),U.createElement("footer",{className:"DocSearch-Footer"},U.createElement(V,null))))}},13366:function(e,t,n){var r=n(17854);e.exports=r.Promise},78523:function(e,t,n){"use strict";var r=n(13099),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},69478:function(e,t,n){var r=n(19670),o=n(70111),a=n(78523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},36707:function(e,t,n){var r=n(19670),o=n(13099),a=n(5112)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},84944:function(e,t,n){"use strict";var r=n(82109),o=n(6790),a=n(47908),i=n(17466),c=n(99958),s=n(65417);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t.length),r=s(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:c(e)),r}})},17727:function(e,t,n){"use strict";var r=n(82109),o=n(31913),a=n(13366),i=n(47293),c=n(35005),s=n(36707),u=n(69478),l=n(31320);if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&i((function(){a.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,c("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!o&&"function"==typeof a){var f=c("Promise").prototype.finally;a.prototype.finally!==f&&l(a.prototype,"finally",f,{unsafe:!0})}}}]);
//# sourceMappingURL=343-f7b746d273fb1db70623.js.map