"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6986],{99507:function(e,t,r){r.d(t,{Qp:function(){return v},tG:function(){return b}});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0;return}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var s="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),o=[],a=!1,u=-1,l=void 0,c=void 0,d=void 0,h=function(e){return o.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},f=function(e){var t=e||window.event;return!!h(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},p=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;if(t&&r>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);d=document.body.style.paddingRight,document.body.style.paddingRight=n+r+"px"}}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")},y=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)},m=function(){if(void 0!==c){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=c.position,document.body.style.top=c.top,document.body.style.left=c.left,window.scrollTo(t,e),c=void 0}},g=function(e,t){var r=e.targetTouches[0].clientY-u;return!h(e.target)&&(t&&0===t.scrollTop&&r>0?f(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&r<0?f(e):(e.stopPropagation(),!0))},v=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!o.some(function(t){return t.targetElement===e})&&(o=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(o),[{targetElement:e,options:t||{}}]),s?window.requestAnimationFrame(function(){if(void 0===c){c={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,r=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-r,setTimeout(function(){return window.requestAnimationFrame(function(){var e=n-window.innerHeight;e&&t>=n&&(document.body.style.top=-(t+e))})},300)}}):p(t),s&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&g(t,e)},a||(document.addEventListener("touchmove",f,n?{passive:!1}:void 0),a=!0)))},b=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}o=o.filter(function(t){return t.targetElement!==e}),s&&(e.ontouchstart=null,e.ontouchmove=null,a&&0===o.length&&(document.removeEventListener("touchmove",f,n?{passive:!1}:void 0),a=!1)),s?m():y()}},15486:function(e,t,r){r.d(t,{default:function(){return i.a}});var n=r(18623),i=r.n(n)},35058:function(e,t,r){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let n=r(37515);function i(e){let{createServerReference:t}=r(19605);return t(e,n.callServer)}},58247:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(41223),i=r(77008),s=r(10337),o=i._(r(68516)),a=n._(r(76798)),u=n._(r(55456)),l=r(30763),c=r(15197),d=r(99656);r(50784);let h=r(34238),f=n._(r(34305)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function y(e,t,r,n,i,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function m(e){let[t,r]=o.version.split(".",2),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:u,decoding:l,className:c,style:d,fetchPriority:h,placeholder:f,loading:p,unoptimized:g,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:S,setShowAltText:C,onLoad:R,onError:O,...E}=e;return(0,s.jsx)("img",{...E,...m(h),loading:p,width:u,height:a,decoding:l,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&y(e,f,b,w,S,g))},[r,f,b,w,S,O,g,t]),onLoad:e=>{y(e.currentTarget,f,b,w,S,g)},onError:e=>{C(!0),"empty"!==f&&S(!0),O&&O(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...m(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,s.jsx)(u.default,{children:(0,s.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(h.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:a,onLoadingComplete:u}=e,y=(0,o.useRef)(a);(0,o.useEffect)(()=>{y.current=a},[a]);let m=(0,o.useRef)(u);(0,o.useEffect)(()=>{m.current=u},[u]);let[b,w]=(0,o.useState)(!1),[S,C]=(0,o.useState)(!1),{props:R,meta:O}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:b,showAltText:S});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{...R,unoptimized:O.unoptimized,placeholder:O.placeholder,fill:O.fill,onLoadRef:y,onLoadingCompleteRef:m,setBlurComplete:w,setShowAltText:C,ref:t}),O.priority?(0,s.jsx)(v,{isAppRouter:!r,imgAttributes:R}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81623:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(41223)._(r(68516)).default.createContext({})},41747:function(e,t){function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},30763:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(50784);let n=r(29396),i=r(15197);function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,u,l,{src:c,sizes:d,unoptimized:h=!1,priority:f=!1,loading:p,className:y,quality:m,width:g,height:v,fill:b=!1,style:w,onLoad:S,onLoadingComplete:C,placeholder:R="empty",blurDataURL:O,fetchPriority:E,layout:I,objectFit:j,objectPosition:x,lazyBoundary:_,lazyRoot:P,...F}=e,{imgConf:T,showAltText:A,blurComplete:U,defaultLoader:D}=t,k=T||i.imageConfigDefault;if("allSizes"in k)a=k;else{let e=[...k.deviceSizes,...k.imageSizes].sort((e,t)=>e-t),t=k.deviceSizes.sort((e,t)=>e-t);a={...k,allSizes:e,deviceSizes:t}}let M=F.loader||D;delete F.loader,delete F.srcSet;let Q="__next_img_default"in M;if(Q){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=M;M=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!d&&(d=t)}let q="",z=o(g),N=o(v);if("object"==typeof(r=c)&&(s(r)||void 0!==r.src)){let e=s(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,l=e.blurHeight,O=O||e.blurDataURL,q=e.src,!b){if(z||N){if(z&&!N){let t=z/e.width;N=Math.round(e.height*t)}else if(!z&&N){let t=N/e.height;z=Math.round(e.width*t)}}else z=e.width,N=e.height}}let L=!f&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:q)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,L=!1),a.unoptimized&&(h=!0),Q&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(h=!0),f&&(E="high");let B=o(m),V=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:x}:{},A?{}:{color:"transparent"},w),$=U||"empty"===R?null:"blur"===R?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:z,heightInt:N,blurWidth:u,blurHeight:l,blurDataURL:O||"",objectFit:V.objectFit})+'")':'url("'+R+'")',W=$?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},H=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:s,sizes:o,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=u.length-1;return{sizes:o||"w"!==l?o:"100vw",srcSet:u.map((e,n)=>a({config:t,src:r,quality:s,width:e})+" "+("w"===l?e:n+1)+l).join(", "),src:a({config:t,src:r,quality:s,width:u[c]})}}({config:a,src:c,unoptimized:h,width:z,quality:B,sizes:d,loader:M});return{props:{...F,loading:L?"lazy":p,fetchPriority:E,width:z,height:N,decoding:"async",className:y,style:{...V,...W},sizes:H.sizes,srcSet:H.srcSet,src:H.src},meta:{unoptimized:h,priority:f,placeholder:R,fill:b}}}},55456:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return d},default:function(){return y}});let n=r(41223),i=r(77008),s=r(10337),o=i._(r(68516)),a=n._(r(33086)),u=r(81623),l=r(82990),c=r(41747);function d(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(50784);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(h,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let s=!0,o=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){o=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?s=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?s=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!o)&&r.has(e)?s=!1:(r.add(e),n[t]=r)}}}}return s}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:n})})}let y=function(e){let{children:t}=e,r=(0,o.useContext)(u.AmpStateContext),n=(0,o.useContext)(l.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:p,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29396:function(e,t){function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:s,objectFit:o}=e,a=n?40*n:t,u=i?40*i:r,l=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},99656:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=r(41223)._(r(68516)),i=r(15197),s=n.default.createContext(i.imageConfigDefault)},15197:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},18623:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getImageProps:function(){return a},default:function(){return u}});let n=r(41223),i=r(30763),s=r(58247),o=n._(r(34305)),a=e=>{let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=s.Image},34305:function(e,t){function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},33086:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(68516),i="undefined"==typeof window,s=i?()=>{}:n.useLayoutEffect,o=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var u;null==t||null==(u=t.mountedInstances)||u.add(e.children),a()}return s(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},23493:function(e,t,r){var n=r(68516);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=["cdnSuffix","cdnUrl","countryCode","style","svg"];t.Z=function(e){var t=e.cdnSuffix,r=e.cdnUrl,o=e.countryCode,a=e.style,u=e.svg,l=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,s);if("string"!=typeof o)return null;if(void 0!==u&&u){var c=""+(void 0===r?"https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/":r)+o.toLowerCase()+"."+(void 0===t?"svg":t);return(0,n.createElement)("img",Object.assign({},l,{src:c,style:i({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},a)}))}var d=o.toUpperCase().replace(/./g,function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)});return(0,n.createElement)("span",Object.assign({role:"img"},l,{style:i({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},a)}),d)}},58076:function(e,t,r){r.d(t,{Z:function(){return n}});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}},70694:function(e,t,r){r.d(t,{F:function(){return i},e:function(){return s}});var n=r(68516);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function s(...e){return(0,n.useCallback)(i(...e),e)}},88925:function(e,t,r){r.d(t,{f:function(){return u},h:function(){return a}});var n=r(58076),i=r(68516),s=r(76798),o=r(37104);let a=(0,i.forwardRef)((e,t)=>{var r;let{container:a=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...u}=e;return a?s.createPortal((0,i.createElement)(o.WV.div,(0,n.Z)({},u,{ref:t})),a):null}),u=a},37104:function(e,t,r){r.d(t,{WV:function(){return a},jH:function(){return u}});var n=r(58076),i=r(68516),s=r(76798),o=r(67544);let a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,i.forwardRef)((e,r)=>{let{asChild:s,...a}=e,u=s?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(u,(0,n.Z)({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e,t){e&&(0,s.flushSync)(()=>e.dispatchEvent(t))}},67544:function(e,t,r){r.d(t,{g7:function(){return o}});var n=r(58076),i=r(68516),s=r(70694);let o=(0,i.forwardRef)((e,t)=>{let{children:r,...s}=e,o=i.Children.toArray(r),u=o.find(l);if(u){let e=u.props.children,r=o.map(t=>t!==u?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(a,(0,n.Z)({},s,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,r):null)}return(0,i.createElement)(a,(0,n.Z)({},s,{ref:t}),r)});o.displayName="Slot";let a=(0,i.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{s(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,s.F)(t,r.ref):r.ref}):i.Children.count(r)>1?i.Children.only(null):null});a.displayName="SlotClone";let u=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function l(e){return(0,i.isValidElement)(e)&&e.type===u}},66878:function(e,t,r){r.d(t,{A:function(){return a},z:function(){return u}});var n=r(65963),i=r(43337),s=r(83851),o=r(8963),a=class extends o.F{#e;#t;#r;#n;#i;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.#i=[],this.#r=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#e,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#i.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,t){let r=(0,n.oE)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.#i.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.#i.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.#i.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){let e=this.#i.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#i.includes(e)&&(this.#i=this.#i.filter(t=>t!==e),this.#i.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#i.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.#i.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})};o(i);let a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==n.CN?(this.#o=!1,this.options.persister)?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};o(a),this.options.behavior?.onFetch(a,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let u=e=>{(0,s.DV)(e)&&e.silent||this.#a({type:"error",error:e}),(0,s.DV)(e)||(this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#n=(0,s.Mz)({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){u(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode}),this.#n.promise}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,s.DV)(r)&&r.revert&&this.#t)return{...this.#t,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.#i.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},78382:function(e,t,r){r.d(t,{z:function(){return u}});var n=r(65963),i=r(43337),s=r(1384),o=r(83475),a=r(66878),u=class extends o.l{constructor(e,t){super(),this.options=t,this.#u=e,this.#l=null,this.bindMethods(),this.setOptions(t)}#u;#c=void 0;#d=void 0;#h=void 0;#f;#p;#l;#y;#m;#g;#v;#b;#w;#S=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#c.addObserver(this),l(this.#c,this.options)?this.#C():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.#c,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.#c,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#E(),this.#c.removeObserver(this)}setOptions(e,t){let r=this.options,i=this.#c;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.#I(),this.#c.setOptions(this.options),r._defaulted&&!(0,n.VS)(this.options,r)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#c,observer:this});let s=this.hasListeners();s&&d(this.#c,i,this.options,r)&&this.#C(),this.updateResult(t),s&&(this.#c!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.#j();let o=this.#x();s&&(this.#c!==i||this.options.enabled!==r.enabled||o!==this.#w)&&this.#_(o)}getOptimisticResult(e){let t=this.#u.getQueryCache().build(this.#u,e),r=this.createResult(t,e);return(0,n.VS)(this.getCurrentResult(),r)||(this.#h=r,this.#p=this.options,this.#f=this.#c.state),r}getCurrentResult(){return this.#h}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#S.add(e)}getCurrentQuery(){return this.#c}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#u.defaultQueryOptions(e),r=this.#u.getQueryCache().build(this.#u,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#C({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#h))}#C(e){this.#I();let t=this.#c.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n.ZT)),t}#j(){if(this.#O(),n.sk||this.#h.isStale||!(0,n.PN)(this.options.staleTime))return;let e=(0,n.Kp)(this.#h.dataUpdatedAt,this.options.staleTime);this.#v=setTimeout(()=>{this.#h.isStale||this.updateResult()},e+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#c):this.options.refetchInterval)??!1}#_(e){this.#E(),this.#w=e,!n.sk&&!1!==this.options.enabled&&(0,n.PN)(this.#w)&&0!==this.#w&&(this.#b=setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#C()},this.#w))}#R(){this.#j(),this.#_(this.#x())}#O(){this.#v&&(clearTimeout(this.#v),this.#v=void 0)}#E(){this.#b&&(clearInterval(this.#b),this.#b=void 0)}createResult(e,t){let r;let i=this.#c,s=this.options,o=this.#h,u=this.#f,c=this.#p,f=e!==i?e.state:this.#d,{state:p}=e,y={...p},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&l(e,t),o=r&&d(e,i,t,s);(n||o)&&(y={...y,...(0,a.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:b}=y;if(t.select&&void 0!==y.data){if(o&&y.data===u?.data&&t.select===this.#y)r=this.#m;else try{this.#y=t.select,r=t.select(y.data),r=(0,n.oE)(o?.data,r,t),this.#m=r,this.#l=null}catch(e){this.#l=e}}else r=y.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===b){let e;if(o?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#g?.state.data,this.#g):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#l=null}catch(e){this.#l=e}void 0!==e&&(b="success",r=(0,n.oE)(o?.data,e,t),m=!0)}this.#l&&(g=this.#l,r=this.#m,v=Date.now(),b="error");let w="fetching"===y.fetchStatus,S="pending"===b,C="error"===b,R=S&&w,O=void 0!==r;return{status:b,fetchStatus:y.fetchStatus,isPending:S,isSuccess:"success"===b,isError:C,isInitialLoading:R,isLoading:R,data:r,dataUpdatedAt:y.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:w,isRefetching:w&&!S,isLoadingError:C&&!O,isPaused:"paused"===y.fetchStatus,isPlaceholderData:m,isRefetchError:C&&O,isStale:h(e,t),refetch:this.refetch}}updateResult(e){let t=this.#h,r=this.createResult(this.#c,this.options);if(this.#f=this.#c.state,this.#p=this.options,void 0!==this.#f.data&&(this.#g=this.#c),(0,n.VS)(r,t))return;this.#h=r;let i={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#S.size)return!0;let n=new Set(r??this.#S);return this.options.throwOnError&&n.add("error"),Object.keys(this.#h).some(e=>this.#h[e]!==t[e]&&n.has(e))})()&&(i.listeners=!0),this.#P({...i,...e})}#I(){let e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#c)return;let t=this.#c;this.#c=e,this.#d=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#P(e){i.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#h)}),this.#u.getQueryCache().notify({query:this.#c,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==t.enabled&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&c(e,t,t.refetchOnMount)}function c(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&h(e,t)}return!1}function d(e,t,r,n){return(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==t.enabled&&e.isStaleByTime(t.staleTime)}},73103:function(e,t,r){r.r(t),r.d(t,{QueryErrorResetBoundary:function(){return u},useQueryErrorResetBoundary:function(){return a}});var n=r(68516),i=r(10337);function s(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o=n.createContext(s()),a=()=>n.useContext(o),u=e=>{let{children:t}=e,[r]=n.useState(()=>s());return(0,i.jsx)(o.Provider,{value:r,children:"function"==typeof t?t(r):t})}},10040:function(e,t,r){r.d(t,{JN:function(){return o},KJ:function(){return a},pf:function(){return s}});var n=r(68516),i=r(47639),s=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},o=e=>{n.useEffect(()=>{e.clearReset()},[e])},a=e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:s}=e;return t.isError&&!r.isReset()&&!t.isFetching&&s&&(0,i.L)(n,[t.error,s])}},90783:function(e,t,r){r.r(t),r.d(t,{IsRestoringProvider:function(){return o},useIsRestoring:function(){return s}});var n=r(68516),i=n.createContext(!1),s=()=>n.useContext(i),o=i.Provider},78043:function(e,t,r){r.d(t,{Ct:function(){return n},Fb:function(){return i},SB:function(){return o},Z$:function(){return s},j8:function(){return a}});var n=(e,t)=>void 0===t.state.data,i=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},s=(e,t)=>e.isLoading&&e.isFetching&&!t,o=(e,t)=>e?.suspense&&t.isPending,a=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},28062:function(e,t,r){r.d(t,{r:function(){return c}});var n=r(68516),i=r(43337),s=r(73103),o=r(21699),a=r(90783),u=r(10040),l=r(78043);function c(e,t,r){let c=(0,o.useQueryClient)(r),d=(0,a.useIsRestoring)(),h=(0,s.useQueryErrorResetBoundary)(),f=c.defaultQueryOptions(e);f._optimisticResults=d?"isRestoring":"optimistic",(0,l.Fb)(f),(0,u.pf)(f,h),(0,u.JN)(h);let[p]=n.useState(()=>new t(c,f)),y=p.getOptimisticResult(f);if(n.useSyncExternalStore(n.useCallback(e=>{let t=d?()=>void 0:p.subscribe(i.V.batchCalls(e));return p.updateResult(),t},[p,d]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),n.useEffect(()=>{p.setOptions(f,{listeners:!1})},[f,p]),(0,l.SB)(f,y))throw(0,l.j8)(f,p,h);if((0,u.KJ)({result:y,errorResetBoundary:h,throwOnError:f.throwOnError,query:c.getQueryCache().get(f.queryHash)}))throw y.error;return f.notifyOnChangeProps?y:p.trackResult(y)}},84647:function(e,t,r){r.r(t),r.d(t,{useIsFetching:function(){return o}});var n=r(68516),i=r(43337),s=r(21699);function o(e,t){let r=(0,s.useQueryClient)(t),o=r.getQueryCache();return n.useSyncExternalStore(n.useCallback(e=>o.subscribe(i.V.batchCalls(e)),[o]),()=>r.isFetching(e),()=>r.isFetching(e))}},74082:function(e,t,r){r.r(t),r.d(t,{useIsMutating:function(){return a},useMutationState:function(){return l}});var n=r(68516),i=r(65963),s=r(43337),o=r(21699);function a(e,t){let r=(0,o.useQueryClient)(t);return l({filters:{...e,status:"pending"}},r).length}function u(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=(0,o.useQueryClient)(t).getMutationCache(),a=n.useRef(e),l=n.useRef();return l.current||(l.current=u(r,e)),n.useEffect(()=>{a.current=e}),n.useSyncExternalStore(n.useCallback(e=>r.subscribe(()=>{let t=(0,i.Q$)(l.current,u(r,a.current));l.current!==t&&(l.current=t,s.V.schedule(e))}),[r]),()=>l.current,()=>l.current)}},39846:function(e,t,r){r.r(t),r.d(t,{useQuery:function(){return s}});var n=r(78382),i=r(28062);function s(e,t){return(0,i.r)(e,n.z,t)}},56319:function(e,t,r){/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{Z:function(){return i}});var i=function e(t,r){function i(e,i,s){if("undefined"!=typeof document){"number"==typeof(s=n({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in s)s[a]&&(o+="; "+a,!0!==s[a]&&(o+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var s=r[i].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(n[a]=t.read(o,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},54529:function(e,t,r){r.d(t,{Wg:function(){return D}});let n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);return}return t}function a(e,t={}){if("string"!=typeof e)return e;let r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!s.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||i.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}let u=/#/g,l=/&/g,c=/\//g,d=/=/g,h=/\+/g,f=/%5e/gi,p=/%60/gi,y=/%7c/gi,m=/%20/gi;function g(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(y,"|").replace(h,"%2B").replace(m,"+").replace(u,"%23").replace(l,"%26").replace(p,"`").replace(f,"^").replace(c,"%2F")}function v(e){return g(e).replace(d,"%3D")}function b(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let w=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,S=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,C=/^([/\\]\s*){2,}[^/\\]/,R=/^\.?\//;function O(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?w.test(e):S.test(e)||!!t.acceptRelative&&C.test(e)}let E=Symbol.for("ufo:protocolRelative");function I(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class j extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let x=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function _(e="GET"){return x.has(e.toUpperCase())}let P=new Set(["image/svg","application/xml","application/xhtml","application/html"]),F=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i,T=new Set([408,409,425,429,500,502,503,504]),A=new Set([101,204,205,304]),U=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}(),D=function e(t={}){let{fetch:r=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:i=globalThis.AbortController}=t;async function s(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:_(e.options.method)?0:1;let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):T.has(r))){let r=e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),o(e.request,{...e.options,retry:t-1,timeout:e.options.timeout})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new j(`${i}: ${s}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,o),r}let o=async function(e,o={}){let u={request:e,options:function(e,t,r=globalThis.Headers){let n={...t,...e};if(t?.params&&e?.params&&(n.params={...t?.params,...e?.params}),t?.query&&e?.query&&(n.query={...t?.query,...e?.query}),t?.headers&&e?.headers)for(let[i,s]of(n.headers=new r(t?.headers||{}),new r(e?.headers||{})))n.headers.set(i,s);return n}(o,t.defaults,n),response:void 0,error:void 0};if(u.options.method=u.options.method?.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),"string"==typeof u.request&&(u.options.baseURL&&(u.request=function(e,t){if(!t||"/"===t||O(e))return e;let r=function(e="",t){return(!function(e="",t){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);return e.startsWith(r)?e:function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(R,"");r=function(e="",t){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(r,e)}(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=function(e,t){let r=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!O(t,{acceptRelative:!0}))return r?e(r+t):I(t);let[,i="",s,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",u=""]=o.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:d}=I(u.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:i.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:a,pathname:l,search:c,hash:d,[E]:!i}}(e),n={...function(e=""){let t={};for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=b(e[1].replace(h," "));if("__proto__"===n||"constructor"===n)continue;let i=b((e[2]||"").replace(h," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}(r.search),...t};return r.search=Object.keys(n).filter(e=>void 0!==n[e]).map(e=>{var t;return(("number"==typeof(t=n[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${v(e)}=${g(t)}`).join("&"):`${v(e)}=${g(t)}`:v(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[E]?(e.protocol||"")+"//":"")+i+s+t+r+n}(r)}(u.request,{...u.options.params,...u.options.query}))),u.options.body&&_(u.options.method)&&(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(u.options.body)?(u.options.body="string"==typeof u.options.body?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&"function"==typeof u.options.body.pipeTo||"function"==typeof u.options.body.pipe)&&!("duplex"in u.options)&&(u.options.duplex="half")),!u.options.signal&&u.options.timeout){let e=new i;setTimeout(()=>e.abort(),u.options.timeout),u.options.signal=e.signal}try{u.response=await r(u.request,u.options)}catch(e){return u.error=e,u.options.onRequestError&&await u.options.onRequestError(u),await s(u)}if(u.response.body&&!A.has(u.response.status)&&"HEAD"!==u.options.method){let e=(u.options.parseResponse?"json":u.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return F.test(t)?"json":P.has(t)||t.startsWith("text/")?"text":"blob"}(u.response.headers.get("content-type")||"");switch(e){case"json":{let e=await u.response.text(),t=u.options.parseResponse||a;u.response._data=t(e);break}case"stream":u.response._data=u.response.body;break;default:u.response._data=await u.response[e]()}}return(u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600)?(u.options.onResponseError&&await u.options.onResponseError(u),await s(u)):u.response},u=async function(e,t){return(await o(e,t))._data};return u.raw=o,u.native=(...e)=>r(...e),u.create=(r={})=>e({...t,defaults:{...t.defaults,...r}}),u}({fetch:U.fetch||(()=>Promise.reject(Error("[ofetch] global.fetch is not supported!"))),Headers:U.Headers,AbortController:U.AbortController})}}]);
//# sourceMappingURL=6986-434cf7a189bb71b9.js.map