vendor: 3,308 bytes, lines 1-8
1function s(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(e){return typeof e}:s=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(o)}var y="dahlia",E=function(e){return e===3?"v3":e},h="https://js.stripe.com",b="".concat(h,"/").concat(y,"/stripe.js"),g=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,L=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,S="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",j=function(e){return g.test(e)||L.test(e)},R=function(){for(var e=document.querySelectorAll('script[src^="'.concat(h,'"]')),r=0;r<e.length;r++){var n=e[r];if(j(n.src))return n}return null},m=function(e){var r=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(b).concat(r);var t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return t.appendChild(n),n},P=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.0.1",startTime:r})},l=null,u=null,d=null,T=function(e){return function(r){e(new Error("Failed to load Stripe.js",{cause:r}))}},x=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},_=function(e){return l!==null?l:(l=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(S),window.Stripe){r(window.Stripe);return}try{var t=R();if(t&&e)console.warn(S);else if(!t)t=m(e);else if(t&&d!==null&&u!==null){var i;t.removeEventListener("load",d),t.removeEventListener("error",u),(i=t.parentNode)===null||i===void 0||i.removeChild(t),t=m(e)}d=x(r,n),u=T(n),t.addEventListener("load",d),t.addEventListener("error",u)}catch(a){n(a);return}}),l.catch(function(r){return l=null,Promise.reject(r)}))},I=function(e,r,n){if(e===null)return null;var t=r[0];if(typeof t!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(s(t)," instead."));var i=t.match(/^pk_test/),a=E(e.version),v=y;i&&a!==v&&console.warn("Stripe.js@".concat(a," was loaded on the page, but @stripe/stripe-js@").concat("9.0.1"," expected Stripe.js@").concat(v,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var p=e.apply(void 0,r);return P(p,n),p},w=function(e){var r=`invalid load parameters; expected object of shape 2 3 {advancedFraudSignals: boolean} 4 5but received 6 7 `.concat(JSON.stringify(e),` 8`);if(e===null||s(e)!=="object")throw new Error(r);if(Object.keys(e).length===1&&typeof e.advancedFraudSignals=="boolean")return e;throw new Error(r)},c,f=!1,U=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];f=!0;var t=Date.now();return _(c).then(function(i){return I(i,r,t)})};U.setLoadParameters=function(o){if(f&&c){var e=w(o),r=Object.keys(e),n=r.reduce(function(t,i){var a;return t&&o[i]===((a=c)===null||a===void 0?void 0:a[i])},!0);if(n)return}if(f)throw new Error("You cannot change load parameters after calling loadStripe");c=w(o)};export{U as loadStripe};
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.