@haus-storefront-react/currency-picker 1.0.4-next.13 → 1.0.4-next.14

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,12 @@
1
+ ## 1.0.4-next.13 (2026-03-24)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated store/hooks to 1.0.4-next.13
6
+ - Updated core to 1.0.4-next.13
7
+ - Updated common/utils to 1.0.4-next.13
8
+ - Updated shared/types to 1.0.4-next.13
9
+
1
10
  ## 1.0.4-next.12 (2026-03-19)
2
11
 
3
12
  ### 🧱 Updated Dependencies
package/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,o,p,m,p),ue[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===w&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),w=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.client.reference`),ie=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,T=Array.isArray,oe=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var se,E={},ce=m.react_stack_bottom_frame.bind(m,o)(),le=oe(i(o)),ue={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):ce,r?oe(i(e)):le)},e.jsxs=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):ce,r?oe(i(e)):le)}})()})),g=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=m():t.exports=h()}))();function _(e){let t=[];function n(n,r){let i=u.createContext(r),a=t.length;t.push(i);let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,[o]);return(0,g.jsx)(s.Provider,{value:c,children:r})};o.displayName=n+`Provider`;function s(t,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${t}\` must be used within \`${n}\``)}return[o,s]}function r(){let n=t.map(e=>u.createContext(e));return function(t){let r=t?.[e]||n;return u.useMemo(()=>({[`__scope${e}`]:{...t,[e]:r}}),[t,r])}}return r.scopeName=e,[n,r]}var v=`onClick.aria-label.aria-disabled.aria-hidden.aria-selected.aria-expanded.aria-controls.aria-describedby.aria-labelledby.aria-owns.aria-posinset.aria-setsize.aria-atomic.aria-busy.aria-current.aria-details.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-invalid.aria-keyshortcuts.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext`.split(`.`);[...v],[...`onClick.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onWheel.onKeyDown.onKeyPress.onKeyUp.onFocus.onBlur.onChange.onInput.onSubmit.onReset.onSelect.onSelectStart.onSelectionChange.onInvalid.onBeforeInput.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCopy.onCut.onPaste.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onScroll.onLoad.onError.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionEnd.onGotPointerCapture.onLostPointerCapture.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.aria-label.aria-labelledby.aria-describedby.aria-controls.aria-owns.aria-activedescendant.aria-autocomplete.aria-checked.aria-current.aria-disabled.aria-expanded.aria-haspopup.aria-hidden.aria-invalid.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.role.tabIndex.contentEditable.contextMenu.dir.draggable.dropzone.hidden.id.lang.spellCheck.style.title.translate.slot.part.class.className.dataset.innerHTML.outerHTML.accessKey.autocapitalize.autocorrect.enterKeyHint.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.nonce.popover.radioGroup.referrerPolicy.rel.security.unselectable.virtualKeyboardPolicy`.split(`.`)];function y(e,t=`Enter`){if(e)return n=>{let r=n.nativeEvent?.key||n.key;r===t&&e({...n,key:r,preventDefault:()=>{},stopPropagation:()=>{}})}}function b(e,t){if(t===`web`)return e;let{onClick:n,onKeyDown:r,disabled:i,"aria-label":a,...o}=e,s=Object.fromEntries(Object.entries(o).filter(([e])=>!v.includes(e)));return{onPress:n?()=>n({}):void 0,onKeyDown:y(r),disabled:i,accessibilityLabel:a,accessibilityRole:`button`,accessibilityState:{disabled:i},...s}}function ee(e){let{src:t,alt:n,...r}=e;return t?{...r,source:{uri:t}}:r}var x={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 S(e,t){if(t===`web`)return e;let n=null;try{n=require(`react-native`)}catch{n=null}if(!n)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${e}'`),`div`;let r=x[e];if(!r)return console.warn(`No native component mapping found for '${e}', falling back to View`),n.View;if(r===`Image`){let e=u.default.forwardRef((e,t)=>e.src?(0,g.jsx)(n.Image,{ref:t,...ee(e)}):null);return e.displayName=`PlatformPrimitiveImage`,e}return n[r]||(console.warn(`Native component '${r}' not found, falling back to View`),n.View)}var C=Symbol(`radix.slottable`);function te(...e){return t=>e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]=ne(i,a):r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ne(e,t){let n=(()=>{try{return require(`react-native`)}catch{return null}})()?.StyleSheet?.flatten;if(typeof e==`function`&&typeof t==`function`)return r=>{let i=[e(r),t(r)];return n?n(i):i};if(typeof e==`function`)return r=>{let i=t?[e(r),t]:e(r);return n?n(i):i};if(typeof t==`function`)return r=>{let i=e?[e,t(r)]:t(r);return n?n(i):i};let r=[e,t].filter(Boolean);return n?n(r):r}function re(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===C}function ie(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ae(e,t){let n=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(u.isValidElement(n)){let e=ie(n),i=w(r,n.props);return n.type!==u.Fragment&&(i.ref=t?te(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}function T(e,t=!1,n=`div`){if(!t)return S(n,e);let r=ae(`Slot`,e),i=u.forwardRef((e,t)=>{let{children:n,...i}=e,a=u.Children.toArray(n),o=a.find(re);if(o){let e=o.props.children,n=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(r,{...i,ref:t,children:u.isValidElement(e)?u.cloneElement(e,void 0,n):null})}return(0,g.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`Slot`,i}function oe(e){let t=({children:e})=>e;return t.displayName=`${e}.Slottable`,t.__radixId=C,t}oe(`Slottable`);var se=`debug`,E=()=>{try{if(typeof window>`u`||typeof localStorage>`u`)return!1;let e=localStorage.getItem(se);return e===`true`||e===`1`}catch{return!1}},ce=(()=>{let e=(e,t,n=[])=>t?typeof e==`string`?[`<${t}> ${e}`,...n]:[`<${t}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(t,n,...r)=>{E()&&console.log(...e(t,n,r))},info:(t,n,...r)=>{E()&&console.info(...e(t,n,r))},warn:(t,n,...r)=>{E()&&console.warn(...e(t,n,r))},error:(t,n,...r)=>{E()&&console.error(...e(t,n,r))},debug:(t,n,...r)=>{E()&&console.debug(...e(t,n,r))},group:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;t?console.group(n?`<${t}> ${n}`:`<${t}>`):console.group(n)}},groupCollapsed:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;t?console.groupCollapsed(n?`<${t}> ${n}`:`<${t}>`):console.groupCollapsed(n)}},groupEnd:()=>{E()&&console.groupEnd()},table:(e,t,n)=>{E()&&(t&&console.log(`<${t}>`),console.table(e,n))},time:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;t?console.time(n?`<${t}> ${n}`:`<${t}>`):console.time(n)}},timeEnd:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;t?console.timeEnd(n?`<${t}> ${n}`:`<${t}>`):console.timeEnd(n)}}}})(),le=(e,t)=>typeof e==`function`?e(t):e;function ue(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var de=o(((e,t)=>{t.exports={}})),D;try{D=require(`@react-native-async-storage/async-storage`).default}catch{D=null}var fe=null;try{let{AsyncLocalStorage:e}=de();fe=new e}catch{fe=null}var O=typeof window<`u`&&window.localStorage!==void 0,k=!!D,pe={},me={getItem:async()=>null,setItem:async()=>void 0,removeItem:async()=>void 0},he=()=>{try{return fe?.getStore?.()??null}catch{return null}},A={getItem:async e=>{let t=!O&&!k?he():null;return t?t.getItem(e):k?D.getItem(e):O?new Promise(t=>{Promise.resolve().then(()=>{let n=window.localStorage.getItem(e);n!==pe[e]&&(pe[e]=n||``),t(n)})}):me.getItem(e)},setItem:async(e,t)=>{let n=!O&&!k?he():null;return n?n.setItem(e,t):k?D.setItem(e,t):O?new Promise((n,r)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(e,t);let i=window.localStorage.getItem(e);i===t?(pe[e]=t,n()):r(Error(`Failed to set localStorage item: expected "${t}", got "${i}"`))}catch(e){r(e)}})}):me.setItem(e,t)},removeItem:async e=>{let t=!O&&!k?he():null;return t?t.removeItem(e):k?D.removeItem(e):O?new Promise((t,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(e);let r=window.localStorage.getItem(e);r===null?(delete pe[e],t()):n(Error(`Failed to remove localStorage item: key "${e}" still exists with value "${r}"`))}catch(e){n(e)}})}):me.removeItem(e)}},ge=50,j={get:async()=>{try{let e=await A.getItem(`eventHistory`);return e?JSON.parse(e):[]}catch(e){return console.error(`Error getting event history`,e),[]}},set:async e=>{try{await A.setItem(`eventHistory`,JSON.stringify(e.slice(-ge)))}catch(e){console.error(`Error setting event history`,e)}},clear:async()=>{try{await A.removeItem(`eventHistory`)}catch(e){console.error(`Error clearing event history`,e)}},push:async e=>{let t=await j.get();await j.set([{...e,timestamp:Date.now()},...t].slice(-ge))},find:async e=>(await j.get()).find(t=>t.key===e.key&&t.identifier===e.identifier),filter:async(e,t)=>{let n=await j.get();return t?n.filter(t):n.filter(({key:t,identifier:n})=>(!t||e.key===t)&&(!n||e.identifier===n))}};function _e(){let e=globalThis;return e.__HAUS_EVENT_EMITTER__||=ue(),e.__HAUS_EVENT_EMITTER__}function M(e){let t=_e(),n=e?.onError??((...e)=>console.error(...e));j.get().then(e=>{let t=p(e)?.timestamp;t&&t<Date.now()-1e3*60*60&&(ce.info(`Clearing event history since it is older than 1 hour:`,`eventBus`,t),j.clear())});let r=(e,r,a)=>(t.on(e,e=>{try{if(typeof e==`object`&&e){let{identifier:t,data:n}=e;(!t||t===a)&&r(n)}else r(e)}catch(e){n(e)}}),()=>{i(e,r,a)}),i=(e,n,r)=>{t.off(e,i=>{if(typeof i==`object`&&i){let{identifier:a}=i;(!a||a===r)&&t.off(e,n)}})};return{on:r,off:i,once:(e,n,r)=>{let a=t=>{try{if(typeof t==`object`&&t){let{identifier:e,data:i}=t;(!e||e===r)&&n(i)}else n(t)}finally{i(e,a,r)}};t.on(e,a)},emit:(e,n,...r)=>{let i={identifier:n,data:r.length===1?r[0]:r};j.push({key:e,identifier:n,payload:i.data}),t.emit(e,i)},getEventHistory:(e,t)=>j.filter({key:e,identifier:t})}}var ve=M();M(),M(),M(),M(),M(),M();var ye=globalThis.__STORE_SDK_CONTEXT__||=(0,u.createContext)(void 0);function be(e,t){return function(){return e.apply(t,arguments)}}var{toString:xe}=Object.prototype,{getPrototypeOf:Se}=Object,{iterator:Ce,toStringTag:we}=Symbol,Te=(e=>t=>{let n=xe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>Te(t)===e),Ee=e=>t=>typeof t===e,{isArray:P}=Array,F=Ee(`undefined`);function I(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var De=N(`ArrayBuffer`);function Oe(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&De(e.buffer),t}var ke=Ee(`string`),L=Ee(`function`),Ae=Ee(`number`),R=e=>typeof e==`object`&&!!e,je=e=>e===!0||e===!1,Me=e=>{if(Te(e)!==`object`)return!1;let t=Se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(we in e)&&!(Ce in e)},Ne=e=>{if(!R(e)||I(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pe=N(`Date`),Fe=N(`File`),Ie=N(`Blob`),Le=N(`FileList`),Re=e=>R(e)&&L(e.pipe),ze=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||L(e.append)&&((t=Te(e))===`formdata`||t===`object`&&L(e.toString)&&e.toString()===`[object FormData]`))},Be=N(`URLSearchParams`),[Ve,He,Ue,We]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(N),Ge=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function z(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(I(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Ke(e,t){if(I(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var B=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qe=e=>!F(e)&&e!==B;function Je(){let{caseless:e,skipUndefined:t}=qe(this)&&this||{},n={},r=(r,i)=>{let a=e&&Ke(n,i)||i;Me(n[a])&&Me(r)?n[a]=Je(n[a],r):Me(r)?n[a]=Je({},r):P(r)?n[a]=r.slice():(!t||!F(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n}var Ye=(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&L(t)?e[r]=be(t,n):e[r]=t},{allOwnKeys:r}),e),Xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ze=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qe=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},et=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Ae(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Se(Uint8Array)),nt=(e,t)=>{let n=(e&&e[Ce]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rt=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},it=N(`HTMLFormElement`),at=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ot=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),st=N(`RegExp`),ct=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lt=e=>{ct(e,(t,n)=>{if(L(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(L(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ut=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},dt=()=>{},ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pt(e){return!!(e&&L(e.append)&&e[we]===`FormData`&&e[Ce])}var mt=e=>{let t=Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(I(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=P(e)?[]:{};return z(e,(e,t)=>{let a=n(e,r+1);!F(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},ht=N(`AsyncFunction`),gt=e=>e&&(R(e)||L(e))&&L(e.then)&&L(e.catch),_t=((e,t)=>e?setImmediate:t?((e,t)=>(B.addEventListener(`message`,({source:n,data:r})=>{n===B&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),B.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,L(B.postMessage)),V={isArray:P,isArrayBuffer:De,isBuffer:I,isFormData:ze,isArrayBufferView:Oe,isString:ke,isNumber:Ae,isBoolean:je,isObject:R,isPlainObject:Me,isEmptyObject:Ne,isReadableStream:Ve,isRequest:He,isResponse:Ue,isHeaders:We,isUndefined:F,isDate:Pe,isFile:Fe,isBlob:Ie,isRegExp:st,isFunction:L,isStream:Re,isURLSearchParams:Be,isTypedArray:tt,isFileList:Le,forEach:z,merge:Je,extend:Ye,trim:Ge,stripBOM:Xe,inherits:Ze,toFlatObject:Qe,kindOf:Te,kindOfTest:N,endsWith:$e,toArray:et,forEachEntry:nt,matchAll:rt,isHTMLForm:it,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:ct,freezeMethods:lt,toObjectSet:ut,toCamelCase:at,noop:dt,toFiniteNumber:ft,findKey:Ke,global:B,isContextDefined:qe,isSpecCompliantForm:pt,toJSONObject:mt,isAsyncFn:ht,isThenable:gt,setImmediate:_t,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(B):typeof process<`u`&&process.nextTick||_t,isIterable:e=>e!=null&&L(e[Ce])};function H(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(H,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});var vt=H.prototype,yt={};[`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(e=>{yt[e]={value:e}}),Object.defineProperties(H,yt),Object.defineProperty(vt,`isAxiosError`,{value:!0}),H.from=(e,t,n,r,i,a)=>{let o=Object.create(vt);V.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>e!==`isAxiosError`);let s=e&&e.message?e.message:`Error`,c=t==null&&e?e.code:t;return H.call(o,s,c,n,r,i),e&&o.cause==null&&Object.defineProperty(o,`cause`,{value:e,configurable:!0}),o.name=e&&e.name||`Error`,a&&Object.assign(o,a),o};function bt(e){return V.isPlainObject(e)||V.isArray(e)}function xt(e){return V.endsWith(e,`[]`)?e.slice(0,-2):e}function St(e,t,n){return e?e.concat(t).map(function(e,t){return e=xt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ct(e){return V.isArray(e)&&!e.some(bt)}var wt=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function Tt(e,t,n){if(!V.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!s&&V.isBlob(e))throw new H(`Blob is not supported. Use a Buffer instead.`);return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(V.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&Ct(e)||(V.isFileList(e)||V.endsWith(n,`[]`))&&(s=V.toArray(e)))return n=xt(n),s.forEach(function(e,r){!(V.isUndefined(e)||e===null)&&t.append(o===!0?St([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return bt(e)?!0:(t.append(St(i,n,a),c(e)),!1)}let u=[],d=Object.assign(wt,{defaultVisitor:l,convertValue:c,isVisitable:bt});function f(e,n){if(!V.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),V.forEach(e,function(e,r){(!(V.isUndefined(e)||e===null)&&i.call(t,e,V.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!V.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function Et(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Dt(e,t){this._pairs=[],e&&Tt(e,this,t)}var Ot=Dt.prototype;Ot.append=function(e,t){this._pairs.push([e,t])},Ot.toString=function(e){let t=e?function(t){return e.call(this,t,Et)}:Et;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function kt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function At(e,t,n){if(!t)return e;let r=n&&n.encode||kt;V.isFunction(n)&&(n={serialize:n});let i=n&&n.serialize,a;if(a=i?i(t,n):V.isURLSearchParams(t)?t.toString():new Dt(t,n).toString(r),a){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}var jt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,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&&=[]}forEach(e){V.forEach(this.handlers,function(t){t!==null&&e(t)})}},Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Dt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Pt=s({hasBrowserEnv:()=>Ft,hasStandardBrowserEnv:()=>Lt,hasStandardBrowserWebWorkerEnv:()=>Rt,navigator:()=>It,origin:()=>zt}),Ft=typeof window<`u`&&typeof document<`u`,It=typeof navigator==`object`&&navigator||void 0,Lt=Ft&&(!It||[`ReactNative`,`NativeScript`,`NS`].indexOf(It.product)<0),Rt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,zt=Ft&&window.location.href||`http://localhost`,U={...Pt,...Nt};function Bt(e,t){return Tt(e,new U.classes.URLSearchParams,{visitor:function(e,t,n,r){return U.isNode&&V.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Vt(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Ht(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Ut(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(r)?r.length:a,s?(V.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!V.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&V.isArray(r[a])&&(r[a]=Ht(r[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){let n={};return V.forEachEntry(e,(e,r)=>{t(Vt(e),r,n,0)}),n}return null}function Wt(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var W={transitional:Mt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(Ut(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Bt(e,this.formSerializer).toString();if((a=V.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return Tt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),Wt(e)):e}],transformResponse:[function(e){let t=this.transitional||W.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{W.headers[e]={}});var Gt=V.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`]),Kt=e=>{let t={},n,r,i;return e&&e.split(`
6
+ <%s key={someKey} {...props} />`,o,p,m,p),ue[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===w&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),w=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.client.reference`),ie=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,T=Array.isArray,oe=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var se,E={},ce=m.react_stack_bottom_frame.bind(m,o)(),le=oe(i(o)),ue={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):ce,r?oe(i(e)):le)},e.jsxs=function(e,t,n){var r=1e4>ie.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):ce,r?oe(i(e)):le)}})()})),g=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=m():t.exports=h()}))();function _(e){let t=[];function n(n,r){let i=u.createContext(r),a=t.length;t.push(i);let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,[o]);return(0,g.jsx)(s.Provider,{value:c,children:r})};o.displayName=n+`Provider`;function s(t,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${t}\` must be used within \`${n}\``)}return[o,s]}function r(){let n=t.map(e=>u.createContext(e));return function(t){let r=t?.[e]||n;return u.useMemo(()=>({[`__scope${e}`]:{...t,[e]:r}}),[t,r])}}return r.scopeName=e,[n,r]}var v=`onClick.aria-label.aria-disabled.aria-hidden.aria-selected.aria-expanded.aria-controls.aria-describedby.aria-labelledby.aria-owns.aria-posinset.aria-setsize.aria-atomic.aria-busy.aria-current.aria-details.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-invalid.aria-keyshortcuts.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext`.split(`.`);[...v],[...`onClick.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onWheel.onKeyDown.onKeyPress.onKeyUp.onFocus.onBlur.onChange.onInput.onSubmit.onReset.onSelect.onSelectStart.onSelectionChange.onInvalid.onBeforeInput.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCopy.onCut.onPaste.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onScroll.onLoad.onError.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionEnd.onGotPointerCapture.onLostPointerCapture.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.aria-label.aria-labelledby.aria-describedby.aria-controls.aria-owns.aria-activedescendant.aria-autocomplete.aria-checked.aria-current.aria-disabled.aria-expanded.aria-haspopup.aria-hidden.aria-invalid.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.role.tabIndex.contentEditable.contextMenu.dir.draggable.dropzone.hidden.id.lang.spellCheck.style.title.translate.slot.part.class.className.dataset.innerHTML.outerHTML.accessKey.autocapitalize.autocorrect.enterKeyHint.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.nonce.popover.radioGroup.referrerPolicy.rel.security.unselectable.virtualKeyboardPolicy`.split(`.`)];function y(e,t=`Enter`){if(e)return n=>{let r=n.nativeEvent?.key||n.key;r===t&&e({...n,key:r,preventDefault:()=>{},stopPropagation:()=>{}})}}function b(e,t){if(t===`web`)return e;let{onClick:n,onKeyDown:r,disabled:i,"aria-label":a,...o}=e,s=Object.fromEntries(Object.entries(o).filter(([e])=>!v.includes(e)));return{onPress:n?()=>n({}):void 0,onKeyDown:y(r),disabled:i,accessibilityLabel:a,accessibilityRole:`button`,accessibilityState:{disabled:i},...s}}function ee(e){let{src:t,alt:n,...r}=e;return t?{...r,source:{uri:t}}:r}var x={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 S(e,t){if(t===`web`)return e;let n=null;try{n=require(`react-native`)}catch{n=null}if(!n)return console.warn(`react-native is not available at runtime; falling back to 'View' for '${e}'`),`div`;let r=x[e];if(!r)return console.warn(`No native component mapping found for '${e}', falling back to View`),n.View;if(r===`Image`){let e=u.default.forwardRef((e,t)=>e.src?(0,g.jsx)(n.Image,{ref:t,...ee(e)}):null);return e.displayName=`PlatformPrimitiveImage`,e}return n[r]||(console.warn(`Native component '${r}' not found, falling back to View`),n.View)}var C=Symbol(`radix.slottable`);function te(...e){return t=>e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]=ne(i,a):r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ne(e,t){let n=(()=>{try{return require(`react-native`)}catch{return null}})()?.StyleSheet?.flatten;if(typeof e==`function`&&typeof t==`function`)return r=>{let i=[e(r),t(r)];return n?n(i):i};if(typeof e==`function`)return r=>{let i=t?[e(r),t]:e(r);return n?n(i):i};if(typeof t==`function`)return r=>{let i=e?[e,t(r)]:t(r);return n?n(i):i};let r=[e,t].filter(Boolean);return n?n(r):r}function re(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===C}function ie(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ae(e,t){let n=u.forwardRef((e,t)=>{let{children:n,...r}=e;if(u.isValidElement(n)){let e=ie(n),i=w(r,n.props);return n.type!==u.Fragment&&(i.ref=t?te(t,e):e),u.cloneElement(n,i)}return u.Children.count(n)>1?u.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}function T(e,t=!1,n=`div`){if(!t)return S(n,e);let r=ae(`Slot`,e),i=u.forwardRef((e,t)=>{let{children:n,...i}=e,a=u.Children.toArray(n),o=a.find(re);if(o){let e=o.props.children,n=a.map(t=>t===o?u.Children.count(e)>1?u.Children.only(null):u.isValidElement(e)?e.props.children:null:t);return(0,g.jsx)(r,{...i,ref:t,children:u.isValidElement(e)?u.cloneElement(e,void 0,n):null})}return(0,g.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`Slot`,i}function oe(e){let t=({children:e})=>e;return t.displayName=`${e}.Slottable`,t.__radixId=C,t}oe(`Slottable`);var se=`debug`,E=()=>{try{if(typeof window>`u`||typeof localStorage>`u`)return!1;let e=localStorage.getItem(se);return e===`true`||e===`1`}catch{return!1}},ce=(()=>{let e=(e,t,n=[])=>t?typeof e==`string`?[`<${t}> ${e}`,...n]:[`<${t}>`,e,...n]:Array.isArray(e)?[...e,...n]:[e,...n];return{log:(t,n,...r)=>{E()&&console.log(...e(t,n,r))},info:(t,n,...r)=>{E()&&console.info(...e(t,n,r))},warn:(t,n,...r)=>{E()&&console.warn(...e(t,n,r))},error:(t,n,...r)=>{E()&&console.error(...e(t,n,r))},debug:(t,n,...r)=>{E()&&console.debug(...e(t,n,r))},group:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;console.group(t?n?`<${t}> ${n}`:`<${t}>`:n)}},groupCollapsed:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;console.groupCollapsed(t?n?`<${t}> ${n}`:`<${t}>`:n)}},groupEnd:()=>{E()&&console.groupEnd()},table:(e,t,n)=>{E()&&(t&&console.log(`<${t}>`),console.table(e,n))},time:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;console.time(t?n?`<${t}> ${n}`:`<${t}>`:n)}},timeEnd:(e,t)=>{if(E()){let n=typeof e==`string`?e:void 0;console.timeEnd(t?n?`<${t}> ${n}`:`<${t}>`:n)}}}})(),le=(e,t)=>typeof e==`function`?e(t):e;function ue(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var de=o(((e,t)=>{t.exports={}})),D;try{D=require(`@react-native-async-storage/async-storage`).default}catch{D=null}var fe=null;try{let{AsyncLocalStorage:e}=de();fe=new e}catch{fe=null}var O=typeof window<`u`&&window.localStorage!==void 0,k=!!D,pe={},me={getItem:async()=>null,setItem:async()=>void 0,removeItem:async()=>void 0},he=()=>{try{return fe?.getStore?.()??null}catch{return null}},A={getItem:async e=>{let t=!O&&!k?he():null;return t?t.getItem(e):k?D.getItem(e):O?new Promise(t=>{Promise.resolve().then(()=>{let n=window.localStorage.getItem(e);n!==pe[e]&&(pe[e]=n||``),t(n)})}):me.getItem(e)},setItem:async(e,t)=>{let n=!O&&!k?he():null;return n?n.setItem(e,t):k?D.setItem(e,t):O?new Promise((n,r)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(e,t);let i=window.localStorage.getItem(e);i===t?(pe[e]=t,n()):r(Error(`Failed to set localStorage item: expected "${t}", got "${i}"`))}catch(e){r(e)}})}):me.setItem(e,t)},removeItem:async e=>{let t=!O&&!k?he():null;return t?t.removeItem(e):k?D.removeItem(e):O?new Promise((t,n)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(e);let r=window.localStorage.getItem(e);r===null?(delete pe[e],t()):n(Error(`Failed to remove localStorage item: key "${e}" still exists with value "${r}"`))}catch(e){n(e)}})}):me.removeItem(e)}},ge=50,j={get:async()=>{try{let e=await A.getItem(`eventHistory`);return e?JSON.parse(e):[]}catch(e){return console.error(`Error getting event history`,e),[]}},set:async e=>{try{await A.setItem(`eventHistory`,JSON.stringify(e.slice(-ge)))}catch(e){console.error(`Error setting event history`,e)}},clear:async()=>{try{await A.removeItem(`eventHistory`)}catch(e){console.error(`Error clearing event history`,e)}},push:async e=>{let t=await j.get();await j.set([{...e,timestamp:Date.now()},...t].slice(-ge))},find:async e=>(await j.get()).find(t=>t.key===e.key&&t.identifier===e.identifier),filter:async(e,t)=>{let n=await j.get();return t?n.filter(t):n.filter(({key:t,identifier:n})=>(!t||e.key===t)&&(!n||e.identifier===n))}};function _e(){let e=globalThis;return e.__HAUS_EVENT_EMITTER__||=ue(),e.__HAUS_EVENT_EMITTER__}function M(e){let t=_e(),n=e?.onError??((...e)=>console.error(...e));j.get().then(e=>{let t=p(e)?.timestamp;t&&t<Date.now()-1e3*60*60&&(ce.info(`Clearing event history since it is older than 1 hour:`,`eventBus`,t),j.clear())});let r=(e,r,a)=>(t.on(e,e=>{try{if(typeof e==`object`&&e){let{identifier:t,data:n}=e;(!t||t===a)&&r(n)}else r(e)}catch(e){n(e)}}),()=>{i(e,r,a)}),i=(e,n,r)=>{t.off(e,i=>{if(typeof i==`object`&&i){let{identifier:a}=i;(!a||a===r)&&t.off(e,n)}})};return{on:r,off:i,once:(e,n,r)=>{let a=t=>{try{if(typeof t==`object`&&t){let{identifier:e,data:i}=t;(!e||e===r)&&n(i)}else n(t)}finally{i(e,a,r)}};t.on(e,a)},emit:(e,n,...r)=>{let i={identifier:n,data:r.length===1?r[0]:r};j.push({key:e,identifier:n,payload:i.data}),t.emit(e,i)},getEventHistory:(e,t)=>j.filter({key:e,identifier:t})}}var ve=M();M(),M(),M(),M(),M(),M();var ye=globalThis.__STORE_SDK_CONTEXT__||=(0,u.createContext)(void 0);function be(e,t){return function(){return e.apply(t,arguments)}}var{toString:xe}=Object.prototype,{getPrototypeOf:Se}=Object,{iterator:Ce,toStringTag:we}=Symbol,Te=(e=>t=>{let n=xe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>Te(t)===e),Ee=e=>t=>typeof t===e,{isArray:P}=Array,F=Ee(`undefined`);function I(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var De=N(`ArrayBuffer`);function Oe(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&De(e.buffer),t}var ke=Ee(`string`),L=Ee(`function`),Ae=Ee(`number`),R=e=>typeof e==`object`&&!!e,je=e=>e===!0||e===!1,Me=e=>{if(Te(e)!==`object`)return!1;let t=Se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(we in e)&&!(Ce in e)},Ne=e=>{if(!R(e)||I(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Pe=N(`Date`),Fe=N(`File`),Ie=N(`Blob`),Le=N(`FileList`),Re=e=>R(e)&&L(e.pipe),ze=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||L(e.append)&&((t=Te(e))===`formdata`||t===`object`&&L(e.toString)&&e.toString()===`[object FormData]`))},Be=N(`URLSearchParams`),[Ve,He,Ue,We]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(N),Ge=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function z(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(I(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Ke(e,t){if(I(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var B=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qe=e=>!F(e)&&e!==B;function Je(){let{caseless:e,skipUndefined:t}=qe(this)&&this||{},n={},r=(r,i)=>{let a=e&&Ke(n,i)||i;Me(n[a])&&Me(r)?n[a]=Je(n[a],r):Me(r)?n[a]=Je({},r):P(r)?n[a]=r.slice():(!t||!F(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n}var Ye=(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&L(t)?e[r]=be(t,n):e[r]=t},{allOwnKeys:r}),e),Xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ze=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qe=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},et=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Ae(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Se(Uint8Array)),nt=(e,t)=>{let n=(e&&e[Ce]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rt=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},it=N(`HTMLFormElement`),at=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ot=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),st=N(`RegExp`),ct=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lt=e=>{ct(e,(t,n)=>{if(L(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(L(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ut=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},dt=()=>{},ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pt(e){return!!(e&&L(e.append)&&e[we]===`FormData`&&e[Ce])}var mt=e=>{let t=Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(I(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=P(e)?[]:{};return z(e,(e,t)=>{let a=n(e,r+1);!F(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},ht=N(`AsyncFunction`),gt=e=>e&&(R(e)||L(e))&&L(e.then)&&L(e.catch),_t=((e,t)=>e?setImmediate:t?((e,t)=>(B.addEventListener(`message`,({source:n,data:r})=>{n===B&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),B.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,L(B.postMessage)),V={isArray:P,isArrayBuffer:De,isBuffer:I,isFormData:ze,isArrayBufferView:Oe,isString:ke,isNumber:Ae,isBoolean:je,isObject:R,isPlainObject:Me,isEmptyObject:Ne,isReadableStream:Ve,isRequest:He,isResponse:Ue,isHeaders:We,isUndefined:F,isDate:Pe,isFile:Fe,isBlob:Ie,isRegExp:st,isFunction:L,isStream:Re,isURLSearchParams:Be,isTypedArray:tt,isFileList:Le,forEach:z,merge:Je,extend:Ye,trim:Ge,stripBOM:Xe,inherits:Ze,toFlatObject:Qe,kindOf:Te,kindOfTest:N,endsWith:$e,toArray:et,forEachEntry:nt,matchAll:rt,isHTMLForm:it,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:ct,freezeMethods:lt,toObjectSet:ut,toCamelCase:at,noop:dt,toFiniteNumber:ft,findKey:Ke,global:B,isContextDefined:qe,isSpecCompliantForm:pt,toJSONObject:mt,isAsyncFn:ht,isThenable:gt,setImmediate:_t,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(B):typeof process<`u`&&process.nextTick||_t,isIterable:e=>e!=null&&L(e[Ce])};function H(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(H,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});var vt=H.prototype,yt={};[`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(e=>{yt[e]={value:e}}),Object.defineProperties(H,yt),Object.defineProperty(vt,`isAxiosError`,{value:!0}),H.from=(e,t,n,r,i,a)=>{let o=Object.create(vt);V.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>e!==`isAxiosError`);let s=e&&e.message?e.message:`Error`,c=t==null&&e?e.code:t;return H.call(o,s,c,n,r,i),e&&o.cause==null&&Object.defineProperty(o,`cause`,{value:e,configurable:!0}),o.name=e&&e.name||`Error`,a&&Object.assign(o,a),o};function bt(e){return V.isPlainObject(e)||V.isArray(e)}function xt(e){return V.endsWith(e,`[]`)?e.slice(0,-2):e}function St(e,t,n){return e?e.concat(t).map(function(e,t){return e=xt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ct(e){return V.isArray(e)&&!e.some(bt)}var wt=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function Tt(e,t,n){if(!V.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!s&&V.isBlob(e))throw new H(`Blob is not supported. Use a Buffer instead.`);return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(V.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&Ct(e)||(V.isFileList(e)||V.endsWith(n,`[]`))&&(s=V.toArray(e)))return n=xt(n),s.forEach(function(e,r){!(V.isUndefined(e)||e===null)&&t.append(o===!0?St([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return bt(e)?!0:(t.append(St(i,n,a),c(e)),!1)}let u=[],d=Object.assign(wt,{defaultVisitor:l,convertValue:c,isVisitable:bt});function f(e,n){if(!V.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),V.forEach(e,function(e,r){(!(V.isUndefined(e)||e===null)&&i.call(t,e,V.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!V.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function Et(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Dt(e,t){this._pairs=[],e&&Tt(e,this,t)}var Ot=Dt.prototype;Ot.append=function(e,t){this._pairs.push([e,t])},Ot.toString=function(e){let t=e?function(t){return e.call(this,t,Et)}:Et;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function kt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function At(e,t,n){if(!t)return e;let r=n&&n.encode||kt;V.isFunction(n)&&(n={serialize:n});let i=n&&n.serialize,a;if(a=i?i(t,n):V.isURLSearchParams(t)?t.toString():new Dt(t,n).toString(r),a){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}var jt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,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&&=[]}forEach(e){V.forEach(this.handlers,function(t){t!==null&&e(t)})}},Mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Dt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Pt=s({hasBrowserEnv:()=>Ft,hasStandardBrowserEnv:()=>Lt,hasStandardBrowserWebWorkerEnv:()=>Rt,navigator:()=>It,origin:()=>zt}),Ft=typeof window<`u`&&typeof document<`u`,It=typeof navigator==`object`&&navigator||void 0,Lt=Ft&&(!It||[`ReactNative`,`NativeScript`,`NS`].indexOf(It.product)<0),Rt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,zt=Ft&&window.location.href||`http://localhost`,U={...Pt,...Nt};function Bt(e,t){return Tt(e,new U.classes.URLSearchParams,{visitor:function(e,t,n,r){return U.isNode&&V.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Vt(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Ht(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Ut(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(r)?r.length:a,s?(V.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!V.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&V.isArray(r[a])&&(r[a]=Ht(r[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){let n={};return V.forEachEntry(e,(e,r)=>{t(Vt(e),r,n,0)}),n}return null}function Wt(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var W={transitional:Mt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(Ut(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Bt(e,this.formSerializer).toString();if((a=V.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return Tt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),Wt(e)):e}],transformResponse:[function(e){let t=this.transitional||W.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{W.headers[e]={}});var Gt=V.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`]),Kt=e=>{let t={},n,r,i;return e&&e.split(`
7
7
  `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Gt[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},qt=Symbol(`internals`);function G(e){return e&&String(e).trim().toLowerCase()}function Jt(e){return e===!1||e==null?e:V.isArray(e)?e.map(Jt):String(e)}function Yt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Xt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zt(e,t,n,r,i){if(V.isFunction(r))return r.call(this,t,n);if(i&&(t=n),V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function Qt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function $t(e,t){let n=V.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var K=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=G(t);if(!i)throw Error(`header name must be a non-empty string`);let a=V.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Jt(e))}let a=(e,t)=>V.forEach(e,(e,n)=>i(e,n,t));if(V.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(V.isString(e)&&(e=e.trim())&&!Xt(e))a(Kt(e),t);else if(V.isObject(e)&&V.isIterable(e)){let n={},r,i;for(let t of e){if(!V.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?V.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=G(e),e){let n=V.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Yt(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=G(e),e){let n=V.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Zt(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=G(e),e){let i=V.findKey(n,e);i&&(!t||Zt(n,n[i],i,t))&&(delete n[i],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Zt(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return V.forEach(this,(r,i)=>{let a=V.findKey(n,i);if(a){t[a]=Jt(r),delete t[i];return}let o=e?Qt(i):String(i).trim();o!==i&&delete t[i],t[o]=Jt(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return V.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&V.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
8
8
  `)}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,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[qt]=this[qt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=G(e);t[r]||($t(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}};K.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),V.reduceDescriptors(K.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),V.freezeMethods(K);function en(e,t){let n=this||W,r=t||n,i=K.from(r.headers),a=r.data;return V.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function tn(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){H.call(this,e??`canceled`,H.ERR_CANCELED,t,n),this.name=`CanceledError`}V.inherits(q,H,{__CANCEL__:!0});function nn(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H(`Request failed with status code `+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rn(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function an(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function on(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var sn=(e,t,n=3)=>{let r=0,i=an(50,250);return on(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},cn=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ln=e=>(...t)=>V.asap(()=>e(...t)),un=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,dn=U.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&s.push(`path=${r}`),V.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),V.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pn(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function mn(e,t,n){let r=!fn(t);return e&&(r||n==0)?pn(e,t):t}var hn=e=>e instanceof K?{...e}:e;function J(e,t){t||={};let n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,n,i){if(!V.isUndefined(t))return r(e,t,n,i);if(!V.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!V.isUndefined(t))return r(void 0,t)}function o(e,t){if(!V.isUndefined(t))return r(void 0,t);if(!V.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(hn(e),hn(t),n,!0)};return V.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||i,o=a(e[r],t[r],r);V.isUndefined(o)&&a!==s||(n[r]=o)}),n}var gn=e=>{let t=J({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=K.from(o),t.url=At(mn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),V.isFormData(n)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(V.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(U.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){let e=i&&a&&dn.read(a);e&&o.set(i,e)}return t},_n=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=gn(e),i=r.data,a=K.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=K.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());nn(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new H(`Request aborted`,H.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new H(t&&t.message?t.message:`Network Error`,H.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Mt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new H(t,i.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&V.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),V.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=sn(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=sn(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new q(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=rn(r.url);if(_&&U.protocols.indexOf(_)===-1){n(new H(`Unsupported protocol `+_+`:`,H.ERR_BAD_REQUEST,e));return}h.send(i||null)})},vn=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new q(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>V.asap(o),s}},yn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},bn=async function*(e,t){for await(let n of xn(e))yield*yn(n,t)},xn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Sn=(e,t,n,r)=>{let i=bn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Cn=64*1024,{isFunction:wn}=V,Tn=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:En,TextEncoder:Dn}=V.global,On=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kn=e=>{e=V.merge.call({skipUndefined:!0},Tn,e);let{fetch:t,Request:n,Response:r}=e,i=t?wn(t):typeof fetch==`function`,a=wn(n),o=wn(r);if(!i)return!1;let s=i&&wn(En),c=i&&(typeof Dn==`function`?(e=>t=>e.encode(t))(new Dn):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&On(()=>{let e=!1,t=new n(U.origin,{body:new En,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&On(()=>V.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new n(U.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e+=``),V.isString(e))return(await c(e)).byteLength},p=async(e,t)=>V.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=gn(e),ee=t||fetch;_=_?(_+``).toLowerCase():`text`;let x=vn([c,f&&f.toAbortSignal()],m),S=null,C=x&&x.unsubscribe&&(()=>{x.unsubscribe()}),te;try{if(g&&l&&o!==`get`&&o!==`head`&&(te=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(V.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=cn(te,sn(ln(g)));s=Sn(e.body,Cn,t,n)}}V.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:x,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};S=a&&new n(i,c);let f=await(a?ee(S,b):ee(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&C)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=V.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&cn(t,sn(ln(h),!0))||[];f=new r(Sn(f.body,Cn,n,()=>{i&&i(),C&&C()}),e)}_||=`text`;let w=await d[V.findKey(d,_)||`text`](f,e);return!m&&C&&C(),await new Promise((t,n)=>{nn(t,n,{data:w,headers:K.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:S})})}catch(t){throw C&&C(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new H(`Network Error`,H.ERR_NETWORK,e,S),{cause:t.cause||t}):H.from(t,t&&t.code,e,S)}}},An=new Map,jn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=An;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:kn(t)),l=c;return c};jn();var Mn={http:null,xhr:_n,fetch:{get:jn}};V.forEach(Mn,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Nn=e=>`- ${e}`,Pn=e=>V.isFunction(e)||e===null||e===!1;function Fn(e,t){e=V.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Pn(r)&&(i=Mn[(n=String(r)).toLowerCase()],i===void 0))throw new H(`Unknown adapter '${n}'`);if(i&&(V.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new H(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
9
9
  `+e.map(Nn).join(`
package/index.mjs CHANGED
@@ -441,13 +441,13 @@ var ue = "debug", E = () => {
441
441
  group: (e, t) => {
442
442
  if (E()) {
443
443
  let n = typeof e == "string" ? e : void 0;
444
- t ? console.group(n ? `<${t}> ${n}` : `<${t}>`) : console.group(n);
444
+ console.group(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
445
445
  }
446
446
  },
447
447
  groupCollapsed: (e, t) => {
448
448
  if (E()) {
449
449
  let n = typeof e == "string" ? e : void 0;
450
- t ? console.groupCollapsed(n ? `<${t}> ${n}` : `<${t}>`) : console.groupCollapsed(n);
450
+ console.groupCollapsed(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
451
451
  }
452
452
  },
453
453
  groupEnd: () => {
@@ -459,13 +459,13 @@ var ue = "debug", E = () => {
459
459
  time: (e, t) => {
460
460
  if (E()) {
461
461
  let n = typeof e == "string" ? e : void 0;
462
- t ? console.time(n ? `<${t}> ${n}` : `<${t}>`) : console.time(n);
462
+ console.time(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
463
463
  }
464
464
  },
465
465
  timeEnd: (e, t) => {
466
466
  if (E()) {
467
467
  let n = typeof e == "string" ? e : void 0;
468
- t ? console.timeEnd(n ? `<${t}> ${n}` : `<${t}>`) : console.timeEnd(n);
468
+ console.timeEnd(t ? n ? `<${t}> ${n}` : `<${t}>` : n);
469
469
  }
470
470
  }
471
471
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-storefront-react/currency-picker",
3
- "version": "1.0.4-next.13",
3
+ "version": "1.0.4-next.14",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -11,10 +11,10 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@haus-storefront-react/common-utils": "1.0.4-next.13",
15
- "@haus-storefront-react/core": "1.0.4-next.13",
16
- "@haus-storefront-react/hooks": "1.0.4-next.13",
17
- "@haus-storefront-react/shared-types": "1.0.4-next.13"
14
+ "@haus-storefront-react/common-utils": "1.0.4-next.14",
15
+ "@haus-storefront-react/core": "1.0.4-next.14",
16
+ "@haus-storefront-react/hooks": "1.0.4-next.14",
17
+ "@haus-storefront-react/shared-types": "1.0.4-next.14"
18
18
  },
19
19
  "publishConfig": {
20
20
  "access": "restricted"