From 58307e32201a28e342b5896c288e0986b6fa726b Mon Sep 17 00:00:00 2001 From: Peter Beshai Date: Fri, 17 May 2024 16:44:57 -0700 Subject: [PATCH] Deploy website - based on 11b68d5d043f77c1f9f963572d4aa879b75fd58e --- 2.80b82478.js | 2 -- 2.8a96a525.js | 2 ++ ...82478.js.LICENSE.txt => 2.8a96a525.js.LICENSE.txt | 0 22.49e8f943.js | 2 -- 22.740f3d56.js | 2 ++ ...f943.js.LICENSE.txt => 22.740f3d56.js.LICENSE.txt | 0 404.html | 4 ++-- 801f3f5d.05562c4b.js => 801f3f5d.52597a01.js | 2 +- docs/api/groupby/index.html | 8 ++++---- docs/api/item/index.html | 8 ++++---- docs/api/math/index.html | 8 ++++---- docs/api/pivot/index.html | 8 ++++---- docs/api/selectors/index.html | 8 ++++---- docs/api/sequences/index.html | 8 ++++---- docs/api/summary/index.html | 8 ++++---- docs/api/tidy/index.html | 8 ++++---- docs/api/vector/index.html | 8 ++++---- docs/examples/moving_average_example/index.html | 8 ++++---- docs/getting_started/index.html | 8 ++++---- docs/tidy-moment/tidy_moment/index.html | 8 ++++---- index.html | 8 ++++---- playground/index.html | 12 ++++++------ runtime~main.b5ba7626.js => runtime~main.fdc3a0bc.js | 2 +- search/index.html | 12 ++++++------ 24 files changed, 72 insertions(+), 72 deletions(-) delete mode 100644 2.80b82478.js create mode 100644 2.8a96a525.js rename 2.80b82478.js.LICENSE.txt => 2.8a96a525.js.LICENSE.txt (100%) delete mode 100644 22.49e8f943.js create mode 100644 22.740f3d56.js rename 22.49e8f943.js.LICENSE.txt => 22.740f3d56.js.LICENSE.txt (100%) rename 801f3f5d.05562c4b.js => 801f3f5d.52597a01.js (67%) rename runtime~main.b5ba7626.js => runtime~main.fdc3a0bc.js (93%) diff --git a/2.80b82478.js b/2.80b82478.js deleted file mode 100644 index 95e5896..0000000 --- a/2.80b82478.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2.80b82478.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{105:function(e,t,a){"use strict";var n=a(0),r=a(114);t.a=function(){var e=Object(n.useContext)(r.a);if(null==e)throw new Error("`useThemeContext` is used outside of `Layout` Component. See https://v2.docusaurus.io/docs/theme-classic#usethemecontext.");return e}},106:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(95),o=a(57),l=a.n(o);var i=function(){return r.a.createElement("nav",{"aria-label":"Skip navigation links"},r.a.createElement("button",{type:"button",tabIndex:0,className:l.a.skipToContent,onKeyDown:function(e){if(13===e.keyCode){document.activeElement.blur();var t=document.querySelector("main:first-of-type");t&&t.scrollIntoView()}}},"Skip to main content"))},s=a(96),u=a(269),d=a(58),m=a.n(d);var f=function(){var e,t=Object(u.a)(),a=t.isAnnouncementBarClosed,n=t.closeAnnouncementBar,o=Object(s.useThemeConfig)().announcementBar;if(!o)return null;var l=o.content,i=o.backgroundColor,d=o.textColor,f=o.isCloseable;return!l||f&&a?null:r.a.createElement("div",{className:m.a.announcementBar,style:{backgroundColor:i,color:d},role:"banner"},r.a.createElement("div",{className:Object(c.a)(m.a.announcementBarContent,(e={},e[m.a.announcementBarCloseable]=f,e)),dangerouslySetInnerHTML:{__html:l}}),f?r.a.createElement("button",{type:"button",className:m.a.announcementBarClose,onClick:n,"aria-label":"Close"},r.a.createElement("span",{"aria-hidden":"true"},"\xd7")):null)},h=a(3),b=a(26),v=a(22),p=a(101),g=a(103),O=a(102),E=a(24),k=a(271);function j(){return r.a.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.a.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}var y=a(272);function C(){return(C=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,n=new Array(t);ae.isLast)),u=null!==(c=null!=o?o:l)&&void 0!==c?c:i;return Object(s.docVersionSearchTag)(e,u.name)}))];return{locale:e.currentLocale,tags:r}}();return[`language:${e}`,t.map((e=>`docusaurus_tag:${e}`))]}let I=null;function D({hit:e,children:t}){return r.a.createElement(O.a,{to:e.url},t)}function P({state:e,onClose:t}){const{generateSearchPageLink:a}=Object(k.a)();return r.a.createElement(O.a,{to:a(e.query),onClick:t},"See all ",e.context.nbHits," results")}function B({contextualSearch:e,...t}){var c,o;const{siteMetadata:l}=Object(v.default)(),i=L(),s=null!==(c=null===(o=t.searchParameters)||void 0===o?void 0:o.facetFilters)&&void 0!==c?c:[],u=e?[...i,...s]:s,d={...t.searchParameters,facetFilters:u},{withBaseUrl:m}=Object(g.b)(),f=Object(p.useHistory)(),O=Object(n.useRef)(null),[k,j]=Object(n.useState)(!1),[y,C]=Object(n.useState)(null),w=Object(n.useCallback)((()=>I?Promise.resolve():Promise.all([a.e(24).then(a.bind(null,318)),Promise.all([a.e(0),a.e(25)]).then(a.bind(null,317)),a.e(0).then(a.t.bind(null,93,7))]).then((([{DocSearchModal:e}])=>{I=e}))),[]),_=Object(n.useCallback)((()=>{w().then((()=>{j(!0)}))}),[w,j]),N=Object(n.useCallback)((()=>{j(!1)}),[j]),T=Object(n.useCallback)((e=>{w().then((()=>{j(!0),C(e.key)}))}),[w,j,C]),B=Object(n.useRef)({navigate({itemUrl:e}){f.push(e)}}).current,M=Object(n.useRef)((e=>e.map((e=>{const t=document.createElement("a");return t.href=e.url,{...e,url:m(`${t.pathname}${t.hash}`)}})))).current,A=Object(n.useMemo)((()=>e=>r.a.createElement(P,Object(h.a)({},e,{onClose:N}))),[N]),x=Object(n.useCallback)((e=>(e.addAlgoliaAgent("docusaurus",l.docusaurusVersion),e)),[l.docusaurusVersion]);return function(e){var t=e.isOpen,a=e.onOpen,n=e.onClose,c=e.onInput,o=e.searchButtonRef;r.a.useEffect((function(){function e(e){(27===e.keyCode&&t||"k"===e.key&&(e.metaKey||e.ctrlKey)||!function(e){var t=e.target,a=t.tagName;return t.isContentEditable||"INPUT"===a||"SELECT"===a||"TEXTAREA"===a}(e)&&"/"===e.key&&!t)&&(e.preventDefault(),t?n():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||a()),o&&o.current===document.activeElement&&c&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&c(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t,a,n,c,o])}({isOpen:k,onOpen:_,onClose:N,onInput:T,searchButtonRef:O}),r.a.createElement(r.a.Fragment,null,r.a.createElement(E.a,null,r.a.createElement("link",{rel:"preconnect",href:`https://${t.appId}-dsn.algolia.net`,crossOrigin:"anonymous"})),r.a.createElement(S,{onTouchStart:w,onFocus:w,onMouseOver:w,onClick:_,ref:O}),k&&Object(b.createPortal)(r.a.createElement(I,Object(h.a)({onClose:N,initialScrollY:window.scrollY,initialQuery:y,navigator:B,transformItems:M,hitComponent:D,resultsFooterComponent:A,transformSearchClient:x},t,{searchParameters:d})),document.body))}var M=function(){const{siteConfig:e}=Object(v.default)();return r.a.createElement(B,e.themeConfig.algolia)},A=a(289),x=a.n(A),V=a(59),R=a.n(V),U=function(e){var t=e.icon,a=e.style;return r.a.createElement("span",{className:Object(c.a)(R.a.toggle,R.a.dark),style:a},t)},F=function(e){var t=e.icon,a=e.style;return r.a.createElement("span",{className:Object(c.a)(R.a.toggle,R.a.light),style:a},t)},H=function(e){var t=Object(s.useThemeConfig)().colorMode.switchConfig,a=t.darkIcon,n=t.darkIconStyle,c=t.lightIcon,o=t.lightIconStyle,l=Object(v.default)().isClient;return r.a.createElement(x.a,Object(h.a)({disabled:!l,icons:{checked:r.a.createElement(U,{icon:a,style:n}),unchecked:r.a.createElement(F,{icon:c,style:o})}},e))},X=a(105),K=a(273),G=function(e){var t=Object(p.useLocation)(),a=Object(n.useState)(!e),r=a[0],c=a[1],o=Object(n.useRef)(!1),l=Object(n.useState)(0),i=l[0],s=l[1],u=Object(n.useState)(0),d=u[0],m=u[1],f=Object(n.useCallback)((function(e){null!==e&&m(e.getBoundingClientRect().height)}),[]);return Object(K.a)((function(t){var a=t.scrollY;if(e&&!(a=i?c(!1):a+r0&&r.a.createElement("div",{className:"row footer__links"},o.map((function(e,t){return r.a.createElement("div",{key:t,className:"col footer__col"},null!=e.title?r.a.createElement("h4",{className:"footer__title"},e.title):null,null!=e.items&&Array.isArray(e.items)&&e.items.length>0?r.a.createElement("ul",{className:"footer__items"},e.items.map((function(e,t){return e.html?r.a.createElement("li",{key:t,className:"footer__item",dangerouslySetInnerHTML:{__html:e.html}}):r.a.createElement("li",{key:e.href||e.to,className:"footer__item"},r.a.createElement(le,e))}))):null)}))),(i||a)&&r.a.createElement("div",{className:"footer__bottom text--center"},i&&i.src&&r.a.createElement("div",{className:"margin-bottom--sm"},i.href?r.a.createElement("a",{href:i.href,target:"_blank",rel:"noopener noreferrer",className:oe.a.footerLogoLink},r.a.createElement(ie,{alt:i.alt,url:u})):r.a.createElement(ie,{alt:i.alt,url:u})),a?r.a.createElement("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:a}}):null))):null},ue=a(11),de="light",me="dark",fe=function(e){return e===me?me:de},he=function(){return ue.a.canUseDOM?fe(document.documentElement.getAttribute("data-theme")):de},be=function(e){try{localStorage.setItem("theme",fe(e))}catch(t){console.error(t)}},ve=function(){var e=Object(s.useThemeConfig)().colorMode,t=e.disableSwitch,a=e.respectPrefersColorScheme,r=Object(n.useState)(he),c=r[0],o=r[1],l=Object(n.useCallback)((function(){o(de),be(de)}),[]),i=Object(n.useCallback)((function(){o(me),be(me)}),[]);return Object(n.useEffect)((function(){document.documentElement.setAttribute("data-theme",fe(c))}),[c]),Object(n.useEffect)((function(){if(!t)try{var e=localStorage.getItem("theme");null!==e&&o(fe(e))}catch(a){console.error(a)}}),[o]),Object(n.useEffect)((function(){t&&!a||window.matchMedia("(prefers-color-scheme: dark)").addListener((function(e){var t=e.matches;o(t?me:de)}))}),[]),{isDarkTheme:c===me,setLightTheme:l,setDarkTheme:i}},pe=a(114);var ge=function(e){var t=ve(),a=t.isDarkTheme,n=t.setLightTheme,c=t.setDarkTheme;return r.a.createElement(pe.a.Provider,{value:{isDarkTheme:a,setLightTheme:n,setDarkTheme:c}},e.children)},Oe="docusaurus.tab.",Ee=function(){var e=Object(n.useState)({}),t=e[0],a=e[1],r=Object(n.useCallback)((function(e,t){try{localStorage.setItem("docusaurus.tab."+e,t)}catch(a){console.error(a)}}),[]);return Object(n.useEffect)((function(){try{for(var e={},t=0;t{const n=new URLSearchParams(t.search);a?n.set("q",a):n.delete("q"),e.replace({search:n.toString()})},generateSearchPageLink:e=>`${a}search?q=${encodeURIComponent(e)}`}}},272:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a(0),r=a.n(n);function c(){return r.a.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},r.a.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"}))}},273:function(e,t,a){"use strict";var n=a(0),r=a(11),c=function(){return{scrollX:r.a.canUseDOM?window.pageXOffset:0,scrollY:r.a.canUseDOM?window.pageYOffset:0}};t.a=function(e,t){void 0===t&&(t=[]);var a=Object(n.useState)(c()),r=a[0],o=a[1],l=function(){var t=c();o(t),e&&e(t)};return Object(n.useEffect)((function(){var e={passive:!0};return window.addEventListener("scroll",l,e),function(){return window.removeEventListener("scroll",l,e)}}),t),r}},274:function(e,t,a){"use strict";var n=a(0);t.a=function(e){void 0===e&&(e=!0),Object(n.useEffect)((function(){return document.body.style.overflow=e?"hidden":"visible",function(){document.body.style.overflow="visible"}}),[e])}},275:function(e,t,a){"use strict";a.d(t,"b",(function(){return r}));var n=a(0),r={desktop:"desktop",mobile:"mobile"};t.a=function(){var e="undefined"!=typeof window;function t(){if(e)return window.innerWidth>996?r.desktop:r.mobile}var a=Object(n.useState)(t),c=a[0],o=a[1];return Object(n.useEffect)((function(){if(e)return window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)};function a(){o(t())}}),[]),c}},276:function(e,t,a){"use strict";var n=a(3),r=a(7),c=a(0),o=a.n(c);t.a=function(e){var t=e.width,a=void 0===t?30:t,c=e.height,l=void 0===c?30:c,i=e.className,s=Object(r.a)(e,["width","height","className"]);return o.a.createElement("svg",Object(n.a)({"aria-label":"Menu",className:i,width:a,height:l,viewBox:"0 0 30 30",role:"img",focusable:"false"},s),o.a.createElement("title",null,"Menu"),o.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))}},287:function(e,t,a){"use strict";var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(102),i=a(95),s=a(22),u=a(105),d=a(60),m=a.n(d),f=function(e){var t=Object(s.default)().isClient,a=Object(u.a)().isDarkTheme,c=e.sources,l=e.className,d=e.alt,f=void 0===d?"":d,h=Object(r.a)(e,["sources","className","alt"]),b=t?a?["dark"]:["light"]:["light","dark"];return o.a.createElement(o.a.Fragment,null,b.map((function(e){return o.a.createElement("img",Object(n.a)({key:e,src:c[e],alt:f,className:Object(i.a)(m.a.themedImage,m.a["themedImage--"+e],l)},h))})))},h=a(103),b=a(96),v=a(113);t.a=function(e){var t=Object(s.default)().isClient,a=Object(b.useThemeConfig)().navbar,c=a.title,i=a.logo,u=void 0===i?{src:""}:i,d=e.imageClassName,m=e.titleClassName,p=Object(r.a)(e,["imageClassName","titleClassName"]),g=Object(h.a)(u.href||"/"),O=u.target?{target:u.target}:Object(v.a)(g)?{}:{rel:"noopener noreferrer",target:"_blank"},E={light:Object(h.a)(u.src),dark:Object(h.a)(u.srcDark||u.src)};return o.a.createElement(l.a,Object(n.a)({to:g},p,O),u.src&&o.a.createElement(f,{key:t,className:d,sources:E,alt:u.alt||c||"Logo"}),null!=c&&o.a.createElement("strong",{className:m},c))}},289:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;tthis.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=ta?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["className","icons"])),c=(0,l.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},a);return o.default.createElement("div",{className:c,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},o.default.createElement("div",{className:"react-toggle-track"},o.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),o.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),o.default.createElement("div",{className:"react-toggle-thumb"}),o.default.createElement("input",n({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(c.PureComponent);t.default=f,f.displayName="Toggle",f.defaultProps={icons:{checked:o.default.createElement(s.default,null),unchecked:o.default.createElement(u.default,null)}},f.propTypes={checked:i.default.bool,disabled:i.default.bool,defaultChecked:i.default.bool,onChange:i.default.func,onFocus:i.default.func,onBlur:i.default.func,className:i.default.string,name:i.default.string,value:i.default.string,id:i.default.string,"aria-labelledby":i.default.string,"aria-label":i.default.string,icons:i.default.oneOfType([i.default.bool,i.default.shape({checked:i.default.node,unchecked:i.default.node})])}},290:function(e,t,a){var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t0){var a=t[0];return{x:a.clientX,y:a.clientY}}var n=e.pageX;if(void 0!==n)return{x:n,y:e.pageY}}return{x:0,y:0}}},294:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return u}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(96);function u(e){var t,a=e.label,c=e.to,u=e.docsPluginId,d=Object(r.a)(e,["label","to","docsPluginId"]),m=Object(i.useActiveVersion)(u),f=Object(s.useDocsPreferredVersion)(u).preferredVersion,h=Object(i.useLatestVersion)(u),b=null!==(t=null!=m?m:f)&&void 0!==t?t:h,v=null!=a?a:b.label,p=null!=c?c:function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))}(b).path;return o.a.createElement(l.a,Object(n.a)({},d,{label:v,to:p}))}},295:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return d}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(96),u=function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))};function d(e){var t,a,c=e.mobile,d=e.docsPluginId,m=e.dropdownActiveClassDisabled,f=e.dropdownItemsBefore,h=e.dropdownItemsAfter,b=Object(r.a)(e,["mobile","docsPluginId","dropdownActiveClassDisabled","dropdownItemsBefore","dropdownItemsAfter"]),v=Object(i.useActiveDocContext)(d),p=Object(i.useVersions)(d),g=Object(i.useLatestVersion)(d),O=Object(s.useDocsPreferredVersion)(d),E=O.preferredVersion,k=O.savePreferredVersionName;var j=null!==(t=null!==(a=v.activeVersion)&&void 0!==a?a:E)&&void 0!==t?t:g,y=c?"Versions":j.label,C=c?void 0:u(j).path;return o.a.createElement(l.a,Object(n.a)({},b,{mobile:c,label:y,to:C,items:function(){var e=p.map((function(e){var t=(null==v?void 0:v.alternateDocVersions[e.name])||u(e);return{isNavLink:!0,label:e.label,to:t.path,isActive:function(){return e===(null==v?void 0:v.activeVersion)},onClick:function(){k(e.name)}}})),t=[].concat(f,e,h);if(!(t.length<=1))return t}(),isActive:m?function(){return!1}:void 0}))}},296:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return d}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(95),u=a(96);function d(e){var t,a,c=e.docId,d=e.activeSidebarClassName,m=e.label,f=e.docsPluginId,h=Object(r.a)(e,["docId","activeSidebarClassName","label","docsPluginId"]),b=Object(i.useActiveDocContext)(f),v=b.activeVersion,p=b.activeDoc,g=Object(u.useDocsPreferredVersion)(f).preferredVersion,O=Object(i.useLatestVersion)(f),E=null!==(t=null!=v?v:g)&&void 0!==t?t:O,k=E.docs.find((function(e){return e.id===c}));if(!k)throw new Error("DocNavbarItem: couldn't find any doc with id="+c+" in version "+E.name+".\nAvailable docIds=\n- "+E.docs.join("\n- "));return o.a.createElement(l.a,Object(n.a)({exact:!0},h,{className:Object(s.a)(h.className,(a={},a[d]=p&&p.sidebar===k.sidebar,a)),label:null!=m?m:k.id,to:k.path}))}}}]); \ No newline at end of file diff --git a/2.8a96a525.js b/2.8a96a525.js new file mode 100644 index 0000000..a4d1d6a --- /dev/null +++ b/2.8a96a525.js @@ -0,0 +1,2 @@ +/*! For license information please see 2.8a96a525.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{105:function(e,t,a){"use strict";var n=a(0),r=a(114);t.a=function(){var e=Object(n.useContext)(r.a);if(null==e)throw new Error("`useThemeContext` is used outside of `Layout` Component. See https://v2.docusaurus.io/docs/theme-classic#usethemecontext.");return e}},106:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(95),o=a(57),l=a.n(o);var i=function(){return r.a.createElement("nav",{"aria-label":"Skip navigation links"},r.a.createElement("button",{type:"button",tabIndex:0,className:l.a.skipToContent,onKeyDown:function(e){if(13===e.keyCode){document.activeElement.blur();var t=document.querySelector("main:first-of-type");t&&t.scrollIntoView()}}},"Skip to main content"))},s=a(96),u=a(269),d=a(58),m=a.n(d);var f=function(){var e,t=Object(u.a)(),a=t.isAnnouncementBarClosed,n=t.closeAnnouncementBar,o=Object(s.useThemeConfig)().announcementBar;if(!o)return null;var l=o.content,i=o.backgroundColor,d=o.textColor,f=o.isCloseable;return!l||f&&a?null:r.a.createElement("div",{className:m.a.announcementBar,style:{backgroundColor:i,color:d},role:"banner"},r.a.createElement("div",{className:Object(c.a)(m.a.announcementBarContent,(e={},e[m.a.announcementBarCloseable]=f,e)),dangerouslySetInnerHTML:{__html:l}}),f?r.a.createElement("button",{type:"button",className:m.a.announcementBarClose,onClick:n,"aria-label":"Close"},r.a.createElement("span",{"aria-hidden":"true"},"\xd7")):null)},h=a(3),v=a(7),b=a(26),p=a(22),g=a(101),O=a(103),E=a(102),k=a(24),j=a(271);function y(){return r.a.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.a.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}var C=a(272);function w(){return(w=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var a=0,n=new Array(t);a=i?c(!1):a+r0&&r.a.createElement("div",{className:"row footer__links"},o.map((function(e,t){return r.a.createElement("div",{key:t,className:"col footer__col"},null!=e.title?r.a.createElement("h4",{className:"footer__title"},e.title):null,null!=e.items&&Array.isArray(e.items)&&e.items.length>0?r.a.createElement("ul",{className:"footer__items"},e.items.map((function(e,t){return e.html?r.a.createElement("li",{key:t,className:"footer__item",dangerouslySetInnerHTML:{__html:e.html}}):r.a.createElement("li",{key:e.href||e.to,className:"footer__item"},r.a.createElement(le,e))}))):null)}))),(i||a)&&r.a.createElement("div",{className:"footer__bottom text--center"},i&&i.src&&r.a.createElement("div",{className:"margin-bottom--sm"},i.href?r.a.createElement("a",{href:i.href,target:"_blank",rel:"noopener noreferrer",className:oe.a.footerLogoLink},r.a.createElement(ie,{alt:i.alt,url:u})):r.a.createElement(ie,{alt:i.alt,url:u})),a?r.a.createElement("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:a}}):null))):null},ue=a(11),de="light",me="dark",fe=function(e){return e===me?me:de},he=function(){return ue.a.canUseDOM?fe(document.documentElement.getAttribute("data-theme")):de},ve=function(e){try{localStorage.setItem("theme",fe(e))}catch(t){console.error(t)}},be=function(){var e=Object(s.useThemeConfig)().colorMode,t=e.disableSwitch,a=e.respectPrefersColorScheme,r=Object(n.useState)(he),c=r[0],o=r[1],l=Object(n.useCallback)((function(){o(de),ve(de)}),[]),i=Object(n.useCallback)((function(){o(me),ve(me)}),[]);return Object(n.useEffect)((function(){document.documentElement.setAttribute("data-theme",fe(c))}),[c]),Object(n.useEffect)((function(){if(!t)try{var e=localStorage.getItem("theme");null!==e&&o(fe(e))}catch(a){console.error(a)}}),[o]),Object(n.useEffect)((function(){t&&!a||window.matchMedia("(prefers-color-scheme: dark)").addListener((function(e){var t=e.matches;o(t?me:de)}))}),[]),{isDarkTheme:c===me,setLightTheme:l,setDarkTheme:i}},pe=a(114);var ge=function(e){var t=be(),a=t.isDarkTheme,n=t.setLightTheme,c=t.setDarkTheme;return r.a.createElement(pe.a.Provider,{value:{isDarkTheme:a,setLightTheme:n,setDarkTheme:c}},e.children)},Oe="docusaurus.tab.",Ee=function(){var e=Object(n.useState)({}),t=e[0],a=e[1],r=Object(n.useCallback)((function(e,t){try{localStorage.setItem("docusaurus.tab."+e,t)}catch(a){console.error(a)}}),[]);return Object(n.useEffect)((function(){try{for(var e={},t=0;t996?r.desktop:r.mobile}var a=Object(n.useState)(t),c=a[0],o=a[1];return Object(n.useEffect)((function(){if(e)return window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)};function a(){o(t())}}),[]),c}},276:function(e,t,a){"use strict";var n=a(3),r=a(7),c=a(0),o=a.n(c);t.a=function(e){var t=e.width,a=void 0===t?30:t,c=e.height,l=void 0===c?30:c,i=e.className,s=Object(r.a)(e,["width","height","className"]);return o.a.createElement("svg",Object(n.a)({"aria-label":"Menu",className:i,width:a,height:l,viewBox:"0 0 30 30",role:"img",focusable:"false"},s),o.a.createElement("title",null,"Menu"),o.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))}},287:function(e,t,a){"use strict";var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(102),i=a(95),s=a(22),u=a(105),d=a(60),m=a.n(d),f=function(e){var t=Object(s.default)().isClient,a=Object(u.a)().isDarkTheme,c=e.sources,l=e.className,d=e.alt,f=void 0===d?"":d,h=Object(r.a)(e,["sources","className","alt"]),v=t?a?["dark"]:["light"]:["light","dark"];return o.a.createElement(o.a.Fragment,null,v.map((function(e){return o.a.createElement("img",Object(n.a)({key:e,src:c[e],alt:f,className:Object(i.a)(m.a.themedImage,m.a["themedImage--"+e],l)},h))})))},h=a(103),v=a(96),b=a(113);t.a=function(e){var t=Object(s.default)().isClient,a=Object(v.useThemeConfig)().navbar,c=a.title,i=a.logo,u=void 0===i?{src:""}:i,d=e.imageClassName,m=e.titleClassName,p=Object(r.a)(e,["imageClassName","titleClassName"]),g=Object(h.a)(u.href||"/"),O=u.target?{target:u.target}:Object(b.a)(g)?{}:{rel:"noopener noreferrer",target:"_blank"},E={light:Object(h.a)(u.src),dark:Object(h.a)(u.srcDark||u.src)};return o.a.createElement(l.a,Object(n.a)({to:g},p,O),u.src&&o.a.createElement(f,{key:t,className:d,sources:E,alt:u.alt||c||"Logo"}),null!=c&&o.a.createElement("strong",{className:m},c))}},289:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;tthis.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=ta?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["className","icons"])),c=(0,l.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},a);return o.default.createElement("div",{className:c,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},o.default.createElement("div",{className:"react-toggle-track"},o.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),o.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),o.default.createElement("div",{className:"react-toggle-thumb"}),o.default.createElement("input",n({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(c.PureComponent);t.default=f,f.displayName="Toggle",f.defaultProps={icons:{checked:o.default.createElement(s.default,null),unchecked:o.default.createElement(u.default,null)}},f.propTypes={checked:i.default.bool,disabled:i.default.bool,defaultChecked:i.default.bool,onChange:i.default.func,onFocus:i.default.func,onBlur:i.default.func,className:i.default.string,name:i.default.string,value:i.default.string,id:i.default.string,"aria-labelledby":i.default.string,"aria-label":i.default.string,icons:i.default.oneOfType([i.default.bool,i.default.shape({checked:i.default.node,unchecked:i.default.node})])}},290:function(e,t,a){var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t0){var a=t[0];return{x:a.clientX,y:a.clientY}}var n=e.pageX;if(void 0!==n)return{x:n,y:e.pageY}}return{x:0,y:0}}},294:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return u}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(96);function u(e){var t,a=e.label,c=e.to,u=e.docsPluginId,d=Object(r.a)(e,["label","to","docsPluginId"]),m=Object(i.useActiveVersion)(u),f=Object(s.useDocsPreferredVersion)(u).preferredVersion,h=Object(i.useLatestVersion)(u),v=null!==(t=null!=m?m:f)&&void 0!==t?t:h,b=null!=a?a:v.label,p=null!=c?c:function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))}(v).path;return o.a.createElement(l.a,Object(n.a)({},d,{label:b,to:p}))}},295:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return d}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(96),u=function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))};function d(e){var t,a,c=e.mobile,d=e.docsPluginId,m=e.dropdownActiveClassDisabled,f=e.dropdownItemsBefore,h=e.dropdownItemsAfter,v=Object(r.a)(e,["mobile","docsPluginId","dropdownActiveClassDisabled","dropdownItemsBefore","dropdownItemsAfter"]),b=Object(i.useActiveDocContext)(d),p=Object(i.useVersions)(d),g=Object(i.useLatestVersion)(d),O=Object(s.useDocsPreferredVersion)(d),E=O.preferredVersion,k=O.savePreferredVersionName;var j=null!==(t=null!==(a=b.activeVersion)&&void 0!==a?a:E)&&void 0!==t?t:g,y=c?"Versions":j.label,C=c?void 0:u(j).path;return o.a.createElement(l.a,Object(n.a)({},v,{mobile:c,label:y,to:C,items:function(){var e=p.map((function(e){var t=(null==b?void 0:b.alternateDocVersions[e.name])||u(e);return{isNavLink:!0,label:e.label,to:t.path,isActive:function(){return e===(null==b?void 0:b.activeVersion)},onClick:function(){k(e.name)}}})),t=[].concat(f,e,h);if(!(t.length<=1))return t}(),isActive:m?function(){return!1}:void 0}))}},296:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return d}));var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(111),i=a(99),s=a(95),u=a(96);function d(e){var t,a,c=e.docId,d=e.activeSidebarClassName,m=e.label,f=e.docsPluginId,h=Object(r.a)(e,["docId","activeSidebarClassName","label","docsPluginId"]),v=Object(i.useActiveDocContext)(f),b=v.activeVersion,p=v.activeDoc,g=Object(u.useDocsPreferredVersion)(f).preferredVersion,O=Object(i.useLatestVersion)(f),E=null!==(t=null!=b?b:g)&&void 0!==t?t:O,k=E.docs.find((function(e){return e.id===c}));if(!k)throw new Error("DocNavbarItem: couldn't find any doc with id="+c+" in version "+E.name+".\nAvailable docIds=\n- "+E.docs.join("\n- "));return o.a.createElement(l.a,Object(n.a)({exact:!0},h,{className:Object(s.a)(h.className,(a={},a[d]=p&&p.sidebar===k.sidebar,a)),label:null!=m?m:k.id,to:k.path}))}}}]); \ No newline at end of file diff --git a/2.80b82478.js.LICENSE.txt b/2.8a96a525.js.LICENSE.txt similarity index 100% rename from 2.80b82478.js.LICENSE.txt rename to 2.8a96a525.js.LICENSE.txt diff --git a/22.49e8f943.js b/22.49e8f943.js deleted file mode 100644 index 9c9433d..0000000 --- a/22.49e8f943.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 22.49e8f943.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{250:function(e,t,r){"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r0}},279:function(e,t,r){"use strict";var n=r(265),i=r(266),a=r(303),s=r(250),c=r(304),u=r(280),o=r(267),f=r(305),h=r(306);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,r){return l(t[r],e)})):e===t}function m(e){var t=e?m._parseNumbers(e):{};void 0===t.userToken||f(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach((function(e){var n=-1!==m.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])}))}m.PARAMETERS=Object.keys(new m),m._parseNumbers=function(e){if(e instanceof m)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach((function(e){var i=n[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));r[t][e]=i}))})),t.numericRefinements=r}return n({},e,t)},m.make=function(e){var t=new m(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},m.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&o(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},m.prototype={constructor:m,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var i=c(r);if(this.isNumericRefined(e,t,i))return this;var a=n({},this.numericRefinements);return a[e]=n({},a[e]),a[e][t]?(a[e][t]=a[e][t].slice(),a[e][t].push(i)):a[e][t]=[i],this.setQueryParameters({numericRefinements:a})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&l(n.val,c(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===e&&r.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,r){return r===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return u(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,i){var a=r[i],s={};return a=a||{},Object.keys(a).forEach((function(r){var n=a[r]||[],c=[];n.forEach((function(t){e({val:t,op:r},i,"numeric")||c.push(t)})),c.length!==n.length&&(t=!0),s[r]=c})),n[i]=s,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},n,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:i({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var i,a,u=c(r),o=void 0!==(i=this.numericRefinements[e][t],a=u,s(i,(function(e){return l(e,a)})));return n&&o},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0})))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach((function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=m.validate(this,e);if(t)throw t;var r=this,n=m._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=r[t],e}),{}),a=Object.keys(n).reduce((function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?u(e,[t]):(i&&(e[t]=n[t]),e)}),i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return s(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=m},280:function(e,t,r){"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}},281:function(e,t,r){"use strict";var n=r(265),i=r(266),a=r(282),s=r(307),c=r(250),u=r(308),o=r(283),f=r(309);function h(e){var t={};return e.forEach((function(e,r){t[e]=r})),t}function l(e,t,r){t&&t[r]&&(e.stats=t[r])}function m(e,t){var r=t[0];this._rawResults=t;var a=this;Object.keys(r).forEach((function(e){a[e]=r[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var o=e.getRefinedDisjunctiveFacets(),m=h(e.facets),d=h(e.disjunctiveFacets),v=1,p=r.facets||{};Object.keys(p).forEach((function(t){var n,i,s=p[t],o=(n=e.hierarchicalFacets,i=t,c(n,(function(e){return(e.attributes||[]).indexOf(i)>-1})));if(o){var f=o.attributes.indexOf(t),h=u(e.hierarchicalFacets,(function(e){return e.name===o.name}));a.hierarchicalFacets[h][f]={attribute:t,data:s,exhaustive:r.exhaustiveFacetsCount}}else{var v,g=-1!==e.disjunctiveFacets.indexOf(t),y=-1!==e.facets.indexOf(t);g&&(v=d[t],a.disjunctiveFacets[v]={name:t,data:s,exhaustive:r.exhaustiveFacetsCount},l(a.disjunctiveFacets[v],r.facets_stats,t)),y&&(v=m[t],a.facets[v]={name:t,data:s,exhaustive:r.exhaustiveFacetsCount},l(a.facets[v],r.facets_stats,t))}})),this.hierarchicalFacets=s(this.hierarchicalFacets),o.forEach((function(s){var c=t[v],o=c&&c.facets?c.facets:{},f=e.getHierarchicalFacetByName(s);Object.keys(o).forEach((function(t){var s,h=o[t];if(f){s=u(e.hierarchicalFacets,(function(e){return e.name===f.name}));var m=u(a.hierarchicalFacets[s],(function(e){return e.attribute===t}));if(-1===m)return;a.hierarchicalFacets[s][m].data=n({},a.hierarchicalFacets[s][m].data,h)}else{s=d[t];var v=r.facets&&r.facets[t]||{};a.disjunctiveFacets[s]={name:t,data:i({},h,v),exhaustive:c.exhaustiveFacetsCount},l(a.disjunctiveFacets[s],c.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(r){!a.disjunctiveFacets[s].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(r)>-1&&(a.disjunctiveFacets[s].data[r]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(r){var n=e.getHierarchicalFacetByName(r),s=e._getHierarchicalFacetSeparator(n),c=e.getHierarchicalRefinement(r);if(!(0===c.length||c[0].split(s).length<2)){var o=t[v],f=o&&o.facets?o.facets:{};Object.keys(f).forEach((function(t){var r=f[t],o=u(e.hierarchicalFacets,(function(e){return e.name===n.name})),h=u(a.hierarchicalFacets[o],(function(e){return e.attribute===t}));if(-1!==h){var l={};if(c.length>0){var m=c[0].split(s)[0];l[m]=a.hierarchicalFacets[o][h].data[m]}a.hierarchicalFacets[o][h].data=i(l,r,a.hierarchicalFacets[o][h].data)}})),v++}})),Object.keys(e.facetsExcludes).forEach((function(t){var n=e.facetsExcludes[t],i=m[t];a.facets[i]={name:t,data:r.facets[t],exhaustive:r.exhaustiveFacetsCount},n.forEach((function(e){a.facets[i]=a.facets[i]||{name:t},a.facets[i].data=a.facets[i].data||{},a.facets[i].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=s(this.facets),this.disjunctiveFacets=s(this.disjunctiveFacets),this._state=e}function d(e,t){if(!t.data||0===t.data.length)return t;var r=t.data.map((function(t){return d(e,t)})),i=e(r);return n({},t,{data:i})}function v(e,t){var r=c(e,(function(e){return e.name===t}));return r&&r.stats}function p(e,t,r,n,i){var a=c(i,(function(e){return e.name===r})),s=a&&a.data&&a.data[n]?a.data[n]:0,u=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:s,exhaustive:u}}m.prototype.getFacetByName=function(e){function t(t){return t.name===e}return c(this.facets,t)||c(this.disjunctiveFacets,t)||c(this.hierarchicalFacets,t)},m.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],m.prototype.getFacetValues=function(e,t){var r=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=c(e.facets,r);return n?Object.keys(n.data).map((function(r){return{name:r,count:n.data[r],isRefined:e._state.isFacetRefined(t,r),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=c(e.disjunctiveFacets,r);return i?Object.keys(i.data).map((function(r){return{name:r,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t))return c(e.hierarchicalFacets,r)}(this,e);if(r){var n=i({},t,{sortBy:m.DEFAULT_SORT});if(Array.isArray(n.sortBy)){var s=o(n.sortBy,m.DEFAULT_SORT);return Array.isArray(r)?a(r,s[0],s[1]):d((function(e){return a(e,s[0],s[1])}),r)}if("function"==typeof n.sortBy)return Array.isArray(r)?r.sort(n.sortBy):d((function(e){return function(e,t){return t.sort(e)}(n.sortBy,e)}),r);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}},m.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},m.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(i){r.push(p(e,"facet",n,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(i){r.push(p(e,"exclude",n,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(i){r.push(p(e,"disjunctive",n,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=r.split(a),u=c(n,(function(e){return e.name===t})),o=s.reduce((function(e,t){var r=e&&c(e.data,(function(e){return e.name===t}));return void 0!==r?r:e}),u),f=o&&o.count||0,h=o&&o.exhaustive||!1,l=o&&o.path||"";return{type:"hierarchical",attributeName:t,name:l,count:f,exhaustive:h}}(e,n,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),r},e.exports=m},282:function(e,t,r){"use strict";function n(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e=r.length?a:"desc"===r[i]?-a:a}return e.index-t.index})),i.map((function(e){return e.value}))}},283:function(e,t,r){"use strict";var n=r(250);e.exports=function(e,t){var r=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),a=n(r,(function(e){return e[0]===i[0]}));return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)}),[[],[]])}},284:function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(r,n){function i(){void 0!==a&&e.removeListener("error",a),r([].slice.call(arguments))}var a;"error"!==t&&(a=function(r){e.removeListener(t,i),n(r)},e.once("error",a)),e.once(t,i)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,a,s,c;if(o(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=f(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var o=u.length,f=p(u,o);for(r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},c.prototype.listeners=function(e){return d(this,e,!0)},c.prototype.rawListeners=function(e){return d(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},285:function(e,t,r){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},286:function(e,t,r){"use strict";e.exports="3.3.4"},301:function(e,t,r){"use strict";var n=r(302),i=r(279),a=r(281);function s(e,t,r){return new n(e,t,r)}s.version=r(286),s.AlgoliaSearchHelper=n,s.SearchParameters=i,s.SearchResults=a,e.exports=s},302:function(e,t,r){"use strict";var n=r(279),i=r(281),a=r(310),s=r(311),c=r(284),u=r(285),o=r(267),f=r(286);function h(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.setClient(e);var i=r||{};i.index=t,this.state=n.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function l(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function m(){return this.state.page}u(h,c.EventEmitter),h.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},h.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},h.prototype.getQuery=function(){var e=this.state;return s._getHitsSearchParams(e)},h.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=s._getQueries(r.index,r),a=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then((function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),{content:new i(r,e.results),state:r,_originalResponse:e}}),(function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(null,new i(r,e.results),r)})).catch((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(e,null,r)}))},h.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var a=this.state.setQueryParameters(n||{}),c=a.isDisjunctiveFacet(e),u=s.getSearchForFacetQuery(e,t,r,a);this._currentNbQueries++;var o=this;return this.emit("searchForFacetValues",{state:a,facet:e,query:t}),(i?this.client.searchForFacetValues([{indexName:a.index,params:u}]):this.client.initIndex(a.index).searchForFacetValues(u)).then((function(t){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.isRefined=c?a.isDisjunctiveFacetRefined(e,t.value):a.isFacetRefined(e,t.value)})),t}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}))},h.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},h.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},h.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},h.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},h.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},h.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},h.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},h.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},h.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},h.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},h.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},h.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},h.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},h.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},h.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},h.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},h.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},h.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},h.prototype.setCurrentPage=l,h.prototype.setPage=l,h.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},h.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},h.prototype.setState=function(e){return this._change({state:n.make(e),isPageReset:!1}),this},h.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new n(e),this},h.prototype.hasRefinements=function(e){return!!o(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},h.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},h.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},h.prototype.hasTag=function(e){return this.state.isTagRefined(e)},h.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},h.prototype.getIndex=function(){return this.state.index},h.prototype.getCurrentPage=m,h.prototype.getPage=m,h.prototype.getTags=function(){return this.state.tagRefinements},h.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})})),t},h.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},h.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},h.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=s._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),i=s._getQueries(n.index,n);return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i})),a=Array.prototype.concat.apply(n,i),c=this._queryId++;this._currentNbQueries++;try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,c)).catch(this._dispatchAlgoliaError.bind(this,c))}catch(u){this.emit("error",{error:u})}},h.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t0},h.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},h.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},h.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.client=e),this},h.prototype.getClient=function(){return this.client},h.prototype.derive=function(e){var t=new a(this,e);return this.derivedHelpers.push(t),t},h.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},h.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=h},303:function(e,t,r){"use strict";e.exports=function(e,t){return e.filter((function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n}))}},304:function(e,t,r){"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},305:function(e,t,r){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},306:function(e,t,r){"use strict";var n=r(266),i=r(280),a=r(267),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],c={};return c[t]=a,n({},c,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,(function(e,r){return t===r}));var n=""+r;return s.clearRefinement(e,(function(e,r){return t===r&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce((function(i,a){var s=e[a]||[],c=s.filter((function(e){return!t(e,a,r)}));return c.length!==s.length&&(n=!0),i[a]=c,i}),{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=s},307:function(e,t,r){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},308:function(e,t,r){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r0){var h=0;for(f=c;h0&&s[0].split(c).length>1&&r.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,n,!0)})})),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)),r=i._getFacetFilters(e),a=i._getNumericFilters(e),s={facets:t,tagFilters:i._getTagFilters(e)};return r.length>0&&(s.facetFilters=r),a.length>0&&(s.numericFilters=a),n({},e.getQueryParams(),s)},_getDisjunctiveFacetSearchParams:function(e,t,r){var a=i._getFacetFilters(e,t,r),s=i._getNumericFilters(e,t),c={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:i._getTagFilters(e),analytics:!1,clickAnalytics:!1},u=e.getHierarchicalFacetByName(t);return c.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,r):t,s.length>0&&(c.numericFilters=s),a.length>0&&(c.facetFilters=a),n({},e.getQueryParams(),c)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach((function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach((function(e){var a=i[e]||[];t!==n&&a.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return n+e+t}));r.push(i)}else r.push(n+e+t)}))}))})),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach((function(e){(i[e]||[]).forEach((function(t){n.push(e+":"+t)}))}));var a=e.facetsExcludes||{};Object.keys(a).forEach((function(e){(a[e]||[]).forEach((function(t){n.push(e+":-"+t)}))}));var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach((function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.forEach((function(t){i.push(e+":"+t)})),n.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).forEach((function(i){var a=(c[i]||[])[0];if(void 0!==a){var s,u,o=e.getHierarchicalFacetByName(i),f=e._getHierarchicalFacetSeparator(o),h=e._getHierarchicalRootPath(o);if(t===i){if(-1===a.indexOf(f)||!h&&!0===r||h&&h.split(f).length===a.split(f).length)return;h?(u=h.split(f).length-1,a=h):(u=a.split(f).length-2,a=a.slice(0,a.lastIndexOf(f))),s=o.attributes[u]}else u=a.split(f).length-1,s=o.attributes[u];s&&n.push([s+":"+a])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,a){var s=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),n({},i._getHitsSearchParams(s),c)}};e.exports=i},312:function(e,t,r){e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=i(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=a();return i[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function c(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return i(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,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,i).catch((function(){return c({caches:t}).get(e,n,i)}))},set:function(e,n){return r.set(e,n).catch((function(){return c({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return c({caches:t}).clear()}))}}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=n(),c=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return c(e)})).then((function(){return s}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function o(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function f(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var d={Read:1,Write:2,Any:3},v=1,p=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function R(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var F="GET",b="POST";function j(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===v||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return R(e)})):t}}))}function P(e,t,n,i){var s=[],c=function(e,t){if(e.method!==F&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,i),u=function(e,t){var n=r(r({},e.headers),t.headers),i={};return Object.keys(n).forEach((function(e){var t=n[e];i[e.toLowerCase()]=t})),i}(e,i),o=n.method,f=n.method!==F?{}:r(r({},n.data),i.data),h=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),f),i.queryParameters),l=0,m=function t(r,a){var f=r.pop();if(void 0===f)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:_(s)};var m={data:c,headers:u,method:o,url:x(f,n.path,h),connectTimeout:a(l,e.timeouts.connect),responseTimeout:a(l,i.timeout)},d=function(e){var t={request:m,response:e,host:f,triesLeft:r.length};return s.push(t),t},v={onSucess: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 i=d(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",w(i)),e.hostsCache.set(f,y(f,n.isTimedOut?g:p))]).then((function(){return t(r,a)}))},onFail:function(e){throw d(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(i,n,t)}(e,_(s))}};return e.requester.send(m).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSucess(e):t.onFail(e)}(e,v)}))};return j(e.hostsCache,t).then((function(e){return m(a(e.statelessHosts).reverse(),e.getTimeout)}))}function E(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function x(e,t,r){var n=O(r),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(i+="?".concat(n)),i}function O(e){return Object.keys(e).map((function(t){return h("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function _(e){return e.map((function(e){return w(e)}))}function w(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var N=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?n:{}},queryParameters:function(){return e===l.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,s=e.responsesCache,c=e.timeouts,u=e.userAgent,o=e.hosts,f=e.queryParameters,h={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:s,timeouts:c,userAgent:u,headers:e.headers,queryParameters:f,hosts:o.map((function(e){return R(e)})),read:function(e,t){var r=m(t,h.timeouts.read),n=function(){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(a,(function(){return h.requestsCache.get(a,(function(){return h.requestsCache.set(a,n()).then((function(e){return Promise.all([h.requestsCache.delete(a),e])}),(function(e){return Promise.all([h.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return h.responsesCache.set(a,e)}})},write:function(e,t){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Write)})),e,m(t,h.timeouts.write))}};return h}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(o([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return f({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},H=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},A=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{params:O(e.params||{})})}));return e.transporter.read({method:b,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},S=function(e){return function(t,i){return Promise.all(t.map((function(t){var a=t.params,s=a.facetName,c=a.facetQuery,u=n(a,["facetName","facetQuery"]);return H(e)(t.indexName,{methods:{searchForFacetValues:C}}).searchForFacetValues(s,c,r(r({},i),u))})))}},Q=function(e){return function(t,r,n){return e.transporter.read({method:b,path:h("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},T=function(e){return function(t,r){return e.transporter.read({method:b,path:h("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},C=function(e){return function(t,r,n){return e.transporter.read({method:b,path:h("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},D=1,k=2,I=3;function q(e,t,n){var i,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,i=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(i=I,{debug:function(e,t){return D>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return k>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:c({caches:[s({key:"".concat("4.8.4","-").concat(e)}),u()]}),userAgent:E("4.8.4").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return N(r(r(r({},a),n),{},{methods:{search:A,searchForFacetValues:S,multipleQueries:A,multipleSearchForFacetValues:S,initIndex:function(e){return function(t){return H(e)(t,{methods:{search:T,searchForFacetValues:C,findAnswers:Q}})}}}}))}return q.version="4.8.4",q}()},81:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r.n(n),a=r(312),s=r.n(a),c=r(301),u=r.n(c),o=r(95),f=r(24),h=r(102),l=r(11),m=r(96),d=r(22),v=r(99),p=r(271),g=r(106),y=r(82),R=r.n(y);const F=({docsSearchVersionsHelpers:e})=>{const t=Object.entries(e.allDocsData).filter((([,e])=>e.versions.length>1));return i.a.createElement("div",{className:Object(o.a)("col","col--3","padding-left--none",R.a.searchVersionColumn)},t.map((([r,n])=>{const a=t.length>1?`${r}: `:"";return i.a.createElement("select",{key:r,onChange:t=>e.setSearchVersion(r,t.target.value),defaultValue:e.searchVersions[r],className:R.a.searchVersionInput},n.versions.map(((e,t)=>i.a.createElement("option",{key:t,label:`${a}${e.label}`,value:e.name}))))})))};t.default=function(){const{siteConfig:{themeConfig:{algolia:{appId:e="BH4D9OD16A",apiKey:t,indexName:r}={}}}={}}=Object(d.default)(),a=function(){const e=Object(v.useAllDocsData)(),[t,r]=Object(n.useState)((()=>Object.entries(e).reduce(((e,[t,r])=>({...e,[t]:r.versions[0].name})),{}))),i=Object.values(e).some((e=>e.versions.length>1));return{allDocsData:e,versioningEnabled:i,searchVersions:t,setSearchVersion:(e,t)=>r((r=>({...r,[e]:t})))}}(),{searchValue:c,updateSearchPath:y}=Object(p.a)(),[b,j]=Object(n.useState)(c),P={items:[],query:null,totalResults:null,totalPages:null,lastPage:null,hasMore:null,loading:null},[E,x]=Object(n.useReducer)(((e,{type:t,value:r})=>{switch(t){case"reset":return P;case"loading":return{...e,loading:!0};case"update":return b!==r.query?e:{...r,items:0===r.lastPage?r.items:e.items.concat(r.items)};case"advance":{const t=e.totalPages>e.lastPage+1;return{...e,lastPage:t?e.lastPage+1:e.lastPage,hasMore:t}}default:return e}}),P),O=s()(e,t),_=u()(O,r,{hitsPerPage:15,advancedSyntax:!0,disjunctiveFacets:["docusaurus_tag"]});_.on("result",(({results:{query:e,hits:t,page:r,nbHits:n,nbPages:i}})=>{if(""===e||!(t instanceof Array))return void x({type:"reset"});const a=e=>e.replace(/algolia-docsearch-suggestion--highlight/g,"search-result-match"),s=t.map((({url:e,_highlightResult:{hierarchy:t},_snippetResult:r={}})=>{const{pathname:n,hash:i}=new URL(e),s=Object.keys(t).map((e=>a(t[e].value)));return{title:s.pop(),url:n+i,summary:r.content?`${a(r.content.value)}...`:"",breadcrumbs:s}}));x({type:"update",value:{items:s,query:e,totalResults:n,totalPages:i,lastPage:r,hasMore:i>r+1,loading:!1}})}));const[w,N]=Object(n.useState)(null),H=Object(n.useRef)(0),A=Object(n.useRef)(l.a.canUseDOM&&new IntersectionObserver((e=>{const{isIntersecting:t,boundingClientRect:{y:r}}=e[0];t&&H.current>r&&x({type:"advance"}),H.current=r}),{threshold:1})),S=()=>b?`Search results for "${b}"`:"Search the documentation",Q=(e=0)=>{_.addDisjunctiveFacetRefinement("docusaurus_tag","default"),Object.entries(a.searchVersions).forEach((([e,t])=>{_.addDisjunctiveFacetRefinement("docusaurus_tag",`docs-${e}-${t}`)})),_.setQuery(b).setPage(e).search()};return Object(n.useEffect)((()=>{if(w)return A.current.observe(w),()=>{A.current.unobserve(w)}}),[w]),Object(n.useEffect)((()=>{y(b),x({type:"reset"}),b&&(x({type:"loading"}),setTimeout((()=>{Q()}),300))}),[b,a.searchVersions]),Object(n.useEffect)((()=>{E.lastPage&&0!==E.lastPage&&Q(E.lastPage)}),[E.lastPage]),Object(n.useEffect)((()=>{c&&c!==b&&j(c)}),[c]),i.a.createElement(g.a,{wrapperClassName:"search-page-wrapper"},i.a.createElement(f.a,null,i.a.createElement("title",null,Object(m.useTitleFormatter)(S())),i.a.createElement("meta",{property:"robots",content:"noindex, follow"})),i.a.createElement("div",{className:"container margin-vert--lg"},i.a.createElement("h1",null,S()),i.a.createElement("form",{className:"row",onSubmit:e=>e.preventDefault()},i.a.createElement("div",{className:Object(o.a)("col",R.a.searchQueryColumn,{"col--9":a.versioningEnabled,"col--12":!a.versioningEnabled})},i.a.createElement("input",{type:"search",name:"q",className:R.a.searchQueryInput,placeholder:"Type your search here","aria-label":"Search",onChange:e=>j(e.target.value),value:b,autoComplete:"off",autoFocus:!0})),a.versioningEnabled&&i.a.createElement(F,{docsSearchVersionsHelpers:a})),i.a.createElement("div",{className:Object(o.a)("row","margin-vert--sm")},i.a.createElement("div",{className:Object(o.a)("col","col--8",R.a.searchResultsColumn)},!!E.totalResults&&i.a.createElement("strong",null,E.totalResults," ",(T=E.totalResults,C="document",T>1?`${C}s`:C)," found")),i.a.createElement("div",{className:Object(o.a)("col","col--4",R.a.searchLogoColumn)},i.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/","aria-label":"Search"},i.a.createElement("svg",{viewBox:"0 0 168 24",className:R.a.algoliaLogo,xmlns:"http://www.w3.org/2000/svg","aria-label":"Search by Algolia"},i.a.createElement("g",{fill:"none"},i.a.createElement("path",{className:R.a.algoliaLogoPathFill,d:"M120.925 18.804c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199 5.7 5.7 0 0 0-.897.069 2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 0 1-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 0 1 1.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 0 1 .233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 0 0-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 0 1 1.753 1.216 5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17zM6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 0 0-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 0 1-.582-.271 13.67 13.67 0 0 1-.55-.287 4.275 4.275 0 0 1-.567-.351 6.92 6.92 0 0 1-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 0 1-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 0 0-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 0 0-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 0 0-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 0 1-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z"}),i.a.createElement("path",{fill:"#5468FF",d:"M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938z"}),i.a.createElement("path",{fill:"white",d:"M89.632 5.967v-.772a.978.978 0 0 0-.978-.977h-2.28a.978.978 0 0 0-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 0 1 1.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 0 0-1.382 0l-.465.465a.973.973 0 0 0 0 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 0 0-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 0 1-4.49-4.482 4.488 4.488 0 0 1 4.49-4.482 4.488 4.488 0 0 1 4.489 4.482 4.484 4.484 0 0 1-4.49 4.482m0-10.85a6.363 6.363 0 1 0 0 12.729 6.37 6.37 0 0 0 6.372-6.368 6.358 6.358 0 0 0-6.371-6.36"})))))),E.items.length>0?i.a.createElement("section",null,E.items.map((({title:e,url:t,summary:r,breadcrumbs:n},a)=>i.a.createElement("article",{key:a,className:R.a.searchResultItem},i.a.createElement(h.a,{to:t,className:R.a.searchResultItemHeading,dangerouslySetInnerHTML:{__html:e}}),n.length>0&&i.a.createElement("span",{className:R.a.searchResultItemPath},n.map(((e,t)=>i.a.createElement(i.a.Fragment,null,0!==t&&i.a.createElement("span",{className:R.a.searchResultItemPathSeparator},"\u203a"),i.a.createElement("span",{dangerouslySetInnerHTML:{__html:e}}))))),r&&i.a.createElement("p",{className:R.a.searchResultItemSummary,dangerouslySetInnerHTML:{__html:r}}))))):[b&&!E.loading&&i.a.createElement("p",{key:"no-results"},"No results were found"),!!E.loading&&i.a.createElement("div",{key:"spinner",className:R.a.loadingSpinner})],E.hasMore&&i.a.createElement("div",{className:R.a.loader,ref:N},i.a.createElement("span",null,"Fetching new results..."))));var T,C}}}]); \ No newline at end of file diff --git a/22.740f3d56.js b/22.740f3d56.js new file mode 100644 index 0000000..67d0113 --- /dev/null +++ b/22.740f3d56.js @@ -0,0 +1,2 @@ +/*! For license information please see 22.740f3d56.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{250:function(e,t,n){"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n0}},279:function(e,t,n){"use strict";var r=n(265),i=n(266),a=n(303),s=n(250),c=n(304),u=n(280),o=n(267),f=n(305),h=n(306);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return l(t[n],e)})):e===t}function m(e){var t=e?m._parseNumbers(e):{};void 0===t.userToken||f(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach((function(e){var r=-1!==m.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])}))}m.PARAMETERS=Object.keys(new m),m._parseNumbers=function(e){if(e instanceof m)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(n){var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach((function(e){var i=r[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));n[t][e]=i}))})),t.numericRefinements=n}return r({},e,t)},m.make=function(e){var t=new m(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},m.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&o(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},m.prototype={constructor:m,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var i=c(n);if(this.isNumericRefined(e,t,i))return this;var a=r({},this.numericRefinements);return a[e]=r({},a[e]),a[e][t]?(a[e][t]=a[e][t].slice(),a[e][t].push(i)):a[e][t]=[i],this.setQueryParameters({numericRefinements:a})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,i){return i===e&&r.op===t&&l(r.val,c(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return u(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce((function(r,i){var a=n[i],s={};return a=a||{},Object.keys(a).forEach((function(n){var r=a[n]||[],c=[];r.forEach((function(t){e({val:t,op:n},i,"numeric")||c.push(t)})),c.length!==r.length&&(t=!0),s[n]=c})),r[i]=s,r}),{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:i({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var i,a,u=c(n),o=void 0!==(i=this.numericRefinements[e][t],a=u,s(i,(function(e){return l(e,a)})));return r&&o},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0})))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach((function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=m.validate(this,e);if(t)throw t;var n=this,r=m._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=n[t],e}),{}),a=Object.keys(r).reduce((function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?u(e,[t]):(i&&(e[t]=r[t]),e)}),i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return s(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=m},280:function(e,t,n){"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},281:function(e,t,n){"use strict";var r=n(265),i=n(266),a=n(282),s=n(307),c=n(250),u=n(308),o=n(283),f=n(309);function h(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function l(e,t,n){t&&t[n]&&(e.stats=t[n])}function m(e,t){var n=t[0];this._rawResults=t;var a=this;Object.keys(n).forEach((function(e){a[e]=n[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var o=e.getRefinedDisjunctiveFacets(),m=h(e.facets),d=h(e.disjunctiveFacets),v=1,p=n.facets||{};Object.keys(p).forEach((function(t){var r,i,s=p[t],o=(r=e.hierarchicalFacets,i=t,c(r,(function(e){return(e.attributes||[]).indexOf(i)>-1})));if(o){var f=o.attributes.indexOf(t),h=u(e.hierarchicalFacets,(function(e){return e.name===o.name}));a.hierarchicalFacets[h][f]={attribute:t,data:s,exhaustive:n.exhaustiveFacetsCount}}else{var v,g=-1!==e.disjunctiveFacets.indexOf(t),y=-1!==e.facets.indexOf(t);g&&(v=d[t],a.disjunctiveFacets[v]={name:t,data:s,exhaustive:n.exhaustiveFacetsCount},l(a.disjunctiveFacets[v],n.facets_stats,t)),y&&(v=m[t],a.facets[v]={name:t,data:s,exhaustive:n.exhaustiveFacetsCount},l(a.facets[v],n.facets_stats,t))}})),this.hierarchicalFacets=s(this.hierarchicalFacets),o.forEach((function(s){var c=t[v],o=c&&c.facets?c.facets:{},f=e.getHierarchicalFacetByName(s);Object.keys(o).forEach((function(t){var s,h=o[t];if(f){s=u(e.hierarchicalFacets,(function(e){return e.name===f.name}));var m=u(a.hierarchicalFacets[s],(function(e){return e.attribute===t}));if(-1===m)return;a.hierarchicalFacets[s][m].data=r({},a.hierarchicalFacets[s][m].data,h)}else{s=d[t];var v=n.facets&&n.facets[t]||{};a.disjunctiveFacets[s]={name:t,data:i({},h,v),exhaustive:c.exhaustiveFacetsCount},l(a.disjunctiveFacets[s],c.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!a.disjunctiveFacets[s].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(n)>-1&&(a.disjunctiveFacets[s].data[n]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(n){var r=e.getHierarchicalFacetByName(n),s=e._getHierarchicalFacetSeparator(r),c=e.getHierarchicalRefinement(n);if(!(0===c.length||c[0].split(s).length<2)){var o=t[v],f=o&&o.facets?o.facets:{};Object.keys(f).forEach((function(t){var n=f[t],o=u(e.hierarchicalFacets,(function(e){return e.name===r.name})),h=u(a.hierarchicalFacets[o],(function(e){return e.attribute===t}));if(-1!==h){var l={};if(c.length>0){var m=c[0].split(s)[0];l[m]=a.hierarchicalFacets[o][h].data[m]}a.hierarchicalFacets[o][h].data=i(l,n,a.hierarchicalFacets[o][h].data)}})),v++}})),Object.keys(e.facetsExcludes).forEach((function(t){var r=e.facetsExcludes[t],i=m[t];a.facets[i]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},r.forEach((function(e){a.facets[i]=a.facets[i]||{name:t},a.facets[i].data=a.facets[i].data||{},a.facets[i].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=s(this.facets),this.disjunctiveFacets=s(this.disjunctiveFacets),this._state=e}function d(e,t){if(!t.data||0===t.data.length)return t;var n=t.data.map((function(t){return d(e,t)})),i=e(n);return r({},t,{data:i})}function v(e,t){var n=c(e,(function(e){return e.name===t}));return n&&n.stats}function p(e,t,n,r,i){var a=c(i,(function(e){return e.name===n})),s=a&&a.data&&a.data[r]?a.data[r]:0,u=a&&a.exhaustive||!1;return{type:t,attributeName:n,name:r,count:s,exhaustive:u}}m.prototype.getFacetByName=function(e){function t(t){return t.name===e}return c(this.facets,t)||c(this.disjunctiveFacets,t)||c(this.hierarchicalFacets,t)},m.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],m.prototype.getFacetValues=function(e,t){var n=function(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=c(e.facets,n);return r?Object.keys(r.data).map((function(n){return{name:n,count:r.data[n],isRefined:e._state.isFacetRefined(t,n),isExcluded:e._state.isExcludeRefined(t,n)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=c(e.disjunctiveFacets,n);return i?Object.keys(i.data).map((function(n){return{name:n,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t))return c(e.hierarchicalFacets,n)}(this,e);if(n){var r=i({},t,{sortBy:m.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var s=o(r.sortBy,m.DEFAULT_SORT);return Array.isArray(n)?a(n,s[0],s[1]):d((function(e){return a(e,s[0],s[1])}),n)}if("function"==typeof r.sortBy)return Array.isArray(n)?n.sort(r.sortBy):d((function(e){return function(e,t){return t.sort(e)}(r.sortBy,e)}),n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}},m.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},m.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach((function(r){e.facetsRefinements[r].forEach((function(i){n.push(p(e,"facet",r,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(r){e.facetsExcludes[r].forEach((function(i){n.push(p(e,"exclude",r,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(r){e.disjunctiveFacetsRefinements[r].forEach((function(i){n.push(p(e,"disjunctive",r,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(r){e.hierarchicalFacetsRefinements[r].forEach((function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),s=n.split(a),u=c(r,(function(e){return e.name===t})),o=s.reduce((function(e,t){var n=e&&c(e.data,(function(e){return e.name===t}));return void 0!==n?n:e}),u),f=o&&o.count||0,h=o&&o.exhaustive||!1,l=o&&o.path||"";return{type:"hierarchical",attributeName:t,name:l,count:f,exhaustive:h}}(e,r,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t];Object.keys(r).forEach((function(e){r[e].forEach((function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})}))}))})),e.tagRefinements.forEach((function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=m},282:function(e,t,n){"use strict";function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||r&&i||!n)return 1;if(!r&&e=n.length?a:"desc"===n[i]?-a:a}return e.index-t.index})),i.map((function(e){return e.value}))}},283:function(e,t,n){"use strict";var r=n(250);e.exports=function(e,t){var n=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),a=r(n,(function(e){return e[0]===i[0]}));return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(a[0]),e[1].push(a[1]),e)}),[[],[]])}},284:function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==a&&e.removeListener("error",a),n([].slice.call(arguments))}var a;"error"!==t&&(a=function(n){e.removeListener(t,i),r(n)},e.once("error",a)),e.once(t,i)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var i,a,s,c;if(o(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=f(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)a(u,this,t);else{var o=u.length,f=p(u,o);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return d(this,e,!0)},c.prototype.rawListeners=function(e){return d(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},285:function(e,t,n){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},286:function(e,t,n){"use strict";e.exports="3.3.4"},301:function(e,t,n){"use strict";var r=n(302),i=n(279),a=n(281);function s(e,t,n){return new r(e,t,n)}s.version=n(286),s.AlgoliaSearchHelper=r,s.SearchParameters=i,s.SearchResults=a,e.exports=s},302:function(e,t,n){"use strict";var r=n(279),i=n(281),a=n(310),s=n(311),c=n(284),u=n(285),o=n(267),f=n(286);function h(e,t,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.setClient(e);var i=n||{};i.index=t,this.state=r.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function l(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function m(){return this.state.page}u(h,c.EventEmitter),h.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},h.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},h.prototype.getQuery=function(){var e=this.state;return s._getHitsSearchParams(e)},h.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=s._getQueries(n.index,n),a=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(r).then((function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),{content:new i(n,e.results),state:n,_originalResponse:e}}),(function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(null,new i(n,e.results),n)})).catch((function(e){a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),t(e,null,n)}))},h.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var a=this.state.setQueryParameters(r||{}),c=a.isDisjunctiveFacet(e),u=s.getSearchForFacetQuery(e,t,n,a);this._currentNbQueries++;var o=this;return this.emit("searchForFacetValues",{state:a,facet:e,query:t}),(i?this.client.searchForFacetValues([{indexName:a.index,params:u}]):this.client.initIndex(a.index).searchForFacetValues(u)).then((function(t){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.isRefined=c?a.isDisjunctiveFacetRefined(e,t.value):a.isFacetRefined(e,t.value)})),t}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}))},h.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},h.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},h.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},h.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},h.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},h.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},h.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},h.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},h.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},h.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},h.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},h.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},h.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},h.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},h.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},h.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},h.prototype.setCurrentPage=l,h.prototype.setPage=l,h.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},h.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},h.prototype.setState=function(e){return this._change({state:r.make(e),isPageReset:!1}),this},h.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new r(e),this},h.prototype.hasRefinements=function(e){return!!o(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},h.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},h.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},h.prototype.hasTag=function(e){return this.state.isTagRefined(e)},h.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},h.prototype.getIndex=function(){return this.state.index},h.prototype.getCurrentPage=m,h.prototype.getPage=m,h.prototype.getTags=function(){return this.state.tagRefinements},h.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach((function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})})),t},h.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},h.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},h.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=s._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var r=e.getModifiedState(t),i=s._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i})),a=Array.prototype.concat.apply(r,i),c=this._queryId++;this._currentNbQueries++;try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,n,c)).catch(this._dispatchAlgoliaError.bind(this,c))}catch(u){this.emit("error",{error:u})}},h.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t0},h.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},h.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},h.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.client=e),this},h.prototype.getClient=function(){return this.client},h.prototype.derive=function(e){var t=new a(this,e);return this.derivedHelpers.push(t),t},h.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},h.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=h},303:function(e,t,n){"use strict";e.exports=function(e,t){return e.filter((function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r}))}},304:function(e,t,n){"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},305:function(e,t,n){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},306:function(e,t,n){"use strict";var r=n(266),i=n(280),a=n(267),s={addRefinement:function(e,t,n){if(s.isRefined(e,t,n))return e;var i=""+n,a=e[t]?e[t].concat(i):[i],c={};return c[t]=a,r({},c,e)},removeRefinement:function(e,t,n){if(void 0===n)return s.clearRefinement(e,(function(e,n){return t===n}));var r=""+n;return s.clearRefinement(e,(function(e,n){return t===n&&r===e}))},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return s.isRefined(e,t,n)?s.removeRefinement(e,t,n):s.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return a(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var r=!1,s=Object.keys(e).reduce((function(i,a){var s=e[a]||[],c=s.filter((function(e){return!t(e,a,n)}));return c.length!==s.length&&(r=!0),i[a]=c,i}),{});return r?s:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=s},307:function(e,t,n){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},308:function(e,t,n){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n0){var h=0;for(f=c;h0&&s[0].split(c).length>1&&n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r,!0)})})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)),n=i._getFacetFilters(e),a=i._getNumericFilters(e),s={facets:t,tagFilters:i._getTagFilters(e)};return n.length>0&&(s.facetFilters=n),a.length>0&&(s.numericFilters=a),r({},e.getQueryParams(),s)},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=i._getFacetFilters(e,t,n),s=i._getNumericFilters(e,t),c={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:i._getTagFilters(e),analytics:!1,clickAnalytics:!1},u=e.getHierarchicalFacetByName(t);return c.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,n):t,s.length>0&&(c.numericFilters=s),a.length>0&&(c.facetFilters=a),r({},e.getQueryParams(),c)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach((function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach((function(e){var a=i[e]||[];t!==r&&a.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return r+e+t}));n.push(i)}else n.push(r+e+t)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).forEach((function(e){(i[e]||[]).forEach((function(t){r.push(e+":"+t)}))}));var a=e.facetsExcludes||{};Object.keys(a).forEach((function(e){(a[e]||[]).forEach((function(t){r.push(e+":-"+t)}))}));var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach((function(e){var n=s[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.forEach((function(t){i.push(e+":"+t)})),r.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).forEach((function(i){var a=(c[i]||[])[0];if(void 0!==a){var s,u,o=e.getHierarchicalFacetByName(i),f=e._getHierarchicalFacetSeparator(o),h=e._getHierarchicalRootPath(o);if(t===i){if(-1===a.indexOf(f)||!h&&!0===n||h&&h.split(f).length===a.split(f).length)return;h?(u=h.split(f).length-1,a=h):(u=a.split(f).length-2,a=a.slice(0,a.lastIndexOf(f))),s=o.attributes[u]}else u=a.split(f).length-1,s=o.attributes[u];s&&r.push([s+":"+a])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),a=r.split(i).length,s=n.attributes.slice(0,a+1);return t.concat(s)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(r).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,n,a){var s=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,c={facetQuery:t,facetName:e};return"number"==typeof n&&(c.maxFacetHits=n),r({},i._getHitsSearchParams(s),c)}};e.exports=i},312:function(e,t,n){e.exports=function(){"use strict";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}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 n(n){for(var r=1;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=a()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],a=t[1];return Promise.all([r,a||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=a();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function c(e){var t=a(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 i(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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return c({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return c({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return c({caches:t}).clear()}))}}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=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 s=r(),c=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return c(e)})).then((function(){return s}))},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 o(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 f(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var d={Read:1,Write:2,Any:3},v=1,p=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function R(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var F="GET",b="POST";function j(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===v||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(a(n),a(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return R(e)})):t}}))}function P(e,t,r,i){var s=[],c=function(e,t){if(e.method!==F&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),u=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),o=r.method,f=r.method!==F?{}:n(n({},r.data),i.data),h=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),f),i.queryParameters),l=0,m=function t(n,a){var f=n.pop();if(void 0===f)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:_(s)};var m={data:c,headers:u,method:o,url:O(f,r.path,h),connectTimeout:a(l,e.timeouts.connect),responseTimeout:a(l,i.timeout)},d=function(e){var t={request:m,response:e,host:f,triesLeft:n.length};return s.push(t),t},v={onSucess: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(r){var i=d(r);return r.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",w(i)),e.hostsCache.set(f,y(f,r.isTimedOut?g:p))]).then((function(){return t(n,a)}))},onFail:function(e){throw d(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,_(s))}};return e.requester.send(m).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.onSucess(e):t.onFail(e)}(e,v)}))};return j(e.hostsCache,t).then((function(e){return m(a(e.statelessHosts).reverse(),e.getTimeout)}))}function E(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 O(e,t,n){var r=x(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function x(e){return Object.keys(e).map((function(t){return h("%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 _(e){return e.map((function(e){return w(e)}))}function w(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var N=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?r:{}},queryParameters:function(){return e===l.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,a=e.requestsCache,s=e.responsesCache,c=e.timeouts,u=e.userAgent,o=e.hosts,f=e.queryParameters,h={hostsCache:t,logger:n,requester:r,requestsCache:a,responsesCache:s,timeouts:c,userAgent:u,headers:e.headers,queryParameters:f,hosts:o.map((function(e){return R(e)})),read:function(e,t){var n=m(t,h.timeouts.read),r=function(){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var a={request:e,mappedRequestOptions:n,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(a,(function(){return h.requestsCache.get(a,(function(){return h.requestsCache.set(a,r()).then((function(e){return Promise.all([h.requestsCache.delete(a),e])}),(function(e){return Promise.all([h.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return h.responsesCache.set(a,e)}})},write:function(e,t){return P(h,h.hosts.filter((function(e){return 0!=(e.accept&d.Write)})),e,m(t,h.timeouts.write))}};return h}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(o([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return f({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},H=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},A=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:x(e.params||{})})}));return e.transporter.read({method:b,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},S=function(e){return function(t,i){return Promise.all(t.map((function(t){var a=t.params,s=a.facetName,c=a.facetQuery,u=r(a,["facetName","facetQuery"]);return H(e)(t.indexName,{methods:{searchForFacetValues:C}}).searchForFacetValues(s,c,n(n({},i),u))})))}},Q=function(e){return function(t,n,r){return e.transporter.read({method:b,path:h("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},T=function(e){return function(t,n){return e.transporter.read({method:b,path:h("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},C=function(e){return function(t,n,r){return e.transporter.read({method:b,path:h("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},D=1,k=2,I=3;function q(e,t,r){var i,a={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,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},a=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(a),r=i(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:(i=I,{debug:function(e,t){return D>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return k>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:c({caches:[s({key:"".concat("4.8.4","-").concat(e)}),u()]}),userAgent:E("4.8.4").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return N(n(n(n({},a),r),{},{methods:{search:A,searchForFacetValues:S,multipleQueries:A,multipleSearchForFacetValues:S,initIndex:function(e){return function(t){return H(e)(t,{methods:{search:T,searchForFacetValues:C,findAnswers:Q}})}}}}))}return q.version="4.8.4",q}()},81:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(312),s=n.n(a),c=n(301),u=n.n(c),o=n(95),f=n(24),h=n(102),l=n(11),m=n(96),d=n(22),v=n(99),p=n(271),g=n(106),y=n(82),R=n.n(y);var F=function(e){var t=e.docsSearchVersionsHelpers,n=Object.entries(t.allDocsData).filter((function(e){return e[1].versions.length>1}));return i.a.createElement("div",{className:Object(o.a)("col","col--3","padding-left--none",R.a.searchVersionColumn)},n.map((function(e){var r=e[0],a=e[1],s=n.length>1?r+": ":"";return i.a.createElement("select",{key:r,onChange:function(e){return t.setSearchVersion(r,e.target.value)},defaultValue:t.searchVersions[r],className:R.a.searchVersionInput},a.versions.map((function(e,t){return i.a.createElement("option",{key:t,label:""+s+e.label,value:e.name})})))})))};t.default=function(){var e,t,n,a,c,y=Object(d.default)().siteConfig,b=(y=void 0===y?{}:y).themeConfig.algolia,j=(b=void 0===b?{}:b).appId,P=void 0===j?"BH4D9OD16A":j,E=b.apiKey,O=b.indexName,x=(e=Object(v.useAllDocsData)(),t=Object(r.useState)((function(){return Object.entries(e).reduce((function(e,t){var n,r=t[0],i=t[1];return Object.assign({},e,((n={})[r]=i.versions[0].name,n))}),{})})),n=t[0],a=t[1],c=Object.values(e).some((function(e){return e.versions.length>1})),{allDocsData:e,versioningEnabled:c,searchVersions:n,setSearchVersion:function(e,t){return a((function(n){var r;return Object.assign({},n,((r={})[e]=t,r))}))}}),_=Object(p.a)(),w=_.searchValue,N=_.updateSearchPath,H=Object(r.useState)(w),A=H[0],S=H[1],Q={items:[],query:null,totalResults:null,totalPages:null,lastPage:null,hasMore:null,loading:null},T=Object(r.useReducer)((function(e,t){var n=t.type,r=t.value;switch(n){case"reset":return Q;case"loading":return Object.assign({},e,{loading:!0});case"update":return A!==r.query?e:Object.assign({},r,{items:0===r.lastPage?r.items:e.items.concat(r.items)});case"advance":var i=e.totalPages>e.lastPage+1;return Object.assign({},e,{lastPage:i?e.lastPage+1:e.lastPage,hasMore:i});default:return e}}),Q),C=T[0],D=T[1],k=s()(P,E),I=u()(k,O,{hitsPerPage:15,advancedSyntax:!0,disjunctiveFacets:["docusaurus_tag"]});I.on("result",(function(e){var t=e.results,n=t.query,r=t.hits,i=t.page,a=t.nbHits,s=t.nbPages;if(""!==n&&r instanceof Array){var c=function(e){return e.replace(/algolia-docsearch-suggestion--highlight/g,"search-result-match")},u=r.map((function(e){var t=e.url,n=e._highlightResult.hierarchy,r=e._snippetResult,i=void 0===r?{}:r,a=new URL(t),s=a.pathname,u=a.hash,o=Object.keys(n).map((function(e){return c(n[e].value)}));return{title:o.pop(),url:s+u,summary:i.content?c(i.content.value)+"...":"",breadcrumbs:o}}));D({type:"update",value:{items:u,query:n,totalResults:a,totalPages:s,lastPage:i,hasMore:s>i+1,loading:!1}})}else D({type:"reset"})}));var q,L,V=Object(r.useState)(null),B=V[0],M=V[1],z=Object(r.useRef)(0),J=Object(r.useRef)(l.a.canUseDOM&&new IntersectionObserver((function(e){var t=e[0],n=t.isIntersecting,r=t.boundingClientRect.y;n&&z.current>r&&D({type:"advance"}),z.current=r}),{threshold:1})),W=function(){return A?'Search results for "'+A+'"':"Search the documentation"},U=function(e){void 0===e&&(e=0),I.addDisjunctiveFacetRefinement("docusaurus_tag","default"),Object.entries(x.searchVersions).forEach((function(e){var t=e[0],n=e[1];I.addDisjunctiveFacetRefinement("docusaurus_tag","docs-"+t+"-"+n)})),I.setQuery(A).setPage(e).search()};return Object(r.useEffect)((function(){if(B)return J.current.observe(B),function(){J.current.unobserve(B)}}),[B]),Object(r.useEffect)((function(){N(A),D({type:"reset"}),A&&(D({type:"loading"}),setTimeout((function(){U()}),300))}),[A,x.searchVersions]),Object(r.useEffect)((function(){C.lastPage&&0!==C.lastPage&&U(C.lastPage)}),[C.lastPage]),Object(r.useEffect)((function(){w&&w!==A&&S(w)}),[w]),i.a.createElement(g.a,{wrapperClassName:"search-page-wrapper"},i.a.createElement(f.a,null,i.a.createElement("title",null,Object(m.useTitleFormatter)(W())),i.a.createElement("meta",{property:"robots",content:"noindex, follow"})),i.a.createElement("div",{className:"container margin-vert--lg"},i.a.createElement("h1",null,W()),i.a.createElement("form",{className:"row",onSubmit:function(e){return e.preventDefault()}},i.a.createElement("div",{className:Object(o.a)("col",R.a.searchQueryColumn,{"col--9":x.versioningEnabled,"col--12":!x.versioningEnabled})},i.a.createElement("input",{type:"search",name:"q",className:R.a.searchQueryInput,placeholder:"Type your search here","aria-label":"Search",onChange:function(e){return S(e.target.value)},value:A,autoComplete:"off",autoFocus:!0})),x.versioningEnabled&&i.a.createElement(F,{docsSearchVersionsHelpers:x})),i.a.createElement("div",{className:Object(o.a)("row","margin-vert--sm")},i.a.createElement("div",{className:Object(o.a)("col","col--8",R.a.searchResultsColumn)},!!C.totalResults&&i.a.createElement("strong",null,C.totalResults," ",(q=C.totalResults,L="document",q>1?L+"s":L)," found")),i.a.createElement("div",{className:Object(o.a)("col","col--4",R.a.searchLogoColumn)},i.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/","aria-label":"Search"},i.a.createElement("svg",{viewBox:"0 0 168 24",className:R.a.algoliaLogo,xmlns:"http://www.w3.org/2000/svg","aria-label":"Search by Algolia"},i.a.createElement("g",{fill:"none"},i.a.createElement("path",{className:R.a.algoliaLogoPathFill,d:"M120.925 18.804c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199 5.7 5.7 0 0 0-.897.069 2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 0 1-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 0 1 1.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 0 1 .233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 0 0-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 0 1 1.753 1.216 5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17zM6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 0 0-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 0 1-.582-.271 13.67 13.67 0 0 1-.55-.287 4.275 4.275 0 0 1-.567-.351 6.92 6.92 0 0 1-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 0 1-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 0 0-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 0 0-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 0 0-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 0 1-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z"}),i.a.createElement("path",{fill:"#5468FF",d:"M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938z"}),i.a.createElement("path",{fill:"white",d:"M89.632 5.967v-.772a.978.978 0 0 0-.978-.977h-2.28a.978.978 0 0 0-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 0 1 1.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 0 0-1.382 0l-.465.465a.973.973 0 0 0 0 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 0 0-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 0 1-4.49-4.482 4.488 4.488 0 0 1 4.49-4.482 4.488 4.488 0 0 1 4.489 4.482 4.484 4.484 0 0 1-4.49 4.482m0-10.85a6.363 6.363 0 1 0 0 12.729 6.37 6.37 0 0 0 6.372-6.368 6.358 6.358 0 0 0-6.371-6.36"})))))),C.items.length>0?i.a.createElement("section",null,C.items.map((function(e,t){var n=e.title,r=e.url,a=e.summary,s=e.breadcrumbs;return i.a.createElement("article",{key:t,className:R.a.searchResultItem},i.a.createElement(h.a,{to:r,className:R.a.searchResultItemHeading,dangerouslySetInnerHTML:{__html:n}}),s.length>0&&i.a.createElement("span",{className:R.a.searchResultItemPath},s.map((function(e,t){return i.a.createElement(i.a.Fragment,null,0!==t&&i.a.createElement("span",{className:R.a.searchResultItemPathSeparator},"\u203a"),i.a.createElement("span",{dangerouslySetInnerHTML:{__html:e}}))}))),a&&i.a.createElement("p",{className:R.a.searchResultItemSummary,dangerouslySetInnerHTML:{__html:a}}))}))):[A&&!C.loading&&i.a.createElement("p",{key:"no-results"},"No results were found"),!!C.loading&&i.a.createElement("div",{key:"spinner",className:R.a.loadingSpinner})],C.hasMore&&i.a.createElement("div",{className:R.a.loader,ref:M},i.a.createElement("span",null,"Fetching new results..."))))}}}]); \ No newline at end of file diff --git a/22.49e8f943.js.LICENSE.txt b/22.740f3d56.js.LICENSE.txt similarity index 100% rename from 22.49e8f943.js.LICENSE.txt rename to 22.740f3d56.js.LICENSE.txt diff --git a/404.html b/404.html index eb5ca07..4fb4d82 100644 --- a/404.html +++ b/404.html @@ -8,14 +8,14 @@ Page Not Found | tidy.js - +

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/801f3f5d.05562c4b.js b/801f3f5d.52597a01.js similarity index 67% rename from 801f3f5d.05562c4b.js rename to 801f3f5d.52597a01.js index f219274..c0b4817 100644 --- a/801f3f5d.05562c4b.js +++ b/801f3f5d.52597a01.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{251:function(e,t,n){"use strict";var r=n(0),i=n(98),a=n(95),o=n(319),l=function(e){var t=e.page,n=e.onChange,i=e.pageSize,o=e.numItems,l=Math.ceil(o/i),u=t>0,c=t8;if(!t||!t.length)return null;for(var d,p={},f=Object(i.a)(t);!(d=f()).done;){var h=d.value;for(var g in h)p[g]||(p[g]={Header:g,accessor:g,type:typeof h[g]})}var v=Object.values(p),S=t.slice(8*u,8*u+8);return r.createElement("div",null,r.createElement("table",{className:n},r.createElement("thead",null,r.createElement("tr",null,v.map((function(e){return r.createElement("th",{key:e.accessor,className:"data-type-"+e.type},e.Header)})))),r.createElement("tbody",null,S.map((function(e,t){return r.createElement("tr",{key:t},v.map((function(t){return r.createElement("td",{key:t.accessor,className:"data-type-"+t.type},function(e){return"object"==typeof e?JSON.stringify(e):"number"!=typeof e?e:e<1&&e>0?Object(o.a)(".3r")(e):Object(o.a)(".3s")(e)}(e[t.accessor]))})))})))),s?r.createElement(l,{page:u,onChange:c,numItems:t.length,pageSize:8}):null)},c=n(107),s=n(264),d=n.n(s);t.a=function(e){var t=e.data,n=e.header,i=e.initial,o=void 0===i?"table":i,l=e.jsonClassName,s=void 0===l?void 0:l,p=e.className,f=e.renderType,h=void 0===f?o:f,g=e.onChangeRenderType,v=r.useState(o),S=v[0],m=v[1],b=null==g?m:g,y=null==g?S:h;return r.createElement("div",{className:p},r.createElement("div",{className:"flex mb-2 items-center justify-between"},r.createElement("h4",{className:"mb-0"},n),r.createElement("div",{className:"button-group"},r.createElement("button",{className:Object(a.a)("button button--secondary",{"button--outline":"json"!==y}),onClick:function(){return b("json")}},"JSON"),r.createElement("button",{className:Object(a.a)("button button--secondary",{"button--outline":"table"!==y}),onClick:function(){return b("table")}},"Table"))),null==t?r.createElement("div",null,"Warning: The ",r.createElement("code",null,"output")," variable was"," ",null===t?"null":"undefined",". Make sure you set it to the result of your tidy flow."):"json"===y?r.createElement("div",{className:Object(a.a)(s,"limited-code-block")},r.createElement(c.a,{className:"language-json"},t.slice?d()(t.slice(0,100),{maxLength:80}):d()(t,{maxLength:80}).slice(0,3e3))):r.createElement(u,{data:t,className:"code-table"}))}},277:function(e,t,n){var r={"./af":115,"./af.js":115,"./ar":116,"./ar-dz":117,"./ar-dz.js":117,"./ar-kw":118,"./ar-kw.js":118,"./ar-ly":119,"./ar-ly.js":119,"./ar-ma":120,"./ar-ma.js":120,"./ar-sa":121,"./ar-sa.js":121,"./ar-tn":122,"./ar-tn.js":122,"./ar.js":116,"./az":123,"./az.js":123,"./be":124,"./be.js":124,"./bg":125,"./bg.js":125,"./bm":126,"./bm.js":126,"./bn":127,"./bn-bd":128,"./bn-bd.js":128,"./bn.js":127,"./bo":129,"./bo.js":129,"./br":130,"./br.js":130,"./bs":131,"./bs.js":131,"./ca":132,"./ca.js":132,"./cs":133,"./cs.js":133,"./cv":134,"./cv.js":134,"./cy":135,"./cy.js":135,"./da":136,"./da.js":136,"./de":137,"./de-at":138,"./de-at.js":138,"./de-ch":139,"./de-ch.js":139,"./de.js":137,"./dv":140,"./dv.js":140,"./el":141,"./el.js":141,"./en-au":142,"./en-au.js":142,"./en-ca":143,"./en-ca.js":143,"./en-gb":144,"./en-gb.js":144,"./en-ie":145,"./en-ie.js":145,"./en-il":146,"./en-il.js":146,"./en-in":147,"./en-in.js":147,"./en-nz":148,"./en-nz.js":148,"./en-sg":149,"./en-sg.js":149,"./eo":150,"./eo.js":150,"./es":151,"./es-do":152,"./es-do.js":152,"./es-mx":153,"./es-mx.js":153,"./es-us":154,"./es-us.js":154,"./es.js":151,"./et":155,"./et.js":155,"./eu":156,"./eu.js":156,"./fa":157,"./fa.js":157,"./fi":158,"./fi.js":158,"./fil":159,"./fil.js":159,"./fo":160,"./fo.js":160,"./fr":161,"./fr-ca":162,"./fr-ca.js":162,"./fr-ch":163,"./fr-ch.js":163,"./fr.js":161,"./fy":164,"./fy.js":164,"./ga":165,"./ga.js":165,"./gd":166,"./gd.js":166,"./gl":167,"./gl.js":167,"./gom-deva":168,"./gom-deva.js":168,"./gom-latn":169,"./gom-latn.js":169,"./gu":170,"./gu.js":170,"./he":171,"./he.js":171,"./hi":172,"./hi.js":172,"./hr":173,"./hr.js":173,"./hu":174,"./hu.js":174,"./hy-am":175,"./hy-am.js":175,"./id":176,"./id.js":176,"./is":177,"./is.js":177,"./it":178,"./it-ch":179,"./it-ch.js":179,"./it.js":178,"./ja":180,"./ja.js":180,"./jv":181,"./jv.js":181,"./ka":182,"./ka.js":182,"./kk":183,"./kk.js":183,"./km":184,"./km.js":184,"./kn":185,"./kn.js":185,"./ko":186,"./ko.js":186,"./ku":187,"./ku.js":187,"./ky":188,"./ky.js":188,"./lb":189,"./lb.js":189,"./lo":190,"./lo.js":190,"./lt":191,"./lt.js":191,"./lv":192,"./lv.js":192,"./me":193,"./me.js":193,"./mi":194,"./mi.js":194,"./mk":195,"./mk.js":195,"./ml":196,"./ml.js":196,"./mn":197,"./mn.js":197,"./mr":198,"./mr.js":198,"./ms":199,"./ms-my":200,"./ms-my.js":200,"./ms.js":199,"./mt":201,"./mt.js":201,"./my":202,"./my.js":202,"./nb":203,"./nb.js":203,"./ne":204,"./ne.js":204,"./nl":205,"./nl-be":206,"./nl-be.js":206,"./nl.js":205,"./nn":207,"./nn.js":207,"./oc-lnc":208,"./oc-lnc.js":208,"./pa-in":209,"./pa-in.js":209,"./pl":210,"./pl.js":210,"./pt":211,"./pt-br":212,"./pt-br.js":212,"./pt.js":211,"./ro":213,"./ro.js":213,"./ru":214,"./ru.js":214,"./sd":215,"./sd.js":215,"./se":216,"./se.js":216,"./si":217,"./si.js":217,"./sk":218,"./sk.js":218,"./sl":219,"./sl.js":219,"./sq":220,"./sq.js":220,"./sr":221,"./sr-cyrl":222,"./sr-cyrl.js":222,"./sr.js":221,"./ss":223,"./ss.js":223,"./sv":224,"./sv.js":224,"./sw":225,"./sw.js":225,"./ta":226,"./ta.js":226,"./te":227,"./te.js":227,"./tet":228,"./tet.js":228,"./tg":229,"./tg.js":229,"./th":230,"./th.js":230,"./tk":231,"./tk.js":231,"./tl-ph":232,"./tl-ph.js":232,"./tlh":233,"./tlh.js":233,"./tr":234,"./tr.js":234,"./tzl":235,"./tzl.js":235,"./tzm":236,"./tzm-latn":237,"./tzm-latn.js":237,"./tzm.js":236,"./ug-cn":238,"./ug-cn.js":238,"./uk":239,"./uk.js":239,"./ur":240,"./ur.js":240,"./uz":241,"./uz-latn":242,"./uz-latn.js":242,"./uz.js":241,"./vi":243,"./vi.js":243,"./x-pseudo":244,"./x-pseudo.js":244,"./yo":245,"./yo.js":245,"./zh-cn":246,"./zh-cn.js":246,"./zh-hk":247,"./zh-hk.js":247,"./zh-mo":248,"./zh-mo.js":248,"./zh-tw":249,"./zh-tw.js":249};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=277},278:function(e){e.exports=JSON.parse('[{"name":"Mazda RX4","mpg":21,"cyl":6,"disp":160,"hp":110,"drat":3.9,"wt":2.62,"qsec":16.46,"vs":0,"am":1,"gear":4,"carb":4},{"name":"Mazda RX4 Wag","mpg":21,"cyl":6,"disp":160,"hp":110,"drat":3.9,"wt":2.875,"qsec":17.02,"vs":0,"am":1,"gear":4,"carb":4},{"name":"Datsun 710","mpg":22.8,"cyl":4,"disp":108,"hp":93,"drat":3.85,"wt":2.32,"qsec":18.61,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Hornet 4 Drive","mpg":21.4,"cyl":6,"disp":258,"hp":110,"drat":3.08,"wt":3.215,"qsec":19.44,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Hornet Sportabout","mpg":18.7,"cyl":8,"disp":360,"hp":175,"drat":3.15,"wt":3.44,"qsec":17.02,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Valiant","mpg":18.1,"cyl":6,"disp":225,"hp":105,"drat":2.76,"wt":3.46,"qsec":20.22,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Duster 360","mpg":14.3,"cyl":8,"disp":360,"hp":245,"drat":3.21,"wt":3.57,"qsec":15.84,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Merc 240D","mpg":24.4,"cyl":4,"disp":146.7,"hp":62,"drat":3.69,"wt":3.19,"qsec":20,"vs":1,"am":0,"gear":4,"carb":2},{"name":"Merc 230","mpg":22.8,"cyl":4,"disp":140.8,"hp":95,"drat":3.92,"wt":3.15,"qsec":22.9,"vs":1,"am":0,"gear":4,"carb":2},{"name":"Merc 280","mpg":19.2,"cyl":6,"disp":167.6,"hp":123,"drat":3.92,"wt":3.44,"qsec":18.3,"vs":1,"am":0,"gear":4,"carb":4},{"name":"Merc 280C","mpg":17.8,"cyl":6,"disp":167.6,"hp":123,"drat":3.92,"wt":3.44,"qsec":18.9,"vs":1,"am":0,"gear":4,"carb":4},{"name":"Merc 450SE","mpg":16.4,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":4.07,"qsec":17.4,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Merc 450SL","mpg":17.3,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":3.73,"qsec":17.6,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Merc 450SLC","mpg":15.2,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":3.78,"qsec":18,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Cadillac Fleetwood","mpg":10.4,"cyl":8,"disp":472,"hp":205,"drat":2.93,"wt":5.25,"qsec":17.98,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Lincoln Continental","mpg":10.4,"cyl":8,"disp":460,"hp":215,"drat":3,"wt":5.424,"qsec":17.82,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Chrysler Imperial","mpg":14.7,"cyl":8,"disp":440,"hp":230,"drat":3.23,"wt":5.345,"qsec":17.42,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Fiat 128","mpg":32.4,"cyl":4,"disp":78.7,"hp":66,"drat":4.08,"wt":2.2,"qsec":19.47,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Honda Civic","mpg":30.4,"cyl":4,"disp":75.7,"hp":52,"drat":4.93,"wt":1.615,"qsec":18.52,"vs":1,"am":1,"gear":4,"carb":2},{"name":"Toyota Corolla","mpg":33.9,"cyl":4,"disp":71.1,"hp":65,"drat":4.22,"wt":1.835,"qsec":19.9,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Toyota Corona","mpg":21.5,"cyl":4,"disp":120.1,"hp":97,"drat":3.7,"wt":2.465,"qsec":20.01,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Dodge Challenger","mpg":15.5,"cyl":8,"disp":318,"hp":150,"drat":2.76,"wt":3.52,"qsec":16.87,"vs":0,"am":0,"gear":3,"carb":2},{"name":"AMC Javelin","mpg":15.2,"cyl":8,"disp":304,"hp":150,"drat":3.15,"wt":3.435,"qsec":17.3,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Camaro Z28","mpg":13.3,"cyl":8,"disp":350,"hp":245,"drat":3.73,"wt":3.84,"qsec":15.41,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Pontiac Firebird","mpg":19.2,"cyl":8,"disp":400,"hp":175,"drat":3.08,"wt":3.845,"qsec":17.05,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Fiat X1-9","mpg":27.3,"cyl":4,"disp":79,"hp":66,"drat":4.08,"wt":1.935,"qsec":18.9,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Porsche 914-2","mpg":26,"cyl":4,"disp":120.3,"hp":91,"drat":4.43,"wt":2.14,"qsec":16.7,"vs":0,"am":1,"gear":5,"carb":2},{"name":"Lotus Europa","mpg":30.4,"cyl":4,"disp":95.1,"hp":113,"drat":3.77,"wt":1.513,"qsec":16.9,"vs":1,"am":1,"gear":5,"carb":2},{"name":"Ford Pantera L","mpg":15.8,"cyl":8,"disp":351,"hp":264,"drat":4.22,"wt":3.17,"qsec":14.5,"vs":0,"am":1,"gear":5,"carb":4},{"name":"Ferrari Dino","mpg":19.7,"cyl":6,"disp":145,"hp":175,"drat":3.62,"wt":2.77,"qsec":15.5,"vs":0,"am":1,"gear":5,"carb":6},{"name":"Maserati Bora","mpg":15,"cyl":8,"disp":301,"hp":335,"drat":3.54,"wt":3.57,"qsec":14.6,"vs":0,"am":1,"gear":5,"carb":8},{"name":"Volvo 142E","mpg":21.4,"cyl":4,"disp":121,"hp":109,"drat":4.11,"wt":2.78,"qsec":18.6,"vs":1,"am":1,"gear":4,"carb":2}]')},298:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),s=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=i.test(e);return l||a.test(e)?o(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,l,u,c=0,s=!1,v=!1,S=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,a=i;return r=i=void 0,c=t,o=e.apply(a,n)}function b(e){return c=e,l=setTimeout(j,t),s?m(e):o}function y(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-c>=a}function j(){var e=f();if(y(e))return P(e);l=setTimeout(j,function(e){var n=t-(e-u);return v?p(n,a-(e-c)):n}(e))}function P(e){return l=void 0,S&&r?m(e):(r=i=void 0,o)}function L(){var e=f(),n=y(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return b(u);if(v)return l=setTimeout(j,t),m(u)}return void 0===l&&(l=setTimeout(j,t)),o}return t=g(t)||0,h(n)&&(s=!!n.leading,a=(v="maxWait"in n)?d(g(n.maxWait)||0,t):a,S="trailing"in n?!!n.trailing:S),L.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=u=i=l=void 0},L.flush=function(){return void 0===l?o:P(f())},L}}).call(this,n(25))},299:function(e){e.exports=JSON.parse('[{"id":1,"Sepal.Length":5.1,"Sepal.Width":3.5,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":2,"Sepal.Length":4.9,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":3,"Sepal.Length":4.7,"Sepal.Width":3.2,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":4,"Sepal.Length":4.6,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":5,"Sepal.Length":5,"Sepal.Width":3.6,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":6,"Sepal.Length":5.4,"Sepal.Width":3.9,"Petal.Length":1.7,"Petal.Width":0.4,"Species":"setosa"},{"id":7,"Sepal.Length":4.6,"Sepal.Width":3.4,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":8,"Sepal.Length":5,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":9,"Sepal.Length":4.4,"Sepal.Width":2.9,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":10,"Sepal.Length":4.9,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.1,"Species":"setosa"},{"id":11,"Sepal.Length":5.4,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":12,"Sepal.Length":4.8,"Sepal.Width":3.4,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":13,"Sepal.Length":4.8,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.1,"Species":"setosa"},{"id":14,"Sepal.Length":4.3,"Sepal.Width":3,"Petal.Length":1.1,"Petal.Width":0.1,"Species":"setosa"},{"id":15,"Sepal.Length":5.8,"Sepal.Width":4,"Petal.Length":1.2,"Petal.Width":0.2,"Species":"setosa"},{"id":16,"Sepal.Length":5.7,"Sepal.Width":4.4,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":17,"Sepal.Length":5.4,"Sepal.Width":3.9,"Petal.Length":1.3,"Petal.Width":0.4,"Species":"setosa"},{"id":18,"Sepal.Length":5.1,"Sepal.Width":3.5,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":19,"Sepal.Length":5.7,"Sepal.Width":3.8,"Petal.Length":1.7,"Petal.Width":0.3,"Species":"setosa"},{"id":20,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.5,"Petal.Width":0.3,"Species":"setosa"},{"id":21,"Sepal.Length":5.4,"Sepal.Width":3.4,"Petal.Length":1.7,"Petal.Width":0.2,"Species":"setosa"},{"id":22,"Sepal.Length":5.1,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":23,"Sepal.Length":4.6,"Sepal.Width":3.6,"Petal.Length":1,"Petal.Width":0.2,"Species":"setosa"},{"id":24,"Sepal.Length":5.1,"Sepal.Width":3.3,"Petal.Length":1.7,"Petal.Width":0.5,"Species":"setosa"},{"id":25,"Sepal.Length":4.8,"Sepal.Width":3.4,"Petal.Length":1.9,"Petal.Width":0.2,"Species":"setosa"},{"id":26,"Sepal.Length":5,"Sepal.Width":3,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":27,"Sepal.Length":5,"Sepal.Width":3.4,"Petal.Length":1.6,"Petal.Width":0.4,"Species":"setosa"},{"id":28,"Sepal.Length":5.2,"Sepal.Width":3.5,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":29,"Sepal.Length":5.2,"Sepal.Width":3.4,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":30,"Sepal.Length":4.7,"Sepal.Width":3.2,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":31,"Sepal.Length":4.8,"Sepal.Width":3.1,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":32,"Sepal.Length":5.4,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":33,"Sepal.Length":5.2,"Sepal.Width":4.1,"Petal.Length":1.5,"Petal.Width":0.1,"Species":"setosa"},{"id":34,"Sepal.Length":5.5,"Sepal.Width":4.2,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":35,"Sepal.Length":4.9,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":36,"Sepal.Length":5,"Sepal.Width":3.2,"Petal.Length":1.2,"Petal.Width":0.2,"Species":"setosa"},{"id":37,"Sepal.Length":5.5,"Sepal.Width":3.5,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":38,"Sepal.Length":4.9,"Sepal.Width":3.6,"Petal.Length":1.4,"Petal.Width":0.1,"Species":"setosa"},{"id":39,"Sepal.Length":4.4,"Sepal.Width":3,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":40,"Sepal.Length":5.1,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":41,"Sepal.Length":5,"Sepal.Width":3.5,"Petal.Length":1.3,"Petal.Width":0.3,"Species":"setosa"},{"id":42,"Sepal.Length":4.5,"Sepal.Width":2.3,"Petal.Length":1.3,"Petal.Width":0.3,"Species":"setosa"},{"id":43,"Sepal.Length":4.4,"Sepal.Width":3.2,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":44,"Sepal.Length":5,"Sepal.Width":3.5,"Petal.Length":1.6,"Petal.Width":0.6,"Species":"setosa"},{"id":45,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.9,"Petal.Width":0.4,"Species":"setosa"},{"id":46,"Sepal.Length":4.8,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":47,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":48,"Sepal.Length":4.6,"Sepal.Width":3.2,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":49,"Sepal.Length":5.3,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":50,"Sepal.Length":5,"Sepal.Width":3.3,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":51,"Sepal.Length":7,"Sepal.Width":3.2,"Petal.Length":4.7,"Petal.Width":1.4,"Species":"versicolor"},{"id":52,"Sepal.Length":6.4,"Sepal.Width":3.2,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":53,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":4.9,"Petal.Width":1.5,"Species":"versicolor"},{"id":54,"Sepal.Length":5.5,"Sepal.Width":2.3,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":55,"Sepal.Length":6.5,"Sepal.Width":2.8,"Petal.Length":4.6,"Petal.Width":1.5,"Species":"versicolor"},{"id":56,"Sepal.Length":5.7,"Sepal.Width":2.8,"Petal.Length":4.5,"Petal.Width":1.3,"Species":"versicolor"},{"id":57,"Sepal.Length":6.3,"Sepal.Width":3.3,"Petal.Length":4.7,"Petal.Width":1.6,"Species":"versicolor"},{"id":58,"Sepal.Length":4.9,"Sepal.Width":2.4,"Petal.Length":3.3,"Petal.Width":1,"Species":"versicolor"},{"id":59,"Sepal.Length":6.6,"Sepal.Width":2.9,"Petal.Length":4.6,"Petal.Width":1.3,"Species":"versicolor"},{"id":60,"Sepal.Length":5.2,"Sepal.Width":2.7,"Petal.Length":3.9,"Petal.Width":1.4,"Species":"versicolor"},{"id":61,"Sepal.Length":5,"Sepal.Width":2,"Petal.Length":3.5,"Petal.Width":1,"Species":"versicolor"},{"id":62,"Sepal.Length":5.9,"Sepal.Width":3,"Petal.Length":4.2,"Petal.Width":1.5,"Species":"versicolor"},{"id":63,"Sepal.Length":6,"Sepal.Width":2.2,"Petal.Length":4,"Petal.Width":1,"Species":"versicolor"},{"id":64,"Sepal.Length":6.1,"Sepal.Width":2.9,"Petal.Length":4.7,"Petal.Width":1.4,"Species":"versicolor"},{"id":65,"Sepal.Length":5.6,"Sepal.Width":2.9,"Petal.Length":3.6,"Petal.Width":1.3,"Species":"versicolor"},{"id":66,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":4.4,"Petal.Width":1.4,"Species":"versicolor"},{"id":67,"Sepal.Length":5.6,"Sepal.Width":3,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":68,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":4.1,"Petal.Width":1,"Species":"versicolor"},{"id":69,"Sepal.Length":6.2,"Sepal.Width":2.2,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":70,"Sepal.Length":5.6,"Sepal.Width":2.5,"Petal.Length":3.9,"Petal.Width":1.1,"Species":"versicolor"},{"id":71,"Sepal.Length":5.9,"Sepal.Width":3.2,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"versicolor"},{"id":72,"Sepal.Length":6.1,"Sepal.Width":2.8,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":73,"Sepal.Length":6.3,"Sepal.Width":2.5,"Petal.Length":4.9,"Petal.Width":1.5,"Species":"versicolor"},{"id":74,"Sepal.Length":6.1,"Sepal.Width":2.8,"Petal.Length":4.7,"Petal.Width":1.2,"Species":"versicolor"},{"id":75,"Sepal.Length":6.4,"Sepal.Width":2.9,"Petal.Length":4.3,"Petal.Width":1.3,"Species":"versicolor"},{"id":76,"Sepal.Length":6.6,"Sepal.Width":3,"Petal.Length":4.4,"Petal.Width":1.4,"Species":"versicolor"},{"id":77,"Sepal.Length":6.8,"Sepal.Width":2.8,"Petal.Length":4.8,"Petal.Width":1.4,"Species":"versicolor"},{"id":78,"Sepal.Length":6.7,"Sepal.Width":3,"Petal.Length":5,"Petal.Width":1.7,"Species":"versicolor"},{"id":79,"Sepal.Length":6,"Sepal.Width":2.9,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":80,"Sepal.Length":5.7,"Sepal.Width":2.6,"Petal.Length":3.5,"Petal.Width":1,"Species":"versicolor"},{"id":81,"Sepal.Length":5.5,"Sepal.Width":2.4,"Petal.Length":3.8,"Petal.Width":1.1,"Species":"versicolor"},{"id":82,"Sepal.Length":5.5,"Sepal.Width":2.4,"Petal.Length":3.7,"Petal.Width":1,"Species":"versicolor"},{"id":83,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":3.9,"Petal.Width":1.2,"Species":"versicolor"},{"id":84,"Sepal.Length":6,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.6,"Species":"versicolor"},{"id":85,"Sepal.Length":5.4,"Sepal.Width":3,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":86,"Sepal.Length":6,"Sepal.Width":3.4,"Petal.Length":4.5,"Petal.Width":1.6,"Species":"versicolor"},{"id":87,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":4.7,"Petal.Width":1.5,"Species":"versicolor"},{"id":88,"Sepal.Length":6.3,"Sepal.Width":2.3,"Petal.Length":4.4,"Petal.Width":1.3,"Species":"versicolor"},{"id":89,"Sepal.Length":5.6,"Sepal.Width":3,"Petal.Length":4.1,"Petal.Width":1.3,"Species":"versicolor"},{"id":90,"Sepal.Length":5.5,"Sepal.Width":2.5,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":91,"Sepal.Length":5.5,"Sepal.Width":2.6,"Petal.Length":4.4,"Petal.Width":1.2,"Species":"versicolor"},{"id":92,"Sepal.Length":6.1,"Sepal.Width":3,"Petal.Length":4.6,"Petal.Width":1.4,"Species":"versicolor"},{"id":93,"Sepal.Length":5.8,"Sepal.Width":2.6,"Petal.Length":4,"Petal.Width":1.2,"Species":"versicolor"},{"id":94,"Sepal.Length":5,"Sepal.Width":2.3,"Petal.Length":3.3,"Petal.Width":1,"Species":"versicolor"},{"id":95,"Sepal.Length":5.6,"Sepal.Width":2.7,"Petal.Length":4.2,"Petal.Width":1.3,"Species":"versicolor"},{"id":96,"Sepal.Length":5.7,"Sepal.Width":3,"Petal.Length":4.2,"Petal.Width":1.2,"Species":"versicolor"},{"id":97,"Sepal.Length":5.7,"Sepal.Width":2.9,"Petal.Length":4.2,"Petal.Width":1.3,"Species":"versicolor"},{"id":98,"Sepal.Length":6.2,"Sepal.Width":2.9,"Petal.Length":4.3,"Petal.Width":1.3,"Species":"versicolor"},{"id":99,"Sepal.Length":5.1,"Sepal.Width":2.5,"Petal.Length":3,"Petal.Width":1.1,"Species":"versicolor"},{"id":100,"Sepal.Length":5.7,"Sepal.Width":2.8,"Petal.Length":4.1,"Petal.Width":1.3,"Species":"versicolor"},{"id":101,"Sepal.Length":6.3,"Sepal.Width":3.3,"Petal.Length":6,"Petal.Width":2.5,"Species":"virginica"},{"id":102,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.9,"Species":"virginica"},{"id":103,"Sepal.Length":7.1,"Sepal.Width":3,"Petal.Length":5.9,"Petal.Width":2.1,"Species":"virginica"},{"id":104,"Sepal.Length":6.3,"Sepal.Width":2.9,"Petal.Length":5.6,"Petal.Width":1.8,"Species":"virginica"},{"id":105,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.8,"Petal.Width":2.2,"Species":"virginica"},{"id":106,"Sepal.Length":7.6,"Sepal.Width":3,"Petal.Length":6.6,"Petal.Width":2.1,"Species":"virginica"},{"id":107,"Sepal.Length":4.9,"Sepal.Width":2.5,"Petal.Length":4.5,"Petal.Width":1.7,"Species":"virginica"},{"id":108,"Sepal.Length":7.3,"Sepal.Width":2.9,"Petal.Length":6.3,"Petal.Width":1.8,"Species":"virginica"},{"id":109,"Sepal.Length":6.7,"Sepal.Width":2.5,"Petal.Length":5.8,"Petal.Width":1.8,"Species":"virginica"},{"id":110,"Sepal.Length":7.2,"Sepal.Width":3.6,"Petal.Length":6.1,"Petal.Width":2.5,"Species":"virginica"},{"id":111,"Sepal.Length":6.5,"Sepal.Width":3.2,"Petal.Length":5.1,"Petal.Width":2,"Species":"virginica"},{"id":112,"Sepal.Length":6.4,"Sepal.Width":2.7,"Petal.Length":5.3,"Petal.Width":1.9,"Species":"virginica"},{"id":113,"Sepal.Length":6.8,"Sepal.Width":3,"Petal.Length":5.5,"Petal.Width":2.1,"Species":"virginica"},{"id":114,"Sepal.Length":5.7,"Sepal.Width":2.5,"Petal.Length":5,"Petal.Width":2,"Species":"virginica"},{"id":115,"Sepal.Length":5.8,"Sepal.Width":2.8,"Petal.Length":5.1,"Petal.Width":2.4,"Species":"virginica"},{"id":116,"Sepal.Length":6.4,"Sepal.Width":3.2,"Petal.Length":5.3,"Petal.Width":2.3,"Species":"virginica"},{"id":117,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.5,"Petal.Width":1.8,"Species":"virginica"},{"id":118,"Sepal.Length":7.7,"Sepal.Width":3.8,"Petal.Length":6.7,"Petal.Width":2.2,"Species":"virginica"},{"id":119,"Sepal.Length":7.7,"Sepal.Width":2.6,"Petal.Length":6.9,"Petal.Width":2.3,"Species":"virginica"},{"id":120,"Sepal.Length":6,"Sepal.Width":2.2,"Petal.Length":5,"Petal.Width":1.5,"Species":"virginica"},{"id":121,"Sepal.Length":6.9,"Sepal.Width":3.2,"Petal.Length":5.7,"Petal.Width":2.3,"Species":"virginica"},{"id":122,"Sepal.Length":5.6,"Sepal.Width":2.8,"Petal.Length":4.9,"Petal.Width":2,"Species":"virginica"},{"id":123,"Sepal.Length":7.7,"Sepal.Width":2.8,"Petal.Length":6.7,"Petal.Width":2,"Species":"virginica"},{"id":124,"Sepal.Length":6.3,"Sepal.Width":2.7,"Petal.Length":4.9,"Petal.Width":1.8,"Species":"virginica"},{"id":125,"Sepal.Length":6.7,"Sepal.Width":3.3,"Petal.Length":5.7,"Petal.Width":2.1,"Species":"virginica"},{"id":126,"Sepal.Length":7.2,"Sepal.Width":3.2,"Petal.Length":6,"Petal.Width":1.8,"Species":"virginica"},{"id":127,"Sepal.Length":6.2,"Sepal.Width":2.8,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"virginica"},{"id":128,"Sepal.Length":6.1,"Sepal.Width":3,"Petal.Length":4.9,"Petal.Width":1.8,"Species":"virginica"},{"id":129,"Sepal.Length":6.4,"Sepal.Width":2.8,"Petal.Length":5.6,"Petal.Width":2.1,"Species":"virginica"},{"id":130,"Sepal.Length":7.2,"Sepal.Width":3,"Petal.Length":5.8,"Petal.Width":1.6,"Species":"virginica"},{"id":131,"Sepal.Length":7.4,"Sepal.Width":2.8,"Petal.Length":6.1,"Petal.Width":1.9,"Species":"virginica"},{"id":132,"Sepal.Length":7.9,"Sepal.Width":3.8,"Petal.Length":6.4,"Petal.Width":2,"Species":"virginica"},{"id":133,"Sepal.Length":6.4,"Sepal.Width":2.8,"Petal.Length":5.6,"Petal.Width":2.2,"Species":"virginica"},{"id":134,"Sepal.Length":6.3,"Sepal.Width":2.8,"Petal.Length":5.1,"Petal.Width":1.5,"Species":"virginica"},{"id":135,"Sepal.Length":6.1,"Sepal.Width":2.6,"Petal.Length":5.6,"Petal.Width":1.4,"Species":"virginica"},{"id":136,"Sepal.Length":7.7,"Sepal.Width":3,"Petal.Length":6.1,"Petal.Width":2.3,"Species":"virginica"},{"id":137,"Sepal.Length":6.3,"Sepal.Width":3.4,"Petal.Length":5.6,"Petal.Width":2.4,"Species":"virginica"},{"id":138,"Sepal.Length":6.4,"Sepal.Width":3.1,"Petal.Length":5.5,"Petal.Width":1.8,"Species":"virginica"},{"id":139,"Sepal.Length":6,"Sepal.Width":3,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"virginica"},{"id":140,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":5.4,"Petal.Width":2.1,"Species":"virginica"},{"id":141,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":5.6,"Petal.Width":2.4,"Species":"virginica"},{"id":142,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":5.1,"Petal.Width":2.3,"Species":"virginica"},{"id":143,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.9,"Species":"virginica"},{"id":144,"Sepal.Length":6.8,"Sepal.Width":3.2,"Petal.Length":5.9,"Petal.Width":2.3,"Species":"virginica"},{"id":145,"Sepal.Length":6.7,"Sepal.Width":3.3,"Petal.Length":5.7,"Petal.Width":2.5,"Species":"virginica"},{"id":146,"Sepal.Length":6.7,"Sepal.Width":3,"Petal.Length":5.2,"Petal.Width":2.3,"Species":"virginica"},{"id":147,"Sepal.Length":6.3,"Sepal.Width":2.5,"Petal.Length":5,"Petal.Width":1.9,"Species":"virginica"},{"id":148,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.2,"Petal.Width":2,"Species":"virginica"},{"id":149,"Sepal.Length":6.2,"Sepal.Width":3.4,"Petal.Length":5.4,"Petal.Width":2.3,"Species":"virginica"},{"id":150,"Sepal.Length":5.9,"Sepal.Width":3,"Petal.Length":5.1,"Petal.Width":1.8,"Species":"virginica"}]')},300:function(e,t,n){!function(e,t){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},i={error:null},a=function(e){function a(){for(var t,n=arguments.length,r=new Array(n),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};S.initial(e),S.handler(t);var n={current:e},r=f(y)(n,t),i=f(b)(n),a=f(S.changes)(e),o=f(m)(n);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return S.selector(e),e(n.current)}function u(e){p(r,i,a,o)(e)}return[l,u]}},P={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.21.2/min/vs"}};var L=function(e){return{}.toString.call(e).includes("Object")};var W={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},O=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),a=0;a{r.current=!1}:e,t)};function ee(){}function te({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,editorDidMount:a,theme:o,width:l,height:u,loading:c,options:s,className:d,wrapperClassName:p}){const[f,h]=Object(U.useState)(!1),[g,v]=Object(U.useState)(!0),S=Object(U.useRef)(null),m=Object(U.useRef)(null),b=Object(U.useRef)(null),y=Object(U.useRef)(a);Z((()=>{const e=I.init();return e.then((e=>(m.current=e)&&v(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?L():e.cancel()})),Q((()=>{S.current.getModel().modified.setValue(t)}),[t],f),Q((()=>{S.current.getModel().original.setValue(e)}),[e],f),Q((()=>{const{original:e,modified:t}=S.current.getModel();m.current.editor.setModelLanguage(e,r||n),m.current.editor.setModelLanguage(t,i||n)}),[n,r,i],f),Q((()=>{m.current.editor.setTheme(o)}),[o],f),Q((()=>{S.current.updateOptions(s)}),[s],f);const j=Object(U.useCallback)((()=>{const a=m.current.editor.createModel(e,r||n),o=m.current.editor.createModel(t,i||n);S.current.setModel({original:a,modified:o})}),[n,t,i,e,r]),P=Object(U.useCallback)((()=>{S.current=m.current.editor.createDiffEditor(b.current,{automaticLayout:!0,...s}),j(),m.current.editor.setTheme(o),h(!0)}),[s,o,j]);Object(U.useEffect)((()=>{if(f){const{original:e,modified:t}=S.current.getModel();y.current(t.getValue.bind(t),e.getValue.bind(e),S.current)}}),[f]),Object(U.useEffect)((()=>{!g&&!f&&P()}),[g,f,P]);const L=()=>S.current.dispose();return B.a.createElement(X,{width:l,height:u,isEditorReady:f,loading:c,_ref:b,className:d,wrapperClassName:p})}te.propTypes={original:K.a.string,modified:K.a.string,language:K.a.string,originalLanguage:K.a.string,modifiedLanguage:K.a.string,editorDidMount:K.a.func,theme:K.a.string,width:K.a.oneOfType([K.a.number,K.a.string]),height:K.a.oneOfType([K.a.number,K.a.string]),loading:K.a.oneOfType([K.a.element,K.a.string]),options:K.a.object,className:K.a.string,wrapperClassName:K.a.string},te.defaultProps={editorDidMount:ee,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{}};function ne({value:e,language:t,editorDidMount:n,theme:r,line:i,width:a,height:o,loading:l,options:u,overrideServices:c,_isControlledMode:s,className:d,wrapperClassName:p}){const[f,h]=Object(U.useState)(!1),[g,v]=Object(U.useState)(!0),S=Object(U.useRef)(null),m=Object(U.useRef)(null),b=Object(U.useRef)(null),y=Object(U.useRef)(n);Z((()=>{const e=I.init();return e.then((e=>(m.current=e)&&v(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?P():e.cancel()})),Q((()=>{S.current.updateOptions(u)}),[u],f),Q((()=>{if(S.current.getOption(m.current.editor.EditorOption.readOnly))S.current.setValue(e);else if(e!==S.current.getValue()){if(S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:e,forceMoveMarkers:!0}]),s){const e=S.current.getModel();e.forceTokenization(e.getLineCount())}S.current.pushUndoStop()}}),[e],f),Q((()=>{m.current.editor.setModelLanguage(S.current.getModel(),t)}),[t],f),Q((()=>{S.current.setScrollPosition({scrollTop:i})}),[i],f),Q((()=>{m.current.editor.setTheme(r)}),[r],f);const j=Object(U.useCallback)((()=>{S.current=m.current.editor.create(b.current,{value:e,language:t,automaticLayout:!0,...u},c),m.current.editor.setTheme(r),h(!0)}),[t,u,c,r,e]);Object(U.useEffect)((()=>{f&&y.current(S.current.getValue.bind(S.current),S.current)}),[f]),Object(U.useEffect)((()=>{!g&&!f&&j()}),[g,f,j]);const P=()=>S.current.dispose();return B.a.createElement(X,{width:a,height:o,isEditorReady:f,loading:l,_ref:b,className:d,wrapperClassName:p})}ne.propTypes={value:K.a.string,language:K.a.string,editorDidMount:K.a.func,theme:K.a.string,line:K.a.number,width:K.a.oneOfType([K.a.number,K.a.string]),height:K.a.oneOfType([K.a.number,K.a.string]),loading:K.a.oneOfType([K.a.element,K.a.string]),options:K.a.object,className:K.a.string,wrapperClassName:K.a.string,overrideServices:K.a.object,_isControlledMode:K.a.bool},ne.defaultProps={editorDidMount:ee,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{},overrideServices:{},_isControlledMode:!1};var re=ne,ie=Object(U.memo)(re);function ae(){return(ae=Object.assign||function(e){for(var t=1;t{const n=i.current.getValue();if(o.current!==n){const r=t(e,n);"string"==typeof r&&n!==r&&i.current.setValue(r)}}),[t]),u=Object(U.useCallback)((()=>{var e;a.current=null===(e=i.current)||void 0===e?void 0:e.onDidChangeModelContent(l)}),[l]);Object(U.useEffect)((()=>(u(),()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.dispose()})),[u]);const c=Object(U.useCallback)(((e,t)=>{i.current=t,u(),n(e,t)}),[u,n]);return B.a.createElement(ie,ae({value:e,editorDidMount:c,_isControlledMode:!0},r))}oe.propTypes={value:K.a.string,editorDidMount:K.a.func,onChange:K.a.func},oe.defaultProps={editorDidMount:ee,onChange:ee};var le=n(105),ue=n(106),ce=n(298),se=n.n(ce),de=n(300);function pe(e){if("function"==typeof e)throw new Error("You must supply the data as the first argument to tidy()");for(var t=e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;it?1:e>=t?0:NaN};function ye(e){return function(t){var n=Se(e).map((function(e){return"function"==typeof e?1===e.length?je(e):e:je(e)}));return t.slice().sort((function(e,t){for(var r,i=Object(ve.a)(n);!(r=i()).done;){var a=(0,r.value)(e,t);if(a)return a}return 0}))}}function je(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e,n){return We(t(e),t(n),!1)}}function Pe(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e,n){return We(t(e),t(n),!0)}}function Le(e,t,n){for(var r=(null!=n?n:{}).position,i="end"===(void 0===r?"start":r)?-1:1,a=new Map,o=0;o=0&&u>=0?o-u:o>=0?-1*i:u>=0?1*i:0}}function We(e,t,n){var r=n?t:e,i=n?e:t;if(Oe(r)&&Oe(i)){var a=(r!=r?0:null===r?1:2)-(i!=i?0:null===i?1:2);return n?-a:a}return Oe(r)?n?-1:1:Oe(i)?n?1:-1:be(r,i)}function Oe(e){return null==e||e!=e}function we(e,t){return function(n){t=null!=t?t:{};for(var r={},i=Object.keys(e),a=0,o=i;a=r.length)return n(i);const o=new De,l=r[a++];let u=-1;for(const t of i){const e=l(t,++u,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[t,n]of o)o.set(t,e(n,a));return t(o)}(e,0)}function Ve(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return e;var n=Object.fromEntries(t.filter((function(e){return"function"!=typeof e[0]})));return Object.assign(n,e)}function Ke(e,t,n,r,i,a){void 0===a&&(a=0);for(var o,l=Object(ve.a)(e.entries());!(o=l()).done;){var u=o.value,c=u[0],s=u[1],d=[].concat(n,[c]);if(s instanceof Map)Ke(s,r(t,d,a),d,r,i,a+1);else i(t,d,s,a)}return t}var Je=function(e){return e};function He(e,t,n){"function"==typeof t?t=[t]:2!==arguments.length||null==t||Array.isArray(t)||(n=t);var r=function(r){var i=$e(Ye(r,e),t,null==n?void 0:n.addGroupKeys);if(null==n?void 0:n.export)switch(n.export){case"grouped":return i;case"levels":return Ze(i,n);case"entries-obj":case"entriesObject":return Ze(i,Object.assign({},n,{export:"levels",levels:["entries-object"]}));default:return Ze(i,Object.assign({},n,{export:"levels",levels:[n.export]}))}return Ge(i,null==n?void 0:n.addGroupKeys)};return r}function $e(e,t,n){var r=e;if(!(null==t?void 0:t.length))return r;for(var i,a=function(){var e=i.value;if(!e)return"continue";r=function(e,t,n){void 0===n&&(n=function(e){return e[e.length-1]});var r=new Map;return Ke(e,r,[],(function(e,t){var r=new Map;return e.set(n(t),r),r}),(function(e,r,i){e.set(n(r),t(i,r))})),r}(r,(function(t,r){var i=e(t,{groupKeys:r});return!1!==n&&(i=i.map((function(e){return Ve(e,r)}))),i}))},o=Object(ve.a)(t);!(i=o()).done;)a();return r}function Ye(e,t){var n=Se(t).map((function(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=new Map;return function(t){var i,a,o=n(t),l=(a=typeof(i=o),null==i||"object"!==a&&"function"!==a?o:o.valueOf());if(r.has(l))return r.get(l);var u=[e,o];return r.set(l,u),u}}));return Ue.apply(void 0,[e].concat(n))}function Ge(e,t){var n=[];return Ke(e,n,[],Je,(function(e,n,r){var i=r;!1!==t&&(i=r.map((function(e){return Ve(e,n)}))),e.push.apply(e,i)})),n}He.grouped=function(e){return Object.assign({},e,{export:"grouped"})},He.entries=function(e){return Object.assign({},e,{export:"entries"})},He.entriesObject=function(e){return Object.assign({},e,{export:"entries-object"})},He.object=function(e){return Object.assign({},e,{export:"object"})},He.map=function(e){return Object.assign({},e,{export:"map"})},He.keys=function(e){return Object.assign({},e,{export:"keys"})},He.values=function(e){return Object.assign({},e,{export:"values"})},He.levels=function(e){return Object.assign({},e,{export:"levels"})};var Xe=function(e){return e.join("/")};function Ze(e,t){for(var n,r=function(e){var t,n,r=e.flat,i=e.single,a=e.mapLeaf,o=void 0===a?Je:a,l=e.mapLeaves,u=void 0===l?Je:l,c=e.addGroupKeys;return e.flat&&(n=null!=(t=e.compositeKey)?t:Xe),{groupFn:function(e,t){return i?o(!1===c?e[0]:Ve(e[0],t)):u(e.map((function(e){return o(!1===c?e:Ve(e,t))})))},keyFn:r?function(e){return n(e.map((function(e){return e[1]})))}:function(e){return e[e.length-1][1]}}}(t),i=r.groupFn,a=r.keyFn,o=t.mapEntry,l=void 0===o?Je:o,u=t.levels,c=void 0===u?["entries"]:u,s=[],d=Object(ve.a)(c);!(n=d()).done;){var p=n.value;switch(p){case"entries":case"entries-object":case"entries-obj":case"entriesObject":if("break"===function(){var e="entries-object"!==p&&"entries-obj"!==p&&"entriesObject"!==p||null!=t.mapEntry?l:function(e){return{key:e[0],values:e[1]}};return s.push({id:"entries",createEmptySubgroup:function(){return[]},addSubgroup:function(t,n,r,i){t.push(e([r,n],i))},addLeaf:function(t,n,r,i){t.push(e([n,r],i))}}),"break"}())break;case"map":s.push({id:"map",createEmptySubgroup:function(){return new Map},addSubgroup:function(e,t,n){e.set(n,t)},addLeaf:function(e,t,n){e.set(t,n)}});break;case"object":s.push({id:"object",createEmptySubgroup:function(){return{}},addSubgroup:function(e,t,n){e[n]=t},addLeaf:function(e,t,n){e[t]=n}});break;case"keys":s.push({id:"keys",createEmptySubgroup:function(){return[]},addSubgroup:function(e,t,n){e.push([n,t])},addLeaf:function(e,t){e.push(t)}});break;case"values":s.push({id:"values",createEmptySubgroup:function(){return[]},addSubgroup:function(e,t){e.push(t)},addLeaf:function(e,t,n){e.push(n)}});break;default:"object"==typeof p&&s.push(p)}}return Ke(e,s[0].createEmptySubgroup(),[],(function(e,n,r){var i,o;if(t.flat)return e;var l=null!=(i=s[r])?i:s[s.length-1],u=(null!=(o=s[r+1])?o:l).createEmptySubgroup();return l.addSubgroup(e,u,a(n),r),u}),(function(e,t,n,r){var o;(null!=(o=s[r])?o:s[s.length-1]).addLeaf(e,a(t),i(n,t),r)}))}function Qe(e){if(null==e?void 0:e.predicate){var t=e.predicate;return function(e){return e.reduce((function(n,r,i){return t(r,i,e)?n+1:n}),0)}}return function(e){return e.length}}class et{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r0){for(a=e[--i];i>0&&(t=a,n=e[--i],a=t+n,r=n-(a-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=a+n,n==t-a&&(a=t))}return a}}var tt=function(e,t){const n=new et;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n};function nt(e,t){var n="function"==typeof e?e:function(t){return t[e]};if(null==t?void 0:t.predicate){var r=n,i=t.predicate;n=function(e,t,n){return i(e,t,n)?r(e,t,n):0}}return function(e){return tt(e,n)}}function rt(e){return function(t){var n,r=null!=e?e:{},i=r.name,a=void 0===i?"n":i,o=r.wt;return we(((n={})[a]=null==o?Qe():nt(o),n))(t)}}function it(e,t){return function(n){var r=t=null!=t?t:{},i=r.name,a=void 0===i?"n":i,o=r.sort;return pe(n,He(e,[rt(t)]),o?ye(Pe(a)):Je)}}function at(e){return function(t){return t.map((function(t){for(var n,r={},i=0,a=Object.keys(t);i=0;c--){var s=r[c];"-"!==s[0]?l[s]?l[s]=!1:u.unshift(s):l[s.substring(1)]=!0}return r=Array.from(new Set(u))}function Wt(e){return function(t){var n=Lt(t,e);return n.length?t.map((function(e){for(var t,r={},i=Object(ve.a)(n);!(t=i()).done;){var a=t.value;r[a]=e[a]}return r})):t}}function Ot(e){return function(t){var n=Te(e)(t);return Wt(Object.keys(e))(n)}}function wt(e){return function(t){return[].concat(t,Se("function"==typeof e?e(t):e))}}function Et(e){return function(t){var n=e.namesFrom,r=e.valuesFrom,i=e.valuesFill,a=e.valuesFillMap,o=e.namesSep,l=void 0===o?"_":o,u=Array.isArray(n)?n:[n],c=Array.isArray(r)?r:[r];if(!t.length)return[];for(var s,d=Object.keys(t[0]).filter((function(e){return!u.includes(e)&&!c.includes(e)})),p={},f=Object(ve.a)(t);!(s=f()).done;)for(var h,g=s.value,v=Object(ve.a)(u);!(h=v()).done;){var S=h.value;null==p[S]&&(p[S]={}),p[S][g[S]]=!0}var m=[];for(var b in p)m.push(Object.keys(p[b]));for(var y,j={},P=function(e,t){void 0===e&&(e="_");function n(t,r,i){if(i.length||null==r)for(var a,o=i[0],l=i.slice(1),u=Object(ve.a)(o);!(a=u()).done;){var c=a.value;n(t,null==r?c:""+r+e+c,l)}else t.push(r)}var r=[];return n(r,null,t),r}(l,m),L=Object(ve.a)(P);!(y=L()).done;){var W=y.value;if(1!==c.length)for(var O,w=Object(ve.a)(c);!(O=w()).done;){var E=O.value;j[""+E+l+W]=null!=a?a[E]:i}else j[W]=null!=a?a[c[0]]:i}function k(e){if(!e.length)return[];for(var t,n=Object.assign({},j),r=Object(ve.a)(d);!(t=r()).done;){var i=t.value;n[i]=e[0][i]}for(var a,o=function(){var e=a.value,t=u.map((function(t){return e[t]})).join(l);if(1===c.length)return n[t]=e[c[0]],"continue";for(var r,i=Object(ve.a)(c);!(r=i()).done;){var o=r.value;n[""+o+l+t]=e[o]}},s=Object(ve.a)(e);!(a=s()).done;)o();return[n]}return d.length?pe(t,He(d,[k])):k(t)}}function kt(e){return function(t){for(var n,r,i=e.namesTo,a=e.valuesTo,o=e.namesSep,l=void 0===o?"_":o,u=Lt(t,null!=(n=e.cols)?n:[]),c=Array.isArray(i)?i:[i],s=Array.isArray(a)?a:[a],d=c.length>1,p=s.length>1,f=[],h=Object(ve.a)(t);!(r=h()).done;){for(var g,v=r.value,S=Object.keys(v).filter((function(e){return!u.includes(e)})),m={},b=Object(ve.a)(S);!(g=b()).done;){var y=g.value;m[y]=v[y]}for(var j,P=p?Array.from(new Set(u.map((function(e){return e.substring(e.indexOf(l)+1)})))):u,L=Object(ve.a)(P);!(j=L()).done;){for(var W,O=j.value,w=Object.assign({},m),E=Object(ve.a)(s);!(W=E()).done;)for(var k,M=W.value,C=p?""+M+l+O:O,T=d?O.split(l):[O],N=0,x=Object(ve.a)(c);!(k=x()).done;){var q=k.value,A=T[N++];w[q]=A,w[M]=v[C]}f.push(w)}}return f}}function Mt(e){return function(t){var n=function(e){var t;if(Array.isArray(e)){for(var n,r={},i=Object(ve.a)(e);!(n=i()).done;){var a=n.value;r[a]=a}return r}if("object"==typeof e)return e;return(t={})[e]=e,t}(e),r=[],i=function(e){var i=n[e],a=void 0;a="function"==typeof i?i(t):Array.isArray(i)?i:Array.from(new Set(t.map((function(t){return t[e]})))),r.push(a.map((function(t){var n;return(n={})[e]=t,n})))};for(var a in n)i(a);return function(e){function t(e,n,r){if(r.length||null==n)for(var i,a=r[0],o=r.slice(1),l=Object(ve.a)(a);!(i=l()).done;){var u=i.value;t(e,Object.assign({},n,u),o)}else e.push(n)}var n=[];return t(n,null,e),n}(r)}}var Ct=function(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r=n.length?n:n.slice(0,c)),n}}function Ft(e,t,n){return null==e||null==t?void 0:0===t&&0===e?0:n||0!==t?e/t:void 0}function It(e,t,n){return null==e||null==t?n?(null!=e?e:0)-(null!=t?t:0):void 0:e-t}function Ut(e,t,n){return null==e||null==t?n?(null!=e?e:0)+(null!=t?t:0):void 0:e+t}function Bt(e,t,n){var r="function"==typeof e?e:function(t){return t[e]},i="function"==typeof t?t:function(e){return e[t]},a=null!=n?n:{},o=a.predicate,l=a.allowDivideByZero;return null==o?function(e,t,n){var a=i(e,t,n);return Ft(r(e,t,n),a,l)}:function(e,t,n){if(o(e,t,n)){var a=i(e,t,n);return Ft(r(e,t,n),a,l)}}}function Vt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){var n=new et,r=0;return Float64Array.from(e,(function(i){return n.add(+(t(i,r++,e)||0))}))}(e,t)}}function Kt(e,t,n){var r=null!=n?n:{},i=r.partial,a=void 0!==i&&i,o=r.align,l=void 0===o?"right":o,u=Math.floor(e/2);return function(n){return n.map((function(r,i){var o="right"===l?i:"center"===l?i+u:i+e-1;if(a||!(o-e+1<0||o>=n.length)){var c=Math.max(0,o-e+1),s=n.slice(c,o+1);return t(s,o)}}))}}function Jt(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=null!=t?t:{},i=r.n,a=void 0===i?1:i,o=r.default;return function(e){return e.map((function(t,r){var i=e[r-a];return null==i?o:n(i,r,e)}))}}function Ht(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=null!=t?t:{},i=r.n,a=void 0===i?1:i,o=r.default;return function(e){return e.map((function(t,r){var i=e[r+a];return null==i?o:n(i,r,e)}))}}function $t(e){var t,n=null!=(t=null==e?void 0:e.startAt)?t:0;return function(e){return e.map((function(e,t){return t+n}))}}function Yt(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Gt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return Yt(e,t)}}function Xt(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function Zt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return Xt(e,t)}}function Qt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){for(var n=0,r=0;rn;){if(r-n>600){const a=r-n+1,o=t-n+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(o-a/2<0?-1:1);tn(e,t,Math.max(n,Math.floor(t-o*u/a+c)),Math.min(r,Math.floor(t+(a-o)*u/a+c)),i)}const a=e[t];let o=n,l=r;for(nn(e,n,t),i(e[r],a)>0&&nn(e,n,r);o0;)--l}0===i(e[n],a)?nn(e,n,l):(++l,nn(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function nn(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function rn(e,t,n){if(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n))).length){if((t=+t)<=0||r<2)return Yt(e);if(t>=1)return Xt(e);var r,i=(r-1)*t,a=Math.floor(i),o=Xt(tn(e,a).subarray(0,a+1));return o+(Yt(e.subarray(a+1))-o)*(i-a)}}function an(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return rn(e,.5,t)}}function on(e,t){let n,r=0,i=0,a=0;if(void 0===t)for(let o of e)null!=o&&(o=+o)>=o&&(n=o-i,i+=n/++r,a+=n*(o-i));else{let o=-1;for(let l of e)null!=(l=t(l,++o,e))&&(l=+l)>=l&&(n=l-i,i+=n/++r,a+=n*(l-i))}if(r>1)return a/(r-1)}function ln(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){const n=on(e,t);return n?Math.sqrt(n):n}(e,t)}}function un(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return on(e,t)}}function cn(e,t){void 0===t&&(t={});var n="function"==typeof e?e:function(t){return t[e]};return function(e){for(var r,i=new Map,a=0,o=0,l=Object(ve.a)(e);!(r=l()).done;){var u=r.value,c=n(u,o++,e);if(!i.has(c)){if(!t.includeUndefined&&void 0===c||!1===t.includeNull&&null===c)continue;a+=1,i.set(c,!0)}}return a}}function sn(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return e.length?t(e[0]):void 0}}function dn(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return e.length?t(e[e.length-1]):void 0}}function pn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp("^"+e,t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function fn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp(e+"$",t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function hn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp(e,t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function gn(e){return function(t){return jt(t).filter((function(t){return e.test(t)}))}}function vn(e,t,n){return function(r){for(var i=jt(r),a=[],o=t[0];o<=t[1];++o){var l=null==n?o:new String("00000000"+o).slice(-n);a.push(""+e+l)}return i.filter((function(e){return a.includes(e)}))}}function Sn(e){return function(t){for(var n,r=new Set,i=Object(ve.a)(Se(e));!(n=i()).done;){var a=n.value;if("function"==typeof a)for(var o,l=a(t),u=Object(ve.a)(l);!(o=u()).done;){var c=o.value;r.add(c)}else r.add(a)}return Array.from(r).map((function(e){return"-"+e}))}}var mn=n(251),bn=n(95),yn=n(107),jn=n(264),Pn=n.n(jn),Ln=function(e){var t=e.logs;return U.createElement("div",{className:"text-xs limited-code-block"},U.createElement(yn.a,{className:"language-json"},">\xa0"+t.map((function(e,t){return e.map((function(e){return"string"==typeof e?e.substring(0,500):e.slice?Pn()(e.slice(0,10),{maxLength:80}):Pn()(e,{maxLength:80}).slice(0,500)})).join(" ")})).join("\n>\xa0")))},Wn=n(278),On=n(299),wn=function(e){var t=e.value,n=e.onChange;return U.createElement("div",{className:"button-group"},U.createElement("button",{className:Object(bn.a)("button button--secondary",{"button--outline":"mtcars"!==t}),onClick:function(){return n("mtcars")}},"mtcars"),U.createElement("button",{className:Object(bn.a)("button button--secondary",{"button--outline":"iris"!==t}),onClick:function(){return n("iris")}},"iris"))},En=function(e){var t=e.input,n=e.onChange,r=U.useState("mtcars"),i=r[0],a=r[1];return U.createElement(mn.a,{jsonClassName:"text-sm",header:U.createElement("div",{className:"flex items-center"},U.createElement("div",{className:"mr-2"},"Input"),U.createElement(wn,{value:i,onChange:function(e){n("mtcars"===e?Wn:On),a(e)}})),data:t})},kn=n(94),Mn=n.n(kn);"undefined"!=typeof window&&I.init().catch((function(e){return console.error("An error occurred during initialization of Monaco: ",e)}));var Cn={minimap:{enabled:!1},fontSize:14};var Tn=Object(de.withErrorBoundary)((function(e){var t=e.input,n=e.codeStr,r=e.outputType,a=e.onChangeOutputType,o=function(e,t,n){return Function("\n let output;\n let logs = [];\n \n let consoleProxy = new Proxy(console, {\n get(obj, prop) {\n if (prop === 'log') {\n return (...args) => {\n logs.push(args);\n console.log(...args);\n }\n }\n\n return obj[prop];\n }\n });\n return function(T, moment, input) {\n let console = consoleProxy;\n with (T) {\n "+n+"\n }\n return { output, logs };\n }\n ")()(t,Mn.a,e)}(t,i,n),l=o.output,u=o.logs;return console.log("==========================================================================================="),console.log("[Input] -----------------------------------------------------------------------------------"),null!=t&&null!=t.slice&&console.table(t.slice(0,5)),console.log(t),console.log("[Output] ----------------------------------------------------------------------------------"),null!=l&&null!=l.slice&&console.table(l.slice(0,5)),console.log(l),U.createElement("div",null,U.createElement(mn.a,{header:"Output",data:l,jsonClassName:"text-sm",renderType:r,onChangeRenderType:a}),u.length?U.createElement("div",{className:"mt-4"},U.createElement("h5",{className:"mb-2"},"Console Output Preview"),U.createElement(Ln,{logs:u})):null)}),{FallbackComponent:function(e){return U.createElement("div",null,"Error: ",e.error.toString())},onError:function(e,t){}});function Nn(e){var t=e.initialCodeStr,n=e.onChangeCodeStr,r=U.useState(!1)[1],i=U.useRef(),a=se()(n,1e3);var o=Object(le.a)().isDarkTheme;return U.createElement(ie,{language:"javascript",value:t,theme:o?"dark":"light",editorDidMount:function(e,t){r(!0),i.current=t,i.current.onDidChangeModelContent((function(e){var t=i.current.getValue();a(t)}))},options:Cn})}t.default=function(){var e="// {T.*} - all Tidy.js functions are available directly and as T.* \n// {input} - `input` variable matches mtcars or iris based on input selection\n// {output} - put your output in the predefined output variable\n\noutput = tidy(input,\n groupBy(['cyl', 'gear'], [\n summarize({ \n n: n(),\n mpg: mean('mpg'), \n hp: mean('hp'), \n wt: mean('wt'), \n }),\n ]),\n select(['cyl', 'gear', everything()]),\n arrange([desc('n'), desc('mpg')])\n);\n",t=U.useState(e),n=t[0],r=t[1],i=U.useState(Wn),a=i[0],o=i[1],l=U.useState("table"),u=l[0],c=l[1];return U.createElement(ue.a,{title:"Playground",description:"A REPL for interactively trying out Tidy.js"},U.createElement("main",null,U.createElement("div",{className:"grid grid-cols-12",style:{minHeight:"90vh"}},U.createElement("div",{className:"col-span-7 border-r"},U.createElement(Nn,{onChangeCodeStr:r,initialCodeStr:e})),U.createElement("div",{className:"col-span-5 p-2"},U.createElement("div",{className:"flex flex-col h-full"},U.createElement("div",{className:"flex-grow h-full"},U.createElement(En,{input:a,onChange:o})),U.createElement("div",{className:"divider my-4 -mx-2"}),U.createElement("div",{className:"flex-grow h-full"},U.createElement(Tn,{input:a,codeStr:n,key:n,outputType:u,onChangeOutputType:c})))))))}}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{251:function(e,t,n){"use strict";var r=n(0),i=n(98),a=n(95),o=n(319),l=function(e){var t=e.page,n=e.onChange,i=e.pageSize,o=e.numItems,l=Math.ceil(o/i),u=t>0,c=t8;if(!t||!t.length)return null;for(var d,p={},f=Object(i.a)(t);!(d=f()).done;){var h=d.value;for(var g in h)p[g]||(p[g]={Header:g,accessor:g,type:typeof h[g]})}var v=Object.values(p),S=t.slice(8*u,8*u+8);return r.createElement("div",null,r.createElement("table",{className:n},r.createElement("thead",null,r.createElement("tr",null,v.map((function(e){return r.createElement("th",{key:e.accessor,className:"data-type-"+e.type},e.Header)})))),r.createElement("tbody",null,S.map((function(e,t){return r.createElement("tr",{key:t},v.map((function(t){return r.createElement("td",{key:t.accessor,className:"data-type-"+t.type},function(e){return"object"==typeof e?JSON.stringify(e):"number"!=typeof e?e:e<1&&e>0?Object(o.a)(".3r")(e):Object(o.a)(".3s")(e)}(e[t.accessor]))})))})))),s?r.createElement(l,{page:u,onChange:c,numItems:t.length,pageSize:8}):null)},c=n(107),s=n(264),d=n.n(s);t.a=function(e){var t=e.data,n=e.header,i=e.initial,o=void 0===i?"table":i,l=e.jsonClassName,s=void 0===l?void 0:l,p=e.className,f=e.renderType,h=void 0===f?o:f,g=e.onChangeRenderType,v=r.useState(o),S=v[0],m=v[1],b=null==g?m:g,y=null==g?S:h;return r.createElement("div",{className:p},r.createElement("div",{className:"flex mb-2 items-center justify-between"},r.createElement("h4",{className:"mb-0"},n),r.createElement("div",{className:"button-group"},r.createElement("button",{className:Object(a.a)("button button--secondary",{"button--outline":"json"!==y}),onClick:function(){return b("json")}},"JSON"),r.createElement("button",{className:Object(a.a)("button button--secondary",{"button--outline":"table"!==y}),onClick:function(){return b("table")}},"Table"))),null==t?r.createElement("div",null,"Warning: The ",r.createElement("code",null,"output")," variable was"," ",null===t?"null":"undefined",". Make sure you set it to the result of your tidy flow."):"json"===y?r.createElement("div",{className:Object(a.a)(s,"limited-code-block")},r.createElement(c.a,{className:"language-json"},t.slice?d()(t.slice(0,100),{maxLength:80}):d()(t,{maxLength:80}).slice(0,3e3))):r.createElement(u,{data:t,className:"code-table"}))}},277:function(e,t,n){var r={"./af":115,"./af.js":115,"./ar":116,"./ar-dz":117,"./ar-dz.js":117,"./ar-kw":118,"./ar-kw.js":118,"./ar-ly":119,"./ar-ly.js":119,"./ar-ma":120,"./ar-ma.js":120,"./ar-sa":121,"./ar-sa.js":121,"./ar-tn":122,"./ar-tn.js":122,"./ar.js":116,"./az":123,"./az.js":123,"./be":124,"./be.js":124,"./bg":125,"./bg.js":125,"./bm":126,"./bm.js":126,"./bn":127,"./bn-bd":128,"./bn-bd.js":128,"./bn.js":127,"./bo":129,"./bo.js":129,"./br":130,"./br.js":130,"./bs":131,"./bs.js":131,"./ca":132,"./ca.js":132,"./cs":133,"./cs.js":133,"./cv":134,"./cv.js":134,"./cy":135,"./cy.js":135,"./da":136,"./da.js":136,"./de":137,"./de-at":138,"./de-at.js":138,"./de-ch":139,"./de-ch.js":139,"./de.js":137,"./dv":140,"./dv.js":140,"./el":141,"./el.js":141,"./en-au":142,"./en-au.js":142,"./en-ca":143,"./en-ca.js":143,"./en-gb":144,"./en-gb.js":144,"./en-ie":145,"./en-ie.js":145,"./en-il":146,"./en-il.js":146,"./en-in":147,"./en-in.js":147,"./en-nz":148,"./en-nz.js":148,"./en-sg":149,"./en-sg.js":149,"./eo":150,"./eo.js":150,"./es":151,"./es-do":152,"./es-do.js":152,"./es-mx":153,"./es-mx.js":153,"./es-us":154,"./es-us.js":154,"./es.js":151,"./et":155,"./et.js":155,"./eu":156,"./eu.js":156,"./fa":157,"./fa.js":157,"./fi":158,"./fi.js":158,"./fil":159,"./fil.js":159,"./fo":160,"./fo.js":160,"./fr":161,"./fr-ca":162,"./fr-ca.js":162,"./fr-ch":163,"./fr-ch.js":163,"./fr.js":161,"./fy":164,"./fy.js":164,"./ga":165,"./ga.js":165,"./gd":166,"./gd.js":166,"./gl":167,"./gl.js":167,"./gom-deva":168,"./gom-deva.js":168,"./gom-latn":169,"./gom-latn.js":169,"./gu":170,"./gu.js":170,"./he":171,"./he.js":171,"./hi":172,"./hi.js":172,"./hr":173,"./hr.js":173,"./hu":174,"./hu.js":174,"./hy-am":175,"./hy-am.js":175,"./id":176,"./id.js":176,"./is":177,"./is.js":177,"./it":178,"./it-ch":179,"./it-ch.js":179,"./it.js":178,"./ja":180,"./ja.js":180,"./jv":181,"./jv.js":181,"./ka":182,"./ka.js":182,"./kk":183,"./kk.js":183,"./km":184,"./km.js":184,"./kn":185,"./kn.js":185,"./ko":186,"./ko.js":186,"./ku":187,"./ku.js":187,"./ky":188,"./ky.js":188,"./lb":189,"./lb.js":189,"./lo":190,"./lo.js":190,"./lt":191,"./lt.js":191,"./lv":192,"./lv.js":192,"./me":193,"./me.js":193,"./mi":194,"./mi.js":194,"./mk":195,"./mk.js":195,"./ml":196,"./ml.js":196,"./mn":197,"./mn.js":197,"./mr":198,"./mr.js":198,"./ms":199,"./ms-my":200,"./ms-my.js":200,"./ms.js":199,"./mt":201,"./mt.js":201,"./my":202,"./my.js":202,"./nb":203,"./nb.js":203,"./ne":204,"./ne.js":204,"./nl":205,"./nl-be":206,"./nl-be.js":206,"./nl.js":205,"./nn":207,"./nn.js":207,"./oc-lnc":208,"./oc-lnc.js":208,"./pa-in":209,"./pa-in.js":209,"./pl":210,"./pl.js":210,"./pt":211,"./pt-br":212,"./pt-br.js":212,"./pt.js":211,"./ro":213,"./ro.js":213,"./ru":214,"./ru.js":214,"./sd":215,"./sd.js":215,"./se":216,"./se.js":216,"./si":217,"./si.js":217,"./sk":218,"./sk.js":218,"./sl":219,"./sl.js":219,"./sq":220,"./sq.js":220,"./sr":221,"./sr-cyrl":222,"./sr-cyrl.js":222,"./sr.js":221,"./ss":223,"./ss.js":223,"./sv":224,"./sv.js":224,"./sw":225,"./sw.js":225,"./ta":226,"./ta.js":226,"./te":227,"./te.js":227,"./tet":228,"./tet.js":228,"./tg":229,"./tg.js":229,"./th":230,"./th.js":230,"./tk":231,"./tk.js":231,"./tl-ph":232,"./tl-ph.js":232,"./tlh":233,"./tlh.js":233,"./tr":234,"./tr.js":234,"./tzl":235,"./tzl.js":235,"./tzm":236,"./tzm-latn":237,"./tzm-latn.js":237,"./tzm.js":236,"./ug-cn":238,"./ug-cn.js":238,"./uk":239,"./uk.js":239,"./ur":240,"./ur.js":240,"./uz":241,"./uz-latn":242,"./uz-latn.js":242,"./uz.js":241,"./vi":243,"./vi.js":243,"./x-pseudo":244,"./x-pseudo.js":244,"./yo":245,"./yo.js":245,"./zh-cn":246,"./zh-cn.js":246,"./zh-hk":247,"./zh-hk.js":247,"./zh-mo":248,"./zh-mo.js":248,"./zh-tw":249,"./zh-tw.js":249};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=277},278:function(e){e.exports=JSON.parse('[{"name":"Mazda RX4","mpg":21,"cyl":6,"disp":160,"hp":110,"drat":3.9,"wt":2.62,"qsec":16.46,"vs":0,"am":1,"gear":4,"carb":4},{"name":"Mazda RX4 Wag","mpg":21,"cyl":6,"disp":160,"hp":110,"drat":3.9,"wt":2.875,"qsec":17.02,"vs":0,"am":1,"gear":4,"carb":4},{"name":"Datsun 710","mpg":22.8,"cyl":4,"disp":108,"hp":93,"drat":3.85,"wt":2.32,"qsec":18.61,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Hornet 4 Drive","mpg":21.4,"cyl":6,"disp":258,"hp":110,"drat":3.08,"wt":3.215,"qsec":19.44,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Hornet Sportabout","mpg":18.7,"cyl":8,"disp":360,"hp":175,"drat":3.15,"wt":3.44,"qsec":17.02,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Valiant","mpg":18.1,"cyl":6,"disp":225,"hp":105,"drat":2.76,"wt":3.46,"qsec":20.22,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Duster 360","mpg":14.3,"cyl":8,"disp":360,"hp":245,"drat":3.21,"wt":3.57,"qsec":15.84,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Merc 240D","mpg":24.4,"cyl":4,"disp":146.7,"hp":62,"drat":3.69,"wt":3.19,"qsec":20,"vs":1,"am":0,"gear":4,"carb":2},{"name":"Merc 230","mpg":22.8,"cyl":4,"disp":140.8,"hp":95,"drat":3.92,"wt":3.15,"qsec":22.9,"vs":1,"am":0,"gear":4,"carb":2},{"name":"Merc 280","mpg":19.2,"cyl":6,"disp":167.6,"hp":123,"drat":3.92,"wt":3.44,"qsec":18.3,"vs":1,"am":0,"gear":4,"carb":4},{"name":"Merc 280C","mpg":17.8,"cyl":6,"disp":167.6,"hp":123,"drat":3.92,"wt":3.44,"qsec":18.9,"vs":1,"am":0,"gear":4,"carb":4},{"name":"Merc 450SE","mpg":16.4,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":4.07,"qsec":17.4,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Merc 450SL","mpg":17.3,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":3.73,"qsec":17.6,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Merc 450SLC","mpg":15.2,"cyl":8,"disp":275.8,"hp":180,"drat":3.07,"wt":3.78,"qsec":18,"vs":0,"am":0,"gear":3,"carb":3},{"name":"Cadillac Fleetwood","mpg":10.4,"cyl":8,"disp":472,"hp":205,"drat":2.93,"wt":5.25,"qsec":17.98,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Lincoln Continental","mpg":10.4,"cyl":8,"disp":460,"hp":215,"drat":3,"wt":5.424,"qsec":17.82,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Chrysler Imperial","mpg":14.7,"cyl":8,"disp":440,"hp":230,"drat":3.23,"wt":5.345,"qsec":17.42,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Fiat 128","mpg":32.4,"cyl":4,"disp":78.7,"hp":66,"drat":4.08,"wt":2.2,"qsec":19.47,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Honda Civic","mpg":30.4,"cyl":4,"disp":75.7,"hp":52,"drat":4.93,"wt":1.615,"qsec":18.52,"vs":1,"am":1,"gear":4,"carb":2},{"name":"Toyota Corolla","mpg":33.9,"cyl":4,"disp":71.1,"hp":65,"drat":4.22,"wt":1.835,"qsec":19.9,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Toyota Corona","mpg":21.5,"cyl":4,"disp":120.1,"hp":97,"drat":3.7,"wt":2.465,"qsec":20.01,"vs":1,"am":0,"gear":3,"carb":1},{"name":"Dodge Challenger","mpg":15.5,"cyl":8,"disp":318,"hp":150,"drat":2.76,"wt":3.52,"qsec":16.87,"vs":0,"am":0,"gear":3,"carb":2},{"name":"AMC Javelin","mpg":15.2,"cyl":8,"disp":304,"hp":150,"drat":3.15,"wt":3.435,"qsec":17.3,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Camaro Z28","mpg":13.3,"cyl":8,"disp":350,"hp":245,"drat":3.73,"wt":3.84,"qsec":15.41,"vs":0,"am":0,"gear":3,"carb":4},{"name":"Pontiac Firebird","mpg":19.2,"cyl":8,"disp":400,"hp":175,"drat":3.08,"wt":3.845,"qsec":17.05,"vs":0,"am":0,"gear":3,"carb":2},{"name":"Fiat X1-9","mpg":27.3,"cyl":4,"disp":79,"hp":66,"drat":4.08,"wt":1.935,"qsec":18.9,"vs":1,"am":1,"gear":4,"carb":1},{"name":"Porsche 914-2","mpg":26,"cyl":4,"disp":120.3,"hp":91,"drat":4.43,"wt":2.14,"qsec":16.7,"vs":0,"am":1,"gear":5,"carb":2},{"name":"Lotus Europa","mpg":30.4,"cyl":4,"disp":95.1,"hp":113,"drat":3.77,"wt":1.513,"qsec":16.9,"vs":1,"am":1,"gear":5,"carb":2},{"name":"Ford Pantera L","mpg":15.8,"cyl":8,"disp":351,"hp":264,"drat":4.22,"wt":3.17,"qsec":14.5,"vs":0,"am":1,"gear":5,"carb":4},{"name":"Ferrari Dino","mpg":19.7,"cyl":6,"disp":145,"hp":175,"drat":3.62,"wt":2.77,"qsec":15.5,"vs":0,"am":1,"gear":5,"carb":6},{"name":"Maserati Bora","mpg":15,"cyl":8,"disp":301,"hp":335,"drat":3.54,"wt":3.57,"qsec":14.6,"vs":0,"am":1,"gear":5,"carb":8},{"name":"Volvo 142E","mpg":21.4,"cyl":4,"disp":121,"hp":109,"drat":4.11,"wt":2.78,"qsec":18.6,"vs":1,"am":1,"gear":4,"carb":2}]')},298:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),s=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=i.test(e);return l||a.test(e)?o(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,l,u,c=0,s=!1,v=!1,S=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,a=i;return r=i=void 0,c=t,o=e.apply(a,n)}function b(e){return c=e,l=setTimeout(j,t),s?m(e):o}function y(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-c>=a}function j(){var e=f();if(y(e))return P(e);l=setTimeout(j,function(e){var n=t-(e-u);return v?p(n,a-(e-c)):n}(e))}function P(e){return l=void 0,S&&r?m(e):(r=i=void 0,o)}function L(){var e=f(),n=y(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return b(u);if(v)return l=setTimeout(j,t),m(u)}return void 0===l&&(l=setTimeout(j,t)),o}return t=g(t)||0,h(n)&&(s=!!n.leading,a=(v="maxWait"in n)?d(g(n.maxWait)||0,t):a,S="trailing"in n?!!n.trailing:S),L.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=u=i=l=void 0},L.flush=function(){return void 0===l?o:P(f())},L}}).call(this,n(25))},299:function(e){e.exports=JSON.parse('[{"id":1,"Sepal.Length":5.1,"Sepal.Width":3.5,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":2,"Sepal.Length":4.9,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":3,"Sepal.Length":4.7,"Sepal.Width":3.2,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":4,"Sepal.Length":4.6,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":5,"Sepal.Length":5,"Sepal.Width":3.6,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":6,"Sepal.Length":5.4,"Sepal.Width":3.9,"Petal.Length":1.7,"Petal.Width":0.4,"Species":"setosa"},{"id":7,"Sepal.Length":4.6,"Sepal.Width":3.4,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":8,"Sepal.Length":5,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":9,"Sepal.Length":4.4,"Sepal.Width":2.9,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":10,"Sepal.Length":4.9,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.1,"Species":"setosa"},{"id":11,"Sepal.Length":5.4,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":12,"Sepal.Length":4.8,"Sepal.Width":3.4,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":13,"Sepal.Length":4.8,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.1,"Species":"setosa"},{"id":14,"Sepal.Length":4.3,"Sepal.Width":3,"Petal.Length":1.1,"Petal.Width":0.1,"Species":"setosa"},{"id":15,"Sepal.Length":5.8,"Sepal.Width":4,"Petal.Length":1.2,"Petal.Width":0.2,"Species":"setosa"},{"id":16,"Sepal.Length":5.7,"Sepal.Width":4.4,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":17,"Sepal.Length":5.4,"Sepal.Width":3.9,"Petal.Length":1.3,"Petal.Width":0.4,"Species":"setosa"},{"id":18,"Sepal.Length":5.1,"Sepal.Width":3.5,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":19,"Sepal.Length":5.7,"Sepal.Width":3.8,"Petal.Length":1.7,"Petal.Width":0.3,"Species":"setosa"},{"id":20,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.5,"Petal.Width":0.3,"Species":"setosa"},{"id":21,"Sepal.Length":5.4,"Sepal.Width":3.4,"Petal.Length":1.7,"Petal.Width":0.2,"Species":"setosa"},{"id":22,"Sepal.Length":5.1,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":23,"Sepal.Length":4.6,"Sepal.Width":3.6,"Petal.Length":1,"Petal.Width":0.2,"Species":"setosa"},{"id":24,"Sepal.Length":5.1,"Sepal.Width":3.3,"Petal.Length":1.7,"Petal.Width":0.5,"Species":"setosa"},{"id":25,"Sepal.Length":4.8,"Sepal.Width":3.4,"Petal.Length":1.9,"Petal.Width":0.2,"Species":"setosa"},{"id":26,"Sepal.Length":5,"Sepal.Width":3,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":27,"Sepal.Length":5,"Sepal.Width":3.4,"Petal.Length":1.6,"Petal.Width":0.4,"Species":"setosa"},{"id":28,"Sepal.Length":5.2,"Sepal.Width":3.5,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":29,"Sepal.Length":5.2,"Sepal.Width":3.4,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":30,"Sepal.Length":4.7,"Sepal.Width":3.2,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":31,"Sepal.Length":4.8,"Sepal.Width":3.1,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":32,"Sepal.Length":5.4,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.4,"Species":"setosa"},{"id":33,"Sepal.Length":5.2,"Sepal.Width":4.1,"Petal.Length":1.5,"Petal.Width":0.1,"Species":"setosa"},{"id":34,"Sepal.Length":5.5,"Sepal.Width":4.2,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":35,"Sepal.Length":4.9,"Sepal.Width":3.1,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":36,"Sepal.Length":5,"Sepal.Width":3.2,"Petal.Length":1.2,"Petal.Width":0.2,"Species":"setosa"},{"id":37,"Sepal.Length":5.5,"Sepal.Width":3.5,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":38,"Sepal.Length":4.9,"Sepal.Width":3.6,"Petal.Length":1.4,"Petal.Width":0.1,"Species":"setosa"},{"id":39,"Sepal.Length":4.4,"Sepal.Width":3,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":40,"Sepal.Length":5.1,"Sepal.Width":3.4,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":41,"Sepal.Length":5,"Sepal.Width":3.5,"Petal.Length":1.3,"Petal.Width":0.3,"Species":"setosa"},{"id":42,"Sepal.Length":4.5,"Sepal.Width":2.3,"Petal.Length":1.3,"Petal.Width":0.3,"Species":"setosa"},{"id":43,"Sepal.Length":4.4,"Sepal.Width":3.2,"Petal.Length":1.3,"Petal.Width":0.2,"Species":"setosa"},{"id":44,"Sepal.Length":5,"Sepal.Width":3.5,"Petal.Length":1.6,"Petal.Width":0.6,"Species":"setosa"},{"id":45,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.9,"Petal.Width":0.4,"Species":"setosa"},{"id":46,"Sepal.Length":4.8,"Sepal.Width":3,"Petal.Length":1.4,"Petal.Width":0.3,"Species":"setosa"},{"id":47,"Sepal.Length":5.1,"Sepal.Width":3.8,"Petal.Length":1.6,"Petal.Width":0.2,"Species":"setosa"},{"id":48,"Sepal.Length":4.6,"Sepal.Width":3.2,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":49,"Sepal.Length":5.3,"Sepal.Width":3.7,"Petal.Length":1.5,"Petal.Width":0.2,"Species":"setosa"},{"id":50,"Sepal.Length":5,"Sepal.Width":3.3,"Petal.Length":1.4,"Petal.Width":0.2,"Species":"setosa"},{"id":51,"Sepal.Length":7,"Sepal.Width":3.2,"Petal.Length":4.7,"Petal.Width":1.4,"Species":"versicolor"},{"id":52,"Sepal.Length":6.4,"Sepal.Width":3.2,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":53,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":4.9,"Petal.Width":1.5,"Species":"versicolor"},{"id":54,"Sepal.Length":5.5,"Sepal.Width":2.3,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":55,"Sepal.Length":6.5,"Sepal.Width":2.8,"Petal.Length":4.6,"Petal.Width":1.5,"Species":"versicolor"},{"id":56,"Sepal.Length":5.7,"Sepal.Width":2.8,"Petal.Length":4.5,"Petal.Width":1.3,"Species":"versicolor"},{"id":57,"Sepal.Length":6.3,"Sepal.Width":3.3,"Petal.Length":4.7,"Petal.Width":1.6,"Species":"versicolor"},{"id":58,"Sepal.Length":4.9,"Sepal.Width":2.4,"Petal.Length":3.3,"Petal.Width":1,"Species":"versicolor"},{"id":59,"Sepal.Length":6.6,"Sepal.Width":2.9,"Petal.Length":4.6,"Petal.Width":1.3,"Species":"versicolor"},{"id":60,"Sepal.Length":5.2,"Sepal.Width":2.7,"Petal.Length":3.9,"Petal.Width":1.4,"Species":"versicolor"},{"id":61,"Sepal.Length":5,"Sepal.Width":2,"Petal.Length":3.5,"Petal.Width":1,"Species":"versicolor"},{"id":62,"Sepal.Length":5.9,"Sepal.Width":3,"Petal.Length":4.2,"Petal.Width":1.5,"Species":"versicolor"},{"id":63,"Sepal.Length":6,"Sepal.Width":2.2,"Petal.Length":4,"Petal.Width":1,"Species":"versicolor"},{"id":64,"Sepal.Length":6.1,"Sepal.Width":2.9,"Petal.Length":4.7,"Petal.Width":1.4,"Species":"versicolor"},{"id":65,"Sepal.Length":5.6,"Sepal.Width":2.9,"Petal.Length":3.6,"Petal.Width":1.3,"Species":"versicolor"},{"id":66,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":4.4,"Petal.Width":1.4,"Species":"versicolor"},{"id":67,"Sepal.Length":5.6,"Sepal.Width":3,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":68,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":4.1,"Petal.Width":1,"Species":"versicolor"},{"id":69,"Sepal.Length":6.2,"Sepal.Width":2.2,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":70,"Sepal.Length":5.6,"Sepal.Width":2.5,"Petal.Length":3.9,"Petal.Width":1.1,"Species":"versicolor"},{"id":71,"Sepal.Length":5.9,"Sepal.Width":3.2,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"versicolor"},{"id":72,"Sepal.Length":6.1,"Sepal.Width":2.8,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":73,"Sepal.Length":6.3,"Sepal.Width":2.5,"Petal.Length":4.9,"Petal.Width":1.5,"Species":"versicolor"},{"id":74,"Sepal.Length":6.1,"Sepal.Width":2.8,"Petal.Length":4.7,"Petal.Width":1.2,"Species":"versicolor"},{"id":75,"Sepal.Length":6.4,"Sepal.Width":2.9,"Petal.Length":4.3,"Petal.Width":1.3,"Species":"versicolor"},{"id":76,"Sepal.Length":6.6,"Sepal.Width":3,"Petal.Length":4.4,"Petal.Width":1.4,"Species":"versicolor"},{"id":77,"Sepal.Length":6.8,"Sepal.Width":2.8,"Petal.Length":4.8,"Petal.Width":1.4,"Species":"versicolor"},{"id":78,"Sepal.Length":6.7,"Sepal.Width":3,"Petal.Length":5,"Petal.Width":1.7,"Species":"versicolor"},{"id":79,"Sepal.Length":6,"Sepal.Width":2.9,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":80,"Sepal.Length":5.7,"Sepal.Width":2.6,"Petal.Length":3.5,"Petal.Width":1,"Species":"versicolor"},{"id":81,"Sepal.Length":5.5,"Sepal.Width":2.4,"Petal.Length":3.8,"Petal.Width":1.1,"Species":"versicolor"},{"id":82,"Sepal.Length":5.5,"Sepal.Width":2.4,"Petal.Length":3.7,"Petal.Width":1,"Species":"versicolor"},{"id":83,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":3.9,"Petal.Width":1.2,"Species":"versicolor"},{"id":84,"Sepal.Length":6,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.6,"Species":"versicolor"},{"id":85,"Sepal.Length":5.4,"Sepal.Width":3,"Petal.Length":4.5,"Petal.Width":1.5,"Species":"versicolor"},{"id":86,"Sepal.Length":6,"Sepal.Width":3.4,"Petal.Length":4.5,"Petal.Width":1.6,"Species":"versicolor"},{"id":87,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":4.7,"Petal.Width":1.5,"Species":"versicolor"},{"id":88,"Sepal.Length":6.3,"Sepal.Width":2.3,"Petal.Length":4.4,"Petal.Width":1.3,"Species":"versicolor"},{"id":89,"Sepal.Length":5.6,"Sepal.Width":3,"Petal.Length":4.1,"Petal.Width":1.3,"Species":"versicolor"},{"id":90,"Sepal.Length":5.5,"Sepal.Width":2.5,"Petal.Length":4,"Petal.Width":1.3,"Species":"versicolor"},{"id":91,"Sepal.Length":5.5,"Sepal.Width":2.6,"Petal.Length":4.4,"Petal.Width":1.2,"Species":"versicolor"},{"id":92,"Sepal.Length":6.1,"Sepal.Width":3,"Petal.Length":4.6,"Petal.Width":1.4,"Species":"versicolor"},{"id":93,"Sepal.Length":5.8,"Sepal.Width":2.6,"Petal.Length":4,"Petal.Width":1.2,"Species":"versicolor"},{"id":94,"Sepal.Length":5,"Sepal.Width":2.3,"Petal.Length":3.3,"Petal.Width":1,"Species":"versicolor"},{"id":95,"Sepal.Length":5.6,"Sepal.Width":2.7,"Petal.Length":4.2,"Petal.Width":1.3,"Species":"versicolor"},{"id":96,"Sepal.Length":5.7,"Sepal.Width":3,"Petal.Length":4.2,"Petal.Width":1.2,"Species":"versicolor"},{"id":97,"Sepal.Length":5.7,"Sepal.Width":2.9,"Petal.Length":4.2,"Petal.Width":1.3,"Species":"versicolor"},{"id":98,"Sepal.Length":6.2,"Sepal.Width":2.9,"Petal.Length":4.3,"Petal.Width":1.3,"Species":"versicolor"},{"id":99,"Sepal.Length":5.1,"Sepal.Width":2.5,"Petal.Length":3,"Petal.Width":1.1,"Species":"versicolor"},{"id":100,"Sepal.Length":5.7,"Sepal.Width":2.8,"Petal.Length":4.1,"Petal.Width":1.3,"Species":"versicolor"},{"id":101,"Sepal.Length":6.3,"Sepal.Width":3.3,"Petal.Length":6,"Petal.Width":2.5,"Species":"virginica"},{"id":102,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.9,"Species":"virginica"},{"id":103,"Sepal.Length":7.1,"Sepal.Width":3,"Petal.Length":5.9,"Petal.Width":2.1,"Species":"virginica"},{"id":104,"Sepal.Length":6.3,"Sepal.Width":2.9,"Petal.Length":5.6,"Petal.Width":1.8,"Species":"virginica"},{"id":105,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.8,"Petal.Width":2.2,"Species":"virginica"},{"id":106,"Sepal.Length":7.6,"Sepal.Width":3,"Petal.Length":6.6,"Petal.Width":2.1,"Species":"virginica"},{"id":107,"Sepal.Length":4.9,"Sepal.Width":2.5,"Petal.Length":4.5,"Petal.Width":1.7,"Species":"virginica"},{"id":108,"Sepal.Length":7.3,"Sepal.Width":2.9,"Petal.Length":6.3,"Petal.Width":1.8,"Species":"virginica"},{"id":109,"Sepal.Length":6.7,"Sepal.Width":2.5,"Petal.Length":5.8,"Petal.Width":1.8,"Species":"virginica"},{"id":110,"Sepal.Length":7.2,"Sepal.Width":3.6,"Petal.Length":6.1,"Petal.Width":2.5,"Species":"virginica"},{"id":111,"Sepal.Length":6.5,"Sepal.Width":3.2,"Petal.Length":5.1,"Petal.Width":2,"Species":"virginica"},{"id":112,"Sepal.Length":6.4,"Sepal.Width":2.7,"Petal.Length":5.3,"Petal.Width":1.9,"Species":"virginica"},{"id":113,"Sepal.Length":6.8,"Sepal.Width":3,"Petal.Length":5.5,"Petal.Width":2.1,"Species":"virginica"},{"id":114,"Sepal.Length":5.7,"Sepal.Width":2.5,"Petal.Length":5,"Petal.Width":2,"Species":"virginica"},{"id":115,"Sepal.Length":5.8,"Sepal.Width":2.8,"Petal.Length":5.1,"Petal.Width":2.4,"Species":"virginica"},{"id":116,"Sepal.Length":6.4,"Sepal.Width":3.2,"Petal.Length":5.3,"Petal.Width":2.3,"Species":"virginica"},{"id":117,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.5,"Petal.Width":1.8,"Species":"virginica"},{"id":118,"Sepal.Length":7.7,"Sepal.Width":3.8,"Petal.Length":6.7,"Petal.Width":2.2,"Species":"virginica"},{"id":119,"Sepal.Length":7.7,"Sepal.Width":2.6,"Petal.Length":6.9,"Petal.Width":2.3,"Species":"virginica"},{"id":120,"Sepal.Length":6,"Sepal.Width":2.2,"Petal.Length":5,"Petal.Width":1.5,"Species":"virginica"},{"id":121,"Sepal.Length":6.9,"Sepal.Width":3.2,"Petal.Length":5.7,"Petal.Width":2.3,"Species":"virginica"},{"id":122,"Sepal.Length":5.6,"Sepal.Width":2.8,"Petal.Length":4.9,"Petal.Width":2,"Species":"virginica"},{"id":123,"Sepal.Length":7.7,"Sepal.Width":2.8,"Petal.Length":6.7,"Petal.Width":2,"Species":"virginica"},{"id":124,"Sepal.Length":6.3,"Sepal.Width":2.7,"Petal.Length":4.9,"Petal.Width":1.8,"Species":"virginica"},{"id":125,"Sepal.Length":6.7,"Sepal.Width":3.3,"Petal.Length":5.7,"Petal.Width":2.1,"Species":"virginica"},{"id":126,"Sepal.Length":7.2,"Sepal.Width":3.2,"Petal.Length":6,"Petal.Width":1.8,"Species":"virginica"},{"id":127,"Sepal.Length":6.2,"Sepal.Width":2.8,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"virginica"},{"id":128,"Sepal.Length":6.1,"Sepal.Width":3,"Petal.Length":4.9,"Petal.Width":1.8,"Species":"virginica"},{"id":129,"Sepal.Length":6.4,"Sepal.Width":2.8,"Petal.Length":5.6,"Petal.Width":2.1,"Species":"virginica"},{"id":130,"Sepal.Length":7.2,"Sepal.Width":3,"Petal.Length":5.8,"Petal.Width":1.6,"Species":"virginica"},{"id":131,"Sepal.Length":7.4,"Sepal.Width":2.8,"Petal.Length":6.1,"Petal.Width":1.9,"Species":"virginica"},{"id":132,"Sepal.Length":7.9,"Sepal.Width":3.8,"Petal.Length":6.4,"Petal.Width":2,"Species":"virginica"},{"id":133,"Sepal.Length":6.4,"Sepal.Width":2.8,"Petal.Length":5.6,"Petal.Width":2.2,"Species":"virginica"},{"id":134,"Sepal.Length":6.3,"Sepal.Width":2.8,"Petal.Length":5.1,"Petal.Width":1.5,"Species":"virginica"},{"id":135,"Sepal.Length":6.1,"Sepal.Width":2.6,"Petal.Length":5.6,"Petal.Width":1.4,"Species":"virginica"},{"id":136,"Sepal.Length":7.7,"Sepal.Width":3,"Petal.Length":6.1,"Petal.Width":2.3,"Species":"virginica"},{"id":137,"Sepal.Length":6.3,"Sepal.Width":3.4,"Petal.Length":5.6,"Petal.Width":2.4,"Species":"virginica"},{"id":138,"Sepal.Length":6.4,"Sepal.Width":3.1,"Petal.Length":5.5,"Petal.Width":1.8,"Species":"virginica"},{"id":139,"Sepal.Length":6,"Sepal.Width":3,"Petal.Length":4.8,"Petal.Width":1.8,"Species":"virginica"},{"id":140,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":5.4,"Petal.Width":2.1,"Species":"virginica"},{"id":141,"Sepal.Length":6.7,"Sepal.Width":3.1,"Petal.Length":5.6,"Petal.Width":2.4,"Species":"virginica"},{"id":142,"Sepal.Length":6.9,"Sepal.Width":3.1,"Petal.Length":5.1,"Petal.Width":2.3,"Species":"virginica"},{"id":143,"Sepal.Length":5.8,"Sepal.Width":2.7,"Petal.Length":5.1,"Petal.Width":1.9,"Species":"virginica"},{"id":144,"Sepal.Length":6.8,"Sepal.Width":3.2,"Petal.Length":5.9,"Petal.Width":2.3,"Species":"virginica"},{"id":145,"Sepal.Length":6.7,"Sepal.Width":3.3,"Petal.Length":5.7,"Petal.Width":2.5,"Species":"virginica"},{"id":146,"Sepal.Length":6.7,"Sepal.Width":3,"Petal.Length":5.2,"Petal.Width":2.3,"Species":"virginica"},{"id":147,"Sepal.Length":6.3,"Sepal.Width":2.5,"Petal.Length":5,"Petal.Width":1.9,"Species":"virginica"},{"id":148,"Sepal.Length":6.5,"Sepal.Width":3,"Petal.Length":5.2,"Petal.Width":2,"Species":"virginica"},{"id":149,"Sepal.Length":6.2,"Sepal.Width":3.4,"Petal.Length":5.4,"Petal.Width":2.3,"Species":"virginica"},{"id":150,"Sepal.Length":5.9,"Sepal.Width":3,"Petal.Length":5.1,"Petal.Width":1.8,"Species":"virginica"}]')},300:function(e,t,n){!function(e,t){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},i={error:null},a=function(e){function a(){for(var t,n=arguments.length,r=new Array(n),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};S.initial(e),S.handler(t);var n={current:e},r=f(y)(n,t),i=f(b)(n),a=f(S.changes)(e),o=f(m)(n);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return S.selector(e),e(n.current)}function u(e){p(r,i,a,o)(e)}return[l,u]}},P={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.21.2/min/vs"}};var L=function(e){return{}.toString.call(e).includes("Object")};var W={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},O=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),a=0;a{r.current=!1}:e,t)};function ee(){}function te({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,editorDidMount:a,theme:o,width:l,height:u,loading:c,options:s,className:d,wrapperClassName:p}){const[f,h]=Object(U.useState)(!1),[g,v]=Object(U.useState)(!0),S=Object(U.useRef)(null),m=Object(U.useRef)(null),b=Object(U.useRef)(null),y=Object(U.useRef)(a);Z((()=>{const e=I.init();return e.then((e=>(m.current=e)&&v(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?L():e.cancel()})),Q((()=>{S.current.getModel().modified.setValue(t)}),[t],f),Q((()=>{S.current.getModel().original.setValue(e)}),[e],f),Q((()=>{const{original:e,modified:t}=S.current.getModel();m.current.editor.setModelLanguage(e,r||n),m.current.editor.setModelLanguage(t,i||n)}),[n,r,i],f),Q((()=>{m.current.editor.setTheme(o)}),[o],f),Q((()=>{S.current.updateOptions(s)}),[s],f);const j=Object(U.useCallback)((()=>{const a=m.current.editor.createModel(e,r||n),o=m.current.editor.createModel(t,i||n);S.current.setModel({original:a,modified:o})}),[n,t,i,e,r]),P=Object(U.useCallback)((()=>{S.current=m.current.editor.createDiffEditor(b.current,{automaticLayout:!0,...s}),j(),m.current.editor.setTheme(o),h(!0)}),[s,o,j]);Object(U.useEffect)((()=>{if(f){const{original:e,modified:t}=S.current.getModel();y.current(t.getValue.bind(t),e.getValue.bind(e),S.current)}}),[f]),Object(U.useEffect)((()=>{!g&&!f&&P()}),[g,f,P]);const L=()=>S.current.dispose();return B.a.createElement(X,{width:l,height:u,isEditorReady:f,loading:c,_ref:b,className:d,wrapperClassName:p})}te.propTypes={original:K.a.string,modified:K.a.string,language:K.a.string,originalLanguage:K.a.string,modifiedLanguage:K.a.string,editorDidMount:K.a.func,theme:K.a.string,width:K.a.oneOfType([K.a.number,K.a.string]),height:K.a.oneOfType([K.a.number,K.a.string]),loading:K.a.oneOfType([K.a.element,K.a.string]),options:K.a.object,className:K.a.string,wrapperClassName:K.a.string},te.defaultProps={editorDidMount:ee,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{}};function ne({value:e,language:t,editorDidMount:n,theme:r,line:i,width:a,height:o,loading:l,options:u,overrideServices:c,_isControlledMode:s,className:d,wrapperClassName:p}){const[f,h]=Object(U.useState)(!1),[g,v]=Object(U.useState)(!0),S=Object(U.useRef)(null),m=Object(U.useRef)(null),b=Object(U.useRef)(null),y=Object(U.useRef)(n);Z((()=>{const e=I.init();return e.then((e=>(m.current=e)&&v(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?P():e.cancel()})),Q((()=>{S.current.updateOptions(u)}),[u],f),Q((()=>{if(S.current.getOption(m.current.editor.EditorOption.readOnly))S.current.setValue(e);else if(e!==S.current.getValue()){if(S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:e,forceMoveMarkers:!0}]),s){const e=S.current.getModel();e.forceTokenization(e.getLineCount())}S.current.pushUndoStop()}}),[e],f),Q((()=>{m.current.editor.setModelLanguage(S.current.getModel(),t)}),[t],f),Q((()=>{S.current.setScrollPosition({scrollTop:i})}),[i],f),Q((()=>{m.current.editor.setTheme(r)}),[r],f);const j=Object(U.useCallback)((()=>{S.current=m.current.editor.create(b.current,{value:e,language:t,automaticLayout:!0,...u},c),m.current.editor.setTheme(r),h(!0)}),[t,u,c,r,e]);Object(U.useEffect)((()=>{f&&y.current(S.current.getValue.bind(S.current),S.current)}),[f]),Object(U.useEffect)((()=>{!g&&!f&&j()}),[g,f,j]);const P=()=>S.current.dispose();return B.a.createElement(X,{width:a,height:o,isEditorReady:f,loading:l,_ref:b,className:d,wrapperClassName:p})}ne.propTypes={value:K.a.string,language:K.a.string,editorDidMount:K.a.func,theme:K.a.string,line:K.a.number,width:K.a.oneOfType([K.a.number,K.a.string]),height:K.a.oneOfType([K.a.number,K.a.string]),loading:K.a.oneOfType([K.a.element,K.a.string]),options:K.a.object,className:K.a.string,wrapperClassName:K.a.string,overrideServices:K.a.object,_isControlledMode:K.a.bool},ne.defaultProps={editorDidMount:ee,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{},overrideServices:{},_isControlledMode:!1};var re=ne,ie=Object(U.memo)(re);function ae(){return(ae=Object.assign||function(e){for(var t=1;t{const n=i.current.getValue();if(o.current!==n){const r=t(e,n);"string"==typeof r&&n!==r&&i.current.setValue(r)}}),[t]),u=Object(U.useCallback)((()=>{var e;a.current=null===(e=i.current)||void 0===e?void 0:e.onDidChangeModelContent(l)}),[l]);Object(U.useEffect)((()=>(u(),()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.dispose()})),[u]);const c=Object(U.useCallback)(((e,t)=>{i.current=t,u(),n(e,t)}),[u,n]);return B.a.createElement(ie,ae({value:e,editorDidMount:c,_isControlledMode:!0},r))}oe.propTypes={value:K.a.string,editorDidMount:K.a.func,onChange:K.a.func},oe.defaultProps={editorDidMount:ee,onChange:ee};var le=n(105),ue=n(106),ce=n(298),se=n.n(ce),de=n(300);function pe(e){if("function"==typeof e)throw new Error("You must supply the data as the first argument to tidy()");for(var t=e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;it?1:e>=t?0:NaN};function ye(e){return function(t){var n=Se(e).map((function(e){return"function"==typeof e?1===e.length?je(e):e:je(e)}));return t.slice().sort((function(e,t){for(var r,i=Object(ve.a)(n);!(r=i()).done;){var a=(0,r.value)(e,t);if(a)return a}return 0}))}}function je(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e,n){return We(t(e),t(n),!1)}}function Pe(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e,n){return We(t(e),t(n),!0)}}function Le(e,t,n){for(var r=(null!=n?n:{}).position,i="end"===(void 0===r?"start":r)?-1:1,a=new Map,o=0;o=0&&u>=0?o-u:o>=0?-1*i:u>=0?1*i:0}}function We(e,t,n){var r=n?t:e,i=n?e:t;if(Oe(r)&&Oe(i)){var a=(r!=r?0:null===r?1:2)-(i!=i?0:null===i?1:2);return n?-a:a}return Oe(r)?n?-1:1:Oe(i)?n?1:-1:be(r,i)}function Oe(e){return null==e||e!=e}function we(e,t){return function(n){t=null!=t?t:{};for(var r={},i=Object.keys(e),a=0,o=i;a=r.length)return n(i);const o=new De,l=r[a++];let u=-1;for(const t of i){const e=l(t,++u,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[t,n]of o)o.set(t,e(n,a));return t(o)}(e,0)}function Ve(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return e;var n=Object.fromEntries(t.filter((function(e){return"function"!=typeof e[0]&&null!=e[0]})));return Object.assign(n,e)}function Ke(e,t,n,r,i,a){void 0===a&&(a=0);for(var o,l=Object(ve.a)(e.entries());!(o=l()).done;){var u=o.value,c=u[0],s=u[1],d=[].concat(n,[c]);if(s instanceof Map)Ke(s,r(t,d,a),d,r,i,a+1);else i(t,d,s,a)}return t}var Je=function(e){return e};function He(e,t,n){"function"==typeof t?t=[t]:2!==arguments.length||null==t||Array.isArray(t)||(n=t);var r=function(r){var i=$e(Ye(r,e),t,null==n?void 0:n.addGroupKeys);if(null==n?void 0:n.export)switch(n.export){case"grouped":return i;case"levels":return Ze(i,n);case"entries-obj":case"entriesObject":return Ze(i,Object.assign({},n,{export:"levels",levels:["entries-object"]}));default:return Ze(i,Object.assign({},n,{export:"levels",levels:[n.export]}))}return Ge(i,null==n?void 0:n.addGroupKeys)};return r}function $e(e,t,n){var r=e;if(!(null==t?void 0:t.length))return r;for(var i,a=function(){var e=i.value;if(!e)return"continue";r=function(e,t,n){void 0===n&&(n=function(e){return e[e.length-1]});var r=new Map;return Ke(e,r,[],(function(e,t){var r=new Map;return e.set(n(t),r),r}),(function(e,r,i){e.set(n(r),t(i,r))})),r}(r,(function(t,r){var i=e(t,{groupKeys:r});return!1!==n&&(i=i.map((function(e){return Ve(e,r)}))),i}))},o=Object(ve.a)(t);!(i=o()).done;)a();return r}function Ye(e,t){var n=Se(t).map((function(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=new Map;return function(t){var i,a,o=n(t),l=(a=typeof(i=o),null==i||"object"!==a&&"function"!==a?o:o.valueOf());if(r.has(l))return r.get(l);var u=[e,o];return r.set(l,u),u}}));return Ue.apply(void 0,[e].concat(n))}function Ge(e,t){var n=[];return Ke(e,n,[],Je,(function(e,n,r){var i=r;!1!==t&&(i=r.map((function(e){return Ve(e,n)}))),e.push.apply(e,i)})),n}He.grouped=function(e){return Object.assign({},e,{export:"grouped"})},He.entries=function(e){return Object.assign({},e,{export:"entries"})},He.entriesObject=function(e){return Object.assign({},e,{export:"entries-object"})},He.object=function(e){return Object.assign({},e,{export:"object"})},He.map=function(e){return Object.assign({},e,{export:"map"})},He.keys=function(e){return Object.assign({},e,{export:"keys"})},He.values=function(e){return Object.assign({},e,{export:"values"})},He.levels=function(e){return Object.assign({},e,{export:"levels"})};var Xe=function(e){return e.join("/")};function Ze(e,t){for(var n,r=function(e){var t,n,r=e.flat,i=e.single,a=e.mapLeaf,o=void 0===a?Je:a,l=e.mapLeaves,u=void 0===l?Je:l,c=e.addGroupKeys;return e.flat&&(n=null!=(t=e.compositeKey)?t:Xe),{groupFn:function(e,t){return i?o(!1===c?e[0]:Ve(e[0],t)):u(e.map((function(e){return o(!1===c?e:Ve(e,t))})))},keyFn:r?function(e){return n(e.map((function(e){return e[1]})))}:function(e){return e[e.length-1][1]}}}(t),i=r.groupFn,a=r.keyFn,o=t.mapEntry,l=void 0===o?Je:o,u=t.levels,c=void 0===u?["entries"]:u,s=[],d=Object(ve.a)(c);!(n=d()).done;){var p=n.value;switch(p){case"entries":case"entries-object":case"entries-obj":case"entriesObject":if("break"===function(){var e="entries-object"!==p&&"entries-obj"!==p&&"entriesObject"!==p||null!=t.mapEntry?l:function(e){return{key:e[0],values:e[1]}};return s.push({id:"entries",createEmptySubgroup:function(){return[]},addSubgroup:function(t,n,r,i){t.push(e([r,n],i))},addLeaf:function(t,n,r,i){t.push(e([n,r],i))}}),"break"}())break;case"map":s.push({id:"map",createEmptySubgroup:function(){return new Map},addSubgroup:function(e,t,n){e.set(n,t)},addLeaf:function(e,t,n){e.set(t,n)}});break;case"object":s.push({id:"object",createEmptySubgroup:function(){return{}},addSubgroup:function(e,t,n){e[n]=t},addLeaf:function(e,t,n){e[t]=n}});break;case"keys":s.push({id:"keys",createEmptySubgroup:function(){return[]},addSubgroup:function(e,t,n){e.push([n,t])},addLeaf:function(e,t){e.push(t)}});break;case"values":s.push({id:"values",createEmptySubgroup:function(){return[]},addSubgroup:function(e,t){e.push(t)},addLeaf:function(e,t,n){e.push(n)}});break;default:"object"==typeof p&&s.push(p)}}return Ke(e,s[0].createEmptySubgroup(),[],(function(e,n,r){var i,o;if(t.flat)return e;var l=null!=(i=s[r])?i:s[s.length-1],u=(null!=(o=s[r+1])?o:l).createEmptySubgroup();return l.addSubgroup(e,u,a(n),r),u}),(function(e,t,n,r){var o;(null!=(o=s[r])?o:s[s.length-1]).addLeaf(e,a(t),i(n,t),r)}))}function Qe(e){if(null==e?void 0:e.predicate){var t=e.predicate;return function(e){return e.reduce((function(n,r,i){return t(r,i,e)?n+1:n}),0)}}return function(e){return e.length}}class et{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r0){for(a=e[--i];i>0&&(t=a,n=e[--i],a=t+n,r=n-(a-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=a+n,n==t-a&&(a=t))}return a}}var tt=function(e,t){const n=new et;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n};function nt(e,t){var n="function"==typeof e?e:function(t){return t[e]};if(null==t?void 0:t.predicate){var r=n,i=t.predicate;n=function(e,t,n){return i(e,t,n)?r(e,t,n):0}}return function(e){return tt(e,n)}}function rt(e){return function(t){var n,r=null!=e?e:{},i=r.name,a=void 0===i?"n":i,o=r.wt;return we(((n={})[a]=null==o?Qe():nt(o),n))(t)}}function it(e,t){return function(n){var r=t=null!=t?t:{},i=r.name,a=void 0===i?"n":i,o=r.sort;return pe(n,He(e,[rt(t)]),o?ye(Pe(a)):Je)}}function at(e){return function(t){return t.map((function(t){for(var n,r={},i=0,a=Object.keys(t);i=0;c--){var s=r[c];"-"!==s[0]?l[s]?l[s]=!1:u.unshift(s):l[s.substring(1)]=!0}return r=Array.from(new Set(u))}function Wt(e){return function(t){var n=Lt(t,e);return n.length?t.map((function(e){for(var t,r={},i=Object(ve.a)(n);!(t=i()).done;){var a=t.value;r[a]=e[a]}return r})):t}}function Ot(e){return function(t){var n=Te(e)(t);return Wt(Object.keys(e))(n)}}function wt(e){return function(t){return[].concat(t,Se("function"==typeof e?e(t):e))}}function Et(e){return function(t){var n=e.namesFrom,r=e.valuesFrom,i=e.valuesFill,a=e.valuesFillMap,o=e.namesSep,l=void 0===o?"_":o,u=Array.isArray(n)?n:[n],c=Array.isArray(r)?r:[r];if(!t.length)return[];for(var s,d=Object.keys(t[0]).filter((function(e){return!u.includes(e)&&!c.includes(e)})),p={},f=Object(ve.a)(t);!(s=f()).done;)for(var h,g=s.value,v=Object(ve.a)(u);!(h=v()).done;){var S=h.value;null==p[S]&&(p[S]={}),p[S][g[S]]=!0}var m=[];for(var b in p)m.push(Object.keys(p[b]));for(var y,j={},P=function(e,t){void 0===e&&(e="_");function n(t,r,i){if(i.length||null==r)for(var a,o=i[0],l=i.slice(1),u=Object(ve.a)(o);!(a=u()).done;){var c=a.value;n(t,null==r?c:""+r+e+c,l)}else t.push(r)}var r=[];return n(r,null,t),r}(l,m),L=Object(ve.a)(P);!(y=L()).done;){var W=y.value;if(1!==c.length)for(var O,w=Object(ve.a)(c);!(O=w()).done;){var E=O.value;j[""+E+l+W]=null!=a?a[E]:i}else j[W]=null!=a?a[c[0]]:i}function k(e){if(!e.length)return[];for(var t,n=Object.assign({},j),r=Object(ve.a)(d);!(t=r()).done;){var i=t.value;n[i]=e[0][i]}for(var a,o=function(){var e=a.value,t=u.map((function(t){return e[t]})).join(l);if(1===c.length)return n[t]=e[c[0]],"continue";for(var r,i=Object(ve.a)(c);!(r=i()).done;){var o=r.value;n[""+o+l+t]=e[o]}},s=Object(ve.a)(e);!(a=s()).done;)o();return[n]}return d.length?pe(t,He(d,[k])):k(t)}}function kt(e){return function(t){for(var n,r,i=e.namesTo,a=e.valuesTo,o=e.namesSep,l=void 0===o?"_":o,u=Lt(t,null!=(n=e.cols)?n:[]),c=Array.isArray(i)?i:[i],s=Array.isArray(a)?a:[a],d=c.length>1,p=s.length>1,f=[],h=Object(ve.a)(t);!(r=h()).done;){for(var g,v=r.value,S=Object.keys(v).filter((function(e){return!u.includes(e)})),m={},b=Object(ve.a)(S);!(g=b()).done;){var y=g.value;m[y]=v[y]}for(var j,P=p?Array.from(new Set(u.map((function(e){return e.substring(e.indexOf(l)+1)})))):u,L=Object(ve.a)(P);!(j=L()).done;){for(var W,O=j.value,w=Object.assign({},m),E=Object(ve.a)(s);!(W=E()).done;)for(var k,M=W.value,C=p?""+M+l+O:O,T=d?O.split(l):[O],N=0,x=Object(ve.a)(c);!(k=x()).done;){var q=k.value,A=T[N++];w[q]=A,w[M]=v[C]}f.push(w)}}return f}}function Mt(e){return function(t){var n=function(e){var t;if(Array.isArray(e)){for(var n,r={},i=Object(ve.a)(e);!(n=i()).done;){var a=n.value;r[a]=a}return r}if("object"==typeof e)return e;return(t={})[e]=e,t}(e),r=[],i=function(e){var i=n[e],a=void 0;a="function"==typeof i?i(t):Array.isArray(i)?i:Array.from(new Set(t.map((function(t){return t[e]})))),r.push(a.map((function(t){var n;return(n={})[e]=t,n})))};for(var a in n)i(a);return function(e){function t(e,n,r){if(r.length||null==n)for(var i,a=r[0],o=r.slice(1),l=Object(ve.a)(a);!(i=l()).done;){var u=i.value;t(e,Object.assign({},n,u),o)}else e.push(n)}var n=[];return t(n,null,e),n}(r)}}var Ct=function(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r=n.length?n:n.slice(0,c)),n}}function Ft(e,t,n){return null==e||null==t?void 0:0===t&&0===e?0:n||0!==t?e/t:void 0}function It(e,t,n){return null==e||null==t?n?(null!=e?e:0)-(null!=t?t:0):void 0:e-t}function Ut(e,t,n){return null==e||null==t?n?(null!=e?e:0)+(null!=t?t:0):void 0:e+t}function Bt(e,t,n){var r="function"==typeof e?e:function(t){return t[e]},i="function"==typeof t?t:function(e){return e[t]},a=null!=n?n:{},o=a.predicate,l=a.allowDivideByZero;return null==o?function(e,t,n){var a=i(e,t,n);return Ft(r(e,t,n),a,l)}:function(e,t,n){if(o(e,t,n)){var a=i(e,t,n);return Ft(r(e,t,n),a,l)}}}function Vt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){var n=new et,r=0;return Float64Array.from(e,(function(i){return n.add(+(t(i,r++,e)||0))}))}(e,t)}}function Kt(e,t,n){var r=null!=n?n:{},i=r.partial,a=void 0!==i&&i,o=r.align,l=void 0===o?"right":o,u=Math.floor(e/2);return function(n){return n.map((function(r,i){var o="right"===l?i:"center"===l?i+u:i+e-1;if(a||!(o-e+1<0||o>=n.length)){var c=Math.max(0,o-e+1),s=n.slice(c,o+1);return t(s,o)}}))}}function Jt(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=null!=t?t:{},i=r.n,a=void 0===i?1:i,o=r.default;return function(e){return e.map((function(t,r){var i=e[r-a];return null==i?o:n(i,r,e)}))}}function Ht(e,t){var n="function"==typeof e?e:function(t){return t[e]},r=null!=t?t:{},i=r.n,a=void 0===i?1:i,o=r.default;return function(e){return e.map((function(t,r){var i=e[r+a];return null==i?o:n(i,r,e)}))}}function $t(e){var t,n=null!=(t=null==e?void 0:e.startAt)?t:0;return function(e){return e.map((function(e,t){return t+n}))}}function Yt(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function Gt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return Yt(e,t)}}function Xt(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function Zt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return Xt(e,t)}}function Qt(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){for(var n=0,r=0;rn;){if(r-n>600){const a=r-n+1,o=t-n+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(o-a/2<0?-1:1);tn(e,t,Math.max(n,Math.floor(t-o*u/a+c)),Math.min(r,Math.floor(t+(a-o)*u/a+c)),i)}const a=e[t];let o=n,l=r;for(nn(e,n,t),i(e[r],a)>0&&nn(e,n,r);o0;)--l}0===i(e[n],a)?nn(e,n,l):(++l,nn(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function nn(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function rn(e,t,n){if(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n))).length){if((t=+t)<=0||r<2)return Yt(e);if(t>=1)return Xt(e);var r,i=(r-1)*t,a=Math.floor(i),o=Xt(tn(e,a).subarray(0,a+1));return o+(Yt(e.subarray(a+1))-o)*(i-a)}}function an(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return rn(e,.5,t)}}function on(e,t){let n,r=0,i=0,a=0;if(void 0===t)for(let o of e)null!=o&&(o=+o)>=o&&(n=o-i,i+=n/++r,a+=n*(o-i));else{let o=-1;for(let l of e)null!=(l=t(l,++o,e))&&(l=+l)>=l&&(n=l-i,i+=n/++r,a+=n*(l-i))}if(r>1)return a/(r-1)}function ln(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return function(e,t){const n=on(e,t);return n?Math.sqrt(n):n}(e,t)}}function un(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return on(e,t)}}function cn(e,t){void 0===t&&(t={});var n="function"==typeof e?e:function(t){return t[e]};return function(e){for(var r,i=new Map,a=0,o=0,l=Object(ve.a)(e);!(r=l()).done;){var u=r.value,c=n(u,o++,e);if(!i.has(c)){if(!t.includeUndefined&&void 0===c||!1===t.includeNull&&null===c)continue;a+=1,i.set(c,!0)}}return a}}function sn(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return e.length?t(e[0]):void 0}}function dn(e){var t="function"==typeof e?e:function(t){return t[e]};return function(e){return e.length?t(e[e.length-1]):void 0}}function pn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp("^"+e,t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function fn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp(e+"$",t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function hn(e,t){return void 0===t&&(t=!0),function(n){var r=new RegExp(e,t?"i":void 0);return jt(n).filter((function(e){return r.test(e)}))}}function gn(e){return function(t){return jt(t).filter((function(t){return e.test(t)}))}}function vn(e,t,n){return function(r){for(var i=jt(r),a=[],o=t[0];o<=t[1];++o){var l=null==n?o:new String("00000000"+o).slice(-n);a.push(""+e+l)}return i.filter((function(e){return a.includes(e)}))}}function Sn(e){return function(t){for(var n,r=new Set,i=Object(ve.a)(Se(e));!(n=i()).done;){var a=n.value;if("function"==typeof a)for(var o,l=a(t),u=Object(ve.a)(l);!(o=u()).done;){var c=o.value;r.add(c)}else r.add(a)}return Array.from(r).map((function(e){return"-"+e}))}}var mn=n(251),bn=n(95),yn=n(107),jn=n(264),Pn=n.n(jn),Ln=function(e){var t=e.logs;return U.createElement("div",{className:"text-xs limited-code-block"},U.createElement(yn.a,{className:"language-json"},">\xa0"+t.map((function(e,t){return e.map((function(e){return"string"==typeof e?e.substring(0,500):e.slice?Pn()(e.slice(0,10),{maxLength:80}):Pn()(e,{maxLength:80}).slice(0,500)})).join(" ")})).join("\n>\xa0")))},Wn=n(278),On=n(299),wn=function(e){var t=e.value,n=e.onChange;return U.createElement("div",{className:"button-group"},U.createElement("button",{className:Object(bn.a)("button button--secondary",{"button--outline":"mtcars"!==t}),onClick:function(){return n("mtcars")}},"mtcars"),U.createElement("button",{className:Object(bn.a)("button button--secondary",{"button--outline":"iris"!==t}),onClick:function(){return n("iris")}},"iris"))},En=function(e){var t=e.input,n=e.onChange,r=U.useState("mtcars"),i=r[0],a=r[1];return U.createElement(mn.a,{jsonClassName:"text-sm",header:U.createElement("div",{className:"flex items-center"},U.createElement("div",{className:"mr-2"},"Input"),U.createElement(wn,{value:i,onChange:function(e){n("mtcars"===e?Wn:On),a(e)}})),data:t})},kn=n(94),Mn=n.n(kn);"undefined"!=typeof window&&I.init().catch((function(e){return console.error("An error occurred during initialization of Monaco: ",e)}));var Cn={minimap:{enabled:!1},fontSize:14};var Tn=Object(de.withErrorBoundary)((function(e){var t=e.input,n=e.codeStr,r=e.outputType,a=e.onChangeOutputType,o=function(e,t,n){return Function("\n let output;\n let logs = [];\n \n let consoleProxy = new Proxy(console, {\n get(obj, prop) {\n if (prop === 'log') {\n return (...args) => {\n logs.push(args);\n console.log(...args);\n }\n }\n\n return obj[prop];\n }\n });\n return function(T, moment, input) {\n let console = consoleProxy;\n with (T) {\n "+n+"\n }\n return { output, logs };\n }\n ")()(t,Mn.a,e)}(t,i,n),l=o.output,u=o.logs;return console.log("==========================================================================================="),console.log("[Input] -----------------------------------------------------------------------------------"),null!=t&&null!=t.slice&&console.table(t.slice(0,5)),console.log(t),console.log("[Output] ----------------------------------------------------------------------------------"),null!=l&&null!=l.slice&&console.table(l.slice(0,5)),console.log(l),U.createElement("div",null,U.createElement(mn.a,{header:"Output",data:l,jsonClassName:"text-sm",renderType:r,onChangeRenderType:a}),u.length?U.createElement("div",{className:"mt-4"},U.createElement("h5",{className:"mb-2"},"Console Output Preview"),U.createElement(Ln,{logs:u})):null)}),{FallbackComponent:function(e){return U.createElement("div",null,"Error: ",e.error.toString())},onError:function(e,t){}});function Nn(e){var t=e.initialCodeStr,n=e.onChangeCodeStr,r=U.useState(!1)[1],i=U.useRef(),a=se()(n,1e3);var o=Object(le.a)().isDarkTheme;return U.createElement(ie,{language:"javascript",value:t,theme:o?"dark":"light",editorDidMount:function(e,t){r(!0),i.current=t,i.current.onDidChangeModelContent((function(e){var t=i.current.getValue();a(t)}))},options:Cn})}t.default=function(){var e="// {T.*} - all Tidy.js functions are available directly and as T.* \n// {input} - `input` variable matches mtcars or iris based on input selection\n// {output} - put your output in the predefined output variable\n\noutput = tidy(input,\n groupBy(['cyl', 'gear'], [\n summarize({ \n n: n(),\n mpg: mean('mpg'), \n hp: mean('hp'), \n wt: mean('wt'), \n }),\n ]),\n select(['cyl', 'gear', everything()]),\n arrange([desc('n'), desc('mpg')])\n);\n",t=U.useState(e),n=t[0],r=t[1],i=U.useState(Wn),a=i[0],o=i[1],l=U.useState("table"),u=l[0],c=l[1];return U.createElement(ue.a,{title:"Playground",description:"A REPL for interactively trying out Tidy.js"},U.createElement("main",null,U.createElement("div",{className:"grid grid-cols-12",style:{minHeight:"90vh"}},U.createElement("div",{className:"col-span-7 border-r"},U.createElement(Nn,{onChangeCodeStr:r,initialCodeStr:e})),U.createElement("div",{className:"col-span-5 p-2"},U.createElement("div",{className:"flex flex-col h-full"},U.createElement("div",{className:"flex-grow h-full"},U.createElement(En,{input:a,onChange:o})),U.createElement("div",{className:"divider my-4 -mx-2"}),U.createElement("div",{className:"flex-grow h-full"},U.createElement(Tn,{input:a,codeStr:n,key:n,outputType:u,onChangeOutputType:c})))))))}}}]); \ No newline at end of file diff --git a/docs/api/groupby/index.html b/docs/api/groupby/index.html index 5efdc4c..30fa371 100644 --- a/docs/api/groupby/index.html +++ b/docs/api/groupby/index.html @@ -8,10 +8,10 @@ groupBy API | tidy.js - + - + @@ -43,10 +43,10 @@
tidy(
data,
groupBy(['str', 'ing'], [
summarize({ total: sum('value') })
], groupBy.levels({
levels: ['entries-object', 'object'],
single: true
}))
)
// output:
[
{ // <-- this level is an "entries object"
"key": "a",
"values": { // <-- this level is an "object"
"x": {"str": "a", "ing": "x", "total": 1},
"y": {"str": "a", "ing": "y", "total": 9},
"z": {"str": "a", "ing": "z", "total": 11}
}
},
{
"key": "b",
"values": {
"x": {"str": "b", "ing": "x", "total": 300},
"y": {"str": "b", "ing": "y", "total": 300},
"z": {"str": "b", "ing": "z", "total": 400}
}
}
]
tidy(
data,
groupBy(['str', 'ing'], [
summarize({ total: sum('value') })
], groupBy.levels({
levels: ['object', 'entries-object'], // swapped order
single: true
}))
)
// output:
{ // <-- this level is an "object"
"a": [ // <-- this level is "entries object"s
{"key": "x", "values": {"str": "a", "ing": "x", "total": 1}},
{"key": "y", "values": {"str": "a", "ing": "y", "total": 9}},
{"key": "z", "values": {"str": "a", "ing": "z", "total": 11}}
],
"b": [
{"key": "x", "values": {"str": "b", "ing": "x", "total": 300}},
{"key": "y", "values": {"str": "b", "ing": "y", "total": 300}},
{"key": "z", "values": {"str": "b", "ing": "z", "total": 400}}
]
}

Custom Levels Export#

For a more advanced export, a custom levels export can be specified by providing a LevelSpec for the value of levels:

// LevelSpec:
{
createEmptySubgroup: () => any;
addSubgroup: (
parentGrouped: any,
newSubgroup: any,
key: any,
level: number
) => void;
addLeaf: (
parentGrouped: any,
key: any,
values: any[],
level: number
) => void;
}

Probably best to just look at the source code of the existing groupBy methods to get an idea of how to use this.

Last updated on by Peter Beshai
- + - + diff --git a/docs/api/item/index.html b/docs/api/item/index.html index 57e68bc..3d52359 100644 --- a/docs/api/item/index.html +++ b/docs/api/item/index.html @@ -8,10 +8,10 @@ Item Function API | tidy.js - + - + @@ -23,10 +23,10 @@

Item Function API

Mapping functions that map from a single item (or row) to a value. Typically used with mutate.

rate#

Returns a function that computes a rate (numerator / denominator), setting the value to 0 if denominator = 0 and numerator = 0. If denominator or numerator are nully, the result is undefined.

Parameters#

numerator#

| string /* key of object */
| (item: object, index: number, array: object[]) => number

