/*! For license information please see 5751.65494dcf.js.LICENSE.txt */ "use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[5751],{4973:function(n,e,t){t.d(e,{Z:function(){return f},I:function(){return l}});var r=t(7294),o=/{\w+}/g,u="{}";function i(n,e){var t=[],i=n.replace(o,(function(n){var o=n.substr(1,n.length-2),i=null==e?void 0:e[o];if(void 0!==i){var a=r.isValidElement(i)?i:String(i);return t.push(a),u}return n}));return 0===t.length?n:t.every((function(n){return"string"==typeof n}))?i.split(u).reduce((function(n,e,r){var o;return n.concat(e).concat(null!==(o=t[r])&&void 0!==o?o:"")}),""):i.split(u).reduce((function(n,e,o){return[].concat(n,[r.createElement(r.Fragment,{key:o},e,t[o])])}),[])}function a(n){var e=n.children,t=n.values;if("string"!=typeof e)throw console.warn("Illegal children",e),new Error("The Docusaurus component only accept simple string values");return i(e,t)}var c=t(7529);function s(n){var e,t=n.id,r=n.message;return null!==(e=c[null!=t?t:r])&&void 0!==e?e:r}function l(n,e){var t,r=n.message;return i(null!==(t=s({message:r,id:n.id}))&&void 0!==t?t:r,e)}function f(n){var e,t=n.children,o=n.id,u=n.values;if("string"!=typeof t)throw console.warn("Illegal children",t),new Error("The Docusaurus component only accept simple string values");var i=null!==(e=s({message:t,id:o}))&&void 0!==e?e:t;return r.createElement(a,{values:u},i)}},8143:function(n,e,t){t.r(e),t.d(e,{BrowserRouter:function(){return r.VK},HashRouter:function(){return r.UT},Link:function(){return r.rU},MemoryRouter:function(){return r.VA},NavLink:function(){return r.OL},Prompt:function(){return r.NL},Redirect:function(){return r.l_},Route:function(){return r.AW},Router:function(){return r.F0},StaticRouter:function(){return r.gx},Switch:function(){return r.rs},generatePath:function(){return r.Gn},matchPath:function(){return r.LX},useHistory:function(){return r.k6},useLocation:function(){return r.TH},useParams:function(){return r.UO},useRouteMatch:function(){return r.$B},withRouter:function(){return r.EN}});var r=t(3727)},8084:function(n,e,t){t.r(e),t.d(e,{default:function(){return o},useAllPluginInstancesData:function(){return u},usePluginData:function(){return i}});var r=t(2263);function o(){var n=(0,r.Z)().globalData;if(!n)throw new Error("Docusaurus global data not found.");return n}function u(n){var e=o()[n];if(!e)throw new Error('Docusaurus plugin global data not found for "'+n+'" plugin.');return e}function i(n,e){void 0===e&&(e="default");var t=u(n)[e];if(!t)throw new Error('Docusaurus plugin global data not found for "'+n+'" plugin with id "'+e+'".');return t}},8408:function(n,e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.getDocVersionSuggestions=e.getActiveDocContext=e.getActiveVersion=e.getLatestVersion=e.getActivePlugin=void 0;var r=t(8143);e.getActivePlugin=function(n,e,t){void 0===t&&(t={});var o=Object.entries(n).find((function(n){n[0];var t=n[1];return!!r.matchPath(e,{path:t.path,exact:!1,strict:!1})})),u=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!u&&t.failfast)throw new Error("Can't find active docs plugin for \""+e+'" pathname, 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(n).map((function(n){return n.path})).join(", "));return u};e.getLatestVersion=function(n){return n.versions.find((function(n){return n.isLast}))};e.getActiveVersion=function(n,t){var o=e.getLatestVersion(n);return[].concat(n.versions.filter((function(n){return n!==o})),[o]).find((function(n){return!!r.matchPath(t,{path:n.path,exact:!1,strict:!1})}))};e.getActiveDocContext=function(n,t){var o,u,i=e.getActiveVersion(n,t),a=null==i?void 0:i.docs.find((function(n){return!!r.matchPath(t,{path:n.path,exact:!0,strict:!1})}));return{activeVersion:i,activeDoc:a,alternateDocVersions:a?(o=a.id,u={},n.versions.forEach((function(n){n.docs.forEach((function(e){e.id===o&&(u[n.name]=e)}))})),u):{}}};e.getDocVersionSuggestions=function(n,t){var r=e.getLatestVersion(n),o=e.getActiveDocContext(n,t);return{latestDocSuggestion:null==o?void 0:o.alternateDocVersions[r.name],latestVersionSuggestion:r}}},6730:function(n,e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.useDocVersionSuggestions=e.useActiveDocContext=e.useActiveVersion=e.useLatestVersion=e.useVersions=e.useActivePluginAndVersion=e.useActivePlugin=e.useDocsData=e.useAllDocsData=void 0;var r=t(655),o=t(8143),u=r.__importStar(t(8084)),i=t(8408),a={};e.useAllDocsData=function(){var n;return null!==(n=u.default()["docusaurus-plugin-content-docs"])&&void 0!==n?n:a};e.useDocsData=function(n){return u.usePluginData("docusaurus-plugin-content-docs",n)};e.useActivePlugin=function(n){void 0===n&&(n={});var t=e.useAllDocsData(),r=o.useLocation().pathname;return i.getActivePlugin(t,r,n)};e.useActivePluginAndVersion=function(n){void 0===n&&(n={});var t=e.useActivePlugin(n),r=o.useLocation().pathname;if(t)return{activePlugin:t,activeVersion:i.getActiveVersion(t.pluginData,r)}};e.useVersions=function(n){return e.useDocsData(n).versions};e.useLatestVersion=function(n){var t=e.useDocsData(n);return i.getLatestVersion(t)};e.useActiveVersion=function(n){var t=e.useDocsData(n),r=o.useLocation().pathname;return i.getActiveVersion(t,r)};e.useActiveDocContext=function(n){var t=e.useDocsData(n),r=o.useLocation().pathname;return i.getActiveDocContext(t,r)};e.useDocVersionSuggestions=function(n){var t=e.useDocsData(n),r=o.useLocation().pathname;return i.getDocVersionSuggestions(t,r)}},907:function(n,e,t){t.d(e,{Iw:function(){return r.useActiveDocContext},gA:function(){return r.useActivePlugin},zu:function(){return r.useActiveVersion},_r:function(){return r.useAllDocsData},Jo:function(){return r.useDocVersionSuggestions},zh:function(){return r.useDocsData},yW:function(){return r.useLatestVersion},gB:function(){return r.useVersions}});var r=t(6730)},3018:function(n,e,t){t.d(e,{pl:function(){return ln},zF:function(){return k},HX:function(){return g},PO:function(){return B},L5:function(){return nn},Cv:function(){return J},Cn:function(){return G},kM:function(){return rn},WA:function(){return s},os:function(){return h},Mg:function(){return b},_f:function(){return l},bc:function(){return p},l5:function(){return v},nT:function(){return fn},uR:function(){return V},J:function(){return tn},be:function(){return vn},SL:function(){return S},g8:function(){return q},D9:function(){return E},LU:function(){return o},pe:function(){return w}});var r=t(2263);function o(){return(0,r.Z)().siteConfig.themeConfig}var u="localStorage";function i(n){if(void 0===n&&(n=u),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===n)return null;try{return window[n]}catch(t){return e=t,a||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",e),a=!0),null}var e}var a=!1;var c={get:function(){return null},set:function(){},del:function(){}};var s=function(n,e){if("undefined"==typeof window)return function(n){function e(){throw new Error('Illegal storage API usage for storage key "'+n+'".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.')}return{get:e,set:e,del:e}}(n);var t=i(null==e?void 0:e.persistence);return null===t?c:{get:function(){return t.getItem(n)},set:function(e){return t.setItem(n,e)},del:function(){return t.removeItem(n)}}};function l(n){void 0===n&&(n=u);var e=i(n);if(!e)return[];for(var t=[],r=0;r1&&n.preventDefault()},onClick:function(n){n.stopPropagation();var e=n.target;H(e)&&z(e,a.current)&&(n.preventDefault(),s?(l(!1),d(!0)):l(!0))}}),t,_.createElement(k,{lazy:!1,collapsed:s,disableSSRStyle:!0,onCollapseTransitionEnd:function(n){l(n),d(!n)}},_.createElement("div",{className:F},o)))};var U=(0,_.createContext)(null);function G(n){var e=n.children;return _.createElement(U.Provider,{value:(0,_.useState)(null)},e)}function W(){var n=(0,_.useContext)(U);if(null===n)throw new Error("MobileSecondaryMenuProvider was not used correctly, context value is null");return n}function q(){var n=W()[0];if(n){var e=n.component;return function(t){return _.createElement(e,Object.assign({},n.props,t))}}return function(){}}function J(n){var e,t=n.component,r=n.props,o=W()[1],u=(e=r,(0,_.useMemo)((function(){return e}),[].concat(Object.keys(e),Object.values(e))));return(0,_.useEffect)((function(){o({component:t,props:u})}),[o,t,u]),(0,_.useEffect)((function(){return function(){return o(null)}}),[o]),null}var X=function(n){return"docs-preferred-version-"+n},K={save:function(n,e,t){s(X(n),{persistence:e}).set(t)},read:function(n,e){return s(X(n),{persistence:e}).get()},clear:function(n,e){s(X(n),{persistence:e}).del()}};function Q(n){var e=n.pluginIds,t=n.versionPersistence,r=n.allDocsData;var o={};return e.forEach((function(n){o[n]=function(n){var e=K.read(n,t);return r[n].versions.some((function(n){return n.name===e}))?{preferredVersionName:e}:(K.clear(n,t),{preferredVersionName:null})}(n)})),o}function Y(){var n=(0,y._r)(),e=o().docs.versionPersistence,t=(0,_.useMemo)((function(){return Object.keys(n)}),[n]),r=(0,_.useState)((function(){return function(n){var e={};return n.forEach((function(n){e[n]={preferredVersionName:null}})),e}(t)})),u=r[0],i=r[1];return(0,_.useEffect)((function(){i(Q({allDocsData:n,versionPersistence:e,pluginIds:t}))}),[n,e,t]),[u,(0,_.useMemo)((function(){return{savePreferredVersion:function(n,t){K.save(n,e,t),i((function(e){var r;return Object.assign({},e,((r={})[n]={preferredVersionName:t},r))}))}}}),[i])]}var $=(0,_.createContext)(null);function nn(n){var e=n.children;return m?_.createElement(en,null,e):_.createElement(_.Fragment,null,e)}function en(n){var e=n.children,t=Y();return _.createElement($.Provider,{value:t},e)}function tn(n){void 0===n&&(n="default");var e=(0,y.zh)(n),t=function(){var n=(0,_.useContext)($);if(!n)throw new Error('Can\'t find docs preferred context, maybe you forgot to use the "DocsPreferredVersionContextProvider"?');return n}(),r=t[0],o=t[1],u=r[n].preferredVersionName;return{preferredVersion:u?e.versions.find((function(n){return n.name===u})):null,savePreferredVersionName:(0,_.useCallback)((function(e){o.savePreferredVersion(n,e)}),[o])}}var rn={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagsPostPage:"blog-tags-post-page",docPage:"doc-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docPages:"docs-wrapper",mdxPages:"mdx-wrapper"}},on=s("docusaurus.announcement.dismiss"),un=s("docusaurus.announcement.id"),an=function(){return"true"===on.get()},cn=function(n){return on.set(String(n))},sn=(0,_.createContext)(null),ln=function(n){var e=n.children,t=function(){var n=o().announcementBar,e=(0,r.Z)().isClient,t=(0,_.useState)((function(){return!!e&&an()})),u=t[0],i=t[1];(0,_.useEffect)((function(){i(an())}),[]);var a=(0,_.useCallback)((function(){cn(!0),i(!0)}),[]);return(0,_.useEffect)((function(){if(n){var e=n.id,t=un.get();"annoucement-bar"===t&&(t="announcement-bar");var r=e!==t;un.set(e),r&&cn(!1),!r&&an()||i(!1)}}),[]),(0,_.useMemo)((function(){return{isClosed:u,close:a}}),[u])}();return _.createElement(sn.Provider,{value:t},e)},fn=function(){var n=(0,_.useContext)(sn);if(!n)throw new Error("useAnnouncementBar(): AnnouncementBar not found in React context: make sure to use the AnnouncementBarProvider on top of the tree");return n};function vn(){var n=(0,r.Z)().siteConfig.baseUrl;return(0,f.TH)().pathname.replace(n,"/")}},6010:function(n,e,t){function r(n){var e,t,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n))for(e=0;e=0;a--)(o=n[a])&&(i=(u<3?o(i):u>3?o(e,t,i):o(e,t))||i);return u>3&&i&&Object.defineProperty(e,t,i),i}function c(n,e){return function(t,r){e(t,r,n)}}function s(n,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,e)}function l(n,e,t,r){return new(t||(t=Promise))((function(o,u){function i(n){try{c(r.next(n))}catch(e){u(e)}}function a(n){try{c(r.throw(n))}catch(e){u(e)}}function c(n){var e;n.done?o(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(i,a)}c((r=r.apply(n,e||[])).next())}))}function f(n,e){var t,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(n,e){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var r,o,u=t.call(n),i=[];try{for(;(void 0===e||e-- >0)&&!(r=u.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=u.return)&&t.call(u)}finally{if(o)throw o.error}}return i}function h(){for(var n=[],e=0;e1||a(n,e)}))})}function a(n,e){try{(t=o[n](e)).value instanceof b?Promise.resolve(t.value.v).then(c,s):l(u[0][2],t)}catch(r){l(u[0][3],r)}var t}function c(n){a("next",n)}function s(n){a("throw",n)}function l(n,e){n(e),u.shift(),u.length&&a(u[0][0],u[0][1])}}function _(n){var e,t;return e={},r("next"),r("throw",(function(n){throw n})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=n[r]?function(e){return(t=!t)?{value:b(n[r](e)),done:"return"===r}:o?o(e):e}:o}}function P(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=p(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(t){e[t]=n[t]&&function(e){return new Promise((function(r,o){(function(n,e,t,r){Promise.resolve(r).then((function(e){n({value:e,done:t})}),e)})(r,o,(e=n[t](e)).done,e.value)}))}}}function D(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var E=Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e};function S(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var t in n)"default"!==t&&Object.prototype.hasOwnProperty.call(n,t)&&v(e,n,t);return E(e,n),e}function A(n){return n&&n.__esModule?n:{default:n}}function O(n,e,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(n):r?r.value:e.get(n)}function V(n,e,t,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(n,t):o?o.value=t:e.set(n,t),t}}}]);