@local-logic/sdks-app 1.3.1 → 1.3.3

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.
@@ -508,11 +508,11 @@ Url: ${lc(e)}`),!0)}function XR(e,t){return!t||!t.length?!1:JR(e).some(n=>t.some
508
508
  * LICENSE.md file in the root directory of this source tree.
509
509
  *
510
510
  * @license MIT
511
- */function En(){return En=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function Dm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function xz(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function I_(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function _z(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],I_(t.shift())):r[n]=I_(t.shift());return r}const wz=["children","location","__experimental__snapshot"],Ez=["location","__experimental__snapshot"],bz=["basepath","routes"],V$=f.exports.createContext(null),B$=f.exports.createContext(null),U$=f.exports.createContext(null),H$=Boolean(typeof window<"u"&&window.document&&window.document.createElement),Fm=H$?f.exports.useLayoutEffect:f.exports.useEffect,Sz=()=>H$?gz():yz();class b0{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class Cz extends b0{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Sz(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Iz,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Fz,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=En({},this.current,n.from),l=Dz(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=V_(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=Im(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:V_(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:Im(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function G$(e){return L(B$.Provider,{...e})}function Az(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=Dm(e,wz);const i=f.exports.useRef(null);i.current||(i.current=new Tz({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),Fm(()=>a.subscribe(()=>{l()}),[]),Fm(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(V$.Provider,{value:{location:n}},f.exports.createElement(U$.Provider,{value:{router:a}},L($z,{}),L(G$,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:L(S0,{})})))}function $z(){const e=pa(),t=Z$(),n=X$();return Fm(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Tz extends b0{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=Dm(t,Ez);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=Dm(s,bz);Object.assign(this,c),this.basepath=nf("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,_,y,g;const x=(m=v.path)!=null?m:"*",w=Qi([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=En({},v,{pendingMs:(_=v.pendingMs)!=null?_:c==null?void 0:c.defaultPendingMs,pendingMinMs:(y=v.pendingMinMs)!=null?y:c==null?void 0:c.defaultPendingMinMs,id:w}),this.routesById[w])throw new Error;return this.routesById[w]=v,v.children=(g=v.children)!=null&&g.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new j_(this,s);this.setState(p=>En({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>En({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new j_(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),Y$(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function pa(){const e=f.exports.useContext(V$);return Q$(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class Pz{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=En({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class j_ extends b0{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",Y$(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=q$(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new Pz(i)),this.router.matchCache[i.id]))}}function Y$(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=En({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function W$(){const e=f.exports.useContext(U$);if(!e)throw Q$(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function q$(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,_;const y=Qi([s,v.path]),g=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=Oz(t,{to:y,search:v.search,fuzzy:g,caseSensitive:(_=v.caseSensitive)!=null?_:e.caseSensitive});return x&&(l=En({},l,x)),!!x});if(!c)return;const d=z_(c.path,l);s=Qi([s,d]);const h={id:z_(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function z_(e,t,n){const r=Ys(e);return Qi(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function K$(){return f.exports.useContext(B$)}function kz(){var e;return(e=K$())==null?void 0:e[0]}function X$(){const e=pa(),t=kz(),n=Z$();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return J$(r)}function Z$(){const e=pa(),t=W$();return J$(r=>{const o=e.buildNext(t.basepath,r),a=q$(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,En({},r,{__searchFilters:a}))})}function S0(){var e;const t=W$(),[n,...r]=K$(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:L(S0,{})})();return L(G$,{value:r,children:a})}function Rz(){return pa().current.search}function Oz(e,t){const n=Nz(e,t),r=Lz(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function Q$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Mz(e){return typeof e=="function"}function V_(e,t){return Mz(e)?e(t):e}function Qi(e){return nf(e.filter(Boolean).join("/"))}function nf(e){return(""+e).replace(/\/{2,}/g,"/")}function Nz(e,t){var n;const r=Ys(e.pathname),o=Ys(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=Qi(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function Lz(e,t){return!!(t.search&&t.search(e.search))}function Ys(e){if(!e)return[];e=nf(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Dz(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Ys(t);const o=Ys(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=Qi([e,...r.map(a=>a.value)]);return nf(i)}function J$(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function Im(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||B_(e)&&B_(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=Im(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function B_(e){if(!U_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!U_(n)||!n.hasOwnProperty("isPrototypeOf"))}function U_(e){return Object.prototype.toString.call(e)==="[object Object]"}const Fz=jz(JSON.parse),Iz=zz(JSON.stringify);function jz(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=_z(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function zz(e){return t=>{t=En({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=xz(t).toString();return n?"?"+n:""}}function jm(e,t){return jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jm(e,t)}function Vz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jm(e,t)}var Bz=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},H_={error:null},Uz=function(e){Vz(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=H_,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(H_)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&Bz(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return L(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class rf{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const C0=typeof window>"u";function pn(){}function Hz(e,t){return typeof e=="function"?e(t):e}function Gz(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ep(e,t,n){return of(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function $r(e,t,n){return of(e)?[{...t,queryKey:e},n]:[e||{},t]}function G_(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(of(a)){if(r){if(t.queryHash!==A0(a,t.options))return!1}else if(!Oc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function Y_(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(of(i)){if(!t.options.mutationKey)return!1;if(n){if(To(t.options.mutationKey)!==To(i))return!1}else if(!Oc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function A0(e,t){return((t==null?void 0:t.queryKeyHashFn)||To)(e)}function To(e){return JSON.stringify(e,(t,n)=>zm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Oc(e,t){return eT(e,t)}function eT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!eT(e[n],t[n])):!1}function tT(e,t){if(e===t)return e;const n=W_(e)&&W_(t);if(n||zm(e)&&zm(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=tT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function aZ(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function W_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zm(e){if(!q_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!q_(n)||!n.hasOwnProperty("isPrototypeOf"))}function q_(e){return Object.prototype.toString.call(e)==="[object Object]"}function of(e){return Array.isArray(e)}function nT(e){return new Promise(t=>{setTimeout(t,e)})}function K_(e){nT(0).then(e)}function Wz(){if(typeof AbortController=="function")return new AbortController}function qz(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?tT(e,t):t}class Kz extends rf{constructor(){super(),this.setup=t=>{if(!C0&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Vm=new Kz;class Xz extends rf{constructor(){super(),this.setup=t=>{if(!C0&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Mc=new Xz;function Zz(e){return Math.min(1e3*2**e,3e4)}function $0(e){return(e!=null?e:"online")==="online"?Mc.isOnline():!0}class rT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function bp(e){return e instanceof rT}function oT(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((_,y)=>{i=_,a=y}),l=_=>{r||(h(new rT(_)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Vm.isFocused()||e.networkMode!=="always"&&!Mc.isOnline(),p=_=>{r||(r=!0,e.onSuccess==null||e.onSuccess(_),o==null||o(),i(_))},h=_=>{r||(r=!0,e.onError==null||e.onError(_),o==null||o(),a(_))},v=()=>new Promise(_=>{o=y=>{if(r||!d())return _(y)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let _;try{_=e.fn()}catch(y){_=Promise.reject(y)}Promise.resolve(_).then(p).catch(y=>{var g,x;if(r)return;const w=(g=e.retry)!=null?g:3,E=(x=e.retryDelay)!=null?x:Zz,b=typeof E=="function"?E(n,y):E,S=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!S){h(y);return}n++,e.onFail==null||e.onFail(n,y),nT(b).then(()=>{if(d())return v()}).then(()=>{t?h(y):m()})})};return $0(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const T0=console;function Qz(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):K_(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&K_(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Ct=Qz();class iT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gz(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:C0?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Jz extends iT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||T0,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||eV(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=qz(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Yz(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=Wz(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(bp(h)&&h.silent||this.dispatch({type:"error",error:h}),!bp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=oT({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:$0(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return bp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function eV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class tV extends rf{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:A0(i,n);let s=this.get(a);return s||(s=new Jz({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Ct.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=$r(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>G_(r,o))}findAll(t,n){const[r]=$r(t,n);return Object.keys(r).length>0?this.queries.filter(o=>G_(r,o)):this.queries}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ct.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ct.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class nV extends iT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||T0,this.observers=[],this.state=t.state||rV(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=oT({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const w=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,_,y,g;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(_=this.options).onError)==null?void 0:m.call(_,x,this.state.variables,this.state.context)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!$0(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function rV(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class oV extends rf{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new nV({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Ct.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Y_(t,n))}findAll(t){return this.mutations.filter(n=>Y_(t,n))}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Ct.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(pn)),Promise.resolve()))}}function iV(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const _=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),g=(b,S,C,T)=>(v=T?[S,...v]:[...v,S],T?[C,...b]:[...b,C]),x=(b,S,C,T)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const P={queryKey:e.queryKey,pageParam:C,meta:e.meta};_(P);const F=y(P);return Promise.resolve(F).then(W=>g(b,C,W,T))};let w;if(!p.length)w=x([]);else if(c){const b=typeof u<"u",S=b?u:X_(e.options,p);w=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:aV(e.options,p);w=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";w=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(g([],h[0],p[0]));for(let C=1;C<p.length;C++)w=w.then(T=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:X_(e.options,T);return x(T,b,F)}return Promise.resolve(g(T,h[C],p[C]))})}return w.then(b=>({pages:b,pageParams:v}))}}}}function X_(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function aV(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class sV{constructor(t={}){this.queryCache=t.queryCache||new tV,this.mutationCache=t.mutationCache||new oV,this.logger=t.logger||T0,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=Vm.subscribe(()=>{Vm.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Mc.subscribe(()=>{Mc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=$r(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=Hz(n,i);if(typeof a>"u")return;const s=Ep(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Ct.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=$r(t,n),o=this.queryCache;Ct.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=$r(t,n,r),a=this.queryCache,s={type:"active",...o};return Ct.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=$r(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Ct.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(pn).catch(pn)}invalidateQueries(t,n,r){const[o,i]=$r(t,n,r);return Ct.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=$r(t,n,r),a=Ct.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(pn);return i!=null&&i.throwOnError||(s=s.catch(pn)),s}fetchQuery(t,n,r){const o=Ep(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(pn).catch(pn)}fetchInfiniteQuery(t,n,r){const o=Ep(t,n,r);return o.behavior=iV(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(pn).catch(pn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>To(t)===To(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Oc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>To(t)===To(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Oc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=A0(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Z_=f.exports.createContext(void 0),aT=f.exports.createContext(!1);function sT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Z_),window.ReactQueryClientContext):Z_)}const sZ=({context:e}={})=>{const t=f.exports.useContext(sT(e,f.exports.useContext(aT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lV=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=sT(n,r);return L(aT.Provider,{value:!n&&r,children:L(o.Provider,{value:e,children:t})})},uV="modulepreload",cV=function(e){return"/sdks-app/v1/"+e},Q_={},Ji=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=cV(o),o in Q_)return;Q_[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":uV,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var Bm=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(Bm||{});const dV=new Cz,fV=J.lazy(()=>Ji(()=>import("./index.465d1ec4.js"),["assets/index.465d1ec4.js","assets/index.3a10cc5f.js","assets/index.08649806.css"])),pV=J.lazy(()=>Ji(()=>import("./index.1e974327.js"),["assets/index.1e974327.js","assets/index.3a10cc5f.js","assets/index.08649806.css"])),hV=({children:e})=>{const t=[{path:`/sdks-app/v1/${Bm.LOCAL_CONTENT}`,element:L(fV,{})},{path:`/sdks-app/v1/${Bm.DATA_EXPLORER}`,element:L(pV,{})}];return L(Az,{location:dV,routes:t,children:e})};var mV=Object.defineProperty,vV=(e,t,n)=>t in e?mV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gr=(e,t,n)=>(vV(e,typeof t!="symbol"?t+"":t,n),n);const gV="CONNECT",yV="DEFAULT";function xV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(_,y,g)=>y in _?n(_,y,{enumerable:!0,configurable:!0,writable:!0,value:g}):_[y]=g,s=(_,y)=>{for(var g in y||(y={}))o.call(y,g)&&a(_,g,y[g]);if(r)for(var g of r(y))i.call(y,g)&&a(_,g,y[g]);return _},l=_=>n(_,"__esModule",{value:!0}),u=(_,y)=>{l(_);for(var g in y)n(_,g,{get:y[g],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(_={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const T=`_${E}_dict_ranges`,P=this[T];Object.keys(P).forEach(F=>{const z=F;for(this.dictRange=P[z],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||p)=>{let b,S,C;if(E===null||typeof E>"u"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),T=this.randomUUID(S);return`${T.substr(0,C)}${b}${T.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const y=s(s({},h),_);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:g,shuffle:x,length:w}=y;return this.uuidLength=w,this.setDictionary(g,x),this.debug=y.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(lT);const _V=xV(lT.exports),J_=new _V({length:10});class P0{constructor(t,n){gr(this,"connection"),gr(this,"channelId"),gr(this,"boundMessageHandler"),gr(this,"onMessageHandlers",[]),gr(this,"resolveConnection"),gr(this,"channelNodeId"),gr(this,"crossOrigin"),gr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:yV,this.channelNodeId=`channel-node-${J_()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=J_();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(P0.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class wV extends P0{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(gV).then(t=>{this.resolveConnection(t)}),this.connection}}var EV="Expected a function",ew=1/0,bV=17976931348623157e292,tw=0/0,SV="[object Symbol]",CV=/^\s+|\s+$/g,AV=/^[-+]0x[0-9a-f]+$/i,$V=/^0b[01]+$/i,TV=/^0o[0-7]+$/i,PV=parseInt,kV=Object.prototype,RV=kV.toString;function OV(e,t){var n;if(typeof t!="function")throw new TypeError(EV);return e=FV(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function MV(e){return OV(2,e)}function nw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function NV(e){return!!e&&typeof e=="object"}function LV(e){return typeof e=="symbol"||NV(e)&&RV.call(e)==SV}function DV(e){if(!e)return e===0?e:0;if(e=IV(e),e===ew||e===-ew){var t=e<0?-1:1;return t*bV}return e===e?e:0}function FV(e){var t=DV(e),n=t%1;return t===t?n?t-n:t:0}function IV(e){if(typeof e=="number")return e;if(LV(e))return tw;if(nw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(CV,"");var n=$V.test(e);return n||TV.test(e)?PV(e.slice(2),n?2:8):AV.test(e)?tw:+e}var uT=MV;const Sp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Um(e,...t){if(!t.length)return e;const n=t.shift();return Sp(e)&&Sp(n)&&Object.keys(n).forEach(r=>{Sp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Um(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Um(e,...t)}const jV=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},zV=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var ja=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(ja||{});const VV={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},BV={},rw={locale:"en"},UV={"local-content":{globalOptions:rw,options:VV},"data-explorer":{globalOptions:rw,options:BV}},cT=uT(()=>J.createContext({})),dT=()=>{const e=J.useContext(cT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},fT=J.memo(({children:e})=>{const t=cT(),n=Rz(),r=J.useRef(n),i=pa().current.pathname.split("/"),a=i[i.length-1],s=UV[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=zV(d,500),v=X$(),m=x=>{r.current=x,p(x)},_=x=>{var w;x.name===ja.GET_STATE&&((w=l.current)==null||w.message(ja.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===ja.SET_STATE&&m(x.data)};jV(()=>{const x=new wV(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(_),x==null||x.connect().then(w=>{const E=Um(d,w.data);m(E),c(!0)})});const y=x=>{var w;(w=l.current)==null||w.message(ja.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&y({type:"options",data:d.options})},[d.options]);const g=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:y}),[d,m,y]);return u?L(t.Provider,{value:g,children:e}):null});fT.displayName="StateManagerProvider";const HV={en:()=>Ji(()=>import("./index.d464e7cf.js"),[]),fr:()=>Ji(()=>import("./index.e63e2d64.js"),[])},GV={en:()=>Ji(()=>import("./index.f4fcee01.js"),[]),fr:()=>Ji(()=>import("./index.130c24fb.js"),[])},YV={"local-content":e=>GV[e](),"data-explorer":e=>HV[e]()},pT=uT(()=>J.createContext({})),lZ=()=>{const e=f.exports.useContext(pT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},WV=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=dT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=pT(),u=pa().current.pathname.split("/"),c=u[u.length-1],d=YV[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return L(s.Provider,{value:{translations:r},children:e})};var qV=Object.defineProperty,KV=(e,t,n)=>t in e?qV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ls=(e,t,n)=>(KV(e,typeof t!="symbol"?t+"":t,n),n);function XV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hT={exports:{}},k0={exports:{}},mT=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},ZV=mT,uo=Object.prototype.toString;function R0(e){return Array.isArray(e)}function Hm(e){return typeof e>"u"}function QV(e){return e!==null&&!Hm(e)&&e.constructor!==null&&!Hm(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function vT(e){return uo.call(e)==="[object ArrayBuffer]"}function JV(e){return uo.call(e)==="[object FormData]"}function eB(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vT(e.buffer),t}function tB(e){return typeof e=="string"}function nB(e){return typeof e=="number"}function gT(e){return e!==null&&typeof e=="object"}function Pu(e){if(uo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function rB(e){return uo.call(e)==="[object Date]"}function oB(e){return uo.call(e)==="[object File]"}function iB(e){return uo.call(e)==="[object Blob]"}function yT(e){return uo.call(e)==="[object Function]"}function aB(e){return gT(e)&&yT(e.pipe)}function sB(e){return uo.call(e)==="[object URLSearchParams]"}function lB(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function uB(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function O0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),R0(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Gm(){var e={};function t(o,i){Pu(e[i])&&Pu(o)?e[i]=Gm(e[i],o):Pu(o)?e[i]=Gm({},o):R0(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)O0(arguments[n],t);return e}function cB(e,t,n){return O0(t,function(r,o){n&&typeof r=="function"?e[o]=ZV(r,n):e[o]=r}),e}function dB(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var jt={isArray:R0,isArrayBuffer:vT,isBuffer:QV,isFormData:JV,isArrayBufferView:eB,isString:tB,isNumber:nB,isObject:gT,isPlainObject:Pu,isUndefined:Hm,isDate:rB,isFile:oB,isBlob:iB,isFunction:yT,isStream:aB,isURLSearchParams:sB,isStandardBrowserEnv:uB,forEach:O0,merge:Gm,extend:cB,trim:lB,stripBOM:dB},Zo=jt;function ow(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xT=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Zo.isURLSearchParams(t))r=t.toString();else{var o=[];Zo.forEach(t,function(a,s){a===null||typeof a>"u"||(Zo.isArray(a)?s=s+"[]":a=[a],Zo.forEach(a,function(l){Zo.isDate(l)?l=l.toISOString():Zo.isObject(l)&&(l=JSON.stringify(l)),o.push(ow(s)+"="+ow(l))}))}),r=o.join("&")}if(r){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},fB=jt;function af(){this.handlers=[]}af.prototype.use=function(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};af.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};af.prototype.forEach=function(e){fB.forEach(this.handlers,function(t){t!==null&&e(t)})};var pB=af,hB=jt,mB=function(e,t){hB.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},_T=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},wT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cp,iw;function ET(){if(iw)return Cp;iw=1;var e=_T;return Cp=function(t,n,r,o,i){var a=new Error(t);return e(a,n,r,o,i)},Cp}var Ap,aw;function vB(){if(aw)return Ap;aw=1;var e=ET();return Ap=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(e("Request failed with status code "+r.status,r.config,null,r.request,r))},Ap}var $p,sw;function gB(){if(sw)return $p;sw=1;var e=jt;return $p=e.isStandardBrowserEnv()?function(){return{write:function(t,n,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),e.isString(o)&&s.push("path="+o),e.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),$p}var lw,uw;function yB(){return uw||(uw=1,lw=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),lw}var cw,dw;function xB(){return dw||(dw=1,cw=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),cw}var Tp,fw;function _B(){if(fw)return Tp;fw=1;var e=yB(),t=xB();return Tp=function(n,r){return n&&!e(r)?t(n,r):r},Tp}var Pp,pw;function wB(){if(pw)return Pp;pw=1;var e=jt,t=["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"];return Pp=function(n){var r={},o,i,a;return n&&e.forEach(n.split(`
511
+ */function En(){return En=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function Dm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function xz(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function I_(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function _z(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],I_(t.shift())):r[n]=I_(t.shift());return r}const wz=["children","location","__experimental__snapshot"],Ez=["location","__experimental__snapshot"],bz=["basepath","routes"],V$=f.exports.createContext(null),B$=f.exports.createContext(null),U$=f.exports.createContext(null),H$=Boolean(typeof window<"u"&&window.document&&window.document.createElement),Fm=H$?f.exports.useLayoutEffect:f.exports.useEffect,Sz=()=>H$?gz():yz();class b0{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class Cz extends b0{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||Sz(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Iz,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Fz,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=En({},this.current,n.from),l=Dz(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=V_(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=Im(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:V_(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:Im(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function G$(e){return L(B$.Provider,{...e})}function Az(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=Dm(e,wz);const i=f.exports.useRef(null);i.current||(i.current=new Tz({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),Fm(()=>a.subscribe(()=>{l()}),[]),Fm(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(V$.Provider,{value:{location:n}},f.exports.createElement(U$.Provider,{value:{router:a}},L($z,{}),L(G$,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:L(S0,{})})))}function $z(){const e=pa(),t=Z$(),n=X$();return Fm(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Tz extends b0{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=Dm(t,Ez);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=Dm(s,bz);Object.assign(this,c),this.basepath=nf("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,_,y,g;const x=(m=v.path)!=null?m:"*",w=Qi([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=En({},v,{pendingMs:(_=v.pendingMs)!=null?_:c==null?void 0:c.defaultPendingMs,pendingMinMs:(y=v.pendingMinMs)!=null?y:c==null?void 0:c.defaultPendingMinMs,id:w}),this.routesById[w])throw new Error;return this.routesById[w]=v,v.children=(g=v.children)!=null&&g.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new j_(this,s);this.setState(p=>En({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>En({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new j_(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),Y$(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function pa(){const e=f.exports.useContext(V$);return Q$(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class Pz{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=En({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class j_ extends b0{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",Y$(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=q$(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new Pz(i)),this.router.matchCache[i.id]))}}function Y$(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=En({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function W$(){const e=f.exports.useContext(U$);if(!e)throw Q$(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function q$(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,_;const y=Qi([s,v.path]),g=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=Oz(t,{to:y,search:v.search,fuzzy:g,caseSensitive:(_=v.caseSensitive)!=null?_:e.caseSensitive});return x&&(l=En({},l,x)),!!x});if(!c)return;const d=z_(c.path,l);s=Qi([s,d]);const h={id:z_(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function z_(e,t,n){const r=Ys(e);return Qi(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function K$(){return f.exports.useContext(B$)}function kz(){var e;return(e=K$())==null?void 0:e[0]}function X$(){const e=pa(),t=kz(),n=Z$();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return J$(r)}function Z$(){const e=pa(),t=W$();return J$(r=>{const o=e.buildNext(t.basepath,r),a=q$(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,En({},r,{__searchFilters:a}))})}function S0(){var e;const t=W$(),[n,...r]=K$(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:L(S0,{})})();return L(G$,{value:r,children:a})}function Rz(){return pa().current.search}function Oz(e,t){const n=Nz(e,t),r=Lz(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function Q$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Mz(e){return typeof e=="function"}function V_(e,t){return Mz(e)?e(t):e}function Qi(e){return nf(e.filter(Boolean).join("/"))}function nf(e){return(""+e).replace(/\/{2,}/g,"/")}function Nz(e,t){var n;const r=Ys(e.pathname),o=Ys(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=Qi(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function Lz(e,t){return!!(t.search&&t.search(e.search))}function Ys(e){if(!e)return[];e=nf(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Dz(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Ys(t);const o=Ys(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=Qi([e,...r.map(a=>a.value)]);return nf(i)}function J$(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function Im(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||B_(e)&&B_(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=Im(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function B_(e){if(!U_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!U_(n)||!n.hasOwnProperty("isPrototypeOf"))}function U_(e){return Object.prototype.toString.call(e)==="[object Object]"}const Fz=jz(JSON.parse),Iz=zz(JSON.stringify);function jz(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=_z(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function zz(e){return t=>{t=En({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=xz(t).toString();return n?"?"+n:""}}function jm(e,t){return jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jm(e,t)}function Vz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jm(e,t)}var Bz=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},H_={error:null},Uz=function(e){Vz(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=H_,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(H_)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&Bz(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return L(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class rf{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const C0=typeof window>"u";function pn(){}function Hz(e,t){return typeof e=="function"?e(t):e}function Gz(e){return typeof e=="number"&&e>=0&&e!==1/0}function Yz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ep(e,t,n){return of(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function $r(e,t,n){return of(e)?[{...t,queryKey:e},n]:[e||{},t]}function G_(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(of(a)){if(r){if(t.queryHash!==A0(a,t.options))return!1}else if(!Oc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function Y_(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(of(i)){if(!t.options.mutationKey)return!1;if(n){if(To(t.options.mutationKey)!==To(i))return!1}else if(!Oc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function A0(e,t){return((t==null?void 0:t.queryKeyHashFn)||To)(e)}function To(e){return JSON.stringify(e,(t,n)=>zm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Oc(e,t){return eT(e,t)}function eT(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!eT(e[n],t[n])):!1}function tT(e,t){if(e===t)return e;const n=W_(e)&&W_(t);if(n||zm(e)&&zm(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=tT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function aZ(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function W_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zm(e){if(!q_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!q_(n)||!n.hasOwnProperty("isPrototypeOf"))}function q_(e){return Object.prototype.toString.call(e)==="[object Object]"}function of(e){return Array.isArray(e)}function nT(e){return new Promise(t=>{setTimeout(t,e)})}function K_(e){nT(0).then(e)}function Wz(){if(typeof AbortController=="function")return new AbortController}function qz(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?tT(e,t):t}class Kz extends rf{constructor(){super(),this.setup=t=>{if(!C0&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Vm=new Kz;class Xz extends rf{constructor(){super(),this.setup=t=>{if(!C0&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Mc=new Xz;function Zz(e){return Math.min(1e3*2**e,3e4)}function $0(e){return(e!=null?e:"online")==="online"?Mc.isOnline():!0}class rT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function bp(e){return e instanceof rT}function oT(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((_,y)=>{i=_,a=y}),l=_=>{r||(h(new rT(_)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Vm.isFocused()||e.networkMode!=="always"&&!Mc.isOnline(),p=_=>{r||(r=!0,e.onSuccess==null||e.onSuccess(_),o==null||o(),i(_))},h=_=>{r||(r=!0,e.onError==null||e.onError(_),o==null||o(),a(_))},v=()=>new Promise(_=>{o=y=>{if(r||!d())return _(y)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let _;try{_=e.fn()}catch(y){_=Promise.reject(y)}Promise.resolve(_).then(p).catch(y=>{var g,x;if(r)return;const w=(g=e.retry)!=null?g:3,E=(x=e.retryDelay)!=null?x:Zz,b=typeof E=="function"?E(n,y):E,S=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!S){h(y);return}n++,e.onFail==null||e.onFail(n,y),nT(b).then(()=>{if(d())return v()}).then(()=>{t?h(y):m()})})};return $0(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const T0=console;function Qz(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):K_(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&K_(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Ct=Qz();class iT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gz(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:C0?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Jz extends iT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||T0,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||eV(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=qz(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Yz(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=Wz(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(bp(h)&&h.silent||this.dispatch({type:"error",error:h}),!bp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=oT({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:$0(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return bp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function eV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class tV extends rf{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:A0(i,n);let s=this.get(a);return s||(s=new Jz({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Ct.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=$r(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>G_(r,o))}findAll(t,n){const[r]=$r(t,n);return Object.keys(r).length>0?this.queries.filter(o=>G_(r,o)):this.queries}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ct.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ct.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class nV extends iT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||T0,this.observers=[],this.state=t.state||rV(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=oT({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const w=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,_,y,g;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(_=this.options).onError)==null?void 0:m.call(_,x,this.state.variables,this.state.context)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!$0(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ct.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function rV(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class oV extends rf{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new nV({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Ct.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Y_(t,n))}findAll(t){return this.mutations.filter(n=>Y_(t,n))}notify(t){Ct.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Ct.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(pn)),Promise.resolve()))}}function iV(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const _=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),g=(b,S,C,T)=>(v=T?[S,...v]:[...v,S],T?[C,...b]:[...b,C]),x=(b,S,C,T)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const P={queryKey:e.queryKey,pageParam:C,meta:e.meta};_(P);const F=y(P);return Promise.resolve(F).then(W=>g(b,C,W,T))};let w;if(!p.length)w=x([]);else if(c){const b=typeof u<"u",S=b?u:X_(e.options,p);w=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:aV(e.options,p);w=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";w=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(g([],h[0],p[0]));for(let C=1;C<p.length;C++)w=w.then(T=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:X_(e.options,T);return x(T,b,F)}return Promise.resolve(g(T,h[C],p[C]))})}return w.then(b=>({pages:b,pageParams:v}))}}}}function X_(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function aV(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class sV{constructor(t={}){this.queryCache=t.queryCache||new tV,this.mutationCache=t.mutationCache||new oV,this.logger=t.logger||T0,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=Vm.subscribe(()=>{Vm.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Mc.subscribe(()=>{Mc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=$r(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=Hz(n,i);if(typeof a>"u")return;const s=Ep(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Ct.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=$r(t,n),o=this.queryCache;Ct.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=$r(t,n,r),a=this.queryCache,s={type:"active",...o};return Ct.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=$r(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Ct.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(pn).catch(pn)}invalidateQueries(t,n,r){const[o,i]=$r(t,n,r);return Ct.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=$r(t,n,r),a=Ct.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(pn);return i!=null&&i.throwOnError||(s=s.catch(pn)),s}fetchQuery(t,n,r){const o=Ep(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(pn).catch(pn)}fetchInfiniteQuery(t,n,r){const o=Ep(t,n,r);return o.behavior=iV(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(pn).catch(pn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>To(t)===To(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Oc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>To(t)===To(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Oc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=A0(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Z_=f.exports.createContext(void 0),aT=f.exports.createContext(!1);function sT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Z_),window.ReactQueryClientContext):Z_)}const sZ=({context:e}={})=>{const t=f.exports.useContext(sT(e,f.exports.useContext(aT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lV=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=sT(n,r);return L(aT.Provider,{value:!n&&r,children:L(o.Provider,{value:e,children:t})})},uV="modulepreload",cV=function(e){return"/sdks-app/v1/"+e},Q_={},Ji=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=cV(o),o in Q_)return;Q_[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":uV,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var Bm=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(Bm||{});const dV=new Cz,fV=J.lazy(()=>Ji(()=>import("./index.70b9d59a.js"),["assets/index.70b9d59a.js","assets/index.593fd8da.js","assets/index.08649806.css"])),pV=J.lazy(()=>Ji(()=>import("./index.ee043df4.js"),["assets/index.ee043df4.js","assets/index.593fd8da.js","assets/index.08649806.css"])),hV=({children:e})=>{const t=[{path:`/sdks-app/v1/${Bm.LOCAL_CONTENT}`,element:L(fV,{})},{path:`/sdks-app/v1/${Bm.DATA_EXPLORER}`,element:L(pV,{})}];return L(Az,{location:dV,routes:t,children:e})};var mV=Object.defineProperty,vV=(e,t,n)=>t in e?mV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gr=(e,t,n)=>(vV(e,typeof t!="symbol"?t+"":t,n),n);const gV="CONNECT",yV="DEFAULT";function xV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(_,y,g)=>y in _?n(_,y,{enumerable:!0,configurable:!0,writable:!0,value:g}):_[y]=g,s=(_,y)=>{for(var g in y||(y={}))o.call(y,g)&&a(_,g,y[g]);if(r)for(var g of r(y))i.call(y,g)&&a(_,g,y[g]);return _},l=_=>n(_,"__esModule",{value:!0}),u=(_,y)=>{l(_);for(var g in y)n(_,g,{get:y[g],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(_={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const T=`_${E}_dict_ranges`,P=this[T];Object.keys(P).forEach(F=>{const z=F;for(this.dictRange=P[z],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||p)=>{let b,S,C;if(E===null||typeof E>"u"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),T=this.randomUUID(S);return`${T.substr(0,C)}${b}${T.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const y=s(s({},h),_);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:g,shuffle:x,length:w}=y;return this.uuidLength=w,this.setDictionary(g,x),this.debug=y.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(lT);const _V=xV(lT.exports),J_=new _V({length:10});class P0{constructor(t,n){gr(this,"connection"),gr(this,"channelId"),gr(this,"boundMessageHandler"),gr(this,"onMessageHandlers",[]),gr(this,"resolveConnection"),gr(this,"channelNodeId"),gr(this,"crossOrigin"),gr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:yV,this.channelNodeId=`channel-node-${J_()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=J_();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(P0.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class wV extends P0{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(gV).then(t=>{this.resolveConnection(t)}),this.connection}}var EV="Expected a function",ew=1/0,bV=17976931348623157e292,tw=0/0,SV="[object Symbol]",CV=/^\s+|\s+$/g,AV=/^[-+]0x[0-9a-f]+$/i,$V=/^0b[01]+$/i,TV=/^0o[0-7]+$/i,PV=parseInt,kV=Object.prototype,RV=kV.toString;function OV(e,t){var n;if(typeof t!="function")throw new TypeError(EV);return e=FV(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function MV(e){return OV(2,e)}function nw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function NV(e){return!!e&&typeof e=="object"}function LV(e){return typeof e=="symbol"||NV(e)&&RV.call(e)==SV}function DV(e){if(!e)return e===0?e:0;if(e=IV(e),e===ew||e===-ew){var t=e<0?-1:1;return t*bV}return e===e?e:0}function FV(e){var t=DV(e),n=t%1;return t===t?n?t-n:t:0}function IV(e){if(typeof e=="number")return e;if(LV(e))return tw;if(nw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(CV,"");var n=$V.test(e);return n||TV.test(e)?PV(e.slice(2),n?2:8):AV.test(e)?tw:+e}var uT=MV;const Sp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Um(e,...t){if(!t.length)return e;const n=t.shift();return Sp(e)&&Sp(n)&&Object.keys(n).forEach(r=>{Sp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Um(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Um(e,...t)}const jV=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},zV=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var ja=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(ja||{});const VV={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},BV={},rw={locale:"en"},UV={"local-content":{globalOptions:rw,options:VV},"data-explorer":{globalOptions:rw,options:BV}},cT=uT(()=>J.createContext({})),dT=()=>{const e=J.useContext(cT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},fT=J.memo(({children:e})=>{const t=cT(),n=Rz(),r=J.useRef(n),i=pa().current.pathname.split("/"),a=i[i.length-1],s=UV[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=zV(d,500),v=X$(),m=x=>{r.current=x,p(x)},_=x=>{var w;x.name===ja.GET_STATE&&((w=l.current)==null||w.message(ja.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===ja.SET_STATE&&m(x.data)};jV(()=>{const x=new wV(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(_),x==null||x.connect().then(w=>{const E=Um(d,w.data);m(E),c(!0)})});const y=x=>{var w;(w=l.current)==null||w.message(ja.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&y({type:"options",data:d.options})},[d.options]);const g=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:y}),[d,m,y]);return u?L(t.Provider,{value:g,children:e}):null});fT.displayName="StateManagerProvider";const HV={en:()=>Ji(()=>import("./index.d464e7cf.js"),[]),fr:()=>Ji(()=>import("./index.e63e2d64.js"),[])},GV={en:()=>Ji(()=>import("./index.f4fcee01.js"),[]),fr:()=>Ji(()=>import("./index.130c24fb.js"),[])},YV={"local-content":e=>GV[e](),"data-explorer":e=>HV[e]()},pT=uT(()=>J.createContext({})),lZ=()=>{const e=f.exports.useContext(pT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},WV=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=dT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=pT(),u=pa().current.pathname.split("/"),c=u[u.length-1],d=YV[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return L(s.Provider,{value:{translations:r},children:e})};var qV=Object.defineProperty,KV=(e,t,n)=>t in e?qV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ls=(e,t,n)=>(KV(e,typeof t!="symbol"?t+"":t,n),n);function XV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hT={exports:{}},k0={exports:{}},mT=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},ZV=mT,uo=Object.prototype.toString;function R0(e){return Array.isArray(e)}function Hm(e){return typeof e>"u"}function QV(e){return e!==null&&!Hm(e)&&e.constructor!==null&&!Hm(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function vT(e){return uo.call(e)==="[object ArrayBuffer]"}function JV(e){return uo.call(e)==="[object FormData]"}function eB(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vT(e.buffer),t}function tB(e){return typeof e=="string"}function nB(e){return typeof e=="number"}function gT(e){return e!==null&&typeof e=="object"}function Pu(e){if(uo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function rB(e){return uo.call(e)==="[object Date]"}function oB(e){return uo.call(e)==="[object File]"}function iB(e){return uo.call(e)==="[object Blob]"}function yT(e){return uo.call(e)==="[object Function]"}function aB(e){return gT(e)&&yT(e.pipe)}function sB(e){return uo.call(e)==="[object URLSearchParams]"}function lB(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function uB(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function O0(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),R0(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Gm(){var e={};function t(o,i){Pu(e[i])&&Pu(o)?e[i]=Gm(e[i],o):Pu(o)?e[i]=Gm({},o):R0(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)O0(arguments[n],t);return e}function cB(e,t,n){return O0(t,function(r,o){n&&typeof r=="function"?e[o]=ZV(r,n):e[o]=r}),e}function dB(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var jt={isArray:R0,isArrayBuffer:vT,isBuffer:QV,isFormData:JV,isArrayBufferView:eB,isString:tB,isNumber:nB,isObject:gT,isPlainObject:Pu,isUndefined:Hm,isDate:rB,isFile:oB,isBlob:iB,isFunction:yT,isStream:aB,isURLSearchParams:sB,isStandardBrowserEnv:uB,forEach:O0,merge:Gm,extend:cB,trim:lB,stripBOM:dB},Zo=jt;function ow(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xT=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Zo.isURLSearchParams(t))r=t.toString();else{var o=[];Zo.forEach(t,function(a,s){a===null||typeof a>"u"||(Zo.isArray(a)?s=s+"[]":a=[a],Zo.forEach(a,function(l){Zo.isDate(l)?l=l.toISOString():Zo.isObject(l)&&(l=JSON.stringify(l)),o.push(ow(s)+"="+ow(l))}))}),r=o.join("&")}if(r){var i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},fB=jt;function af(){this.handlers=[]}af.prototype.use=function(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};af.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};af.prototype.forEach=function(e){fB.forEach(this.handlers,function(t){t!==null&&e(t)})};var pB=af,hB=jt,mB=function(e,t){hB.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},_T=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},wT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cp,iw;function ET(){if(iw)return Cp;iw=1;var e=_T;return Cp=function(t,n,r,o,i){var a=new Error(t);return e(a,n,r,o,i)},Cp}var Ap,aw;function vB(){if(aw)return Ap;aw=1;var e=ET();return Ap=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(e("Request failed with status code "+r.status,r.config,null,r.request,r))},Ap}var $p,sw;function gB(){if(sw)return $p;sw=1;var e=jt;return $p=e.isStandardBrowserEnv()?function(){return{write:function(t,n,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),e.isString(o)&&s.push("path="+o),e.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),$p}var lw,uw;function yB(){return uw||(uw=1,lw=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),lw}var cw,dw;function xB(){return dw||(dw=1,cw=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),cw}var Tp,fw;function _B(){if(fw)return Tp;fw=1;var e=yB(),t=xB();return Tp=function(n,r){return n&&!e(r)?t(n,r):r},Tp}var Pp,pw;function wB(){if(pw)return Pp;pw=1;var e=jt,t=["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"];return Pp=function(n){var r={},o,i,a;return n&&e.forEach(n.split(`
512
512
  `),function(s){if(a=s.indexOf(":"),o=e.trim(s.substr(0,a)).toLowerCase(),i=e.trim(s.substr(a+1)),o){if(r[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([i]):r[o]=r[o]?r[o]+", "+i:i}}),r},Pp}var kp,hw;function EB(){if(hw)return kp;hw=1;var e=jt;return kp=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){var a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){var a=e.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),kp}var Rp,mw;function sf(){if(mw)return Rp;mw=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Rp=e,Rp}var Op,vw;function bB(){if(vw)return Op;vw=1;var e=jt,t=vB(),n=gB(),r=xT,o=_B(),i=wB(),a=EB(),s=ET(),l=wT,u=sf();return Op=function(c){return new Promise(function(d,p){var h=c.data,v=c.headers,m=c.responseType,_;function y(){c.cancelToken&&c.cancelToken.unsubscribe(_),c.signal&&c.signal.removeEventListener("abort",_)}e.isFormData(h)&&delete v["Content-Type"];var g=new XMLHttpRequest;if(c.auth){var x=c.auth.username||"",w=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var E=o(c.baseURL,c.url);g.open(c.method.toUpperCase(),r(E,c.params,c.paramsSerializer),!0),g.timeout=c.timeout;function b(){if(g){var C="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,T=!m||m==="text"||m==="json"?g.responseText:g.response,P={data:T,status:g.status,statusText:g.statusText,headers:C,config:c,request:g};t(function(F){d(F),y()},function(F){p(F),y()},P),g=null}}if("onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){!g||(p(s("Request aborted",c,"ECONNABORTED",g)),g=null)},g.onerror=function(){p(s("Network Error",c,null,g)),g=null},g.ontimeout=function(){var C=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",T=c.transitional||l;c.timeoutErrorMessage&&(C=c.timeoutErrorMessage),p(s(C,c,T.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},e.isStandardBrowserEnv()){var S=(c.withCredentials||a(E))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;S&&(v[c.xsrfHeaderName]=S)}"setRequestHeader"in g&&e.forEach(v,function(C,T){typeof h>"u"&&T.toLowerCase()==="content-type"?delete v[T]:g.setRequestHeader(T,C)}),e.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),m&&m!=="json"&&(g.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&g.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(_=function(C){!g||(p(!C||C&&C.type?new u("canceled"):C),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(_),c.signal&&(c.signal.aborted?_():c.signal.addEventListener("abort",_))),h||(h=null),g.send(h)})},Op}var ct=jt,gw=mB,SB=_T,CB=wT,AB={"Content-Type":"application/x-www-form-urlencoded"};function yw(e,t){!ct.isUndefined(e)&&ct.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function $B(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=bB()),e}function TB(e,t,n){if(ct.isString(e))try{return(t||JSON.parse)(e),ct.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var lf={transitional:CB,adapter:$B(),transformRequest:[function(e,t){return gw(t,"Accept"),gw(t,"Content-Type"),ct.isFormData(e)||ct.isArrayBuffer(e)||ct.isBuffer(e)||ct.isStream(e)||ct.isFile(e)||ct.isBlob(e)?e:ct.isArrayBufferView(e)?e.buffer:ct.isURLSearchParams(e)?(yw(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ct.isObject(e)||t&&t["Content-Type"]==="application/json"?(yw(t,"application/json"),TB(e)):e}],transformResponse:[function(e){var t=this.transitional||lf.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||r&&ct.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o)throw i.name==="SyntaxError"?SB(i,this,"E_JSON_PARSE"):i}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ct.forEach(["delete","get","head"],function(e){lf.headers[e]={}});ct.forEach(["post","put","patch"],function(e){lf.headers[e]=ct.merge(AB)});var M0=lf,PB=jt,kB=M0,RB=function(e,t,n){var r=this||kB;return PB.forEach(n,function(o){e=o.call(r,e,t)}),e},xw,_w;function bT(){return _w||(_w=1,xw=function(e){return!!(e&&e.__CANCEL__)}),xw}var ww=jt,Mp=RB,OB=bT(),MB=M0,NB=sf();function Np(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new NB("canceled")}var LB=function(e){Np(e),e.headers=e.headers||{},e.data=Mp.call(e,e.data,e.headers,e.transformRequest),e.headers=ww.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ww.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||MB.adapter;return t(e).then(function(n){return Np(e),n.data=Mp.call(e,n.data,n.headers,e.transformResponse),n},function(n){return OB(n)||(Np(e),n&&n.response&&(n.response.data=Mp.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},zt=jt,ST=function(e,t){t=t||{};var n={};function r(u,c){return zt.isPlainObject(u)&&zt.isPlainObject(c)?zt.merge(u,c):zt.isPlainObject(c)?zt.merge({},c):zt.isArray(c)?c.slice():c}function o(u){if(zt.isUndefined(t[u])){if(!zt.isUndefined(e[u]))return r(void 0,e[u])}else return r(e[u],t[u])}function i(u){if(!zt.isUndefined(t[u]))return r(void 0,t[u])}function a(u){if(zt.isUndefined(t[u])){if(!zt.isUndefined(e[u]))return r(void 0,e[u])}else return r(void 0,t[u])}function s(u){if(u in t)return r(e[u],t[u]);if(u in e)return r(void 0,e[u])}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return zt.forEach(Object.keys(e).concat(Object.keys(t)),function(u){var c=l[u]||o,d=c(u);zt.isUndefined(d)&&c!==s||(n[u]=d)}),n},Ew,bw;function CT(){return bw||(bw=1,Ew={version:"0.26.1"}),Ew}var DB=CT().version,N0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){N0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Sw={};N0.transitional=function(e,t,n){function r(o,i){return"[Axios v"+DB+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return function(o,i,a){if(e===!1)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!Sw[i]&&(Sw[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,a):!0}};function FB(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var IB={assertOptions:FB,validators:N0},AT=jt,jB=xT,Cw=pB,Aw=LB,uf=ST,$T=IB,Qo=$T.validators;function fl(e){this.defaults=e,this.interceptors={request:new Cw,response:new Cw}}fl.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=uf(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&$T.assertOptions(n,{silentJSONParsing:Qo.transitional(Qo.boolean),forcedJSONParsing:Qo.transitional(Qo.boolean),clarifyTimeoutError:Qo.transitional(Qo.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var a;if(!o){var s=[Aw,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(i),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var l=t;r.length;){var u=r.shift(),c=r.shift();try{l=u(l)}catch(d){c(d);break}}try{a=Aw(l)}catch(d){return Promise.reject(d)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};fl.prototype.getUri=function(e){return e=uf(this.defaults,e),jB(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};AT.forEach(["delete","get","head","options"],function(e){fl.prototype[e]=function(t,n){return this.request(uf(n||{},{method:e,url:t,data:(n||{}).data}))}});AT.forEach(["post","put","patch"],function(e){fl.prototype[e]=function(t,n,r){return this.request(uf(r||{},{method:e,url:t,data:n}))}});var zB=fl,Lp,$w;function VB(){if($w)return Lp;$w=1;var e=sf();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null}}),this.promise.then=function(i){var a,s=new Promise(function(l){o.subscribe(l),a=l}).then(i);return s.cancel=function(){o.unsubscribe(a)},s},n(function(i){o.reason||(o.reason=new e(i),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},t.source=function(){var n,r=new t(function(o){n=o});return{token:r,cancel:n}},Lp=t,Lp}var Tw,Pw;function BB(){return Pw||(Pw=1,Tw=function(e){return function(t){return e.apply(null,t)}}),Tw}var Dp,kw;function UB(){if(kw)return Dp;kw=1;var e=jt;return Dp=function(t){return e.isObject(t)&&t.isAxiosError===!0},Dp}var Rw=jt,HB=mT,ku=zB,GB=ST,YB=M0;function TT(e){var t=new ku(e),n=HB(ku.prototype.request,t);return Rw.extend(n,ku.prototype,t),Rw.extend(n,t),n.create=function(r){return TT(GB(e,r))},n}var zn=TT(YB);zn.Axios=ku;zn.Cancel=sf();zn.CancelToken=VB();zn.isCancel=bT();zn.VERSION=CT().version;zn.all=function(e){return Promise.all(e)};zn.spread=BB();zn.isAxiosError=UB();k0.exports=zn;k0.exports.default=zn;(function(e){e.exports=k0.exports})(hT);const PT=XV(hT.exports),WB=(e,t)=>PT.create({baseURL:{VITE_HERE_API_KEY:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE",VITE_API_KEY:"V3 fJThgHrWKzWZXfqwvpGdlx3d8ujnxmT3.d299c257-027b-46f6-b79b-4832b4475fc1",VITE_REACT_APP_MAPTILER_KEY:"9jNGatuzs05Q1oNlctEs",VITE_SEGMENT_KEY:"c0SISxJpICLXxstkrSppa4uxwYzBQbqf",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL||"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:e},params:t});var kT=(e=>(e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care",e))(kT||{});const qB="/pois";function Ho(e){this._maxSize=e,this.clear()}Ho.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ho.prototype.get=function(e){return this._values[e]};Ho.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var KB=/[^.^\]^[]+|(?=\[\]|\.\.)/g,RT=/^\d+$/,XB=/^\d/,ZB=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,QB=/^\s*(['"]?)(.*?)(\1)\s*$/,L0=512,Ow=new Ho(L0),Mw=new Ho(L0),Nw=new Ho(L0),Oo={Cache:Ho,split:Ym,normalizePath:Fp,setter:function(e){var t=Fp(e);return Mw.get(e)||Mw.set(e,function(n,r){for(var o=0,i=t.length,a=n;o<i-1;){var s=t[o];if(s==="__proto__"||s==="constructor"||s==="prototype")return n;a=a[t[o++]]}a[t[o]]=r})},getter:function(e,t){var n=Fp(e);return Nw.get(e)||Nw.set(e,function(r){for(var o=0,i=n.length;o<i;)if(r!=null||!t)r=r[n[o++]];else return;return r})},join:function(e){return e.reduce(function(t,n){return t+(D0(n)||RT.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){JB(Array.isArray(e)?e:Ym(e),t,n)}};function Fp(e){return Ow.get(e)||Ow.set(e,Ym(e).map(function(t){return t.replace(QB,"$2")}))}function Ym(e){return e.match(KB)||[""]}function JB(e,t,n){var r=e.length,o,i,a,s;for(i=0;i<r;i++)o=e[i],o&&(nU(o)&&(o='"'+o+'"'),s=D0(o),a=!s&&/^\d+$/.test(o),t.call(n,o,s,a,i,e))}function D0(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function eU(e){return e.match(XB)&&!e.match(RT)}function tU(e){return ZB.test(e)}function nU(e){return!D0(e)&&(eU(e)||tU(e))}const rU=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,cf=e=>e.match(rU)||[],df=e=>e[0].toUpperCase()+e.slice(1),F0=(e,t)=>cf(e).join(t).toLowerCase(),OT=e=>cf(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),oU=e=>df(OT(e)),iU=e=>F0(e,"_"),aU=e=>F0(e,"-"),sU=e=>df(F0(e," ")),lU=e=>cf(e).map(df).join(" ");var Ip={words:cf,upperFirst:df,camelCase:OT,pascalCase:oU,snakeCase:iU,kebabCase:aU,sentenceCase:sU,titleCase:lU},I0={exports:{}};I0.exports=function(e){return MT(uU(e),e)};I0.exports.array=MT;function MT(e,t){var n=e.length,r=new Array(n),o={},i=n,a=cU(t),s=dU(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,d){if(d.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch(m){p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var h=a.get(u)||new Set;if(h=Array.from(h),c=h.length){d.add(u);do{var v=h[--c];l(v,s.get(v),d)}while(c);d.delete(u)}r[--n]=u}}}function uU(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function cU(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function dU(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}const fU=Object.prototype.toString,pU=Error.prototype.toString,hU=RegExp.prototype.toString,mU=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",vU=/^Symbol\((.*)\)(.*)$/;function gU(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Lw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return gU(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return mU.call(e).replace(vU,"Symbol($1)");const r=fU.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+pU.call(e)+"]":r==="RegExp"?hU.call(e):null}function Mo(e,t){let n=Lw(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=Lw(this[r],t);return i!==null?i:o},2)}function NT(e){return e==null?[]:[].concat(e)}let yU=/\$\{\s*(\w+)\s*\}/g;class Rt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(yU,(o,i)=>Mo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],NT(t).forEach(i=>{Rt.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Rt)}}let Gn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Mo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Mo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Mo(n,!0)}\``+o}},dn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},wr={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Wm={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},qm={isValue:"${path} field must be ${value}"},Km={noUnknown:"${path} field has unspecified keys: ${unknown}"},Ru={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Gn,string:dn,number:wr,date:Wm,object:Km,array:Ru,boolean:qm});const ff=e=>e&&e.__isYupSchema__;class Nc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new Nc(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!ff(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}function xU(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const nu={context:"$",value:"."};class Xn{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===nu.context,this.isValue=this.key[0]===nu.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?nu.context:this.isValue?nu.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Oo.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Xn.prototype.__isYupRef=!0;const tn=e=>e==null,_U=["value","path","label","options","originalValue","spec","sync"];function Jo(e){function t(n,r,o){let{value:i,path:a="",label:s,options:l,originalValue:u,spec:c,sync:d}=n,p=xU(n,_U);const{name:h,test:v,params:m,message:_,skipAbsent:y}=e;let{parent:g,context:x,abortEarly:w=p.schema.spec.abortEarly}=l;function E(H){return Xn.isRef(H)?H.getValue(i,g,x):H}function b(H={}){const ee=Object.assign({value:i,originalValue:u,label:s,path:H.path||a,spec:c},m,H.params);for(const se of Object.keys(ee))ee[se]=E(ee[se]);const ce=new Rt(Rt.formatError(H.message||_,ee),i,ee.path,H.type||h);return ce.params=ee,ce}const S=w?r:o;let C=Object.assign({path:a,parent:g,type:h,createError:b,resolve:E,options:l,originalValue:u},p);const T=H=>{Rt.isError(H)?S(H):H?o(null):S(b())},P=H=>{Rt.isError(H)?S(H):r(H)},F=y&&tn(i);if(!d){try{Promise.resolve(F?!0:v.call(C,i,C)).then(T,P)}catch(H){P(H)}return}let z;try{var W;if(z=F?!0:v.call(C,i,C),typeof((W=z)==null?void 0:W.then)=="function")throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(H){P(H);return}T(z)}return t.OPTIONS=e,t}let wU=e=>e.substr(0,e.length-1).substr(1);function EU(e,t,n,r=n){let o,i,a;return t?(Oo.forEach(t,(s,l,u)=>{let c=l?wU(s):s;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Lc{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(Xn.isRef(r)?t(r):r),[])}add(t){Xn.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){Xn.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new Lc;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(o=>r.add(o)),t.refs.forEach(o=>r.add(o)),n.list.forEach(o=>r.delete(o)),n.refs.forEach(o=>r.delete(o)),r}}function wi(e,t=new Map){if(ff(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=wi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,wi(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(wi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=wi(o,t)}else throw Error(`Unable to clone ${e}`);return n}class Yt{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Lc,this._blacklist=new Lc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Gn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=wi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&tn(i))return i;let a=Mo(t),s=Mo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
513
513
 
514
514
  attempted value: ${a}
515
- `+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,o){let{sync:i,path:a,from:s=[],originalValue:l=t,strict:u=this.spec.strict}=n,c=t;u||(c=this._cast(c,Object.assign({assert:!1},n)));let d={value:c,path:a,options:n,originalValue:l,schema:this,label:this.spec.label,spec:this.spec,sync:i,from:s},p=[];for(let h of Object.values(this.internalTests))h&&p.push(h);this.runTests({args:d,value:c,tests:p},r,h=>{if(h.length)return o(h,c);this.runTests({args:d,value:c,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,args:a,value:s}=t,l=p=>{o||(o=!0,n(p,s))},u=p=>{o||(o=!0,r(p,s))},c=i.length,d=[];if(!c)return u([]);for(let p=0;p<i.length;p++){const h=i[p];h(a,l,function(v){v&&(d=d.concat(v)),--c<=0&&u(d)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const s=t!=null?t:n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=r[s];const c=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${o||""}[${u?s:`"${s}"`}]`:(o?`${o}.`:"")+t});return(d,p,h)=>this.resolve(c)._validate(u,c,p,h)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((o,i)=>r._validate(t,n,(a,s)=>{Rt.isError(a)&&(a.value=s),i(a)},(a,s)=>{a.length?i(new Rt(a,s)):o(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),o;return r._validate(t,Object.assign({},n,{sync:!0}),(i,a)=>{throw Rt.isError(i)&&(i.value=a),i},(i,a)=>{if(i.length)throw new Rt(i,t);o=a}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rt.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):wi(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Jo({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Jo({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Gn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Gn.notNull){return this.nullability(!1,t)}required(t=Gn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Gn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Jo(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=NT(t).map(i=>new Xn(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Nc(o,n):Nc.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Jo({message:t,name:"typeError",test(r){return!tn(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=Gn.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Jo({message:n,name:"oneOf",test(o){if(o===void 0)return!0;let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:a}})}}),r}notOneOf(t,n=Gn.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Jo({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:i.toArray().join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,l,u)=>u.findIndex(c=>c.name===s.name)===l)}}}Yt.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Yt.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=EU(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Yt.prototype[e]=Yt.prototype.oneOf;for(const e of["not","nope"])Yt.prototype[e]=Yt.prototype.notOneOf;function LT(){return new DT}class DT extends Yt{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=qm.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return tn(n)||n===!0}})}isFalse(t=qm.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return tn(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}LT.prototype=DT.prototype;let bU=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,SU=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,CU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,AU=e=>tn(e)||e===e.trim(),$U={}.toString();function Ni(){return new FT}class FT extends Yt{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===$U?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Gn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=dn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=dn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=dn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=dn.email){return this.matches(bU,{name:"email",message:t,excludeEmptyString:!0})}url(t=dn.url){return this.matches(SU,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=dn.uuid){return this.matches(CU,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=dn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:AU})}lowercase(t=dn.lowercase){return this.transform(n=>tn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>tn(n)||n===n.toLowerCase()})}uppercase(t=dn.uppercase){return this.transform(n=>tn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>tn(n)||n===n.toUpperCase()})}}Ni.prototype=FT.prototype;let TU=e=>e!=+e;function it(){return new IT}class IT extends Yt{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!TU(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)?o:parseFloat(o)})})}min(t,n=wr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=wr.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=wr.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=wr.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=wr.positive){return this.moreThan(0,t)}negative(t=wr.negative){return this.lessThan(0,t)}integer(t=wr.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>tn(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>tn(o)?o:Math[t](o))}}it.prototype=IT.prototype;var PU=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function kU(e){var t=[1,4,5,6,7,10,11],n=0,r,o;if(o=PU.exec(e)){for(var i=0,a;a=t[i];++i)o[a]=+o[a]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[7]=o[7]?String(o[7]).substr(0,3):0,(o[8]===void 0||o[8]==="")&&(o[9]===void 0||o[9]==="")?r=+new Date(o[1],o[2],o[3],o[4],o[5],o[6],o[7]):(o[8]!=="Z"&&o[9]!==void 0&&(n=o[10]*60+o[11],o[9]==="+"&&(n=0-n)),r=Date.UTC(o[1],o[2],o[3],o[4],o[5]+n,o[6],o[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let RU=new Date(""),OU=e=>Object.prototype.toString.call(e)==="[object Date]";class pf extends Yt{constructor(){super({type:"date",check(t){return OU(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=kU(t),isNaN(t)?pf.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Xn.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Wm.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Wm.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}pf.INVALID_DATE=RU;pf.prototype;function MU(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Oo.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Xn.isRef(s)&&s.isSibling?i(s.path,a):ff(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return I0.exports.array(Array.from(r),n).reverse()}function Dw(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function jT(e){return(t,n)=>Dw(e,t)-Dw(e,n)}const zT=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch(o){}return n.isType(r)?r:e};function Ou(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ou(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ou(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ou)}):"optional"in e?e.optional():e}const NU=(e,t)=>{const n=[...Oo.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Oo.getter(Oo.join(n),!0)(e);return!!(o&&r in o)};let Fw=e=>Object.prototype.toString.call(e)==="[object Object]";function LU(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const DU=jT([]);function Go(e){return new VT(e)}class VT extends Yt{constructor(t){super({type:"object",check(n){return Fw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=DU,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault();if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const d of s){let p=i[d],h=d in o;if(p){let v,m=o[d];u.path=(n.path?`${n.path}.`:"")+d,p=p.resolve({value:m,context:n.context,parent:l});let _=p instanceof Yt?p.spec:void 0,y=_==null?void 0:_.strict;if(_!=null&&_.strip){c=c||d in o;continue}v=!n.__validating||!y?p.cast(o[d],u):o[d],v!==void 0&&(l[d]=v)}else h&&!a&&(l[d]=o[d]);(h!==d in l||l[d]!==o[d])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!Fw(u)){o(l,u);return}a=a||u;let c=[];for(let d of this._nodes){let p=this.fields[d];!p||Xn.isRef(p)||c.push(p.asNestedTest({options:n,key:d,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u},r,d=>{o(d.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="getDefault"in r?r.getDefault():void 0}),t}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=MU(t,n),r._sortErrors=jT(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ou(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let o=Oo.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return NU(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(zT)}noUnknown(t=!0,n=Km.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=LU(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Km.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Ip.camelCase)}snakeCase(){return this.transformKeys(Ip.snakeCase)}constantCase(){return this.transformKeys(t=>Ip.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[o,i]of Object.entries(this.fields)){var r;let a=t;(r=a)!=null&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),n.fields[o]=i.describe(a)}return n}}Go.prototype=VT.prototype;function us(e){return new BT(e)}class BT extends Yt{constructor(t){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,u)=>{if(!s||!a||!this._typeCheck(u)){o(l,u);return}let c=new Array(u.length);for(let p=0;p<u.length;p++){var d;c[p]=a.asNestedTest({options:n,index:p,parent:u,parentPath:n.path,originalParent:(d=n.originalValue)!=null?d:t})}this.runTests({value:u,tests:c},r,p=>o(p.concat(l),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(zT)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!ff(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Mo(t));return n.innerType=t,n}length(t,n=Ru.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||Ru.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||Ru.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){let n=super.describe();if(this.innerType){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=this.innerType.describe(t)}return n}}us.prototype=BT.prototype;const FU=new RegExp(`(${Object.keys(kT).filter(e=>Number.isNaN(Number(e))).join("|")})`),IU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:it().max(30),radius:it().max(25e3),include:us().of(Ni().matches(FU,"Must be a valid Score category.").required()).required()}),jU=e=>async t=>{const n=await IU.validate(t),{lat:r,lng:o,limit:i,radius:a,include:s}=n;return(await e.get(qB,{params:{lat:r,lng:o,limit:i,radius:a,include:s==null?void 0:s.join(",")}})).data.data};var UT=(e=>(e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e))(UT||{});const zU="/scores",VU=new RegExp(`(${Object.keys(UT).filter(e=>Number.isNaN(Number(e))).join("|")})`),BU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:us().of(Ni().required()),geographyLevels:us().of(Ni().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:LT(),include:us().of(Ni().matches(VU,"Must be a valid Score category.").required())}),UU=e=>async t=>{const n=await BU.validate(t),{lat:r,lng:o,include:i,geographyIds:a,geographyLevels:s,locationScoresRounding:l=!0}=n;return(await e.get(zU,{params:{lat:r,lng:o,include:i==null?void 0:i.join(","),geography_levels:s==null?void 0:s.join(","),geography_ids:a==null?void 0:a.join(","),location_scores_rounding:l?".5":"none"}})).data.data},HU="/schools",GU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:it().max(30,"Must use a limit between 1 and 30."),radius:it().max(25e3,"Must use a radius between 1 and 25000.")}),YU=e=>async t=>{const n=await GU.validate(t),{lat:r,lng:o,limit:i,radius:a}=n;return(await e.get(HU,{params:{lat:r,lng:o,limit:i,radius:a}})).data.data},WU="/profiles",qU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:Ni()}),KU=e=>async t=>{const n=await qU.validate(t),{lat:r,lng:o,geogId:i}=n;return(await e.get(WU,{params:{lat:r,lng:o,geog_id:i}})).data.data},XU="/geographies",ZU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required()}),QU=e=>async t=>{const n=await ZU.validate(t),{lat:r,lng:o}=n;return(await e.get(XU,{params:{lat:r,lng:o}})).data.data},JU="/demographics",eH=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:it().max(5e3)}),tH=e=>async t=>{const n=await eH.validate(t),{lat:r,lng:o,radius:i}=n;return(await e.get(JU,{params:{lat:r,lng:o,radius:i}})).data.data.attributes},j0="LocalLogicClient/";class nH extends Error{constructor({message:t}){super(t),this.name=j0+this.constructor.name}}class rH extends Error{constructor({message:t,response:n}){super(t),ls(this,"statusCode"),ls(this,"statusText"),ls(this,"data"),this.name=j0+this.constructor.name,this.statusCode=n==null?void 0:n.status,this.statusText=n==null?void 0:n.statusText,this.data=n==null?void 0:n.data}}class oH extends Error{constructor({message:t}){super(t),this.name=j0+this.constructor.name}}const Iw=e=>{throw e instanceof Rt?new nH(e):PT.isAxiosError(e)?new rH(e):new oH(e)},ha=(e,t,n)=>{const r=n.value;return n.value=function(...o){try{const i=r.apply(this,o);return i&&i instanceof Promise?i.catch(a=>{Iw(a)}):i}catch(i){Iw(i)}},n};var iH=Object.defineProperty,aH=Object.getOwnPropertyDescriptor,ma=(e,t,n,r)=>{for(var o=r>1?void 0:r?aH(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(r?a(t,n,o):a(o))||o);return r&&o&&iH(t,n,o),o};class Yo{constructor(t,n={locale:"en"}){ls(this,"requests"),ls(this,"options"),this.requests=WB(t,n),this.options=n}getPois(t){return jU(this.requests)(t)}getScores(t){return UU(this.requests)(t)}getSchools(t){return YU(this.requests)(t)}getProfiles(t){return KU(this.requests)(t)}getGeographies(t){return QU(this.requests)(t)}getDemographics(t){return tH(this.requests)(t)}}ma([ha],Yo.prototype,"getPois",1);ma([ha],Yo.prototype,"getScores",1);ma([ha],Yo.prototype,"getSchools",1);ma([ha],Yo.prototype,"getProfiles",1);ma([ha],Yo.prototype,"getGeographies",1);ma([ha],Yo.prototype,"getDemographics",1);const sH=(e,t)=>new Yo(e,t);var hf={exports:{}},Oa={};/**
515
+ `+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,o){let{sync:i,path:a,from:s=[],originalValue:l=t,strict:u=this.spec.strict}=n,c=t;u||(c=this._cast(c,Object.assign({assert:!1},n)));let d={value:c,path:a,options:n,originalValue:l,schema:this,label:this.spec.label,spec:this.spec,sync:i,from:s},p=[];for(let h of Object.values(this.internalTests))h&&p.push(h);this.runTests({args:d,value:c,tests:p},r,h=>{if(h.length)return o(h,c);this.runTests({args:d,value:c,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,args:a,value:s}=t,l=p=>{o||(o=!0,n(p,s))},u=p=>{o||(o=!0,r(p,s))},c=i.length,d=[];if(!c)return u([]);for(let p=0;p<i.length;p++){const h=i[p];h(a,l,function(v){v&&(d=d.concat(v)),--c<=0&&u(d)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const s=t!=null?t:n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=r[s];const c=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${o||""}[${u?s:`"${s}"`}]`:(o?`${o}.`:"")+t});return(d,p,h)=>this.resolve(c)._validate(u,c,p,h)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((o,i)=>r._validate(t,n,(a,s)=>{Rt.isError(a)&&(a.value=s),i(a)},(a,s)=>{a.length?i(new Rt(a,s)):o(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),o;return r._validate(t,Object.assign({},n,{sync:!0}),(i,a)=>{throw Rt.isError(i)&&(i.value=a),i},(i,a)=>{if(i.length)throw new Rt(i,t);o=a}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rt.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):wi(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Jo({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Jo({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Gn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Gn.notNull){return this.nullability(!1,t)}required(t=Gn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Gn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Jo(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=NT(t).map(i=>new Xn(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Nc(o,n):Nc.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Jo({message:t,name:"typeError",test(r){return!tn(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=Gn.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Jo({message:n,name:"oneOf",test(o){if(o===void 0)return!0;let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:a}})}}),r}notOneOf(t,n=Gn.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Jo({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:i.toArray().join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(s=>({name:s.OPTIONS.name,params:s.OPTIONS.params})).filter((s,l,u)=>u.findIndex(c=>c.name===s.name)===l)}}}Yt.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Yt.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=EU(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Yt.prototype[e]=Yt.prototype.oneOf;for(const e of["not","nope"])Yt.prototype[e]=Yt.prototype.notOneOf;function LT(){return new DT}class DT extends Yt{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=qm.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return tn(n)||n===!0}})}isFalse(t=qm.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return tn(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}LT.prototype=DT.prototype;let bU=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,SU=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,CU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,AU=e=>tn(e)||e===e.trim(),$U={}.toString();function Ni(){return new FT}class FT extends Yt{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===$U?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Gn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=dn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=dn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=dn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=dn.email){return this.matches(bU,{name:"email",message:t,excludeEmptyString:!0})}url(t=dn.url){return this.matches(SU,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=dn.uuid){return this.matches(CU,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=dn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:AU})}lowercase(t=dn.lowercase){return this.transform(n=>tn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>tn(n)||n===n.toLowerCase()})}uppercase(t=dn.uppercase){return this.transform(n=>tn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>tn(n)||n===n.toUpperCase()})}}Ni.prototype=FT.prototype;let TU=e=>e!=+e;function it(){return new IT}class IT extends Yt{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!TU(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)?o:parseFloat(o)})})}min(t,n=wr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=wr.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=wr.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=wr.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=wr.positive){return this.moreThan(0,t)}negative(t=wr.negative){return this.lessThan(0,t)}integer(t=wr.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>tn(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>tn(o)?o:Math[t](o))}}it.prototype=IT.prototype;var PU=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function kU(e){var t=[1,4,5,6,7,10,11],n=0,r,o;if(o=PU.exec(e)){for(var i=0,a;a=t[i];++i)o[a]=+o[a]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[7]=o[7]?String(o[7]).substr(0,3):0,(o[8]===void 0||o[8]==="")&&(o[9]===void 0||o[9]==="")?r=+new Date(o[1],o[2],o[3],o[4],o[5],o[6],o[7]):(o[8]!=="Z"&&o[9]!==void 0&&(n=o[10]*60+o[11],o[9]==="+"&&(n=0-n)),r=Date.UTC(o[1],o[2],o[3],o[4],o[5]+n,o[6],o[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let RU=new Date(""),OU=e=>Object.prototype.toString.call(e)==="[object Date]";class pf extends Yt{constructor(){super({type:"date",check(t){return OU(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=kU(t),isNaN(t)?pf.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Xn.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=Wm.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=Wm.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}pf.INVALID_DATE=RU;pf.prototype;function MU(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=Oo.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Xn.isRef(s)&&s.isSibling?i(s.path,a):ff(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return I0.exports.array(Array.from(r),n).reverse()}function Dw(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function jT(e){return(t,n)=>Dw(e,t)-Dw(e,n)}const zT=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch(o){}return n.isType(r)?r:e};function Ou(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ou(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ou(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ou)}):"optional"in e?e.optional():e}const NU=(e,t)=>{const n=[...Oo.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Oo.getter(Oo.join(n),!0)(e);return!!(o&&r in o)};let Fw=e=>Object.prototype.toString.call(e)==="[object Object]";function LU(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const DU=jT([]);function Go(e){return new VT(e)}class VT extends Yt{constructor(t){super({type:"object",check(n){return Fw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=DU,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault();if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(d=>!this._nodes.includes(d))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const d of s){let p=i[d],h=d in o;if(p){let v,m=o[d];u.path=(n.path?`${n.path}.`:"")+d,p=p.resolve({value:m,context:n.context,parent:l});let _=p instanceof Yt?p.spec:void 0,y=_==null?void 0:_.strict;if(_!=null&&_.strip){c=c||d in o;continue}v=!n.__validating||!y?p.cast(o[d],u):o[d],v!==void 0&&(l[d]=v)}else h&&!a&&(l[d]=o[d]);(h!==d in l||l[d]!==o[d])&&(c=!0)}return c?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!Fw(u)){o(l,u);return}a=a||u;let c=[];for(let d of this._nodes){let p=this.fields[d];!p||Xn.isRef(p)||c.push(p.asNestedTest({options:n,key:d,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u},r,d=>{o(d.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="getDefault"in r?r.getDefault():void 0}),t}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=MU(t,n),r._sortErrors=jT(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ou(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let o=Oo.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return NU(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(zT)}noUnknown(t=!0,n=Km.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=LU(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Km.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(Ip.camelCase)}snakeCase(){return this.transformKeys(Ip.snakeCase)}constantCase(){return this.transformKeys(t=>Ip.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[o,i]of Object.entries(this.fields)){var r;let a=t;(r=a)!=null&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[o]})),n.fields[o]=i.describe(a)}return n}}Go.prototype=VT.prototype;function us(e){return new BT(e)}class BT extends Yt{constructor(t){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,u)=>{if(!s||!a||!this._typeCheck(u)){o(l,u);return}let c=new Array(u.length);for(let p=0;p<u.length;p++){var d;c[p]=a.asNestedTest({options:n,index:p,parent:u,parentPath:n.path,originalParent:(d=n.originalValue)!=null?d:t})}this.runTests({value:u,tests:c},r,p=>o(p.concat(l),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(zT)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!ff(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Mo(t));return n.innerType=t,n}length(t,n=Ru.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||Ru.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||Ru.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){let n=super.describe();if(this.innerType){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=this.innerType.describe(t)}return n}}us.prototype=BT.prototype;const FU=new RegExp(`(${Object.keys(kT).filter(e=>Number.isNaN(Number(e))).join("|")})`),IU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:it().max(30),radius:it().max(25e3),include:us().of(Ni().matches(FU,"Must be a valid Score category.").required()).required()}),jU=e=>async t=>{const n=await IU.validate(t),{lat:r,lng:o,limit:i,radius:a,include:s}=n,l=await e.get(qB,{params:{lat:r,lng:o,limit:i,radius:a,include:s==null?void 0:s.join(",")}}),u=s.reduce((c,d)=>({...c,[d]:[]}),{});return l.data.data||u};var UT=(e=>(e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e))(UT||{});const zU="/scores",VU=new RegExp(`(${Object.keys(UT).filter(e=>Number.isNaN(Number(e))).join("|")})`),BU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:us().of(Ni().required()),geographyLevels:us().of(Ni().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:LT(),include:us().of(Ni().matches(VU,"Must be a valid Score category.").required())}),UU=e=>async t=>{const n=await BU.validate(t),{lat:r,lng:o,include:i,geographyIds:a,geographyLevels:s,locationScoresRounding:l=!0}=n;return(await e.get(zU,{params:{lat:r,lng:o,include:i==null?void 0:i.join(","),geography_levels:s==null?void 0:s.join(","),geography_ids:a==null?void 0:a.join(","),location_scores_rounding:l?".5":"none"}})).data.data},HU="/schools",GU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:it().max(30,"Must use a limit between 1 and 30."),radius:it().max(25e3,"Must use a radius between 1 and 25000.")}),YU=e=>async t=>{const n=await GU.validate(t),{lat:r,lng:o,limit:i,radius:a}=n;return(await e.get(HU,{params:{lat:r,lng:o,limit:i,radius:a}})).data.data},WU="/profiles",qU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:Ni()}),KU=e=>async t=>{const n=await qU.validate(t),{lat:r,lng:o,geogId:i}=n;return(await e.get(WU,{params:{lat:r,lng:o,geog_id:i}})).data.data},XU="/geographies",ZU=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required()}),QU=e=>async t=>{const n=await ZU.validate(t),{lat:r,lng:o}=n;return(await e.get(XU,{params:{lat:r,lng:o}})).data.data},JU="/demographics",eH=Go({lat:it().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:it().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:it().max(5e3)}),tH=e=>async t=>{const n=await eH.validate(t),{lat:r,lng:o,radius:i}=n;return(await e.get(JU,{params:{lat:r,lng:o,radius:i}})).data.data.attributes},j0="LocalLogicClient/";class nH extends Error{constructor({message:t}){super(t),this.name=j0+this.constructor.name}}class rH extends Error{constructor({message:t,response:n}){super(t),ls(this,"statusCode"),ls(this,"statusText"),ls(this,"data"),this.name=j0+this.constructor.name,this.statusCode=n==null?void 0:n.status,this.statusText=n==null?void 0:n.statusText,this.data=n==null?void 0:n.data}}class oH extends Error{constructor({message:t}){super(t),this.name=j0+this.constructor.name}}const Iw=e=>{throw e instanceof Rt?new nH(e):PT.isAxiosError(e)?new rH(e):new oH(e)},ha=(e,t,n)=>{const r=n.value;return n.value=function(...o){try{const i=r.apply(this,o);return i&&i instanceof Promise?i.catch(a=>{Iw(a)}):i}catch(i){Iw(i)}},n};var iH=Object.defineProperty,aH=Object.getOwnPropertyDescriptor,ma=(e,t,n,r)=>{for(var o=r>1?void 0:r?aH(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(r?a(t,n,o):a(o))||o);return r&&o&&iH(t,n,o),o};class Yo{constructor(t,n={locale:"en"}){ls(this,"requests"),ls(this,"options"),this.requests=WB(t,n),this.options=n}getPois(t){return jU(this.requests)(t)}getScores(t){return UU(this.requests)(t)}getSchools(t){return YU(this.requests)(t)}getProfiles(t){return KU(this.requests)(t)}getGeographies(t){return QU(this.requests)(t)}getDemographics(t){return tH(this.requests)(t)}}ma([ha],Yo.prototype,"getPois",1);ma([ha],Yo.prototype,"getScores",1);ma([ha],Yo.prototype,"getSchools",1);ma([ha],Yo.prototype,"getProfiles",1);ma([ha],Yo.prototype,"getGeographies",1);ma([ha],Yo.prototype,"getDemographics",1);const sH=(e,t)=>new Yo(e,t);var hf={exports:{}},Oa={};/**
516
516
  * @license React
517
517
  * react-jsx-runtime.production.min.js
518
518
  *
@@ -1,4 +1,4 @@
1
- import{g as fa,c as la,n as ca,f as ha,S as pa,u as Ue,b as da,s as ga,p as ma,i as ya,k as va,m as wa,N as xa,P as Sa}from"./index.3a10cc5f.js";import{R as _a,u as qn,r as re,j as w,s as L,y as b,U as Yn,b as D,i as zt,a1 as ba,q as Ea,c as Pe,d as je,g as Oe,O as Ra,A as pt,T as Kt,e as Ta,a2 as Aa,F as Xt,k as jn,a3 as Ca,a4 as $n,a5 as Ne}from"./index.c6852ed8.js";const Wn=_a.createContext({}),xe=()=>re.exports.useContext(Wn),Oa=({children:l})=>{var h,E;const{sdkState:y}=qn(),[d,v]=re.exports.useReducer((k,N)=>({...k,...N}),{location:{lat:((h=y.options)==null?void 0:h.lat)||43.661337,lng:((E=y.options)==null?void 0:E.lng)||-79.401903},scores:{checked:!1,include:[]},pois:{checked:!1,include:[],radius:5e3,limit:15},schools:{checked:!1,radius:5e3,limit:15},demographics:{checked:!1,radius:2500},profiles:{checked:!1}}),m=re.exports.useMemo(()=>({dataExplorerState:d,setDataExplorerState:v}),[d,v]);return w(Wn.Provider,{value:m,children:l})},Fa=L.div`
1
+ import{g as fa,c as la,n as ca,f as ha,S as pa,u as Ue,b as da,s as ga,p as ma,i as ya,k as va,m as wa,N as xa,P as Sa}from"./index.593fd8da.js";import{R as _a,u as qn,r as re,j as w,s as L,y as b,U as Yn,b as D,i as zt,a1 as ba,q as Ea,c as Pe,d as je,g as Oe,O as Ra,A as pt,T as Kt,e as Ta,a2 as Aa,F as Xt,k as jn,a3 as Ca,a4 as $n,a5 as Ne}from"./index.a71b3d5e.js";const Wn=_a.createContext({}),xe=()=>re.exports.useContext(Wn),Oa=({children:l})=>{var h,E;const{sdkState:y}=qn(),[d,v]=re.exports.useReducer((k,N)=>({...k,...N}),{location:{lat:((h=y.options)==null?void 0:h.lat)||43.661337,lng:((E=y.options)==null?void 0:E.lng)||-79.401903},scores:{checked:!1,include:[]},pois:{checked:!1,include:[],radius:5e3,limit:15},schools:{checked:!1,radius:5e3,limit:15},demographics:{checked:!1,radius:2500},profiles:{checked:!1}}),m=re.exports.useMemo(()=>({dataExplorerState:d,setDataExplorerState:v}),[d,v]);return w(Wn.Provider,{value:m,children:l})},Fa=L.div`
2
2
  height: 100vh;
3
3
  display: flex;
4
4
  flex-direction: column;
package/dist/index.html CHANGED
@@ -23,7 +23,7 @@
23
23
  <link rel="manifest" href="data:application/manifest+json;base64,eyJuYW1lIjoiIiwic2hvcnRfbmFtZSI6IiIsImljb25zIjpbeyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtMTkyeDE5Mi5wbmciLCJzaXplcyI6IjE5MngxOTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn0seyJzcmMiOiIvYW5kcm9pZC1jaHJvbWUtNTEyeDUxMi5wbmciLCJzaXplcyI6IjUxMng1MTIiLCJ0eXBlIjoiaW1hZ2UvcG5nIn1dLCJ0aGVtZV9jb2xvciI6IiNmZmZmZmYiLCJiYWNrZ3JvdW5kX2NvbG9yIjoiI2ZmZmZmZiIsImRpc3BsYXkiOiJzdGFuZGFsb25lIn0=" />
24
24
  <meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0" />
25
25
  <title>Local Logic</title>
26
- <script type="module" crossorigin src="/sdks-app/v1/assets/index.c6852ed8.js"></script>
26
+ <script type="module" crossorigin src="/sdks-app/v1/assets/index.a71b3d5e.js"></script>
27
27
  <script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
28
28
  <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
29
29
  </head>
@@ -33,6 +33,6 @@
33
33
 
34
34
  <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
35
35
  <script nomodule crossorigin id="vite-legacy-polyfill" src="/sdks-app/v1/assets/polyfills-legacy.9624f473.js"></script>
36
- <script nomodule crossorigin id="vite-legacy-entry" data-src="/sdks-app/v1/assets/index-legacy.008d8ab5.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
36
+ <script nomodule crossorigin id="vite-legacy-entry" data-src="/sdks-app/v1/assets/index-legacy.2a39163e.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
37
37
  </body>
38
38
  </html>
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@local-logic/sdks-app",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "main": "dist/types/index.js",
5
5
  "typings": "dist/types/index.d.ts",
6
6
  "files": [
7
7
  "dist/**"
8
8
  ],
9
9
  "dependencies": {
10
- "@local-logic/channel": "1.1.0",
11
- "@local-logic/client": "1.0.0",
12
- "@local-logic/elements-react": "1.0.1",
10
+ "@local-logic/channel": "1.1.1",
11
+ "@local-logic/client": "1.0.1",
12
+ "@local-logic/elements-react": "1.0.2",
13
13
  "@radix-ui/react-accordion": "^1.0.0",
14
14
  "@radix-ui/react-select": "^1.0.0",
15
15
  "@segment/analytics-next": "^1.44.0",