1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7164],{10756:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10019).A)("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]])},13656:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(53890),i=r.createContext(void 0),a={setTheme:e=>{},themes:[]},o=()=>{var e;return null!=(e=r.useContext(i))?e:a}},29748:(e,t,n)=>{"use strict";n.d(t,{l$:()=>b});var r=n(53890),i=n(39167),a=Array(12).fill(0),o=e=>{let{visible:t,className:n}=e;return r.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},r.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},s=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h=1,f=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:h++,a=this.toasts.find(e=>e.id===i),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:o,title:n}):t):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
1this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let i=e instanceof Promise?e:e(),a=void 0!==n,o,s=i.then(async e=>{if(o=["resolve",e],r.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(p(e)&&!e.ok){a=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,i="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:i})}else if(void 0!==t.success){a=!1;let r="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:i})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){a=!1;let r="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:i})}}).finally(()=>{var e;a&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||h++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},p=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status;function m(e){return void 0!==e.label}function v(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||h++;return f.addToast({title:e,...t,id:n}),n},{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading},{getHistory:()=>f.toasts,getToasts:()=>f.getActiveToasts()}),!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
1left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
1:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
1--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var y=e=>{var t,n,i,a,h,f,p,y,g,b,w;let{invert:x,toast:E,unstyled:C,interacting:T,setHeights:P,visibleToasts:S,heights:R,index:O,toasts:k,expanded:A,removeToast:D,defaultRichColors:L,closeButton:j,style:M,cancelButtonStyle:N,actionButtonStyle:F,className:q="",descriptionClassName:I="",duration:B,position:K,gap:H,loadingIcon:z,expandByDefault:_,classNames:Q,icons:U,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:Y}=e,[G,V]=r.useState(null),[X,$]=r.useState(null),[J,Z]=r.useState(!1),[ee,et]=r.useState(!1),[en,er]=r.useState(!1),[ei,ea]=r.useState(!1),[eo,es]=r.useState(!1),[el,eu]=r.useState(0),[e
1c,ed]=r.useState(0),eh=r.useRef(E.duration||B||4e3),ef=r.useRef(null),ep=r.useRef(null),em=0===O,ev=O+1<=S,ey=E.type,eg=!1!==E.dismissible,eb=E.className||"",ew=E.descriptionClassName||"",ex=r.useMemo(()=>R.findIndex(e=>e.toastId===E.id)||0,[R,E.id]),eE=r.useMemo(()=>{var e;return null!=(e=E.closeButton)?e:j},[E.closeButton,j]),eC=r.useMemo(()=>E.duration||B||4e3,[E.duration,B]),eT=r.useRef(0),eP=r.useRef(0),eS=r.useRef(0),eR=r.useRef(null),[eO,ek]=K.split("-"),eA=r.useMemo(()=>R.reduce((e,t,n)=>n>=ex?e:e+t.height,0),[R,ex]),eD=(()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eL=E.invert||x,ej="loading"===ey;eP.current=r.useMemo(()=>ex*H+eA,[ex,eA]),r.useEffect(()=>{eh.current=eC},[eC]),r.useEffect(()=>{Z(!0)},[]),r.useEffect(()=>{let e=ep.current;if(e){let t=e.getBoundingClientRect().height;return ed(t),P(e=>[{toastId:E.id,height:t,position:E.position},...e]),()=>P(e=>e.filter(e=>e.toastId!==E.id))}},[P,E.id]),r.useLayoutEffect(()=>{if(!J)return;let e=ep.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ed(n),P(e=>e.find(e=>e.toastId===E.id)?e.map(e=>e.toastId===E.id?{...e,height:n}:e):[{toastId:E.id,height:n,position:E.position},...e])},[J,E.title,E.description,P,E.id]);let eM=r.useCallback(()=>{et(!0),eu(eP.current),P(e=>e.filter(e=>e.toastId!==E.id)),setTimeout(()=>{D(E)},200)},[E,D,P,eP]);return r.useEffect(()=>{let e;if((!E.promise||"loading"!==ey)&&E.duration!==1/0&&"loading"!==E.type)return A||T||Y&&eD?(()=>{if(eS.current<eT.current){let e=new Date().getTime()-eT.current;eh.current=eh.current-e}eS.current=new Date().getTime()})():eh.current!==1/0&&(eT.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=E.onAutoClose)||e.call(E,E),eM()},eh.current)),()=>clearTimeout(e)},[A,T,E,ey,Y,eD,eM]),r.useEffect(()=>{E.delete&&eM()},[eM,E.delete]),r.createElement("li",{tabIndex:0,ref:ep,className:v(q,eb,null==Q?void 0:Q.toast,null==(t=null==E?void 0:E.classNames)?void 0:t.toast,null==Q?void 0:Q.default,null==Q?void 0:Q[ey],null==(n=null==E?void 0:E.classNames)?void 0:n[ey]),"data-sonner-toast":"","data-rich-colors":null!=(i=E.richColors)?i:L,"data-styled":!(E.jsx||E.unstyled||C),"data-mounted":J,"data-promise":!!E.promise,"data-swiped":eo,"data-removed":ee,"data-visible":ev,"data-y-position":eO,"data-x-position":ek,"data-index":O,"data-front":em,"data-swiping":en,"data-dismissible":eg,"data-type":ey,"data-invert":eL,"data-swipe-out":ei,"data-swipe-direction":X,"data-expanded":!!(A||_&&J),style:{"--index":O,"--toasts-before":O,"--z-index":k.length-O,"--offset":"".concat(ee?el:eP.current,"px"),"--initial-height":_?"auto":"".concat(ec,"px"),...M,...E.style},onDragEnd:()=>{er(!1),V(null),eR.current=null},onPointerDown:e=>{ej||!eg||(ef.current=new Date,eu(eP.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(er(!0),eR.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(ei||!eg)return;eR.current=null;let i=Number((null==(e=ep.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=ep.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=new Date().getTime()-(null==(n=ef.current)?void 0:n.getTime()),s="x"===G?i:a,l=Math.abs(s)/o;if(Math.abs(s)>=20||l>.11){eu(eP.current),null==(r=E.onDismiss)||r.call(E,E),$("x"===G?i>0?"right":"left":a>0?"down":"up"),eM(),ea(!0),es(!1);return}er(!1),V(null)},onPointerMove:t=>{var n,r,i,a;if(!eR.current||!eg||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let o=t.clientY-eR.current.y,s=t.clientX-eR.current.x,l=null!=(r=e.swipeDirections)?r:function(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(K);!G&&(Math.abs(s)>1||Math.abs(o)>1)&&V(Math.abs(s)>Math.abs(o)?"x":"y");let u={x:0,y:0};"y"===G?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&o<0||l.includes("bottom")&&o>0)&&(u.y=o):"x"===G&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&s<0||l.includes("right")&&s>0)&&(u.x=s),(Math.abs(u.x)>0||Math.abs(u.y)>0)&&es(!0),null==(i=ep.current)||i.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(a=ep.current)||a.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},eE&&!E.jsx?r.createElement("button",{"aria-label":W,"data-disabled":ej,"data-close-button":!0,onClick:ej||!eg?()=>{}:()=>{var e;eM(),null==(e=E.onDismiss)||e.call(E,E)},className:v(null==Q?void 0:Q.closeButton,null==(a=null==E?void 0:E.
1classNames)?void 0:a.closeButton)},null!=(h=null==U?void 0:U.close)?h:d):null,E.jsx||(0,r.isValidElement)(E.title)?E.jsx?E.jsx:"function"==typeof E.title?E.title():E.title:r.createElement(r.Fragment,null,ey||E.icon||E.promise?r.createElement("div",{"data-icon":"",className:v(null==Q?void 0:Q.icon,null==(f=null==E?void 0:E.classNames)?void 0:f.icon)},E.promise||"loading"===E.type&&!E.icon?E.icon||function(){var e,t,n;return null!=U&&U.loading?r.createElement("div",{className:v(null==Q?void 0:Q.loader,null==(e=null==E?void 0:E.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===ey},U.loading):z?r.createElement("div",{className:v(null==Q?void 0:Q.loader,null==(t=null==E?void 0:E.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ey},z):r.createElement(o,{className:v(null==Q?void 0:Q.loader,null==(n=null==E?void 0:E.classNames)?void 0:n.loader),visible:"loading"===ey})}():null,"loading"!==E.type?E.icon||(null==U?void 0:U[ey])||(e=>{switch(e){case"success":return s;case"info":return u;case"warning":return l;case"error":return c;default:return null}})(ey):null):null,r.createElement("div",{"data-content":"",className:v(null==Q?void 0:Q.content,null==(p=null==E?void 0:E.classNames)?void 0:p.content)},r.createElement("div",{"data-title":"",className:v(null==Q?void 0:Q.title,null==(y=null==E?void 0:E.classNames)?void 0:y.title)},"function"==typeof E.title?E.title():E.title),E.description?r.createElement("div",{"data-description":"",className:v(I,ew,null==Q?void 0:Q.description,null==(g=null==E?void 0:E.classNames)?void 0:g.description)},"function"==typeof E.description?E.description():E.description):null),(0,r.isValidElement)(E.cancel)?E.cancel:E.cancel&&m(E.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||N,onClick:e=>{var t,n;m(E.cancel)&&eg&&(null==(n=(t=E.cancel).onClick)||n.call(t,e),eM())},className:v(null==Q?void 0:Q.cancelButton,null==(b=null==E?void 0:E.classNames)?void 0:b.cancelButton)},E.cancel.label):null,(0,r.isValidElement)(E.action)?E.action:E.action&&m(E.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||F,onClick:e=>{var t,n;m(E.action)&&(null==(n=(t=E.action).onClick)||n.call(t,e),e.defaultPrevented||eM())},className:v(null==Q?void 0:Q.actionButton,null==(w=null==E?void 0:E.classNames)?void 0:w.actionButton)},E.action.label):null))};function g(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var b=(0,r.forwardRef)(function(e,t){let{invert:n,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:c,mobileOffset:d,theme:h="light",richColors:p,duration:m,style:v,visibleToasts:b=3,toastOptions:w,dir:x=g(),gap:E=14,loadingIcon:C,icons:T,containerAriaLabel:P="Notifications",pauseWhenPageIsHidden:S}=e,[R,O]=r.useState([]),k=r.useMemo(()=>Array.from(new Set([a].concat(R.filter(e=>e.position).map(e=>e.position)))),[R,a]),[A,D]=r.useState([]),[L,j]=r.useState(!1),[M,N]=r.useState(!1),[F,q]=r.useState("system"!==h?h:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=r.useRef(null),B=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=r.useRef(null),H=r.useRef(!1),z=r.useCallback(e=>{O(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||f.dismiss(e.id),t.filter(t=>{let{id:n}=t;return n!==e.id})})},[]);return r.useEffect(()=>f.subscribe(e=>{if(e.dismiss)return void O(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));setTimeout(()=>{i.flushSync(()=>{O(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==h)return void q(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;q(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{q(t?"dark":"light")}catch(e){console.error(e)}})}},[h]),r.useEffect(()=>{R.length<=1&&j(!1)},[R]),r.useEffect(()=>{let e=e=>{var t,n;o.every(t=>
1e[t]||e.code===t)&&(j(!0),null==(t=I.current)||t.focus()),"Escape"===e.code&&(document.activeElement===I.current||null!=(n=I.current)&&n.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{if(I.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,H.current=!1)}},[I.current]),r.createElement("section",{ref:t,"aria-label":"".concat(P," ").concat(B),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((t,i)=>{var a;let o,[h,f]=t.split("-");return R.length?r.createElement("ol",{key:t,dir:"auto"===x?g():x,tabIndex:-1,ref:I,className:u,"data-sonner-toaster":!0,"data-theme":F,"data-y-position":h,"data-lifted":L&&R.length>1&&!s,"data-x-position":f,style:{"--front-toast-height":"".concat((null==(a=A[0])?void 0:a.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(E,"px"),...v,...(o={},[c,d].forEach((e,t)=>{let n=1===t,r=n?"--mobile-offset":"--offset",i=n?"16px":"32px";function a(e){["top","right","bottom","left"].forEach(t=>{o["".concat(r,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?o["".concat(r,"-").concat(t)]=i:o["".concat(r,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):a(i)}),o)},onBlur:e=>{H.current&&!e.currentTarget.contains(e.relatedTarget)&&(H.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||H.current||(H.current=!0,K.current=e.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{M||j(!1)},onDragEnd:()=>j(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||N(!0)},onPointerUp:()=>N(!1)},R.filter(e=>!e.position&&0===i||e.position===t).map((i,a)=>{var o,u;return r.createElement(y,{key:i.id,icons:T,index:a,toast:i,defaultRichColors:p,duration:null!=(o=null==w?void 0:w.duration)?o:m,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:n,visibleToasts:b,closeButton:null!=(u=null==w?void 0:w.closeButton)?u:l,interacting:M,position:t,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,removeToast:z,toasts:R.filter(e=>e.position==i.position),heights:A.filter(e=>e.position==i.position),setHeights:D,expandByDefault:s,gap:E,loadingIcon:C,expanded:L,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))})},32742:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(40228);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,o=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(r);return o[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},33508:(e,t,n)=>{"use strict";n.d(t,{lg:()=>y,qW:()=>h,bL:()=>v});var r,i=n(53890),a=n(67849),o=n(92256),s=n(54237),l=n(34696),u=n(38634),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,h;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...x}=e,E=i.useContext(d),[C,T]=i.useState(null),P=null!=(h=null==C?void 0:C.ownerDocument)?h:null==(n=globalThis)?void 0:n.document,[,S]=i.useState({}),R=(0,s.s)(t,e=>T(e)),O=Array.from(E.layers),[k]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(k),D=C?O.indexOf(C):-1,L=E.layersWithOutsidePointerEventsDisabled.size>0,j=D>=A,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),a=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));j&&!n&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},P),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),a=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},P);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D===E.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},P),i.useEffect(()=>{if(C)return f&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{f&&1===E.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=r)}},[C,P,f,E]),i.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.sG.div,{...x,ref:R,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.mK)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,a.mK)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,a.mK)(e.onPointerDownCapture,M.onPointerDownCapture)})});h.displayName="DismissableLayer";var f=i.forwardRef((e,t)=>
1{let n=i.useContext(d),r=i.useRef(null),a=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(o.sG.div,{...e,ref:a})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:i}=r,a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?(0,o.hO)(a,s):a.dispatchEvent(s)}f.displayName="DismissableLayerBranch";var v=h,y=f},34696:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(53890);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},36305:(e,t,n)=>{"use strict";let r;n.d(t,{UC:()=>ty,Kq:()=>tp,bL:()=>tm,l9:()=>tv});var i=n(53890),a=n(67849),o=n(54237),s=n(47889),l=n(33508),u=n(51048);let c=["top","right","bottom","left"],d=Math.min,h=Math.max,f=Math.round,p=Math.floor,m=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"};function y(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function E(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function C(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let T=["left","right"],P=["right","left"],S=["top","bottom"],R=["bottom","top"];function O(e){let t=g(e);return v[t]+e.slice(t.length)}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function D(e,t,n){let r,{reference:i,floating:a}=e,o=E(t),s=w(E(t)),l=x(s),u=g(t),c="y"===o,d=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,f=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-a.width,y:h};break;default:r={x:i.x,y:i.y}}switch(b(t)){case"start":r[s]-=f*(n&&c?-1:1);break;case"end":r[s]+=f*(n&&c?-1:1)}return r}async function L(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=y(t,e),p=k(f),m=s[h?"floating"===d?"reference":"floating":d],v=A(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=A(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-x.top+p.top)/w.y,bottom:(x.bottom-v.bottom+p.bottom)/w.y,left:(v.left-x.left+p.left)/w.x,right:(x.right-v.right+p.right)/w.x}}let j=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:L},l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=D(u,r,l),h=r,f=0,p={};for(let n=0;n<a.length;n++){let m=a[n];if(!m)continue;let{name:v,fn:y}=m,{x:g,y:b,data:w,reset:x}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,p[v]={...p[v],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=D(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:p}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return c.some(t=>e[t]>=0)}let F=new Set(["left","top"]);async function q(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=g(n),s=b(n),l="y"===E(n),u=F.has(o)?-1:1,c=a&&l?-1:1,d=y(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}function I(){return"undefined"!=typeof window}function B(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!I()&&(e instanceof Node||e instanceof K(e).Node)}function _(e){return!!I()&&(e instanceof Element||e instanceof K(e).Element)}function Q(e){return!!I()&&(e instanceof HTMLElement||e instanceof K(e).HTMLElement)}function U(e){return!!I()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function Y(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,V=/paint|layout|strict|content/,X=e=>!!e&&"none"!==e;function $(e){let t=_(e)?ee(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!J()&&(X(t.backdropFilter)||X(t.filter))||G.test(t.willChange||"")||V.test(t.contain||"")}function J(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Z(e){return/^(html|body|#document)$/.test(B(e))}function ee(e){return K(e).getComputedStyle(e)}function et(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||H(e);return U(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:Q(n)&&W(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=K(i);if(!a)return t.concat(i,er(i,[],n));{let e=ei(o);return t.concat(o,o.visualViewport||[],W(i)?i:[],e&&n?er(e):[])}}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ea(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=f(n)!==a||f(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function eo(e){return _(e)?e:e.contextElement}function es(e){let t=eo(e);if(!Q(t))return m(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ea(t),o=(a?f(n.width):n.width)/r,s=(a?f(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let el=m(0);function eu(e){let t=K(e);return J()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ec(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=eo(e),s=m(1);t&&(r?_(r)&&(s=es(r)):s=es(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===K(o))&&i)?eu(o):m(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,h=a.height/s.y;if(o){let e=K(o),t=r&&_(r)?K(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ee(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=a,c+=o,i=ei(n=K(i))}}return A({width:d,height:h,x:u,y:c})}function ed(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(H(e)).left+n}function eh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function ef(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=K(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=J();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=ed(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=H(e),n=et(e),r=e.ownerDocument.body,i=h(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=h(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ed(e),s=-n.scrollTop;return"rtl"===ee(r).direction&&(o+=h(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(H(e));else if(_(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e)?es(e):m(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:i*a.x,y:r*a.y}}(t,n);else{let n=eu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(r)}function ep(e){return"static"===ee(e).position}function em(e,t){if(!Q(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=K(e);if(Y(e))return r;if(!Q(e)){let t=en(e);for(;t&&!Z(t);){if(_(t)&&!ep(t))return t;t=en(t)}return r}let i=em(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(B(n)))&&ep(i);)i=em(i,t);return i&&Z(i)&&ep(i)&&!$(i)?r:i||function(e){let t=en(e);for(;Q(t)&&!Z(t);){if($(t))return t;if(Y(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Q(t),i=H(t),a="fixed"===n,o=ec(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=m(0);if(r||!r&&!a)if(("body"!==B(t)||W(i))&&(s=et(t)),r){let e=ec(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ed(i));a&&!r&&i&&(l.x=ed(i));let u=!i||r||a?m(0):eh(i,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=H(r),s=!!t&&Y(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=m(1),c=m(0),d=Q(r);
1if((d||!d&&!a)&&(("body"!==B(r)||W(o))&&(l=et(r)),d)){let e=ec(r);u=es(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!o||d||a?m(0):eh(o,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?Y(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>_(e)&&"body"!==B(e)),i=null,a="fixed"===ee(e).position,o=a?en(e):e;for(;_(o)&&!Z(o);){let t=ee(o),n=$(o);n||"fixed"!==t.position||(i=null),(a?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||W(o)&&!n&&function e(t,n){let r=en(t);return!(r===n||!_(r)||Z(r))&&("fixed"===ee(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=en(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=ef(t,a[0],i),s=o.top,l=o.right,u=o.bottom,c=o.left;for(let e=1;e<a.length;e++){let n=ef(t,a[e],i);s=h(n.top,s),l=d(n.right,l),u=d(n.bottom,u),c=h(n.left,c)}return{width:l-c,height:u-s,x:c,y:s}},getOffsetParent:ev,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ea(e);return{width:t,height:n}},getScale:es,isElement:_,isRTL:function(e){return"rtl"===ee(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=y(e,t)||{};if(null==u)return{};let f=k(c),p={x:n,y:r},m=w(E(i)),v=x(m),g=await o.getDimensions(u),C="y"===m,T=C?"clientHeight":"clientWidth",P=a.reference[v]+a.reference[m]-p[m]-a.floating[v],S=p[m]-a.reference[m],R=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),O=R?R[T]:0;O&&await (null==o.isElement?void 0:o.isElement(R))||(O=s.floating[T]||a.floating[v]);let A=O/2-g[v]/2-1,D=d(f[C?"top":"left"],A),L=d(f[C?"bottom":"right"],A),j=O-g[v]-L,M=O/2-g[v]/2+(P/2-S/2),N=h(D,d(M,j)),F=!l.arrow&&null!=b(i)&&M!==N&&a.reference[v]/2-(M<D?D:L)-g[v]/2<0,q=F?M<D?M-D:M-j:0;return{[m]:p[m]+q,data:{[m]:N,centerOffset:M-N-q,...F&&{alignmentOffset:q}},reset:F}}});var ex=n(39167),eE="undefined"!=typeof document?i.useLayoutEffect:function(){};function eC(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eC(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eP(e,t){let n=eT(e);return Math.round(t*n)/n}function eS(e){let t=i.useRef(e);return eE(()=>{t.current=e}),t}var eR=n(92256),eO=n(38634),ek=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,eO.jsx)(eR.sG.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eO.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow";var eA=n(34696),eD=n(91420),eL="Popper",[ej,eM]=(0,s.A)(eL),[eN,eF]=ej(eL),eq=e=>{let{__scopePopper:t,children:n}=e,[r,a]=i.useState(null);return(0,eO.jsx)(eN,{scope:t,anchor:r,onAnchorChange:a,children:n})};eq.displayName=eL;var eI="PopperAnchor",eB=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,s=eF(eI,n),l=i.useRef(null),u=(0,o.s)(t,l),c=i.useRef(null);return i.useEffect(()=>{let e=c.current;c.current=(null==r?void 0:r.current)||l.current,e!==c.current&&s.onAnchorChange(c.current)}),r?null:(0,eO.jsx)(eR.sG.div,{...a,ref:u})});eB.displayName=eI;var eK="PopperContent",[eH,ez]=ej(eK),e_=i.forwardRef((e,t)=>{var n,r,a,s,l,u,c,f;let{__scopePopper:m,side:v="bottom",sideOffset:k=0,align:A="center",alignOffset:D=0,arrowPadding:L=0,avoidCollisions:I=!0,collisionBoundary:B=[],collisionPadding:K=0,sticky:z="partial",hideWhenDetached:_=!1,updatePositionStrategy:Q="optimized",onPlaced:U,...W}=e,Y=eF(eK,m),[G,V]=i.useState(null),X=(0,o.s)(t,e=>V(e)),[$,J]=i.useState(null),Z=function(e){let[t,n]=i.useState(void 0);return(0,eD.N)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}($),ee=null!=(c=null==Z?void 0:Z.width)?c:0,et=null!=(f=null==Z?void 0:Z.height)?f:0,en="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},ei=Array.isArray(B)?B:[B],ea=ei.length>0,es={padding:en,boundary:ei.filter(eY),altBoundary:ea},{refs:el,floatingStyles:eu,placement:ed,isPositioned:eh,middlewareData:ef}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=i.useState(r);eC(f,r)||p(r);let[m,v]=i.useState(null),[y,g]=i.useState(null),b=i.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=i.useCallback(e=>{e!==T.current&&(T.current=e,g(e))},[]),x=o||m,E=s||y,C=i.useRef(null),T=i.useRef(null),P=i.useRef(d),S=null!=u,R=eS(u),O=eS(a),k=eS(c),A=i.useCallback(()=>{if(!C.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),((e,t,n)=>{let r=new Map,i={platform:eg,...n},a={...i.platform,_c:r};return j(e,t,{...i,platform:a})})(C.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};D.current&&!eC(P.current,t)&&(P.current=t,ex.flushSync(()=>{h(t)}))})},[f,t,n,O,k]);eE(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let D=i.useRef(!1);eE(()=>(D.current=!0,()=>{D.current=!1}),[]),eE(()=>{if(x&&(C.current=x),E&&(T.current=E),x&&E){if(R.current)return R.current(x,E,A);A()}},[x,E,A,R,S]);let L=i.useMemo(()=>({reference:C,floating:T,setReference:b,setFloating:w}),[b,w]),M=i.useMemo(()=>({reference:x,floating:E}),[x,E]),N=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eP(M.floating,d.x),r=eP(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:A,refs:L,elements:M,floatingStyles:N}),[d,A,L,M,N])}({strategy:"fixed",placement:v+("center"!==A?"-"+A:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eo(e),f=a||o?[...c?er(c):[],...t?er(t):[]]:[];f.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let m=c&&l?function(e,t){let n,r=null,i=H(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:f,width:m,height:v}=u;if(s||t(),!m||!v)return;let y=p(f),g=p(i.clientWidth-(c+m)),b={rootMargin:-y+"px "+-g+"px "+-p(i.clientHeight-(f+v))+"px "+-p(c)+"px",threshold:h(0,d(1,l))||1},w=!0;function x(t){let r=t[0].intersectionRatio;if(r!==l){if(!w)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||eb(u,e.getBoundingClientRect())||o(),w=!1}try{r=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,b)}r.observe(e)}(!0),a}(c,n):null,v=-1,y=null;s&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&y&&t&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),c&&!u&&y.observe(c),t&&y.observe(t));let g=u?ec(e):null;return u&&function t(){let r=ec(e);g&&!eb(g,r)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===Q})},elements:{reference:Y.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await q(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:k+et,alignmentAxis:D}),I&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=y(e,t),c={x:n,y:r},f=await a.detectOverflow(t,u),p=E(g(i)),m=w(p),v=c[m],b=c[p];if(o){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=v+f[e],r=v-f[t];v=h(n,d(v,r))}
1if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=b+f[e],r=b-f[t];b=h(n,d(b,r))}let x=l.fn({...t,[m]:v,[p]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[m]:o,[p]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===z?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=y(e,t),c={x:n,y:r},d=E(i),h=w(d),f=c[h],p=c[d],m=y(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+v.mainAxis,n=a.reference[h]+a.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var b,x;let e="y"===h?"width":"height",t=F.has(g(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(b=o.offset)?void 0:b[d])||0)+(t?0:v.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(x=o.offset)?void 0:x[d])||0)-(t?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[d]:p}}}}(e).fn,options:[e,t]}))():void 0,...es}),I&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:A=!0,...D}=y(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let L=g(s),j=E(c),M=g(c)===c,N=await (null==d.isRTL?void 0:d.isRTL(h.floating)),F=m||(M||!A?[O(c)]:function(e){let t=O(e);return[C(e),t,C(t)]}(c)),q="none"!==k;!m&&q&&F.push(...function(e,t,n,r){let i=b(e),a=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?P:T;return t?T:P;case"left":case"right":return t?S:R;default:return[]}}(g(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(C)))),a}(c,A,k,N));let I=[c,...F],B=await d.detectOverflow(t,D),K=[],H=(null==(r=l.flip)?void 0:r.overflows)||[];if(f&&K.push(B[L]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=b(e),i=w(E(e)),a=x(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=O(o)),[o,O(o)]}(s,u,N);K.push(B[e[0]],B[e[1]])}if(H=[...H,{placement:s,overflows:K}],!K.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=I[e];if(t&&("alignment"!==p||j===E(t)||H.every(e=>E(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(a=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(v){case"bestFit":{let e=null==(o=H.filter(e=>{if(q){let t=E(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...es}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,a,{placement:o,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...f}=y(e,t),p=await l.detectOverflow(t,f),m=g(o),v=b(o),w="y"===E(o),{width:x,height:C}=s.floating;"top"===m||"bottom"===m?(i=m,a=v===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=m,i="end"===v?"top":"bottom");let T=C-p.top-p.bottom,P=x-p.left-p.right,S=d(C-p[i],T),R=d(x-p[a],P),O=!t.middlewareData.shift,k=S,A=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=P),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=T),O&&!v){let e=h(p.left,0),t=h(p.right,0),n=h(p.top,0),r=h(p.bottom,0);w?A=x-2*(0!==e||0!==t?e+t:h(p.left,p.right)):k=C-2*(0!==n||0!==r?n+r:h(p.top,p.bottom))}await c({...t,availableWidth:A,availableHeight:k});let D=await l.getDimensions(u.floating);return x!==D.width||C!==D.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...es,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:a,height:o}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),$&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ew({element:n.current,padding:r}).fn(t):{}:n?ew({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:$,padding:L}),eG({arrowWidth:ee,arrowHeight:et}),_&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=y(e,t);switch(i){case"referenceHidden":{let e=M(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=M(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...es})]}),[ep,em]=eV(ed),ev=(0,eA.c)(U);(0,eD.N)(()=>{eh&&(null==ev||ev())},[eh,ev]);let ey=null==(n=ef.arrow)?void 0:n.x,ek=null==(r=ef.arrow)?void 0:r.y,eL=(null==(a=ef.arrow)?void 0:a.centerOffset)!==0,[ej,eM]=i.useState();return(0,eD.N)(()=>{G&&eM(window.getComputedStyle(G).zIndex)},[G]),(0,eO.jsx)("div",{ref:el.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:eh?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ej,"--radix-popper-transform-origin":[null==(s=ef.transformOrigin)?void 0:s.x,null==(l=ef.transformOrigin)?void 0:l.y].join(" "),...(null==(u=ef.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eO.jsx)(eH,{scope:m,placedSide:ep,onArrowChange:J,arrowX:ey,arrowY:ek,shouldHideArrow:eL,children:(0,eO.jsx)(eR.sG.div,{"data-side":ep,"data-align":em,...W,ref:X,style:{...W.style,animation:eh?void 0:"none"}})})})});e_.displayName=eK;var eQ="PopperArrow",eU={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eW=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ez(eQ,n),a=eU[i.placedSide];return(0,eO.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eO.jsx)(ek,{...r,ref:t,style:{...r.style,display:"block"}})})});function eY(e){return null!==e}eW.displayName=eQ;var eG=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eV(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+d/2,y=(null!=(o=null==(i=u.arrow)?void 0:i.y)?o:0)+h/2,g="",b="";return"bottom"===f?(g=c?m:"".concat(v,"px"),b="".concat(-h,"px")):"top"===f?(g=c?m:"".concat(v,"px"),b="".concat(l.floating.height+h,"px")):"right"===f?(g="".concat(-h,"px"),b=c?m:"".concat(y,"px")):"left"===f&&(g="".concat(l.floating.width+h,"px"),b=c?m:"".concat(y,"px")),{data:{x:g,y:b}}}});function eV(e){let[t,n="center"]=e.split("-");return[t,n]}n(54801);var eX=n(13918),e$=n(82963),eJ=n(85336),eZ=n(65285),[e0,e1]=(0,s.A)("Tooltip",[eM]),e5=eM(),e2="TooltipProvider",e3="tooltip.open",[e4,e6]=e0(e2),e9=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,s=i.useRef(!0),l=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,eO.jsx)(e4,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:o})};e9.displayName=e2;var e8="Tooltip",[e7,te]=e0(e8),tt=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:o,disableHoverableContent:s,delayDuration:l}=e,c=e6(e8,e.__scopeTooltip),d=e5(t),[h,f]=i.useState(null),p=(0,u.B)(),m=i.useRef(0),v=null!=s?s:c.disableHoverableContent,y=null!=l?l:c.delayDuration,g=i.useRef(!1),[b,w]=(0,eJ.i)({prop:r,defaultProp:null!=a&&a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(e3))):c.onClose(),null==o||o(e)},caller:e8}),x=i.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,w(!0)},[w]),C=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),T=i.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,w(!0),m.current=0},y)},[y,w]);return i.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,eO.jsx)(eq,{...d,children:(0,eO.jsx)(e7,{scope:t,contentId:p,open:b,stateAttribute:x,trigger:h,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{c.isOpenDelayedRef.current?T():E()},[c.isOpenDelayedRef,T,E]),onTriggerLeave:i.useCallback(()=>{v?C():(window.clearTimeout(m.current),m.current=0)},[C,v]),onOpen:E,onClose:C,disableHoverableContent:v,children:n})})};tt.displayName=e8;var tn="TooltipTrigger",tr=i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,s=te(tn,n),l=e6(tn,n),u=e5(n),c=i.useRef(null),d=(0,o.s)(t,c,s.onTriggerChange),h=i.useRef(!1),f=i.useRef(!1),p=i.useCallback(()=>h.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),(0,eO.jsx)(eB,{asChild:!0,...u,children:(0,eO.jsx)(eR.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:d,onPointerMove:(0,a.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(f.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),f.current=!0))}),onPointerLeave:(0,a.mK)(e.onPointerLeave,()=>{s.onTriggerLeave(),f.current=!1}),onPointerDown:(0,a.mK)(e.onPointerDown,()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:(0,a.mK)(e.onFocus,()=>{h.current||s.onOpen()}),onBlur:(0,a.mK)(e.onBlur,s.onClose),onClick:(0,a.mK)(e.onClick,s.onClose)})})});
1tr.displayName=tn;var[ti,ta]=e0("TooltipPortal",{forceMount:void 0}),to="TooltipContent",ts=i.forwardRef((e,t)=>{let n=ta(to,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=te(to,e.__scopeTooltip);return(0,eO.jsx)(eX.C,{present:r||o.open,children:o.disableHoverableContent?(0,eO.jsx)(th,{side:i,...a,ref:t}):(0,eO.jsx)(tl,{side:i,...a,ref:t})})}),tl=i.forwardRef((e,t)=>{let n=te(to,e.__scopeTooltip),r=e6(to,e.__scopeTooltip),a=i.useRef(null),s=(0,o.s)(t,a),[l,u]=i.useState(null),{trigger:c,onClose:d}=n,h=a.current,{onPointerInTransitChange:f}=r,p=i.useCallback(()=>{u(null),f(!1)},[f]),m=i.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(c&&h){let e=e=>m(e,h),t=e=>m(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,m,p]),i.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],l=o.x,u=o.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,l);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,d,p]),(0,eO.jsx)(th,{...e,ref:s})}),[tu,tc]=e0(e8,{isInside:!1}),td=(0,e$.Dc)("TooltipContent"),th=i.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:s,...u}=e,c=te(to,n),d=e5(n),{onClose:h}=c;return i.useEffect(()=>(document.addEventListener(e3,h),()=>document.removeEventListener(e3,h)),[h]),i.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(c.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,h]),(0,eO.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,eO.jsxs)(e_,{"data-state":c.stateAttribute,...d,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,eO.jsx)(td,{children:r}),(0,eO.jsx)(tu,{scope:n,isInside:!0,children:(0,eO.jsx)(eZ.bL,{id:c.contentId,role:"tooltip",children:a||r})})]})})});ts.displayName=to;var tf="TooltipArrow";i.forwardRef((e,t)=>
1{let{__scopeTooltip:n,...r}=e,i=e5(n);return tc(tf,n).isInside?null:(0,eO.jsx)(eW,{...i,...r,ref:t})}).displayName=tf;var tp=e9,tm=tt,tv=tr,ty=ts},54801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(53890),i=n(39167),a=n(92256),o=n(91420),s=n(38634),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,o.N)(()=>h(!0),[]);let f=u||d&&(null==(l=globalThis)||null==(n=l.document)?void 0:n.body);return f?i.createPortal((0,s.jsx)(a.sG.div,{...c,ref:t}),f):null});l.displayName="Portal"},57024:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_fa2f99",variable:"__variable_fa2f99"}},60660:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>o});var r=n(53890),i=n(38634),a=r.createContext(void 0),o=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(a.Provider,{value:t,children:n})}},63696:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>X,LM:()=>$,VY:()=>ee,bL:()=>J,bm:()=>en,hE:()=>Z,rc:()=>et});var r=n(53890),i=n(39167),a=n(67849),o=n(54237),s=n(63293),l=n(47889),u=n(33508),c=n(54801),d=n(13918),h=n(92256),f=n(34696),p=n(85336),m=n(91420),v=n(65285),y=n(38634),g="ToastProvider",[b,w,x]=(0,s.N)("Toast"),[E,C]=(0,l.A)("Toast",[x]),[T,P]=E(g),S=e=>{let{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:s}=e,[l,u]=r.useState(null),[c,d]=r.useState(0),h=r.useRef(!1),f=r.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,y.jsx)(b.Provider,{scope:t,children:(0,y.jsx)(T,{scope:t,label:n,duration:i,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:r.useCallback(()=>d(e=>e+1),[]),onToastRemove:r.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:s})})};S.displayName=g;var R="ToastViewport",O=["F8"],k="toast.viewportPause",A="toast.viewportResume",D=r.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:i=O,label:a="Notifications ({hotkey})",...s}=e,l=P(R,n),c=w(n),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=r.useRef(null),v=(0,o.s)(t,m,l.onViewportChange),g=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;r.useEffect(()=>{let e=e=>{var t;0!==i.length&&i.every(t=>e[t]||e.code===t)&&(null==(t=m.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{let e=d.current,t=m.current;if(x&&e&&t){let n=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(k);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},r=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(A);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[x,l.isClosePausedRef]);let E=r.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return r.useEffect(()=>{let e=m.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,i,a;let n=document.activeElement,o=t.shiftKey;if(t.target===e&&o){null==(r=f.current)||r.focus();return}let s=E({tabbingDirection:o?"backwards":"forwards"}),l=s.findIndex(e=>e===n);V(s.slice(l+1))?t.preventDefault():o?null==(i=f.current)||i.focus():null==(a=p.current)||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,E]),(0,y.jsxs)(u.lg,{ref:d,role:"region","aria-label":a.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,y.jsx)(j,{ref:f,onFocusFromOutsideViewport:()=>{V(E({tabbingDirection:"forwards"}))}}),(0,y.jsx)(b.Slot,{scope:n,children:(0,y.jsx)(h.sG.ol,{tabIndex:-1,...s,ref:v})}),x&&(0,y.jsx)(j,{ref:p,onFocusFromOutsideViewport:()=>{V(E({tabbingDirection:"backwards"}))}})]})});D.displayName=R;var L="ToastFocusProxy",j=r.forwardRef((e,t)=>
1{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=P(L,n);return(0,y.jsx)(v.s6,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null==(t=a.viewport)?void 0:t.contains(n))||r()}})});j.displayName=L;var M="Toast",N=r.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[l,u]=(0,p.i)({prop:r,defaultProp:null==i||i,onChange:o,caller:M});return(0,y.jsx)(d.C,{present:n||l,children:(0,y.jsx)(I,{open:l,...s,ref:t,onClose:()=>u(!1),onPause:(0,f.c)(e.onPause),onResume:(0,f.c)(e.onResume),onSwipeStart:(0,a.mK)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.mK)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:(0,a.mK)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,a.mK)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),u(!1)})})})});N.displayName=M;var[F,q]=E(M,{onClose(){}}),I=r.forwardRef((e,t)=>{let{__scopeToast:n,type:s="foreground",duration:l,open:c,onClose:d,onEscapeKeyDown:p,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:w,onSwipeCancel:x,onSwipeEnd:E,...C}=e,T=P(M,n),[S,R]=r.useState(null),O=(0,o.s)(t,e=>R(e)),D=r.useRef(null),L=r.useRef(null),j=l||T.duration,N=r.useRef(0),q=r.useRef(j),I=r.useRef(0),{onToastAdd:K,onToastRemove:H}=T,z=(0,f.c)(()=>{var e;(null==S?void 0:S.contains(document.activeElement))&&(null==(e=T.viewport)||e.focus()),d()}),_=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(I.current),N.current=new Date().getTime(),I.current=window.setTimeout(z,e))},[z]);r.useEffect(()=>{let e=T.viewport;if(e){let t=()=>{_(q.current),null==v||v()},n=()=>{let e=new Date().getTime()-N.current;q.current=q.current-e,window.clearTimeout(I.current),null==m||m()};return e.addEventListener(k,n),e.addEventListener(A,t),()=>{e.removeEventListener(k,n),e.removeEventListener(A,t)}}},[T.viewport,j,m,v,_]),r.useEffect(()=>{c&&!T.isClosePausedRef.current&&_(j)},[c,j,T.isClosePausedRef,_]),r.useEffect(()=>(K(),()=>H()),[K,H]);let Q=r.useMemo(()=>S?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{var r;if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),(r=t).nodeType===r.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r)if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}),n}(S):null,[S]);return T.viewport?(0,y.jsxs)(y.Fragment,{children:[Q&&(0,y.jsx)(B,{__scopeToast:n,role:"status","aria-live":"foreground"===s?"assertive":"polite",children:Q}),(0,y.jsx)(F,{scope:n,onClose:z,children:i.createPortal((0,y.jsx)(b.ItemSlot,{scope:n,children:(0,y.jsx)(u.bL,{asChild:!0,onEscapeKeyDown:(0,a.mK)(p,()=>{T.isFocusedToastEscapeKeyDownRef.current||z(),T.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,y.jsx)(h.sG.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":T.swipeDirection,...C,ref:O,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.mK)(e.onKeyDown,e=>{"Escape"===e.key&&(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(T.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{0===e.button&&(D.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.mK)(e.onPointerMove,e=>{if(!D.current)return;let t=e.clientX-D.current.x,n=e.clientY-D.current.y,r=!!L.current,i=["left","right"].includes(T.swipeDirection),a=["left","up"].includes(T.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),l="touch"===e.pointerType?10:2,u={x:o,y:s},c={originalEvent:e,delta:u};r?(L.current=u,Y("toast.swipeMove",w,c,{discrete:!1})):G(u,T.swipeDirection,l)?(L.current=u,Y("toast.swipeStart",g,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(D.current=null)}),onPointerUp:(0,a.mK)(e.onPointerUp,e=>{let t=L.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),L.current=null,D.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};G(t,T.swipeDirection,T.swipeThreshold)?Y("toast.swipeEnd",E,r,{discrete:!0}):Y("toast.swipeCancel",x,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),T.viewport)})]}):null}),B=e=>{let{__scopeToast:t,children:n,...i}=e,a=P(M,t),[o,s]=r.useState(!1),[l,u]=r.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,f.c)(e);(0,m.N)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>s(!0)),r.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,y.jsx)(c.Z,{asChild:!0,children:(0,y.jsx)(v.s6,{...i,children:o&&(0,y.jsxs)(y.Fragment,{children:[a.label," ",n]})})})},K=r.forwardRef((e,t)=>
1{let{__scopeToast:n,...r}=e;return(0,y.jsx)(h.sG.div,{...r,ref:t})});K.displayName="ToastTitle";var H=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,y.jsx)(h.sG.div,{...r,ref:t})});H.displayName="ToastDescription";var z="ToastAction",_=r.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,y.jsx)(W,{altText:n,asChild:!0,children:(0,y.jsx)(U,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(z,"`. Expected non-empty `string`.")),null)});_.displayName=z;var Q="ToastClose",U=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=q(Q,n);return(0,y.jsx)(W,{asChild:!0,children:(0,y.jsx)(h.sG.button,{type:"button",...r,ref:t,onClick:(0,a.mK)(e.onClick,i.onClose)})})});U.displayName=Q;var W=r.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,y.jsx)(h.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Y(e,t,n,r){let{discrete:i}=r,a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?(0,h.hO)(a,o):a.dispatchEvent(o)}var G=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return"left"===t||"right"===t?a&&r>n:!a&&i>n};function V(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var X=S,$=D,J=N,Z=K,ee=H,et=_,en=U},65285:(e,t,n)=>{"use strict";n.d(t,{bL:()=>l,s6:()=>s});var r=n(53890),i=n(92256),a=n(38634),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,a.jsx)(i.sG.span,{...e,ref:t,style:{...o,...e.style}}));s.displayName="VisuallyHidden";var l=s},69168:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_f9e569",variable:"__variable_f9e569"}},78516:(e,t,n)=>{"use strict";n.d(t,{E:()=>K});var r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#e=r;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},a="undefined"==typeof window||"Deno"in globalThis;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==c(o,t.options))return!1}else if(!h(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!a||!!a(t))}function u(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(d(t.options.mutationKey)!==d(a))return!1}else if(!h(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function c(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>h(e[n],t[n]))}var f=Object.prototype.hasOwnProperty;function p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!v(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!v(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function g(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var b=Symbol();function w(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==b?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var x=function(e){setTimeout(e,0)},E=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=x,a=r=>{t?e.push(r):i(()=>{n(r)})};return{batch:a=>{let o;t++;try{o=a()}finally{--t||(()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
1{t.forEach(e=>{n(e)})})})})()}return o},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),C=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},T=new class extends C{#n;#r;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:globalThis.document?.visibilityState!=="hidden"}},P=new class extends C{#a=!0;#r;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}},S=(()=>{let e=()=>a;return{isServer:()=>e(),setIsServer(t){e=t}}})();function R(e){return Math.min(1e3*2**e,3e4)}function O(e){return(e??"online")!=="online"||P.isOnline()}var k=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function A(e){let t,n=!1,r=0,a=function(){let e,t,n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}(),o=()=>T.isFocused()&&("always"===e.networkMode||P.isOnline())&&e.canRun(),s=()=>O(e.networkMode)&&e.canRun(),l=e=>{"pending"===a.status&&(t?.(),a.resolve(e))},u=e=>{"pending"===a.status&&(t?.(),a.reject(e))},c=()=>new Promise(n=>{t=e=>{("pending"!==a.status||o())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===a.status&&e.onContinue?.()}),d=()=>{let t;if("pending"!==a.status)return;let s=0===r?e.initialPromise:void 0;try{t=s??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if("pending"!==a.status)return;let s=e.retry??3*!S.isServer(),l=e.retryDelay??R,h="function"==typeof l?l(r,t):l,f=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);if(n||!f)return void u(t);r++,e.onFail?.(r,t),new Promise(e=>{i.setTimeout(e,h)}).then(()=>o()?void 0:c()).then(()=>{n?u(t):d()})})};return{promise:a,status:()=>a.status,cancel:t=>{if("pending"===a.status){let n=new k(t);u(n),e.onCancel?.(n)}},continue:()=>(t?.(),a),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():c().then(d),a)}}var D=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#o=i.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(S.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#o&&(i.clearTimeout(this.#o),this.#o=void 0)}};function L(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var j=class extends D{#s;#l;#u;#c;#d;#h;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#c=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=N(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=N(this.options);void 0!==e.data&&(this.setState(M(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){var n,r;let i=(n=this.state.data,"function"==typeof(r=this.options).structuralSharing?r.structuralSharing(n,e):!1!==r.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let i=p(t)&&p(n);if(!i&&!(m(t)&&m(n)))return n;let a=(i?t:Object.keys(t)).length,o=i?n:Object.keys(n),s=o.length,l=i?Array(s):{},u=0;for(let c=0;c<s;c++){let s=i?c:o[c],d=t[s],h=n[s];if(d===h){l[s]=d,(i?c<a:f.call(t,s))&&u++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){l[s]=h;continue}let p=e(d,h,r+1);l[s]=p,p===d&&u++}return a===s&&u===a?t:l}(n,e):e);return this.#m({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e){this.#m({type:"setState",state:e})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(o).catch(o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>{var t;return!1!==(t=e.options.enabled,"function"==typeof t?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===b||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===s(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#h&&(this.#p||this.#v()?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#v(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){var n;if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,r.signal)})},a=()=>{let e=w(this.options,t),n=(()=>{let e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#p=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},o=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:a};return i(e),e})(),s="infinite"===this.#s?(n=this.options.pages,{onFetch:(e,t)=>{let r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,u=async()=>{let t=!1,u=w(e.options,e.fetchOptions),c=async(n,r,i)=>{if(t)return Promise.reject(e.signal.reason);if(null==r&&n.pages.length)return Promise.resolve(n);let a=(()=>{var n,a;let o,s,l={client:e.client,queryKey:e.queryKey,pageParam:r,direction:i?"backward":"forward",meta:e.options.meta};return n=()=>e.signal,a=()=>t=!0,s=!1,Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??=n(),s||(s=!0,o.aborted?a():o.addEventListener("abort",a,{once:!0})),o)}),l})(),o=await u(a),{maxPages:s}=e.options,l=i?g:y;return{pages:l(n.pages,o,s),pageParams:l(n.pageParams,r,s)}};if(i&&a.length){let e="backward"===i,t={pages:a,pageParams:o},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:L)(r,t);s=await c(t,n,e)}else{let e=n??a.length;do{let e=0===l?o[0]??r.initialPageParam:L(r,s);if(l>0&&null==e)break;s=await c(s,e),l++}while(l<e)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=u}}):this.options.behavior;s?.onFetch(o,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#m({type:"fetch",meta:o.fetchOptions?.meta}),this.#h=A({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof k&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof k){if(e.silent)return this.#h.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#m({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#m(e){let t=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":var n;return{...t,...(n=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O(this.options.networkMode)?"fetching":"paused",...void 0===n&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":let r={...t,...M(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let i=e.error;
vendor: 4,668 bytes, line 1
1return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),E.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function M(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function N(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var F=class extends C{constructor(e={}){super(),this.config=e,this.#y=new Map}#y;build(e,t,n){let r=t.queryKey,i=t.queryHash??c(r,t),a=this.get(i);return a||(a=new j({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#y.has(e.queryHash)||(this.#y.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#y.get(e.queryHash);t&&(e.destroy(),t===e&&this.#y.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){E.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#y.get(e)}getAll(){return[...this.#y.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>l(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>l(e,t)):t}notify(e){E.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){E.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){E.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},q=class extends D{#d;#g;#b;#h;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#b=e.mutationCache,this.#g=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#g.includes(e)||(this.#g.push(e),this.clearGcTimeout(),this.#b.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#g=this.#g.filter(t=>t!==e),this.scheduleGc(),this.#b.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#g.length||("pending"===this.state.status?this.scheduleGc():this.#b.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#m({type:"continue"})},n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=A({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#b.canRun(this)});let r="pending"===this.state.status,i=!this.#h.canStart();try{if(r)t();else{this.#m({type:"pending",variables:e,isPaused:i}),this.#b.config.onMutate&&await this.#b.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:i})}let a=await this.#h.start();return await this.#b.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#b.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#m({type:"success",data:a}),a}catch(t){try{await this.#b.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#b.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#m({type:"error",error:t}),t}finally{this.#b.runNext(this)}}#m(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),E.batch(()=>{this.#g.forEach(t=>{t.onMutationUpdate(e)}),this.#b.notify({mutation:this,type:"updated",action:e})})}},I=class extends C{constructor(e={}){super(),this.config=e,this.#w=new Set,this.#x=new Map,this.#E=0}#w;#x;#E;build(e,t,n){let r=new q({client:e,mutationCache:this,mutationId:++this.#E,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#w.add(e);let t=B(e);if("string"==typeof t){let n=this.#x.get(t);n?n.push(e):this.#x.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#w.delete(e)){let t=B(e);if("string"==typeof t){let n=this.#x.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#x.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=B(e);if("string"!=typeof t)return!0;{let n=this.#x.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=B(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#x.get(t)?.find(t=>
vendor: 4,607 bytes, line 1
1t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){E.batch(()=>{this.#w.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#w.clear(),this.#x.clear()})}getAll(){return Array.from(this.#w)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>u(t,e))}findAll(e={}){return this.getAll().filter(t=>u(e,t))}notify(e){E.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return E.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}};function B(e){return e.options.scope?.id}var K=class{#C;#b;#f;#T;#P;#S;#R;#O;constructor(e={}){this.#C=e.queryCache||new F,this.#b=e.mutationCache||new I,this.#f=e.defaultOptions||{},this.#T=new Map,this.#P=new Map,this.#S=0}mount(){this.#S++,1===this.#S&&(this.#R=T.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#O=P.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#S--,0===this.#S&&(this.#R?.(),this.#R=void 0,this.#O?.(),this.#O=void 0)}isFetching(e){return this.#C.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#b.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#C.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(s(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#C.get(r.queryHash),a=i?.state.data,o="function"==typeof t?t(a):t;if(void 0!==o)return this.#C.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return E.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#C.get(t.queryHash)?.state}removeQueries(e){let t=this.#C;E.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#C;return E.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(E.batch(()=>this.#C.findAll(e).map(e=>e.cancel(n)))).then(o).catch(o)}invalidateQueries(e,t={}){return E.batch(()=>(this.#C.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(E.batch(()=>this.#C.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#C.build(this,t);return n.isStaleByTime(s(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return P.isOnline()?this.#b.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#C}getMutationCache(){return this.#b}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#T.set(d(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#T.values()],n={};return t.forEach(t=>{h(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#P.set(d(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#P.values()],n={};return t.forEach(t=>{h(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=c(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===b&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#C.clear(),this.#b.clear()}}}
1,94433:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10019).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.