@haus-storefront-react/vendure-plugin-configs 1.0.0-next.0 → 1.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,87 @@
1
+ ## 1.0.0-next.9 (2026-02-05)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated core to 1.0.0-next.9
6
+ - Updated common/utils to 1.0.0-next.9
7
+ - Updated shared/types to 1.0.0-next.9
8
+
9
+ ## 1.0.0-next.8 (2026-02-05)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated core to 1.0.0-next.8
14
+ - Updated common/utils to 1.0.0-next.8
15
+ - Updated shared/types to 1.0.0-next.8
16
+
17
+ ## 1.0.0-next.7 (2026-01-27)
18
+
19
+ ### 🧱 Updated Dependencies
20
+
21
+ - Updated core to 1.0.0-next.7
22
+ - Updated common/utils to 1.0.0-next.7
23
+ - Updated shared/types to 1.0.0-next.7
24
+
25
+ ## 1.0.0-next.6 (2026-01-23)
26
+
27
+ ### 🧱 Updated Dependencies
28
+
29
+ - Updated core to 1.0.0-next.6
30
+ - Updated common/utils to 1.0.0-next.6
31
+ - Updated shared/types to 1.0.0-next.6
32
+
33
+ ## 1.0.0-next.5 (2026-01-22)
34
+
35
+ ### 🧱 Updated Dependencies
36
+
37
+ - Updated core to 1.0.0-next.5
38
+ - Updated common/utils to 1.0.0-next.5
39
+ - Updated shared/types to 1.0.0-next.5
40
+
41
+ ## 1.0.0-next.4 (2026-01-22)
42
+
43
+ ### 🧱 Updated Dependencies
44
+
45
+ - Updated core to 1.0.0-next.4
46
+ - Updated common/utils to 1.0.0-next.4
47
+ - Updated shared/types to 1.0.0-next.4
48
+
49
+ ## 1.0.0-next.3 (2026-01-14)
50
+
51
+ ### 🧱 Updated Dependencies
52
+
53
+ - Updated core to 1.0.0-next.3
54
+ - Updated common/utils to 1.0.0-next.3
55
+ - Updated shared/types to 1.0.0-next.3
56
+
57
+ ## 1.0.0-next.2 (2025-12-30)
58
+
59
+ ### 🧱 Updated Dependencies
60
+
61
+ - Updated core to 1.0.0-next.2
62
+ - Updated common/utils to 1.0.0-next.2
63
+ - Updated shared/types to 1.0.0-next.2
64
+
65
+ ## 1.0.0-next.1 (2025-12-30)
66
+
67
+ ### 🧱 Updated Dependencies
68
+
69
+ - Updated core to 1.0.0-next.1
70
+ - Updated common/utils to 1.0.0-next.1
71
+ - Updated shared/types to 1.0.0-next.1
72
+
73
+ ## 1.0.0-next.0 (2025-12-30)
74
+
75
+ ### 🚀 Features
76
+
77
+ - introduce providers library and enhance vendure integration
78
+
79
+ ### 🧱 Updated Dependencies
80
+
81
+ - Updated core to 1.0.0-next.0
82
+ - Updated common/utils to 1.0.0-next.0
83
+ - Updated shared/types to 1.0.0-next.0
84
+
1
85
  ## 0.0.52-4 (2025-12-15)
2
86
 
3
87
  ### 🧱 Updated Dependencies