Either a key of the object or an accessor function that returns a number given the object. This will be used as the numerator when computing the rate.

denominator#

| string /* key of object */
| (item: object, index: number, array: object[]) => number

Either a key of the object or an accessor function that returns a number given the object. This will be used as the denominator when computing the rate.

options?#

{
predicate?: (item: object, index: number, array: object[]) => boolean
allowDivideByZero?: boolean
}
  • allowDivideByZero = false: If true, evaluates division when denominator is 0 (typically resulting in Infinity), otherwise rates with 0 denominators are undefined.
  • predicate: Optional parameter that when provided will return undefined as the value of the rate when the predicate function returns false. This is typically used for only computing rates when there is sufficient sample size (i.e., checking if the denominator is large enough). For example:
rate('numerator', 'denominator', { predicate: d => d.denominator > 1000 })

Usage#

const data = [
{ str: 'foo', value: 3, value2: 0 },
{ str: 'foo', value: 1, value2: 1 },
{ str: 'bar', value: 3, value2: null },
{ str: 'bar', value: null, value2: 4 },
{ str: 'bar', value: 0, value2: 0 },
{ str: 'bar', value: 7, value2: 35 },
];
tidy(
data,
mutate({
rate1: rate(
(d) => d.value * 100,
(d) => d.value2
),
rate2: rate('value', 'value2'),
})
)
// output:
[
{ str: 'foo', value: 3, value2: 0, rate1: Infinity, rate2: Infinity },
{ str: 'foo', value: 1, value2: 1, rate1: 100, rate2: 1 },
{ str: 'bar', value: 3, value2: null, rate1: undefined, rate2: undefined, },
{ str: 'bar', value: null, value2: 4, rate1: 0, rate2: undefined },
{ str: 'bar', value: 0, value2: 0, rate1: 0, rate2: 0 },
{ str: 'bar', value: 7, value2: 35, rate1: 20, rate2: 0.2 },
]

