PageSourceSearch

https://menletics.com/_next/static/chunks/9809.1ca485d3de632a79.js

js menletics.com collected 2026-09-24 12:46:10 UTC 78,321 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="941a6372-a7a4-4f18-ba33-8fbeeb53bacb",e._sentryDebugIdIdentifier="sentry-dbid-941a6372-a7a4-4f18-ba33-8fbeeb53bacb")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9809],{97367:function(e,t,r){var n,o=r(83454),i=r(21876).Buffer;n=()=>(()=>{"use strict";let e,t;var r,n,a,s,c,d,u,E,A,l,p,_,N,T,I,h,f={};f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};f.r(m),f.d(m,{SuccessScreenType:()=>e5,PaymentFlow:()=>eJ,PrimerClientError:()=>e6,ThreeDSecureStatus:()=>eZ,TokenType:()=>e2,isStripeOptionsDropInWithFullMandateText:()=>e8,PaymentInstrumentType:()=>e0,ErrorCode:()=>e3,EventTypes:()=>e9,CheckoutUXFlow:()=>e$,HeadlessManagerType:()=>e7,PaymentMethodType:()=>e1,Primer:()=>te});let R=()=>y.randomUUID?.()||O(),O=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^C()>>e/4).toString(16)),C=()=>(y.getRandomValues?.(new Uint8Array(1))[0]??16*Math.random())&15,y="undefined"!=typeof crypto?crypto:{},P="2.4";class S extends Error{static from(e,t=!1){if(e instanceof S)return e;let r=new S(e instanceof Error?e.message:String(e),t);return e instanceof Error&&e.stack&&(r.stack=e.stack,Object.assign(r,e)),r}markAsReported(){this.isReported=!0}constructor(e,t=!1){var r,n;super(e),n=void 0,(r="isReported")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,this.isReported=t,this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}let g="https://analytics.production.data.primer.io/sdk-logs";var L=((r={}).REQUEST_START="REQUEST_START",r.REQUEST_END="REQUEST_END",r),D=((n={}).START="START",n.END="END",n);let b={createHeadless:"HEADLESS_LOADING",showUniversalCheckout:"DROP_IN_LOADING",showVaultManager:"VAULT_MANAGER_LOADING",preloadPrimer:"PRELOAD_PRIMER_LOADING"};var v=((a={}).NETWORK_CALL_EVENT="NETWORK_CALL_EVENT",a.CRASH_EVENT="CRASH_EVENT",a.TIMER_EVENT="TIMER_EVENT",a.MESSAGE_EVENT="MESSAGE_EVENT",a.SCRIPT_UNAUTHORIZED_EVENT="SCRIPT_UNAUTHORIZED_EVENT",a.V1_EVENT="V1_EVENT",a.SDK_FUNCTION_EVENT="SDK_FUNCTION_EVENT",a);let M=({get(e,t){let r;try{switch(e){case"PRIMER_SDK_VERSION":r="v2.64.12";break;case"PRIMER_ASSETS_URL":r="https://sdk.primer.io/web";break;case"PRIMER_BUILD_INTEGRATION_BUILDER":r=o.env.PRIMER_BUILD_INTEGRATION_BUILDER}}catch{}return r||t}}).get("PRIMER_SDK_VERSION"),w=()=>"undefined"!=typeof window&&window.location?{hostname:window.location.hostname,origin:window.location.origin}:{};function Y(e,t,r){return{...r,...w(),createdAt:Date.now(),device:function(){if("undefined"!=typeof navigator&&"undefined"!=typeof performance)return{memoryFootprint:performance.memory?.usedJSHeapSize,screen:{height:screen?.height,width:screen?.width},userAgent:navigator.userAgent,locale:navigator.language}}(),eventType:e,properties:t,sdkVersion:M,sdkType:"WEB"}}let U=Symbol.for("__primerAnalytics__"),k={providers:new Map,timers:new Map,eventsQueue:new Map};if("undefined"!=typeof window){let e=window[U];e?k=e:window[U]=k}let F=()=>k.providers,B=()=>k.timers,x=()=>k.eventsQueue;function H(e,t){fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,priority:"low"}).catch(e=>{console.warn("Unable to send analytics events",e)})}let V=new Map;function G(e,t=!1){if(!t&&V.has(e))return;let r=()=>{V.delete(e);let t=x().get(e);if(!t?.length)return;let r=[],n=0;for(let o of t){let t=new Blob([JSON.stringify(o)]).size;n+t>64e3&&r.length>0&&(H(e,r),r=[],n=0),r.push(o),n+=t}r.length>0&&H(e,r),x().delete(e)};if(t){let t=V.get(e);void 0!==t&&(clearTimeout(t),V.delete(e)),r();return}let n=setTimeout(r,500);V.set(e,n)}let K=!1;function z({url:e=g,...t}){"undefined"==typeof document||K||(document.addEventListener("visibilitychange",()=>{if("hidden"===document.visibilityState){let e=Q(t.checkoutSessionId);e.messageEvent({messageType:"VISIBILITY_CHANGE",message:"Checkout visibility is hidden (tab or window change, redirect or being closed)."}),G(e.url,!0)}}),K=!0);let r=r=>async n=>{"undefined"!=typeof navigator&&function(e,t){let r;try{r=new Blob([JSON.stringify(t)]).size}catch(e){console.warn("Failed to serialize analytics event",e);return}if(r>64e3)return console.error("Event size exceeds maximum payload size and will be skipped:",t);x().has(e)||x().set(e,[]);let n=x().get(e);n?.push(t),G(e)}(e,function e(t,r,n=new WeakSet,o=0,i=10){if(o>i||n.has(t))return t;n.add(t);let a=t=>"object"==typeof t&&null!==t?e(t,r,n,o+1,i):r(t);return Array.isArray(t)?t.map(a):Object.fromEntries(Object.entries(t).map(([e,t])=>
1[e,a(t)]))}(Y(r,n,t),e=>{var t;return"string"==typeof(t="function"==typeof e?e.name||"function":e)&&t.length>5120?`${t.slice(0,5120)}...`:t}))},n={crashEvent:r(v.CRASH_EVENT),messageEvent:r(v.MESSAGE_EVENT),networkCallEvent:r(v.NETWORK_CALL_EVENT),scriptUnauthorizedEvent:r(v.SCRIPT_UNAUTHORIZED_EVENT),sdkFunctionEvent:r(v.SDK_FUNCTION_EVENT),timerStart:({id:e,...n})=>{let o=`${t.checkoutSessionId}|${e}`,i=performance?.now?performance.now():Date.now();return B().set(o,{start:i}),r(v.TIMER_EVENT)({...n,id:e,timerType:D.START})},timerEnd:({id:e,...n})=>{let o=`${t.checkoutSessionId}|${e}`,{start:i}=B().get(o)??{};B().delete(o);let a=performance?.now?performance.now():Date.now();return r(v.TIMER_EVENT)({...n,id:e,timerType:D.END,duration:i?a-i:void 0})},v1Event:r(v.V1_EVENT),url:e};return F().set(t.checkoutSessionId,n),Q(t.checkoutSessionId)}function Q(e){return new Proxy({},{get:(t,r)=>(F().get(e)??z({checkoutSessionId:e}))[r]})}let W=(e,t,r,n)=>({callType:r?L.REQUEST_END:L.REQUEST_START,id:e,errorBody:r?.error&&JSON.stringify(r.error,Object.getOwnPropertyNames(r.error)),method:t.method,responseCode:r?.status,url:t.url,duration:n});function j(e,t){return!e||t?.aborted?Promise.resolve():new Promise(r=>{let n=()=>{clearTimeout(o),t?.removeEventListener("abort",n),r()},o=setTimeout(n,e);t?.addEventListener("abort",n,{once:!0})})}async function q(e,t,r,n=j){let o=0,i={enabled:t?.enabled??!1,maxRetries:8,initialBackoff:100,retryNetworkErrors:!0,retry500Errors:!1,maxJitter:100};if(!i.enabled)return e();for(;;)try{let t=await e();if(o){let e=`Request succeeded after ${o} retries.`;"object"==typeof t&&t&&"status"in t&&(e+=` Status code: ${t.status}`),r?.({messageType:"RETRY_SUCCESS",message:e,severity:"INFO"})}return t}catch(d){let e=o>=i.maxRetries,t=d.isNetworkError&&!i.retryNetworkErrors,a=d.status&&d.status>=500&&!i.retry500Errors;if(e||t||a){let n=`Failed after ${o} retries. `;throw e?n+=`Reached maximum retries (${i.maxRetries}).`:t?n+="Network error encountered and retryNetworkErrors is disabled.":a&&(n+="HTTP 500 error encountered and retry500Errors is disabled."),n+=` Last error: ${d.message}`,r?.({messageType:"RETRY_FAILED",message:n,severity:"ERROR",errorBody:JSON.stringify(d,Object.getOwnPropertyNames(d))}),Error(n,{cause:d})}o++;let s=Math.min(i.initialBackoff*Math.pow(2,o-1)+Math.random()*i.maxJitter,Number.MAX_SAFE_INTEGER),c="Unknown error";d.isNetworkError?c="Network error":d.status&&(c=`HTTP ${d.status} error`),r?.({messageType:"RETRY",message:`Retry attempt ${o}/${i.maxRetries} due to: ${c}. Error details: ${d.message}. Waiting for ${s.toFixed(2)}ms before next attempt.`,severity:"WARN",errorBody:JSON.stringify(d,Object.getOwnPropertyNames(d))}),await n(s)}}
1let X={cache:new Map};"undefined"!=typeof window&&((s=window)[c="__primerCache__"]??(s[c]=X),X=window.__primerCache__);let $=()=>X.cache;function J(){if($().size<=30)return;let e=Date.now();for(let[t,r]of $())r.exp<e&&$().delete(t);if($().size>50)for(let[e]of $()){if($().size<=50)break;$().delete(e)}}let Z=(e,t,r)=>ee(e,"get",t,r),ee=async(e,t,r,n,o)=>{let i=R(),a=performance?.now(),s=Q(e),c={method:t,url:r,body:o};s.networkCallEvent(W(i,c));try{let d=await fetch(r,{body:o,method:t,headers:{"content-type":"application/json","x-request-id":i,...n}});if(!d.ok){let e=Error(`HTTP error! status: ${d.status}`);throw e.status=d.status,e}let u=await d.json();if(r.includes("client-sdk/configuration")){let{primerAccountId:t,clientSession:{clientSessionId:r,customer:n}}=u;s=z({checkoutSessionId:e,clientSessionId:r,customerId:n?.customerId,primerAccountId:t,url:s.url})}let E=performance?.now();return s.networkCallEvent(W(i,c,{data:u},E-a)),{data:u,headers:d.headers,status:d.status,source:"NETWORK"}}catch(t){let e=performance?.now();throw Object.assign(t,{isNetworkError:t instanceof TypeError}),s.networkCallEvent(W(i,c,{error:t},e-a)),t}},et=(e,t)=>new Promise((r,n)=>{let o=setTimeout(()=>{let e=Error("Request timed out");e.isNetworkError=!0,n(e)},t);e.then(r).catch(n).finally(()=>clearTimeout(o))}),er=(e,t)=>{let{headers:r,retryConfig:n,cacheConfig:o,timeout:i=15e3,checkoutSessionId:a}=t,s=Q(a);return(function(e){if(!e)return e=>e();let{key:t,refresh:r=!1,usePrimerSessionCacheTtlHeader:n=!1,ttl:o=36e5}=e;return async e=>{let i=Date.now(),a=$().get(t);if(!r&&a&&a.exp>i)return a.promise;a&&$().delete(t);let s=e().then(e=>{let r=o;return n&&(r=1e3*(Number(e.headers.get("x-primer-session-cache-ttl"))||0)),function({key:e,ttl:t=36e5},r){t?$().set(e,{promise:Promise.resolve({...r,source:"CACHE"}),exp:Date.now()+t}):$().delete(e)}({key:t,ttl:r},e),J(),e},e=>{throw $().delete(t),e});return $().set(t,{promise:s,exp:i+o}),J(),s}})(o)(()=>q(()=>et(Z(a,e,r),i),n,t=>s.messageEvent({...t,url:e})))},en="function"==typeof i,eo="function"==typeof TextDecoder?new TextDecoder:void 0,ei="function"==typeof TextEncoder?new TextEncoder:void 0,ea=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),es=(t={},ea.forEach((e,r)=>t[e]=r),t),ec=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ed=String.fromCharCode.bind(String),eu="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),eE=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),eA=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),el="function"==typeof btoa?e=>btoa(e):en?e=>i.from(e,"binary").toString("base64"):e=>{let t,r,n,o,i="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw TypeError("invalid character found");i+=ea[(t=r<<16|n<<8|o)>>18&63]+ea[t>>12&63]+ea[t>>6&63]+ea[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},ep=en?e=>i.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(ed.apply(null,e.subarray(r,r+4096)));return el(t.join(""))},e_=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ed(192|t>>>6)+ed(128|63&t):ed(224|t>>>12&15)+ed(128|t>>>6&63)+ed(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ed(240|t>>>18&7)+ed(128|t>>>12&63)+ed(128|t>>>6&63)+ed(128|63&t)},eN=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eT=e=>e.replace(eN,e_),eI=en?e=>i.from(e,"utf8").toString("base64"):ei?e=>ep(ei.encode(e)):e=>el(eT(e)),eh=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ef=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ed((t>>>10)+55296)+ed((1023&t)+56320);case 3:return ed((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ed((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},em=e=>e.replace(eh,ef),eR="function"==typeof atob?e=>atob(eA(e)):en?e=>i.from(e,"base64").toString("binary"):e=>
1{if(e=e.replace(/\s+/g,""),!ec.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,o;for(let i=0;i<e.length;)t=es[e.charAt(i++)]<<18|es[e.charAt(i++)]<<12|(n=es[e.charAt(i++)])<<6|(o=es[e.charAt(i++)]),r+=64===n?ed(t>>16&255):64===o?ed(t>>16&255,t>>8&255):ed(t>>16&255,t>>8&255,255&t);return r},eO=en?e=>eu(i.from(e,"base64")):e=>eu(eR(e).split("").map(e=>e.charCodeAt(0))),eC=en?e=>i.from(e,"base64").toString("utf8"):eo?e=>eo.decode(eO(e)):e=>em(eR(e)),ey=e=>eA(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),eP={decode:e=>eC(ey(e))},eS="The provided `clientToken`",eg=`${eS} has expired`,eL=`${eS} is malformed`,eD=(e,t,r)=>({"primer-client-token":e,"primer-sdk-client":"WEB","primer-sdk-version":"v2.64.12","primer-sdk-checkout-session-id":t,...r&&{"x-api-version":r}});async function eb(e,t,r){let{accessToken:n,configurationUrl:o,analyticsUrlV2:i}=function(e){let t=function(e){try{let[t,r]=e.split(".");return JSON.parse(eP.decode(r||t))}catch{throw Error(eL)}}(e),r=1e3*t.exp;if(Date.now()>r)throw Error(`${eg}. Expiration date: ${new Date(r).toISOString()}`);return t}(e),a=z({checkoutSessionId:t,url:i}),s=P;a.timerStart({id:"CONFIGURATION_LOADING"});try{let{data:e,source:i}=await er(`${o}/?withDisplayMetadata=true`,{checkoutSessionId:t,headers:eD(n,t,s),retryConfig:{enabled:!0},cacheConfig:r});return a.timerEnd({id:"CONFIGURATION_LOADING",context:{source:i}}),e}catch(t){let e=t instanceof Error?t.message:"Unknown error occurred";throw Error(`Failed to initialize client: ${e}`)}}function ev(e){return e instanceof Error?{errorBody:e.message,stacktrace:e.stack}:"object"==typeof e&&null!==e&&"message"in e?{errorBody:String(e.message),stacktrace:"stack"in e?String(e.stack):void 0}:{errorBody:String(e||"Unknown error")}}function eM({checkoutSessionId:e,analytics:t,error:r,reporter:n}){t?.crashEvent?t.crashEvent({...ev(r),reporter:n}):e&&ew(e,r,n)}async function ew(e,t,r){let n=await Y(v.CRASH_EVENT,{...ev(t),reporter:r},{checkoutSessionId:e});try{await fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}catch(e){console.error("Failed to post crash event",e)}}let eY=Symbol.for("initGlobalErrorMonitoringLoaded"),eU=(e,t)=>{"undefined"!=typeof window&&window[eY]||(window[eY]=!0,window.addEventListener("error",r=>{!ek(r)&&eF(r)&&eM({checkoutSessionId:e,analytics:t,error:r.error,reporter:"window.onerror"})}),window.addEventListener("unhandledrejection",r=>{let n=r.reason||Error("Unhandled promise rejection");eB(n)&&eM({checkoutSessionId:e,analytics:t,error:n,reporter:"unhandledrejection"})}))},ek=e=>"Script error."===e.message||!e.filename||0===e.lineno,eF=e=>{let t=e.filename;return!!(t&&ex(t))&&!!new S(e.error).isReported},eB=e=>{if(e&&"object"==typeof e&&"stack"in e&&"string"==typeof e.stack){let t=S.from(e);return!t.isReported&&(!!("fileName"in e&&"string"==typeof e.fileName&&ex(e.fileName))||eH(t.stack).some(ex))}return!1},ex=e=>{try{return new URL(e,window.location.origin).hostname.endsWith(".primer.io")}catch{return!1}},eH=e=>{if(!e)return[];let t=e.split("\n"),r=[],n=/^\s*at\s+(?:.*?\s+)?\(?(.+?):\d+:\d+\)?$/;for(let e of t){let t=e.match(n);if(t&&t[1])r.push(t[1]);else{let t=/@(.*?):\d+:\d+$/,n=e.match(t);n&&n[1]&&r.push(n[1])}}return r},eV=["https://sdk.primer.io/web/","https://sdk.dev.primer.io/web/","https://sdk.sandbox.primer.io/web/","https://sdk.production.primer.io/web/","https://sdk.primer.io/state-processor/","https://sdk.dev.primer.io/state-processor/","https://sdk.primer.io/cel-wrapper/","https://sdk.dev.primer.io/cel-wrapper/","https://assets.primer.io/","https://x.klarnacdn.net/kp/lib/v","https://www.paypal.com/sdk/js","https://www.paypalobjects.com/","https://js.stripe.com/","https://pay.google.com/gp/p/js/"];function eG(e,t,r){return document.querySelector(`${e}[${t}^="${r}"]`)}async function eK(e,t,r,n,o,i){let{analytics:a,name:s=t,retryConfig:c}=i;await q(()=>new Promise((i,c)=>{var d;let u,E=eG(e,r,t)||(d={...n,[r]:t},u=document.createElement(e),Object.entries(d).forEach(([e,t])=>u.setAttribute(e,t)),u);E.onload=()=>{a?.sdkFunctionEvent({name:s,params:[`${e.charAt(0).toUpperCase()+e.slice(1)} loaded successfully: ${t}`]}),i()},E.onerror=()=>{E.remove(),c(Error(`${o}: ${t}`))},E.parentNode||document.head.appendChild(E)}),c,e=>a?.messageEvent({...e,url:t}))}async function ez(t){return e||(e=Promise.all([function(e,t={}){if(!eV.some(t=>e.startsWith(t))){let r=`Script source not authorized per PCI DSS 6.4.3: ${e}`;return t.analytics?.scriptUnauthorizedEvent({scriptSource:e,errorMessage:r,severity:"ERROR"}),console.error(`[Primer SDK Security] ${r}`),Promise.reject(Error(r))}return eG("script","src",e)&&window.__Primer?(t.analytics?.sdkFunctionEvent({name:t.name??e,params:["Script already loaded"]}),Promise.resolve()):eK("script",e,"src",{...t.attributes,async:"",crossorigin:"anonymous"},"Can't load Primer SDK",t)}("https://sdk.primer.io/web/v2.64.12/PrimerCoreSDK.min.js",{analytics:t,name:"loadPrimerScript"}),function(e,t={}){return Array.from(document.styleSheets).some(t=>t.href===e)?(t.analytics?.sdkFunctionEvent({name:t.name??e,params:["Stylesheet already loaded"]}),Promise.resolve()):eK("link",e,"href",{...t.attributes,rel:"stylesheet"},"Can't load Primer SDK's Stylesheet",t)}("https://sdk.primer.io/web/v2.64.12/Checkout.css",{analytics:t,name:"loadPrimerCss"})]).then(()=>{let e=window.__Primer;return delete window.__Primer,e}).catch(t=>{throw e=void 0,t}))}let eQ=async()=>{let e=R();try{let t=Q(e);try{eU(e,t),t.sdkFunctionEvent({name:"preloadPrimer"}),t.timerStart({id:b.preloadPrimer}),await ez(t),t.timerEnd({id:b.preloadPrimer})}catch(n){let r=S.from(n);throw r.isReported||(eM({checkoutSessionId:e,analytics:t,error:r,reporter:"preloadPrimer level 1"}),r.markAsReported()),r}}catch(r){let t=S.from(r);throw t.isReported||(ew(e,t,"preloadPrimer level 0"),t.markAsReported()),t}},eW=eX("createHeadless"),ej=eX("showUniversalCheckout"),eq=eX("showVaultManager");function eX(e){return async(...[t,r,...n])=>{P=r?.apiVersion??"2.4";let o=R();try{let i=Q(o);try{eU(o,i),i.sdkFunctionEvent({name:e,params:[t,r,...n]}),i.timerStart({id:b[e]});let[a,s]=await Promise.all([eb(t,o,r?.clientSessionCachingEnabled?{
1key:t,usePrimerSessionCacheTtlHeader:!0}:void 0),ez(i)]);return s[e](a,o,t,r,...n)}catch(t){let e=S.from(t);throw e.isReported||(eM({checkoutSessionId:o,analytics:i,error:e,reporter:"lazyLoad level 1"}),e.markAsReported()),e}}catch(t){let e=S.from(t);throw e.isReported||(ew(o,e,"lazyLoad level 0"),e.markAsReported()),e}}}(d={}).LOADING="Loading",d.NO_PAYMENT_METHOD="NoPaymentMethod",d.THREE_DS="UniversalCheckout/3ds",d.CHOOSE_PAYMENT_METHOD="UniversalCheckout/Home",d.MANAGE_PAYMENT_METHODS="VaultManager/Home",d.DIRECT_DEBIT_FORM="DirectDebit/Form",d.DIRECT_DEBIT_MANDATE="DirectDebit/Mandate",d.CREDIT_CARD_FORM="CreditCard/Form",d.SUCCESS_PAYMENT_METHOD="UniversalCheckout/Success/PaymentMethod",d.SUCCESS_CHECK="UniversalCheckout/Success/Check",(u={}).ROOT="primer-checkout",u.ROOT_CONTENT="primer-checkout-content",u.SUBMIT_BUTTON="primer-checkout-submit-button",u.THREE_DS_MODAL="primer-checkout-3ds-modal",u.VAULT="primer-checkout-vault",u.VAULT_INLINE="primer-checkout-vault-inline",u.NAVIGATE_PAYMENT_METHODS="primer-checkout-navigate-to-payment-methods",u.DIVIDER="primer-checkout-payment-method-divider",u.APM_BUTTONS="primer-checkout-apm-button-container",u.CARDHOLDER_NAME="primer-checkout-cardholder-name",u.CARDHOLDER_NAME_INPUT="primer-checkout-card-cardholder-name-input",u.ACTIONS="primer-checkout-actions",u.ACTIONS_MENU="primer-checkout-actions-menu",u.SAVE_PAYMENT_METHOD_CHECKBOX="primer-checkout-save-payment-method-input",u.SAVE_PAYMENT_METHOD_FIELD="primer-checkout-save-payment-method-field",u.SAVED_PAYMENT_METHODS_EMPTY="primer-checkout-saved-payment-methods-empty-text",u.CARD_FORM="primer-checkout-card-form",u.DD_SWITCH="primer-checkout-switch-dd-inputs",u.DD_IBAN_FIELD="primer-checkout-dd-iban-field",u.DD_LOCAL_FIELD="primer-checkout-dd-local-fields",u.DD_CUSTOMER_NAME_INPUT="primer-checkout-dd-customer-name-input",u.DD_CUSTOMER_EMAIL_INPUT="primer-checkout-dd-customer-email-input",u.DD_CUSTOMER_ADDRESS_LINE1="primer-checkout-dd-customer-address-input",u.DD_CUSTOMER_ADDRESS_LINE2="primer-checkout-dd-customer-address-line2-input",u.DD_CUSTOMER_ADDRESS_CITY="primer-checkout-dd-customer-city-input",u.DD_CUSTOMER_ADDRESS_POSTAL_CODE="primer-checkout-dd-customer-postal-code-input",u.DD_IBAN_INPUT="primer-checkout-dd-iban-input",u.DD_ACCOUNT_NUMBER_INPUT="primer-checkout-dd-account-number-input",u.DD_BANK_CODE_INPUT="primer-checkout-dd-bank-code-input",u.DD_BRANCH_CODE_INPUT="primer-checkout-dd-branch-code-input",u.DD_MANDATE_SMALL_PRINT="primer-checkout-small-print",u.ERROR_MESSAGE="primer-checkout-error-message",(E={}).TOKEN="PrimerCheckout__token",E.HIDDEN="PrimerCheckout--hidden",E.FOCUSED="PrimerCheckout--focused",E.SELECTED="PrimerCheckout--selected",E.LOADING="PrimerCheckout--loading",E.ERROR="PrimerCheckout--error",E.CARD_TYPE="PrimerCheckout__cardType",E.SAVED_PAYMENT_METHOD="PrimerCheckout__savedPaymentMethod",E.SAVED_PAYMENT_METHOD_CONTAINER="PrimerCheckout__savedPaymentMethodContainer",E.APM_BUTTON="PrimerCheckout__apmButton",E.EDIT_BUTTON="PrimerCheckout__editButton",E.MENU="PrimerCheckout__dropDownMenu",E.MENU_ITEM="PrimerCheckout__dropDownMenuItem",E.PAYMENT_METHOD_MENU_ITEM="PrimerCheckout__paymentMethodDropDownMenuItem",E.DELETE_PAYMENT_METHOD_BUTTON="PrimerCheckout__paymentMethodDropDownMenuItem__deleteButton",E.ENTER="PrimerCheckout--enter",E.ENTERING="PrimerCheckout--entering",E.ENTERED="PrimerCheckout--entered",E.EXIT="PrimerCheckout--exit",E.EXITING="PrimerCheckout--exiting",E.EXITED="PrimerCheckout--exited";var e$=((A={}).CHECKOUT="CHECKOUT",A.HEADLESS_CHECKOUT="HEADLESS_CHECKOUT",A.MANAGE_PAYMENT_METHODS="MANAGE_PAYMENT_METHODS",A),eJ=((l={}).DEFAULT="DEFAULT",l.PREFER_VAULT="PREFER_VAULT",l);(p={}).TOKENIZE_STARTED="tokenize-started",p.TOKENIZE_ERROR="tokenize-error",p.TOKENIZE_SUCCESS="tokenize-success",p.TOKENIZE_DID_NOT_START="tokenize-did-not-start";var eZ=((_={}).SUCCESS="AUTH_SUCCESS",_.FAILED="AUTH_FAILED",_.SKIPPED="SKIPPED",_.CHALLENGE="CHALLENGE",_);let e0={WORLDPAY_IDEAL:"WORLDPAY_IDEAL",AUTOMATED_CLEARING_HOUSE:"AUTOMATED_CLEARING_HOUSE",ADYEN_KLARNA:"ADYEN_KLARNA",ADYEN_BANCONTACT_CARD:"ADYEN_BANCONTACT_CARD",PAY_NL_KAARTDIRECT:"PAY_NL_KAARTDIRECT",ADYEN_EPS:"ADYEN_EPS",ADYEN_BANCONTACT_PAYCONIQ:"ADYEN_BANCONTACT_PAYCONIQ",OMISE_PROMPTPAY:"OMISE_PROMPTPAY",OMISE_TRUEMONEY:"OMISE_TRUEMONEY",ADYEN_MULTIBANCO:"ADYEN_MULTIBANCO",PACYPAY_WECHAT:"PACYPAY_WECHAT",PACYPAY_ALIPAY:"PACYPAY_ALIPAY",ADYEN_MBWAY:"ADYEN_MBWAY",XENDIT_DANA:"XENDIT_DANA",XENDIT_SHOPEEPAY:"XENDIT_SHOPEEPAY",ADYEN_PAYSHOP:"ADYEN_PAYSHOP",ADYEN_PAYTRAIL:"ADYEN_PAYTRAIL",CLEARPAY:"CLEARPAY",RAPYD_FAST:"RAPYD_FAST",RAPYD_PROMPTPAY:"RAPYD_PROMPTPAY",RAPYD_GCASH:"RAPYD_GCASH",RAPYD_POLI:"RAPYD_POLI",RAPYD_GRABPAY:"RAPYD_GRABPAY",PRIMER_PAYPAL:"PRIMER_PAYPAL",TWOC2P:"TWOC2P",NETS:"NETS",STRIPE_ACH:"STRIPE_ACH",STRIPE_GIROPAY:"STRIPE_GIROPAY",MOLLIE_GIROPAY:"MOLLIE_GIROPAY",MOLLIE_EPS:"MOLLIE_EPS",PAY_NL_EPS:"PAY_NL_EPS",PAY_NL_P24:"PAY_NL_P24",MOLLIE_P24:"MOLLIE_P24",MOLLIE_SOFORT:"MOLLIE_SOFORT",COINBASE:"COINBASE",OPENNODE:"OPENNODE",MOLLIE_GIFT_CARD:"MOLLIE_GIFTCARD",XFERS_PAYNOW:"XFERS_PAYNOW",CARD:"PAYMENT_CARD",APPLE_PAY:"APPLE_PAY",GOOGLE_PAY:"GOOGLE_PAY",PAYPAL:"PAYPAL_ORDER",PAYPAL_VAULTED:"PAYPAL_BILLING_AGREEMENT",GO_CARDLESS:"GOCARDLESS",PAY_NL_IDEAL:"PAY_NL_IDEAL",PAY_NL_SOFORT_BANKING:"PAY_NL_SOFORT_BANKING",PAY_NL_BANCONTACT:"PAY_NL_BANCONTACT",PAY_NL_PAYPAL:"PAY_NL_PAYPAL",PAY_NL_CREDIT_TRANSFER:"PAY_NL_CREDIT_TRANSFER",PAY_NL_DIRECT_DEBIT:"PAY_NL_DIRECT_DEBIT",PAY_NL_GIROPAY:"PAY_NL_GIROPAY",PAY_NL_PAYCONIQ:"PAY_NL_PAYCONIQ",PAY_NL_RIVERTY:"PAY_NL_RIVERTY",HOOLAH:"HOOLAH",ADYEN_BLIK:"ADYEN_BLIK",ADYEN_VIPPS:"ADYEN_V
1IPPS",ADYEN_GIROPAY:"ADYEN_GIROPAY",ADYEN_SOFORT:"ADYEN_SOFORT",ADYEN_IDEAL:"ADYEN_IDEAL",ADYEN_TRUSTLY:"ADYEN_TRUSTLY",ADYEN_ALIPAY:"ADYEN_ALIPAY",ADYEN_TWINT:"ADYEN_TWINT",ADYEN_MOBILEPAY:"ADYEN_MOBILEPAY",MOLLIE_BANCONTACT:"MOLLIE_BANCONTACT",MOLLIE_IDEAL:"MOLLIE_IDEAL",BUCKAROO_GIROPAY:"BUCKAROO_GIROPAY",BUCKAROO_EPS:"BUCKAROO_EPS",BUCKAROO_SOFORT:"BUCKAROO_SOFORT",BUCKAROO_BANCONTACT:"BUCKAROO_BANCONTACT",BUCKAROO_IDEAL:"BUCKAROO_IDEAL",ATOME:"ATOME",KLARNA_CUSTOMER_TOKEN:"KLARNA_CUSTOMER_TOKEN",DLOCAL_PIX:"DLOCAL_PIX",ALMA:"ALMA",ADYEN_CASHAPP:"ADYEN_CASHAPP",ADYEN_AFFIRM:"ADYEN_AFFIRM"},e1={WORLDPAY_IDEAL:"WORLDPAY_IDEAL",STRIPE_ACH:"STRIPE_ACH",STRIPE_IDEAL:"STRIPE_IDEAL",ADYEN_KLARNA:"ADYEN_KLARNA",ADYEN_BANCONTACT_CARD:"ADYEN_BANCONTACT_CARD",PAY_NL_KAARTDIRECT:"PAY_NL_KAARTDIRECT",ADYEN_EPS:"ADYEN_EPS",ADYEN_BANCONTACT_PAYCONIQ:"ADYEN_BANCONTACT_PAYCONIQ",OMISE_PROMPTPAY:"OMISE_PROMPTPAY",OMISE_TRUEMONEY:"OMISE_TRUEMONEY",ADYEN_MULTIBANCO:"ADYEN_MULTIBANCO",PACYPAY_WECHAT:"PACYPAY_WECHAT",PACYPAY_ALIPAY:"PACYPAY_ALIPAY",ADYEN_MBWAY:"ADYEN_MBWAY",XENDIT_DANA:"XENDIT_DANA",XENDIT_SHOPEEPAY:"XENDIT_SHOPEEPAY",ADYEN_PAYSHOP:"ADYEN_PAYSHOP",ADYEN_PAYTRAIL:"ADYEN_PAYTRAIL",CLEARPAY:"CLEARPAY",RAPYD_FAST:"RAPYD_FAST",RAPYD_PROMPTPAY:"RAPYD_PROMPTPAY",RAPYD_GCASH:"RAPYD_GCASH",RAPYD_POLI:"RAPYD_POLI",RAPYD_GRABPAY:"RAPYD_GRABPAY",PRIMER_PAYPAL:"PRIMER_PAYPAL",TWOC2P:"TWOC2P",NETS:"NETS",STRIPE_GIROPAY:"STRIPE_GIROPAY",MOLLIE_GIROPAY:"MOLLIE_GIROPAY",MOLLIE_EPS:"MOLLIE_EPS",PAY_NL_EPS:"PAY_NL_EPS",PAY_NL_P24:"PAY_NL_P24",MOLLIE_P24:"MOLLIE_P24",MOLLIE_SOFORT:"MOLLIE_SOFORT",COINBASE:"COINBASE",OPENNODE:"OPENNODE",MOLLIE_GIFT_CARD:"MOLLIE_GIFTCARD",XFERS_PAYNOW:"XFERS_PAYNOW",PAYMENT_CARD:"PAYMENT_CARD",APPLE_PAY:"APPLE_PAY",GOOGLE_PAY:"GOOGLE_PAY",PAYPAL:"PAYPAL",GO_CARDLESS:"GOCARDLESS",KLARNA:"KLARNA",PAY_NL_IDEAL:"PAY_NL_IDEAL",PAY_NL_SOFORT_BANKING:"PAY_NL_SOFORT_BANKING",PAY_NL_BANCONTACT:"PAY_NL_BANCONTACT",PAY_NL_PAYPAL:"PAY_NL_PAYPAL",PAY_NL_CREDIT_TRANSFER:"PAY_NL_CREDIT_TRANSFER",PAY_NL_DIRECT_DEBIT:"PAY_NL_DIRECT_DEBIT",PAY_NL_GIROPAY:"PAY_NL_GIROPAY",PAY_NL_PAYCONIQ:"PAY_NL_PAYCONIQ",PAY_NL_RIVERTY:"PAY_NL_RIVERTY",HOOLAH:"HOOLAH",ADYEN_BLIK:"ADYEN_BLIK",ADYEN_MOBILEPAY:"ADYEN_MOBILEPAY",ADYEN_VIPPS:"ADYEN_VIPPS",ADYEN_GIROPAY:"ADYEN_GIROPAY",ADYEN_SOFORT:"ADYEN_SOFORT",ADYEN_IDEAL:"ADYEN_IDEAL",ADYEN_TRUSTLY:"ADYEN_TRUSTLY",ADYEN_ALIPAY:"ADYEN_ALIPAY",ADYEN_TWINT:"ADYEN_TWINT",ADYEN_BANK_TRANSFER:"ADYEN_BANK_TRANSFER",MOLLIE_BANCONTACT:"MOLLIE_BANCONTACT",MOLLIE_IDEAL:"MOLLIE_IDEAL",BUCKAROO_GIROPAY:"BUCKAROO_GIROPAY",BUCKAROO_EPS:"BUCKAROO_EPS",BUCKAROO_SOFORT:"BUCKAROO_SOFORT",BUCKAROO_BANCONTACT:"BUCKAROO_BANCONTACT",BUCKAROO_IDEAL:"BUCKAROO_IDEAL",ATOME:"ATOME",DLOCAL_PIX:"DLOCAL_PIX",ALMA:"ALMA",ADYEN_CASHAPP:"ADYEN_CASHAPP",ADYEN_AFFIRM:"ADYEN_AFFIRM"},e2={SINGLE_USE:"SINGLE_USE",MULTI_USE:"MULTI_USE"};e0.PAYPAL_VAULTED,e1.PAYPAL,e0.KLARNA_CUSTOMER_TOKEN,e1.KLARNA,e0.AUTOMATED_CLEARING_HOUSE,e1.STRIPE_ACH,e0.CARD,e1.PAYMENT_CARD;var e3=((N={}).INITIALIZATION_ERROR="INITIALIZATION_ERROR",N.NO_PAYMENT_METHODS="NO_PAYMENT_METHODS",N.PRIMER_TEARDOWN="PRIMER_TEARDOWN",N.PRIMER_SERVER_ERROR="PRIMER_SERVER_ERROR",N.THREE_DS_AUTH_FAILED="THREE_DS_AUTH_FAILED",N.TOKENIZATION_ERROR="TOKENIZATION_ERROR",N.DUPLICATE_PAYMENT_METHOD_ERROR="DUPLICATE_PAYMENT_METHOD_ERROR",N.CARD_NUMBER_ERROR="CARD_NUMBER_ERROR",N.PAYMENT_METHOD_NOT_SETUP="PAYMENT_METHOD_NOT_SETUP",N.PAYMENT_METHOD_NOT_PROVIDED="PAYMENT_METHOD_NOT_PROVIDED",N.PAYMENT_METHOD_NOT_COMPATIBLE="PAYMENT_METHOD_NOT_COMPATIBLE",N.RESUME_ERROR="RESUME_ERROR",N.VALIDATION_ERROR="VALIDATION_ERROR",N.PAYMENT_FAILED="PAYMENT_FAILED",N.PAYMENT_CREATION_ABORTED="PAYMENT_CREATION_ABORTED",N.PAYMENT_CREATION_DISABLED="PAYMENT_CREATION_DISABLED",N.CLIENT_SESSION_UPDATE_ERROR="CLIENT_SESSION_UPDATE_ERROR",N.INVALID_ARGUMENT="INVALID_ARGUMENT",N.IDEMPOTENCY_KEY_ALREADY_EXISTS="IDEMPOTENCY_KEY_ALREADY_EXISTS",N.VAULT_FETCH="VAULT_FETCH",N.VAULT_DELETE="VAULT_DELETE",N.HEADLESS_VAULT_MANAGER_VALIDATION="HEADLESS_VAULT_MANAGER_VALIDATION",N.CARD_FORM_VALIDATION_UNEXPECTED_FIELD="CARD_FORM_VALIDATION_UNEXPECTED_FIELD",N.MISSING_FIRST_NAME_OR_LAST_NAME="MISSING_FIRST_NAME_OR_LAST_NAME",N.MISSING_EMAIL_ADDRESS="MISSING_EMAIL_ADDRESS",N.INVALID_FLOW="INVALID_FLOW",N);function e4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class e6 extends S{static fromErrorCode(e,t){return new e6(e,t)}static fromExistingError(e,t,r){if(e instanceof e6)return e;let n=e?.message?`${e.message}, `:"";return new e6(t,{...r,message:`${n}${r.message}`})}constructor(e,t){super(t.message),e4(this,"code",void 0),e4(this,"diagnosticsId",void 0),e4(this,"data",void 0),e4(this,"isFromDeveloper",void 0),this.code=e,this.diagnosticsId=t.diagnosticsId??null,this.data=t.data,this.isFromDeveloper=t.isFromDeveloper??!1,this.name="PrimerClientError",Error.captureStackTrace&&Error.captureStackTrace(this,e6)}}var e5=((T={}).PAYMENT_METHOD="PAYMENT_METHOD",T.CHECK="CHECK",T);let e8=e=>{let t=e?.mandateData;return!!t&&"fullMandateText"in t};var e9=((I={}).CHANGE="change",I.ERROR="error",I.FOCUS="focus",I.BLUR="blur",I.CLICK="click",I.CLOSE="close",I.CONFIRMED_KLARNA_CATEGORY="CONFIRMED_KLARNA_CATEGORY",I.CONFIRMED_KLARNA_CATEGORY_ERROR="CONFIRMED_KLARNA_CATEGORY_ERROR",I.KLARNA_SESSION_UPDATE="KLARNA_SESSION_UPDATE",I.KLARNA_SESSION_REFRESH_ERROR="KLARNA_SESSION_REFRESH_ERROR",I),e7=((h={}).CARD="CARD",h.NATIVE="NATIVE",h.REDIRECT="REDIRECT",h.KLARNA="KLARNA",h.ACH="ACH",h);let te={SDK_VERSION:"v2.64.12",createHeadless:eW,showUniversalCheckout:ej,showVaultManager:eq,preloadPrimer:eQ}
1;return m})(),e.exports=n()},56408:function(e){var t;t=function(){var e;return(function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var c=Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[a]={exports:{}};t[a][0].call(d.exports,function(e){return o(t[a][1][e]||e)},d,d.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o})({1:[function(e,t,r){"use strict";var n={};function o(e,t,r){var n=Error("".concat(e," ").concat("abort"===t?"has aborted.":"failed to load."));return n.src=e,n.failureKind=t,n.timing=performance.now()-r,n.onLine=navigator.onLine,n}function i(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var i=document.createElement("script"),a=e.dataAttributes||{},s=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(a).forEach(function(e){i.setAttribute("data-".concat(e),"".concat(a[e]))}),t=new Promise(function(t,r){var n=performance.now();i.addEventListener("load",function(){t(i)}),i.addEventListener("error",function(){r(o(e.src,"error",n))}),i.addEventListener("abort",function(){r(o(e.src,"abort",n))}),s.appendChild(i)}),n[r]=t,t}i.clearCache=function(){n={}},t.exports=i},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";t.exports=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)try{return crypto.randomUUID()}catch(e){}if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;for(var t=Array(256),r=0;r<256;r++)t[r]=(r<16?"0":"")+r.toString(16);return t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}throw Error("@braintree/uuid: No secure random source available")}},{}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(e){var t=!1;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t||(t=!0,e.apply(void 0,r))}}},{}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}},{}],7:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),i=e("./lib/promise-or-callback");function a(e){return function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),i.promiseOrCallback(e.apply(this,r),t)}}a.wrapPrototype=function(e,t){void 0===t&&(t={});var r=t.ignoreMethods||[],n=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var o,i="constructor"!==t&&"function"==typeof e.prototype[t],a=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),i&&o&&a}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=a(r)}),e},t.exports=a},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(t,r,n){var o,i;o=this,i=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function r(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var n,o,i={},a={};function s(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=a[r]))return t;var n=document.createElement("script"),o=e.dataAttributes||{},i=e.container||document.head;return n.src=e.src,n.id=e.id||"",n.async=!0,e.type&&n.setAttribute("type","".concat(e.type)),e.crossorigin&&n.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(o).forEac
1h(function(e){n.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){n.addEventListener("load",function(){t(n)}),n.addEventListener("error",function(){r(Error("".concat(e.src," failed to load.")))}),n.addEventListener("abort",function(){r(Error("".concat(e.src," has aborted.")))}),i.appendChild(n)}),a[r]=t,t}s.clearCache=function(){a={}},Object.defineProperty(i,"__esModule",{value:!0}),i.loadStylesheet=c=i.loadScript=void 0;var c=i.loadScript=s;i.loadStylesheet=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var r=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),Promise.resolve(t)};var d="fastlane",u="connect-boba",E={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:u,LOCALE_PATH:"".concat(u,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"},A={BT:"BT",PPCP:"PPCP"};function l(){return"function"==typeof window.define&&!!window.define.amd}function p(e,n,o){var i,a;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,s;return r(this,function(r){if((t=null==window?void 0:window.braintree)&&t[e.module]){if(!n||(null===(i=t[e.module])||void 0===i?void 0:i.VERSION)===n)return[2,!0];throw s=null===(a=t[e.module])||void 0===a?void 0:a.VERSION,Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(n))}if(!n)throw Error("Attempted to load ".concat(e.module," without specifying version"));return[2,function(e,t,r){if(void 0===r&&(r=!0),l()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var o=r?e.script.minified:e.script.unminified;return c({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(o)})}(e,n,o)]})})}var _="client",N="hostedFields",T="braintree",I=((n={})[_]="client",n[N]="hosted-fields",n),h=((o={})[_]={id:"client",module:_,amdModule:{unminified:"".concat(T,"/").concat(I[_]),minified:"".concat(T,"/").concat(I[_],".min")},script:{unminified:"".concat(I[_],".js"),minified:"".concat(I[_],".min.js")}},o[N]={id:"hcf",module:N,amdModule:{unminified:"".concat(T,"/").concat(I[N]),minified:"".concat(T,"/").concat(I[N],".min")},script:{unminified:"".concat(I[N],".js"),minified:"".concat(I[N],".min.js")}},o);function f(e,t){var r;if(void 0===t&&(t=!0),l()){l()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config&&requirejs.config({paths:((r={})[d]=e,r)});var n="".concat(d,"/").concat(t?E.AXO_ASSET_NAME.minified:E.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return c({id:"axo-id",src:e,forceScriptReload:!0})}function m(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(E.CDNX_PROD,"/").concat(t)}e.constants=E,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,n,o,i;return r(this,function(r){switch(r.label){case 0:var a,s,c;if(performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,s=(null==e?void 0:e.minified)!==!1?E.AXO_ASSET_NAME.minified:E.AXO_ASSET_NAME.unminified,o=m({assetUrl:l()?E.AXO_ASSET_PATH:"".concat(E.AXO_ASSET_PATH,"/").concat(s,".js"),bundleId:null===(a=null==e?void 0:e.metadata)||void 0===a?void 0:a.bundleIdOverride}),i=m({assetUrl:E.LOCALE_PATH,bundleId:null===(c=null==e?void 0:e.metadata)||void 0===c?void 0:c.bundleIdOverride}),e.platform!==A.BT)return[3,2];return[4,Promise.all([p(h.hostedFields,t,n),f(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:if(e.platform!==A.PPCP)return[3,4];return[4,Promise.all([p(h.client,t,n),p(h.hostedFields,t,n),f(o,n)])];case 4:throw Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:i}}]}})})}},"object"==typeof n&&void 0!==r?i(n):"function"==typeof e&&e.amd?e(["exports"],i):i((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],9:[function(e,t,r){"use strict";var n=e("./constants").BRAINTREE_VERSION,o=e("./request/graphql"),i=e("./request"),a=e("../lib/is-verified-domain"),s=e("../lib/braintree-error"),c=e("../lib/convert-to-braintree-error"),d=e("./get-configuration").getConfiguration,u=e("../lib/create-authorization-data"),E=e("../lib/add-metadata"),A=e("@braintree/wrap-promise"),l=e("../lib/once"),p=e("../lib/deferred"),_=e("../lib/assign").assign,N=e("../lib/analytics"),T=e("./errors"),I=e("../lib/constants").VERSION,h=e("../lib/constants").GRAPHQL_URLS,f=e("../lib/methods"),m=e("../lib/convert-methods-to-error"),R=e("../lib/assets"),O=e("../lib/constants").FRA
1UDNET_FNCLS,C=e("../lib/constants").FRAUDNET_SOURCE,y=e("../lib/constants").FRAUDNET_URL,P={};function S(e){var t,r;if(t=JSON.stringify(e=e||{}),!(r=e.gatewayConfiguration))throw new s(T.CLIENT_MISSING_GATEWAY_CONFIGURATION);if(["assetsUrl","clientApiUrl","configUrl"].forEach(function(e){if(e in r&&!a(r[e]))throw new s({type:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:e+" property is on an invalid domain."})}),this.getConfiguration=function(){return JSON.parse(t)},this._request=i,this._configuration=this.getConfiguration(),this._clientApiBaseUrl=r.clientApiUrl+"/v1/",r.graphQL){if(!a(r.graphQL.url))throw new s({type:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:"graphQL.url property is on an invalid domain."});this._graphQL=new o({graphQL:r.graphQL})}}S.initialize=function(e){var t,r,n=P[e.authorization];if(n)return N.sendEvent(n,"custom.client.load.cached"),n;try{r=u(e.authorization)}catch(e){return Promise.reject(new s(T.CLIENT_INVALID_AUTHORIZATION))}return n=d(r,e.sessionId).then(function(r){return e.debug&&(r.isDebug=!0),r.authorization=e.authorization,t=new S(r)}),P[e.authorization]=n,N.sendEvent(n,"custom.client.load.initialized"),n.then(function(e){return N.sendEvent(t,"custom.client.load.succeeded"),e}).catch(function(t){return delete P[e.authorization],Promise.reject(t)})},S.clearCache=function(){P={}},S.prototype._findOrCreateFraudnetJSON=function(e){var t,r,n,o,i=document.querySelector('script[fncls="'+O+'"]');i||((i=document.body.appendChild(document.createElement("script"))).type="application/json",i.setAttribute("fncls",O)),r={rda_tenant:"bt_card",mid:(t=this.getConfiguration()).gatewayConfiguration.merchantId},(n=t.authorizationFingerprint)&&n.split("&").forEach(function(e){var t=e.split("=");"customer_id"===t[0]&&t.length>1&&(r.cid=t[1])}),o={f:e.substr(0,32),fp:r,bu:!1,s:C},i.text=JSON.stringify(o)},S.prototype.request=function(e,t){var r=this,o=new Promise(function(t,o){var i,a,d,u,A,l=!!("payment_methods/credit_cards"===e.endpoint&&r.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"===e.api||(e.method?e.endpoint||(a="options.endpoint"):a="options.method"),a)throw new s({type:T.CLIENT_OPTION_REQUIRED.type,code:T.CLIENT_OPTION_REQUIRED.code,message:a+" is required when making a request."});if(d="api"in e?e.api:"clientApi",A={method:e.method,graphQL:r._graphQL,timeout:e.timeout,metadata:r._configuration.analyticsMetadata},"clientApi"===d)u=r._clientApiBaseUrl,A.data=E.addMetadata(r._configuration,e.data);else if("graphQLApi"===d)u=h[r._configuration.gatewayConfiguration.environment],e.endpoint="",A.method="post",A.data=_({clientSdkMetadata:{platform:r._configuration.analyticsMetadata.platform,source:r._configuration.analyticsMetadata.source,integration:r._configuration.analyticsMetadata.integration,sessionId:r._configuration.analyticsMetadata.sessionId,version:I}},e.data),A.headers={Authorization:"Bearer "+((i=r._configuration).authorizationFingerprint||i.authorization),"Braintree-Version":n};
1else throw new s({type:T.CLIENT_OPTION_INVALID.type,code:T.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});A.url=u+e.endpoint,A.sendAnalyticsEvent=function(e,t){t?N.sendEventPlus(r,e,t):N.sendEvent(r,e)},r._request(A,function(e,n,i){var a,u;if(u=function(e,t){var r;if(-1===e?r=new s(T.CLIENT_REQUEST_TIMEOUT):401===e?r=new s(T.CLIENT_AUTHORIZATION_INVALID):403===e?r=new s(T.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?r=new s(T.CLIENT_RATE_LIMITED):e>=500?r=new s(T.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(r=c(t,{type:T.CLIENT_REQUEST_ERROR.type,code:T.CLIENT_REQUEST_ERROR.code,message:T.CLIENT_REQUEST_ERROR.message})),r)return r.details=r.details||{},r.details.httpStatus=e,r}(i,e)){o(u);return}if("graphQLApi"===d&&n.errors){o(c(n.errors,{type:T.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:T.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:T.CLIENT_GRAPHQL_REQUEST_ERROR.message}));return}a=_({_httpStatus:i},n),l&&a.creditCards&&a.creditCards.length>0&&(r._findOrCreateFraudnetJSON(a.creditCards[0].nonce),R.loadScript({src:y,forceScriptReload:!0})),t(a)})});if("function"==typeof t){t=l(p(t)),o.then(function(e){t(null,e,e._httpStatus)}).catch(function(e){var r=e&&e.details&&e.details.httpStatus;t(e,null,r)});return}return o},S.prototype.toJSON=function(){return this.getConfiguration()},S.prototype.getVersion=function(){return I},S.prototype.teardown=A(function(){return delete P[this.getConfiguration().authorization],m(this,f(S.prototype)),Promise.resolve()}),t.exports=S},{"../lib/add-metadata":29,"../lib/analytics":30,"../lib/assets":31,"../lib/assign":32,"../lib/braintree-error":33,"../lib/constants":34,"../lib/convert-methods-to-error":35,"../lib/convert-to-braintree-error":36,"../lib/create-authorization-data":37,"../lib/deferred":38,"../lib/is-verified-domain":43,"../lib/methods":45,"../lib/once":46,"./constants":10,"./errors":11,"./get-configuration":12,"./request":25,"./request/graphql":23,"@braintree/wrap-promise":7}],10:[function(e,t,r){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],11:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:n.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"}
1,CLIENT_OPTION_INVALID:{type:n.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:n.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:n.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:n.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:n.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:n.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:n.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:n.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:n.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:n.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INVALID",message:"Either the client token has expired and a new one should be generated or the tokenization key has been deactivated or deleted."}}},{"../lib/braintree-error":33}],12:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("@braintree/wrap-promise"),i=e("./request"),a=e("@braintree/uuid"),s=e("../lib/constants"),c=e("./errors"),d=e("./request/graphql"),u=e("../lib/constants").GRAPHQL_URLS,E=e("../lib/is-date-string-before-or-on"),A=e("./constants").BRAINTREE_VERSION;t.exports={getConfiguration:o(function(e,t){return new Promise(function(r,o){var l,p,_,N=t||a(),T={merchantAppId:window.location.host,platform:s.PLATFORM,sdkVersion:s.VERSION,source:s.SOURCE,integration:s.INTEGRATION,integrationType:s.INTEGRATION,sessionId:N};l=e.attrs,p=e.configUrl,l._meta=T,l.braintreeLibraryVersion=s.BRAINTREE_LIBRARY_VERSION,l.configVersion="3",_={url:p,method:"GET",data:l},l.authorizationFingerprint&&e.graphQL?(E(e.graphQL.date,A)&&(_.graphQL=new d({graphQL:{url:e.graphQL.url,features:["configuration"]}})),_.metadata=T):l.tokenizationKey&&(_.graphQL=new d({graphQL:{url:u[e.environment],features:["configuration"]}}),_.metadata=T),i(_,function(t,i,a){var s;if(t){o(new n({type:(s=403===a?c.CLIENT_AUTHORIZATION_INSUFFICIENT:401===a?c.CLIENT_AUTHORIZATION_INVALID:c.CLIENT_GATEWAY_NETWORK).type,code:s.code,message:s.message,details:{originalError:t}}));return}r({authorizationType:l.tokenizationKey?"TOKENIZATION_KEY":"CLIENT_TOKEN",authorizationFingerprint:l.authorizationFingerprint,paymentMethodIdJwt:e.paymentMethodIdJwt,analyticsMetadata:T,gatewayConfiguration:i})})})})}},{"../lib/braintree-error":33,"../lib/constants":34,"../lib/is-date-string-before-or-on":41,"./constants":10,"./errors":11,"./request":25,"./request/graphql":23,"@braintree/uuid":3,"@braintree/wrap-promise":7}],13:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("./client"),i=e("@braintree/wrap-promise"),a=e("../lib/errors");t.exports={create:i(function(e){return e.authorization?o.initialize(e):Promise.reject(new n({type:a.INSTANTIATION_OPTION_REQUIRED.type,code:a.INSTANTIATION_OPTION_REQUIRED.code,message:"options.authorization is required when instantiating a client."}))}),VERSION:"3.145.0"}},{"../lib/braintree-error":33,"../lib/errors":40,"./client":9,"@braintree/wrap-promise":7}],14:[function(e,t,r){"use strict";var n=e("../../lib/querystring"),o=e("../../lib/assign").assign,i=e("./prep-body"),a=e("./parse-body"),s=e("./xhr"),c=s.isAvailable,d=e("./graphql/request"),u=e("./default-request"),E=/\/merchants\/[A-Za-z0-9_-]+\/client_api/,A=/payment_methods\/.*\/three_d_secure/;t.exports={request:function(e,t){!function e(t,r,l){var p,_,N,T,I,h,f,m=t.url,R=t.graphQL,O=t.timeout,C=s.getRequestObject(),y=!!(R&&R.isGraphQLRequest(m,t.data));t.headers=o({"Content-Type":"application/json"},t.headers),m=(N=y?new d(t):new u(t)).getUrl(),T=N.getBody(),I=N.getMethod(),h=N.getHeaders(),"GET"===I&&(m=n.queryify(m,T),T=null),c?C.onreadystatechange=function(){if(4===C.readyState){if(0===C.status&&y){delete t.graphQL,e(t,r,l);return}if(f=a(C.responseText),_=N.adaptResponseBody(f),p=N.determineStatus(C.status,f),t.sendAnalyticsEvent&&function(e,t){var r,n,o,i,a,s,c,d,u,l,p;try{r=(i=new URL(e)).hostname,n=i.pathname}catch(t){r=(e.match(/^https?:\/\/([^\/]+)/)||[])[1]||"",n=(e.match(/^https?:\/\/[^\/]+(\/.*)$/)||[])[1]||e}"/v1/tracking/batch/events"!==(o=n.replace(E,"").replace(A,"payment_methods/three_d_secure"))&&(a=e.replace(/:443(\/|$)/,"$1"),"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByName&&(l=window.performance.getEntriesByName(a))&&l.length>0&&(s=(p=l[l.length-1]).connectStart?Math.round(p.connectStart):null,c=p.requestStart?Math.round(p.requestStart):null,u=Math.round(p.startTime),d=Math.round(p.responseEnd),t.sendAnalyticsEvent("core.api-request-latency",{connect_start_time:s,domain:r,endpoint:o,end_time:d,request_start_time:c,start_time:u})))}(m,t),p>=400||p<200){var n;if(y&&("UNKNOWN"===(n=!f.data&&f.errors&&f.errors[0]&&f.errors[0].extensions&&f.errors[0].extensions.errorClass)||"INTERNAL"===n)){delete t.graphQL,e(t,r,l);return}if(r<1&&(!p||408===p)){e(t,++r,l);return}l(_||"error",null,p||500)}else l(null,_,p)}}:(t.headers&&(m=n.queryify(m,h)),C.onload=function(){l(null,a(C.responseText),C.status)},C.onerror=function(){l("error",null,500)},C.onprogress=function(){},C.ontimeout=function(){l("timeout",null,-1)});try{C.open(I,m,!0)}catch(n){if(!y)throw n;delete t.graphQL,e(t,r,l);return}
1C.timeout=O,c&&Object.keys(h).forEach(function(e){C.setRequestHeader(e,h[e])});try{C.send(i(I,T))}catch(e){}}(e,0,t)}}},{"../../lib/assign":32,"../../lib/querystring":47,"./default-request":15,"./graphql/request":24,"./parse-body":26,"./prep-body":27,"./xhr":28}],15:[function(e,t,r){"use strict";function n(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}n.prototype.getUrl=function(){return this._url},n.prototype.getBody=function(){return this._data},n.prototype.getMethod=function(){return this._method},n.prototype.getHeaders=function(){return this._headers},n.prototype.adaptResponseBody=function(e){return e},n.prototype.determineStatus=function(e){return e},t.exports=n},{}],16:[function(e,t,r){"use strict";var n=e("./error"),o=e("../../../../lib/assign").assign,i={creditCard:{AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",SOLO:"Solo",UK_MAESTRO:"UK Maestro",UNION_PAY:"UnionPay",VISA:"Visa",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard"},applePayWeb:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},visaCheckout:{VISA:"Visa",MASTERCARD:"MasterCard",DISCOVER:"Discover",AMERICAN_EXPRESS:"American Express"},googlePay:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},masterpass:{VISA:"visa",MASTERCARD:"master",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",DINERS:"diners",INTERNATIONAL_MAESTRO:"maestro",JCB:"jcb"}};function a(e,t){return e.reduce(function(e,r){return t.hasOwnProperty(r)?e.concat(t[r]):e},[])}t.exports=function(e,t){var r,s;return e.data&&!e.errors?(r={environment:(s=e.data.clientConfiguration).environment.toLowerCase(),clientApiUrl:s.clientApiUrl,assetsUrl:s.assetsUrl,analytics:{url:s.analyticsUrl},merchantId:s.merchantId,venmo:"off"},s.supportedFeatures&&(r.graphQL={url:t._graphQL._config.url,features:s.supportedFeatures.map(function(e){return e.toLowerCase()})}),s.braintreeApi&&(r.braintreeApi=s.braintreeApi),s.applePayWeb&&(r.applePayWeb=s.applePayWeb,r.applePayWeb.supportedNetworks=a(s.applePayWeb.supportedCardBrands,i.applePayWeb),delete r.applePayWeb.supportedCardBrands),s.fastlane&&(r.fastlane=s.fastlane),s.ideal&&(r.ideal=s.ideal),s.creditCard?(r.challenges=s.creditCard.challenges.map(function(e){return e.toLowerCase()}),r.creditCards={supportedCardTypes:a(s.creditCard.supportedCardBrands,i.creditCard)},r.threeDSecureEnabled=s.creditCard.threeDSecureEnabled,r.threeDSecure=s.creditCard.threeDSecure):(r.challenges=[],r.creditCards={supportedCardTypes:[]},r.threeDSecureEnabled=!1),s.googlePay&&(r.androidPay={displayName:s.googlePay.displayName,enabled:!0,environment:s.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:s.googlePay.googleAuthorization,paypalClientId:s.googlePay.paypalClientId,supportedNetworks:a(s.googlePay.supportedCardBrands,i.googlePay)}),s.venmo&&(r.payWithVenmo={merchantId:s.venmo.merchantId,accessToken:s.venmo.accessToken,environment:s.venmo.environment.toLowerCase(),enrichedCustomerDataEnabled:s.venmo.enrichedCustomerDataEnabled}),s.paypal?(r.paypalEnabled=!0,r.paypal=o({},s.paypal),r.paypal.currencyIsoCode=r.paypal.currencyCode,r.paypal.environment=r.paypal.environment.toLowerCase(),delete r.paypal.currencyCode):r.paypalEnabled=!1,s.unionPay&&(r.unionPay={enabled:!0,merchantAccountId:s.unionPay.merchantAccountId}),s.visaCheckout&&(r.visaCheckout={apikey:s.visaCheckout.apiKey,encryptionKey:s.visaCheckout.encryptionKey,externalClientId:s.visaCheckout.externalClientId,supportedCardTypes:a(s.visaCheckout.supportedCardBrands,i.visaCheckout)}),s.masterpass&&(r.masterpass={merchantCheckoutId:s.masterpass.merchantCheckoutId,supportedNetworks:a(s.masterpass.supportedCardBrands,i.masterpass)}),s.usBankAccount&&(r.usBankAccount={routeId:s.usBankAccount.routeId,plaid:{publicKey:s.usBankAccount.plaidPublicKey}}),s.openBanking&&(r.openBanking={businessNames:s.openBanking.businessNames,allowListedDomains:s.openBanking.allowListedDomains,profileId:s.openBanking.profileId}),r):n(e)}},{"../../../../lib/assign":32,"./error":19}],17:[function(e,t,r){"use strict";var n=e("./error"),o={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},i={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};t.exports=function(e){var t,r,s,c,d,u;return e.data&&!e.errors?(d=(c=(s=e.data.tokenizeCreditCardForPayPalConnect).paymentMethod.details).last4?c.last4.substr(2,4):"",(u=c.binData)&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach(function(e){u[e]?u[e]=i[u[e]]:u[e]="Unknown"}),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach(function(e){u[e]||(u[e]="Unknown")}
1)),t={creditCards:[{binData:u,consumed:!1,description:d?"ending in "+d:"",nonce:s.paymentMethod.id,details:{cardholderName:c.cardholderName,expirationMonth:c.expirationMonth,expirationYear:c.expirationYear,bin:c.bin||"",cardType:o[c.brandCode]||"Unknown",lastFour:c.last4||"",lastTwo:d},type:"CreditCard",threeDSecureInfo:null}]},s.authenticationInsight&&(r=s.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[r]||r.toLowerCase()}),t):n(e)}},{"./error":19}],18:[function(e,t,r){"use strict";var n=e("./error"),o={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},i={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};t.exports=function(e){var t,r,s,c,d,u;return e.data&&!e.errors?(d=(c=(s=e.data.tokenizeCreditCard).creditCard).last4?c.last4.substr(2,4):"",(u=c.binData)&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach(function(e){u[e]?u[e]=i[u[e]]:u[e]="Unknown"}),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach(function(e){u[e]||(u[e]="Unknown")}
1)),t={creditCards:[{binData:u,consumed:!1,description:d?"ending in "+d:"",nonce:s.token,details:{cardholderName:c.cardholderName,expirationMonth:c.expirationMonth,expirationYear:c.expirationYear,bin:c.bin||"",cardType:o[c.brandCode]||"Unknown",lastFour:c.last4||"",lastTwo:d},type:"CreditCard",threeDSecureInfo:null}]},s.authenticationInsight&&(r=s.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[r]||r.toLowerCase()}),t):n(e)}},{"./error":19}],19:[function(e,t,r){"use strict";t.exports=function(e){var t,r,n,o=e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"VALIDATION"===o?0===(t=e.errors,r=[],t.forEach(function(e){e.extensions&&e.extensions.inputPath&&function e(t,r,n){var o,i=r.extensions.legacyCode,a=t[0];if(1===t.length){n.push({code:i,field:a,message:r.message});return}n.forEach(function(e){e.field===a&&(o=e)}),o||(o={field:a,fieldErrors:[]},n.push(o)),e(t.slice(1),r,o.fieldErrors)}(e.extensions.inputPath.slice(1),e,r)}),n=r).length?{error:{message:e.errors[0].message}}:{error:{message:({creditCard:"Credit card is invalid"})[n[0].field]},fieldErrors:n}:o?{error:{message:e.errors[0].message},fieldErrors:[]}:{error:{message:"There was a problem serving your request"},fieldErrors:[]}}},{}],20:[function(e,t,r){"use strict";t.exports=function(){return{query:"query ClientConfiguration {   clientConfiguration {     analyticsUrl     environment     merchantId     assetsUrl     clientApiUrl     creditCard {       supportedCardBrands       challenges       threeDSecureEnabled       threeDSecure {         cardinalAuthenticationJWT         cardinalSongbirdUrl         cardinalSongbirdIdentityHash       }     }     applePayWeb {       countryCode       currencyCode       merchantIdentifier       supportedCardBrands     }     fastlane {       enabled       tokensOnDemand {         enabled         tokenExchange {           enabled         }       }     }     googlePay {       displayName       supportedCardBrands       environment       googleAuthorization       paypalClientId     }     ideal {       routeId       assetsUrl     }     masterpass {       merchantCheckoutId       supportedCardBrands     }     openBanking {       businessNames       allowListedDomains       profileId     }     paypal {       displayName       clientId       assetsUrl       environment       environmentNoNetwork       unvettedMerchant       braintreeClientId       billingAgreementsEnabled       merchantAccountId       currencyCode       payeeEmail     }     unionPay {       merchantAccountId     }     usBankAccount {       routeId       plaidPublicKey     }     venmo {       merchantId       accessToken       environment       enrichedCustomerDataEnabled    }     visaCheckout {       apiKey       externalClientId       supportedCardBrands     }     braintreeApi {       accessToken       url     }     supportedFeatures   } }",operationName:"ClientConfiguration"}}},{}],21:[function(e,t,r){"use strict";var n=e("../../../../lib/assign").assign;t.exports=function(e){var t,r,o,i,a,s,c,d,u,E,A,l,p,_,N,T,I,h,f={hasAuthenticationInsight:!!(e.authenticationInsight&&e.merchantAccountId)};return{query:(u=f.hasAuthenticationInsight,E="mutation TokenizeCreditCardForPayPalConnect($input: TokenizeCreditCardForPayPalConnectInput!",u&&(E+=", $authenticationInsightInput: AuthenticationInsightInput!"),E+=") {   tokenizeCreditCardForPayPalConnect(input: $input) {     clientMutationId     paymentMethod {       id       details {         ... on CreditCardDetails {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }         }       }     }",u&&(E+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),E+="  } }"),variables:(l=(A=e.creditCard).fastlane||{},p="fastlane"in A&&"termsAndConditionsVersion"in A.fastlane&&A.fastlane.termsAndConditionsVersion,_="fastlane"in A&&"termsAndConditionsCountry"in A.fastlane&&A.fastlane.termsAndConditionsCountry,N=A.email,T="hasBuyerConsent"in l&&l.hasBuyerConsent,I=A.shippingAddress,h=n({},(r=(t=e.creditCard)&&t.billingAddress,o=t&&t.expirationDate,i=t&&(t.expirationMonth||o&&o.split("/")[0].trim()),a=t&&(t.expirationYear||o&&o.split("/")[1].trim()),s={input:{credit
1Card:{number:t&&t.number,expirationMonth:i,expirationYear:a,cvv:t&&t.cvv,cardholderName:t&&t.cardholderName},options:{}}},f.hasAuthenticationInsight&&(s.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),r&&(s.input.creditCard.billingAddress=r),s.input=(c=s.input,e.creditCard&&e.creditCard.options&&"boolean"==typeof e.creditCard.options.validate?d=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?d=!0:e.tokenizationKey&&(d=!1),"boolean"==typeof d&&(c.options=n({validate:d},c.options)),c),s).input,{email:N,optIn:T,phone:A.phone}),p&&(h.termsAndConditionsVersion=p),_&&(h.termsAndConditionsCountry=_),"authAssertion"in l&&(h.authAssertion=l.authAssertion),I&&(h.shippingAddress=I),{input:h}),operationName:"TokenizeCreditCardForPayPalConnect"}}},{"../../../../lib/assign":32}],22:[function(e,t,r){"use strict";var n=e("../../../../lib/assign").assign;t.exports=function(e){var t,r,o,i,a,s,c,d,u,E,A={hasAuthenticationInsight:!!(e.authenticationInsight&&e.merchantAccountId)};return{query:(o=A.hasAuthenticationInsight,i="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!",o&&(i+=", $authenticationInsightInput: AuthenticationInsightInput!"),i+=") {   tokenizeCreditCard(input: $input) {     token     creditCard {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }     } ",o&&(i+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),i+="  } }"),variables:(s=(a=e.creditCard)&&a.billingAddress,c=a&&a.expirationDate,d=a&&(a.expirationMonth||c&&c.split("/")[0].trim()),u=a&&(a.expirationYear||c&&c.split("/")[1].trim()),E={input:{creditCard:{number:a&&a.number,expirationMonth:d,expirationYear:u,cvv:a&&a.cvv,cardholderName:a&&a.cardholderName},options:{}}},A.hasAuthenticationInsight&&(E.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),s&&(E.input.creditCard.billingAddress=s),E.input=(t=E.input,e.creditCard&&e.creditCard.options&&"boolean"==typeof e.creditCard.options.validate?r=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?r=!0:e.tokenizationKey&&(r=!1),"boolean"==typeof r&&(t.options=n({validate:r},t.options)),t),E),operationName:"TokenizeCreditCard"}}},{"../../../../lib/assign":32}],23:[function(e,t,r){"use strict";var n={tokenize_credit_cards:"payment_methods/credit_cards",configuration:"configuration"},o=["creditCard.options.unionPayEnrollment"];function i(e){this._config=e.graphQL}i.prototype.getGraphQLEndpoint=function(){return this._config.url},i.prototype.isGraphQLRequest=function(e,t){var r,i=this.getClientApiPath(e);return!!this._isGraphQLEnabled()&&!!i&&(r=this._config.features.some(function(e){return n[e]===i}),!o.some(function(e){return void 0!==e.split(".").reduce(function(e,t){return e&&e[t]},t)})&&r)},i.prototype.getClientApiPath=function(e){var t,r=e.split("/client_api/v1/");return r.length>1&&(t=r[1].split("?")[0]),t},i.prototype._isGraphQLEnabled=function(){return!!this._config},t.exports=i},{}],24:[function(e,t,r){"use strict";var n=e("../../constants").BRAINTREE_VERSION,o=e("../../../lib/assign").assign,i=e("../../../lib/snake-case-to-camel-case"),a=e("../../../lib/is-fastlane-checkout"),s=e("./generators/credit-card-tokenization"),c=e("./adapters/credit-card-tokenization"),d=e("./adapters/credit-card-tokenization-fastlane"),u=e("./generators/credit-card-for-fastlane-tokenization"),E=e("./generators/configuration"),A=e("./adapters/configuration"),l={"payment_methods/credit_cards":function(e,t){return t?u(e):s(e)},configuration:E},p={"payment_methods/credit_cards":function(e,t,r){return r?d(e,t):c(e,t)},configuration:A};function _(e){var t=e.graphQL.getClientApiPath(e.url);this._graphQL=e.graphQL,this._data=e.data,this._method=e.method,this._headers=e.headers,this._clientSdkMetadata={source:e.metadata.source,integration:e.metadata.integration,sessionId:e.metadata.sessionId},this._sendAnalyticsEvent=e.sendAnalyticsEvent||Function.prototype,this._generator=l[t],this._adapter=p[t],this._sendAnalyticsEvent("graphql.init")}_.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},_.prototype.getBody=function(){var e=function e(t){var r={};return Object.keys(t).forEach(function(n){var o=i(n);"object"==typeof t[n]?r[o]=e(t[n]):"number"==typeof t[n]?r[o]=String(t[n]):r[o]=t[n]}),r}(this._data),t=this._generator(e,a(this._data.creditCard));return JSON.stringify(o({clientSdkMetadata:this._clientSdkMetadata},t))},_.prototype.getMethod=function(){return"POST"},_.prototype.getHeaders=function(){var e,t;return this._data.authorizationFingerprint?(this._sendAnalyticsEvent("graphql.authorization-fingerprint"),e=this._data.authorizationFingerprint):(this._sendAnalyticsEvent("graphql.tokenization-key"),e=this._data.tokenizationKey),t={Authorization:"Bearer "+e,"Braintree-Version":n},o({},this._headers,t)},_.prototype.adaptResponseBody=function(e){return this._adapter(e,this,"creditCard"in this._data&&a(this._data.creditCard))},_.prototype.determineStatus=function(e,t){var r,n;
1return 200===e?(n=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,r=t.data&&!t.errors?200:"VALIDATION"===n?422:"AUTHORIZATION"===n?403:"AUTHENTICATION"===n?401:!n&&t.errors[0].message?403:500):r=e||500,this._sendAnalyticsEvent("graphql.status."+e),this._sendAnalyticsEvent("graphql.determinedStatus."+r),r},t.exports=_},{"../../../lib/assign":32,"../../../lib/is-fastlane-checkout":42,"../../../lib/snake-case-to-camel-case":48,"../../constants":10,"./adapters/configuration":16,"./adapters/credit-card-tokenization":18,"./adapters/credit-card-tokenization-fastlane":17,"./generators/configuration":20,"./generators/credit-card-for-fastlane-tokenization":21,"./generators/credit-card-tokenization":22}],25:[function(e,t,r){"use strict";var n=e("../../lib/once"),o=e("./ajax-driver");t.exports=function(e,t){t=n(t||Function.prototype),e.method=(e.method||"GET").toUpperCase(),e.timeout=null==e.timeout?6e4:e.timeout,e.data=e.data||{},o.request(e,t)}},{"../../lib/once":46,"./ajax-driver":14}],26:[function(e,t,r){"use strict";t.exports=function(e){try{e=JSON.parse(e)}catch(e){}return e}},{}],27:[function(e,t,r){"use strict";t.exports=function(e,t){if("string"!=typeof e)throw Error("Method must be a string");return"get"!==e.toLowerCase()&&null!=t&&(t="string"==typeof t?t:JSON.stringify(t)),t}},{}],28:[function(e,t,r){"use strict";var n="undefined"!=typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;t.exports={isAvailable:n,getRequestObject:function(){return n?new window.XMLHttpRequest:new window.XDomainRequest}}},{}],29:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),i=e("./constants");t.exports={addMetadata:function(e,t){var r,a=t?o(t):{},s=n(e.authorization).attrs,c=o(e.analyticsMetadata);for(r in a.braintreeLibraryVersion=i.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(r)&&(c[r]=a._meta[r]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a},addEventMetadata:function(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,a={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:i.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:i.PLATFORM,platform_version:window.navigator.userAgent,session_id:t.analyticsMetadata.sessionId,client_session_id:t.analyticsMetadata.sessionId,tenant_name:"braintree",product_name:"BT_DCC",space_key:"SKDUYK"};return r.tokenizationKey?a.tokenization_key=r.tokenizationKey:a.auth_fingerprint=r.authorizationFingerprint,a}}},{"./constants":34,"./create-authorization-data":37,"./json-clone":44}],30:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),i=e("./assign").assign;function a(e,t,r,a){var s=Date.now();return"vault"===r.flow?r.context_type="BA_Token":"checkout"===r.flow&&(r.context_type="EC_Token"),Promise.resolve(e).then(function(e){var c,d=e._request,u=n.ANALYTICS_URL,E=n.ANALYTICS_PREFIX+t,A="production"===e.getConfiguration().gatewayConfiguration.environment,l={events:[],tracking:[]},p=o.addEventMetadata(e,l);return p.event_name=E,p.t=s,l.events=[{level:"info",event:E,payload:i({env:A?"production":"sandbox",timestamp:s},r)}],l.tracking=[p],r&&"object"==typeof r&&(l.tracking=[(Object.keys(c=i({},r)).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete c[e]}),i(p,c))]),d({url:u,method:"post",data:l,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},a)}).catch(function(e){a&&a(e)})}t.exports={sendEvent:function(e,t,r){return a(e,t,{},r)},sendEventPlus:a}},{"./add-metadata":29,"./assign":32,"./constants":34}],31:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":8}],32:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var t,r,n;for(t=1;t<arguments.length;t++)for(n in r=arguments[t])r.hasOwnProperty(n)&&(e[n]=r[n]);return e}t.exports={assign:n,_assign:o}},{}],33:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw Error(e.type+" is not a valid type.");if(!e.code)throw Error("Error code required.");
1if(!e.message)throw Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":39}],34:[function(e,t,r){"use strict";var n="3.145.0";t.exports={ANALYTICS_PREFIX:"web.",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:"web",BRAINTREE_LIBRARY_VERSION:"braintree/web/"+n,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],35:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":33,"./errors":40}],36:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports=function(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":33}],37:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,r,i,a,s={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(r=(t=e.split("_"))[0],a={merchantId:t.slice(2).join("_"),environment:r},s.environment=a.environment,s.attrs.tokenizationKey=e,s.configUrl=o[a.environment]+"/merchants/"+a.merchantId+"/client_api/v1/configuration"):(i=JSON.parse(n(e)),s.environment=i.environment,s.attrs.authorizationFingerprint=i.authorizationFingerprint,s.paymentMethodIdJwt=i.paymentMethodIdJwt,s.configUrl=i.configUrl,s.graphQL=i.graphQL),s}},{"../lib/constants":34,"../lib/vendor/polyfill":49}],38:[function(e,t,r){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],39:[function(e,t,r){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}},{}],40:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:n.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:n.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:n.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:n.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":33}],41:[function(e,t,r){"use strict";function n(e){var t=e.split("-");return new Date(t[0],t[1],t[2])}t.exports=function(e,t){return n(e)<=n(t)}},{}],42:[function(e,t,r){"use strict";t.exports=function(e){return e&&e.hasOwnProperty("fastlane")&&e.fastlane}},{}],43:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};t.exports=function(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=n.hostname.split(".").slice(-2).join("."),o.hasOwnProperty(t))}},{}],44:[function(e,t,r){"use strict";
1t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],45:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],46:[function(e,t,r){"use strict";t.exports=function(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}},{}],47:[function(e,t,r){"use strict";function n(e){return e=e||window.location.href,/\?/.test(e)}function o(e,t){var r,n,i,a=[];for(i in e)e.hasOwnProperty(i)&&(n=e[i],r=t?e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)?t+"[]":t+"["+i+"]":i,"object"==typeof n?a.push(o(n,r)):a.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return a.join("&")}t.exports={parse:function(e){return n(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}},stringify:o,queryify:function(e,t){return e=e||"",null!=t&&"object"==typeof t&&function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=(-1!==e.indexOf("=")?"&":"")+o(t)),e},hasQueryParams:n}},{}],48:[function(e,t,r){"use strict";t.exports=function(e){return -1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,function(e){return e[1].toUpperCase()})}},{}],49:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var t,r,n,o,i,a,s,c,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="";if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/.test(e))throw Error("Non base64 encoded input passed to window.atob polyfill");c=0;do o=d.indexOf(e.charAt(c++)),i=d.indexOf(e.charAt(c++)),a=d.indexOf(e.charAt(c++)),s=d.indexOf(e.charAt(c++)),t=(63&o)<<2|i>>4&3,r=(15&i)<<4|a>>2&15,n=(3&a)<<6|63&s,u+=String.fromCharCode(t)+(r?String.fromCharCode(r):"")+(n?String.fromCharCode(n):"");while(c<e.length);return u}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[13])(13)},e.exports=t()},9008:function(e,t,r){e.exports=r(23867)},82729:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:function(){return 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.