System.register([],(function(e,t){"use strict";return{execute:function(){e("l",(function(e,t){if(void 0===t&&(t=Promise),v(e,t),"undefined"==typeof document)return t.resolve(null);var r=function(e){var t=e.environment,r="sandbox"===t?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js";delete e.environment,e.sdkBaseUrl&&(r=e.sdkBaseUrl,delete e.sdkBaseUrl);var n=e,o=Object.keys(n).filter((function(e){return void 0!==n[e]&&null!==n[e]&&""!==n[e]})).reduce((function(e,t){var r,o=n[t].toString();return r=function(e,t){return(t?"-":"")+e.toLowerCase()},"data"===(t=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,r)).substring(0,4)||"crossorigin"===t?e.attributes[t]=o:e.queryParams[t]=o,e}),{queryParams:{},attributes:{}}),i=o.queryParams,a=o.attributes;return i["merchant-id"]&&-1!==i["merchant-id"].indexOf(",")&&(a["data-merchant-id"]=i["merchant-id"],i["merchant-id"]="*"),{url:"".concat(r,"?").concat(d(i)),attributes:a}}(e),n=r.url,o=r.attributes,i=o["data-namespace"]||"paypal",a=p(i);return o["data-js-sdk-library"]||(o["data-js-sdk-library"]="paypal-js"),
/*!
       * paypal-js v8.1.2 (2024-09-16T17:52:36.940Z)
       * Copyright 2020-present, PayPal, Inc. All rights reserved.
       *
       * Licensed under the Apache License, Version 2.0 (the "License");
       * you may not use this file except in compliance with the License.
       * You may obtain a copy of the License at
       *
       * http://www.apache.org/licenses/LICENSE-2.0
       *
       * Unless required by applicable law or agreed to in writing, software
       * distributed under the License is distributed on an "AS IS" BASIS,
       * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       * See the License for the specific language governing permissions and
       * limitations under the License.
       */
function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(null===r)return null;var n=f(e,t),o=r.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(n.dataset).length)return null;var i=!0;return Object.keys(o.dataset).forEach((function(e){o.dataset[e]!==n.dataset[e]&&(i=!1)})),i?r:null}(n,o)&&a?t.resolve(a):function(e,t){void 0===t&&(t=Promise),v(e,t);var r=e.url,n=e.attributes;if("string"!=typeof r||0===r.length)throw new Error("Invalid url.");if(void 0!==n&&"object"!=typeof n)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"==typeof document)return e();!function(e){var t=e.url,r=e.attributes,n=e.onSuccess,o=e.onError,i=f(t,r);i.onerror=o,i.onload=n,document.head.insertBefore(i,document.head.firstElementChild)}({url:r,attributes:n,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return t(e)}})}))}({url:n,attributes:o},t).then((function(){var e=p(i);if(e)return e;throw new Error("The window.".concat(i," global variable is not available."))}))}));var t,r="https://js.stripe.com/v3",n=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o=function(e){var t=document.createElement("script");t.src="".concat(r).concat("");var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(t),t},i=null,a=null,u=null,c=function(e){return null!==i?i:(i=new Promise((function(t,i){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var o=e[t];if(n.test(o.src))return o}return null}();if(c&&e);else if(c){if(c&&null!==u&&null!==a){var s;c.removeEventListener("load",u),c.removeEventListener("error",a),null===(s=c.parentNode)||void 0===s||s.removeChild(c),c=o()}}else c=o();u=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,i),a=function(e){return function(){e(new Error("Failed to load Stripe.js?v=1773287522785"))}}(i),c.addEventListener("load",u),c.addEventListener("error",a)}catch(l){return void i(l)}else t(null)}))).catch((function(e){return i=null,Promise.reject(e)}))},s=!1,l=function(){return t||(t=c(null).catch((function(e){return t=null,Promise.reject(e)})))};function d(e){var t="";return Object.keys(e).forEach((function(r){0!==t.length&&(t+="&"),t+=r+"="+e[r]})),t}function f(e,t){void 0===t&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r.setAttribute(e,t[e]),"data-csp-nonce"===e&&r.setAttribute("nonce",t["data-csp-nonce"])})),r}function p(e){return window[e]}function v(e,t){if("object"!=typeof e||null===e)throw new Error("Expected an options object.");var r=e.environment;if(r&&"production"!==r&&"sandbox"!==r)throw new Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==t&&"function"!=typeof t)throw new Error("Expected PromisePonyfill to be a function.")}Promise.resolve().then((function(){return l()})).catch((function(e){s||console.warn(e)})),e("a",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];s=!0;var n=Date.now();return l().then((function(e){return function(e,t,r){if(null===e)return null;var n=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"3.4.1",startTime:t})}(n,r),n}(e,t,n)}))}))}}}));