Last updated on by Peter Beshai
- + - + diff --git a/docs/api/math/index.html b/docs/api/math/index.html index 4794524..3906a82 100644 --- a/docs/api/math/index.html +++ b/docs/api/math/index.html @@ -8,10 +8,10 @@ Tidy Math API | tidy.js - + - + @@ -22,10 +22,10 @@

Tidy Math API

add#

Adds two numbers together, returning undefined if either are nully. Optionally replaces nully values with 0.

Parameters#

a#

number | null | undefined

The first operand

b#

number | null | undefined

The second operand

nullyZero? = false#

boolean

If true, nully (null and undefined) values are replaced with 0 before performing the addition.

Usage#

TMath.add(1, 2) // 3
TMath.add(null, 1) // undefined
TMath.add(1, null) // undefined
TMath.add(null, null) // undefined
TMath.add(null, 1, true) // 1
TMath.add(1, null, true) // 1
TMath.add(null, null, true) // 0

rate#

Computes a rate (numerator / denominator), setting the value to 0 if denominator = 0 and numerator = 0. If denominator or numerator are nully, the result is undefined.

See also item::rate

Parameters#

numerator#

number | null | undefined

The value to use as numerator.

denominator#

number | null | undefined

The value to use as denominator.

allowDivideByZero?#

