PageSourceSearch

https://topcelebstyle.com/cdn/shopifycloud/checkout-web/assets/c1/sandbox-2023-04.ZwRa-_pA.worker.js

js topcelebstyle.com collected 2026-09-26 10:43:57 UTC 34,093 bytes, 3 lines download raw bytes

1var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value}):obj[key]=value;var __spreadValues=(a,b)=>{for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b)){if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop])}return a};var __spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source)){if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop]}return target};var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj));var __privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);var __async=(__this,__arguments,generator)=>{return new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}};var rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}};var step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())})};(function(){"use strict";var _e2,_e3;const K=Symbol.for("RemoteUi::Retain"),Y=Symbol.for("RemoteUi::Release"),G=Symbol.for("RemoteUi::RetainedBy");class we{constructor(){this.memoryManaged=new Set}add(t){this.memoryManaged.add(t),t[G].add(this),t[K]()}release(){for(const t of this.memoryManaged)t[G].delete(this),t[Y]();this.memoryManaged.clear()}}function ee(e){return!!(e&&e[K]&&e[Y])}function _(e,{deep:t=true}={}){return te(e,t,new Map)}function te(e,t,r){const o=r.get(e);if(o!=null)return o;const n=ee(e);if(n&&e[K](),r.set(e,n),t){if(Array.isArray(e)){const i=e.reduce((c,a)=>te(a,t,r)||c,n);return r.set(e,i),i}if(C(e)){const i=Object.keys(e).reduce((c,a)=>te(e[a],t,r)||c,n);return r.set(e,i),i}}return r.set(e,n),n}function Ee(e,{deep:t=true}={}){return re(e,t,new Map)}function re(e,t,r){const o=r.get(e);if(o!=null)return o;const n=ee(e);if(n&&e[Y](),r.set(e,n),t){if(Array.isArray(e)){const i=e.reduce((c,a)=>re(a,t,r)||c,n);return r.set(e,i),i}if(C(e)){const i=Object.keys(e).reduce((c,a)=>re(e[a],t,r)||c,n);return r.set(e,i),i}}return n}function C(e){if(e==null||typeof e!="object")return false;const t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}const W="_@f",ne="_@fn";function Xe(e){var _a;const t=typeof self<"u"&&self.name||((_a=globalThis.location)==null?void 0:_a.origin)||"unknown",r=e.uuid();let o=null;const n=new Map,i=new Map,c=new Map,a=new Map;return{encode:h,decode:u,call(s,f){return __async(this,null,function*(){const p=new we,g=i.get(s);if(g==null){const b=a.get(s)||"unknown",l=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(b,", endpoint: ").concat(r).concat(o!=null?", endpoint terminated ".concat(Date.now()-o,"ms ago"):"",")"));throw l.name="RemoteFunctionReleasedError",l}try{const b=ee(g)?[p,...g[G]]:[p];return yield g(...u(f,b))}finally{p.release()}})},release(s){const f=i.get(s);f&&(i.delete(s),n.delete(f),a.set(s,f.name||"unknown"))},terminate(){o=Date.now(),n.clear(),i.clear(),c.clear(),a.clear()}};function h(s,f=new Map){if(s==null)return[s];const p=f.get(s);if(p)return p;if(typeof s=="object"){if(Array.isArray(s)){f.set(s,[void 0]);const b=[],m=[s.map(d=>{const[y,S=[]]=h(d,f);return b.push(...S),y}),b];return f.set(s,m),m}if(C(s)){f.set(s,[void 0]);const b=[],m=[Object.keys(s).reduce((d,y)=>{const[S,w=[]]=h(s[y],f);return b.push(...w),__spreadProps(__spreadValues({},d),{[y]:S})},{}),b];return f.set(s,m),m}}if(typeof s=="function"){if(n.has(s)){const m=n.get(s),d=[{[W]:m}];return f.set(s,d),d}const b=e.uuid();n.set(s,b),i.set(b,s);const l=[{[W]:b,[ne]:s.name||String(s).slice(0,100)}];return f.set(s,l),l}const g=[s];return f.set(s,g),g}function u(s,f){if(typeof s=="object"){if(s==null)return s;if(Array.isArray(s))return s.map(p=>u(p,f));if(W in s){const p=s[W];if(c.has(p))return c.get(p);let g=0,b=false,l=null;const m=()=>{g-=1,g===0&&(b=true,l=Date.now(),c.delete(p),e.release(p))},d=()=>{g+=1},y=new Set(f),S=ne in s&&s[ne]||"unknown",w=(...P)=>{if(b){const E=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(S,", endpoint: ").concat(r).concat(l!=null?", released ".concat(Date.now()-l,"ms ago"):"",", retained by ").concat(y.size,")"));throw E.name="RemoteFunctionReleasedError",E}if(!c.has(p)){const E=new Error("[".concat(t,"] You attempted to call a function that was already revoked. (function: ").concat(S,", endpoint: ").concat(r).concat(o!=null?", endpoint terminated ".concat(Date.now()-o,"ms ago"):"",", retained by ").concat(y.size,")"));throw E.name="RemoteFunctionRevokedError",E}return e.call(p,P)};Object.defineProperties(w,{[Y]:{value:m,writable:false},[K]:{value:d,writable:false},[G]:{value:y,writable:false}});for(const P of y)P.add(w);return c.set(p,w),w}if(C(s))return Object.keys(s).reduce((p,g)=>__spreadProps(__spreadValues({},p),{[g]:u(s[g],f)}),{})}return s}}const Se=0,oe=1,Pe=2,Re=3,xe=5,se=6;
1class Oe extends Error{constructor(t){const{callId:r,error:o,result:n}=t,i=o?" Error: ".concat(String(o)):"",c=n==null?"":" Result: ".concat(JSON.stringify(n));super("No resolver found for call ID: ".concat(r).concat(i).concat(c)),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=r,this.error=o,this.result=n}}function Je(e,{uuid:t=Ze,createEncoder:r=Xe,callable:o}={}){let n=false,i=e;const c=new Map,a=new Map,h=ve(p,o),u=r({uuid:t,release(l){s(Re,[l])},call(l,m,d){const y=t(),S=g(y,d),[w,P]=u.encode(m);return s(xe,[y,l,w],P),S}});return i.addEventListener("message",f),{call:h,replace(l){const m=i;i=l,m.removeEventListener("message",f),l.addEventListener("message",f)},expose(l){for(const m of Object.keys(l)){const d=l[m];typeof d=="function"?c.set(m,d):c.delete(m)}},callable(...l){if(o!=null)for(const m of l)Object.defineProperty(h,m,{value:p(m),writable:false,configurable:true,enumerable:true})},terminate(){s(Pe,void 0),b(),i.terminate&&i.terminate()}};function s(l,m,d){n||i.postMessage(m?[l,m]:[l],d)}function f(l){return __async(this,null,function*(){if(n)return;const{data:m}=l;if(Qe(m))switch(m[0]){case Pe:{b();break}case Se:{const d=new we,[y,S,w]=m[1],P=c.get(S);try{if(P==null)throw new Error("No '".concat(S,"' method is exposed on this endpoint"));const[E,R]=u.encode(yield P(...u.decode(w,[d])));s(oe,[y,void 0,E],R)}catch(E){const{name:R,message:O,stack:I}=E;throw s(oe,[y,{name:R,message:O,stack:I}]),E}finally{d.release()}break}case oe:{const[d,y,S]=m[1],w=a.get(d);if(w==null)throw new Oe({callId:d,error:y,result:S});w(...m[1]),a.delete(d);break}case Re:{const[d]=m[1];u.release(d);break}case se:{const[d,y,S]=m[1],w=a.get(d);if(w==null)throw new Oe({callId:d,error:y,result:S});w(...m[1]),a.delete(d);break}case xe:{const[d,y,S]=m[1];try{const w=yield u.call(y,S),[P,E]=u.encode(w);s(se,[d,void 0,P],E)}catch(w){const{name:P,message:E,stack:R}=w;throw s(se,[d,{name:P,message:E,stack:R}]),w}break}}})}function p(l){return(...m)=>{if(n)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if(typeof l!="string"&&typeof l!="number")return Promise.reject(new Error("Can\u2019t call a symbol method on a remote endpoint: ".concat(l.toString())));const d=t(),y=g(d),[S,w]=u.encode(m);return s(Se,[d,l,S],w),y}}function g(l,m){return new Promise((d,y)=>{a.set(l,(S,w,P)=>{if(w==null)d(P&&u.decode(P,m));else{const E=new Error;Object.assign(E,w),y(E)}})})}function b(){var l;n=true,c.clear(),a.clear(),(l=u.terminate)===null||l===void 0||l.call(u),i.removeEventListener("message",f)}}function Ze(){return"".concat(X(),"-").concat(X(),"-").concat(X(),"-").concat(X())}function X(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}function ve(e,t){let r;if(t==null){if(typeof Proxy!="function")throw new Error("You must pass an array of callable methods in environments without Proxies.");const o=new Map;r=new Proxy({},{get(n,i){if(o.has(i))return o.get(i);const c=e(i);return o.set(i,c),c}})}else{r={};for(const o of t)Object.defineProperty(r,o,{value:e(o),writable:false,configurable:true,enumerable:true})}return r}function Qe(e){return Array.isArray(e)&&typeof e[0]=="number"&&(e[1]==null||Array.isArray(e[1]))}function mr(e){return e}const Ve=0,Ae=1,et=2,tt=3,rt=4,L=0,ie=1,Ce=2,ce=3;function $(e){return e!=null&&e.kind===ce}const U="__current",ae={},nt=[];function ot(e,{strict:t=true,components:r}={}){let o=0;const n={strict:t,mounted:false,channel:e,children:nt,nodes:new WeakSet,parents:new WeakMap,tops:new WeakMap,components:new WeakMap,fragments:new WeakMap};t&&Object.freeze(r);const i={kind:L,options:t?Object.freeze({strict:t,components:r}):{strict:t,components:r},get children(){return n.children},createComponent(c,...a){if(r&&r.indexOf(c)<0)throw new Error("Unsupported component: ".concat(c));const[h,u,...s]=a,f=h!=null?h:{},p=[],g={};if(h)for(const d of Object.keys(h))d!=="children"&&(g[d]=k(Ie(h[d])));if(u)if(Array.isArray(u))for(const d of u)p.push(x(d,i));else{p.push(x(u,i));for(const d of s)p.push(x(d,i))}const b="".concat(o++),l={externalProps:t?Object.freeze(f):f,internalProps:g,children:t?Object.freeze(p):p},m=__spreadValues({kind:ie,get children(){return l.children},get props(){return l.externalProps},get remoteProps(){return l.internalProps},remove:()=>ke(m),updateProps:d=>ct(m,d,l,n),append:(...d)=>J(m,d.map(y=>x(y,i)),l,n),appendChild:d=>Z(m,x(d,i),l,n),removeChild:d=>v(m,d,l,n),replaceChildren:(...d)=>fe(m,d.map(y=>x(y,i)),l,n),insertBefore:(d,y)=>N(m,x(d,i),y,l,n),insertChildBefore:(d,y)=>N(m,x(d,i),y,l,n)},ae);
1n.components.set(m,l),Object.defineProperty(m,"type",{value:c,configurable:false,writable:false,enumerable:true}),de(m,n),he(m,b,i);for(const d of l.children)z(m,d,n);return m},createText(c=""){const a="".concat(o++),h={text:c},u=f=>it(s,f,h,n),s=__spreadValues({kind:Ce,get text(){return h.text},update:u,updateText:u,remove:()=>ke(s)},ae);return de(s,n),he(s,a,i),s},createFragment(){const c="".concat(o++),a={children:t?Object.freeze([]):[]},h=__spreadValues({kind:ce,get children(){return a.children},append:(...u)=>J(h,u.map(s=>x(s,i)),a,n),appendChild:u=>Z(h,x(u,i),a,n),removeChild:u=>v(h,u,a,n),replaceChildren:(...u)=>fe(h,u.map(s=>x(s,i)),a,n),insertBefore:(u,s)=>N(h,x(u,i),s,a,n),insertChildBefore:(u,s)=>N(h,x(u,i),s,a,n)},ae);return n.fragments.set(h,a),de(h,n),he(h,c,i),h},append:(...c)=>J(i,c.map(a=>x(a,i)),n,n),appendChild:c=>Z(i,x(c,i),n,n),replaceChildren:(...c)=>fe(i,c.map(a=>x(a,i)),n,n),removeChild:c=>v(i,c,n,n),insertBefore:(c,a)=>N(i,x(c,i),a,n,n),insertChildBefore:(c,a)=>N(i,x(c,i),a,n,n),mount(){return n.mounted?Promise.resolve():(n.mounted=true,Promise.resolve(e(Ve,n.children.map(B))))}};return i}function st(e,{tops:t}){var r;return((r=t.get(e))===null||r===void 0?void 0:r.kind)===L}function Me(e,t){const r=o=>{if("children"in o)for(const n of o.children)t(n),r(n)};r(e)}function D(e,t,{remote:r,local:o}){const{mounted:n,channel:i}=t;n&&(e.kind===L||st(e,t))&&r(i),o()}function it(e,t,r,o){return D(e,o,{remote:n=>n(tt,e.id,t),local:()=>{r.text=t}})}const M=Symbol("ignore");function ct(e,t,r,o){const{strict:n}=o,{internalProps:i,externalProps:c}=r,a={},h=[];let u=false;for(const s of Object.keys(t)){if(s==="children")continue;const f=c[s],p=t[s],g=i[s],b=Ie(p);if(g===b&&(b==null||typeof b!="object"))continue;const[l,m]=ue(g,b);m&&h.push(...m),l!==M&&(u=true,a[s]=l,$(f)&&le(f,o),$(p)&&z(e,p,o))}return D(e,o,{remote:s=>{u&&s(rt,e.id,a)},local:()=>{const s=__spreadValues(__spreadValues({},c),t);r.externalProps=n?Object.freeze(s):s,r.internalProps=__spreadValues(__spreadValues({},r.internalProps),a);for(const[f,p]of h)f[U]=p}})}function ue(e,t,r=new Set){return r.has(e)?[M]:typeof e=="function"&&U in e?(r.add(e),[typeof t=="function"?M:k(t),[[e,t]]]):Array.isArray(e)?(r.add(e),ft(e,t,r)):C(e)&&!$(e)?(r.add(e),ut(e,t,r)):[e===t?M:t]}function k(e,t=new Map){const r=t.get(e);if(r)return r;if($(e))return t.set(e,e),e;if(Array.isArray(e)){const o=[];t.set(e,o);for(const n of e)o.push(k(n,t));return o}if(C(e)){const o={};t.set(e,o);for(const n of Object.keys(e))o[n]=k(e[n],t);return o}if(typeof e=="function"){const o=(...n)=>o[U](...n);return Object.defineProperty(o,U,{enumerable:false,configurable:false,writable:true,value:e}),t.set(e,o),o}return e}function j(e,t=new Set){if(!t.has(e)){if(t.add(e),Array.isArray(e))return e.reduce((r,o)=>{const n=j(o,t);return n?[...r,...n]:r},[]);if(C(e))return Object.keys(e).reduce((r,o)=>{const n=j(e[o],t);return n?[...r,...n]:r},[]);if(typeof e=="function")return U in e?[e]:void 0}}function ke(e){var t;(t=e.parent)===null||t===void 0||t.removeChild(e)}function J(e,t,r,o){for(const n of t)Z(e,n,r,o)}function Z(e,t,r,o){var n;const{nodes:i,strict:c}=o;if(!i.has(t))throw new Error("Cannot append a node that was not created by this remote root");const a=t.parent,h=(n=a==null?void 0:a.children.indexOf(t))!==null&&n!==void 0?n:-1;return D(e,o,{remote:u=>{u(Ae,e.id,h<0?e.children.length:e.children.length-1,B(t),a?a.id:false)},local:()=>{z(e,t,o);let u;if(a){const s=_e(a,o),f=[...s.children];f.splice(h,1),a===e?u=f:(s.children=c?Object.freeze(f):f,u=[...r.children])}else u=[...r.children];u.push(t),r.children=c?Object.freeze(u):u}})}function fe(e,t,r,o){for(const n of e.children)v(e,n,r,o);J(e,t,r,o)}function v(e,t,r,o){const{strict:n}=o,i=e.children.indexOf(t);if(i!==-1)return D(e,o,{remote:c=>c(et,e.id,i),local:()=>{le(t,o);const c=[...r.children];c.splice(c.indexOf(t),1),r.children=n?Object.freeze(c):c}})}function N(e,t,r,o,n){var i;const{strict:c,nodes:a}=n;if(!a.has(t))throw new Error("Cannot insert a node that was not created by this remote root");const h=t.parent,u=(i=h==null?void 0:h.children.indexOf(t))!==null&&i!==void 0?i:-1;return D(e,n,{remote:s=>{const f=r==null?e.children.length-1:e.children.indexOf(r);s(Ae,e.id,f<u||u<0?f:f-1,B(t),h?h.id:false)},local:()=>{z(e,t,n);let s;if(h){const f=_e(h,n),p=[...f.children];p.splice(u,1),h===e?s=p:(f.children=c?Object.freeze(p):p,s=[...o.children])}else s=[...o.children];r==null?s.push(t):s.splice(s.indexOf(r),0,t),o.children=c?Object.freeze(s):s}})}function x(e,t){return typeof e=="string"?t.createText(e):e}function z(e,t,r){const{tops:o,parents:n}=r,i=e.kind===L?e:o.get(e);o.set(t,i),n.set(t,e),Te(t,r),Me(t,c=>{o.set(c,i),Te(c,r)})}function Te(e,t){if(e.kind!==ie)return;const r=e.props;r&&Object.values(r).forEach(o=>{$(o)&&z(e,o,t)})}function le(e,t){const{tops:r,parents:o}=t;r.delete(e),o.delete(e),Me(e,n=>{r.delete(n),$e(n,t)}),$e(e,t)}function $e(e,t){if(e.kind!==ie)return;const r=e.remoteProps;for(const o of Object.keys(r!=null?r:{})){const n=r[o];$(n)&&le(n,t)}}function de(e,{parents:t,tops:r,nodes:o}){o.add(e),Object.defineProperty(e,"parent",{get(){return t.get(e)},configurable:true,enumerable:true}),Object.defineProperty(e,"top",{get(){return r.get(e)},configurable:true,enumerable:true})}function B(e){return e.kind===Ce?{id:e.id,kind:e.kind,text:e.text}:{id:e.id,kind:e.kind,type:e.type,props:e.remoteProps,children:e.children.map(t=>B(t))}}function Ie(e){return $(e)?at(e):e}function at(e){return{id:e.id,kind:e.kind,get children(){return e.children.map(t=>B(t))}}}function _e(e,t){return e.kind===L?t:e.kind===ce?t.fragments.get(e):t.components.get(e)}function he(e,t,r){Object.defineProperty(e,"id",{value:t,configurable:true,writable:false,enumerable:false}),Object.defineProperty(e,"root",{value:r,configurable:true,writable:false,enumerable:false})}function ut(e,t,r){if(!C(t)){var o;return[k(t),(o=j(e))===null||o===void 0?void 0:o.map(a=>[a,void 0])]}let n=false;const i=[],c={};for(const a in e){const h=e[a];if(!(a in t)){n=true;const p=j(h);p&&i.push(...p.map(g=>[g,void 0]))}const u=t[a],[s,f]=ue(h,u,r);f&&i.push(...f),s!==M&&(n=true,c[a]=s)}for(const a in t)a in c||(n=true,c[a]=k(t[a]));return[n?c:M,i]}function ft(e,t,r){if(!Array.isArray(t)){var o;return[k(t),(o=j(e))===null||o===void 0?void 0:o.map(s=>[s,void 0])]}let n=false;const i=[],c=t.length,a=e.length,h=Math.max(a,c),u=[];for(let s=0;s<h;s++){const f=e[s],p=t[s];if(s<c){if(s>=a){n=true,u[s]=k(p);continue}const[g,b]=ue(f,p,r);if(b&&i.push(...b),g===M){u[s]=f;continue}n=true,u[s]=g}else{n=true;const g=j(f);g&&i.push(...g.map(b=>[b,void 0]))}}return[n?u:M,i]}function lt(e){_(e);let t=e.initial,r=true,o=false;const n=new Set,i=Promise.resolve(e.subscribe(c)).then(a=>(o||c(a[1]),a));return{get current(){return t},subscribe(a){return n.add(a),()=>{n.delete(a)}},destroy(){return __async(this,null,function*(){r=false,n.clear();const[a]=yield i;a(),Ee(e)})}};function c(a){if(o=true,!(!r||t===a)){t=a;for(const h of n)h(t)}}}const dt="__remote_signal__";function ht(e){"signal"in e&&Object.assign(e,{signal:pt(e.signal)}
1)}function pt(e){if(mt(e))return e;const t=new AbortController,{aborted:r,start:o}=e;return r?(t.abort(),t.signal):(o&&(_(o),o(n=>{n&&t.abort()})),t.signal.addEventListener("abort",()=>__async(null,null,function*(){Ee(o)}),{once:true}),t.signal)}function mt(e){return e!=null&&e.aborted!=null&&typeof e.addEventListener=="function"}class je extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxError"}}class A extends Error{constructor(){super(...arguments),this.name="ExtensionUsageError"}}class bt extends Error{constructor(){super(...arguments),this.name="ExtensionAssetFetchError"}}function T(e){return(...t)=>{var _a;try{return e(...t)}catch(r){throw r.name==="ExtensionUsageError"?r:new je((_a=r==null?void 0:r.message)!=null?_a:"Unknown error",{cause:r})}}}function gt({extensionTarget:e,announcementEmitter:t}){if(e!=="purchase.thank-you.announcement.render")return{};_(t);const r={};t.on("announcementClosed",()=>{T(()=>{if(r.close)for(const c of r.close)c()})()});function o(c,a){c==="close"&&(r[c]||(r[c]=new Set),r[c].add(a))}function n(c,a){c==="close"&&r[c]&&r[c].delete(a)}function i(){t.emit("closeAnnouncement")}return{announcement:{close:T(i),addEventListener:T(o),removeEventListener:T(n)}}}const Ne="latn",Fe="-u-nu-".concat(Ne);function Le(e){try{const t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:Ne}).toString()}catch(e2){return yt(e)}}function yt(e){return e.includes("-u-nu-")?e.replace(/-u-nu-[a-z0-9]+/i,Fe):"".concat(e).concat(Fe)}function wt(e,t,r){const o=new Map,n=new Map;function i(u,_a={}){var _b=_a,{inExtensionLocale:s}=_b,f=__objRest(_b,["inExtensionLocale"]);if(f.style==="currency"&&(typeof f.currency!="string"||f.currency.length===0))throw new A('i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"');const p=H(s===true?e.extensionLanguage:e.language),g=Ue(p,f);let b=o.get(g);return b||(b=Et(p,f),o.set(g,b)),b.format(u)}function c(u,_c={}){var _d=_c,{inExtensionLocale:s}=_d,f=__objRest(_d,["inExtensionLocale"]);return i(u,__spreadValues({inExtensionLocale:s,style:"currency",currency:xt(e.currency)},f))}function a(u,_e4={}){var _f=_e4,{inExtensionLocale:s}=_f,f=__objRest(_f,["inExtensionLocale"]);const p=H(s===true?e.extensionLanguage:e.language),g=Ue(p,f);let b=n.get(g);return b||(b=St(p,f),n.set(g,b)),b.format(u)}const h=(u,s={})=>{let f=t[u],p=false;const g=H(e.extensionLanguage);function b(E){if(r==="local")throw new A("translate(): ".concat(E));console.error(new A("translate(): ".concat(E)))}if(typeof s.count=="number"){const E=Pt(g).select(s.count),R="".concat(u,".").concat(E);if(f=t[R],f===void 0){const O=t["".concat(u,".other")];if(E!=="other"&&O!==void 0)f=O,console.warn(new A('translate(): MISSING PLURALIZATION KEY for locale "'.concat(g,'": "').concat(R,'". Using fallback key of "').concat(u,'.other".')));else if(typeof t[u]=="string")p=true,f=t[u];else{const I='MISSING PLURALIZATION KEY for locale "'.concat(g,'": "').concat(R,'"');return b(I),I}}}else if(typeof s.count=="string"&&typeof t[u]=="string")f=t[u];else if(s.count!==void 0){const E='INCORRECT TYPE for options.count. Must be typeof "number".';return b(E),E}if(f===void 0){const E=["".concat(u,".zero"),"".concat(u,".one"),"".concat(u,".two"),"".concat(u,".few"),"".concat(u,".many"),"".concat(u,".other")];let R='MISSING KEY for locale "'.concat(g,'": "').concat(u,'"');for(const O of E)if(t[O]!==void 0){R='MISSING PROPERTY "options.count" for pluralization.',b(R);break}return b(R),R}const l=[],m=/(.*?(?={{|$|\n))(?:{{(.+?(?=}}))}})?/g,d=new Set(Object.keys(s)),y=new Set,S=[];let w=m.exec(f),P=false;for(;w&&!(w.index>=f.length);){const E=w[0],R=w[2],O=R==null?void 0:R.trim(),I=l.length-1;let ye=w[1]||"",We=false;if(O!==void 0)if(d.has(O))typeof s[O]=="string"||typeof s[O]=="number"?ye+=String(s[O]):R!==void 0&&(P=true,We=true),y.add(O);else{const pr='MISSING PLACEHOLDER VALUE for locale "'.concat(g,'": "options.').concat(R,'" is required for "').concat(u,'"');b(pr),l.push(E),w=m.exec(f);continue}typeof l[I]=="string"?l[I]+=ye:l.push(ye),We&&O!==void 0&&l.push(s[O]),w=m.exec(f)}for(const E of d)p===false&&E==="count"||y.has(E)||S.push('"{{'.concat(E,'}}"'));if(S.length>0){const E=S.length===1?"MISSING PLACEHOLDER":"MISSING PLACEHOLDERS";b("".concat(E,' for locale "').concat(g,'": ').concat(S.join(", "),' not found in "').concat(u,'"'))}return P?l:l.join("")};return{formatNumber:T(i),formatCurrency:T(c),formatDate:T(a),translate:T(h)}}function Ue(e,t={}){return"".concat(e,"|").concat(JSON.stringify(t))}function pe(e,t){try{return t(e)}catch(r){const o=Rt(e);
1if(o&&o!==e)return t(o);throw r}}function Et(e,t){return pe(e,r=>new Intl.NumberFormat(Le(r),t))}function St(e,t){return pe(e,r=>new Intl.DateTimeFormat(Le(r),t))}function Pt(e){return pe(e,t=>new Intl.PluralRules(t))}function Rt(e){var _a;return(_a=e.match(/^([a-z]{2,3})(?:[-_].*)?$/i))==null?void 0:_a[1]}function H(e){return"current"in e?e.current.isoCode:e.isoCode}function xt(e){return"current"in e?e.current.isoCode:e.isoCode}function De(e,t,r,o,n){const i=ze(e);let c;t==="purchase.thank-you.announcement.render"&&n&&(c=gt({extensionTarget:t,announcementEmitter:n}));const a=__spreadValues(__spreadProps(__spreadValues({},i),{i18n:wt(i.localization,r,o)}),c||{});return ht(a),a.extensionPoint=t,a.extension.target=t,a}function ze(e){if(Ot(e))return Ct(e);if(typeof e=="object"&&e!=null&&!At(e)){for(const t of Object.keys(e)){const r=e;r[t]=ze(r[t])}return e}return e}function Ot(e){return typeof e=="object"&&e!=null&&"initial"in e&&typeof e.subscribe=="function"}function At(e){return typeof e=="object"&&e!=null&&"current"in e&&typeof e.subscribe=="function"}function Ct(e){const t=lt(e);return Object.defineProperty(t,dt,{value:true}),Object.defineProperty(t,"value",{get(){return t.current}}),t}const Mt=50,kt=1e3;function Tt(e){let t=[];return n=>{t.push(n),t.length===1&&r()};function r(){if(typeof requestIdleCallback=="function"){requestIdleCallback(o,{timeout:kt});return}setTimeout(o,Mt)}function o(){if(t.length===0)return;const n=t;t=[],e(n)}}const $t=new Set(["extend","setSignals"]);function It(e,t,{shouldReport:r,reportedApiPropertyNames:o=new Set}={}){const n=new WeakMap,i=Tt(t);if(!Be(e))return e;return c(e,[]);function c(h,u){const s=n.get(h);if(s)return s;const f=new Proxy(h,{get(p,g){const b=Reflect.get(p,g,p);if(typeof g!="string"||!Object.prototype.hasOwnProperty.call(p,g))return b;const l=[...u,g];return(u.length>0||!$t.has(g))&&a(l.join(".")),Be(b)&&!_t(b)?c(b,l):b}});return n.set(h,f),f}function a(h){r&&!r()||o.has(h)||(o.add(h),i(h))}}function _t(e){return typeof e.subscribe=="function"&&("current"in e||"value"in e)}function Be(e){if(typeof e!="object"||e===null)return false;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function jt(e,t){let r=e;do Object.getOwnPropertyNames(r).filter(o=>o in t&&t[o]!==false).forEach(o=>{try{const n=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(r,o,{value:t[o]===true?void 0:t[o],configurable:true,enumerable:n==null?void 0:n.enumerable,writable:false})}catch(e2){}}),r=Object.getPrototypeOf(r);while(r!==Object.prototype)}function Nt(e,t){jt(e,t)}const Ft="sandbox-js-eval-2023-04",Lt=/^\/api\/.+\/graphql\.json$/,Ut=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function Dt(e,t,r){const o=new URL(e),n=new URL(t),i=new URL("https://".concat(r)),c=Lt.test(o.pathname)&&(o.host===n.host||o.host===i.host);return Ut.test(o.pathname)||c}function zt(){return __async(this,null,function*(){throw new A('permission to access the storefront API must be specified under [capabilities] with flag "api_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access')})}function me(){return __async(this,null,function*(){throw new A('permission to use fetch() must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')})}function Bt(){throw new A('permission to use WebSocket must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')}const Ht={XMLHttpRequestUpload:true,XMLHttpRequestEventTarget:true,XMLHttpRequest:true,BackgroundFetchManager:true,BackgroundFetchRecord:true,BackgroundFetchRegistration:true,BackgroundFetchEvent:true,BackgroundFetchUpdateUIEvent:true,Cache:true,CacheStorage:true,caches:true,fetch:me,Request:true,Response:true,Headers:true,Worker:true,SharedWorker:true,WebSocket:Bt,EventSource:true,PaymentMethodChangeEvent:true,PaymentRequest:true,PaymentRequestUpdateEvent:true,PaymentResponse:true,PushEvent:true,PushManager:true,PushMessageData:true,PushSubscription:true,PushSubscriptionOptions:true,ServiceWorkerRegistration:true,importScripts:true},be=Je(self,{callable:[]});self.addEventListener("message",({data:e})=>{e!=null&&e.__replace instanceof MessagePort&&(be.replace(e.__replace),e.__replace.start())}),Object.defineProperty(self,"endpoint",{value:be,enumerable:false,writable:false,configurable:true});function qt(){const e=be;return e.callable("reload"),e.callable("apiFetch"),e.callable("extensionPerformanceMarkStarted"),e.callable("extensionPerformanceMarkFinished"),e.callable("reportSandboxError"),e.callable("reportApiRead"),e}function He(e){if(typeof e=="function"||e instanceof AbortSignal)return;if(typeof e!="object"||e==null)return e;const t={};for(const r in e)t[r]=He(e[r]);return t}
1const Kt=Request,Yt=Response,Gt=[101,103,204,205,304];function Wt(_0){return __async(this,arguments,function*(e,t={}){const{port1:r,port2:o}=new MessageChannel;try{const n=new Kt(e,t);if(new URL(n.url).origin===self.origin)throw Error("Fetches to the iframe's origin are not allowed.");n.signal.throwIfAborted(),n.signal.addEventListener("abort",()=>{r.postMessage({action:"abort",reason:n.signal.reason})});const i=n.url,c={method:n.method,headers:[...n.headers],mode:n.mode,credentials:n.credentials,cache:n.cache,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,keepalive:n.keepalive},a=[o];n.method!=="GET"&&n.method!=="HEAD"&&(c.body=yield n.arrayBuffer(),a.push(c.body));const h={action:"fetch",url:i,requestInit:c,returnPort:o};return self.postMessage(h,a),new Promise((u,s)=>{r.addEventListener("message",f=>{if(f.data){if(f.data.error)s(f.data.error),r.close();else if(f.data.response){const{status:p}=f.data.response.init,g=Gt.includes(p)?null:f.data.response.body;u(new Yt(g,f.data.response.init)),r.close()}}}),r.start()})}catch(n){return r==null?void 0:r.close(),Promise.reject(n)}})}const Xt=Date.now();function Jt(){return Zt(performance.now())}function Zt(e){return typeof(performance==null?void 0:performance.timeOrigin)=="number"?e+performance.timeOrigin:e+Xt}function Q(){return{startTime:Jt(),timestamp:Date.now()}}function vt(e){return{extensionPerformanceMarkStarted:(t,r={})=>{e.call.extensionPerformanceMarkStarted(t,__spreadValues(__spreadValues({},Q()),r))},extensionPerformanceMarkFinished:(t,r={})=>{e.call.extensionPerformanceMarkFinished(t,__spreadValues(__spreadValues({},Q()),r))}}}class Qt{constructor(){__privateAdd(this,_e2,new Set)}throwDetachedOnce(t,r){const o=(()=>{try{return String(r)}catch(e){return"unknown error"}})();try{if(__privateGet(this,_e2).has(t))return;const n=new je("[extension-tts] ".concat(t," ExtensionSandboxError: ").concat(o),{cause:r});setTimeout(()=>{throw n},0),__privateGet(this,_e2).add(t)}catch(e){}}reset(){__privateGet(this,_e2).clear()}}_e2=new WeakMap;const ge=new Qt;class Vt{constructor(){__privateAdd(this,_e3,new Map)}registerCapture(t,r){const o=__privateGet(this,_e3).get(t);o&&o!==r&&this.discardCapture(t,o),__privateGet(this,_e3).set(t,r)}discardCapture(t,r){try{if(__privateGet(this,_e3).get(t)!==r)return;try{r.silence()}finally{__privateGet(this,_e3).delete(t)}}catch(o){ge.throwDetachedOnce("bridge-discard-capture",o)}}liveCaptureCount(){return __privateGet(this,_e3).size}isSoleCapture(t){return __privateGet(this,_e3).size===1&&__privateGet(this,_e3).has(t)}notifyFetchStarted(){const t=[...__privateGet(this,_e3).values()];try{for(const r of t)r.fetchStarted()}catch(r){ge.throwDetachedOnce("bridge-notify-fetch-started",r)}return()=>{try{for(const r of t)r.fetchResolved()}catch(r){ge.throwDetachedOnce("bridge-resolve-fetch",r)}}}reset(){__privateGet(this,_e3).clear()}}_e3=new WeakMap;const er=new Vt,tr=Request,rr=Response,nr=e=>t=>__async(null,null,function*(){const r=yield e.call.apiFetch(t);return sr(r)});let qe;function or(e){qe=nr(e)}function sr(_a){var _b=_a,{body:e}=_b,t=__objRest(_b,["body"]);return new rr(e,t)}function ir({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:o,metrics:n,extensionId:i,instanceId:c,capture:a}){const h=Wt;return function(s,f){return __async(this,null,function*(){var _a,_b;let p,g,b="external";const l=performance.now(),{startTime:m}=Q();let d;a?(a.fetchStarted(true),d=()=>a.fetchResolved()):d=er.notifyFetchStarted();try{if(!e&&!t)throw yield me();let y;try{y=new tr(s,f)}catch(w){throw new A("Invalid request: ".concat(w))}if(Dt(y.url,r,o)){if(b="storefront",!t)return yield zt();const w=yield y.text(),P=yield qe(__spreadProps(__spreadValues({},He(y)),{headers:y.headers?Array.from(y.headers.entries()):[],body:w}));return"status"in P&&typeof P.status=="number"&&(g=P.status),P}if(b="external",e){const w=yield h(s,f);return"status"in w&&typeof w.status=="number"&&(g=w.status),w}return yield me()}catch(y){throw y instanceof Error&&y.name==="ExtensionUsageError"?p="ExtensionUsageError":p="unknown",y}finally{d();let y="unknown",S="unknown";try{const R=typeof s=="string"?s:s.url;S=R,y=new URL(R).origin}catch(e2){}const P=((_b=(_a=f==null?void 0:f.method)!=null?_a:typeof s=="string"?void 0:s.method)!=null?_b:"GET").toUpperCase(),E=performance.now()-l;n.extensionPerformanceMarkFinished("extension-fetch-call",{type:"extension-fetch",startTime:m,duration:E,errorType:p,destination:b,httpStatus:g,httpMethod:P,origin:y,requestUrl:S,extensionId:i,instanceId:c})}})}}const V=new Map;function cr(e){const t=Object.freeze({extend(r,o){V.set(r,o)},reload(){e.call.reload()}});Reflect.defineProperty(self,"shopify",{value:t,configurable:false,enumerable:true,writable:false})}function ar(e){return Array.isArray(e)?e.find(t=>V.has(t)):V.has(e)?e:void 0}const ur=Q(),q=qt();cr(q),or(q);const F=vt(q);let Ke=new Set;function fr({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:o}){Ke=new Set,F.extensionPerformanceMarkFinished(Ft,ur);const n=__spreadProps(__spreadValues({},Ht),{fetch:ir({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:o,metrics:F})}),i=e||t?__spreadProps(__spreadValues({},n),{Request:false,Response:false,Headers:false}):n;Nt(self,i)}function lr(e){return __async(this,null,function*(){try{F.extensionPerformanceMarkStarted("partner-js-eval"),eval==null?void 0:(0,eval)("".concat(e.scriptBody,"\n//# sourceURL=").concat(e.scriptUrl)),F.extensionPerformanceMarkFinished("partner-js-eval")}catch(t){throw(t==null?void 0:t.name)==="NetworkError"?new bt(String(t),{cause:t}):(t==null?void 0:t.name)==="ExtensionUsageError"||(t==null?void 0:t.name)==="ExtensionSandboxError"?t:new A(String(t),{cause:t})}})}function dr(e,t,r,o,n,i,c){return __async(this,null,function*(){_(t),_(o);const a=ar(e),h=De(o,a,n,i),u=ot(t,{components:r}),s=yield Ge(a,c,u,Ye(h));return u.mount(),{output:s,teardown:()=>__async(null,null,function*(){})}})}function hr(e,t,...r){return __async(this,null,function*(){return _(r),{output:yield Ge(e,t,...r.map((...n)=>Ye(De(...n)))),teardown:()=>__async(null,null,function*(){})}})}function Ye(e){return It(e,t=>{q.call.reportApiRead(t)},{reportedApiPropertyNames:Ke})}function Ge(e,t,...r){return __async(this,null,function*(){var _a;F.extensionPerformanceMarkStarted("partner-js-exec",{instanceId:t});try{let o=(_a=V.get(e))==null?void 0:_a(...r);return typeof o=="object"&&o!=null&&"then"in o&&(o=yield o),o}catch(o){throw(o==null?void 0:o.name)==="ExtensionUsageError"||(o==null?void 0:o.name)==="ExtensionSandboxError"?o:new A(String(o),{cause:o})}finally{F.extensionPerformanceMarkFinished("partner-js-exec",{instanceId:t})}})}q.expose({sandbox:fr,load:lr,render:dr,run:hr})})();
2
3//SANDBOX_EOF

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.