1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8374],{861:(e,t,r)=>{r.d(t,{bL:()=>l,s6:()=>o});var n=r(12115),a=r(97602),s=r(95155),i=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"}),o=n.forwardRef((e,t)=>(0,s.jsx)(a.sG.span,{...e,ref:t,style:{...i,...e.style}}));o.displayName="VisuallyHidden";var l=o},4853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5379:(e,t,r)=>{r.d(t,{D:()=>i});var n=r(12115),a=n.createContext(void 0),s={setTheme:e=>{},themes:[]},i=()=>{var e;return null!=(e=n.useContext(a))?e:s}},17910:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},18720:(e,t,r)=>{r.d(t,{l$:()=>b});var n=r(12115),a=r(47650),s=Array(12).fill(0),i=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},s.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},o=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.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=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.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=n.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"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.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:r,...n}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:h++,s=this.toasts.find(e=>e.id===a),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(t=>
1t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:i,title:r}):t):this.addToast({title:r,...n,dismissible:i,id:a}),a},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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let a=e instanceof Promise?e:e(),s=void 0!==r,i,o=a.then(async e=>{if(i=["resolve",e],n.isValidElement(e))s=!1,this.create({id:r,type:"default",message:e});else if(p(e)&&!e.ok){s=!1;let n="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,a="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:r,type:"error",message:n,description:a})}else if(void 0!==t.success){s=!1;let n="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"success",message:n,description:a})}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){s=!1;let n="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description;this.create({id:r,type:"error",message:n,description:a})}}).finally(()=>{var e;s&&(this.dismiss(r),r=void 0),null==(e=t.finally)||e.call(t)}),l=()=>new Promise((e,t)=>o.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||h++;return this.create({jsx:e(r),id:r,...t}),r},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 y(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||h++;return f.addToast({title:e,...t,id:r}),r},{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 r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.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 v=e=>{var t,r,a,s,h,f,p,v,g,b,w;let{invert:x,toast:E,unstyled:C,interacting:T,setHeights:S,visibleToasts:P,heights:R,index:k,toasts:O,expanded:j,removeToast:A,defaultRichColors:M,closeButton:N,style:I,cancelButtonStyle:D,actionButtonStyle:q,className:L="",descriptionClassName:F="",duration:_,position:K,gap:z,loadingIcon:B,expandByDefault:H,classNames:Q,icons:U,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:G}=e,[W,V]=n.useState(null),[X,J]=n.useState(null),[$,Z]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[ea,es]=n.useState(!1),[ei,eo]=n.useState(!1),[el,eu]=n.useState(0),[e
1c,ed]=n.useState(0),eh=n.useRef(E.duration||_||4e3),ef=n.useRef(null),ep=n.useRef(null),em=0===k,ey=k+1<=P,ev=E.type,eg=!1!==E.dismissible,eb=E.className||"",ew=E.descriptionClassName||"",ex=n.useMemo(()=>R.findIndex(e=>e.toastId===E.id)||0,[R,E.id]),eE=n.useMemo(()=>{var e;return null!=(e=E.closeButton)?e:N},[E.closeButton,N]),eC=n.useMemo(()=>E.duration||_||4e3,[E.duration,_]),eT=n.useRef(0),eS=n.useRef(0),eP=n.useRef(0),eR=n.useRef(null),[ek,eO]=K.split("-"),ej=n.useMemo(()=>R.reduce((e,t,r)=>r>=ex?e:e+t.height,0),[R,ex]),eA=(()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eM=E.invert||x,eN="loading"===ev;eS.current=n.useMemo(()=>ex*z+ej,[ex,ej]),n.useEffect(()=>{eh.current=eC},[eC]),n.useEffect(()=>{Z(!0)},[]),n.useEffect(()=>{let e=ep.current;if(e){let t=e.getBoundingClientRect().height;return ed(t),S(e=>[{toastId:E.id,height:t,position:E.position},...e]),()=>S(e=>e.filter(e=>e.toastId!==E.id))}},[S,E.id]),n.useLayoutEffect(()=>{if(!$)return;let e=ep.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,ed(r),S(e=>e.find(e=>e.toastId===E.id)?e.map(e=>e.toastId===E.id?{...e,height:r}:e):[{toastId:E.id,height:r,position:E.position},...e])},[$,E.title,E.description,S,E.id]);let eI=n.useCallback(()=>{et(!0),eu(eS.current),S(e=>e.filter(e=>e.toastId!==E.id)),setTimeout(()=>{A(E)},200)},[E,A,S,eS]);return n.useEffect(()=>{let e;if((!E.promise||"loading"!==ev)&&E.duration!==1/0&&"loading"!==E.type)return j||T||G&&eA?(()=>{if(eP.current<eT.current){let e=new Date().getTime()-eT.current;eh.current=eh.current-e}eP.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),eI()},eh.current)),()=>clearTimeout(e)},[j,T,E,ev,G,eA,eI]),n.useEffect(()=>{E.delete&&eI()},[eI,E.delete]),n.createElement("li",{tabIndex:0,ref:ep,className:y(L,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[ev],null==(r=null==E?void 0:E.classNames)?void 0:r[ev]),"data-sonner-toast":"","data-rich-colors":null!=(a=E.richColors)?a:M,"data-styled":!(E.jsx||E.unstyled||C),"data-mounted":$,"data-promise":!!E.promise,"data-swiped":ei,"data-removed":ee,"data-visible":ey,"data-y-position":ek,"data-x-position":eO,"data-index":k,"data-front":em,"data-swiping":er,"data-dismissible":eg,"data-type":ev,"data-invert":eM,"data-swipe-out":ea,"data-swipe-direction":X,"data-expanded":!!(j||H&&$),style:{"--index":k,"--toasts-before":k,"--z-index":O.length-k,"--offset":"".concat(ee?el:eS.current,"px"),"--initial-height":H?"auto":"".concat(ec,"px"),...I,...E.style},onDragEnd:()=>{en(!1),V(null),eR.current=null},onPointerDown:e=>{eN||!eg||(ef.current=new Date,eu(eS.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(en(!0),eR.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n;if(ea||!eg)return;eR.current=null;let a=Number((null==(e=ep.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=ep.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=new Date().getTime()-(null==(r=ef.current)?void 0:r.getTime()),o="x"===W?a:s,l=Math.abs(o)/i;if(Math.abs(o)>=20||l>.11){eu(eS.current),null==(n=E.onDismiss)||n.call(E,E),J("x"===W?a>0?"right":"left":s>0?"down":"up"),eI(),es(!0),eo(!1);return}en(!1),V(null)},onPointerMove:t=>{var r,n,a,s;if(!eR.current||!eg||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let i=t.clientY-eR.current.y,o=t.clientX-eR.current.x,l=null!=(n=e.swipeDirections)?n:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(K);!W&&(Math.abs(o)>1||Math.abs(i)>1)&&V(Math.abs(o)>Math.abs(i)?"x":"y");let u={x:0,y:0};"y"===W?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&i<0||l.includes("bottom")&&i>0)&&(u.y=i):"x"===W&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&o<0||l.includes("right")&&o>0)&&(u.x=o),(Math.abs(u.x)>0||Math.abs(u.y)>0)&&eo(!0),null==(a=ep.current)||a.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(s=ep.current)||s.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},eE&&!E.jsx?n.createElement("button",{"aria-label":Y,"data-disabled":eN,"data-close-button":!0,onClick:eN||!eg?()=>{}:()=>{var e;eI(),null==(e=E.onDismiss)||e.call(E,E)},className:y(null==Q?void 0:Q.closeButton,null==(s=null==E?void 0:E.
1classNames)?void 0:s.closeButton)},null!=(h=null==U?void 0:U.close)?h:d):null,E.jsx||(0,n.isValidElement)(E.title)?E.jsx?E.jsx:"function"==typeof E.title?E.title():E.title:n.createElement(n.Fragment,null,ev||E.icon||E.promise?n.createElement("div",{"data-icon":"",className:y(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,r;return null!=U&&U.loading?n.createElement("div",{className:y(null==Q?void 0:Q.loader,null==(e=null==E?void 0:E.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===ev},U.loading):B?n.createElement("div",{className:y(null==Q?void 0:Q.loader,null==(t=null==E?void 0:E.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ev},B):n.createElement(i,{className:y(null==Q?void 0:Q.loader,null==(r=null==E?void 0:E.classNames)?void 0:r.loader),visible:"loading"===ev})}():null,"loading"!==E.type?E.icon||(null==U?void 0:U[ev])||(e=>{switch(e){case"success":return o;case"info":return u;case"warning":return l;case"error":return c;default:return null}})(ev):null):null,n.createElement("div",{"data-content":"",className:y(null==Q?void 0:Q.content,null==(p=null==E?void 0:E.classNames)?void 0:p.content)},n.createElement("div",{"data-title":"",className:y(null==Q?void 0:Q.title,null==(v=null==E?void 0:E.classNames)?void 0:v.title)},"function"==typeof E.title?E.title():E.title),E.description?n.createElement("div",{"data-description":"",className:y(F,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,n.isValidElement)(E.cancel)?E.cancel:E.cancel&&m(E.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||D,onClick:e=>{var t,r;m(E.cancel)&&eg&&(null==(r=(t=E.cancel).onClick)||r.call(t,e),eI())},className:y(null==Q?void 0:Q.cancelButton,null==(b=null==E?void 0:E.classNames)?void 0:b.cancelButton)},E.cancel.label):null,(0,n.isValidElement)(E.action)?E.action:E.action&&m(E.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||q,onClick:e=>{var t,r;m(E.action)&&(null==(r=(t=E.action).onClick)||r.call(t,e),e.defaultPrevented||eI())},className:y(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,n.forwardRef)(function(e,t){let{invert:r,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:l,className:u,offset:c,mobileOffset:d,theme:h="light",richColors:p,duration:m,style:y,visibleToasts:b=3,toastOptions:w,dir:x=g(),gap:E=14,loadingIcon:C,icons:T,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:P}=e,[R,k]=n.useState([]),O=n.useMemo(()=>Array.from(new Set([s].concat(R.filter(e=>e.position).map(e=>e.position)))),[R,s]),[j,A]=n.useState([]),[M,N]=n.useState(!1),[I,D]=n.useState(!1),[q,L]=n.useState("system"!==h?h:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=n.useRef(null),_=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=n.useRef(null),z=n.useRef(!1),B=n.useCallback(e=>{k(t=>{var r;return null!=(r=t.find(t=>t.id===e.id))&&r.delete||f.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>f.subscribe(e=>{if(e.dismiss)return void k(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));setTimeout(()=>{a.flushSync(()=>{k(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==h)return void L(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;L(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{L(t?"dark":"light")}catch(e){console.error(e)}})}},[h]),n.useEffect(()=>{R.length<=1&&N(!1)},[R]),n.useEffect(()=>{let e=e=>{var t,r;i.every(t=>
1e[t]||e.code===t)&&(N(!0),null==(t=F.current)||t.focus()),"Escape"===e.code&&(document.activeElement===F.current||null!=(r=F.current)&&r.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),n.useEffect(()=>{if(F.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,z.current=!1)}},[F.current]),n.createElement("section",{ref:t,"aria-label":"".concat(S," ").concat(_),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},O.map((t,a)=>{var s;let i,[h,f]=t.split("-");return R.length?n.createElement("ol",{key:t,dir:"auto"===x?g():x,tabIndex:-1,ref:F,className:u,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":h,"data-lifted":M&&R.length>1&&!o,"data-x-position":f,style:{"--front-toast-height":"".concat((null==(s=j[0])?void 0:s.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(E,"px"),...y,...(i={},[c,d].forEach((e,t)=>{let r=1===t,n=r?"--mobile-offset":"--offset",a=r?"16px":"32px";function s(e){["top","right","bottom","left"].forEach(t=>{i["".concat(n,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?s(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?i["".concat(n,"-").concat(t)]=a:i["".concat(n,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):s(a)}),i)},onBlur:e=>{z.current&&!e.currentTarget.contains(e.relatedTarget)&&(z.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||z.current||(z.current=!0,K.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{I||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||D(!0)},onPointerUp:()=>D(!1)},R.filter(e=>!e.position&&0===a||e.position===t).map((a,s)=>{var i,u;return n.createElement(v,{key:a.id,icons:T,index:s,toast:a,defaultRichColors:p,duration:null!=(i=null==w?void 0:w.duration)?i:m,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:r,visibleToasts:b,closeButton:null!=(u=null==w?void 0:w.closeButton)?u:l,interacting:I,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:B,toasts:R.filter(e=>e.position==a.position),heights:j.filter(e=>e.position==a.position),setHeights:A,expandByDefault:o,gap:E,loadingIcon:C,expanded:M,pauseWhenPageIsHidden:P,swipeDirections:e.swipeDirections})})):null}))})},29001:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return o},htmlEscapeJsonString:function(){return i}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function i(e){return e.replace(n,e=>r[e])}function o(e){return e.replace(s,e=>a[e])}},34589:(e,t,r)=>{r.d(t,{rc:()=>el,bm:()=>eu,VY:()=>eo,Kq:()=>en,bL:()=>es,hE:()=>ei,LM:()=>ea});var n,a=r(12115),s=r(47650),i=r(92556),o=r(94446);function l(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function u(e,t){var r=l(e,t,"get");return r.get?r.get.call(e):r.value}function c(e,t,r){var n=l(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}var d=r(3468),h=r(32467),f=r(95155),p=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=y(t),a=n>=0?n:r+n;return a<0||a>=r?-1:a}(e,t);return -1===r?void 0:e[r]}function y(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?u(this,n)[u(this,n).indexOf(e)]=e:u(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let a,s=this.has(t),i=u(this,n).length,o=y(e),l=o>=0?o:i+o,c=l<0||l>=i?-1:l;if(c===this.size||s&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!s;o<0&&l++;let h=[...u(this,n)],f=!1;for(let e=l;e<d;e++)if(l===e){let n=h[e];h[e]===t&&(n=h[e+1]),s&&this.delete(t),a=this.get(n),this.set(t,r)}else{f||h[e-1]!==t||(f=!0);let r=h[f?e:e-1],n=a;a=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=u(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let a=u(this,n).indexOf(e);return -1===a?this:this.insert(a,t,r)}after(e){let t=u(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let a=u(this,n).indexOf(e);return -1===a?this:this.insert(a+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return c(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&u(this,n).splice(u(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=m(u(this,n),e);
1if(void 0!==t)return this.get(t)}entryAt(e){let t=m(u(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return u(this,n).indexOf(e)}keyAt(e){return m(u(this,n),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,a]=t,s=0,i=null!=a?a:this.at(0);for(let e of this)i=0===s&&1===t.length?e:Reflect.apply(n,this,[i,e,s,this]),s++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,a]=t,s=null!=a?a:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);s=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[s,r,e,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let a=[...this.entries()];return a.splice(...r),new e(a)}slice(t,r){let n=new e,a=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,n,{writable:!0,value:void 0}),c(this,n,[...super.keys()]),p.set(this,!0)}};var v=r(1987),g=r(75433),b=r(76842),w=r(97602),x=r(70222),E=r(23558),C=r(4129),T=r(861),S="ToastProvider",[P,R,k]=function(e){let t=e+"CollectionProvider",[r,n]=(0,d.A)(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=a.useRef(null),i=a.useRef(new Map).current;return(0,f.jsx)(s,{scope:t,itemMap:i,collectionRef:n,children:r})};l.displayName=t;let u=e+"CollectionSlot",c=(0,h.TL)(u),p=a.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=i(u,r),s=(0,o.s)(t,a.collectionRef);return(0,f.jsx)(c,{ref:s,children:n})});p.displayName=u;let m=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,h.TL)(m),g=a.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,l=a.useRef(null),u=(0,o.s)(t,l),c=i(m,r);return a.useEffect(()=>(c.itemMap.set(l,{ref:l,...s}),()=>void c.itemMap.delete(l))),(0,f.jsx)(v,{...{[y]:""},ref:u,children:n})});return g.displayName=m,[{Provider:l,Slot:p,ItemSlot:g},function(t){let r=i(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}("Toast"),[O,j]=(0,d.A)("Toast",[k]),[A,M]=O(S),N=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,announcerContainer:o,children:l}
1=e,[u,c]=a.useState(null),[d,h]=a.useState(0),p=a.useRef(!1),m=a.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(S,"`. Expected non-empty `string`.")),(0,f.jsx)(P.Provider,{scope:t,children:(0,f.jsx)(A,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:u,onViewportChange:c,onToastAdd:a.useCallback(()=>h(e=>e+1),[]),onToastRemove:a.useCallback(()=>h(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,announcerContainer:o,children:l})})};N.displayName=S;var I="ToastViewport",D=["F8"],q="toast.viewportPause",L="toast.viewportResume",F=a.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:n=D,label:s="Notifications ({hotkey})",...i}=e,l=M(I,r),u=R(r),c=a.useRef(null),d=a.useRef(null),h=a.useRef(null),p=a.useRef(null),m=(0,o.s)(t,p,l.onViewportChange),y=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;a.useEffect(()=>{let e=e=>{var t;0!==n.length&&n.every(t=>e[t]||e.code===t)&&(null==(t=p.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),a.useEffect(()=>{let e=c.current,t=p.current;if(g&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(q);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},a=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[g,l.isClosePausedRef]);let b=a.useCallback(e=>{let{tabbingDirection:t}=e,r=u().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[u]);return a.useEffect(()=>{let e=p.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,a,s;let r=document.activeElement,i=t.shiftKey;if(t.target===e&&i){null==(n=d.current)||n.focus();return}let o=b({tabbingDirection:i?"backwards":"forwards"}),l=o.findIndex(e=>e===r);er(o.slice(l+1))?t.preventDefault():i?null==(a=d.current)||a.focus():null==(s=h.current)||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,b]),(0,f.jsxs)(v.lg,{ref:c,role:"region","aria-label":s.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,f.jsx)(K,{ref:d,onFocusFromOutsideViewport:()=>{er(b({tabbingDirection:"forwards"}))}}),(0,f.jsx)(P.Slot,{scope:r,children:(0,f.jsx)(w.sG.ol,{tabIndex:-1,...i,ref:m})}),g&&(0,f.jsx)(K,{ref:h,onFocusFromOutsideViewport:()=>{er(b({tabbingDirection:"backwards"}))}})]})});F.displayName=I;var _="ToastFocusProxy",K=a.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,s=M(_,r);return(0,f.jsx)(T.s6,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=s.viewport)?void 0:t.contains(r))||n()}})});K.displayName=_;var z="Toast",B=a.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:a,onOpenChange:s,...o}=e,[l,u]=(0,E.i)({prop:n,defaultProp:null==a||a,onChange:s,caller:z});return(0,f.jsx)(b.C,{present:r||l,children:(0,f.jsx)(U,{open:l,...o,ref:t,onClose:()=>u(!1),onPause:(0,x.c)(e.onPause),onResume:(0,x.c)(e.onResume),onSwipeStart:(0,i.mK)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,i.mK)(e.onSwipeMove,e=>{let{x:t,y:r}=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(r,"px"))}),onSwipeCancel:(0,i.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,i.mK)(e.onSwipeEnd,e=>{let{x:t,y:r}=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(r,"px")),u(!1)})})})});B.displayName=z;var[H,Q]=O(z,{onClose(){}}),U=a.forwardRef((e,t)=>{let{__scopeToast:r,type:n="foreground",duration:l,open:u,onClose:c,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:g,onSwipeEnd:b,...E}=e,C=M(z,r),[T,S]=a.useState(null),R=(0,o.s)(t,S),k=a.useRef(null),O=a.useRef(null),j=l||C.duration,A=a.useRef(0),N=a.useRef(j),I=a.useRef(0),{onToastAdd:D,onToastRemove:F}=C,_=(0,x.c)(()=>{var e;(null==T?void 0:T.contains(document.activeElement))&&(null==(e=C.viewport)||e.focus()),c()}),K=a.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(I.current),A.current=new Date().getTime(),I.current=window.setTimeout(_,e))},[_]);a.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{K(N.current),null==p||p()},r=()=>{let e=new Date().getTime()-A.current;N.current=N.current-e,window.clearTimeout(I.current),null==h||h()};return e.addEventListener(q,r),e.addEventListener(L,t),()=>{e.removeEventListener(q,r),e.removeEventListener(L,t)}}},[C.viewport,j,h,p,K]),a.useEffect(()=>{u&&!C.isClosePausedRef.current&&K(j)},[u,j,C.isClosePausedRef,K]),a.useEffect(()=>()=>{window.clearTimeout(I.current)},[]),a.useEffect(()=>(D(),()=>F()),[D,F]);let B=a.useMemo(()=>T?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,a=""===t.dataset.radixToastAnnounceExclude;if(!n)if(a){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(T):null,[T]);return C.viewport?(0,f.jsxs)(f.Fragment,{children:[B&&(0,f.jsx)(Y,{__scopeToast:r,role:"status","aria-live":"foreground"===n?"assertive":"polite",children:B}),(0,f.jsx)(H,{scope:r,onClose:_,children:s.createPortal((0,f.jsx)(P.ItemSlot,{scope:r,children:(0,f.jsx)(v.bL,{asChild:!0,onEscapeKeyDown:(0,i.mK)(d,()=>{C.isFocusedToastEscapeKeyDownRef.current||_(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,f.jsx)(w.sG.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":C.swipeDirection,...E,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.mK)(e.onKeyDown,e=>{"Escape"===e.key&&(null==d||d(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,i.mK)(e.onPointerMove,e=>{if(!k.current)return;let t=e.clientX-k.current.x,r=e.clientY-k.current.y,n=!!O.current,a=["left","right"].includes(C.swipeDirection),s=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,i=a?s(0,t):0,o=a?0:s(0,r),l="touch"===e.pointerType?10:2,u={x:i,y:o},c={originalEvent:e,delta:u};n?(O.current=u,ee("toast.swipeMove",y,c,{discrete:!1})):et(u,C.swipeDirection,l)?(O.current=u,ee("toast.swipeStart",m,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(k.current=null)}),onPointerUp:(0,i.mK)(e.onPointerUp,e=>{let t=O.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),O.current=null,k.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};et(t,C.swipeDirection,C.swipeThreshold)?ee("toast.swipeEnd",b,n,{discrete:!0}):ee("toast.swipeCancel",g,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),Y=e=>{let{__scopeToast:t,children:r,...n}=e,s=M(z,t),[i,o]=a.useState(!1),[l,u]=a.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,x.c)(e);(0,C.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>o(!0)),a.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,f.jsx)(g.Z,{asChild:!0,container:s.announcerContainer||void 0,children:(0,f.jsx)(T.s6,{...n,children:i&&(0,f.jsxs)(f.Fragment,{children:[s.label," ",r]})})})},G=a.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,f.jsx)(w.sG.div,{...n,ref:t})});G.displayName="ToastTitle";var W=a.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,f.jsx)(w.sG.div,{...n,ref:t})});W.displayName="ToastDescription";var V="ToastAction",X=a.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,f.jsx)(Z,{altText:r,asChild:!0,children:(0,f.jsx)($,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(V,"`. Expected non-empty `string`.")),null)});X.displayName=V;var J="ToastClose",$=a.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,a=Q(J,r);return(0,f.jsx)(Z,{asChild:!0,children:(0,f.jsx)(w.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,a.onClose)})})});$.displayName=J;var Z=a.forwardRef((e,t)=>
1{let{__scopeToast:r,altText:n,...a}=e;return(0,f.jsx)(w.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function ee(e,t,r,n){let{discrete:a}=n,s=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?(0,w.hO)(s,i):s.dispatchEvent(i)}var et=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),a=Math.abs(e.y),s=n>a;return"left"===t||"right"===t?s&&n>r:!s&&a>r};function er(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var en=N,ea=F,es=B,ei=G,eo=W,el=X,eu=$},40381:(e,t,r)=>{r.d(t,{E:()=>K});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},a=new class{#e=n;#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)}},s="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:r="all",exact:n,fetchStatus:a,predicate:s,queryKey:i,stale:o}=e;if(i){if(n){if(t.queryHash!==c(i,t.options))return!1}else if(!h(t.queryKey,i))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!a||a===t.state.fetchStatus)&&(!s||!!s(t))}function u(e,t){let{exact:r,status:n,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(d(t.options.mutationKey)!==d(s))return!1}else if(!h(t.options.mutationKey,s))return!1}return(!n||t.state.status===n)&&(!a||!!a(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,r)=>(e[r]=t[r],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(r=>h(e[r],t[r]))}var f=Object.prototype.hasOwnProperty;function p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!y(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function g(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}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,r=e=>{e()},n=e=>{e()},a=x,s=n=>{t?e.push(n):a(()=>{r(n)})};return{batch:s=>{let i;t++;try{i=s()}finally{--t||(()=>{let t=e;e=[],t.length&&a(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{a=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{#r;#n;#a;constructor(){super(),this.#a=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#a=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}},S=new class extends C{#s=!0;#n;#a;
1constructor(){super(),this.#a=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#a=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}},P=(()=>{let e=()=>s;return{isServer:()=>e(),setIsServer(t){e=t}}})();function R(e){return Math.min(1e3*2**e,3e4)}function k(e){return(e??"online")!=="online"||S.isOnline()}var O=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function j(e){let t,r=!1,n=0,s=function(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}(),i=()=>T.isFocused()&&("always"===e.networkMode||S.isOnline())&&e.canRun(),o=()=>k(e.networkMode)&&e.canRun(),l=e=>{"pending"===s.status&&(t?.(),s.resolve(e))},u=e=>{"pending"===s.status&&(t?.(),s.reject(e))},c=()=>new Promise(r=>{t=e=>{("pending"!==s.status||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===s.status&&e.onContinue?.()}),d=()=>{let t;if("pending"!==s.status)return;let o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if("pending"!==s.status)return;let o=e.retry??3*!P.isServer(),l=e.retryDelay??R,h="function"==typeof l?l(n,t):l,f=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);if(r||!f)return void u(t);n++,e.onFail?.(n,t),new Promise(e=>{a.setTimeout(e,h)}).then(()=>i()?void 0:c()).then(()=>{r?u(t):d()})})};return{promise:s,status:()=>s.status,cancel:t=>{if("pending"===s.status){let r=new O(t);u(r),e.onCancel?.(r)}},continue:()=>(t?.(),s),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:o,start:()=>(o()?d():c().then(d),s)}}var A=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#i=a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(P.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(a.clearTimeout(this.#i),this.#i=void 0)}};function M(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var N=class extends A{#o;#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=D(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=D(this.options);void 0!==e.data&&(this.setState(I(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){var r,n;let a=(r=this.state.data,"function"==typeof(n=this.options).structuralSharing?n.structuralSharing(r,e):!1!==n.structuralSharing?function e(t,r,n=0){if(t===r)return t;if(n>500)return r;let a=p(t)&&p(r);if(!a&&!(m(t)&&m(r)))return r;let s=(a?t:Object.keys(t)).length,i=a?r:Object.keys(r),o=i.length,l=a?Array(o):{},u=0;for(let c=0;c<o;c++){let o=a?c:i[c],d=t[o],h=r[o];if(d===h){l[o]=d,(a?c<s:f.call(t,o))&&u++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){l[o]=h;continue}let p=e(d,h,n+1);l[o]=p,p===d&&u++}return s===o&&u===s?t:l}(r,e):e);return this.#m({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e){this.#m({type:"setState",state:e})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(i).catch(i):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"===o(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.#y()?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){var r;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 n=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,n.signal)})},s=()=>{let e=w(this.options,t),r=(()=>{let e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return a(e),e})();return(this.#p=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},i=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:s};return a(e),e})(),o="infinite"===this.#o?(r=this.options.pages,{onFetch:(e,t)=>{let n=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],i=e.state.data?.pageParams||[],o={pages:[],pageParams:[]},l=0,u=async()=>{let t=!1,u=w(e.options,e.fetchOptions),c=async(r,n,a)=>{if(t)return Promise.reject(e.signal.reason);if(null==n&&r.pages.length)return Promise.resolve(r);let s=(()=>{var r,s;let i,o,l={client:e.client,queryKey:e.queryKey,pageParam:n,direction:a?"backward":"forward",meta:e.options.meta};return r=()=>e.signal,s=()=>t=!0,o=!1,Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(i??=r(),o||(o=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),l})(),i=await u(s),{maxPages:o}=e.options,l=a?g:v;return{pages:l(r.pages,i,o),pageParams:l(r.pageParams,n,o)}};if(a&&s.length){let e="backward"===a,t={pages:s,pageParams:i},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:M)(n,t);o=await c(t,r,e)}else{let e=r??s.length;do{let e=0===l?i[0]??n.initialPageParam:M(n,o);if(l>0&&null==e)break;o=await c(o,e),l++}while(l<e)}return o};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;o?.onFetch(i,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#m({type:"fetch",meta:i.fetchOptions?.meta}),this.#h=j({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof O&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.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 O){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 r;return{...t,...(r=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...void 0===r&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":let n={...t,...I(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?n:void 0,n;case"error":let a=e.error;
vendor: 4,668 bytes, line 1
1return{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,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 I(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function D(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var q=class extends C{constructor(e={}){super(),this.config=e,this.#v=new Map}#v;build(e,t,r){let n=t.queryKey,a=t.queryHash??c(n,t),s=this.get(a);return s||(s=new N({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#v.has(e.queryHash)||(this.#v.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#v.get(e.queryHash);t&&(e.destroy(),t===e&&this.#v.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){E.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#v.get(e)}getAll(){return[...this.#v.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()})})}},L=class extends A{#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"})},r={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=j({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):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 n="pending"===this.state.status,a=!this.#h.canStart();try{if(n)t();else{this.#m({type:"pending",variables:e,isPaused:a}),this.#b.config.onMutate&&await this.#b.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:a})}let s=await this.#h.start();return await this.#b.config.onSuccess?.(s,e,this.state.context,this,r),await this.options.onSuccess?.(s,e,this.state.context,r),await this.#b.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,e,this.state.context,r),this.#m({type:"success",data:s}),s}catch(t){try{await this.#b.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#b.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}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})})}},F=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,r){let n=new L({client:e,mutationCache:this,mutationId:++this.#E,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#w.add(e);let t=_(e);if("string"==typeof t){let r=this.#x.get(t);r?r.push(e):this.#x.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#w.delete(e)){let t=_(e);if("string"==typeof t){let r=this.#x.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#x.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=_(e);if("string"!=typeof t)return!0;{let r=this.#x.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=_(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#x.get(t)?.find(t=>
vendor: 4,623 bytes, line 1
1t!==e&&t.state.isPaused);return r?.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(i))))}};function _(e){return e.options.scope?.id}var K=class{#C;#b;#f;#T;#S;#P;#R;#k;constructor(e={}){this.#C=e.queryCache||new q,this.#b=e.mutationCache||new F,this.#f=e.defaultOptions||{},this.#T=new Map,this.#S=new Map,this.#P=0}mount(){this.#P++,1===this.#P&&(this.#R=T.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onFocus())}),this.#k=S.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#C.onOnline())}))}unmount(){this.#P--,0===this.#P&&(this.#R?.(),this.#R=void 0,this.#k?.(),this.#k=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),r=this.#C.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(o(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#C.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),a=this.#C.get(n.queryHash),s=a?.state.data,i="function"==typeof t?t(s):t;if(void 0!==i)return this.#C.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return E.batch(()=>this.#C.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}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 r=this.#C;return E.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(E.batch(()=>this.#C.findAll(e).map(e=>e.cancel(r)))).then(i).catch(i)}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 r={...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,r);return r.throwOnError||(t=t.catch(i)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#C.build(this,t);return r.isStaleByTime(o(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i).catch(i)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i).catch(i)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return S.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()],r={};return t.forEach(t=>{h(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#S.set(d(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#S.values()],r={};return t.forEach(t=>{h(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}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()}}},41402:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return y}});let n=r(28140),a=r(49417),s=r(95155),i=n._(r(47650)),o=a._(r(12115)),l=r(82073),u=r(94681),c=r(4853),d=r(29001),h=new Map,f=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:s,children:o="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,p=r||t;if(p&&f.has(p))return;if(h.has(t)){f.add(p),h.get(t).then(n,c);return}let m=()=>{a&&a(),f.add(p)},y=document.createElement("script"),v=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(y.innerHTML=s.__html||"",m()):o?(y.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(y.src=t,h.set(t,v)),(0,u.setAttributesFromProps)(y,e),"worker"===l&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",l),d&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(y)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function y(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function v(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:u="afterInteractive",onError:h,stylesheets:m,...y}=e,{updateScripts:v,scripts:g,getIsSsr:b,appDir:w,nonce:x}=(0,o.useContext)(l.HeadManagerContext);x=y.nonce||x;let E=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||r;E.current||(a&&e&&f.has(e)&&a(),E.current=!0)},[a,t,r]);let C=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!C.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));C.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(g[u]=(g[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:h,...y,nonce:x}]),v(g)):b&&b()?f.add(t||r):b&&!b()&&p({...e,nonce:x})),w){if(m&&m.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return y.dangerouslySetInnerHTML&&(y.children=y.dangerouslySetInnerHTML.__html,delete y.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...y,id:t}]))+")"}});else return i.default.preload(r,y.integrity?{as:"script",integrity:y.integrity,nonce:x,crossOrigin:y.crossOrigin}:{as:"script",nonce:x,crossOrigin:y.crossOrigin}),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([r,{...y,id:t}]))+")"}});"afterInteractive"===u&&r&&i.default.preload(r,y.integrity?{as:"script",integrity:y.integrity,nonce:x,crossOrigin:y.crossOrigin}:{as:"script",nonce:x,crossOrigin:y.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let g=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47621:(e,t,r)=>{r.d(t,{bL:()=>b,zi:()=>x});var n=r(12115),a=r(92556),s=r(94446),i=r(3468),o=r(23558),l=r(84288),u=r(97602),c=r(95155),d="Switch",[h,f]=(0,i.A)(d),[p,m]=h(d);function y(e){let{__scopeSwitch:t,checked:r,children:a,defaultChecked:s,disabled:i,form:l,name:u,onCheckedChange:h,required:f,value:m="on",internal_do_not_use_render:y}=e,[v,g]=(0,o.i)({prop:r,defaultProp:null!=s&&s,onChange:h,caller:d}),[b,w]=n.useState(null),[x,E]=n.useState(null),C=n.useRef(!1),T=!b||!!l||!!b.closest("form"),S={checked:v,setChecked:g,disabled:i,control:b,setControl:w,name:u,form:l,value:m,hasConsumerStoppedPropagationRef:C,required:f,defaultChecked:s,isFormControl:T,bubbleInput:x,setBubbleInput:E};return(0,c.jsx)(p,{scope:t,...S,children:"function"==typeof y?y(S):a})}var v="SwitchTrigger",g=n.forwardRef((e,t)=>
1{let{__scopeSwitch:r,onClick:i,...o}=e,{control:l,form:d,value:h,disabled:f,checked:p,required:y,setControl:g,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:x,bubbleInput:E}=m(v,r),C=(0,s.s)(t,g),S=n.useRef(p);return n.useEffect(()=>{let e=d?null==l?void 0:l.ownerDocument.getElementById(d):null==l?void 0:l.form;if(e instanceof HTMLFormElement){let t=()=>b(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,d,b]),(0,c.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":p,"aria-required":y,"data-state":T(p),"data-disabled":f?"":void 0,disabled:f,value:h,...o,ref:C,onClick:(0,a.mK)(i,e=>{b(e=>!e),E&&x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})});g.displayName=v;var b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:n,checked:a,defaultChecked:s,required:i,disabled:o,value:l,onCheckedChange:u,form:d,...h}=e;return(0,c.jsx)(y,{__scopeSwitch:r,checked:a,defaultChecked:s,disabled:o,required:i,onCheckedChange:u,name:n,form:d,value:l,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g,{...h,ref:t,__scopeSwitch:r}),n&&(0,c.jsx)(C,{__scopeSwitch:r})]})}})});b.displayName=d;var w="SwitchThumb",x=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=m(w,r);return(0,c.jsx)(u.sG.span,{"data-state":T(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});x.displayName=w;var E="SwitchBubbleInput",C=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...a}=e,{control:i,hasConsumerStoppedPropagationRef:o,checked:d,defaultChecked:h,required:f,disabled:p,name:y,value:v,form:g,bubbleInput:b,setBubbleInput:w}=m(E,r),x=(0,s.s)(t,w),C=function(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(d),T=(0,l.X)(i);n.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(C!==d&&e){let r=new Event("click",{bubbles:t});e.call(b,d),b.dispatchEvent(r)}},[b,C,d,o]);let S=n.useRef(d);return(0,c.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=h?h:S.current,required:f,disabled:p,name:y,value:v,form:g,...a,tabIndex:-1,ref:x,style:{...a.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function T(e){return e?"checked":"unchecked"}C.displayName=E},52987:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},68321:(e,t,r)=>{r.d(t,{default:()=>a.a});var n=r(41402),a=r.n(n)},76385:(e,t,r)=>{r.d(t,{UC:()=>eh,Kq:()=>eu,bL:()=>ec,l9:()=>ed});var n=r(12115),a=r(92556),s=r(94446),i=r(3468),o=r(1987),l=r(68946),u=r(88334),c=r(58146),d=r(97602),h=r(95155),f=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...s}=e;return(0,h.jsx)(d.sG.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,h.jsx)("polygon",{points:"0,0 30,0 15,10"})})});f.displayName="Arrow";var p=r(70222),m=r(4129),y=r(84288),v="Popper",[g,b]=(0,i.A)(v),[w,x]=g(v),E=e=>{let{__scopePopper:t,children:r}=e,[a,s]=n.useState(null),[i,o]=n.useState(void 0);return(0,h.jsx)(w,{scope:t,anchor:a,onAnchorChange:s,placementState:i,setPlacementState:o,children:r})};E.displayName=v;var C="PopperAnchor",T=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...i}=e,o=x(C,r),l=n.useRef(null),u=o.onAnchorChange,c=n.useCallback(e=>{l.current=e,e&&u(e)},[u]),f=(0,s.s)(t,c),p=n.useRef(null);n.useEffect(()=>{if(!a)return;let e=p.current;p.current=a.current,e!==p.current&&u(p.current)});let m=o.placementState&&I(o.placementState),y=null==m?void 0:m[0],v=null==m?void 0:m[1];return a?null:(0,h.jsx)(d.sG.div,{"data-radix-popper-side":y,"data-radix-popper-align":v,...i,ref:f})});T.displayName=C;var S="PopperContent",[P,R]=g(S),k=n.forwardRef((e,t)=>{var r,a,i,o,l,f,v,g;let{__scopePopper:b,side:w="bottom",sideOffset:E=0,align:C="center",alignOffset:T=0,arrowPadding:R=0,avoidCollisions:k=!0,collisionBoundary:O=[],collisionPadding:j=0,sticky:A="partial",hideWhenDetached:D=!1,updatePositionStrategy:q="optimized",onPlaced:L,...F}=e,_=x(S,b),[K,z]=n.useState(null),B=(0,s.s)(t,z),[H,Q]=n.useState(null),U=(0,y.X)(H),Y=null!=(v=null==U?void 0:U.width)?v:0,G=null!=(g=null==U?void 0:U.height)?g:0,W="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},V=Array.isArray(O)?O:[O],X=V.length>0,J={padding:W,boundary:V.filter(M),altBoundary:X},{refs:$,floatingStyles:Z,placement:ee,isPositioned:et,middlewareData:er}=(0,u.we)({strategy:"fixed",placement:w+("center"!==C?"-"+C:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,c.ll)(...t,{animationFrame:"always"===q})},elements:{reference:_.anchor},middleware:[(0,u.cY)({mainAxis:E+G,alignmentAxis:T}),k&&(0,u.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?(0,u.ER)():void 0,...J}
1),k&&(0,u.UU)({...J}),(0,u.Ej)({...J,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:a}=e,{width:s,height:i}=r.reference,o=t.floating.style;o.setProperty("--radix-popper-available-width","".concat(n,"px")),o.setProperty("--radix-popper-available-height","".concat(a,"px")),o.setProperty("--radix-popper-anchor-width","".concat(s,"px")),o.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),H&&(0,u.UE)({element:H,padding:R}),N({arrowWidth:Y,arrowHeight:G}),D&&(0,u.jD)({strategy:"referenceHidden",...J,boundary:X?J.boundary:void 0})]}),en=_.setPlacementState;(0,m.N)(()=>(en(ee),()=>{en(void 0)}),[ee,en]);let[ea,es]=I(ee),ei=(0,p.c)(L);(0,m.N)(()=>{et&&(null==ei||ei())},[et,ei]);let eo=null==(r=er.arrow)?void 0:r.x,el=null==(a=er.arrow)?void 0:a.y,eu=(null==(i=er.arrow)?void 0:i.centerOffset)!==0,[ec,ed]=n.useState();return(0,m.N)(()=>{K&&ed(window.getComputedStyle(K).zIndex)},[K]),(0,h.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:et?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null==(o=er.transformOrigin)?void 0:o.x,null==(l=er.transformOrigin)?void 0:l.y].join(" "),...(null==(f=er.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(P,{scope:b,placedSide:ea,placedAlign:es,onArrowChange:Q,arrowX:eo,arrowY:el,shouldHideArrow:eu,children:(0,h.jsx)(d.sG.div,{"data-side":ea,"data-align":es,...F,ref:B,style:{...F.style,animation:et?void 0:"none"}})})})});k.displayName=S;var O="PopperArrow",j={top:"bottom",right:"left",bottom:"top",left:"right"},A=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=R(O,r),s=j[a.placedSide];return(0,h.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,h.jsx)(f,{...n,ref:t,style:{...n.style,display:"block"}})})});function M(e){return null!==e}A.displayName=O;var N=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,s,i;let{placement:o,rects:l,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=I(o),m={start:"0%",center:"50%",end:"100%"}[p],y=(null!=(s=null==(n=u.arrow)?void 0:n.x)?s:0)+d/2,v=(null!=(i=null==(a=u.arrow)?void 0:a.y)?i:0)+h/2,g="",b="";return"bottom"===f?(g=c?m:"".concat(y,"px"),b="".concat(-h,"px")):"top"===f?(g=c?m:"".concat(y,"px"),b="".concat(l.floating.height+h,"px")):"right"===f?(g="".concat(-h,"px"),b=c?m:"".concat(v,"px")):"left"===f&&(g="".concat(l.floating.width+h,"px"),b=c?m:"".concat(v,"px")),{data:{x:g,y:b}}}});function I(e){let[t,r="center"]=e.split("-");return[t,r]}r(75433);var D=r(76842),q=r(32467),L=r(23558),F=r(861),[_,K]=(0,i.A)("Tooltip",[b]),z=b(),B="TooltipProvider",H="tooltip.open",[Q,U]=_(B),Y=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:i}=e,o=n.useRef(!0),l=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,h.jsx)(Q,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:n.useCallback(()=>{a<=0||(window.clearTimeout(u.current),o.current=!1)},[a]),onClose:n.useCallback(()=>{a<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.current=!0,a))},[a]),isPointerInTransitRef:l,onPointerInTransitChange:n.useCallback(e=>{l.current=e},[]),disableHoverableContent:s,children:i})};Y.displayName=B;var G="Tooltip",[W,V]=_(G),X=e=>{let{__scopeTooltip:t,children:r,open:a,defaultOpen:s,onOpenChange:i,disableHoverableContent:o,delayDuration:u}=e,c=U(G,e.__scopeTooltip),d=z(t),[f,p]=n.useState(null),m=(0,l.B)(),y=n.useRef(0),v=null!=o?o:c.disableHoverableContent,g=null!=u?u:c.delayDuration,b=n.useRef(!1),[w,x]=(0,L.i)({prop:a,defaultProp:null!=s&&s,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(H))):c.onClose(),null==i||i(e)},caller:G}),C=n.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),T=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,x(!0)},[x]),S=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,x(!1)},[x]),P=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,x(!0),y.current=0},g)},[g,x]);return n.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,h.jsx)(E,{...d,children:(0,h.jsx)(W,{scope:t,contentId:m,open:w,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:n.useCallback(()=>{c.isOpenDelayedRef.current?P():T()},[c.isOpenDelayedRef,P,T]),onTriggerLeave:n.useCallback(()=>{v?S():(window.clearTimeout(y.current),y.current=0)},[S,v]),onOpen:T,onClose:S,disableHoverableContent:v,children:r})})};X.displayName=G;var J="TooltipTrigger",$=n.forwardRef((e,t)=>
1{let{__scopeTooltip:r,...i}=e,o=V(J,r),l=U(J,r),u=z(r),c=n.useRef(null),f=(0,s.s)(t,c,o.onTriggerChange),p=n.useRef(!1),m=n.useRef(!1),y=n.useCallback(()=>p.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,h.jsx)(T,{asChild:!0,...u,children:(0,h.jsx)(d.sG.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:f,onPointerMove:(0,a.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,a.mK)(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:(0,a.mK)(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,a.mK)(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:(0,a.mK)(e.onBlur,o.onClose),onClick:(0,a.mK)(e.onClick,o.onClose)})})});$.displayName=J;var[Z,ee]=_("TooltipPortal",{forceMount:void 0}),et="TooltipContent",er=n.forwardRef((e,t)=>{let r=ee(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...s}=e,i=V(et,e.__scopeTooltip);return(0,h.jsx)(D.C,{present:n||i.open,children:i.disableHoverableContent?(0,h.jsx)(eo,{side:a,...s,ref:t}):(0,h.jsx)(en,{side:a,...s,ref:t})})}),en=n.forwardRef((e,t)=>{let r=V(et,e.__scopeTooltip),a=U(et,e.__scopeTooltip),i=n.useRef(null),o=(0,s.s)(t,i),[l,u]=n.useState(null),{trigger:c,onClose:d}=r,f=i.current,{onPointerInTransitChange:p}=a,m=n.useCallback(()=>{u(null),p(!1)},[p]),y=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,a,s)){case s:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.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 r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,a),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())])),p(!0)},[p]);return n.useEffect(()=>()=>m(),[m]),n.useEffect(()=>{if(c&&f){let e=e=>y(e,f),t=e=>y(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,y,m]),n.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){let i=t[e],o=t[s],l=i.x,u=i.y,c=o.x,d=o.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(a=!a)}return a}(r,l);n?m():a&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,l,d,m]),(0,h.jsx)(eo,{...e,ref:o})}),[ea,es]=_(G,{isInside:!1}),ei=(0,q.Dc)("TooltipContent"),eo=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:a,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:l,...u}=e,c=V(et,r),d=z(r),{onClose:f}=c;return n.useEffect(()=>(document.addEventListener(H,f),()=>document.removeEventListener(H,f)),[f]),n.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),(0,h.jsx)(o.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,h.jsxs)(k,{"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,h.jsx)(ei,{children:a}),(0,h.jsx)(ea,{scope:r,isInside:!0,children:(0,h.jsx)(F.bL,{id:c.contentId,role:"tooltip",children:s||a})})]})})});er.displayName=et;var el="TooltipArrow";n.forwardRef((e,t)=>
1{let{__scopeTooltip:r,...n}=e,a=z(r);return es(el,r).isInside?null:(0,h.jsx)(A,{...a,...n,ref:t})}).displayName=el;var eu=Y,ec=X,ed=$,eh=er},84288:(e,t,r)=>{r.d(t,{X:()=>s});var n=r(12115),a=r(4129);function s(e){let[t,r]=n.useState(void 0);return(0,a.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},99776:(e,t,r)=>{r.d(t,{Ht:()=>i});var n=r(12115),a=r(95155),s=n.createContext(void 0),i=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,a.jsx)(s.Provider,{value:t,children:r})}}}]);
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.