boolean | undefined

If true, evaluates division when denominator is 0 (typically resulting in Infinity), otherwise rates with 0 denominators are undefined.

Usage#

TMath.rate(5, 10); // 0.5
TMath.rate(5, null); // undefined
TMath.rate(undefined, 15); // undefined
TMath.rate(0, 0); // undefined
TMath.rate(5, 0); // undefined
TMath.rate(5, 0, true); // Infinity

subtract#

Subtracts two numbers, returning undefined if either are nully. Optionally replaces nully values with 0.

Parameters#

a#

number | null | undefined

The first operand

b#

number | null | undefined

The second operand

nullyZero? = false#

boolean

If true, nully (null and undefined) values are replaced with 0 before performing the subtraction.

Usage#

TMath.subtract(1, 2) // -1
TMath.subtract(null, 1) // undefined
TMath.subtract(1, null) // undefined
TMath.subtract(null, null) // undefined
TMath.subtract(null, 1, true) // -1
TMath.subtract(1, null, true) // 1
TMath.subtract(null, null, true) // 0
Last updated on by Peter Beshai
- + - + diff --git a/docs/api/pivot/index.html b/docs/api/pivot/index.html index 86231a4..21f6579 100644 --- a/docs/api/pivot/index.html +++ b/docs/api/pivot/index.html @@ -8,10 +8,10 @@ Pivot API | tidy.js - + - + @@ -27,10 +27,10 @@
tidy(
data,
pivotWider({
namesFrom: 'place',
valuesFrom: 'val',
})
);
// output:
[
{ type: 'one', canada: 1, usa: 10, campbell: 4, brampton: 8 },
{ type: 'two', brampton: 7, boston: 3, usa: 11 },
{ type: 'three', canada: 20 },
]
const data = [
{ type: 'one', other: 5, place: 'canada', val: 1, secval: 91 },
{ type: 'one', other: 5, place: 'usa', val: 10, secval: 910 },
{ type: 'one', other: 6, place: 'campbell', val: 4, secval: 94 },
{ type: 'one', other: 6, place: 'brampton', val: 8, secval: 98 },
{ type: 'two', other: 5, place: 'brampton', val: 7, secval: 97 },
{ type: 'two', other: 5, place: 'boston', val: 3, secval: 93 },
{ type: 'two', other: 6, place: 'usa', val: 11, secval: 911 },
{ type: 'three', other: 5, place: 'canada', val: 20, secval: 920 },
];
const results = tidy(
data,
pivotWider({
namesFrom: ['place', 'other'],
valuesFrom: ['val', 'secval'],
valuesFillMap: { val: 0, secval: -1 },
})
);
// output:
[{
secval_boston_5: -1,
secval_boston_6: -1,
secval_brampton_5: -1,
secval_brampton_6: 98,
secval_campbell_5: -1,
secval_campbell_6: 94,
secval_canada_5: 91,
secval_canada_6: -1,
secval_usa_5: 910,
secval_usa_6: -1,
type: 'one',
val_boston_5: 0,
val_boston_6: 0,
val_brampton_5: 0,
val_brampton_6: 8,
val_campbell_5: 0,
val_campbell_6: 4,
val_canada_5: 1,
val_canada_6: 0,
val_usa_5: 10,
val_usa_6: 0,
},
{
secval_boston_5: 93,
secval_boston_6: -1,
secval_brampton_5: 97,
secval_brampton_6: -1,
secval_campbell_5: -1,
secval_campbell_6: -1,
secval_canada_5: -1,
secval_canada_6: -1,
secval_usa_5: -1,
secval_usa_6: 911,
type: 'two',
val_boston_5: 3,
val_boston_6: 0,
val_brampton_5: 7,
val_brampton_6: 0,
val_campbell_5: 0,
val_campbell_6: 0,
val_canada_5: 0,
val_canada_6: 0,
val_usa_5: 0,
val_usa_6: 11,
},
{
secval_boston_5: -1,
secval_boston_6: -1,
secval_brampton_5: -1,
secval_brampton_6: -1,
secval_campbell_5: -1,
secval_campbell_6: -1,
secval_canada_5: 920,
secval_canada_6: -1,
secval_usa_5: -1,
secval_usa_6: -1,
type: 'three',
val_boston_5: 0,
val_boston_6: 0,
val_brampton_5: 0,
val_brampton_6: 0,
val_campbell_5: 0,
val_campbell_6: 0,
val_canada_5: 20,
val_canada_6: 0,
val_usa_5: 0,
val_usa_6: 0,
}]
Last updated on by ellemenno
- + - + diff --git a/docs/api/selectors/index.html b/docs/api/selectors/index.html index ceaf6fb..208e39e 100644 --- a/docs/api/selectors/index.html +++ b/docs/api/selectors/index.html @@ -8,10 +8,10 @@ Selectors API | tidy.js - + - + @@ -34,10 +34,10 @@
tidy(data, select([startsWith('bAR')]))
// output:
[{ foobar: 300, FoObAR: 90 }]
tidy(data, select([startsWith('bAR', false)]))
// output:
[{ FoObAR: 90 }]

