1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{5021:function(e,t,n){"use strict";n.d(t,{ch:function(){return b},Vv:function(){return _}});var r,o,a,i=n(7294);!function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"}(r||(r={})),function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"}(o||(o={})),function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"}(a||(a={}));var u="data-react-paypal-script-id",s="data-sdk-integration-source",c="react-paypal-js",l="data-namespace",d="paypal",f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function p(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function v(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return void 0===e&&(e=d),window[e]}function m(e){var t=e.reactComponentName,n=e.sdkComponentKey,r=e.sdkRequestedComponents,o=void 0===r?"":r,a=e.sdkDataNamespace,i="Unable to render <"+t+" /> because window."+(void 0===a?d:a)+"."+n.charAt(0).toUpperCase().concat(n.substring(1))+" is undefined.";if(!o.includes(n)){var u=[o,n].filter(Boolean).join();i+="\nTo fix the issue, add '"+n+"' to the list of components passed to the parent PayPalScriptProvider:\n`<PayPalScriptProvider options={{ components: '"+u+"'}}>`."}return i}function y(e){return"react-paypal-js-"+function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].charCodeAt(0)*n;e[n+1]&&(r+=e[n+1].charCodeAt(0)*(n-1)),t+=String.fromCharCode(97+Math.abs(r)%26)}return t}(JSON.stringify(e))}function E(e,t){var n;switch(t.type){case o.LOADING_STATUS:return f(f({},e),{loadingStatus:t.value});case o.RESET_OPTIONS:return function(e){var t=self.document.querySelector("script["+u+'="'+e+'"]');(null===t||void 0===t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}(e.options[u]),delete t.value[u],f(f({},e),{loadingStatus:r.PENDING,options:f(f({},t.value),(n={},n[u]=""+y(t.value),n[s]=c,n))});case o.SET_BRAINTREE_INSTANCE:return f(f({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var w=(0,i.createContext)(null);function g(e){if("function"===typeof(null===e||void 0===e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw new Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}function N(){var e=g((0,i.useContext)(w));return[f(f({},e),{isInitial:e.loadingStatus===r.INITIAL,isPending:e.loadingStatus===r.PENDING,isResolved:e.loadingStatus===r.RESOLVED,isRejected:e.loadingStatus===r.REJECTED}),e.dispatch]}(0,i.createContext)(null);var b=function(e){var t=e.className,n=void 0===t?"":t,r=e.disabled,o=void 0!==r&&r,a=e.children,u=e.forceReRender,s=void 0===u?[]:u,c=p(e,["className","disabled","children","forceReRender"]),d=o?{opacity:.38}:{},y=(n+" "+(o?"paypal-buttons-disabled":"")).trim(),E=(0,i.useRef)(null),w=(0,i.useRef)(null),g=N()[0],S=g.isResolved,P=g.options,C=(0,i.useState)(null),O=C[0],R=C[1],I=(0,i.useState)(!0),A=I[0],T=I[1],j=(0,i.useState)(null)[1];function k(){null!==w.current&&w.current.close().catch((function(){}))}return(0,i.useEffect)((function(){if(!1===S)return k;var e=h(P[l]);if(void 0===e||void 0===e.Buttons)return j((function(){throw new Error(m({reactComponentName:b.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:P.components,sdkDataNamespace:P[l]}))})),k;try{w.current=e.Buttons(f(f({},c),{onInit:function(e,t){R(t),"function"===typeof c.onInit&&c.onInit(e,t)}}))}catch(t){return j((function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: "+t)}))}return!1===w.current.isEligible()?(T(!1),k):E.current?(w.current.render(E.current).catch((function(e){null!==E.current&&0!==E.current.children.length&&j((function(){throw new Error("Failed to render <PayPalButtons /> component. "+e)}))})),k):k}),v(v([S],s,!0),[c.fundingSource],!1)),(0,i.useEffect)((function(){null!==O&&(!0===o?O.disable().catch((function(){})):O.enable().catch((function(){})))}),[o,O]),i.createElement(i.Fragment,null,A?i.createElement("div",{ref:E,style:d,className:y}):a)};function S(e){var t="https://www.paypal.com/sdk/js";e.sdkBaseURL&&(t=e.sdkBaseURL,delete e.sdkBaseURL);var n=function(e,t){var n="",r="";Array.isArray(e)?e.length>1?(n="*",r=e.toString()):n=e.toString():"string"===typeof e&&e.length>0?n=e:"string"===typeof t&&t.length>0&&(n="*",r=t);return{"merchant-id":n,"data-merchant-id":r}}(e["merchant-id"],e["data-merchant-id"]),r=Object.assign({},e,n),o=Object.keys(r).filter((function(e){return"undefined"!==typeof r[e]&&null!==r[e]&&""!==r[e]})).reduce((function(e,t){var n=r[t].toString();return"data-"===t.substring(0,5)?e.dataAttributes[t]=n:e.queryParams[t]=n,e}),{queryParams:{},dataAttributes:{}}),a=o.queryParams,i=o.dataAttributes;return{url:t+"?"+P(a),dataAttributes:i}}function P(e){var t="";return Object.keys(e).forEach((function(n){0!==t.length&&(t+="&"),t+=n+"="+e[n]})),t}function C(e,t){void 0===t&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach((function(e){n.setAttribute(e,t[e]),"data-csp-nonce"===e&&n.setAttribute("nonce",t["data-csp-nonce"])})),n}function O(e,t){if(void 0===t&&(t=I()),T(e,t),"undefined"===typeof window)return t.resolve(null);var n=S(e),r=n.url,o=n.dataAttributes,a=o["data-namespace"]||"paypal",i=A(a);return function(e,t){var n=document.querySelector('script[src="'+e+'"]');if(null===n)return null;var r=C(e,t),o=Object.assign({},n.dataset);if(delete o.uidAuto,Object.keys(o).length!==Object.keys(r.dataset).length)return null;var a=!0;
1return Object.keys(o).forEach((function(e){o[e]!==r.dataset[e]&&(a=!1)})),a?n:null}(r,o)&&i?t.resolve(i):R({url:r,attributes:o},t).then((function(){var e=A(a);if(e)return e;throw new Error("The window."+a+" global variable is not available.")}))}function R(e,t){void 0===t&&(t=I()),T(e,t);var n=e.url,r=e.attributes;if("string"!==typeof n||0===n.length)throw new Error("Invalid url.");if("undefined"!==typeof r&&"object"!==typeof r)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"===typeof window)return e();!function(e){var t=e.url,n=e.attributes,r=e.onSuccess,o=e.onError,a=C(t,n);a.onerror=o,a.onload=r,document.head.insertBefore(a,document.head.firstElementChild)}({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){return t(new Error('The script "'+n+'" failed to load.'))}})}))}function I(){if("undefined"===typeof Promise)throw new Error("Promise is undefined. To resolve the issue, use a Promise polyfill.");return Promise}function A(e){return window[e]}function T(e,t){if("object"!==typeof e||null===e)throw new Error("Expected an options object.");if("undefined"!==typeof t&&"function"!==typeof t)throw new Error("Expected PromisePonyfill to be a function.")}b.displayName="PayPalButtons";var j=function(e){var t=e.className,n=void 0===t?"":t,r=e.children,o=p(e,["className","children"]),a=N()[0],u=a.isResolved,s=a.options,c=(0,i.useRef)(null),d=(0,i.useState)(!0),v=d[0],y=d[1],E=(0,i.useState)(null)[1];return(0,i.useEffect)((function(){if(!1!==u){var e=h(s[l]);if(void 0===e||void 0===e.Marks)return E((function(){throw new Error(m({reactComponentName:j.displayName,sdkComponentKey:"marks",sdkRequestedComponents:s.components,sdkDataNamespace:s[l]}))}));!function(e){var t=c.current;if(!t||!e.isEligible())return y(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch((function(e){null!==t&&0!==t.children.length&&E((function(){throw new Error("Failed to render <PayPalMarks /> component. "+e)}))}))}(e.Marks(f({},o)))}}),[u,o.fundingSource]),i.createElement(i.Fragment,null,v?i.createElement("div",{ref:c,className:n}):r)};j.displayName="PayPalMarks";var k=function(e){var t=e.className,n=void 0===t?"":t,r=e.forceReRender,o=void 0===r?[]:r,a=p(e,["className","forceReRender"]),u=N()[0],s=u.isResolved,c=u.options,d=(0,i.useRef)(null),y=(0,i.useRef)(null),E=(0,i.useState)(null)[1];return(0,i.useEffect)((function(){if(!1!==s){var e=h(c[l]);if(void 0===e||void 0===e.Messages)return E((function(){throw new Error(m({reactComponentName:k.displayName,sdkComponentKey:"messages",sdkRequestedComponents:c.components,sdkDataNamespace:c[l]}))}));y.current=e.Messages(f({},a)),null!==d.current&&y.current.render(d.current).catch((function(e){null!==d.current&&0!==d.current.children.length&&E((function(){throw new Error("Failed to render <PayPalMessages /> component. "+e)}))}))}}),v([s],o,!0)),i.createElement("div",{ref:d,className:n})};k.displayName="PayPalMessages";var _=function(e){var t,n=e.options,a=void 0===n?{"client-id":"test"}:n,l=e.children,d=e.deferLoading,p=void 0!==d&&d,v=(0,i.useReducer)(E,{options:f(f({},a),(t={},t[u]=""+y(a),t[s]=c,t)),loadingStatus:p?r.INITIAL:r.PENDING}),h=v[0],m=v[1];return(0,i.useEffect)((function(){if(!1===p&&h.loadingStatus===r.INITIAL)return m({type:o.LOADING_STATUS,value:r.PENDING});if(h.loadingStatus===r.PENDING){var e=!0;return O(h.options).then((function(){e&&m({type:o.LOADING_STATUS,value:r.RESOLVED})})).catch((function(){e&&m({type:o.LOADING_STATUS,value:r.REJECTED})})),function(){e=!1}}}),[h.options,p,h.loadingStatus]),i.createElement(w.Provider,{value:f(f({},h),{dispatch:m})},l)}},1780:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2654)}])},2654:function(e,t,n){"use strict";n.r(t);var r=n(5893),o=n(7294),a=n(1163);n(1427),n(5021);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){var t=e.Component,n=e.pageProps;return(0,o.useEffect)((function(){window.onNextjsAppDidMount&&window.onNextjsAppDidMount(),window.onNextjsRouteChangeComplete&&window.onNextjsRouteChangeComplete();var e=function(){window.onNextjsRouteChangeStart&&window.onNextjsRouteChangeStart()},t=function(){window.onNextjsRouteChangeComplete&&window.onNextjsRouteChangeComplete()};return a.default.events.on("routeChangeStart",e),a.default.events.on("routeChangeComplete",t),function(){a.default.events.off("routeChangeStart",e),a.default.events.off("routeChangeComplete",t)}}),[]),(0,r.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},n))}},1427:function(){},1163:function(e,t,n){e.exports=n(387)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],(function(){return t(1780),t(387)}));var n=e.O();_N_E=n}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.