mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[2273],{6742:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(102),a=n(7294),o=n(3727),i=n(2263),l=n(3919),c=n(412),s=(0,a.createContext)({collectLink:function(){}}),u=n(4996),m=n(8780);var d=function(e){var t,n,d=e.isNavLink,f=e.to,v=e.href,h=e.activeClassName,b=e.isActive,g=e["data-noBrokenLinkCheck"],p=e.autoAddBaseUrl,E=void 0===p||p,Z=(0,r.Z)(e,["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck","autoAddBaseUrl"]),k=(0,i.Z)().siteConfig,_=k.trailingSlash,w=k.baseUrl,y=(0,u.C)().withBaseUrl,N=(0,a.useContext)(s),C=f||v,L=(0,l.Z)(C),I=null==C?void 0:C.replace("pathname://",""),S=void 0!==I?(n=I,E&&function(e){return e.startsWith("/")}(n)?y(n):n):void 0;S&&L&&(S=(0,m.applyTrailingSlash)(S,{trailingSlash:_,baseUrl:w}));var D,B=(0,a.useRef)(!1),T=d?o.OL:o.rU,U=c.Z.canUseIntersectionObserver;(0,a.useEffect)((function(){return!U&&L&&null!=S&&window.docusaurus.prefetch(S),function(){U&&D&&D.disconnect()}}),[S,U,L]);var A=null!==(t=null==S?void 0:S.startsWith("#"))&&void 0!==t&&t,x=!S||!L||A;return S&&L&&!A&&!g&&N.collectLink(S),x?a.createElement("a",Object.assign({href:S},C&&!L&&{target:"_blank",rel:"noopener noreferrer"},Z)):a.createElement(T,Object.assign({},Z,{onMouseEnter:function(){B.current||null==S||(window.docusaurus.preload(S),B.current=!0)},innerRef:function(e){var t,n;U&&e&&L&&(t=e,n=function(){null!=S&&window.docusaurus.prefetch(S)},(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:S||""},d&&{isActive:b,activeClassName:h}))}},1875:function(e,t){t.Z=function(){return null}},3919:function(e,t,n){function r(e){return!0===/^(\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{b:function(){return r},Z:function(){return a}})},4996:function(e,t,n){n.d(t,{C:function(){return o},Z:function(){return i}});var r=n(2263),a=n(3919);function o(){var e=(0,r.Z)().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,i=o.forcePrependBaseUrl,l=void 0!==i&&i,c=o.absolute,s=void 0!==c&&c;if(!n)return n;if(n.startsWith("#"))return n;if((0,a.b)(n))return n;if(l)return t+n;var u=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+u:u}(o,n,e,t)}}}function i(e,t){return void 0===t&&(t={}),(0,o().withBaseUrl)(e,t)}},8617:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(7294),a="iconExternalLink_3J9K",o=function(e){var t=e.width,n=void 0===t?13.5:t,o=e.height,i=void 0===o?13.5:o;return r.createElement("svg",{width:n,height:i,"aria-hidden":"true",viewBox:"0 0 24 24",className:a},r.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},2273:function(e,t,n){n.d(t,{Z:function(){return ge}});var r=n(7294),a=n(6010),o=n(5977),i=n(4973),l=n(3018),c="skipToContent_1oUP";function s(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}var u=function(){var e=(0,r.useRef)(null),t=(0,o.k6)().action;return(0,l.SL)((function(n){var r=n.location;e.current&&!r.hash&&"PUSH"===t&&s(e.current)})),r.createElement("div",{ref:e},r.createElement("a",{href:"#",className:c,onClick:function(e){e.preventDefault();var t=document.querySelector("main:first-of-type")||document.querySelector(".main-wrapper");t&&s(t)}},r.createElement(i.Z,{id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"},"Skip to main content")))},m="announcementBar_3WsW",d="announcementBarClose_38nx",f="announcementBarContent_3EUC",v="announcementBarCloseable_3myR";var h=function(){var e,t=(0,l.nT)(),n=t.isClosed,o=t.close,c=(0,l.LU)().announcementBar;if(!c)return null;var s=c.content,u=c.backgroundColor,h=c.textColor,b=c.isCloseable;return!s||b&&n?null:r.createElement("div",{className:m,style:{backgroundColor:u,color:h},role:"banner"},r.createElement("div",{className:(0,a.Z)(f,(e={},e[v]=b,e)),dangerouslySetInnerHTML:{__html:s}}),b?r.createElement("button",{type:"button",className:(0,a.Z)(d,"clean-btn"),onClick:o,"aria-label":(0,i.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},r.createElement("span",{"aria-hidden":"true"},"\xd7")):null)},b=n(3117),g=n(1875),p=n(2263),E={toggle:"toggle_71bT"},Z=function(e){var t=e.icon,n=e.style;return r.createElement("span",{className:(0,a.Z)(E.toggle,E.dark),style:n},t)},k=function(e){var t=e.icon,n=e.style;return r.createElement("span",{className:(0,a.Z)(E.toggle,E.light),style:n},t)},_=(0,r.memo)((function(e){var t=e.className,n=e.icons,o=e.checked,i=e.disabled,l=e.onChange,c=(0,r.useState)(o),s=c[0],u=c[1],m=(0,r.useState)(!1),d=m[0],f=m[1],v=(0,r.useRef)(null);return r.createElement("div",{className:(0,a.Z)("react-toggle",t,{"react-toggle--checked":s,"react-toggle--focus":d,"react-toggle--disabled":i})},r.createElement("div",{className:"react-toggle-track",role:"button",tabIndex:-1,onClick:function(){var e;return null==(e=v.current)?void 0:e.click()}},r.createElement("div",{className:"react-toggle-track-check"},n.checked),r.createElement("div",{className:"react-toggle-track-x"},n.unchecked),r.createElement("div",{className:"react-toggle-thumb"})),r.createElement("input",{ref:v,checked:s,type:"checkbox",className:"react-toggle-screenreader-only","aria-label":"Switch between dark and light mode",onChange:l,onClick:function(){return u(!s)},onFocus:function(){return f(!0)},onBlur:function(){return f(!1)}}))}));function w(e){var t=(0,l.LU)().colorMode.switchConfig,n=t.darkIcon,a=t.darkIconStyle,o=t.lightIcon,i=t.lightIconStyle,c=(0,p.Z)().isClient;return r.createElement(_,(0,b.Z)({disabled:!c,icons:{checked:r.createElement(Z,{icon:n,style:a}),unchecked:r.createElement(k,{icon:o,style:i})}},e))}var y=n(5350),N=n(7898),C=function(e){var t=(0,o.TH)(),n=(0,r.useState)(e),a=n[0],i=n[1],c=(0,r.useRef)(!1),s=(0,r.useState)(0),u=s[0],m=s[1],d=(0,r.useCallback)((function(e){null!==e&&m(e.getBoundingClientRect().height)}),[]);return(0,N.Z)((function(t,n){var r=t.scrollY,a=null==n?void 0:n.scrollY;if(e)if(r<u)i(!0);else{if(c.current)return c.current=!1,void i(!1);a&&0===r&&i(!0);var o=document.documentElement.scrollHeight-u,l=window.innerHeight;a&&r>=a?i(!1):r+l<o&&i(!0)}}),[u,c]),(0,l.SL)((function(t){e&&!t.location.hash&&i(!0)})),(0,r.useEffect)((function(){e&&t.hash&&(c.current=!0)}),[t.hash]),{navbarRef:d,isNavbarVisible:a}};var L=function(e){void 0===e&&(e=!0),(0,r.useEffect)((function(){return document.body.style.overflow=e?"hidden":"visible",function(){document.body.style.overflow="visible"}}),[e])},I=n(3783),S=n(4201),D=n(5537),B=n(102),T=function(e){var t=e.width,n=void 0===t?30:t,a=e.height,o=void 0===a?30:a,i=e.className,l=(0,B.Z)(e,["width","height","className"]);return r.createElement("svg",(0,b.Z)({className:i,width:n,height:o,viewBox:"0 0 30 30","aria-hidden":"true"},l),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))},U="toggle_3Zt9",A="navbarHideable_2qcr",x="navbarHidden_3yey",M="right";function P(){return(0,l.LU)().navbar.items}function R(){var e=(0,l.LU)().colorMode.disableSwitch,t=(0,y.Z)(),n=t.isDarkTheme,a=t.setLightTheme,o=t.setDarkTheme;return{isDarkTheme:n,toggle:(0,r.useCallback)((function(e){return e.target.checked?o():a()}),[a,o]),disabled:e}}function O(e){var t=e.sidebarShown,n=e.toggleSidebar;L(t);var o=P(),c=R(),s=function(e){var t,n=e.sidebarShown,a=e.toggleSidebar,o=null==(t=(0,l.g8)())?void 0:t({toggleSidebar:a}),i=(0,l.D9)(o),c=(0,r.useState)((function(){return!1})),s=c[0],u=c[1];(0,r.useEffect)((function(){o&&!i&&u(!0)}),[o,i]);var m=!!o;return(0,r.useEffect)((function(){m?n||u(!0):u(!1)}),[n,m]),{shown:s,hide:(0,r.useCallback)((function(){u(!1)}),[]),content:o}}({sidebarShown:t,toggleSidebar:n});return r.createElement("div",{className:"navbar-sidebar"},r.createElement("div",{className:"navbar-sidebar__brand"},r.createElement(D.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title"}),!c.disabled&&t&&r.createElement(w,{checked:c.isDarkTheme,onChange:c.toggle})),r.createElement("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":s.shown})},r.createElement("div",{className:"navbar-sidebar__item menu"},r.createElement("ul",{className:"menu__list"},o.map((function(e,t){return r.createElement(S.Z,(0,b.Z)({mobile:!0},e,{onClick:n,key:t}))})))),r.createElement("div",{className:"navbar-sidebar__item navbar-sidebar__item--secondary menu"},r.createElement("button",{type:"button",className:"clean-btn navbar-sidebar__back",onClick:s.hide},r.createElement(i.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"},"\u2190 Back to main menu")),s.content)))}var W=function(){var e,t,n,o,i,c,s,u=(0,l.LU)().navbar,m=u.hideOnScroll,d=u.style,f=(t=(0,I.Z)(),n="mobile"===t,o=(0,r.useState)(!1),i=o[0],c=o[1],s=(0,r.useCallback)((function(){c((function(e){return!e}))}),[]),(0,r.useEffect)((function(){"desktop"===t&&c(!1)}),[t]),{shouldRender:n,toggle:s,shown:i}),v=R(),h=C(m),p=h.navbarRef,E=h.isNavbarVisible,Z=P(),k=Z.some((function(e){return"search"===e.type})),_=function(e){return{leftItems:e.filter((function(e){var t;return"left"===(null!=(t=e.position)?t:M)})),rightItems:e.filter((function(e){var t;return"right"===(null!=(t=e.position)?t:M)}))}}(Z),y=_.leftItems,N=_.rightItems;return r.createElement("nav",{ref:p,className:(0,a.Z)("navbar","navbar--fixed-top",(e={"navbar--dark":"dark"===d,"navbar--primary":"primary"===d,"navbar-sidebar--show":f.shown},e[A]=m,e[x]=m&&!E,e))},r.createElement("div",{className:"navbar__inner"},r.createElement("div",{className:"navbar__items"},(null==Z?void 0:Z.length)>0&&r.createElement("button",{"aria-label":"Navigation bar toggle",className:"navbar__toggle clean-btn",type:"button",tabIndex:0,onClick:f.toggle,onKeyDown:f.toggle},r.createElement(T,null)),r.createElement(D.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title"}),y.map((function(e,t){return r.createElement(S.Z,(0,b.Z)({},e,{key:t}))}))),r.createElement("div",{className:"navbar__items navbar__items--right"},N.map((function(e,t){return r.createElement(S.Z,(0,b.Z)({},e,{key:t}))})),!v.disabled&&r.createElement(w,{className:U,checked:v.isDarkTheme,onChange:v.toggle}),!k&&r.createElement(g.Z,null))),r.createElement("div",{role:"presentation",className:"navbar-sidebar__backdrop",onClick:f.toggle}),f.shouldRender&&r.createElement(O,{sidebarShown:f.shown,toggleSidebar:f.toggle}))},H=n(6742),z=n(4996),V=n(3919),j="footerLogoLink_MyFc",q=n(8465),F=n(8617);function G(e){var t=e.to,n=e.href,a=e.label,o=e.prependBaseUrlToHref,i=(0,B.Z)(e,["to","href","label","prependBaseUrlToHref"]),l=(0,z.Z)(t),c=(0,z.Z)(n,{forcePrependBaseUrl:!0});return r.createElement(H.Z,(0,b.Z)({className:"footer__link-item"},n?{href:o?c:n}:{to:l},i),n&&!(0,V.Z)(n)?r.createElement("span",null,a,r.createElement(F.Z,null)):a)}var J=function(e){var t=e.sources,n=e.alt;return r.createElement(q.Z,{className:"footer__logo",alt:n,sources:t})};var K=function(){var e=(0,l.LU)().footer,t=e||{},n=t.copyright,o=t.links,i=void 0===o?[]:o,c=t.logo,s=void 0===c?{}:c,u={light:(0,z.Z)(s.src),dark:(0,z.Z)(s.srcDark||s.src)};return e?r.createElement("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===e.style})},r.createElement("div",{className:"container"},i&&i.length>0&&r.createElement("div",{className:"row footer__links"},i.map((function(e,t){return r.createElement("div",{key:t,className:"col footer__col"},null!=e.title?r.createElement("div",{className:"footer__title"},e.title):null,null!=e.items&&Array.isArray(e.items)&&e.items.length>0?r.createElement("ul",{className:"footer__items"},e.items.map((function(e,t){return e.html?r.createElement("li",{key:t,className:"footer__item",dangerouslySetInnerHTML:{__html:e.html}}):r.createElement("li",{key:e.href||e.to,className:"footer__item"},r.createElement(G,e))}))):null)}))),(s||n)&&r.createElement("div",{className:"footer__bottom text--center"},s&&(s.src||s.srcDark)&&r.createElement("div",{className:"margin-bottom--sm"},s.href?r.createElement(H.Z,{href:s.href,className:j},r.createElement(J,{alt:s.alt,sources:u})):r.createElement(J,{alt:s.alt,sources:u})),n?r.createElement("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:n}}):null))):null},Q=n(412),Y=(0,l.WA)("theme"),X="light",$="dark",ee=function(e){return e===$?$:X},te=function(e){(0,l.WA)("theme").set(ee(e))},ne=function(){var e=(0,l.LU)().colorMode,t=e.defaultMode,n=e.disableSwitch,a=e.respectPrefersColorScheme,o=(0,r.useState)(function(e){return Q.Z.canUseDOM?ee(document.documentElement.getAttribute("data-theme")):ee(e)}(t)),i=o[0],c=o[1],s=(0,r.useCallback)((function(){c(X),te(X)}),[]),u=(0,r.useCallback)((function(){c($),te($)}),[]);return(0,r.useEffect)((function(){document.documentElement.setAttribute("data-theme",ee(i))}),[i]),(0,r.useEffect)((function(){if(!n)try{var e=Y.get();null!==e&&c(ee(e))}catch(t){console.error(t)}}),[c]),(0,r.useEffect)((function(){n&&!a||window.matchMedia("(prefers-color-scheme: dark)").addListener((function(e){var t=e.matches;c(t?$:X)}))}),[]),{isDarkTheme:i===$,setLightTheme:s,setDarkTheme:u}},re=n(2924);var ae=function(e){var t=ne(),n=t.isDarkTheme,a=t.setLightTheme,o=t.setDarkTheme;return r.createElement(re.Z.Provider,{value:{isDarkTheme:n,setLightTheme:a,setDarkTheme:o}},e.children)},oe="docusaurus.tab.",ie=function(){var e=(0,r.useState)({}),t=e[0],n=e[1],a=(0,r.useCallback)((function(e,t){(0,l.WA)("docusaurus.tab."+e).set(t)}),[]);return(0,r.useEffect)((function(){try{var e={};(0,l._f)().forEach((function(t){if(t.startsWith(oe)){var n=t.substring(oe.length);e[n]=(0,l.WA)(t).get()}})),n(e)}catch(t){console.error(t)}}),[]),{tabGroupChoices:t,setTabGroupChoices:function(e,t){n((function(n){var r;return Object.assign({},n,((r={})[e]=t,r))})),a(e,t)}}},le=n(9443);var ce=function(e){var t=ie(),n=t.tabGroupChoices,a=t.setTabGroupChoices;return r.createElement(le.Z.Provider,{value:{tabGroupChoices:n,setTabGroupChoices:a}},e.children)};function se(e){var t=e.children;return r.createElement(ae,null,r.createElement(l.pl,null,r.createElement(ce,null,r.createElement(l.L5,null,r.createElement(l.Cn,null,t)))))}var ue=n(9105);function me(e){var t=e.locale,n=e.version,a=e.tag;return r.createElement(ue.Z,null,t&&r.createElement("meta",{name:"docusaurus_locale",content:t}),n&&r.createElement("meta",{name:"docusaurus_version",content:n}),a&&r.createElement("meta",{name:"docusaurus_tag",content:a}))}var de=n(1217);function fe(){var e=(0,p.Z)().i18n,t=e.defaultLocale,n=e.locales,a=(0,l.l5)();return r.createElement(ue.Z,null,n.map((function(e){return r.createElement("link",{key:e,rel:"alternate",href:a.createUrl({locale:e,fullyQualified:!0}),hrefLang:e})})),r.createElement("link",{rel:"alternate",href:a.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}))}function ve(e){var t=e.permalink,n=(0,p.Z)().siteConfig.url,a=function(){var e=(0,p.Z)().siteConfig.url,t=(0,o.TH)().pathname;return e+(0,z.Z)(t)}(),i=t?""+n+t:a;return r.createElement(ue.Z,null,r.createElement("meta",{property:"og:url",content:i}),r.createElement("link",{rel:"canonical",href:i}))}function he(e){var t=(0,p.Z)(),n=t.siteConfig,a=n.favicon,o=n.themeConfig,i=o.metadatas,c=o.image,s=t.i18n,u=s.currentLocale,m=s.localeConfigs,d=e.title,f=e.description,v=e.image,h=e.keywords,g=e.searchMetadatas,E=(0,z.Z)(a),Z=(0,l.pe)(d),k=u,_=m[u].direction;return r.createElement(r.Fragment,null,r.createElement(ue.Z,null,r.createElement("html",{lang:k,dir:_}),a&&r.createElement("link",{rel:"shortcut icon",href:E}),r.createElement("title",null,Z),r.createElement("meta",{property:"og:title",content:Z}),v||c&&r.createElement("meta",{name:"twitter:card",content:"summary_large_image"})),r.createElement(de.Z,{description:f,keywords:h,image:v}),r.createElement(ve,null),r.createElement(fe,null),r.createElement(me,(0,b.Z)({tag:l.HX,locale:u},g)),r.createElement(ue.Z,null,i.map((function(e,t){return r.createElement("meta",(0,b.Z)({key:"metadata_"+t},e))}))))}var be=function(){(0,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)}}),[])};var ge=function(e){var t=e.children,n=e.noFooter,o=e.wrapperClassName,i=e.pageClassName;return be(),r.createElement(se,null,r.createElement(he,e),r.createElement(u,null),r.createElement(h,null),r.createElement(W,null),r.createElement("div",{className:(0,a.Z)(l.kM.wrapper.main,o,i)},t),!n&&r.createElement(K,null))}},5537:function(e,t,n){var r=n(3117),a=n(102),o=n(7294),i=n(6742),l=n(8465),c=n(4996),s=n(2263);t.Z=function(e){var t=(0,s.Z)(),n=t.siteConfig,u=n.title,m=n.themeConfig.navbar,d=m.title,f=m.logo,v=void 0===f?{src:""}:f,h=t.isClient,b=e.imageClassName,g=e.titleClassName,p=(0,a.Z)(e,["imageClassName","titleClassName"]),E=(0,c.Z)(v.href||"/"),Z={light:(0,c.Z)(v.src),dark:(0,c.Z)(v.srcDark||v.src)};return o.createElement(i.Z,(0,r.Z)({to:E},p,v.target&&{target:v.target}),v.src&&o.createElement(l.Z,{key:h,className:b,sources:Z,alt:v.alt||d||u}),null!=d&&o.createElement("b",{className:g},d))}},5525:function(e,t,n){n.d(t,{O:function(){return m}});var r=n(3117),a=n(102),o=n(7294),i=n(6010),l=n(6742),c=n(4996),s=n(8617),u=n(3919);function m(e){var t=e.activeBasePath,n=e.activeBaseRegex,i=e.to,m=e.href,d=e.label,f=e.activeClassName,v=void 0===f?"navbar__link--active":f,h=e.prependBaseUrlToHref,b=(0,a.Z)(e,["activeBasePath","activeBaseRegex","to","href","label","activeClassName","prependBaseUrlToHref"]),g=(0,c.Z)(i),p=(0,c.Z)(t),E=(0,c.Z)(m,{forcePrependBaseUrl:!0}),Z=d&&m&&!(0,u.Z)(m),k="dropdown__link--active"===v;return o.createElement(l.Z,(0,r.Z)({},m?{href:h?E:m}:Object.assign({isNavLink:!0,activeClassName:v,to:g},t||n?{isActive:function(e,t){return n?new RegExp(n).test(t.pathname):t.pathname.startsWith(p)}}:null),b),Z?o.createElement("span",null,d,o.createElement(s.Z,k&&{width:12,height:12})):d)}function d(e){var t=e.className,n=e.isDropdownItem,l=void 0!==n&&n,c=(0,a.Z)(e,["className","isDropdownItem"]),s=o.createElement(m,(0,r.Z)({className:(0,i.Z)(l?"dropdown__link":"navbar__item navbar__link",t)},c));return l?o.createElement("li",null,s):s}function f(e){var t=e.className,n=(e.isDropdownItem,(0,a.Z)(e,["className","isDropdownItem"]));return o.createElement("li",{className:"menu__list-item"},o.createElement(m,(0,r.Z)({className:(0,i.Z)("menu__link",t)},n)))}t.Z=function(e){var t=e.mobile,n=void 0!==t&&t,r=(e.position,(0,a.Z)(e,["mobile","position"])),i=n?f:d;return o.createElement(i,r)}},6400:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(3117),a=n(102),o=n(7294),i=n(5525),l=n(907),c=n(6010),s=n(3018),u=n(8780);function m(e){var t,n=e.docId,m=e.activeSidebarClassName,d=e.label,f=e.docsPluginId,v=(0,a.Z)(e,["docId","activeSidebarClassName","label","docsPluginId"]),h=(0,l.Iw)(f),b=h.activeVersion,g=h.activeDoc,p=(0,s.J)(f).preferredVersion,E=(0,l.yW)(f),Z=function(e,t){var n=e.flatMap((function(e){return e.docs})),r=n.find((function(e){return e.id===t}));if(!r){var a=n.map((function(e){return e.id})).join("\n- ");throw new Error("DocNavbarItem: couldn't find any doc with id \""+t+'" in version'+(e.length?"s":"")+" "+e.map((function(e){return e.name})).join(", ")+'".\nAvailable doc ids are:\n- '+a)}return r}((0,u.uniq)([b,p,E].filter(Boolean)),n);return o.createElement(i.Z,(0,r.Z)({exact:!0},v,{className:(0,c.Z)(v.className,(t={},t[m]=g&&g.sidebar===Z.sidebar,t)),label:null!=d?d:Z.id,to:Z.path}))}},9308:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(3117),a=n(102),o=n(7294),i=n(5525),l=n(3154),c=n(907),s=n(3018),u=function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))};function m(e){var t,n,m=e.mobile,d=e.docsPluginId,f=e.dropdownActiveClassDisabled,v=e.dropdownItemsBefore,h=e.dropdownItemsAfter,b=(0,a.Z)(e,["mobile","docsPluginId","dropdownActiveClassDisabled","dropdownItemsBefore","dropdownItemsAfter"]),g=(0,c.Iw)(d),p=(0,c.gB)(d),E=(0,c.yW)(d),Z=(0,s.J)(d),k=Z.preferredVersion,_=Z.savePreferredVersionName;var w,y=(w=p.map((function(e){var t=(null==g?void 0:g.alternateDocVersions[e.name])||u(e);return{isNavLink:!0,label:e.label,to:t.path,isActive:function(){return e===(null==g?void 0:g.activeVersion)},onClick:function(){_(e.name)}}})),[].concat(v,w,h)),N=null!=(t=null!=(n=g.activeVersion)?n:k)?t:E,C=m&&y?"Versions":N.label,L=m&&y?void 0:u(N).path;return y.length<=1?o.createElement(i.Z,(0,r.Z)({},b,{mobile:m,label:C,to:L,isActive:f?function(){return!1}:void 0})):o.createElement(l.Z,(0,r.Z)({},b,{mobile:m,label:C,to:L,items:y,isActive:f?function(){return!1}:void 0}))}},7250:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(3117),a=n(102),o=n(7294),i=n(5525),l=n(907),c=n(3018);function s(e){var t,n=e.label,s=e.to,u=e.docsPluginId,m=(0,a.Z)(e,["label","to","docsPluginId"]),d=(0,l.zu)(u),f=(0,c.J)(u).preferredVersion,v=(0,l.yW)(u),h=null!=(t=null!=d?d:f)?t:v,b=null!=n?n:h.label,g=null!=s?s:function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))}(h).path;return o.createElement(i.Z,(0,r.Z)({},m,{label:b,to:g}))}},3154:function(e,t,n){var r=n(3117),a=n(102),o=n(7294),i=n(6010),l=n(3018),c=n(5525),s=n(4201);function u(e,t){return e.some((function(e){return function(e,t){return!!(0,l.Mg)(e.to,t)||!(!e.activeBaseRegex||!new RegExp(e.activeBaseRegex).test(t))||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)}))}function m(e){var t,n=e.items,l=e.position,u=e.className,m=(0,a.Z)(e,["items","position","className"]),d=(0,o.useRef)(null),f=(0,o.useRef)(null),v=(0,o.useState)(!1),h=v[0],b=v[1];return(0,o.useEffect)((function(){var e=function(e){d.current&&!d.current.contains(e.target)&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[d]),o.createElement("div",{ref:d,className:(0,i.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===l,"dropdown--show":h})},o.createElement(c.O,(0,r.Z)({className:(0,i.Z)("navbar__item navbar__link",u)},m,{onClick:m.to?void 0:function(e){return e.preventDefault()},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),b(!h))}}),null!=(t=m.children)?t:m.label),o.createElement("ul",{ref:f,className:"dropdown__menu"},n.map((function(e,t){return o.createElement(s.Z,(0,r.Z)({isDropdownItem:!0,onKeyDown:function(e){if(t===n.length-1&&"Tab"===e.key){e.preventDefault(),b(!1);var r=d.current.nextElementSibling;r&&r.focus()}},activeClassName:"dropdown__link--active"},e,{key:t}))}))))}function d(e){var t,n=e.items,m=e.className,d=(e.position,(0,a.Z)(e,["items","className","position"])),f=(0,l.be)(),v=u(n,f),h=(0,l.uR)({initialState:function(){return!v}}),b=h.collapsed,g=h.toggleCollapsed,p=h.setCollapsed;return(0,o.useEffect)((function(){v&&p(!v)}),[f,v]),o.createElement("li",{className:(0,i.Z)("menu__list-item",{"menu__list-item--collapsed":b})},o.createElement(c.O,(0,r.Z)({role:"button",className:(0,i.Z)("menu__link menu__link--sublist",m)},d,{onClick:function(e){e.preventDefault(),g()}}),null!=(t=d.children)?t:d.label),o.createElement(l.zF,{lazy:!0,as:"ul",className:"menu__list",collapsed:b},n.map((function(e,t){return o.createElement(s.Z,(0,r.Z)({mobile:!0,isDropdownItem:!0,onClick:d.onClick,activeClassName:"menu__link--active"},e,{key:t}))}))))}t.Z=function(e){var t=e.mobile,n=void 0!==t&&t,r=(0,a.Z)(e,["mobile"]),i=n?d:m;return o.createElement(i,r)}},4201:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(102),a=n(7294),o=n(5525),i=n(3154),l=n(3117),c=function(e){var t=e.width,n=void 0===t?20:t,o=e.height,i=void 0===o?20:o,c=(0,r.Z)(e,["width","height"]);return a.createElement("svg",(0,l.Z)({viewBox:"0 0 20 20",width:n,height:i,"aria-hidden":"true"},c),a.createElement("path",{fill:"currentColor",d:"M19.753 10.909c-.624-1.707-2.366-2.726-4.661-2.726-.09 0-.176.002-.262.006l-.016-2.063 3.525-.607c.115-.019.133-.119.109-.231-.023-.111-.167-.883-.188-.976-.027-.131-.102-.127-.207-.109-.104.018-3.25.461-3.25.461l-.013-2.078c-.001-.125-.069-.158-.194-.156l-1.025.016c-.105.002-.164.049-.162.148l.033 2.307s-3.061.527-3.144.543c-.084.014-.17.053-.151.143.019.09.19 1.094.208 1.172.018.08.072.129.188.107l2.924-.504.035 2.018c-1.077.281-1.801.824-2.256 1.303-.768.807-1.207 1.887-1.207 2.963 0 1.586.971 2.529 2.328 2.695 3.162.387 5.119-3.06 5.769-4.715 1.097 1.506.256 4.354-2.094 5.98-.043.029-.098.129-.033.207l.619.756c.08.096.206.059.256.023 2.51-1.73 3.661-4.515 2.869-6.683zm-7.386 3.188c-.966-.121-.944-.914-.944-1.453 0-.773.327-1.58.876-2.156a3.21 3.21 0 011.229-.799l.082 4.277a2.773 2.773 0 01-1.243.131zm2.427-.553l.046-4.109c.084-.004.166-.01.252-.01.773 0 1.494.145 1.885.361.391.217-1.023 2.713-2.183 3.758zm-8.95-7.668a.196.196 0 00-.196-.145h-1.95a.194.194 0 00-.194.144L.008 16.916c-.017.051-.011.076.062.076h1.733c.075 0 .099-.023.114-.072l1.008-3.318h3.496l1.008 3.318c.016.049.039.072.113.072h1.734c.072 0 .078-.025.062-.076-.014-.05-3.083-9.741-3.494-11.04zm-2.618 6.318l1.447-5.25 1.447 5.25H3.226z"}))},s=n(2263),u=n(3018);function m(e){var t=e.mobile,n=e.dropdownItemsBefore,o=e.dropdownItemsAfter,m=(0,r.Z)(e,["mobile","dropdownItemsBefore","dropdownItemsAfter"]),d=(0,s.Z)().i18n,f=d.currentLocale,v=d.locales,h=d.localeConfigs,b=(0,u.l5)();function g(e){return h[e].label}var p=v.map((function(e){var t="pathname://"+b.createUrl({locale:e,fullyQualified:!1});return{isNavLink:!0,label:g(e),to:t,target:"_self",autoAddBaseUrl:!1,className:e===f?"dropdown__link--active":"",style:{textTransform:"capitalize"}}})),E=[].concat(n,p,o),Z=t?"Languages":g(f);return a.createElement(i.Z,(0,l.Z)({},m,{href:"#",mobile:t,label:a.createElement("span",null,a.createElement(c,{style:{verticalAlign:"text-bottom",marginRight:5}}),a.createElement("span",null,Z)),items:E}))}var d=n(1875);function f(e){return e.mobile?null:a.createElement(d.Z,null)}var v={default:function(){return o.Z},localeDropdown:function(){return m},search:function(){return f},dropdown:function(){return i.Z},docsVersion:function(){return n(7250).Z},docsVersionDropdown:function(){return n(9308).Z},doc:function(){return n(6400).Z}};function h(e){var t=e.type,n=(0,r.Z)(e,["type"]),o=function(e){var t=v[e];if(!t)throw new Error('No NavbarItem component found for type "'+e+'".');return t()}(function(e,t){return e&&"default"!==e?e:t?"dropdown":"default"}(t,void 0!==n.items));return a.createElement(o,n)}},1217:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(7294),a=n(9105),o=n(3018),i=n(4996);function l(e){var t=e.title,n=e.description,l=e.keywords,c=e.image,s=(0,o.LU)().image,u=(0,o.pe)(t),m=(0,i.Z)(c||s,{absolute:!0});return r.createElement(a.Z,null,t&&r.createElement("title",null,u),t&&r.createElement("meta",{property:"og:title",content:u}),n&&r.createElement("meta",{name:"description",content:n}),n&&r.createElement("meta",{property:"og:description",content:n}),l&&r.createElement("meta",{name:"keywords",content:Array.isArray(l)?l.join(","):l}),m&&r.createElement("meta",{property:"og:image",content:m}),m&&r.createElement("meta",{name:"twitter:image",content:m}))}},2924:function(e,t,n){var r=n(7294).createContext(void 0);t.Z=r},8465:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(3117),a=n(102),o=n(7294),i=n(6010),l=n(2263),c=n(5350),s={themedImage:"themedImage_1VuW","themedImage--light":"themedImage--light_3UqQ","themedImage--dark":"themedImage--dark_hz6m"},u=function(e){var t=(0,l.Z)().isClient,n=(0,c.Z)().isDarkTheme,u=e.sources,m=e.className,d=e.alt,f=void 0===d?"":d,v=(0,a.Z)(e,["sources","className","alt"]),h=t?n?["dark"]:["light"]:["light","dark"];return o.createElement(o.Fragment,null,h.map((function(e){return o.createElement("img",(0,r.Z)({key:e,src:u[e],alt:f,className:(0,i.Z)(s.themedImage,s["themedImage--"+e],m)},v))})))}},9443:function(e,t,n){var r=(0,n(7294).createContext)(void 0);t.Z=r},7898:function(e,t,n){var r=n(7294),a=n(412),o=function(){return a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null};t.Z=function(e,t){void 0===t&&(t=[]);var n=(0,r.useRef)(o()),a=function(){var t=o();e&&e(t,n.current),n.current=t};(0,r.useEffect)((function(){var e={passive:!0};return a(),window.addEventListener("scroll",a,e),function(){return window.removeEventListener("scroll",a,e)}}),t)}},5350:function(e,t,n){var r=n(7294),a=n(2924);t.Z=function(){var e=(0,r.useContext)(a.Z);if(null==e)throw new Error('"useThemeContext" is used outside of "Layout" component. Please see https://docusaurus.io/docs/api/themes/configuration#usethemecontext.');return e}},3783:function(e,t,n){var r=n(7294),a=n(412),o="desktop",i="mobile",l="ssr";function c(){return a.Z.canUseDOM?window.innerWidth>996?o:i:l}t.Z=function(){var e=(0,r.useState)((function(){return c()})),t=e[0],n=e[1];return(0,r.useEffect)((function(){if(a.Z.canUseDOM){return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),clearTimeout(undefined)}}function e(){n(c())}}),[]),t}},8802:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.trailingSlash,r=t.baseUrl;if(e.startsWith("#"))return e;if(void 0===n)return e;var a,o=e.split(/[#?]/)[0],i="/"===o||o===r?o:(a=o,n?function(e){return e.endsWith("/")?e:e+"/"}(a):function(e){return e.endsWith("/")?e.slice(0,-1):e}(a));return e.replace(o,i)}},8780:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniq=t.applyTrailingSlash=void 0;var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(9964);Object.defineProperty(t,"uniq",{enumerable:!0,get:function(){return r(o).default}})},9964:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Array.from(new Set(e))}}}]); |