PageSourceSearch

https://www.techcrazy.co.nz/cdn/shopifycloud/checkout-web/assets/c1/app.9pOKhaB_.js

js techcrazy.co.nz collected 2026-09-29 12:37:09 UTC 24,317 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["context-browser.nsMPExI6.js","esnext-vendor.7EcvH7tF.js","utilities-previous.BNOUhCqt.js","assets/previous.DjvIwnbB.css","PayButton-helpers.0kfxXOqw.js","graphql-PaymentSessionMutation.BHouiau8.js","helpers-setAddressErrors.Dkvp0qf9.js","addresses-is-address-empty.ChTbY4tb.js","redemption-constants.B8quHqkP.js","redemption-promotions.BGj0zZCl.js","shared-receipt-mapper-load-recovery.Bopl0Z3z.js","shared-receipt-eager-mappers.-8pLsgp0.js","shared-report-graphql-error.DOuLIoXS.js","shop-pay-normalizeBuyerDetails.UNB2OauO.js","helpers-derivations.BE31Cdos.js","helpers-credit-card-disabled.Cg-Vgf-8.js","hooks-useShopPayNewSignupLoginExperiment.Cks6ggXa.js","hydrate.CvWSYK3c.js","shared-negotiation-input-redeemable.nWvx5Mgl.js","shared-permissions.FyWsJaGm.js","hooks-useShopPayExternalAppContext.DJNBHtP3.js","assets/helpers.BXOQj2oa.css"])))=>i.map(i=>d[i]);
2import{m as ee,b7 as q,y as $,E as te,j as ne,G as re}from"./esnext-vendor.7EcvH7tF.js";const oe="modulepreload",ie=function(e){return"/cdn/shopifycloud/checkout-web/assets/c1/"+e},R={},M=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let p=function(l){return Promise.all(l.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=i?.nonce||i?.getAttribute("nonce");o=p(n.map(l=>{if(l=ie(l),l in R)return;R[l]=!0;const f=l.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=f?"stylesheet":oe,f||(u.as="script"),u.crossOrigin="",u.href=l,s&&u.setAttribute("nonce",s),document.head.appendChild(u),f)return new Promise((E,g)=>{u.addEventListener("load",E),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};typeof window<"u"&&typeof window.Element<"u"&&(Element.prototype.closest=Element.prototype.closest??function(t){let n=this;for(;n!=null;){if(n.matches(t))return n;const r=n.parentElement??n.parentNode;n=r!=null&&r.nodeType===1?r:null}return null},Element.prototype.matches=Element.prototype.matches??Element.prototype.msMatchesSelector??Element.prototype.webkitMatchesSelector);const se=50;function ae(e){const t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining(){return Math.max(0,se-(Date.now()-t))}})},0)}function ce(e){window.clearTimeout(e)}if(typeof window<"u"){const e=typeof window.requestIdleCallback!="function",t=typeof window.cancelIdleCallback!="function";(e||t)&&(window.requestIdleCallback=ae,window.cancelIdleCallback=ce)}function le(e){const t={};for(const n of e){if(Object(n)!==n)throw new TypeError(`Iterator value ${n} is not an entry object`);const{"0":r,"1":o}=n;Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:o})}return t}Object.fromEntries=Object.fromEntries??le;function ue(e){const t=Number.isNaN(e)||e===void 0?0:Math.trunc(e),n=t<0?t+this.length:t;return this[n]}typeof Array.prototype.at!="function"&&(Array.prototype.at=ue);const de=Element.prototype.insertBefore,fe=Element.prototype.appendChild;Element.prototype.insertBefore=function(e,t){try{const n=!e||!(e instanceof Node),r=e instanceof Text&&t instanceof HTMLElement&&t?.localName==="font";return n||r||K(e)?e:de.apply(this,[e,t])}catch{return e}};Element.prototype.appendChild=function(e){try{const t=!e||!(e instanceof Node),n=e instanceof Text&&this.firstChild instanceof HTMLElement&&this.firstChild.localName==="font";return t||n||K(e)?e:fe.apply(this,[e])}catch{return e}};function K(e){if(!(e instanceof HTMLScriptElement)||!e.textContent)return!1;try{return new Function(e.textContent),!1}catch(t){return console.warn("Blocked script with invalid JavaScript content:",{source:e.src||"inline script",contentPreview:`${e.textContent.slice(0,100)}...`,error:t instanceof Error?t.message:String(t)}),!0}}if(typeof performance<"u")try{const e=performance.measure.bind(performance),t=performance.mark.bind(performance);performance.measure=function(...r){try{return e.call(this,...r)}catch{return L("measure",String(r[0]))}}
2,performance.mark=function(...n){try{return t.call(this,...n)}catch{return L("mark",String(n[0]))}}}catch{}function L(e,t){const n={startTime:0,duration:0,entryType:e,name:t};return{...n,detail:void 0,toJSON:()=>n}}typeof window<"u"&&(window.ShopPay={});const pe="checkout:cf-challenge",X="checkout-web:cf-challenge-reloads",me=2,he=300*1e3;function ye(e){try{const t=sessionStorage.getItem(X);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n.filter(r=>typeof r=="number"&&r<=e&&e-r<he):[]}catch{return[]}}function Ee(e){try{return sessionStorage.setItem(X,JSON.stringify(e)),!0}catch{return!1}}function F(e){window.dispatchEvent(new CustomEvent(pe,{detail:e}))}if(typeof window<"u"){const e=window.fetch;let t=!1,n=!1;const r=()=>{const o=Date.now(),a=ye(o);if(a.length>=me){n||(n=!0,F({event:"reload_suppressed",reloadCount:a.length,budgetTracked:!0}));return}t=!0;const i=Ee([...a,o]);F({event:"reload",reloadCount:a.length+1,budgetTracked:i}),window.location.reload()};window.fetch=async(...o)=>{const a=await e(...o);return!t&&!a.ok&&a.headers.get("cf-mitigated")==="challenge"&&r(),a}}const c={pendingTransition:!1,transitionTypes:[],inflightTransition:void 0,inflightTransitionTypes:[],scheduled:!1,containers:new Set,get prefersReducedMotion(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}},ge='[role="dialog"][aria-modal="true"]';function Te(e,t=[],{interrupt:n=!1,replace:r=!1}={}){if(typeof window>"u"){e();return}c.transitionTypes=c.pendingTransition&&!r?[...new Set([...c.transitionTypes,...t])]:t,c.pendingTransition=!0,e(),n&&c.inflightTransition?.skipTransition()}function tt(){return c.inflightTransitionTypes.some(e=>e==="payment-details-slide-start"||e==="payment-details-slide-end")}function nt(){return c.inflightTransitionTypes.includes("payment-details-slide-start")?"start":"end"}class _e extends ee{#e;#t;constructor(t,n,r){super(t),this.#e=n,this.#t=r}get value(){return super.value}set value(t){this.#e?.(this.peek(),t)??!0?Te(()=>{super.value=t},this.#t):super.value=t}}function rt(e,t,n){return new _e(e,t,n)}const we=["Load failed","Failed to fetch","when attempting to fetch resource","SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3"],W=["Importing a module script failed.","Failed to fetch dynamically imported module","error loading dynamically imported module","Cannot load script due to integrity mismatch"],ot=["TranslationNotStringError","MissingReplacementError","CardFieldsSetupError","CardFieldsLoadError","IFrameNotFoundError","CardFieldsFetchFailureError","CardFieldsOperationalError","PayPalAPIError","WalletProviderFailureError","AbortedSessionError","AbortError","GraphQLFetchNetworkError","MonorailRequestError","BreadcrumbsPluginFetchError","OpenTelemetryClientError","InsecurePageError","UnsafeURLError","GraphQLFetchHttpBadRequestError","GraphQLFetchHttpStatusError","GraphQLFetchHttpContentTypeError","GraphQLFetchJsonParseError","SettingsCreateError","MerchantCommunicationError","PostPurchase::ClientJsonParseError","MissingAppContextError","MissingContextError"];function it(e){return e.name==="TypeError"&&W.some(t=>e.message.includes(t))}function st(e){return we.some(t=>e.message.includes(t))}
2class h extends Error{constructor(t,n={}){super(t,n),this.metadata=n.metadata??{},this.instanceGroupingHash=n.groupingHash,this.unactionable=!1,"captureStackTrace"in Error&&Error.captureStackTrace(this,this.constructor)}get groupingHash(){return this.instanceGroupingHash??this.defaultGroupingHash??this.name}isUnactionable(){return this.unactionable}}class at extends h{constructor(t,n={}){super(t,n)}}class Se extends h{constructor(){super(...arguments),this.name="DynamicImportError",this.unactionable=!0}}class ve extends h{constructor(){super(...arguments),this.name="ViewTransitionRenderError",this.defaultGroupingHash="ViewTransitionRenderError"}}function Ae(e){return e.name==="TypeError"?`ViewTransitionRenderError: ${e.message}`:`ViewTransitionRenderError: ${e.name}`}function be(e,t){return t===void 0||Object.defineProperty(e,"groupingHash",{value:t,enumerable:!1,configurable:!0}),e}const J=(()=>{if(!document.startViewTransition)return()=>!1;try{const e=document.startViewTransition({update:()=>{},types:[]});return e.skipTransition(),e.ready.catch(()=>{}),()=>!0}catch{return()=>!1}})(),A="modal-content-cross-fade",Ie=new Set(["payment-icons",A]),Ce=new Set(["delivery-slide-start","delivery-slide-end","payment-icons",A,"payment-selector-change","payment-details-slide-start","payment-details-slide-end","money-lines"]),Pe=new Set(["payment-details-slide-start","payment-details-slide-end"]);function D(){if(!c.inflightTransition)return!1;const e=c.inflightTransitionTypes;return e.length===0||!e.every(t=>Pe.has(t))}function H(){const e=c.inflightTransition;if(!e)return!1;const t=c.inflightTransitionTypes;return t.length>0&&t.every(r=>Ce.has(r))?(e.skipTransition(),!0):!1}function ke(){let e=!1;document.addEventListener("keydown",()=>{H()},{capture:!0,passive:!0}),document.addEventListener("pointerdown",()=>{e=H()},{capture:!0,passive:!0}),document.addEventListener("pointercancel",()=>{e=!1},{capture:!0,passive:!0}),document.addEventListener("click",t=>{e&&(e=!1,t.target===document.documentElement&&Ne(t)&&t.stopImmediatePropagation())},{capture:!0})}ke();function Ne({clientX:e,clientY:t,ctrlKey:n,metaKey:r,shiftKey:o,altKey:a,detail:i}){const s=document.elementFromPoint(e,t);return!s||s===document.documentElement||s.closest("[inert], :disabled")?!1:(s.closest("input, textarea, select, [contenteditable]")?.focus(),s.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:e,clientY:t,ctrlKey:n,metaKey:r,shiftKey:o,altKey:a,detail:i})),!0)}q.debounceRendering=e=>{if(!c.scheduled){if(c.scheduled=!0,!I()&&!D()){queueMicrotask(()=>{if(I()||D()){x(e);return}Q(e)});return}x(e)}};function I(){const e=document.querySelectorAll(ge),t=c.transitionTypes,n=t.length>0&&t.every(o=>Ie.has(o)),r=t.includes(A);return c.pendingTransition&&!c.prefersReducedMotion&&!(typeof window<"u"&&window!==window.parent)&&!document.hidden&&J()&&(e.length===0||n)&&(!r||e.length===1)}function Q(e){const t=c.pendingTransition,n=c.transitionTypes;c.pendingTransition=!1,c.transitionTypes=[],c.scheduled=!1;try{e()}catch(r){const o=r instanceof Error?r.message:String(r);if(W.some(a=>o.includes(a)))throw new Se(o);{const a=r instanceof Error?Ae(r):void 0;throw be(new ve(`Error during render (no view transition): ${o}`,{cause:r,groupingHash:a,metadata:{prefersReducedMotion:c.prefersReducedMotion,pendingTransition:t,transitionTypes:n,isInIframe:typeof window<"u"&&window!==window.parent,supportsViewTransitions:J(),...Re(r)}}),a)}}}const Oe="view-transition-generated-names";function w(e){return`@layer ${Oe} {${e}}`}async function x(e){if(await(c.inflightTransition?.finished??Promise.resolve()),!I()){Q(e);return}const n=c.transitionTypes.includes(A),r=new Map,o=document.createElement("style");let a=0,i=0;function s(){if(n)return w("");let d="";for(const u of c.containers){let E=1;u.dataset.vtContainerId=`${a++}`;for(const g of u.children){const _=`vt-${i++}`;r.set(g,_),d+=`
3              [data-vt-container-id="${u.dataset.vtContainerId}"] > :nth-child(${E++}) {
4                view-transition-name: ${_};
5            }
6          `}}return w(d)}function p(){if(n)return w("");let d="";
6for(const u of c.containers){let E=1;for(const g of u.children){const _=r.get(g);u.dataset.vtContainerId||(u.dataset.vtContainerId=`${a++}`),d+=`
7              [data-vt-container-id="${u.dataset.vtContainerId}"] > :nth-child(${E++}) {
8                view-transition-name: ${_??`vt-${i++}`};
9              }
10            `}}return w(d)}o.innerHTML=s(),document.head.appendChild(o);const l=c.transitionTypes?.length?c.transitionTypes:void 0;c.transitionTypes=[];const f=document.startViewTransition({update:()=>{c.scheduled=!1,e(),o.innerHTML=p()},types:l});c.inflightTransition=f,c.inflightTransitionTypes=l?[...l]:[],f.ready.catch(()=>{}),f.updateCallbackDone.then(()=>{c.pendingTransition=!1}).catch(()=>{}),f.finished.finally(()=>{c.inflightTransition=void 0,c.inflightTransitionTypes=[],document.head.removeChild(o);for(const d of c.containers)delete d.dataset.vtContainerId}).catch(()=>{})}function Re(e){const t={};e instanceof Error&&(t.originalErrorName=e.name,t.originalErrorMessage=e.message,t.originalErrorStack=e.stack);try{const n=document.querySelectorAll("script[integrity]"),r=n.length;t.scriptsWithIntegrityCount=r,t.scriptsWithIntegrity=Array.from(n).slice(0,10).map(o=>({src:o.getAttribute("src"),integrity:o.getAttribute("integrity")}))}catch{}try{const n=document.querySelector('script[type="importmap"], script[type="systemjs-importmap"]');if(n?.textContent){const r=JSON.parse(n.textContent);if(r.integrity!=null&&typeof r.integrity=="object"&&!Array.isArray(r.integrity)){const o=Object.entries(r.integrity);t.importMapIntegrityCount=o.length,t.importMapIntegritySample=Object.fromEntries(o.slice(0,10))}}}catch{}return t}const P="fast-thank-you-progress-root",Me=".LoadingShellMainContentPrimary, .LoadingShellOrderSummaryContentPrimary";function Le(e,t){return e!=="/processing"&&e!=="/thank-you"||t===void 0||t==="action_required"||t==="failed"||t==="abandoned"}const Fe=100,De=150,He=1e4;class ct{constructor({progress:t}={}){this.#e=$("pending"),this.phase=this.#e,this.isRevealing=te(()=>this.#e.value==="revealing"),this.progress=t}#e;reveal(){this.#t("pending","revealing")}settle(){this.#t("revealing","settled")}skip(){this.#t("pending","settled")}#t(t,n){this.#e.peek()===t&&(this.#e.value=n)}}class lt{constructor(){this.#e=$("loading"),this.phase=this.#e,this.#n=new Promise(t=>{this.#t=t})}#e;#t;#n;#r;complete(){this.#o("completing")}cancel(){this.#o("cancelled")}fill(){return this.#r??=this.#i(),this.#r}async#i(){if(await this.#n,this.#e.peek()!=="completing")return;const t=document.getElementById(P)?.querySelector(".FastThankYouReceiptProgressBar");t&&await xe(t),this.#e.value="complete"}#o(t){this.#e.peek()==="loading"&&(this.#e.value=t,this.#t())}}async function xe(e){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof e.animate!="function")e.style.animation="none",e.style.transform="scaleX(1)";else{const t=getComputedStyle(e).transform;e.style.animation="none",await e.animate([{transform:t},{transform:"scaleX(1)"}],{duration:Fe,easing:"ease-out",fill:"forwards"}).finished.catch(()=>{}),await new Promise(r=>setTimeout(r,De))}await B(),await B()}function B(){return new Promise(e=>{requestAnimationFrame(()=>e())})}function Be(){document.getElementById("app")?.removeAttribute("inert"),document.querySelectorAll(Me).forEach(e=>e.removeAttribute("aria-hidden")),document.querySelectorAll(".LoadingShell-fastThankYouProgressCover").forEach(e=>e.classList.remove("LoadingShell-fastThankYouProgressCover")),document.getElementById(P)?.remove()}function z(){return document.getElementById(P)!==null}function ut(e,{currentUrl:t,latestReceipt:n}){const r=setTimeout(()=>e.cancel(),He),o=ne(function(){const i=e.phase.value,{normalizedPath:s}=t.value,p=n.value?.status;re(()=>{const l=i==="loading"&&Le(s,p);i==="loading"&&!l||(this.dispose(),clearTimeout(r),l&&e.cancel(),document.getElementById("app")?.removeAttribute("inert"))})});return()=>{clearTimeout(r),o()}}const Ue=32,Ve=4,Z=10,U=100,je=8*1024,y=Symbol("unreadable"),S=q,C=new WeakMap;let v;function Ge(){if(typeof window>"u")return()=>{};if(v)return v;const e=S.__e;function t(...r){return Ye(r[0],r[1]),e.apply(this,r)}function n(){typeof window>"u"||S.__e===t&&(S.__e=e,v=void 0)}return S.__e=t,v=n,n}function dt(e){if(typeof window>"u")return;const t=C.get(e);if(!(!t||t.reported))return t.reported=!0,t.metadata}function Ye(e,t){if(!(typeof window>"u"))try{if(!(e instanceof TypeError)||C.has(e))return;const n=Object.getOwnPropertyDescriptor(e,"message");if(!n||!("value"in n)||n.value!=="Cannot convert object to primitive value")return;const r={reported:!1};C.set(e,r),r.metadata=$e(t)}catch{}}function T(e){return typeof e=="object"&&e!==null||typeof e=="function"}function k(e){return e===y?"unreadable":e===null?"null":typeof e}function N(e,t,n){try{return Object.getOwnPropertyDescriptor(e,t)}catch{return n.inspectionFailed=!0,y}}function m(e,t,n){if(!T(e))return;const r=N(e,t,n);if(r)return r!==y&&"value"in r?r.value:(n.inspectionFailed=!0,y)}function b(e,t,n){const r=N(e,t,n);return r===y?{kind:"unreadable"}:r?"value"in r?{kind:"data",valueType:k(r.value)}:{kind:"accessor"}:{kind:"absent"}}
10function qe(e,t){const n={category:k(e)};if(!T(e)||typeof e=="function")return n;try{n.nullPrototype=Object.getPrototypeOf(e)===null}catch{t.inspectionFailed=!0}const r=N(e,Symbol.toStringTag,t);return n.moduleLike=r!==y&&r!==void 0&&"value"in r&&r.value==="Module",n.defaultProperty=b(e,"default",t),n.toStringProperty=b(e,"toString",t),n.valueOfProperty=b(e,"valueOf",t),n}function V(e,t){const n=[],r=new Set;let o=e;for(;T(o)&&n.length<Z&&!r.has(o);){r.add(o);const a=m(o,"type",t),i={category:k(a)};if(typeof a=="function"){const s=m(a,"displayName",t),p=typeof s=="string"&&s.length>0?s:m(a,"name",t);typeof p=="string"&&(i.name=p.slice(0,U),i.nameTruncated=p.length>U)}n.push(i),o=m(o,"__",t)}return{type:qe(m(e,"type",t),t),ancestry:Object.fromEntries(n.map((a,i)=>[i,a])),ancestryTruncated:T(o)}}function $e(e){const t={version:1,inspectedNodeCount:0,candidateCount:0,scanTruncated:!1,candidatesTruncated:!1,inspectionFailed:!1,outputTruncated:!1,catchVNode:{type:{category:"unreadable"},ancestry:{},ancestryTruncated:!1},candidates:{}};t.catchVNode=V(e,t);const n=[e],r=new Set;for(const i of n){if(!T(i)||r.has(i))continue;r.add(i),t.inspectedNodeCount++;const s=m(i,"type",t);s!==y&&s!==null&&s!==void 0&&typeof s!="string"&&typeof s!="function"&&(t.candidateCount<Ve?t.candidates[t.candidateCount++]=V(i,t):t.candidatesTruncated=!0);try{const p=m(i,"__k",t);if(!Array.isArray(p))continue;const l=m(p,"length",t);if(typeof l!="number")continue;const f=Math.min(l,Ue-n.length);f<l&&(t.scanTruncated=!0);for(let d=0;d<f;d++)n.push(m(p,d,t))}catch{t.inspectionFailed=!0}}const o=[t.catchVNode,...Object.values(t.candidates)],a=new TextEncoder;for(let i=Z-1;i>=0;i--)for(const s of o){if(a.encode(JSON.stringify(t)).byteLength<=je)return t;s.ancestry[i]&&(delete s.ancestry[i],s.ancestryTruncated=!0,t.outputTruncated=!0)}return t}const ft="e_e5eef1f760ed55e19c6defbc6ce215af",pt="e_bdd4ad9fc347bfc12f78dabcc6059bc7",mt="e_6221c0aa1c5a577e83a5c1e4c9b3d592",ht="e_2e28467f22ae5396e5a4d2b8e02c531e",yt="e_5494add585d1f70ed2467b09056b8914",Et="e_178b603bb3abd8a0d967da5edd358635",gt="e_1fca27be02d739cb3043ec76479eb013",Ke="e_fd1e35bf8f1ad8ee87a7dc13dba7b296",Tt="e_ba10a6a3303393a1e759ef39209360d2",j=Symbol("checkout-web.skeletonRemovalLatch");function O(e){const t=e;let n=t[j];if(!n){let r=()=>{};n={promise:new Promise(a=>{r=a}),resolve:r,removed:!1},t[j]=n}return n}function _t(){return typeof document>"u"?new Promise(()=>{}):O(document).promise}function Xe(e){const t=O(e);t.removed=!0,t.resolve()}function wt(e){return O(e).removed}function We(e,t){const n=z();n&&Be();const r=e.querySelector(".client-terminal-error-page__stack-trace");return r&&r.remove(),e.style.display="block",n?(document.querySelector(".LoadingShell")?.remove(),document.body?.classList.remove("Loading"),Xe(document),!0):!1}Ge();Je();async function Je(){const e=performance.now();let t;try{const[{buildAppContextForBrowser:n},{hydrateApp:r,renderTerminalError:o}]=await Promise.all([M(()=>import("./context-browser.nsMPExI6.js").then(u=>u.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])),M(()=>import("./hydrate.CvWSYK3c.js").then(u=>u.jB),__vite__mapDeps([17,1,2,3,18,19,20,21]))]),a=performance.now();await G();const i=performance.now(),s=document.getElementById("app"),p=document.getElementById("terminal-error-page"),l=await n({rootElement:s,onTerminalError:o({rootElement:s,terminalErrorPageElement:p}),eagerAppMetafieldsExperiment:Ke}),f=performance.now();if(l.status==="error")throw t=l.errorHandlingContext,l.error;t=l.appContext;const d=l.appContext;await r(d,{bootStartTime:e,bootPhaseTimings:{importsCompleteTime:a,bootUnblockedTime:i,appContextBuiltTime:f}})}catch(n){if(t)await t.terminalErrorHandler.notify(n);else if(z()){await G();const r=document.getElementById("terminal-error-page");if(!r)throw n;document.getElementById("app")?.replaceChildren(),We(r)}else throw n}finally{if(t){const{client:{initialRequest:n},observability:r}=t;r.counter({name:"checkout_web_client_received",value:1,attributes:{serverRendered:n.isServerRendered,didHydrate:n.isServerRendered}})}}}const Qe=Symbol.for("Shopify.checkout.htmlAvailable"),ze="checkout:htmlavailable";async function G(){window[Qe]||await new Promise(e=>{document.addEventListener(ze,e,{once:!0})})}
10function St(e,t){return e==="phone"&&t.user.isUnauthenticatedUser.value}function vt(e,t){let n=e;const r=t.split(".");for(const o of r){if(n==null)return;n=n[o]}return n}function At(e,t,n){const r={...e},o=t.split("."),a=o.pop();if(!a)return e;let i=r;for(const s of o)i[s]={...i[s]},i=i[s];return n==null?delete i[a]:i[a]=n,r}function Ze(e,...t){const n={...e};for(const r of t)for(const o of Object.keys(r)){const a=n[o],i=r[o];Y(a)&&Y(i)?n[o]=Ze(a,i):i!=null&&(n[o]=i)}return n}function Y(e){if(e==null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}const bt={ACCEPTED:"yes",DECLINED:"no",NO_INTERACTION:"no_interaction",NO_VALUE:""};function It(e,t,n){const r=window.webkit?.messageHandlers?.CheckoutSheetProtocolConsumer,o=window.CheckoutSheetProtocolConsumer,a=[r,o,n];for(const i of a)if(i&&typeof i?.postMessage=="function")try{const s={name:t.handlerId,body:JSON.stringify(t.body)};return e.log("checkout_sheet_protocol_client_message_posted","Posting message to checkout sheet protocol consumer.",{handlerId:t.handlerId}),i.postMessage(JSON.stringify(s)),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"success"}}),!0}catch(s){return e.log("checkout_sheet_protocol_client_message_posting_failed","Error posting message to checkout sheet protocol consumer",{handlerId:t.handlerId,error:s instanceof Error?s.message:String(s)}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"failed"}}),console.info("Error received when posting message to checkout sheet protocol consumer",t,s),!1}return e.log("checkout_sheet_protocol_client_no_consumer_found","No checkout sheet protocol consumer found",{handlerId:t.handlerId}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"no_consumer"}}),!1}function Ct(){const e=window.opener||(window.parent===window?void 0:window.parent);return e?{postMessage(t){e.postMessage({_ecp:"2025-10",data:t},"*")}}:void 0}class Pt extends Error{constructor(t){super(t),this.name="CheckoutProtocolUnrecoverableTerminalError",this.reason=t}}class kt extends h{constructor(t){super(t),this.name="IgnoredApplePayAPIError"}}class Nt extends h{constructor(){super(...arguments),this.name="ApplePayAPIError"}}class Ot extends h{constructor(){super(...arguments),this.name="AbortedSessionError"}}class Rt extends h{constructor(){super(...arguments),this.name="WalletProviderFailureError"}}class Mt extends h{constructor(){super(...arguments),this.name="ApplePaySessionNotReadyError",this.defaultGroupingHash="ApplePaySessionNotReadyError"}}export{Mt as A,wt as B,bt as C,Xe as D,gt as E,lt as F,Be as G,We as H,kt as I,ft as J,ut as K,z as L,pt as O,yt as P,h as S,ct as T,ht as U,Rt as W,M as _,ot as a,Pt as b,tt as c,nt as d,st as e,Ze as f,vt as g,Ot as h,it as i,Nt as j,Te as k,mt as l,Tt as m,W as n,we as o,It as p,Ct as q,dt as r,St as s,rt as t,At as u,Et as v,at as w,_t as x,ge as y,c as z};

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.