Last updated on by Peter Beshai
- + - + diff --git a/docs/api/sequences/index.html b/docs/api/sequences/index.html index 1edd261..49ffffb 100644 --- a/docs/api/sequences/index.html +++ b/docs/api/sequences/index.html @@ -8,10 +8,10 @@ Sequence API | tidy.js - + - + @@ -25,10 +25,10 @@
fullSeqDate(data, 'date', 'day', 1)
// output:
[
new Date('2020-04-01'),
new Date('2020-04-02'),
new Date('2020-04-03'),
new Date('2020-04-04'),
new Date('2020-04-05'),
new Date('2020-04-06'),
new Date('2020-04-07'),
new Date('2020-04-08'),
]

fullSeqDateISOString#

Creates a full sequence of date ISO string values for a key given a set of data. The bounds of the sequence are determined from the existing values within the data. Typically used in combination with expand or complete.

Similar to fullSeq.

Parameters#

key#

| string /* key of item */
| (item: object) => string /* date ISO string */

The key within the data to expand the sequence across.

granularity#

'second' | 'minute' | 'day' | 'week' | 'month' | 'year' = 'day'

The granularity to increment the data by.

period#

number = 1

The gap between each value in the data (how much the sequence increments by).

Usage#

const data = [
{ str: 'foo', timestamp: '2020-04-01T00:00:00.000Z' },
{ str: 'foo', timestamp: '2020-04-02T00:00:00.000Z' },
{ str: 'foo', timestamp: '2020-04-03T00:00:00.000Z' },
{ str: 'foo', timestamp: '2020-04-06T00:00:00.000Z' },
{ str: 'foo', timestamp: '2020-04-08T00:00:00.000Z' },
];
fullSeqDateISOString(data, 'timestamp', 'day', 1)
// output:
[
'2020-04-01T00:00:00.000Z',
'2020-04-02T00:00:00.000Z',
'2020-04-03T00:00:00.000Z',
'2020-04-04T00:00:00.000Z',
'2020-04-05T00:00:00.000Z',
'2020-04-06T00:00:00.000Z',
'2020-04-07T00:00:00.000Z',
'2020-04-08T00:00:00.000Z',
]
Last updated on by konsalex
- + - + diff --git a/docs/api/summary/index.html b/docs/api/summary/index.html index 0dfa0a9..47b81c0 100644 --- a/docs/api/summary/index.html +++ b/docs/api/summary/index.html @@ -8,10 +8,10 @@ Summarizer API | tidy.js - + - + @@ -36,10 +36,10 @@
tidy(data, summarize({
value: sum('value'),
valueFoo: sum('value', { predicate: d => d.str === 'foo' })
})
// output:
[{ value: 15, valueFoo: 4 }]

variance#

Computes the variance as per d3-array::variance.

Parameters#

key#

| string /* key of object */
| (item: object, index: number, array: object[]) => number

Either the key to compute the value over or an accessor function that maps a given item to the value to compute over.

Usage#

const data = [
{ str: 'foo', value: 3 },
{ str: 'foo', value: 1 },
{ str: 'bar', value: 3 },
{ str: 'bar', value: 1 },
{ str: 'bar', value: 7 },
];
tidy(data, summarize({
value: variance('value'),
})
// output:
[{ value: 6 }]

Last updated on by Peter Beshai
- + - + diff --git a/docs/api/tidy/index.html b/docs/api/tidy/index.html index 2dbac78..e6bd32d 100644 --- a/docs/api/tidy/index.html +++ b/docs/api/tidy/index.html @@ -8,10 +8,10 @@ Tidy Function API | tidy.js - + - + @@ -82,10 +82,10 @@
tidy(data, transmute({
value_x2: (d) => d.value * 2,
value_x4: (d) => d.value_x2 * 2,
}));
// output:
[
{ value_x2: 6, value_x4: 12 },
{ value_x2: 2, value_x4: 4 },
{ value_x2: 14, value_x4: 28 },
]

when#

Conditionally runs a tidy subflow based on the result of a boolean or predicate function.

Parameters#

predicate#

| boolean
| (items: object[]) => boolean

When true, or the function results in true, the subflow is run, otherwise the input items are passed through unmodified.

fns#

Array<(items: object[]) => object[]>

Array of tidy functions to run on the input data when the predicate is true.

Usage#

const data = [{ x: 1 }, { x: 2 }, { x: 3 }];
tidy(data,
when(true, [
mutate({ y: 52 })
])
);
// output:
[{ x: 1, y: 52 }, { x: 2, y: 52 }, { x: 3, y: 52 }]
tidy(data,
when((items) => items.length === 2, [
mutate({ y: 52 })
])
);
// output:
[{ x: 1 }, { x: 2 }, { x: 3 }]

Last updated on by Peter Beshai
- + - + diff --git a/docs/api/vector/index.html b/docs/api/vector/index.html index 5ab8087..a11a0a0 100644 --- a/docs/api/vector/index.html +++ b/docs/api/vector/index.html @@ -8,10 +8,10 @@ Vector Function API | tidy.js - + - + @@ -29,10 +29,10 @@
tidy(data, mutateWithSummary({
movingAvg: roll(3, mean('value'), { partial: true }),
}))
// output:
[
{ str: 'foo', value: 3, movingAvg: 3 / 1 }, // partial
{ str: 'foo', value: 1, movingAvg: 4 / 2 }, // partial
{ str: 'bar', value: 3, movingAvg: 7 / 3 },
{ str: 'bar', value: 1, movingAvg: 5 / 3 },
{ str: 'bar', value: 7, movingAvg: 11 / 3 },
]

rowNumber#

Computes the row number for each item in the array. Note this can also be accomplished with a simple mutate, if you prefer:

mutate({ row: (_, i) => i })

Parameters#

options#

{
startAt?: number
}
  • startAt = 0 what to start counting at, default is 0 – so the first row is row 0, then row 1 for the second row.

Usage#

const data = [
{ str: 'foo', value: 3 },
{ str: 'foo', value: 1 },
{ str: 'bar', value: 3 },
{ str: 'bar', value: 1 },
{ str: 'bar', value: 7 },
];
tidy(data, mutateWithSummary({
row: rowNumber(),
rowFrom1: rowNumber({ startAt: 1})
}))
// output:
[
{ str: 'foo', value: 3, row: 0, rowFrom1: 1 },
{ str: 'foo', value: 1, row: 1, rowFrom1: 2 },
{ str: 'bar', value: 3, row: 2, rowFrom1: 3 },
{ str: 'bar', value: 1, row: 3, rowFrom1: 4 },
{ str: 'bar', value: 7, row: 4, rowFrom1: 5 },
]

Last updated on by Peter Beshai
- + - + diff --git a/docs/examples/moving_average_example/index.html b/docs/examples/moving_average_example/index.html index 6db1849..7c802b5 100644 --- a/docs/examples/moving_average_example/index.html +++ b/docs/examples/moving_average_example/index.html @@ -8,10 +8,10 @@ Moving Average Examples | tidy.js - + - + @@ -23,10 +23,10 @@

Moving Average Examples

When you want to compute a moving average on your data, the main tools at your disposal will be mutate and roll. Let's go over a few examples of how to use them together.

Moving Average#

Given input data:

Input Data

[{"value": 1}, {"value": 2}, {"value": 3}, {"value": 7}, {"value": 5}]

If we want to compute a 3-item moving average of the value key, we can do so as follows:

tidy(
data,
mutateWithSummary({
movingAvg: roll(3, mean('value')),
})
)

Here we're providing a value of 3 for the window width argument of roll and specifying the aggregation to run as the summarizer function mean. This produces the following output:

Output Data

[
{"value": 1},
{"value": 2},
{"value": 3, "movingAvg": 2},
{"value": 7, "movingAvg": 4},
{"value": 5, "movingAvg": 5}
]

Note that by default roll will only compute the aggregate value if the full window width of data is available. Since the window sizes for the first and second elements are 1 and 2, which are less than our width argument of 3, their movingAvg value is undefined.

To compute the aggregate value even when the window width is less than our desired width, we can pass in an options argument with partial set to true:

tidy(
data,
mutateWithSummary({
movingAvg: roll(3, mean('value'), { partial: true }),
})
)

With this change, the output becomes:

Output Data with Partial

[
{"value": 1, "movingAvg": 1},
{"value": 2, "movingAvg": 1.5},
{"value": 3, "movingAvg": 2},
{"value": 7, "movingAvg": 4},
{"value": 5, "movingAvg": 5}
]

And that's all there is to doing simple moving averages with tidy.

Moving Average of Rates#

Working with rates is generally a bit more challenging than plain ol' numbers since we want to sum the numerator and denominator separately in each window as opposed to averaging the sum of rates from each item. Here's where the meanRate summarizer comes in handy.

Input Data

[
{"numer": 1, "denom": 2},
{"numer": 2, "denom": 6},
{"numer": 3, "denom": 7},
{"numer": 7, "denom": 12},
{"numer": 5, "denom": 6}
]

If we want to compute a 3-item moving average of the rate defined by numer / denom, we can do so as follows:

tidy(
data,
mutateWithSummary({
movingAvg: roll(3, meanRate('numer', 'denom')),
})
)

Output Data

[
{"numer": 1, "denom": 2},
{"numer": 2, "denom": 6},
{"numer": 3, "denom": 7, "movingAvg": 0.4},
{"numer": 7, "denom": 12, "movingAvg": 0.48},
{"numer": 5, "denom": 6, "movingAvg": 0.6}
]

Note that the incorrect way of doing it would involve averaging the rates:

tidy(
data,
mutate({
rate: rate('numer', 'denom'),
}),
mutateWithSummary({
movingAvgWrong: roll(3, mean('rate')),
movingAvgRight: roll(3, meanRate('numer', 'denom')),
})
)

Output Data with Wrong

numerdenomratemovingAvgWrongmovingAvgRight
1.002.000.500
2.006.000.333
3.007.000.4290.4210.400
7.0012.00.5830.4480.480
5.006.000.8330.6150.600

Moving Average by Date#

When working with time series data, we often want be able to re-aggregate the data to a variety of different granularities: e.g., a 7-day moving average (7DMA), 45DMA, 5-week moving average (5WMA), daily, weekly, and so on. For this purpose, we can use the summarizeMomentGranularity tidy function. Note this requires our dates to be stored as moment objects and that moment is installed as a dependency in our project.

If projects are not using moment but would like this functionality, please get in touch and we can figure out a reusable solution.

Let's look at an example where we compute a 2-week moving average of value.

Input Data

datevalue
"2020-01-01T00:00:00.000Z"3.00
"2020-01-02T00:00:00.000Z"1.00
"2020-01-03T00:00:00.000Z"4.00
"2020-01-04T00:00:00.000Z"5.00
"2020-01-05T00:00:00.000Z"2.00
"2020-01-06T00:00:00.000Z"4.00
"2020-01-07T00:00:00.000Z"3.00
"2020-01-08T00:00:00.000Z"1.00
1 of 4

The first step is to rollup our data from being at a daily granularity to say a weekly granularity before we compute our moving average.

tidy(
data,
summarizeMomentGranularity('w', { value: sum('value') })
);

At this point, our data has been summed up per week.

Output Weekly Data

valuedatetimestamp
15.02019-12-30T00:00:00.000Z2019-12-30T00:00:00.000Z
21.02020-01-06T00:00:00.000Z2020-01-06T00:00:00.000Z
20.02020-01-13T00:00:00.000Z2020-01-13T00:00:00.000Z
19.02020-01-20T00:00:00.000Z2020-01-20T00:00:00.000Z

We are now ready to compute our moving average:

tidy(
data,
summarizeMomentGranularity('w', { value: sum('value') }),
mutateWithSummary({
movingAvg: roll(2, mean('value'))
})
);

Output Data

valuedatetimestampmovingAvg
15.02019-12-23T00:00:00.000Z2019-12-23T00:00:00.000Z
21.02019-12-30T00:00:00.000Z2019-12-30T00:00:00.000Z18.0
20.02020-01-06T00:00:00.000Z2020-01-06T00:00:00.000Z20.5
19.02020-01-13T00:00:00.000Z2020-01-13T00:00:00.000Z19.5

And we're done, in two steps we've moved from daily values in our input data to weekly values which include a 2-week moving average.

Moving Average by Date with Zerofill#

We often end up with data that is missing values for some dates, which throws off the windows used to compute moving averages. To get around this, we can use complete to expand our data to include zeroes (or other values) where data is missing in a sequence.

Consider the following data:

Input Data

datevalue
"2020-01-06T00:00:00.000Z"4.00
"2020-01-07T00:00:00.000Z"3.00
"2020-01-08T00:00:00.000Z"1.00
"2020-01-11T00:00:00.000Z"2.00
"2020-01-12T00:00:00.000Z"5.00
"2020-01-13T00:00:00.000Z"6.00
"2020-01-14T00:00:00.000Z"1.00
"2020-01-17T00:00:00.000Z"3.00
1 of 2

It's missing values for January 9, 10, 15, 16, and 18. If we run our tidy flow on it to compute a 7-day moving average without accounting for these missing values we get

tidy(
data,
mutateWithSummary({
movingAvg: roll(7, mean('value'), { partial: true })
})
);

Output Data

datevaluemovingAvg
2020-01-06T00:00:00.000Z4.004.00
2020-01-07T00:00:00.000Z3.003.50
2020-01-08T00:00:00.000Z1.002.67
2020-01-11T00:00:00.000Z2.002.50
2020-01-12T00:00:00.000Z5.003.00
2020-01-13T00:00:00.000Z6.003.50
2020-01-14T00:00:00.000Z1.003.14
2020-01-17T00:00:00.000Z3.003.00
1 of 2

As you can see, the moving average doesn't account for the missing days.

To get around this, we can use complete on the data to expand it to include rows for when there is data missing from the expected day-by-day sequence. Since our date column uses moments, we will have to convert it to an ISO timestamp string first so we can use fullSeqDateISOString on it. This can be done via summarizeMomentGranularity as shown above or with a simple mutate since we're going to work with daily data.

tidy(
data,
mutate({ timestamp: d => d.date.toISOString() }),
complete(
{ timestamp: fullSeqDateISOString('timestamp', 'day') },
{ value: 0 }
),
mutateWithSummary({
movingAvg: roll(7, mean('value'), { partial: true })
})
);

Alternative example with summarizeMomentGranularity – granularity should match in fullSeqDateISOString and summarizeMomentGranularity

tidy(
data,
summarizeMomentGranularity('day', { value: sum('value') }),
complete(
{ timestamp: fullSeqDateISOString('timestamp', 'day') },
{ value: 0 }
),
mutateWithSummary({
movingAvg: roll(7, mean('value'), { partial: true })
})
);

Output Data

timestampdatevaluemovingAvg
2020-01-06T00:00:00.000Z2020-01-06T00:00:00.000Z4.004.00
2020-01-07T00:00:00.000Z2020-01-07T00:00:00.000Z3.003.50
2020-01-08T00:00:00.000Z2020-01-08T00:00:00.000Z1.002.67
2020-01-09T00:00:00.000Z0.002.00
2020-01-10T00:00:00.000Z0.001.60
2020-01-11T00:00:00.000Z2020-01-11T00:00:00.000Z2.001.67
2020-01-12T00:00:00.000Z2020-01-12T00:00:00.000Z5.002.14
2020-01-13T00:00:00.000Z2020-01-13T00:00:00.000Z6.002.43
1 of 2

Now we can see that rows have been added with value: 0 for the missing dates in the sequence, which enables our moving average to be computed correctly.

Last updated on by Peter Beshai
- + - + diff --git a/docs/getting_started/index.html b/docs/getting_started/index.html index 6d29496..3e12a6d 100644 --- a/docs/getting_started/index.html +++ b/docs/getting_started/index.html @@ -8,10 +8,10 @@ Getting Started | tidy.js - + - + @@ -25,10 +25,10 @@
const data = [
{ key: 'group1', value: 10 },
{ key: 'group2', value: 9 },
{ key: 'group1', value: 7 }
]
const results = tidy(
data,
groupBy('key', [
summarize({ total: sum('value') })
])
)

This produces the following results:

[
{ "key": "group1", "total": 17 },
{ "key": "group2", "total": 9 },
]
Last updated on by Peter Beshai
- + - + diff --git a/docs/tidy-moment/tidy_moment/index.html b/docs/tidy-moment/tidy_moment/index.html index 147c827..48164de 100644 --- a/docs/tidy-moment/tidy_moment/index.html +++ b/docs/tidy-moment/tidy_moment/index.html @@ -8,10 +8,10 @@ tidy-moment API | tidy.js - + - + @@ -23,10 +23,10 @@

tidy-moment API

Dependency: moment >= 2.0.0

Note these functions are not included in the core tidy.js package and must be installed separately.

summarizeMomentGranularity#

Summarizes input data into bins set by a granularity (day, week, month, year) of UTC moment dates. Assumes input data is by day. By default uses date and timestamp as the keys to track the date, but can be configured via options.

Typically used as a precursor to a moving average computed by a subsequence mutate({ value: roll(...) }) command.

Parameters#

granularity#

| 'd'
| 'days'
| 'w'
| 'weeks'
| 'm'
| 'months'
| 'q'
| 'quarters'
| 'y'
| 'years'

summarizeSpec#

{
[string /* key in output */]: (items: object[]) => any
}

Mapping from key to summary functions, the same as used in summarize.

options?#

{
dateKey?: string = 'date',
timestampKey?: string = 'timestamp',
rest?: (key: string) => (items: object[]) => any
}
  • dateKey = 'date': The key in the input objects where the UTC moment dates are stored. Will be modified to be at the specified granularity.
  • timestampKey = 'timestamp': An ISO string of the rolled up date will be saved on this key.
  • rest = first: The same as used in summarize, defaults to first value encountered.

Usage#

const data = [
{ str: 'foo', date: moment.utc('2020-01-01'), value: 3 },
{ str: 'foo', date: moment.utc('2020-01-03'), value: 1 },
{ str: 'bar', date: moment.utc('2020-01-10'), value: 3 },
{ str: 'bar', date: moment.utc('2020-01-21'), value: 1 },
{ str: 'bar', date: moment.utc('2020-01-29'), value: 2 },
{ str: 'bar', date: moment.utc('2020-02-01'), value: 5 },
];
tidy(
data,
summarizeMomentGranularity('weeks', { value: sum('value') })
);
// output:
[
{
value: 4,
str: 'foo',
date: moment.utc('2019-12-30'),
timestamp: '2019-12-30T00:00:00.000Z',
},
{
value: 3,
str: 'bar',
date: moment.utc('2020-01-06'),
timestamp: '2020-01-06T00:00:00.000Z',
},
{
value: 1,
str: 'bar',
date: moment.utc('2020-01-20'),
timestamp: '2020-01-20T00:00:00.000Z',
},
{
value: 7,
str: 'bar',
date: moment.utc('2020-01-27'),
timestamp: '2020-01-27T00:00:00.000Z',
},
]
Last updated on by Andy Reagan
- + - + diff --git a/index.html b/index.html index 54a27d8..2010969 100644 --- a/index.html +++ b/index.html @@ -8,20 +8,20 @@ tidy.js - + - +

Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = /tidy/

We suggest trying baseUrl =

Tidy.js Logo

Tidy up your data with JavaScript

Readable code

tidy.js prioritizes making your data transformations readable, so future you and your teammates can get up and running quickly.

Standard transformation verbs

Inspired by dplyr and the tidyverse in R, tidy.js is built using battle-tested verbs that can handle any data wrangling need.

Work with plain JS objects

No wrapper classes needed — all tidy.js needs is an array of plain old-fashioned JS objects to get started.

- + - + \ No newline at end of file diff --git a/playground/index.html b/playground/index.html index eab8351..af6d718 100644 --- a/playground/index.html +++ b/playground/index.html @@ -8,22 +8,22 @@ Playground | tidy.js - + - + - +
Loading...

Input

namempgcyldisphpdratwtqsecvsamgearcarb
Mazda RX421.06.001601103.902.6216.50.001.004.004.00
Mazda RX4 Wag21.06.001601103.902.8817.00.001.004.004.00
Datsun 71022.84.0010893.03.852.3218.61.001.004.001.00
Hornet 4 Drive21.46.002581103.083.2119.41.000.003.001.00
Hornet Sportabout18.78.003601753.153.4417.00.000.003.002.00
Valiant18.16.002251052.763.4620.21.000.003.001.00
Duster 36014.38.003602453.213.5715.80.000.003.004.00
Merc 240D24.44.0014762.03.693.1920.01.000.004.002.00
1 of 4

Output

cylgearnmpghpwt
8.003.0012.015.01944.10
4.004.008.0026.976.02.38
6.004.004.0019.81173.09
4.005.002.0028.21021.83
6.003.002.0019.81083.34
8.005.002.0015.43003.37
4.003.001.0021.597.02.46
6.005.001.0019.71752.77
- + - + - + \ No newline at end of file diff --git a/runtime~main.b5ba7626.js b/runtime~main.fdc3a0bc.js similarity index 93% rename from runtime~main.b5ba7626.js rename to runtime~main.fdc3a0bc.js index 8a4abb6..042eb81 100644 --- a/runtime~main.b5ba7626.js +++ b/runtime~main.fdc3a0bc.js @@ -1 +1 @@ -!function(e){function r(r){for(var n,c,f=r[0],u=r[1],i=r[2],d=0,b=[];d Search the documentation | tidy.js - + - - + +

Search the documentation

- + - - + + \ No newline at end of file