vendor: 2,862 bytes, lines 1-2
1try{(function(){var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="2b3306a0-aa4c-4c80-aaa8-b8eaa462d0d2",n._sentryDebugIdIdentifier="sentry-dbid-2b3306a0-aa4c-4c80-aaa8-b8eaa462d0d2")})()}catch{}var S="acacia",E=function(e){return e===3?"v3":e},m="https://js.stripe.com",g="".concat(m,"/").concat(S,"/stripe.js"),b=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,y=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,p="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 b.test(e)||y.test(e)},L=function(){for(var e=document.querySelectorAll('script[src^="'.concat(m,'"]')),r=0;r<e.length;r++){var i=e[r];if(j(i.src))return i}return null},v=function(e){var r="",i=document.createElement("script");i.src="".concat(g).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(i),i},I=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"6.1.0",startTime:r})},a=null,c=null,d=null,R=function(e){return function(r){e(new Error("Failed to load Stripe.js",{cause:r}))}},T=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},P=function(e){return a!==null?a:(a=new Promise(function(r,i){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&e&&console.warn(p),window.Stripe){r(window.Stripe);return}try{var t=L();if(t&&e)console.warn(p);else if(!t)t=v(e);else if(t&&d!==null&&c!==null){var o;t.removeEventListener("load",d),t.removeEventListener("error",c),(o=t.parentNode)===null||o===void 0||o.removeChild(t),t=v(e)}d=T(r,i),c=R(i),t.addEventListener("load",d),t.addEventListener("error",c)}catch(u){i(u);return}}),a.catch(function(r){return a=null,Promise.reject(r)}))},_=function(e,r,i){if(e===null)return null;var t=r[0],o=t.match(/^pk_test/),u=E(e.version),l=S;o&&u!==l&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("6.1.0"," expected Stripe.js@").concat(l,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var f=e.apply(void 0,r);return I(f,i),f},s,w=!1,h=function(){return s||(s=P(null).catch(function(e){return s=null,Promise.reject(e)}),s)};Promise.resolve().then(function(){return h()}).catch(function(n){w||console.warn(n)});var x=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];w=!0;var t=Date.now();return h().then(function(o){return _(o,r,t)})};export{x as loadStripe}; 2//# sourceMappingURL=index-CEyP2It3.js.map
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.