package/badge.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("./index-CR_HNPF-.js"),S=require("./index-Dg7Cnz9b.js"),se=require("react"),ze=require("@tanstack/react-query");function pr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const O=pr(se),H=new ke.VendurePluginConfig({name:"badges",enableFeatures:{showBadges:({badges:t=[],parentComponent:e})=>{const r=e?H.getSettings().availablePositions[e]:H.getSettings().defaultPositions;return{badges:ke.lodashExports.filter(t,o=>r?r.includes(o.position):!0),availablePositions:r}}},queryUpdates:{},settings:{defaultPositions:["top-left","top-right","bottom-left","bottom-right"],availablePositions:{productListItem:["top-left","top-right","bottom-left","bottom-right"],productDetail:["top-left","top-right","bottom-left","bottom-right"],imageCarousel:["top-left","top-right","bottom-left","bottom-right"]}}});H.setQueryUpdates({product:{fields:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},search:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},products:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},briefProducts:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]}});H.setRequests({getBadges:async()=>H.getSdk().createRequest({operation:"badges",fields:["totalItems",{items:["id","createdAt","updatedAt","collectionId","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},{options:{take:100}},!1).then(t=>t.data).catch(t=>({message:t.message,errorCode:t.code||"unknown"}))});function hr(t){const e=[];function r(o,s){const i=O.createContext(s),a=e.length;e.push(i);const c=l=>{const d=S.compilerRuntimeExports.c(8);let m,g,p;d[0]!==l?({scope:p,children:m,...g}=l,d[0]=l,d[1]=m,d[2]=g,d[3]=p):(m=d[1],g=d[2],p=d[3]);const y=p?.[t]?.[a]||i,h=g;let w;return d[4]!==y.Provider||d[5]!==m||d[6]!==h?(w=S.jsxRuntimeExports.jsx(y.Provider,{value:h,children:m}),d[4]=y.Provider,d[5]=m,d[6]=h,d[7]=w):w=d[7],w};c.displayName=o+"Provider";function u(l,d){const m=d?.[t]?.[a]||i,g=O.useContext(m);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${l}\` must be used within \`${o}\``)}return[c,u]}function n(){const o=e.map(s=>O.createContext(s));return function(i){const a=i?.[t]||o;return O.useMemo(()=>({[`__scope${t}`]:{...i,[t]:a}}),[i,a])}}return n.scopeName=t,[r,n]}function mr(t,e){if(e==="web")return t;const{src:r,alt:n,width:o,height:s,...i}=t,a=[typeof o=="number"?{width:o}:void 0,typeof s=="number"?{height:s}:void 0].filter(Boolean);let c;return a.length===1?c=a[0]:a.length>1&&(c=a),{...i,source:{uri:r},...c?{style:c}:{}}}function yr(t){const{src:e,alt:r,...n}=t;return e?{...n,source:{uri:e}}:n}const gr={div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",button:"Pressable",input:"TextInput",form:"View",section:"View",article:"View",nav:"View",header:"View",footer:"View",main:"View",aside:"View",ul:"View",ol:"View",li:"View",a:"Pressable",img:"Image",label:"Text",textarea:"TextInput",select:"Pressable",option:"Text"};function br(t,e){if(e==="web")return t;let r=null;try{r=require("react-native")}catch{r=null}if(!r)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${t}'`),"div";const n=gr[t];if(!n)return console.warn(`No native component mapping found for '${t}', falling back to View`),r.View;if(n==="Image"){const s=se.forwardRef((i,a)=>{const c=S.compilerRuntimeExports.c(5);if(!i.src)return null;let u;c[0]!==i?(u=yr(i),c[0]=i,c[1]=u):u=c[1];let l;return c[2]!==a||c[3]!==u?(l=S.jsxRuntimeExports.jsx(r.Image,{ref:a,...u}),c[2]=a,c[3]=u,c[4]=l):l=c[4],l});return s.displayName="PlatformPrimitiveImage",s}const o=r[n];return o||(console.warn(`Native component '${n}' not found, falling back to View`),r.View)}const wr=Symbol("radix.slottable");function Ar(...t){return e=>t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}function Sr(t,e){const r={...e};for(const n in e){const o=t[n],s=e[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]=Er(o,s):n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...t,...r}}function Er(t,e){let r=null;try{r=require("react-native")}catch{r=null}const n=r?.StyleSheet?.flatten;if(typeof t=="function"&&typeof e=="function")return s=>{const i=[t(s),e(s)];return n?n(i):i};if(typeof t=="function")return s=>{const i=e?[t(s),e]:t(s);return n?n(i):i};if(typeof e=="function")return s=>{const i=t?[t,e(s)]:e(s);return n?n(i):i};const o=[t,e].filter(Boolean);return n?n(o):o}function Or(t){return O.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===wr}function vr(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Tr(t,e){const r=O.forwardRef((n,o)=>{const{children:s,...i}=n;if(O.isValidElement(s)){const a=vr(s),c=Sr(i,s.props);return s.type!==O.Fragment&&(c.ref=o?Ar(o,a):a),O.cloneElement(s,c)}return O.Children.count(s)>1?O.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}function Re(t,e=!1,r="div"){if(!e)return br(r,t);const n=Tr("Slot"),o=O.forwardRef((s,i)=>{const a=S.compilerRuntimeExports.c(15);let c,u;a[0]!==s?({children:c,...u}=s,a[0]=s,a[1]=c,a[2]=u):(c=a[1],u=a[2]);let l;if(a[3]!==c||a[4]!==i||a[5]!==u){l=Symbol.for("react.early_return_sentinel");e:{const m=O.Children.toArray(c),g=m.find(Or);if(g){const p=g.props.children,y=m.map(T=>T===g?O.Children.count(p)>1?O.Children.only(null):O.isValidElement(p)?p.props.children:null:T),h=O.isValidElement(p)?O.cloneElement(p,void 0,y):null;let w;a[7]!==i||a[8]!==u||a[9]!==h?(w=S.jsxRuntimeExports.jsx(n,{...u,ref:i,children:h}),a[7]=i,a[8]=u,a[9]=h,a[10]=w):w=a[10],l=w;break e}}a[3]=c,a[4]=i,a[5]=u,a[6]=l}else l=a[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let d;return a[11]!==c||a[12]!==i||a[13]!==u?(d=S.jsxRuntimeExports.jsx(n,{...u,ref:i,children:c}),a[11]=c,a[12]=i,a[13]=u,a[14]=d):d=a[14],d});return o.displayName="Slot",o}const Rr="debug",N=()=>{try{if(typeof window>"u"||typeof localStorage>"u")return!1;const t=localStorage.getItem(Rr);return t==="true"||t==="1"}catch{return!1}},xr=()=>{const t=(e,r,n=[])=>r?typeof e=="string"?[`<${r}> ${e}`,...n]:[`<${r}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(e,r,...n)=>{N()&&console.log(...t(e,r,n))},info:(e,r,...n)=>{N()&&console.info(...t(e,r,n))},warn:(e,r,...n)=>{N()&&console.warn(...t(e,r,n))},error:(e,r,...n)=>{N()&&console.error(...t(e,r,n))},debug:(e,r,...n)=>{N()&&console.debug(...t(e,r,n))},group:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.group(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupCollapsed:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.groupCollapsed(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupEnd:()=>{N()&&console.groupEnd()},table:(e,r,n)=>{N()&&(r&&console.log(`<${r}>`),console.table(e,n))},time:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.time(r?n?`<${r}> ${n}`:`<${r}>`:n)}},timeEnd:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.timeEnd(r?n?`<${r}> ${n}`:`<${r}>`:n)}}}},_r=xr();function Cr(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}let Y;try{Y=require("@react-native-async-storage/async-storage").default}catch{Y=null}let He=null;try{const{AsyncLocalStorage:t}=require("node:async_hooks");He=new t}catch{He=null}const K=typeof window<"u"&&typeof window.localStorage<"u",z=!!Y,me={},Fe={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}},Ie=()=>{try{return He?.getStore?.()??null}catch{return null}},Me={getItem:async t=>{const e=!K&&!z?Ie():null;return e?e.getItem(t):z?Y.getItem(t):K?new Promise(r=>{Promise.resolve().then(()=>{const n=window.localStorage.getItem(t),o=me[t];n!==o&&(me[t]=n||""),r(n)})}):Fe.getItem(t)},setItem:async(t,e)=>{const r=!K&&!z?Ie():null;return r?r.setItem(t,e):z?Y.setItem(t,e):K?new Promise((n,o)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(t,e);const s=window.localStorage.getItem(t);s===e?(me[t]=e,n()):o(new Error(`Failed to set localStorage item: expected "${e}", got "${s}"`))}catch(s){o(s)}})}):Fe.setItem(t,e)},removeItem:async t=>{const e=!K&&!z?Ie():null;return e?e.removeItem(t):z?Y.removeItem(t):K?new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(t);const o=window.localStorage.getItem(t);o===null?(delete me[t],r()):n(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${o}"`))}catch(o){n(o)}})}):Fe.removeItem(t)}},it=50,M={get:async()=>{try{const t=await Me.getItem("eventHistory");return t?JSON.parse(t):[]}catch(t){return console.error("Error getting event history",t),[]}},set:async t=>{try{await Me.setItem("eventHistory",JSON.stringify(t.slice(-it)))}catch(e){console.error("Error setting event history",e)}},clear:async()=>{try{await Me.removeItem("eventHistory")}catch(t){console.error("Error clearing event history",t)}},push:async t=>{const e=await M.get();await M.set([{...t,timestamp:Date.now()},...e].slice(-it))},find:async t=>(await M.get()).find(r=>r.key===t.key&&r.identifier===t.identifier),filter:async(t,e)=>{const r=await M.get();return e?r.filter(e):r.filter(({key:n,identifier:o})=>(!n||t.key===n)&&(!o||t.identifier===o))}};function Pr(){const t=globalThis;return t.__HAUS_EVENT_EMITTER__||=Cr(),t.__HAUS_EVENT_EMITTER__}function Q(t){const e=Pr(),r=((...c)=>console.error(...c));M.get().then(c=>{const l=ke.lodashExports.first(c)?.timestamp;l&&l<Date.now()-1e3*60*60&&(_r.info("Clearing event history since it is older than 1 hour:","eventBus",l),M.clear())});const n=(c,u,l)=>{const d=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:g,data:p}=m;(!g||g===l)&&u(p)}else u(m)}catch(g){r(g)}};return e.on(c,d),()=>{o(c,u,l)}},o=(c,u,l)=>{const d=m=>{if(typeof m=="object"&&m!==null){const{identifier:g}=m;(!g||g===l)&&e.off(c,u)}};e.off(c,d)};return{on:n,off:o,once:(c,u,l)=>{const d=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:g,data:p}=m;(!g||g===l)&&u(p)}else u(m)}finally{o(c,d,l)}};e.on(c,d)},emit:(c,u,...l)=>{const d={identifier:u,data:l.length===1?l[0]:l};M.push({key:c,identifier:u,payload:d.data}),e.emit(c,d)},getEventHistory:(c,u)=>M.filter({key:c,identifier:u})}}Q();Q();Q();Q();Q();Q();Q();const Nr=globalThis.__STORE_SDK_CONTEXT__||=se.createContext(void 0);function Bt(t,e){return function(){return t.apply(e,arguments)}}const{toString:qr}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:xe,toStringTag:Ft}=Symbol,_e=(t=>e=>{const r=qr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),D=t=>(t=t.toLowerCase(),e=>_e(e)===t),Ce=t=>e=>typeof e===t,{isArray:ee}=Array,Z=Ce("undefined");function ie(t){return t!==null&&!Z(t)&&t.constructor!==null&&!Z(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const It=D("ArrayBuffer");function Dr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&It(t.buffer),e}const jr=Ce("string"),x=Ce("function"),Mt=Ce("number"),ae=t=>t!==null&&typeof t=="object",Br=t=>t===!0||t===!1,Ee=t=>{if(_e(t)!=="object")return!1;const e=Je(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ft in t)&&!(xe in t)},Fr=t=>{if(!ae(t)||ie(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Ir=D("Date"),Mr=D("File"),Ur=D("Blob"),Lr=D("FileList"),$r=t=>ae(t)&&x(t.pipe),kr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((e=_e(t))==="formdata"||e==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},Hr=D("URLSearchParams"),[Vr,Qr,Wr,Kr]=["ReadableStream","Request","Response","Headers"].map(D),zr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),ee(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(ie(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(n=0;n<i;n++)a=s[n],e.call(null,t[a],a,t)}}function Ut(t,e){if(ie(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lt=t=>!Z(t)&&t!==$;function Ve(){const{caseless:t,skipUndefined:e}=Lt(this)&&this||{},r={},n=(o,s)=>{const i=t&&Ut(r,s)||s;Ee(r[i])&&Ee(o)?r[i]=Ve(r[i],o):Ee(o)?r[i]=Ve({},o):ee(o)?r[i]=o.slice():(!e||!Z(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ce(arguments[o],n);return r}const Jr=(t,e,r,{allOwnKeys:n}={})=>(ce(e,(o,s)=>{r&&x(o)?t[s]=Bt(o,r):t[s]=o},{allOwnKeys:n}),t),Gr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Xr=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Yr=(t,e,r,n)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!n||n(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=r!==!1&&Je(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Zr=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},en=t=>{if(!t)return null;if(ee(t))return t;let e=t.length;if(!Mt(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},tn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Je(Uint8Array)),rn=(t,e)=>{const n=(t&&t[xe]).call(t);let o;for(;(o=n.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},nn=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},on=D("HTMLFormElement"),sn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),at=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),an=D("RegExp"),$t=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ce(r,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(n[s]=i||o)}),Object.defineProperties(t,n)},cn=t=>{$t(t,(e,r)=>{if(x(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(x(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},un=(t,e)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ee(t)?n(t):n(String(t).split(e)),r},ln=()=>{},fn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dn(t){return!!(t&&x(t.append)&&t[Ft]==="FormData"&&t[xe])}const pn=t=>{const e=new Array(10),r=(n,o)=>{if(ae(n)){if(e.indexOf(n)>=0)return;if(ie(n))return n;if(!("toJSON"in n)){e[o]=n;const s=ee(n)?[]:{};return ce(n,(i,a)=>{const c=r(i,o+1);!Z(c)&&(s[a]=c)}),e[o]=void 0,s}}return n};return r(t,0)},hn=D("AsyncFunction"),mn=t=>t&&(ae(t)||x(t))&&x(t.then)&&x(t.catch),kt=((t,e)=>t?setImmediate:e?((r,n)=>($.addEventListener("message",({source:o,data:s})=>{o===$&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),$.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",x($.postMessage)),yn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||kt,gn=t=>t!=null&&x(t[xe]),f={isArray:ee,isArrayBuffer:It,isBuffer:ie,isFormData:kr,isArrayBufferView:Dr,isString:jr,isNumber:Mt,isBoolean:Br,isObject:ae,isPlainObject:Ee,isEmptyObject:Fr,isReadableStream:Vr,isRequest:Qr,isResponse:Wr,isHeaders:Kr,isUndefined:Z,isDate:Ir,isFile:Mr,isBlob:Ur,isRegExp:an,isFunction:x,isStream:$r,isURLSearchParams:Hr,isTypedArray:tn,isFileList:Lr,forEach:ce,merge:Ve,extend:Jr,trim:zr,stripBOM:Gr,inherits:Xr,toFlatObject:Yr,kindOf:_e,kindOfTest:D,endsWith:Zr,toArray:en,forEachEntry:rn,matchAll:nn,isHTMLForm:on,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:$t,freezeMethods:cn,toObjectSet:un,toCamelCase:sn,noop:ln,toFiniteNumber:fn,findKey:Ut,global:$,isContextDefined:Lt,isSpecCompliantForm:dn,toJSONObject:pn,isAsyncFn:hn,isThenable:mn,setImmediate:kt,asap:yn,isIterable:gn};function b(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}f.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const Ht=b.prototype,Vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Vt[t]={value:t}});Object.defineProperties(b,Vt);Object.defineProperty(Ht,"isAxiosError",{value:!0});b.from=(t,e,r,n,o,s)=>{const i=Object.create(Ht);f.toFlatObject(t,i,function(l){return l!==Error.prototype},u=>u!=="isAxiosError");const a=t&&t.message?t.message:"Error",c=e==null&&t?t.code:e;return b.call(i,a,c,r,n,o),t&&i.cause==null&&Object.defineProperty(i,"cause",{value:t,configurable:!0}),i.name=t&&t.name||"Error",s&&Object.assign(i,s),i};const bn=null;function Qe(t){return f.isPlainObject(t)||f.isArray(t)}function Qt(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function ct(t,e,r){return t?t.concat(e).map(function(o,s){return o=Qt(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function wn(t){return f.isArray(t)&&!t.some(Qe)}const An=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Pe(t,e,r){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=f.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!f.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||l,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(f.isBoolean(p))return p.toString();if(!c&&f.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(f.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&wn(p)||(f.isFileList(p)||f.endsWith(y,"[]"))&&(w=f.toArray(p)))return y=Qt(y),w.forEach(function(E,R){!(f.isUndefined(E)||E===null)&&e.append(i===!0?ct([y],R,s):i===null?y:y+"[]",u(E))}),!1}return Qe(p)?!0:(e.append(ct(h,y,s),u(p)),!1)}const d=[],m=Object.assign(An,{defaultVisitor:l,convertValue:u,isVisitable:Qe});function g(p,y){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),f.forEach(p,function(w,T){(!(f.isUndefined(w)||w===null)&&o.call(e,w,f.isString(T)?T.trim():T,y,m))===!0&&g(w,y?y.concat(T):[T])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ut(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ge(t,e){this._pairs=[],t&&Pe(t,this,e)}const Wt=Ge.prototype;Wt.append=function(e,r){this._pairs.push([e,r])};Wt.toString=function(e){const r=e?function(n){return e.call(this,n,ut)}:ut;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Sn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kt(t,e,r){if(!e)return t;const n=r&&r.encode||Sn;f.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(e,r):s=f.isURLSearchParams(e)?e.toString():new Ge(e,r).toString(n),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class lt{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(n){n!==null&&e(n)})}}const zt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},En=typeof URLSearchParams<"u"?URLSearchParams:Ge,On=typeof FormData<"u"?FormData:null,vn=typeof Blob<"u"?Blob:null,Tn={isBrowser:!0,classes:{URLSearchParams:En,FormData:On,Blob:vn},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",We=typeof navigator=="object"&&navigator||void 0,Rn=Xe&&(!We||["ReactNative","NativeScript","NS"].indexOf(We.product)<0),xn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_n=Xe&&window.location.href||"http://localhost",Cn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:Rn,hasStandardBrowserWebWorkerEnv:xn,navigator:We,origin:_n},Symbol.toStringTag,{value:"Module"})),v={...Cn,...Tn};function Pn(t,e){return Pe(t,new v.classes.URLSearchParams,{visitor:function(r,n,o,s){return v.isNode&&f.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Nn(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function qn(t){const e={},r=Object.keys(t);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function Jt(t){function e(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=r.length;return i=!i&&f.isArray(o)?o.length:i,c?(f.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!f.isObject(o[i]))&&(o[i]=[]),e(r,n,o[i],s)&&f.isArray(o[i])&&(o[i]=qn(o[i])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const r={};return f.forEachEntry(t,(n,o)=>{e(Nn(n),o,r,0)}),r}return null}function Dn(t,e,r){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const ue={transitional:zt,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=f.isObject(e);if(s&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return o?JSON.stringify(Jt(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Pn(e,this.formSerializer).toString();if((a=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pe(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Dn(e)):e}],transformResponse:[function(e){const r=this.transitional||ue.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],t=>{ue.headers[t]={}});const jn=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bn=t=>{const e={};let r,n,o;return t&&t.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("./index-DyozVKP3.js"),S=require("./index-D3BqdJYU.js"),se=require("react"),ze=require("@tanstack/react-query");function pr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const O=pr(se),H=new ke.VendurePluginConfig({name:"badges",enableFeatures:{showBadges:({badges:t=[],parentComponent:e})=>{const r=e?H.getSettings().availablePositions[e]:H.getSettings().defaultPositions;return{badges:ke.lodashExports.filter(t,o=>r?r.includes(o.position):!0),availablePositions:r}}},queryUpdates:{},settings:{defaultPositions:["top-left","top-right","bottom-left","bottom-right"],availablePositions:{productListItem:["top-left","top-right","bottom-left","bottom-right"],productDetail:["top-left","top-right","bottom-left","bottom-right"],imageCarousel:["top-left","top-right","bottom-left","bottom-right"]}}});H.setQueryUpdates({product:{fields:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},search:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},products:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},briefProducts:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]}});H.setRequests({getBadges:async()=>H.getSdk().createRequest({operation:"badges",fields:["totalItems",{items:["id","createdAt","updatedAt","collectionId","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},{options:{take:100}},!1).then(t=>t.data).catch(t=>({message:t.message,errorCode:t.code||"unknown"}))});function hr(t){const e=[];function r(o,s){const i=O.createContext(s),a=e.length;e.push(i);const c=l=>{const d=S.compilerRuntimeExports.c(8);let m,g,p;d[0]!==l?({scope:p,children:m,...g}=l,d[0]=l,d[1]=m,d[2]=g,d[3]=p):(m=d[1],g=d[2],p=d[3]);const y=p?.[t]?.[a]||i,h=g;let w;return d[4]!==y.Provider||d[5]!==m||d[6]!==h?(w=S.jsxRuntimeExports.jsx(y.Provider,{value:h,children:m}),d[4]=y.Provider,d[5]=m,d[6]=h,d[7]=w):w=d[7],w};c.displayName=o+"Provider";function u(l,d){const m=d?.[t]?.[a]||i,g=O.useContext(m);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${l}\` must be used within \`${o}\``)}return[c,u]}function n(){const o=e.map(s=>O.createContext(s));return function(i){const a=i?.[t]||o;return O.useMemo(()=>({[`__scope${t}`]:{...i,[t]:a}}),[i,a])}}return n.scopeName=t,[r,n]}function mr(t,e){if(e==="web")return t;const{src:r,alt:n,width:o,height:s,...i}=t,a=[typeof o=="number"?{width:o}:void 0,typeof s=="number"?{height:s}:void 0].filter(Boolean);let c;return a.length===1?c=a[0]:a.length>1&&(c=a),{...i,source:{uri:r},...c?{style:c}:{}}}function yr(t){const{src:e,alt:r,...n}=t;return e?{...n,source:{uri:e}}:n}const gr={div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",button:"Pressable",input:"TextInput",form:"View",section:"View",article:"View",nav:"View",header:"View",footer:"View",main:"View",aside:"View",ul:"View",ol:"View",li:"View",a:"Pressable",img:"Image",label:"Text",textarea:"TextInput",select:"Pressable",option:"Text"};function br(t,e){if(e==="web")return t;let r=null;try{r=require("react-native")}catch{r=null}if(!r)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${t}'`),"div";const n=gr[t];if(!n)return console.warn(`No native component mapping found for '${t}', falling back to View`),r.View;if(n==="Image"){const s=se.forwardRef((i,a)=>{const c=S.compilerRuntimeExports.c(5);if(!i.src)return null;let u;c[0]!==i?(u=yr(i),c[0]=i,c[1]=u):u=c[1];let l;return c[2]!==a||c[3]!==u?(l=S.jsxRuntimeExports.jsx(r.Image,{ref:a,...u}),c[2]=a,c[3]=u,c[4]=l):l=c[4],l});return s.displayName="PlatformPrimitiveImage",s}const o=r[n];return o||(console.warn(`Native component '${n}' not found, falling back to View`),r.View)}const wr=Symbol("radix.slottable");function Ar(...t){return e=>t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}function Sr(t,e){const r={...e};for(const n in e){const o=t[n],s=e[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]=Er(o,s):n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...t,...r}}function Er(t,e){let r=null;try{r=require("react-native")}catch{r=null}const n=r?.StyleSheet?.flatten;if(typeof t=="function"&&typeof e=="function")return s=>{const i=[t(s),e(s)];return n?n(i):i};if(typeof t=="function")return s=>{const i=e?[t(s),e]:t(s);return n?n(i):i};if(typeof e=="function")return s=>{const i=t?[t,e(s)]:e(s);return n?n(i):i};const o=[t,e].filter(Boolean);return n?n(o):o}function Or(t){return O.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===wr}function vr(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Tr(t,e){const r=O.forwardRef((n,o)=>{const{children:s,...i}=n;if(O.isValidElement(s)){const a=vr(s),c=Sr(i,s.props);return s.type!==O.Fragment&&(c.ref=o?Ar(o,a):a),O.cloneElement(s,c)}return O.Children.count(s)>1?O.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}function Re(t,e=!1,r="div"){if(!e)return br(r,t);const n=Tr("Slot"),o=O.forwardRef((s,i)=>{const a=S.compilerRuntimeExports.c(15);let c,u;a[0]!==s?({children:c,...u}=s,a[0]=s,a[1]=c,a[2]=u):(c=a[1],u=a[2]);let l;if(a[3]!==c||a[4]!==i||a[5]!==u){l=Symbol.for("react.early_return_sentinel");e:{const m=O.Children.toArray(c),g=m.find(Or);if(g){const p=g.props.children,y=m.map(T=>T===g?O.Children.count(p)>1?O.Children.only(null):O.isValidElement(p)?p.props.children:null:T),h=O.isValidElement(p)?O.cloneElement(p,void 0,y):null;let w;a[7]!==i||a[8]!==u||a[9]!==h?(w=S.jsxRuntimeExports.jsx(n,{...u,ref:i,children:h}),a[7]=i,a[8]=u,a[9]=h,a[10]=w):w=a[10],l=w;break e}}a[3]=c,a[4]=i,a[5]=u,a[6]=l}else l=a[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let d;return a[11]!==c||a[12]!==i||a[13]!==u?(d=S.jsxRuntimeExports.jsx(n,{...u,ref:i,children:c}),a[11]=c,a[12]=i,a[13]=u,a[14]=d):d=a[14],d});return o.displayName="Slot",o}const Rr="debug",N=()=>{try{if(typeof window>"u"||typeof localStorage>"u")return!1;const t=localStorage.getItem(Rr);return t==="true"||t==="1"}catch{return!1}},xr=()=>{const t=(e,r,n=[])=>r?typeof e=="string"?[`<${r}> ${e}`,...n]:[`<${r}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(e,r,...n)=>{N()&&console.log(...t(e,r,n))},info:(e,r,...n)=>{N()&&console.info(...t(e,r,n))},warn:(e,r,...n)=>{N()&&console.warn(...t(e,r,n))},error:(e,r,...n)=>{N()&&console.error(...t(e,r,n))},debug:(e,r,...n)=>{N()&&console.debug(...t(e,r,n))},group:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.group(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupCollapsed:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.groupCollapsed(r?n?`<${r}> ${n}`:`<${r}>`:n)}},groupEnd:()=>{N()&&console.groupEnd()},table:(e,r,n)=>{N()&&(r&&console.log(`<${r}>`),console.table(e,n))},time:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.time(r?n?`<${r}> ${n}`:`<${r}>`:n)}},timeEnd:(e,r)=>{if(N()){const n=typeof e=="string"?e:void 0;console.timeEnd(r?n?`<${r}> ${n}`:`<${r}>`:n)}}}},_r=xr();function Cr(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}let Y;try{Y=require("@react-native-async-storage/async-storage").default}catch{Y=null}let He=null;try{const{AsyncLocalStorage:t}=require("node:async_hooks");He=new t}catch{He=null}const K=typeof window<"u"&&typeof window.localStorage<"u",z=!!Y,me={},Fe={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}},Ie=()=>{try{return He?.getStore?.()??null}catch{return null}},Me={getItem:async t=>{const e=!K&&!z?Ie():null;return e?e.getItem(t):z?Y.getItem(t):K?new Promise(r=>{Promise.resolve().then(()=>{const n=window.localStorage.getItem(t),o=me[t];n!==o&&(me[t]=n||""),r(n)})}):Fe.getItem(t)},setItem:async(t,e)=>{const r=!K&&!z?Ie():null;return r?r.setItem(t,e):z?Y.setItem(t,e):K?new Promise((n,o)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(t,e);const s=window.localStorage.getItem(t);s===e?(me[t]=e,n()):o(new Error(`Failed to set localStorage item: expected "${e}", got "${s}"`))}catch(s){o(s)}})}):Fe.setItem(t,e)},removeItem:async t=>{const e=!K&&!z?Ie():null;return e?e.removeItem(t):z?Y.removeItem(t):K?new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(t);const o=window.localStorage.getItem(t);o===null?(delete me[t],r()):n(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${o}"`))}catch(o){n(o)}})}):Fe.removeItem(t)}},it=50,M={get:async()=>{try{const t=await Me.getItem("eventHistory");return t?JSON.parse(t):[]}catch(t){return console.error("Error getting event history",t),[]}},set:async t=>{try{await Me.setItem("eventHistory",JSON.stringify(t.slice(-it)))}catch(e){console.error("Error setting event history",e)}},clear:async()=>{try{await Me.removeItem("eventHistory")}catch(t){console.error("Error clearing event history",t)}},push:async t=>{const e=await M.get();await M.set([{...t,timestamp:Date.now()},...e].slice(-it))},find:async t=>(await M.get()).find(r=>r.key===t.key&&r.identifier===t.identifier),filter:async(t,e)=>{const r=await M.get();return e?r.filter(e):r.filter(({key:n,identifier:o})=>(!n||t.key===n)&&(!o||t.identifier===o))}};function Pr(){const t=globalThis;return t.__HAUS_EVENT_EMITTER__||=Cr(),t.__HAUS_EVENT_EMITTER__}function Q(t){const e=Pr(),r=((...c)=>console.error(...c));M.get().then(c=>{const l=ke.lodashExports.first(c)?.timestamp;l&&l<Date.now()-1e3*60*60&&(_r.info("Clearing event history since it is older than 1 hour:","eventBus",l),M.clear())});const n=(c,u,l)=>{const d=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:g,data:p}=m;(!g||g===l)&&u(p)}else u(m)}catch(g){r(g)}};return e.on(c,d),()=>{o(c,u,l)}},o=(c,u,l)=>{const d=m=>{if(typeof m=="object"&&m!==null){const{identifier:g}=m;(!g||g===l)&&e.off(c,u)}};e.off(c,d)};return{on:n,off:o,once:(c,u,l)=>{const d=m=>{try{if(typeof m=="object"&&m!==null){const{identifier:g,data:p}=m;(!g||g===l)&&u(p)}else u(m)}finally{o(c,d,l)}};e.on(c,d)},emit:(c,u,...l)=>{const d={identifier:u,data:l.length===1?l[0]:l};M.push({key:c,identifier:u,payload:d.data}),e.emit(c,d)},getEventHistory:(c,u)=>M.filter({key:c,identifier:u})}}Q();Q();Q();Q();Q();Q();Q();const Nr=globalThis.__STORE_SDK_CONTEXT__||=se.createContext(void 0);function Bt(t,e){return function(){return t.apply(e,arguments)}}const{toString:qr}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:xe,toStringTag:Ft}=Symbol,_e=(t=>e=>{const r=qr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),D=t=>(t=t.toLowerCase(),e=>_e(e)===t),Ce=t=>e=>typeof e===t,{isArray:ee}=Array,Z=Ce("undefined");function ie(t){return t!==null&&!Z(t)&&t.constructor!==null&&!Z(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const It=D("ArrayBuffer");function Dr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&It(t.buffer),e}const jr=Ce("string"),x=Ce("function"),Mt=Ce("number"),ae=t=>t!==null&&typeof t=="object",Br=t=>t===!0||t===!1,Ee=t=>{if(_e(t)!=="object")return!1;const e=Je(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ft in t)&&!(xe in t)},Fr=t=>{if(!ae(t)||ie(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Ir=D("Date"),Mr=D("File"),Ur=D("Blob"),Lr=D("FileList"),$r=t=>ae(t)&&x(t.pipe),kr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((e=_e(t))==="formdata"||e==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},Hr=D("URLSearchParams"),[Vr,Qr,Wr,Kr]=["ReadableStream","Request","Response","Headers"].map(D),zr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),ee(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(ie(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(n=0;n<i;n++)a=s[n],e.call(null,t[a],a,t)}}function Ut(t,e){if(ie(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lt=t=>!Z(t)&&t!==$;function Ve(){const{caseless:t,skipUndefined:e}=Lt(this)&&this||{},r={},n=(o,s)=>{const i=t&&Ut(r,s)||s;Ee(r[i])&&Ee(o)?r[i]=Ve(r[i],o):Ee(o)?r[i]=Ve({},o):ee(o)?r[i]=o.slice():(!e||!Z(o))&&(r[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ce(arguments[o],n);return r}const Jr=(t,e,r,{allOwnKeys:n}={})=>(ce(e,(o,s)=>{r&&x(o)?t[s]=Bt(o,r):t[s]=o},{allOwnKeys:n}),t),Gr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Xr=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Yr=(t,e,r,n)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!n||n(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=r!==!1&&Je(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Zr=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},en=t=>{if(!t)return null;if(ee(t))return t;let e=t.length;if(!Mt(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},tn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Je(Uint8Array)),rn=(t,e)=>{const n=(t&&t[xe]).call(t);let o;for(;(o=n.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},nn=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},on=D("HTMLFormElement"),sn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),at=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),an=D("RegExp"),$t=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ce(r,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(n[s]=i||o)}),Object.defineProperties(t,n)},cn=t=>{$t(t,(e,r)=>{if(x(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(x(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},un=(t,e)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ee(t)?n(t):n(String(t).split(e)),r},ln=()=>{},fn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dn(t){return!!(t&&x(t.append)&&t[Ft]==="FormData"&&t[xe])}const pn=t=>{const e=new Array(10),r=(n,o)=>{if(ae(n)){if(e.indexOf(n)>=0)return;if(ie(n))return n;if(!("toJSON"in n)){e[o]=n;const s=ee(n)?[]:{};return ce(n,(i,a)=>{const c=r(i,o+1);!Z(c)&&(s[a]=c)}),e[o]=void 0,s}}return n};return r(t,0)},hn=D("AsyncFunction"),mn=t=>t&&(ae(t)||x(t))&&x(t.then)&&x(t.catch),kt=((t,e)=>t?setImmediate:e?((r,n)=>($.addEventListener("message",({source:o,data:s})=>{o===$&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),$.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",x($.postMessage)),yn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||kt,gn=t=>t!=null&&x(t[xe]),f={isArray:ee,isArrayBuffer:It,isBuffer:ie,isFormData:kr,isArrayBufferView:Dr,isString:jr,isNumber:Mt,isBoolean:Br,isObject:ae,isPlainObject:Ee,isEmptyObject:Fr,isReadableStream:Vr,isRequest:Qr,isResponse:Wr,isHeaders:Kr,isUndefined:Z,isDate:Ir,isFile:Mr,isBlob:Ur,isRegExp:an,isFunction:x,isStream:$r,isURLSearchParams:Hr,isTypedArray:tn,isFileList:Lr,forEach:ce,merge:Ve,extend:Jr,trim:zr,stripBOM:Gr,inherits:Xr,toFlatObject:Yr,kindOf:_e,kindOfTest:D,endsWith:Zr,toArray:en,forEachEntry:rn,matchAll:nn,isHTMLForm:on,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:$t,freezeMethods:cn,toObjectSet:un,toCamelCase:sn,noop:ln,toFiniteNumber:fn,findKey:Ut,global:$,isContextDefined:Lt,isSpecCompliantForm:dn,toJSONObject:pn,isAsyncFn:hn,isThenable:mn,setImmediate:kt,asap:yn,isIterable:gn};function b(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}f.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const Ht=b.prototype,Vt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Vt[t]={value:t}});Object.defineProperties(b,Vt);Object.defineProperty(Ht,"isAxiosError",{value:!0});b.from=(t,e,r,n,o,s)=>{const i=Object.create(Ht);f.toFlatObject(t,i,function(l){return l!==Error.prototype},u=>u!=="isAxiosError");const a=t&&t.message?t.message:"Error",c=e==null&&t?t.code:e;return b.call(i,a,c,r,n,o),t&&i.cause==null&&Object.defineProperty(i,"cause",{value:t,configurable:!0}),i.name=t&&t.name||"Error",s&&Object.assign(i,s),i};const bn=null;function Qe(t){return f.isPlainObject(t)||f.isArray(t)}function Qt(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function ct(t,e,r){return t?t.concat(e).map(function(o,s){return o=Qt(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function wn(t){return f.isArray(t)&&!t.some(Qe)}const An=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Pe(t,e,r){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=f.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!f.isUndefined(h[y])});const n=r.metaTokens,o=r.visitor||l,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(f.isBoolean(p))return p.toString();if(!c&&f.isBlob(p))throw new b("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(f.endsWith(y,"{}"))y=n?y:y.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&wn(p)||(f.isFileList(p)||f.endsWith(y,"[]"))&&(w=f.toArray(p)))return y=Qt(y),w.forEach(function(E,R){!(f.isUndefined(E)||E===null)&&e.append(i===!0?ct([y],R,s):i===null?y:y+"[]",u(E))}),!1}return Qe(p)?!0:(e.append(ct(h,y,s),u(p)),!1)}const d=[],m=Object.assign(An,{defaultVisitor:l,convertValue:u,isVisitable:Qe});function g(p,y){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),f.forEach(p,function(w,T){(!(f.isUndefined(w)||w===null)&&o.call(e,w,f.isString(T)?T.trim():T,y,m))===!0&&g(w,y?y.concat(T):[T])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return g(t),e}function ut(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ge(t,e){this._pairs=[],t&&Pe(t,this,e)}const Wt=Ge.prototype;Wt.append=function(e,r){this._pairs.push([e,r])};Wt.toString=function(e){const r=e?function(n){return e.call(this,n,ut)}:ut;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Sn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kt(t,e,r){if(!e)return t;const n=r&&r.encode||Sn;f.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(e,r):s=f.isURLSearchParams(e)?e.toString():new Ge(e,r).toString(n),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class lt{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(n){n!==null&&e(n)})}}const zt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},En=typeof URLSearchParams<"u"?URLSearchParams:Ge,On=typeof FormData<"u"?FormData:null,vn=typeof Blob<"u"?Blob:null,Tn={isBrowser:!0,classes:{URLSearchParams:En,FormData:On,Blob:vn},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",We=typeof navigator=="object"&&navigator||void 0,Rn=Xe&&(!We||["ReactNative","NativeScript","NS"].indexOf(We.product)<0),xn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_n=Xe&&window.location.href||"http://localhost",Cn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:Rn,hasStandardBrowserWebWorkerEnv:xn,navigator:We,origin:_n},Symbol.toStringTag,{value:"Module"})),v={...Cn,...Tn};function Pn(t,e){return Pe(t,new v.classes.URLSearchParams,{visitor:function(r,n,o,s){return v.isNode&&f.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Nn(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function qn(t){const e={},r=Object.keys(t);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function Jt(t){function e(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=r.length;return i=!i&&f.isArray(o)?o.length:i,c?(f.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):((!o[i]||!f.isObject(o[i]))&&(o[i]=[]),e(r,n,o[i],s)&&f.isArray(o[i])&&(o[i]=qn(o[i])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const r={};return f.forEachEntry(t,(n,o)=>{e(Nn(n),o,r,0)}),r}return null}function Dn(t,e,r){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const ue={transitional:zt,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=f.isObject(e);if(s&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return o?JSON.stringify(Jt(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Pn(e,this.formSerializer).toString();if((a=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pe(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Dn(e)):e}],transformResponse:[function(e){const r=this.transitional||ue.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],t=>{ue.headers[t]={}});const jn=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bn=t=>{const e={};let r,n,o;return t&&t.split(`
2
2
  `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||e[r]&&jn[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},ft=Symbol("internals");function ne(t){return t&&String(t).trim().toLowerCase()}function Oe(t){return t===!1||t==null?t:f.isArray(t)?t.map(Oe):String(t)}function Fn(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const In=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ue(t,e,r,n,o){if(f.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!f.isString(e)){if(f.isString(n))return e.indexOf(n)!==-1;if(f.isRegExp(n))return n.test(e)}}function Mn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Un(t,e){const r=f.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,s,i){return this[n].call(this,e,o,s,i)},configurable:!0})})}let _=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function s(a,c,u){const l=ne(c);if(!l)throw new Error("header name must be a non-empty string");const d=f.findKey(o,l);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||c]=Oe(a))}const i=(a,c)=>f.forEach(a,(u,l)=>s(u,l,c));if(f.isPlainObject(e)||e instanceof this.constructor)i(e,r);else if(f.isString(e)&&(e=e.trim())&&!In(e))i(Bn(e),r);else if(f.isObject(e)&&f.isIterable(e)){let a={},c,u;for(const l of e){if(!f.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[u=l[0]]=(c=a[u])?f.isArray(c)?[...c,l[1]]:[c,l[1]]:l[1]}i(a,r)}else e!=null&&s(r,e,n);return this}get(e,r){if(e=ne(e),e){const n=f.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Fn(o);if(f.isFunction(r))return r.call(this,o,n);if(f.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ne(e),e){const n=f.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ue(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function s(i){if(i=ne(i),i){const a=f.findKey(n,i);a&&(!r||Ue(n,n[a],a,r))&&(delete n[a],o=!0)}}return f.isArray(e)?e.forEach(s):s(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!e||Ue(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const r=this,n={};return f.forEach(this,(o,s)=>{const i=f.findKey(n,s);if(i){r[i]=Oe(o),delete r[s];return}const a=e?Mn(s):String(s).trim();a!==s&&delete r[s],r[a]=Oe(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return f.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&f.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[ft]=this[ft]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=ne(i);n[a]||(Un(o,i),n[a]=!0)}return f.isArray(e)?e.forEach(s):s(e),this}};_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.reduceDescriptors(_.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});f.freezeMethods(_);function Le(t,e){const r=this||ue,n=e||r,o=_.from(n.headers);let s=n.data;return f.forEach(t,function(a){s=a.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Gt(t){return!!(t&&t.__CANCEL__)}function te(t,e,r){b.call(this,t??"canceled",b.ERR_CANCELED,e,r),this.name="CanceledError"}f.inherits(te,b,{__CANCEL__:!0});function Xt(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new b("Request failed with status code "+r.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ln(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $n(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),l=n[s];i||(i=u),r[o]=c,n[o]=u;let d=s,m=0;for(;d!==o;)m+=r[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const g=l&&u-l;return g?Math.round(m*1e3/g):void 0}}function kn(t,e){let r=0,n=1e3/e,o,s;const i=(u,l=Date.now())=>{r=l,o=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const l=Date.now(),d=l-r;d>=n?i(u,l):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},n-d)))},()=>o&&i(o)]}const Te=(t,e,r=3)=>{let n=0;const o=$n(50,250);return kn(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,u=o(c),l=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},dt=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},pt=t=>(...e)=>f.asap(()=>t(...e)),Hn=v.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,v.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,Vn=v.hasStandardBrowserEnv?{write(t,e,r,n,o,s,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];f.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),f.isString(n)&&a.push(`path=${n}`),f.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),f.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Wn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yt(t,e,r){let n=!Qn(e);return t&&(n||r==!1)?Wn(t,e):e}const ht=t=>t instanceof _?{...t}:t;function V(t,e){e=e||{};const r={};function n(u,l,d,m){return f.isPlainObject(u)&&f.isPlainObject(l)?f.merge.call({caseless:m},u,l):f.isPlainObject(l)?f.merge({},l):f.isArray(l)?l.slice():l}function o(u,l,d,m){if(f.isUndefined(l)){if(!f.isUndefined(u))return n(void 0,u,d,m)}else return n(u,l,d,m)}function s(u,l){if(!f.isUndefined(l))return n(void 0,l)}function i(u,l){if(f.isUndefined(l)){if(!f.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,d){if(d in e)return n(u,l);if(d in t)return n(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,l,d)=>o(ht(u),ht(l),d,!0)};return f.forEach(Object.keys({...t,...e}),function(l){const d=c[l]||o,m=d(t[l],e[l],l);f.isUndefined(m)&&d!==a||(r[l]=m)}),r}const Zt=t=>{const e=V({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;if(e.headers=i=_.from(i),e.url=Kt(Yt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),f.isFormData(r)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(f.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([l,d])=>{u.includes(l.toLowerCase())&&i.set(l,d)})}}if(v.hasStandardBrowserEnv&&(n&&f.isFunction(n)&&(n=n(e)),n||n!==!1&&Hn(e.url))){const c=o&&s&&Vn.read(s);c&&i.set(o,c)}return e},Kn=typeof XMLHttpRequest<"u",zn=Kn&&function(t){return new Promise(function(r,n){const o=Zt(t);let s=o.data;const i=_.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,l,d,m,g,p;function y(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function w(){if(!h)return;const E=_.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:t,request:h};Xt(function(C){r(C),y()},function(C){n(C),y()},P),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(n(new b("Request aborted",b.ECONNABORTED,t,h)),h=null)},h.onerror=function(R){const P=R&&R.message?R.message:"Network Error",U=new b(P,b.ERR_NETWORK,t,h);U.event=R||null,n(U),h=null},h.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||zt;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),n(new b(R,P.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&f.forEach(i.toJSON(),function(R,P){h.setRequestHeader(P,R)}),f.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),u&&([m,p]=Te(u,!0),h.addEventListener("progress",m)),c&&h.upload&&([d,g]=Te(c),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(l=E=>{h&&(n(!E||E.type?new te(null,t,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const T=Ln(o.url);if(T&&v.protocols.indexOf(T)===-1){n(new b("Unsupported protocol "+T+":",b.ERR_BAD_REQUEST,t));return}h.send(s||null)})},Jn=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const s=function(u){if(!o){o=!0,a();const l=u instanceof Error?u:this.reason;n.abort(l instanceof b?l:new te(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,s(new b(`timeout ${e} of ms exceeded`,b.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=()=>f.asap(a),c}},Gn=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},Xn=async function*(t,e){for await(const r of Yn(t))yield*Gn(r,e)},Yn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},mt=(t,e,r,n)=>{const o=Xn(t,e);let s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:l}=await o.next();if(u){a(),c.close();return}let d=l.byteLength;if(r){let m=s+=d;r(m)}c.enqueue(new Uint8Array(l))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},yt=64*1024,{isFunction:ye}=f,Zn=(({Request:t,Response:e})=>({Request:t,Response:e}))(f.global),{ReadableStream:gt,TextEncoder:bt}=f.global,wt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},eo=t=>{t=f.merge.call({skipUndefined:!0},Zn,t);const{fetch:e,Request:r,Response:n}=t,o=e?ye(e):typeof fetch=="function",s=ye(r),i=ye(n);if(!o)return!1;const a=o&&ye(gt),c=o&&(typeof bt=="function"?(p=>y=>p.encode(y))(new bt):async p=>new Uint8Array(await new r(p).arrayBuffer())),u=s&&a&&wt(()=>{let p=!1;const y=new r(v.origin,{body:new gt,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!y}),l=i&&a&&wt(()=>f.isReadableStream(new n("").body)),d={stream:l&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(y,h)=>{let w=y&&y[p];if(w)return w.call(y);throw new b(`Response type '${p}' is not supported`,b.ERR_NOT_SUPPORT,h)})});const m=async p=>{if(p==null)return 0;if(f.isBlob(p))return p.size;if(f.isSpecCompliantForm(p))return(await new r(v.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(f.isArrayBufferView(p)||f.isArrayBuffer(p))return p.byteLength;if(f.isURLSearchParams(p)&&(p=p+""),f.isString(p))return(await c(p)).byteLength},g=async(p,y)=>{const h=f.toFiniteNumber(p.getContentLength());return h??m(y)};return async p=>{let{url:y,method:h,data:w,signal:T,cancelToken:E,timeout:R,onDownloadProgress:P,onUploadProgress:U,responseType:C,headers:je,withCredentials:de="same-origin",fetchOptions:et}=Zt(p),tt=e||fetch;C=C?(C+"").toLowerCase():"text";let pe=Jn([T,E&&E.toAbortSignal()],R),re=null;const L=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let rt;try{if(U&&u&&h!=="get"&&h!=="head"&&(rt=await g(je,w))!==0){let I=new r(y,{method:"POST",body:w,duplex:"half"}),W;if(f.isFormData(w)&&(W=I.headers.get("content-type"))&&je.setContentType(W),I.body){const[Be,he]=dt(rt,Te(pt(U)));w=mt(I.body,yt,Be,he)}}f.isString(de)||(de=de?"include":"omit");const j=s&&"credentials"in r.prototype,nt={...et,signal:pe,method:h.toUpperCase(),headers:je.normalize().toJSON(),body:w,duplex:"half",credentials:j?de:void 0};re=s&&new r(y,nt);let F=await(s?tt(re,et):tt(y,nt));const ot=l&&(C==="stream"||C==="response");if(l&&(P||ot&&L)){const I={};["status","statusText","headers"].forEach(st=>{I[st]=F[st]});const W=f.toFiniteNumber(F.headers.get("content-length")),[Be,he]=P&&dt(W,Te(pt(P),!0))||[];F=new n(mt(F.body,yt,Be,()=>{he&&he(),L&&L()}),I)}C=C||"text";let dr=await d[f.findKey(d,C)||"text"](F,p);return!ot&&L&&L(),await new Promise((I,W)=>{Xt(I,W,{data:dr,headers:_.from(F.headers),status:F.status,statusText:F.statusText,config:p,request:re})})}catch(j){throw L&&L(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,p,re),{cause:j.cause||j}):b.from(j,j&&j.code,p,re)}}},to=new Map,er=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:o}=e,s=[n,o,r];let i=s.length,a=i,c,u,l=to;for(;a--;)c=s[a],u=l.get(c),u===void 0&&l.set(c,u=a?new Map:eo(e)),l=u;return u};er();const Ye={http:bn,xhr:zn,fetch:{get:er}};f.forEach(Ye,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const At=t=>`- ${t}`,ro=t=>f.isFunction(t)||t===null||t===!1;function no(t,e){t=f.isArray(t)?t:[t];const{length:r}=t;let n,o;const s={};for(let i=0;i<r;i++){n=t[i];let a;if(o=n,!ro(n)&&(o=Ye[(a=String(n)).toLowerCase()],o===void 0))throw new b(`Unknown adapter '${a}'`);if(o&&(f.isFunction(o)||(o=o.get(e))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
4
4
  `+i.map(At).join(`
package/badge.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { V as hr, l as jt } from "./index-DHz5jmN0.mjs";
2
- import { c as U, j as F, r as Ft } from "./index-BLJuug8y.mjs";
1
+ import { V as hr, l as jt } from "./index-uHcyQs8K.mjs";
2
+ import { c as U, j as F, r as Ft } from "./index-CzIy4ekY.mjs";
3
3
  import * as E from "react";
4
4
  import mr, { createContext as yr, useContext as gr, useRef as br } from "react";
5
5
  import { QueryClient as Ke } from "@tanstack/react-query";
package/campaign.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CR_HNPF-.js"),e=require("./index-Dg7Cnz9b.js"),d=new c.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:r,searchResult:n,product:a})=>{if(r){const t=r.productVariant;return t?.ordinaryPrice?e.getPrice(t?.ordinaryPrice)*r.quantity:r.discountedLinePriceWithTax}return i?e.getPrice(i.ordinaryPrice||0):n?e.getPrice(n.ordinaryPrice||0):a?e.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});const o=(i,r)=>{const n=e.getPrice(i),a=e.getPrice(r);return e.getPrice(i)===0?!1:a!==n};exports.VendureCampaignPlugin=d;exports.isCampaign=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-DyozVKP3.js"),e=require("./index-D3BqdJYU.js"),d=new c.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:r,searchResult:n,product:a})=>{if(r){const t=r.productVariant;return t?.ordinaryPrice?e.getPrice(t?.ordinaryPrice)*r.quantity:r.discountedLinePriceWithTax}return i?e.getPrice(i.ordinaryPrice||0):n?e.getPrice(n.ordinaryPrice||0):a?e.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});const o=(i,r)=>{const n=e.getPrice(i),a=e.getPrice(r);return e.getPrice(i)===0?!1:a!==n};exports.VendureCampaignPlugin=d;exports.isCampaign=o;
package/campaign.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { V as d } from "./index-DHz5jmN0.mjs";
2
- import { g as e, a as o } from "./index-BLJuug8y.mjs";
1
+ import { V as d } from "./index-uHcyQs8K.mjs";
2
+ import { g as e, a as o } from "./index-CzIy4ekY.mjs";
3
3
  const s = new d({
4
4
  name: "campaign",
5
5
  enableFeatures: {
package/elastic.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CR_HNPF-.js"),i=new e.VendurePluginConfig({name:"vendure-elastic-search",queryUpdates:{search:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]},searchField:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]}}});exports.VendureElasticSearchPlugin=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DyozVKP3.js"),i=new e.VendurePluginConfig({name:"vendure-elastic-search",queryUpdates:{search:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]},searchField:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]}}});exports.VendureElasticSearchPlugin=i;
package/elastic.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { V as e } from "./index-DHz5jmN0.mjs";
1
+ import { V as e } from "./index-uHcyQs8K.mjs";
2
2
  const i = new e({
3
3
  name: "vendure-elastic-search",
4
4
  queryUpdates: {
@@ -1,4 +1,4 @@
1
- import "./index-DHz5jmN0.mjs";
1
+ import "./index-uHcyQs8K.mjs";
2
2
  import g from "react";
3
3
  var v = { exports: {} }, d = {};
4
4
  var F;
@@ -1,4 +1,4 @@
1
- "use strict";require("./index-CR_HNPF-.js");const P=require("react");var v={exports:{}},_={};var U;function ie(){if(U)return _;U=1;var t=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(l,s,c){var m=null;if(c!==void 0&&(m=""+c),s.key!==void 0&&(m=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:l,key:m,ref:s!==void 0?s:null,props:c}}return _.Fragment=u,_.jsx=i,_.jsxs=i,_}var R={};var $;function se(){return $||($=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case V:return"Portal";case Q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case h:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function u(e){return""+e}function i(e){try{u(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,o=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),u(e)}}function l(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===h)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function m(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function n(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function J(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,r,n,o,E,S){var a=n.ref;return e={$$typeof:w,type:e,key:r,props:n,_owner:o},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:J}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,n,o,E,S){var a=r.children;if(a!==void 0)if(o)if(ae(a)){for(o=0;o<a.length;o++)y(a[o]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(a);if(j.call(r,"key")){a=t(e);var f=Object.keys(r).filter(function(ue){return ue!=="key"});o=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",M[a+o]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";require("./index-DyozVKP3.js");const P=require("react");var v={exports:{}},_={};var U;function ie(){if(U)return _;U=1;var t=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(l,s,c){var m=null;if(c!==void 0&&(m=""+c),s.key!==void 0&&(m=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:l,key:m,ref:s!==void 0?s:null,props:c}}return _.Fragment=u,_.jsx=i,_.jsxs=i,_}var R={};var $;function se(){return $||($=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case B:return"Profiler";case X:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case V:return"Portal";case Q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case h:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function u(e){return""+e}function i(e){try{u(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,o=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),u(e)}}function l(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===h)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function m(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function n(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function J(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,r,n,o,E,S){var a=n.ref;return e={$$typeof:w,type:e,key:r,props:n,_owner:o},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:J}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,r,n,o,E,S){var a=r.children;if(a!==void 0)if(o)if(ae(a)){for(o=0;o<a.length;o++)y(a[o]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(a);if(j.call(r,"key")){a=t(e);var f=Object.keys(r).filter(function(ue){return ue!=="key"});o=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",M[a+o]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread: