-
Notifications
You must be signed in to change notification settings - Fork 1
/
1.6ba1c2e4.js
2 lines (2 loc) · 47.2 KB
/
1.6ba1c2e4.js
1
2
/*! For license information please see 1.6ba1c2e4.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{160:function(e,t,n){"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}t.a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},161:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(168);Object.defineProperty(t,"useThemeConfig",{enumerable:!0,get:function(){return r.useThemeConfig}});var a=n(178);Object.defineProperty(t,"docVersionSearchTag",{enumerable:!0,get:function(){return a.docVersionSearchTag}}),Object.defineProperty(t,"DEFAULT_SEARCH_TAG",{enumerable:!0,get:function(){return a.DEFAULT_SEARCH_TAG}});var o=n(169);Object.defineProperty(t,"isDocsPluginEnabled",{enumerable:!0,get:function(){return o.isDocsPluginEnabled}});var c=n(182);Object.defineProperty(t,"isSamePath",{enumerable:!0,get:function(){return c.isSamePath}});var i=n(183);Object.defineProperty(t,"useDocsPreferredVersion",{enumerable:!0,get:function(){return i.useDocsPreferredVersion}}),Object.defineProperty(t,"useDocsPreferredVersionByPluginId",{enumerable:!0,get:function(){return i.useDocsPreferredVersionByPluginId}});var u=n(170);Object.defineProperty(t,"DocsPreferredVersionContextProvider",{enumerable:!0,get:function(){return u.DocsPreferredVersionContextProvider}})},162:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(11),c=n(167),i=n(8),u=Object(r.createContext)({collectLink:function(){}}),s=n(165),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};t.a=function(e){var t,n,d,f=e.isNavLink,m=e.to,v=e.href,h=e.activeClassName,b=e.isActive,g=e["data-noBrokenLinkCheck"],p=l(e,["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck"]),O=Object(s.b)().withBaseUrl,E=Object(r.useContext)(u),j=m||v,y=Object(c.a)(j),k=null==j?void 0:j.replace("pathname://",""),C=void 0!==k?function(e){return e.startsWith("/")}(n=k)?O(n):n:void 0,_=Object(r.useRef)(!1),w=f?o.e:o.c,D=i.a.canUseIntersectionObserver;Object(r.useEffect)((function(){return!D&&y&&window.docusaurus.prefetch(C),function(){D&&d&&d.disconnect()}}),[C,D,y]);var P=null!==(t=null==C?void 0:C.startsWith("#"))&&void 0!==t&&t,S=!C||!y||P;return C&&y&&!P&&!g&&E.collectLink(C),S?a.a.createElement("a",Object.assign({href:C},j&&!y&&{target:"_blank",rel:"noopener noreferrer"},p)):a.a.createElement(w,Object.assign({},p,{onMouseEnter:function(){_.current||(window.docusaurus.preload(C),_.current=!0)},innerRef:function(e){var t,n;D&&e&&y&&(t=e,n=function(){window.docusaurus.prefetch(C)},(d=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(d.unobserve(t),d.disconnect(),n())}))}))).observe(t))},to:C||""},f&&{isActive:b,activeClassName:h}))}},163:function(e,t,n){try{e.exports=n(179)}catch(r){e.exports={}}},164:function(e,t,n){"use strict";n.r(t);var r=n(11);n.d(t,"MemoryRouter",(function(){return r.d})),n.d(t,"Prompt",(function(){return r.f})),n.d(t,"Redirect",(function(){return r.g})),n.d(t,"Route",(function(){return r.h})),n.d(t,"Router",(function(){return r.i})),n.d(t,"StaticRouter",(function(){return r.j})),n.d(t,"Switch",(function(){return r.k})),n.d(t,"generatePath",(function(){return r.l})),n.d(t,"matchPath",(function(){return r.m})),n.d(t,"useHistory",(function(){return r.n})),n.d(t,"useLocation",(function(){return r.o})),n.d(t,"useParams",(function(){return r.p})),n.d(t,"useRouteMatch",(function(){return r.q})),n.d(t,"withRouter",(function(){return r.r})),n.d(t,"BrowserRouter",(function(){return r.a})),n.d(t,"HashRouter",(function(){return r.b})),n.d(t,"Link",(function(){return r.c})),n.d(t,"NavLink",(function(){return r.e}))},165:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(22),a=n(167);function o(){var e=Object(r.default)().siteConfig,t=(e=void 0===e?{}:e).baseUrl,n=void 0===t?"/":t,o=e.url;return{withBaseUrl:function(e,t){return function(e,t,n,r){var o=void 0===r?{}:r,c=o.forcePrependBaseUrl,i=void 0!==c&&c,u=o.absolute,s=void 0!==u&&u;if(!n)return n;if(n.startsWith("#"))return n;if(Object(a.b)(n))return n;if(i)return t+n;var l=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+l:l}(o,n,e,t)}}}function c(e,t){return void 0===t&&(t={}),(0,o().withBaseUrl)(e,t)}},166:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(160),c=n(61),i=n.n(c);var u=function(){return a.a.createElement("nav",{"aria-label":"Skip navigation links"},a.a.createElement("button",{type:"button",tabIndex:0,className:i.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=n(161),l=n(172),d=n(62),f=n.n(d);var m=function(){var e,t=Object(l.a)(),n=t.isAnnouncementBarClosed,r=t.closeAnnouncementBar,c=Object(s.useThemeConfig)().announcementBar;if(!c)return null;var i=c.content,u=c.backgroundColor,d=c.textColor,m=c.isCloseable;return!i||m&&n?null:a.a.createElement("div",{className:f.a.announcementBar,style:{backgroundColor:u,color:d},role:"banner"},a.a.createElement("div",{className:Object(o.a)(f.a.announcementBarContent,(e={},e[f.a.announcementBarCloseable]=m,e)),dangerouslySetInnerHTML:{__html:i}}),m?a.a.createElement("button",{type:"button",className:f.a.announcementBarClose,onClick:r,"aria-label":"Close"},a.a.createElement("span",{"aria-hidden":"true"},"\xd7")):null)},v=n(3),h=n(7),b=n(25),g=n(22),p=n(164),O=n(165),E=n(162),j=n(24),y=n(195);function k(){return a.a.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},a.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=n(196);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(u){a=!0,o=u}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P="Ctrl";function S(){return"undefined"==typeof navigator?P:/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)}var N=a.a.forwardRef((function(e,t){var n=w(Object(r.useState)((function(){return S()?"\u2318":P})),2),o=n[0],c=n[1];return Object(r.useEffect)((function(){S()&&c("\u2318")}),[]),a.a.createElement("button",_({type:"button",className:"DocSearch DocSearch-Button","aria-label":"Search"},e,{ref:t}),a.a.createElement(C.a,null),a.a.createElement("span",{className:"DocSearch-Button-Placeholder"},"Search"),a.a.createElement("span",{className:"DocSearch-Button-Key"},o===P?a.a.createElement(k,null):o),a.a.createElement("span",{className:"DocSearch-Button-Key"},"K"))})),A=n(163);function V(){var e,t,n,r=(e=Object(A.useAllDocsData)(),t=Object(A.useActivePluginAndVersion)(),n=Object(s.useDocsPreferredVersionByPluginId)(),{language:"en",tags:[s.DEFAULT_SEARCH_TAG].concat(Object.keys(e).map((function(r){var a,o,c=(null==t||null===(a=t.activePlugin)||void 0===a?void 0:a.pluginId)===r?t.activeVersion:void 0,i=n[r],u=e[r].versions.find((function(e){return e.isLast})),l=null!==(o=null!=c?c:i)&&void 0!==o?o:u;return Object(s.docVersionSearchTag)(r,l.name)})))});return["language:"+r.language,r.tags.map((function(e){return"docusaurus_tag:"+e}))]}var L=null;function T(e){var t=e.hit,n=e.children;return a.a.createElement(E.a,{to:t.url},n)}function I(e){var t=e.state,n=e.onClose,r=Object(y.a)().generateSearchPageLink;return a.a.createElement(E.a,{to:r(t.query),onClick:n},"See all ",t.context.nbHits," results")}function x(e){var t,o,c=e.contextualSearch,i=Object(h.a)(e,["contextualSearch"]),u=Object(g.default)().siteMetadata,s=V(),l=null!==(t=null===(o=i.searchParameters)||void 0===o?void 0:o.facetFilters)&&void 0!==t?t:[],d=c?[].concat(s,l):l,f=Object.assign({},i.searchParameters,{facetFilters:d}),m=Object(O.b)().withBaseUrl,E=Object(p.useHistory)(),y=Object(r.useRef)(null),k=Object(r.useState)(!1),C=k[0],_=k[1],w=Object(r.useState)(null),D=w[0],P=w[1],S=Object(r.useCallback)((function(){return L?Promise.resolve():Promise.all([n.e(88).then(n.bind(null,338)),Promise.all([n.e(0),n.e(89)]).then(n.bind(null,337)),n.e(0).then(n.t.bind(null,158,7))]).then((function(e){var t=e[0].DocSearchModal;L=t}))}),[]),A=Object(r.useCallback)((function(){S().then((function(){_(!0)}))}),[S,_]),x=Object(r.useCallback)((function(){_(!1)}),[_]),M=Object(r.useCallback)((function(e){S().then((function(){_(!0),P(e.key)}))}),[S,_,P]),B=Object(r.useRef)({navigate:function(e){var t=e.suggestionUrl;E.push(t)}}).current,R=Object(r.useRef)((function(e){return e.map((function(e){var t=document.createElement("a");return t.href=e.url,Object.assign({},e,{url:m(""+t.pathname+t.hash)})}))})).current,U=Object(r.useMemo)((function(){return function(e){return a.a.createElement(I,Object(v.a)({},e,{onClose:x}))}}),[x]),F=Object(r.useCallback)((function(e){return e.addAlgoliaAgent("docusaurus",u.docusaurusVersion),e}),[u.docusaurusVersion]);return function(e){var t=e.isOpen,n=e.onOpen,r=e.onClose,o=e.onInput,c=e.searchButtonRef;a.a.useEffect((function(){function e(e){(27===e.keyCode&&t||"k"===e.key&&(e.metaKey||e.ctrlKey)||!function(e){var t=e.target,n=t.tagName;return t.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n}(e)&&"/"===e.key&&!t)&&(e.preventDefault(),t?r():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||n()),c&&c.current===document.activeElement&&o&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&o(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t,n,r,o,c])}({isOpen:C,onOpen:A,onClose:x,onInput:M,searchButtonRef:y}),a.a.createElement(a.a.Fragment,null,a.a.createElement(j.a,null,a.a.createElement("link",{rel:"preconnect",href:"https://"+i.appId+"-dsn.algolia.net",crossOrigin:"anonymous"})),a.a.createElement(N,{onTouchStart:S,onFocus:S,onMouseOver:S,onClick:A,ref:y}),C&&Object(b.createPortal)(a.a.createElement(L,Object(v.a)({onClose:x,initialScrollY:window.scrollY,initialQuery:D,navigator:B,transformItems:R,hitComponent:T,resultsFooterComponent:U,transformSearchClient:F},i,{searchParameters:f})),document.body))}var M=function(){var e=Object(g.default)().siteConfig;return a.a.createElement(x,e.themeConfig.algolia)},B=n(210),R=n.n(B),U=n(63),F=n.n(U),H=function(e){var t=e.icon,n=e.style;return a.a.createElement("span",{className:Object(o.a)(F.a.toggle,F.a.dark),style:n},t)},X=function(e){var t=e.icon,n=e.style;return a.a.createElement("span",{className:Object(o.a)(F.a.toggle,F.a.light),style:n},t)},G=function(e){var t=Object(s.useThemeConfig)().colorMode.switchConfig,n=t.darkIcon,r=t.darkIconStyle,o=t.lightIcon,c=t.lightIconStyle,i=Object(g.default)().isClient;return a.a.createElement(R.a,Object(v.a)({disabled:!i,icons:{checked:a.a.createElement(H,{icon:n,style:r}),unchecked:a.a.createElement(X,{icon:o,style:c})}},e))},K=n(174),W=n(198),q=function(e){var t=Object(p.useLocation)(),n=Object(r.useState)(!e),a=n[0],o=n[1],c=Object(r.useRef)(!1),i=Object(r.useState)(0),u=i[0],s=i[1],l=Object(r.useState)(0),d=l[0],f=l[1],m=Object(r.useCallback)((function(e){null!==e&&f(e.getBoundingClientRect().height)}),[]);return Object(W.a)((function(t){var n=t.scrollY;if(e&&!(n<d)){if(c.current)return c.current=!1,o(!1),void s(n);u&&0===n&&o(!0);var r=document.documentElement.scrollHeight-d,a=window.innerHeight;u&&n>=u?o(!1):n+a<r&&o(!0),s(n)}}),[u,d,c]),Object(r.useEffect)((function(){e&&u&&o(!0)}),[t.pathname]),Object(r.useEffect)((function(){e&&(c.current=!0)}),[t.hash]),{navbarRef:m,isNavbarVisible:a}},Y=n(199),z=n(200),J=n(175),Q={default:function(){return J.a},docsVersion:function(){return n(215).default},docsVersionDropdown:function(){return n(216).default},doc:function(){return n(217).default}};function Z(e){var t=e.type,n=Object(h.a)(e,["type"]),r=function(e){void 0===e&&(e="default");var t=Q[e];if(!t)throw new Error("No NavbarItem component found for type="+e+".");return t()}(t);return a.a.createElement(r,n)}var $=n(209),ee=n(65),te=n.n(ee),ne="right";var re=function(){var e,t,n=Object(s.useThemeConfig)(),c=n.navbar,i=c.items,u=c.hideOnScroll,l=c.style,d=n.colorMode.disableSwitch,f=Object(r.useState)(!1),m=f[0],h=f[1],b=Object(r.useState)(!1),g=b[0],p=b[1],O=Object(K.a)(),E=O.isDarkTheme,j=O.setLightTheme,y=O.setDarkTheme,k=q(u),C=k.navbarRef,_=k.isNavbarVisible;Object(Y.a)(m);var w=Object(r.useCallback)((function(){h(!0)}),[h]),D=Object(r.useCallback)((function(){h(!1)}),[h]),P=Object(r.useCallback)((function(e){return e.target.checked?y():j()}),[j,y]),S=Object(z.a)();Object(r.useEffect)((function(){S===z.b.desktop&&h(!1)}),[S]);var N=function(e){return{leftItems:e.filter((function(e){var t;return"left"===(null!==(t=e.position)&&void 0!==t?t:ne)})),rightItems:e.filter((function(e){var t;return"right"===(null!==(t=e.position)&&void 0!==t?t:ne)}))}}(i),A=N.leftItems,V=N.rightItems;return a.a.createElement("nav",{ref:C,className:Object(o.a)("navbar","navbar--fixed-top",(e={"navbar--dark":"dark"===l,"navbar--primary":"primary"===l,"navbar-sidebar--show":m},e[te.a.navbarHideable]=u,e[te.a.navbarHidden]=!_,e))},a.a.createElement("div",{className:"navbar__inner"},a.a.createElement("div",{className:"navbar__items"},null!=i&&0!==i.length&&a.a.createElement("div",{"aria-label":"Navigation bar toggle",className:"navbar__toggle",role:"button",tabIndex:0,onClick:w,onKeyDown:w},a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",role:"img",focusable:"false"},a.a.createElement("title",null,"Menu"),a.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))),a.a.createElement($.a,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:Object(o.a)("navbar__title",(t={},t[te.a.hideLogoText]=g,t))}),A.map((function(e,t){return a.a.createElement(Z,Object(v.a)({},e,{key:t}))}))),a.a.createElement("div",{className:"navbar__items navbar__items--right"},V.map((function(e,t){return a.a.createElement(Z,Object(v.a)({},e,{key:t}))})),!d&&a.a.createElement(G,{className:te.a.displayOnlyInLargeViewport,"aria-label":"Dark mode toggle",checked:E,onChange:P}),a.a.createElement(M,{handleSearchBarToggle:p,isSearchBarExpanded:g}))),a.a.createElement("div",{role:"presentation",className:"navbar-sidebar__backdrop",onClick:D}),a.a.createElement("div",{className:"navbar-sidebar"},a.a.createElement("div",{className:"navbar-sidebar__brand"},a.a.createElement($.a,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title",onClick:D}),!d&&m&&a.a.createElement(G,{"aria-label":"Dark mode toggle in sidebar",checked:E,onChange:P})),a.a.createElement("div",{className:"navbar-sidebar__items"},a.a.createElement("div",{className:"menu"},a.a.createElement("ul",{className:"menu__list"},i.map((function(e,t){return a.a.createElement(Z,Object(v.a)({mobile:!0},e,{onClick:D,key:t}))})))))))},ae=n(66),oe=n.n(ae);function ce(e){var t=e.to,n=e.href,r=e.label,o=e.prependBaseUrlToHref,c=Object(h.a)(e,["to","href","label","prependBaseUrlToHref"]),i=Object(O.a)(t),u=Object(O.a)(n,{forcePrependBaseUrl:!0});return a.a.createElement(E.a,Object(v.a)({className:"footer__link-item"},n?{target:"_blank",rel:"noopener noreferrer",href:o?u:n}:{to:i},c),r)}var ie=function(e){var t=e.url,n=e.alt;return a.a.createElement("img",{className:"footer__logo",alt:n,src:t})};var ue=function(){var e=Object(s.useThemeConfig)().footer,t=e||{},n=t.copyright,r=t.links,c=void 0===r?[]:r,i=t.logo,u=void 0===i?{}:i,l=Object(O.a)(u.src);return e?a.a.createElement("footer",{className:Object(o.a)("footer",{"footer--dark":"dark"===e.style})},a.a.createElement("div",{className:"container"},c&&c.length>0&&a.a.createElement("div",{className:"row footer__links"},c.map((function(e,t){return a.a.createElement("div",{key:t,className:"col footer__col"},null!=e.title?a.a.createElement("h4",{className:"footer__title"},e.title):null,null!=e.items&&Array.isArray(e.items)&&e.items.length>0?a.a.createElement("ul",{className:"footer__items"},e.items.map((function(e,t){return e.html?a.a.createElement("li",{key:t,className:"footer__item",dangerouslySetInnerHTML:{__html:e.html}}):a.a.createElement("li",{key:e.href||e.to,className:"footer__item"},a.a.createElement(ce,e))}))):null)}))),(u||n)&&a.a.createElement("div",{className:"text--center"},u&&u.src&&a.a.createElement("div",{className:"margin-bottom--sm"},u.href?a.a.createElement("a",{href:u.href,target:"_blank",rel:"noopener noreferrer",className:oe.a.footerLogoLink},a.a.createElement(ie,{alt:u.alt,url:l})):a.a.createElement(ie,{alt:u.alt,url:l})),a.a.createElement("div",{dangerouslySetInnerHTML:{__html:n}})))):null},se=n(8),le="light",de="dark",fe=function(e){return e===de?de:le},me=function(){return se.a.canUseDOM?fe(document.documentElement.getAttribute("data-theme")):le},ve=function(e){try{localStorage.setItem("theme",fe(e))}catch(t){console.error(t)}},he=function(){var e=Object(s.useThemeConfig)().colorMode.disableSwitch,t=void 0!==e&&e,n=Object(r.useState)(me),a=n[0],o=n[1],c=Object(r.useCallback)((function(){o(le),ve(le)}),[]),i=Object(r.useCallback)((function(){o(de),ve(de)}),[]);return Object(r.useEffect)((function(){document.documentElement.setAttribute("data-theme",fe(a))}),[a]),Object(r.useEffect)((function(){if(!t)try{var e=localStorage.getItem("theme");null!==e&&o(fe(e))}catch(n){console.error(n)}}),[o]),Object(r.useEffect)((function(){t||window.matchMedia("(prefers-color-scheme: dark)").addListener((function(e){var t=e.matches;o(t?de:le)}))}),[]),{isDarkTheme:a===de,setLightTheme:c,setDarkTheme:i}},be=n(197);var ge=function(e){var t=he(),n=t.isDarkTheme,r=t.setLightTheme,o=t.setDarkTheme;return a.a.createElement(be.a.Provider,{value:{isDarkTheme:n,setLightTheme:r,setDarkTheme:o}},e.children)},pe="docusaurus.tab.",Oe=function(){var e=Object(r.useState)({}),t=e[0],n=e[1],a=Object(r.useCallback)((function(e,t){try{localStorage.setItem("docusaurus.tab."+e,t)}catch(n){console.error(n)}}),[]);return Object(r.useEffect)((function(){try{for(var e={},t=0;t<localStorage.length;t+=1){var r=localStorage.key(t);if(r.startsWith(pe))e[r.substring(pe.length)]=localStorage.getItem(r)}n(e)}catch(a){console.error(a)}}),[]),{tabGroupChoices:t,setTabGroupChoices:function(e,t){n((function(n){var r;return Object.assign({},n,((r={})[e]=t,r))})),a(e,t)}}},Ee="docusaurus.announcement.dismiss",je="docusaurus.announcement.id",ye=function(){var e=Object(s.useThemeConfig)().announcementBar,t=Object(r.useState)(!0),n=t[0],a=t[1],o=Object(r.useCallback)((function(){localStorage.setItem(Ee,"true"),a(!0)}),[]);return Object(r.useEffect)((function(){if(e){var t=e.id,n=localStorage.getItem(je);"annoucement-bar"===n&&(n="announcement-bar");var r=t!==n;localStorage.setItem(je,t),r&&localStorage.setItem(Ee,"false"),(r||"false"===localStorage.getItem(Ee))&&a(!1)}}),[]),{isAnnouncementBarClosed:n,closeAnnouncementBar:o}},ke=n(173);var Ce=function(e){var t=Oe(),n=t.tabGroupChoices,r=t.setTabGroupChoices,o=ye(),c=o.isAnnouncementBarClosed,i=o.closeAnnouncementBar;return a.a.createElement(ke.a.Provider,{value:{tabGroupChoices:n,setTabGroupChoices:r,isAnnouncementBarClosed:c,closeAnnouncementBar:i}},e.children)};function _e(e){var t=e.children;return a.a.createElement(ge,null,a.a.createElement(Ce,null,a.a.createElement(s.DocsPreferredVersionContextProvider,null,t)))}function we(e){var t=e.language,n=e.version,r=e.tag;return a.a.createElement(j.a,null,t&&a.a.createElement("meta",{name:"docsearch:language",content:""+t}),n&&a.a.createElement("meta",{name:"docsearch:version",content:n}),r&&a.a.createElement("meta",{name:"docsearch:docusaurus_tag",content:r}))}function De(e){var t=Object(g.default)().siteConfig,n=t.favicon,r=t.title,o=t.themeConfig,c=o.image,i=o.metadatas,u=t.url,l=t.titleDelimiter,d=e.title,f=e.description,m=e.image,h=e.keywords,b=e.permalink,p=e.searchMetadatas,E=d?d+" "+l+" "+r:r,y=m||c,k=Object(O.a)(y,{absolute:!0}),C=Object(O.a)(n);return a.a.createElement(a.a.Fragment,null,a.a.createElement(j.a,null,a.a.createElement("html",{lang:"en"}),E&&a.a.createElement("title",null,E),E&&a.a.createElement("meta",{property:"og:title",content:E}),n&&a.a.createElement("link",{rel:"shortcut icon",href:C}),f&&a.a.createElement("meta",{name:"description",content:f}),f&&a.a.createElement("meta",{property:"og:description",content:f}),h&&h.length&&a.a.createElement("meta",{name:"keywords",content:h.join(",")}),y&&a.a.createElement("meta",{property:"og:image",content:k}),y&&a.a.createElement("meta",{property:"twitter:image",content:k}),y&&a.a.createElement("meta",{name:"twitter:image:alt",content:"Image for "+E}),b&&a.a.createElement("meta",{property:"og:url",content:u+b}),b&&a.a.createElement("link",{rel:"canonical",href:u+b}),a.a.createElement("meta",{name:"twitter:card",content:"summary_large_image"})),a.a.createElement(we,Object(v.a)({tag:s.DEFAULT_SEARCH_TAG,language:"en"},p)),a.a.createElement(j.a,null,i.map((function(e,t){return a.a.createElement("meta",Object(v.a)({key:"metadata_"+t},e))}))))}n(67);var Pe=function(){Object(r.useEffect)((function(){var e="navigation-with-keyboard";function t(t){"keydown"===t.type&&"Tab"===t.key&&document.body.classList.add(e),"mousedown"===t.type&&document.body.classList.remove(e)}return document.addEventListener("keydown",t),document.addEventListener("mousedown",t),function(){document.body.classList.remove(e),document.removeEventListener("keydown",t),document.removeEventListener("mousedown",t)}}),[])};n(68);t.a=function(e){var t=e.children,n=e.noFooter,r=e.wrapperClassName;return Pe(),a.a.createElement(_e,null,a.a.createElement(De,e),a.a.createElement(u,null),a.a.createElement(m,null),a.a.createElement(re,null),a.a.createElement("div",{className:Object(o.a)("main-wrapper",r)},t),!n&&a.a.createElement(ue,null))}},167:function(e,t,n){"use strict";function r(e){return!0===/^(\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},168:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useThemeConfig=void 0;var a=r(n(22));t.useThemeConfig=function(){return a.default().siteConfig.themeConfig}},169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocsPluginEnabled=void 0;var r=n(163);t.isDocsPluginEnabled=!!r.useAllDocsData},170:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useDocsPreferredVersionContext=t.DocsPreferredVersionContextProvider=void 0;var i=o(n(0)),u=n(168),s=n(169),l=n(163),d=c(n(184));function f(e){var t=e.pluginIds,n=e.versionPersistence,r=e.allDocsData;var a={};return t.forEach((function(e){a[e]=function(e){var t=d.default.read(e,n);return r[e].versions.some((function(e){return e.name===t}))?{preferredVersionName:t}:(d.default.clear(e,n),{preferredVersionName:null})}(e)})),a}function m(){var e=l.useAllDocsData(),t=u.useThemeConfig().docs.versionPersistence,n=i.useMemo((function(){return Object.keys(e)}),[e]),r=i.useState((function(){return function(e){var t={};return e.forEach((function(e){t[e]={preferredVersionName:null}})),t}(n)})),a=r[0],o=r[1];return i.useEffect((function(){o(f({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]),[a,i.useMemo((function(){return{savePreferredVersion:function(e,n){d.default.save(e,t,n),o((function(t){var r;return Object.assign(Object.assign({},t),((r={})[e]={preferredVersionName:n},r))}))}}}),[o])]}var v=i.createContext(null);function h(e){var t=e.children,n=m();return i.default.createElement(v.Provider,{value:n},t)}t.DocsPreferredVersionContextProvider=function(e){var t=e.children;return s.isDocsPluginEnabled?i.default.createElement(h,null,t):i.default.createElement(i.default.Fragment,null,t)},t.useDocsPreferredVersionContext=function(){var e=i.useContext(v);if(!e)throw new Error("Can't find docs preferred context, maybe you forgot to use the DocsPreferredVersionContextProvider ?");return e}},172:function(e,t,n){"use strict";var r=n(0),a=n(173);t.a=function(){var e=Object(r.useContext)(a.a);if(null==e)throw new Error("`useUserPreferencesContext` is used outside of `Layout` Component.");return e}},173:function(e,t,n){"use strict";var r=n(0),a=Object(r.createContext)(void 0);t.a=a},174:function(e,t,n){"use strict";var r=n(0),a=n(197);t.a=function(){var e=Object(r.useContext)(a.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}},175:function(e,t,n){"use strict";var r=n(3),a=n(7),o=n(0),c=n.n(o),i=n(160),u=n(162),s=n(165),l=n(164),d=n(161);function f(e){var t=e.activeBasePath,n=e.activeBaseRegex,o=e.to,i=e.href,l=e.label,d=e.activeClassName,f=void 0===d?"navbar__link--active":d,m=e.prependBaseUrlToHref,v=Object(a.a)(e,["activeBasePath","activeBaseRegex","to","href","label","activeClassName","prependBaseUrlToHref"]),h=Object(s.a)(o),b=Object(s.a)(t),g=Object(s.a)(i,{forcePrependBaseUrl:!0});return c.a.createElement(u.a,Object(r.a)({},i?{target:"_blank",rel:"noopener noreferrer",href:m?g:i}:Object.assign({isNavLink:!0,activeClassName:f,to:h},t||n?{isActive:function(e,t){return n?new RegExp(n).test(t.pathname):t.pathname.startsWith(b)}}:null),v),l)}function m(e){var t=e.items,n=e.position,u=e.className,s=Object(a.a)(e,["items","position","className"]),l=Object(o.useRef)(null),d=Object(o.useRef)(null),m=Object(o.useState)(!1),v=m[0],h=m[1];Object(o.useEffect)((function(){var e=function(e){l.current&&!l.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[l]);var b=function(e,t){return void 0===t&&(t=!1),Object(i.a)({"navbar__item navbar__link":!t,dropdown__link:t},e)};return t?c.a.createElement("div",{ref:l,className:Object(i.a)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--left":"left"===n,"dropdown--right":"right"===n,"dropdown--show":v})},c.a.createElement(f,Object(r.a)({className:b(u)},s,{onClick:s.to?void 0:function(e){return e.preventDefault()},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),h(!v))}}),s.label),c.a.createElement("ul",{ref:d,className:"dropdown__menu"},t.map((function(e,n){var o=e.className,i=Object(a.a)(e,["className"]);return c.a.createElement("li",{key:n},c.a.createElement(f,Object(r.a)({onKeyDown:function(e){if(n===t.length-1&&"Tab"===e.key){e.preventDefault(),h(!1);var r=l.current.nextElementSibling;r&&r.focus()}},activeClassName:"dropdown__link--active",className:b(o,!0)},i)))})))):c.a.createElement(f,Object(r.a)({className:b(u)},s))}function v(e){var t,n,u=e.items,s=e.className,m=(e.position,Object(a.a)(e,["items","className","position"])),v=Object(o.useRef)(null),h=Object(l.useLocation)().pathname,b=Object(o.useState)((function(){var e;return null===(e=!(null!=u&&u.some((function(e){return Object(d.isSamePath)(e.to,h)}))))||void 0===e||e})),g=b[0],p=b[1],O=function(e,t){return void 0===t&&(t=!1),Object(i.a)("menu__link",{"menu__link--sublist":t},e)};if(!u)return c.a.createElement("li",{className:"menu__list-item"},c.a.createElement(f,Object(r.a)({className:O(s)},m)));var E=null!==(t=v.current)&&void 0!==t&&t.scrollHeight?(null===(n=v.current)||void 0===n?void 0:n.scrollHeight)+"px":void 0;return c.a.createElement("li",{className:Object(i.a)("menu__list-item",{"menu__list-item--collapsed":g})},c.a.createElement(f,Object(r.a)({role:"button",className:O(s,!0)},m,{onClick:function(){p((function(e){return!e}))}}),m.label),c.a.createElement("ul",{className:"menu__list",ref:v,style:{height:g?void 0:E}},u.map((function(e,t){var n=e.className,o=Object(a.a)(e,["className"]);return c.a.createElement("li",{className:"menu__list-item",key:t},c.a.createElement(f,Object(r.a)({activeClassName:"menu__link--active",className:O(n)},o,{onClick:m.onClick})))}))))}t.a=function(e){var t=e.mobile,n=void 0!==t&&t,r=Object(a.a)(e,["mobile"]),o=n?v:m;return c.a.createElement(o,r)}},178:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.docVersionSearchTag=t.DEFAULT_SEARCH_TAG=void 0,t.DEFAULT_SEARCH_TAG="default",t.docVersionSearchTag=function(e,t){return"docs-"+e+"-"+t}},179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDocVersionSuggestions=t.useActiveDocContext=t.useActiveVersion=t.useLatestVersion=t.useVersions=t.useActivePluginAndVersion=t.useActivePlugin=t.useDocsData=t.useAllDocsData=void 0;var r=n(164),a=n(180),o=n(181);t.useAllDocsData=function(){return a.useAllPluginInstancesData("docusaurus-plugin-content-docs")},t.useDocsData=function(e){return a.usePluginData("docusaurus-plugin-content-docs",e)},t.useActivePlugin=function(e){void 0===e&&(e={});var n=t.useAllDocsData(),a=r.useLocation().pathname;return o.getActivePlugin(n,a,e)},t.useActivePluginAndVersion=function(e){void 0===e&&(e={});var n=t.useActivePlugin(e),a=r.useLocation().pathname;if(n)return{activePlugin:n,activeVersion:o.getActiveVersion(n.pluginData,a)}},t.useVersions=function(e){return t.useDocsData(e).versions},t.useLatestVersion=function(e){var n=t.useDocsData(e);return o.getLatestVersion(n)},t.useActiveVersion=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return o.getActiveVersion(n,a)},t.useActiveDocContext=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return o.getActiveDocContext(n,a)},t.useDocVersionSuggestions=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return o.getDocVersionSuggestions(n,a)}},180:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a})),n.d(t,"useAllPluginInstancesData",(function(){return o})),n.d(t,"usePluginData",(function(){return c}));var r=n(22);function a(){var e=Object(r.default)().globalData;if(!e)throw new Error("Docusaurus global data not found");return e}function o(e){var t=a()[e];if(!t)throw new Error("Docusaurus plugin global data not found for pluginName="+e);return t}function c(e,t){void 0===t&&(t="default");var n=o(e)[t];if(!n)throw new Error("Docusaurus plugin global data not found for pluginName="+e+" and pluginId="+t);return n}},181:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocVersionSuggestions=t.getActiveDocContext=t.getActiveVersion=t.getLatestVersion=t.getActivePlugin=void 0;var r=n(164);t.getActivePlugin=function(e,t,n){void 0===n&&(n={});var a=Object.entries(e).find((function(e){e[0];var n=e[1];return!!r.matchPath(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error("Can't find active docs plugin for pathname="+t+", while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: "+Object.values(e).map((function(e){return e.path})).join(", "));return o},t.getLatestVersion=function(e){return e.versions.find((function(e){return e.isLast}))},t.getActiveVersion=function(e,n){var a=t.getLatestVersion(e);return[].concat(e.versions.filter((function(e){return e!==a})),[a]).find((function(e){return!!r.matchPath(n,{path:e.path,exact:!1,strict:!1})}))},t.getActiveDocContext=function(e,n){var a,o,c=t.getActiveVersion(e,n),i=null==c?void 0:c.docs.find((function(e){return!!r.matchPath(n,{path:e.path,exact:!0,strict:!1})}));return{activeVersion:c,activeDoc:i,alternateDocVersions:i?(a=i.id,o={},e.versions.forEach((function(e){e.docs.forEach((function(t){t.id===a&&(o[e.name]=t)}))})),o):{}}},t.getDocVersionSuggestions=function(e,n){var r=t.getLatestVersion(e),a=t.getActiveDocContext(e,n),o=a.activeVersion!==r;return{latestDocSuggestion:o?null==a?void 0:a.alternateDocVersions[r.name]:void 0,latestVersionSuggestion:o?r:void 0}}},182:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSamePath=void 0,t.isSamePath=function(e,t){var n=function(e){return!e||(null==e?void 0:e.endsWith("/"))?e:e+"/"};return n(e)===n(t)}},183:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDocsPreferredVersionByPluginId=t.useDocsPreferredVersion=void 0;var r=n(0),a=n(170),o=n(163),c=n(185);t.useDocsPreferredVersion=function(e){void 0===e&&(e=c.DEFAULT_PLUGIN_ID);var t=o.useDocsData(e),n=a.useDocsPreferredVersionContext(),i=n[0],u=n[1],s=i[e].preferredVersionName;return{preferredVersion:s?t.versions.find((function(e){return e.name===s})):null,savePreferredVersionName:r.useCallback((function(t){u.savePreferredVersion(e,t)}),[u])}},t.useDocsPreferredVersionByPluginId=function(){var e=o.useAllDocsData(),t=a.useDocsPreferredVersionContext()[0],n=Object.keys(e),r={};return n.forEach((function(n){r[n]=function(n){var r=e[n],a=t[n].preferredVersionName;return a?r.versions.find((function(e){return e.name===a})):null}(n)})),r}},184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return"docs-preferred-version-"+e},a={save:function(e,t,n){"none"===t||window.localStorage.setItem(r(e),n)},read:function(e,t){return"none"===t?null:window.localStorage.getItem(r(e))},clear:function(e,t){"none"===t||window.localStorage.removeItem(r(e))}};t.default=a},185:function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_PLUGIN_ID",(function(){return r}));var r="default"},195:function(e,t,n){"use strict";var r=n(164),a=n(8),o=n(22);t.a=function(){var e=Object(r.useHistory)(),t=Object(r.useLocation)(),n=Object(o.default)().siteConfig,c=(n=void 0===n?{}:n).baseUrl;return{searchValue:a.a.canUseDOM&&new URLSearchParams(t.search).get("q")||"",updateSearchPath:function(n){var r=new URLSearchParams(t.search);n?r.set("q",n):r.delete("q"),e.replace({search:r.toString()})},generateSearchPageLink:function(e){return c+"search?q="+encodeURIComponent(e)}}}},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),a=n.n(r);function o(){return a.a.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},a.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"}))}},197:function(e,t,n){"use strict";var r=n(0),a=n.n(r).a.createContext(void 0);t.a=a},198:function(e,t,n){"use strict";var r=n(0),a=n(8),o=function(){return{scrollX:a.a.canUseDOM?window.pageXOffset:0,scrollY:a.a.canUseDOM?window.pageYOffset:0}};t.a=function(e,t){void 0===t&&(t=[]);var n=Object(r.useState)(o()),a=n[0],c=n[1],i=function(){var t=o();c(t),e&&e(t)};return Object(r.useEffect)((function(){var e={passive:!0};return window.addEventListener("scroll",i,e),function(){return window.removeEventListener("scroll",i,e)}}),t),a}},199:function(e,t,n){"use strict";var r=n(0);t.a=function(e){void 0===e&&(e=!0),Object(r.useEffect)((function(){return document.body.style.overflow=e?"hidden":"visible",function(){document.body.style.overflow="visible"}}),[e])}},200:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(0),a={desktop:"desktop",mobile:"mobile"};t.a=function(){var e="undefined"!=typeof window;function t(){if(e)return window.innerWidth>996?a.desktop:a.mobile}var n=Object(r.useState)(t),o=n[0],c=n[1];return Object(r.useEffect)((function(){if(e)return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)};function n(){c(t())}}),[]),o}},209:function(e,t,n){"use strict";var r=n(3),a=n(7),o=n(0),c=n.n(o),i=n(162),u=n(160),s=n(22),l=n(174),d=n(64),f=n.n(d),m=function(e){var t=Object(s.default)().isClient,n=Object(l.a)().isDarkTheme,o=e.sources,i=e.className,d=e.alt,m=void 0===d?"":d,v=Object(a.a)(e,["sources","className","alt"]),h=t?n?["dark"]:["light"]:["light","dark"];return c.a.createElement(c.a.Fragment,null,h.map((function(e){return c.a.createElement("img",Object(r.a)({key:e,src:o[e],alt:m,className:Object(u.a)(f.a.themedImage,f.a["themedImage--"+e],i)},v))})))},v=n(165),h=n(161),b=n(167);t.a=function(e){var t=Object(s.default)().isClient,n=Object(h.useThemeConfig)().navbar,o=n.title,u=n.logo,l=void 0===u?{}:u,d=e.imageClassName,f=e.titleClassName,g=Object(a.a)(e,["imageClassName","titleClassName"]),p=Object(v.a)(l.href||"/"),O=l.target?{target:l.target}:Object(b.a)(p)?{}:{rel:"noopener noreferrer",target:"_blank"},E={light:Object(v.a)(l.src),dark:Object(v.a)(l.srcDark||l.src)};return c.a.createElement(i.a,Object(r.a)({to:p},g,O),l.src&&c.a.createElement(m,{key:t,className:d,sources:E,alt:l.alt||o||"Logo"}),null!=o&&c.a.createElement("strong",{className:f},o))}},210:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),c=f(o),i=f(n(211)),u=f(n(1)),s=f(n(212)),l=f(n(213)),d=n(214);function f(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}},{key:"handleTouchStart",value:function(e){this.startX=(0,d.pointerCoord)(e).x,this.activated=!0}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,d.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,d.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,a=(t.icons,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","icons"])),o=(0,i.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return c.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},c.default.createElement("div",{className:"react-toggle-track"},c.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),c.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),c.default.createElement("div",{className:"react-toggle-thumb"}),c.default.createElement("input",r({},a,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(o.PureComponent);t.default=m,m.displayName="Toggle",m.defaultProps={icons:{checked:c.default.createElement(s.default,null),unchecked:c.default.createElement(l.default,null)}},m.propTypes={checked:u.default.bool,disabled:u.default.bool,defaultChecked:u.default.bool,onChange:u.default.func,onFocus:u.default.func,onBlur:u.default.func,className:u.default.string,name:u.default.string,value:u.default.string,id:u.default.string,"aria-labelledby":u.default.string,"aria-label":u.default.string,icons:u.default.oneOfType([u.default.bool,u.default.shape({checked:u.default.node,unchecked:u.default.node})])}},211:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var c=a.apply(null,r);c&&e.push(c)}else if("object"===o)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},212:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},o.default.createElement("title",null,"switch-check"),o.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(0),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},o.default.createElement("title",null,"switch-x"),o.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(void 0!==r)return{x:r,y:e.pageY}}return{x:0,y:0}}},215:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n(3),a=n(7),o=n(0),c=n.n(o),i=n(175),u=n(163),s=n(161);function l(e){var t,n=e.label,o=e.to,l=e.docsPluginId,d=Object(a.a)(e,["label","to","docsPluginId"]),f=Object(u.useActiveVersion)(l),m=Object(s.useDocsPreferredVersion)(l).preferredVersion,v=Object(u.useLatestVersion)(l),h=null!==(t=null!=f?f:m)&&void 0!==t?t:v,b=null!=n?n:h.label,g=null!=o?o:function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))}(h).path;return c.a.createElement(i.a,Object(r.a)({},d,{label:b,to:g}))}},216:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var r=n(3),a=n(7),o=n(0),c=n.n(o),i=n(175),u=n(163),s=n(161),l=function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))};function d(e){var t,n,o=e.mobile,d=e.docsPluginId,f=e.dropdownActiveClassDisabled,m=e.dropdownItemsBefore,v=e.dropdownItemsAfter,h=Object(a.a)(e,["mobile","docsPluginId","dropdownActiveClassDisabled","dropdownItemsBefore","dropdownItemsAfter"]),b=Object(u.useActiveDocContext)(d),g=Object(u.useVersions)(d),p=Object(u.useLatestVersion)(d),O=Object(s.useDocsPreferredVersion)(d),E=O.preferredVersion,j=O.savePreferredVersionName;var y=null!==(t=null!==(n=b.activeVersion)&&void 0!==n?n:E)&&void 0!==t?t:p,k=o?"Versions":y.label,C=o?void 0:l(y).path;return c.a.createElement(i.a,Object(r.a)({},h,{mobile:o,label:k,to:C,items:function(){var e=g.map((function(e){var t=(null==b?void 0:b.alternateDocVersions[e.name])||l(e);return{isNavLink:!0,label:e.label,to:t.path,isActive:function(){return e===(null==b?void 0:b.activeVersion)},onClick:function(){j(e.name)}}})),t=[].concat(m,e,v);if(!(t.length<=1))return t}(),isActive:f?function(){return!1}:void 0}))}},217:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var r=n(3),a=n(7),o=n(0),c=n.n(o),i=n(175),u=n(163),s=n(160),l=n(161);function d(e){var t,n,o=e.docId,d=e.activeSidebarClassName,f=e.label,m=e.docsPluginId,v=Object(a.a)(e,["docId","activeSidebarClassName","label","docsPluginId"]),h=Object(u.useActiveDocContext)(m),b=h.activeVersion,g=h.activeDoc,p=Object(l.useDocsPreferredVersion)(m).preferredVersion,O=Object(u.useLatestVersion)(m),E=null!==(t=null!=b?b:p)&&void 0!==t?t:O,j=E.docs.find((function(e){return e.id===o}));if(!j)throw new Error("DocNavbarItem: couldn't find any doc with id="+o+" in version "+E.name+".\nAvailable docIds=\n- "+E.docs.join("\n- "));return c.a.createElement(i.a,Object(r.a)({exact:!0},v,{className:Object(s.a)(v.className,(n={},n[d]=g&&g.sidebar===j.sidebar,n)),label:null!=f?f:j.id,to:j.path}))}}}]);