(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630585,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationSearchUrlConfig=function({query:e,language:t,locationType:o,countryCode:r,adminDistrictCode:n}){let a={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return o&&(a.locationType=o),r&&(a.countryCode=r),n&&(a.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:a}},o.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:o,canonicalCityId:r,language:n}){let a={language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(a.geocode=e),t&&(a.locid=t),o&&(a.placeid=o),r&&(a.canonicalCityId=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:a}}},678651,(e,t,o)=>{"use strict";function r(e){let t=new URLSearchParams;for(let[o,r]of Object.entries(e))void 0!==r&&t.append(o,r);return t}Object.defineProperty(o,"__esModule",{value:!0}),o.queryStringToSearchParams=r,o.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let o=new URL(`https://${e}`);return Object.assign(o,{...t,hostname:e}),t.query&&(o.search=r(t.query).toString()),o}},414655,(e,t,o)=>{"use strict";async function r(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error(`Invalid JSON response: ${e.message}`)}}Object.defineProperty(o,"__esModule",{value:!0}),o.handleFetchResponse=r},330091,(e,t,o)=>{"use strict";var r,n;Object.defineProperty(o,"__esModule",{value:!0}),o.ErrInvalidCanonicalCityID=o.ErrInvalidPlaceID=o.ErrInvalidPartialLocID9=o.ErrInvalidPartialLocID1=o.ErrInvalidUSZipCode=o.ErrInvalidLocID=o.ErrInvalidLatOrLong=o.ErrInvalidGeocode=o.ErrInvalid=o.LocationError=o.RegExpCanonicalCityID=o.RegExpPlaceID=o.RegExpPartialLocID9=o.RegExpPartialLocID1=o.RegExpUSZipCode=o.RegExpLocID=o.RegExpGeocode=o.LocationTypeMap=o.LocationType=void 0,o.valid=l,o.normalized=function(e,t){switch(t){case r.Geocode:return f(e);case r.LocID:return g(e);case r.USZipCode:return m(e);case r.PartialLocID1:return y(e);case r.PartialLocID9:return h(e);case r.PlaceID:return v(e);case r.CanonicalCityID:return I(e);default:return e}},o.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=d(t),c))if(e.regex.test(t))return{type:e.type,locId:e.normalize(t)};return null},o.locIdFromSeoPhrase=d,o.normalizedGeocode=f,o.parseLatLonFromGeocode=function(e){let t=f(e).split(",");if(2!==t.length||!t[0]||!t[1])throw o.ErrInvalidGeocode;let r=parseFloat(t[0].trim()),n=parseFloat(t[1].trim());if(isNaN(r)||isNaN(n))throw o.ErrInvalidGeocode;return[r,n]},o.normalizeLatOrLong=p,o.normalizedLocID=g,o.normalizedUSZipCode=m,o.normalizedPartialLocID1=y,o.normalizedPartialLocID9=h,o.normalizedPlaceID=v,o.normalizedCanonicalCityID=I,o.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(n=r||(o.LocationType=r={}))[n.Geocode=0]="Geocode",n[n.LocID=1]="LocID",n[n.USZipCode=2]="USZipCode",n[n.PartialLocID1=3]="PartialLocID1",n[n.PartialLocID9=4]="PartialLocID9",n[n.PlaceID=5]="PlaceID",n[n.CanonicalCityID=6]="CanonicalCityID",o.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId"},o.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let a=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27))?(:\w{2})?$/;o.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27):\w{2}$/,o.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,o.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,o.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,o.RegExpPlaceID=/^([0-9a-f]){32,}$/,o.RegExpCanonicalCityID=o.RegExpPlaceID;class i extends Error{constructor(e){super(e),this.name="LocationError"}}function l(e,t){switch(t){case r.Geocode:return o.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case r.LocID:return o.RegExpLocID.test(e);case r.USZipCode:return o.RegExpUSZipCode.test(e);case r.PartialLocID1:return o.RegExpPartialLocID1.test(e);case r.PartialLocID9:return o.RegExpPartialLocID9.test(e);case r.PlaceID:return o.RegExpPlaceID.test(e);case r.CanonicalCityID:return o.RegExpCanonicalCityID.test(e);default:return!1}}o.LocationError=i,o.ErrInvalid=new i("location: invalid location"),o.ErrInvalidGeocode=new i("location: invalid location: invalid geocode"),o.ErrInvalidLatOrLong=new i("location: invalid location: invalid latitude or longitude"),o.ErrInvalidLocID=new i("location: invalid location: invalid locid"),o.ErrInvalidUSZipCode=new i("location: invalid location: invalid US zip code"),o.ErrInvalidPartialLocID1=new i("location: invalid location: invalid partial locid type 1"),o.ErrInvalidPartialLocID9=new i("location: invalid location: invalid partial locid type 9"),o.ErrInvalidPlaceID=new i("location: invalid location: invalid placeid"),o.ErrInvalidCanonicalCityID=new i("location: invalid location: invalid canonical city ID");let c=[{regex:o.RegExpGeocode,type:o.LocationTypeMap.Geocode,normalize:f},{regex:o.RegExpLocID,type:o.LocationTypeMap.LocID,normalize:g},{regex:o.RegExpUSZipCode,type:o.LocationTypeMap.USZipCode,normalize:m},{regex:o.RegExpPartialLocID1,type:o.LocationTypeMap.PartialLocID1,normalize:y},{regex:o.RegExpPartialLocID9,type:o.LocationTypeMap.PartialLocID9,normalize:h},{regex:o.RegExpPlaceID,type:o.LocationTypeMap.PlaceID,normalize:v},{regex:o.RegExpCanonicalCityID,type:o.LocationTypeMap.CanonicalCityID,normalize:I}],s=/-/,u=/\s/;function d(e){let t=e;if(a.test(e))if(s.test(e)){let o=e.split("-").pop();o&&(t=o)}else if(u.test(e)){let o=e.split(" ").pop();o&&(t=o)}else{let o=e.split("+").pop();o&&(t=o)}return t}function f(e){if(""===e||!l(e,r.Geocode))throw o.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw o.ErrInvalidGeocode;try{for(let e=0;e{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationPointByPlaceId=l,o.getLocationPointByGeocode=c,o.getLocationPointByLocIdParam=s,o.getLocationPointByCanonicalCityId=u;let r=e.r(630585),n=e.r(678651),a=e.r(414655),i=e.r(330091);async function l(e,t){let o=(0,n.urlFrom)((0,r.getLocationPointUrlConfig)({placeId:e,language:t})),i=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}async function c(e,t){let o=(0,n.urlFrom)((0,r.getLocationPointUrlConfig)({geocode:e,language:t})),i=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}async function s(e,t){let o=(0,i.testLocId)(e);if(!o)throw Error("Not a valid locId or type supported");let l=(0,n.urlFrom)((0,r.getLocationPointUrlConfig)({[o.type]:o.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(c)}async function u(e,t){let o=(0,n.urlFrom)((0,r.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),i=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(i)}},295553,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["pageLocationDataAtom",0,t])},335355,e=>{"use strict";var t=e.i(751931),o=e.i(889753);let r=(0,t.atom)(e=>e(o.userPreferencesAtom)?.locale||"en_US");(0,t.atom)(e=>e(r).split("_")[0]);let n=(0,t.atom)(e=>e(r).split("_")[1]);e.s(["userCountryAtom",0,n,"userLocaleAtom",0,r])},405052,935807,919101,e=>{"use strict";function t(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[o,r]=t,n=parseFloat(o||"0").toFixed(2),a=parseFloat(r||"0").toFixed(2);return`${n},${a}`}function o(e,t=[],r=!1,n="US",i){let l,c=t.find(t=>t.placeID===e.placeId);if(c&&r){let t=c.userTag||c.name;if(t&&"Other"!==t){let o=e.displayName,r=a(e,n,"");if(t!==o&&t!==r)return t}}if(e?.disputedCountries)l=e.displayName||"";else{switch(e?.type){case"address":l=e?.address?.split(",")[0]?.trim()||"";break;case"city":l=e?.locale?.locale2||"";break;case"locality":l=e?.locale?.locale3||"";break;case"neighborhood":l=e?.locale?.locale4||"";break;case"airport":l=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",o=e?.postalCode||"";l=i?`${t} ${o}`.trim():`${t}`.trim();break}default:l=e?.displayName||""}0===l.length&&(l=e?.displayName||"")}return l}function r(e,t=[],o=!1,n="US",i){let l,c=t.find(t=>t.placeID===e.placeId);if(c&&o){let t=c.userTag||c.name;if(t&&"Other"!==t){let o=e.displayName,r=a(e,n,"");if(t!==o&&t!==r)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let o=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,o].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",r=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${r}`.trim(),o].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}}}(e,n)}}if(e?.disputedCountries)l=e?.displayName||"";else{let t=n===e?.countryCode?"":e?.country||"",o=e?.adminDistrict||"",r=e?.postalCode||"",a=e.city||"";switch(e?.type){case"address":l=[a,o,t].filter(Boolean).join(", ");break;case"city":default:l=[o,t].filter(Boolean).join(", ");break;case"locality":l=[e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"neighborhood":l=[e?.locale?.locale3||e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"postal":{let n=o||e?.locale?.locale2||"";l=[i?`${n} ${r}`.trim():n,t].filter(Boolean).join(", ")}}}return l}function n(e,t=[],a=!1,i="US"){let l=o(e,t,a,i,!1),c=r(e,t,a,i,!0),s=e?.separator?e?.separator:l&&c?", ":"";return`${l}${s}${c}`.trim()}function a(e,t,o){let{displayName:r,adminDistrictCode:n,adminDistrict:a,countryCode:i,disputedArea:l,country:c}=e,s=[];return r&&s.push(r),"IL"!==t&&(n?s.push(n):a&&s.push(a)),i!==t&&!1===l&&c&&s.push(c),s.join(o)}e.s(["formatGeocode",()=>t],405052),e.s(["getLocationContext",()=>r,"getLocationName",()=>o,"getLocationPresentationName",()=>n],935807),e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let o=t.find(t=>t.placeId===e.placeId);return o?{...e,displayName:o.address,address:o.address}:e}],919101)},472737,579310,427309,77323,e=>{"use strict";var t,o=e.i(477716),r=e.i(475566),n=e.i(381477),a=e.i(751931),i=e.i(889753);let l=(0,e.i(834354).focusAtom)(i.userPreferencesAtom,e=>e.prop("locations")),c=(0,a.atom)(e=>e(i.userPreferencesAtom)?.locations||[]);(0,a.atom)(e=>{let t=e(l);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,a.atom)(e=>e(l)?.length||!1),e.s(["userLocationsAtom",0,l,"userLocationsGetAtom",0,c],579310);var s=e.i(310847),u=e.i(391451);let d=(0,u.getCookie)("twc-location-geocode")?.toString()||null,f=(0,a.atom)(d),p=(0,u.getCookie)("twc-location-country")?.toString()||null,g=(0,a.atom)(p);e.s(["geoipCountry",0,g,"geoipGeocode",0,f],427309);var m=e.i(343277),y=e.i(295553),h=e.i(375570),v=e.i(405052),I=e.i(695881),L=e.i(233601);let E=(0,I.createLogger)("getGeolocationAPIGeocode");async function C(e=1e4){try{let t=sessionStorage.getItem("wxu-web/key-val:html5Geolocation");if(t){let{latitude:e,longitude:o,timestamp:r,permissionDenied:n}=JSON.parse(t),a=Date.now()-r;if(n&&anavigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:r}=e.coords;sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:o,longitude:r,permissionDenied:!1,timestamp:Date.now()})),t({latitude:o,longitude:r})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),o(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){E.error("getGeolocationAPIGeocode error: ",e)}}var x=e.i(333350);let b=(0,I.createLogger)("geolocationApi");(0,a.atom)(async()=>{try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){b.error(e)}});let P=(0,a.atom)(async()=>{if(!x.default)return;let e=await C();if(e?.latitude&&e?.longitude)return(0,v.formatGeocode)(`${e?.latitude},${e?.longitude}`)}),w=(0,a.atom)(void 0),D=(0,a.atom)(e=>{let t=e((0,L.loadable)(P));return"hasData"===t.state?t.data:void 0});var R=e.i(528600),S=e.i(935807),N=e.i(335355);function j(){let e=(0,r.useAtomValue)(c),t=(0,r.useAtomValue)(N.userLocaleAtom),n=t?.slice(3)||"US",{user:a}=(0,R.useUser)(),i=a.isUserLoggedIn;return(0,o.useMemo)(()=>({getLocationName:(t,o)=>(0,S.getLocationName)(t,e,i,n,o),getLocationContext:(t,o)=>(0,S.getLocationContext)(t,e,i,n,o),getLocationPresentationName:t=>(0,S.getLocationPresentationName)(t,e,i,n)}),[])}e.s(["usePresentationName",()=>j],77323);var A=e.i(919101),O=((t={}).PREFER_FAVORITES="preferFavorites",t.PREFER_RECENT="preferRecent",t);function U({location:e,fallbackOrder:t="preferFavorites"}={}){let a=(0,h.useParams)(),i=a?.locale,c=(0,o.useMemo)(()=>e,[e?.placeId,e?.geocode,e?.address]),u=(0,r.useAtomValue)(y.pageLocationDataAtom),d=(0,r.useAtomValue)(l),p=(0,r.useAtomValue)(s.wxuUserRecentLocationsAtom),g=!a?.locId&&!c&&!d?.length&&!p?.length,I=(0,r.useAtomValue)(g?D:w),L=(0,r.useAtomValue)(f),E=Array.isArray(d)&&d.length>0?d[0]?.coordinate:null,C=Array.isArray(p)&&p.length>0?p[0]:null,x="preferFavorites"===t,b="preferRecent"===t,P=e=>(0,m.getLocationPointByGeocode)(e,i),{data:R,error:S,isLoading:N}=(0,n.default)(!c&&E&&(x||b&&!C)?["/v3/location/point",E]:null,()=>E?P(E):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:O,error:$,isLoading:_}=(0,n.default)(!c&&C&&(b||x&&!E)?["/v3/location/point",C]:null,()=>C?(0,m.getLocationPointByPlaceId)(C,i):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:T,error:F,isLoading:k}=(0,n.default)(g&&I?["/v3/location/point",I]:null,()=>I?P(I):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:G,error:z,isLoading:M}=(0,n.default)(c||!L||E||C||I?null:["/v3/location/point",L],()=>L?P(L):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{fromLocationPoint:B}=function(){let{getLocationName:e,getLocationContext:t,getLocationPresentationName:o}=j(),n=(0,r.useAtomValue)(s.wxuUserRecentAddressesAtom);return{fromLocationPoint:r=>{let a=(0,A.getAddressForLocationData)(r.location,n);return{displayName:a.displayName,adminDistrict:a.adminDistrict,geocode:(0,v.formatGeocode)(`${a.latitude},${a.longitude}`),placeId:a.placeId,city:a.city,countryCode:a.countryCode,adminDistrictCode:a.adminDistrictCode||"",presentationName:o(a),name:e(a),context:t(a),ianaTimeZone:a.ianaTimeZone,postalCode:a.postalCode,address:a.address||"",type:a.type}},fromLocationSearchItem:r=>{let a=(0,A.getAddressForLocationData)(r,n);return{displayName:a.displayName,adminDistrict:a.adminDistrict,geocode:(0,v.formatGeocode)(`${a.latitude},${a.longitude}`),placeId:a.placeId,city:a.city,countryCode:a.countryCode,adminDistrictCode:a.adminDistrictCode||"",presentationName:o(a),name:e(a),context:t(a),ianaTimeZone:a.ianaTimeZone,postalCode:a.postalCode,address:a.address||"",type:a.type}}}}();return{effectiveLocation:(0,o.useMemo)(()=>{let e;return c?e=c:u?e=u:R&&E?e=B(R):S&&E?(console.error("Error fetching favorite location data:",S),e={displayName:"Favorite Location",adminDistrict:"",geocode:E,placeId:"unknown",ianaTimeZone:""}):O&&C?e=B(O):$&&C?(console.error("Error fetching recent location data:",$),e={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:C,ianaTimeZone:""}):T&&I?e=B(T):F&&I?(console.error("Error fetching geolocation API data:",F),e={displayName:"Unknown Location",adminDistrict:"",geocode:I,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}):G&&L?e=B(G):z&&L&&(console.error("Error fetching geoip location data:",z),e={displayName:"Unknown Location",adminDistrict:"",geocode:L,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}),e},[c,R,S,O,C,I,T,L,G,u,E,b,z,$]),isLocationLoading:!!x&&N||!!b&&_||k||M,locationError:(x?S:null)||(b?$:null)||F||z}}e.s(["LocationFallbackOrder",()=>O,"useLocationSource",()=>U],472737)},144977,e=>{"use strict";var t=e.i(477716);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;tr,"useComposedRefs",()=>n])},762073,e=>{"use strict";var t=e.i(477716),o=e.i(144977),r=e.i(297647),n=Symbol.for("react.lazy"),a=t[" use ".trim().toString()];function i(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===n&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function l(e){var n;let l,c=(n=e,(l=t.forwardRef((e,r)=>{let{children:n,...l}=e;if(i(n)&&"function"==typeof a&&(n=a(n._payload)),t.isValidElement(n)){var c;let e,a,i=(c=n,(a=(e=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?c.ref:(a=(e=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?c.props.ref:c.props.ref||c.ref),s=function(e,t){let o={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?o[r]=(...e)=>{let t=a(...e);return n(...e),t}:n&&(o[r]=n):"style"===r?o[r]={...n,...a}:"className"===r&&(o[r]=[n,a].filter(Boolean).join(" "))}return{...e,...o}}(l,n.props);return n.type!==t.Fragment&&(s.ref=r?(0,o.composeRefs)(r,i):i),t.cloneElement(n,s)}return t.Children.count(n)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,l),s=t.forwardRef((e,o)=>{let{children:n,...l}=e;i(n)&&"function"==typeof a&&(n=a(n._payload));let s=t.Children.toArray(n),d=s.find(u);if(d){let e=d.props.children,n=s.map(o=>o!==d?o:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,r.jsx)(c,{...l,ref:o,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,r.jsx)(c,{...l,ref:o,children:n})});return s.displayName=`${e}.Slot`,s}var c=l("Slot"),s=Symbol("radix.slottable");function u(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["Slot",()=>c,"createSlot",()=>l])},877957,e=>{"use strict";var t=e.i(297647),o=e.i(477716),r=e.i(762073),n=e.i(294237),a=e.i(632137),i=e.i(747961);let l=(0,o.forwardRef)(({title:e,titleId:o,desc:r,descId:n,...a},i)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":o,"aria-describedby":n,...a,children:[r?(0,t.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:o,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.65 2.926A5.335 5.335 0 1 0 13.335 8a.665.665 0 0 1 1.33 0 6.665 6.665 0 1 1-4.606-6.34.665.665 0 1 1-.41 1.266",clipRule:"evenodd"})]})),c=o.default.forwardRef((e,o)=>(0,t.jsx)(i.BaseIcon,{ref:o,icon:l,...e}));c.displayName="LoaderCircle";let s=(0,n.cva)("rounded-lg cursor-pointer",{variants:{variant:{default:"bg-brand-400 text-primary-foreground hover:bg-[#252C3F] active:bg-[#0C1226] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0",secondary:"bg-white text-gray-900 active:bg-[#E6E6E6] focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",destructive:"bg-alert-severe hover:bg-[#C1251A] active:bg-[#A70C00] text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",outline:"border-1 border-gray-500 hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",ghost:"hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",link:"text-primary underline-offset-3 underline focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",avatarAccountLink:"text-primary text-[14px]",avatarGoPremium:"bg-gray-900 text-white text-[14px]",avatarSignOut:"text-primary text-[16px]",ghostUI:""},size:{default:"h-10 px-4 py-3",lg:"h-10 px-8 py-3",sm:"h-8 px-3 py-2",xsm:"h-6 px-2",icon:"h-10 w-10",text:""},loading:{true:"pointer-events-none cursor-not-allowed opacity-50",false:""},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30",false:""}},defaultVariants:{variant:"default",size:"default",loading:!1,disabled:!1}}),u=o.forwardRef(({className:e,variant:o="default",size:n,asChild:i=!1,disabled:l=!1,loading:u=!1,children:d,...f},p)=>{let g=i?r.Slot:"button";return(0,t.jsx)(g,{...f,className:(0,a.cn)(s({variant:o,size:n,loading:u,disabled:l}),"inline-flex items-center justify-center",e),ref:p,disabled:l||u,children:i?d:(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsx)(c,{size:"sm",className:"mr-2 animate-spin",color:"default"===o||"destructive"===o?"inverse":"primary"}),d]})})});u.displayName="Button",e.s(["Button",()=>u],877957)},789876,e=>{"use strict";var t=e.i(7284);let o=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function r(...e){return o((0,t.clsx)(e))}e.s(["cn",()=>r])},294237,e=>{"use strict";var t=e.i(7284);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>n=>{var a;if((null==t?void 0:t.variants)==null)return r(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,c=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];if(null===t)return null;let a=o(t)||o(r);return i[e][a]}),s=n&&Object.entries(n).reduce((e,t)=>{let[o,r]=t;return void 0===r||(e[o]=r),e},{});return r(e,c,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:o,className:r,...n}=t;return Object.entries(n).every(e=>{let[t,o]=e;return Array.isArray(o)?o.includes({...l,...s}[t]):({...l,...s})[t]===o})?[...e,o,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},747961,e=>{"use strict";var t=e.i(297647),o=e.i(477716),r=e.i(294237),n=e.i(789876);let a=(0,r.cva)("inline-block",{variants:{size:{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-16 h-16",xxl:"w-32 h-32"},color:{primary:"text-gray-900",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white"}},defaultVariants:{size:"md",color:"primary"}}),i=o.default.forwardRef(({icon:e,size:o,color:r,title:i,desc:l,className:c,ariaHidden:s,...u},d)=>(0,t.jsx)(e,{ref:d,className:(0,n.cn)(a({size:o,color:r}),c),title:i,desc:l,...s&&{"aria-hidden":s},...u}));i.displayName="BaseIcon",e.s(["BaseIcon",0,i])},235318,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r={assign:function(){return c},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return l}};for(var n in r)Object.defineProperty(o,n,{enumerable:!0,get:r[n]});function a(e){let t={};for(let[o,r]of e.entries()){let e=t[o];void 0===e?t[o]=r:Array.isArray(e)?e.push(r):t[o]=[e,r]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[o,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(o,i(e));else t.set(o,i(r));return t}function c(e,...t){for(let o of t){for(let t of o.keys())e.delete(t);for(let[t,r]of o.entries())e.append(t,r)}return e}},609609,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r={formatUrl:function(){return l},formatWithValidation:function(){return s},urlObjectKeys:function(){return c}};for(var n in r)Object.defineProperty(o,n,{enumerable:!0,get:r[n]});let a=e.r(744066)._(e.r(235318)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:o}=e,r=e.protocol||"",n=e.pathname||"",l=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:o&&(s=t+(~o.indexOf(":")?`[${o}]`:o),e.port&&(s+=":"+e.port)),c&&"object"==typeof c&&(c=String(a.urlQueryToSearchParams(c)));let u=e.search||c&&`?${c}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||i.test(r))&&!1!==s?(s="//"+(s||""),n&&"/"!==n[0]&&(n="/"+n)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${r}${s}${n}${u}${l}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return l(e)}},522848,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r={DecodeError:function(){return h},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return L},NormalizeError:function(){return v},PageNotFoundError:function(){return I},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return s},getURL:function(){return u},isAbsoluteUrl:function(){return c},isResSent:function(){return f},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return C}};for(var n in r)Object.defineProperty(o,n,{enumerable:!0,get:r[n]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,o=!1;return(...r)=>(o||(o=!0,t=e(...r)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>l.test(e);function s(){let{protocol:e,hostname:t,port:o}=window.location;return`${e}//${t}${o?":"+o:""}`}function u(){let{href:e}=window.location,t=s();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function g(e,t){let o=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await g(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(o&&f(o))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class v extends Error{}class I extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class L extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(e){return JSON.stringify({message:e.message,stack:e.stack})}},99064,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(522848),n=e.r(21757);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),o=new URL(e,t);return o.origin===t&&(0,n.hasBasePath)(o.pathname)}catch(e){return!1}}},338938,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},87328,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r={default:function(){return h},useLinkStatus:function(){return I}};for(var n in r)Object.defineProperty(o,n,{enumerable:!0,get:r[n]});let a=e.r(744066),i=e.r(297647),l=a._(e.r(477716)),c=e.r(609609),s=e.r(116064),u=e.r(20104),d=e.r(522848),f=e.r(243529);e.r(976174);let p=e.r(4952),g=e.r(99064),m=e.r(94791);function y(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}function h(t){var o;let r,n,a,[c,h]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),I=(0,l.useRef)(null),{href:L,as:E,children:C,prefetch:x=null,passHref:b,replace:P,shallow:w,scroll:D,onClick:R,onMouseEnter:S,onTouchStart:N,legacyBehavior:j=!1,onNavigate:A,ref:O,unstable_dynamicOnHover:U,...$}=t;r=C,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let _=l.default.useContext(s.AppRouterContext),T=!1!==x,F=!1!==x?null===(o=x)||"auto"===o?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:k,as:G}=l.default.useMemo(()=>{let e=y(L);return{href:e,as:E?y(E):e}},[L,E]);if(j){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=l.default.Children.only(r)}let z=j?n&&"object"==typeof n&&n.ref:O,M=l.default.useCallback(e=>(null!==_&&(I.current=(0,p.mountLinkInstance)(e,k,_,F,T,h)),()=>{I.current&&((0,p.unmountLinkForCurrentNavigation)(I.current),I.current=null),(0,p.unmountPrefetchableInstance)(e)}),[T,k,_,F,h]),B={ref:(0,u.useMergedRef)(M,z),onClick(t){j||"function"!=typeof R||R(t),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!_||t.defaultPrevented||function(t,o,r,n,a,i,c){if("u">typeof window){let s,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(o)){a&&(t.preventDefault(),location.replace(o));return}if(t.preventDefault(),c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(89105);l.default.startTransition(()=>{d(r||o,a?"replace":"push",i??!0,n.current)})}}(t,k,G,I,P,D,A)},onMouseEnter(e){j||"function"!=typeof S||S(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),_&&T&&(0,p.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){j||"function"!=typeof N||N(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),_&&T&&(0,p.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(G)?B.href=G:j&&!b&&("a"!==n.type||"href"in n.props)||(B.href=(0,f.addBasePath)(G)),a=j?l.default.cloneElement(n,B):(0,i.jsx)("a",{...$,...B,children:r}),(0,i.jsx)(v.Provider,{value:c,children:a})}e.r(338938);let v=(0,l.createContext)(p.IDLE_LINK_STATUS),I=()=>(0,l.useContext)(v);("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),t.exports=o.default)},375570,(e,t,o)=>{t.exports=e.r(135997)},632137,e=>{"use strict";var t=e.i(7284);let o=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});function r(...e){return o((0,t.clsx)(e))}e.s(["cn",()=>r])}]);