(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},r={},o={},a=n.parcelRequired5b2;null==a&&((a=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){o[e]=t},n.parcelRequired5b2=a),a.register("40w2c",(function(t,n){
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var r,o,i;e(t.exports,"Fragment",(()=>r),(e=>r=e)),e(t.exports,"jsx",(()=>o),(e=>o=e)),e(t.exports,"jsxs",(()=>i),(e=>i=e));var s=a("8dQZc"),l=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)c.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:d.current}}r=u,o=p,i=p})),a.register("8dQZc",(function(e,t){e.exports=React}));var i;i=a("40w2c");var s=a("8dQZc");function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}s=a("8dQZc");function u(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function c(...e){return(0,s.useCallback)(u(...e),e)}const d=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),a=o.find(m);if(a){const e=a.props.children,n=o.map((t=>t===a?s.Children.count(e)>1?s.Children.only(null):(0,s.isValidElement)(e)?e.props.children:null:t));return(0,s.createElement)(f,l({},r,{ref:t}),(0,s.isValidElement)(e)?(0,s.cloneElement)(e,void 0,n):null)}return(0,s.createElement)(f,l({},r,{ref:t}),n)}));d.displayName="Slot";const f=(0,s.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{...h(r,n.props),ref:t?u(t,n.ref):n.ref}):s.Children.count(n)>1?s.Children.only(null):null}));f.displayName="SlotClone";const p=({children:e})=>(0,s.createElement)(s.Fragment,null,e);function m(e){return(0,s.isValidElement)(e)&&e.type===p}function h(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function v(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=v(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function g(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=v(e))&&(r&&(r+=" "),r+=t);return r}const y=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,b=g,w=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return b(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=y(t)||y(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return b(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)};var x={};Object.defineProperty(x,Symbol.toStringTag,{value:"Module"});const E="-";function _(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{T(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(E);return""===n[0]&&1!==n.length&&n.shift(),k(n,t)||function(e){if(C.test(e)){const t=C.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function k(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?k(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join(E);return t.validators.find((({validator:e})=>e(a)))?.classGroupId}const C=/^\[(.+)\]$/;function T(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void T(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{T(o,D(t,e),n,r)}))}else{(""===e?t:D(t,e)).classGroupId=n}}))}function D(e,t){let n=e;return t.split(E).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function S(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,a){n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const N="!";function M(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const a=[];let i,s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===r&&(n||e.slice(u,u+o)===t)){a.push(e.slice(l,u)),l=u+o;continue}if("/"===c){i=u;continue}}"["===c?s++:"]"===c&&s--}const u=0===a.length?e:e.substring(l),c=u.startsWith(N);return{modifiers:a,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}const O=/\s+/;function R(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=P(e))&&(r&&(r+=" "),r+=t);return r}function P(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=P(e[r]))&&(n&&(n+=" "),n+=t);return n}function A(e,...t){let n,r,o,a=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:S(e.cacheSize),splitModifiers:M(e),..._(e)}}(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(O).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:a,maybePostfixModifierPosition:i}=n(e);let s=r(i?a.substring(0,i):a),l=Boolean(i);if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=r(a),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?u+N:u,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,i=t+n;return!a.has(i)&&(a.add(i),o(n,r).forEach((e=>a.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,a),a}return function(){return a(R.apply(null,arguments))}}function F(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const j=/^\[(?:([a-z-]+):)?(.+)\]$/i,I=/^\d+\/\d+$/,L=new Set(["px","full","screen"]),U=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,z=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function W(e){return B(e)||L.has(e)||I.test(e)}function H(e){return oe(e,"length",ae)}function B(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Y(e){return oe(e,"number",B)}function q(e){return Boolean(e)&&Number.isInteger(Number(e))}function Q(e){return e.endsWith("%")&&B(e.slice(0,-1))}function Z(e){return j.test(e)}function K(e){return U.test(e)}const G=new Set(["length","size","percentage"]);function X(e){return oe(e,G,ie)}function J(e){return oe(e,"position",ie)}const ee=new Set(["image","url"]);function te(e){return oe(e,ee,le)}function ne(e){return oe(e,"",se)}function re(){return!0}function oe(e,t,n){const r=j.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function ae(e){return V.test(e)}function ie(){return!1}function se(e){return z.test(e)}function le(e){return $.test(e)}const ue=Object.defineProperty({__proto__:null,isAny:re,isArbitraryImage:te,isArbitraryLength:H,isArbitraryNumber:Y,isArbitraryPosition:J,isArbitraryShadow:ne,isArbitrarySize:X,isArbitraryValue:Z,isInteger:q,isLength:W,isNumber:B,isPercent:Q,isTshirtSize:K},Symbol.toStringTag,{value:"Module"});function ce(){const e=F("colors"),t=F("spacing"),n=F("blur"),r=F("brightness"),o=F("borderColor"),a=F("borderRadius"),i=F("borderSpacing"),s=F("borderWidth"),l=F("contrast"),u=F("grayscale"),c=F("hueRotate"),d=F("invert"),f=F("gap"),p=F("gradientColorStops"),m=F("gradientColorStopPositions"),h=F("inset"),v=F("margin"),g=F("opacity"),y=F("padding"),b=F("saturate"),w=F("scale"),x=F("sepia"),E=F("skew"),_=F("space"),k=F("translate"),C=()=>["auto",Z,t],T=()=>[Z,t],D=()=>["",W,H],S=()=>["auto",B,Z],N=()=>["","0",Z],M=()=>[B,Y],O=()=>[B,Z];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[W,H],blur:["none","",K,Z],brightness:M(),borderColor:[e],borderRadius:["none","","full",K,Z],borderSpacing:T(),borderWidth:D(),contrast:M(),grayscale:N(),hueRotate:O(),invert:N(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Q,H],inset:C(),margin:C(),opacity:M(),padding:T(),saturate:M(),scale:M(),sepia:N(),skew:O(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[K]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Z]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",q,Z]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",q,Z]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",q,Z]},Z]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[q,Z]},Z]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Z,t]}],"min-w":[{"min-w":["min","max","fit",Z,W]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[K]},K,Z]}],h:[{h:[Z,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W,Z]}],"max-h":[{"max-h":[Z,t,"min","max","fit"]}],"font-size":[{text:["base",K,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",B,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,H]}],"underline-offset":[{"underline-offset":["auto",W,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",J]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[W,Z]}],"outline-w":[{outline:[W,H]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[W,H]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,ne]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",K,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[q,Z]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[W,H,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function de(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:a={}}){fe(e,"cacheSize",t),fe(e,"prefix",n),fe(e,"separator",r);for(const t in a)pe(e[t],a[t]);for(const t in o)me(e[t],o[t]);return e}function fe(e,t,n){void 0!==n&&(e[t]=n)}function pe(e,t){if(t)for(const n in t)fe(e,n,t[n])}function me(e,t){if(t)for(const n in t){const r=t[n];void 0!==r&&(e[n]=(e[n]||[]).concat(r))}}const he=A(ce);x.createTailwindMerge=A,x.extendTailwindMerge=function(e,...t){return"function"==typeof e?A(ce,e,...t):A((()=>de(ce(),e)),...t)},x.fromTheme=F,x.getDefaultConfig=ce,x.mergeConfigs=de,x.twJoin=R,x.twMerge=he,x.validators=ue;s=a("8dQZc");function ve(...e){return(0,x.twMerge)(g(e))}const ge={default:0},ye=(0,s.createContext)((()=>++ge.default)),be=(e="id")=>{const t=(0,s.useContext)(ye),n=(0,s.useRef)();return n.current||(n.current=`${e}:${t()}`),n.current},we=w("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm gap-1 font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 select-none",{variants:{variant:{default:"bg-primary/90 hover:bg-primary/100 active:opacity-90 text-primary-foreground hover:text-primary-foreground as-classic",solid:"bg-primary/90 hover:bg-primary/100 active:opacity-90 text-primary-foreground hover:text-primary-foreground as-solid",destructive:"bg-destructive/90 hover:bg-destructive/100 active:opacity-90 text-destructive-foreground hover:text-destructive-foreground as-destructive",outline:"border bg-background hover:bg-accent hover:text-accent-foreground active:opacity-80 as-outline",secondary:"bg-secondary/70 text-secondary-foreground hover:bg-secondary/100 active:opacity-80 as-secondary",ghost:"hover:bg-secondary/70 hover:text-secondary-foreground active:opacity-80 as-ghost",link:"text-primary underline-offset-4 hover:underline active:opacity-80 as-link"},size:{default:"h-10 px-4 py-2",md:"h-9 px-4 rounded-md py-2",lg:"h-11 text-base rounded-md px-8",sm:"h-7 rounded px-3 py-1",xs:"h-6 text-xs rounded px-3",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xe=s.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?d:"button";return(0,i.jsx)(s,{className:ve("ui__button",we({variant:t,size:n,className:e})),ref:a,...o})}));xe.displayName="Button";s=a("8dQZc"),s=a("8dQZc");function Ee(e,[t,n]){return Math.min(n,Math.max(t,e))}function _e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}s=a("8dQZc");function ke(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,s.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,s.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,s.createContext)(r),a=n.length;function i(t){const{scope:n,children:r,...i}=t,l=(null==n?void 0:n[e][a])||o,u=(0,s.useMemo)((()=>i),Object.values(i));return(0,s.createElement)(l.Provider,{value:u},r)}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){const l=(null==i?void 0:i[e][a])||o,u=(0,s.useContext)(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ce(r,...t)]}function Ce(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,s.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}s=a("8dQZc"),s=a("8dQZc");function Te(e){const t=(0,s.useRef)(e);return(0,s.useEffect)((()=>{t.current=e})),(0,s.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function De({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,s.useState)(e),[r]=n,o=(0,s.useRef)(r),a=Te(t);return(0,s.useEffect)((()=>{o.current!==r&&(a(r),o.current=r)}),[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,i=a?e:r,l=Te(n);return[i,(0,s.useCallback)((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}const Se=(0,(s=a("8dQZc")).createContext)(void 0);function Ne(e){const t=(0,s.useContext)(Se);return e||t||"ltr"}s=a("8dQZc");function Me(e){const t=(0,s.useRef)({value:e,previous:e});return(0,s.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}s=a("8dQZc"),s=a("8dQZc");const Oe=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{};function Re(e){const[t,n]=(0,s.useState)(void 0);return Oe((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}s=a("8dQZc");var Pe={};Pe=ReactDOM;const Ae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,s.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,a=r?d:t;return(0,s.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,s.createElement)(a,l({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Fe(e,t){e&&(0,Pe.flushSync)((()=>e.dispatchEvent(t)))}s=a("8dQZc");function je(e){const n=e+"CollectionProvider",[r,o]=ke(n),[a,i]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:n,children:r}=e,o=t(s).useRef(null),i=t(s).useRef(new Map).current;return t(s).createElement(a,{scope:n,itemMap:i,collectionRef:o},r)},u=e+"CollectionSlot",f=t(s).forwardRef(((e,n)=>{const{scope:r,children:o}=e,a=c(n,i(u,r).collectionRef);return t(s).createElement(d,{ref:a},o)})),p=e+"CollectionItemSlot",m="data-radix-collection-item",h=t(s).forwardRef(((e,n)=>{const{scope:r,children:o,...a}=e,l=t(s).useRef(null),u=c(n,l),f=i(p,r);return t(s).useEffect((()=>(f.itemMap.set(l,{ref:l,...a}),()=>{f.itemMap.delete(l)}))),t(s).createElement(d,{[m]:"",ref:u},o)}));return[{Provider:l,Slot:f,ItemSlot:h},function(n){const r=i(e+"CollectionConsumer",n);return t(s).useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}const Ie=["PageUp","PageDown"],Le=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ue={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ve="Slider",[ze,$e,We]=je(Ve),[He,Be]=ke(Ve,[We]),[Ye,qe]=He(Ve),Qe=(0,s.forwardRef)(((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:u=!1,minStepsBetweenThumbs:d=0,defaultValue:f=[r],value:p,onValueChange:m=(()=>{}),onValueCommit:h=(()=>{}),inverted:v=!1,...g}=e,[y,b]=(0,s.useState)(null),w=c(t,(e=>b(e))),x=(0,s.useRef)(new Set),E=(0,s.useRef)(0),_="horizontal"===i,k=!y||Boolean(y.closest("form")),C=_?Ge:Xe,[T=[],D]=De({prop:p,defaultProp:f,onChange:e=>{var t;null===(t=[...x.current][E.current])||void 0===t||t.focus(),m(e)}}),S=(0,s.useRef)(T);function N(e,t,{commit:n}={commit:!1}){const i=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,i),l=Ee(s,[r,o]);D(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,d*a)){E.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&h(r),t?r:e}return e}))}return(0,s.createElement)(Ye,{scope:e.__scopeSlider,disabled:u,min:r,max:o,valueIndexToChangeRef:E,thumbs:x.current,values:T,orientation:i},(0,s.createElement)(ze.Provider,{scope:e.__scopeSlider},(0,s.createElement)(ze.Slot,{scope:e.__scopeSlider},(0,s.createElement)(C,l({"aria-disabled":u,"data-disabled":u?"":void 0},g,{ref:w,onPointerDown:_e(g.onPointerDown,(()=>{u||(S.current=T)})),min:r,max:o,inverted:v,onSlideStart:u?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(T,e);N(e,t)},onSlideMove:u?void 0:function(e){N(e,E.current)},onSlideEnd:u?void 0:function(){const e=S.current[E.current];T[E.current]!==e&&h(T)},onHomeKeyDown:()=>!u&&N(r,0,{commit:!0}),onEndKeyDown:()=>!u&&N(o,T.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!u){const n=Ie.includes(e.key)||e.shiftKey&&Le.includes(e.key)?10:1,r=E.current;N(T[r]+a*n*t,r,{commit:!0})}}})))),k&&T.map(((e,t)=>(0,s.createElement)(st,{key:t,name:n?n+(T.length>1?"[]":""):void 0,value:e}))))})),[Ze,Ke]=He(Ve,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ge=(0,s.forwardRef)(((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:u,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,h]=(0,s.useState)(null),v=c(t,(e=>h(e))),g=(0,s.useRef)(),y=Ne(o),b="ltr"===y,w=b&&!a||!b&&a;function x(e){const t=g.current||m.getBoundingClientRect(),o=ut([0,t.width],w?[n,r]:[r,n]);return g.current=t,o(e-t.left)}return(0,s.createElement)(Ze,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width"},(0,s.createElement)(Je,l({dir:y,"data-orientation":"horizontal"},p,{ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);null==i||i(t)},onSlideMove:e=>{const t=x(e.clientX);null==u||u(t)},onSlideEnd:()=>{g.current=void 0,null==d||d()},onStepKeyDown:e=>{const t=Ue[w?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})))})),Xe=(0,s.forwardRef)(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:u,onStepKeyDown:d,...f}=e,p=(0,s.useRef)(null),m=c(t,p),h=(0,s.useRef)(),v=!o;function g(e){const t=h.current||p.current.getBoundingClientRect(),o=ut([0,t.height],v?[r,n]:[n,r]);return h.current=t,o(e-t.top)}return(0,s.createElement)(Ze,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},(0,s.createElement)(Je,l({"data-orientation":"vertical"},f,{ref:m,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);null==a||a(t)},onSlideMove:e=>{const t=g(e.clientY);null==i||i(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>{const t=Ue[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})))})),Je=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:u,onStepKeyDown:c,...d}=e,f=qe(Ve,n);return(0,s.createElement)(Ae.span,l({},d,{ref:t,onKeyDown:_e(e.onKeyDown,(e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):Ie.concat(Le).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:_e(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():r(e)})),onPointerMove:_e(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:_e(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))}))}))})),et="SliderTrack",tt=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=qe(et,n);return(0,s.createElement)(Ae.span,l({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},r,{ref:t}))})),nt="SliderRange",rt=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,...r}=e,o=qe(nt,n),a=Ke(nt,n),i=c(t,(0,s.useRef)(null)),u=o.values.length,d=o.values.map((e=>lt(e,o.min,o.max))),f=u>1?Math.min(...d):0,p=100-Math.max(...d);return(0,s.createElement)(Ae.span,l({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},r,{ref:i,style:{...e.style,[a.startEdge]:f+"%",[a.endEdge]:p+"%"}}))})),ot="SliderThumb",at=(0,s.forwardRef)(((e,t)=>{const n=$e(e.__scopeSlider),[r,o]=(0,s.useState)(null),a=c(t,(e=>o(e))),i=(0,s.useMemo)((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return(0,s.createElement)(it,l({},e,{ref:a,index:i}))})),it=(0,s.forwardRef)(((e,t)=>{const{__scopeSlider:n,index:r,...o}=e,a=qe(ot,n),i=Ke(ot,n),[u,d]=(0,s.useState)(null),f=c(t,(e=>d(e))),p=Re(u),m=a.values[r],h=void 0===m?0:lt(m,a.min,a.max),v=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,a.values.length),g=null==p?void 0:p[i.size],y=g?function(e,t,n){const r=e/2,o=ut([0,50],[0,r]);return(r-o(t)*n)*n}(g,h,i.direction):0;return(0,s.useEffect)((()=>{if(u)return a.thumbs.add(u),()=>{a.thumbs.delete(u)}}),[u,a.thumbs]),(0,s.createElement)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${h}% + ${y}px)`}},(0,s.createElement)(ze.ItemSlot,{scope:e.__scopeSlider},(0,s.createElement)(Ae.span,l({role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":a.min,"aria-valuenow":m,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},o,{ref:f,style:void 0===m?{display:"none"}:e.style,onFocus:_e(e.onFocus,(()=>{a.valueIndexToChangeRef.current=r}))}))))})),st=e=>{const{value:t,...n}=e,r=(0,s.useRef)(null),o=Me(t);return(0,s.useEffect)((()=>{const e=r.current,n=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&a){const n=new Event("input",{bubbles:!0});a.call(e,t),e.dispatchEvent(n)}}),[o,t]),(0,s.createElement)("input",l({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function lt(e,t,n){return Ee(100/(n-t)*(e-t),[0,100])}function ut(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}const ct=Qe,dt=tt,ft=rt,pt=at,mt=s.forwardRef((({className:e,...t},n)=>(0,i.jsxs)(ct,{ref:n,className:ve("ui__slider","relative flex w-full touch-none select-none items-center",e),...t,children:[(0,i.jsx)(dt,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,i.jsx)(ft,{className:"absolute h-full bg-primary"})}),(0,i.jsx)(pt,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]})));mt.displayName=ct.displayName;s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc");function ht(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e);(0,s.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const vt="dismissableLayer.update",gt="dismissableLayer.pointerDownOutside",yt="dismissableLayer.focusOutside";let bt;const wt=(0,s.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xt=(0,s.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:u,onDismiss:d,...f}=e,p=(0,s.useContext)(wt),[m,h]=(0,s.useState)(null),v=null!==(n=null==m?void 0:m.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=(0,s.useState)({}),y=c(t,(e=>h(e))),b=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(w),E=m?b.indexOf(m):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,k=E>=x,C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e),r=(0,s.useRef)(!1),o=(0,s.useRef)((()=>{}));return(0,s.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){kt(gt,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...p.branches].some((e=>e.contains(t)));k&&!n&&(null==a||a(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v),T=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Te(e),r=(0,s.useRef)(!1);return(0,s.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){kt(yt,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...p.branches].some((e=>e.contains(t)))||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v);return ht((e=>{E===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),v),(0,s.useEffect)((()=>{if(m)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(bt=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),_t(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=bt)}}),[m,v,r,p]),(0,s.useEffect)((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),_t())}),[m,p]),(0,s.useEffect)((()=>{const e=()=>g({});return document.addEventListener(vt,e),()=>document.removeEventListener(vt,e)}),[]),(0,s.createElement)(Ae.div,l({},f,{ref:y,style:{pointerEvents:_?k?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,C.onPointerDownCapture)}))})),Et=(0,s.forwardRef)(((e,t)=>{const n=(0,s.useContext)(wt),r=(0,s.useRef)(null),o=c(t,r);return(0,s.useEffect)((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,s.createElement)(Ae.div,l({},e,{ref:o}))}));function _t(){const e=new CustomEvent(vt);document.dispatchEvent(e)}function kt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fe(o,a):o.dispatchEvent(a)}const Ct=xt,Tt=Et;s=a("8dQZc");let Dt=0;function St(){(0,s.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Nt()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Nt()),Dt++,()=>{1===Dt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Dt--}}),[])}function Nt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}s=a("8dQZc");const Mt="focusScope.autoFocusOnMount",Ot="focusScope.autoFocusOnUnmount",Rt={bubbles:!1,cancelable:!0},Pt=(0,s.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,d]=(0,s.useState)(null),f=Te(o),p=Te(a),m=(0,s.useRef)(null),h=c(t,(e=>d(e))),v=(0,s.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,s.useEffect)((()=>{if(r){function e(e){if(v.paused||!u)return;const t=e.target;u.contains(t)?m.current=t:It(m.current,{select:!0})}function t(e){if(v.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||It(m.current,{select:!0}))}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver((function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&It(u)}));return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[r,u,v.paused]),(0,s.useEffect)((()=>{if(u){Lt.add(v);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(Mt,Rt);u.addEventListener(Mt,f),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(It(r,{select:t}),document.activeElement!==n)return}((e=At(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&It(u))}return()=>{u.removeEventListener(Mt,f),setTimeout((()=>{const e=new CustomEvent(Ot,Rt);u.addEventListener(Ot,p),u.dispatchEvent(e),e.defaultPrevented||It(null!=t?t:document.body,{select:!0}),u.removeEventListener(Ot,p),Lt.remove(v)}),0)}}var e}),[u,f,p,v]);const g=(0,s.useCallback)((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=At(e),n=Ft(t,e),r=Ft(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&It(a,{select:!0})):(e.preventDefault(),n&&It(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return(0,s.createElement)(Ae.div,l({tabIndex:-1},i,{ref:h,onKeyDown:g}))}));function At(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ft(e,t){for(const n of e)if(!jt(n,{upTo:t}))return n}function jt(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function It(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Lt=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Ut(e,t),e.unshift(t)},remove(t){var n;e=Ut(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Ut(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Vt=(s=a("8dQZc"))["useId".toString()]||(()=>{});let zt=0;function $t(e){const[t,n]=s.useState(Vt());return Oe((()=>{e||n((e=>null!=e?e:String(zt++)))}),[e]),e||(t?`radix-${t}`:"")}s=a("8dQZc");const Wt=["top","right","bottom","left"],Ht=Math.min,Bt=Math.max,Yt=Math.round,qt=Math.floor,Qt=e=>({x:e,y:e}),Zt={left:"right",right:"left",bottom:"top",top:"bottom"},Kt={start:"end",end:"start"};function Gt(e,t,n){return Bt(e,Ht(t,n))}function Xt(e,t){return"function"==typeof e?e(t):e}function Jt(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function tn(e){return"x"===e?"y":"x"}function nn(e){return"y"===e?"height":"width"}function rn(e){return["top","bottom"].includes(Jt(e))?"y":"x"}function on(e){return tn(rn(e))}function an(e,t,n){void 0===n&&(n=!1);const r=en(e),o=on(e),a=nn(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cn(i)),[i,cn(i)]}function sn(e){const t=cn(e);return[ln(e),t,ln(t)]}function ln(e){return e.replace(/start|end/g,(e=>Kt[e]))}function un(e,t,n,r){const o=en(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(Jt(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(ln)))),a}function cn(e){return e.replace(/left|right|bottom|top/g,(e=>Zt[e]))}function dn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function fn(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function pn(e,t,n){let{reference:r,floating:o}=e;const a=rn(t),i=on(t),s=nn(i),l=Jt(t),u="y"===a,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(en(t)){case"start":p[i]-=f*(n&&u?-1:1);break;case"end":p[i]+=f*(n&&u?-1:1)}return p}const mn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=pn(u,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:v,y:g,data:y,reset:b}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[a]:{...p[a],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=pn(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function hn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Xt(t,e),m=dn(p),h=s[f?"floating"===d?"reference":"floating":d],v=fn(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{...i.floating,x:r,y:o}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=fn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const vn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xt(e,t)||{};if(null==u)return{};const d=dn(c),f={x:n,y:r},p=on(o),m=nn(p),h=await i.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u));let _=E?E[b]:0;_&&await(null==i.isElement?void 0:i.isElement(E))||(_=s.floating[b]||a.floating[m]);const k=w/2-x/2,C=_/2-h[m]/2-1,T=Ht(d[g],C),D=Ht(d[y],C),S=T,N=_-h[m]-D,M=_/2-h[m]/2+k,O=Gt(S,M,N),R=!l.arrow&&null!=en(o)&&M!=O&&a.reference[m]/2-(M<S?T:D)-h[m]/2<0,P=R?M<S?M-S:M-N:0;return{[p]:f[p]+P,data:{[p]:O,centerOffset:M-O-P,...R&&{alignmentOffset:P}},reset:R}}});const gn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Xt(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=Jt(o),y=Jt(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(u.floating)),w=f||(y||!h?[cn(s)]:sn(s));f||"none"===m||w.push(...un(s,h,m,b));const x=[s,...w],E=await hn(t,v),_=[];let k=(null==(r=a.flip)?void 0:r.overflows)||[];if(c&&_.push(E[g]),d){const e=an(o,i,b);_.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:o,overflows:_}],!_.every((e=>e<=0))){var C,T;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(T=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function yn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bn(e){return Wt.some((t=>e[t]>=0))}const wn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Xt(e,t);switch(r){case"referenceHidden":{const e=yn(await hn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bn(e)}}}case"escaped":{const e=yn(await hn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bn(e)}}}default:return{}}}}};const xn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=Jt(n),s=en(n),l="y"===rn(n),u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,d=Xt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},En=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xt(e,t),u={x:n,y:r},c=await hn(t,l),d=rn(Jt(o)),f=tn(d);let p=u[f],m=u[d];if(a){const e="y"===f?"bottom":"right";p=Gt(p+c["y"===f?"top":"left"],p,p-c[e])}if(i){const e="y"===d?"bottom":"right";m=Gt(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},_n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=(()=>{}),...s}=Xt(e,t),l=await hn(t,s),u=Jt(n),c=en(n),d="y"===rn(n),{width:f,height:p}=r.floating;let m,h;"top"===u||"bottom"===u?(m=u,h=c===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=u,m="end"===c?"top":"bottom");const v=p-l[m],g=f-l[h],y=!t.middlewareData.shift;let b=v,w=g;if(d){const e=f-l.left-l.right;w=c||y?Ht(g,e):e}else{const e=p-l.top-l.bottom;b=c||y?Ht(v,e):e}if(y&&!c){const e=Bt(l.left,0),t=Bt(l.right,0),n=Bt(l.top,0),r=Bt(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Bt(l.left,l.right)):b=p-2*(0!==n||0!==r?n+r:Bt(l.top,l.bottom))}await i({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(a.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function kn(e){return Dn(e)?(e.nodeName||"").toLowerCase():"#document"}function Cn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Tn(e){var t;return null==(t=(Dn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dn(e){return e instanceof Node||e instanceof Cn(e).Node}function Sn(e){return e instanceof Element||e instanceof Cn(e).Element}function Nn(e){return e instanceof HTMLElement||e instanceof Cn(e).HTMLElement}function Mn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Cn(e).ShadowRoot)}function On(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rn(e){return["table","td","th"].includes(kn(e))}function Pn(e){const t=Fn(),n=In(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function An(e){let t=Un(e);for(;Nn(t)&&!jn(t);){if(Pn(t))return t;t=Un(t)}return null}function Fn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jn(e){return["html","body","#document"].includes(kn(e))}function In(e){return Cn(e).getComputedStyle(e)}function Ln(e){return Sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Un(e){if("html"===kn(e))return e;const t=e.assignedSlot||e.parentNode||Mn(e)&&e.host||Tn(e);return Mn(t)?t.host:t}function Vn(e){const t=Un(e);return jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nn(t)&&On(t)?t:Vn(t)}function zn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Vn(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Cn(o);return a?t.concat(i,i.visualViewport||[],On(o)?o:[],i.frameElement&&n?zn(i.frameElement):[]):t.concat(o,zn(o,[],n))}function $n(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nn(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Yt(n)!==a||Yt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Wn(e){return Sn(e)?e:e.contextElement}function Hn(e){const t=Wn(e);if(!Nn(t))return Qt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=$n(t);let i=(a?Yt(n.width):n.width)/r,s=(a?Yt(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Bn=Qt(0);function Yn(e){const t=Cn(e);return Fn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Bn}function qn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Wn(e);let i=Qt(1);t&&(r?Sn(r)&&(i=Hn(r)):i=Hn(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Cn(e))&&t}(a,n,r)?Yn(a):Qt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=Cn(a),t=r&&Sn(r)?Cn(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Hn(n),t=n.getBoundingClientRect(),r=In(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=Cn(n).frameElement}}return fn({width:c,height:d,x:l,y:u})}function Qn(e){return qn(Tn(e)).left+Ln(e).scrollLeft}function Zn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Cn(e),r=Tn(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Fn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Tn(e),n=Ln(e),r=e.ownerDocument.body,o=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Qn(e);const s=-n.scrollTop;return"rtl"===In(r).direction&&(i+=Bt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Tn(e));else if(Sn(t))r=function(e,t){const n=qn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Nn(e)?Hn(e):Qt(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Yn(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return fn(r)}function Kn(e,t){const n=Un(e);return!(n===t||!Sn(n)||jn(n))&&("fixed"===In(n).position||Kn(n,t))}function Gn(e,t,n){const r=Nn(t),o=Tn(t),a="fixed"===n,i=qn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Qt(0);if(r||!r&&!a)if(("body"!==kn(t)||On(o))&&(s=Ln(t)),r){const e=qn(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Qn(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Xn(e,t){return Nn(e)&&"fixed"!==In(e).position?t?t(e):e.offsetParent:null}function Jn(e,t){const n=Cn(e);if(!Nn(e))return n;let r=Xn(e,t);for(;r&&Rn(r)&&"static"===In(r).position;)r=Xn(r,t);return r&&("html"===kn(r)||"body"===kn(r)&&"static"===In(r).position&&!Pn(r))?n:r||An(e)||n}const er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Nn(n),a=Tn(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=Qt(1);const l=Qt(0);if((o||!o&&"fixed"!==r)&&(("body"!==kn(n)||On(a))&&(i=Ln(n)),Nn(n))){const e=qn(n);s=Hn(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},getDocumentElement:Tn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=zn(e,[],!1).filter((e=>Sn(e)&&"body"!==kn(e))),o=null;const a="fixed"===In(e).position;let i=a?Un(e):e;for(;Sn(i)&&!jn(i);){const t=In(i),n=Pn(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||On(i)&&!n&&Kn(e,i))?r=r.filter((e=>e!==i)):o=t,i=Un(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=Zn(t,n,o);return e.top=Bt(r.top,e.top),e.right=Ht(r.right,e.right),e.bottom=Ht(r.bottom,e.bottom),e.left=Bt(r.left,e.left),e}),Zn(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Jn,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Jn,a=this.getDimensions;return{reference:Gn(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return $n(e)},getScale:Hn,isElement:Sn,isRTL:function(e){return"rtl"===In(e).direction}};function tr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Wn(e),c=o||a?[...u?zn(u):[],...zn(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=Tn(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-qt(c)+"px "+-qt(o.clientWidth-(u+d))+"px "+-qt(o.clientHeight-(c+f))+"px "+-qt(u)+"px",threshold:Bt(0,Ht(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let h=l?qn(e):null;return l&&function t(){const r=qn(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const nr=(e,t,n)=>{const r=new Map,o={platform:er,...n},a={...o.platform,_c:r};return mn(e,t,{...o,platform:a})};s=a("8dQZc"),s=a("8dQZc");const rr=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?vn({element:n.current,padding:r}).fn(t):{}:n?vn({element:n,padding:r}).fn(t):{};var o}});var or="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function ar(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!ar(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ar(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ir(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sr(e,t){const n=ir(e);return Math.round(t*n)/n}function lr(e){const t=s.useRef(e);return or((()=>{t.current=e})),t}function ur(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=s.useState(r);ar(p,r)||m(r);const[h,v]=s.useState(null),[g,y]=s.useState(null),b=s.useCallback((e=>{e!=_.current&&(_.current=e,v(e))}),[v]),w=s.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[y]),x=a||h,E=i||g,_=s.useRef(null),k=s.useRef(null),C=s.useRef(d),T=lr(u),D=lr(o),S=s.useCallback((()=>{if(!_.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};D.current&&(e.platform=D.current),nr(_.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};N.current&&!ar(C.current,t)&&(C.current=t,Pe.flushSync((()=>{f(t)})))}))}),[p,t,n,D]);or((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const N=s.useRef(!1);or((()=>(N.current=!0,()=>{N.current=!1})),[]),or((()=>{if(x&&(_.current=x),E&&(k.current=E),x&&E){if(T.current)return T.current(x,E,S);S()}}),[x,E,S,T]);const M=s.useMemo((()=>({reference:_,floating:k,setReference:b,setFloating:w})),[b,w]),O=s.useMemo((()=>({reference:x,floating:E})),[x,E]),R=s.useMemo((()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=sr(O.floating,d.x),r=sr(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ir(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,O.floating,d.x,d.y]);return s.useMemo((()=>({...d,update:S,refs:M,elements:O,floatingStyles:R})),[d,S,M,O,R])}const cr=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,s.createElement)(Ae.svg,l({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,s.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),dr=cr,fr="Popper",[pr,mr]=ke(fr),[hr,vr]=pr(fr),gr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,s.useState)(null);return(0,s.createElement)(hr,{scope:t,anchor:r,onAnchorChange:o},n)},yr="PopperAnchor",br=(0,s.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=vr(yr,n),i=(0,s.useRef)(null),u=c(t,i);return(0,s.useEffect)((()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)})),r?null:(0,s.createElement)(Ae.div,l({},o,{ref:u}))})),wr="PopperContent",[xr,Er]=pr(wr),_r=(0,s.forwardRef)(((e,t)=>{var n,r,o,a,i,u,d,f;const{__scopePopper:p,side:m="bottom",sideOffset:h=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:_=!1,updatePositionStrategy:k="optimized",onPlaced:C,...T}=e,D=vr(wr,p),[S,N]=(0,s.useState)(null),M=c(t,(e=>N(e))),[O,R]=(0,s.useState)(null),P=Re(O),A=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,F=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,j=m+("center"!==v?"-"+v:""),I="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},L=Array.isArray(w)?w:[w],U=L.length>0,V={padding:I,boundary:L.filter(Dr),altBoundary:U},{refs:z,floatingStyles:$,placement:W,isPositioned:H,middlewareData:B}=ur({strategy:"fixed",placement:j,whileElementsMounted:(...e)=>tr(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[xn({mainAxis:h+F,alignmentAxis:g}),b&&En({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(void 0===Y&&(Y={}),{options:Y,fn(e){const{x:t,y:n,placement:r,rects:o,middlewareData:a}=e,{offset:i=0,mainAxis:s=!0,crossAxis:l=!0}=Xt(Y,e),u={x:t,y:n},c=rn(r),d=tn(c);let f=u[d],p=u[c];const m=Xt(i,e),h="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+h.mainAxis,n=o.reference[d]+o.reference[e]-h.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,g;const e="y"===d?"width":"height",t=["top","left"].includes(Jt(r)),n=o.reference[c]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[c])||0)+(t?0:h.crossAxis),i=o.reference[c]+o.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[c])||0)-(t?h.crossAxis:0);p<n?p=n:p>i&&(p=i)}return{[d]:f,[c]:p}}}):void 0,...V}),b&&gn({...V}),_n({...V,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),O&&rr({element:O,padding:y}),Sr({arrowWidth:A,arrowHeight:F}),_&&wn({strategy:"referenceHidden",...V})]});var Y;const[q,Q]=Nr(W),Z=Te(C);Oe((()=>{H&&(null==Z||Z())}),[H,Z]);const K=null===(o=B.arrow)||void 0===o?void 0:o.x,G=null===(a=B.arrow)||void 0===a?void 0:a.y,X=0!==(null===(i=B.arrow)||void 0===i?void 0:i.centerOffset),[J,ee]=(0,s.useState)();return Oe((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]),(0,s.createElement)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:H?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(u=B.transformOrigin)||void 0===u?void 0:u.x,null===(d=B.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},(0,s.createElement)(xr,{scope:p,placedSide:q,onArrowChange:R,arrowX:K,arrowY:G,shouldHideArrow:X},(0,s.createElement)(Ae.div,l({"data-side":q,"data-align":Q},T,{ref:M,style:{...T.style,animation:H?void 0:"none",opacity:null!==(f=B.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),kr="PopperArrow",Cr={top:"bottom",right:"left",bottom:"top",left:"right"},Tr=(0,s.forwardRef)((function(e,t){const{__scopePopper:n,...r}=e,o=Er(kr,n),a=Cr[o.placedSide];return(0,s.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,s.createElement)(dr,l({},r,{ref:t,style:{...r.style,display:"block"}})))}));function Dr(e){return null!==e}const Sr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=Nr(s),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===p?(y=c?h:`${v}px`,b=-f+"px"):"top"===p?(y=c?h:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?h:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?h:`${g}px`),{data:{x:y,y:b}}}});function Nr(e){const[t,n="center"]=e.split("-");return[t,n]}const Mr=gr,Or=br,Rr=_r,Pr=Tr;const Ar=(0,(s=a("8dQZc")).forwardRef)(((e,n)=>{var r;const{container:o=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...a}=e;return o?t(Pe).createPortal((0,s.createElement)(Ae.div,l({},a,{ref:n})),o):null}));s=a("8dQZc");const Fr=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,s.useState)(),r=(0,s.useRef)({}),o=(0,s.useRef)(e),a=(0,s.useRef)("none"),i=e?"mounted":"unmounted",[l,u]=function(e,t){return(0,s.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,s.useEffect)((()=>{const e=jr(r.current);a.current="mounted"===l?e:"none"}),[l]),Oe((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=jr(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),Oe((()=>{if(t){const e=e=>{const n=jr(r.current).includes(e.animationName);e.target===t&&n&&(0,Pe.flushSync)((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=jr(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,s.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),a=c(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,s.cloneElement)(o,{ref:a}):null};function jr(e){return(null==e?void 0:e.animationName)||"none"}Fr.displayName="Presence";s=a("8dQZc");const Ir="rovingFocusGroup.onEntryFocus",Lr={bubbles:!1,cancelable:!0},Ur="RovingFocusGroup",[Vr,zr,$r]=je(Ur),[Wr,Hr]=ke(Ur,[$r]),[Br,Yr]=Wr(Ur),qr=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Vr.Provider,{scope:e.__scopeRovingFocusGroup},(0,s.createElement)(Vr.Slot,{scope:e.__scopeRovingFocusGroup},(0,s.createElement)(Qr,l({},e,{ref:t})))))),Qr=(0,s.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,...p}=e,m=(0,s.useRef)(null),h=c(t,m),v=Ne(a),[g=null,y]=De({prop:i,defaultProp:u,onChange:d}),[b,w]=(0,s.useState)(!1),x=Te(f),E=zr(n),_=(0,s.useRef)(!1),[k,C]=(0,s.useState)(0);return(0,s.useEffect)((()=>{const e=m.current;if(e)return e.addEventListener(Ir,x),()=>e.removeEventListener(Ir,x)}),[x]),(0,s.createElement)(Br,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:(0,s.useCallback)((e=>y(e)),[y]),onItemShiftTab:(0,s.useCallback)((()=>w(!0)),[]),onFocusableItemAdd:(0,s.useCallback)((()=>C((e=>e+1))),[]),onFocusableItemRemove:(0,s.useCallback)((()=>C((e=>e-1))),[])},(0,s.createElement)(Ae.div,l({tabIndex:b||0===k?-1:0,"data-orientation":r},p,{ref:h,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,(()=>{_.current=!0})),onFocus:_e(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Ir,Lr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter((e=>e.focusable));Xr([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)))}}_.current=!1})),onBlur:_e(e.onBlur,(()=>w(!1)))})))})),Zr="RovingFocusGroupItem",Kr=(0,s.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,u=$t(),c=a||u,d=Yr(Zr,n),f=d.currentTabStopId===c,p=zr(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return(0,s.useEffect)((()=>{if(r)return m(),()=>h()}),[r,m,h]),(0,s.createElement)(Vr.ItemSlot,{scope:n,id:c,focusable:r,active:o},(0,s.createElement)(Ae.span,l({tabIndex:f?0:-1,"data-orientation":d.orientation},i,{ref:t,onMouseDown:_e(e.onMouseDown,(e=>{r?d.onItemFocus(c):e.preventDefault()})),onFocus:_e(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:_e(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Gr[r]}(e,d.orientation,d.dir);if(void 0!==t){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=d.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>Xr(o)))}var n,r}))})))})),Gr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xr(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const Jr=qr,eo=Kr;var to=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},no=new WeakMap,ro=new WeakMap,oo={},ao=0,io=function(e){return e&&(e.host||io(e.parentNode))},so=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=io(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);oo[n]||(oo[n]=new WeakMap);var a=oo[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(no.get(e)||0)+1,u=(a.get(e)||0)+1;no.set(e,l),a.set(e,u),i.push(e),1===l&&o&&ro.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),s.clear(),ao++,function(){i.forEach((function(e){var t=no.get(e)-1,o=a.get(e)-1;no.set(e,t),a.set(e,o),t||(ro.has(e)||e.removeAttribute(r),ro.delete(e)),o||e.removeAttribute(n)})),--ao||(no=new WeakMap,no=new WeakMap,ro=new WeakMap,oo={})}},lo=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||to(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),so(r,o,n,"aria-hidden")):function(){return null}};var uo=function(){return uo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uo.apply(this,arguments)};function co(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function fo(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;s=a("8dQZc"),s=a("8dQZc");var po="right-scroll-bar-position",mo="width-before-scroll-bar";s=a("8dQZc");function ho(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,s.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}function vo(e){return e}function go(e,t){void 0===t&&(t=vo);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}var yo=function(e){void 0===e&&(e={});var t=go(null);return t.options=uo({async:!0,ssr:!1},e),t}(),bo=function(){},wo=s.forwardRef((function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:bo,onWheelCapture:bo,onTouchMoveCapture:bo}),o=r[0],a=r[1],i=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=co(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=ho([n,t]),E=uo(uo({},b),o);return s.createElement(s.Fragment,null,d&&s.createElement(w,{sideCar:yo,removeScrollBar:c,shards:f,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),i?s.cloneElement(s.Children.only(l),uo(uo({},E),{ref:x})):s.createElement(y,uo({},E,{className:u,ref:x}),l))}));wo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wo.classNames={fullWidth:mo,zeroRight:po};s=a("8dQZc");var xo=function(e){var t=e.sideCar,n=co(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,uo({},n))};xo.isSideCarExport=!0;var Eo;s=a("8dQZc"),s=a("8dQZc"),s=a("8dQZc");function _o(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eo||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}var ko=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=_o())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Co=function(){var e,t=(e=ko(),function(t,n){s.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},To={left:0,top:0,right:0,gap:0},Do=function(e){return parseInt(e||"",10)||0},So=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return To;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Do(n),Do(r),Do(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},No=Co(),Mo=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(po," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(mo," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(po," .").concat(po," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(mo," .").concat(mo," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Oo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=s.useMemo((function(){return So(o)}),[o]);return s.createElement(No,{styles:Mo(a,!t,o,n?"":"!important")})},Ro=!1;if("undefined"!=typeof window)try{var Po=Object.defineProperty({},"passive",{get:function(){return Ro=!0,!0}});window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch(e){Ro=!1}var Ao=!!Ro&&{passive:!1},Fo=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},jo=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Io(e,n)){var r=Lo(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Io=function(e,t){return"v"===e?function(e){return Fo(e,"overflowY")}(t):function(e){return Fo(e,"overflowX")}(t)},Lo=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Uo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vo=function(e){return[e.deltaX,e.deltaY]},zo=function(e){return e&&"current"in e?e.current:e},$o=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Wo=0,Ho=[];var Bo,Yo=(Bo=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(Wo++)[0],a=s.useState((function(){return Co()}))[0],i=s.useRef(e);s.useEffect((function(){i.current=e}),[e]),s.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=fo([e.lockRef.current],(e.shards||[]).map(zo),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Uo(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=jo(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=jo(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),u=!1,c=i>0,d=0,f=0;do{var p=Lo(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Io(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&0===d||!o&&i>d)||!c&&(o&&0===f||!o&&-i>f))&&(u=!0),u}(p,t,e,"h"===p?l:u,!0)}),[]),u=s.useCallback((function(e){var n=e;if(Ho.length&&Ho[Ho.length-1]===a){var r="deltaY"in n?Vo(n):Uo(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var s=(i.current.shards||[]).map(zo).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=s.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=s.useCallback((function(e){n.current=Uo(e),r.current=void 0}),[]),f=s.useCallback((function(t){c(t.type,Vo(t),t.target,l(t,e.lockRef.current))}),[]),p=s.useCallback((function(t){c(t.type,Uo(t),t.target,l(t,e.lockRef.current))}),[]);s.useEffect((function(){return Ho.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Ao),document.addEventListener("touchmove",u,Ao),document.addEventListener("touchstart",d,Ao),function(){Ho=Ho.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Ao),document.removeEventListener("touchmove",u,Ao),document.removeEventListener("touchstart",d,Ao)}}),[]);var m=e.removeScrollBar,h=e.inert;return s.createElement(s.Fragment,null,h?s.createElement(a,{styles:$o(o)}):null,m?s.createElement(Oo,{gapMode:"margin"}):null)},yo.useMedium(Bo),xo),qo=s.forwardRef((function(e,t){return s.createElement(wo,uo({},e,{ref:t,sideCar:Yo}))}));qo.classNames=wo.classNames;var Qo=qo;const Zo=["Enter"," "],Ko=["ArrowUp","PageDown","End"],Go=["ArrowDown","PageUp","Home",...Ko],Xo={ltr:[...Zo,"ArrowRight"],rtl:[...Zo,"ArrowLeft"]},Jo={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[ta,na,ra]=je(ea),[oa,aa]=ke(ea,[ra,mr,Hr]),ia=mr(),sa=Hr(),[la,ua]=oa(ea),[ca,da]=oa(ea),fa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=ia(t),[u,c]=(0,s.useState)(null),d=(0,s.useRef)(!1),f=Te(a),p=Ne(o);return(0,s.useEffect)((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,s.createElement)(Mr,l,(0,s.createElement)(la,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:c},(0,s.createElement)(ca,{scope:t,onClose:(0,s.useCallback)((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:i},r)))},pa=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=ia(n);return(0,s.createElement)(Or,l({},o,r,{ref:t}))})),ma="MenuPortal",[ha,va]=oa(ma,{forceMount:void 0}),ga=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ua(ma,t);return(0,s.createElement)(ha,{scope:t,forceMount:n},(0,s.createElement)(Fr,{present:n||a.open},(0,s.createElement)(Ar,{asChild:!0,container:o},r)))},ya="MenuContent",[ba,wa]=oa(ya),xa=(0,s.forwardRef)(((e,t)=>{const n=va(ya,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ua(ya,e.__scopeMenu),i=da(ya,e.__scopeMenu);return(0,s.createElement)(ta.Provider,{scope:e.__scopeMenu},(0,s.createElement)(Fr,{present:r||a.open},(0,s.createElement)(ta.Slot,{scope:e.__scopeMenu},i.modal?(0,s.createElement)(Ea,l({},o,{ref:t})):(0,s.createElement)(_a,l({},o,{ref:t})))))})),Ea=(0,s.forwardRef)(((e,t)=>{const n=ua(ya,e.__scopeMenu),r=(0,s.useRef)(null),o=c(t,r);return(0,s.useEffect)((()=>{const e=r.current;if(e)return lo(e)}),[]),(0,s.createElement)(ka,l({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_e(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),_a=(0,s.forwardRef)(((e,t)=>{const n=ua(ya,e.__scopeMenu);return(0,s.createElement)(ka,l({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),ka=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:g,disableOutsideScroll:y,...b}=e,w=ua(ya,n),x=da(ya,n),E=ia(n),_=sa(n),k=na(n),[C,T]=(0,s.useState)(null),D=(0,s.useRef)(null),S=c(t,D,w.onContentChange),N=(0,s.useRef)(0),M=(0,s.useRef)(""),O=(0,s.useRef)(0),R=(0,s.useRef)(null),P=(0,s.useRef)("right"),A=(0,s.useRef)(0),F=y?Qo:s.Fragment,j=y?{as:d,allowPinchZoom:!0}:void 0,I=e=>{var t,n;const r=M.current+e,o=k().filter((e=>!e.disabled)),a=document.activeElement,i=null===(t=o.find((e=>e.ref.current===a)))||void 0===t?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(i=i.filter((e=>e!==n)));const u=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(o.map((e=>e.textValue)),r,i),l=null===(n=o.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;!function e(t){M.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout((()=>e("")),1e3))}(r),l&&setTimeout((()=>l.focus()))};(0,s.useEffect)((()=>()=>window.clearTimeout(N.current)),[]),St();const L=(0,s.useCallback)((e=>{var t,n;return P.current===(null===(t=R.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,l=t[a].x,u=t[a].y;s>r!=u>r&&n<(l-i)*(r-s)/(u-s)+i&&(o=!o)}return o}(n,t)}(e,null===(n=R.current)||void 0===n?void 0:n.area)}),[]);return(0,s.createElement)(ba,{scope:n,searchRef:M,onItemEnter:(0,s.useCallback)((e=>{L(e)&&e.preventDefault()}),[L]),onItemLeave:(0,s.useCallback)((e=>{var t;L(e)||(null===(t=D.current)||void 0===t||t.focus(),T(null))}),[L]),onTriggerLeave:(0,s.useCallback)((e=>{L(e)&&e.preventDefault()}),[L]),pointerGraceTimerRef:O,onPointerGraceIntentChange:(0,s.useCallback)((e=>{R.current=e}),[])},(0,s.createElement)(F,j,(0,s.createElement)(Pt,{asChild:!0,trapped:o,onMountAutoFocus:_e(a,(e=>{var t;e.preventDefault(),null===(t=D.current)||void 0===t||t.focus()})),onUnmountAutoFocus:i},(0,s.createElement)(xt,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:g},(0,s.createElement)(Jr,l({asChild:!0},_,{dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:_e(f,(e=>{x.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,s.createElement)(Rr,l({role:"menu","aria-orientation":"vertical","data-state":Ga(w.open),"data-radix-menu-content":"",dir:x.dir},E,b,{ref:S,style:{outline:"none",...b.style},onKeyDown:_e(b.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&I(e.key));const o=D.current;if(e.target!==o)return;if(!Go.includes(e.key))return;e.preventDefault();const a=k().filter((e=>!e.disabled)).map((e=>e.ref.current));Ko.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:_e(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),M.current="")})),onPointerMove:_e(e.onPointerMove,ei((e=>{const t=e.target,n=A.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>A.current?"right":"left";P.current=t,A.current=e.clientX}})))})))))))})),Ca=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,s.createElement)(Ae.div,l({role:"group"},r,{ref:t}))})),Ta=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,s.createElement)(Ae.div,l({},r,{ref:t}))})),Da="MenuItem",Sa="menu.itemSelect",Na=(0,s.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=(0,s.useRef)(null),i=da(Da,e.__scopeMenu),u=wa(Da,e.__scopeMenu),d=c(t,a),f=(0,s.useRef)(!1);return(0,s.createElement)(Ma,l({},o,{ref:d,disabled:n,onClick:_e(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Sa,{bubbles:!0,cancelable:!0});e.addEventListener(Sa,(e=>null==r?void 0:r(e)),{once:!0}),Fe(e,t),t.defaultPrevented?f.current=!1:i.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),f.current=!0},onPointerUp:_e(e.onPointerUp,(e=>{var t;f.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:_e(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||Zo.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Ma=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=wa(Da,n),u=sa(n),d=(0,s.useRef)(null),f=c(t,d),[p,m]=(0,s.useState)(!1),[h,v]=(0,s.useState)("");return(0,s.useEffect)((()=>{const e=d.current;var t;e&&v((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[a.children]),(0,s.createElement)(ta.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:h},(0,s.createElement)(eo,l({asChild:!0},u,{focusable:!r}),(0,s.createElement)(Ae.div,l({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:f,onPointerMove:_e(e.onPointerMove,ei((e=>{if(r)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:_e(e.onPointerLeave,ei((e=>i.onItemLeave(e)))),onFocus:_e(e.onFocus,(()=>m(!0))),onBlur:_e(e.onBlur,(()=>m(!1)))}))))})),Oa=(0,s.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,s.createElement)(Ua,{scope:e.__scopeMenu,checked:n},(0,s.createElement)(Na,l({role:"menuitemcheckbox","aria-checked":Xa(n)?"mixed":n},o,{ref:t,"data-state":Ja(n),onSelect:_e(o.onSelect,(()=>null==r?void 0:r(!!Xa(n)||!n)),{checkForDefaultPrevented:!1})})))})),Ra="MenuRadioGroup",[Pa,Aa]=oa(Ra,{value:void 0,onValueChange:()=>{}}),Fa=(0,s.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Te(r);return(0,s.createElement)(Pa,{scope:e.__scopeMenu,value:n,onValueChange:a},(0,s.createElement)(Ca,l({},o,{ref:t})))})),ja="MenuRadioItem",Ia=(0,s.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=Aa(ja,e.__scopeMenu),a=n===o.value;return(0,s.createElement)(Ua,{scope:e.__scopeMenu,checked:a},(0,s.createElement)(Na,l({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Ja(a),onSelect:_e(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),La="MenuItemIndicator",[Ua,Va]=oa(La,{checked:!1}),za=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Va(La,n);return(0,s.createElement)(Fr,{present:r||Xa(a.checked)||!0===a.checked},(0,s.createElement)(Ae.span,l({},o,{ref:t,"data-state":Ja(a.checked)})))})),$a=(0,s.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,s.createElement)(Ae.div,l({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),Wa="MenuSub",[Ha,Ba]=oa(Wa),Ya=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=ua(Wa,t),i=ia(t),[l,u]=(0,s.useState)(null),[c,d]=(0,s.useState)(null),f=Te(o);return(0,s.useEffect)((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),(0,s.createElement)(Mr,i,(0,s.createElement)(la,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d},(0,s.createElement)(Ha,{scope:t,contentId:$t(),triggerId:$t(),trigger:l,onTriggerChange:u},n)))},qa="MenuSubTrigger",Qa=(0,s.forwardRef)(((e,t)=>{const n=ua(qa,e.__scopeMenu),r=da(qa,e.__scopeMenu),o=Ba(qa,e.__scopeMenu),a=wa(qa,e.__scopeMenu),i=(0,s.useRef)(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=a,f={__scopeMenu:e.__scopeMenu},p=(0,s.useCallback)((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return(0,s.useEffect)((()=>p),[p]),(0,s.useEffect)((()=>{const e=c.current;return()=>{window.clearTimeout(e),d(null)}}),[c,d]),(0,s.createElement)(pa,l({asChild:!0},f),(0,s.createElement)(Ma,l({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ga(n.open)},e,{ref:u(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_e(e.onPointerMove,ei((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{n.onOpenChange(!0),p()}),100))}))),onPointerLeave:_e(e.onPointerLeave,ei((e=>{var t;p();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,i="right"===t,s=i?-5:5,l=r[i?"left":"right"],u=r[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:l,y:r.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:_e(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;var i;e.disabled||o&&" "===t.key||Xo[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))})))})),Za="MenuSubContent",Ka=(0,s.forwardRef)(((e,t)=>{const n=va(ya,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ua(ya,e.__scopeMenu),i=da(ya,e.__scopeMenu),u=Ba(Za,e.__scopeMenu),d=(0,s.useRef)(null),f=c(t,d);return(0,s.createElement)(ta.Provider,{scope:e.__scopeMenu},(0,s.createElement)(Fr,{present:r||a.open},(0,s.createElement)(ta.Slot,{scope:e.__scopeMenu},(0,s.createElement)(ka,l({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:f,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:_e(e.onFocusOutside,(e=>{e.target!==u.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:_e(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:_e(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Jo[i.dir].includes(e.key);var r;t&&n&&(a.onOpenChange(!1),null===(r=u.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function Ga(e){return e?"open":"closed"}function Xa(e){return"indeterminate"===e}function Ja(e){return Xa(e)?"indeterminate":e?"checked":"unchecked"}function ei(e){return t=>"mouse"===t.pointerType?e(t):void 0}const ti=fa,ni=pa,ri=ga,oi=xa,ai=Ca,ii=Ta,si=Na,li=Oa,ui=Fa,ci=Ia,di=za,fi=$a,pi=Ya,mi=Qa,hi=Ka,vi="DropdownMenu",[gi,yi]=ke(vi,[aa]),bi=aa(),[wi,xi]=gi(vi),Ei=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,c=bi(t),d=(0,s.useRef)(null),[f=!1,p]=De({prop:o,defaultProp:a,onChange:i});return(0,s.createElement)(wi,{scope:t,triggerId:$t(),triggerRef:d,contentId:$t(),open:f,onOpenChange:p,onOpenToggle:(0,s.useCallback)((()=>p((e=>!e))),[p]),modal:u},(0,s.createElement)(ti,l({},c,{open:f,onOpenChange:p,dir:r,modal:u}),n))},_i="DropdownMenuTrigger",ki=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=xi(_i,n),i=bi(n);return(0,s.createElement)(ni,l({asChild:!0},i),(0,s.createElement)(Ae.button,l({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:u(t,a.triggerRef),onPointerDown:_e(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:_e(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Ci=e=>{const{__scopeDropdownMenu:t,...n}=e,r=bi(t);return(0,s.createElement)(ri,l({},r,n))},Ti="DropdownMenuContent",Di=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xi(Ti,n),a=bi(n),i=(0,s.useRef)(!1);return(0,s.createElement)(oi,l({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:_e(e.onCloseAutoFocus,(e=>{var t;i.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()})),onInteractOutside:_e(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(i.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Si=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(ai,l({},o,r,{ref:t}))})),Ni=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(ii,l({},o,r,{ref:t}))})),Mi=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(si,l({},o,r,{ref:t}))})),Oi=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(li,l({},o,r,{ref:t}))})),Ri=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(ui,l({},o,r,{ref:t}))})),Pi=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(ci,l({},o,r,{ref:t}))})),Ai=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(di,l({},o,r,{ref:t}))})),Fi=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(fi,l({},o,r,{ref:t}))})),ji=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(mi,l({},o,r,{ref:t}))})),Ii=(0,s.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=bi(n);return(0,s.createElement)(hi,l({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Li=Ei,Ui=ki,Vi=Ci,zi=Di,$i=Si,Wi=Ni,Hi=Mi,Bi=Oi,Yi=Ri,qi=Pi,Qi=Ai,Zi=Fi,Ki=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=bi(t),[u=!1,c]=De({prop:r,defaultProp:a,onChange:o});return(0,s.createElement)(pi,l({},i,{open:u,onOpenChange:c}),n)},Gi=ji,Xi=Ii;s=a("8dQZc");var Ji={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const es=(e,t)=>{const n=(0,s.forwardRef)((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,children:i,...l},u)=>{return(0,s.createElement)("svg",{ref:u,...Ji,width:r,height:r,stroke:n,strokeWidth:a?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...l},[...t.map((([e,t])=>(0,s.createElement)(e,t))),...(Array.isArray(i)?i:[i])||[]]);var c}));return n.displayName=`${e}`,n},ts=es("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ns=es("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),rs=es("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),os=Li,as=Ui,is=$i,ss=Vi,ls=Ki,us=Yi,cs=s.forwardRef((({className:e,inset:t,children:n,...r},o)=>(0,i.jsxs)(Gi,{ref:o,className:ve("ui__dropdown-menu-sub-trigger","flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,(0,i.jsx)(ns,{className:"ml-auto h-4 w-4"})]})));cs.displayName=Gi.displayName;const ds=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Xi,{ref:n,className:ve("ui__dropdown-menu-sub-content","z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));ds.displayName=Xi.displayName;const fs=s.forwardRef((({className:e,sideOffset:t=4,...n},r)=>(0,i.jsx)(Vi,{children:(0,i.jsx)(zi,{ref:r,sideOffset:t,className:ve("ui__dropdown-menu-content","z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})})));fs.displayName=zi.displayName;const ps=s.forwardRef((({className:e,inset:t,...n},r)=>(0,i.jsx)(Hi,{ref:r,className:ve("ui__dropdown-menu-item","relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));ps.displayName=Hi.displayName;const ms=s.forwardRef((({className:e,children:t,checked:n,...r},o)=>(0,i.jsxs)(Bi,{ref:o,className:ve("ui__dropdown-menu-checkbox-item","relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(Qi,{children:(0,i.jsx)(ts,{className:"h-4 w-4"})})}),t]})));ms.displayName=Bi.displayName;const hs=s.forwardRef((({className:e,children:t,...n},r)=>(0,i.jsxs)(qi,{ref:r,className:ve("ui__dropdown-menu-radio-item","relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(Qi,{children:(0,i.jsx)(rs,{className:"h-2 w-2 fill-current"})})}),t]})));hs.displayName=qi.displayName;const vs=s.forwardRef((({className:e,inset:t,...n},r)=>(0,i.jsx)(Wi,{ref:r,className:ve("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n})));vs.displayName=Wi.displayName;const gs=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Zi,{ref:n,className:ve("-mx-1 my-1 h-px bg-muted",e),...t})));gs.displayName=Zi.displayName;const ys=({className:e,...t})=>(0,i.jsx)("span",{className:ve("ml-auto text-xs opacity-60",e),...t});ys.displayName="DropdownMenuShortcut";s=a("8dQZc"),s=a("8dQZc");const bs=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>(0,s.createElement)(Ae.span,l({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),ws=bs,xs="ToastProvider",[Es,_s,ks]=je("Toast"),[Cs,Ts]=ke("Toast",[ks]),[Ds,Ss]=Cs(xs),Ns=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[l,u]=(0,s.useState)(null),[c,d]=(0,s.useState)(0),f=(0,s.useRef)(!1),p=(0,s.useRef)(!1);return(0,s.createElement)(Es.Provider,{scope:t},(0,s.createElement)(Ds,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:(0,s.useCallback)((()=>d((e=>e+1))),[]),onToastRemove:(0,s.useCallback)((()=>d((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p},i))};Ns.propTypes={label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${xs}\`. Expected non-empty \`string\`.`)}return null}};const Ms="ToastViewport",Os=["F8"],Rs="toast.viewportPause",Ps="toast.viewportResume",As=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,hotkey:r=Os,label:o="Notifications ({hotkey})",...a}=e,i=Ss(Ms,n),u=_s(n),d=(0,s.useRef)(null),f=(0,s.useRef)(null),p=(0,s.useRef)(null),m=(0,s.useRef)(null),h=c(t,m,i.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;(0,s.useEffect)((()=>{const e=e=>{var t;r.every((t=>e[t]||e.code===t))&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),(0,s.useEffect)((()=>{const e=d.current,t=m.current;if(g&&e&&t){const n=()=>{if(!i.isClosePausedRef.current){const e=new CustomEvent(Rs);t.dispatchEvent(e),i.isClosePausedRef.current=!0}},r=()=>{if(i.isClosePausedRef.current){const e=new CustomEvent(Ps);t.dispatchEvent(e),i.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[g,i.isClosePausedRef]);const y=(0,s.useCallback)((({tabbingDirection:e})=>{const t=u().map((t=>{const n=t.ref.current,r=[n,...Js(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[u]);return(0,s.useEffect)((()=>{const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,i=t.shiftKey;var r;if(t.target===e&&i)return void(null===(r=f.current)||void 0===r||r.focus());const s=y({tabbingDirection:i?"backwards":"forwards"}),l=s.findIndex((e=>e===n));var o,a;if(el(s.slice(l+1)))t.preventDefault();else i?null===(o=f.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[u,y]),(0,s.createElement)(Tt,{ref:d,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"}},g&&(0,s.createElement)(js,{ref:f,onFocusFromOutsideViewport:()=>{el(y({tabbingDirection:"forwards"}))}}),(0,s.createElement)(Es.Slot,{scope:n},(0,s.createElement)(Ae.ol,l({tabIndex:-1},a,{ref:h}))),g&&(0,s.createElement)(js,{ref:p,onFocusFromOutsideViewport:()=>{el(y({tabbingDirection:"backwards"}))}}))})),Fs="ToastFocusProxy",js=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Ss(Fs,n);return(0,s.createElement)(bs,l({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=a.viewport)&&void 0!==t&&t.contains(n))&&r()}}))})),Is="Toast",Ls=(0,s.forwardRef)(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[u=!0,c]=De({prop:r,defaultProp:o,onChange:a});return(0,s.createElement)(Fr,{present:n||u},(0,s.createElement)(zs,l({open:u},i,{ref:t,onClose:()=>c(!1),onPause:Te(e.onPause),onResume:Te(e.onResume),onSwipeStart:_e(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:_e(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:_e(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:_e(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)}))})))})),[Us,Vs]=Cs(Is,{onClose(){}}),zs=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:h,onSwipeEnd:v,...g}=e,y=Ss(Is,n),[b,w]=(0,s.useState)(null),x=c(t,(e=>w(e))),E=(0,s.useRef)(null),_=(0,s.useRef)(null),k=o||y.duration,C=(0,s.useRef)(0),T=(0,s.useRef)(k),D=(0,s.useRef)(0),{onToastAdd:S,onToastRemove:N}=y,M=Te((()=>{var e;(null==b?void 0:b.contains(document.activeElement))&&(null===(e=y.viewport)||void 0===e||e.focus()),i()})),O=(0,s.useCallback)((e=>{e&&e!==1/0&&(window.clearTimeout(D.current),C.current=(new Date).getTime(),D.current=window.setTimeout(M,e))}),[M]);(0,s.useEffect)((()=>{const e=y.viewport;if(e){const t=()=>{O(T.current),null==f||f()},n=()=>{const e=(new Date).getTime()-C.current;T.current=T.current-e,window.clearTimeout(D.current),null==d||d()};return e.addEventListener(Rs,n),e.addEventListener(Ps,t),()=>{e.removeEventListener(Rs,n),e.removeEventListener(Ps,t)}}}),[y.viewport,k,d,f,O]),(0,s.useEffect)((()=>{a&&!y.isClosePausedRef.current&&O(k)}),[a,k,y.isClosePausedRef,O]),(0,s.useEffect)((()=>(S(),()=>N())),[S,N]);const R=(0,s.useMemo)((()=>b?Ks(b):null),[b]);return y.viewport?(0,s.createElement)(s.Fragment,null,R&&(0,s.createElement)($s,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0},R),(0,s.createElement)(Us,{scope:n,onClose:M},(0,Pe.createPortal)((0,s.createElement)(Es.ItemSlot,{scope:n},(0,s.createElement)(Ct,{asChild:!0,onEscapeKeyDown:_e(u,(()=>{y.isFocusedToastEscapeKeyDownRef.current||M(),y.isFocusedToastEscapeKeyDownRef.current=!1}))},(0,s.createElement)(Ae.li,l({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":y.swipeDirection},g,{ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:_e(e.onKeyDown,(e=>{"Escape"===e.key&&(null==u||u(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,M()))})),onPointerDown:_e(e.onPointerDown,(e=>{0===e.button&&(E.current={x:e.clientX,y:e.clientY})})),onPointerMove:_e(e.onPointerMove,(e=>{if(!E.current)return;const t=e.clientX-E.current.x,n=e.clientY-E.current.y,r=Boolean(_.current),o=["left","right"].includes(y.swipeDirection),a=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,s=o?0:a(0,n),l="touch"===e.pointerType?10:2,u={x:i,y:s},c={originalEvent:e,delta:u};r?(_.current=u,Gs("toast.swipeMove",m,c,{discrete:!1})):Xs(u,y.swipeDirection,l)?(_.current=u,Gs("toast.swipeStart",p,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(E.current=null)})),onPointerUp:_e(e.onPointerUp,(e=>{const t=_.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),_.current=null,E.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Xs(t,y.swipeDirection,y.swipeThreshold)?Gs("toast.swipeEnd",v,r,{discrete:!0}):Gs("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),y.viewport))):null}));zs.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${Is}\`. Expected \`foreground | background\`.`)}return null}};const $s=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ss(Is,t),[a,i]=(0,s.useState)(!1),[l,u]=(0,s.useState)(!1);return function(e=(()=>{})){const t=Te(e);Oe((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>i(!0))),(0,s.useEffect)((()=>{const e=window.setTimeout((()=>u(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:(0,s.createElement)(Ar,{asChild:!0},(0,s.createElement)(bs,r,a&&(0,s.createElement)(s.Fragment,null,o.label," ",n)))},Ws=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,s.createElement)(Ae.div,l({},r,{ref:t}))})),Hs=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,s.createElement)(Ae.div,l({},r,{ref:t}))})),Bs="ToastAction",Ys=(0,s.forwardRef)(((e,t)=>{const{altText:n,...r}=e;return n?(0,s.createElement)(Zs,{altText:n,asChild:!0},(0,s.createElement)(Qs,l({},r,{ref:t}))):null}));Ys.propTypes={altText:e=>e.altText?null:new Error(`Missing prop \`altText\` expected on \`${Bs}\``)};const qs="ToastClose",Qs=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,...r}=e,o=Vs(qs,n);return(0,s.createElement)(Zs,{asChild:!0},(0,s.createElement)(Ae.button,l({type:"button"},r,{ref:t,onClick:_e(e.onClick,o.onClose)})))})),Zs=(0,s.forwardRef)(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return(0,s.createElement)(Ae.div,l({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))}));function Ks(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Ks(e))}})),t}function Gs(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fe(o,a):o.dispatchEvent(a)}const Xs=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function Js(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function el(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const tl=Ns,nl=As,rl=Ls,ol=Ws,al=Hs,il=Ys,sl=Qs,ll=es("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ul=tl,cl=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(nl,{ref:n,className:ve("fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse p-4","sm:bottom-0 sm:!top-auto sm:right-0 sm:flex-col md:max-w-[420px]",e),...t})));cl.displayName=nl.displayName;const dl=w("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",info:"border bg-background text-foreground",success:"border bg-background text-foreground",warning:"border bg-background text-foreground",error:"border bg-background text-foreground"}},defaultVariants:{variant:"default"}}),fl=s.forwardRef((({className:e,variant:t,...n},r)=>(0,i.jsx)(rl,{ref:r,className:ve(dl({variant:t}),e),...n})));fl.displayName=rl.displayName;s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(il,{ref:n,className:ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}))).displayName=il.displayName;const pl=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(sl,{ref:n,className:ve("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,i.jsx)(ll,{className:"h-4 w-4"})})));pl.displayName=sl.displayName;const ml=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(ol,{ref:n,className:ve("text-sm font-semibold",e),...t})));ml.displayName=ol.displayName;const hl=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(al,{ref:n,className:ve("text-sm opacity-90",e),...t})));hl.displayName=al.displayName;s=a("8dQZc");let vl=0;function gl(){return vl=(vl+1)%Number.MAX_VALUE,vl.toString()}const yl=new Map,bl=e=>{if(yl.has(e))return;const t=setTimeout((()=>{yl.delete(e),_l({type:"REMOVE_TOAST",toastId:e})}),2e3);yl.set(e,t)},wl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,16)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case"DISMISS_TOAST":{const{toastId:n}=t;if(n){const t=e.toasts.find((e=>e.id==n));bl(n),t?.onDismiss?.(n)}else e.toasts.forEach((e=>{bl(e.id),e?.onDismiss?.(e.id)}));const r=e.toasts.map((e=>e.id==n||null==n?{...e,open:!1}:e));return{...e,toasts:r}}case"REMOVE_TOAST":return null==t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))}}},xl=[];let El={toasts:[]};function _l(e){El=wl(El,e),xl.forEach((e=>{e(El)}))}function kl({id:e,...t}){e=e||gl();const n=()=>{_l({type:"DISMISS_TOAST",toastId:e})},r=El.toasts?.some((t=>t.id==e));return _l({type:r?"UPDATE_TOAST":"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:e=>{e||n()}}}),{id:e,dismiss:n,update:t=>_l({type:"UPDATE_TOAST",toast:{...t,id:e}})}}function Cl(){const[e,t]=s.useState(El);return s.useEffect((()=>(xl.push(t),()=>{const e=xl.indexOf(t);e>-1&&xl.splice(e,1)})),[e]),{...e,toast:kl,dismiss:e=>_l({type:"DISMISS_TOAST",toastId:e}),update:(e,t)=>_l({type:"UPDATE_TOAST",toast:{...t,id:e}})}}const Tl=es("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Dl=es("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Sl=es("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Nl=es("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);s=a("8dQZc");const Ml=w("ui__alert relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ol=s.forwardRef((({className:e,variant:t,...n},r)=>(0,i.jsx)("div",{ref:r,role:"alert",className:ve(Ml({variant:t}),e),...n})));Ol.displayName="Alert";const Rl=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("h5",{ref:n,className:ve("ui__alert-title mb-1 font-medium leading-none tracking-tight",e),...t})));Rl.displayName="AlertTitle";const Pl=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("div",{ref:n,className:ve("ui__alert-description text-sm [&_p]:leading-relaxed",e),...t})));Pl.displayName="AlertDescription",a("8dQZc");const Al=w("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-default",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});s=a("8dQZc"),s=a("8dQZc");var Fl=e=>"checkbox"===e.type,jl=e=>e instanceof Date,Il=e=>null==e;const Ll=e=>"object"==typeof e;var Ul=e=>!Il(e)&&!Array.isArray(e)&&Ll(e)&&!jl(e),Vl=e=>Ul(e)&&e.target?Fl(e.target)?e.target.checked:e.target.value:e,zl=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),$l=e=>{const t=e.constructor&&e.constructor.prototype;return Ul(t)&&t.hasOwnProperty("isPrototypeOf")},Wl="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Hl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Wl&&(e instanceof Blob||e instanceof FileList)||!n&&!Ul(e))return e;if(t=n?[]:{},n||$l(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Hl(e[n]));else t=e}return t}var Bl=e=>Array.isArray(e)?e.filter(Boolean):[],Yl=e=>void 0===e,ql=(e,t,n)=>{if(!t||!Ul(e))return n;const r=Bl(t.split(/[,[\].]+?/)).reduce(((e,t)=>Il(e)?e:e[t]),e);return Yl(r)||r===e?Yl(e[t])?n:e[t]:r},Ql=e=>"boolean"==typeof e;const Zl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Gl="max",Xl="min",Jl="maxLength",eu="minLength",tu="pattern",nu="required",ru="validate",ou=t(s).createContext(null),au=()=>t(s).useContext(ou);var iu=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Kl.all&&(t._proxyFormState[o]=!r||Kl.all),n&&(n[o]=!0),e[o]}});return o},su=e=>Ul(e)&&!Object.keys(e).length,lu=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return su(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||Kl.all)))},uu=e=>Array.isArray(e)?e:[e],cu=(e,t,n)=>!e||!t||e===t||uu(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function du(e){const n=t(s).useRef(e);n.current=e,t(s).useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var fu=e=>"string"==typeof e,pu=(e,t,n,r,o)=>fu(e)?(r&&t.watch.add(e),ql(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),ql(n,e)))):(r&&(t.watchAll=!0),n);var mu=e=>/^\w*$/.test(e),hu=e=>Bl(e.replace(/["|']|\]/g,"").split(/\.|\[/));function vu(e,t,n){let r=-1;const o=mu(t)?[t]:hu(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=Ul(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}function gu(e){const n=au(),{name:r,disabled:o,control:a=n.control,shouldUnregister:i}=e,l=zl(a._names.array,r),u=function(e){const n=au(),{control:r=n.control,name:o,defaultValue:a,disabled:i,exact:l}=e||{},u=t(s).useRef(o);u.current=o,du({disabled:i,subject:r._subjects.values,next:e=>{cu(u.current,e.name,l)&&d(Hl(pu(u.current,r._names,e.values||r._formValues,!1,a)))}});const[c,d]=t(s).useState(r._getWatch(o,a));return t(s).useEffect((()=>r._removeUnmounted())),c}({control:a,name:r,defaultValue:ql(a._formValues,r,ql(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){const n=au(),{control:r=n.control,disabled:o,name:a,exact:i}=e||{},[l,u]=t(s).useState(r._formState),c=t(s).useRef(!0),d=t(s).useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=t(s).useRef(a);return f.current=a,du({disabled:o,next:e=>c.current&&cu(f.current,e.name,i)&&lu(e,d.current,r._updateFormState)&&u({...r._formState,...e}),subject:r._subjects.state}),t(s).useEffect((()=>(c.current=!0,d.current.isValid&&r._updateValid(!0),()=>{c.current=!1})),[r]),iu(l,r,d.current,!1)}({control:a,name:r}),d=t(s).useRef(a.register(r,{...e.rules,value:u}));return d.current=a.register(r,e.rules),t(s).useEffect((()=>{const e=a._options.shouldUnregister||i,t=(e,t)=>{const n=ql(a._fields,e);n&&(n._f.mount=t)};if(t(r,!0),e){const e=Hl(ql(a._options.defaultValues,r));vu(a._defaultValues,r,e),Yl(ql(a._formValues,r))&&vu(a._formValues,r,e)}return()=>{(l?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}}),[r,a,l,i]),t(s).useEffect((()=>{ql(a._fields,r)&&a._updateDisabledField({disabled:o,fields:a._fields,name:r,value:ql(a._fields,r)._f.value})}),[o,r,a]),{field:{name:r,value:u,...Ql(o)||Ql(c.disabled)?{disabled:c.disabled||o}:{},onChange:t(s).useCallback((e=>d.current.onChange({target:{value:Vl(e),name:r},type:Zl.CHANGE})),[r]),onBlur:t(s).useCallback((()=>d.current.onBlur({target:{value:ql(a._formValues,r),name:r},type:Zl.BLUR})),[r,a]),ref:e=>{const t=ql(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ql(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!ql(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ql(c.touchedFields,r)},error:{enumerable:!0,get:()=>ql(c.errors,r)}})}}const yu=e=>e.render(gu(e));var bu=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},wu=e=>({isOnSubmit:!e||e===Kl.onSubmit,isOnBlur:e===Kl.onBlur,isOnChange:e===Kl.onChange,isOnAll:e===Kl.all,isOnTouch:e===Kl.onTouched}),xu=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Eu=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=ql(e,o);if(n){const{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break}else Ul(a)&&Eu(a,t)}}};var _u=(e,t,n)=>{const r=Bl(ql(e,n));return vu(r,"root",t[n]),vu(e,n,r),e},ku=e=>"file"===e.type,Cu=e=>"function"==typeof e,Tu=e=>{if(!Wl)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Du=e=>fu(e),Su=e=>"radio"===e.type,Nu=e=>e instanceof RegExp;const Mu={value:!1,isValid:!1},Ou={value:!0,isValid:!0};var Ru=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Yl(e[0].attributes.value)?Yl(e[0].value)||""===e[0].value?Ou:{value:e[0].value,isValid:!0}:Ou:Mu}return Mu};const Pu={isValid:!1,value:null};var Au=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Pu):Pu;function Fu(e,t,n="validate"){if(Du(e)||Array.isArray(e)&&e.every(Du)||Ql(e)&&!e)return{type:n,message:Du(e)?e:"",ref:t}}var ju=e=>Ul(e)&&!Nu(e)?e:{value:e,message:""},Iu=async(e,t,n,r,o)=>{const{ref:a,refs:i,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:f,validate:p,name:m,valueAsNumber:h,mount:v,disabled:g}=e._f,y=ql(t,m);if(!v||g)return{};const b=i?i[0]:a,w=e=>{r&&b.reportValidity&&(b.setCustomValidity(Ql(e)?"":e||""),b.reportValidity())},x={},E=Su(a),_=Fl(a),k=E||_,C=(h||ku(a))&&Yl(a.value)&&Yl(y)||Tu(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,T=bu.bind(null,m,n,x),D=(e,t,n,r=Jl,o=eu)=>{const i=e?t:n;x[m]={type:e?r:o,message:i,ref:a,...T(e?r:o,i)}};if(o?!Array.isArray(y)||!y.length:s&&(!k&&(C||Il(y))||Ql(y)&&!y||_&&!Ru(i).isValid||E&&!Au(i).isValid)){const{value:e,message:t}=Du(s)?{value:!!s,message:s}:ju(s);if(e&&(x[m]={type:nu,message:t,ref:b,...T(nu,t)},!n))return w(t),x}if(!(C||Il(c)&&Il(d))){let e,t;const r=ju(d),o=ju(c);if(Il(y)||isNaN(y)){const n=a.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;fu(r.value)&&y&&(e=s?i(y)>i(r.value):l?y>r.value:n>new Date(r.value)),fu(o.value)&&y&&(t=s?i(y)<i(o.value):l?y<o.value:n<new Date(o.value))}else{const n=a.valueAsNumber||(y?+y:y);Il(r.value)||(e=n>r.value),Il(o.value)||(t=n<o.value)}if((e||t)&&(D(!!e,r.message,o.message,Gl,Xl),!n))return w(x[m].message),x}if((l||u)&&!C&&(fu(y)||o&&Array.isArray(y))){const e=ju(l),t=ju(u),r=!Il(e.value)&&y.length>+e.value,o=!Il(t.value)&&y.length<+t.value;if((r||o)&&(D(r,e.message,t.message),!n))return w(x[m].message),x}if(f&&!C&&fu(y)){const{value:e,message:t}=ju(f);if(Nu(e)&&!y.match(e)&&(x[m]={type:tu,message:t,ref:a,...T(tu,t)},!n))return w(t),x}if(p)if(Cu(p)){const e=Fu(await p(y,t),b);if(e&&(x[m]={...e,...T(ru,e.message)},!n))return w(e.message),x}else if(Ul(p)){let e={};for(const r in p){if(!su(e)&&!n)break;const o=Fu(await p[r](y,t),b,r);o&&(e={...o,...T(r,o.message)},w(o.message),n&&(x[m]=e))}if(!su(e)&&(x[m]={ref:b,...e},!n))return x}return w(!0),x};function Lu(e,t){const n=Array.isArray(t)?t:mu(t)?[t]:hu(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Yl(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,a=n[o];return r&&delete r[a],0!==o&&(Ul(r)&&su(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Yl(e[t]))return!1;return!0}(r))&&Lu(e,n.slice(0,-1)),e}function Uu(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var Vu=e=>Il(e)||!Ll(e);function zu(e,t){if(Vu(e)||Vu(t))return e===t;if(jl(e)&&jl(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(jl(n)&&jl(e)||Ul(n)&&Ul(e)||Array.isArray(n)&&Array.isArray(e)?!zu(n,e):n!==e)return!1}}return!0}var $u=e=>"select-multiple"===e.type,Wu=e=>Su(e)||Fl(e),Hu=e=>Tu(e)&&e.isConnected,Bu=e=>{for(const t in e)if(Cu(e[t]))return!0;return!1};function Yu(e,t={}){const n=Array.isArray(e);if(Ul(e)||n)for(const n in e)Array.isArray(e[n])||Ul(e[n])&&!Bu(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Yu(e[n],t[n])):Il(e[n])||(t[n]=!0);return t}function qu(e,t,n){const r=Array.isArray(e);if(Ul(e)||r)for(const r in e)Array.isArray(e[r])||Ul(e[r])&&!Bu(e[r])?Yl(t)||Vu(n[r])?n[r]=Array.isArray(e[r])?Yu(e[r],[]):{...Yu(e[r])}:qu(e[r],Il(t)?{}:t[r],n[r]):n[r]=!zu(e[r],t[r]);return n}var Qu=(e,t)=>qu(e,t,Yu(t)),Zu=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Yl(e)?e:t?""===e?NaN:e?+e:e:n&&fu(e)?new Date(e):r?r(e):e;function Ku(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return ku(t)?t.files:Su(t)?Au(e.refs).value:$u(t)?[...t.selectedOptions].map((({value:e})=>e)):Fl(t)?Ru(e.refs).value:Zu(Yl(t.value)?e.ref.value:t.value,e)}var Gu=(e,t,n,r)=>{const o={};for(const n of e){const e=ql(t,n);e&&vu(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Xu=e=>Yl(e)?e:Nu(e)?e.source:Ul(e)?Nu(e.value)?e.value.source:e.value:e,Ju=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,n){const r=ql(e,n);if(r||mu(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),a=ql(t,r),i=ql(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};o.pop()}return{name:n}}var tc=(e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e),nc=(e,t)=>!Bl(ql(e,t)).length&&Lu(e,t);const rc={mode:Kl.onSubmit,reValidateMode:Kl.onChange,shouldFocusError:!0};function oc(e={},t){let n,r={...rc,...e},o={submitCount:0,isDirty:!1,isLoading:Cu(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},i=(Ul(r.defaultValues)||Ul(r.values))&&Hl(r.defaultValues||r.values)||{},s=r.shouldUnregister?{}:Hl(i),l={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Uu(),array:Uu(),state:Uu()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,m=wu(r.mode),h=wu(r.reValidateMode),v=r.criteriaMode===Kl.all,g=async e=>{if(d.isValid||e){const e=r.resolver?su((await E()).errors):await _(a,!0);e!==o.isValid&&f.state.next({isValid:e})}},y=e=>d.isValidating&&f.state.next({isValidating:e}),b=(e,t,n,r)=>{const o=ql(a,e);if(o){const a=ql(s,e,Yl(n)?ql(i,e):n);Yl(a)||r&&r.defaultChecked||t?vu(s,e,t?a:Ku(o._f)):T(e,a),l.mount&&g()}},w=(e,t,n,r,a)=>{let s=!1,l=!1;const u={name:e};if(!n||r){d.isDirty&&(l=o.isDirty,o.isDirty=u.isDirty=k(),s=l!==u.isDirty);const n=zu(ql(i,e),t);l=ql(o.dirtyFields,e),n?Lu(o.dirtyFields,e):vu(o.dirtyFields,e,!0),u.dirtyFields=o.dirtyFields,s=s||d.dirtyFields&&l!==!n}if(n){const t=ql(o.touchedFields,e);t||(vu(o.touchedFields,e,n),u.touchedFields=o.touchedFields,s=s||d.touchedFields&&t!==n)}return s&&a&&f.state.next(u),s?u:{}},x=(t,r,a,i)=>{const s=ql(o.errors,t),l=d.isValid&&Ql(r)&&o.isValid!==r;var u;if(e.delayError&&a?(u=()=>((e,t)=>{vu(o.errors,e,t),f.state.next({errors:o.errors})})(t,a),n=e=>{clearTimeout(c),c=setTimeout(u,e)},n(e.delayError)):(clearTimeout(c),n=null,a?vu(o.errors,t,a):Lu(o.errors,t)),(a?!zu(s,a):s)||!su(i)||l){const e={...i,...l&&Ql(r)?{isValid:r}:{},errors:o.errors,name:t};o={...o,...e},f.state.next(e)}y(!1)},E=async e=>r.resolver(s,r.context,Gu(e||u.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),_=async(e,t,n={valid:!0})=>{for(const a in e){const i=e[a];if(i){const{_f:e,...a}=i;if(e){const a=u.array.has(e.name),l=await Iu(i,s,v,r.shouldUseNativeValidation&&!t,a);if(l[e.name]&&(n.valid=!1,t))break;!t&&(ql(l,e.name)?a?_u(o.errors,l,e.name):vu(o.errors,e.name,l[e.name]):Lu(o.errors,e.name))}a&&await _(a,t,n)}}return n.valid},k=(e,t)=>(e&&t&&vu(s,e,t),!zu(R(),i)),C=(e,t,n)=>pu(e,u,{...l.mount?s:Yl(t)?i:fu(e)?{[e]:t}:t},n,t),T=(e,t,n={})=>{const r=ql(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&vu(s,e,Zu(t,n)),o=Tu(n.ref)&&Il(t)?"":t,$u(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?Fl(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):ku(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||f.values.next({name:e,values:{...s}})))}(n.shouldDirty||n.shouldTouch)&&w(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&O(e)},D=(e,t,n)=>{for(const r in t){const o=t[r],i=`${e}.${r}`,s=ql(a,i);!u.array.has(e)&&Vu(o)&&(!s||s._f)||jl(o)?T(i,o,n):D(i,o,n)}},S=(e,n,r={})=>{const c=ql(a,e),p=u.array.has(e),m=Hl(n);vu(s,e,m),p?(f.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&r.shouldDirty&&f.state.next({name:e,dirtyFields:Qu(i,s),isDirty:k(e,m)})):!c||c._f||Il(m)?T(e,m,r):D(e,m,r),xu(e,u)&&f.state.next({...o}),f.values.next({name:e,values:{...s}}),!l.mount&&t()},N=async e=>{const t=e.target;let i=t.name,l=!0;const c=ql(a,i),p=e=>{l=Number.isNaN(e)||e===ql(s,i,e)};if(c){let b,k;const C=t.type?Ku(c._f):Vl(e),T=e.type===Zl.BLUR||e.type===Zl.FOCUS_OUT,D=!Ju(c._f)&&!r.resolver&&!ql(o.errors,i)&&!c._f.deps||tc(T,ql(o.touchedFields,i),o.isSubmitted,h,m),S=xu(i,u,T);vu(s,i,C),T?(c._f.onBlur&&c._f.onBlur(e),n&&n(0)):c._f.onChange&&c._f.onChange(e);const N=w(i,C,T,!1),M=!su(N)||S;if(!T&&f.values.next({name:i,type:e.type,values:{...s}}),D)return d.isValid&&g(),M&&f.state.next({name:i,...S?{}:N});if(!T&&S&&f.state.next({...o}),y(!0),r.resolver){const{errors:e}=await E([i]);if(p(C),l){const t=ec(o.errors,a,i),n=ec(e,a,t.name||i);b=n.error,i=n.name,k=su(e)}}else b=(await Iu(c,s,v,r.shouldUseNativeValidation))[i],p(C),l&&(b?k=!1:d.isValid&&(k=await _(a,!0)));l&&(c._f.deps&&O(c._f.deps),x(i,k,b,N))}},M=(e,t)=>{if(ql(o.errors,t)&&e.focus)return e.focus(),1},O=async(e,t={})=>{let n,i;const s=uu(e);if(y(!0),r.resolver){const t=await(async e=>{const{errors:t}=await E(e);if(e)for(const n of e){const e=ql(t,n);e?vu(o.errors,n,e):Lu(o.errors,n)}else o.errors=t;return t})(Yl(e)?e:s);n=su(t),i=e?!s.some((e=>ql(t,e))):n}else e?(i=(await Promise.all(s.map((async e=>{const t=ql(a,e);return await _(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||o.isValid)&&g()):i=n=await _(a);return f.state.next({...!fu(e)||d.isValid&&n!==o.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!i&&Eu(a,M,e?s:u.mount),i},R=e=>{const t={...i,...l.mount?s:{}};return Yl(e)?t:fu(e)?ql(t,e):e.map((e=>ql(t,e)))},P=(e,t)=>({invalid:!!ql((t||o).errors,e),isDirty:!!ql((t||o).dirtyFields,e),isTouched:!!ql((t||o).touchedFields,e),error:ql((t||o).errors,e)}),A=(e,t,n)=>{const r=(ql(a,e,{_f:{}})._f||{}).ref;vu(o.errors,e,{...t,ref:r}),f.state.next({name:e,errors:o.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},F=(e,t={})=>{for(const n of e?uu(e):u.mount)u.mount.delete(n),u.array.delete(n),t.keepValue||(Lu(a,n),Lu(s,n)),!t.keepError&&Lu(o.errors,n),!t.keepDirty&&Lu(o.dirtyFields,n),!t.keepTouched&&Lu(o.touchedFields,n),!r.shouldUnregister&&!t.keepDefaultValue&&Lu(i,n);f.values.next({values:{...s}}),f.state.next({...o,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&g()},j=({disabled:e,name:t,field:n,fields:r,value:o})=>{if(Ql(e)){const a=e?void 0:Yl(o)?Ku(n?n._f:ql(r,t)._f):o;vu(s,t,a),w(t,a,!1,!1,!0)}},I=(e,t={})=>{let n=ql(a,e);const o=Ql(t.disabled);return vu(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),u.mount.add(e),n?j({field:n,disabled:t.disabled,name:e}):b(e,!0,t.value),{...o?{disabled:t.disabled}:{},...r.progressive?{required:!!t.required,min:Xu(t.min),max:Xu(t.max),minLength:Xu(t.minLength),maxLength:Xu(t.maxLength),pattern:Xu(t.pattern)}:{},name:e,onChange:N,onBlur:N,ref:o=>{if(o){I(e,t),n=ql(a,e);const r=Yl(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=Wu(r),l=n._f.refs||[];if(s?l.find((e=>e===r)):r===n._f.ref)return;vu(a,e,{_f:{...n._f,...s?{refs:[...l.filter(Hu),r,...Array.isArray(ql(i,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),b(e,!1,void 0,r)}else n=ql(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!zl(u.array,e)||!l.action)&&u.unMount.add(e)}}},L=()=>r.shouldFocusError&&Eu(a,M,u.mount),U=(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=Hl(s);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await E();o.errors=e,i=t}else await _(a);Lu(o.errors,"root"),su(o.errors)?(f.state.next({errors:{}}),await e(i,n)):(t&&await t({...o.errors},n),L(),setTimeout(L)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:su(o.errors),submitCount:o.submitCount+1,errors:o.errors})},V=(n,r={})=>{const c=n?Hl(n):i,m=Hl(c),h=n&&!su(n)?m:i;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues||p)for(const e of u.mount)ql(o.dirtyFields,e)?vu(h,e,ql(s,e)):S(e,ql(h,e));else{if(Wl&&Yl(n))for(const e of u.mount){const t=ql(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Tu(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}s=e.shouldUnregister?r.keepDefaultValues?Hl(i):{}:Hl(h),f.array.next({values:{...h}}),f.values.next({values:{...h}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!d.isValid||!!r.keepIsValid,l.watch=!!e.shouldUnregister,f.state.next({submitCount:r.keepSubmitCount?o.submitCount:0,isDirty:r.keepDirty?o.isDirty:!(!r.keepDefaultValues||zu(n,i)),isSubmitted:!!r.keepIsSubmitted&&o.isSubmitted,dirtyFields:r.keepDirtyValues?o.dirtyFields:r.keepDefaultValues&&n?Qu(i,n):{},touchedFields:r.keepTouched?o.touchedFields:{},errors:r.keepErrors?o.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},z=(e,t)=>V(Cu(e)?e(s):e,t);return{control:{register:I,unregister:F,getFieldState:P,handleSubmit:U,setError:A,_executeSchema:E,_getWatch:C,_getDirty:k,_updateValid:g,_removeUnmounted:()=>{for(const e of u.unMount){const t=ql(a,e);t&&(t._f.refs?t._f.refs.every((e=>!Hu(e))):!Hu(t._f.ref))&&F(e)}u.unMount=new Set},_updateFieldArray:(e,t=[],n,r,u=!0,c=!0)=>{if(r&&n){if(l.action=!0,c&&Array.isArray(ql(a,e))){const t=n(ql(a,e),r.argA,r.argB);u&&vu(a,e,t)}if(c&&Array.isArray(ql(o.errors,e))){const t=n(ql(o.errors,e),r.argA,r.argB);u&&vu(o.errors,e,t),nc(o.errors,e)}if(d.touchedFields&&c&&Array.isArray(ql(o.touchedFields,e))){const t=n(ql(o.touchedFields,e),r.argA,r.argB);u&&vu(o.touchedFields,e,t)}d.dirtyFields&&(o.dirtyFields=Qu(i,s)),f.state.next({name:e,isDirty:k(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else vu(s,e,t)},_updateDisabledField:j,_getFieldArray:t=>Bl(ql(l.mount?s:i,t,e.shouldUnregister?ql(i,t,[]):[])),_reset:V,_resetDefaultValues:()=>Cu(r.defaultValues)&&r.defaultValues().then((e=>{z(e,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:e=>{o={...o,...e}},_disableForm:e=>{Ql(e)&&(f.state.next({disabled:e}),Eu(a,(t=>{t.disabled=e}),0,!1))},_subjects:f,_proxyFormState:d,get _fields(){return a},get _formValues(){return s},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return u},set _names(e){u=e},get _formState(){return o},set _formState(e){o=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:O,register:I,handleSubmit:U,watch:(e,t)=>Cu(e)?f.values.subscribe({next:n=>e(C(void 0,t),n)}):C(e,t,!0),setValue:S,getValues:R,reset:z,resetField:(e,t={})=>{ql(a,e)&&(Yl(t.defaultValue)?S(e,ql(i,e)):(S(e,t.defaultValue),vu(i,e,t.defaultValue)),t.keepTouched||Lu(o.touchedFields,e),t.keepDirty||(Lu(o.dirtyFields,e),o.isDirty=t.defaultValue?k(e,ql(i,e)):k()),t.keepError||(Lu(o.errors,e),d.isValid&&g()),f.state.next({...o}))},clearErrors:e=>{e&&uu(e).forEach((e=>Lu(o.errors,e))),f.state.next({errors:e?o.errors:{}})},unregister:F,setError:A,setFocus:(e,t={})=>{const n=ql(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:P}}s=a("8dQZc");const ac=(0,(s=a("8dQZc")).forwardRef)(((e,t)=>(0,s.createElement)(Ae.label,l({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),ic=ac,sc=w("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),lc=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(ic,{ref:n,className:ve("ui__label",sc(),e),...t})));lc.displayName=ic.displayName;const uc=e=>{const{children:n,...r}=e;return t(s).createElement(ou.Provider,{value:r},n)},cc=s.createContext({}),dc=()=>{const e=s.useContext(cc),t=s.useContext(fc),{getFieldState:n,formState:r}=au(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},fc=s.createContext({}),pc=s.forwardRef((({className:e,...t},n)=>{const r=be();return(0,i.jsx)(fc.Provider,{value:{id:r},children:(0,i.jsx)("div",{ref:n,className:ve("ui__form-item space-y-2",e),...t})})}));pc.displayName="FormItem";const mc=s.forwardRef((({className:e,...t},n)=>{const{error:r,formItemId:o}=dc();return(0,i.jsx)(lc,{ref:n,className:ve("ui__form-label",r&&"text-destructive",e),htmlFor:o,...t})}));mc.displayName="FormLabel";const hc=s.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:a}=dc();return(0,i.jsx)(d,{ref:t,id:r,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})}));hc.displayName="FormControl";const vc=s.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=dc();return(0,i.jsx)("p",{ref:n,id:r,className:ve("ui__form-description text-sm text-muted-foreground",e),...t})}));vc.displayName="FormDescription";const gc=s.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:a}=dc(),s=o?String(o?.message):t;return s?(0,i.jsx)("p",{ref:r,id:a,className:ve("ui__form-message text-sm font-medium text-destructive",e),...n,children:s}):null}));gc.displayName="FormMessage";const yc=(s=a("8dQZc")).forwardRef((({className:e,type:t,...n},r)=>(0,i.jsx)("input",{type:t,className:ve("ui__input","flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium focus:border-input placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n})));yc.displayName="Input";var bc=function(e,t,n){if(e&&"reportValidity"in e){var r=ql(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},wc=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?bc(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return bc(t,n,e)}))};for(var r in t.fields)n(r)},xc=function(e,t){t.shouldUseNativeValidation&&wc(e,t);var n={};for(var r in e){var o=ql(t.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(_c(t.names||Object.keys(e),r)){var i=Object.assign({},Ec(ql(n,r)));vu(i,"root",a),vu(n,r,i)}else vu(n,r,a)}return n},Ec=function(e){return Array.isArray(e)?e.filter(Boolean):[]},_c=function(e,t){return e.some((function(e){return e.startsWith(t+".")}))};var kc={};e(kc,"printValue",(()=>Jc)),e(kc,"ValidationError",(()=>rd)),e(kc,"defaultLocale",(()=>fd)),e(kc,"isSchema",(()=>pd)),e(kc,"ref",(()=>gd)),e(kc,"getIn",(()=>xd)),e(kc,"reach",(()=>Ed)),e(kc,"Schema",(()=>Cd)),e(kc,"mixed",(()=>Dd)),e(kc,"MixedSchema",(()=>Sd)),e(kc,"bool",(()=>Nd)),e(kc,"BooleanSchema",(()=>Md)),e(kc,"string",(()=>jd)),e(kc,"StringSchema",(()=>Id)),e(kc,"number",(()=>Ld)),e(kc,"NumberSchema",(()=>Ud)),e(kc,"date",(()=>Wd)),e(kc,"DateSchema",(()=>Hd)),e(kc,"object",(()=>Gd)),e(kc,"ObjectSchema",(()=>Xd)),e(kc,"array",(()=>Jd)),e(kc,"ArraySchema",(()=>ef)),e(kc,"tuple",(()=>tf)),e(kc,"TupleSchema",(()=>nf)),e(kc,"lazy",(()=>rf)),e(kc,"setLocale",(()=>af)),e(kc,"addMethod",(()=>sf)),e(kc,"boolean",(()=>Nd));var Cc={};function Tc(e){this._maxSize=e,this.clear()}Tc.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Tc.prototype.get=function(e){return this._values[e]},Tc.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Dc=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Sc=/^\d+$/,Nc=/^\d/,Mc=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Oc=/^\s*(['"]?)(.*?)(\1)\s*$/,Rc=new Tc(512),Pc=new Tc(512),Ac=new Tc(512);function Fc(e){return Rc.get(e)||Rc.set(e,jc(e).map((function(e){return e.replace(Oc,"$2")})))}function jc(e){return e.match(Dc)||[""]}function Ic(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Lc(e){return!Ic(e)&&(function(e){return e.match(Nc)&&!e.match(Sc)}(e)||function(e){return Mc.test(e)}(e))}Cc={Cache:Tc,split:jc,normalizePath:Fc,setter:function(e){var t=Fc(e);return Pc.get(e)||Pc.set(e,(function(e,n){for(var r=0,o=t.length,a=e;r<o-1;){var i=t[r];if("__proto__"===i||"constructor"===i||"prototype"===i)return e;a=a[t[r++]]}a[t[r]]=n}))},getter:function(e,t){var n=Fc(e);return Ac.get(e)||Ac.set(e,(function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(Ic(t)||Sc.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,o,a,i,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(Lc(r)&&(r='"'+r+'"'),a=!(i=Ic(r))&&/^\d+$/.test(r),t.call(n,r,i,a,o,e))}(Array.isArray(e)?e:jc(e),t,n)}};var Uc;const Vc=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,zc=e=>e.match(Vc)||[],$c=e=>e[0].toUpperCase()+e.slice(1),Wc=(e,t)=>zc(e).join(t).toLowerCase(),Hc=e=>zc(e).reduce(((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`),"");Uc={words:zc,upperFirst:$c,camelCase:Hc,pascalCase:e=>$c(Hc(e)),snakeCase:e=>Wc(e,"_"),kebabCase:e=>Wc(e,"-"),sentenceCase:e=>$c(Wc(e," ")),titleCase:e=>zc(e).map($c).join(" ")};var Bc;function Yc(e,t){var n=e.length,r=new Array(n),o={},a=n,i=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)o[a]||l(e[a],a,new Set);return r;function l(e,t,a){if(a.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(e){u=""}throw new Error("Cyclic dependency"+u)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var c=i.get(e)||new Set;if(t=(c=Array.from(c)).length){a.add(e);do{var d=c[--t];l(d,s.get(d),a)}while(t);a.delete(e)}r[--n]=e}}}(Bc=function(e){return Yc(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)}).array=Yc;const qc=Object.prototype.toString,Qc=Error.prototype.toString,Zc=RegExp.prototype.toString,Kc="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Gc=/^Symbol\((.*)\)(.*)$/;function Xc(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Kc.call(e).replace(Gc,"Symbol($1)");const r=qc.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Qc.call(e)+"]":"RegExp"===r?Zc.call(e):null}function Jc(e,t){let n=Xc(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=Xc(this[e],t);return null!==r?r:n}),2)}function ed(e){return null==e?[]:[].concat(e)}let td,nd=/\$\{\s*(\w+)\s*\}/g;td=Symbol.toStringTag;class rd extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"==typeof e?e.replace(nd,((e,n)=>Jc(t[n]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[td]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],ed(e).forEach((e=>{if(rd.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!o&&Error.captureStackTrace&&Error.captureStackTrace(this,rd)}}let od={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${Jc(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${Jc(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Jc(n,!0)}\``+o}},ad={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},id={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ld={isValue:"${path} field must be ${value}"},ud={noUnknown:"${path} field has unspecified keys: ${unknown}"},cd={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},dd={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Jc(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Jc(n,!0)}\``}return rd.formatError(od.notType,e)}};var fd=Object.assign(Object.create(null),{mixed:od,string:ad,number:id,date:sd,object:ud,array:cd,boolean:ld,tuple:dd});const pd=e=>e&&e.__isYupSchema__;class md{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,a="function"==typeof n?n:(...e)=>e.every((e=>e===n));return new md(e,((e,t)=>{var n;let i=a(...e)?r:o;return null!=(n=null==i?void 0:i(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!pd(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const hd="$",vd=".";function gd(e,t){return new yd(e,t)}class yd{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===hd,this.isValue=this.key[0]===vd,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?hd:this.isValue?vd:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,Cc.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}yd.prototype.__isYupRef=!0;const bd=e=>null==e;function wd(e){function t({value:t,path:n="",options:r,originalValue:o,schema:a},i,s){const{name:l,test:u,params:c,message:d,skipAbsent:f}=e;let{parent:p,context:m,abortEarly:h=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=r;function g(e){return yd.isRef(e)?e.getValue(t,p,m):e}function y(e={}){var r;const i=Object.assign({value:t,originalValue:o,label:a.spec.label,path:e.path||n,spec:a.spec},c,e.params);for(const e of Object.keys(i))i[e]=g(i[e]);const s=new rd(rd.formatError(e.message||d,i),t,i.path,e.type||l,null!=(r=e.disableStackTrace)?r:v);return s.params=i,s}const b=h?i:s;let w={path:n,parent:p,type:l,from:r.from,createError:y,resolve:g,options:r,originalValue:o,schema:a};const x=e=>{rd.isError(e)?b(e):e?s(null):b(y())},E=e=>{rd.isError(e)?b(e):i(e)};if(f&&bd(t))return x(!0);let _;try{var k;if(_=u.call(w,t,w),"function"==typeof(null==(k=_)?void 0:k.then)){if(r.sync)throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(_).then(x,E)}}catch(e){return void E(e)}x(_)}return t.OPTIONS=e,t}function xd(e,t,n,r=n){let o,a,i;return t?((0,Cc.forEach)(t,((s,l,u)=>{let c=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,f=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${i}" must contain an index to the tuple element, e.g. "${i}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}a=c,i=l?"["+s+"]":"."+s})),{schema:e,parent:o,parentPath:a}):{parent:o,parentPath:t,schema:e}}function Ed(e,t,n,r){return xd(e,t,n,r).schema}class _d extends Set{describe(){const e=[];for(const t of this.values())e.push(yd.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new _d(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function kd(e,t=new Map){if(pd(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=kd(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,kd(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(kd(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=kd(o,t)}return n}class Cd{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new _d,this._blacklist=new _d,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(od.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=kd(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&bd(o))return o;let a=Jc(e),i=Jc(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${a} \n`+(i!==a?`result of cast: ${i}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:a=e,strict:i=this.spec.strict}=t,s=e;i||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:s,originalValue:a,options:t,tests:l},n,(e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:a,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:o,value:a,originalValue:i,path:s,options:l}=e,u=e=>{r||(r=!0,t(e,a))},c=e=>{r||(r=!0,n(e,a))},d=o.length,f=[];if(!d)return c([]);let p={value:a,originalValue:i,path:s,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(p,u,(function(e){e&&(Array.isArray(e)?f.push(...e):f.push(e)),--d<=0&&c(f)}))}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:a}){const i=null!=e?e:t;if(null==i)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof i;let l=n[i];const u=Object.assign({},a,{strict:!0,parent:n,value:l,originalValue:o[i],key:void 0,[s?"index":"key"]:i,path:s||i.includes(".")?`${r||""}[${l?i:`"${i}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(u)._validate(l,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise(((n,a)=>r._validate(e,t,((e,t)=>{rd.isError(e)&&(e.value=t),a(e)}),((e,t)=>{e.length?a(new rd(e,t,void 0,void 0,o)):n(t)}))))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),a=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw rd.isError(e)&&(e.value=t),e}),((t,n)=>{if(t.length)throw new rd(t,e,void 0,void 0,a);r=n})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(rd.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(rd.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):kd(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=wd({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=wd({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=od.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=od.notNull){return this.nullability(!1,e)}required(e=od.required){return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=od.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=wd(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0})),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=ed(e).map((e=>new yd(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"==typeof t?new md(r,t):md.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=wd({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=od.oneOf){let n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=wd({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=od.notOneOf){let n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=wd({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:a}=t.spec;return{meta:r,label:n,optional:o,nullable:a,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))}}}Cd.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Cd.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:a,schema:i}=xd(this,t,n,r.context);return i[e](o&&o[a],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Cd.prototype[e]=Cd.prototype.oneOf;for(const e of["not","nope"])Cd.prototype[e]=Cd.prototype.notOneOf;const Td=()=>!0;function Dd(e){return new Sd(e)}class Sd extends Cd{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Td},e))}}function Nd(){return new Md}Dd.prototype=Sd.prototype;class Md extends Cd{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}isTrue(e=ld.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>bd(e)||!0===e})}isFalse(e=ld.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>bd(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}Nd.prototype=Md.prototype;let Od=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Rd=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Pd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Ad=e=>bd(e)||e===e.trim(),Fd={}.toString();function jd(){return new Id}class Id extends Cd{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===Fd?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||od.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e,t=ad.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=ad.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=ad.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||ad.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=ad.email){return this.matches(Od,{name:"email",message:e,excludeEmptyString:!0})}url(e=ad.url){return this.matches(Rd,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ad.uuid){return this.matches(Pd,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=ad.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:Ad})}lowercase(e=ad.lowercase){return this.transform((e=>bd(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>bd(e)||e===e.toLowerCase()})}uppercase(e=ad.uppercase){return this.transform((e=>bd(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>bd(e)||e===e.toUpperCase()})}}jd.prototype=Id.prototype;function Ld(){return new Ud}class Ud extends Cd{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"==typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))}))}min(e,t=id.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=id.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=id.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=id.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=id.positive){return this.moreThan(0,e)}negative(e=id.negative){return this.lessThan(0,e)}integer(e=id.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>bd(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>bd(t)?t:Math[e](t)))}}Ld.prototype=Ud.prototype;const Vd=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function zd(e,t=0){return Number(e)||t}let $d=new Date("");function Wd(){return new Hd}class Hd extends Cd{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=Vd.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:zd(t[1]),month:zd(t[2],1)-1,day:zd(t[3],1),hour:zd(t[4]),minute:zd(t[5]),second:zd(t[6]),millisecond:t[7]?zd(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:zd(t[10]),minuteOffset:zd(t[11])};if(void 0===n.z&&void 0===n.plusMinus)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return"Z"!==n.z&&void 0!==n.plusMinus&&(r=60*n.hourOffset+n.minuteOffset,"+"===n.plusMinus&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}(e),isNaN(e)?Hd.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(yd.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=sd.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=sd.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Bd(e,t){let n=1/0;return e.some(((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0})),n}function Yd(e){return(t,n)=>Bd(e,t)-Bd(e,n)}Hd.INVALID_DATE=$d,Wd.prototype=Hd.prototype,Wd.INVALID_DATE=$d;const qd=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function Qd(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Qd(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Qd(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Qd)}):"optional"in e?e.optional():e}let Zd=e=>"[object Object]"===Object.prototype.toString.call(e);const Kd=Yd([]);function Gd(e){return new Xd(e)}class Xd extends Cd{constructor(e){super({type:"object",check:e=>Zd(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Kd,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,i=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(const e of i){let n=o[e],i=e in r;if(n){let o,a=r[e];l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:a,context:t.context,parent:s});let i=n instanceof Cd?n.spec:void 0,c=null==i?void 0:i.strict;if(null!=i&&i.strip){u=u||e in r;continue}o=t.__validating&&c?r[e]:n.cast(r[e],l),void 0!==o&&(s[e]=o)}else i&&!a&&(s[e]=r[e]);i===e in s&&s[e]===r[e]||(u=!0)}return u?s:r}_validate(e,t={},n,r){let{from:o=[],originalValue:a=e,recursive:i=this.spec.recursive}=t;t.from=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,super._validate(e,t,n,((e,o)=>{if(!i||!Zd(o))return void r(e,o);a=a||o;let s=[];for(let e of this._nodes){let n=this.fields[e];n&&!yd.isRef(n)&&s.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:a}))}this.runTests({tests:s,value:o,originalValue:a,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),o)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation((t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((n=>{var r;const o=this.fields[n];let a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(a):void 0})),t}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=function(e,n=[]){let r=[],o=new Set,a=new Set(n.map((([e,t])=>`${e}-${t}`)));function i(e,t){let n=(0,Cc.split)(e)[0];o.add(n),a.has(`${t}-${n}`)||r.push([t,n])}for(const t of Object.keys(e)){let n=e[t];o.add(t),yd.isRef(n)&&n.isSibling?i(n.path,t):pd(n)&&"deps"in n&&n.deps.forEach((e=>i(e,t)))}return t(Bc).array(Array.from(o),r).reverse()}(e,n),r._sortErrors=Yd(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,t=[]){return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Qd(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter((([t,n])=>e.includes(t)&&e.includes(n))))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=(0,Cc.getter)(e,!0);return this.transform((o=>{if(!o)return o;let a=o;return((e,t)=>{const n=[...(0,Cc.normalizePath)(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=(0,Cc.getter)((0,Cc.join)(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(a=Object.assign({},o),n||delete a[e],a[t]=r(o)),a}))}json(){return this.transform(qd)}noUnknown(e=!0,t=ud.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=ud.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(Uc.camelCase)}snakeCase(){return this.transformKeys(Uc.snakeCase)}constantCase(){return this.transformKeys((e=>(0,Uc.snakeCase)(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,a]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=a.describe(t)}return n}}function Jd(e){return new ef(e)}Gd.prototype=Xd.prototype;class ef extends Cd{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const o=n.map(((e,n)=>{const o=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${n}]`}));return o!==e&&(r=!0),o}));return r?o:n}_validate(e,t={},n,r){var o;let a=this.innerType,i=null!=(o=t.recursive)?o:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,n,((o,s)=>{var l;if(!i||!a||!this._typeCheck(s))return void r(o,s);let u=new Array(s.length);for(let n=0;n<s.length;n++){var c;u[n]=a.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:s,tests:u,originalValue:null!=(l=t.originalValue)?l:e,options:t},n,(e=>r(e.concat(o),s)))}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(qd)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!pd(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Jc(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=cd.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||cd.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||cd.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let o=e;null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=t.innerType.describe(o)}return n}}function tf(e){return new nf(e)}Jd.prototype=ef.prototype;class nf extends Cd{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation((()=>{this.typeError(dd.notType)}))}_cast(e,t){const{types:n}=this.spec,r=super._cast(e,t);if(!this._typeCheck(r))return r;let o=!1;const a=n.map(((e,n)=>{const a=e.cast(r[n],Object.assign({},t,{path:`${t.path||""}[${n}]`}));return a!==r[n]&&(o=!0),a}));return o?a:r}_validate(e,t={},n,r){let o=this.spec.types;super._validate(e,t,n,((a,i)=>{var s;if(!this._typeCheck(i))return void r(a,i);let l=[];for(let[n,r]of o.entries()){var u;l[n]=r.asNestedTest({options:t,index:n,parent:i,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e})}this.runTests({value:i,tests:l,originalValue:null!=(s=t.originalValue)?s:e,options:t},n,(e=>r(e.concat(a),i)))}))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=t.spec.types.map(((t,n)=>{var r;let o=e;return null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t.describe(o)})),n}}function rf(e){return new of(e)}tf.prototype=nf.prototype;class of{constructor(e){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(e,t={})=>{let n=this.builder(e,t);if(!pd(n))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(n=n.optional()),n.resolve(t)},this.builder=e,this.spec={meta:void 0,optional:!1}}clone(e){const t=new of(this.builder);return t.spec=Object.assign({},this.spec,e),t}optionality(e){return this.clone({optional:e})}optional(){return this.optionality(!0)}resolve(e){return this._resolve(e.value,e)}cast(e,t){return this._resolve(e,t).cast(e,t)}asNestedTest(e){let{key:t,index:n,parent:r,options:o}=e,a=r[null!=n?n:t];return this._resolve(a,Object.assign({},o,{value:a,parent:r})).asNestedTest(e)}validate(e,t){return this._resolve(e,t).validate(e,t)}validateSync(e,t){return this._resolve(e,t).validateSync(e,t)}validateAt(e,t,n){return this._resolve(t,n).validateAt(e,t,n)}validateSyncAt(e,t,n){return this._resolve(t,n).validateSyncAt(e,t,n)}isValid(e,t){return this._resolve(e,t).isValid(e,t)}isValidSync(e,t){return this._resolve(e,t).isValidSync(e,t)}describe(e){return e?this.resolve(e).describe(e):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}}function af(e){Object.keys(e).forEach((t=>{Object.keys(e[t]).forEach((n=>{fd[t][n]=e[t][n]}))}))}function sf(e,t,n){if(!e||!pd(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n}s=a("8dQZc"),s=a("8dQZc");const lf="Switch",[uf,cf]=ke(lf),[df,ff]=uf(lf),pf=(0,s.forwardRef)(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:u,value:d="on",onCheckedChange:f,...p}=e,[m,h]=(0,s.useState)(null),v=c(t,(e=>h(e))),g=(0,s.useRef)(!1),y=!m||Boolean(m.closest("form")),[b=!1,w]=De({prop:o,defaultProp:a,onChange:f});return(0,s.createElement)(df,{scope:n,checked:b,disabled:u},(0,s.createElement)(Ae.button,l({type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":gf(b),"data-disabled":u?"":void 0,disabled:u,value:d},p,{ref:v,onClick:_e(e.onClick,(e=>{w((e=>!e)),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())}))})),y&&(0,s.createElement)(vf,{control:m,bubbles:!g.current,name:r,value:d,checked:b,required:i,disabled:u,style:{transform:"translateX(-100%)"}}))})),mf="SwitchThumb",hf=(0,s.forwardRef)(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=ff(mf,n);return(0,s.createElement)(Ae.span,l({"data-state":gf(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),vf=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=(0,s.useRef)(null),i=Me(n),u=Re(t);return(0,s.useEffect)((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),(0,s.createElement)("input",l({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function gf(e){return e?"checked":"unchecked"}const yf=pf,bf=hf,wf=s.forwardRef((({className:e,size:t,...n},r)=>{const o="sm"===t;return(0,i.jsx)(yf,{className:ve("ui__switch",o?"h-4 w-8":"h-6 w-11","peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:r,children:(0,i.jsx)(bf,{className:ve(o?"h-3 w-3 data-[state=checked]:translate-x-4":"h-5 w-5 data-[state=checked]:translate-x-5","pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0")})})}));wf.displayName=yf.displayName;s=a("8dQZc"),s=a("8dQZc");const xf="Checkbox",[Ef,_f]=ke(xf),[kf,Cf]=Ef(xf),Tf=(0,s.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:u,value:d="on",onCheckedChange:f,...p}=e,[m,h]=(0,s.useState)(null),v=c(t,(e=>h(e))),g=(0,s.useRef)(!1),y=!m||Boolean(m.closest("form")),[b=!1,w]=De({prop:o,defaultProp:a,onChange:f}),x=(0,s.useRef)(b);return(0,s.useEffect)((()=>{const e=null==m?void 0:m.form;if(e){const t=()=>w(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[m,w]),(0,s.createElement)(kf,{scope:n,state:b,disabled:u},(0,s.createElement)(Ae.button,l({type:"button",role:"checkbox","aria-checked":Mf(b)?"mixed":b,"aria-required":i,"data-state":Of(b),"data-disabled":u?"":void 0,disabled:u,value:d},p,{ref:v,onKeyDown:_e(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:_e(e.onClick,(e=>{w((e=>!!Mf(e)||!e)),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())}))})),y&&(0,s.createElement)(Nf,{control:m,bubbles:!g.current,name:r,value:d,checked:b,required:i,disabled:u,style:{transform:"translateX(-100%)"}}))})),Df="CheckboxIndicator",Sf=(0,s.forwardRef)(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Cf(Df,n);return(0,s.createElement)(Fr,{present:r||Mf(a.state)||!0===a.state},(0,s.createElement)(Ae.span,l({"data-state":Of(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),Nf=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=(0,s.useRef)(null),i=Me(n),u=Re(t);return(0,s.useEffect)((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Mf(n),o.call(e,!Mf(n)&&n),e.dispatchEvent(t)}}),[i,n,r]),(0,s.createElement)("input",l({type:"checkbox","aria-hidden":!0,defaultChecked:!Mf(n)&&n},o,{tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Mf(e){return"indeterminate"===e}function Of(e){return Mf(e)?"indeterminate":e?"checked":"unchecked"}const Rf=Tf,Pf=Sf,Af=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Rf,{ref:n,className:ve("ui__checkbox","peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:(0,i.jsx)(Pf,{className:ve("flex items-center justify-center text-current"),children:(0,i.jsx)(ts,{className:"h-4 w-4"})})})));Af.displayName=Rf.displayName;s=a("8dQZc"),s=a("8dQZc");const Ff="Radio",[jf,If]=ke(Ff),[Lf,Uf]=jf(Ff),Vf=(0,s.forwardRef)(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:u="on",onCheck:d,...f}=e,[p,m]=(0,s.useState)(null),h=c(t,(e=>m(e))),v=(0,s.useRef)(!1),g=!p||Boolean(p.closest("form"));return(0,s.createElement)(Lf,{scope:n,checked:o,disabled:i},(0,s.createElement)(Ae.button,l({type:"button",role:"radio","aria-checked":o,"data-state":Hf(o),"data-disabled":i?"":void 0,disabled:i,value:u},f,{ref:h,onClick:_e(e.onClick,(e=>{o||null==d||d(),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),g&&(0,s.createElement)(Wf,{control:p,bubbles:!v.current,name:r,value:u,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}}))})),zf="RadioIndicator",$f=(0,s.forwardRef)(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Uf(zf,n);return(0,s.createElement)(Fr,{present:r||a.checked},(0,s.createElement)(Ae.span,l({"data-state":Hf(a.checked),"data-disabled":a.disabled?"":void 0},o,{ref:t})))})),Wf=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=(0,s.useRef)(null),i=Me(n),u=Re(t);return(0,s.useEffect)((()=>{const e=a.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(i!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[i,n,r]),(0,s.createElement)("input",l({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Hf(e){return e?"checked":"unchecked"}const Bf=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yf="RadioGroup",[qf,Qf]=ke(Yf,[Hr,If]),Zf=Hr(),Kf=If(),[Gf,Xf]=qf(Yf),Jf=(0,s.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:u=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...m}=e,h=Zf(n),v=Ne(d),[g,y]=De({prop:a,defaultProp:o,onChange:p});return(0,s.createElement)(Gf,{scope:n,name:r,required:i,disabled:u,value:g,onValueChange:y},(0,s.createElement)(Jr,l({asChild:!0},h,{orientation:c,dir:v,loop:f}),(0,s.createElement)(Ae.div,l({role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":u?"":void 0,dir:v},m,{ref:t}))))})),ep="RadioGroupItem",tp=(0,s.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Xf(ep,n),i=a.disabled||r,u=Zf(n),d=Kf(n),f=(0,s.useRef)(null),p=c(t,f),m=a.value===o.value,h=(0,s.useRef)(!1);return(0,s.useEffect)((()=>{const e=e=>{Bf.includes(e.key)&&(h.current=!0)},t=()=>h.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),(0,s.createElement)(eo,l({asChild:!0},u,{focusable:!i,active:m}),(0,s.createElement)(Vf,l({disabled:i,required:a.required,checked:m},d,o,{name:a.name,ref:p,onCheck:()=>a.onValueChange(o.value),onKeyDown:_e((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:_e(o.onFocus,(()=>{var e;h.current&&(null===(e=f.current)||void 0===e||e.click())}))})))})),np=(0,s.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Kf(n);return(0,s.createElement)($f,l({},o,r,{ref:t}))})),rp=Jf,op=tp,ap=np,ip=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(rp,{className:ve("ui__radio-group grid gap-2",e),...t,ref:n})));ip.displayName=rp.displayName;const sp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(op,{ref:n,className:ve("ui__radio-group-item","aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,i.jsx)(ap,{className:"flex items-center justify-center",children:(0,i.jsx)(rs,{className:"h-2.5 w-2.5 fill-current text-current"})})})));sp.displayName=op.displayName;const lp=(s=a("8dQZc")).forwardRef((({className:e,...t},n)=>(0,i.jsx)("textarea",{className:ve("ui__textarea","flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:border-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t})));lp.displayName="Textarea";const up=(s=a("8dQZc")).forwardRef((({className:e,...t},n)=>(0,i.jsx)("div",{ref:n,className:ve("ui__card","rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})));up.displayName="Card";const cp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("div",{ref:n,className:ve("ui__card-header flex flex-col space-y-1.5 p-6",e),...t})));cp.displayName="CardHeader";const dp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("h3",{ref:n,className:ve("ui__card-title","text-2xl font-semibold leading-none tracking-tight",e),...t})));dp.displayName="CardTitle";const fp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("p",{ref:n,className:ve("ui__card-description text-sm text-muted-foreground",e),...t})));fp.displayName="CardDescription";const pp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("div",{ref:n,className:ve("ui__card-content p-6 pt-0",e),...t})));pp.displayName="CardContent";const mp=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)("div",{ref:n,className:ve("ui__card-footer flex items-center p-6 pt-0",e),...t})));mp.displayName="CardFooter",a("8dQZc");s=a("8dQZc"),s=a("8dQZc");const hp="ContextMenu",[vp,gp]=ke(hp,[aa]),yp=aa(),[bp,wp]=vp(hp),xp=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[i,u]=(0,s.useState)(!1),c=yp(t),d=Te(r),f=(0,s.useCallback)((e=>{u(e),d(e)}),[d]);return(0,s.createElement)(bp,{scope:t,open:i,onOpenChange:f,modal:a},(0,s.createElement)(ti,l({},c,{dir:o,open:i,onOpenChange:f,modal:a}),n))},Ep="ContextMenuTrigger",_p=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=wp(Ep,n),i=yp(n),u=(0,s.useRef)({x:0,y:0}),c=(0,s.useRef)({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...u.current})}),d=(0,s.useRef)(0),f=(0,s.useCallback)((()=>window.clearTimeout(d.current)),[]),p=e=>{u.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return(0,s.useEffect)((()=>f),[f]),(0,s.useEffect)((()=>{r&&f()}),[r,f]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ni,l({},i,{virtualRef:c})),(0,s.createElement)(Ae.span,l({"data-state":a.open?"open":"closed","data-disabled":r?"":void 0},o,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:_e(e.onContextMenu,(e=>{f(),p(e),e.preventDefault()})),onPointerDown:r?e.onPointerDown:_e(e.onPointerDown,Lp((e=>{f(),d.current=window.setTimeout((()=>p(e)),700)}))),onPointerMove:r?e.onPointerMove:_e(e.onPointerMove,Lp(f)),onPointerCancel:r?e.onPointerCancel:_e(e.onPointerCancel,Lp(f)),onPointerUp:r?e.onPointerUp:_e(e.onPointerUp,Lp(f))})))})),kp=e=>{const{__scopeContextMenu:t,...n}=e,r=yp(t);return(0,s.createElement)(ri,l({},r,n))},Cp="ContextMenuContent",Tp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=wp(Cp,n),a=yp(n),i=(0,s.useRef)(!1);return(0,s.createElement)(oi,l({},a,r,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var n;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),!t.defaultPrevented&&i.current&&t.preventDefault(),i.current=!1},onInteractOutside:t=>{var n;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||o.modal||(i.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Dp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(ai,l({},o,r,{ref:t}))})),Sp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(ii,l({},o,r,{ref:t}))})),Np=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(si,l({},o,r,{ref:t}))})),Mp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(li,l({},o,r,{ref:t}))})),Op=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(ui,l({},o,r,{ref:t}))})),Rp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(ci,l({},o,r,{ref:t}))})),Pp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(di,l({},o,r,{ref:t}))})),Ap=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(fi,l({},o,r,{ref:t}))})),Fp=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=yp(t),[u,c]=De({prop:o,defaultProp:a,onChange:r});return(0,s.createElement)(pi,l({},i,{open:u,onOpenChange:c}),n)},jp=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(mi,l({},o,r,{ref:t}))})),Ip=(0,s.forwardRef)(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=yp(n);return(0,s.createElement)(hi,l({},o,r,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}));function Lp(e){return t=>"mouse"!==t.pointerType?e(t):void 0}const Up=kp,Vp=Tp,zp=Sp,$p=Np,Wp=Mp,Hp=Rp,Bp=Pp,Yp=Ap,qp=jp,Qp=Ip,Zp=xp,Kp=_p,Gp=Dp,Xp=Up,Jp=Fp,em=Op,tm=s.forwardRef((({className:e,inset:t,children:n,...r},o)=>(0,i.jsxs)(qp,{ref:o,className:ve("ui__context-menu-sub-trigger","flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,(0,i.jsx)(ns,{className:"ml-auto h-4 w-4"})]})));tm.displayName=qp.displayName;const nm=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Qp,{ref:n,className:ve("ui__context-menu-sub-content","z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})));nm.displayName=Qp.displayName;const rm=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Up,{children:(0,i.jsx)(Vp,{ref:n,className:ve("ui__context-menu-content","z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})})));rm.displayName=Vp.displayName;const om=s.forwardRef((({className:e,inset:t,...n},r)=>(0,i.jsx)($p,{ref:r,className:ve("relative flex cursor-default select-none items-center rounded-sm px-2 text-popover-foreground/75 hover:text-popover-foreground/100 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n})));om.displayName=$p.displayName;const am=s.forwardRef((({className:e,children:t,checked:n,...r},o)=>(0,i.jsxs)(Wp,{ref:o,className:ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-popover-foreground/75 hover:text-popover-foreground/100 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(Bp,{children:(0,i.jsx)(ts,{className:"h-4 w-4"})})}),t]})));am.displayName=Wp.displayName;const im=s.forwardRef((({className:e,children:t,...n},r)=>(0,i.jsxs)(Hp,{ref:r,className:ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 text-popover-foreground/75 hover:text-popover-foreground/100 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(Bp,{children:(0,i.jsx)(rs,{className:"h-2 w-2 fill-current"})})}),t]})));im.displayName=Hp.displayName;const sm=s.forwardRef((({className:e,inset:t,...n},r)=>(0,i.jsx)(zp,{ref:r,className:ve("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n})));sm.displayName=zp.displayName;const lm=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Yp,{ref:n,className:ve("-mx-1 my-1 h-px bg-border",e),...t})));lm.displayName=Yp.displayName;const um=({className:e,...t})=>(0,i.jsx)("span",{className:ve("ml-auto text-xs text-muted-foreground",e),...t});um.displayName="ContextMenuShortcut";s=a("8dQZc"),s=a("8dQZc");const cm=[" ","Enter","ArrowUp","ArrowDown"],dm=[" ","Enter"],fm="Select",[pm,mm,hm]=je(fm),[vm,gm]=ke(fm,[hm,mr]),ym=mr(),[bm,wm]=vm(fm),[xm,Em]=vm(fm),_m=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:p,required:m}=e,h=ym(t),[v,g]=(0,s.useState)(null),[y,b]=(0,s.useState)(null),[w,x]=(0,s.useState)(!1),E=Ne(c),[_=!1,k]=De({prop:r,defaultProp:o,onChange:a}),[C,T]=De({prop:i,defaultProp:l,onChange:u}),D=(0,s.useRef)(null),S=!v||Boolean(v.closest("form")),[N,M]=(0,s.useState)(new Set),O=Array.from(N).map((e=>e.props.value)).join(";");return(0,s.createElement)(Mr,h,(0,s.createElement)(bm,{required:m,scope:t,trigger:v,onTriggerChange:g,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:$t(),value:C,onValueChange:T,open:_,onOpenChange:k,dir:E,triggerPointerDownPosRef:D,disabled:p},(0,s.createElement)(pm.Provider,{scope:t},(0,s.createElement)(xm,{scope:e.__scopeSelect,onNativeOptionAdd:(0,s.useCallback)((e=>{M((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:(0,s.useCallback)((e=>{M((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),S?(0,s.createElement)(uh,{key:O,"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:C,onChange:e=>T(e.target.value),disabled:p},void 0===C?(0,s.createElement)("option",{value:""}):null,Array.from(N)):null))},km="SelectTrigger",Cm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=ym(n),i=wm(km,n),u=i.disabled||r,d=c(t,i.onTriggerChange),f=mm(n),[p,m,h]=ch((e=>{const t=f().filter((e=>!e.disabled)),n=t.find((e=>e.value===i.value)),r=dh(t,e,n);void 0!==r&&i.onValueChange(r.value)})),v=()=>{u||(i.onOpenChange(!0),h())};return(0,s.createElement)(Or,l({asChild:!0},a),(0,s.createElement)(Ae.button,l({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":lh(i.value)?"":void 0},o,{ref:d,onClick:_e(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:_e(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(v(),i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:_e(o.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||cm.includes(e.key)&&(v(),e.preventDefault())}))})))})),Tm="SelectValue",Dm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...u}=e,d=wm(Tm,n),{onValueNodeHasChildrenChange:f}=d,p=void 0!==a,m=c(t,d.onValueNodeChange);return Oe((()=>{f(p)}),[f,p]),(0,s.createElement)(Ae.span,l({},u,{ref:m,style:{pointerEvents:"none"}}),lh(d.value)?(0,s.createElement)(s.Fragment,null,i):a)})),Sm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return(0,s.createElement)(Ae.span,l({"aria-hidden":!0},o,{ref:t}),r||"▼")})),Nm=e=>(0,s.createElement)(Ar,l({asChild:!0},e)),Mm="SelectContent",Om=(0,s.forwardRef)(((e,t)=>{const n=wm(Mm,e.__scopeSelect),[r,o]=(0,s.useState)();if(Oe((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?(0,Pe.createPortal)((0,s.createElement)(Pm,{scope:e.__scopeSelect},(0,s.createElement)(pm.Slot,{scope:e.__scopeSelect},(0,s.createElement)("div",null,e.children))),t):null}return(0,s.createElement)(Fm,l({},e,{ref:t}))})),Rm=10,[Pm,Am]=vm(Mm),Fm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w,...x}=e,E=wm(Mm,n),[_,k]=(0,s.useState)(null),[C,T]=(0,s.useState)(null),D=c(t,(e=>k(e))),[S,N]=(0,s.useState)(null),[M,O]=(0,s.useState)(null),R=mm(n),[P,A]=(0,s.useState)(!1),F=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(_)return lo(_)}),[_]),St();const j=(0,s.useCallback)((e=>{const[t,...n]=R().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(null==n||n.scrollIntoView({block:"nearest"}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),null==n||n.focus(),document.activeElement!==o)return}}),[R,C]),I=(0,s.useCallback)((()=>j([S,_])),[j,S,_]);(0,s.useEffect)((()=>{P&&I()}),[P,I]);const{onOpenChange:L,triggerPointerDownPosRef:U}=E;(0,s.useEffect)((()=>{if(_){let e={x:0,y:0};const t=t=>{var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=U.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=U.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():_.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[_,L,U]),(0,s.useEffect)((()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[L]);const[V,z]=ch((e=>{const t=R().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=dh(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),$=(0,s.useCallback)(((e,t,n)=>{const r=!F.current&&!n;(void 0!==E.value&&E.value===t||r)&&(N(e),r&&(F.current=!0))}),[E.value]),W=(0,s.useCallback)((()=>null==_?void 0:_.focus()),[_]),H=(0,s.useCallback)(((e,t,n)=>{const r=!F.current&&!n;(void 0!==E.value&&E.value===t||r)&&O(e)}),[E.value]),B="popper"===r?Im:jm,Y=B===Im?{side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w}:{};return(0,s.createElement)(Pm,{scope:n,content:_,viewport:C,onViewportChange:T,itemRefCallback:$,selectedItem:S,onItemLeave:W,itemTextRefCallback:H,focusSelectedItem:I,selectedItemText:M,position:r,isPositioned:P,searchRef:V},(0,s.createElement)(Qo,{as:d,allowPinchZoom:!0},(0,s.createElement)(Pt,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:_e(o,(e=>{var t;null===(t=E.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},(0,s.createElement)(xt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1)},(0,s.createElement)(B,l({role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault()},x,Y,{onPlaced:()=>A(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:_e(x.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=R().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>j(t))),e.preventDefault()}}))}))))))})),jm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=wm(Mm,n),i=Am(Mm,n),[u,d]=(0,s.useState)(null),[f,p]=(0,s.useState)(null),m=c(t,(e=>p(e))),h=mm(n),v=(0,s.useRef)(!1),g=(0,s.useRef)(!0),{viewport:y,selectedItem:b,selectedItemText:w,focusSelectedItem:x}=i,E=(0,s.useCallback)((()=>{if(a.trigger&&a.valueNode&&u&&f&&y&&b&&w){const e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),o=w.getBoundingClientRect();if("rtl"!==a.dir){const r=o.left-t.left,a=n.left-r,i=e.left-a,s=e.width+i,l=Math.max(s,t.width),c=window.innerWidth-Rm,d=Ee(a,[Rm,c-l]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{const r=t.right-o.right,a=window.innerWidth-n.right-r,i=window.innerWidth-e.right-a,s=e.width+i,l=Math.max(s,t.width),c=window.innerWidth-Rm,d=Ee(a,[Rm,c-l]);u.style.minWidth=s+"px",u.style.right=d+"px"}const i=h(),s=window.innerHeight-2*Rm,l=y.scrollHeight,c=window.getComputedStyle(f),d=parseInt(c.borderTopWidth,10),p=parseInt(c.paddingTop,10),m=parseInt(c.borderBottomWidth,10),g=d+p+l+parseInt(c.paddingBottom,10)+m,x=Math.min(5*b.offsetHeight,g),E=window.getComputedStyle(y),_=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),C=e.top+e.height/2-Rm,T=s-C,D=b.offsetHeight/2,S=d+p+(b.offsetTop+D),N=g-S;if(S<=C){const e=b===i[i.length-1].ref.current;u.style.bottom="0px";const t=f.clientHeight-y.offsetTop-y.offsetHeight,n=S+Math.max(T,D+(e?k:0)+t+m);u.style.height=n+"px"}else{const e=b===i[0].ref.current;u.style.top="0px";const t=Math.max(C,d+y.offsetTop+(e?_:0)+D)+N;u.style.height=t+"px",y.scrollTop=S-C+y.offsetTop}u.style.margin=`${Rm}px 0`,u.style.minHeight=x+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame((()=>v.current=!0))}}),[h,a.trigger,a.valueNode,u,f,y,b,w,a.dir,r]);Oe((()=>E()),[E]);const[_,k]=(0,s.useState)();Oe((()=>{f&&k(window.getComputedStyle(f).zIndex)}),[f]);const C=(0,s.useCallback)((e=>{e&&!0===g.current&&(E(),null==x||x(),g.current=!1)}),[E,x]);return(0,s.createElement)(Lm,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:C},(0,s.createElement)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},(0,s.createElement)(Ae.div,l({},o,{ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),Im=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rm,...a}=e,i=ym(n);return(0,s.createElement)(Rr,l({},i,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[Lm,Um]=vm(Mm,{}),Vm="SelectViewport",zm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Am(Vm,n),a=Um(Vm,n),i=c(t,o.onViewportChange),u=(0,s.useRef)(0);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,s.createElement)(pm.Slot,{scope:n},(0,s.createElement)(Ae.div,l({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:_e(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(null!=r&&r.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Rm,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),$m="SelectGroup",[Wm,Hm]=vm($m),Bm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=$t();return(0,s.createElement)(Wm,{scope:n,id:o},(0,s.createElement)(Ae.div,l({role:"group","aria-labelledby":o},r,{ref:t})))})),Ym="SelectLabel",qm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hm(Ym,n);return(0,s.createElement)(Ae.div,l({id:o.id},r,{ref:t}))})),Qm="SelectItem",[Zm,Km]=vm(Qm),Gm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,u=wm(Qm,n),d=Am(Qm,n),f=u.value===r,[p,m]=(0,s.useState)(null!=a?a:""),[h,v]=(0,s.useState)(!1),g=c(t,(e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,r,o)})),y=$t(),b=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,s.createElement)(Zm,{scope:n,value:r,disabled:o,textId:y,isSelected:f,onItemTextChange:(0,s.useCallback)((e=>{m((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},(0,s.createElement)(pm.ItemSlot,{scope:n,value:r,disabled:o,textValue:p},(0,s.createElement)(Ae.div,l({role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:g,onFocus:_e(i.onFocus,(()=>v(!0))),onBlur:_e(i.onBlur,(()=>v(!1))),onPointerUp:_e(i.onPointerUp,b),onPointerMove:_e(i.onPointerMove,(e=>{var t;o?null===(t=d.onItemLeave)||void 0===t||t.call(d):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:_e(i.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=d.onItemLeave)||void 0===t||t.call(d))})),onKeyDown:_e(i.onKeyDown,(e=>{var t;""!==(null===(t=d.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(dm.includes(e.key)&&b()," "===e.key&&e.preventDefault())}))}))))})),Xm="SelectItemText",Jm=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=wm(Xm,n),u=Am(Xm,n),d=Km(Xm,n),f=Em(Xm,n),[p,m]=(0,s.useState)(null),h=c(t,(e=>m(e)),d.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,d.value,d.disabled)})),v=null==p?void 0:p.textContent,g=(0,s.useMemo)((()=>(0,s.createElement)("option",{key:d.value,value:d.value,disabled:d.disabled},v)),[d.disabled,d.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return Oe((()=>(y(g),()=>b(g))),[y,b,g]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ae.span,l({id:d.textId},a,{ref:h})),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?(0,Pe.createPortal)(a.children,i.valueNode):null)})),eh="SelectItemIndicator",th=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e;return Km(eh,n).isSelected?(0,s.createElement)(Ae.span,l({"aria-hidden":!0},r,{ref:t})):null})),nh="SelectScrollUpButton",rh=(0,s.forwardRef)(((e,t)=>{const n=Am(nh,e.__scopeSelect),r=Um(nh,e.__scopeSelect),[o,a]=(0,s.useState)(!1),i=c(t,r.onScrollButtonChange);return Oe((()=>{if(n.viewport&&n.isPositioned){const t=n.viewport;function e(){const e=t.scrollTop>0;a(e)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?(0,s.createElement)(ih,l({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),oh="SelectScrollDownButton",ah=(0,s.forwardRef)(((e,t)=>{const n=Am(oh,e.__scopeSelect),r=Um(oh,e.__scopeSelect),[o,a]=(0,s.useState)(!1),i=c(t,r.onScrollButtonChange);return Oe((()=>{if(n.viewport&&n.isPositioned){const t=n.viewport;function e(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)}return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?(0,s.createElement)(ih,l({},e,{ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),ih=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Am("SelectScrollButton",n),i=(0,s.useRef)(null),u=mm(n),c=(0,s.useCallback)((()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)}),[]);return(0,s.useEffect)((()=>()=>c()),[c]),Oe((()=>{var e;const t=u().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[u]),(0,s.createElement)(Ae.div,l({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:_e(o.onPointerDown,(()=>{null===i.current&&(i.current=window.setInterval(r,50))})),onPointerMove:_e(o.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===i.current&&(i.current=window.setInterval(r,50))})),onPointerLeave:_e(o.onPointerLeave,(()=>{c()}))}))})),sh=(0,s.forwardRef)(((e,t)=>{const{__scopeSelect:n,...r}=e;return(0,s.createElement)(Ae.div,l({"aria-hidden":!0},r,{ref:t}))}));function lh(e){return""===e||void 0===e}const uh=(0,s.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=(0,s.useRef)(null),a=c(t,o),i=Me(n);return(0,s.useEffect)((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(i!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[i,n]),(0,s.createElement)(bs,{asChild:!0},(0,s.createElement)("select",l({},r,{ref:a,defaultValue:n})))}));function ch(e){const t=Te(e),n=(0,s.useRef)(""),r=(0,s.useRef)(0),o=(0,s.useCallback)((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),a=(0,s.useCallback)((()=>{n.current="",window.clearTimeout(r.current)}),[]);return(0,s.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),[n,o,a]}function dh(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map(((e,t)=>i[(s+t)%i.length])));var i,s;1===r.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}uh.displayName="BubbleSelect";const fh=_m,ph=Cm,mh=Dm,hh=Sm,vh=Nm,gh=Om,yh=zm,bh=Bm,wh=qm,xh=Gm,Eh=Jm,_h=th,kh=rh,Ch=ah,Th=sh,Dh=es("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Sh=es("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Nh=fh,Mh=bh,Oh=mh,Rh=s.forwardRef((({className:e,children:t,...n},r)=>(0,i.jsxs)(ph,{ref:r,className:ve("ui__select-trigger","flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,(0,i.jsx)(hh,{asChild:!0,children:(0,i.jsx)(Dh,{className:"h-4 w-4 opacity-50"})})]})));Rh.displayName=ph.displayName;const Ph=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(kh,{ref:n,className:ve("ui__select-up-button flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(Sh,{className:"h-4 w-4"})})));Ph.displayName=kh.displayName;const Ah=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Ch,{ref:n,className:ve("ui__select-down-button flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(Dh,{className:"h-4 w-4"})})));Ah.displayName=Ch.displayName;const Fh=s.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>(0,i.jsx)(vh,{children:(0,i.jsxs)(gh,{ref:o,className:ve("ui__select-content","relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[(0,i.jsx)(Ph,{}),(0,i.jsx)(yh,{className:ve("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,i.jsx)(Ah,{})]})})));Fh.displayName=gh.displayName;const jh=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(wh,{ref:n,className:ve("ui__select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));jh.displayName=wh.displayName;const Ih=s.forwardRef((({className:e,children:t,...n},r)=>(0,i.jsxs)(xh,{ref:r,className:ve("ui__select-item","relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(_h,{children:(0,i.jsx)(ts,{className:"h-4 w-4"})})}),(0,i.jsx)(Eh,{children:t})]})));Ih.displayName=xh.displayName;const Lh=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(Th,{ref:n,className:ve("ui__select-separator -mx-1 my-1 h-px bg-muted",e),...t})));Lh.displayName=Th.displayName,a("8dQZc");const Uh=es("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);s=a("8dQZc");function Vh(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function zh(e){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zh(e)}function $h(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Wh(e){$h(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===zh(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Hh(e,t){$h(2,arguments);var n=Wh(e),r=Vh(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Bh(e,t){$h(2,arguments);var n=Wh(e),r=Vh(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());return a.setMonth(n.getMonth()+r+1,0),o>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function Yh(e,t){return $h(2,arguments),Hh(e,7*Vh(t))}function qh(e,t){return $h(2,arguments),Bh(e,12*Vh(t))}function Qh(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Zh(e){$h(1,arguments);var t=Wh(e);return t.setHours(0,0,0,0),t}var Kh=864e5;function Gh(e,t){$h(2,arguments);var n=Zh(e),r=Zh(t),o=n.getTime()-Qh(n),a=r.getTime()-Qh(r);return Math.round((o-a)/Kh)}function Xh(e,t){$h(2,arguments);var n=Wh(e),r=Wh(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}var Jh={};function ev(){return Jh}function tv(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=ev(),d=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Wh(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}function nv(e){return $h(1,arguments),tv(e,{weekStartsOn:1})}function rv(e){$h(1,arguments);var t=Wh(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ov(e){return $h(1,arguments),e instanceof Date||"object"===zh(e)&&"[object Date]"===Object.prototype.toString.call(e)}function av(e){if($h(1,arguments),!ov(e)&&"number"!=typeof e)return!1;var t=Wh(e);return!isNaN(Number(t))}function iv(e,t){$h(2,arguments);var n=Wh(e).getTime(),r=Vh(t);return new Date(n+r)}function sv(e,t){return $h(2,arguments),iv(e,-Vh(t))}function lv(e){$h(1,arguments);var t=Wh(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}function uv(e){$h(1,arguments);var t=Wh(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function cv(e){$h(1,arguments);var t=Wh(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=uv(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=uv(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function dv(e){$h(1,arguments);var t=cv(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),uv(n)}var fv=6048e5;function pv(e){$h(1,arguments);var t=Wh(e),n=uv(t).getTime()-dv(t).getTime();return Math.round(n/fv)+1}function mv(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=ev(),d=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Wh(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function hv(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=Wh(e),d=c.getUTCFullYear(),f=ev(),p=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=mv(m,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var g=mv(v,t);return c.getTime()>=h.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}function vv(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=ev(),d=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=hv(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),mv(p,t)}var gv=6048e5;function yv(e,t){$h(1,arguments);var n=Wh(e),r=mv(n,t).getTime()-vv(n,t).getTime();return Math.round(r/gv)+1}function bv(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var wv={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return bv("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):bv(n+1,2)},d:function(e,t){return bv(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return bv(e.getUTCHours()%12||12,t.length)},H:function(e,t){return bv(e.getUTCHours(),t.length)},m:function(e,t){return bv(e.getUTCMinutes(),t.length)},s:function(e,t){return bv(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return bv(Math.floor(r*Math.pow(10,n-3)),t.length)}},xv="midnight",Ev="noon",_v="morning",kv="afternoon",Cv="evening",Tv="night";function Dv(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+bv(a,2)}function Sv(e,t){return e%60==0?(e>0?"-":"+")+bv(Math.abs(e)/60,2):Nv(e,t)}function Nv(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+bv(Math.floor(o/60),2)+n+bv(o%60,2)}var Mv={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return wv.y(e,t)},Y:function(e,t,n,r){var o=hv(e,r),a=o>0?o:1-o;return"YY"===t?bv(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):bv(a,t.length)},R:function(e,t){return bv(cv(e),t.length)},u:function(e,t){return bv(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return bv(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return bv(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return wv.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return bv(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=yv(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):bv(o,t.length)},I:function(e,t,n){var r=pv(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):bv(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):wv.d(e,t)},D:function(e,t,n){var r=lv(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):bv(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return bv(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return bv(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return bv(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?Ev:0===o?xv:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?Cv:o>=12?kv:o>=4?_v:Tv,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return wv.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):wv.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):bv(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):bv(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):wv.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):wv.s(e,t)},S:function(e,t){return wv.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Sv(o);case"XXXX":case"XX":return Nv(o);default:return Nv(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Sv(o);case"xxxx":case"xx":return Nv(o);default:return Nv(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Dv(o,":");default:return"GMT"+Nv(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Dv(o,":");default:return"GMT"+Nv(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return bv(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return bv((r._originalDate||e).getTime(),t.length)}},Ov=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Rv=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Pv={p:Rv,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return Ov(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Ov(o,t)).replace("{{time}}",Rv(a,t))}},Av=["D","DD"],Fv=["YY","YYYY"];function jv(e){return-1!==Av.indexOf(e)}function Iv(e){return-1!==Fv.indexOf(e)}function Lv(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Uv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vv=function(e,t,n){var r,o=Uv[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function zv(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var $v={date:zv({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zv({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:zv({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Wv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Hv(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Bv(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return i=e.valueCallback?e.valueCallback(u):u,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(s.length)}}}var Yv,qv={code:"en-US",formatDistance:Vv,formatLong:$v,formatRelative:function(e,t,n,r){return Wv[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Hv({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Hv({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Hv({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Hv({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Hv({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Yv={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Yv.matchPattern);if(!n)return null;var r=n[0],o=e.match(Yv.parsePattern);if(!o)return null;var a=Yv.valueCallback?Yv.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(r.length)}}),era:Bv({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Bv({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Bv({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Bv({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Bv({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Qv=qv,Zv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gv=/^'([^]*?)'?$/,Xv=/''/g,Jv=/[a-zA-Z]/;function eg(e,t,n){var r,o,a,i,s,l,u,c,d,f,p,m,h,v,g,y,b,w;$h(2,arguments);var x=String(t),E=ev(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:Qv,k=Vh(null!==(a=null!==(i=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==i?i:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Vh(null!==(p=null!==(m=null!==(h=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(b=E.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var T=Wh(e);if(!av(T))throw new RangeError("Invalid time value");var D=sv(T,Qh(T)),S={firstWeekContainsDate:k,weekStartsOn:C,locale:_,_originalDate:T};return x.match(Kv).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Pv[t])(e,_.formatLong):e})).join("").match(Zv).map((function(r){if("''"===r)return"'";var o,a,i=r[0];if("'"===i)return(a=(o=r).match(Gv))?a[1].replace(Xv,"'"):o;var s=Mv[i];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!Iv(r)||Lv(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!jv(r)||Lv(r,t,String(e)),s(D,r,_.localize,S);if(i.match(Jv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}function tg(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=ev(),d=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Wh(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function ng(e){return $h(1,arguments),tg(e,{weekStartsOn:1})}function rg(e){$h(1,arguments);var t=Wh(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=ng(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var i=ng(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function og(e){$h(1,arguments);var t=rg(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ng(n)}var ag=6048e5;function ig(e){$h(1,arguments);var t=Wh(e),n=ng(t).getTime()-og(t).getTime();return Math.round(n/ag)+1}function sg(e){return $h(1,arguments),Wh(e).getTime()}function lg(e){return $h(1,arguments),Math.floor(sg(e)/1e3)}function ug(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=Wh(e),d=c.getFullYear(),f=ev(),p=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(d+1,0,p),m.setHours(0,0,0,0);var h=tg(m,t),v=new Date(0);v.setFullYear(d,0,p),v.setHours(0,0,0,0);var g=tg(v,t);return c.getTime()>=h.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}function cg(e,t){var n,r,o,a,i,s,l,u;$h(1,arguments);var c=ev(),d=Vh(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=ug(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),tg(p,t)}var dg=6048e5;function fg(e,t){$h(1,arguments);var n=Wh(e),r=tg(n,t).getTime()-cg(n,t).getTime();return Math.round(r/dg)+1}var pg=6048e5;function mg(e,t,n){$h(2,arguments);var r=tg(e,n),o=tg(t,n),a=r.getTime()-Qh(r),i=o.getTime()-Qh(o);return Math.round((a-i)/pg)}function hg(e){$h(1,arguments);var t=Wh(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function vg(e){$h(1,arguments);var t=Wh(e);return t.setDate(1),t.setHours(0,0,0,0),t}function gg(e,t){return $h(1,arguments),mg(hg(e),vg(e),t)+1}function yg(e,t){$h(2,arguments);var n=Wh(e),r=Wh(t);return n.getTime()>r.getTime()}function bg(e,t){$h(2,arguments);var n=Wh(e),r=Wh(t);return n.getTime()<r.getTime()}function wg(e,t){$h(2,arguments);var n=Zh(e),r=Zh(t);return n.getTime()===r.getTime()}function xg(e,t){$h(2,arguments);var n=Wh(e),r=Wh(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Eg(e,t){$h(2,arguments);var n=Wh(e),r=Wh(t);return n.getFullYear()===r.getFullYear()}function _g(e){var t,n;if($h(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==zh(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Wh(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}function kg(e){var t,n;if($h(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==zh(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Wh(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function Cg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tg(e,t)}function Dg(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tg(e,t)}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(e)}function Ng(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Mg(e,t){if(t&&("object"===zh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cg(e)}function Og(e){var t=Ng();return function(){var n,r=Sg(e);if(t){var o=Sg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mg(this,n)}}function Rg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pg(e,t){if("object"!==zh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Ag(e){var t=Pg(e,"string");return"symbol"===zh(t)?t:String(t)}function Fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ag(r.key),r)}}function jg(e,t,n){return t&&Fg(e.prototype,t),n&&Fg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ig(e,t,n){return(t=Ag(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lg=function(){function e(){Rg(this,e),Ig(this,"priority",void 0),Ig(this,"subPriority",0)}return jg(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ug=function(e){Dg(n,e);var t=Og(n);function n(e,r,o,a,i){var s;return Rg(this,n),(s=t.call(this)).value=e,s.validateValue=r,s.setValue=o,s.priority=a,i&&(s.subPriority=i),s}return jg(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Lg),Vg=function(){function e(){Rg(this,e),Ig(this,"incompatibleTokens",void 0),Ig(this,"priority",void 0),Ig(this,"subPriority",void 0)}return jg(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Ug(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),zg=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",140),Ig(Cg(e),"incompatibleTokens",["R","u","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),$g=(Math.pow(10,8),{month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/}),Wg={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Hg(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Bg(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Yg(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function qg(e){return Bg($g.anyDigitsSigned,e)}function Qg(e,t){switch(e){case 1:return Bg($g.singleDigit,t);case 2:return Bg($g.twoDigits,t);case 3:return Bg($g.threeDigits,t);case 4:return Bg($g.fourDigits,t);default:return Bg(new RegExp("^\\d{1,"+e+"}"),t)}}function Zg(e,t){switch(e){case 1:return Bg($g.singleDigitSigned,t);case 2:return Bg($g.twoDigitsSigned,t);case 3:return Bg($g.threeDigitsSigned,t);case 4:return Bg($g.fourDigitsSigned,t);default:return Bg(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Kg(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Gg(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function Xg(e){return e%400==0||e%4==0&&e%100!=0}var Jg=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",130),Ig(Cg(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Hg(Qg(4,e),r);case"yo":return Hg(n.ordinalNumber(e,{unit:"year"}),r);default:return Hg(Qg(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Gg(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),ey=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",130),Ig(Cg(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Hg(Qg(4,e),r);case"Yo":return Hg(n.ordinalNumber(e,{unit:"year"}),r);default:return Hg(Qg(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=hv(e,r);if(n.isTwoDigitYear){var a=Gg(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),mv(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),mv(e,r)}}]),n}(Vg),ty=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",130),Ig(Cg(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t){return Zg("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),uv(r)}}]),n}(Vg),ny=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",130),Ig(Cg(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t){return Zg("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),ry=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",120),Ig(Cg(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Qg(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),oy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",120),Ig(Cg(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Qg(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),ay=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ig(Cg(e),"priority",110),e}return jg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Hg(Bg($g.month,e),r);case"MM":return Hg(Qg(2,e),r);case"Mo":return Hg(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),iy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",110),Ig(Cg(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Hg(Bg($g.month,e),r);case"LL":return Hg(Qg(2,e),r);case"Lo":return Hg(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Vg);function sy(e,t,n){$h(2,arguments);var r=Wh(e),o=Vh(t),a=yv(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}var ly=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",100),Ig(Cg(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Bg($g.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return mv(sy(e,n,r),r)}}]),n}(Vg);function uy(e,t){$h(2,arguments);var n=Wh(e),r=Vh(t),o=pv(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}var cy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",100),Ig(Cg(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Bg($g.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return uv(uy(e,n))}}]),n}(Vg),dy=[31,28,31,30,31,30,31,31,30,31,30,31],fy=[31,29,31,30,31,30,31,31,30,31,30,31],py=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"subPriority",1),Ig(Cg(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Bg($g.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){var n=Xg(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=fy[r]:t>=1&&t<=dy[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Vg),my=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"subpriority",1),Ig(Cg(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Bg($g.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return Xg(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Vg);function hy(e,t,n){var r,o,a,i,s,l,u,c;$h(2,arguments);var d=ev(),f=Vh(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==o?o:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Wh(e),m=Vh(t),h=((m%7+7)%7<f?7:0)+m-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+h),p}var vy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=hy(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Vg),gy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Hg(Qg(t.length,e),o);case"eo":return Hg(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=hy(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Vg),yy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Hg(Qg(t.length,e),o);case"co":return Hg(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=hy(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Vg);function by(e,t){$h(2,arguments);var n=Vh(t);n%7==0&&(n-=7);var r=Wh(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}var wy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",90),Ig(Cg(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Qg(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Hg(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Hg(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Hg(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Hg(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=by(e,n)).setUTCHours(0,0,0,0),e}}]),n}(Vg),xy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",80),Ig(Cg(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Kg(n),0,0,0),e}}]),n}(Vg),Ey=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",80),Ig(Cg(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Kg(n),0,0,0),e}}]),n}(Vg),_y=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",80),Ig(Cg(e),"incompatibleTokens",["a","b","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Kg(n),0,0,0),e}}]),n}(Vg),ky=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",70),Ig(Cg(e),"incompatibleTokens",["H","K","k","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Bg($g.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Vg),Cy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",70),Ig(Cg(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Bg($g.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Vg),Ty=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",70),Ig(Cg(e),"incompatibleTokens",["h","H","k","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Bg($g.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Vg),Dy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",70),Ig(Cg(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Bg($g.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Vg),Sy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",60),Ig(Cg(e),"incompatibleTokens",["t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Bg($g.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Vg),Ny=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",50),Ig(Cg(e),"incompatibleTokens",["t","T"]),e}return jg(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Bg($g.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Qg(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Vg),My=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",30),Ig(Cg(e),"incompatibleTokens",["t","T"]),e}return jg(n,[{key:"parse",value:function(e,t){return Hg(Qg(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(Vg),Oy=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",10),Ig(Cg(e),"incompatibleTokens",["t","T","x"]),e}return jg(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Yg(Wg.basicOptionalMinutes,e);case"XX":return Yg(Wg.basic,e);case"XXXX":return Yg(Wg.basicOptionalSeconds,e);case"XXXXX":return Yg(Wg.extendedOptionalSeconds,e);default:return Yg(Wg.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Vg),Ry=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",10),Ig(Cg(e),"incompatibleTokens",["t","T","X"]),e}return jg(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Yg(Wg.basicOptionalMinutes,e);case"xx":return Yg(Wg.basic,e);case"xxxx":return Yg(Wg.basicOptionalSeconds,e);case"xxxxx":return Yg(Wg.extendedOptionalSeconds,e);default:return Yg(Wg.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Vg),Py=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",40),Ig(Cg(e),"incompatibleTokens","*"),e}return jg(n,[{key:"parse",value:function(e){return qg(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Vg),Ay=function(e){Dg(n,e);var t=Og(n);function n(){var e;Rg(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Ig(Cg(e=t.call.apply(t,[this].concat(o))),"priority",20),Ig(Cg(e),"incompatibleTokens","*"),e}return jg(n,[{key:"parse",value:function(e){return qg(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Vg);new zg,new Jg,new ey,new ty,new ny,new ry,new oy,new ay,new iy,new ly,new cy,new py,new my,new vy,new gy,new yy,new wy,new xy,new Ey,new _y,new ky,new Cy,new Ty,new Dy,new Sy,new Ny,new My,new Oy,new Ry,new Py,new Ay;function Fy(e){$h(1,arguments);var t=Wh(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function jy(e,t){$h(2,arguments);var n=Wh(e),r=Vh(t),o=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(o,r,15),i.setHours(0,0,0,0);var s=Fy(i);return n.setMonth(r,Math.min(a,s)),n}function Iy(e,t){$h(2,arguments);var n=Wh(e),r=Vh(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Ly(e){$h(1,arguments);var t=Wh(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Uy(e,t){return $h(2,arguments),Hh(e,-Vh(t))}var Vy=function(){return Vy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vy.apply(this,arguments)};function zy(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var $y,Wy={exports:{}},Hy={};Wy.exports=function(){if($y)return Hy;$y=1;var e=t(s),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var s,l={},u=null,c=null;for(s in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,s)&&!i.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:u,ref:c,props:l,_owner:a.current}}return Hy.Fragment=r,Hy.jsx=l,Hy.jsxs=l,Hy}();var By=Wy.exports;function Yy(e){return"multiple"===e.mode}function qy(e){return"range"===e.mode}function Qy(e){return"single"===e.mode}var Zy={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Ky=Object.freeze({__proto__:null,formatCaption:function(e,t){return eg(e,"LLLL y",t)},formatDay:function(e,t){return eg(e,"d",t)},formatMonthCaption:function(e,t){return eg(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return eg(e,"cccccc",t)},formatYearCaption:function(e,t){return eg(e,"yyyy",t)}}),Gy=Object.freeze({__proto__:null,labelDay:function(e,t,n){return eg(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return eg(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});function Xy(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return r?a=vg(r):t&&(a=new Date(t,0,1)),o?i=rv(o):n&&(i=new Date(n,11,31)),{fromDate:a?Zh(a):void 0,toDate:i?Zh(i):void 0}}var Jy=(0,s.createContext)(void 0);function eb(e){var t,n,r,o,a,i=e.initialProps,s=(n=Zy,r=qv,o=new Date,{captionLayout:"buttons",classNames:n,formatters:Ky,labels:Gy,locale:r,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:o,mode:"default"}),l=Xy(i),u=l.fromDate,c=l.toDate,d=null!==(t=i.captionLayout)&&void 0!==t?t:s.captionLayout;"buttons"===d||u&&c||(d="buttons"),(Qy(i)||Yy(i)||qy(i))&&(a=i.onSelect);var f=Vy(Vy(Vy({},s),i),{captionLayout:d,classNames:Vy(Vy({},s.classNames),i.classNames),components:Vy({},i.components),formatters:Vy(Vy({},s.formatters),i.formatters),fromDate:u,labels:Vy(Vy({},s.labels),i.labels),mode:i.mode||s.mode,modifiers:Vy(Vy({},s.modifiers),i.modifiers),modifiersClassNames:Vy(Vy({},s.modifiersClassNames),i.modifiersClassNames),onSelect:a,styles:Vy(Vy({},s.styles),i.styles),toDate:c});return By.jsx(Jy.Provider,Vy({value:f},{children:e.children}))}function tb(){var e=(0,s.useContext)(Jy);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function nb(e){var t=tb(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return By.jsx("div",Vy({className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id},{children:a(e.displayMonth,{locale:n})}))}function rb(e){return By.jsx("svg",Vy({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:By.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ob(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,l=e.style,u=tb(),c=null!==(n=null===(t=u.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:rb;return By.jsxs("div",Vy({className:s,style:l},{children:[By.jsx("span",Vy({className:u.classNames.vhidden},{children:e["aria-label"]})),By.jsx("select",Vy({name:e.name,"aria-label":e["aria-label"],className:u.classNames.dropdown,style:u.styles.dropdown,value:o,onChange:r},{children:a})),By.jsxs("div",Vy({className:u.classNames.caption_label,style:u.styles.caption_label,"aria-hidden":"true"},{children:[i,By.jsx(c,{className:u.classNames.dropdown_icon,style:u.styles.dropdown_icon})]}))]}))}function ab(e){var t,n=tb(),r=n.fromDate,o=n.toDate,a=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,l=n.classNames,u=n.components,c=n.labels.labelMonthDropdown;if(!r)return By.jsx(By.Fragment,{});if(!o)return By.jsx(By.Fragment,{});var d=[];if(Eg(r,o))for(var f=vg(r),p=r.getMonth();p<=o.getMonth();p++)d.push(jy(f,p));else for(f=vg(new Date),p=0;p<=11;p++)d.push(jy(f,p));var m=null!==(t=null==u?void 0:u.Dropdown)&&void 0!==t?t:ob;return By.jsx(m,Vy({name:"months","aria-label":c(),className:l.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=jy(vg(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i})},{children:d.map((function(e){return By.jsx("option",Vy({value:e.getMonth()},{children:s(e,{locale:i})}),e.getMonth())}))}))}function ib(e){var t,n=e.displayMonth,r=tb(),o=r.fromDate,a=r.toDate,i=r.locale,s=r.styles,l=r.classNames,u=r.components,c=r.formatters.formatYearCaption,d=r.labels.labelYearDropdown,f=[];if(!o)return By.jsx(By.Fragment,{});if(!a)return By.jsx(By.Fragment,{});for(var p=o.getFullYear(),m=a.getFullYear(),h=p;h<=m;h++)f.push(Iy(Ly(new Date),h));var v=null!==(t=null==u?void 0:u.Dropdown)&&void 0!==t?t:ob;return By.jsx(v,Vy({name:"years","aria-label":d(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var r=Iy(vg(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:c(n,{locale:i})},{children:f.map((function(e){return By.jsx("option",Vy({value:e.getFullYear()},{children:c(e,{locale:i})}),e.getFullYear())}))}))}function sb(){var e=tb(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return a&&Xh(a,o)<0&&(o=Bh(a,-1*(l-1))),i&&Xh(o,i)<0&&(o=i),vg(o)}(e),n=function(e,t){var n=(0,s.useState)(e),r=n[0];return[void 0===t?r:t,n[1]]}(t,e.month),r=n[0],o=n[1];return[r,function(t){var n;if(!e.disableNavigation){var r=vg(t);o(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}var lb=(0,s.createContext)(void 0);function ub(e){var t=tb(),n=sb(),r=n[0],o=n[1],a=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=vg(e),a=Xh(vg(Bh(o,r)),o),i=[],s=0;s<a;s++){var l=Bh(o,s);i.push(l)}return n&&(i=i.reverse()),i}(r,t),i=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,i=r?a:1,s=vg(e);if(!n)return Bh(s,i);if(!(Xh(n,e)<a))return Bh(s,i)}}(r,t),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,i=vg(e);if(!n)return Bh(i,-a);if(!(Xh(i,n)<=0))return Bh(i,-a)}}(r,t),l=function(e){return a.some((function(t){return xg(e,t)}))},u={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:function(e,n){l(e)||(n&&bg(e,n)?o(Bh(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:s,nextMonth:i,isDateDisplayed:l};return By.jsx(lb.Provider,Vy({value:u},{children:e.children}))}function cb(){var e=(0,s.useContext)(lb);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function db(e){var t,n=tb(),r=n.classNames,o=n.styles,a=n.components,i=cb().goToMonth,s=function(t){i(Bh(t,e.displayIndex?-e.displayIndex:0))},l=null!==(t=null==a?void 0:a.CaptionLabel)&&void 0!==t?t:nb,u=By.jsx(l,{id:e.id,displayMonth:e.displayMonth});return By.jsxs("div",Vy({className:r.caption_dropdowns,style:o.caption_dropdowns},{children:[By.jsx("div",Vy({className:r.vhidden},{children:u})),By.jsx(ab,{onChange:s,displayMonth:e.displayMonth}),By.jsx(ib,{onChange:s,displayMonth:e.displayMonth})]}))}function fb(e){return By.jsx("svg",Vy({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:By.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function pb(e){return By.jsx("svg",Vy({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:By.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var mb=(0,s.forwardRef)((function(e,t){var n=tb(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),s=Vy(Vy({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),By.jsx("button",Vy({},e,{ref:t,type:"button",className:i,style:s}))}));function hb(e){var t,n,r=tb(),o=r.dir,a=r.locale,i=r.classNames,s=r.styles,l=r.labels,u=l.labelPrevious,c=l.labelNext,d=r.components;if(!e.nextMonth&&!e.previousMonth)return By.jsx(By.Fragment,{});var f=u(e.previousMonth,{locale:a}),p=[i.nav_button,i.nav_button_previous].join(" "),m=c(e.nextMonth,{locale:a}),h=[i.nav_button,i.nav_button_next].join(" "),v=null!==(t=null==d?void 0:d.IconRight)&&void 0!==t?t:pb,g=null!==(n=null==d?void 0:d.IconLeft)&&void 0!==n?n:fb;return By.jsxs("div",Vy({className:i.nav,style:s.nav},{children:[!e.hidePrevious&&By.jsx(mb,Vy({name:"previous-month","aria-label":f,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},{children:"rtl"===o?By.jsx(v,{className:i.nav_icon,style:s.nav_icon}):By.jsx(g,{className:i.nav_icon,style:s.nav_icon})})),!e.hideNext&&By.jsx(mb,Vy({name:"next-month","aria-label":m,className:h,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},{children:"rtl"===o?By.jsx(g,{className:i.nav_icon,style:s.nav_icon}):By.jsx(v,{className:i.nav_icon,style:s.nav_icon})}))]}))}function vb(e){var t=tb().numberOfMonths,n=cb(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,i=n.displayMonths,s=i.findIndex((function(t){return xg(e.displayMonth,t)})),l=0===s,u=s===i.length-1,c=t>1&&(l||!u),d=t>1&&(u||!l);return By.jsx(hb,{displayMonth:e.displayMonth,hideNext:c,hidePrevious:d,nextMonth:o,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){o&&a(o)}})}function gb(e){var t,n,r=tb(),o=r.classNames,a=r.disableNavigation,i=r.styles,s=r.captionLayout,l=r.components,u=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:nb;return n=a?By.jsx(u,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?By.jsx(db,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?By.jsxs(By.Fragment,{children:[By.jsx(db,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),By.jsx(vb,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):By.jsxs(By.Fragment,{children:[By.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),By.jsx(vb,{displayMonth:e.displayMonth,id:e.id})]}),By.jsx("div",Vy({className:o.caption,style:i.caption},{children:n}))}function yb(e){var t=tb(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?By.jsx("tfoot",Vy({className:o,style:r.tfoot},{children:By.jsx("tr",{children:By.jsx("td",Vy({colSpan:8},{children:n}))})})):By.jsx(By.Fragment,{})}function bb(){var e=tb(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=function(e,t,n){for(var r=n?ng(new Date):tg(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=Hh(r,a);o.push(i)}return o}(o,a,i);return By.jsxs("tr",Vy({style:n.head_row,className:t.head_row},{children:[r&&By.jsx("td",{style:n.head_cell,className:t.head_cell}),u.map((function(e,r){return By.jsx("th",Vy({scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(e,{locale:o})},{children:s(e,{locale:o})}),r)}))]}))}function wb(){var e,t=tb(),n=t.classNames,r=t.styles,o=t.components,a=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:bb;return By.jsx("thead",Vy({style:r.head,className:n.head},{children:By.jsx(a,{})}))}function xb(e){var t=tb(),n=t.locale,r=t.formatters.formatDay;return By.jsx(By.Fragment,{children:r(e.date,{locale:n})})}var Eb=(0,s.createContext)(void 0);function _b(e){if(!Yy(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return By.jsx(Eb.Provider,Vy({value:t},{children:e.children}))}return By.jsx(kb,{initialProps:e.initialProps,children:e.children})}function kb(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,i={disabled:[]};r&&i.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return wg(t,e)}));return Boolean(t&&!n)}));var s={selected:r,onDayClick:function(e,n,i){var s,l;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,i),!Boolean(n.selected&&o&&(null==r?void 0:r.length)===o))&&!Boolean(!n.selected&&a&&(null==r?void 0:r.length)===a)){var u=r?zy([],r,!0):[];if(n.selected){var c=u.findIndex((function(t){return wg(e,t)}));u.splice(c,1)}else u.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,u,e,n,i)}},modifiers:i};return By.jsx(Eb.Provider,Vy({value:s},{children:n}))}function Cb(){var e=(0,s.useContext)(Eb);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var Tb,Db,Sb=(0,s.createContext)(void 0);function Nb(e){if(!qy(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return By.jsx(Sb.Provider,Vy({value:t},{children:e.children}))}return By.jsx(Mb,{initialProps:e.initialProps,children:e.children})}function Mb(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,i=o.to,s=t.min,l=t.max,u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(u.range_start=[a],i?(u.range_end=[i],wg(a,i)||(u.range_middle=[{after:a,before:i}])):u.range_end=[a]):i&&(u.range_start=[i],u.range_end=[i]),s&&(a&&!i&&u.disabled.push({after:Uy(a,s-1),before:Hh(a,s-1)}),a&&i&&u.disabled.push({after:a,before:Hh(a,s-1)}),!a&&i&&u.disabled.push({after:Uy(i,s-1),before:Hh(i,s-1)})),l){if(a&&!i&&(u.disabled.push({before:Hh(a,1-l)}),u.disabled.push({after:Hh(a,l-1)})),a&&i){var c=l-(Gh(i,a)+1);u.disabled.push({before:Uy(a,c)}),u.disabled.push({after:Hh(i,c)})}!a&&i&&(u.disabled.push({before:Hh(i,1-l)}),u.disabled.push({after:Hh(i,l-1)}))}return By.jsx(Sb.Provider,Vy({value:{selected:r,onDayClick:function(e,n,o){var a,i;null===(a=t.onDayClick)||void 0===a||a.call(t,e,n,o);var s=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(wg(o,e)&&wg(r,e))return;if(wg(o,e))return{from:o,to:void 0};if(wg(r,e))return;return yg(r,e)?{from:e,to:o}:{from:r,to:e}}return o?yg(e,o)?{from:o,to:e}:{from:e,to:o}:r?bg(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,r);null===(i=t.onSelect)||void 0===i||i.call(t,s,e,n,o)},modifiers:u}},{children:n}))}function Ob(){var e=(0,s.useContext)(Sb);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Rb(e){return Array.isArray(e)?zy([],e,!0):void 0!==e?[e]:[]}(Db=Tb||(Tb={})).Outside="outside",Db.Disabled="disabled",Db.Selected="selected",Db.Hidden="hidden",Db.Today="today",Db.RangeStart="range_start",Db.RangeEnd="range_end",Db.RangeMiddle="range_middle";var Pb=Tb.Selected,Ab=Tb.Disabled,Fb=Tb.Hidden,jb=Tb.Today,Ib=Tb.RangeEnd,Lb=Tb.RangeMiddle,Ub=Tb.RangeStart,Vb=Tb.Outside;var zb=(0,s.createContext)(void 0);function $b(e){var t=tb(),n=function(e,t,n){var r,o=((r={})[Pb]=Rb(e.selected),r[Ab]=Rb(e.disabled),r[Fb]=Rb(e.hidden),r[jb]=[e.today],r[Ib]=[],r[Lb]=[],r[Ub]=[],r[Vb]=[],r);return e.fromDate&&o[Ab].push({before:e.fromDate}),e.toDate&&o[Ab].push({after:e.toDate}),Yy(e)?o[Ab]=o[Ab].concat(t.modifiers[Ab]):qy(e)&&(o[Ab]=o[Ab].concat(n.modifiers[Ab]),o[Ub]=n.modifiers[Ub],o[Lb]=n.modifiers[Lb],o[Ib]=n.modifiers[Ib]),o}(t,Cb(),Ob()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=Rb(r)})),t}(t.modifiers),o=Vy(Vy({},n),r);return By.jsx(zb.Provider,Vy({value:o},{children:e.children}))}function Wb(){var e=(0,s.useContext)(zb);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Hb(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(ov(t))return wg(e,t);var n,r,o,a,i;if(function(e){return Array.isArray(e)&&e.every(ov)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return n=e,a=(r=t).from,i=r.to,a&&i?(Gh(i,a)<0&&(a=(o=[i,a])[0],i=o[1]),Gh(n,a)>=0&&Gh(i,n)>=0):i?wg(i,n):!!a&&wg(a,n);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var s=Gh(t.before,e)>0,l=Gh(t.after,e)<0;return yg(t.before,t.after)?l&&s:s||l}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?Gh(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?Gh(t.before,e)>0:"function"==typeof t&&t(e)}))}function Bb(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return Hb(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!xg(e,n)&&(o.outside=!0),o}var Yb=365;function qb(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=void 0===i?{count:0,lastFocused:e}:i,l=o.weekStartsOn,u=o.fromDate,c=o.toDate,d=o.locale,f={day:Hh,week:Yh,month:Bh,year:qh,startOfWeek:function(e){return o.ISOWeek?ng(e):tg(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?nv(e):tv(e,{locale:d,weekStartsOn:l})}}[n](e,"after"===r?1:-1);"before"===r&&u?f=_g([u,f]):"after"===r&&c&&(f=kg([c,f]));var p=!0;if(a){var m=Bb(f,a);p=!m.disabled&&!m.hidden}return p?f:s.count>Yb?s.lastFocused:qb(f,{moveBy:n,direction:r,context:o,modifiers:a,retry:Vy(Vy({},s),{count:s.count+1})})}var Qb=(0,s.createContext)(void 0);function Zb(e){var t=cb(),n=Wb(),r=(0,s.useState)(),o=r[0],a=r[1],i=(0,s.useState)(),l=i[0],u=i[1],c=function(e,t){for(var n,r,o=vg(e[0]),a=rv(e[e.length-1]),i=o;i<=a;){var s=Bb(i,t);if(s.disabled||s.hidden)i=Hh(i,1);else{if(s.selected)return i;s.today&&!r&&(r=i),n||(n=i),i=Hh(i,1)}}return r||n}(t.displayMonths,n),d=(null!=o?o:l&&t.isDateDisplayed(l))?l:c,f=function(e){a(e)},p=tb(),m=function(e,r){if(o){var a=qb(o,{moveBy:e,direction:r,context:p,modifiers:n});wg(o,a)||(t.goToDate(a,o),f(a))}},h={focusedDay:o,focusTarget:d,blur:function(){u(o),a(void 0)},focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return By.jsx(Qb.Provider,Vy({value:h},{children:e.children}))}function Kb(){var e=(0,s.useContext)(Qb);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Gb=(0,s.createContext)(void 0);function Xb(e){if(!Qy(e.initialProps)){var t={selected:void 0};return By.jsx(Gb.Provider,Vy({value:t},{children:e.children}))}return By.jsx(Jb,{initialProps:e.initialProps,children:e.children})}function Jb(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var o,a,i;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r),!n.selected||t.required?null===(i=t.onSelect)||void 0===i||i.call(t,e,e,n,r):null===(a=t.onSelect)||void 0===a||a.call(t,void 0,e,n,r)}};return By.jsx(Gb.Provider,Vy({value:r},{children:n}))}function ew(){var e=(0,s.useContext)(Gb);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function tw(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(Tb).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}function nw(e,t,n){var r,o,a,i=tb(),l=Kb(),u=function(e,t){return Bb(e,Wb(),t)}(e,t),c=function(e,t){var n=tb(),r=ew(),o=Cb(),a=Ob(),i=Kb(),s=i.focusDayAfter,l=i.focusDayBefore,u=i.focusWeekAfter,c=i.focusWeekBefore,d=i.blur,f=i.focus,p=i.focusMonthBefore,m=i.focusMonthAfter,h=i.focusYearBefore,v=i.focusYearAfter,g=i.focusStartOfWeek,y=i.focusEndOfWeek,b={onClick:function(i){var s,l,u,c;Qy(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):Yy(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):qy(n)?null===(u=a.onDayClick)||void 0===u||u.call(a,e,t,i):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),u();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),c();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?h():p();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?v():m();break;case"Home":r.preventDefault(),r.stopPropagation(),g();break;case"End":r.preventDefault(),r.stopPropagation(),y()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return b}(e,u),d=function(){var e=tb(),t=ew(),n=Cb(),r=Ob();return Qy(e)?t.selected:Yy(e)?n.selected:qy(e)?r.selected:void 0}(),f=Boolean(i.onDayClick||"default"!==i.mode);(0,s.useEffect)((function(){var t;u.outside||l.focusedDay&&f&&wg(l.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())}),[l.focusedDay,e,n,f,u.outside]);var p=tw(i,u).join(" "),m=function(e,t){var n=Vy({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=Vy(Vy({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(i,u),h=Boolean(u.outside&&!i.showOutsideDays||u.hidden),v=null!==(a=null===(o=i.components)||void 0===o?void 0:o.DayContent)&&void 0!==a?a:xb,g={style:m,className:p,children:By.jsx(v,{date:e,displayMonth:t,activeModifiers:u}),role:"gridcell"},y=l.focusTarget&&wg(l.focusTarget,e)&&!u.outside,b=l.focusedDay&&wg(l.focusedDay,e),w=Vy(Vy(Vy({},g),((r={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,r.tabIndex=b||y?0:-1,r)),c);return{isButton:f,isHidden:h,activeModifiers:u,selectedDays:d,buttonProps:w,divProps:g}}function rw(e){var t=(0,s.useRef)(null),n=nw(e.date,e.displayMonth,t);return n.isHidden?By.jsx("div",{role:"gridcell"}):n.isButton?By.jsx(mb,Vy({name:"day",ref:t},n.buttonProps)):By.jsx("div",Vy({},n.divProps))}function ow(e){var t=e.number,n=e.dates,r=tb(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,s=r.locale,l=r.labels.labelWeekNumber,u=(0,r.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return By.jsx("span",Vy({className:i.weeknumber,style:a.weeknumber},{children:u}));var c=l(Number(t),{locale:s});return By.jsx(mb,Vy({name:"week-number","aria-label":c,className:i.weeknumber,style:a.weeknumber,onClick:function(e){o(t,n,e)}},{children:u}))}function aw(e){var t,n,r,o=tb(),a=o.styles,i=o.classNames,s=o.showWeekNumber,l=o.components,u=null!==(t=null==l?void 0:l.Day)&&void 0!==t?t:rw,c=null!==(n=null==l?void 0:l.WeekNumber)&&void 0!==n?n:ow;return s&&(r=By.jsx("td",Vy({className:i.cell,style:a.cell},{children:By.jsx(c,{number:e.weekNumber,dates:e.dates})}))),By.jsxs("tr",Vy({className:i.row,style:a.row},{children:[r,e.dates.map((function(t){return By.jsx("td",Vy({className:i.cell,style:a.cell,role:"presentation"},{children:By.jsx(u,{displayMonth:e.displayMonth,date:t})}),lg(t))}))]}))}function iw(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?nv(t):tv(t,n),o=(null==n?void 0:n.ISOWeek)?ng(e):tg(e,n),a=Gh(r,o),i=[],s=0;s<=a;s++)i.push(Hh(o,s));return i.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?ig(t):fg(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[])}function sw(e){var t,n,r,o=tb(),a=o.locale,i=o.classNames,s=o.styles,l=o.hideHead,u=o.fixedWeeks,c=o.components,d=o.weekStartsOn,f=o.firstWeekContainsDate,p=o.ISOWeek,m=function(e,t){var n=iw(vg(e),rv(e),t);if(null==t?void 0:t.useFixedWeeks){var r=gg(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],i=Yh(a,6-r),s=iw(Yh(a,1),i,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(u),ISOWeek:p,locale:a,weekStartsOn:d,firstWeekContainsDate:f}),h=null!==(t=null==c?void 0:c.Head)&&void 0!==t?t:wb,v=null!==(n=null==c?void 0:c.Row)&&void 0!==n?n:aw,g=null!==(r=null==c?void 0:c.Footer)&&void 0!==r?r:yb;return By.jsxs("table",Vy({id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},{children:[!l&&By.jsx(h,{}),By.jsx("tbody",Vy({className:i.tbody,style:s.tbody},{children:m.map((function(t){return By.jsx(v,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)}))})),By.jsx(g,{displayMonth:e.displayMonth})]}))}var lw="undefined"!=typeof window&&window.document&&window.document.createElement?s.useLayoutEffect:s.useEffect,uw=!1,cw=0;function dw(){return"react-day-picker-".concat(++cw)}function fw(e){var t,n,r=tb(),o=r.dir,a=r.classNames,i=r.styles,l=r.components,u=cb().displayMonths,c=function(e){var t,n=null!=e?e:uw?dw():null,r=(0,s.useState)(n),o=r[0],a=r[1];return lw((function(){null===o&&a(dw())}),[]),(0,s.useEffect)((function(){!1===uw&&(uw=!0)}),[]),null!==(t=null!=e?e:o)&&void 0!==t?t:void 0}(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),d=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],p=i.month,m=0===e.displayIndex,h=e.displayIndex===u.length-1,v=!m&&!h;"rtl"===o&&(h=(t=[m,h])[0],m=t[1]),m&&(f.push(a.caption_start),p=Vy(Vy({},p),i.caption_start)),h&&(f.push(a.caption_end),p=Vy(Vy({},p),i.caption_end)),v&&(f.push(a.caption_between),p=Vy(Vy({},p),i.caption_between));var g=null!==(n=null==l?void 0:l.Caption)&&void 0!==n?n:gb;return By.jsxs("div",Vy({className:f.join(" "),style:p},{children:[By.jsx(g,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),By.jsx(sw,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth})]}),e.displayIndex)}function pw(e){var t=tb(),n=t.classNames,r=t.styles;return By.jsx("div",Vy({className:n.months,style:r.months},{children:e.children}))}function mw(e){var t,n,r=e.initialProps,o=tb(),a=Kb(),i=cb(),l=(0,s.useState)(!1),u=l[0],c=l[1];(0,s.useEffect)((function(){o.initialFocus&&a.focusTarget&&(u||(a.focus(a.focusTarget),c(!0)))}),[o.initialFocus,u,a.focus,a.focusTarget,a]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=Vy(Vy({},o.styles.root),o.style),p=Object.keys(r).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return Vy(Vy({},e),((n={})[t]=r[t],n))}),{}),m=null!==(n=null===(t=r.components)||void 0===t?void 0:t.Months)&&void 0!==n?n:pw;return By.jsx("div",Vy({className:d.join(" "),style:f,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},p,{children:By.jsx(m,{children:i.displayMonths.map((function(e,t){return By.jsx(fw,{displayIndex:t,displayMonth:e},t)}))})}))}function hw(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return By.jsx(eb,Vy({initialProps:n},{children:By.jsx(ub,{children:By.jsx(Xb,Vy({initialProps:n},{children:By.jsx(_b,Vy({initialProps:n},{children:By.jsx(Nb,Vy({initialProps:n},{children:By.jsx($b,{children:By.jsx(Zb,{children:t})})}))}))}))})}))}function vw(e){return By.jsx(hw,Vy({},e,{children:By.jsx(mw,{initialProps:e})}))}function gw({className:e,classNames:t,showOutsideDays:n=!0,...r}){return(0,i.jsx)(vw,{showOutsideDays:n,className:ve("ui__calendar p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ve(we({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-transparent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ve(we({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"rounded-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...e})=>(0,i.jsx)(Uh,{className:"h-4 w-4"}),IconRight:({...e})=>(0,i.jsx)(ns,{className:"h-4 w-4"})},...r})}gw.displayName="Calendar";s=a("8dQZc"),s=a("8dQZc");const yw="Popover",[bw,ww]=ke(yw,[mr]),xw=mr(),[Ew,_w]=bw(yw),kw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=xw(t),u=(0,s.useRef)(null),[c,d]=(0,s.useState)(!1),[f=!1,p]=De({prop:r,defaultProp:o,onChange:a});return(0,s.createElement)(Mr,l,(0,s.createElement)(Ew,{scope:t,contentId:$t(),triggerRef:u,open:f,onOpenChange:p,onOpenToggle:(0,s.useCallback)((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:(0,s.useCallback)((()=>d(!0)),[]),onCustomAnchorRemove:(0,s.useCallback)((()=>d(!1)),[]),modal:i},n))},Cw="PopoverTrigger",Tw=(0,s.forwardRef)(((e,t)=>{const{__scopePopover:n,...r}=e,o=_w(Cw,n),a=xw(n),i=c(t,o.triggerRef),u=(0,s.createElement)(Ae.button,l({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jw(o.open)},r,{ref:i,onClick:_e(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?u:(0,s.createElement)(Or,l({asChild:!0},a),u)})),Dw="PopoverPortal",[Sw,Nw]=bw(Dw,{forceMount:void 0}),Mw=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=_w(Dw,t);return(0,s.createElement)(Sw,{scope:t,forceMount:n},(0,s.createElement)(Fr,{present:n||a.open},(0,s.createElement)(Ar,{asChild:!0,container:o},r)))},Ow="PopoverContent",Rw=(0,s.forwardRef)(((e,t)=>{const n=Nw(Ow,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=_w(Ow,e.__scopePopover);return(0,s.createElement)(Fr,{present:r||a.open},a.modal?(0,s.createElement)(Pw,l({},o,{ref:t})):(0,s.createElement)(Aw,l({},o,{ref:t})))})),Pw=(0,s.forwardRef)(((e,t)=>{const n=_w(Ow,e.__scopePopover),r=(0,s.useRef)(null),o=c(t,r),a=(0,s.useRef)(!1);return(0,s.useEffect)((()=>{const e=r.current;if(e)return lo(e)}),[]),(0,s.createElement)(Qo,{as:d,allowPinchZoom:!0},(0,s.createElement)(Fw,l({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:_e(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:_e(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),Aw=(0,s.forwardRef)(((e,t)=>{const n=_w(Ow,e.__scopePopover),r=(0,s.useRef)(!1),o=(0,s.useRef)(!1);return(0,s.createElement)(Fw,l({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Fw=(0,s.forwardRef)(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,m=_w(Ow,n),h=xw(n);return St(),(0,s.createElement)(Pt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},(0,s.createElement)(xt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1)},(0,s.createElement)(Rr,l({"data-state":jw(m.open),role:"dialog",id:m.contentId},h,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}));function jw(e){return e?"open":"closed"}const Iw=Mw,Lw=Rw,Uw=kw,Vw=Tw,zw=s.forwardRef((({className:e,align:t="center",sideOffset:n=4,...r},o)=>(0,i.jsx)(Iw,{children:(0,i.jsx)(Lw,{ref:o,align:t,sideOffset:n,className:ve("ui__popover-content","z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})})));zw.displayName=Lw.displayName;s=a("8dQZc"),s=a("8dQZc");const $w="Dialog",[Ww,Hw]=ke($w),[Bw,Yw]=Ww($w),qw=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=(0,s.useRef)(null),u=(0,s.useRef)(null),[c=!1,d]=De({prop:r,defaultProp:o,onChange:a});return(0,s.createElement)(Bw,{scope:t,triggerRef:l,contentRef:u,contentId:$t(),titleId:$t(),descriptionId:$t(),open:c,onOpenChange:d,onOpenToggle:(0,s.useCallback)((()=>d((e=>!e))),[d]),modal:i},n)},Qw="DialogTrigger",Zw=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yw(Qw,n),a=c(t,o.triggerRef);return(0,s.createElement)(Ae.button,l({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mx(o.open)},r,{ref:a,onClick:_e(e.onClick,o.onOpenToggle)}))})),Kw="DialogPortal",[Gw,Xw]=Ww(Kw,{forceMount:void 0}),Jw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Yw(Kw,t);return(0,s.createElement)(Gw,{scope:t,forceMount:n},s.Children.map(r,(e=>(0,s.createElement)(Fr,{present:n||a.open},(0,s.createElement)(Ar,{asChild:!0,container:o},e)))))},ex="DialogOverlay",tx=(0,s.forwardRef)(((e,t)=>{const n=Xw(ex,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Yw(ex,e.__scopeDialog);return a.modal?(0,s.createElement)(Fr,{present:r||a.open},(0,s.createElement)(nx,l({},o,{ref:t}))):null})),nx=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yw(ex,n);return(0,s.createElement)(Qo,{as:d,allowPinchZoom:!0,shards:[o.contentRef]},(0,s.createElement)(Ae.div,l({"data-state":mx(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),rx="DialogContent",ox=(0,s.forwardRef)(((e,t)=>{const n=Xw(rx,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Yw(rx,e.__scopeDialog);return(0,s.createElement)(Fr,{present:r||a.open},a.modal?(0,s.createElement)(ax,l({},o,{ref:t})):(0,s.createElement)(ix,l({},o,{ref:t})))})),ax=(0,s.forwardRef)(((e,t)=>{const n=Yw(rx,e.__scopeDialog),r=(0,s.useRef)(null),o=c(t,n.contentRef,r);return(0,s.useEffect)((()=>{const e=r.current;if(e)return lo(e)}),[]),(0,s.createElement)(sx,l({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:_e(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:_e(e.onFocusOutside,(e=>e.preventDefault()))}))})),ix=(0,s.forwardRef)(((e,t)=>{const n=Yw(rx,e.__scopeDialog),r=(0,s.useRef)(!1),o=(0,s.useRef)(!1);return(0,s.createElement)(sx,l({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),sx=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,u=Yw(rx,n),d=c(t,(0,s.useRef)(null));return St(),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Pt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},(0,s.createElement)(xt,l({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":mx(u.open)},i,{ref:d,onDismiss:()=>u.onOpenChange(!1)}))),!1)})),lx="DialogTitle",ux=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yw(lx,n);return(0,s.createElement)(Ae.h2,l({id:o.titleId},r,{ref:t}))})),cx="DialogDescription",dx=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yw(cx,n);return(0,s.createElement)(Ae.p,l({id:o.descriptionId},r,{ref:t}))})),fx="DialogClose",px=(0,s.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Yw(fx,n);return(0,s.createElement)(Ae.button,l({type:"button"},r,{ref:t,onClick:_e(e.onClick,(()=>o.onOpenChange(!1)))}))}));function mx(e){return e?"open":"closed"}const hx="DialogTitleWarning",[vx,gx]=function(e,t){const n=(0,s.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,s.useMemo)((()=>r),Object.values(r));return(0,s.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=(0,s.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(hx,{contentName:rx,titleName:lx,docsSlug:"dialog"}),yx=qw,bx=Zw,wx=Jw,xx=tx,Ex=ox,_x=ux,kx=dx,Cx=px,Tx=yx,Dx=bx,Sx=wx,Nx=Cx,Mx=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(xx,{ref:n,className:ve("ui__dialog-overlay","fixed inset-0 z-50 bg-background/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})));Mx.displayName=xx.displayName;const Ox=s.forwardRef((({className:e,children:t,...n},r)=>(0,i.jsx)(Sx,{children:(0,i.jsx)(Mx,{children:(0,i.jsxs)(Ex,{ref:r,className:ve("ui__dialog-content","fixed left-[50%] top-[50%] z-50 grid w-full max-w-xl translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,(0,i.jsxs)(Cx,{className:"ui__dialog-close absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,i.jsx)(ll,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})})})));Ox.displayName=Ex.displayName;const Rx=({className:e,...t})=>(0,i.jsx)("div",{className:ve("ui__dialog-header","flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Rx.displayName="DialogHeader";const Px=({className:e,...t})=>(0,i.jsx)("div",{className:ve("ui__dialog-footer","flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Px.displayName="DialogFooter";const Ax=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(_x,{ref:n,className:ve("ui__dialog-title","text-lg font-semibold leading-none tracking-tight",e),...t})));Ax.displayName=_x.displayName;const Fx=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(kx,{ref:n,className:ve("ui__dialog-description text-sm text-muted-foreground",e),...t})));Fx.displayName=kx.displayName;s=a("8dQZc"),s=a("8dQZc");const jx="AlertDialog",[Ix,Lx]=ke(jx,[Hw]),Ux=Hw(),Vx=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ux(t);return(0,s.createElement)(yx,l({},r,n,{modal:!0}))},zx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ux(n);return(0,s.createElement)(bx,l({},o,r,{ref:t}))})),$x=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ux(t);return(0,s.createElement)(wx,l({},r,n))},Wx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ux(n);return(0,s.createElement)(xx,l({},o,r,{ref:t}))})),Hx="AlertDialogContent",[Bx,Yx]=Ix(Hx),qx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Ux(n),i=c(t,(0,s.useRef)(null)),u=(0,s.useRef)(null);return(0,s.createElement)(vx,{contentName:Hx,titleName:Qx,docsSlug:"alert-dialog"},(0,s.createElement)(Bx,{scope:n,cancelRef:u},(0,s.createElement)(Ex,l({role:"alertdialog"},a,o,{ref:i,onOpenAutoFocus:_e(o.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=u.current)||void 0===t||t.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),(0,s.createElement)(p,null,r),!1)))})),Qx="AlertDialogTitle",Zx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ux(n);return(0,s.createElement)(_x,l({},o,r,{ref:t}))})),Kx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ux(n);return(0,s.createElement)(kx,l({},o,r,{ref:t}))})),Gx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ux(n);return(0,s.createElement)(Cx,l({},o,r,{ref:t}))})),Xx="AlertDialogCancel",Jx=(0,s.forwardRef)(((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=Yx(Xx,n),a=Ux(n),i=c(t,o);return(0,s.createElement)(Cx,l({},a,r,{ref:i}))})),eE=Wx,tE=qx,nE=Gx,rE=Jx,oE=Zx,aE=Kx,iE=Vx,sE=zx,lE=$x,uE=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(eE,{className:ve("ui__alert-dialog-overlay","fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n})));uE.displayName=eE.displayName;const cE=s.forwardRef((({className:e,...t},n)=>(0,i.jsxs)(lE,{children:[(0,i.jsx)(uE,{}),(0,i.jsx)(tE,{ref:n,className:ve("ui__alert-dialog-content","fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]})));cE.displayName=tE.displayName;const dE=({className:e,...t})=>(0,i.jsx)("div",{className:ve("flex flex-col space-y-2 text-center sm:text-left",e),...t});dE.displayName="AlertDialogHeader";const fE=({className:e,...t})=>(0,i.jsx)("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fE.displayName="AlertDialogFooter";const pE=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(oE,{ref:n,className:ve("text-lg font-semibold",e),...t})));pE.displayName=oE.displayName;const mE=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(aE,{ref:n,className:ve("text-sm text-muted-foreground",e),...t})));mE.displayName=aE.displayName;const hE=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(nE,{ref:n,className:ve(we(),e),...t})));hE.displayName=nE.displayName;const vE=s.forwardRef((({className:e,...t},n)=>(0,i.jsx)(rE,{ref:n,className:ve(we({variant:"outline"}),"mt-2 sm:mt-0",e),...t})));vE.displayName=rE.displayName;s=a("8dQZc"),s=a("8dQZc");const[gE,yE]=ke("Tooltip",[mr]),bE=mr(),wE="TooltipProvider",xE=700,EE="tooltip.open",[_E,kE]=gE(wE),CE=e=>{const{__scopeTooltip:t,delayDuration:n=xE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=(0,s.useState)(!0),u=(0,s.useRef)(!1),c=(0,s.useRef)(0);return(0,s.useEffect)((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),(0,s.createElement)(_E,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:(0,s.useCallback)((()=>{window.clearTimeout(c.current),l(!1)}),[]),onClose:(0,s.useCallback)((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:(0,s.useCallback)((e=>{u.current=e}),[]),disableHoverableContent:o},a)},TE="Tooltip",[DE,SE]=gE(TE),NE=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,u=kE(TE,e.__scopeTooltip),c=bE(t),[d,f]=(0,s.useState)(null),p=$t(),m=(0,s.useRef)(0),h=null!=i?i:u.disableHoverableContent,v=null!=l?l:u.delayDuration,g=(0,s.useRef)(!1),[y=!1,b]=De({prop:r,defaultProp:o,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(EE))):u.onClose(),null==a||a(e)}}),w=(0,s.useMemo)((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=(0,s.useCallback)((()=>{window.clearTimeout(m.current),g.current=!1,b(!0)}),[b]),E=(0,s.useCallback)((()=>{window.clearTimeout(m.current),b(!1)}),[b]),_=(0,s.useCallback)((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{g.current=!0,b(!0)}),v)}),[v,b]);return(0,s.useEffect)((()=>()=>window.clearTimeout(m.current)),[]),(0,s.createElement)(Mr,c,(0,s.createElement)(DE,{scope:t,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:(0,s.useCallback)((()=>{u.isOpenDelayed?_():x()}),[u.isOpenDelayed,_,x]),onTriggerLeave:(0,s.useCallback)((()=>{h?E():window.clearTimeout(m.current)}),[E,h]),onOpen:x,onClose:E,disableHoverableContent:h},n))},ME="TooltipTrigger",OE=(0,s.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=SE(ME,n),a=kE(ME,n),i=bE(n),u=c(t,(0,s.useRef)(null),o.onTriggerChange),d=(0,s.useRef)(!1),f=(0,s.useRef)(!1),p=(0,s.useCallback)((()=>d.current=!1),[]);return(0,s.useEffect)((()=>()=>document.removeEventListener("pointerup",p)),[p]),(0,s.createElement)(Or,l({asChild:!0},i),(0,s.createElement)(Ae.button,l({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:_e(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(f.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),f.current=!0))})),onPointerLeave:_e(e.onPointerLeave,(()=>{o.onTriggerLeave(),f.current=!1})),onPointerDown:_e(e.onPointerDown,(()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})})),onFocus:_e(e.onFocus,(()=>{d.current||o.onOpen()})),onBlur:_e(e.onBlur,o.onClose),onClick:_e(e.onClick,o.onClose)})))})),RE="TooltipPortal",[PE,AE]=gE(RE,{forceMount:void 0}),FE="TooltipContent",jE=(0,s.forwardRef)(((e,t)=>{const n=AE(FE,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=SE(FE,e.__scopeTooltip);return(0,s.createElement)(Fr,{present:r||i.open},i.disableHoverableContent?(0,s.createElement)(VE,l({side:o},a,{ref:t})):(0,s.createElement)(IE,l({side:o},a,{ref:t})))})),IE=(0,s.forwardRef)(((e,t)=>{const n=SE(FE,e.__scopeTooltip),r=kE(FE,e.__scopeTooltip),o=(0,s.useRef)(null),a=c(t,o),[i,u]=(0,s.useState)(null),{trigger:d,onClose:f}=n,p=o.current,{onPointerInTransitChange:m}=r,h=(0,s.useCallback)((()=>{u(null),m(!1)}),[m]),v=(0,s.useCallback)(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);u(a),m(!0)}),[m]);return(0,s.useEffect)((()=>()=>h()),[h]),(0,s.useEffect)((()=>{if(d&&p){const e=e=>v(e,p),t=e=>v(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}}),[d,p,v,h]),(0,s.useEffect)((()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e].x,s=t[e].y,l=t[a].x,u=t[a].y;s>r!=u>r&&n<(l-i)*(r-s)/(u-s)+i&&(o=!o)}return o}(n,i);r?h():o&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,p,i,f,h]),(0,s.createElement)(VE,l({},e,{ref:a}))})),[LE,UE]=gE(TE,{isInside:!1}),VE=(0,s.forwardRef)(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...u}=e,c=SE(FE,n),d=bE(n),{onClose:f}=c;return(0,s.useEffect)((()=>(document.addEventListener(EE,f),()=>document.removeEventListener(EE,f))),[f]),(0,s.useEffect)((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,f]),(0,s.createElement)(xt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:f},(0,s.createElement)(Rr,l({"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)"}}),(0,s.createElement)(p,null,r),(0,s.createElement)(LE,{scope:n,isInside:!0},(0,s.createElement)(ws,{id:c.contentId,role:"tooltip"},o||r))))})),zE="TooltipArrow",$E=(0,s.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bE(n);return UE(zE,n).isInside?null:(0,s.createElement)(Pr,l({},o,r,{ref:t}))}));const WE=jE,HE=CE,BE=NE,YE=OE,qE=s.forwardRef((({className:e,sideOffset:t=4,...n},r)=>(0,i.jsx)(WE,{ref:r,sideOffset:t,className:ve("ui__tooltip-content z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})));qE.displayName=WE.displayName;const QE={Link:function({className:e,children:t,...n}){return(0,i.jsx)("a",{className:ve("ui__link",e),...n,children:t})},Button:xe,Slider:mt,DropdownMenu:os,DropdownMenuContent:fs,DropdownMenuItem:ps,DropdownMenuCheckboxItem:ms,DropdownMenuRadioGroup:us,DropdownMenuRadioItem:hs,DropdownMenuLabel:vs,DropdownMenuSeparator:gs,DropdownMenuTrigger:as,DropdownMenuShortcut:ys,DropdownMenuGroup:is,DropdownMenuPortal:ss,DropdownMenuSub:ls,DropdownMenuSubContent:ds,DropdownMenuSubTrigger:cs,Toaster:function(){const{toasts:e}=Cl();return(0,i.jsxs)(ul,{children:[e?.map((function({id:e,title:t,description:n,action:r,icon:o,...a}){const s=a?.duration;Number.isInteger(s)&&s<=0&&(a.duration=12e4);let l=o;switch(a.variant){case"info":l=(0,i.jsx)(Sl,{size:22});break;case"success":l=(0,i.jsx)(Dl,{size:22});break;case"warning":l=(0,i.jsx)(Tl,{size:22});break;case"error":l=(0,i.jsx)(Nl,{size:22})}return a.className=ve(l&&["has-variant-icon",a.variant],a.className),(0,i.jsxs)(fl,{...a,children:[(0,i.jsxs)("div",{className:"grid gap-1",children:[l&&(0,i.jsx)("span",{className:"variant-icon",children:l}),t&&(0,i.jsx)(ml,{children:t}),n&&(0,i.jsx)(hl,{children:n})]}),r,(0,i.jsx)(pl,{})]},e)})),(0,i.jsx)(cl,{className:"ui__toaster-viewport"})]})},useToast:Cl,Badge:function({className:e,variant:t,...n}){return(0,i.jsx)("div",{className:ve("ui__badge",Al({variant:t}),e),...n})},genToastId:gl,Alert:Ol,AlertTitle:Rl,Input:yc,Textarea:lp,AlertDescription:Pl,Label:lc,Form:uc,FormItem:pc,FormLabel:mc,FormField:({...e})=>(0,i.jsx)(cc.Provider,{value:{name:e.name},children:(0,i.jsx)(yu,{...e})}),FormControl:hc,FormDescription:vc,FormMessage:gc,useFormField:dc,useForm:function(e={}){const n=t(s).useRef(),r=t(s).useRef(),[o,a]=t(s).useState({isDirty:!1,isValidating:!1,isLoading:Cu(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:Cu(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...oc(e,(()=>a((e=>({...e}))))),formState:o});const i=n.current.control;return i._options=e,du({subject:i._subjects.state,next:e=>{lu(e,i._proxyFormState,i._updateFormState,!0)&&a({...i._formState})}}),t(s).useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),t(s).useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==o.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,o.isDirty]),t(s).useEffect((()=>{e.values&&!zu(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values):i._resetDefaultValues()}),[e.values,i]),t(s).useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),n.current.formState=iu(o,i),n.current},useFormContext:au,yupResolver:function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(r,o,a){try{return Promise.resolve(function(i,s){try{var l=(t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:o}))).then((function(e){return a.shouldUseNativeValidation&&wc({},a),{values:n.raw?r:e,errors:{}}})))}catch(e){return s(e)}return l&&l.then?l.then(void 0,s):l}(0,(function(e){if(!e.inner)throw e;var t,n;return{values:{},errors:xc((t=e,n=!a.shouldUseNativeValidation&&"all"===a.criteriaMode,(t.inner||[]).reduce((function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var r=e[t.path].types,o=r&&r[t.type];e[t.path]=bu(t.path,n,e,t.type,o?[].concat(o,t.message):t.message)}return e}),{})),a)}})))}catch(e){return Promise.reject(e)}}},yup:kc,Switch:wf,Checkbox:Af,RadioGroup:ip,RadioGroupItem:sp,Card:up,CardHeader:cp,CardTitle:dp,CardDescription:fp,CardContent:pp,CardFooter:mp,Skeleton:function({className:e,...t}){return(0,i.jsx)("div",{className:ve("ui__skeleton animate-pulse rounded-md bg-muted",e),...t})},ContextMenu:Zp,ContextMenuTrigger:Kp,ContextMenuContent:rm,ContextMenuItem:om,ContextMenuCheckboxItem:am,ContextMenuRadioItem:im,ContextMenuLabel:sm,ContextMenuSeparator:lm,ContextMenuShortcut:um,ContextMenuGroup:Gp,ContextMenuPortal:Xp,ContextMenuSub:Jp,ContextMenuSubContent:nm,ContextMenuSubTrigger:tm,ContextMenuRadioGroup:em,Select:Nh,SelectGroup:Mh,SelectValue:Oh,SelectTrigger:Rh,SelectContent:Fh,SelectLabel:jh,SelectItem:Ih,SelectSeparator:Lh,SelectScrollUpButton:Ph,SelectScrollDownButton:Ah,Calendar:gw,Popover:Uw,PopoverTrigger:Vw,PopoverContent:zw,Dialog:Tx,DialogPortal:Sx,DialogOverlay:Mx,DialogClose:Nx,DialogTrigger:Dx,DialogContent:Ox,DialogHeader:Rx,DialogFooter:Px,DialogTitle:Ax,DialogDescription:Fx,AlertDialog:iE,AlertDialogPortal:lE,AlertDialogOverlay:uE,AlertDialogTrigger:sE,AlertDialogContent:cE,AlertDialogHeader:dE,AlertDialogFooter:fE,AlertDialogTitle:pE,AlertDialogDescription:mE,AlertDialogAction:hE,AlertDialogCancel:vE,Tooltip:BE,TooltipTrigger:YE,TooltipArrow:$E,TooltipContent:qE,TooltipProvider:HE};console.debug("[ui] setup logseq ui globals"),window.LSUI=QE,window.LSUtils={isDev:!1}})();