@nation-a/ui 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),f=require("react"),By=require("react-dom");function Hy(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const pe=Hy(f),Fe=(...e)=>e.filter(Boolean).map(r=>r.trim()).join(" ");function Gy(e,r){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function Cn(e={}){const{name:r,strict:t=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=f.createContext(s);a.displayName=r;function l(){var d;const c=f.useContext(a);if(!c&&t){const g=new Error(i??Gy(n,o));throw g.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,g,l),g}return c}return[a.Provider,l,a]}function Uy(...e){return function(...t){e.forEach(n=>n==null?void 0:n(...t))}}const Wy=(...e)=>e.map(r=>{var t;return(t=r==null?void 0:r.trim)==null?void 0:t.call(r)}).filter(Boolean).join(" "),zy=/^on[A-Z]/;function qr(...e){let r={};for(let t of e){for(let n in r){if(zy.test(n)&&typeof r[n]=="function"&&typeof t[n]=="function"){r[n]=Uy(r[n],t[n]);continue}if(n==="className"||n==="class"){r[n]=Wy(r[n],t[n]);continue}if(n==="style"){r[n]=Object.assign({},r[n]??{},t[n]??{});continue}r[n]=t[n]!==void 0?t[n]:r[n]}for(let n in t)r[n]===void 0&&(r[n]=t[n])}return r}const La=Object.freeze({}),du=Object.freeze({});function uu(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Ky=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qy=uu(function(e){return Ky.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Yy(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function Xy(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Zy=function(){function e(t){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Yy(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",Vi="-moz-",se="-webkit-",pu="comm",Fa="rule",Da="decl",Jy="@import",gu="@keyframes",Qy="@layer",eP=Math.abs,ts=String.fromCharCode,tP=Object.assign;function rP(e,r){return ze(e,0)^45?(((r<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function fu(e){return e.trim()}function nP(e,r){return(e=r.exec(e))?e[0]:e}function ae(e,r,t){return e.replace(r,t)}function oa(e,r){return e.indexOf(r)}function ze(e,r){return e.charCodeAt(r)|0}function Co(e,r,t){return e.slice(r,t)}function zt(e){return e.length}function Va(e){return e.length}function ri(e,r){return r.push(e),e}function oP(e,r){return e.map(r).join("")}var rs=1,Sn=1,hu=0,ht=0,Be=0,An="";function ns(e,r,t,n,o,i,s){return{value:e,root:r,parent:t,type:n,props:o,children:i,line:rs,column:Sn,length:s,return:""}}function Kn(e,r){return tP(ns("",null,null,"",null,null,0),e,{length:-e.length},r)}function iP(){return Be}function sP(){return Be=ht>0?ze(An,--ht):0,Sn--,Be===10&&(Sn=1,rs--),Be}function Ct(){return Be=ht<hu?ze(An,ht++):0,Sn++,Be===10&&(Sn=1,rs++),Be}function Jt(){return ze(An,ht)}function wi(){return ht}function Lo(e,r){return Co(An,e,r)}function Eo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mu(e){return rs=Sn=1,hu=zt(An=e),ht=0,[]}function vu(e){return An="",e}function xi(e){return fu(Lo(ht-1,ia(e===91?e+2:e===40?e+1:e)))}function aP(e){for(;(Be=Jt())&&Be<33;)Ct();return Eo(e)>2||Eo(Be)>3?"":" "}function lP(e,r){for(;--r&&Ct()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Lo(e,wi()+(r<6&&Jt()==32&&Ct()==32))}function ia(e){for(;Ct();)switch(Be){case e:return ht;case 34:case 39:e!==34&&e!==39&&ia(Be);break;case 40:e===41&&ia(e);break;case 92:Ct();break}return ht}function cP(e,r){for(;Ct()&&e+Be!==57;)if(e+Be===84&&Jt()===47)break;return"/*"+Lo(r,ht-1)+"*"+ts(e===47?e:Ct())}function dP(e){for(;!Eo(Jt());)Ct();return Lo(e,ht)}function uP(e){return vu(Si("",null,null,null,[""],e=mu(e),0,[0],e))}function Si(e,r,t,n,o,i,s,a,l){for(var c=0,d=0,g=s,u=0,h=0,v=0,m=1,b=1,y=1,P=0,C="",x=o,w=i,A=n,O=C;b;)switch(v=P,P=Ct()){case 40:if(v!=108&&ze(O,g-1)==58){oa(O+=ae(xi(P),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:O+=xi(P);break;case 9:case 10:case 13:case 32:O+=aP(v);break;case 92:O+=lP(wi()-1,7);continue;case 47:switch(Jt()){case 42:case 47:ri(pP(cP(Ct(),wi()),r,t),l);break;default:O+="/"}break;case 123*m:a[c++]=zt(O)*y;case 125*m:case 59:case 0:switch(P){case 0:case 125:b=0;case 59+d:y==-1&&(O=ae(O,/\f/g,"")),h>0&&zt(O)-g&&ri(h>32?Ic(O+";",n,t,g-1):Ic(ae(O," ","")+";",n,t,g-2),l);break;case 59:O+=";";default:if(ri(A=Ec(O,r,t,c,d,o,a,C,x=[],w=[],g),i),P===123)if(d===0)Si(O,r,A,A,x,i,g,a,w);else switch(u===99&&ze(O,3)===110?100:u){case 100:case 108:case 109:case 115:Si(e,A,A,n&&ri(Ec(e,A,A,0,0,o,a,C,o,x=[],g),w),o,w,g,a,n?x:w);break;default:Si(O,A,A,A,[""],w,0,a,w)}}c=d=h=0,m=y=1,C=O="",g=s;break;case 58:g=1+zt(O),h=v;default:if(m<1){if(P==123)--m;else if(P==125&&m++==0&&sP()==125)continue}switch(O+=ts(P),P*m){case 38:y=d>0?1:(O+="\f",-1);break;case 44:a[c++]=(zt(O)-1)*y,y=1;break;case 64:Jt()===45&&(O+=xi(Ct())),u=Jt(),d=g=zt(C=O+=dP(wi())),P++;break;case 45:v===45&&zt(O)==2&&(m=0)}}return i}function Ec(e,r,t,n,o,i,s,a,l,c,d){for(var g=o-1,u=o===0?i:[""],h=Va(u),v=0,m=0,b=0;v<n;++v)for(var y=0,P=Co(e,g+1,g=eP(m=s[v])),C=e;y<h;++y)(C=fu(m>0?u[y]+" "+P:ae(P,/&\f/g,u[y])))&&(l[b++]=C);return ns(e,r,t,o===0?Fa:a,l,c,d)}function pP(e,r,t){return ns(e,r,t,pu,ts(iP()),Co(e,2,-2),0)}function Ic(e,r,t,n){return ns(e,r,t,Da,Co(e,0,n),Co(e,n+1,-1),n)}function En(e,r){for(var t="",n=Va(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function gP(e,r,t,n){switch(e.type){case Qy:if(e.children.length)break;case Jy:case Da:return e.return=e.return||e.value;case pu:return"";case gu:return e.return=e.value+"{"+En(e.children,n)+"}";case Fa:e.value=e.props.join(",")}return zt(t=En(e.children,n))?e.return=e.value+"{"+t+"}":""}function fP(e){var r=Va(e);return function(t,n,o,i){for(var s="",a=0;a<r;a++)s+=e[a](t,n,o,i)||"";return s}}function hP(e){return function(r){r.root||(r=r.return)&&e(r)}}var mP=function(r,t,n){for(var o=0,i=0;o=i,i=Jt(),o===38&&i===12&&(t[n]=1),!Eo(i);)Ct();return Lo(r,ht)},vP=function(r,t){var n=-1,o=44;do switch(Eo(o)){case 0:o===38&&Jt()===12&&(t[n]=1),r[n]+=mP(ht-1,t,n);break;case 2:r[n]+=xi(o);break;case 4:if(o===44){r[++n]=Jt()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=ts(o)}while(o=Ct());return r},bP=function(r,t){return vu(vP(mu(r),t))},Tc=new WeakMap,yP=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!Tc.get(n))&&!o){Tc.set(r,!0);for(var i=[],s=bP(t,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)r.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},PP=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function bu(e,r){switch(rP(e,r)){case 5103:return se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+Vi+e+Je+e+e;case 6828:case 4268:return se+e+Je+e+e;case 6165:return se+e+Je+"flex-"+e+e;case 5187:return se+e+ae(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return se+e+Je+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return se+e+Je+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+Je+ae(e,"shrink","negative")+e;case 5292:return se+e+Je+ae(e,"basis","preferred-size")+e;case 6060:return se+"box-"+ae(e,"-grow","")+se+e+Je+ae(e,"grow","positive")+e;case 4554:return se+ae(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-r>6)switch(ze(e,r+1)){case 109:if(ze(e,r+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Vi+(ze(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~oa(e,"stretch")?bu(ae(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ze(e,r+1)!==115)break;case 6444:switch(ze(e,zt(e)-3-(~oa(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(ze(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(ze(e,r+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var CP=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case Da:r.return=bu(r.value,r.length);break;case gu:return En([Kn(r,{value:ae(r.value,"@","@"+se)})],o);case Fa:if(r.length)return oP(r.props,function(i){switch(nP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return En([Kn(r,{props:[ae(i,/:(read-\w+)/,":"+Vi+"$1")]})],o);case"::placeholder":return En([Kn(r,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Kn(r,{props:[ae(i,/:(plac\w+)/,":"+Vi+"$1")]}),Kn(r,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},EP=[CP],IP=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=r.stylisPlugins||EP,i={},s,a=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;a.push(m)});var l,c=[yP,PP];{var d,g=[gP,hP(function(m){d.insert(m)})],u=fP(c.concat(o,g)),h=function(b){return En(uP(b),u)};l=function(b,y,P,C){d=P,h(b?b+"{"+y.styles+"}":y.styles),C&&(v.inserted[y.name]=!0)}}var v={key:t,sheet:new Zy({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v};function TP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ni={exports:{}},ce={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var wc;function wP(){if(wc)return ce;wc=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case r:switch(w=w.type,w){case l:case c:case n:case i:case o:case g:return w;default:switch(w=w&&w.$$typeof,w){case a:case d:case v:case h:case s:return w;default:return A}}case t:return A}}}function x(w){return C(w)===c}return ce.AsyncMode=l,ce.ConcurrentMode=c,ce.ContextConsumer=a,ce.ContextProvider=s,ce.Element=r,ce.ForwardRef=d,ce.Fragment=n,ce.Lazy=v,ce.Memo=h,ce.Portal=t,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=g,ce.isAsyncMode=function(w){return x(w)||C(w)===l},ce.isConcurrentMode=x,ce.isContextConsumer=function(w){return C(w)===a},ce.isContextProvider=function(w){return C(w)===s},ce.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===r},ce.isForwardRef=function(w){return C(w)===d},ce.isFragment=function(w){return C(w)===n},ce.isLazy=function(w){return C(w)===v},ce.isMemo=function(w){return C(w)===h},ce.isPortal=function(w){return C(w)===t},ce.isProfiler=function(w){return C(w)===i},ce.isStrictMode=function(w){return C(w)===o},ce.isSuspense=function(w){return C(w)===g},ce.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===i||w===o||w===g||w===u||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===h||w.$$typeof===s||w.$$typeof===a||w.$$typeof===d||w.$$typeof===b||w.$$typeof===y||w.$$typeof===P||w.$$typeof===m)},ce.typeOf=C,ce}var de={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var xc;function xP(){return xc||(xc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function C(L){return typeof L=="string"||typeof L=="function"||L===n||L===c||L===i||L===o||L===g||L===u||typeof L=="object"&&L!==null&&(L.$$typeof===v||L.$$typeof===h||L.$$typeof===s||L.$$typeof===a||L.$$typeof===d||L.$$typeof===b||L.$$typeof===y||L.$$typeof===P||L.$$typeof===m)}function x(L){if(typeof L=="object"&&L!==null){var Me=L.$$typeof;switch(Me){case r:var dt=L.type;switch(dt){case l:case c:case n:case i:case o:case g:return dt;default:var Vr=dt&&dt.$$typeof;switch(Vr){case a:case d:case v:case h:case s:return Vr;default:return Me}}case t:return Me}}}var w=l,A=c,O=a,R=s,S=r,k=d,V=n,F=v,J=h,te=t,Q=i,Ie=o,Se=g,W=!1;function le(L){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),me(L)||x(L)===l}function me(L){return x(L)===c}function bt(L){return x(L)===a}function Bt(L){return x(L)===s}function Dr(L){return typeof L=="object"&&L!==null&&L.$$typeof===r}function cn(L){return x(L)===d}function yr(L){return x(L)===n}function $s(L){return x(L)===v}function Ls(L){return x(L)===h}function $(L){return x(L)===t}function N(L){return x(L)===i}function re(L){return x(L)===o}function be(L){return x(L)===g}de.AsyncMode=w,de.ConcurrentMode=A,de.ContextConsumer=O,de.ContextProvider=R,de.Element=S,de.ForwardRef=k,de.Fragment=V,de.Lazy=F,de.Memo=J,de.Portal=te,de.Profiler=Q,de.StrictMode=Ie,de.Suspense=Se,de.isAsyncMode=le,de.isConcurrentMode=me,de.isContextConsumer=bt,de.isContextProvider=Bt,de.isElement=Dr,de.isForwardRef=cn,de.isFragment=yr,de.isLazy=$s,de.isMemo=Ls,de.isPortal=$,de.isProfiler=N,de.isStrictMode=re,de.isSuspense=be,de.isValidElementType=C,de.typeOf=x}()),de}var Sc;function SP(){return Sc||(Sc=1,process.env.NODE_ENV==="production"?ni.exports=wP():ni.exports=xP()),ni.exports}var Ds,Rc;function RP(){if(Rc)return Ds;Rc=1;var e=SP(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function s(v){return e.isMemo(v)?o:i[v.$$typeof]||r}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,u=Object.prototype;function h(v,m,b){if(typeof m!="string"){if(u){var y=g(m);y&&y!==u&&h(v,y,b)}var P=l(m);c&&(P=P.concat(c(m)));for(var C=s(v),x=s(m),w=0;w<P.length;++w){var A=P[w];if(!t[A]&&!(b&&b[A])&&!(x&&x[A])&&!(C&&C[A])){var O=d(m,A);try{a(v,A,O)}catch{}}}}return v}return Ds=h,Ds}RP();var OP=!0;function yu(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ma=function(r,t,n){var o=r.key+"-"+t.name;(n===!1||OP===!1)&&r.registered[o]===void 0&&(r.registered[o]=t.styles)},ja=function(r,t,n){Ma(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+o:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function kP(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var AP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},NP=/[A-Z]|^ms/g,$P=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pu=function(r){return r.charCodeAt(1)===45},Oc=function(r){return r!=null&&typeof r!="boolean"},Vs=uu(function(e){return Pu(e)?e:e.replace(NP,"-$&").toLowerCase()}),kc=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace($P,function(n,o,i){return Kt={name:o,styles:i,next:Kt},o})}return AP[r]!==1&&!Pu(r)&&typeof t=="number"&&t!==0?t+"px":t};function Io(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return Kt={name:o.name,styles:o.styles,next:Kt},o.name;var i=t;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Kt={name:s.name,styles:s.styles,next:Kt},s=s.next;var a=i.styles+";";return a}return LP(e,r,t)}case"function":{if(e!==void 0){var l=Kt,c=t(e);return Kt=l,Io(e,r,c)}break}}var d=t;if(r==null)return d;var g=r[d];return g!==void 0?g:d}function LP(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Io(e,r,t[o])+";";else for(var i in t){var s=t[i];if(typeof s!="object"){var a=s;r!=null&&r[a]!==void 0?n+=i+"{"+r[a]+"}":Oc(a)&&(n+=Vs(i)+":"+kc(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var l=0;l<s.length;l++)Oc(s[l])&&(n+=Vs(i)+":"+kc(i,s[l])+";");else{var c=Io(e,r,s);switch(i){case"animation":case"animationName":{n+=Vs(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Ac=/label:\s*([^\s;{]+)\s*(;|$)/g,Kt;function _a(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Kt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Io(t,r,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=Io(t,r,e[a]),n){var l=i;o+=l[a]}Ac.lastIndex=0;for(var c="",d;(d=Ac.exec(o))!==null;)c+="-"+d[1];var g=kP(o)+c;return{name:g,styles:o,next:Kt}}var FP=function(r){return r()},Cu=pe.useInsertionEffect?pe.useInsertionEffect:!1,Eu=Cu||FP,Nc=Cu||pe.useLayoutEffect,Iu=pe.createContext(typeof HTMLElement<"u"?IP({key:"css"}):null);Iu.Provider;var Ba=function(r){return f.forwardRef(function(t,n){var o=f.useContext(Iu);return r(t,o,n)})},Ha=pe.createContext({}),Ga={}.hasOwnProperty,sa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",DP=function(r,t){var n={};for(var o in t)Ga.call(t,o)&&(n[o]=t[o]);return n[sa]=r,n},VP=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Ma(t,n,o),Eu(function(){return ja(t,n,o)}),null},MP=Ba(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var o=e[sa],i=[n],s="";typeof e.className=="string"?s=yu(r.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=_a(i,void 0,pe.useContext(Ha));s+=r.key+"-"+a.name;var l={};for(var c in e)Ga.call(e,c)&&c!=="css"&&c!==sa&&(l[c]=e[c]);return l.className=s,t&&(l.ref=t),pe.createElement(pe.Fragment,null,pe.createElement(VP,{cache:r,serialized:a,isStringTag:typeof o=="string"}),pe.createElement(o,l))}),jP=MP,$c=function(r,t){var n=arguments;if(t==null||!Ga.call(t,"css"))return pe.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=jP,i[1]=DP(r,t);for(var s=2;s<o;s++)i[s]=n[s];return pe.createElement.apply(null,i)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})($c||($c={}));var Lc=Ba(function(e,r){var t=e.styles,n=_a([t],void 0,pe.useContext(Ha)),o=pe.useRef();return Nc(function(){var i=r.key+"-global",s=new r.sheet.constructor({key:i,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return r.sheet.tags.length&&(s.before=r.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[r]),Nc(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&ja(r,n.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}r.insert("",n,s,!1)},[r,n.name]),null});function _P(e,r){if(e!=null){if(typeof e=="function"){e(r);return}try{e.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${e}'`)}}}function Tu(...e){return r=>{e.forEach(t=>{_P(t,r)})}}function Nn(e){const r=Object.assign({},e);for(let t in r)r[t]===void 0&&delete r[t];return r}function BP(e){return e.default||e}const gt=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),HP=e=>/^var\(--.+\)$/.test(e),Ot=e=>typeof e=="string",Ua=e=>typeof e=="function";function GP(e){var t;const r=pe.version;return!Ot(r)||r.startsWith("18.")?e==null?void 0:e.ref:(t=e==null?void 0:e.props)==null?void 0:t.ref}const[UP,Fo]=Cn({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function WP(e){const{value:r,children:t}=e;return p.jsxs(UP,{value:r,children:[!r._config.disableLayers&&p.jsx(Lc,{styles:r.layers.atRule}),p.jsx(Lc,{styles:r._global}),t]})}const zP=(e,r)=>{const t={},n={},o=Object.keys(e);for(const i of o)r(i)?n[i]=e[i]:t[i]=e[i];return[n,t]},In=(e,r)=>{const t=Ua(r)?r:n=>r.includes(n);return zP(e,t)},KP=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function qP(e){return typeof e=="string"&&KP.has(e)}function YP(e,r,t){const{css:n,isValidProperty:o}=Fo(),{children:i,...s}=e,a=f.useMemo(()=>{const[u,h]=In(s,P=>t(P,r.variantKeys)),[v,m]=In(h,r.variantKeys),[b,y]=In(m,o);return{forwardedProps:u,variantProps:v,styleProps:b,elementProps:y}},[r.variantKeys,t,s,o]),{css:l,...c}=a.styleProps,d=f.useMemo(()=>{const u={...a.variantProps};return r.variantKeys.includes("colorPalette")||(u.colorPalette=s.colorPalette),r.variantKeys.includes("orientation")||(u.orientation=s.orientation),r(u)},[r,a.variantProps,s.colorPalette,s.orientation]);return{styles:f.useMemo(()=>n(d,...XP(l),c),[n,d,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const XP=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),ZP=BP(qy),JP=ZP,QP=e=>e!=="theme",eC=(e,r,t)=>{let n;if(r){const o=r.shouldForwardProp;n=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof n!="function"&&t&&(n=e.__emotion_forwardProp),n};let tC=typeof document<"u";const Fc=({cache:e,serialized:r,isStringTag:t})=>{Ma(e,r,t);const n=Eu(()=>ja(e,r,t));if(!tC&&n!==void 0){let o=r.name,i=r.next;for(;i!==void 0;)o=Fe(o,i.name),i=i.next;return p.jsx("style",{"data-emotion":Fe(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},rC=(e,r={},t={})=>{if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
16
+ You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,s;t!==void 0&&(i=t.label,s=t.target);let a=[];const l=Ba((c,d,g)=>{var te;const{cva:u,isValidProperty:h}=Fo(),v=r.__cva__?r:u(r),m=oC(e.__emotion_cva,v),b=Q=>(Ie,Se)=>Q.includes(Ie)?!0:!(Se!=null&&Se.includes(Ie))&&!h(Ie);!t.shouldForwardProp&&t.forwardProps&&(t.shouldForwardProp=b(t.forwardProps));const y=(Q,Ie)=>{const Se=typeof e=="string"&&e.charCodeAt(0)>96?JP:QP,W=!(Ie!=null&&Ie.includes(Q))&&!h(Q);return Se(Q)&&W},P=eC(e,t,n)||y,C=pe.useMemo(()=>Object.assign({},t.defaultProps,Nn(c)),[c]),{props:x,styles:w}=YP(C,m,P);let A="",O=[w],R=x;if(x.theme==null){R={};for(let Q in x)R[Q]=x[Q];R.theme=pe.useContext(Ha)}typeof x.className=="string"?A=yu(d.registered,O,x.className):x.className!=null&&(A=Fe(A,x.className));const S=_a(a.concat(O),d.registered,R);A=Fe(A,`${d.key}-${S.name}`),s!==void 0&&(A=Fe(A,s));const k=!P("as");let V=k&&x.as||o,F={};for(let Q in x)if(!(k&&Q==="as")){if(qP(Q)){const Ie=Q.replace("html","").toLowerCase();F[Ie]=x[Q];continue}P(Q)&&(F[Q]=x[Q])}F.className=A.trim(),F.ref=g;const J=t.forwardAsChild||((te=t.forwardProps)==null?void 0:te.includes("asChild"));if(x.asChild&&!J){const Q=pe.Children.only(x.children);V=Q.type,F.children=null,Reflect.deleteProperty(F,"asChild"),F=qr(F,Q.props),F.ref=Tu(g,GP(Q))}return F.as&&J?(F.as=void 0,p.jsxs(pe.Fragment,{children:[p.jsx(Fc,{cache:d,serialized:S,isStringTag:typeof V=="string"}),p.jsx(V,{asChild:!0,...F,children:p.jsx(x.as,{children:F.children})})]})):p.jsxs(pe.Fragment,{children:[p.jsx(Fc,{cache:d,serialized:S,isStringTag:typeof V=="string"}),p.jsx(V,{...F})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=t.shouldForwardProp,l.__emotion_cva=r,Object.defineProperty(l,"toString",{value(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":`.${s}`}}),l},Ms=rC.bind(),js=new Map,nC=new Proxy(Ms,{apply(e,r,t){return Ms(...t)},get(e,r){return js.has(r)||js.set(r,Ms(r)),js.get(r)}}),j=nC,oC=(e,r)=>e&&!r?e:!e&&r?r:e.merge(r);function os(e){const{key:r,recipe:t}=e,n=Fo();return f.useMemo(()=>{const o=t||(r!=null?n.getRecipe(r):{});return n.cva(structuredClone(o))},[r,t,n])}const iC=e=>e.charAt(0).toUpperCase()+e.slice(1);function tt(e){const{key:r,recipe:t}=e,n=iC(r||t.className||"Component"),[o,i]=Cn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(c){const{unstyled:d,...g}=c,u=os({key:r,recipe:g.recipe||t}),[h,v]=f.useMemo(()=>u.splitVariantProps(g),[u,g]);return{styles:d?La:u(h),className:u.className,props:v}}const a=(c,d)=>{const g=j(c,{},d),u=f.forwardRef((h,v)=>{const m=i(),b=f.useMemo(()=>qr(m,h),[h,m]),{styles:y,className:P,props:C}=s(b);return p.jsx(g,{...C,ref:v,css:[y,b.css],className:Fe(P,b.className)})});return u.displayName=c.displayName||c.name,u};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}const wu=f.forwardRef(function(r,t){const{templateAreas:n,column:o,row:i,autoFlow:s,autoRows:a,templateRows:l,autoColumns:c,templateColumns:d,inline:g,...u}=r;return p.jsx(j.div,{...u,ref:t,css:[{display:g?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:c,gridColumn:o,gridRow:i,gridAutoFlow:s,gridAutoRows:a,gridTemplateRows:l,gridTemplateColumns:d},r.css]})}),{useRecipeResult:sC}=tt({key:"colorSwatch"}),aC=f.forwardRef(function(r,t){const{value:n,...o}=r,{styles:i,className:s,props:a}=sC(o);return p.jsx(j.span,{...a,ref:t,"data-value":n,css:[i,{"--color":n},r.css],className:Fe(s,r.className)})});var Dc=e=>Math.max(0,Math.min(1,e)),lC=(e,r)=>e.map((t,n)=>e[(Math.max(r,0)+n)%e.length]),_s=(...e)=>r=>e.reduce((t,n)=>n(t),r),oi=()=>{},is=e=>typeof e=="object"&&e!==null,xu=2147483647,T=e=>e?"":void 0,Yt=e=>e?"true":void 0,cC=1,dC=9,uC=11,Ye=e=>is(e)&&e.nodeType===cC&&typeof e.nodeName=="string",Wa=e=>is(e)&&e.nodeType===dC,pC=e=>is(e)&&e===e.window,Su=e=>Ye(e)?e.localName||"":"#document";function gC(e){return["html","body","#document"].includes(Su(e))}var fC=e=>is(e)&&e.nodeType!==void 0,To=e=>fC(e)&&e.nodeType===uC&&"host"in e,hC=e=>Ye(e)&&e.localName==="input",Ru=e=>!!(e!=null&&e.matches("a[href]")),mC=e=>Ye(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,vC=/(textarea|select)/;function ss(e){if(e==null||!Ye(e))return!1;try{return hC(e)&&e.selectionStart!=null||vC.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function kt(e,r){var n;if(!e||!r||!Ye(e)||!Ye(r))return!1;const t=(n=r.getRootNode)==null?void 0:n.call(r);if(e===r||e.contains(r))return!0;if(t&&To(t)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function it(e){return Wa(e)?e:pC(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function bC(e){return it(e).documentElement}function De(e){var r;return To(e)?De(e.host):Wa(e)?e.defaultView??window:Ye(e)?((r=e.ownerDocument)==null?void 0:r.defaultView)??window:window}function Ou(e){let r=e.activeElement;for(;r!=null&&r.shadowRoot;){const t=r.shadowRoot.activeElement;if(t===r)break;r=t}return r}function yC(e){if(Su(e)==="html")return e;const r=e.assignedSlot||e.parentNode||To(e)&&e.host||bC(e);return To(r)?r.host:r}var Bs=new WeakMap;function wo(e){return Bs.has(e)||Bs.set(e,De(e).getComputedStyle(e)),Bs.get(e)}var za=()=>typeof document<"u";function PC(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function CC(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:r,version:t})=>`${r}/${t}`).join(" "):navigator.userAgent}var Ka=e=>za()&&e.test(PC()),EC=e=>za()&&e.test(CC()),IC=e=>za()&&e.test(navigator.vendor),ku=()=>Ka(/^Mac/),Do=()=>qa()&&IC(/apple/i),TC=()=>EC(/firefox\//i),qa=()=>Ka(/mac|iphone|ipad|ipod/i),Ya=()=>Ka(/iP(hone|ad|od)|iOS/);function wC(e){const{selectionStart:r,selectionEnd:t,value:n}=e.currentTarget;return n.slice(0,r)+e.data+n.slice(t)}function xC(e){var r,t,n;return((r=e.composedPath)==null?void 0:r.call(e))??((n=(t=e.nativeEvent)==null?void 0:t.composedPath)==null?void 0:n.call(t))}function He(e){const r=xC(e);return(r==null?void 0:r[0])??e.target}var xo=e=>kt(e.currentTarget,He(e));function Vc(e){const r=e.currentTarget;if(!r)return!1;const t=qa();if(t&&!e.metaKey||!t&&!e.ctrlKey)return!1;const n=r.localName;return n==="a"||n==="button"&&r.type==="submit"||n==="input"&&r.type==="submit"}function Mc(e){const r=e.currentTarget;if(!r)return!1;const t=r.localName;return e.altKey?t==="a"||t==="button"&&r.type==="submit"||t==="input"&&r.type==="submit":!1}function Vo(e){return Nu(e).isComposing}function SC(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var So=e=>e.button===0,Au=e=>e.button===2||ku()&&e.ctrlKey&&e.button===0,Yr=e=>e.ctrlKey||e.altKey||e.metaKey,RC=e=>"touches"in e&&e.touches.length>0,OC={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},jc={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function er(e,r={}){const{dir:t="ltr",orientation:n="horizontal"}=r;let o=e.key;return o=OC[o]??o,t==="rtl"&&n==="horizontal"&&o in jc&&(o=jc[o]),o}function Nu(e){return e.nativeEvent??e}var kC=new Set(["PageUp","PageDown"]),AC=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function Mi(e){return e.ctrlKey||e.metaKey?.1:kC.has(e.key)||e.shiftKey&&AC.has(e.key)?10:1}function pr(e,r="client"){const t=RC(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t[`${r}X`],y:t[`${r}Y`]}}var ie=(e,r,t,n)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(r,t,n),()=>{o==null||o.removeEventListener(r,t,n)}};function $u(e,r){const{type:t="HTMLInputElement",property:n="value"}=r,o=De(e)[t].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function NC(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Xa(e,r,t="value"){var o;const n=NC(e);n&&((o=$u(e,{type:n,property:t}).set)==null||o.call(e,r)),e.setAttribute(t,r)}function Lu(e,r){var n;(n=$u(e,{type:"HTMLInputElement",property:"checked"}).set)==null||n.call(e,r),r?e.setAttribute("checked",""):e.removeAttribute("checked")}function Za(e,r){const{value:t,bubbles:n=!0}=r;if(!e)return;const o=De(e);e instanceof o.HTMLInputElement&&(Xa(e,`${t}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function Ja(e,r){const{checked:t,bubbles:n=!0}=r;if(!e)return;const o=De(e);e instanceof o.HTMLInputElement&&(Lu(e,t),e.dispatchEvent(new o.Event("click",{bubbles:n})))}function $C(e){return LC(e)?e.form:e.closest("form")}function LC(e){return e.matches("textarea, input, select, button")}function FC(e,r){if(!e)return;const t=$C(e),n=o=>{o.defaultPrevented||r()};return t==null||t.addEventListener("reset",n,{passive:!0}),()=>t==null?void 0:t.removeEventListener("reset",n)}function DC(e,r){const t=e==null?void 0:e.closest("fieldset");if(!t)return;r(t.disabled);const n=De(t),o=new n.MutationObserver(()=>r(t.disabled));return o.observe(t,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Jr(e,r){if(!e)return;const{onFieldsetDisabledChange:t,onFormReset:n}=r,o=[FC(e,n),DC(e,t)];return()=>o.forEach(i=>i==null?void 0:i())}var Fu=e=>Ye(e)&&e.tagName==="IFRAME",VC=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),MC=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Qa="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",as=(e,r=!1)=>{if(!e)return[];const t=Array.from(e.querySelectorAll(Qa));(r==!0||r=="if-empty"&&t.length===0)&&Ye(e)&&xr(e)&&t.unshift(e);const o=t.filter(xr);return o.forEach((i,s)=>{if(Fu(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...as(a))}}),o};function xr(e){return!e||e.closest("[inert]")?!1:e.matches(Qa)&&mC(e)}function Mo(e,r){if(!e)return[];const t=Array.from(e.querySelectorAll(Qa)),n=t.filter(Tr);return r&&Tr(e)&&n.unshift(e),n.forEach((o,i)=>{if(Fu(o)&&o.contentDocument){const s=o.contentDocument.body,a=Mo(s);n.splice(i,1,...a)}}),!n.length&&r?t:n}function Tr(e){return e!=null&&e.tabIndex>0?!0:xr(e)&&!MC(e)}function Du(e,r){const t=Mo(e,r),n=t[0]||null,o=t[t.length-1]||null;return[n,o]}function jC(e,r){const t=Mo(e),n=(e==null?void 0:e.ownerDocument)||document,o=r??n.activeElement;if(!o)return null;const i=t.indexOf(o);return t[i+1]||null}function qn(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||ss(e))&&!VC(e)?0:e.tabIndex}function Ro(e){const{root:r,getInitialEl:t,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof t=="function"?t():t),i||(i=r==null?void 0:r.querySelector("[data-autofocus],[autofocus]")),!i){const s=Mo(r);i=n?s.filter(n)[0]:s[0]}return i||r||void 0}function Vu(e){const r=e.currentTarget;if(!r)return!1;const[t,n]=Du(r),o=r.ownerDocument||document;return!(o.activeElement===t&&e.shiftKey||o.activeElement===n&&!e.shiftKey||!t&&!n)}function ji(e){const r=new Set;function t(n){const o=globalThis.requestAnimationFrame(n);r.add(()=>globalThis.cancelAnimationFrame(o))}return t(()=>t(e)),function(){r.forEach(o=>o())}}function G(e){const r=globalThis.requestAnimationFrame(e);return()=>{globalThis.cancelAnimationFrame(r)}}function _C(e,r,t){const n=G(()=>{e.removeEventListener(r,o,!0),t()}),o=()=>{n(),t()};return e.addEventListener(r,o,{once:!0,capture:!0}),n}function BC(e,r){if(!e)return;const{attributes:t,callback:n}=r,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&t.includes(a.attributeName)&&n(a)});return i.observe(e,{attributes:!0,attributeFilter:t}),()=>i.disconnect()}function ls(e,r){const{defer:t}=r,n=t?G:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(BC(i,r))})),()=>{o.forEach(i=>i==null?void 0:i())}}function HC(e,r){const{callback:t}=r;if(!e)return;const n=e.ownerDocument.defaultView||window,o=new n.MutationObserver(t);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function GC(e,r){const{defer:t}=r,n=t?G:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(HC(i,r))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Mu(e){const r=()=>e.click();TC()?_C(e,"keyup",r):queueMicrotask(r)}function _i(e){const r=yC(e);return gC(r)?it(r).body:Ye(r)&&el(r)?r:_i(r)}function ju(e,r=[]){const t=_i(e),n=t===e.ownerDocument.body,o=De(t);return n?r.concat(o,o.visualViewport||[],el(t)?t:[]):r.concat(t,ju(t,[]))}var UC=/auto|scroll|overlay|hidden|clip/;function el(e){const r=De(e),{overflow:t,overflowX:n,overflowY:o,display:i}=r.getComputedStyle(e);return UC.test(t+o+n)&&!["inline","contents"].includes(i)}function WC(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function _u(e,r){const{rootEl:t,...n}=r||{};!e||!t||!el(t)||!WC(t)||e.scrollIntoView(n)}function aa(e,r){const{left:t,top:n,width:o,height:i}=r.getBoundingClientRect(),s={x:e.x-t,y:e.y-n},a={x:Dc(s.x/o),y:Dc(s.y/i)};function l(c={}){const{dir:d="ltr",orientation:g="horizontal",inverted:u}=c,h=typeof u=="object"?u.x:u,v=typeof u=="object"?u.y:u;return g==="horizontal"?d==="rtl"||h?1-a.x:a.x:v?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function zC(e,r){const t=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{t.requestPointerLock()}catch{}const a=[ie(e,"pointerlockchange",i,!1),ie(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Pn="default",la="",Ri=new WeakMap;function KC(e={}){const{target:r,doc:t}=e,n=t??document,o=n.documentElement;return Ya()?(Pn==="default"&&(la=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Pn="disabled"):r&&(Ri.set(r,r.style.userSelect),r.style.userSelect="none"),()=>qC({target:r,doc:n})}function qC(e={}){const{target:r,doc:t}=e,o=(t??document).documentElement;if(Ya()){if(Pn!=="disabled")return;Pn="restoring",setTimeout(()=>{ji(()=>{Pn==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=la||""),la="",Pn="default")})},300)}else if(r&&Ri.has(r)){const i=Ri.get(r);r.style.userSelect==="none"&&(r.style.userSelect=i??""),r.getAttribute("style")===""&&r.removeAttribute("style"),Ri.delete(r)}}function Bu(e={}){const{defer:r,target:t,...n}=e,o=r?G:s=>s(),i=[];return i.push(o(()=>{const s=typeof t=="function"?t():t;i.push(KC({...n,target:s}))})),()=>{i.forEach(s=>s==null?void 0:s())}}function Hu(e,r){const{onPointerMove:t,onPointerUp:n}=r,i=[ie(e,"pointermove",s=>{const a=pr(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l<c)){if(s.pointerType==="mouse"&&s.button===0){n();return}t({point:a,event:s})}},!1),ie(e,"pointerup",n,!1),ie(e,"pointercancel",n,!1),ie(e,"contextmenu",n,!1),Bu({doc:e})];return()=>{i.forEach(s=>s())}}function Gu(e){const{pointerNode:r,keyboardNode:t=r,onPress:n,onPressStart:o,onPressEnd:i,isValidKey:s=C=>C.key==="Enter"}=e;if(!r)return oi;const a=De(r),l=it(r);let c=oi,d=oi,g=oi;const u=C=>({point:pr(C),event:C});function h(C){o==null||o(u(C))}function v(C){i==null||i(u(C))}const b=ie(r,"pointerdown",C=>{d();const w=ie(a,"pointerup",O=>{const R=He(O);kt(r,R)?n==null||n(u(O)):i==null||i(u(O))},{passive:!n}),A=ie(a,"pointercancel",v,{passive:!i});d=_s(w,A),l.activeElement===t&&C.pointerType==="mouse"&&C.preventDefault(),h(C)},{passive:!o}),y=ie(t,"focus",P);c=_s(b,y);function P(){const C=O=>{if(!s(O))return;const R=k=>{if(!s(k))return;const V=new a.PointerEvent("pointerup"),F=u(V);n==null||n(F),i==null||i(F)};d(),d=ie(t,"keyup",R);const S=new a.PointerEvent("pointerdown");h(S)},x=()=>{const O=new a.PointerEvent("pointercancel");v(O)},w=ie(t,"keydown",C),A=ie(t,"blur",x);g=_s(w,A)}return()=>{c(),d(),g()}}function YC(e,r={}){const{triggerElement:t,onFocus:n}=r,o=(e==null?void 0:e.ownerDocument)||document,i=o.body;function s(a){if(a.key!=="Tab")return;let l=null;const[c,d]=Du(e,!0),g=!c&&!d;a.shiftKey&&(o.activeElement===c||g)?l=t:!a.shiftKey&&o.activeElement===t?l=c:!a.shiftKey&&(o.activeElement===d||g)&&(l=jC(i,t)),l&&(a.preventDefault(),typeof n=="function"?n(l):l.focus())}return ie(o,"keydown",s,!0)}function XC(e,r){const{defer:t,triggerElement:n,...o}=r,i=t?G:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof n=="function"?n():n;s.push(YC(a,{triggerElement:l,...o}))})),()=>{s.forEach(a=>a==null?void 0:a())}}function Lt(e,r){return Array.from((e==null?void 0:e.querySelectorAll(r))??[])}function ZC(e,r){return(e==null?void 0:e.querySelector(r))??null}var tl=e=>e.id;function Uu(e,r,t=tl){return e.find(n=>t(n)===r)}function rl(e,r,t=tl){const n=Uu(e,r,t);return n?e.indexOf(n):-1}function nl(e,r,t=!0){let n=rl(e,r);return n=t?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function ol(e,r,t=!0){let n=rl(e,r);return n===-1?t?e[e.length-1]:null:(n=t?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}function ke(e){const r={getRootNode:t=>{var n;return((n=t.getRootNode)==null?void 0:n.call(t))??document},getDoc:t=>it(r.getRootNode(t)),getWin:t=>r.getDoc(t).defaultView??window,getActiveElement:t=>Ou(r.getRootNode(t)),isActiveElement:(t,n)=>n===r.getActiveElement(t),getById:(t,n)=>r.getRootNode(t).getElementById(n),setValue:(t,n)=>{t==null||n==null||Xa(t,n.toString())}};return{...r,...e}}var JC=e=>e.split("").map(r=>{const t=r.charCodeAt(0);return t>0&&t<128?r:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),QC=e=>{var r;return JC(((r=e.dataset)==null?void 0:r.valuetext)??e.textContent??"")},eE=(e,r)=>e.trim().toLowerCase().startsWith(r.toLowerCase());function tE(e,r,t,n=tl){const o=t?rl(e,t,n):-1;let i=t?lC(e,o):e;return r.length===1&&(i=i.filter(a=>n(a)!==t)),i.find(a=>eE(QC(a),r))}var Hs=new WeakMap;function rE(e,r,t){Hs.has(e)||Hs.set(e,new Map);const n=Hs.get(e),o=n.get(r);if(!o)return n.set(r,t()),()=>{var a;(a=n.get(r))==null||a(),n.delete(r)};const i=t(),s=()=>{i(),o(),n.delete(r)};return n.set(r,s),()=>{n.get(r)===s&&(i(),n.set(r,o))}}function nE(e,r){return e?rE(e,"style",()=>{const n=e.style.cssText;return Object.assign(e.style,r),()=>{e.style.cssText=n}}):()=>{}}function oE(e,r){const{state:t,activeId:n,key:o,timeout:i=350,itemToId:s}=r,a=t.keysSoFar+o,c=a.length>1&&Array.from(a).every(v=>v===a[0])?a[0]:a;let d=e.slice();const g=tE(d,c,n,s);function u(){clearTimeout(t.timer),t.timer=-1}function h(v){t.keysSoFar=v,u(),v!==""&&(t.timer=+setTimeout(()=>{h(""),u()},i))}return h(a),g}var Oo=Object.assign(oE,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:iE});function iE(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Qr={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},sE=1e3/60;function aE(e,r){const t=e();if(Ye(t)&&t.isConnected)return r(t),()=>{};{const n=setInterval(()=>{const o=e();Ye(o)&&o.isConnected&&(r(o),clearInterval(n))},sE);return()=>clearInterval(n)}}function lE(e,r){const t=[];return e==null||e.forEach(n=>{const o=aE(n,r);t.push(o)}),()=>{t.forEach(n=>n())}}function cE(e){const r=new Map;return function(n,o){const i=n+(o?Object.entries(o).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(r.has(i))return r.get(i);let s=new e(n,o);return r.set(i,s),s}}var dE=cE(Intl.NumberFormat);function Wu(e,r,t={}){return dE(r,t).format(e)}var uE=["","kilo","mega","giga","tera"],pE=["","kilo","mega","giga","tera","peta"],zu=(e,r="en-US",t={})=>{if(isNaN(e))return"";if(e===0)return"0 B";const{unit:n="byte",unitDisplay:o="short"}=t,i=n==="bit"?uE:pE,s=Math.max(0,Math.min(Math.floor(Math.log10(e)/3),i.length-1)),a=i[s]+n,l=o||"short",c=parseFloat((e/Math.pow(1e3,s)).toPrecision(3));return Wu(c,r,{style:"unit",unit:a,unitDisplay:l})},gE=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fE=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hE(e){if(Intl.Locale){const t=new Intl.Locale(e).maximize().script??"";return gE.has(t)}const r=e.split("-")[0];return fE.has(r)}function mE(e,r){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function U(e={}){const{name:r,strict:t=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=f.createContext(s);a.displayName=r;function l(){var d;const c=f.useContext(a);if(!c&&t){const g=new Error(i??mE(n,o));throw g.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,g,l),g}return c}return[a.Provider,l,a]}const[vE,Te]=U({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Ku=e=>{const{value:r,...t}=e,{locale:n}=Te(),o=f.useMemo(()=>zu(r,n,t),[r,n,t]);return p.jsx(p.Fragment,{children:o})};Ku.displayName="FormatByte";const qu=e=>{const{value:r,...t}=e,{locale:n}=Te(),o=f.useMemo(()=>Wu(r,n,t),[r,n,t]);return p.jsx(p.Fragment,{children:o})};qu.displayName="FormatNumber";const bE=qu,yE=Ku;function PE(e,r){typeof e=="function"?e(r):e!=null&&(e.current=r)}function mt(...e){return r=>{for(const t of e)PE(t,r)}}const CE=Symbol(),il=Symbol(),co="a",Yu="f",_c="p",Xu="c",Zu="t",Ju="h",Oi="w",Qu="o",ep="k";let EE=(e,r)=>new Proxy(e,r);const ca=Object.getPrototypeOf,da=new WeakMap,tp=e=>e&&(da.has(e)?da.get(e):ca(e)===Object.prototype||ca(e)===Array.prototype),Bc=e=>typeof e=="object"&&e!==null,IE=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(r=>!r.configurable&&!r.writable),TE=e=>{if(Array.isArray(e))return Array.from(e);const r=Object.getOwnPropertyDescriptors(e);return Object.values(r).forEach(t=>{t.configurable=!0}),Object.create(ca(e),r)},wE=(e,r)=>{const t={[Yu]:r};let n=!1;const o=(a,l)=>{if(!n){let c=t[co].get(e);if(c||(c={},t[co].set(e,c)),a===Oi)c[Oi]=!0;else{let d=c[a];d||(d=new Set,c[a]=d),d.add(l)}}},i=()=>{n=!0,t[co].delete(e)},s={get(a,l){return l===il?e:(o(ep,l),np(Reflect.get(a,l),t[co],t[Xu],t[Zu]))},has(a,l){return l===CE?(i(),!0):(o(Ju,l),Reflect.has(a,l))},getOwnPropertyDescriptor(a,l){return o(Qu,l),Reflect.getOwnPropertyDescriptor(a,l)},ownKeys(a){return o(Oi),Reflect.ownKeys(a)}};return r&&(s.set=s.deleteProperty=()=>!1),[s,t]},rp=e=>e[il]||e,np=(e,r,t,n)=>{if(!tp(e))return e;let o=n&&n.get(e);if(!o){const l=rp(e);IE(l)?o=[l,TE(l)]:o=[l],n==null||n.set(e,o)}const[i,s]=o;let a=t&&t.get(i);return(!a||a[1][Yu]!==!!s)&&(a=wE(i,!!s),a[1][_c]=EE(s||i,a[0]),t&&t.set(i,a)),a[1][co]=r,a[1][Xu]=t,a[1][Zu]=n,a[1][_c]},xE=(e,r)=>{const t=Reflect.ownKeys(e),n=Reflect.ownKeys(r);return t.length!==n.length||t.some((o,i)=>o!==n[i])},op=(e,r,t,n,o=Object.is)=>{if(o(e,r))return!1;if(!Bc(e)||!Bc(r))return!0;const i=t.get(rp(e));if(!i)return!0;if(n){if(n.get(e)===r)return!1;n.set(e,r)}let s=null;for(const a of i[Ju]||[])if(s=Reflect.has(e,a)!==Reflect.has(r,a),s)return s;if(i[Oi]===!0){if(s=xE(e,r),s)return s}else for(const a of i[Qu]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,a),c=!!Reflect.getOwnPropertyDescriptor(r,a);if(s=l!==c,s)return s}for(const a of i[ep]||[])if(s=op(e[a],r[a],t,n,o),s)return s;if(s===null)throw new Error("invalid used");return s},SE=e=>tp(e)&&e[il]||null,Hc=(e,r=!0)=>{da.set(e,r)};function RE(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function sl(e,r){const t=RE();return t?(t[e]||(t[e]=r()),t[e]):r()}var ho=sl("__zag__refSet",()=>new WeakSet),OE=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,kE=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,AE=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",NE=e=>OE(e)||kE(e)||AE(e),ua=e=>e!==null&&typeof e=="object",pa=e=>ua(e)&&!ho.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!NE(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Bi=()=>process.env.NODE_ENV!=="production";function Gc(e,r,t){typeof t.value=="object"&&!pa(t.value)&&(t.value=Wr(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||r==="__proto__"?Object.defineProperty(e,r,t):e[r]=t.value}function Wr(e){if(typeof e!="object")return e;var r=0,t,n,o,i=Object.prototype.toString.call(e);if(i==="[object Object]"?o=Object.create(Object.getPrototypeOf(e)||null):i==="[object Array]"?o=Array(e.length):i==="[object Set]"?(o=new Set,e.forEach(function(s){o.add(Wr(s))})):i==="[object Map]"?(o=new Map,e.forEach(function(s,a){o.set(Wr(a),Wr(s))})):i==="[object Date]"?o=new Date(+e):i==="[object RegExp]"?o=new RegExp(e.source,e.flags):i==="[object DataView]"?o=new e.constructor(Wr(e.buffer)):i==="[object ArrayBuffer]"?o=e.slice(0):i==="[object Blob]"?o=e.slice():i.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)Gc(o,n[r],Object.getOwnPropertyDescriptor(e,n[r]));for(r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)Object.hasOwnProperty.call(o,t=n[r])&&o[t]===e[t]||Gc(o,t,Object.getOwnPropertyDescriptor(e,t))}return o||e}var Ur=sl("__zag__proxyStateMap",()=>new WeakMap),$E=(e=Object.is,r=(a,l)=>new Proxy(a,l),t=new WeakMap,n=(a,l)=>{const c=t.get(a);if((c==null?void 0:c[0])===l)return c[1];const d=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a));return Hc(d,!0),t.set(a,[l,d]),Reflect.ownKeys(a).forEach(g=>{const u=Reflect.get(a,g);ho.has(u)?(Hc(u,!1),d[g]=u):Ur.has(u)?d[g]=wr(u):d[g]=u}),Object.freeze(d)},o=new WeakMap,i=[1,1],s=a=>{if(!ua(a))throw new Error("object required");const l=o.get(a);if(l)return l;let c=i[0];const d=new Set,g=(O,R=++i[0])=>{c!==R&&(c=R,d.forEach(S=>S(O,R)))};let u=i[1];const h=(O=++i[1])=>(u!==O&&!d.size&&(u=O,m.forEach(([R])=>{const S=R[1](O);S>c&&(c=S)})),c),v=O=>(R,S)=>{const k=[...R];k[1]=[O,...k[1]],g(k,S)},m=new Map,b=(O,R)=>{if(Bi()&&m.has(O))throw new Error("prop listener already exists");if(d.size){const S=R[3](v(O));m.set(O,[R,S])}else m.set(O,[R])},y=O=>{var S;const R=m.get(O);R&&(m.delete(O),(S=R[1])==null||S.call(R))},P=O=>(d.add(O),d.size===1&&m.forEach(([S,k],V)=>{if(Bi()&&k)throw new Error("remove already exists");const F=S[3](v(V));m.set(V,[S,F])}),()=>{d.delete(O),d.size===0&&m.forEach(([S,k],V)=>{k&&(k(),m.set(V,[S]))})}),C=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),w=r(C,{deleteProperty(O,R){const S=Reflect.get(O,R);y(R);const k=Reflect.deleteProperty(O,R);return k&&g(["delete",[R],S]),k},set(O,R,S,k){var te;const V=Reflect.has(O,R),F=Reflect.get(O,R,k);if(V&&(e(F,S)||o.has(S)&&e(F,o.get(S))))return!0;y(R),ua(S)&&(S=SE(S)||S);let J=S;if(!((te=Object.getOwnPropertyDescriptor(O,R))!=null&&te.set)){!Ur.has(S)&&pa(S)&&(J=cs(S));const Q=!ho.has(J)&&Ur.get(J);Q&&b(R,Q)}return Reflect.set(O,R,J,k),g(["set",[R],S,F]),!0}});o.set(a,w);const A=[C,h,n,P];return Ur.set(w,A),Reflect.ownKeys(a).forEach(O=>{const R=Object.getOwnPropertyDescriptor(a,O);R.get||R.set?Object.defineProperty(C,O,R):w[O]=a[O]}),w})=>[s,Ur,ho,e,r,pa,t,n,o,i],[LE]=$E();function cs(e={}){return LE(e)}function ko(e,r,t){const n=Ur.get(e);Bi()&&!n&&console.warn("Please use proxy object");let o;const i=[],s=n[3];let a=!1;const c=s(d=>{if(i.push(d),t){r(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&r(i.splice(0))}))});return a=!0,()=>{a=!1,c()}}function wr(e){const r=Ur.get(e);Bi()&&!r&&console.warn("Please use proxy object");const[t,n,o]=r;return o(t,n())}function Oe(e){return ho.add(e),e}function FE(e,r){Object.keys(r).forEach(o=>{if(Object.getOwnPropertyDescriptor(e,o))throw new Error("object property already defined");const i=r[o],{get:s,set:a}=typeof i=="function"?{get:i}:i,l={};l.get=()=>s(wr(n)),a&&(l.set=c=>a(n,c)),Object.defineProperty(e,o,l)});const n=cs(e);return n}var DE=e=>Array.from(Array(e).keys()),al=e=>e[0],ll=e=>e[e.length-1],VE=(e,r)=>e.indexOf(r)!==-1,ip=(e,...r)=>e.concat(r),sp=(e,...r)=>e.filter(t=>!r.includes(t)),ME=(e,r)=>VE(e,r)?sp(e,r):ip(e,r);function jE(e){for(;e.length>0;)e.pop();return e}var Uc=e=>(e==null?void 0:e.constructor.name)==="Array",_E=(e,r)=>{if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(!ye(e[t],r[t]))return!1;return!0},ye=(e,r)=>{if(Object.is(e,r))return!0;if(e==null&&r!=null||e!=null&&r==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(r==null?void 0:r.isEqual)=="function")return e.isEqual(r);if(typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();if(Uc(e)&&Uc(r))return _E(Array.from(e),Array.from(r));if(typeof e!="object"||typeof r!="object")return!1;const t=Object.keys(r??Object.create(null)),n=t.length;for(let o=0;o<n;o++)if(!Reflect.has(e,t[o]))return!1;for(let o=0;o<n;o++){const i=t[o];if(!ye(e[i],r[i]))return!1}return!0},Tn=(e,...r)=>(typeof e=="function"?e(...r):e)??void 0,qt=e=>e,ap=()=>{},Ao=(...e)=>(...r)=>{e.forEach(function(t){t==null||t(...r)})},ga=(()=>{let e=0;return()=>(e++,e.toString(36))})(),lp=(e,r)=>{var t;try{return e()}catch(n){return n instanceof Error&&((t=Error.captureStackTrace)==null||t.call(Error,n,lp)),r==null?void 0:r()}},BE=()=>process.env.NODE_ENV!=="production",Hi=e=>Array.isArray(e),cp=e=>e!=null&&typeof e=="object",zr=e=>cp(e)&&!Hi(e),cl=e=>typeof e=="number"&&!Number.isNaN(e),ft=e=>typeof e=="string",Rn=e=>typeof e=="function",HE=e=>e==null,mo=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),GE=e=>Object.prototype.toString.call(e),dp=Function.prototype.toString,UE=dp.call(Object),ii=e=>{if(!cp(e)||GE(e)!="[object Object]")return!1;const r=Object.getPrototypeOf(e);if(r===null)return!0;const t=mo(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&dp.call(t)==UE},{floor:fa,abs:Gi,round:ds,min:WE,max:zE,pow:KE,sign:qE}=Math,uo=e=>Number.isNaN(e),gr=e=>uo(e)?0:e,up=(e,r)=>(e%r+r)%r,YE=(e,r)=>(e%r+r)%r,XE=(e,r,t)=>e===0?t:r[e-1],ZE=(e,r,t)=>e===r.length-1?t:r[e+1],JE=(e,r)=>gr(e)>=r,QE=(e,r)=>gr(e)<=r,pp=(e,r,t)=>gr(e)>=r&&gr(e)<=t,eI=(e,r,t)=>ds((gr(e)-r)/t)*t+r,qe=(e,r,t)=>WE(zE(gr(e),r),t),us=(e,r,t)=>(gr(e)-r)/(t-r),dl=(e,r,t,n)=>qe(eI(e*(t-r)+r,r,n),r,t),si=(e,r)=>{let t=e,n=r.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let s=KE(10,i);t=ds(t*s)/s}return t},vo=(e,r)=>typeof r=="number"?fa(e*r+.5)/r:ds(e),Ui=(e,r,t,n)=>{r=Number(r),t=Number(t);let o=(e-(uo(r)?0:r))%n,i=si(Gi(o)*2>=n?e+qE(o)*(n-Gi(o)):e-o,n);return uo(r)?!uo(t)&&i>t&&(i=r+fa(si((t-r)/n,n))*n):i<r?i=r:!uo(t)&&i>t&&(i=r+fa(si((t-r)/n,n))*n),si(i,n)},tI=(e,r,t)=>e[r]===t?e:[...e.slice(0,r),t,...e.slice(r+1)];function gp(e,r){const t=XE(e,r.values,r.min),n=ZE(e,r.values,r.max);let o=r.values.slice();return function(s){let a=Ui(s,t,n,r.step);return o=tI(o,e,s),o[e]=a,o}}function rI(e,r){const t=r.values[e]+r.step;return gp(e,r)(t)}function nI(e,r){const t=r.values[e]-r.step;return gp(e,r)(t)}var oI=(e,r)=>{let t=e.findIndex(i=>r-i<0);if(t===0)return t;if(t===-1)return e.length-1;let n=e[t-1],o=e[t];return Gi(n-r)<Gi(o-r)?t-1:t},iI=(e,r,t,n)=>e.map((o,i)=>({min:i===0?r:e[i-1]+n,max:i===e.length-1?t:e[i+1]-n,value:o})),ha=(e,r)=>{const[t,n]=e,[o,i]=r;return s=>t===n||o===i?o:o+(i-o)/(n-t)*(s-t)},Pe=(e,r=0,t=10)=>{const n=Math.pow(t,r);return ds(e*n)/n},Wc=e=>{if(!Number.isFinite(e))return 0;let r=1,t=0;for(;Math.round(e*r)/r!==e;)r*=10,t+=1;return t},fp=(e,r,t)=>{let n=r==="+"?e+t:e-t;if(e%1!==0||t%1!==0){const o=10**Math.max(Wc(e),Wc(t));e=Math.round(e*o),t=Math.round(t*o),n=r==="+"?e+t:e-t,n/=o}return n},sI=(e,r)=>fp(gr(e),"+",r),aI=(e,r)=>fp(gr(e),"-",r);function he(e){if(!lI(e)||e===void 0)return e;const r=Reflect.ownKeys(e).filter(n=>typeof n=="string"),t={};for(const n of r){const o=e[n];o!==void 0&&(t[n]=he(o))}return t}var lI=e=>e&&typeof e=="object"&&e.constructor===Object;function cI(e,r){const t={},n={},o=new Set(r);for(const i in e)o.has(i)?n[i]=e[i]:t[i]=e[i];return[n,t]}var dI=e=>function(t){return cI(t,e)};function Kr(...e){const r=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(r)}function bo(...e){const r=e.length===1?e[0]:e[1];if((e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production")throw new Error(r)}var uI=Object.defineProperty,pI=(e,r,t)=>r in e?uI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_=(e,r,t)=>pI(e,typeof r!="symbol"?r+"":r,t);function hp(e,...r){if(!ii(e))throw new TypeError("Source argument must be a plain object");for(const t of r){if(!ii(t))continue;const n=he(t);for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;const i=e[o],s=t[o];ii(s)?e[o]=ii(i)?hp(i,s):{...s}:e[o]=s}}return e}function $t(e){return ft(e)?{type:e}:e}function Ir(e){return e?Hi(e)?e.slice():[e]:[]}function mp(e){return zr(e)&&e.predicate!=null}var vp=()=>!0;function ps(e,r,t,n){return o=>{var i;return ft(o)?!!((i=e[o])!=null&&i.call(e,r,t,n)):Rn(o)?o(r,t,n):o.predicate(e)(r,t,n)}}function gI(...e){return{predicate:r=>(t,n,o)=>e.map(ps(r,t,n,o)).some(Boolean)}}function fI(...e){return{predicate:r=>(t,n,o)=>e.map(ps(r,t,n,o)).every(Boolean)}}function hI(e){return{predicate:r=>(t,n,o)=>!ps(r,t,n,o)(e)}}var At={or:gI,and:fI,not:hI};function bp(e){return{predicate:r=>(t,n,o)=>{var i;return(i=e.find(s=>{const a=s.guard??vp;return ps(r,t,n,o)(a)}))==null?void 0:i.actions}}}function yp(e,r){return e=e??vp,(t,n,o)=>{if(ft(e)){const i=r[e];return Rn(i)?i(t,n,o):i}return mp(e)?e.predicate(r)(t,n,o):e==null?void 0:e(t,n,o)}}function Gs(e,r){return(t,n,o)=>mp(e)?e.predicate(r)(t,n,o):e}function mI(e){var i,s;const r=e.computed??qt({}),t=e.context??qt({}),n=e.initial?(s=(i=e.states)==null?void 0:i[e.initial])==null?void 0:s.tags:[],o=cs({value:e.initial??"",previousValue:"",event:qt({}),previousEvent:qt({}),context:FE(t,r),done:!1,tags:n??[],hasTag(a){return this.tags.includes(a)},matches(...a){return a.includes(this.value)},can(a){return qt(this).nextEvents.includes(a)},get nextEvents(){var c,d;const a=((d=(c=e.states)==null?void 0:c[this.value])==null?void 0:d.on)??{},l=(e==null?void 0:e.on)??{};return Object.keys({...a,...l})},get changed(){return this.event.value==="machine.init"||!this.previousValue?!1:this.value!==this.previousValue}});return qt(o)}function Yn(e,r){return(t,n)=>{if(cl(e))return e;if(Rn(e))return e(t,n);if(ft(e)){const o=Number.parseFloat(e);if(!Number.isNaN(o))return o;if(r){const i=r==null?void 0:r[e];return bo(i==null,`[@zag-js/core > determine-delay] Cannot determine delay for \`${e}\`. It doesn't exist in \`options.delays\``),Rn(i)?i(t,n):i}}}}function vI(e){return ft(e)?{target:e}:e}function bI(e,r){return(t,n,o)=>Ir(e).map(vI).find(i=>yp(i.guard,r)(t,n,o)??i.target??i.actions)}var Pp=class{constructor(e,r){var t,n,o,i,s;_(this,"status","Not Started"),_(this,"state"),_(this,"initialState"),_(this,"initialContext"),_(this,"id"),_(this,"type","machine"),_(this,"activityEvents",new Map),_(this,"delayedEvents",new Map),_(this,"stateListeners",new Set),_(this,"doneListeners",new Set),_(this,"contextWatchers",new Set),_(this,"removeStateListener",ap),_(this,"parent"),_(this,"children",new Map),_(this,"guardMap"),_(this,"actionMap"),_(this,"delayMap"),_(this,"activityMap"),_(this,"sync"),_(this,"options"),_(this,"config"),_(this,"_created",()=>{if(!this.config.created)return;const a=$t("machine.created");this.executeActions(this.config.created,a)}),_(this,"start",a=>{if(this.state.value="",this.state.tags=[],this.status==="Running")return this;this.status="Running",this.removeStateListener=ko(this.state,()=>{this.stateListeners.forEach(h=>{h(this.stateSnapshot)})},this.sync),this.setupContextWatchers(),this.executeActivities($t("machine.start"),Ir(this.config.activities),"machine.start"),this.executeActions(this.config.entry,$t("machine.start"));const l=$t("machine.init"),c=zr(a)?a.value:a,d=zr(a)?a.context:void 0;d&&this.setContext(d);const g={target:c??this.config.initial},u=this.getNextStateInfo(g,l);return this.initialState=u,this.performStateChangeEffects(this.state.value,u,l),this}),_(this,"setupContextWatchers",()=>{const{watch:a}=this.config;if(!a)return;let l=wr(this.state.context);const c=ko(this.state.context,()=>{var g;const d=wr(this.state.context);for(const[u,h]of Object.entries(a))(((g=this.options.compareFns)==null?void 0:g[u])??Object.is)(l[u],d[u])||this.executeActions(h,this.state.event);l=d});this.contextWatchers.add(c)}),_(this,"stop",()=>{if(this.status!=="Stopped")return this.performExitEffects(this.state.value,$t("machine.stop")),this.executeActions(this.config.exit,$t("machine.stop")),this.setState(""),this.setEvent("machine.stop"),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.status="Stopped",this}),_(this,"stopStateListeners",()=>{this.removeStateListener(),this.stateListeners.clear()}),_(this,"stopContextWatchers",()=>{this.contextWatchers.forEach(a=>a()),this.contextWatchers.clear()}),_(this,"stopDelayedEvents",()=>{this.delayedEvents.forEach(a=>{a.forEach(l=>l())}),this.delayedEvents.clear()}),_(this,"stopActivities",a=>{var l,c;a?((l=this.activityEvents.get(a))==null||l.forEach(d=>d()),(c=this.activityEvents.get(a))==null||c.clear(),this.activityEvents.delete(a)):(this.activityEvents.forEach(d=>{d.forEach(g=>g()),d.clear()}),this.activityEvents.clear())}),_(this,"sendChild",(a,l)=>{const c=$t(a),d=Tn(l,this.contextSnapshot),g=this.children.get(d);g||bo(`[@zag-js/core] Cannot send '${c.type}' event to unknown child`),g.send(c)}),_(this,"stopChild",a=>{this.children.has(a)||bo(`[@zag-js/core > stop-child] Cannot stop unknown child ${a}`),this.children.get(a).stop(),this.children.delete(a)}),_(this,"removeChild",a=>{this.children.delete(a)}),_(this,"stopChildren",()=>{this.children.forEach(a=>a.stop()),this.children.clear()}),_(this,"setParent",a=>{this.parent=a}),_(this,"spawn",(a,l)=>{const c=Tn(a);return l&&(c.id=l),c.type="machine.actor",c.setParent(this),this.children.set(c.id,qt(c)),c.onDone(()=>{this.removeChild(c.id)}).start(),qt(Oe(c))}),_(this,"stopActivity",a=>{var c;if(!this.state.value)return;const l=this.activityEvents.get(this.state.value);(c=l==null?void 0:l.get(a))==null||c(),l==null||l.delete(a)}),_(this,"addActivityCleanup",(a,l,c)=>{var d;a&&(this.activityEvents.has(a)?(d=this.activityEvents.get(a))==null||d.set(l,c):this.activityEvents.set(a,new Map([[l,c]])))}),_(this,"setState",a=>{this.state.previousValue=this.state.value,this.state.value=a;const l=this.getStateNode(a);a==null?jE(this.state.tags):this.state.tags=Ir(l==null?void 0:l.tags)}),_(this,"setContext",a=>{a&&hp(this.state.context,a)}),_(this,"setOptions",a=>{const l=he(a);this.actionMap={...this.actionMap,...l.actions},this.delayMap={...this.delayMap,...l.delays},this.activityMap={...this.activityMap,...l.activities},this.guardMap={...this.guardMap,...l.guards}}),_(this,"getStateNode",a=>{var l;if(a)return(l=this.config.states)==null?void 0:l[a]}),_(this,"getNextStateInfo",(a,l)=>{const c=this.determineTransition(a,l),d=!(c!=null&&c.target),g=(c==null?void 0:c.target)??this.state.value,u=this.state.value!==g,h=this.getStateNode(g),m={reenter:!d&&!u&&!(c!=null&&c.internal),transition:c,stateNode:h,target:g,changed:u};return this.log("NextState:",`[${l.type}]`,this.state.value,"---->",m.target),m}),_(this,"getAfterActions",(a,l)=>{let c;const d=this.state.value;return{entry:()=>{c=globalThis.setTimeout(()=>{const g=this.getNextStateInfo(a,this.state.event);this.performStateChangeEffects(d,g,this.state.event)},l)},exit:()=>{globalThis.clearTimeout(c)}}}),_(this,"getDelayedEventActions",a=>{const l=this.getStateNode(a),c=this.state.event;if(!l||!l.after)return;const d=[],g=[];if(Hi(l.after)){const u=this.determineTransition(l.after,c);if(!u)return;if(!mo(u,"delay"))throw new Error(`[@zag-js/core > after] Delay is required for after transition: ${JSON.stringify(u)}`);const v=Yn(u.delay,this.delayMap)(this.contextSnapshot,c),m=this.getAfterActions(u,v);return d.push(m.entry),g.push(m.exit),{entries:d,exits:g}}if(zr(l.after))for(const u in l.after){const h=l.after[u],m=Yn(u,this.delayMap)(this.contextSnapshot,c),b=this.getAfterActions(h,m);d.push(b.entry),g.push(b.exit)}return{entries:d,exits:g}}),_(this,"executeActions",(a,l)=>{var d;const c=Gs(a,this.guardMap)(this.contextSnapshot,l,this.guardMeta);for(const g of Ir(c)){const u=ft(g)?(d=this.actionMap)==null?void 0:d[g]:g;Kr(ft(g)&&!u,`[@zag-js/core > execute-actions] No implementation found for action: \`${g}\``),u==null||u(this.state.context,l,this.meta)}}),_(this,"executeActivities",(a,l,c)=>{var d;for(const g of l){const u=ft(g)?(d=this.activityMap)==null?void 0:d[g]:g;if(!u){Kr(`[@zag-js/core > execute-activity] No implementation found for activity: \`${g}\``);continue}const h=u(this.state.context,a,this.meta);if(h){const v=ft(g)?g:g.name||ga();this.addActivityCleanup(c??this.state.value,v,h)}}}),_(this,"createEveryActivities",(a,l)=>{if(a)if(Hi(a)){const c=Ir(a).find(h=>{const v=h.delay,b=Yn(v,this.delayMap)(this.contextSnapshot,this.state.event);return yp(h.guard,this.guardMap)(this.contextSnapshot,this.state.event,this.guardMeta)??b!=null});if(!c)return;const g=Yn(c.delay,this.delayMap)(this.contextSnapshot,this.state.event);l(()=>{const h=globalThis.setInterval(()=>{this.executeActions(c.actions,this.state.event)},g);return()=>{globalThis.clearInterval(h)}})}else for(const c in a){const d=a==null?void 0:a[c],u=Yn(c,this.delayMap)(this.contextSnapshot,this.state.event);l(()=>{const v=globalThis.setInterval(()=>{this.executeActions(d,this.state.event)},u);return()=>{globalThis.clearInterval(v)}})}}),_(this,"setEvent",a=>{this.state.previousEvent=this.state.event,this.state.event=Oe($t(a))}),_(this,"performExitEffects",(a,l)=>{const c=this.state.value;if(c==="")return;const d=a?this.getStateNode(a):void 0;this.stopActivities(c);const g=Gs(d==null?void 0:d.exit,this.guardMap)(this.contextSnapshot,l,this.guardMeta),u=Ir(g),h=this.delayedEvents.get(c);h&&u.push(...h),this.executeActions(u,l),this.delayedEvents.delete(c)}),_(this,"performEntryEffects",(a,l)=>{const c=this.getStateNode(a),d=Ir(c==null?void 0:c.activities);this.createEveryActivities(c==null?void 0:c.every,v=>{d.unshift(v)}),d.length>0&&this.executeActivities(l,d);const g=Gs(c==null?void 0:c.entry,this.guardMap)(this.contextSnapshot,l,this.guardMeta),u=Ir(g),h=this.getDelayedEventActions(a);c!=null&&c.after&&h&&(this.delayedEvents.set(a,h==null?void 0:h.exits),u.push(...h.entries)),this.executeActions(u,l),(c==null?void 0:c.type)==="final"&&(this.state.done=!0,this.doneListeners.forEach(v=>{v(this.stateSnapshot)}),this.stop())}),_(this,"performTransitionEffects",(a,l)=>{const c=this.determineTransition(a,l);this.executeActions(c==null?void 0:c.actions,l)}),_(this,"performStateChangeEffects",(a,l,c)=>{this.setEvent(c);const d=l.changed||l.reenter;d&&this.performExitEffects(a,c),this.performTransitionEffects(l.transition,c),this.setState(l.target),d&&this.performEntryEffects(l.target,c)}),_(this,"determineTransition",(a,l)=>{const c=bI(a,this.guardMap);return c==null?void 0:c(this.contextSnapshot,l,this.guardMeta)}),_(this,"sendParent",a=>{var c;this.parent||bo("[@zag-js/core > send-parent] Cannot send event to an unknown parent");const l=$t(a);(c=this.parent)==null||c.send(l)}),_(this,"log",(...a)=>{BE()&&this.options.debug&&console.log(...a)}),_(this,"send",a=>{const l=$t(a);this.transition(this.state.value,l)}),_(this,"transition",(a,l)=>{var h,v;const c=ft(a)?this.getStateNode(a):a==null?void 0:a.stateNode,d=$t(l);if(!c&&!this.config.on){const m=this.status==="Stopped"?"[@zag-js/core > transition] Cannot transition a stopped machine":`[@zag-js/core > transition] State does not have a definition for \`state\`: ${a}, \`event\`: ${d.type}`;Kr(m);return}const g=((h=c==null?void 0:c.on)==null?void 0:h[d.type])??((v=this.config.on)==null?void 0:v[d.type]),u=this.getNextStateInfo(g,d);return this.performStateChangeEffects(this.state.value,u,d),u.stateNode}),_(this,"subscribe",a=>(this.stateListeners.add(a),this.status==="Running"&&a(this.stateSnapshot),()=>{this.stateListeners.delete(a)})),_(this,"onDone",a=>(this.doneListeners.add(a),this)),_(this,"onTransition",a=>(this.stateListeners.add(a),this.status==="Running"&&a(this.stateSnapshot),this)),this.config=Wr(e),this.options=Wr(r??{}),this.id=this.config.id??`machine-${ga()}`,this.guardMap=((t=this.options)==null?void 0:t.guards)??{},this.actionMap=((n=this.options)==null?void 0:n.actions)??{},this.delayMap=((o=this.options)==null?void 0:o.delays)??{},this.activityMap=((i=this.options)==null?void 0:i.activities)??{},this.sync=((s=this.options)==null?void 0:s.sync)??!1,this.state=mI(this.config),this.initialContext=wr(this.state.context)}get stateSnapshot(){return qt(wr(this.state))}getState(){return this.stateSnapshot}get contextSnapshot(){return this.stateSnapshot.context}get self(){const e=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),stopActivity:this.stopActivity.bind(this),get state(){return e.stateSnapshot},get initialContext(){return e.initialContext},get initialState(){var r;return((r=e.initialState)==null?void 0:r.target)??""}}}get meta(){var e;return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),self:this.self,initialContext:this.initialContext,initialState:((e=this.initialState)==null?void 0:e.target)??"",getState:()=>this.stateSnapshot,getAction:r=>this.actionMap[r],getGuard:r=>this.guardMap[r]}}get guardMeta(){return{state:this.stateSnapshot}}get[Symbol.toStringTag](){return"Machine"}getHydrationState(){const e=this.getState();return{value:e.value,tags:e.tags}}},Ce=(e,r)=>new Pp(e,r),yI=e=>e instanceof Pp||(e==null?void 0:e.type)==="machine",PI=(...e)=>e.map(r=>{var t;return(t=r==null?void 0:r.trim)==null?void 0:t.call(r)}).filter(Boolean).join(" "),CI=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zc=e=>{const r={};let t;for(;t=CI.exec(e);)r[t[1]]=t[2];return r},EI=(e,r)=>{if(ft(e)){if(ft(r))return`${e};${r}`;e=zc(e)}else ft(r)&&(r=zc(r));return Object.assign({},e??{},r??{})};function E(...e){let r={};for(let t of e){for(let n in r){if(n.startsWith("on")&&typeof r[n]=="function"&&typeof t[n]=="function"){r[n]=Ao(t[n],r[n]);continue}if(n==="className"||n==="class"){r[n]=PI(r[n],t[n]);continue}if(n==="style"){r[n]=EI(r[n],t[n]);continue}r[n]=t[n]!==void 0?t[n]:r[n]}for(let n in t)r[n]===void 0&&(r[n]=t[n])}return r}function II(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const Us=e=>{const r=f.memo(f.forwardRef((t,n)=>{const{asChild:o,children:i,...s}=t;if(!o)return f.createElement(e,{...s,ref:n},i);const a=f.Children.only(i);if(!f.isValidElement(a))return null;const l=II(a);return f.cloneElement(a,{...E(s,a.props),ref:n?mt(n,l):l})}));return r.displayName=e.displayName||e.name,r},TI=()=>{const e=new Map;return new Proxy(Us,{apply(r,t,n){return Us(n[0])},get(r,t){const n=t;return e.has(n)||e.set(n,Us(n)),e.get(n)}})},I=TI(),D=()=>(e,r)=>r.reduce((t,n)=>{const[o,i]=t,s=n;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),st=e=>D()(e,["immediate","lazyMount","onExitComplete","present","unmountOnExit"]);function wI(e){return new Proxy({},{get(){return e}})}var ee=()=>e=>Array.from(new Set(e));function xI(e,r,t){const n=e.matches("mounted","unmountSuspended");return{skip:!e.context.initial&&n,present:n,setNode(o){o&&r({type:"NODE.SET",node:o})},unmount(){r({type:"UNMOUNT"})}}}function SI(e){return Ce({initial:e.present?"mounted":"unmounted",context:{node:null,styles:null,unmountAnimationName:null,prevAnimationName:null,present:!1,initial:!1,...e},exit:["clearInitial","cleanupNode"],watch:{present:["setInitial","syncPresence"]},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["invokeOnExitComplete"]},"UNMOUNT.SUSPEND":"unmountSuspended"}},unmountSuspended:{activities:["trackAnimationEvents"],after:{ANIMATION_DURATION:{target:"unmounted",actions:["invokeOnExitComplete"]}},on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["invokeOnExitComplete"]}}},unmounted:{entry:["clearPrevAnimationName"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}}},{delays:{ANIMATION_DURATION(r){var t,n;return Kc((t=r.styles)==null?void 0:t.animationDuration)+Kc((n=r.styles)==null?void 0:n.animationDelay)+RI}},actions:{setInitial(r){r.initial=!0},clearInitial(r){r.initial=!1},cleanupNode(r){r.node=null,r.styles=null},invokeOnExitComplete(r){var t;(t=r.onExitComplete)==null||t.call(r)},setNode(r,t){r.node=Oe(t.node)},setStyles(r,t){const n=t.node.ownerDocument.defaultView||window;r.styles=Oe(n.getComputedStyle(t.node))},syncPresence(r,t,{send:n}){var s;if(r.present){n({type:"MOUNT",src:"presence.changed"});return}if(!r.present&&((s=r.node)==null?void 0:s.ownerDocument.visibilityState)==="hidden"){n({type:"UNMOUNT",src:"visibilitychange"});return}const o=ai(r.styles);(r.immediate?queueMicrotask:requestAnimationFrame)(()=>{var a,l;r.unmountAnimationName=o,o==="none"||o===r.prevAnimationName||((a=r.styles)==null?void 0:a.display)==="none"||((l=r.styles)==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName(r){(r.immediate?queueMicrotask:requestAnimationFrame)(()=>{r.prevAnimationName=ai(r.styles)})},clearPrevAnimationName(r){r.prevAnimationName=null}},activities:{trackAnimationEvents(r,t,{send:n}){const o=r.node;if(!o)return;const i=a=>{var c,d;(((d=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:d[0])??a.target)===o&&(r.prevAnimationName=ai(r.styles))},s=a=>{var d,g;const l=ai(r.styles);(((g=(d=a.composedPath)==null?void 0:d.call(a))==null?void 0:g[0])??a.target)===o&&l===r.unmountAnimationName&&n({type:"UNMOUNT",src:"animationend"})};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",s),o.addEventListener("animationend",s),()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",s),o.removeEventListener("animationend",s)}}}})}function ai(e){return(e==null?void 0:e.animationName)||"none"}function Kc(e){return parseFloat(e||"0")*1e3}var RI=16.667;ee()(["onExitComplete","present","immediate"]);var we=wI(e=>e),qc=e=>(e==null?void 0:e.constructor.name)==="Array",OI=(e,r)=>{if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(!ul(e[t],r[t]))return!1;return!0},ul=(e,r)=>{if(Object.is(e,r))return!0;if(e==null&&r!=null||e!=null&&r==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(r==null?void 0:r.isEqual)=="function")return e.isEqual(r);if(typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();if(qc(e)&&qc(r))return OI(Array.from(e),Array.from(r));if(typeof e!="object"||typeof r!="object")return!1;const t=Object.keys(r??Object.create(null)),n=t.length;for(let o=0;o<n;o++)if(!Reflect.has(e,t[o]))return!1;for(let o=0;o<n;o++){const i=t[o];if(!ul(e[i],r[i]))return!1}return!0},kI=()=>process.env.NODE_ENV!=="production",AI=Function.prototype.toString;AI.call(Object);function Cp(e){if(!NI(e)||e===void 0)return e;const r=Reflect.ownKeys(e).filter(n=>typeof n=="string"),t={};for(const n of r){const o=e[n];o!==void 0&&(t[n]=Cp(o))}return t}var NI=e=>e&&typeof e=="object"&&e.constructor===Object;function $I(e,r){const t=f.useRef(!1),n=f.useRef(!1);f.useEffect(()=>{if(t.current&&n.current)return e();n.current=!0},r),f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[])}var LI=sl("__zag__targetCache",()=>new WeakMap);function Ep(e,r){const{actions:t,context:n,sync:o}=r??{},i=f.useRef(void 0),s=f.useRef(void 0),a=f.useSyncExternalStore(f.useCallback(g=>ko(e.state,g,o),[o]),()=>{const g=wr(e.state);try{if(i.current&&s.current&&!op(i.current,g,s.current,new WeakMap))return i.current}catch{}return g},()=>wr(e.state));e.setOptions({actions:t});const l=f.useMemo(()=>Cp(n??{}),[n]);$I(()=>{const g=Object.entries(l),u=e.contextSnapshot??{};g.map(([m,b])=>({key:m,curr:b,prev:u[m],equal:ul(u[m],b)})).every(({equal:m})=>m)||e.setContext(l)},[l]);const c=new WeakMap;f.useEffect(()=>{i.current=a,s.current=c});const d=f.useMemo(()=>new WeakMap,[]);return np(a,c,d,LI)}function FI(e){return[Ep(e),e.send]}function DI(e){const r=f.useRef(void 0);return r.current||(r.current={v:e()}),r.current.v}var VI=typeof document<"u"?f.useLayoutEffect:f.useEffect;function MI(e,r){const{state:t,context:n}=r??{},o=DI(()=>{const s=typeof e=="function"?e():e;return n&&s.setContext(n),s._created(),s}),i=f.useRef(void 0);return VI(()=>{const s=t??i.current;return o.start(s),()=>{kI()&&(i.current=o.getHydrationState()),o.stop()}},[]),o}function xe(e,r){const t=MI(e,r);return[Ep(t,r),t.send,t]}function q(e,r={}){const{sync:t=!1}=r,n=jI(e);return f.useCallback((...o)=>{var i;return t?queueMicrotask(()=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)}):(i=n.current)==null?void 0:i.call(n,...o)},[t,n])}function jI(e){const r=f.useRef(e);return r.current=e,r}const Xe=e=>{const{lazyMount:r,unmountOnExit:t,present:n,...o}=e,i=f.useRef(!1),s={...o,present:n,onExitComplete:q(e.onExitComplete)},[a,l]=xe(SI(s),{context:s}),c=xI(a,l);c.present&&(i.current=!0);const d=!c.present&&!i.current&&r||t&&!c.present&&i.current,g=()=>({"data-state":n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:g,present:c.present,unmounted:d}},Ip=f.forwardRef((e,r)=>{const[t,n]=st(e),o=Xe(t);return o.unmounted?null:p.jsx(I.div,{...n,...o.getPresenceProps(),"data-scope":"presence","data-part":"root",ref:mt(o.ref,r)})});Ip.displayName="Presence";const[at,Ze]=U({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),_I=j(Ip);function Ws(e,r=[]){const t=f.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return f.useInsertionEffect(()=>{t.current=e}),f.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},r)}function BI(e){const{value:r,defaultValue:t,onChange:n,shouldUpdate:o=(u,h)=>u!==h}=e,i=Ws(n),s=Ws(o),[a,l]=f.useState(t),c=r!==void 0,d=c?r:a,g=Ws(u=>{const v=typeof u=="function"?u(d):u;s(d,v)&&(c||l(v),i(v))},[c,i,d,s]);return[d,g]}const[Tp,jo]=U({name:"AccordionContext",hookName:"useAccordionContext",providerName:"<AccordionProvider />"}),HI=e=>e.children(jo());var fe=(e,r=[])=>({parts:(...t)=>{if(GI(r))return fe(e,t);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...t)=>fe(e,[...r,...t]),rename:t=>fe(t,r),keys:()=>r,build:()=>[...new Set(r)].reduce((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${un(e)}"][data-part="${un(n)}"]`,`& [data-scope="${un(e)}"][data-part="${un(n)}"]`].join(", "),attrs:{"data-scope":un(e),"data-part":un(n)}}}),{})}),un=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),GI=e=>e.length===0,UI=fe("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),Xn=UI.build(),je=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`accordion:${e.id}`},getItemId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.item)==null?void 0:n.call(t,r))??`accordion:${e.id}:item:${r}`},getItemContentId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemContent)==null?void 0:n.call(t,r))??`accordion:${e.id}:content:${r}`},getItemTriggerId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemTrigger)==null?void 0:n.call(t,r))??`accordion:${e.id}:trigger:${r}`},getRootEl:e=>je.getById(e,je.getRootId(e)),getTriggerEls:e=>{const t=`[aria-controls][data-ownedby='${CSS.escape(je.getRootId(e))}']:not([disabled])`;return Lt(je.getRootEl(e),t)},getFirstTriggerEl:e=>al(je.getTriggerEls(e)),getLastTriggerEl:e=>ll(je.getTriggerEls(e)),getNextTriggerEl:(e,r)=>nl(je.getTriggerEls(e),je.getItemTriggerId(e,r)),getPrevTriggerEl:(e,r)=>ol(je.getTriggerEls(e),je.getItemTriggerId(e,r))});function WI(e,r,t){const n=e.context.focusedValue,o=e.context.value,i=e.context.multiple;function s(l){let c=l;!i&&c.length>1&&(c=[c[0]]),r({type:"VALUE.SET",value:c})}function a(l){return{expanded:o.includes(l.value),focused:n===l.value,disabled:!!(l.disabled??e.context.disabled)}}return{focusedValue:n,value:o,setValue:s,getItemState:a,getRootProps(){return t.element({...Xn.root.attrs,dir:e.context.dir,id:je.getRootId(e.context),"data-orientation":e.context.orientation})},getItemProps(l){const c=a(l);return t.element({...Xn.item.attrs,dir:e.context.dir,id:je.getItemId(e.context,l.value),"data-state":c.expanded?"open":"closed","data-focus":T(c.focused),"data-disabled":T(c.disabled),"data-orientation":e.context.orientation})},getItemContentProps(l){const c=a(l);return t.element({...Xn.itemContent.attrs,dir:e.context.dir,role:"region",id:je.getItemContentId(e.context,l.value),"aria-labelledby":je.getItemTriggerId(e.context,l.value),hidden:!c.expanded,"data-state":c.expanded?"open":"closed","data-disabled":T(c.disabled),"data-focus":T(c.focused),"data-orientation":e.context.orientation})},getItemIndicatorProps(l){const c=a(l);return t.element({...Xn.itemIndicator.attrs,dir:e.context.dir,"aria-hidden":!0,"data-state":c.expanded?"open":"closed","data-disabled":T(c.disabled),"data-focus":T(c.focused),"data-orientation":e.context.orientation})},getItemTriggerProps(l){const{value:c}=l,d=a(l);return t.button({...Xn.itemTrigger.attrs,type:"button",dir:e.context.dir,id:je.getItemTriggerId(e.context,c),"aria-controls":je.getItemContentId(e.context,c),"aria-expanded":d.expanded,disabled:d.disabled,"data-orientation":e.context.orientation,"aria-disabled":d.disabled,"data-state":d.expanded?"open":"closed","data-ownedby":je.getRootId(e.context),onFocus(){d.disabled||r({type:"TRIGGER.FOCUS",value:c})},onBlur(){d.disabled||r("TRIGGER.BLUR")},onClick(g){d.disabled||(Do()&&g.currentTarget.focus(),r({type:"TRIGGER.CLICK",value:c}))},onKeyDown(g){if(g.defaultPrevented||d.disabled)return;const u={ArrowDown(){e.context.isHorizontal||r({type:"GOTO.NEXT",value:c})},ArrowUp(){e.context.isHorizontal||r({type:"GOTO.PREV",value:c})},ArrowRight(){e.context.isHorizontal&&r({type:"GOTO.NEXT",value:c})},ArrowLeft(){e.context.isHorizontal&&r({type:"GOTO.PREV",value:c})},Home(){r({type:"GOTO.FIRST",value:c})},End(){r({type:"GOTO.LAST",value:c})}},h=er(g,{dir:e.context.dir,orientation:e.context.orientation}),v=u[h];v&&(v(g),g.preventDefault())}})}}}var{and:zI,not:KI}=At;function qI(e){const r=he(e);return Ce({id:"accordion",initial:"idle",context:{focusedValue:null,value:[],collapsible:!1,multiple:!1,orientation:"vertical",...r},watch:{value:"coarseValue",multiple:"coarseValue"},created:"coarseValue",computed:{isHorizontal:t=>t.orientation==="horizontal"},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:"setFocusedValue"}}},focused:{on:{"GOTO.NEXT":{actions:"focusNextTrigger"},"GOTO.PREV":{actions:"focusPrevTrigger"},"TRIGGER.CLICK":[{guard:zI("isExpanded","canToggle"),actions:["collapse"]},{guard:KI("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:"focusFirstTrigger"},"GOTO.LAST":{actions:"focusLastTrigger"},"TRIGGER.BLUR":{target:"idle",actions:"clearFocusedValue"}}}}},{guards:{canToggle:t=>!!t.collapsible||!!t.multiple,isExpanded:(t,n)=>t.value.includes(n.value)},actions:{collapse(t,n){const o=t.multiple?sp(t.value,n.value):[];Zn.value(t,t.multiple?o:[])},expand(t,n){const o=t.multiple?ip(t.value,n.value):[n.value];Zn.value(t,o)},focusFirstTrigger(t){var n;(n=je.getFirstTriggerEl(t))==null||n.focus()},focusLastTrigger(t){var n;(n=je.getLastTriggerEl(t))==null||n.focus()},focusNextTrigger(t){if(!t.focusedValue)return;const n=je.getNextTriggerEl(t,t.focusedValue);n==null||n.focus()},focusPrevTrigger(t){if(!t.focusedValue)return;const n=je.getPrevTriggerEl(t,t.focusedValue);n==null||n.focus()},setFocusedValue(t,n){Zn.focusedValue(t,n.value)},clearFocusedValue(t){Zn.focusedValue(t,null)},setValue(t,n){Zn.value(t,n.value)},coarseValue(t){!t.multiple&&t.value.length>1&&(Kr("The value of accordion should be a single value when multiple is false."),t.value=[t.value[0]])}}})}var Yc={change(e){var r;(r=e.onValueChange)==null||r.call(e,{value:Array.from(e.value)})},focusChange(e){var r;(r=e.onFocusChange)==null||r.call(e,{value:e.focusedValue})}},Zn={value(e,r){ye(e.value,r)||(e.value=r,Yc.change(e))},focusedValue(e,r){ye(e.focusedValue,r)||(e.focusedValue=r,Yc.focusChange(e))}};ee()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value"]);var YI=ee()(["value","disabled"]),XI=dI(YI);const[ZI,JI]=U({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItemProvider />"}),QI=e=>D()(e,["defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var eT=fe("collapsible").parts("root","trigger","content"),zs=eT.build(),pt=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`collapsible:${e.id}`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`collapsible:${e.id}:content`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`collapsible:${e.id}:trigger`},getRootEl:e=>pt.getById(e,pt.getRootId(e)),getContentEl:e=>pt.getById(e,pt.getContentId(e)),getTriggerEl:e=>pt.getById(e,pt.getTriggerId(e))});function tT(e,r,t){const n=e.matches("open","closing"),o=e.matches("open"),i=e.context.height,s=e.context.width,a=!!e.context.disabled,l=!e.context.initial&&o;return{disabled:a,visible:n,open:o,measureSize(){r("SIZE.MEASURE")},setOpen(c){c!==o&&r(c?"OPEN":"CLOSE")},getRootProps(){return t.element({...zs.root.attrs,"data-state":o?"open":"closed",dir:e.context.dir,id:pt.getRootId(e.context)})},getContentProps(){return t.element({...zs.content.attrs,"data-collapsible":"","data-state":l?void 0:o?"open":"closed",id:pt.getContentId(e.context),"data-disabled":T(a),hidden:!n,style:{"--height":i!=null?`${i}px`:void 0,"--width":s!=null?`${s}px`:void 0}})},getTriggerProps(){return t.element({...zs.trigger.attrs,id:pt.getTriggerId(e.context),dir:e.context.dir,type:"button","data-state":o?"open":"closed","data-disabled":T(a),"aria-controls":pt.getContentId(e.context),"aria-expanded":n||!1,onClick(c){c.defaultPrevented||a||r({type:o?"CLOSE":"OPEN",src:"trigger.click"})}})}}}function rT(e){const r=he(e);return Ce({id:"collapsible",initial:r.open?"open":"closed",context:{...r,height:0,width:0,initial:!1,stylesRef:null,unmountAnimationName:null},watch:{open:["setInitial","computeSize","toggleVisibility"]},exit:["clearInitial","cleanupNode"],states:{closed:{tags:["closed"],on:{"CONTROLLED.OPEN":"open",OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{tags:["open"],activities:["trackExitAnimation"],on:{"CONTROLLED.CLOSE":"closed","CONTROLLED.OPEN":"open",OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"ANIMATION.END":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{tags:["open"],activities:["trackEnterAnimation"],on:{"CONTROLLED.CLOSE":"closing",CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"SIZE.MEASURE":{actions:["measureSize"]},"ANIMATION.END":{actions:["clearInitial"]}}}}},{guards:{isOpenControlled:t=>!!t["open.controlled"]},activities:{trackEnterAnimation(t,n,{send:o}){let i;const s=G(()=>{const a=pt.getContentEl(t);if(!a)return;const l=wo(a).animationName;if(!l||l==="none"){o({type:"ANIMATION.END"});return}const d=g=>{He(g)===a&&o({type:"ANIMATION.END"})};a.addEventListener("animationend",d),i=()=>{a.removeEventListener("animationend",d)}});return()=>{s(),i==null||i()}},trackExitAnimation(t,n,{send:o}){let i;const s=G(()=>{const a=pt.getContentEl(t);if(!a)return;const l=wo(a).animationName;if(!l||l==="none"){o({type:"ANIMATION.END"});return}const d=g=>{const h=(a.ownerDocument.defaultView||window).getComputedStyle(a).animationName;He(g)===a&&h===t.unmountAnimationName&&o({type:"ANIMATION.END"})};a.addEventListener("animationend",d),i=()=>{a.removeEventListener("animationend",d)}});return()=>{s(),i==null||i()}}},actions:{setInitial(t){t.initial=!0},clearInitial(t){G(()=>{t.initial=!1})},cleanupNode(t){t.stylesRef=null},measureSize(t){const n=pt.getContentEl(t);if(!n)return;const{height:o,width:i}=n.getBoundingClientRect();t.height=o,t.width=i},computeSize(t,n){var o;(o=t._rafCleanup)==null||o.call(t),t._rafCleanup=G(()=>{const i=pt.getContentEl(t);if(!i)return;if(t.stylesRef||(t.stylesRef=Oe({animationName:i.style.animationName,animationDuration:i.style.animationDuration})),n.type==="CLOSE"||!t.open){const l=i.ownerDocument.defaultView||window;t.unmountAnimationName=l.getComputedStyle(i).animationName}const s=i.hidden;i.style.animationName="none",i.style.animationDuration="0s",i.hidden=!1;const a=i.getBoundingClientRect();t.height=a.height,t.width=a.width,t.initial&&(i.style.animationName=t.stylesRef.animationName,i.style.animationDuration=t.stylesRef.animationDuration),i.hidden=s})},invokeOnOpen:t=>{var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose:t=>{var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},invokeOnExitComplete(t){var n;(n=t.onExitComplete)==null||n.call(t)},toggleVisibility:(t,n,{send:o})=>{o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE"})}}})}ee()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","open.controlled","open"]);const[nT,Ae]=U({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),oT=(e={})=>{const{lazyMount:r,unmountOnExit:t,...n}=e,o=f.useRef(!1),{dir:i}=Te(),{getRootNode:s}=Ae(),a={id:f.useId(),dir:i,getRootNode:s,open:e.defaultOpen,"open.controlled":e.open!==void 0,...n},l={...a,open:e.open,onOpenChange:q(e.onOpenChange,{sync:!0})},[c,d]=xe(rT(a),{context:l}),g=tT(c,d,we);g.visible&&(o.current=!0);const u=!g.visible&&!o.current&&r||t&&!g.visible&&o.current;return{...g,isUnmounted:u}},[wp,gs]=U({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),pl=f.forwardRef((e,r)=>{const[t,n]=QI(e),o=oT(t),i=E(o.getRootProps(),n);return p.jsx(wp,{value:o,children:p.jsx(I.div,{...i,ref:r})})});pl.displayName="CollapsibleRoot";var iT=Object.defineProperty,sT=(e,r,t)=>r in e?iT(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,gl=(e,r,t)=>sT(e,r+"",t),aT=(e,r,t)=>{const n=`linear-gradient(to ${e[+!r]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(${t},0,0),rgb(${t},255,0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(${t},0,255),rgb(${t},255,255))`,WebkitMaskImage:n,maskImage:n}}},lT=(e,r,t)=>{const n=`linear-gradient(to ${e[+!r]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(0,${t},0),rgb(255,${t},0))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(0,${t},255),rgb(255,${t},255))`,WebkitMaskImage:n,maskImage:n}}},cT=(e,r,t)=>{const n=`linear-gradient(to ${e[+!r]}, transparent, #000)`;return{areaStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(0,0,${t}),rgb(255,0,${t}))`},areaGradientStyles:{backgroundImage:`linear-gradient(to ${e[Number(r)]},rgb(0,255,${t}),rgb(255,255,${t}))`,WebkitMaskImage:n,maskImage:n}}},dT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(r)]}, hsla(0,0%,0%,1) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,1) 100%)`,`linear-gradient(to ${e[+!r]},hsl(0,0%,50%),hsla(0,0%,50%,0))`,`hsl(${t}, 100%, 50%)`].join(",")}}),uT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!r]}, hsla(0,0%,0%,${t}) 0%, hsla(0,0%,0%,0) 50%, hsla(0,0%,100%,0) 50%, hsla(0,0%,100%,${t}) 100%)`,`linear-gradient(to ${e[Number(r)]},hsla(0,100%,50%,${t}),hsla(60,100%,50%,${t}),hsla(120,100%,50%,${t}),hsla(180,100%,50%,${t}),hsla(240,100%,50%,${t}),hsla(300,100%,50%,${t}),hsla(359,100%,50%,${t}))`,"hsl(0, 0%, 50%)"].join(",")}}),pT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{backgroundImage:[`linear-gradient(to ${e[+!r]},hsl(0,0%,${t}%),hsla(0,0%,${t}%,0))`,`linear-gradient(to ${e[Number(r)]},hsl(0,100%,${t}%),hsl(60,100%,${t}%),hsl(120,100%,${t}%),hsl(180,100%,${t}%),hsl(240,100%,${t}%),hsl(300,100%,${t}%),hsl(360,100%,${t}%))`].join(",")}}),gT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[Number(r)]},hsl(0,0%,0%),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[+!r]},hsl(0,0%,100%),hsla(0,0%,100%,0))`,`hsl(${t}, 100%, 50%)`].join(",")}}),fT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!r]},hsla(0,0%,0%,${t}),hsla(0,0%,0%,0))`,`linear-gradient(to ${e[Number(r)]},hsla(0,100%,50%,${t}),hsla(60,100%,50%,${t}),hsla(120,100%,50%,${t}),hsla(180,100%,50%,${t}),hsla(240,100%,50%,${t}),hsla(300,100%,50%,${t}),hsla(359,100%,50%,${t}))`,`linear-gradient(to ${e[+!r]},hsl(0,0%,0%),hsl(0,0%,100%))`].join(",")}}),hT=(e,r,t)=>({areaStyles:{},areaGradientStyles:{background:[`linear-gradient(to ${e[+!r]},hsla(0,0%,100%,${t}),hsla(0,0%,100%,0))`,`linear-gradient(to ${e[Number(r)]},hsla(0,100%,50%,${t}),hsla(60,100%,50%,${t}),hsla(120,100%,50%,${t}),hsla(180,100%,50%,${t}),hsla(240,100%,50%,${t}),hsla(300,100%,50%,${t}),hsla(359,100%,50%,${t}))`,"#000"].join(",")}});function Xc(e,r){const{xChannel:t,yChannel:n,dir:o="ltr"}=r,{zChannel:i}=e.getColorAxes({xChannel:t,yChannel:n}),s=e.getChannelValue(i),{minValue:a,maxValue:l}=e.getChannelRange(i),c=["top",o==="rtl"?"left":"right"];let d=!1,g={areaStyles:{},areaGradientStyles:{}},u=(s-a)/(l-a),h=e.getFormat()==="hsla";switch(i){case"red":{d=t==="green",g=aT(c,d,s);break}case"green":{d=t==="red",g=lT(c,d,s);break}case"blue":{d=t==="red",g=cT(c,d,s);break}case"hue":{d=t!=="saturation",h?g=dT(c,d,s):g=gT(c,d,s);break}case"saturation":{d=t==="hue",h?g=uT(c,d,u):g=fT(c,d,u);break}case"brightness":{d=t==="hue",g=hT(c,d,u);break}case"lightness":{d=t==="hue",g=pT(c,d,s);break}}return g}var mT=(e,r)=>{if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let t in e)if(e[t]!==r[t])return!1;return!0},fl=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,r){const t=r??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return us(t,n,o)}getChannelPercentValue(e,r){const{minValue:t,maxValue:n,step:o}=this.getChannelRange(e),i=dl(r,t,n,o);return Ui(i,t,n,o)}withChannelValue(e,r){const{minValue:t,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=qe(r,t,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:r,yChannel:t}=e,n=r||this.getChannels().find(s=>s!==t),o=t||this.getChannels().find(s=>s!==n),i=this.getChannels().find(s=>s!==n&&s!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,r){const{minValue:t,maxValue:n,step:o}=this.getChannelRange(e),i=Ui(qe(this.getChannelValue(e)+r,t,n),t,n,o);return this.withChannelValue(e,i)}decrementChannel(e,r){return this.incrementChannel(e,-r)}isEqual(e){return mT(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},xp=class ki extends fl{constructor(r,t,n,o){super(),this.red=r,this.green=t,this.blue=n,this.alpha=o}static parse(r){let t=[];if(/^#[\da-f]+$/i.test(r)&&[4,5,7,9].includes(r.length)){const o=(r.length<6?r.replace(/[^#]/gi,"$&$&"):r).slice(1).split("");for(;o.length>0;)t.push(parseInt(o.splice(0,2).join(""),16));t[3]=t[3]!==void 0?t[3]/255:void 0}const n=r.match(/^rgba?\((.*)\)$/);return n!=null&&n[1]&&(t=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>qe(o,0,i<3?255:1))),t.length<3?void 0:new ki(t[0],t[1],t[2],t[3]??1)}toString(r){switch(r){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+r)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const r=this.red/255,t=this.green/255,n=this.blue/255,o=Math.min(r,t,n),i=Math.max(r,t,n),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case r:l=(t-n)/s+(t<n?6:0);break;case t:l=(n-r)/s+2;break;case n:l=(r-t)/s+4;break}l/=6}return new vl(Pe(l*360,2),Pe(a*100,2),Pe(i*100,2),Pe(this.alpha,2))}toHSL(){const r=this.red/255,t=this.green/255,n=this.blue/255,o=Math.min(r,t,n),i=Math.max(r,t,n),s=(i+o)/2,a=i-o;let l=-1,c=-1;if(a===0)l=c=0;else{switch(c=a/(s<.5?i+o:2-i-o),i){case r:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-r)/a+2;break;case n:l=(r-t)/a+4;break}l/=6}return new ml(Pe(l*360,2),Pe(c*100,2),Pe(s*100,2),Pe(this.alpha,2))}clone(){return new ki(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(r){switch(r){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,t){let n=this.getChannelFormatOptions(r),o=this.getChannelValue(r);return new Intl.NumberFormat(t,n).format(o)}getChannelRange(r){switch(r){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return ki.colorChannels}};gl(xp,"colorChannels",["red","green","blue"]);var hl=xp,vT=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Sp=class Ai extends fl{constructor(r,t,n,o){super(),this.hue=r,this.saturation=t,this.lightness=n,this.alpha=o}static parse(r){let t;if(t=r.match(vT)){const[n,o,i,s]=(t[1]??t[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Ai(up(n,360),qe(o,0,100),qe(i,0,100),qe(s??1,0,1))}}toString(r){switch(r){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Pe(this.saturation,2)}%, ${Pe(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Pe(this.saturation,2)}%, ${Pe(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+r)}}toHSB(){let r=this.saturation/100,t=this.lightness/100,n=t+r*Math.min(t,1-t);return r=n===0?0:2*(1-t/n),new vl(Pe(this.hue,2),Pe(r*100,2),Pe(n*100,2),Pe(this.alpha,2))}toRGB(){let r=this.hue,t=this.saturation/100,n=this.lightness/100,o=t*Math.min(n,1-n),i=(s,a=(s+r/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return new hl(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),Pe(this.alpha,2))}clone(){return new Ai(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(r){switch(r){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,t){let n=this.getChannelFormatOptions(r),o=this.getChannelValue(r);return(r==="saturation"||r==="lightness")&&(o/=100),new Intl.NumberFormat(t,n).format(o)}getChannelRange(r){switch(r){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ai.colorChannels}};gl(Sp,"colorChannels",["hue","saturation","lightness"]);var ml=Sp,bT=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Rp=class Ni extends fl{constructor(r,t,n,o){super(),this.hue=r,this.saturation=t,this.brightness=n,this.alpha=o}static parse(r){let t;if(t=r.match(bT)){const[n,o,i,s]=(t[1]??t[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Ni(up(n,360),qe(o,0,100),qe(i,0,100),qe(s??1,0,1))}}toString(r){switch(r){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Pe(this.saturation,2)}%, ${Pe(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Pe(this.saturation,2)}%, ${Pe(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+r)}}toHSL(){let r=this.saturation/100,t=this.brightness/100,n=t*(1-r/2);return r=n===0||n===1?0:(t-n)/Math.min(n,1-n),new ml(Pe(this.hue,2),Pe(r*100,2),Pe(n*100,2),Pe(this.alpha,2))}toRGB(){let r=this.hue,t=this.saturation/100,n=this.brightness/100,o=(i,s=(i+r/60)%6)=>n-t*n*Math.max(Math.min(s,4-s,1),0);return new hl(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),Pe(this.alpha,2))}clone(){return new Ni(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(r){switch(r){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,t){let n=this.getChannelFormatOptions(r),o=this.getChannelValue(r);return(r==="saturation"||r==="brightness")&&(o/=100),new Intl.NumberFormat(t,n).format(o)}getChannelRange(r){switch(r){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Ni.colorChannels}};gl(Rp,"colorChannels",["hue","saturation","brightness"]);var vl=Rp,yT="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",PT=e=>{const r=new Map,t=e.split(",");for(let n=0;n<t.length;n++){const[o,i]=t[n].split(":");r.set(o,`#${i}`),o.includes("gray")&&r.set(o.replace("gray","grey"),`#${i}`)}return r},Zc=PT(yT),Or=e=>{var t;if(Zc.has(e))return Or(Zc.get(e));const r=hl.parse(e)||vl.parse(e)||ml.parse(e);if(!r){const n=new Error("Invalid color value: "+e);throw(t=Error.captureStackTrace)==null||t.call(Error,n,Or),n}return r},Jc=e=>typeof e=="string"?Or(e):e;const CT=["top","right","bottom","left"],kr=Math.min,Pt=Math.max,Wi=Math.round,li=Math.floor,Qt=e=>({x:e,y:e}),ET={left:"right",right:"left",bottom:"top",top:"bottom"},IT={start:"end",end:"start"};function ma(e,r,t){return Pt(e,kr(r,t))}function fr(e,r){return typeof e=="function"?e(r):e}function hr(e){return e.split("-")[0]}function $n(e){return e.split("-")[1]}function bl(e){return e==="x"?"y":"x"}function yl(e){return e==="y"?"height":"width"}function Ar(e){return["top","bottom"].includes(hr(e))?"y":"x"}function Pl(e){return bl(Ar(e))}function TT(e,r,t){t===void 0&&(t=!1);const n=$n(e),o=Pl(e),i=yl(o);let s=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=zi(s)),[s,zi(s)]}function wT(e){const r=zi(e);return[va(e),r,va(r)]}function va(e){return e.replace(/start|end/g,r=>IT[r])}function xT(e,r,t){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return t?r?o:n:r?n:o;case"left":case"right":return r?i:s;default:return[]}}function ST(e,r,t,n){const o=$n(e);let i=xT(hr(e),t==="start",n);return o&&(i=i.map(s=>s+"-"+o),r&&(i=i.concat(i.map(va)))),i}function zi(e){return e.replace(/left|right|bottom|top/g,r=>ET[r])}function RT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Op(e){return typeof e!="number"?RT(e):{top:e,right:e,bottom:e,left:e}}function Ki(e){const{x:r,y:t,width:n,height:o}=e;return{width:n,height:o,top:t,left:r,right:r+n,bottom:t+o,x:r,y:t}}function Qc(e,r,t){let{reference:n,floating:o}=e;const i=Ar(r),s=Pl(r),a=yl(s),l=hr(r),c=i==="y",d=n.x+n.width/2-o.width/2,g=n.y+n.height/2-o.height/2,u=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:g};break;case"left":h={x:n.x-o.width,y:g};break;default:h={x:n.x,y:n.y}}switch($n(r)){case"start":h[s]-=u*(t&&c?-1:1);break;case"end":h[s]+=u*(t&&c?-1:1);break}return h}const OT=async(e,r,t)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=t,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(r));let c=await s.getElementRects({reference:e,floating:r,strategy:o}),{x:d,y:g}=Qc(c,n,l),u=n,h={},v=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:P,y:C,data:x,reset:w}=await y({x:d,y:g,initialPlacement:n,placement:u,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:r}});d=P??d,g=C??g,h={...h,[b]:{...h[b],...x}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(u=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:o}):w.rects),{x:d,y:g}=Qc(c,u,l)),m=-1)}return{x:d,y:g,placement:u,strategy:o,middlewareData:h}};async function No(e,r){var t;r===void 0&&(r={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:g="floating",altBoundary:u=!1,padding:h=0}=fr(r,e),v=Op(h),b=a[u?g==="floating"?"reference":"floating":g],y=Ki(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(b)))==null||t?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),P=g==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},w=Ki(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:C,strategy:l}):P);return{top:(y.top-w.top+v.top)/x.y,bottom:(w.bottom-y.bottom+v.bottom)/x.y,left:(y.left-w.left+v.left)/x.x,right:(w.right-y.right+v.right)/x.x}}const kT=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=r,{element:c,padding:d=0}=fr(e,r)||{};if(c==null)return{};const g=Op(d),u={x:t,y:n},h=Pl(o),v=yl(h),m=await s.getDimensions(c),b=h==="y",y=b?"top":"left",P=b?"bottom":"right",C=b?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[h]-u[h]-i.floating[v],w=u[h]-i.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=A?A[C]:0;(!O||!await(s.isElement==null?void 0:s.isElement(A)))&&(O=a.floating[C]||i.floating[v]);const R=x/2-w/2,S=O/2-m[v]/2-1,k=kr(g[y],S),V=kr(g[P],S),F=k,J=O-m[v]-V,te=O/2-m[v]/2+R,Q=ma(F,te,J),Ie=!l.arrow&&$n(o)!=null&&te!==Q&&i.reference[v]/2-(te<F?k:V)-m[v]/2<0,Se=Ie?te<F?te-F:te-J:0;return{[h]:u[h]+Se,data:{[h]:Q,centerOffset:te-Q-Se,...Ie&&{alignmentOffset:Se}},reset:Ie}}}),AT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=r,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=fr(e,r);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const y=hr(o),P=Ar(a),C=hr(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=u||(C||!m?[zi(a)]:wT(a)),A=v!=="none";!u&&A&&w.push(...ST(a,m,v,x));const O=[a,...w],R=await No(r,b),S=[];let k=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&S.push(R[y]),g){const te=TT(o,s,x);S.push(R[te[0]],R[te[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every(te=>te<=0)){var V,F;const te=(((V=i.flip)==null?void 0:V.index)||0)+1,Q=O[te];if(Q)return{data:{index:te,overflows:k},reset:{placement:Q}};let Ie=(F=k.filter(Se=>Se.overflows[0]<=0).sort((Se,W)=>Se.overflows[1]-W.overflows[1])[0])==null?void 0:F.placement;if(!Ie)switch(h){case"bestFit":{var J;const Se=(J=k.filter(W=>{if(A){const le=Ar(W.placement);return le===P||le==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(le=>le>0).reduce((le,me)=>le+me,0)]).sort((W,le)=>W[1]-le[1])[0])==null?void 0:J[0];Se&&(Ie=Se);break}case"initialPlacement":Ie=a;break}if(o!==Ie)return{reset:{placement:Ie}}}return{}}}};function ed(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function td(e){return CT.some(r=>e[r]>=0)}const NT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:t}=r,{strategy:n="referenceHidden",...o}=fr(e,r);switch(n){case"referenceHidden":{const i=await No(r,{...o,elementContext:"reference"}),s=ed(i,t.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:td(s)}}}case"escaped":{const i=await No(r,{...o,altBoundary:!0}),s=ed(i,t.floating);return{data:{escapedOffsets:s,escaped:td(s)}}}default:return{}}}}};async function $T(e,r){const{placement:t,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=hr(t),a=$n(t),l=Ar(t)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,g=fr(r,e);let{mainAxis:u,crossAxis:h,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),l?{x:h*d,y:u*c}:{x:u*c,y:h*d}}const LT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:o,y:i,placement:s,middlewareData:a}=r,l=await $T(r,e);return s===((t=a.offset)==null?void 0:t.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},FT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:n,placement:o}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:y,y:P}=b;return{x:y,y:P}}},...l}=fr(e,r),c={x:t,y:n},d=await No(r,l),g=Ar(hr(o)),u=bl(g);let h=c[u],v=c[g];if(i){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",P=h+d[b],C=h-d[y];h=ma(P,h,C)}if(s){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",P=v+d[b],C=v-d[y];v=ma(P,v,C)}const m=a.fn({...r,[u]:h,[g]:v});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[u]:i,[g]:s}}}}}},DT=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:t,y:n,placement:o,rects:i,middlewareData:s}=r,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=fr(e,r),d={x:t,y:n},g=Ar(o),u=bl(g);let h=d[u],v=d[g];const m=fr(a,r),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const C=u==="y"?"height":"width",x=i.reference[u]-i.floating[C]+b.mainAxis,w=i.reference[u]+i.reference[C]-b.mainAxis;h<x?h=x:h>w&&(h=w)}if(c){var y,P;const C=u==="y"?"width":"height",x=["top","left"].includes(hr(o)),w=i.reference[g]-i.floating[C]+(x&&((y=s.offset)==null?void 0:y[g])||0)+(x?0:b.crossAxis),A=i.reference[g]+i.reference[C]+(x?0:((P=s.offset)==null?void 0:P[g])||0)-(x?b.crossAxis:0);v<w?v=w:v>A&&(v=A)}return{[u]:h,[g]:v}}}},VT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var t,n;const{placement:o,rects:i,platform:s,elements:a}=r,{apply:l=()=>{},...c}=fr(e,r),d=await No(r,c),g=hr(o),u=$n(o),h=Ar(o)==="y",{width:v,height:m}=i.floating;let b,y;g==="top"||g==="bottom"?(b=g,y=u===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=g,b=u==="end"?"top":"bottom");const P=m-d.top-d.bottom,C=v-d.left-d.right,x=kr(m-d[b],P),w=kr(v-d[y],C),A=!r.middlewareData.shift;let O=x,R=w;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(R=C),(n=r.middlewareData.shift)!=null&&n.enabled.y&&(O=P),A&&!u){const k=Pt(d.left,0),V=Pt(d.right,0),F=Pt(d.top,0),J=Pt(d.bottom,0);h?R=v-2*(k!==0||V!==0?k+V:Pt(d.left,d.right)):O=m-2*(F!==0||J!==0?F+J:Pt(d.top,d.bottom))}await l({...r,availableWidth:R,availableHeight:O});const S=await s.getDimensions(a.floating);return v!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function fs(){return typeof window<"u"}function Ln(e){return kp(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function rr(e){var r;return(r=(kp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function kp(e){return fs()?e instanceof Node||e instanceof Et(e).Node:!1}function Dt(e){return fs()?e instanceof Element||e instanceof Et(e).Element:!1}function tr(e){return fs()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function rd(e){return!fs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function _o(e){const{overflow:r,overflowX:t,overflowY:n,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!["inline","contents"].includes(o)}function MT(e){return["table","td","th"].includes(Ln(e))}function hs(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function Cl(e){const r=El(),t=Dt(e)?Vt(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function jT(e){let r=Nr(e);for(;tr(r)&&!On(r);){if(Cl(r))return r;if(hs(r))return null;r=Nr(r)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function On(e){return["html","body","#document"].includes(Ln(e))}function Vt(e){return Et(e).getComputedStyle(e)}function ms(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nr(e){if(Ln(e)==="html")return e;const r=e.assignedSlot||e.parentNode||rd(e)&&e.host||rr(e);return rd(r)?r.host:r}function Ap(e){const r=Nr(e);return On(r)?e.ownerDocument?e.ownerDocument.body:e.body:tr(r)&&_o(r)?r:Ap(r)}function $o(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const o=Ap(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Et(o);if(i){const a=ba(s);return r.concat(s,s.visualViewport||[],_o(o)?o:[],a&&t?$o(a):[])}return r.concat(o,$o(o,[],t))}function ba(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Np(e){const r=Vt(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const o=tr(e),i=o?e.offsetWidth:t,s=o?e.offsetHeight:n,a=Wi(t)!==i||Wi(n)!==s;return a&&(t=i,n=s),{width:t,height:n,$:a}}function Il(e){return Dt(e)?e:e.contextElement}function wn(e){const r=Il(e);if(!tr(r))return Qt(1);const t=r.getBoundingClientRect(),{width:n,height:o,$:i}=Np(r);let s=(i?Wi(t.width):t.width)/n,a=(i?Wi(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _T=Qt(0);function $p(e){const r=Et(e);return!El()||!r.visualViewport?_T:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function BT(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Et(e)?!1:r}function Xr(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=Il(e);let s=Qt(1);r&&(n?Dt(n)&&(s=wn(n)):s=wn(e));const a=BT(i,t,n)?$p(i):Qt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,g=o.height/s.y;if(i){const u=Et(i),h=n&&Dt(n)?Et(n):n;let v=u,m=ba(v);for(;m&&n&&h!==v;){const b=wn(m),y=m.getBoundingClientRect(),P=Vt(m),C=y.left+(m.clientLeft+parseFloat(P.paddingLeft))*b.x,x=y.top+(m.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,g*=b.y,l+=C,c+=x,v=Et(m),m=ba(v)}}return Ki({width:d,height:g,x:l,y:c})}function Tl(e,r){const t=ms(e).scrollLeft;return r?r.left+t:Xr(rr(e)).left+t}function Lp(e,r,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-(t?0:Tl(e,n)),i=n.top+r.scrollTop;return{x:o,y:i}}function HT(e){let{elements:r,rect:t,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=rr(n),a=r?hs(r.floating):!1;if(n===s||a&&i)return t;let l={scrollLeft:0,scrollTop:0},c=Qt(1);const d=Qt(0),g=tr(n);if((g||!g&&!i)&&((Ln(n)!=="body"||_o(s))&&(l=ms(n)),tr(n))){const h=Xr(n);c=wn(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const u=s&&!g&&!i?Lp(s,l,!0):Qt(0);return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+d.x+u.x,y:t.y*c.y-l.scrollTop*c.y+d.y+u.y}}function GT(e){return Array.from(e.getClientRects())}function UT(e){const r=rr(e),t=ms(e),n=e.ownerDocument.body,o=Pt(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Pt(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Tl(e);const a=-t.scrollTop;return Vt(n).direction==="rtl"&&(s+=Pt(r.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function WT(e,r){const t=Et(e),n=rr(e),o=t.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=El();(!c||c&&r==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function zT(e,r){const t=Xr(e,!0,r==="fixed"),n=t.top+e.clientTop,o=t.left+e.clientLeft,i=tr(e)?wn(e):Qt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function nd(e,r,t){let n;if(r==="viewport")n=WT(e,t);else if(r==="document")n=UT(rr(e));else if(Dt(r))n=zT(r,t);else{const o=$p(e);n={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return Ki(n)}function Fp(e,r){const t=Nr(e);return t===r||!Dt(t)||On(t)?!1:Vt(t).position==="fixed"||Fp(t,r)}function KT(e,r){const t=r.get(e);if(t)return t;let n=$o(e,[],!1).filter(a=>Dt(a)&&Ln(a)!=="body"),o=null;const i=Vt(e).position==="fixed";let s=i?Nr(e):e;for(;Dt(s)&&!On(s);){const a=Vt(s),l=Cl(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||_o(s)&&!l&&Fp(e,s))?n=n.filter(d=>d!==s):o=a,s=Nr(s)}return r.set(e,n),n}function qT(e){let{element:r,boundary:t,rootBoundary:n,strategy:o}=e;const s=[...t==="clippingAncestors"?hs(r)?[]:KT(r,this._c):[].concat(t),n],a=s[0],l=s.reduce((c,d)=>{const g=nd(r,d,o);return c.top=Pt(g.top,c.top),c.right=kr(g.right,c.right),c.bottom=kr(g.bottom,c.bottom),c.left=Pt(g.left,c.left),c},nd(r,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function YT(e){const{width:r,height:t}=Np(e);return{width:r,height:t}}function XT(e,r,t){const n=tr(r),o=rr(r),i=t==="fixed",s=Xr(e,!0,i,r);let a={scrollLeft:0,scrollTop:0};const l=Qt(0);if(n||!n&&!i)if((Ln(r)!=="body"||_o(o))&&(a=ms(r)),n){const u=Xr(r,!0,i,r);l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}else o&&(l.x=Tl(o));const c=o&&!n&&!i?Lp(o,a):Qt(0),d=s.left+a.scrollLeft-l.x-c.x,g=s.top+a.scrollTop-l.y-c.y;return{x:d,y:g,width:s.width,height:s.height}}function Ks(e){return Vt(e).position==="static"}function od(e,r){if(!tr(e)||Vt(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return rr(e)===t&&(t=t.ownerDocument.body),t}function Dp(e,r){const t=Et(e);if(hs(e))return t;if(!tr(e)){let o=Nr(e);for(;o&&!On(o);){if(Dt(o)&&!Ks(o))return o;o=Nr(o)}return t}let n=od(e,r);for(;n&&MT(n)&&Ks(n);)n=od(n,r);return n&&On(n)&&Ks(n)&&!Cl(n)?t:n||jT(e)||t}const ZT=async function(e){const r=this.getOffsetParent||Dp,t=this.getDimensions,n=await t(e.floating);return{reference:XT(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function JT(e){return Vt(e).direction==="rtl"}const QT={convertOffsetParentRelativeRectToViewportRelativeRect:HT,getDocumentElement:rr,getClippingRect:qT,getOffsetParent:Dp,getElementRects:ZT,getClientRects:GT,getDimensions:YT,getScale:wn,isElement:Dt,isRTL:JT};function Vp(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function ew(e,r){let t=null,n;const o=rr(e);function i(){var a;clearTimeout(n),(a=t)==null||a.disconnect(),t=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:g,width:u,height:h}=c;if(a||r(),!u||!h)return;const v=li(g),m=li(o.clientWidth-(d+u)),b=li(o.clientHeight-(g+h)),y=li(d),C={rootMargin:-v+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Pt(0,kr(1,l))||1};let x=!0;function w(A){const O=A[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!Vp(c,e.getBoundingClientRect())&&s(),x=!1}try{t=new IntersectionObserver(w,{...C,root:o.ownerDocument})}catch{t=new IntersectionObserver(w,C)}t.observe(e)}return s(!0),i}function tw(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Il(e),d=o||i?[...c?$o(c):[],...$o(r)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",t,{passive:!0}),i&&y.addEventListener("resize",t)});const g=c&&a?ew(c,t):null;let u=-1,h=null;s&&(h=new ResizeObserver(y=>{let[P]=y;P&&P.target===c&&h&&(h.unobserve(r),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(r)})),t()}),c&&!l&&h.observe(c),h.observe(r));let v,m=l?Xr(e):null;l&&b();function b(){const y=Xr(e);m&&!Vp(m,y)&&t(),m=y,v=requestAnimationFrame(b)}return t(),()=>{var y;d.forEach(P=>{o&&P.removeEventListener("scroll",t),i&&P.removeEventListener("resize",t)}),g==null||g(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const rw=LT,nw=FT,ow=AT,iw=VT,sw=NT,aw=kT,lw=DT,cw=(e,r,t)=>{const n=new Map,o={platform:QT,...t},i={...o.platform,_c:n};return OT(e,r,{...o,platform:i})};function id(e=0,r=0,t=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,r,t,n);const o={x:e,y:r,width:t,height:n,top:r,right:e+t,bottom:r+n,left:e};return{...o,toJSON:()=>o}}function dw(e){if(!e)return id();const{x:r,y:t,width:n,height:o}=e;return id(r,t,n,o)}function uw(e,r){return{contextElement:Ye(e)?e:void 0,getBoundingClientRect:()=>{const t=e,n=r==null?void 0:r(t);return n||!t?dw(n):t.getBoundingClientRect()}}}var Jn=e=>({variable:e,reference:`var(${e})`}),dr={arrowSize:Jn("--arrow-size"),arrowSizeHalf:Jn("--arrow-size-half"),arrowBg:Jn("--arrow-background"),transformOrigin:Jn("--transform-origin"),arrowOffset:Jn("--arrow-offset")},pw=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),gw={name:"transformOrigin",fn({placement:e,elements:r,middlewareData:t}){const{arrow:n}=t,o=pw(n)[e],{floating:i}=r;return i.style.setProperty(dr.transformOrigin.variable,o),{data:{transformOrigin:o}}}},fw={name:"rects",fn({rects:e}){return{data:e}}},hw=e=>{if(e)return{name:"shiftArrow",fn({placement:r,middlewareData:t}){if(!t.arrow)return{};const{x:n,y:o}=t.arrow,i=r.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${dr.arrowOffset.reference})`}),{}}}};function mw(e){const[r,t]=e.split("-");return{side:r,align:t,hasAlign:t!=null}}function vw(e){return e.split("-")[0]}var bw={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function sd(e,r){const t=e.devicePixelRatio||1;return Math.round(r*t)/t}function Mp(e){return Tn(e.boundary)}function yw(e,r){if(e)return aw({element:e,padding:r.arrowPadding})}function Pw(e,r){if(!HE(r.offset??r.gutter))return rw(({placement:t})=>{var c,d;const n=((e==null?void 0:e.clientHeight)||0)/2,o=((c=r.offset)==null?void 0:c.mainAxis)??r.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:s}=mw(t),a=s?void 0:r.shift,l=((d=r.offset)==null?void 0:d.crossAxis)??a;return he({crossAxis:l,mainAxis:i,alignmentAxis:r.shift})})}function Cw(e){if(e.flip)return ow({boundary:Mp(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Ew(e){if(!(!e.slide&&!e.overlap))return nw({boundary:Mp(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:lw()})}function Iw(e){return iw({padding:e.overflowPadding,apply({elements:r,rects:t,availableHeight:n,availableWidth:o}){const i=r.floating,s=Math.round(t.reference.width);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function Tw(e){var r;if(e.hideWhenDetached)return sw({strategy:"referenceHidden",boundary:((r=e.boundary)==null?void 0:r.call(e))??"clippingAncestors"})}function ww(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function xw(e,r,t={}){const n=uw(e,t.getAnchorRect);if(!r||!n)return;const o=Object.assign({},bw,t),i=r.querySelector("[data-part=arrow]"),s=[Pw(i,o),Cw(o),Ew(o),yw(i,o),hw(i),gw,Iw(o),Tw(o),fw],{placement:a,strategy:l,onComplete:c,onPositioned:d}=o,g=async()=>{var x;if(!n||!r)return;const m=await cw(n,r,{placement:a,middleware:s,strategy:l});c==null||c(m),d==null||d({placed:!0});const b=De(r),y=sd(b,m.x),P=sd(b,m.y);r.style.setProperty("--x",`${y}px`),r.style.setProperty("--y",`${P}px`),o.hideWhenDetached&&(((x=m.middlewareData.hide)==null?void 0:x.referenceHidden)?(r.style.setProperty("visibility","hidden"),r.style.setProperty("pointer-events","none")):(r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events")));const C=r.firstElementChild;if(C){const w=wo(C);r.style.setProperty("--z-index",w.zIndex)}},u=async()=>{t.updatePosition?(await t.updatePosition({updatePosition:g}),d==null||d({placed:!0})):await g()},h=ww(o.listeners),v=o.listeners?tw(n,r,u,h):ap;return u(),()=>{v==null||v(),d==null||d({placed:!1})}}function Mt(e,r,t={}){const{defer:n,...o}=t,i=n?G:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof r=="function"?r():r;s.push(xw(a,l,o))})),()=>{s.forEach(a=>a==null?void 0:a())}}var Sw={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Fn(e={}){const{placement:r,sameWidth:t,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:dr.arrowSize.reference,height:dr.arrowSize.reference,[dr.arrowSizeHalf.variable]:`calc(${dr.arrowSize.reference} / 2)`,[dr.arrowOffset.variable]:`calc(${dr.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:r?Sw[r.split("-")[0]]:void 0,background:dr.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:t?void 0:"max-content",width:t?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,top:"0px",left:"0px",transform:r?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function Rw(e){const r={each(t){var n;for(let o=0;o<((n=e.frames)==null?void 0:n.length);o+=1){const i=e.frames[o];i&&t(i)}},addEventListener(t,n,o){return r.each(i=>{try{i.document.addEventListener(t,n,o)}catch{}}),()=>{try{r.removeEventListener(t,n,o)}catch{}}},removeEventListener(t,n,o){r.each(i=>{try{i.document.removeEventListener(t,n,o)}catch{}})}};return r}function Ow(e){const r=e.frameElement!=null?e.parent:null;return{addEventListener:(t,n,o)=>{try{r==null||r.addEventListener(t,n,o)}catch{}return()=>{try{r==null||r.removeEventListener(t,n,o)}catch{}}},removeEventListener:(t,n,o)=>{try{r==null||r.removeEventListener(t,n,o)}catch{}}}}var ad="pointerdown.outside",ld="focus.outside";function kw(e){for(const r of e)if(Ye(r)&&xr(r))return!0;return!1}var jp=e=>"clientY"in e;function Aw(e,r){if(!jp(r)||!e)return!1;const t=e.getBoundingClientRect();return t.width===0||t.height===0?!1:t.top<=r.clientY&&r.clientY<=t.top+t.height&&t.left<=r.clientX&&r.clientX<=t.left+t.width}function Nw(e,r){return e.y<=r.y&&r.y<=e.y+e.height&&e.x<=r.x&&r.x<=e.x+e.width}function cd(e,r){if(!r||!jp(e))return!1;const t=r.scrollHeight>r.clientHeight,n=t&&e.clientX>r.offsetLeft+r.clientWidth,o=r.scrollWidth>r.clientWidth,i=o&&e.clientY>r.offsetTop+r.clientHeight,s={x:r.offsetLeft,y:r.offsetTop,width:r.clientWidth+(t?16:0),height:r.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return Nw(s,a)?n||i:!1}function $w(e,r){const{exclude:t,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:s}=r;if(!e)return;const a=it(e),l=De(e),c=Rw(l),d=Ow(l);function g(y){const P=He(y);if(!Ye(P)||!P.isConnected||kt(e,P)||Aw(e,y))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const w=_i(C);if(cd(y,w))return!1}const x=_i(e);return cd(y,x)?!1:!(t!=null&&t(P))}const u=new Set;function h(y){function P(){var w;const C=s?G:A=>A(),x=((w=y.composedPath)==null?void 0:w.call(y))??[y.target];C(()=>{if(!(!e||!g(y))){if(o||i){const A=Ao(o,i);e.addEventListener(ad,A,{once:!0})}dd(e,ad,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:Au(y),focusable:kw(x)}})}})}y.pointerType==="touch"?(u.forEach(C=>C()),u.add(ie(a,"click",P,{once:!0})),u.add(d.addEventListener("click",P,{once:!0})),u.add(c.addEventListener("click",P,{once:!0}))):P()}const v=new Set,m=setTimeout(()=>{v.add(ie(a,"pointerdown",h,!0)),v.add(d.addEventListener("pointerdown",h,!0)),v.add(c.addEventListener("pointerdown",h,!0))},0);function b(y){(s?G:C=>C())(()=>{if(!(!e||!g(y))){if(n||i){const C=Ao(n,i);e.addEventListener(ld,C,{once:!0})}dd(e,ld,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:!1,focusable:xr(He(y))}})}})}return v.add(ie(a,"focusin",b,!0)),v.add(d.addEventListener("focusin",b,!0)),v.add(c.addEventListener("focusin",b,!0)),()=>{clearTimeout(m),u.forEach(y=>y()),v.forEach(y=>y())}}function _p(e,r){const{defer:t}=r,n=t?G:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push($w(i,r))})),()=>{o.forEach(i=>i==null?void 0:i())}}function dd(e,r,t){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(r,t);return e.dispatchEvent(o)}function Lw(e,r){const t=n=>{n.key==="Escape"&&(n.isComposing||r==null||r(n))};return ie(it(e),"keydown",t,{capture:!0})}var yt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var n;const r=this.indexOf(e),t=this.topMostPointerBlockingLayer()?this.indexOf((n=this.topMostPointerBlockingLayer())==null?void 0:n.node):-1;return r<t},isTopMost(e){const r=this.layers[this.count()-1];return(r==null?void 0:r.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,r){return this.getNestedLayers(e).some(t=>kt(t.node,r))},isInBranch(e){return Array.from(this.branches).some(r=>kt(r,e))},add(e){const r=this.layers.push(e);e.node.style.setProperty("--layer-index",`${r}`)},addBranch(e){this.branches.push(e)},remove(e){const r=this.indexOf(e);r<0||(r<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(r,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const r=this.branches.indexOf(e);r>=0&&this.branches.splice(r,1)},indexOf(e){return this.layers.findIndex(r=>r.node===e)},dismiss(e){var r;(r=this.layers[this.indexOf(e)])==null||r.dismiss()},clear(){this.remove(this.layers[0].node)}},ud;function pd(){yt.layers.forEach(({node:e})=>{e.style.pointerEvents=yt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Fw(e){e.style.pointerEvents=""}function Dw(e,r){const t=it(e),n=[];if(yt.hasPointerBlockingLayer()&&!t.body.hasAttribute("data-inert")&&(ud=document.body.style.pointerEvents,queueMicrotask(()=>{t.body.style.pointerEvents="none",t.body.setAttribute("data-inert","")})),r){const o=lE(r,i=>{n.push(nE(i,{pointerEvents:"auto"}))});n.push(o)}return()=>{yt.hasPointerBlockingLayer()||(queueMicrotask(()=>{t.body.style.pointerEvents=ud,t.body.removeAttribute("data-inert"),t.body.style.length===0&&t.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Vw(e,r){if(!e){Kr("[@zag-js/dismissable] node is `null` or `undefined`");return}const{onDismiss:t,pointerBlocking:n,exclude:o,debug:i}=r,s={dismiss:t,node:e,pointerBlocking:n};yt.add(s),pd();function a(u){var v,m;const h=He(u.detail.originalEvent);yt.isBelowPointerBlockingLayer(e)||yt.isInBranch(h)||((v=r.onPointerDownOutside)==null||v.call(r,u),(m=r.onInteractOutside)==null||m.call(r,u),!u.defaultPrevented&&(i&&console.log("onPointerDownOutside:",u.detail.originalEvent),t==null||t()))}function l(u){var v,m;const h=He(u.detail.originalEvent);yt.isInBranch(h)||((v=r.onFocusOutside)==null||v.call(r,u),(m=r.onInteractOutside)==null||m.call(r,u),!u.defaultPrevented&&(i&&console.log("onFocusOutside:",u.detail.originalEvent),t==null||t()))}function c(u){var h;yt.isTopMost(e)&&((h=r.onEscapeKeyDown)==null||h.call(r,u),!u.defaultPrevented&&t&&(u.preventDefault(),t()))}function d(u){var b;if(!e)return!1;const h=typeof o=="function"?o():o,v=Array.isArray(h)?h:[h],m=(b=r.persistentElements)==null?void 0:b.map(y=>y()).filter(Ye);return m&&v.push(...m),v.some(y=>kt(y,u))||yt.isInNestedLayer(e,u)}const g=[n?Dw(e,r.persistentElements):void 0,Lw(e,c),_p(e,{exclude:d,onFocusOutside:l,onPointerDownOutside:a,defer:r.defer})];return()=>{yt.remove(e),pd(),Fw(e),g.forEach(u=>u==null?void 0:u())}}function Dn(e,r){const{defer:t}=r,n=t?G:i=>i(),o=[];return o.push(n(()=>{const i=Rn(e)?e():e;o.push(Vw(i,r))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Mw(e,r={}){const{defer:t}=r,n=t?G:i=>i(),o=[];return o.push(n(()=>{const i=Rn(e)?e():e;if(!i){Kr("[@zag-js/dismissable] branch node is `null` or `undefined`");return}yt.addBranch(i),o.push(()=>{yt.removeBranch(i)})})),()=>{o.forEach(i=>i==null?void 0:i())}}var Bp=fe("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]),Re=Bp.build(),M=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`color-picker:${e.id}`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`color-picker:${e.id}:label`},getHiddenInputId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenInput)??`color-picker:${e.id}:hidden-input`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`color-picker:${e.id}:control`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`color-picker:${e.id}:trigger`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`color-picker:${e.id}:content`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`color-picker:${e.id}:positioner`},getFormatSelectId:e=>{var r;return((r=e.ids)==null?void 0:r.formatSelect)??`color-picker:${e.id}:format-select`},getAreaId:e=>{var r;return((r=e.ids)==null?void 0:r.area)??`color-picker:${e.id}:area`},getAreaGradientId:e=>{var r;return((r=e.ids)==null?void 0:r.areaGradient)??`color-picker:${e.id}:area-gradient`},getAreaThumbId:e=>{var r;return((r=e.ids)==null?void 0:r.areaThumb)??`color-picker:${e.id}:area-thumb`},getChannelSliderTrackId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.channelSliderTrack)==null?void 0:n.call(t,r))??`color-picker:${e.id}:slider-track:${r}`},getChannelSliderThumbId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.channelSliderThumb)==null?void 0:n.call(t,r))??`color-picker:${e.id}:slider-thumb:${r}`},getContentEl:e=>M.getById(e,M.getContentId(e)),getAreaThumbEl:e=>M.getById(e,M.getAreaThumbId(e)),getChannelSliderThumbEl:(e,r)=>M.getById(e,M.getChannelSliderThumbId(e,r)),getChannelInputEl:(e,r)=>{const t=`input[data-channel="${r}"]`;return[...Lt(M.getContentEl(e),t),...Lt(M.getControlEl(e),t)]},getFormatSelectEl:e=>M.getById(e,M.getFormatSelectId(e)),getHiddenInputEl:e=>M.getById(e,M.getHiddenInputId(e)),getAreaEl:e=>M.getById(e,M.getAreaId(e)),getAreaValueFromPoint(e,r){const t=M.getAreaEl(e);if(!t)return;const{percent:n}=aa(r,t);return n},getControlEl:e=>M.getById(e,M.getControlId(e)),getTriggerEl:e=>M.getById(e,M.getTriggerId(e)),getPositionerEl:e=>M.getById(e,M.getPositionerId(e)),getChannelSliderTrackEl:(e,r)=>M.getById(e,M.getChannelSliderTrackId(e,r)),getChannelSliderValueFromPoint(e,r,t){const n=M.getChannelSliderTrackEl(e,t);if(!n)return;const{percent:o}=aa(r,n);return o},getChannelInputEls:e=>[...Lt(M.getContentEl(e),"input[data-channel]"),...Lt(M.getControlEl(e),"input[data-channel]")]});function jw(e,r){switch(r){case"hue":return Or(`hsl(${e.getChannelValue("hue")}, 100%, 50%)`);case"lightness":case"brightness":case"saturation":case"red":case"green":case"blue":return e.withChannelValue("alpha",1);case"alpha":return e;default:throw new Error("Unknown color channel: "+r)}}function ya(e,r){if(r==null)return"";if(r==="hex")return e.toString("hex");if(r==="css")return e.toString("css");if(r in e)return e.getChannelValue(r).toString();const t=e.getFormat()==="hsla";switch(r){case"hue":return t?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return t?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(r).toString();default:return e.getChannelValue(r).toString()}}function _w(e,r){switch(r){case"hex":const t=Or("#000000"),n=Or("#FFFFFF");return{minValue:t.toHexInt(),maxValue:n.toHexInt(),pageSize:10,step:1};case"css":return;case"hue":case"saturation":case"lightness":return e.toFormat("hsla").getChannelRange(r);case"brightness":return e.toFormat("hsba").getChannelRange(r);case"red":case"green":case"blue":return e.toFormat("rgba").getChannelRange(r);default:return e.getChannelRange(r)}}function Bw(e,r){return e==="vertical"?"top":r==="ltr"?"right":"left"}var Hw=e=>{const{channel:r,value:t,dir:n,orientation:o}=e,i=Bw(o,n),{minValue:s,maxValue:a}=t.getChannelRange(r);switch(r){case"hue":return`linear-gradient(to ${i}, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)`;case"lightness":{let l=t.withChannelValue(r,s).toString("css"),c=t.withChannelValue(r,(a-s)/2).toString("css"),d=t.withChannelValue(r,a).toString("css");return`linear-gradient(to ${i}, ${l}, ${c}, ${d})`}case"saturation":case"brightness":case"red":case"green":case"blue":case"alpha":{let l=t.withChannelValue(r,s).toString("css"),c=t.withChannelValue(r,a).toString("css");return`linear-gradient(to ${i}, ${l}, ${c})`}default:throw new Error("Unknown color channel: "+r)}};function Gw(e,r,t){const n=e.context.value,o=e.context.areaValue,i=e.context.valueAsString,s=e.context.isDisabled,a=e.context.isInteractive,l=e.hasTag("dragging"),c=e.hasTag("open"),d=e.hasTag("focused"),g=m=>{const b=o.getChannels();return{xChannel:m.xChannel??b[1],yChannel:m.yChannel??b[2]}},u=e.context.currentPlacement,h=Fn({...e.context.positioning,placement:u});function v(m){const b=Jc(m.value).toFormat(e.context.format);return{value:b,valueAsString:b.toString("hex"),checked:b.isEqual(n),disabled:m.disabled||!a}}return{dragging:l,open:c,valueAsString:i,value:n,setOpen(m){m!==c&&r({type:m?"OPEN":"CLOSE"})},setValue(m){r({type:"VALUE.SET",value:Jc(m),src:"set-color"})},getChannelValue(m){return ya(n,m)},getChannelValueText(m,b){return n.formatChannelValue(m,b)},setChannelValue(m,b){const y=n.withChannelValue(m,b);r({type:"VALUE.SET",value:y,src:"set-channel"})},format:e.context.format,setFormat(m){const b=n.toFormat(m);r({type:"VALUE.SET",value:b,src:"set-format"})},alpha:n.getChannelValue("alpha"),setAlpha(m){const b=n.withChannelValue("alpha",m);r({type:"VALUE.SET",value:b,src:"set-alpha"})},getRootProps(){return t.element({...Re.root.attrs,dir:e.context.dir,id:M.getRootId(e.context),"data-disabled":T(s),"data-readonly":T(e.context.readOnly),"data-invalid":T(e.context.invalid),style:{"--value":n.toString("css")}})},getLabelProps(){return t.element({...Re.label.attrs,dir:e.context.dir,id:M.getLabelId(e.context),htmlFor:M.getHiddenInputId(e.context),"data-disabled":T(s),"data-readonly":T(e.context.readOnly),"data-invalid":T(e.context.invalid),"data-focus":T(d),onClick(m){m.preventDefault();const b=ZC(M.getControlEl(e.context),"[data-channel=hex]");b==null||b.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Re.control.attrs,id:M.getControlId(e.context),dir:e.context.dir,"data-disabled":T(s),"data-readonly":T(e.context.readOnly),"data-invalid":T(e.context.invalid),"data-state":c?"open":"closed","data-focus":T(d)})},getTriggerProps(){return t.button({...Re.trigger.attrs,id:M.getTriggerId(e.context),dir:e.context.dir,disabled:s,"aria-label":`select color. current color is ${i}`,"aria-controls":M.getContentId(e.context),"aria-labelledby":M.getLabelId(e.context),"data-disabled":T(s),"data-readonly":T(e.context.readOnly),"data-invalid":T(e.context.invalid),"data-placement":u,"aria-expanded":T(c),"data-state":c?"open":"closed","data-focus":T(d),type:"button",onClick(){a&&r({type:"TRIGGER.CLICK"})},onBlur(){a&&r({type:"TRIGGER.BLUR"})},style:{position:"relative"}})},getPositionerProps(){return t.element({...Re.positioner.attrs,id:M.getPositionerId(e.context),dir:e.context.dir,style:h.floating})},getContentProps(){return t.element({...Re.content.attrs,id:M.getContentId(e.context),dir:e.context.dir,"data-placement":u,"data-state":c?"open":"closed",hidden:!c})},getValueTextProps(){return t.element({...Re.valueText.attrs,dir:e.context.dir,"data-disabled":T(s),"data-focus":T(d)})},getAreaProps(m={}){const{xChannel:b,yChannel:y}=g(m),{areaStyles:P}=Xc(o,{xChannel:b,yChannel:y,dir:e.context.dir});return t.element({...Re.area.attrs,id:M.getAreaId(e.context),role:"group","data-invalid":T(e.context.invalid),"data-disabled":T(s),"data-readonly":T(e.context.readOnly),onPointerDown(C){if(!a||!So(C)||Yr(C))return;const x=pr(C);r({type:"AREA.POINTER_DOWN",point:x,channel:{xChannel:b,yChannel:y},id:"area"}),C.preventDefault()},style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...P}})},getAreaBackgroundProps(m={}){const{xChannel:b,yChannel:y}=g(m),{areaGradientStyles:P}=Xc(o,{xChannel:b,yChannel:y,dir:e.context.dir});return t.element({...Re.areaBackground.attrs,id:M.getAreaGradientId(e.context),"data-invalid":T(e.context.invalid),"data-disabled":T(s),"data-readonly":T(e.context.readOnly),style:{position:"relative",touchAction:"none",forcedColorAdjust:"none",...P}})},getAreaThumbProps(m={}){const{xChannel:b,yChannel:y}=g(m),P={xChannel:b,yChannel:y},C=o.getChannelValuePercent(b),x=1-o.getChannelValuePercent(y),w=o.getChannelValue(b),A=o.getChannelValue(y),O=o.withChannelValue("alpha",1).toString("css");return t.element({...Re.areaThumb.attrs,id:M.getAreaThumbId(e.context),dir:e.context.dir,tabIndex:s?void 0:0,"data-disabled":T(s),"data-invalid":T(e.context.invalid),"data-readonly":T(e.context.readOnly),role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":w,"aria-label":`${b} and ${y}`,"aria-roledescription":"2d slider","aria-valuetext":`${b} ${w}, ${y} ${A}`,style:{position:"absolute",left:`${C*100}%`,top:`${x*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",forcedColorAdjust:"none","--color":O,background:O},onFocus(){a&&r({type:"AREA.FOCUS",id:"area",channel:P})},onKeyDown(R){if(R.defaultPrevented||!a)return;const S=Mi(R),V={ArrowUp(){r({type:"AREA.ARROW_UP",channel:P,step:S})},ArrowDown(){r({type:"AREA.ARROW_DOWN",channel:P,step:S})},ArrowLeft(){r({type:"AREA.ARROW_LEFT",channel:P,step:S})},ArrowRight(){r({type:"AREA.ARROW_RIGHT",channel:P,step:S})},PageUp(){r({type:"AREA.PAGE_UP",channel:P,step:S})},PageDown(){r({type:"AREA.PAGE_DOWN",channel:P,step:S})},Escape(F){F.stopPropagation()}}[er(R,e.context)];V&&(V(R),R.preventDefault())}})},getTransparencyGridProps(m={}){const{size:b="12px"}=m;return t.element({...Re.transparencyGrid.attrs,style:{"--size":b,width:"100%",height:"100%",position:"absolute",backgroundColor:"#fff",backgroundImage:"conic-gradient(#eeeeee 0 25%, transparent 0 50%, #eeeeee 0 75%, transparent 0)",backgroundSize:"var(--size) var(--size)",inset:"0px",zIndex:"auto",pointerEvents:"none"}})},getChannelSliderProps(m){const{orientation:b="horizontal",channel:y,format:P}=m;return t.element({...Re.channelSlider.attrs,"data-channel":y,"data-orientation":b,role:"presentation",onPointerDown(C){if(!a||!So(C)||Yr(C))return;const x=pr(C);r({type:"CHANNEL_SLIDER.POINTER_DOWN",channel:y,format:P,point:x,id:y,orientation:b}),C.preventDefault()},style:{position:"relative",touchAction:"none"}})},getChannelSliderTrackProps(m){const{orientation:b="horizontal",channel:y,format:P}=m,C=P?n.toFormat(P):o;return t.element({...Re.channelSliderTrack.attrs,id:M.getChannelSliderTrackId(e.context,y),role:"group","data-channel":y,"data-orientation":b,style:{position:"relative",forcedColorAdjust:"none",backgroundImage:Hw({orientation:b,channel:y,dir:e.context.dir,value:C})}})},getChannelSliderLabelProps(m){const{channel:b}=m;return t.element({...Re.channelSliderLabel.attrs,"data-channel":b,onClick(y){var C;if(!a)return;y.preventDefault();const P=M.getChannelSliderThumbId(e.context,b);(C=M.getById(e.context,P))==null||C.focus({preventScroll:!0})},style:{userSelect:"none",WebkitUserSelect:"none"}})},getChannelSliderValueTextProps(m){return t.element({...Re.channelSliderValueText.attrs,"data-channel":m.channel})},getChannelSliderThumbProps(m){const{orientation:b="horizontal",channel:y,format:P}=m,C=P?n.toFormat(P):o,x=C.getChannelRange(y),w=C.getChannelValue(y),A=(w-x.minValue)/(x.maxValue-x.minValue),O=b==="horizontal"?{left:`${A*100}%`,top:"50%"}:{top:`${A*100}%`,left:"50%"};return t.element({...Re.channelSliderThumb.attrs,id:M.getChannelSliderThumbId(e.context,y),role:"slider","aria-label":y,tabIndex:s?void 0:0,"data-channel":y,"data-disabled":T(s),"data-orientation":b,"aria-disabled":T(s),"aria-orientation":b,"aria-valuemax":x.maxValue,"aria-valuemin":x.minValue,"aria-valuenow":w,"aria-valuetext":`${y} ${w}`,style:{forcedColorAdjust:"none",position:"absolute",background:jw(o,y).toString("css"),...O},onFocus(){a&&r({type:"CHANNEL_SLIDER.FOCUS",channel:y})},onKeyDown(R){if(R.defaultPrevented||!a)return;const S=Mi(R)*x.step,V={ArrowUp(){r({type:"CHANNEL_SLIDER.ARROW_UP",channel:y,step:S})},ArrowDown(){r({type:"CHANNEL_SLIDER.ARROW_DOWN",channel:y,step:S})},ArrowLeft(){r({type:"CHANNEL_SLIDER.ARROW_LEFT",channel:y,step:S})},ArrowRight(){r({type:"CHANNEL_SLIDER.ARROW_RIGHT",channel:y,step:S})},PageUp(){r({type:"CHANNEL_SLIDER.PAGE_UP",channel:y})},PageDown(){r({type:"CHANNEL_SLIDER.PAGE_DOWN",channel:y})},Home(){r({type:"CHANNEL_SLIDER.HOME",channel:y})},End(){r({type:"CHANNEL_SLIDER.END",channel:y})},Escape(F){F.stopPropagation()}}[er(R,e.context)];V&&(V(R),R.preventDefault())}})},getChannelInputProps(m){const{channel:b}=m,y=b==="hex"||b==="css",P=_w(n,b);return t.input({...Re.channelInput.attrs,dir:e.context.dir,type:y?"text":"number","data-channel":b,"aria-label":b,spellCheck:!1,autoComplete:"off",disabled:s,"data-disabled":T(s),"data-invalid":T(e.context.invalid),"data-readonly":T(e.context.readOnly),readOnly:e.context.readOnly,defaultValue:ya(n,b),min:P==null?void 0:P.minValue,max:P==null?void 0:P.maxValue,step:P==null?void 0:P.step,onBeforeInput(C){if(y||!a)return;C.currentTarget.value.match(/[^0-9.]/g)&&C.preventDefault()},onFocus(C){a&&(r({type:"CHANNEL_INPUT.FOCUS",channel:b}),C.currentTarget.select())},onBlur(C){if(!a)return;const x=y?C.currentTarget.value:C.currentTarget.valueAsNumber;r({type:"CHANNEL_INPUT.BLUR",channel:b,value:x,isTextField:y})},onKeyDown(C){if(!C.defaultPrevented&&a&&C.key==="Enter"){const x=y?C.currentTarget.value:C.currentTarget.valueAsNumber;r({type:"CHANNEL_INPUT.CHANGE",channel:b,value:x,isTextField:y}),C.preventDefault()}},style:{appearance:"none",WebkitAppearance:"none",MozAppearance:"textfield"}})},getHiddenInputProps(){return t.input({type:"text",disabled:s,name:e.context.name,tabIndex:-1,readOnly:e.context.readOnly,required:e.context.required,id:M.getHiddenInputId(e.context),style:Qr,defaultValue:i})},getEyeDropperTriggerProps(){return t.button({...Re.eyeDropperTrigger.attrs,type:"button",dir:e.context.dir,disabled:s,"data-disabled":T(s),"data-invalid":T(e.context.invalid),"data-readonly":T(e.context.readOnly),"aria-label":"Pick a color from the screen",onClick(){a&&r("EYEDROPPER.CLICK")}})},getSwatchGroupProps(){return t.element({...Re.swatchGroup.attrs,role:"group"})},getSwatchTriggerState:v,getSwatchTriggerProps(m){const b=v(m);return t.button({...Re.swatchTrigger.attrs,disabled:b.disabled,dir:e.context.dir,type:"button","aria-label":`select ${b.valueAsString} as the color`,"data-state":b.checked?"checked":"unchecked","data-value":b.valueAsString,"data-disabled":T(b.disabled),onClick(){b.disabled||r({type:"SWATCH_TRIGGER.CLICK",value:b.value})},style:{"--color":b.valueAsString,position:"relative"}})},getSwatchIndicatorProps(m){const b=v(m);return t.element({...Re.swatchIndicator.attrs,dir:e.context.dir,hidden:!b.checked})},getSwatchProps(m){const{respectAlpha:b=!0}=m,y=v(m),P=y.value.toString(b?"css":"hex");return t.element({...Re.swatch.attrs,dir:e.context.dir,"data-state":y.checked?"checked":"unchecked","data-value":y.valueAsString,style:{"--color":P,position:"relative",background:P}})},getFormatTriggerProps(){return t.button({...Re.formatTrigger.attrs,dir:e.context.dir,type:"button","aria-label":`change color format to ${gd(e.context.format)}`,onClick(m){if(m.currentTarget.disabled)return;const b=gd(e.context.format);r({type:"FORMAT.SET",format:b,src:"format-trigger"})}})},getFormatSelectProps(){return t.select({...Re.formatSelect.attrs,"aria-label":"change color format",dir:e.context.dir,defaultValue:e.context.format,disabled:s,onChange(m){const b=Ww(m.currentTarget.value);r({type:"FORMAT.SET",format:b,src:"format-select"})}})}}}var $i=["hsba","hsla","rgba"],Uw=new RegExp(`^(${$i.join("|")})$`);function gd(e){const r=$i.indexOf(e);return $i[r+1]??$i[0]}function Ww(e){if(Uw.test(e))return e;throw new Error(`Unsupported color format: ${e}`)}var fd=e=>Or(e),{and:zw}=At;function Kw(e){const r=he(e);return Ce({id:"color-picker",initial:r.open?"open":"idle",context:{dir:"ltr",value:fd("#000000"),format:"rgba",disabled:!1,closeOnSelect:!1,openAutoFocus:!0,...r,activeId:null,activeChannel:null,activeOrientation:null,fieldsetDisabled:!1,restoreFocus:!0,positioning:{...r.positioning,placement:"bottom"}},computed:{isRtl:t=>t.dir==="rtl",isDisabled:t=>!!t.disabled||t.fieldsetDisabled,isInteractive:t=>!(t.isDisabled||t.readOnly),valueAsString:t=>t.value.toString(t.format),areaValue:t=>{const n=t.format.startsWith("hsl")?"hsla":"hsba";return t.value.toFormat(n)}},activities:["trackFormControl"],watch:{value:["syncInputElements"],format:["syncFormatSelectElement"],open:["toggleVisibility"]},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],activities:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:zw("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],activities:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}}},{guards:{closeOnSelect:t=>!!t.closeOnSelect,isOpenControlled:t=>!!t["open.controlled"],shouldRestoreFocus:t=>!!t.restoreFocus},activities:{trackPositioning(t){t.currentPlacement||(t.currentPlacement=t.positioning.placement);const n=M.getTriggerEl(t);return Mt(n,()=>M.getPositionerEl(t),{...t.positioning,defer:!0,onComplete(i){t.currentPlacement=i.placement}})},trackDismissableElement(t,n,{send:o}){return Dn(()=>M.getContentEl(t),{exclude:M.getTriggerEl(t),defer:!0,onInteractOutside(s){var a;(a=t.onInteractOutside)==null||a.call(t,s),!s.defaultPrevented&&(t.restoreFocus=!(s.detail.focusable||s.detail.contextmenu))},onPointerDownOutside:t.onPointerDownOutside,onFocusOutside:t.onFocusOutside,onDismiss(){o({type:"INTERACT_OUTSIDE"})}})},trackFormControl(t,n,{send:o,initialContext:i}){const s=M.getHiddenInputEl(t);return Jr(s,{onFieldsetDisabledChange(a){t.fieldsetDisabled=a},onFormReset(){o({type:"VALUE.SET",value:i.value,src:"form.reset"})}})},trackPointerMove(t,n,{send:o}){return Hu(M.getDoc(t),{onPointerMove({point:i}){const s=t.activeId==="area"?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE";o({type:s,point:i,format:n.format})},onPointerUp(){const i=t.activeId==="area"?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP";o({type:i})}})},disableTextSelection(t){return Bu({doc:M.getDoc(t),target:M.getContentEl(t)})}},actions:{openEyeDropper(t){if(!("EyeDropper"in M.getWin(t)))return;const o=M.getWin(t);new o.EyeDropper().open().then(({sRGBHex:s})=>{var c;const a=t.value.getFormat(),l=Or(s).toFormat(a);ut.value(t,l),(c=t.onValueChangeEnd)==null||c.call(t,{value:t.value,valueAsString:t.valueAsString})}).catch(()=>{})},setActiveChannel(t,n){t.activeId=n.id,n.channel&&(t.activeChannel=n.channel),n.orientation&&(t.activeOrientation=n.orientation)},clearActiveChannel(t){t.activeChannel=null,t.activeId=null,t.activeOrientation=null},setAreaColorFromPoint(t,n){const o=n.format?t.value.toFormat(n.format):t.areaValue,{xChannel:i,yChannel:s}=n.channel||t.activeChannel,a=M.getAreaValueFromPoint(t,n.point);if(!a)return;const l=o.getChannelPercentValue(i,a.x),c=o.getChannelPercentValue(s,1-a.y),d=o.withChannelValue(i,l).withChannelValue(s,c);ut.value(t,d)},setChannelColorFromPoint(t,n){const o=n.channel||t.activeId,i=n.format?t.value.toFormat(n.format):t.areaValue,s=M.getChannelSliderValueFromPoint(t,n.point,o);if(!s)return;const l=(t.activeOrientation||"horizontal")==="horizontal"?s.x:s.y,c=i.getChannelPercentValue(o,l),d=i.withChannelValue(o,c);ut.value(t,d)},setValue(t,n){ut.value(t,n.value)},setFormat(t,n){ut.format(t,n.format)},syncInputElements(t){qs.inputs(t)},invokeOnChangeEnd(t){Pa.changeEnd(t)},setChannelColorFromInput(t,n){const{channel:o,isTextField:i,value:s}=n,a=t.value.getChannelValue("alpha");let l;if(o==="alpha"){let c=parseFloat(s);c=Number.isNaN(c)?a:c,l=t.value.withChannelValue("alpha",c)}else if(i)l=lp(()=>fd(s).withChannelValue("alpha",a),()=>t.value);else{const c=t.value.toFormat(t.format),d=Number.isNaN(s)?c.getChannelValue(o):s;l=c.withChannelValue(o,d)}qs.inputs(t,l),ut.value(t,l)},incrementChannel(t,n){const o=t.value.incrementChannel(n.channel,n.step);ut.value(t,o)},decrementChannel(t,n){const o=t.value.decrementChannel(n.channel,n.step);ut.value(t,o)},incrementAreaXChannel(t,n){const{xChannel:o}=n.channel,i=t.areaValue.incrementChannel(o,n.step);ut.value(t,i)},decrementAreaXChannel(t,n){const{xChannel:o}=n.channel,i=t.areaValue.decrementChannel(o,n.step);ut.value(t,i)},incrementAreaYChannel(t,n){const{yChannel:o}=n.channel,i=t.areaValue.incrementChannel(o,n.step);ut.value(t,i)},decrementAreaYChannel(t,n){const{yChannel:o}=n.channel,i=t.areaValue.decrementChannel(o,n.step);ut.value(t,i)},setChannelToMax(t,n){const o=t.value.getChannelRange(n.channel),i=t.value.withChannelValue(n.channel,o.maxValue);ut.value(t,i)},setChannelToMin(t,n){const o=t.value.getChannelRange(n.channel),i=t.value.withChannelValue(n.channel,o.minValue);ut.value(t,i)},focusAreaThumb(t){G(()=>{var n;(n=M.getAreaThumbEl(t))==null||n.focus({preventScroll:!0})})},focusChannelThumb(t,n){G(()=>{var o;(o=M.getChannelSliderThumbEl(t,n.channel))==null||o.focus({preventScroll:!0})})},setInitialFocus(t){t.openAutoFocus&&G(()=>{const n=Ro({root:M.getContentEl(t),getInitialEl:t.initialFocusEl});n==null||n.focus({preventScroll:!0})})},setReturnFocus(t){G(()=>{var n;(n=M.getTriggerEl(t))==null||n.focus({preventScroll:!0})})},syncFormatSelectElement(t){qs.formatSelect(t)},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},toggleVisibility(t,n,{send:o}){o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}},compareFns:{value:(t,n)=>t.isEqual(n)}})}var qs={inputs(e,r){const t=M.getChannelInputEls(e);G(()=>{t.forEach(n=>{const o=n.dataset.channel;M.setValue(n,ya(r||e.value,o))})})},formatSelect(e){const r=M.getFormatSelectEl(e);G(()=>{M.setValue(r,e.format)})}},Pa={changeEnd(e){var t;const r=e.value.toFormat(e.format);(t=e.onValueChangeEnd)==null||t.call(e,{value:r,valueAsString:e.valueAsString})},change(e){var t;const r=e.value.toFormat(e.format);(t=e.onValueChange)==null||t.call(e,{value:r,valueAsString:e.valueAsString}),Za(M.getHiddenInputEl(e),{value:e.valueAsString})},formatChange(e){var r;(r=e.onFormatChange)==null||r.call(e,{format:e.format})}},ut={value(e,r){!r||e.value.isEqual(r)||(e.value=r,Pa.change(e))},format(e,r){e.format!==r&&(e.format=r,Pa.formatChange(e))}};const[Vn,wl]=U({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Mn=e=>D()(e,["lazyMount","unmountOnExit"]),[qw,xl]=U({name:"AccordionItemPropsContext",hookName:"useAccordionItemPropsContext",providerName:"<AccordionItemPropsProvider />"}),Hp=f.forwardRef((e,r)=>{const[t,n]=XI(e),o=jo(),i=wl(),s=E(o.getItemProps(t),n),a=o.getItemState(t),l=o.getItemContentProps(t);return p.jsx(qw,{value:t,children:p.jsx(ZI,{value:a,children:p.jsx(pl,{ref:r,open:a.expanded,ids:{content:l.id},...i,...s})})})});Hp.displayName="AccordionItem";const Sl=f.forwardRef((e,r)=>{const t=gs();if(t.isUnmounted)return null;const n=E(t.getContentProps(),e);return p.jsx(I.div,{...n,ref:r})});Sl.displayName="CollapsibleContent";const Yw=D(),Gp=f.forwardRef((e,r)=>{const t=jo(),n=xl(),o=t.getItemContentProps(n),[,i]=Yw(o,["hidden","data-state"]),s=E(i,e);return p.jsx(Sl,{ref:r,...s})});Gp.displayName="AccordionItemContent";const Xw=e=>e.children(JI()),Up=f.forwardRef((e,r)=>{const t=jo(),n=xl(),o=E(t.getItemIndicatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});Up.displayName="AccordionItemIndicator";const Wp=f.forwardRef((e,r)=>{const t=jo(),n=xl(),o=gs(),i=t.getItemTriggerProps(n),s=E({...i,"aria-controls":o.isUnmounted?void 0:i["aria-controls"]},e);return p.jsx(I.button,{...s,ref:r})});Wp.displayName="AccordionItemTrigger";const Zw=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,value:e.defaultValue,...e},o={...n,value:e.value,onFocusChange:q(e.onFocusChange),onValueChange:q(e.onValueChange)},[i,s]=xe(qI(n),{context:o});return WI(i,s,we)},zp=f.forwardRef((e,r)=>{const[t,n]=Mn(e),[o,i]=D()(n,["collapsible","defaultValue","disabled","id","ids","multiple","onFocusChange","onValueChange","orientation","value"]),s=Zw(o),a=E(s.getRootProps(),i);return p.jsx(Tp,{value:s,children:p.jsx(Vn,{value:t,children:p.jsx(I.div,{...a,ref:r})})})});zp.displayName="AccordionRoot";const Kp=f.forwardRef((e,r)=>{const[t,n]=Mn(e),[{value:o},i]=D()(n,["value"]),s=E(o.getRootProps(),i);return p.jsx(Tp,{value:o,children:p.jsx(Vn,{value:t,children:p.jsx(I.div,{...s,ref:r})})})});Kp.displayName="AccordionRootProvider";const[qp,Rl]=U({name:"AvatarContext",hookName:"useAvatarContext",providerName:"<AvatarProvider />"}),Jw=e=>e.children(Rl()),Yp=f.forwardRef((e,r)=>{const t=Rl(),n=E(t.getFallbackProps(),e);return p.jsx(I.span,{...n,ref:r})});Yp.displayName="AvatarFallback";const Xp=f.forwardRef((e,r)=>{const t=Rl(),n=E(t.getImageProps(),e);return p.jsx(I.img,{...n,ref:r})});Xp.displayName="AvatarImage";var Qw=fe("avatar").parts("root","image","fallback"),Ys=Qw.build(),Xt=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`avatar:${e.id}`},getImageId:e=>{var r;return((r=e.ids)==null?void 0:r.image)??`avatar:${e.id}:image`},getFallbackId:e=>{var r;return((r=e.ids)==null?void 0:r.fallback)??`avatar:${e.id}:fallback`},getRootEl:e=>Xt.getById(e,Xt.getRootId(e)),getImageEl:e=>Xt.getById(e,Xt.getImageId(e))});function ex(e,r,t){const n=e.matches("loaded");return{loaded:n,setSrc(o){r({type:"SRC.SET",src:o})},setLoaded(){r({type:"IMG.LOADED",src:"api"})},setError(){r({type:"IMG.ERROR",src:"api"})},getRootProps(){return t.element({...Ys.root.attrs,dir:e.context.dir,id:Xt.getRootId(e.context)})},getImageProps(){return t.img({...Ys.image.attrs,hidden:!n,dir:e.context.dir,id:Xt.getImageId(e.context),"data-state":n?"visible":"hidden",onLoad(){r({type:"IMG.LOADED",src:"element"})},onError(){r({type:"IMG.ERROR",src:"element"})}})},getFallbackProps(){return t.element({...Ys.fallback.attrs,dir:e.context.dir,id:Xt.getFallbackId(e.context),hidden:n,"data-state":n?"hidden":"visible"})}}}function tx(e){const r=he(e);return Ce({id:"avatar",initial:"loading",activities:["trackImageRemoval"],context:r,on:{"SRC.CHANGE":{target:"loading"},"IMG.UNMOUNT":{target:"error"}},states:{loading:{activities:["trackSrcChange"],entry:["checkImageStatus"],on:{"IMG.LOADED":{target:"loaded",actions:["invokeOnLoad"]},"IMG.ERROR":{target:"error",actions:["invokeOnError"]}}},error:{activities:["trackSrcChange"],on:{"IMG.LOADED":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{activities:["trackSrcChange"],on:{"IMG.ERROR":{target:"error",actions:["invokeOnError"]}}}}},{activities:{trackSrcChange(t,n,{send:o}){const i=Xt.getImageEl(t);return ls(i,{attributes:["src","srcset"],callback(){o({type:"SRC.CHANGE"})}})},trackImageRemoval(t,n,{send:o}){const i=Xt.getRootEl(t);return GC(i,{callback(s){Array.from(s[0].removedNodes).find(c=>c.nodeType===Node.ELEMENT_NODE&&c.matches("[data-scope=avatar][data-part=image]"))&&o({type:"IMG.UNMOUNT"})}})}},actions:{invokeOnLoad(t){var n;(n=t.onStatusChange)==null||n.call(t,{status:"loaded"})},invokeOnError(t){var n;(n=t.onStatusChange)==null||n.call(t,{status:"error"})},checkImageStatus(t,n,{send:o}){const i=Xt.getImageEl(t);if(i!=null&&i.complete){const s=rx(i)?"IMG.LOADED":"IMG.ERROR";o({type:s,src:"ssr"})}}}})}function rx(e){return e.complete&&e.naturalWidth!==0&&e.naturalHeight!==0}ee()(["dir","id","ids","onStatusChange","getRootNode"]);const nx=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,...e},o={...n,onStatusChange:q(e.onStatusChange)},[i,s]=xe(tx(n),{context:o});return ex(i,s,we)},Zp=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id","ids","onStatusChange"]),o=nx(t),i=E(o.getRootProps(),n);return p.jsx(qp,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Zp.displayName="AvatarRoot";const Jp=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(qp,{value:t,children:p.jsx(I.div,{...o,ref:r})})});Jp.displayName="AvatarRootProvider";const[Qp,en]=U({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),eg=e=>e.children(en()),Ol=f.forwardRef((e,r)=>{const t=en(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});Ol.displayName="CheckboxControl";function ox(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function ix(e){return!(e.metaKey||!ku()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var sx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ax(e,r,t){const n=t?He(t):null,o=De(n);return e=e||n instanceof o.HTMLInputElement&&!sx.has(n==null?void 0:n.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&r==="keyboard"&&t instanceof o.KeyboardEvent&&!Reflect.has(lx,t.key))}var tn=null,Ca=new Set,yo=new Map,Zr=!1,Ea=!1,lx={Tab:!0,Escape:!0};function vs(e,r){for(let t of Ca)t(e,r)}function qi(e){Zr=!0,ix(e)&&(tn="keyboard",vs("keyboard",e))}function Rt(e){tn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Zr=!0,vs("pointer",e))}function tg(e){ox(e)&&(Zr=!0,tn="virtual")}function rg(e){const r=He(e);r===De(r)||r===it(r)||(!Zr&&!Ea&&(tn="virtual",vs("virtual",e)),Zr=!1,Ea=!1)}function ng(){Zr=!1,Ea=!0}function cx(e){if(typeof window>"u"||yo.get(De(e)))return;const r=De(e),t=it(e);let n=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){tn="virtual",vs("virtual",null),Zr=!0,n.apply(this,arguments)},t.addEventListener("keydown",qi,!0),t.addEventListener("keyup",qi,!0),t.addEventListener("click",tg,!0),r.addEventListener("focus",rg,!0),r.addEventListener("blur",ng,!1),typeof r.PointerEvent<"u"?(t.addEventListener("pointerdown",Rt,!0),t.addEventListener("pointermove",Rt,!0),t.addEventListener("pointerup",Rt,!0)):(t.addEventListener("mousedown",Rt,!0),t.addEventListener("mousemove",Rt,!0),t.addEventListener("mouseup",Rt,!0)),r.addEventListener("beforeunload",()=>{dx(e)},{once:!0}),yo.set(r,{focus:n})}var dx=(e,r)=>{const t=De(e),n=it(e);yo.has(t)&&(t.HTMLElement.prototype.focus=yo.get(t).focus,n.removeEventListener("keydown",qi,!0),n.removeEventListener("keyup",qi,!0),n.removeEventListener("click",tg,!0),t.removeEventListener("focus",rg,!0),t.removeEventListener("blur",ng,!1),typeof t.PointerEvent<"u"?(n.removeEventListener("pointerdown",Rt,!0),n.removeEventListener("pointermove",Rt,!0),n.removeEventListener("pointerup",Rt,!0)):(n.removeEventListener("mousedown",Rt,!0),n.removeEventListener("mousemove",Rt,!0),n.removeEventListener("mouseup",Rt,!0)),yo.delete(t))};function kn(){return tn==="keyboard"}function bs(e={}){const{isTextInput:r,autoFocus:t,onChange:n,root:o}=e;cx(o),n==null||n({isFocusVisible:t||kn(),modality:tn});const i=(s,a)=>{ax(!!r,s,a)&&(n==null||n({isFocusVisible:kn(),modality:s}))};return Ca.add(i),()=>{Ca.delete(i)}}var og=fe("checkbox").parts("root","label","control","indicator"),ci=og.build(),Ke=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`checkbox:${e.id}`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`checkbox:${e.id}:label`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`checkbox:${e.id}:control`},getHiddenInputId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenInput)??`checkbox:${e.id}:input`},getRootEl:e=>Ke.getById(e,Ke.getRootId(e)),getHiddenInputEl:e=>Ke.getById(e,Ke.getHiddenInputId(e))});function ux(e,r,t){const n=e.context.isDisabled,o=e.context.readOnly,i=!n&&e.context.focused,s=!n&&e.context.focusVisible,a=e.context.isChecked,l=e.context.isIndeterminate,c={"data-active":T(e.context.active),"data-focus":T(i),"data-focus-visible":T(s),"data-readonly":T(o),"data-hover":T(e.context.hovered),"data-disabled":T(n),"data-state":l?"indeterminate":e.context.checked?"checked":"unchecked","data-invalid":T(e.context.invalid)};return{checked:a,disabled:n,indeterminate:l,focused:i,checkedState:e.context.checked,setChecked(d){r({type:"CHECKED.SET",checked:d,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:a,isTrusted:!1})},getRootProps(){return t.label({...ci.root.attrs,...c,dir:e.context.dir,id:Ke.getRootId(e.context),htmlFor:Ke.getHiddenInputId(e.context),onPointerMove(){n||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){n||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(d){He(d)===Ke.getHiddenInputEl(e.context)&&d.stopPropagation()}})},getLabelProps(){return t.element({...ci.label.attrs,...c,dir:e.context.dir,id:Ke.getLabelId(e.context)})},getControlProps(){return t.element({...ci.control.attrs,...c,dir:e.context.dir,id:Ke.getControlId(e.context),"aria-hidden":!0})},getIndicatorProps(){return t.element({...ci.indicator.attrs,...c,dir:e.context.dir,hidden:!l&&!e.context.checked})},getHiddenInputProps(){return t.input({id:Ke.getHiddenInputId(e.context),type:"checkbox",required:e.context.required,defaultChecked:a,disabled:n,"aria-labelledby":Ke.getLabelId(e.context),"aria-invalid":e.context.invalid,name:e.context.name,form:e.context.form,value:e.context.value,style:Qr,onFocus(){const d=kn();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:d}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(d){if(o){d.preventDefault();return}const g=d.currentTarget.checked;r({type:"CHECKED.SET",checked:g,isTrusted:!0})}})}}}var{not:hd}=At;function px(e){const r=he(e);return Ce({id:"checkbox",initial:"ready",context:{checked:!1,value:"on",disabled:!1,...r,fieldsetDisabled:!1,focusVisible:!1},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:hd("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:hd("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{isIndeterminate:t=>Ia(t.checked),isChecked:t=>md(t.checked),isDisabled:t=>!!t.disabled||t.fieldsetDisabled},states:{ready:{}}},{guards:{isTrusted:(t,n)=>!!n.isTrusted},activities:{trackPressEvent(t){if(!t.isDisabled)return Gu({pointerNode:Ke.getRootEl(t),keyboardNode:Ke.getHiddenInputEl(t),isValidKey:n=>n.key===" ",onPress:()=>t.active=!1,onPressStart:()=>t.active=!0,onPressEnd:()=>t.active=!1})},trackFocusVisible(t){if(!t.isDisabled)return bs({root:Ke.getRootNode(t)})},trackFormControlState(t,n,{send:o,initialContext:i}){return Jr(Ke.getHiddenInputEl(t),{onFieldsetDisabledChange(s){t.fieldsetDisabled=s},onFormReset(){o({type:"CHECKED.SET",checked:!!i.checked})}})}},actions:{setContext(t,n){Object.assign(t,n.context)},syncInputElement(t){const n=Ke.getHiddenInputEl(t);n&&(Lu(n,t.isChecked),n.indeterminate=t.isIndeterminate)},removeFocusIfNeeded(t){t.disabled&&t.focused&&(t.focused=!1,t.focusVisible=!1)},setChecked(t,n){vd.checked(t,n.checked)},toggleChecked(t){const n=Ia(t.checked)?!0:!t.checked;vd.checked(t,n)},dispatchChangeEvent(t){const n=Ke.getHiddenInputEl(t);Ja(n,{checked:md(t.checked)})}}})}function Ia(e){return e==="indeterminate"}function md(e){return Ia(e)?!1:!!e}var gx={change:e=>{var r;(r=e.onCheckedChange)==null||r.call(e,{checked:e.checked})}},vd={checked:(e,r)=>{ye(e.checked,r)||(e.checked=r,gx.change(e))}};ee()(["checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const fx=og.extendWith("group");function hx(e){const{value:r,onChange:t,defaultValue:n}=e,[o,i]=f.useState(n),s=r!==void 0,a=s?r:o,l=f.useCallback(c=>(s||i(c),t==null?void 0:t(c)),[s,t]);return[a,l]}function mx(e={}){const{defaultValue:r,value:t,onValueChange:n,disabled:o,readOnly:i,name:s,invalid:a}=e,l=!(o||i),c=q(n,{sync:!0}),[d,g]=hx({value:t,defaultValue:r||[],onChange:c}),u=y=>d.some(P=>String(P)===String(y)),h=y=>{u(y)?m(y):v(y)},v=y=>{l&&(u(y)||g(d.concat(y)))},m=y=>{l&&g(d.filter(P=>String(P)!==String(y)))};return{isChecked:u,value:d,name:s,disabled:!!o,readOnly:!!i,invalid:!!a,setValue:g,addValue:v,toggleValue:h,getItemProps:y=>({checked:y.value!=null?u(y.value):void 0,onCheckedChange(){y.value!=null&&h(y.value)},name:s,disabled:o,readOnly:i,invalid:a})}}const[vx,bx]=U({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),ig=f.forwardRef((e,r)=>{const[t,n]=D()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),o=mx(t);return p.jsx(vx,{value:o,children:p.jsx(I.div,{ref:r,role:"group",...n,...fx.build().group.attrs})})});ig.displayName="CheckboxGroup";const[yx,Ve]=U({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),kl=f.forwardRef((e,r)=>{const t=en(),n=E(t.getHiddenInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});kl.displayName="CheckboxHiddenInput";const Al=f.forwardRef((e,r)=>{const t=en(),n=E(t.getLabelProps(),e);return p.jsx(I.span,{...n,ref:r})});Al.displayName="CheckboxLabel";const Px=(e={})=>{const r=bx(),t=Ve(),n=f.useMemo(()=>E(e,(r==null?void 0:r.getItemProps({value:e.value}))??{}),[e,r]),{getRootNode:o}=Ae(),{dir:i}=Te(),s={id:f.useId(),ids:{label:t==null?void 0:t.ids.label,hiddenInput:t==null?void 0:t.ids.control},dir:i,disabled:t==null?void 0:t.disabled,readOnly:t==null?void 0:t.readOnly,invalid:t==null?void 0:t.invalid,required:t==null?void 0:t.required,getRootNode:o,checked:n.defaultChecked,...n},a={...s,checked:n.checked,onCheckedChange:q(n.onCheckedChange,{sync:!0})},[l,c]=xe(px(s),{context:a});return ux(l,c,we)},Nl=f.forwardRef((e,r)=>{const[t,n]=D()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=Px(t),i=E(o.getRootProps(),n);return p.jsx(Qp,{value:o,children:p.jsx(I.label,{...i,ref:r})})});Nl.displayName="CheckboxRoot";const $l=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(Qp,{value:t,children:p.jsx(I.label,{...o,ref:r})})});$l.displayName="CheckboxRootProvider";const[sg,rn]=U({name:"ClipboardContext",hookName:"useClipboardContext",providerName:"<ClipboardProvider />"}),Cx=e=>e.children(rn()),ag=f.forwardRef((e,r)=>{const t=rn(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});ag.displayName="ClipboardControl";const lg=f.forwardRef((e,r)=>{const{children:t,copied:n,...o}=e,i=rn(),s=E(i.getIndicatorProps({copied:i.copied}),o);return p.jsx(I.div,{...s,ref:r,children:i.copied?n:t})});lg.displayName="ClipboardIndicator";const cg=f.forwardRef((e,r)=>{const t=rn(),n=E(t.getInputProps(),e);return p.jsx(I.input,{...n,ref:r})});cg.displayName="ClipboardInput";const dg=f.forwardRef((e,r)=>{const t=rn(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});dg.displayName="ClipboardLabel";var Ex=fe("clipboard").parts("root","control","trigger","indicator","input","label"),pn=Ex.build(),Zt=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`clip:${e.id}`},getInputId:e=>{var r;return((r=e.ids)==null?void 0:r.input)??`clip:${e.id}:input`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`clip:${e.id}:label`},getInputEl:e=>Zt.getById(e,Zt.getInputId(e)),writeToClipboard:e=>wx(Zt.getDoc(e),e.value)});function Ix(e,r){const t=e.createElement("pre");return Object.assign(t.style,{width:"1px",height:"1px",position:"fixed",top:"5px"}),t.textContent=r,t}function Tx(e){const t=De(e).getSelection();if(t==null)return Promise.reject(new Error);t.removeAllRanges();const n=e.ownerDocument,o=n.createRange();return o.selectNodeContents(e),t.addRange(o),n.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}function wx(e,r){var o;const t=e.defaultView||window;if(((o=t.navigator.clipboard)==null?void 0:o.writeText)!==void 0)return t.navigator.clipboard.writeText(r);if(!e.body)return Promise.reject(new Error);const n=Ix(e,r);return e.body.appendChild(n),Tx(n),e.body.removeChild(n),Promise.resolve()}function xx(e,r,t){const n=e.matches("copied");return{copied:n,value:e.context.value,setValue(o){r({type:"VALUE.SET",value:o})},copy(){r({type:"COPY"})},getRootProps(){return t.element({...pn.root.attrs,"data-copied":T(n),id:Zt.getRootId(e.context)})},getLabelProps(){return t.label({...pn.label.attrs,htmlFor:Zt.getInputId(e.context),"data-copied":T(n),id:Zt.getLabelId(e.context)})},getControlProps(){return t.element({...pn.control.attrs,"data-copied":T(n)})},getInputProps(){return t.input({...pn.input.attrs,defaultValue:e.context.value,"data-copied":T(n),readOnly:!0,"data-readonly":"true",id:Zt.getInputId(e.context),onFocus(o){o.currentTarget.select()},onCopy(){r({type:"INPUT.COPY"})}})},getTriggerProps(){return t.button({...pn.trigger.attrs,type:"button","aria-label":n?"Copied to clipboard":"Copy to clipboard","data-copied":T(n),onClick(){r({type:"COPY"})}})},getIndicatorProps(o){return t.element({...pn.indicator.attrs,hidden:o.copied!==n})}}}function Sx(e){const r=he(e);return Ce({id:"clipboard",initial:"idle",context:{value:"",timeout:3e3,...r},watch:{value:["syncInputElement"]},on:{"VALUE.SET":{actions:["setValue"]},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]}},states:{idle:{on:{"INPUT.COPY":{target:"copied",actions:["invokeOnCopy"]}}},copied:{after:{COPY_TIMEOUT:"idle"},on:{COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]},"INPUT.COPY":{actions:["invokeOnCopy"]}}}}},{actions:{setValue(t,n){t.value=n.value},copyToClipboard(t){Zt.writeToClipboard(t)},invokeOnCopy(t){var n;(n=t.onStatusChange)==null||n.call(t,{copied:!0})},syncInputElement(t){Zt.setValue(Zt.getInputEl(t),t.value)}},delays:{COPY_TIMEOUT:t=>t.timeout}})}ee()(["getRootNode","id","ids","value","timeout","onStatusChange"]);ee()(["copied"]);const Rx=(e={})=>{const{getRootNode:r}=Ae(),t={id:f.useId(),getRootNode:r,...e},n={...t},[o,i]=xe(Sx(t),{context:n});return xx(o,i,we)},ug=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id","ids","onStatusChange","timeout","value"]),o=Rx(t),i=E(o.getRootProps(),n);return p.jsx(sg,{value:o,children:p.jsx(I.div,{ref:r,...i})})});ug.displayName="ClipboardRoot";const pg=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(sg,{value:t,children:p.jsx(I.div,{ref:r,...o})})});pg.displayName="ClipboardRootProvider";const gg=f.forwardRef((e,r)=>{const t=rn(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});gg.displayName="ClipboardTrigger";const fg=f.forwardRef((e,r)=>{const t=rn();return p.jsx(I.span,{...e,ref:r,children:e.children||t.value})});fg.displayName="ClipboardValueText";const Ox=e=>e.children(gs()),hg=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(wp,{value:t,children:p.jsx(I.div,{...o,ref:r})})});hg.displayName="CollapsibleRootProvider";const mg=f.forwardRef((e,r)=>{const t=gs(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});mg.displayName="CollapsibleTrigger";const[kx,vg]=U({name:"ColorPickerAreaContext",hookName:"useColorPickerAreaContext",providerName:"<ColorPickerAreaProvider />"}),[bg,ve]=U({name:"ColorPickerContext",hookName:"useColorPickerContext",providerName:"<ColorPickerProvider />"}),yg=f.forwardRef((e,r)=>{const[t,n]=D()(e,["xChannel","yChannel"]),o=ve(),i=E(o.getAreaProps(t),n);return p.jsx(kx,{value:t,children:p.jsx(I.div,{...i,ref:r})})});yg.displayName="ColorPickerArea";const Pg=f.forwardRef((e,r)=>{const t=ve(),n=vg(),o=E(t.getAreaBackgroundProps(n),e);return p.jsx(I.div,{...o,ref:r})});Pg.displayName="ColorPickerAreaBackground";const Cg=f.forwardRef((e,r)=>{const t=ve(),n=vg(),o=E(t.getAreaThumbProps(n),e);return p.jsx(I.div,{...o,ref:r})});Cg.displayName="ColorPickerAreaThumb";const Eg=f.forwardRef((e,r)=>{const[t,n]=D()(e,["channel","orientation"]),o=ve(),i=E(o.getChannelInputProps(t),n);return p.jsx(I.input,{...i,ref:r})});Eg.displayName="ColorPickerChannelInput";const[Ax,ys]=U({name:"ColorPickerChannelSliderContext",hookName:"useColorPickerChannelSliderContext",providerName:"<ColorPickerChannelSliderProvider />"}),[Nx,Ll]=U({name:"ColorPickerFormatContext",hookName:"useColorPickerFormatPropsContext",providerName:"<ColorPickerFormatPropsProvider />",strict:!1}),Ig=f.forwardRef((e,r)=>{const[t,n]=D()(e,["channel","orientation"]),o=ve(),i=Ll(),s={...t,...i},a=E(o.getChannelSliderProps(s),n);return p.jsx(Ax,{value:t,children:p.jsx(I.div,{...a,ref:r})})});Ig.displayName="ColorPickerChannelSlider";const Tg=f.forwardRef((e,r)=>{const t=ve(),n=ys(),o=E(t.getChannelSliderLabelProps(n),e);return p.jsx(I.label,{...o,ref:r})});Tg.displayName="ColorPickerChannelSliderLabel";const wg=f.forwardRef((e,r)=>{const t=ve(),n=ys(),o=Ll(),i={...n,...o},s=E(t.getChannelSliderThumbProps(i),e);return p.jsx(I.div,{...s,ref:r})});wg.displayName="ColorPickerChannelSliderThumb";const xg=f.forwardRef((e,r)=>{const t=ve(),n=ys(),o=Ll(),i={...n,...o},s=E(t.getChannelSliderTrackProps(i),e);return p.jsx(I.div,{...s,ref:r})});xg.displayName="ColorPickerChannelSliderTrack";const Sg=f.forwardRef((e,r)=>{const{locale:t}=Te(),n=ve(),o=ys(),i=E(n.getChannelSliderValueTextProps(o),e);return p.jsx(I.span,{...i,ref:r,children:e.children||n.getChannelValueText(o.channel,t)})});Sg.displayName="ColorPickerChannelSliderValueText";const Rg=f.forwardRef((e,r)=>{const t=ve(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});Rg.displayName="ColorPickerContent";const $x=e=>e.children(ve()),Og=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});Og.displayName="ColorPickerControl";const kg=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getEyeDropperTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});kg.displayName="ColorPickerEyeDropperTrigger";const Ag=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getFormatSelectProps(),e);return p.jsx(I.select,{...n,ref:r,children:["rgba","hsla","hsba"].map(o=>p.jsx(I.option,{value:o,children:o},o))})});Ag.displayName="ColorPickerFormatSelect";const Ng=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getFormatTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Ng.displayName="ColorPickerFormatTrigger";const $g=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getHiddenInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});$g.displayName="ColorPickerHiddenInput";const Lg=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});Lg.displayName="ColorPickerLabel";const Fg=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});Fg.displayName="ColorPickerPositioner";const Lx=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n=Ve(),o={id:f.useId(),ids:{label:n==null?void 0:n.ids.label,input:n==null?void 0:n.ids.control},dir:t,disabled:n==null?void 0:n.disabled,invalid:n==null?void 0:n.invalid,readOnly:n==null?void 0:n.readOnly,required:n==null?void 0:n.required,getRootNode:r,open:e.defaultOpen,"open.controlled":e.open!==void 0,value:e.defaultValue,...e},i={...o,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onValueChangeEnd:q(e.onValueChangeEnd)},[s,a]=xe(Kw(o),{context:i});return Gw(s,a,we)},Dg=f.forwardRef((e,r)=>{const[t,n]=st(e),[o,i]=D()(n,["closeOnSelect","defaultOpen","defaultValue","disabled","format","id","ids","initialFocusEl","invalid","name","name","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","open","openAutoFocus","positioning","readOnly","required","value"]),s=Lx(o),a=Xe(E({present:s.open},t)),l=E(s.getRootProps(),i);return p.jsx(bg,{value:s,children:p.jsx(at,{value:a,children:p.jsx(I.div,{...l,ref:r})})})});Dg.displayName="ColorPickerRoot";const Vg=f.forwardRef((e,r)=>{const[t,n]=st(e),[{value:o},i]=D()(n,["value"]),s=Xe(E({present:o.open},t)),a=E(o.getRootProps(),i);return p.jsx(bg,{value:o,children:p.jsx(at,{value:s,children:p.jsx(I.div,{...a,ref:r})})})});Vg.displayName="ColorPickerRootProvider";const[Mg,Fx]=U({name:"ColorPickerSwatchContext",hookName:"useColorPickerSwatchContext",providerName:"<ColorPickerSwatchProvider />"}),jg=f.forwardRef((e,r)=>{const[t,n]=D()(e,["respectAlpha","value"]),o=ve(),i=E(o.getSwatchProps(t),n);return p.jsx(Mg,{value:t,children:p.jsx(I.div,{...i,ref:r})})});jg.displayName="ColorPickerSwatch";const _g=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getSwatchGroupProps(),e);return p.jsx(I.div,{...n,ref:r})});_g.displayName="ColorPickerSwatchGroup";const Bg=f.forwardRef((e,r)=>{const t=ve(),n=Fx(),o=E(t.getSwatchIndicatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});Bg.displayName="ColorPickerSwatchIndicator";const Hg=f.forwardRef((e,r)=>{const[t,n]=D()(e,["value","disabled"]),o=ve(),i=E(o.getSwatchTriggerProps(t),n);return p.jsx(I.button,{...i,ref:r})});Hg.displayName="ColorPickerSwatchTrigger";const Gg=f.forwardRef((e,r)=>{const[t,n]=D()(e,["size"]),o=ve(),i=E(o.getTransparencyGridProps(t),n);return p.jsx(I.div,{...i,ref:r})});Gg.displayName="ColorPickerTransparencyGrid";const Ug=f.forwardRef((e,r)=>{const t=ve(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Ug.displayName="ColorPickerTrigger";const Wg=f.forwardRef((e,r)=>{const[{respectAlpha:t},n]=D()(e,["respectAlpha"]),o=ve(),i={respectAlpha:t,value:o.valueAsString},s=E(o.getSwatchProps(i),n);return p.jsx(Mg,{value:i,children:p.jsx(I.div,{...s,ref:r})})});Wg.displayName="ColorPickerValueSwatch";const zg=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=ve(),i=E(o.getValueTextProps(),n);return p.jsx(I.span,{...i,ref:r,children:e.children||o.valueAsString})});zg.displayName="ColorPickerValueText";const Dx=Bp.extendWith("view"),Kg=f.forwardRef((e,r)=>{const t=ve(),[n,o]=D()(e,["format"]);return t.format!==n.format?null:p.jsx(Nx,{value:n,children:p.jsx(I.div,{ref:r,"data-format":e.format,...Dx.build().view.attrs,...o})})});Kg.displayName="ColorPickerView";var Vx=Object.defineProperty,Mx=(e,r,t)=>r in e?Vx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,jx=(e,r,t)=>Mx(e,r+"",t),Li={itemToValue(e){return typeof e=="string"?e:zr(e)&&mo(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:zr(e)&&mo(e,"label")?e.label:Li.itemToValue(e)},isItemDisabled(e){return zr(e)&&mo(e,"disabled")?!!e.disabled:!1}},qg=class{constructor(e){this.options=e,jx(this,"items"),this.items=[...e.items]}isEqual(e){return ye(this.items,e.items)}setItems(e){this.items=Array.from(e)}getValues(e=this.items){return Array.from(e).map(r=>this.getItemValue(r)).filter(Boolean)}find(e){if(e==null)return null;const r=this.items.findIndex(t=>this.getItemValue(t)===e);return r!=null?this.items[r]:null}findMany(e){return Array.from(e).map(r=>this.find(r)).filter(Boolean)}at(e){return this.items[e]??null}sortFn(e,r){const t=this.indexOf(e),n=this.indexOf(r);return(t??0)-(n??0)}sort(e){return[...e].sort(this.sortFn.bind(this))}getItemValue(e){var r,t;return e==null?null:((t=(r=this.options).itemToValue)==null?void 0:t.call(r,e))??Li.itemToValue(e)}getItemDisabled(e){var r,t;return e==null?!1:((t=(r=this.options).isItemDisabled)==null?void 0:t.call(r,e))??Li.isItemDisabled(e)}stringifyItem(e){var r,t;return e==null?null:((t=(r=this.options).itemToString)==null?void 0:t.call(r,e))??Li.itemToString(e)}stringify(e){return e==null?null:this.stringifyItem(this.find(e))}stringifyItems(e,r=", "){return Array.from(e).map(t=>this.stringifyItem(t)).filter(Boolean).join(r)}stringifyMany(e,r){return this.stringifyItems(this.findMany(e),r)}has(e){return this.indexOf(e)!==-1}hasItem(e){return e==null?!1:this.has(this.getItemValue(e))}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}getNextValue(e,r=1,t=!1){let n=this.indexOf(e);if(n===-1)return null;for(n=t?Math.min(n+r,this.size-1):n+r;n<=this.size&&this.getItemDisabled(this.at(n));)n++;return this.getItemValue(this.at(n))}getPreviousValue(e,r=1,t=!1){let n=this.indexOf(e);if(n===-1)return null;for(n=t?Math.max(n-r,0):n-r;n>=0&&this.getItemDisabled(this.at(n));)n--;return this.getItemValue(this.at(n))}indexOf(e){return e==null?-1:this.items.findIndex(r=>this.getItemValue(r)===e)}getByText(e,r){let t=r!=null?Bx(this.items,this.indexOf(r)):this.items;return e.length===1&&(t=t.filter(o=>this.getItemValue(o)!==r)),t.find(o=>_x(this.stringifyItem(o),e))}search(e,r){const{state:t,currentValue:n,timeout:o=350}=r,i=t.keysSoFar+e,a=i.length>1&&Array.from(i).every(u=>u===i[0])?i[0]:i,l=this.getByText(a,n),c=this.getItemValue(l);function d(){clearTimeout(t.timer),t.timer=-1}function g(u){t.keysSoFar=u,d(),u!==""&&(t.timer=+setTimeout(()=>{g(""),d()},o))}return g(i),c}*[Symbol.iterator](){yield*this.items}insertBefore(e,r){const t=this.indexOf(e);t!==-1&&this.items.splice(t,0,r)}insertAfter(e,r){const t=this.indexOf(e);t!==-1&&this.items.splice(t+1,0,r)}reorder(e,r){if(e===-1||r===-1||e===r)return;const[t]=this.items.splice(e,1);this.items.splice(r,0,t)}json(){return{size:this.size,first:this.firstValue,last:this.lastValue}}},_x=(e,r)=>!!(e!=null&&e.toLowerCase().startsWith(r.toLowerCase())),Bx=(e,r)=>e.map((t,n)=>e[(Math.max(r,0)+n)%e.length]),gn=new WeakMap,di=new WeakMap,ui={},Xs=0,Yg=e=>e&&(e.host||Yg(e.parentNode)),Hx=(e,r)=>r.map(t=>{if(e.contains(t))return t;const n=Yg(t);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",t,"in not contained inside",e,". Doing nothing"),null)}).filter(t=>!!t),Gx=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Ux=(e,r)=>{const{parentNode:t,markerName:n,controlAttribute:o,explicitBooleanValue:i}=r,s=Hx(t,Array.isArray(e)?e:[e]);ui[n]||(ui[n]=new WeakMap);const a=ui[n],l=[],c=new Set,d=new Set(s),g=h=>{!h||c.has(h)||(c.add(h),g(h.parentNode))};s.forEach(g);const u=h=>{!h||d.has(h)||Array.prototype.forEach.call(h.children,v=>{if(c.has(v))u(v);else try{if(Gx(v))return;const m=v.getAttribute(o),b=i?m==="true":m!==null&&m!=="false",y=(gn.get(v)||0)+1,P=(a.get(v)||0)+1;gn.set(v,y),a.set(v,P),l.push(v),y===1&&b&&di.set(v,!0),P===1&&v.setAttribute(n,""),b||v.setAttribute(o,i?"true":"")}catch(m){console.error("[zag-js > ariaHidden] cannot operate on ",v,m)}})};return u(t),c.clear(),Xs++,()=>{l.forEach(h=>{const v=gn.get(h)-1,m=a.get(h)-1;gn.set(h,v),a.set(h,m),v||(di.has(h)||h.removeAttribute(o),di.delete(h)),m||h.removeAttribute(n)}),Xs--,Xs||(gn=new WeakMap,gn=new WeakMap,di=new WeakMap,ui={})}},Wx=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,zx=(e,r=Wx(e),t="data-aria-hidden")=>{if(r)return Ux(e,{parentNode:r,markerName:t,controlAttribute:"aria-hidden",explicitBooleanValue:!0})},Kx=e=>{const r=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(r)};function Xg(e,r={}){const{defer:t=!0}=r,n=t?Kx:i=>i(),o=[];return o.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(zx(s))})),()=>{o.forEach(i=>i==null?void 0:i())}}const[Zg,nr]=U({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),Fl=f.forwardRef((e,r)=>{const t=nr(),n=wl(),o=Xe({...n,present:t.open}),i=E(t.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:p.jsx(I.div,{...i,ref:mt(o.ref,r)})});Fl.displayName="DialogBackdrop";const Dl=f.forwardRef((e,r)=>{const t=nr(),n=E(t.getCloseTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Dl.displayName="DialogCloseTrigger";const Vl=f.forwardRef((e,r)=>{const t=nr(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});Vl.displayName="DialogContent";const Jg=e=>e.children(nr()),Ml=f.forwardRef((e,r)=>{const t=nr(),n=E(t.getDescriptionProps(),e);return p.jsx(I.div,{...n,ref:r})});Ml.displayName="DialogDescription";const jl=f.forwardRef((e,r)=>{const t=nr(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});jl.displayName="DialogPositioner";var qx=Object.defineProperty,Yx=(e,r,t)=>r in e?qx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ne=(e,r,t)=>Yx(e,typeof r!="symbol"?r+"":r,t),bd={activateTrap(e,r){if(e.length>0){const n=e[e.length-1];n!==r&&n.pause()}const t=e.indexOf(r);t===-1||e.splice(t,1),e.push(r)},deactivateTrap(e,r){const t=e.indexOf(r);t!==-1&&e.splice(t,1),e.length>0&&e[e.length-1].unpause()}},Xx=[],Zx=class{constructor(e,r){Ne(this,"trapStack"),Ne(this,"config"),Ne(this,"doc"),Ne(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Ne(this,"listenerCleanups",[]),Ne(this,"handleFocus",n=>{const o=He(n),i=this.findContainerIndex(o,n)>=0;if(i||Wa(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(qn(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const d=c.findIndex(g=>g===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1<c.length&&(s=c[d+1],a=!1):d-1>=0&&(s=c[d-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>qn(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),Ne(this,"handlePointerDown",n=>{const o=He(n);if(!(this.findContainerIndex(o,n)>=0)){if(eo(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}eo(this.config.allowOutsideClick,n)||n.preventDefault()}}),Ne(this,"handleClick",n=>{const o=He(n);this.findContainerIndex(o,n)>=0||eo(this.config.clickOutsideDeactivates,n)||eo(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),Ne(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;Qn(n)&&n.preventDefault(),this.tryFocus(i)}}),Ne(this,"handleEscapeKey",n=>{Jx(n)&&eo(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),Ne(this,"_mutationObserver"),Ne(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),Ne(this,"updateObservedNodes",()=>{var n;(n=this._mutationObserver)==null||n.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),Ne(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!xr(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),Ne(this,"tryFocus",n=>{if(n!==!1&&n!==Ou(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,Qx(n)&&n.select()}}),Ne(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),bd.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{yd(()=>{if(l){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}s==null||s()})};if(l&&a){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(d).then(c,c),this}return c(),this}),Ne(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),Ne(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),Ne(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Ne(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),Ne(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),Ne(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[n];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),Ne(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,s=n.target||He(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let d=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>s===g);if(d<0&&((c==null?void 0:c.container)===s||xr(s)&&!Tr(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(d=l),d>=0){const g=d===0?this.state.tabbableGroups.length-1:d-1,u=this.state.tabbableGroups[g];a=qn(s)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else Qn(o)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>s===g);if(d<0&&((c==null?void 0:c.container)===s||xr(s)&&!Tr(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(d=l),d>=0){const g=d===this.state.tabbableGroups.length-1?0:d+1,u=this.state.tabbableGroups[g];a=qn(s)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else Qn(o)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=r.trapStack||Xx;const t={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return Qn(n)&&!n.shiftKey},isKeyBackward(n){return Qn(n)&&n.shiftKey},...r};this.doc=t.document||it(Array.isArray(e)?e[0]:e),this.config=t,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,r){const t=typeof(r==null?void 0:r.composedPath)=="function"?r.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||(t==null?void 0:t.includes(n))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const r=Mo(e),t=as(e),n=r.length>0?r[0]:void 0,o=r.length>0?r[r.length-1]:void 0,i=t.find(c=>Tr(c)),s=t.slice().reverse().find(c=>Tr(c)),a=!!r.find(c=>qn(c)>0);function l(c,d=!0){const g=r.indexOf(c);return g<0?d?t.slice(t.indexOf(c)+1).find(u=>Tr(u)):t.slice(0,t.indexOf(c)).reverse().find(u=>Tr(u)):r[g+(d?1:-1)]}return{container:e,tabbableNodes:r,focusableNodes:t,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return bd.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?yd(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ie(this.doc,"focusin",this.handleFocus,!0),ie(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const r=this.getOption(e,"onActivate"),t=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,r==null||r();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),t==null||t()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Qn=e=>e.key==="Tab",eo=(e,...r)=>typeof e=="function"?e(...r):e,Jx=e=>!e.isComposing&&e.key==="Escape",yd=e=>setTimeout(e,0),Qx=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Qg(e,r={}){let t;const n=G(()=>{const o=typeof e=="function"?e():e;if(o){t=new Zx(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...r,document:it(o)});try{t.activate()}catch{}}});return function(){t==null||t.deactivate(),n()}}var Zs="data-scroll-lock";function Pd(e,r){if(!e)return;const t=Object.keys(r).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,r),()=>{Object.assign(e.style,t)}}function eS(e,r,t){if(!e)return;const n=e.style.getPropertyValue(r);return e.style.setProperty(r,t),()=>{n?e.style.setProperty(r,n):e.style.removeProperty(r)}}function tS(e){const r=e.getBoundingClientRect().left;return Math.round(r)+e.scrollLeft?"paddingLeft":"paddingRight"}function ef(e){const r=e??document,t=r.defaultView??window,{documentElement:n,body:o}=r;if(o.hasAttribute(Zs))return;o.setAttribute(Zs,"");const s=t.innerWidth-n.clientWidth,a=()=>eS(n,"--scrollbar-width",`${s}px`),l=tS(n),c=()=>Pd(o,{overflow:"hidden",[l]:`${s}px`}),d=()=>{const{scrollX:u,scrollY:h,visualViewport:v}=t,m=(v==null?void 0:v.offsetLeft)??0,b=(v==null?void 0:v.offsetTop)??0,y=Pd(o,{position:"fixed",overflow:"hidden",top:`${-(h-Math.floor(b))}px`,left:`${-(u-Math.floor(m))}px`,right:"0",[l]:`${s}px`});return()=>{y==null||y(),t.scrollTo({left:u,top:h,behavior:"instant"})}},g=[a(),Ya()?d():c()];return()=>{g.forEach(u=>u==null?void 0:u()),o.removeAttribute(Zs)}}var rS=fe("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Mr=rS.build(),oe=ke({getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`dialog:${e.id}:positioner`},getBackdropId:e=>{var r;return((r=e.ids)==null?void 0:r.backdrop)??`dialog:${e.id}:backdrop`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`dialog:${e.id}:content`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`dialog:${e.id}:trigger`},getTitleId:e=>{var r;return((r=e.ids)==null?void 0:r.title)??`dialog:${e.id}:title`},getDescriptionId:e=>{var r;return((r=e.ids)==null?void 0:r.description)??`dialog:${e.id}:description`},getCloseTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.closeTrigger)??`dialog:${e.id}:close`},getContentEl:e=>oe.getById(e,oe.getContentId(e)),getPositionerEl:e=>oe.getById(e,oe.getPositionerId(e)),getBackdropEl:e=>oe.getById(e,oe.getBackdropId(e)),getTriggerEl:e=>oe.getById(e,oe.getTriggerId(e)),getTitleEl:e=>oe.getById(e,oe.getTitleId(e)),getDescriptionEl:e=>oe.getById(e,oe.getDescriptionId(e)),getCloseTriggerEl:e=>oe.getById(e,oe.getCloseTriggerId(e))});function nS(e,r,t){const n=e.context["aria-label"],o=e.matches("open"),i=e.context.renderedElements;return{open:o,setOpen(s){s!==o&&r(s?"OPEN":"CLOSE")},getTriggerProps(){return t.button({...Mr.trigger.attrs,dir:e.context.dir,id:oe.getTriggerId(e.context),"aria-haspopup":"dialog",type:"button","aria-expanded":o,"data-state":o?"open":"closed","aria-controls":oe.getContentId(e.context),onClick(s){s.defaultPrevented||r("TOGGLE")}})},getBackdropProps(){return t.element({...Mr.backdrop.attrs,dir:e.context.dir,hidden:!o,id:oe.getBackdropId(e.context),"data-state":o?"open":"closed"})},getPositionerProps(){return t.element({...Mr.positioner.attrs,dir:e.context.dir,id:oe.getPositionerId(e.context),style:{pointerEvents:o?void 0:"none"}})},getContentProps(){return t.element({...Mr.content.attrs,dir:e.context.dir,role:e.context.role,hidden:!o,id:oe.getContentId(e.context),tabIndex:-1,"data-state":o?"open":"closed","aria-modal":!0,"aria-label":n||void 0,"aria-labelledby":n||!i.title?void 0:oe.getTitleId(e.context),"aria-describedby":i.description?oe.getDescriptionId(e.context):void 0})},getTitleProps(){return t.element({...Mr.title.attrs,dir:e.context.dir,id:oe.getTitleId(e.context)})},getDescriptionProps(){return t.element({...Mr.description.attrs,dir:e.context.dir,id:oe.getDescriptionId(e.context)})},getCloseTriggerProps(){return t.button({...Mr.closeTrigger.attrs,dir:e.context.dir,id:oe.getCloseTriggerId(e.context),type:"button",onClick(s){s.defaultPrevented||(s.stopPropagation(),r("CLOSE"))}})}}}function oS(e){const r=he(e);return Ce({id:"dialog",initial:r.open?"open":"closed",context:{role:"dialog",renderedElements:{title:!0,description:!0},modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!0,closeOnEscape:!0,restoreFocus:!0,...r},created:["setAlertDialogProps"],watch:{open:["toggleVisibility"]},states:{open:{entry:["checkRenderedElements","syncZIndex"],activities:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}}},{guards:{isOpenControlled:t=>!!t["open.controlled"]},activities:{trackDismissableElement(t,n,{send:o}){return Dn(()=>oe.getContentEl(t),{defer:!0,pointerBlocking:t.modal,exclude:[oe.getTriggerEl(t)],onInteractOutside(s){var a;(a=t.onInteractOutside)==null||a.call(t,s),t.closeOnInteractOutside||s.preventDefault()},persistentElements:t.persistentElements,onFocusOutside:t.onFocusOutside,onPointerDownOutside:t.onPointerDownOutside,onEscapeKeyDown(s){var a;(a=t.onEscapeKeyDown)==null||a.call(t,s),t.closeOnEscape||s.preventDefault()},onDismiss(){o({type:"CLOSE",src:"interact-outside"})}})},preventScroll(t){if(t.preventScroll)return ef(oe.getDoc(t))},trapFocus(t){return!t.trapFocus||!t.modal?void 0:Qg(()=>oe.getContentEl(t),{preventScroll:!0,returnFocusOnDeactivate:!!t.restoreFocus,initialFocus:t.initialFocusEl,setReturnFocus:o=>{var i;return((i=t.finalFocusEl)==null?void 0:i.call(t))??o}})},hideContentBelow(t){return t.modal?Xg(()=>[oe.getContentEl(t)],{defer:!0}):void 0}},actions:{setAlertDialogProps(t){t.role==="alertdialog"&&(t.initialFocusEl||(t.initialFocusEl=()=>oe.getCloseTriggerEl(t)),t.closeOnInteractOutside=!1)},checkRenderedElements(t){G(()=>{t.renderedElements.title=!!oe.getTitleEl(t),t.renderedElements.description=!!oe.getDescriptionEl(t)})},syncZIndex(t){G(()=>{const n=oe.getContentEl(t);if(!n)return;const o=wo(n);[oe.getPositionerEl(t),oe.getBackdropEl(t)].forEach(s=>{s==null||s.style.setProperty("--z-index",o.zIndex)})})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},toggleVisibility(t,n,{send:o}){o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}})}ee()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","open.controlled","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const iS=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),getRootNode:r,dir:t,open:e.defaultOpen,"open.controlled":e.open!==void 0,...e},o={...n,open:e.open,onOpenChange:q(e.onOpenChange,{sync:!0}),onEscapeKeyDown:q(e.onEscapeKeyDown),onInteractOutside:q(e.onInteractOutside)},[i,s]=xe(oS(n),{context:o});return nS(i,s,we)},tf=e=>{const[r,{children:t,...n}]=st(e),[o]=Mn(r),i=iS(n),s=Xe(E({present:i.open},r));return p.jsx(Zg,{value:i,children:p.jsx(Vn,{value:o,children:p.jsx(at,{value:s,children:t})})})},rf=e=>{const[r,{value:t,children:n}]=st(e),[o]=Mn(r),i=Xe(E({present:t.open},r));return p.jsx(Zg,{value:t,children:p.jsx(Vn,{value:o,children:p.jsx(at,{value:i,children:n})})})},_l=f.forwardRef((e,r)=>{const t=nr(),n=E(t.getTitleProps(),e);return p.jsx(I.h2,{...n,ref:r})});_l.displayName="DialogTitle";const Bl=f.forwardRef((e,r)=>{const t=nr(),n=Ze(),o=E({...t.getTriggerProps(),"aria-controls":n.unmounted?void 0:t.getTriggerProps()["aria-controls"]},e);return p.jsx(I.button,{...o,ref:r})});Bl.displayName="DialogTrigger";const[nf,vr]=U({name:"EditableContext",hookName:"useEditableContext",providerName:"<EditableProvider />"}),of=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getAreaProps(),e);return p.jsx(I.div,{...n,ref:r})});of.displayName="EditableArea";const sf=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getCancelTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});sf.displayName="EditableCancelTrigger";const sS=e=>e.children(vr()),af=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});af.displayName="EditableControl";const lf=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getEditTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});lf.displayName="EditableEditTrigger";const cf=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});cf.displayName="EditableInput";const df=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getPreviewProps(),e);return p.jsx(I.span,{...n,ref:r})});df.displayName="EditablePreview";var aS=fe("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control"),lr=aS.build(),ge=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`editable:${e.id}`},getAreaId:e=>{var r;return((r=e.ids)==null?void 0:r.area)??`editable:${e.id}:area`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`editable:${e.id}:label`},getPreviewId:e=>{var r;return((r=e.ids)==null?void 0:r.preview)??`editable:${e.id}:preview`},getInputId:e=>{var r;return((r=e.ids)==null?void 0:r.input)??`editable:${e.id}:input`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`editable:${e.id}:control`},getSubmitTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.submitTrigger)??`editable:${e.id}:submit`},getCancelTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.cancelTrigger)??`editable:${e.id}:cancel`},getEditTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.editTrigger)??`editable:${e.id}:edit`},getInputEl:e=>ge.getById(e,ge.getInputId(e)),getPreviewEl:e=>ge.getById(e,ge.getPreviewId(e)),getSubmitTriggerEl:e=>ge.getById(e,ge.getSubmitTriggerId(e)),getCancelTriggerEl:e=>ge.getById(e,ge.getCancelTriggerId(e)),getEditTriggerEl:e=>ge.getById(e,ge.getEditTriggerId(e))});function lS(e,r,t){const n=e.context.disabled,o=e.context.isInteractive,i=e.context.readOnly,s=e.context.invalid,a=e.context.autoResize,l=e.context.translations,c=e.matches("edit"),d=e.context.placeholder,g=typeof d=="string"?{edit:d,preview:d}:d,u=e.context.value,h=u.trim()==="",v=h?(g==null?void 0:g.preview)??"":u;return{editing:c,empty:h,value:u,valueText:v,setValue(m){r({type:"VALUE.SET",value:m,src:"setValue"})},clearValue(){r({type:"VALUE.SET",value:"",src:"clearValue"})},edit(){o&&r("EDIT")},cancel(){o&&r("CANCEL")},submit(){o&&r("SUBMIT")},getRootProps(){return t.element({...lr.root.attrs,id:ge.getRootId(e.context),dir:e.context.dir})},getAreaProps(){return t.element({...lr.area.attrs,id:ge.getAreaId(e.context),dir:e.context.dir,style:a?{display:"inline-grid"}:void 0,"data-focus":T(c),"data-disabled":T(n),"data-placeholder-shown":T(h)})},getLabelProps(){return t.label({...lr.label.attrs,id:ge.getLabelId(e.context),dir:e.context.dir,htmlFor:ge.getInputId(e.context),"data-focus":T(c),"data-invalid":T(s),onClick(){if(c)return;const m=ge.getPreviewEl(e.context);m==null||m.focus({preventScroll:!0})}})},getInputProps(){return t.input({...lr.input.attrs,dir:e.context.dir,"aria-label":l.input,name:e.context.name,form:e.context.form,id:ge.getInputId(e.context),hidden:a?void 0:!c,placeholder:g==null?void 0:g.edit,maxLength:e.context.maxLength,required:e.context.required,disabled:n,"data-disabled":T(n),readOnly:i,"data-readonly":T(i),"aria-invalid":Yt(s),"data-invalid":T(s),"data-autoresize":T(a),defaultValue:u,size:a?1:void 0,onChange(m){r({type:"VALUE.SET",src:"input.change",value:m.currentTarget.value})},onKeyDown(m){if(m.defaultPrevented||Vo(m))return;const y={Escape(){r("CANCEL"),m.preventDefault()},Enter(P){if(!e.context.submitOnEnter)return;const{localName:C}=P.currentTarget;if(C==="textarea"){if(!(qa()?P.metaKey:P.ctrlKey))return;r({type:"SUBMIT",src:"keydown.enter"});return}C==="input"&&!P.shiftKey&&!P.metaKey&&(r({type:"SUBMIT",src:"keydown.enter"}),P.preventDefault())}}[m.key];y&&y(m)},style:a?{gridArea:"1 / 1 / auto / auto",visibility:c?void 0:"hidden"}:void 0})},getPreviewProps(){return t.element({id:ge.getPreviewId(e.context),...lr.preview.attrs,dir:e.context.dir,"data-placeholder-shown":T(h),"aria-readonly":Yt(i),"data-readonly":T(n),"data-disabled":T(n),"aria-disabled":Yt(n),"aria-invalid":Yt(s),"data-invalid":T(s),"aria-label":l.edit,"data-autoresize":T(a),children:v,hidden:a?void 0:c,tabIndex:o?0:void 0,onClick(){o&&e.context.activationMode==="click"&&r({type:"EDIT",src:"click"})},onFocus(){o&&e.context.activationMode==="focus"&&r({type:"EDIT",src:"focus"})},onDoubleClick(m){m.defaultPrevented||o&&e.context.activationMode==="dblclick"&&r({type:"EDIT",src:"dblclick"})},style:a?{whiteSpace:"pre",userSelect:"none",gridArea:"1 / 1 / auto / auto",visibility:c?"hidden":void 0,overflow:"hidden",textOverflow:"ellipsis"}:void 0})},getEditTriggerProps(){return t.button({...lr.editTrigger.attrs,id:ge.getEditTriggerId(e.context),dir:e.context.dir,"aria-label":l.edit,hidden:c,type:"button",disabled:n,onClick(m){m.defaultPrevented||o&&r({type:"EDIT",src:"edit.click"})}})},getControlProps(){return t.element({id:ge.getControlId(e.context),...lr.control.attrs,dir:e.context.dir})},getSubmitTriggerProps(){return t.button({...lr.submitTrigger.attrs,dir:e.context.dir,id:ge.getSubmitTriggerId(e.context),"aria-label":l.submit,hidden:!c,disabled:n,type:"button",onClick(m){m.defaultPrevented||o&&r({type:"SUBMIT",src:"submit.click"})}})},getCancelTriggerProps(){return t.button({...lr.cancelTrigger.attrs,dir:e.context.dir,"aria-label":l.cancel,id:ge.getCancelTriggerId(e.context),hidden:!c,type:"button",disabled:n,onClick(m){m.defaultPrevented||o&&r({type:"CANCEL",src:"cancel.click"})}})}}}var cS=e=>["both","enter"].includes(e.submitMode),Cd=e=>["both","blur"].includes(e.submitMode);function dS(e){const r=he(e);return Ce({id:"editable",initial:r.edit?"edit":"preview",entry:r.edit?["focusInput"]:void 0,context:{activationMode:"focus",submitMode:"both",value:"",previousValue:"",selectOnFocus:!0,disabled:!1,readOnly:!1,...r,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...r.translations}},watch:{value:["syncInputValue"],edit:["toggleEditing"]},computed:{submitOnEnter:cS,submitOnBlur:Cd,isInteractive:t=>!(t.disabled||t.readOnly)},on:{"VALUE.SET":{actions:"setValue"}},states:{preview:{entry:["blurInputIfNeeded"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{activities:["trackInteractOutside"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}}},{guards:{isEditControlled:t=>!!t["edit.controlled"],isSubmitEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="SUBMIT"}},activities:{trackInteractOutside(t,n,{send:o}){return _p(ge.getInputEl(t),{exclude(i){return[ge.getCancelTriggerEl(t),ge.getSubmitTriggerEl(t)].some(a=>kt(a,i))},onFocusOutside:t.onFocusOutside,onPointerDownOutside:t.onPointerDownOutside,onInteractOutside(i){var a;if((a=t.onInteractOutside)==null||a.call(t,i),i.defaultPrevented)return;const{focusable:s}=i.detail;o({type:Cd(t)?"SUBMIT":"CANCEL",src:"interact-outside",focusable:s})}})}},actions:{restoreFocus(t,n){n.focusable||G(()=>{var i;const o=((i=t.finalFocusEl)==null?void 0:i.call(t))??ge.getEditTriggerEl(t);o==null||o.focus({preventScroll:!0})})},focusInput(t){G(()=>{const n=ge.getInputEl(t);n&&(t.selectOnFocus?n.select():n.focus({preventScroll:!0}))})},invokeOnCancel(t){var n;(n=t.onValueRevert)==null||n.call(t,{value:t.previousValue})},invokeOnSubmit(t){var n;(n=t.onValueCommit)==null||n.call(t,{value:t.value})},invokeOnEdit(t){var n;(n=t.onEditChange)==null||n.call(t,{edit:!0})},invokeOnPreview(t){var n;(n=t.onEditChange)==null||n.call(t,{edit:!1})},toggleEditing(t,n,{send:o}){o({type:t.edit?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:n})},syncInputValue(t){uf.value(t)},setValue(t,n){const o=t.maxLength!=null?n.value.slice(0,t.maxLength):n.value;Ed.value(t,o)},setPreviousValue(t){t.previousValue=t.value},revertValue(t){Ed.value(t,t.previousValue)},blurInputIfNeeded(t){var n;(n=ge.getInputEl(t))==null||n.blur()}}})}var uf={value:e=>{const r=ge.getInputEl(e);ge.setValue(r,e.value)}},uS={change(e){var r;(r=e.onValueChange)==null||r.call(e,{value:e.value}),uf.value(e)}},Ed={value(e,r){ye(e.value,r)||(e.value=r,uS.change(e))}};ee()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","edit.controlled","submitMode","translations","value"]);const pS=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n=Ve(),o={id:f.useId(),ids:{label:n==null?void 0:n.ids.label,input:n==null?void 0:n.ids.control},dir:t,disabled:n==null?void 0:n.disabled,invalid:n==null?void 0:n.invalid,readOnly:n==null?void 0:n.readOnly,required:n==null?void 0:n.required,getRootNode:r,edit:e.defaultEdit,value:e.defaultValue,"edit.controlled":e.edit!==void 0,...e},i={...o,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onEditChange:q(e.onEditChange),onValueCommit:q(e.onValueCommit),onValueRevert:q(e.onValueRevert)},[s,a]=xe(dS(o),{context:i});return lS(s,a,we)},pf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["activationMode","autoResize","defaultEdit","defaultValue","disabled","edit","finalFocusEl","form","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","submitMode","translations","value"]),o=pS(t),i=E(o.getRootProps(),n);return p.jsx(nf,{value:o,children:p.jsx(I.div,{...i,ref:r})})});pf.displayName="EditableRoot";const gf=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(nf,{value:t,children:p.jsx(I.div,{...o,ref:r})})});gf.displayName="EditableRootProvider";const ff=f.forwardRef((e,r)=>{const t=vr(),n=E(t.getSubmitTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});ff.displayName="EditableSubmitTrigger";const hf=f.forwardRef((e,r)=>{const t=Ve(),n=E(t.getErrorTextProps(),e);return t!=null&&t.invalid?p.jsx(I.span,{...n,ref:r}):null});hf.displayName="FieldErrorText";const mf=f.forwardRef((e,r)=>{const t=Ve(),n=E(t==null?void 0:t.getHelperTextProps(),e);return p.jsx(I.span,{...n,ref:r})});mf.displayName="FieldHelperText";const vf=f.forwardRef((e,r)=>{const t=Ve(),n=E(t==null?void 0:t.getInputProps(),e);return p.jsx(I.input,{...n,ref:r})});vf.displayName="FieldInput";const bf=f.forwardRef((e,r)=>{const t=Ve(),n=E(t==null?void 0:t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});bf.displayName="FieldLabel";const yf=typeof window<"u"?f.useLayoutEffect:f.useEffect,[gS,Bo]=U({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),fS=fe("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Pr=fS.build(),hS=e=>{const r=Bo(),{ids:t,disabled:n=!!(r!=null&&r.disabled),invalid:o=!1,readOnly:i=!1,required:s=!1}=e,a=f.useRef(!1),l=f.useRef(!1),c=e.id??f.useId(),d=f.useRef(null),g=(t==null?void 0:t.control)??`field::${c}`,u=(t==null?void 0:t.errorText)??`field::${c}::error-text`,h=(t==null?void 0:t.helperText)??`field::${c}::helper-text`,v=(t==null?void 0:t.label)??`field::${c}::label`;yf(()=>{const S=d.current;if(!S)return;const k=De(S),V=k.document,F=()=>{a.current=!!V.getElementById(u),l.current=!!V.getElementById(h)};F();const J=new k.MutationObserver(F);return J.observe(S,{childList:!0,subtree:!0}),()=>J.disconnect()},[u,h]);const m=f.useMemo(()=>{const S=[];return a.current&&o&&S.push(u),l.current&&S.push(h),S.join(" ")||void 0},[o,u,h]),b=f.useMemo(()=>()=>({...Pr.root.attrs,id:g,ref:d,role:"group","data-disabled":T(n),"data-invalid":T(o),"data-readonly":T(i)}),[n,o,i,g]),y=f.useMemo(()=>()=>({...Pr.label.attrs,id:v,"data-disabled":T(n),"data-invalid":T(o),"data-readonly":T(i),htmlFor:c}),[n,o,i,c,v]),P=f.useMemo(()=>()=>({"aria-describedby":m,"aria-invalid":Yt(o),"data-invalid":T(o),"data-required":T(s),"data-readonly":T(i),id:c,required:s,disabled:n,readOnly:i}),[m,o,s,i,c,n]),C=f.useMemo(()=>()=>({...P(),...Pr.input.attrs}),[P]),x=f.useMemo(()=>()=>({...P(),...Pr.textarea.attrs}),[P]),w=f.useMemo(()=>()=>({...P(),...Pr.select.attrs}),[P]),A=f.useMemo(()=>()=>({id:h,...Pr.helperText.attrs,"data-disabled":T(n)}),[n,h]),O=f.useMemo(()=>()=>({id:u,...Pr.errorText.attrs,"aria-live":"polite"}),[u]),R=f.useMemo(()=>()=>({"aria-hidden":!0,...Pr.requiredIndicator.attrs}),[]);return{ariaDescribedby:m,ids:{root:g,control:c,label:v,errorText:u,helperText:h},refs:{rootRef:d},disabled:n,invalid:o,readOnly:i,required:s,getLabelProps:y,getRootProps:b,getInputProps:C,getTextareaProps:x,getSelectProps:w,getHelperTextProps:A,getErrorTextProps:O,getRequiredIndicatorProps:R}},Pf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id","ids","disabled","invalid","readOnly","required"]),o=hS(t),i=E(o.getRootProps(),n);return p.jsx(yx,{value:o,children:p.jsx(I.div,{...i,ref:mt(r,o.refs.rootRef)})})});Pf.displayName="FieldRoot";var mS=e=>{var c;if(!e)return;const r=wo(e),t=De(e),n=it(e),o=()=>{e.style.height="auto";const d=parseInt(r.borderTopWidth,10),g=parseInt(r.borderBottomWidth,10);e.style.height=`${e.scrollHeight+d+g}px`};e.addEventListener("input",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),o()}});const a=new t.ResizeObserver(()=>o());a.observe(e);const l=new t.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(c=n.fonts)==null||c.addEventListener("loadingdone",o),()=>{var d;e.removeEventListener("input",o),(d=n.fonts)==null||d.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Cf=f.forwardRef((e,r)=>{const{autoresize:t,...n}=e,o=f.useRef(null),i=Ve(),s=E(i==null?void 0:i.getTextareaProps(),{style:{resize:t?"none":void 0}},n);return f.useEffect(()=>{if(t)return mS(o.current)},[t]),p.jsx(I.textarea,{...s,ref:mt(r,o)})});Cf.displayName="FieldTextarea";const vS=e=>e.children(Bo()),Ef=f.forwardRef((e,r)=>{const t=Bo(),n=E(t.getErrorTextProps(),e);return t.invalid?p.jsx(I.span,{...n,ref:r}):null});Ef.displayName="FieldsetErrorText";const If=f.forwardRef((e,r)=>{const t=Bo(),n=E(t.getHelperTextProps(),e);return p.jsx(I.span,{...n,ref:r})});If.displayName="FieldsetHelperText";const Tf=f.forwardRef((e,r)=>{const t=Bo(),n=E(t.getLegendProps(),e);return p.jsx(I.legend,{...n,ref:r})});Tf.displayName="FieldsetLegend";const bS=fe("fieldset").parts("root","errorText","helperText","legend"),pi=bS.build(),yS=e=>{const{disabled:r=!1,invalid:t=!1}=e,n=f.useRef(!1),o=f.useRef(!1),i=e.id??f.useId(),s=f.useRef(null),a=`fieldset::${i}::error-text`,l=`fieldset::${i}::helper-text`;yf(()=>{const v=s.current;if(!v)return;const m=De(v),b=m.document,y=()=>{n.current=!!b.getElementById(a),o.current=!!b.getElementById(l)};y();const P=new m.MutationObserver(y);return P.observe(v,{childList:!0,subtree:!0}),()=>P.disconnect()},[a,l]);const c=f.useMemo(()=>{const v=[];return n.current&&t&&v.push(a),o.current&&v.push(l),v.join(" ")||void 0},[t,a,l]),d=f.useMemo(()=>()=>({...pi.root.attrs,ref:s,disabled:r,"data-disabled":r?"true":void 0,"data-invalid":t?"true":void 0,"aria-describedby":c}),[r,t,c]),g=f.useMemo(()=>()=>({...pi.legend.attrs,"data-disabled":r?"true":void 0,"data-invalid":t?"true":void 0}),[r,t]),u=f.useMemo(()=>()=>({id:l,...pi.helperText.attrs}),[l]),h=f.useMemo(()=>()=>({id:a,...pi.errorText.attrs,"aria-live":"polite"}),[a]);return{refs:{rootRef:s},disabled:r,invalid:t,getRootProps:d,getLegendProps:g,getHelperTextProps:u,getErrorTextProps:h}},wf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id","disabled","invalid"]),o=yS(t),i=E(o.getRootProps(),n);return p.jsx(gS,{value:o,children:p.jsx(I.fieldset,{...i,ref:mt(r,o.refs.rootRef)})})});wf.displayName="FieldsetRoot";const[xf,lt]=U({name:"FileUploadContext",hookName:"useFileUploadContext",providerName:"<FileUploadProvider />"}),Sf=f.forwardRef((e,r)=>{const t=lt(),n=E(t.getClearTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Sf.displayName="FileUploadClearTrigger";const PS=e=>e.children(lt()),Rf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["disableClick"]),o=lt(),i=E(o.getDropzoneProps(t),n);return p.jsx(I.div,{...i,ref:r})});Rf.displayName="FileUploadDropzone";const Of=f.forwardRef((e,r)=>{const t=lt(),n=E(t.getHiddenInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});Of.displayName="FileUploadHiddenInput";const[CS,Ho]=U({name:"FileUploadItemPropsContext",hookName:"useFileUploadItemPropsContext",providerName:"<FileUploadItemPropsProvider />"}),kf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["file"]),o=lt(),i=E(o.getItemProps(t),n);return p.jsx(CS,{value:t,children:p.jsx(I.li,{...i,ref:r})})});kf.displayName="FileUploadItem";const Af=f.forwardRef((e,r)=>{const t=lt(),n=Ho(),o=E(t.getItemDeleteTriggerProps(n),e);return p.jsx(I.button,{...o,ref:r})});Af.displayName="FileUploadItemDeleteTrigger";const Nf=f.forwardRef((e,r)=>{const t=lt(),n=E(t.getItemGroupProps(),e);return p.jsx(I.ul,{...n,ref:r})});Nf.displayName="FileUploadItemGroup";const $f=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=lt(),i=Ho(),s=E(o.getItemNameProps(i),n);return p.jsx(I.div,{...s,ref:r,children:t||i.file.name})});$f.displayName="FileUploadItemName";const Lf=f.forwardRef((e,r)=>{const t=lt(),n=Ho(),o=E(t.getItemPreviewProps(n),e);return n.file.type.match(e.type??".*")?p.jsx(I.div,{...o,ref:r}):null});Lf.displayName="FileUploadItemPreview";const Ff=f.forwardRef((e,r)=>{const[t,n]=f.useState(""),o=lt(),i=Ho(),s=E(o.getItemPreviewImageProps({...i,url:t}),e);return f.useEffect(()=>o.createFileUrl(i.file,a=>n(a)),[i,o]),t?p.jsx(I.img,{...s,ref:r}):null});Ff.displayName="FileUploadItemPreviewImage";const Df=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=lt(),i=Ho(),s=E(o.getItemSizeTextProps(i),n);return p.jsx(I.div,{...s,ref:r,children:t||o.getFileSize(i.file)})});Df.displayName="FileUploadItemSizeText";const Vf=f.forwardRef((e,r)=>{const t=lt(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});Vf.displayName="FileUploadLabel";function ES(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function IS(e){return/^.*\.[\w]+$/.test(e)}var Id=e=>ES(e)||IS(e);function TS(e){if(e)return typeof e=="string"?e:Array.isArray(e)?e.filter(Id).join(","):Object.entries(e).reduce((r,[t,n])=>[...r,t,...n],[]).filter(Id).join(",")}var wS=(e,r)=>e.name===r.name&&e.size===r.size&&e.type===r.type,to=e=>e!=null;function xS(e,r,t){if(to(e.size))if(to(r)&&to(t)){if(e.size>t)return[!1,"FILE_TOO_LARGE"];if(e.size<r)return[!1,"FILE_TOO_SMALL"]}else{if(to(r)&&e.size<r)return[!1,"FILE_TOO_SMALL"];if(to(t)&&e.size>t)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}function SS(e,r){if(e&&r){const t=Array.isArray(r)?r:r.split(","),n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return t.some(s=>{const a=s.trim().toLowerCase();return a.charAt(0)==="."?n.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0}function RS(e,r){const t=e.type==="application/x-moz-file"||SS(e,r);return[t,t?null:"FILE_INVALID_TYPE"]}var OS=fe("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger"),wt=OS.build(),$e=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`file:${e.id}`},getDropzoneId:e=>{var r;return((r=e.ids)==null?void 0:r.dropzone)??`file:${e.id}:dropzone`},getHiddenInputId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenInput)??`file:${e.id}:input`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`file:${e.id}:trigger`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`file:${e.id}:label`},getItemId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.item)==null?void 0:n.call(t,r))??`file:${e.id}:item:${r}`},getItemNameId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemName)==null?void 0:n.call(t,r))??`file:${e.id}:item-name:${r}`},getItemSizeTextId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemSizeText)==null?void 0:n.call(t,r))??`file:${e.id}:item-size:${r}`},getItemPreviewId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemPreview)==null?void 0:n.call(t,r))??`file:${e.id}:item-preview:${r}`},getRootEl:e=>$e.getById(e,$e.getRootId(e)),getHiddenInputEl:e=>$e.getById(e,$e.getHiddenInputId(e)),getDropzoneEl:e=>$e.getById(e,$e.getDropzoneId(e))});function Td(e){const r=He(e);return e.dataTransfer?e.dataTransfer.types.some(t=>t==="Files"||t==="application/x-moz-file"):!!r&&"files"in r}function kS(e,r){return!e.multiple&&r>1?!1:!e.multiple&&r+e.acceptedFiles.length===2?!0:!(r+e.acceptedFiles.length>e.maxFiles)}function AS(e,r){const t=[],n=[];return r.forEach(o=>{var g;const[i,s]=RS(o,e.acceptAttr),[a,l]=xS(o,e.minFileSize,e.maxFileSize),c=(g=e.validate)==null?void 0:g.call(e,o,{acceptedFiles:e.acceptedFiles,rejectedFiles:e.rejectedFiles}),d=c?c.length===0:!0;if(i&&a&&d)t.push(o);else{const u=[s,l];d||u.push(...c??[]),n.push({file:o,errors:u.filter(Boolean)})}}),kS(e,t.length)||(t.forEach(o=>{n.push({file:o,errors:["TOO_MANY_FILES"]})}),t.splice(0)),{acceptedFiles:t,rejectedFiles:n}}function NS(e,r,t){const n=e.context.disabled,o=e.context.allowDrop,i=e.context.translations,s=e.matches("dragging"),a=e.matches("focused")&&!n;return{dragging:s,focused:a,disabled:!!n,openFilePicker(){n||r("OPEN")},deleteFile(l){r({type:"FILE.DELETE",file:l})},acceptedFiles:e.context.acceptedFiles,rejectedFiles:e.context.rejectedFiles,setFiles(l){const c=l.length;r({type:"FILES.SET",files:l,count:c})},clearRejectedFiles(){r({type:"REJECTED_FILES.CLEAR"})},clearFiles(){r({type:"FILES.CLEAR"})},getFileSize(l){return zu(l.size,e.context.locale)},createFileUrl(l,c){const d=$e.getWin(e.context),g=d.URL.createObjectURL(l);return c(g),()=>d.URL.revokeObjectURL(g)},setClipboardFiles(l){if(n)return!1;const d=Array.from((l==null?void 0:l.items)??[]).reduce((g,u)=>{if(u.kind!=="file")return g;const h=u.getAsFile();return h?[...g,h]:g},[]);return d.length?(r({type:"FILES.SET",files:d}),!0):!1},getRootProps(){return t.element({...wt.root.attrs,dir:e.context.dir,id:$e.getRootId(e.context),"data-disabled":T(n),"data-dragging":T(s)})},getDropzoneProps(l={}){return t.element({...wt.dropzone.attrs,dir:e.context.dir,id:$e.getDropzoneId(e.context),tabIndex:n||l.disableClick?void 0:0,role:l.disableClick?"application":"button","aria-label":i.dropzone,"aria-disabled":n,"data-invalid":T(e.context.invalid),"data-disabled":T(n),"data-dragging":T(s),onKeyDown(c){n||c.defaultPrevented||xo(c)&&(l.disableClick||c.key!=="Enter"&&c.key!==" "||r({type:"DROPZONE.CLICK",src:"keydown"}))},onClick(c){n||c.defaultPrevented||l.disableClick||xo(c)&&(c.currentTarget.localName==="label"&&c.preventDefault(),r("DROPZONE.CLICK"))},onDragOver(c){if(n||!o)return;c.preventDefault(),c.stopPropagation();try{c.dataTransfer.dropEffect="copy"}catch{}if(!Td(c))return;const g=c.dataTransfer.items.length;r({type:"DROPZONE.DRAG_OVER",count:g})},onDragLeave(c){n||o&&(kt(c.currentTarget,c.relatedTarget)||r({type:"DROPZONE.DRAG_LEAVE"}))},onDrop(c){if(n)return;o&&(c.preventDefault(),c.stopPropagation());const d=Td(c);n||!d||r({type:"DROPZONE.DROP",files:Array.from(c.dataTransfer.files)})},onFocus(){n||r("DROPZONE.FOCUS")},onBlur(){n||r("DROPZONE.BLUR")}})},getTriggerProps(){return t.button({...wt.trigger.attrs,dir:e.context.dir,id:$e.getTriggerId(e.context),disabled:n,"data-disabled":T(n),"data-invalid":T(e.context.invalid),type:"button",onClick(l){n||(kt($e.getDropzoneEl(e.context),l.currentTarget)&&l.stopPropagation(),r("OPEN"))}})},getHiddenInputProps(){return t.input({id:$e.getHiddenInputId(e.context),tabIndex:-1,disabled:n,type:"file",required:e.context.required,capture:e.context.capture,name:e.context.name,accept:e.context.acceptAttr,webkitdirectory:e.context.directory?"":void 0,multiple:e.context.multiple||e.context.maxFiles>1,onClick(l){l.stopPropagation(),l.currentTarget.value=""},onInput(l){if(n)return;const{files:c}=l.currentTarget;r({type:"FILES.SET",files:c?Array.from(c):[]})},style:Qr})},getItemGroupProps(){return t.element({...wt.itemGroup.attrs,dir:e.context.dir,"data-disabled":T(n)})},getItemProps(l){const{file:c}=l;return t.element({...wt.item.attrs,dir:e.context.dir,id:$e.getItemId(e.context,c.name),"data-disabled":T(n)})},getItemNameProps(l){const{file:c}=l;return t.element({...wt.itemName.attrs,dir:e.context.dir,id:$e.getItemNameId(e.context,c.name),"data-disabled":T(n)})},getItemSizeTextProps(l){const{file:c}=l;return t.element({...wt.itemSizeText.attrs,dir:e.context.dir,id:$e.getItemSizeTextId(e.context,c.name),"data-disabled":T(n)})},getItemPreviewProps(l){const{file:c}=l;return t.element({...wt.itemPreview.attrs,dir:e.context.dir,id:$e.getItemPreviewId(e.context,c.name),"data-disabled":T(n)})},getItemPreviewImageProps(l){var u;const{file:c,url:d}=l;if(!c.type.startsWith("image/"))throw new Error("Preview Image is only supported for image files");return t.img({...wt.itemPreviewImage.attrs,alt:(u=i.itemPreview)==null?void 0:u.call(i,c),src:d,"data-disabled":T(n)})},getItemDeleteTriggerProps(l){var d;const{file:c}=l;return t.button({...wt.itemDeleteTrigger.attrs,dir:e.context.dir,type:"button",disabled:n,"data-disabled":T(n),"aria-label":(d=i.deleteFile)==null?void 0:d.call(i,c),onClick(){n||r({type:"FILE.DELETE",file:c})}})},getLabelProps(){return t.label({...wt.label.attrs,dir:e.context.dir,id:$e.getLabelId(e.context),htmlFor:$e.getHiddenInputId(e.context),"data-disabled":T(n)})},getClearTriggerProps(){return t.button({...wt.clearTrigger.attrs,dir:e.context.dir,type:"button",disabled:n,hidden:e.context.acceptedFiles.length===0,"data-disabled":T(n),onClick(l){l.defaultPrevented||n||r({type:"FILES.CLEAR"})}})}}}function $S(e){const r=he(e);return Ce({id:"fileupload",initial:"idle",context:{minFileSize:0,maxFileSize:Number.POSITIVE_INFINITY,maxFiles:1,allowDrop:!0,accept:r.accept,preventDocumentDrop:!0,...r,acceptedFiles:Oe([]),rejectedFiles:Oe([]),translations:{dropzone:"dropzone",itemPreview:t=>`preview of ${t.name}`,deleteFile:t=>`delete file ${t.name}`,...r.translations}},computed:{acceptAttr:t=>TS(t.accept),multiple:t=>t.maxFiles>1},watch:{acceptedFiles:["syncInputElement"]},on:{"FILES.SET":{actions:["setFilesFromEvent"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},activities:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":"focused","DROPZONE.DRAG_OVER":"dragging"}},focused:{on:{"DROPZONE.BLUR":"idle",OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":"dragging"}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setFilesFromEvent"]},"DROPZONE.DRAG_LEAVE":"idle"}}}},{activities:{preventDocumentDrop(t){if(!t.preventDocumentDrop||!t.allowDrop||t.disabled)return;const n=$e.getDoc(t),o=s=>{s==null||s.preventDefault()},i=s=>{kt($e.getRootEl(t),He(s))||s.preventDefault()};return Ao(ie(n,"dragover",o,!1),ie(n,"drop",i,!1))}},actions:{syncInputElement(t){queueMicrotask(()=>{const n=$e.getHiddenInputEl(t);if(!n)return;const o=$e.getWin(t),i=new o.DataTransfer;t.acceptedFiles.forEach(s=>{i.items.add(s)}),n.files=i.files,n.dispatchEvent(new o.Event("change",{bubbles:!0}))})},openFilePicker(t){G(()=>{var n;(n=$e.getHiddenInputEl(t))==null||n.click()})},setFilesFromEvent(t,n){const o=AS(t,n.files),{acceptedFiles:i,rejectedFiles:s}=o;if(t.multiple){const a=Oe([...t.acceptedFiles,...i]);Js.files(t,a,s);return}if(i.length){const a=Oe([i[0]]);Js.files(t,a,s)}else s.length&&Js.files(t,t.acceptedFiles,s)},removeFile(t,n){const o=Array.from(t.acceptedFiles.filter(s=>s!==n.file)),i=Array.from(t.rejectedFiles.filter(s=>s.file!==n.file));t.acceptedFiles=Oe(o),t.rejectedFiles=Oe(i),xn.change(t)},clearRejectedFiles(t){t.rejectedFiles=Oe([]),xn.change(t)},clearFiles(t){t.acceptedFiles=Oe([]),t.rejectedFiles=Oe([]),xn.change(t)}},compareFns:{acceptedFiles:(t,n)=>t.length===n.length&&t.every((o,i)=>wS(o,n[i]))}})}var xn={change:e=>{var r;(r=e.onFileChange)==null||r.call(e,{acceptedFiles:e.acceptedFiles,rejectedFiles:e.rejectedFiles})},accept:e=>{var r;(r=e.onFileAccept)==null||r.call(e,{files:e.acceptedFiles})},reject:e=>{var r;(r=e.onFileReject)==null||r.call(e,{files:e.rejectedFiles})}},Js={files:(e,r,t)=>{e.acceptedFiles=Oe(r),xn.accept(e),t&&(e.rejectedFiles=Oe(t),xn.reject(e)),xn.change(e)}};ee()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","validate"]);ee()(["file"]);const LS=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n=Ve(),o={id:f.useId(),ids:{label:n==null?void 0:n.ids.label,hiddenInput:n==null?void 0:n.ids.control},dir:t,disabled:n==null?void 0:n.disabled,required:n==null?void 0:n.required,invalid:n==null?void 0:n.invalid,getRootNode:r,...e},i={...o,onFileAccept:q(e.onFileAccept),onFileReject:q(e.onFileReject),onFileChange:q(e.onFileChange,{sync:!0})},[s,a]=xe($S(o),{context:i});return NS(s,a,we)},Mf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["accept","allowDrop","capture","directory","disabled","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","translations","validate"]),o=LS(t),i=E(o.getRootProps(),n);return p.jsx(xf,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Mf.displayName="FileUploadRoot";const jf=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(xf,{value:t,children:p.jsx(I.div,{...o,ref:r})})});jf.displayName="FileUploadRootProvider";const _f=f.forwardRef((e,r)=>{const t=lt(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});_f.displayName="FileUploadTrigger";const FS=e=>typeof e=="function",DS=(e,...r)=>FS(e)?e(...r):e,VS=e=>{const{value:r,children:t}=e,[n,o]=f.useState(),i=f.useMemo(()=>()=>DS(r)??(n==null?void 0:n.ownerDocument)??document,[r,n]),s=f.useMemo(()=>({getRootNode:i,getWindow:()=>De(i()),getDocument:()=>it(i())}),[i]);return p.jsxs(nT,{value:s,children:[t,!r&&p.jsx("span",{hidden:!0,ref:o})]})};var Bf=(e,r)=>{const t=[],n=(o,i,s)=>{i-o>0&&t.push({start:o,end:i,match:s})};if(e.length===0)n(0,r,!1);else{let o=0;for(const i of e)n(o,i.start,!1),n(i.start,i.end,!0),o=i.end;n(o,r,!1)}return t};function MS(e){const{text:r,query:t,ignoreCase:n}=e,o=n?r.toLowerCase():r,i=n&&typeof t=="string"?t.toLowerCase():t,s=typeof o=="string"?o.indexOf(i):-1;if(s===-1)return[{text:r,match:!1}];const a=s+i.length;return Bf([{start:s,end:a}],r.length).map(c=>({text:r.slice(c.start,c.end),match:!!c.match}))}var jS=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,r=>`\\${r}`),_S=(e,r)=>{const t=e.filter(Boolean).map(n=>jS(n));return new RegExp(`(${t.join("|")})`,r)},BS=(e,r=!0)=>`${e?"i":""}${r?"g":""}`;function HS(e){const{text:r,query:t,ignoreCase:n,matchAll:o}=e;if(t.length===0)return[{text:r,match:!1}];const i=BS(n,o),s=_S(Array.isArray(t)?t:[t],i),a=[...r.matchAll(s)].map(l=>({start:l.index||0,end:(l.index||0)+l[0].length}));return Bf(a,e.text.length).map(l=>({text:e.text.slice(l.start,l.end),match:!!l.match}))}var GS=e=>{if(e.matchAll==null&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw new Error("matchAll must be true when using multiple queries");return e.matchAll?HS(e):MS(e)};const US=e=>f.useMemo(()=>GS(e),[e]),[Hf,jn]=U({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),Gf=f.forwardRef((e,r)=>{const t=jn(),n=E(t.getArrowProps(),e);return p.jsx(I.div,{...n,ref:r})});Gf.displayName="HoverCardArrow";const Uf=f.forwardRef((e,r)=>{const t=jn(),n=E(t.getArrowTipProps(),e);return p.jsx(I.div,{...n,ref:r})});Uf.displayName="HoverCardArrowTip";const Wf=f.forwardRef((e,r)=>{const t=jn(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});Wf.displayName="HoverCardContent";const WS=e=>e.children(jn()),zf=f.forwardRef((e,r)=>{const t=jn(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});zf.displayName="HoverCardPositioner";var zS=fe("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),ro=zS.build(),Qe=ke({getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`hover-card:${e.id}:trigger`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`hover-card:${e.id}:content`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`hover-card:${e.id}:popper`},getArrowId:e=>{var r;return((r=e.ids)==null?void 0:r.arrow)??`hover-card:${e.id}:arrow`},getTriggerEl:e=>Qe.getById(e,Qe.getTriggerId(e)),getContentEl:e=>Qe.getById(e,Qe.getContentId(e)),getPositionerEl:e=>Qe.getById(e,Qe.getPositionerId(e))});function KS(e,r,t){const n=e.hasTag("open"),o=Fn({...e.context.positioning,placement:e.context.currentPlacement});return{open:n,setOpen(i){i!==n&&r(i?"OPEN":"CLOSE")},reposition(i={}){r({type:"POSITIONING.SET",options:i})},getArrowProps(){return t.element({id:Qe.getArrowId(e.context),...ro.arrow.attrs,dir:e.context.dir,style:o.arrow})},getArrowTipProps(){return t.element({...ro.arrowTip.attrs,dir:e.context.dir,style:o.arrowTip})},getTriggerProps(){return t.element({...ro.trigger.attrs,dir:e.context.dir,"data-placement":e.context.currentPlacement,id:Qe.getTriggerId(e.context),"data-state":n?"open":"closed",onPointerEnter(i){i.pointerType!=="touch"&&r({type:"POINTER_ENTER",src:"trigger"})},onPointerLeave(i){i.pointerType!=="touch"&&r({type:"POINTER_LEAVE",src:"trigger"})},onFocus(){r("TRIGGER_FOCUS")},onBlur(){r("TRIGGER_BLUR")}})},getPositionerProps(){return t.element({id:Qe.getPositionerId(e.context),...ro.positioner.attrs,dir:e.context.dir,style:o.floating})},getContentProps(){return t.element({...ro.content.attrs,dir:e.context.dir,id:Qe.getContentId(e.context),hidden:!n,"data-state":n?"open":"closed","data-placement":e.context.currentPlacement,onPointerEnter(i){i.pointerType!=="touch"&&r({type:"POINTER_ENTER",src:"content"})},onPointerLeave(i){i.pointerType!=="touch"&&r({type:"POINTER_LEAVE",src:"content"})}})}}}var{not:gi,and:wd}=At;function qS(e){const r=he(e);return Ce({id:"hover-card",initial:r.open?"open":"closed",context:{openDelay:700,closeDelay:300,currentPlacement:void 0,...r,positioning:{placement:"bottom",...r.positioning}},watch:{open:["toggleVisibility"]},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":"open",POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:"opening",OPEN:"opening"}},opening:{tags:["closed"],after:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]},on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":"closed",POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:wd("isOpenControlled",gi("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:gi("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],activities:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":"closed",POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:"closing",CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:wd("isOpenControlled",gi("isPointer")),actions:["invokeOnClose"]},{guard:gi("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:"reposition"}}},closing:{tags:["open"],activities:["trackPositioning"],after:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]},on:{"CONTROLLED.CLOSE":"closed","CONTROLLED.OPEN":"open",POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}}},{delays:{OPEN_DELAY:t=>t.openDelay,CLOSE_DELAY:t=>t.closeDelay},guards:{isPointer:t=>!!t.isPointer,isOpenControlled:t=>!!t["open.controlled"]},activities:{trackPositioning(t){t.currentPlacement||(t.currentPlacement=t.positioning.placement);const n=()=>Qe.getPositionerEl(t);return Mt(Qe.getTriggerEl(t),n,{...t.positioning,defer:!0,onComplete(o){t.currentPlacement=o.placement}})},trackDismissableElement(t,n,{send:o}){return Dn(()=>Qe.getContentEl(t),{defer:!0,exclude:[Qe.getTriggerEl(t)],onDismiss(){o({type:"CLOSE",src:"interact-outside"})},onFocusOutside(s){s.preventDefault()}})}},actions:{invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},setIsPointer(t){t.isPointer=!0},clearIsPointer(t){t.isPointer=!1},reposition(t,n){const o=()=>Qe.getPositionerEl(t);Mt(Qe.getTriggerEl(t),o,{...t.positioning,...n.options,defer:!0,listeners:!1,onComplete(i){t.currentPlacement=i.placement}})},toggleVisibility(t,n,{send:o}){queueMicrotask(()=>{o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})})}}})}ee()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","open.controlled","open","openDelay","positioning"]);const YS=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,open:e.defaultOpen,"open.controlled":e.open!==void 0,...e},o={...n,open:e.open,onOpenChange:q(e.onOpenChange,{sync:!0})},[i,s]=xe(qS(n),{context:o});return KS(i,s,we)},XS=e=>{const[r,{children:t,...n}]=st(e),o=YS(n),i=Xe(E({present:o.open},r));return p.jsx(Hf,{value:o,children:p.jsx(at,{value:i,children:t})})},ZS=e=>{const[r,{value:t,children:n}]=st(e),o=Xe(E({present:t.open},r));return p.jsx(Hf,{value:t,children:p.jsx(at,{value:o,children:n})})},Kf=f.forwardRef((e,r)=>{const t=jn(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Kf.displayName="HoverCardTrigger";const[qf,Ge]=U({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),Yf=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getArrowProps(),e);return p.jsx(I.div,{...n,ref:r})});Yf.displayName="MenuArrow";const Xf=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getArrowTipProps(),e);return p.jsx(I.div,{...n,ref:r})});Xf.displayName="MenuArrowTip";const[Hl,JS]=U({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Zf,Jf]=U({name:"MenuOptionItemPropsContext",hookName:"useMenuOptionItemPropsContext",providerName:"<MenuOptionItemPropsProvider />"}),Qf=f.forwardRef((e,r)=>{const[t,n]=D()(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),o={...t,type:"checkbox"},i=Ge(),s=E(i.getOptionItemProps(o),n),a=i.getOptionItemState(o);return p.jsx(Zf,{value:o,children:p.jsx(Hl,{value:a,children:p.jsx(I.div,{...s,ref:r})})})});Qf.displayName="MenuCheckboxItem";const eh=f.forwardRef((e,r)=>{const t=Ge(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});eh.displayName="MenuContent";const QS=e=>e.children(Ge()),th=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getContextTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});th.displayName="MenuContextTrigger";const rh=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getIndicatorProps(),e);return p.jsx(I.div,{...n,ref:r})});rh.displayName="MenuIndicator";const nh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["closeOnSelect","disabled","value","valueText"]),o=Ge(),i=E(o.getItemProps(t),n),s=o.getItemState(t);return p.jsx(Hl,{value:s,children:p.jsx(I.div,{...i,ref:r})})});nh.displayName="MenuItem";const e0=e=>e.children(JS()),[oh,ih]=U({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),sh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id"]),o=Ge(),s={id:f.useId(),...t},a=E(o.getItemGroupProps(s),n);return p.jsx(oh,{value:s,children:p.jsx(I.div,{...a,ref:r})})});sh.displayName="MenuItemGroup";const ah=f.forwardRef((e,r)=>{const t=Ge(),n=ih(),o=E(t.getItemGroupLabelProps({htmlFor:n.id}),e);return p.jsx(I.div,{...o,ref:r})});ah.displayName="MenuItemGroupLabel";const lh=f.forwardRef((e,r)=>{const t=Ge(),n=Jf(),o=E(t.getItemIndicatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});lh.displayName="MenuItemIndicator";const ch=f.forwardRef((e,r)=>{const t=Ge(),n=Jf(),o=E(t.getItemTextProps(n),e);return p.jsx(I.div,{...o,ref:r})});ch.displayName="MenuItemText";const dh=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});dh.displayName="MenuPositioner";const uh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["closeOnSelect","disabled","value","valueText"]),o=Ge(),i=ih(),s={...t,checked:i.value===t.value,type:"radio",onCheckedChange:()=>{var c;return(c=i.onValueChange)==null?void 0:c.call(i,{value:t.value})}},a=E(o.getOptionItemProps(s),n),l=o.getOptionItemState(s);return p.jsx(Zf,{value:s,children:p.jsx(Hl,{value:l,children:p.jsx(I.div,{...a,ref:r})})})});uh.displayName="MenuRadioItem";const ph=f.forwardRef((e,r)=>{const[t,n]=D()(e,["id","onValueChange","value"]),o=Ge(),s={id:f.useId(),...t},a=E(o.getItemGroupProps({id:s.id}),n);return p.jsx(oh,{value:s,children:p.jsx(I.div,{...a,ref:r})})});ph.displayName="MenuRadioItemGroup";const gh=e=>{const r=f.useRef(e),t=f.useRef(!1);f.useEffect(()=>{r.current=e}),f.useEffect(()=>{t.current!==!0&&(t.current=!0,r.current())},[])};var po=(e,r)=>({x:e,y:r});function t0(e){const{x:r,y:t,width:n,height:o}=e,i=r+n/2,s=t+o/2;return{x:r,y:t,width:n,height:o,minX:r,minY:t,maxX:r+n,maxY:t+o,midX:i,midY:s,center:po(i,s)}}function r0(e){const r=po(e.minX,e.minY),t=po(e.maxX,e.minY),n=po(e.maxX,e.maxY),o=po(e.minX,e.maxY);return{top:r,right:t,bottom:n,left:o}}function n0(e,r){const t=t0(e),{top:n,right:o,left:i,bottom:s}=r0(t),[a]=r.split("-");return{top:[i,n,o,s],right:[n,o,s,i],bottom:[n,i,s,o],left:[o,n,i,s]}[a]}function o0(e,r){const{x:t,y:n}=r;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,l=e[i].y,c=e[s].x,d=e[s].y;l>n!=d>n&&t<(c-a)*(n-l)/(d-l)+a&&(o=!o)}return o}var i0=fe("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),rt=i0.build(),B=ke({getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`menu:${e.id}:trigger`},getContextTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.contextTrigger)??`menu:${e.id}:ctx-trigger`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`menu:${e.id}:content`},getArrowId:e=>{var r;return((r=e.ids)==null?void 0:r.arrow)??`menu:${e.id}:arrow`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`menu:${e.id}:popper`},getGroupId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.group)==null?void 0:n.call(t,r))??`menu:${e.id}:group:${r}`},getGroupLabelId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.groupLabel)==null?void 0:n.call(t,r))??`menu:${e.id}:group-label:${r}`},getContentEl:e=>B.getById(e,B.getContentId(e)),getPositionerEl:e=>B.getById(e,B.getPositionerId(e)),getTriggerEl:e=>B.getById(e,B.getTriggerId(e)),getHighlightedItemEl:e=>e.highlightedValue?B.getById(e,e.highlightedValue):null,getArrowEl:e=>B.getById(e,B.getArrowId(e)),getElements:e=>{const t=`[role^="menuitem"][data-ownedby=${CSS.escape(B.getContentId(e))}]:not([data-disabled])`;return Lt(B.getContentEl(e),t)},getFirstEl:e=>al(B.getElements(e)),getLastEl:e=>ll(B.getElements(e)),getNextEl:(e,r)=>nl(B.getElements(e),e.highlightedValue,r??e.loopFocus),getPrevEl:(e,r)=>ol(B.getElements(e),e.highlightedValue,r??e.loopFocus),getElemByKey:(e,r)=>Oo(B.getElements(e),{state:e.typeaheadState,key:r,activeId:e.highlightedValue}),isTargetDisabled:e=>Ye(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),isTriggerItem:e=>{var r;return!!((r=e==null?void 0:e.getAttribute("role"))!=null&&r.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},getOptionFromItemEl(e){return{id:e.id,name:e.dataset.name,value:e.dataset.value,valueText:e.dataset.valueText,type:e.dataset.type}}});function s0(e,r,t){const n=e.context.isSubmenu,o=e.context.isTypingAhead,i=e.context.composite,s=e.hasTag("open"),a=Fn({...e.context.positioning,placement:e.context.anchorPoint?"bottom":e.context.currentPlacement});function l(u){return{disabled:!!u.disabled,highlighted:e.context.highlightedValue===u.value}}function c(u){const h=u.valueText??u.value;return{...u,id:u.value,valueText:h}}function d(u){return{...l(c(u)),checked:!!u.checked}}function g(u){const{value:h,closeOnSelect:v,valueText:m}=u,b=l(u);return t.element({...rt.item.attrs,id:h,role:"menuitem","aria-disabled":b.disabled,"data-disabled":T(b.disabled),"data-ownedby":B.getContentId(e.context),"data-highlighted":T(b.highlighted),"data-valuetext":m,onDragStart(y){y.currentTarget.matches("a[href]")&&y.preventDefault()},onPointerMove(y){if(b.disabled||y.pointerType!=="mouse")return;const P=y.currentTarget;b.highlighted||r({type:"ITEM_POINTERMOVE",id:h,target:P,closeOnSelect:v})},onPointerLeave(y){if(b.disabled||y.pointerType!=="mouse"||!e.previousEvent.type.includes("POINTER"))return;const C=y.currentTarget;r({type:"ITEM_POINTERLEAVE",id:h,target:C,closeOnSelect:v})},onPointerDown(y){if(b.disabled)return;const P=y.currentTarget;r({type:"ITEM_POINTERDOWN",target:P,id:h,closeOnSelect:v})},onClick(y){if(Mc(y)||Vc(y)||b.disabled)return;const P=y.currentTarget;r({type:"ITEM_CLICK",target:P,id:h,closeOnSelect:v})}})}return{highlightedValue:e.context.highlightedValue,open:s,setOpen(u){u!==s&&r(u?"OPEN":"CLOSE")},setHighlightedValue(u){r({type:"HIGHLIGHTED.SET",id:u})},setParent(u){r({type:"PARENT.SET",value:u,id:u.state.context.id})},setChild(u){r({type:"CHILD.SET",value:u,id:u.state.context.id})},reposition(u={}){r({type:"POSITIONING.SET",options:u})},getContextTriggerProps(){return t.element({...rt.contextTrigger.attrs,dir:e.context.dir,id:B.getContextTriggerId(e.context),onPointerDown(u){if(u.pointerType==="mouse")return;const h=pr(u);r({type:"CONTEXT_MENU_START",point:h})},onPointerCancel(u){u.pointerType!=="mouse"&&r("CONTEXT_MENU_CANCEL")},onPointerMove(u){u.pointerType!=="mouse"&&r("CONTEXT_MENU_CANCEL")},onPointerUp(u){u.pointerType!=="mouse"&&r("CONTEXT_MENU_CANCEL")},onContextMenu(u){const h=pr(u);r({type:"CONTEXT_MENU",point:h}),u.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(u){return E(g({value:u.getTriggerProps().id}),u.getTriggerProps())},getTriggerProps(){return t.button({...n?rt.triggerItem.attrs:rt.trigger.attrs,"data-placement":e.context.currentPlacement,type:"button",dir:e.context.dir,id:B.getTriggerId(e.context),"data-uid":e.context.id,"aria-haspopup":i?"menu":"dialog","aria-controls":B.getContentId(e.context),"aria-expanded":s||void 0,"data-state":s?"open":"closed",onPointerMove(u){u.pointerType!=="mouse"||B.isTargetDisabled(u.currentTarget)||!n||r({type:"TRIGGER_POINTERMOVE",target:u.currentTarget})},onPointerLeave(u){if(B.isTargetDisabled(u.currentTarget)||u.pointerType!=="mouse"||!n)return;const h=pr(u);r({type:"TRIGGER_POINTERLEAVE",target:u.currentTarget,point:h})},onPointerDown(u){B.isTargetDisabled(u.currentTarget)||Au(u)||u.preventDefault()},onClick(u){u.defaultPrevented||B.isTargetDisabled(u.currentTarget)||r({type:"TRIGGER_CLICK",target:u.currentTarget})},onBlur(){r("TRIGGER_BLUR")},onFocus(){r("TRIGGER_FOCUS")},onKeyDown(u){if(u.defaultPrevented)return;const h={ArrowDown(){r("ARROW_DOWN")},ArrowUp(){r("ARROW_UP")},Enter(){r({type:"ARROW_DOWN",src:"enter"})},Space(){r({type:"ARROW_DOWN",src:"space"})}},v=er(u,e.context),m=h[v];m&&(u.preventDefault(),m(u))}})},getIndicatorProps(){return t.element({...rt.indicator.attrs,dir:e.context.dir,"data-state":s?"open":"closed"})},getPositionerProps(){return t.element({...rt.positioner.attrs,dir:e.context.dir,id:B.getPositionerId(e.context),style:a.floating})},getArrowProps(){return t.element({id:B.getArrowId(e.context),...rt.arrow.attrs,dir:e.context.dir,style:a.arrow})},getArrowTipProps(){return t.element({...rt.arrowTip.attrs,dir:e.context.dir,style:a.arrowTip})},getContentProps(){return t.element({...rt.content.attrs,id:B.getContentId(e.context),"aria-label":e.context["aria-label"],hidden:!s,"data-state":s?"open":"closed",role:i?"menu":"dialog",tabIndex:0,dir:e.context.dir,"aria-activedescendant":e.context.highlightedValue??void 0,"aria-labelledby":B.getTriggerId(e.context),"data-placement":e.context.currentPlacement,onPointerEnter(u){u.pointerType==="mouse"&&r("MENU_POINTERENTER")},onKeyDown(u){if(u.defaultPrevented||!xo(u))return;const h=He(u);if(!((h==null?void 0:h.closest("[role=menu]"))===u.currentTarget||h===u.currentTarget))return;if(u.key==="Tab"&&!Vu(u)){u.preventDefault();return}const m=B.getHighlightedItemEl(e.context),b={ArrowDown(){r("ARROW_DOWN")},ArrowUp(){r("ARROW_UP")},ArrowLeft(){r("ARROW_LEFT")},ArrowRight(){r("ARROW_RIGHT")},Enter(){r("ENTER"),Ru(m)&&e.context.navigate({value:e.context.highlightedValue,node:m})},Space(C){var x;o?r({type:"TYPEAHEAD",key:C.key}):(x=b.Enter)==null||x.call(b,C)},Home(){r("HOME")},End(){r("END")}},y=er(u,{dir:e.context.dir}),P=b[y];if(P){P(u),u.stopPropagation(),u.preventDefault();return}e.context.typeahead&&SC(u)&&(Yr(u)||ss(h)||(r({type:"TYPEAHEAD",key:u.key}),u.preventDefault()))}})},getSeparatorProps(){return t.element({...rt.separator.attrs,role:"separator",dir:e.context.dir,"aria-orientation":"horizontal"})},getItemState:l,getItemProps:g,getOptionItemState:d,getOptionItemProps(u){const{type:h,disabled:v,onCheckedChange:m,closeOnSelect:b}=u,y=c(u),P=d(u);return{...g(y),...t.element({"data-type":h,...rt.item.attrs,dir:e.context.dir,"data-value":y.value,role:`menuitem${h}`,"aria-checked":!!P.checked,"data-state":P.checked?"checked":"unchecked",onClick(C){if(v||Mc(C)||Vc(C))return;const x=C.currentTarget;r({type:"ITEM_CLICK",target:x,option:y,closeOnSelect:b}),m==null||m(!P.checked)}})}},getItemIndicatorProps(u){const h=d(u);return t.element({...rt.itemIndicator.attrs,dir:e.context.dir,"data-disabled":T(h.disabled),"data-highlighted":T(h.highlighted),"data-state":h.checked?"checked":"unchecked",hidden:!h.checked})},getItemTextProps(u){const h=d(u);return t.element({...rt.itemText.attrs,dir:e.context.dir,"data-disabled":T(h.disabled),"data-highlighted":T(h.highlighted),"data-state":h.checked?"checked":"unchecked"})},getItemGroupLabelProps(u){return t.element({id:B.getGroupLabelId(e.context,u.htmlFor),dir:e.context.dir,...rt.itemGroupLabel.attrs})},getItemGroupProps(u){return t.element({id:B.getGroupId(e.context,u.id),...rt.itemGroup.attrs,dir:e.context.dir,"aria-labelledby":B.getGroupLabelId(e.context,u.id),role:"group"})}}}var{not:xt,and:fn,or:a0}=At;function l0(e){const r=he(e);return Ce({id:"menu",initial:r.open?"open":"idle",context:{highlightedValue:null,loopFocus:!1,anchorPoint:null,closeOnSelect:!0,typeahead:!0,composite:!0,navigate(t){Mu(t.node)},...r,positioning:{placement:"bottom-start",gutter:8,...r.positioning},intentPolygon:null,parent:null,lastHighlightedValue:null,children:qt(Oe({})),suspendPointer:!1,typeaheadState:Oo.defaultOptions},computed:{isSubmenu:t=>t.parent!==null,isRtl:t=>t.dir==="rtl",isTypingAhead:t=>t.typeaheadState.keysSoFar!==""},watch:{isSubmenu:"setSubmenuPlacement",anchorPoint:"reposition",open:"toggleVisibility"},on:{"PARENT.SET":{actions:"setParentMenu"},"CHILD.SET":{actions:"setChildMenu"},OPEN:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:"invokeOnOpen"}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{internal:!0,target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:"invokeOnClose"},{target:"closed",actions:"invokeOnClose"}],"HIGHLIGHTED.RESTORE":{actions:"restoreHighlightedItem"},"HIGHLIGHTED.SET":{actions:"setHighlightedItem"}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":"closed",CONTEXT_MENU_START:{target:"opening:contextmenu",actions:"setAnchorPoint"},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:"invokeOnOpen"}],TRIGGER_FOCUS:{guard:xt("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],after:{LONG_PRESS_DELAY:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:"invokeOnOpen"}]},on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":"closed",CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:"invokeOnClose"},{target:"closed",actions:"invokeOnClose"}]}},opening:{tags:["closed"],after:{SUBMENU_OPEN_DELAY:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:"invokeOnOpen"}]},on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":"closed",BLUR:[{guard:"isOpenControlled",actions:"invokeOnClose"},{target:"closed",actions:"invokeOnClose"}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:"invokeOnClose"},{target:"closed",actions:"invokeOnClose"}]}},closing:{tags:["open"],activities:["trackPointerMove","trackInteractOutside"],after:{SUBMENU_CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]},on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:"clearIntentPolygon"},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:"invokeOnClose"},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer"],on:{"CONTROLLED.OPEN":[{guard:a0("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:"highlightFirstItem"},{guard:"isArrowUpEvent",target:"open",actions:"highlightLastItem"},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:"setAnchorPoint"},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:"invokeOnOpen"}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:"idle",ARROW_DOWN:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:"invokeOnOpen"},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],activities:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:fn(xt("isTriggerItem"),"isOpenControlled"),actions:"invokeOnClose"},{guard:xt("isTriggerItem"),target:"closed",actions:"invokeOnClose"}],ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:fn("isSubmenu","isOpenControlled"),actions:"invokeOnClose"},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:"openSubmenu"},ENTER:[{guard:"isTriggerItemHighlighted",actions:"openSubmenu"},{actions:"clickHighlightedItem"}],ITEM_POINTERMOVE:[{guard:xt("suspendPointer"),actions:["setHighlightedItem","focusMenu"]},{actions:"setLastHighlightedItem"}],ITEM_POINTERLEAVE:{guard:fn(xt("suspendPointer"),xt("isTriggerItem")),actions:"clearHighlightedItem"},ITEM_CLICK:[{guard:fn(xt("isTriggerItemHighlighted"),xt("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:fn(xt("isTriggerItemHighlighted"),xt("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:fn(xt("isTriggerItemHighlighted"),xt("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:"setHighlightedItem"}],TRIGGER_POINTERLEAVE:{target:"closing",actions:"setIntentPolygon"},ITEM_POINTERDOWN:{actions:"setHighlightedItem"},TYPEAHEAD:{actions:"highlightMatchedItem"},FOCUS_MENU:{actions:"focusMenu"},"POSITIONING.SET":{actions:"reposition"}}}}},{delays:{LONG_PRESS_DELAY:700,SUBMENU_OPEN_DELAY:100,SUBMENU_CLOSE_DELAY:100},guards:{closeOnSelect:(t,n)=>!!((n==null?void 0:n.closeOnSelect)??t.closeOnSelect),isTriggerItem:(t,n)=>B.isTriggerItem(n.target),isTriggerItemHighlighted:(t,n)=>{const o=n.target??B.getHighlightedItemEl(t);return!!(o!=null&&o.hasAttribute("aria-controls"))},isSubmenu:t=>t.isSubmenu,suspendPointer:t=>t.suspendPointer,isHighlightedItemEditable:t=>ss(B.getHighlightedItemEl(t)),isWithinPolygon:(t,n)=>t.intentPolygon?o0(t.intentPolygon,n.point):!1,isOpenControlled:t=>!!t["open.controlled"],isArrowLeftEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="ARROW_LEFT"},isArrowUpEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="ARROW_UP"},isArrowDownEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="ARROW_DOWN"},isOpenAutoFocusEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="OPEN_AUTOFOCUS"}},activities:{trackPositioning(t){if(t.anchorPoint)return;t.currentPlacement=t.positioning.placement;const n=()=>B.getPositionerEl(t);return Mt(B.getTriggerEl(t),n,{...t.positioning,defer:!0,onComplete(o){t.currentPlacement=o.placement}})},trackInteractOutside(t,n,{send:o}){const i=()=>B.getContentEl(t);let s=!0;return Dn(i,{defer:!0,exclude:[B.getTriggerEl(t)],onInteractOutside:t.onInteractOutside,onFocusOutside:t.onFocusOutside,onEscapeKeyDown(a){var l;(l=t.onEscapeKeyDown)==null||l.call(t,a),t.isSubmenu&&a.preventDefault(),xd(t)},onPointerDownOutside(a){var l;s=!a.detail.focusable,(l=t.onPointerDownOutside)==null||l.call(t,a)},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},trackPointerMove(t,n,{guards:o,send:i}){const{isWithinPolygon:s}=o;t.parent.state.context.suspendPointer=!0;const a=B.getDoc(t);return ie(a,"pointermove",l=>{const c={x:l.clientX,y:l.clientY};s(t,{point:c})||(i("POINTER_MOVED_AWAY_FROM_SUBMENU"),t.parent.state.context.suspendPointer=!1)})},scrollToHighlightedItem(t,n,{getState:o}){const i=()=>{if(o().event.type.startsWith("ITEM_POINTER"))return;const l=B.getHighlightedItemEl(t),c=B.getContentEl(t);_u(l,{rootEl:c,block:"nearest"})};return G(()=>i()),ls(()=>B.getContentEl(t),{defer:!0,attributes:["aria-activedescendant"],callback:i})}},actions:{setAnchorPoint(t,n){t.anchorPoint=n.point},setSubmenuPlacement(t){t.isSubmenu&&(t.positioning.placement=t.isRtl?"left-start":"right-start",t.positioning.gutter=0)},reposition(t,n){const o=()=>B.getPositionerEl(t),i=t.anchorPoint?()=>({width:0,height:0,...t.anchorPoint}):void 0;Mt(B.getTriggerEl(t),o,{...t.positioning,defer:!0,getAnchorRect:i,...n.options??{},listeners:!1,onComplete(s){t.currentPlacement=s.placement}})},setOptionState(t,n){if(!n.option)return;const{checked:o,onCheckedChange:i,type:s}=n.option;s==="radio"?i==null||i(!0):s==="checkbox"&&(i==null||i(!o))},clickHighlightedItem(t,n){const o=B.getHighlightedItemEl(t);!o||o.dataset.disabled||queueMicrotask(()=>o.click())},setIntentPolygon(t,n){const o=B.getContentEl(t),i=t.currentPlacement;if(!o||!i)return;const s=o.getBoundingClientRect(),a=n0(s,i);if(!a)return;const c=vw(i)==="right"?-5:5;t.intentPolygon=[{...n.point,x:n.point.x+c},...a]},clearIntentPolygon(t){t.intentPolygon=null},resumePointer(t){t.parent&&(t.parent.state.context.suspendPointer=!1)},setHighlightedItem(t,n){Cr.highlighted(t,n.id)},clearHighlightedItem(t){Cr.highlighted(t,null)},focusMenu(t){G(()=>{const n=B.getContentEl(t),o=Ro({root:n,enabled:!kt(n,B.getActiveElement(t)),filter(i){var s;return!((s=i.role)!=null&&s.startsWith("menuitem"))}});o==null||o.focus({preventScroll:!0})})},highlightFirstItem(t){(B.getContentEl(t)?queueMicrotask:G)(()=>{const o=B.getFirstEl(t);o&&Cr.highlighted(t,o.id)})},highlightLastItem(t){(B.getContentEl(t)?queueMicrotask:G)(()=>{const o=B.getLastEl(t);o&&Cr.highlighted(t,o.id)})},highlightNextItem(t,n){const o=B.getNextEl(t,n.loop);Cr.highlighted(t,(o==null?void 0:o.id)??null)},highlightPrevItem(t,n){const o=B.getPrevEl(t,n.loop);Cr.highlighted(t,(o==null?void 0:o.id)??null)},invokeOnSelect(t){var n;t.highlightedValue&&((n=t.onSelect)==null||n.call(t,{value:t.highlightedValue}))},focusTrigger(t,n){t.isSubmenu||t.anchorPoint||n.restoreFocus===!1||queueMicrotask(()=>{var o;return(o=B.getTriggerEl(t))==null?void 0:o.focus({preventScroll:!0})})},highlightMatchedItem(t,n){const o=B.getElemByKey(t,n.key);o&&Cr.highlighted(t,o.id)},setParentMenu(t,n){t.parent=Oe(n.value)},setChildMenu(t,n){t.children[n.id]=Oe(n.value)},closeRootMenu(t){xd(t)},openSubmenu(t){const n=B.getHighlightedItemEl(t),o=n==null?void 0:n.getAttribute("data-uid"),i=o?t.children[o]:null;i==null||i.send("OPEN_AUTOFOCUS")},focusParentMenu(t){var n;(n=t.parent)==null||n.send("FOCUS_MENU")},setLastHighlightedItem(t,n){t.lastHighlightedValue=n.id},restoreHighlightedItem(t){t.lastHighlightedValue&&(Cr.highlighted(t,t.lastHighlightedValue),t.lastHighlightedValue=null)},restoreParentHighlightedItem(t){var n;(n=t.parent)==null||n.send("HIGHLIGHTED.RESTORE")},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},toggleVisibility(t,n,{send:o}){o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}})}function xd(e){let r=e.parent;for(;r&&r.state.context.isSubmenu;)r=r.state.context.parent;r==null||r.send("CLOSE")}var Cr={highlighted(e,r){var t;ye(e.highlightedValue,r)||(e.highlightedValue=r,(t=e.onHighlightChange)==null||t.call(e,{highlightedValue:r}))}};ee()(["anchorPoint","aria-label","closeOnSelect","composite","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open.controlled","open","positioning","typeahead"]);ee()(["closeOnSelect","disabled","value","valueText"]);ee()(["htmlFor"]);ee()(["id"]);ee()(["disabled","valueText","closeOnSelect","type","value","checked","onCheckedChange"]);const c0=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,open:e.defaultOpen,"open.controlled":e.open!==void 0,...e},o={...n,onOpenChange:q(e.onOpenChange),onSelect:q(e.onSelect)},[i,s,a]=xe(l0(n),{context:o});return{api:s0(i,s,we),machine:a}},[fh,hh]=U({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[mh,d0]=U({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),u0=e=>{const[r,t]=st(e),[n,o]=D()(t,["anchorPoint","aria-label","closeOnSelect","composite","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),i=Ge(),s=hh(),{api:a,machine:l}=c0(n),c=Xe(E({present:a.open},r));gh(()=>{s&&i&&(i.setChild(l),a.setParent(s))});const d=f.useCallback(()=>i==null?void 0:i.getTriggerItemProps(a),[a,i]);return p.jsx(mh,{value:d,children:p.jsx(fh,{value:l,children:p.jsx(qf,{value:a,children:p.jsx(at,{value:c,...o})})})})},p0=e=>{const r=Ge(),t=hh(),[n,{value:o,children:i}]=st(e),{api:s,machine:a}=o,l=Xe(E({present:s.open},n));gh(()=>{t&&r&&(r.setChild(a),s.setParent(t))});const c=f.useCallback(()=>r==null?void 0:r.getTriggerItemProps(s),[s,r]);return p.jsx(mh,{value:c,children:p.jsx(fh,{value:a,children:p.jsx(qf,{value:s,children:p.jsx(at,{value:l,children:i})})})})},vh=f.forwardRef((e,r)=>{const t=Ge(),n=E(t.getSeparatorProps(),e);return p.jsx(I.hr,{...n,ref:r})});vh.displayName="MenuSeparator";const bh=f.forwardRef((e,r)=>{const t=Ge(),n=Ze(),o=E({...t.getTriggerProps(),"aria-controls":n.unmounted?void 0:t.getTriggerProps()["aria-controls"]},e);return p.jsx(I.button,{...o,ref:r})});bh.displayName="MenuTrigger";const yh=f.forwardRef((e,r)=>{const t=d0(),n=E((t==null?void 0:t())??{},e);return p.jsx(I.div,{...n,ref:r})});yh.displayName="MenuTriggerItem";const[Ph,$r]=U({name:"NumberInputContext",hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),g0=e=>e.children($r()),Ch=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});Ch.displayName="NumberInputControl";const Eh=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getDecrementTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Eh.displayName="NumberInputDecrementTrigger";const Ih=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getIncrementTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Ih.displayName="NumberInputIncrementTrigger";const Th=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});Th.displayName="NumberInputInput";const wh=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});wh.displayName="NumberInputLabel";let Qs=new Map,Ta=!1;try{Ta=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Yi=!1;try{Yi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const xh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class f0{format(r){let t="";if(!Ta&&this.options.signDisplay!=null?t=m0(this.numberFormatter,this.options.signDisplay,r):t=this.numberFormatter.format(r),this.options.style==="unit"&&!Yi){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return t;let a=(n=xh[o])===null||n===void 0?void 0:n[i];t+=a[s]||a.default}return t}formatToParts(r){return this.numberFormatter.formatToParts(r)}formatRange(r,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(r,t);if(t<r)throw new RangeError("End date must be >= start date");return`${this.format(r)} – ${this.format(t)}`}formatRangeToParts(r,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(r,t);if(t<r)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(r),o=this.numberFormatter.formatToParts(t);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let r=this.numberFormatter.resolvedOptions();return!Ta&&this.options.signDisplay!=null&&(r={...r,signDisplay:this.options.signDisplay}),!Yi&&this.options.style==="unit"&&(r={...r,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),r}constructor(r,t={}){this.numberFormatter=h0(r,t),this.options=t}}function h0(e,r={}){let{numberingSystem:t}=r;if(t&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${t}`),r.style==="unit"&&!Yi){var n;let{unit:s,unitDisplay:a="short"}=r;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=xh[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);r={...r,style:"decimal"}}let o=e+(r?Object.entries(r).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Qs.has(o))return Qs.get(o);let i=new Intl.NumberFormat(e,r);return Qs.set(o,i),i}function m0(e,r,t){if(r==="auto")return e.format(t);if(r==="never")return e.format(Math.abs(t));{let n=!1;if(r==="always"?n=t>0||Object.is(t,0):r==="exceptZero"&&(Object.is(t,-0)||Object.is(t,0)?t=Math.abs(t):n=t>0),n){let o=e.format(-t),i=e.format(t),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(t)}}const v0=new RegExp("^.*\\(.*\\).*$"),b0=["latn","arab","hanidec","deva","beng"];class Sh{parse(r){return ea(this.locale,this.options,r).parse(r)}isValidPartialNumber(r,t,n){return ea(this.locale,this.options,r).isValidPartialNumber(r,t,n)}getNumberingSystem(r){return ea(this.locale,this.options,r).options.numberingSystem}constructor(r,t={}){this.locale=r,this.options=t}}const Sd=new Map;function ea(e,r,t){let n=Rd(e,r);if(!e.includes("-nu-")&&!n.isValidPartialNumber(t)){for(let o of b0)if(o!==n.options.numberingSystem){let i=Rd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,r);if(i.isValidPartialNumber(t))return i}}return n}function Rd(e,r){let t=e+(r?Object.entries(r).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Sd.get(t);return n||(n=new y0(e,r),Sd.set(t,n)),n}class y0{parse(r){let t=this.sanitize(r);if(this.symbols.group&&(t=fi(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=t.indexOf("-");t=t.replace("-","");let a=t.indexOf(".");a===-1&&(a=t.length),t=t.replace(".",""),a-2===0?t=`0.${t}`:a-2===-1?t=`0.0${t}`:a-2===-2?t="0.00":t=`${t.slice(0,a-2)}.${t.slice(a-2)}`,s>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Sh(this.locale,s).parse(new f0(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&v0.test(r)&&(n=-1*n),n}sanitize(r){return r=r.replace(this.symbols.literals,""),this.symbols.minusSign&&(r=r.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(r=r.replace(",",this.symbols.decimal),r=r.replace("،",this.symbols.decimal)),this.symbols.group&&(r=fi(r,".",this.symbols.group))),this.options.locale==="fr-FR"&&(r=fi(r,"."," ")),r}isValidPartialNumber(r,t=-1/0,n=1/0){return r=this.sanitize(r),this.symbols.minusSign&&r.startsWith(this.symbols.minusSign)&&t<0?r=r.slice(this.symbols.minusSign.length):this.symbols.plusSign&&r.startsWith(this.symbols.plusSign)&&n>0&&(r=r.slice(this.symbols.plusSign.length)),this.symbols.group&&r.startsWith(this.symbols.group)||this.symbols.decimal&&r.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(r=fi(r,this.symbols.group,"")),r=r.replace(this.symbols.numeral,""),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,"")),r.length===0)}constructor(r,t={}){this.locale=r,this.formatter=new Intl.NumberFormat(r,t),this.options=this.formatter.resolvedOptions(),this.symbols=C0(r,this.formatter,this.options,t);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Od=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),P0=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function C0(e,r,t,n){var o,i,s,a;let l=new Intl.NumberFormat(e,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),g=P0.map(k=>l.formatToParts(k));var u;let h=(u=(o=c.find(k=>k.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&u!==void 0?u:"-",v=(i=d.find(k=>k.type==="plusSign"))===null||i===void 0?void 0:i.value;!v&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&(v="+");let b=(s=new Intl.NumberFormat(e,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(k=>k.type==="decimal"))===null||s===void 0?void 0:s.value,y=(a=c.find(k=>k.type==="group"))===null||a===void 0?void 0:a.value,P=c.filter(k=>!Od.has(k.type)).map(k=>kd(k.value)),C=g.flatMap(k=>k.filter(V=>!Od.has(V.type)).map(V=>kd(V.value))),x=[...new Set([...P,...C])].sort((k,V)=>V.length-k.length),w=x.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),O=new Map(A.map((k,V)=>[k,V])),R=new RegExp(`[${A.join("")}]`,"g");return{minusSign:h,plusSign:v,decimal:b,group:y,literals:w,numeral:R,index:k=>String(O.get(k))}}function fi(e,r,t){return e.replaceAll?e.replaceAll(r,t):e.split(r).join(t)}function kd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var E0=fe("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber"),Er=E0.build(),Z=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`number-input:${e.id}`},getInputId:e=>{var r;return((r=e.ids)==null?void 0:r.input)??`number-input:${e.id}:input`},getIncrementTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.incrementTrigger)??`number-input:${e.id}:inc`},getDecrementTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.decrementTrigger)??`number-input:${e.id}:dec`},getScrubberId:e=>{var r;return((r=e.ids)==null?void 0:r.scrubber)??`number-input:${e.id}:scrubber`},getCursorId:e=>`number-input:${e.id}:cursor`,getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`number-input:${e.id}:label`},getInputEl:e=>Z.getById(e,Z.getInputId(e)),getIncrementTriggerEl:e=>Z.getById(e,Z.getIncrementTriggerId(e)),getDecrementTriggerEl:e=>Z.getById(e,Z.getDecrementTriggerId(e)),getScrubberEl:e=>Z.getById(e,Z.getScrubberId(e)),getCursorEl:e=>Z.getDoc(e).getElementById(Z.getCursorId(e)),getPressedTriggerEl:(e,r=e.hint)=>{let t=null;return r==="increment"&&(t=Z.getIncrementTriggerEl(e)),r==="decrement"&&(t=Z.getDecrementTriggerEl(e)),t},setupVirtualCursor(e){if(!Do())return Z.createVirtualCursor(e),()=>{var r;(r=Z.getCursorEl(e))==null||r.remove()}},preventTextSelection(e){const r=Z.getDoc(e),t=r.documentElement,n=r.body;return n.style.pointerEvents="none",t.style.userSelect="none",t.style.cursor="ew-resize",()=>{n.style.pointerEvents="",t.style.userSelect="",t.style.cursor="",t.style.length||t.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},getMousemoveValue(e,r){const t=Z.getWin(e),n=vo(r.movementX,t.devicePixelRatio),o=vo(r.movementY,t.devicePixelRatio);let i=n>0?"increment":n<0?"decrement":null;e.isRtl&&i==="increment"&&(i="decrement"),e.isRtl&&i==="decrement"&&(i="increment");const s={x:e.scrubberCursorPoint.x+n,y:e.scrubberCursorPoint.y+o},a=t.innerWidth,l=vo(7.5,t.devicePixelRatio);return s.x=YE(s.x+l,a)-l,{hint:i,point:s}},createVirtualCursor(e){const r=Z.getDoc(e),t=r.createElement("div");t.className="scrubber--cursor",t.id=Z.getCursorId(e),Object.assign(t.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:xu,transform:e.scrubberCursorPoint?`translate3d(${e.scrubberCursorPoint.x}px, ${e.scrubberCursorPoint.y}px, 0px)`:void 0,willChange:"transform"}),t.innerHTML=`
17
+ <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
18
+ <g transform="translate(2 3)">
19
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
20
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
21
+ </g>
22
+ </svg>`,r.body.appendChild(t)}});function I0(e,r,t){const n=e.hasTag("focus"),o=e.context.isDisabled,i=e.context.readOnly,s=e.context.isValueEmpty,a=e.context.isOutOfRange||!!e.context.invalid,l=o||!e.context.canIncrement||i,c=o||!e.context.canDecrement||i,d=e.context.translations;return{focused:n,invalid:a,empty:s,value:e.context.formattedValue,valueAsNumber:e.context.valueAsNumber,setValue(g){r({type:"VALUE.SET",value:g})},clearValue(){r("VALUE.CLEAR")},increment(){r("VALUE.INCREMENT")},decrement(){r("VALUE.DECREMENT")},setToMax(){r({type:"VALUE.SET",value:e.context.max})},setToMin(){r({type:"VALUE.SET",value:e.context.min})},focus(){var g;(g=Z.getInputEl(e.context))==null||g.focus()},getRootProps(){return t.element({id:Z.getRootId(e.context),...Er.root.attrs,dir:e.context.dir,"data-disabled":T(o),"data-focus":T(n),"data-invalid":T(a)})},getLabelProps(){return t.label({...Er.label.attrs,dir:e.context.dir,"data-disabled":T(o),"data-focus":T(n),"data-invalid":T(a),id:Z.getLabelId(e.context),htmlFor:Z.getInputId(e.context)})},getControlProps(){return t.element({...Er.control.attrs,dir:e.context.dir,role:"group","aria-disabled":o,"data-focus":T(n),"data-disabled":T(o),"data-invalid":T(a),"aria-invalid":Yt(e.context.invalid)})},getValueTextProps(){return t.element({...Er.valueText.attrs,dir:e.context.dir,"data-disabled":T(o),"data-invalid":T(a),"data-focus":T(n)})},getInputProps(){return t.input({...Er.input.attrs,dir:e.context.dir,name:e.context.name,form:e.context.form,id:Z.getInputId(e.context),role:"spinbutton",defaultValue:e.context.formattedValue,pattern:e.context.pattern,inputMode:e.context.inputMode,"aria-invalid":Yt(a),"data-invalid":T(a),disabled:o,"data-disabled":T(o),readOnly:e.context.readOnly,required:e.context.required,autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":e.context.min,"aria-valuemax":e.context.max,"aria-valuenow":Number.isNaN(e.context.valueAsNumber)?void 0:e.context.valueAsNumber,"aria-valuetext":e.context.valueText,onFocus(){r("INPUT.FOCUS")},onBlur(){r("INPUT.BLUR")},onInput(g){r({type:"INPUT.CHANGE",target:g.currentTarget,hint:"set"})},onBeforeInput(g){try{const{selectionStart:u,selectionEnd:h,value:v}=g.currentTarget,m=v.slice(0,u)+(g.data??"")+v.slice(h);e.context.parser.isValidPartialNumber(m)||g.preventDefault()}catch{}},onKeyDown(g){if(g.defaultPrevented||i||Vo(g))return;const u=Mi(g)*e.context.step,v={ArrowUp(){r({type:"INPUT.ARROW_UP",step:u}),g.preventDefault()},ArrowDown(){r({type:"INPUT.ARROW_DOWN",step:u}),g.preventDefault()},Home(){Yr(g)||(r("INPUT.HOME"),g.preventDefault())},End(){Yr(g)||(r("INPUT.END"),g.preventDefault())},Enter(){r("INPUT.ENTER")}}[g.key];v==null||v(g)}})},getDecrementTriggerProps(){return t.button({...Er.decrementTrigger.attrs,dir:e.context.dir,id:Z.getDecrementTriggerId(e.context),disabled:c,"data-disabled":T(c),"aria-label":d.decrementLabel,type:"button",tabIndex:-1,"aria-controls":Z.getInputId(e.context),onPointerDown(g){var u;c||!So(g)||(r({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:g.pointerType}),g.pointerType==="mouse"&&g.preventDefault(),g.pointerType==="touch"&&((u=g.currentTarget)==null||u.focus({preventScroll:!0})))},onPointerUp(g){r({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:g.pointerType})},onPointerLeave(){c||r({type:"TRIGGER.PRESS_UP",hint:"decrement"})}})},getIncrementTriggerProps(){return t.button({...Er.incrementTrigger.attrs,dir:e.context.dir,id:Z.getIncrementTriggerId(e.context),disabled:l,"data-disabled":T(l),"aria-label":d.incrementLabel,type:"button",tabIndex:-1,"aria-controls":Z.getInputId(e.context),onPointerDown(g){var u;l||!So(g)||(r({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:g.pointerType}),g.pointerType==="mouse"&&g.preventDefault(),g.pointerType==="touch"&&((u=g.currentTarget)==null||u.focus({preventScroll:!0})))},onPointerUp(g){r({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:g.pointerType})},onPointerLeave(g){r({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:g.pointerType})}})},getScrubberProps(){return t.element({...Er.scrubber.attrs,dir:e.context.dir,"data-disabled":T(o),id:Z.getScrubberId(e.context),role:"presentation",onMouseDown(g){if(o)return;const u=pr(g),v=De(g.currentTarget).devicePixelRatio;u.x=u.x-vo(7.5,v),u.y=u.y-vo(7.5,v),r({type:"SCRUBBER.PRESS_DOWN",point:u}),g.preventDefault()},style:{cursor:o?void 0:"ew-resize"}})}}}function T0(e){if(e.ownerDocument.activeElement===e)try{const{selectionStart:r,selectionEnd:t,value:n}=e,o=n.substring(0,r),i=n.substring(t);return{start:r,end:t,value:n,beforeTxt:o,afterTxt:i}}catch{}}function w0(e,r){if(e.ownerDocument.activeElement===e){if(!r){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:t}=e,{beforeTxt:n="",afterTxt:o="",start:i}=r;let s=t.length;if(t.endsWith(o))s=t.length-o.length;else if(t.startsWith(n))s=n.length;else if(i!=null){const a=n[i-1],l=t.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var Ad=(e,r={})=>Oe(new Intl.NumberFormat(e,r)),Nd=(e,r={})=>Oe(new Sh(e,r)),$d=(e,r)=>e.formatOptions?e.parser.parse(String(r)):parseFloat(r),jr=(e,r)=>Number.isNaN(r)?"":e.formatOptions?e.formatter.format(r):r.toString(),{not:ta,and:hi}=At;function x0(e){const r=he(e);return Ce({id:"number-input",initial:"idle",context:{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!0,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",value:"",step:1,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,invalid:!1,spinOnPress:!0,disabled:!1,readOnly:!1,...r,hint:null,scrubberCursorPoint:null,fieldsetDisabled:!1,formatter:Ad(r.locale||"en-US",r.formatOptions),parser:Nd(r.locale||"en-US",r.formatOptions),translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...r.translations}},computed:{isRtl:t=>t.dir==="rtl",valueAsNumber:t=>$d(t,t.value),formattedValue:t=>jr(t,t.valueAsNumber),isAtMin:t=>QE(t.valueAsNumber,t.min),isAtMax:t=>JE(t.valueAsNumber,t.max),isOutOfRange:t=>!pp(t.valueAsNumber,t.min,t.max),isValueEmpty:t=>t.value==="",isDisabled:t=>!!t.disabled||t.fieldsetDisabled,canIncrement:t=>t.allowOverflow||!t.isAtMax,canDecrement:t=>t.allowOverflow||!t.isAtMin,valueText:t=>{var n,o;return(o=(n=t.translations).valueText)==null?void 0:o.call(n,t.value)}},watch:{formatOptions:["setFormatterAndParser","syncInputElement"],locale:["setFormatterAndParser","syncInputElement"],value:["syncInputElement"],isOutOfRange:["invokeOnInvalid"],scrubberCursorPoint:["setVirtualCursorPosition"]},activities:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue","setHintToSet"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:"focus",activities:"attachWheelListener",on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:"increment"},"INPUT.ARROW_DOWN":{actions:"decrement"},"INPUT.HOME":{actions:"decrementToMin"},"INPUT.END":{actions:"incrementToMax"},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:hi("clampValueOnBlur",ta("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:"focus",activities:"trackButtonDisabled",entry:bp([{guard:"isIncrementHint",actions:"increment"},{guard:"isDecrementHint",actions:"decrement"}]),after:{CHANGE_DELAY:{target:"spinning",guard:hi("isInRange","spinOnPress")}},on:{"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:"clearHint"},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:"focus",activities:"trackButtonDisabled",every:[{delay:"CHANGE_INTERVAL",guard:hi(ta("isAtMin"),"isIncrementHint"),actions:"increment"},{delay:"CHANGE_INTERVAL",guard:hi(ta("isAtMax"),"isDecrementHint"),actions:"decrement"}],on:{"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:"focus",activities:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}}},{delays:{CHANGE_INTERVAL:50,CHANGE_DELAY:300},guards:{clampValueOnBlur:t=>t.clampValueOnBlur,isAtMin:t=>t.isAtMin,spinOnPress:t=>!!t.spinOnPress,isAtMax:t=>t.isAtMax,isInRange:t=>!t.isOutOfRange,isDecrementHint:(t,n)=>(n.hint??t.hint)==="decrement",isIncrementHint:(t,n)=>(n.hint??t.hint)==="increment",isTouchPointer:(t,n)=>n.pointerType==="touch"},activities:{trackFormControl(t,n,{initialContext:o}){const i=Z.getInputEl(t);return Jr(i,{onFieldsetDisabledChange(s){t.fieldsetDisabled=s},onFormReset(){Ht.value(t,o.value)}})},setupVirtualCursor(t){return Z.setupVirtualCursor(t)},preventTextSelection(t){return Z.preventTextSelection(t)},trackButtonDisabled(t,n,{send:o}){const i=Z.getPressedTriggerEl(t,t.hint);return ls(i,{attributes:["disabled"],callback(){o({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener(t,n,{send:o}){const i=Z.getInputEl(t);if(!i||!Z.isActiveElement(t,i)||!t.allowMouseWheel)return;function s(a){a.preventDefault();const l=Math.sign(a.deltaY)*-1;l===1?o("VALUE.INCREMENT"):l===-1&&o("VALUE.DECREMENT")}return ie(i,"wheel",s,{passive:!1})},activatePointerLock(t){if(!Do())return zC(Z.getDoc(t))},trackMousemove(t,n,{send:o}){const i=Z.getDoc(t);function s(l){if(!t.scrubberCursorPoint)return;const c=Z.getMousemoveValue(t,l);c.hint&&o({type:"SCRUBBER.POINTER_MOVE",hint:c.hint,point:c.point})}function a(){o("SCRUBBER.POINTER_UP")}return Ao(ie(i,"mousemove",s,!1),ie(i,"mouseup",a,!1))}},actions:{focusInput(t){if(!t.focusInputOnChange)return;const n=Z.getInputEl(t);Z.isActiveElement(t,n)||G(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment(t,n){const o=sI(t.valueAsNumber,n.step??t.step),i=jr(t,qe(o,t.min,t.max));Ht.value(t,i)},decrement(t,n){const o=aI(t.valueAsNumber,n.step??t.step),i=jr(t,qe(o,t.min,t.max));Ht.value(t,i)},setClampedValue(t){const n=qe(t.valueAsNumber,t.min,t.max);Ht.value(t,jr(t,n))},setRawValue(t,n){const o=$d(t,n.value),i=jr(t,qe(o,t.min,t.max));Ht.value(t,i)},setValue(t,n){var i;const o=((i=n.target)==null?void 0:i.value)??n.value;Ht.value(t,o)},clearValue(t){Ht.value(t,"")},incrementToMax(t){const n=jr(t,t.max);Ht.value(t,n)},decrementToMin(t){const n=jr(t,t.min);Ht.value(t,n)},setHint(t,n){t.hint=n.hint},clearHint(t){t.hint=null},setHintToSet(t){t.hint="set"},invokeOnFocus(t){var n;(n=t.onFocusChange)==null||n.call(t,{focused:!0,value:t.formattedValue,valueAsNumber:t.valueAsNumber})},invokeOnBlur(t){var n;(n=t.onFocusChange)==null||n.call(t,{focused:!1,value:t.formattedValue,valueAsNumber:t.valueAsNumber})},invokeOnInvalid(t){var o;if(!t.isOutOfRange)return;const n=t.valueAsNumber>t.max?"rangeOverflow":"rangeUnderflow";(o=t.onValueInvalid)==null||o.call(t,{reason:n,value:t.formattedValue,valueAsNumber:t.valueAsNumber})},syncInputElement(t,n){const o=n.type.endsWith("CHANGE")?t.value:t.formattedValue;S0.input(t,o)},setFormattedValue(t){Ht.value(t,t.formattedValue)},setCursorPoint(t,n){t.scrubberCursorPoint=n.point},clearCursorPoint(t){t.scrubberCursorPoint=null},setVirtualCursorPosition(t){const n=Z.getCursorEl(t);if(!n||!t.scrubberCursorPoint)return;const{x:o,y:i}=t.scrubberCursorPoint;n.style.transform=`translate3d(${o}px, ${i}px, 0px)`},setFormatterAndParser(t){t.locale&&(t.formatter=Ad(t.locale,t.formatOptions),t.parser=Nd(t.locale,t.formatOptions))}},compareFns:{formatOptions:(t,n)=>ye(t,n),scrubberCursorPoint:(t,n)=>ye(t,n)}})}var S0={input(e,r){const t=Z.getInputEl(e);if(!t)return;const n=T0(t);G(()=>{Xa(t,r),w0(t,n)})}},R0={onChange:e=>{var r;(r=e.onValueChange)==null||r.call(e,{value:e.value,valueAsNumber:e.valueAsNumber})}},Ht={value:(e,r)=>{ye(e.value,r)||(e.value=r,R0.onChange(e))}};const O0=(e={})=>{const{getRootNode:r}=Ae(),{dir:t,locale:n}=Te(),o=Ve(),i={id:f.useId(),ids:{label:o==null?void 0:o.ids.label,input:o==null?void 0:o.ids.control},disabled:o==null?void 0:o.disabled,readOnly:o==null?void 0:o.readOnly,required:o==null?void 0:o.required,invalid:o==null?void 0:o.invalid,dir:t,locale:n,getRootNode:r,value:e.defaultValue,...e},s={...i,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onValueInvalid:q(e.onValueInvalid),onFocusChange:q(e.onFocusChange)},[a,l]=xe(x0(i),{context:s});return I0(a,l,we)},Rh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"]),o=O0(t),i=E(o.getRootProps(),n);return p.jsx(Ph,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Rh.displayName="NumberInputRoot";const Oh=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(Ph,{value:t,children:p.jsx(I.div,{...o,ref:r})})});Oh.displayName="NumberInputRootProvider";const kh=f.forwardRef((e,r)=>{const t=$r(),n=E(t.getScrubberProps(),e);return p.jsx(I.div,{...n,ref:r})});kh.displayName="NumberInputScrubber";const Ah=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=$r(),i=E(o.getValueTextProps(),n);return p.jsx(I.span,{...i,ref:r,children:t||o.value})});Ah.displayName="NumberInputValueText";const[Nh,nn]=U({name:"PaginationContext",hookName:"usePaginationContext",providerName:"<PaginationProvider />"}),k0=e=>e.children(nn()),$h=f.forwardRef((e,r)=>{const[t,n]=D()(e,["index"]),o=nn(),i=E(o.getEllipsisProps(t),n);return p.jsx(I.div,{...i,ref:r})});$h.displayName="PaginationEllipsis";const Lh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["value","type"]),o=nn(),i=E(o.getItemProps(t),n);return p.jsx(I.button,{...i,ref:r})});Lh.displayName="PaginationItem";const Fh=f.forwardRef((e,r)=>{const t=nn(),n=E(t.getNextTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Fh.displayName="PaginationNextTrigger";const Dh=f.forwardRef((e,r)=>{const t=nn(),n=E(t.getPrevTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Dh.displayName="PaginationPrevTrigger";var A0=fe("pagination").parts("root","item","ellipsis","prevTrigger","nextTrigger"),no=A0.build(),oo=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`pagination:${e.id}`},getPrevTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.prevTrigger)??`pagination:${e.id}:prev`},getNextTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.nextTrigger)??`pagination:${e.id}:next`},getEllipsisId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.ellipsis)==null?void 0:n.call(t,r))??`pagination:${e.id}:ellipsis:${r}`},getItemId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.item)==null?void 0:n.call(t,r))??`pagination:${e.id}:item:${r}`}}),mi=(e,r)=>{let t=r-e+1;return Array.from({length:t},(n,o)=>o+e)},N0=e=>e.map(r=>typeof r=="number"?{type:"page",value:r}:{type:"ellipsis"}),vi="ellipsis",$0=e=>{const r=Math.min(2*e.siblingCount+5,e.totalPages),t=1,n=e.totalPages,o=Math.max(e.page-e.siblingCount,t),i=Math.min(e.page+e.siblingCount,n),s=o>t+1,a=i<n-1,l=r-2;if(!s&&a)return[...mi(1,l),vi,n];if(s&&!a){const d=mi(n-l+1,n);return[t,vi,...d]}if(s&&a){const d=mi(o,i);return[t,vi,...d,vi,n]}return mi(t,n)},L0=e=>N0($0(e));function F0(e,r,t){const n=e.context.totalPages,o=e.context.page,i=e.context.translations,s=e.context.count,a=e.context.previousPage,l=e.context.nextPage,c=e.context.pageRange,g=e.context.type==="button",u=o===1,h=o===n,v=L0(e.context);return{count:s,page:o,pageSize:e.context.pageSize,totalPages:n,pages:v,previousPage:a,nextPage:l,pageRange:c,slice(m){return m.slice(c.start,c.end)},setCount(m){r({type:"SET_COUNT",count:m})},setPageSize(m){r({type:"SET_PAGE_SIZE",size:m})},setPage(m){r({type:"SET_PAGE",page:m})},goToNextPage(){r({type:"NEXT_PAGE"})},goToPrevPage(){r({type:"PREVIOUS_PAGE"})},goToFirstPage(){r({type:"FIRST_PAGE"})},goToLastPage(){r({type:"LAST_PAGE"})},getRootProps(){return t.element({id:oo.getRootId(e.context),...no.root.attrs,dir:e.context.dir,"aria-label":i.rootLabel})},getEllipsisProps(m){return t.element({id:oo.getEllipsisId(e.context,m.index),...no.ellipsis.attrs,dir:e.context.dir})},getItemProps(m){var P;const b=m.value,y=b===e.context.page;return t.element({id:oo.getItemId(e.context,b),...no.item.attrs,dir:e.context.dir,"data-index":b,"data-selected":T(y),"aria-current":y?"page":void 0,"aria-label":(P=i.itemLabel)==null?void 0:P.call(i,{page:b,totalPages:n}),onClick(){r({type:"SET_PAGE",page:b})},...g&&{type:"button"}})},getPrevTriggerProps(){return t.element({id:oo.getPrevTriggerId(e.context),...no.prevTrigger.attrs,dir:e.context.dir,"data-disabled":T(u),"aria-label":i.prevTriggerLabel,onClick(){r({type:"PREVIOUS_PAGE"})},...g&&{disabled:u,type:"button"}})},getNextTriggerProps(){return t.element({id:oo.getNextTriggerId(e.context),...no.nextTrigger.attrs,dir:e.context.dir,"data-disabled":T(h),"aria-label":i.nextTriggerLabel,onClick(){r({type:"NEXT_PAGE"})},...g&&{disabled:h,type:"button"}})}}}var D0={rootLabel:"pagination",prevTriggerLabel:"previous page",nextTriggerLabel:"next page",itemLabel({page:e,totalPages:r}){return`${r>1&&e===r?"last page, ":""}page ${e}`}};function V0(e){const r=he(e);return Ce({id:"pagination",initial:"idle",context:{pageSize:10,siblingCount:1,page:1,type:"button",translations:{...D0,...r.translations},...r},watch:{pageSize:["setPageIfNeeded"]},computed:{totalPages:t=>Math.ceil(t.count/t.pageSize),previousPage:t=>t.page===1?null:t.page-1,nextPage:t=>t.page===t.totalPages?null:t.page+1,pageRange:t=>{const n=(t.page-1)*t.pageSize,o=Math.min(n+t.pageSize,t.count);return{start:n,end:o}},isValidPage:t=>t.page>=1&&t.page<=t.totalPages},on:{SET_COUNT:[{guard:"isValidCount",actions:["setCount","goToFirstPage"]},{actions:"setCount"}],SET_PAGE:{guard:"isValidPage",actions:"setPage"},SET_PAGE_SIZE:{actions:"setPageSize"},FIRST_PAGE:{actions:"goToFirstPage"},LAST_PAGE:{actions:"goToLastPage"},PREVIOUS_PAGE:{guard:"canGoToPrevPage",actions:"goToPrevPage"},NEXT_PAGE:{guard:"canGoToNextPage",actions:"goToNextPage"}},states:{idle:{}}},{guards:{isValidPage:(t,n)=>n.page>=1&&n.page<=t.totalPages,isValidCount:(t,n)=>t.page>n.count,canGoToNextPage:t=>t.page<t.totalPages,canGoToPrevPage:t=>t.page>1},actions:{setCount(t,n){t.count=n.count},setPage(t,n){_r.page(t,n.page)},setPageSize(t,n){_r.pageSize(t,n.size)},goToFirstPage(t){_r.page(t,1)},goToLastPage(t){_r.page(t,t.totalPages)},goToPrevPage(t){_r.page(t,t.page-1)},goToNextPage(t){_r.page(t,t.page+1)},setPageIfNeeded(t,n){t.isValidPage||_r.page(t,1)}}})}var M0=(e,r)=>Math.min(Math.max(e,1),r),_r={pageSize:(e,r)=>{var t;ye(e.pageSize,r)||(e.pageSize=r,(t=e.onPageSizeChange)==null||t.call(e,{pageSize:e.pageSize}))},page:(e,r)=>{var t;ye(e.page,r)||(e.page=M0(r,e.totalPages),(t=e.onPageChange)==null||t.call(e,{page:e.page,pageSize:e.pageSize}))}};ee()(["count","dir","getRootNode","id","ids","onPageChange","onPageSizeChange","page","pageSize","siblingCount","translations","type"]);ee()(["value","type"]);ee()(["index"]);const j0=e=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,page:e.defaultPage,...e},o={...n,page:e.page,onPageChange:q(e.onPageChange,{sync:!0})},[i,s]=xe(V0(n),{context:o});return F0(i,s,we)},Vh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["count","defaultPage","id","ids","onPageChange","onPageSizeChange","page","pageSize","siblingCount","translations","type"]),o=j0(t),i=E(o.getRootProps(),n);return p.jsx(Nh,{value:o,children:p.jsx(I.nav,{...i,ref:r})})});Vh.displayName="PaginationRoot";const Mh=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(Nh,{value:t,children:p.jsx(I.nav,{...o,ref:r})})});Mh.displayName="PaginationRootProvider";const[jh,Go]=U({name:"PinInputContext",hookName:"usePinInputContext",providerName:"<PinInputProvider />"}),_0=e=>e.children(Go()),_h=f.forwardRef((e,r)=>{const t=Go(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});_h.displayName="PinInputControl";const Bh=f.forwardRef((e,r)=>{const t=Go(),n=E(t.getHiddenInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});Bh.displayName="PinInputHiddenInput";const Hh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["index"]),o=Go(),i=E(o.getInputProps(t),n);return p.jsx(I.input,{...i,ref:r})});Hh.displayName="PinInputInput";const Gh=f.forwardRef((e,r)=>{const t=Go(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});Gh.displayName="PinInputLabel";var B0=fe("pinInput").parts("root","label","input","control"),bi=B0.build(),ue=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`pin-input:${e.id}`},getInputId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.input)==null?void 0:n.call(t,r))??`pin-input:${e.id}:${r}`},getHiddenInputId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenInput)??`pin-input:${e.id}:hidden`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`pin-input:${e.id}:label`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`pin-input:${e.id}:control`},getRootEl:e=>ue.getById(e,ue.getRootId(e)),getInputEls:e=>{const t=`input[data-ownedby=${CSS.escape(ue.getRootId(e))}]`;return Lt(ue.getRootEl(e),t)},getInputEl:(e,r)=>ue.getById(e,ue.getInputId(e,r)),getFocusedInputEl:e=>ue.getInputEls(e)[e.focusedIndex],getFirstInputEl:e=>ue.getInputEls(e)[0],getHiddenInputEl:e=>ue.getById(e,ue.getHiddenInputId(e))}),H0={numeric:/^[0-9]+$/,alphabetic:/^[A-Za-z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i};function G0(e,r){var t;return e.type?!!((t=H0[e.type])!=null&&t.test(r)):!0}function U0(e,r){return e.pattern?new RegExp(e.pattern,"g").test(r):G0(e,r)}function W0(e,r,t){const n=e.context.isValueComplete,o=e.context.invalid,i=e.context.focusedIndex,s=e.context.translations;function a(){var l;(l=ue.getFirstInputEl(e.context))==null||l.focus()}return{focus:a,value:e.context.value,valueAsString:e.context.valueAsString,complete:n,setValue(l){Array.isArray(l)||bo("[pin-input/setValue] value must be an array"),r({type:"VALUE.SET",value:l})},clearValue(){r({type:"VALUE.CLEAR"})},setValueAtIndex(l,c){r({type:"VALUE.SET",value:c,index:l})},getRootProps(){return t.element({dir:e.context.dir,...bi.root.attrs,id:ue.getRootId(e.context),"data-invalid":T(o),"data-disabled":T(e.context.disabled),"data-complete":T(n),"data-readonly":T(e.context.readOnly)})},getLabelProps(){return t.label({...bi.label.attrs,dir:e.context.dir,htmlFor:ue.getHiddenInputId(e.context),id:ue.getLabelId(e.context),"data-invalid":T(o),"data-disabled":T(e.context.disabled),"data-complete":T(n),"data-readonly":T(e.context.readOnly),onClick(l){l.preventDefault(),a()}})},getHiddenInputProps(){return t.input({"aria-hidden":!0,type:"text",tabIndex:-1,id:ue.getHiddenInputId(e.context),readOnly:e.context.readOnly,disabled:e.context.disabled,required:e.context.required,name:e.context.name,form:e.context.form,style:Qr,maxLength:e.context.valueLength,defaultValue:e.context.valueAsString})},getControlProps(){return t.element({...bi.control.attrs,dir:e.context.dir,id:ue.getControlId(e.context)})},getInputProps(l){const{index:c}=l,d=e.context.type==="numeric"?"tel":"text";return t.input({...bi.input.attrs,dir:e.context.dir,disabled:e.context.disabled,"data-disabled":T(e.context.disabled),"data-complete":T(n),id:ue.getInputId(e.context,c.toString()),"data-ownedby":ue.getRootId(e.context),"aria-label":s.inputLabel(c,e.context.valueLength),inputMode:e.context.otp||e.context.type==="numeric"?"numeric":"text","aria-invalid":Yt(o),"data-invalid":T(o),type:e.context.mask?"password":d,defaultValue:e.context.value[c]||"",readOnly:e.context.readOnly,autoCapitalize:"none",autoComplete:e.context.otp?"one-time-code":"off",placeholder:i===c?"":e.context.placeholder,onBeforeInput(g){try{const u=wC(g);U0(e.context,u)||(r({type:"VALUE.INVALID",value:u}),g.preventDefault()),u.length>2&&g.currentTarget.setSelectionRange(0,1,"forward")}catch{}},onChange(g){const u=Nu(g),{value:h}=g.currentTarget;if(u.inputType==="insertFromPaste"||h.length>2){r({type:"INPUT.PASTE",value:h}),g.currentTarget.value=h[0],g.preventDefault();return}if(u.inputType==="deleteContentBackward"){r("INPUT.BACKSPACE");return}r({type:"INPUT.CHANGE",value:h,index:c})},onKeyDown(g){if(g.defaultPrevented||Vo(g)||Yr(g))return;const h={Backspace(){r("INPUT.BACKSPACE")},Delete(){r("INPUT.DELETE")},ArrowLeft(){r("INPUT.ARROW_LEFT")},ArrowRight(){r("INPUT.ARROW_RIGHT")},Enter(){r("INPUT.ENTER")}}[er(g,e.context)];h&&(h(g),g.preventDefault())},onFocus(){r({type:"INPUT.FOCUS",index:c})},onBlur(){r({type:"INPUT.BLUR",index:c})}})}}}function z0(e){const r=he(e);return Ce({id:"pin-input",initial:"idle",context:{value:[],placeholder:"○",otp:!1,type:"numeric",...r,focusedIndex:-1,translations:{inputLabel:(t,n)=>`pin code ${t+1} of ${n}`,...r.translations}},computed:{valueLength:t=>t.value.length,filledValueLength:t=>t.value.filter(n=>(n==null?void 0:n.trim())!=="").length,isValueComplete:t=>t.valueLength===t.filledValueLength,valueAsString:t=>t.value.join(""),focusedValue:t=>t.value[t.focusedIndex]||""},entry:bp([{guard:"autoFocus",actions:["setupValue","setFocusIndexToFirst"]},{actions:["setupValue"]}]),watch:{focusedIndex:["focusInput","selectInputIfNeeded"],value:["syncInputElements"],isValueComplete:["invokeOnComplete","blurFocusedInputIfNeeded"]},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:"setFocusedIndex"}}},focused:{on:{"INPUT.CHANGE":[{guard:"isFinalValue",actions:["setFocusedValue","syncInputValue"]},{actions:["setFocusedValue","setNextFocusedIndex","syncInputValue"]}],"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.BLUR":{target:"idle",actions:"clearFocusedIndex"},"INPUT.DELETE":{guard:"hasValue",actions:"clearFocusedValue"},"INPUT.ARROW_LEFT":{actions:"setPrevFocusedIndex"},"INPUT.ARROW_RIGHT":{actions:"setNextFocusedIndex"},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:"requestFormSubmit"},"VALUE.INVALID":{actions:"invokeOnInvalid"}}}}},{guards:{autoFocus:t=>!!t.autoFocus,isValueEmpty:(t,n)=>n.value==="",hasValue:t=>t.value[t.focusedIndex]!=="",isValueComplete:t=>t.isValueComplete,isFinalValue:t=>t.filledValueLength+1===t.valueLength&&t.value.findIndex(n=>n.trim()==="")===t.focusedIndex,hasIndex:(t,n)=>n.index!==void 0,isDisabled:t=>!!t.disabled},actions:{setupValue(t){if(t.value.length)return;const n=ue.getInputEls(t),o=Array.from({length:n.length}).fill("");Uh(t,o)},focusInput(t){var n;t.focusedIndex!==-1&&((n=ue.getFocusedInputEl(t))==null||n.focus({preventScroll:!0}))},selectInputIfNeeded(t){!t.selectOnFocus||t.focusedIndex===-1||G(()=>{var n;(n=ue.getFocusedInputEl(t))==null||n.select()})},invokeOnComplete(t){var n;t.isValueComplete&&((n=t.onValueComplete)==null||n.call(t,{value:Array.from(t.value),valueAsString:t.valueAsString}))},invokeOnInvalid(t,n){var o;(o=t.onValueInvalid)==null||o.call(t,{value:n.value,index:t.focusedIndex})},clearFocusedIndex(t){t.focusedIndex=-1},setFocusedIndex(t,n){t.focusedIndex=n.index},setValue(t,n){hn.value(t,n.value)},setFocusedValue(t,n){const o=Ld(t.focusedValue,n.value);hn.valueAtIndex(t,t.focusedIndex,o)},revertInputValue(t){const n=ue.getFocusedInputEl(t);ue.setValue(n,t.focusedValue)},syncInputValue(t,n){const o=ue.getInputEl(t,n.index.toString());ue.setValue(o,t.value[n.index])},syncInputElements(t){ue.getInputEls(t).forEach((o,i)=>{ue.setValue(o,t.value[i])})},setPastedValue(t,n){G(()=>{const o=Math.min(t.focusedIndex,t.filledValueLength),i=o>0?t.valueAsString.substring(0,t.focusedIndex):"",s=n.value.substring(0,t.valueLength-o),a=i+s;hn.value(t,a.split(""))})},setValueAtIndex(t,n){const o=Ld(t.focusedValue,n.value);hn.valueAtIndex(t,n.index,o)},clearValue(t){const n=Array.from({length:t.valueLength}).fill("");hn.value(t,n)},clearFocusedValue(t){hn.valueAtIndex(t,t.focusedIndex,"")},setFocusIndexToFirst(t){t.focusedIndex=0},setNextFocusedIndex(t){t.focusedIndex=Math.min(t.focusedIndex+1,t.valueLength-1)},setPrevFocusedIndex(t){t.focusedIndex=Math.max(t.focusedIndex-1,0)},setLastValueFocusIndex(t){G(()=>{t.focusedIndex=Math.min(t.filledValueLength,t.valueLength-1)})},blurFocusedInputIfNeeded(t){t.blurOnComplete&&G(()=>{var n;(n=ue.getFocusedInputEl(t))==null||n.blur()})},requestFormSubmit(t){var o;if(!t.name||!t.isValueComplete)return;const n=ue.getHiddenInputEl(t);(o=n==null?void 0:n.form)==null||o.requestSubmit()}}})}function Uh(e,r){(Array.isArray(r)?r:r.split("").filter(Boolean)).forEach((n,o)=>{e.value[o]=n})}function Ld(e,r){let t=r;return e[0]===r[0]?t=r[1]:e[0]===r[1]&&(t=r[0]),t.split("")[t.length-1]}var Fd={change(e){var t;(t=e.onValueChange)==null||t.call(e,{value:Array.from(e.value),valueAsString:e.valueAsString});const r=ue.getHiddenInputEl(e);Za(r,{value:e.valueAsString})}},hn={value(e,r){ye(e.value,r)||(Uh(e,r),Fd.change(e))},valueAtIndex(e,r,t){ye(e.value[r],t)||(e.value[r]=t,Fd.change(e))}};const K0=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n=Ve(),o={id:f.useId(),ids:{label:n==null?void 0:n.ids.label,hiddenInput:n==null?void 0:n.ids.control},disabled:n==null?void 0:n.disabled,readOnly:n==null?void 0:n.readOnly,required:n==null?void 0:n.required,invalid:n==null?void 0:n.invalid,dir:t,getRootNode:r,value:e.defaultValue,...e},i={...o,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onValueComplete:q(e.onValueComplete),onValueInvalid:q(e.onValueInvalid)},[s,a]=xe(z0(o),{context:i});return W0(s,a,we)},Wh=f.forwardRef((e,r)=>{const[t,n]=D()(e,["autoFocus","blurOnComplete","defaultValue","disabled","form","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]),o=K0(t),i=E(o.getRootProps(),n);return p.jsx(jh,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Wh.displayName="PinInputRoot";const zh=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(jh,{value:t,children:p.jsx(I.div,{...o,ref:r})})});zh.displayName="PinInputRootProvider";const[Kh,jt]=U({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),qh=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getAnchorProps(),e);return p.jsx(I.div,{...n,ref:r})});qh.displayName="PopoverAnchor";const Yh=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getArrowProps(),e);return p.jsx(I.div,{...n,ref:r})});Yh.displayName="PopoverArrow";const Xh=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getArrowTipProps(),e);return p.jsx(I.div,{...n,ref:r})});Xh.displayName="PopoverArrowTip";const Gl=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getCloseTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Gl.displayName="PopoverCloseTrigger";const Ul=f.forwardRef((e,r)=>{const t=jt(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});Ul.displayName="PopoverContent";const Zh=e=>e.children(jt()),Jh=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getDescriptionProps(),e);return p.jsx(I.div,{...n,ref:r})});Jh.displayName="PopoverDescription";const Qh=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getIndicatorProps(),e);return p.jsx(I.div,{...n,ref:r})});Qh.displayName="PopoverIndicator";const em=f.forwardRef((e,r)=>{const t=jt(),n=Ze(),o=E(t.getPositionerProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:r})});em.displayName="PopoverPositioner";var q0=fe("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Gt=q0.build(),K=ke({getAnchorId:e=>{var r;return((r=e.ids)==null?void 0:r.anchor)??`popover:${e.id}:anchor`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`popover:${e.id}:trigger`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`popover:${e.id}:content`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`popover:${e.id}:popper`},getArrowId:e=>{var r;return((r=e.ids)==null?void 0:r.arrow)??`popover:${e.id}:arrow`},getTitleId:e=>{var r;return((r=e.ids)==null?void 0:r.title)??`popover:${e.id}:title`},getDescriptionId:e=>{var r;return((r=e.ids)==null?void 0:r.description)??`popover:${e.id}:desc`},getCloseTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.closeTrigger)??`popover:${e.id}:close`},getAnchorEl:e=>K.getById(e,K.getAnchorId(e)),getTriggerEl:e=>K.getById(e,K.getTriggerId(e)),getContentEl:e=>K.getById(e,K.getContentId(e)),getPositionerEl:e=>K.getById(e,K.getPositionerId(e)),getTitleEl:e=>K.getById(e,K.getTitleId(e)),getDescriptionEl:e=>K.getById(e,K.getDescriptionId(e)),getFocusableEls:e=>as(K.getContentEl(e)),getFirstFocusableEl:e=>K.getFocusableEls(e)[0]});function Y0(e,r,t){const n=e.matches("open"),o=e.context.currentPlacement,i=e.context.currentPortalled,s=e.context.renderedElements,a=Fn({...e.context.positioning,placement:o});return{portalled:i,open:n,setOpen(l){l!==n&&r(l?"OPEN":"CLOSE")},reposition(l={}){r({type:"POSITIONING.SET",options:l})},getArrowProps(){return t.element({id:K.getArrowId(e.context),...Gt.arrow.attrs,dir:e.context.dir,style:a.arrow})},getArrowTipProps(){return t.element({...Gt.arrowTip.attrs,dir:e.context.dir,style:a.arrowTip})},getAnchorProps(){return t.element({...Gt.anchor.attrs,dir:e.context.dir,id:K.getAnchorId(e.context)})},getTriggerProps(){return t.button({...Gt.trigger.attrs,dir:e.context.dir,type:"button","data-placement":o,id:K.getTriggerId(e.context),"aria-haspopup":"dialog","aria-expanded":n,"data-state":n?"open":"closed","aria-controls":K.getContentId(e.context),onPointerDown(l){Do()&&l.currentTarget.focus()},onClick(l){l.defaultPrevented||r("TOGGLE")},onBlur(l){r({type:"TRIGGER_BLUR",target:l.relatedTarget})}})},getIndicatorProps(){return t.element({...Gt.indicator.attrs,dir:e.context.dir,"data-state":n?"open":"closed"})},getPositionerProps(){return t.element({id:K.getPositionerId(e.context),...Gt.positioner.attrs,dir:e.context.dir,style:a.floating})},getContentProps(){return t.element({...Gt.content.attrs,dir:e.context.dir,id:K.getContentId(e.context),tabIndex:-1,role:"dialog",hidden:!n,"data-state":n?"open":"closed","data-expanded":T(n),"aria-labelledby":s.title?K.getTitleId(e.context):void 0,"aria-describedby":s.description?K.getDescriptionId(e.context):void 0,"data-placement":o})},getTitleProps(){return t.element({...Gt.title.attrs,id:K.getTitleId(e.context),dir:e.context.dir})},getDescriptionProps(){return t.element({...Gt.description.attrs,id:K.getDescriptionId(e.context),dir:e.context.dir})},getCloseTriggerProps(){return t.button({...Gt.closeTrigger.attrs,dir:e.context.dir,id:K.getCloseTriggerId(e.context),type:"button","aria-label":"close",onClick(l){l.defaultPrevented||r("CLOSE")}})}}}function X0(e){const r=he(e);return Ce({id:"popover",initial:r.open?"open":"closed",context:{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,positioning:{placement:"bottom",...r.positioning},currentPlacement:void 0,...r,renderedElements:{title:!0,description:!0}},computed:{currentPortalled:t=>!!t.modal||!!t.portalled},watch:{open:["toggleVisibility"]},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{activities:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:"reposition"}}}}},{guards:{isOpenControlled:t=>!!t["open.controlled"]},activities:{trackPositioning(t){t.currentPlacement=t.positioning.placement;const n=K.getAnchorEl(t)??K.getTriggerEl(t);return Mt(n,()=>K.getPositionerEl(t),{...t.positioning,defer:!0,onComplete(i){t.currentPlacement=i.placement}})},trackDismissableElement(t,n,{send:o}){const i=()=>K.getContentEl(t);let s=!0;return Dn(i,{pointerBlocking:t.modal,exclude:K.getTriggerEl(t),defer:!0,onEscapeKeyDown(a){var l;(l=t.onEscapeKeyDown)==null||l.call(t,a),!t.closeOnEscape&&a.preventDefault()},onInteractOutside(a){var l;(l=t.onInteractOutside)==null||l.call(t,a),!a.defaultPrevented&&(s=!(a.detail.focusable||a.detail.contextmenu),t.closeOnInteractOutside||a.preventDefault())},onPointerDownOutside:t.onPointerDownOutside,onFocusOutside:t.onFocusOutside,persistentElements:t.persistentElements,onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},proxyTabFocus(t){return t.modal||!t.portalled?void 0:XC(()=>K.getContentEl(t),{triggerElement:K.getTriggerEl(t),defer:!0,onFocus(o){o.focus({preventScroll:!0})}})},hideContentBelow(t){return t.modal?Xg(()=>[K.getContentEl(t),K.getTriggerEl(t)],{defer:!0}):void 0},preventScroll(t){if(t.modal)return ef(K.getDoc(t))},trapFocus(t){return t.modal?Qg(()=>K.getContentEl(t),{initialFocus:()=>Ro({root:K.getContentEl(t),getInitialEl:t.initialFocusEl,enabled:t.autoFocus})}):void 0}},actions:{reposition(t,n){const o=K.getAnchorEl(t)??K.getTriggerEl(t);Mt(o,()=>K.getPositionerEl(t),{...t.positioning,...n.options,defer:!0,listeners:!1,onComplete(s){t.currentPlacement=s.placement}})},checkRenderedElements(t){G(()=>{Object.assign(t.renderedElements,{title:!!K.getTitleEl(t),description:!!K.getDescriptionEl(t)})})},setInitialFocus(t){t.modal||G(()=>{const n=Ro({root:K.getContentEl(t),getInitialEl:t.initialFocusEl,enabled:t.autoFocus});n==null||n.focus({preventScroll:!0})})},setFinalFocus(t,n){var i;const o=n.restoreFocus??((i=n.previousEvent)==null?void 0:i.restoreFocus);o!=null&&!o||G(()=>{const s=K.getTriggerEl(t);s==null||s.focus({preventScroll:!0})})},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},toggleVisibility(t,n,{send:o}){o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}})}ee()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","open.controlled","open","persistentElements","portalled","positioning"]);const Z0=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,open:e.defaultOpen,"open.controlled":e.open!==void 0,...e},o={...n,open:e.open,onOpenChange:q(e.onOpenChange,{sync:!0})},[i,s]=xe(X0(n),{context:o});return Y0(i,s,we)},tm=e=>{const[r,{children:t,...n}]=st(e),o=Z0(n),i=Xe(E({present:o.open},r));return p.jsx(Kh,{value:o,children:p.jsx(at,{value:i,children:t})})},rm=e=>{const[r,{value:t,children:n}]=st(e),o=Xe(E({present:t.open},r));return p.jsx(Kh,{value:t,children:p.jsx(at,{value:o,children:n})})},nm=f.forwardRef((e,r)=>{const t=jt(),n=E(t.getTitleProps(),e);return p.jsx(I.div,{...n,ref:r})});nm.displayName="PopoverTitle";const om=f.forwardRef((e,r)=>{const t=jt(),n=Ze(),o=E({...t.getTriggerProps(),"aria-controls":n.unmounted?void 0:t.getTriggerProps()["aria-controls"]},e);return p.jsx(I.button,{...o,ref:r})});om.displayName="PopoverTrigger";const J0=e=>{var l;const{children:r,disabled:t}=e,[n,o]=f.useState((l=e.container)==null?void 0:l.current),i=f.useSyncExternalStore(eR,()=>!1,()=>!0),{getRootNode:s}=Ae();if(f.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||t)return p.jsx(p.Fragment,{children:r});const a=n??Q0(s);return p.jsx(p.Fragment,{children:f.Children.map(r,c=>By.createPortal(c,a))})},Q0=e=>{const r=e==null?void 0:e(),t=r.getRootNode();return To(t)?t:it(r).body},eR=()=>()=>{},[im,Lr]=U({name:"ProgressContext",hookName:"useProgressContext",providerName:"<ProgressProvider />"}),sm=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getCircleProps(),e);return p.jsx(I.svg,{ref:r,...n})});sm.displayName="ProgressCircle";const am=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getCircleRangeProps(),e);return p.jsx(I.circle,{ref:r,...n})});am.displayName="ProgressCircleRange";const lm=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getCircleTrackProps(),e);return p.jsx(I.circle,{ref:r,...n})});lm.displayName="ProgressCircleTrack";const tR=e=>e.children(Lr()),Wl=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});Wl.displayName="ProgressLabel";const cm=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getRangeProps(),e);return p.jsx(I.div,{...n,ref:r})});cm.displayName="ProgressRange";var rR=fe("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange"),cr=rR.build(),yi=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`progress-${e.id}`},getTrackId:e=>{var r;return((r=e.ids)==null?void 0:r.track)??`progress-${e.id}-track`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`progress-${e.id}-label`},getCircleId:e=>{var r;return((r=e.ids)==null?void 0:r.circle)??`progress-${e.id}-circle`}});function nR(e,r,t){const n=e.context.percent,o=e.context.isIndeterminate?"":`${n}%`,i=e.context.max,s=e.context.min,a=e.context.orientation,l=e.context.translations,c=e.context.isIndeterminate,d=e.context.value,g=l.value({value:d,max:i,percent:n,min:s}),u=oR(d,i),h={role:"progressbar","aria-label":g,"data-max":i,"aria-valuemin":s,"aria-valuemax":i,"aria-valuenow":d??void 0,"data-orientation":a,"data-state":u},v=iR(e.context);return{value:d,valueAsString:g,min:s,max:i,percent:n,percentAsString:o,indeterminate:c,setValue(m){r({type:"VALUE.SET",value:m})},setToMax(){r({type:"VALUE.SET",value:i})},setToMin(){r({type:"VALUE.SET",value:s})},getRootProps(){return t.element({dir:e.context.dir,...cr.root.attrs,id:yi.getRootId(e.context),"data-max":i,"data-value":d??void 0,"data-state":u,"data-orientation":a,style:{"--percent":c?void 0:n}})},getLabelProps(){return t.element({dir:e.context.dir,id:yi.getLabelId(e.context),...cr.label.attrs,"data-orientation":a})},getValueTextProps(){return t.element({dir:e.context.dir,"aria-live":"polite",...cr.valueText.attrs})},getTrackProps(){return t.element({dir:e.context.dir,id:yi.getTrackId(e.context),...cr.track.attrs,...h})},getRangeProps(){return t.element({dir:e.context.dir,...cr.range.attrs,"data-orientation":a,"data-state":u,style:{[e.context.isHorizontal?"width":"height"]:c?void 0:`${n}%`}})},getCircleProps(){return t.element({dir:e.context.dir,id:yi.getCircleId(e.context),...cr.circle.attrs,...h,...v.root})},getCircleTrackProps(){return t.element({dir:e.context.dir,"data-orientation":a,...cr.circleTrack.attrs,...v.track})},getCircleRangeProps(){return t.element({dir:e.context.dir,...cr.circleRange.attrs,...v.range,"data-state":u})},getViewProps(m){return t.element({dir:e.context.dir,...cr.view.attrs,"data-state":m.state,hidden:m.state!==u})}}}function oR(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function iR(e){const r={style:{"--radius":"calc(var(--size) / 2 - var(--thickness) / 2)",cx:"calc(var(--size) / 2)",cy:"calc(var(--size) / 2)",r:"var(--radius)",fill:"transparent",strokeWidth:"var(--thickness)"}};return{root:{style:{width:"var(--size)",height:"var(--size)"}},track:r,range:{opacity:e.value===0?0:void 0,style:{...r.style,"--percent":e.percent,"--circumference":"calc(2 * 3.14159 * var(--radius))","--offset":"calc(var(--circumference) * (100 - var(--percent)) / 100)",strokeDashoffset:"calc(var(--circumference) * ((100 - var(--percent)) / 100))",strokeDasharray:e.isIndeterminate?void 0:"var(--circumference)",transformOrigin:"center",transform:"rotate(-90deg)"}}}}function sR(e,r){return e+(r-e)/2}function aR(e){const r=he(e);return Ce({id:"progress",initial:"idle",context:{max:r.max??100,min:r.min??0,value:sR(r.min??0,r.max??100),orientation:"horizontal",translations:{value:({percent:t})=>t===-1?"loading...":`${t} percent`,...r.translations},...r},created:["validateContext"],computed:{isIndeterminate:t=>t.value===null,percent(t){return cl(t.value)?Math.round((t.value-t.min)/(t.max-t.min)*100):-1},isAtMax:t=>t.value===t.max,isHorizontal:t=>t.orientation==="horizontal",isRtl:t=>t.dir==="rtl"},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}}},{actions:{setValue:(t,n)=>{dR.value(t,n.value)},validateContext:t=>{if(t.value!=null){if(!zl(t.max))throw new Error(`[progress] The max value passed \`${t.max}\` is not a valid number`);if(!lR(t.value,t.max))throw new Error(`[progress] The value passed \`${t.value}\` exceeds the max value \`${t.max}\``);if(!cR(t.value,t.min))throw new Error(`[progress] The value passed \`${t.value}\` exceeds the min value \`${t.min}\``)}}}})}function zl(e){return cl(e)&&!isNaN(e)}function lR(e,r){return zl(e)&&e<=r}function cR(e,r){return zl(e)&&e>=r}var dR={value(e,r){var t;ye(e.value,r)||(e.value=r===null?null:Math.max(0,Math.min(r,e.max)),(t=e.onValueChange)==null||t.call(e,{value:r}))}};ee()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange"]);const uR=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,value:e.defaultValue,...e},o={...n,value:e.value,onValueChange:q(e.onValueChange,{sync:!0})},[i,s]=xe(aR(n),{context:o});return nR(i,s,we)},Kl=f.forwardRef((e,r)=>{const[t,n]=D()(e,["defaultValue","id","ids","max","min","onValueChange","orientation","translations","value"]),o=uR(t),i=E(o.getRootProps(),n);return p.jsx(im,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Kl.displayName="ProgressRoot";const ql=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(im,{value:t,children:p.jsx(I.div,{...o,ref:r})})});ql.displayName="ProgressRootProvider";const dm=f.forwardRef((e,r)=>{const t=Lr(),n=E(t.getTrackProps(),e);return p.jsx(I.div,{...n,ref:r})});dm.displayName="ProgressTrack";const Yl=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=Lr(),i=E(o.getValueTextProps(),n);return p.jsx(I.span,{...i,ref:r,children:t||o.percentAsString})});Yl.displayName="ProgressValueText";const[um,_n]=U({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),pm=e=>e.children(_n()),[pR,gm]=U({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[gR,Xl]=U({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),Zl=f.forwardRef((e,r)=>{const[t,n]=D()(e,["value","disabled","invalid"]),o=_n(),i=E(o.getItemProps(t),n),s=o.getItemState(t);return p.jsx(pR,{value:s,children:p.jsx(gR,{value:t,children:p.jsx(I.label,{...i,ref:r})})})});Zl.displayName="RadioGroupItem";const Jl=e=>e.children(gm()),Ps=f.forwardRef((e,r)=>{const t=_n(),n=Xl(),o=E(t.getItemControlProps(n),e);return p.jsx(I.div,{...o,ref:r})});Ps.displayName="RadioGroupItemControl";const Ql=f.forwardRef((e,r)=>{const t=_n(),n=Xl(),o=E(t.getItemHiddenInputProps(n),e);return p.jsx(I.input,{...o,ref:r})});Ql.displayName="RadioGroupItemHiddenInput";const ec=f.forwardRef((e,r)=>{const t=_n(),n=Xl(),o=E(t.getItemTextProps(n),e);return p.jsx(I.span,{...o,ref:r})});ec.displayName="RadioGroupItemText";const tc=f.forwardRef((e,r)=>{const t=_n(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});tc.displayName="RadioGroupLabel";var wa,Gr=new Map,fR=e=>e.getBoundingClientRect();function fm(e,r){const{scope:t="rect",getRect:n=fR,onChange:o}=r,i=hR({scope:t,getRect:n}),s=Gr.get(e);return s?(s.callbacks.push(o),o(n(e))):(Gr.set(e,{rect:{},callbacks:[o]}),Gr.size===1&&(wa=requestAnimationFrame(i))),function(){const l=Gr.get(e);if(!l)return;const c=l.callbacks.indexOf(o);c>-1&&l.callbacks.splice(c,1),l.callbacks.length===0&&(Gr.delete(e),Gr.size===0&&cancelAnimationFrame(wa))}}function hR(e){const{scope:r,getRect:t}=e,n=vR(r);return function o(){const i=[];Gr.forEach((s,a)=>{const l=t(a);n(s.rect,l)||(s.rect=l,i.push(s))}),i.forEach(s=>{s.callbacks.forEach(a=>a(s.rect))}),wa=requestAnimationFrame(o)}}var hm=(e,r)=>e.width===r.width&&e.height===r.height,mm=(e,r)=>e.top===r.top&&e.left===r.left,mR=(e,r)=>hm(e,r)&&mm(e,r);function vR(e){return e==="size"?hm:e==="position"?mm:mR}var bR=fe("radio-group").parts("root","label","item","itemText","itemControl","indicator"),mn=bR.build(),ne=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`radio-group:${e.id}`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`radio-group:${e.id}:label`},getItemId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.item)==null?void 0:n.call(t,r))??`radio-group:${e.id}:radio:${r}`},getItemHiddenInputId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemHiddenInput)==null?void 0:n.call(t,r))??`radio-group:${e.id}:radio:input:${r}`},getItemControlId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemControl)==null?void 0:n.call(t,r))??`radio-group:${e.id}:radio:control:${r}`},getItemLabelId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemLabel)==null?void 0:n.call(t,r))??`radio-group:${e.id}:radio:label:${r}`},getIndicatorId:e=>{var r;return((r=e.ids)==null?void 0:r.indicator)??`radio-group:${e.id}:indicator`},getRootEl:e=>ne.getById(e,ne.getRootId(e)),getItemHiddenInputEl:(e,r)=>ne.getById(e,ne.getItemHiddenInputId(e,r)),getIndicatorEl:e=>ne.getById(e,ne.getIndicatorId(e)),getFirstEnabledInputEl:e=>{var r;return(r=ne.getRootEl(e))==null?void 0:r.querySelector("input:not(:disabled)")},getFirstEnabledAndCheckedInputEl:e=>{var r;return(r=ne.getRootEl(e))==null?void 0:r.querySelector("input:not(:disabled):checked")},getInputEls:e=>{const t=`input[type=radio][data-ownedby='${CSS.escape(ne.getRootId(e))}']:not([disabled])`;return Lt(ne.getRootEl(e),t)},getActiveRadioEl:e=>{if(e.value)return ne.getById(e,ne.getItemId(e,e.value))},getOffsetRect:e=>({left:(e==null?void 0:e.offsetLeft)??0,top:(e==null?void 0:e.offsetTop)??0,width:(e==null?void 0:e.offsetWidth)??0,height:(e==null?void 0:e.offsetHeight)??0}),getRectById:(e,r)=>{const t=ne.getById(e,ne.getItemId(e,r));if(t)return ne.resolveRect(ne.getOffsetRect(t))},resolveRect:e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`})});function yR(e,r,t){const n=e.context.isDisabled,o=e.context.readOnly;function i(l){return{invalid:!!l.invalid,disabled:!!l.disabled||n,checked:e.context.value===l.value,focused:e.context.focusedValue===l.value,hovered:e.context.hoveredValue===l.value,active:e.context.activeValue===l.value}}function s(l){const c=i(l);return{"data-focus":T(c.focused),"data-focus-visible":T(c.focused&&e.context.focusVisible),"data-disabled":T(c.disabled),"data-readonly":T(o),"data-state":c.checked?"checked":"unchecked","data-hover":T(c.hovered),"data-invalid":T(c.invalid),"data-orientation":e.context.orientation,"data-ssr":T(e.context.ssr)}}const a=()=>{const l=ne.getFirstEnabledAndCheckedInputEl(e.context);if(l){l.focus();return}const c=ne.getFirstEnabledInputEl(e.context);c==null||c.focus()};return{focus:a,value:e.context.value,setValue(l){r({type:"SET_VALUE",value:l,isTrusted:!1})},clearValue(){r({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps(){return t.element({...mn.root.attrs,role:"radiogroup",id:ne.getRootId(e.context),"aria-labelledby":ne.getLabelId(e.context),"data-orientation":e.context.orientation,"data-disabled":T(n),"aria-orientation":e.context.orientation,dir:e.context.dir,style:{position:"relative"}})},getLabelProps(){return t.element({...mn.label.attrs,dir:e.context.dir,"data-orientation":e.context.orientation,"data-disabled":T(n),id:ne.getLabelId(e.context),onClick:a})},getItemState:i,getItemProps(l){const c=i(l);return t.label({...mn.item.attrs,dir:e.context.dir,id:ne.getItemId(e.context,l.value),htmlFor:ne.getItemHiddenInputId(e.context,l.value),...s(l),onPointerMove(){c.disabled||c.hovered||r({type:"SET_HOVERED",value:l.value,hovered:!0})},onPointerLeave(){c.disabled||r({type:"SET_HOVERED",value:null})},onPointerDown(d){c.disabled||(c.focused&&d.pointerType==="mouse"&&d.preventDefault(),r({type:"SET_ACTIVE",value:l.value,active:!0}))},onPointerUp(){c.disabled||r({type:"SET_ACTIVE",value:null})}})},getItemTextProps(l){return t.element({...mn.itemText.attrs,dir:e.context.dir,id:ne.getItemLabelId(e.context,l.value),...s(l)})},getItemControlProps(l){const c=i(l);return t.element({...mn.itemControl.attrs,dir:e.context.dir,id:ne.getItemControlId(e.context,l.value),"data-active":T(c.active),"aria-hidden":!0,...s(l)})},getItemHiddenInputProps(l){const c=i(l);return t.input({"data-ownedby":ne.getRootId(e.context),id:ne.getItemHiddenInputId(e.context,l.value),type:"radio",name:e.context.name||e.context.id,form:e.context.form,value:l.value,onClick(d){if(o){d.preventDefault();return}d.currentTarget.checked&&r({type:"SET_VALUE",value:l.value,isTrusted:!0})},onBlur(){r({type:"SET_FOCUSED",value:null,focused:!1,focusVisible:!1})},onFocus(){const d=kn();r({type:"SET_FOCUSED",value:l.value,focused:!0,focusVisible:d})},onKeyDown(d){d.defaultPrevented||d.key===" "&&r({type:"SET_ACTIVE",value:l.value,active:!0})},onKeyUp(d){d.defaultPrevented||d.key===" "&&r({type:"SET_ACTIVE",value:null})},disabled:c.disabled,defaultChecked:c.checked,style:Qr})},getIndicatorProps(){var l,c,d,g;return t.element({id:ne.getIndicatorId(e.context),...mn.indicator.attrs,dir:e.context.dir,hidden:e.context.value==null,"data-disabled":T(n),"data-orientation":e.context.orientation,style:{"--transition-property":"left, top, width, height","--left":(l=e.context.indicatorRect)==null?void 0:l.left,"--top":(c=e.context.indicatorRect)==null?void 0:c.top,"--width":(d=e.context.indicatorRect)==null?void 0:d.width,"--height":(g=e.context.indicatorRect)==null?void 0:g.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:e.context.canIndicatorTransition?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[e.context.orientation==="horizontal"?"left":"top"]:e.context.orientation==="horizontal"?"var(--left)":"var(--top)"}})}}}var{not:PR}=At;function CR(e){const r=he(e);return Ce({id:"radio",initial:"idle",context:{value:null,activeValue:null,focusedValue:null,hoveredValue:null,disabled:!1,orientation:"vertical",...r,indicatorRect:{},canIndicatorTransition:!1,fieldsetDisabled:!1,focusVisible:!1,ssr:!0},computed:{isDisabled:t=>!!t.disabled||t.fieldsetDisabled},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],activities:["trackFormControlState","trackFocusVisible"],watch:{value:["setIndicatorTransition","syncIndicatorRect","syncInputElements"]},on:{SET_VALUE:[{guard:PR("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:"setHovered"},SET_ACTIVE:{actions:"setActive"},SET_FOCUSED:{actions:"setFocused"}},states:{idle:{}}},{guards:{isTrusted:(t,n)=>!!n.isTrusted},activities:{trackFormControlState(t,n,{send:o,initialContext:i}){return Jr(ne.getRootEl(t),{onFieldsetDisabledChange(s){t.fieldsetDisabled=s},onFormReset(){o({type:"SET_VALUE",value:i.value})}})},trackFocusVisible(t){return bs({root:ne.getRootNode(t)})}},actions:{setValue(t,n){IR.value(t,n.value)},setHovered(t,n){t.hoveredValue=n.value},setActive(t,n){t.activeValue=n.value},setFocused(t,n){t.focusedValue=n.value,t.focusVisible=n.focusVisible},syncInputElements(t){ne.getInputEls(t).forEach(o=>{o.checked=o.value===t.value})},setIndicatorTransition(t){t.canIndicatorTransition=ft(t.value)},cleanupObserver(t){var n;(n=t.indicatorCleanup)==null||n.call(t)},syncSsr(t){t.ssr=!1},syncIndicatorRect(t){var i;if((i=t.indicatorCleanup)==null||i.call(t),!ne.getIndicatorEl(t))return;const n=t.value,o=ne.getActiveRadioEl(t);if(n==null||!o){t.indicatorRect={};return}t.indicatorCleanup=fm(o,{getRect(s){return ne.getOffsetRect(s)},onChange(s){t.indicatorRect=ne.resolveRect(s),ji(()=>{t.canIndicatorTransition=!1})}})},dispatchChangeEvent(t){ne.getInputEls(t).forEach(o=>{const i=o.value===t.value;i!==o.checked&&Ja(o,{checked:i})})}}})}var ER={change:e=>{var r;e.value!=null&&((r=e.onValueChange)==null||r.call(e,{value:e.value}))}},IR={value:(e,r)=>{ye(e.value,r)||(e.value=r,ER.change(e))}};ee()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value"]);ee()(["value","disabled","invalid"]);const TR=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,value:e.defaultValue,...e},o={...n,value:e.value,onValueChange:q(e.onValueChange,{sync:!0})},[i,s]=xe(CR(n),{context:o});return yR(i,s,we)},rc=f.forwardRef((e,r)=>{const[t,n]=D()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),o=TR(t),i=E(o.getRootProps(),n);return p.jsx(um,{value:o,children:p.jsx(I.div,{...i,ref:r})})});rc.displayName="RadioGroupRoot";const nc=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(um,{value:t,children:p.jsx(I.div,{...o,ref:r})})});nc.displayName="RadioGroupRootProvider";const[vm,ct]=U({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),bm=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getClearTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});bm.displayName="SelectClearTrigger";const ym=f.forwardRef((e,r)=>{const t=ct(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});ym.displayName="SelectContent";const wR=e=>e.children(ct()),Pm=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});Pm.displayName="SelectControl";const Cm=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getHiddenSelectProps(),e),o=t.value.length===0,i=Ve();return p.jsxs(I.select,{"aria-describedby":i==null?void 0:i.ariaDescribedby,...n,ref:r,children:[o&&p.jsx("option",{value:""}),t.collection.items.map((s,a)=>p.jsx("option",{value:t.collection.getItemValue(s)??"",disabled:t.collection.getItemDisabled(s),children:t.collection.stringifyItem(s)},a))]})});Cm.displayName="SelectHiddenSelect";const Em=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getIndicatorProps(),e);return p.jsx(I.div,{...n,ref:r})});Em.displayName="SelectIndicator";const[xR,SR]=U({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[RR,Im]=U({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),Tm=f.forwardRef((e,r)=>{const[t,n]=D()(e,["item","persistFocus"]),o=ct(),i=E(o.getItemProps(t),n),s=o.getItemState(t);return p.jsx(RR,{value:t,children:p.jsx(xR,{value:s,children:p.jsx(I.div,{...i,ref:r})})})});Tm.displayName="SelectItem";const OR=e=>e.children(SR()),[kR,AR]=U({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),wm=f.forwardRef((e,r)=>{const t=f.useId(),[n,o]=D()(e,["id"]),i={id:t,...n},s=ct(),a=E(s.getItemGroupProps(i),o);return p.jsx(kR,{value:i,children:p.jsx(I.div,{...a,ref:r})})});wm.displayName="SelectItemGroup";const xm=f.forwardRef((e,r)=>{const t=ct(),n=AR(),o=E(t.getItemGroupLabelProps({htmlFor:n.id}),e);return p.jsx(I.div,{...o,ref:r})});xm.displayName="SelectItemGroupLabel";const Sm=f.forwardRef((e,r)=>{const t=ct(),n=Im(),o=E(t.getItemIndicatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});Sm.displayName="SelectItemIndicator";const Rm=f.forwardRef((e,r)=>{const t=ct(),n=Im(),o=E(t.getItemTextProps(n),e);return p.jsx(I.span,{...o,ref:r})});Rm.displayName="SelectItemText";const Om=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});Om.displayName="SelectLabel";const km=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});km.displayName="SelectPositioner";var NR=fe("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),nt=NR.build(),Am=e=>Oe(new qg(e));Am.empty=()=>Oe(new qg({items:[]}));var H=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`select:${e.id}`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`select:${e.id}:content`},getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`select:${e.id}:trigger`},getClearTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.clearTrigger)??`select:${e.id}:clear-trigger`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`select:${e.id}:label`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`select:${e.id}:control`},getItemId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.item)==null?void 0:n.call(t,r))??`select:${e.id}:option:${r}`},getHiddenSelectId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenSelect)??`select:${e.id}:select`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`select:${e.id}:positioner`},getItemGroupId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemGroup)==null?void 0:n.call(t,r))??`select:${e.id}:optgroup:${r}`},getItemGroupLabelId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.itemGroupLabel)==null?void 0:n.call(t,r))??`select:${e.id}:optgroup-label:${r}`},getHiddenSelectEl:e=>H.getById(e,H.getHiddenSelectId(e)),getContentEl:e=>H.getById(e,H.getContentId(e)),getControlEl:e=>H.getById(e,H.getControlId(e)),getTriggerEl:e=>H.getById(e,H.getTriggerId(e)),getClearTriggerEl:e=>H.getById(e,H.getClearTriggerId(e)),getPositionerEl:e=>H.getById(e,H.getPositionerId(e)),getHighlightedOptionEl(e){return e.highlightedValue?H.getById(e,H.getItemId(e,e.highlightedValue)):null}});function $R(e,r,t){const n=e.context.isDisabled,o=e.context.invalid,i=e.context.readOnly,s=e.context.isInteractive,a=e.context.composite,l=e.hasTag("open"),c=e.matches("focused"),d=e.context.highlightedValue,g=e.context.highlightedItem,u=e.context.selectedItems,h=e.context.isTypingAhead,v=e.context.collection,m=d?H.getItemId(e.context,d):void 0;function b(P){const C=v.getItemDisabled(P.item),x=v.getItemValue(P.item);return{value:x,disabled:!!(n||C),highlighted:d===x,selected:e.context.value.includes(x)}}const y=Fn({...e.context.positioning,placement:e.context.currentPlacement});return{open:l,focused:c,empty:e.context.value.length===0,highlightedItem:g,highlightedValue:d,selectedItems:u,hasSelectedItems:e.context.hasSelectedItems,value:e.context.value,valueAsString:e.context.valueAsString,collection:v,multiple:!!e.context.multiple,disabled:!!n,setCollection(P){r({type:"COLLECTION.SET",value:P})},reposition(P={}){r({type:"POSITIONING.SET",options:P})},focus(){var P;(P=H.getTriggerEl(e.context))==null||P.focus({preventScroll:!0})},setOpen(P){P!==l&&r(P?"OPEN":"CLOSE")},selectValue(P){r({type:"ITEM.SELECT",value:P})},setValue(P){r({type:"VALUE.SET",value:P})},selectAll(){r({type:"VALUE.SET",value:v.getValues()})},highlightValue(P){r({type:"HIGHLIGHTED_VALUE.SET",value:P})},clearValue(P){r(P?{type:"ITEM.CLEAR",value:P}:{type:"VALUE.CLEAR"})},getItemState:b,getRootProps(){return t.element({...nt.root.attrs,dir:e.context.dir,id:H.getRootId(e.context),"data-invalid":T(o),"data-readonly":T(i)})},getLabelProps(){return t.label({dir:e.context.dir,id:H.getLabelId(e.context),...nt.label.attrs,"data-disabled":T(n),"data-invalid":T(o),"data-readonly":T(i),htmlFor:H.getHiddenSelectId(e.context),onClick(P){var C;P.defaultPrevented||n||(C=H.getTriggerEl(e.context))==null||C.focus({preventScroll:!0})}})},getControlProps(){return t.element({...nt.control.attrs,dir:e.context.dir,id:H.getControlId(e.context),"data-state":l?"open":"closed","data-focus":T(c),"data-disabled":T(n),"data-invalid":T(o)})},getValueTextProps(){return t.element({...nt.valueText.attrs,dir:e.context.dir,"data-disabled":T(n),"data-invalid":T(o),"data-focus":T(c)})},getTriggerProps(){return t.button({id:H.getTriggerId(e.context),disabled:n,dir:e.context.dir,type:"button",role:"combobox","aria-controls":H.getContentId(e.context),"aria-expanded":l,"aria-haspopup":"listbox","data-state":l?"open":"closed","aria-invalid":o,"aria-labelledby":H.getLabelId(e.context),...nt.trigger.attrs,"data-disabled":T(n),"data-invalid":T(o),"data-readonly":T(i),"data-placement":e.context.currentPlacement,"data-placeholder-shown":T(!e.context.hasSelectedItems),onClick(P){s&&(P.defaultPrevented||r({type:"TRIGGER.CLICK"}))},onFocus(){r("TRIGGER.FOCUS")},onBlur(){r("TRIGGER.BLUR")},onKeyDown(P){if(P.defaultPrevented||!s)return;const x={ArrowUp(){r({type:"TRIGGER.ARROW_UP"})},ArrowDown(w){r({type:w.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){r({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){r({type:"TRIGGER.ARROW_RIGHT"})},Home(){r({type:"TRIGGER.HOME"})},End(){r({type:"TRIGGER.END"})},Enter(){r({type:"TRIGGER.ENTER"})},Space(w){r(h?{type:"TRIGGER.TYPEAHEAD",key:w.key}:{type:"TRIGGER.ENTER"})}}[er(P,e.context)];if(x){x(P),P.preventDefault();return}Oo.isValidEvent(P)&&(r({type:"TRIGGER.TYPEAHEAD",key:P.key}),P.preventDefault())}})},getIndicatorProps(){return t.element({...nt.indicator.attrs,dir:e.context.dir,"aria-hidden":!0,"data-state":l?"open":"closed","data-disabled":T(n),"data-invalid":T(o),"data-readonly":T(i)})},getItemProps(P){const C=b(P);return t.element({id:H.getItemId(e.context,C.value),role:"option",...nt.item.attrs,dir:e.context.dir,"data-value":C.value,"aria-selected":C.selected,"data-state":C.selected?"checked":"unchecked","data-highlighted":T(C.highlighted),"data-disabled":T(C.disabled),"aria-disabled":Yt(C.disabled),onPointerMove(x){C.disabled||x.pointerType!=="mouse"||C.value!==e.context.highlightedValue&&r({type:"ITEM.POINTER_MOVE",value:C.value})},onClick(x){x.defaultPrevented||C.disabled||r({type:"ITEM.CLICK",src:"pointerup",value:C.value})},onPointerLeave(x){C.disabled||P.persistFocus||x.pointerType!=="mouse"||!e.previousEvent.type.includes("POINTER")||r({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(P){const C=b(P);return t.element({...nt.itemText.attrs,"data-state":C.selected?"checked":"unchecked","data-disabled":T(C.disabled),"data-highlighted":T(C.highlighted)})},getItemIndicatorProps(P){const C=b(P);return t.element({"aria-hidden":!0,...nt.itemIndicator.attrs,"data-state":C.selected?"checked":"unchecked",hidden:!C.selected})},getItemGroupLabelProps(P){const{htmlFor:C}=P;return t.element({...nt.itemGroupLabel.attrs,id:H.getItemGroupLabelId(e.context,C),role:"group",dir:e.context.dir})},getItemGroupProps(P){const{id:C}=P;return t.element({...nt.itemGroup.attrs,"data-disabled":T(n),id:H.getItemGroupId(e.context,C),"aria-labelledby":H.getItemGroupLabelId(e.context,C),dir:e.context.dir})},getClearTriggerProps(){return t.button({...nt.clearTrigger.attrs,id:H.getClearTriggerId(e.context),type:"button","aria-label":"Clear value","data-invalid":T(o),disabled:n,hidden:!e.context.hasSelectedItems,dir:e.context.dir,onClick(P){P.defaultPrevented||r("CLEAR.CLICK")}})},getHiddenSelectProps(){return t.select({name:e.context.name,form:e.context.form,disabled:n,multiple:e.context.multiple,required:e.context.required,"aria-hidden":!0,id:H.getHiddenSelectId(e.context),defaultValue:e.context.multiple?e.context.value:e.context.value[0],style:Qr,tabIndex:-1,onFocus(){var P;(P=H.getTriggerEl(e.context))==null||P.focus({preventScroll:!0})},"aria-labelledby":H.getLabelId(e.context)})},getPositionerProps(){return t.element({...nt.positioner.attrs,dir:e.context.dir,id:H.getPositionerId(e.context),style:y.floating})},getContentProps(){return t.element({hidden:!l,dir:e.context.dir,id:H.getContentId(e.context),role:a?"listbox":"dialog",...nt.content.attrs,"data-state":l?"open":"closed","data-placement":e.context.currentPlacement,"data-activedescendant":m,"aria-activedescendant":a?m:void 0,"aria-multiselectable":e.context.multiple&&a?!0:void 0,"aria-labelledby":H.getLabelId(e.context),tabIndex:0,onKeyDown(P){if(!s||!xo(P))return;if(P.key==="Tab"&&!Vu(P)){P.preventDefault();return}const C={ArrowUp(){r({type:"CONTENT.ARROW_UP"})},ArrowDown(){r({type:"CONTENT.ARROW_DOWN"})},Home(){r({type:"CONTENT.HOME"})},End(){r({type:"CONTENT.END"})},Enter(){r({type:"ITEM.CLICK",src:"keydown.enter"})},Space(A){var O;h?r({type:"CONTENT.TYPEAHEAD",key:A.key}):(O=C.Enter)==null||O.call(C,A)}},x=C[er(P)];if(x){x(P),P.preventDefault();return}const w=He(P);ss(w)||Oo.isValidEvent(P)&&(r({type:"CONTENT.TYPEAHEAD",key:P.key}),P.preventDefault())}})},getListProps(){return t.element({...nt.list.attrs,tabIndex:0,role:a?void 0:"listbox","aria-labelledby":H.getTriggerId(e.context),"aria-activedescendant":a?void 0:m,"aria-multiselectable":!a&&e.context.multiple?!0:void 0})}}}var{and:io,not:Br,or:LR}=At;function FR(e){const r=he(e);return Ce({id:"select",context:{value:[],highlightedValue:null,loopFocus:!1,closeOnSelect:!r.multiple,disabled:!1,readOnly:!1,composite:!0,...r,highlightedItem:null,selectedItems:[],valueAsString:"",collection:r.collection??Am.empty(),typeahead:Oo.defaultOptions,fieldsetDisabled:!1,positioning:{placement:"bottom-start",gutter:8,...r.positioning}},computed:{hasSelectedItems:t=>t.value.length>0,isTypingAhead:t=>t.typeahead.keysSoFar!=="",isDisabled:t=>!!t.disabled||t.fieldsetDisabled,isInteractive:t=>!(t.isDisabled||t.readOnly)},initial:r.open?"open":"idle",created:["syncCollection"],entry:["syncSelectElement"],watch:{open:["toggleVisibility"],value:["syncSelectedItems","syncSelectElement"],highlightedValue:["syncHighlightedItem"],collection:["syncCollection"]},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]},"COLLECTION.SET":{actions:["setCollection"]}},activities:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:LR("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:io(Br("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:Br("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:io(Br("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:Br("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:Br("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:Br("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:Br("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],activities:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":{target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:io("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:io("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:io("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}}},{guards:{loop:t=>!!t.loopFocus,multiple:t=>!!t.multiple,hasSelectedItems:t=>!!t.hasSelectedItems,hasHighlightedItem:t=>t.highlightedValue!=null,isFirstItemHighlighted:t=>t.highlightedValue===t.collection.firstValue,isLastItemHighlighted:t=>t.highlightedValue===t.collection.lastValue,closeOnSelect:(t,n)=>!!(n.closeOnSelect??t.closeOnSelect),isOpenControlled:t=>!!t["open.controlled"],isTriggerClickEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="TRIGGER.CLICK"},isTriggerEnterEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="TRIGGER.ENTER"},isTriggerArrowUpEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="TRIGGER.ARROW_UP"},isTriggerArrowDownEvent:(t,n)=>{var o;return((o=n.previousEvent)==null?void 0:o.type)==="TRIGGER.ARROW_DOWN"}},activities:{trackFormControlState(t,n,{initialContext:o}){return Jr(H.getHiddenSelectEl(t),{onFieldsetDisabledChange(i){t.fieldsetDisabled=i},onFormReset(){Le.selectedItems(t,o.value)}})},trackDismissableElement(t,n,{send:o}){const i=()=>H.getContentEl(t);let s=!0;return Dn(i,{defer:!0,exclude:[H.getTriggerEl(t),H.getClearTriggerEl(t)],onFocusOutside:t.onFocusOutside,onPointerDownOutside:t.onPointerDownOutside,onInteractOutside(a){var l;(l=t.onInteractOutside)==null||l.call(t,a),s=!(a.detail.focusable||a.detail.contextmenu)},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:s})}})},computePlacement(t){return t.currentPlacement=t.positioning.placement,Mt(()=>H.getTriggerEl(t),()=>H.getPositionerEl(t),{defer:!0,...t.positioning,onComplete(i){t.currentPlacement=i.placement}})},scrollToHighlightedItem(t,n,{getState:o}){const i=a=>{if(t.highlightedValue==null||o().event.type.includes("POINTER"))return;const c=H.getHighlightedOptionEl(t),d=H.getContentEl(t);if(t.scrollToIndexFn){const g=t.collection.indexOf(t.highlightedValue);t.scrollToIndexFn({index:g,immediate:a});return}_u(c,{rootEl:d,block:"nearest"})};return G(()=>i(!0)),ls(()=>H.getContentEl(t),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{reposition(t,n){const o=()=>H.getPositionerEl(t);Mt(H.getTriggerEl(t),o,{...t.positioning,...n.options,defer:!0,listeners:!1,onComplete(i){t.currentPlacement=i.placement}})},toggleVisibility(t,n,{send:o}){o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})},highlightPreviousItem(t){if(t.highlightedValue==null)return;const n=t.collection.getPreviousValue(t.highlightedValue);Le.highlightedItem(t,n)},highlightNextItem(t){if(t.highlightedValue==null)return;const n=t.collection.getNextValue(t.highlightedValue);Le.highlightedItem(t,n)},highlightFirstItem(t){const n=t.collection.firstValue;Le.highlightedItem(t,n)},highlightLastItem(t){const n=t.collection.lastValue;Le.highlightedItem(t,n)},setInitialFocus(t){G(()=>{const n=Ro({root:H.getContentEl(t)});n==null||n.focus({preventScroll:!0})})},focusTriggerEl(t,n){var i;const o=n.restoreFocus??((i=n.previousEvent)==null?void 0:i.restoreFocus);o!=null&&!o||G(()=>{const s=H.getTriggerEl(t);s==null||s.focus({preventScroll:!0})})},selectHighlightedItem(t,n){let o=n.value??t.highlightedValue;if(o==null)return;const i=t.deselectable&&!t.multiple&&t.value.includes(o);o=i?null:o,Le.selectedItem(t,o,i)},highlightComputedFirstItem(t){const n=t.hasSelectedItems?t.collection.sort(t.value)[0]:t.collection.firstValue;Le.highlightedItem(t,n)},highlightComputedLastItem(t){const n=t.hasSelectedItems?t.collection.sort(t.value)[0]:t.collection.lastValue;Le.highlightedItem(t,n)},highlightFirstSelectedItem(t){if(!t.hasSelectedItems)return;const[n]=t.collection.sort(t.value);Le.highlightedItem(t,n)},highlightItem(t,n){Le.highlightedItem(t,n.value)},highlightMatchingItem(t,n){const o=t.collection.search(n.key,{state:t.typeahead,currentValue:t.highlightedValue});o!=null&&Le.highlightedItem(t,o)},setHighlightedItem(t,n){Le.highlightedItem(t,n.value)},clearHighlightedItem(t){Le.highlightedItem(t,null,!0)},selectItem(t,n){const o=t.deselectable&&!t.multiple&&t.value.includes(n.value),i=o?null:n.value;Le.selectedItem(t,i,o)},clearItem(t,n){const o=t.value.filter(i=>i!==n.value);Le.selectedItems(t,o)},setSelectedItems(t,n){Le.selectedItems(t,n.value)},clearSelectedItems(t){Le.selectedItems(t,[])},selectPreviousItem(t){const n=t.collection.getPreviousValue(t.value[0]);Le.selectedItem(t,n)},selectNextItem(t){const n=t.collection.getNextValue(t.value[0]);Le.selectedItem(t,n)},selectFirstItem(t){const n=t.collection.firstValue;Le.selectedItem(t,n)},selectLastItem(t){const n=t.collection.lastValue;Le.selectedItem(t,n)},selectMatchingItem(t,n){const o=t.collection.search(n.key,{state:t.typeahead,currentValue:t.value[0]});o!=null&&Le.selectedItem(t,o)},scrollContentToTop(t){var n;t.scrollToIndexFn?t.scrollToIndexFn({index:0,immediate:!0}):(n=H.getContentEl(t))==null||n.scrollTo(0,0)},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},syncSelectElement(t){const n=H.getHiddenSelectEl(t);if(n){if(t.value.length===0&&!t.multiple){n.selectedIndex=-1;return}for(const o of n.options)o.selected=t.value.includes(o.value)}},setCollection(t,n){t.collection=n.value},syncCollection(t){const n=t.collection.findMany(t.value),o=t.collection.stringifyItems(n);t.highlightedItem=t.collection.find(t.highlightedValue),t.selectedItems=n,t.valueAsString=o},syncSelectedItems(t){Xi.valueChange(t)},syncHighlightedItem(t){Xi.highlightChange(t)}}})}function DR(e){G(()=>{const r=H.getHiddenSelectEl(e);if(!r)return;const t=H.getWin(e),n=new t.Event("change",{bubbles:!0,composed:!0});r.dispatchEvent(n)})}var Xi={valueChange:e=>{const r=e.selectedItems;e.selectedItems=e.value.map(t=>{const n=r.find(o=>e.collection.getItemValue(o)===t);return n||e.collection.find(t)}),e.valueAsString=e.collection.stringifyItems(e.selectedItems)},highlightChange:e=>{e.highlightedItem=e.collection.find(e.highlightedValue)}},Pi={valueChange:e=>{var r;Xi.valueChange(e),(r=e.onValueChange)==null||r.call(e,{value:Array.from(e.value),items:Array.from(e.selectedItems)}),DR(e)},highlightChange:e=>{var r;Xi.highlightChange(e),(r=e.onHighlightChange)==null||r.call(e,{highlightedValue:e.highlightedValue,highlightedItem:e.highlightedItem,highlightedIndex:e.collection.indexOf(e.highlightedValue)})}},Le={selectedItem:(e,r,t=!1)=>{if(!ye(e.value,r)&&!(r==null&&!t)){if(r==null&&t){e.value=[],Pi.valueChange(e);return}e.value=e.multiple?ME(e.value,r):[r],Pi.valueChange(e)}},selectedItems:(e,r)=>{ye(e.value,r)||(e.value=r,Pi.valueChange(e))},highlightedItem:(e,r,t=!1)=>{ye(e.highlightedValue,r)||r==null&&!t||(e.highlightedValue=r??null,Pi.highlightChange(e))}};ee()(["closeOnSelect","collection","dir","disabled","deselectable","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","open.controlled","open","composite","positioning","required","readOnly","scrollToIndexFn","value"]);ee()(["item","persistFocus"]);ee()(["id"]);ee()(["htmlFor"]);const VR=e=>{const{collection:r,...t}=e,n=Te(),o=Ae(),i=Ve(),s={id:f.useId(),ids:{label:i==null?void 0:i.ids.label,hiddenSelect:i==null?void 0:i.ids.control},disabled:i==null?void 0:i.disabled,readOnly:i==null?void 0:i.readOnly,invalid:i==null?void 0:i.invalid,required:i==null?void 0:i.required,dir:n.dir,getRootNode:o.getRootNode,collection:r,open:e.defaultOpen,value:e.defaultValue,"open.controlled":e.open!==void 0,...t},a=(()=>{const{collection:g,...u}=s;return{...u,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onHighlightChange:q(e.onHighlightChange),onOpenChange:q(e.onOpenChange)}})(),[l,c,d]=xe(FR(s),{context:a});return f.useEffect(()=>{d.setContext({collection:r})},[r]),$R(l,c,we)},MR=(e,r)=>{const[t,n]=st(e),[o,i]=D()(n,["closeOnSelect","collection","composite","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),s=VR(o),a=Xe(E({present:s.open},t)),l=E(s.getRootProps(),i);return p.jsx(vm,{value:s,children:p.jsx(at,{value:a,children:p.jsx(I.div,{...l,ref:r})})})},jR=f.forwardRef(MR),_R=(e,r)=>{const[t,n]=st(e),[{value:o},i]=D()(n,["value"]),s=Xe(E({present:o.open},t)),a=E(o.getRootProps(),i);return p.jsx(vm,{value:o,children:p.jsx(at,{value:s,children:p.jsx(I.div,{...a,ref:r})})})},BR=f.forwardRef(_R),Nm=f.forwardRef((e,r)=>{const t=ct(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Nm.displayName="SelectTrigger";const $m=f.forwardRef((e,r)=>{const{children:t,placeholder:n,...o}=e,i=ct(),s=E(i.getValueTextProps(),o);return p.jsx(I.span,{...s,ref:r,children:t||i.valueAsString||n})});$m.displayName="SelectValueText";const[Lm,Nt]=U({name:"SliderContext",hookName:"useSliderContext",providerName:"<SliderProvider />"}),HR=e=>e.children(Nt()),Fm=f.forwardRef((e,r)=>{const t=Nt(),n=E(t.getControlProps(),e);return p.jsx(I.div,{...n,ref:r})});Fm.displayName="SliderControl";const[GR,Dm]=U({name:"SliderThumbPropsContext",hookName:"useSliderThumbPropsContext",providerName:"<SliderThumbPropsProvider />"}),Vm=f.forwardRef((e,r)=>{const t=Nt(),{index:n}=Dm(),o=E(t.getDraggingIndicatorProps({index:n}),e);return p.jsx(I.span,{...o,ref:r,children:e.children||t.getThumbValue(n)})});Vm.displayName="SliderDraggingIndicator";const Mm=f.forwardRef((e,r)=>{const t=Nt(),n=Dm(),o=E(t.getHiddenInputProps(n),e);return p.jsx(I.input,{...o,ref:r})});Mm.displayName="SliderHiddenInput";const jm=f.forwardRef((e,r)=>{const t=Nt(),n=E(t.getLabelProps(),e);return p.jsx(I.label,{...n,ref:r})});jm.displayName="SliderLabel";const _m=f.forwardRef((e,r)=>{const[t,n]=D()(e,["value"]),o=Nt(),i=E(o.getMarkerProps(t),n);return p.jsx(I.span,{...i,ref:r})});_m.displayName="SliderMarker";const Bm=f.forwardRef((e,r)=>{const t=Nt(),n=E(t.getMarkerGroupProps(),e);return p.jsx(I.div,{...n,ref:r})});Bm.displayName="SliderMarkerGroup";const Hm=f.forwardRef((e,r)=>{const t=Nt(),n=E(t.getRangeProps(),e);return p.jsx(I.div,{...n,ref:r})});Hm.displayName="SliderRange";function UR(e,r){if(!e){r(void 0);return}r({width:e.offsetWidth,height:e.offsetHeight});const t=e.ownerDocument.defaultView??window,n=new t.ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const[i]=o;let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}function WR(e){const{getNodes:r,observeMutation:t=!0,callback:n}=e,o=[];let i=null;function s(){const a=r();i=a[0];const l=a.map((c,d)=>UR(c,g=>{n(g,d)}));o.push(...l)}if(s(),t){const a=zR(i,s);o.push(a)}return()=>{o.forEach(a=>{a==null||a()})}}function zR(e,r){var o;if(!e||!e.parentElement)return;const t=((o=e.ownerDocument)==null?void 0:o.defaultView)??window,n=new t.MutationObserver(()=>{r()});return n.observe(e.parentElement,{childList:!0}),()=>{n.disconnect()}}var KR=fe("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"),Ut=KR.build();function qR(e){const r=e[0],t=e[e.length-1];return[r,t]}function YR(e){const[r,t]=qR(e.valuePercent);if(e.valuePercent.length===1){if(e.origin==="center"){const n=e.valuePercent[0]<50,o=n?`${e.valuePercent[0]}%`:"50%",i=n?"50%":`${100-e.valuePercent[0]}%`;return{start:o,end:i}}return{start:"0%",end:`${100-t}%`}}return{start:`${r}%`,end:`${100-t}%`}}function XR(e){return e.isVertical?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[e.isRtl?"right":"left"]:"var(--slider-range-start)",[e.isRtl?"left":"right"]:"var(--slider-range-end)"}}function ZR(e){const{height:r=0}=e.thumbSize??{},t=ha([e.min,e.max],[-r/2,r/2]);return parseFloat(t(e.value).toFixed(2))}function JR(e){const{width:r=0}=e.thumbSize??{};if(e.isRtl){const n=ha([e.max,e.min],[-r/2,r/2]);return-1*parseFloat(n(e.value).toFixed(2))}const t=ha([e.min,e.max],[-r/2,r/2]);return parseFloat(t(e.value).toFixed(2))}function QR(e,r){if(e.thumbAlignment==="center")return`${r}%`;const t=e.isVertical?ZR(e):JR(e);return`calc(${r}% - ${t}px)`}function Gm(e){let r=us(e.value,e.min,e.max)*100;return QR(e,r)}function Um(e){let r="visible";return e.thumbAlignment==="contain"&&!e.hasMeasuredThumbSize&&(r="hidden"),r}function eO(e,r){const t=e.isVertical?"bottom":"insetInlineStart";return{visibility:Um(e),position:"absolute",transform:"var(--slider-thumb-transform)",[t]:`var(--slider-thumb-offset-${r})`}}function tO(){return{touchAction:"none",userSelect:"none",WebkitUserSelect:"none",position:"relative"}}function rO(e){const r=YR(e);return{...e.value.reduce((n,o,i)=>{const s=Gm({...e,value:o});return{...n,[`--slider-thumb-offset-${i}`]:s}},{}),"--slider-thumb-transform":e.isVertical?"translateY(50%)":e.isRtl?"translateX(50%)":"translateX(-50%)","--slider-range-start":r.start,"--slider-range-end":r.end}}function nO(e,r){return{visibility:Um(e),position:"absolute",pointerEvents:"none",[e.isHorizontal?"insetInlineStart":"bottom"]:Gm({...e,value:r}),translate:"var(--tx) var(--ty)","--tx":e.isHorizontal?e.isRtl?"50%":"-50%":"0%","--ty":e.isHorizontal?"0%":"50%"}}function oO(){return{userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none",position:"relative"}}var iO={getRootStyle:rO,getControlStyle:tO,getThumbStyle:eO,getRangeStyle:XR,getMarkerStyle:nO,getMarkerGroupStyle:oO},X=ke({...iO,getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`slider:${e.id}`},getThumbId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.thumb)==null?void 0:n.call(t,r))??`slider:${e.id}:thumb:${r}`},getHiddenInputId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.hiddenInput)==null?void 0:n.call(t,r))??`slider:${e.id}:input:${r}`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`slider:${e.id}:control`},getTrackId:e=>{var r;return((r=e.ids)==null?void 0:r.track)??`slider:${e.id}:track`},getRangeId:e=>{var r;return((r=e.ids)==null?void 0:r.range)??`slider:${e.id}:range`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`slider:${e.id}:label`},getValueTextId:e=>{var r;return((r=e.ids)==null?void 0:r.valueText)??`slider:${e.id}:value-text`},getMarkerId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.marker)==null?void 0:n.call(t,r))??`slider:${e.id}:marker:${r}`},getRootEl:e=>X.getById(e,X.getRootId(e)),getThumbEl:(e,r)=>X.getById(e,X.getThumbId(e,r)),getHiddenInputEl:(e,r)=>X.getById(e,X.getHiddenInputId(e,r)),getControlEl:e=>X.getById(e,X.getControlId(e)),getElements:e=>Lt(X.getControlEl(e),"[role=slider]"),getFirstEl:e=>X.getElements(e)[0],getRangeEl:e=>X.getById(e,X.getRangeId(e)),getValueFromPoint(e,r){const t=X.getControlEl(e);if(!t)return;const o=aa(r,t).getPercentValue({orientation:e.orientation,dir:e.dir,inverted:{y:!0}});return dl(o,e.min,e.max,e.step)},dispatchChangeEvent(e){Array.from(e.value).forEach((t,n)=>{const o=X.getHiddenInputEl(e,n);o&&Za(o,{value:t})})}});function Dd(e,r){return r.map((t,n,o)=>xa({...e,value:o},t,n))}function Sr(e,r){return iI(e.value,e.min,e.max,e.minStepsBetweenThumbs)[r]}function xa(e,r,t){const n=Sr(e,t),o=Ui(r,e.min,e.max,e.step);return qe(o,n.min,n.max)}function sO(e,r,t){const n=r??e.focusedIndex,o=Sr(e,n),i=nI(n,{...o,step:t??e.step,values:e.value});return i[n]=qe(i[n],o.min,o.max),i}function aO(e,r,t){const n=r??e.focusedIndex,o=Sr(e,n),i=rI(n,{...o,step:t??e.step,values:e.value});return i[n]=qe(i[n],o.min,o.max),i}function lO(e,r){return oI(e.value,r)}function cO(e,r){for(let t=0;t<r.length;t++){const n=r[t];e[t]=n}}function dO(e,r,t){const n=e.context["aria-label"],o=e.context["aria-labelledby"],i=e.context.value,s=e.matches("focus"),a=e.matches("dragging"),l=e.context.isDisabled,c=e.context.invalid,d=e.context.isInteractive,g=e.context.orientation==="horizontal",u=e.context.orientation==="vertical";function h(m){return us(m,e.context.min,e.context.max)}function v(m){return dl(m,e.context.min,e.context.max,e.context.step)}return{value:e.context.value,dragging:a,focused:s,setValue(m){r({type:"SET_VALUE",value:m})},getThumbValue(m){return i[m]},setThumbValue(m,b){r({type:"SET_VALUE",index:m,value:b})},getValuePercent:h,getPercentValue:v,getThumbPercent(m){return h(i[m])},setThumbPercent(m,b){const y=v(b);r({type:"SET_VALUE",index:m,value:y})},getThumbMin(m){return Sr(e.context,m).min},getThumbMax(m){return Sr(e.context,m).max},increment(m){r({type:"INCREMENT",index:m})},decrement(m){r({type:"DECREMENT",index:m})},focus(){d&&r({type:"FOCUS",index:0})},getLabelProps(){return t.label({...Ut.label.attrs,dir:e.context.dir,"data-disabled":T(l),"data-orientation":e.context.orientation,"data-invalid":T(c),"data-dragging":T(a),"data-focus":T(s),id:X.getLabelId(e.context),htmlFor:X.getHiddenInputId(e.context,0),onClick(m){var b;d&&(m.preventDefault(),(b=X.getFirstEl(e.context))==null||b.focus())},style:{userSelect:"none",WebkitUserSelect:"none"}})},getRootProps(){return t.element({...Ut.root.attrs,"data-disabled":T(l),"data-orientation":e.context.orientation,"data-dragging":T(a),"data-invalid":T(c),"data-focus":T(s),id:X.getRootId(e.context),dir:e.context.dir,style:X.getRootStyle(e.context)})},getValueTextProps(){return t.element({...Ut.valueText.attrs,dir:e.context.dir,"data-disabled":T(l),"data-orientation":e.context.orientation,"data-invalid":T(c),"data-focus":T(s),id:X.getValueTextId(e.context)})},getTrackProps(){return t.element({...Ut.track.attrs,dir:e.context.dir,id:X.getTrackId(e.context),"data-disabled":T(l),"data-invalid":T(c),"data-dragging":T(a),"data-orientation":e.context.orientation,"data-focus":T(s),style:{position:"relative"}})},getThumbProps(m){var O,R;const{index:b=0,name:y}=m,P=i[b],C=Sr(e.context,b),x=(R=(O=e.context).getAriaValueText)==null?void 0:R.call(O,{value:P,index:b}),w=Array.isArray(n)?n[b]:n,A=Array.isArray(o)?o[b]:o;return t.element({...Ut.thumb.attrs,dir:e.context.dir,"data-index":b,"data-name":y,id:X.getThumbId(e.context,b),"data-disabled":T(l),"data-orientation":e.context.orientation,"data-focus":T(s&&e.context.focusedIndex===b),"data-dragging":T(a&&e.context.focusedIndex===b),draggable:!1,"aria-disabled":Yt(l),"aria-label":w,"aria-labelledby":A??X.getLabelId(e.context),"aria-orientation":e.context.orientation,"aria-valuemax":C.max,"aria-valuemin":C.min,"aria-valuenow":i[b],"aria-valuetext":x,role:"slider",tabIndex:l?void 0:0,style:X.getThumbStyle(e.context,b),onPointerDown(S){d&&(r({type:"THUMB_POINTER_DOWN",index:b}),S.stopPropagation())},onBlur(){d&&r("BLUR")},onFocus(){d&&r({type:"FOCUS",index:b})},onKeyDown(S){if(S.defaultPrevented||!d)return;const k=Mi(S)*e.context.step,V={ArrowUp(){g||r({type:"ARROW_INC",step:k,src:"ArrowUp"})},ArrowDown(){g||r({type:"ARROW_DEC",step:k,src:"ArrowDown"})},ArrowLeft(){u||r({type:"ARROW_DEC",step:k,src:"ArrowLeft"})},ArrowRight(){u||r({type:"ARROW_INC",step:k,src:"ArrowRight"})},PageUp(){r({type:"ARROW_INC",step:k,src:"PageUp"})},PageDown(){r({type:"ARROW_DEC",step:k,src:"PageDown"})},Home(){r("HOME")},End(){r("END")}},F=er(S,e.context),J=V[F];J&&(J(S),S.preventDefault(),S.stopPropagation())}})},getHiddenInputProps(m){const{index:b=0,name:y}=m;return t.input({name:y??(e.context.name?e.context.name+(e.context.value.length>1?"[]":""):void 0),form:e.context.form,type:"text",hidden:!0,defaultValue:e.context.value[b],id:X.getHiddenInputId(e.context,b)})},getRangeProps(){return t.element({id:X.getRangeId(e.context),...Ut.range.attrs,dir:e.context.dir,"data-dragging":T(a),"data-focus":T(s),"data-invalid":T(c),"data-disabled":T(l),"data-orientation":e.context.orientation,style:X.getRangeStyle(e.context)})},getControlProps(){return t.element({...Ut.control.attrs,dir:e.context.dir,id:X.getControlId(e.context),"data-dragging":T(a),"data-disabled":T(l),"data-orientation":e.context.orientation,"data-invalid":T(c),"data-focus":T(s),style:X.getControlStyle(),onPointerDown(m){if(!d||!So(m)||Yr(m))return;const b=pr(m);r({type:"POINTER_DOWN",point:b}),m.preventDefault(),m.stopPropagation()}})},getMarkerGroupProps(){return t.element({...Ut.markerGroup.attrs,role:"presentation",dir:e.context.dir,"aria-hidden":!0,"data-orientation":e.context.orientation,style:X.getMarkerGroupStyle()})},getMarkerProps(m){const b=X.getMarkerStyle(e.context,m.value);let y;const P=e.context.value[0],C=e.context.value[e.context.value.length-1];return m.value<P?y="under-value":m.value>C?y="over-value":y="at-value",t.element({...Ut.marker.attrs,id:X.getMarkerId(e.context,m.value),role:"presentation",dir:e.context.dir,"data-orientation":e.context.orientation,"data-value":m.value,"data-disabled":T(l),"data-state":y,style:b})},getDraggingIndicatorProps(m){const{index:b=0}=m,y=b===e.context.focusedIndex&&a;return t.element({...Ut.draggingIndicator.attrs,role:"presentation",dir:e.context.dir,hidden:!y,"data-orientation":e.context.orientation,"data-state":y?"open":"closed",style:X.getThumbStyle(e.context,b)})}}}var uO=(e,r)=>(e==null?void 0:e.width)===(r==null?void 0:r.width)&&(e==null?void 0:e.height)===(r==null?void 0:r.height);function pO(e){const r=he(e);return Ce({id:"slider",initial:"idle",context:{thumbSize:null,thumbAlignment:"contain",min:0,max:100,step:1,value:[0],origin:"start",orientation:"horizontal",dir:"ltr",minStepsBetweenThumbs:0,disabled:!1,readOnly:!1,...r,focusedIndex:-1,fieldsetDisabled:!1},computed:{isHorizontal:t=>t.orientation==="horizontal",isVertical:t=>t.orientation==="vertical",isRtl:t=>t.orientation==="horizontal"&&t.dir==="rtl",isDisabled:t=>!!t.disabled||t.fieldsetDisabled,isInteractive:t=>!(t.readOnly||t.isDisabled),hasMeasuredThumbSize:t=>t.thumbSize!=null,valuePercent(t){return t.value.map(n=>100*us(n,t.min,t.max))}},watch:{value:["syncInputElements"]},entry:["coarseValue"],activities:["trackFormControlState","trackThumbsSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:"setValueAtIndex"},{actions:"setValue"}],INCREMENT:{actions:"incrementThumbAtIndex"},DECREMENT:{actions:"decrementThumbAtIndex"}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:"setFocusedIndex"},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:"focusActiveThumb",on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:"clearFocusedIndex"}}},dragging:{entry:"focusActiveThumb",activities:"trackPointerMove",on:{POINTER_UP:{target:"focus",actions:"invokeOnChangeEnd"},POINTER_MOVE:{actions:"setPointerValue"}}}}},{guards:{hasIndex:(t,n)=>n.index!=null},activities:{trackFormControlState(t,n,{initialContext:o}){return Jr(X.getRootEl(t),{onFieldsetDisabledChange(i){t.fieldsetDisabled=i},onFormReset(){St.value(t,o.value)}})},trackPointerMove(t,n,{send:o}){return Hu(X.getDoc(t),{onPointerMove(i){o({type:"POINTER_MOVE",point:i.point})},onPointerUp(){o("POINTER_UP")}})},trackThumbsSize(t){if(!(t.thumbAlignment!=="contain"||t.thumbSize))return WR({getNodes:()=>X.getElements(t),observeMutation:!0,callback(n){!n||uO(t.thumbSize,n)||(t.thumbSize=n)}})}},actions:{syncInputElements(t){t.value.forEach((n,o)=>{const i=X.getHiddenInputEl(t,o);X.setValue(i,n)})},invokeOnChangeEnd(t){Fi.valueChangeEnd(t)},setClosestThumbIndex(t,n){const o=X.getValueFromPoint(t,n.point);if(o==null)return;const i=lO(t,o);St.focusedIndex(t,i)},setFocusedIndex(t,n){St.focusedIndex(t,n.index)},clearFocusedIndex(t){St.focusedIndex(t,-1)},setPointerValue(t,n){const o=X.getValueFromPoint(t,n.point);if(o==null)return;const i=xa(t,o,t.focusedIndex);St.valueAtIndex(t,t.focusedIndex,i)},focusActiveThumb(t){G(()=>{const n=X.getThumbEl(t,t.focusedIndex);n==null||n.focus({preventScroll:!0})})},decrementThumbAtIndex(t,n){const o=sO(t,n.index,n.step);St.value(t,o)},incrementThumbAtIndex(t,n){const o=aO(t,n.index,n.step);St.value(t,o)},setFocusedThumbToMin(t){const{min:n}=Sr(t,t.focusedIndex);St.valueAtIndex(t,t.focusedIndex,n)},setFocusedThumbToMax(t){const{max:n}=Sr(t,t.focusedIndex);St.valueAtIndex(t,t.focusedIndex,n)},coarseValue(t){const n=Dd(t,t.value);St.value(t,n)},setValueAtIndex(t,n){const o=xa(t,n.value,n.index);St.valueAtIndex(t,n.index,o)},setValue(t,n){const o=Dd(t,n.value);St.value(t,o)}}})}var Fi={valueChange(e){var r;(r=e.onValueChange)==null||r.call(e,{value:Array.from(e.value)}),X.dispatchChangeEvent(e)},valueChangeEnd(e){var r;(r=e.onValueChangeEnd)==null||r.call(e,{value:Array.from(e.value)})},focusChange(e){var r;(r=e.onFocusChange)==null||r.call(e,{value:Array.from(e.value),focusedIndex:e.focusedIndex})}},St={valueAtIndex:(e,r,t)=>{ye(e.value[r],t)||(e.value[r]=t,Fi.valueChange(e))},value:(e,r)=>{ye(e.value,r)||(cO(e.value,r),Fi.valueChange(e))},focusedIndex:(e,r)=>{ye(e.focusedIndex,r)||(e.focusedIndex=r,Fi.focusChange(e))}};ee()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]);ee()(["index","name"]);const gO=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,value:e.defaultValue,...e},o={...n,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onValueChangeEnd:q(e.onValueChangeEnd),onFocusChange:q(e.onFocusChange)},[i,s]=xe(pO(n),{context:o});return dO(i,s,we)},Wm=f.forwardRef((e,r)=>{const[t,n]=D()(e,["aria-label","aria-labelledby","defaultValue","disabled","form","getAriaValueText","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]),o=gO(t),i=E(o.getRootProps(),n);return p.jsx(Lm,{value:o,children:p.jsx(I.div,{...i,ref:r})})});Wm.displayName="SliderRoot";const zm=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(Lm,{value:t,children:p.jsx(I.div,{...o,ref:r})})});zm.displayName="SliderRootProvider";const Km=f.forwardRef((e,r)=>{const[t,n]=D()(e,["index","name"]),o=Nt(),i=E(o.getThumbProps(t),n);return p.jsx(GR,{value:t,children:p.jsx(I.div,{...i,ref:r})})});Km.displayName="SliderThumb";const qm=f.forwardRef((e,r)=>{const t=Nt(),n=E(t.getTrackProps(),e);return p.jsx(I.div,{...n,ref:r})});qm.displayName="SliderTrack";const Ym=f.forwardRef((e,r)=>{const{children:t,...n}=e,o=Nt(),i=E(o.getValueTextProps(),n);return p.jsx(I.span,{...i,ref:r,children:t||o.value.join(", ")})});Ym.displayName="SliderValueText";const[Xm,or]=U({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),Zm=f.forwardRef((e,r)=>{const t=or(),n=E(t.getContentProps({index:t.count}),e);return p.jsx(I.div,{...n,ref:r})});Zm.displayName="StepsCompletedContent";const Jm=f.forwardRef((e,r)=>{const[t,n]=D()(e,["index"]),o=or(),i=E(o.getContentProps(t),n);return p.jsx(I.div,{...i,ref:r})});Jm.displayName="StepsContent";const Qm=e=>{const r=or();return e.children(r)};Qm.displayName="StepsContext";const[fO,oc]=U({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),ev=f.forwardRef((e,r)=>{const t=or(),n=oc(),o=E(t.getIndicatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});ev.displayName="StepsIndicator";const[hO,mO]=U({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),tv=f.forwardRef((e,r)=>{const[t,n]=D()(e,["index"]),o=or(),i=E(o.getItemProps(t),n),s=o.getItemState(t);return p.jsx(fO,{value:t,children:p.jsx(hO,{value:s,children:p.jsx(I.li,{...i,ref:r})})})});tv.displayName="StepsItem";const Cs=e=>e.children(mO());Cs.displayName="StepsItemContext";const rv=f.forwardRef((e,r)=>{const t=or(),n=E(t.getListProps(),e);return p.jsx(I.ol,{...n,ref:r})});rv.displayName="StepsList";const nv=f.forwardRef((e,r)=>{const t=or(),n=E(t.getNextTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});nv.displayName="StepsNextTrigger";const ov=f.forwardRef((e,r)=>{const t=or(),n=E(t.getPrevTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});ov.displayName="StepsPrevTrigger";var vO=fe("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),Wt=vO.build(),so=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`steps:${e.id}`},getListId:e=>{var r;return((r=e.ids)==null?void 0:r.list)??`steps:${e.id}:list`},getTriggerId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.triggerId)==null?void 0:n.call(t,r))??`steps:${e.id}:trigger:${r}`},getContentId:(e,r)=>{var t,n;return((n=(t=e.ids)==null?void 0:t.contentId)==null?void 0:n.call(t,r))??`steps:${e.id}:content:${r}`}});function bO(e,r,t){const n=e.context.step,o=e.context.count,i=e.context.percent,s=e.context.hasNextStep,a=e.context.hasPrevStep,l=h=>({triggerId:so.getTriggerId(e.context,h.index),contentId:so.getContentId(e.context,h.index),current:h.index===n,completed:h.index<n,incomplete:h.index>n,index:h.index,first:h.index===0,last:h.index===o-1}),c=()=>{r({type:"STEP.NEXT",src:"next.trigger.click"})},d=()=>{r({type:"STEP.PREV",src:"prev.trigger.click"})},g=()=>{r({type:"STEP.RESET",src:"reset.trigger.click"})},u=h=>{r({type:"STEP.SET",value:h,src:"api.setValue"})};return{value:n,count:o,percent:i,hasNextStep:s,hasPrevStep:a,isCompleted:e.context.completed,goToNextStep:c,goToPrevStep:d,resetStep:g,getItemState:l,setStep:u,getRootProps(){return t.element({...Wt.root.attrs,id:so.getRootId(e.context),dir:e.context.dir,"data-orientation":e.context.orientation,style:{"--percent":`${i}%`}})},getListProps(){const v=DE(e.context.count).map((m,b)=>so.getTriggerId(e.context,b));return t.element({...Wt.list.attrs,dir:e.context.dir,id:so.getListId(e.context),role:"tablist","aria-owns":v.join(" "),"aria-orientation":e.context.orientation,"data-orientation":e.context.orientation})},getItemProps(h){const v=l(h);return t.element({...Wt.item.attrs,dir:e.context.dir,"aria-current":v.current?"step":void 0,"data-orientation":e.context.orientation})},getTriggerProps(h){const v=l(h);return t.button({...Wt.trigger.attrs,id:v.triggerId,role:"tab",dir:e.context.dir,tabIndex:!e.context.linear||v.current?0:-1,"aria-selected":v.current,"aria-controls":v.contentId,"data-state":v.current?"open":"closed","data-orientation":e.context.orientation,"data-complete":T(v.completed),"data-current":T(v.current),"data-incomplete":T(v.incomplete),onClick(m){m.defaultPrevented||e.context.linear||r({type:"STEP.SET",value:h.index,src:"trigger.click"})}})},getContentProps(h){const v=l(h);return t.element({...Wt.content.attrs,dir:e.context.dir,id:v.contentId,role:"tabpanel",tabIndex:0,hidden:!v.current,"data-state":v.current?"open":"closed","data-orientation":e.context.orientation,"aria-labelledby":v.triggerId})},getIndicatorProps(h){const v=l(h);return t.element({...Wt.indicator.attrs,dir:e.context.dir,"aria-hidden":!0,"data-complete":T(v.completed),"data-current":T(v.current),"data-incomplete":T(v.incomplete)})},getSeparatorProps(h){const v=l(h);return t.element({...Wt.separator.attrs,dir:e.context.dir,"data-orientation":e.context.orientation,"data-complete":T(v.completed),"data-current":T(v.current),"data-incomplete":T(v.incomplete)})},getNextTriggerProps(){return t.button({...Wt.nextTrigger.attrs,dir:e.context.dir,type:"button",disabled:!s,onClick(h){h.defaultPrevented||c()}})},getPrevTriggerProps(){return t.button({dir:e.context.dir,...Wt.prevTrigger.attrs,type:"button",disabled:!a,onClick(h){h.defaultPrevented||d()}})},getProgressProps(){return t.element({dir:e.context.dir,...Wt.progress.attrs,role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${i}% complete`,"data-complete":T(i===100)})}}}function yO(e){const r=he(e);return Ce({id:"steps",initial:"idle",context:{step:0,count:1,linear:!1,orientation:"horizontal",...r},computed:{percent:t=>t.step/t.count*100,hasNextStep:t=>t.step<t.count,hasPrevStep:t=>t.step>0,completed:t=>t.step===t.count},states:{idle:{on:{"STEP.SET":{actions:"setStep"},"STEP.NEXT":{actions:"goToNextStep"},"STEP.PREV":{actions:"goToPrevStep"},"STEP.RESET":{actions:"resetStep"}}}}},{actions:{goToNextStep(t){const n=Math.min(t.step+1,t.count);Ci.value(t,n)},goToPrevStep(t){const n=Math.max(t.step-1,0);Ci.value(t,n)},resetStep(t){Ci.value(t,0)},setStep(t,n){Ci.value(t,n.value)}}})}var PO=(e,r)=>{if(!pp(r,0,e.count))throw new RangeError(`[zag-js/steps] step index ${r} is out of bounds`)},Ci={value(e,r){var t,n;ye(e.step,r)||(PO(e,r),e.step=r,(t=e.onStepChange)==null||t.call(e,{step:r}),e.completed&&((n=e.onStepComplete)==null||n.call(e)))}};ee()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step"]);function CO(e={}){const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,step:e.defaultStep,...e},o={...n,step:e.step,onStepChange:q(e.onStepChange),onStepComplete:q(e.onStepComplete)},[i,s]=xe(yO(n),{context:o});return bO(i,s,we)}const iv=f.forwardRef((e,r)=>{const[t,n]=D()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=CO(t),i=E(o.getRootProps(),n);return p.jsx(Xm,{value:o,children:p.jsx(I.div,{...i,ref:r})})});iv.displayName="StepsRoot";const sv=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(Xm,{value:t,children:p.jsx(I.div,{...o,ref:r,children:e.children})})});sv.displayName="StepsRootProvider";const av=f.forwardRef((e,r)=>{const t=or(),n=oc(),o=E(t.getSeparatorProps(n),e);return p.jsx(I.div,{...o,ref:r})});av.displayName="StepsSeparator";const lv=f.forwardRef((e,r)=>{const t=or(),n=oc(),o=E(t.getTriggerProps(n),e);return p.jsx(I.button,{...o,ref:r})});lv.displayName="StepsTrigger";const[cv,on]=U({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),EO=e=>e.children(on()),dv=f.forwardRef((e,r)=>{const t=on(),n=E(t.getControlProps(),e);return p.jsx(I.span,{...n,ref:r})});dv.displayName="SwitchControl";const uv=f.forwardRef((e,r)=>{const t=on(),n=E(t.getHiddenInputProps(),e),o=Ve();return p.jsx(I.input,{"aria-describedby":o==null?void 0:o.ariaDescribedby,...n,ref:r})});uv.displayName="SwitchHiddenInput";const pv=f.forwardRef((e,r)=>{const t=on(),n=E(t.getLabelProps(),e);return p.jsx(I.span,{...n,ref:r})});pv.displayName="SwitchLabel";var IO=fe("switch").parts("root","label","control","thumb"),Ei=IO.build(),Ue=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`switch:${e.id}`},getLabelId:e=>{var r;return((r=e.ids)==null?void 0:r.label)??`switch:${e.id}:label`},getThumbId:e=>{var r;return((r=e.ids)==null?void 0:r.thumb)??`switch:${e.id}:thumb`},getControlId:e=>{var r;return((r=e.ids)==null?void 0:r.control)??`switch:${e.id}:control`},getHiddenInputId:e=>{var r;return((r=e.ids)==null?void 0:r.hiddenInput)??`switch:${e.id}:input`},getRootEl:e=>Ue.getById(e,Ue.getRootId(e)),getHiddenInputEl:e=>Ue.getById(e,Ue.getHiddenInputId(e))});function TO(e,r,t){const n=e.context.isDisabled,o=e.context.readOnly,i=e.context.checked,s=!n&&e.context.focused,a=!n&&e.context.focusVisible,l={"data-active":T(e.context.active),"data-focus":T(s),"data-focus-visible":T(a),"data-readonly":T(o),"data-hover":T(e.context.hovered),"data-disabled":T(n),"data-state":e.context.checked?"checked":"unchecked","data-invalid":T(e.context.invalid)};return{checked:i,disabled:n,focused:s,setChecked(c){r({type:"CHECKED.SET",checked:c,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:i,isTrusted:!1})},getRootProps(){return t.label({...Ei.root.attrs,...l,dir:e.context.dir,id:Ue.getRootId(e.context),htmlFor:Ue.getHiddenInputId(e.context),onPointerMove(){n||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){n||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(c){if(n)return;He(c)===Ue.getHiddenInputEl(e.context)&&c.stopPropagation()}})},getLabelProps(){return t.element({...Ei.label.attrs,...l,dir:e.context.dir,id:Ue.getLabelId(e.context)})},getThumbProps(){return t.element({...Ei.thumb.attrs,...l,dir:e.context.dir,id:Ue.getThumbId(e.context),"aria-hidden":!0})},getControlProps(){return t.element({...Ei.control.attrs,...l,dir:e.context.dir,id:Ue.getControlId(e.context),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:Ue.getHiddenInputId(e.context),type:"checkbox",required:e.context.required,defaultChecked:i,disabled:n,"aria-labelledby":Ue.getLabelId(e.context),"aria-invalid":e.context.invalid,name:e.context.name,form:e.context.form,value:e.context.value,style:Qr,onFocus(){const c=kn();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:c}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(c){if(o){c.preventDefault();return}const d=c.currentTarget.checked;r({type:"CHECKED.SET",checked:d,isTrusted:!0})}})}}}var{not:Vd}=At;function wO(e){const r=he(e);return Ce({id:"switch",initial:"ready",context:{checked:!1,label:"switch",value:"on",disabled:!1,...r,fieldsetDisabled:!1,focusVisible:!1},computed:{isDisabled:t=>t.disabled||t.fieldsetDisabled},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Vd("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Vd("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}}},{guards:{isTrusted:(t,n)=>!!n.isTrusted},activities:{trackPressEvent(t){if(!t.isDisabled)return Gu({pointerNode:Ue.getRootEl(t),keyboardNode:Ue.getHiddenInputEl(t),isValidKey:n=>n.key===" ",onPress:()=>t.active=!1,onPressStart:()=>t.active=!0,onPressEnd:()=>t.active=!1})},trackFocusVisible(t){if(!t.isDisabled)return bs({root:Ue.getRootNode(t)})},trackFormControlState(t,n,{send:o,initialContext:i}){return Jr(Ue.getHiddenInputEl(t),{onFieldsetDisabledChange(s){t.fieldsetDisabled=s},onFormReset(){o({type:"CHECKED.SET",checked:!!i.checked,src:"form-reset"})}})}},actions:{setContext(t,n){Object.assign(t,n.context)},syncInputElement(t){const n=Ue.getHiddenInputEl(t);n&&(n.checked=!!t.checked)},removeFocusIfNeeded(t){t.disabled&&t.focused&&(t.focused=!1)},setChecked(t,n){Md.checked(t,n.checked)},toggleChecked(t,n){Md.checked(t,!t.checked)},dispatchChangeEvent(t){const n=Ue.getHiddenInputEl(t);Ja(n,{checked:t.checked})}}})}var xO={change:e=>{var r;(r=e.onCheckedChange)==null||r.call(e,{checked:e.checked})}},Md={checked:(e,r)=>{ye(e.checked,r)||(e.checked=r,xO.change(e))}};ee()(["checked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const SO=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n=Ve(),o={id:f.useId(),ids:{label:n==null?void 0:n.ids.label,hiddenInput:n==null?void 0:n.ids.control},dir:t,disabled:n==null?void 0:n.disabled,readOnly:n==null?void 0:n.readOnly,invalid:n==null?void 0:n.invalid,required:n==null?void 0:n.required,getRootNode:r,checked:e.defaultChecked,...e},i={...o,checked:e.checked,onCheckedChange:q(e.onCheckedChange,{sync:!0})},[s,a]=xe(wO(o),{context:i});return TO(s,a,we)},gv=f.forwardRef((e,r)=>{const[t,n]=D()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=SO(t),i=E(o.getRootProps(),n);return p.jsx(cv,{value:o,children:p.jsx(I.label,{...i,ref:r})})});gv.displayName="SwitchRoot";const fv=f.forwardRef((e,r)=>{const[{value:t},n]=D()(e,["value"]),o=E(t.getRootProps(),n);return p.jsx(cv,{value:t,children:p.jsx(I.label,{...o,ref:r})})});fv.displayName="SwitchRootProvider";const hv=f.forwardRef((e,r)=>{const t=on(),n=E(t.getThumbProps(),e);return p.jsx(I.span,{...n,ref:r})});hv.displayName="SwitchThumb";function RO(e,r){const[t,n]=f.useState(e);return f.useEffect(()=>{const o=setTimeout(()=>{n(e)},r);return()=>{clearTimeout(o)}},[e,r]),t}const[mv,Uo]=U({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),vv=f.forwardRef((e,r)=>{const[t,n]=D()(e,["value"]),o=Uo(),i=wl(),s=Xe({...i,present:RO(o.value===e.value,0),immediate:!0}),a=E(o.getContentProps(t),s.getPresenceProps(),n);return p.jsx(at,{value:s,children:s.unmounted?null:p.jsx(I.div,{...a,ref:mt(s.ref,r)})})});vv.displayName="TabContent";const bv=f.forwardRef((e,r)=>{const t=Uo(),n=E(t.getIndicatorProps(),e);return p.jsx(I.div,{...n,ref:r})});bv.displayName="TabIndicator";const yv=f.forwardRef((e,r)=>{const t=Uo(),n=E(t.getListProps(),e);return p.jsx(I.div,{...n,ref:r})});yv.displayName="TabList";const Pv=f.forwardRef((e,r)=>{const[t,n]=D()(e,["disabled","value"]),o=Uo(),i=E(o.getTriggerProps(t),n);return p.jsx(I.button,{...i,ref:r})});Pv.displayName="TabTrigger";const OO=e=>e.children(Uo());var kO=fe("tabs").parts("root","list","trigger","content","indicator"),ao=kO.build(),z=ke({getRootId:e=>{var r;return((r=e.ids)==null?void 0:r.root)??`tabs:${e.id}`},getListId:e=>{var r;return((r=e.ids)==null?void 0:r.list)??`tabs:${e.id}:list`},getContentId:(e,r)=>{var t;return((t=e.ids)==null?void 0:t.content)??`tabs:${e.id}:content-${r}`},getTriggerId:(e,r)=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tabs:${e.id}:trigger-${r}`},getIndicatorId:e=>{var r;return((r=e.ids)==null?void 0:r.indicator)??`tabs:${e.id}:indicator`},getListEl:e=>z.getById(e,z.getListId(e)),getContentEl:(e,r)=>z.getById(e,z.getContentId(e,r)),getTriggerEl:(e,r)=>z.getById(e,z.getTriggerId(e,r)),getIndicatorEl:e=>z.getById(e,z.getIndicatorId(e)),getElements:e=>{const t=`[role=tab][data-ownedby='${CSS.escape(z.getListId(e))}']:not([disabled])`;return Lt(z.getListEl(e),t)},getFirstTriggerEl:e=>al(z.getElements(e)),getLastTriggerEl:e=>ll(z.getElements(e)),getNextTriggerEl:(e,r)=>nl(z.getElements(e),z.getTriggerId(e,r),e.loopFocus),getPrevTriggerEl:(e,r)=>ol(z.getElements(e),z.getTriggerId(e,r),e.loopFocus),getSelectedContentEl:e=>{if(e.value)return z.getContentEl(e,e.value)},getSelectedTriggerEl:e=>{if(e.value)return z.getTriggerEl(e,e.value)},getOffsetRect:e=>({left:(e==null?void 0:e.offsetLeft)??0,top:(e==null?void 0:e.offsetTop)??0,width:(e==null?void 0:e.offsetWidth)??0,height:(e==null?void 0:e.offsetHeight)??0}),getRectById:(e,r)=>{const t=Uu(z.getElements(e),z.getTriggerId(e,r));return z.resolveRect(z.getOffsetRect(t))},resolveRect:e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`})});function AO(e,r,t){const n=e.context.translations,o=e.matches("focused"),i=e.context.orientation==="vertical",s=e.context.orientation==="horizontal",a=e.context.composite,l=e.context.indicatorState;function c(d){return{selected:e.context.value===d.value,focused:e.context.focusedValue===d.value,disabled:!!d.disabled}}return{value:e.context.value,focusedValue:e.context.focusedValue,setValue(d){r({type:"SET_VALUE",value:d})},clearValue(){r({type:"CLEAR_VALUE"})},setIndicatorRect(d){const g=z.getTriggerId(e.context,d);r({type:"SET_INDICATOR_RECT",id:g})},syncTabIndex(){r("SYNC_TAB_INDEX")},selectNext(d){r({type:"TAB_FOCUS",value:d,src:"selectNext"}),r({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(d){r({type:"TAB_FOCUS",value:d,src:"selectPrev"}),r({type:"ARROW_PREV",src:"selectPrev"})},focus(){var d;(d=z.getSelectedTriggerEl(e.context))==null||d.focus()},getRootProps(){return t.element({...ao.root.attrs,id:z.getRootId(e.context),"data-orientation":e.context.orientation,"data-focus":T(o),dir:e.context.dir})},getListProps(){return t.element({...ao.list.attrs,id:z.getListId(e.context),role:"tablist",dir:e.context.dir,"data-focus":T(o),"aria-orientation":e.context.orientation,"data-orientation":e.context.orientation,"aria-label":n==null?void 0:n.listLabel,onKeyDown(d){if(d.defaultPrevented||!xo(d)||Vo(d))return;const g={ArrowDown(){s||r({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){s||r({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){i||r({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){i||r({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){r("HOME")},End(){r("END")},Enter(){r({type:"ENTER"})}};let u=er(d,e.context);const h=g[u];h&&(d.preventDefault(),h(d))}})},getTriggerState:c,getTriggerProps(d){const{value:g,disabled:u}=d,h=c(d);return t.button({...ao.trigger.attrs,role:"tab",type:"button",disabled:u,dir:e.context.dir,"data-orientation":e.context.orientation,"data-disabled":T(u),"aria-disabled":u,"data-value":g,"aria-selected":h.selected,"data-selected":T(h.selected),"data-focus":T(h.focused),"aria-controls":h.selected?z.getContentId(e.context,g):void 0,"data-ownedby":z.getListId(e.context),"data-ssr":T(e.context.ssr),id:z.getTriggerId(e.context,g),tabIndex:h.selected&&a?0:-1,onFocus(){r({type:"TAB_FOCUS",value:g})},onBlur(v){const m=v.relatedTarget;(m==null?void 0:m.getAttribute("role"))!=="tab"&&r({type:"TAB_BLUR"})},onClick(v){v.defaultPrevented||u||(Do()&&v.currentTarget.focus(),r({type:"TAB_CLICK",value:g}))}})},getContentProps(d){const{value:g}=d,u=e.context.value===g;return t.element({...ao.content.attrs,dir:e.context.dir,id:z.getContentId(e.context,g),tabIndex:a?0:-1,"aria-labelledby":z.getTriggerId(e.context,g),role:"tabpanel","data-ownedby":z.getListId(e.context),"data-selected":T(u),"data-orientation":e.context.orientation,hidden:!u})},getIndicatorProps(){var d,g,u,h;return t.element({id:z.getIndicatorId(e.context),...ao.indicator.attrs,dir:e.context.dir,"data-orientation":e.context.orientation,style:{"--transition-property":"left, right, top, bottom, width, height","--left":(d=l.rect)==null?void 0:d.left,"--top":(g=l.rect)==null?void 0:g.top,"--width":(u=l.rect)==null?void 0:u.width,"--height":(h=l.rect)==null?void 0:h.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:l.transition?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[s?"left":"top"]:s?"var(--left)":"var(--top)"}})}}}var{not:NO}=At;function $O(e){const r=he(e);return Ce({initial:"idle",context:{dir:"ltr",orientation:"horizontal",activationMode:"automatic",value:null,loopFocus:!0,composite:!0,navigate(t){Mu(t.node)},...r,focusedValue:r.value??null,ssr:!0,indicatorState:{rendered:!1,transition:!1,rect:{left:"0px",top:"0px",width:"0px",height:"0px"}}},watch:{value:["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"],dir:["syncIndicatorRect"],orientation:["syncIndicatorRect"]},on:{SET_VALUE:{actions:"setValue"},CLEAR_VALUE:{actions:"clearValue"},SET_INDICATOR_RECT:{actions:"setIndicatorRect"},SYNC_TAB_INDEX:{actions:"syncTabIndex"}},created:["syncFocusedValue"],entry:["checkRenderedElements","syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:"setFocusedValue"},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:"focusPrevTab"}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:"focusNextTab"}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:"focusFirstTab"}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:"focusLastTab"}],ENTER:{guard:NO("selectOnFocus"),actions:"selectFocusedTab"},TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:"clearFocusedValue"}}}}},{guards:{selectOnFocus:t=>t.activationMode==="automatic"},actions:{syncFocusedValue(t){t.value!=null&&t.focusedValue==null&&(t.focusedValue=t.value)},selectFocusedTab(t){G(()=>{const o=t.deselectable&&t.value===t.focusedValue?null:t.focusedValue;Hr.value(t,o)})},setFocusedValue(t,n){n.value!=null&&Hr.focusedValue(t,n.value)},clearFocusedValue(t){Hr.focusedValue(t,null)},setValue(t,n){const i=t.deselectable&&t.value===t.focusedValue?null:n.value;Hr.value(t,i)},clearValue(t){Hr.value(t,null)},focusFirstTab(t){G(()=>{var n;(n=z.getFirstTriggerEl(t))==null||n.focus()})},focusLastTab(t){G(()=>{var n;(n=z.getLastTriggerEl(t))==null||n.focus()})},focusNextTab(t){if(!t.focusedValue)return;const n=z.getNextTriggerEl(t,t.focusedValue);G(()=>{t.composite?n==null||n.focus():(n==null?void 0:n.dataset.value)!=null&&Hr.focusedValue(t,n.dataset.value)})},focusPrevTab(t){if(!t.focusedValue)return;const n=z.getPrevTriggerEl(t,t.focusedValue);G(()=>{t.composite?n==null||n.focus():(n==null?void 0:n.dataset.value)!=null&&Hr.focusedValue(t,n.dataset.value)})},checkRenderedElements(t){t.indicatorState.rendered=!!z.getIndicatorEl(t)},syncTabIndex(t){G(()=>{const n=z.getSelectedContentEl(t);if(!n)return;as(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0")})},cleanupObserver(t){var n;(n=t.indicatorCleanup)==null||n.call(t)},allowIndicatorTransition(t){t.indicatorState.transition=!0},setIndicatorRect(t,n){const o=n.id??t.value;!t.indicatorState.rendered||!o||!z.getTriggerEl(t,o)||(t.indicatorState.rect=z.getRectById(t,o),ji(()=>{t.indicatorState.transition=!1}))},syncSsr(t){t.ssr=!1},syncIndicatorRect(t){var i;(i=t.indicatorCleanup)==null||i.call(t);const n=t.value;if(!t.indicatorState.rendered||!n)return;const o=z.getSelectedTriggerEl(t);o&&(t.indicatorCleanup=fm(o,{getRect(s){return z.getOffsetRect(s)},onChange(s){t.indicatorState.rect=z.resolveRect(s),ji(()=>{t.indicatorState.transition=!1})}}))},navigateIfNeeded(t){const n=z.getSelectedTriggerEl(t);Ru(n)&&t.navigate({value:t.value,node:n})}}})}var jd={change:e=>{var r;e.value!=null&&((r=e.onValueChange)==null||r.call(e,{value:e.value}))},focusChange:e=>{var r;e.focusedValue!=null&&((r=e.onFocusChange)==null||r.call(e,{focusedValue:e.focusedValue}))}},Hr={value:(e,r)=>{ye(r,e.value)||(e.value=r,jd.change(e))},focusedValue:(e,r)=>{ye(r,e.focusedValue)||(e.focusedValue=r,jd.focusChange(e))}};ee()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]);ee()(["disabled","value"]);ee()(["value"]);const LO=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,value:e.defaultValue,...e},o={...n,value:e.value,onValueChange:q(e.onValueChange,{sync:!0}),onFocusChange:q(e.onFocusChange)},[i,s]=xe($O(n),{context:o});return AO(i,s,we)},Cv=f.forwardRef((e,r)=>{const[t,n]=Mn(e),[o,i]=D()(n,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),s=LO(o),a=E(s.getRootProps(),i);return p.jsx(mv,{value:s,children:p.jsx(Vn,{value:t,children:p.jsx(I.div,{...a,ref:r})})})});Cv.displayName="TabsRoot";const Ev=f.forwardRef((e,r)=>{const[t,n]=Mn(e),[{value:o},i]=D()(n,["value"]),s=E(o.getRootProps(),i);return p.jsx(mv,{value:o,children:p.jsx(Vn,{value:t,children:p.jsx(I.div,{...s,ref:r})})})});Ev.displayName="TabsRootProvider";var FO=fe("toast").parts("group","root","title","description","actionTrigger","closeTrigger"),bn=FO.build(),et=ke({getRegionId:e=>`toast-group:${e}`,getRegionEl:(e,r)=>et.getById(e,`toast-group:${r}`),getRootId:e=>`toast:${e.id}`,getRootEl:e=>et.getById(e,et.getRootId(e)),getTitleId:e=>`toast:${e.id}:title`,getDescriptionId:e=>`toast:${e.id}:description`,getCloseTriggerId:e=>`toast${e.id}:close`});function ic(e,r){return e.filter(t=>t.state.context.placement===r)}var _d={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function Bd(e,r){return e??_d[r]??_d.DEFAULT}function DO(e,r){var d;const t=e.offsets,n=typeof t=="string"?{left:t,right:t,bottom:t,top:t}:t,o=e.dir==="rtl",i=r.replace("-start",o?"-right":"-left").replace("-end",o?"-left":"-right"),s=i.includes("right"),a=i.includes("left"),l={position:"fixed",pointerEvents:e.count>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${e.gap}px`,"--first-height":`${((d=e.heights[0])==null?void 0:d.height)||0}px`,zIndex:xu};let c="center";if(s&&(c="flex-end"),a&&(c="flex-start"),l.alignItems=c,i.includes("top")){const g=n.top;l.top=`max(env(safe-area-inset-top, 0px), ${g})`}if(i.includes("bottom")){const g=n.bottom;l.bottom=`max(env(safe-area-inset-bottom, 0px), ${g})`}if(!i.includes("left")){const g=n.right;l.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${g})`}if(!i.includes("right")){const g=n.left;l.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${g})`}return l}function VO(e,r){const[t]=e.placement.split("-"),n=!e.frontmost,o=!e.stacked,i={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${e.removeDelay}ms`,"--duration":`${e.type==="loading"?Number.MAX_SAFE_INTEGER:e.duration}ms`,"--initial-height":`${e.height}px`,"--offset":`${e.offset}px`,"--index":e.index,"--z-index":e.zIndex,"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},s=a=>Object.assign(i,a);return t==="top"?s({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):t==="bottom"&&s({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),e.mounted&&(s({"--y":"0","--opacity":"1"}),e.stacked&&s({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),r||s({"--opacity":"0",pointerEvents:"none"}),n&&o&&(s({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),r||s({"--y":"calc(var(--sign) * 40%)"})),n&&e.stacked&&!r&&s({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),e.frontmost&&!r&&s({"--y":"calc(var(--lift) * -100%)"}),i}function MO(e,r){const t={position:"absolute",inset:"0",scale:"1 2",pointerEvents:r?"none":"auto"},n=o=>Object.assign(t,o);return e.frontmost&&!r&&n({height:"calc(var(--initial-height) + 80%)"}),t}function jO(e,r){return{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}function _O(e,r,t){function n(){return yI(e)?e.getState():e}function o(d){return ic(n().context.toasts,d)}function i(d){const g=n().context.toasts;return g.length?!!g.find(u=>u.id==d):!1}function s(d){const g=`toast:${ga()}`,u=d.id?d.id:g;return i(u)||r({type:"ADD_TOAST",toast:{...d,id:u}}),u}function a(d,g){return i(d)&&r({type:"UPDATE_TOAST",id:d,toast:g}),d}function l(d){const{id:g}=d;return(g?i(g):!1)&&g!=null?a(g,d):s(d)}function c(d){d==null?r("DISMISS_ALL"):i(d)&&r({type:"DISMISS_TOAST",id:d})}return{getCount(){return n().context.count},getPlacements(){const g=n().context.toasts.map(u=>u.state.context.placement);return Array.from(new Set(g))},getToastsByPlacement:o,isVisible:i,create:s,update:a,upsert:l,dismiss:c,remove(d){d==null?r("REMOVE_ALL"):i(d)&&r({type:"REMOVE_TOAST",id:d})},dismissByPlacement(d){o(d).forEach(u=>c(u.id))},loading(d){return l({...d,type:"loading"})},success(d){return l({...d,type:"success"})},error(d){return l({...d,type:"error"})},promise(d,g,u={}){const h=l({...u,...g.loading,type:"loading"});return Tn(d).then(v=>{const m=Tn(g.success,v);l({...u,...m,id:h,type:"success"})}).catch(v=>{const m=Tn(g.error,v);l({...u,...m,id:h,type:"error"})}).finally(()=>{var v;(v=g.finally)==null||v.call(g)}),h},pause(d){d==null?r("PAUSE_ALL"):i(d)&&r({type:"PAUSE_TOAST",id:d})},resume(d){d==null?r("RESUME_ALL"):i(d)&&r({type:"RESUME_TOAST",id:d})},getGroupProps(d){const{placement:g,label:u="Notifications"}=d,h=n(),v=h.context.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,""),[m,b="center"]=g.split("-");return t.element({...bn.group.attrs,dir:h.context.dir,tabIndex:-1,"aria-label":`${g} ${u} ${v}`,id:et.getRegionId(g),"data-placement":g,"data-side":m,"data-align":b,"aria-live":"polite",role:"region",style:DO(h.context,g),onMouseMove(){r({type:"REGION.POINTER_ENTER",placement:g})},onMouseLeave(){r({type:"REGION.POINTER_LEAVE",placement:g})},onFocus(y){r({type:"REGION.FOCUS",target:y.relatedTarget})},onBlur(y){h.context.isFocusWithin&&!kt(y.currentTarget,y.relatedTarget)&&r({type:"REGION.BLUR"})}})},subscribe(d){const g=n();return ko(g.context.toasts,()=>{const h=o(g.context.placement).map(v=>v.getState().context);d(h)})}}}var{not:BO,and:HO,or:GO}=At;function UO(e){const{type:r="info",duration:t,id:n="1",placement:o="bottom",removeDelay:i=200,...s}=e,a=he(s),l=Bd(t,r);return Ce({id:n,context:{id:n,type:r,remaining:l,duration:l,removeDelay:i,createdAt:Date.now(),placement:o,...a,height:0,offset:0,frontmost:!1,mounted:!1,index:-1,zIndex:0},initial:r==="loading"?"visible:persist":"visible",on:{UPDATE:[{guard:HO("hasTypeChanged","isChangingToLoading"),target:"visible:persist",actions:["setContext"]},{guard:GO("hasDurationChanged","hasTypeChanged"),target:"visible:updating",actions:["setContext"]},{actions:["setContext"]}],MEASURE:{actions:["measureHeight"]}},entry:["invokeOnVisible"],activities:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],after:{0:"visible"}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:BO("isLoadingType"),target:"visible",actions:["setCreatedAt"]},DISMISS:"dismissing"}},visible:{tags:["visible"],after:{VISIBLE_DURATION:"dismissing"},on:{DISMISS:"dismissing",PAUSE:{target:"visible:persist",actions:"setRemainingDuration"}}},dismissing:{entry:"invokeOnDismiss",after:{REMOVE_DELAY:{target:"unmounted",actions:"notifyParentToRemove"}}},unmounted:{entry:"invokeOnUnmount",type:"final"}}},{activities:{trackHeight(c,d,{self:g}){let u;return G(()=>{const h=et.getRootEl(c);if(!h)return;c.mounted=!0;const v=Lt(h,"[data-ghost]");Kr(v.length!==2,"[toast] No ghost element found in toast. Render the `ghostBefore` and `ghostAfter` elements");const m=()=>{const P=h.style.height;h.style.height="auto";const C=h.getBoundingClientRect().height;h.style.height=P,c.height=C,g.sendParent({type:"UPDATE_HEIGHT",id:g.id,height:C,placement:c.placement})};m();const b=et.getWin(c),y=new b.MutationObserver(m);y.observe(h,{childList:!0,subtree:!0,characterData:!0}),u=()=>y.disconnect()}),()=>u==null?void 0:u()}},guards:{isChangingToLoading:(c,d)=>{var g;return((g=d.toast)==null?void 0:g.type)==="loading"},isLoadingType:c=>c.type==="loading",hasTypeChanged:(c,d)=>{var g;return((g=d.toast)==null?void 0:g.type)!=null&&d.toast.type!==c.type},hasDurationChanged:(c,d)=>{var g;return((g=d.toast)==null?void 0:g.duration)!=null&&d.toast.duration!==c.duration}},delays:{VISIBLE_DURATION:c=>c.remaining,REMOVE_DELAY:c=>c.removeDelay},actions:{measureHeight(c,d,{self:g}){G(()=>{const u=et.getRootEl(c);if(!u)return;c.mounted=!0;const h=u.style.height;u.style.height="auto";const v=u.getBoundingClientRect().height;u.style.height=h,c.height=v,g.sendParent({type:"UPDATE_HEIGHT",id:g.id,height:v,placement:c.placement})})},setRemainingDuration(c){c.remaining-=Date.now()-c.createdAt},setCreatedAt(c){c.createdAt=Date.now()},notifyParentToRemove(c,d,{self:g}){g.sendParent({type:"REMOVE_TOAST",id:g.id})},invokeOnDismiss(c){var d;(d=c.onStatusChange)==null||d.call(c,{status:"dismissing"})},invokeOnUnmount(c){var d;(d=c.onStatusChange)==null||d.call(c,{status:"unmounted"})},invokeOnVisible(c){var d;(d=c.onStatusChange)==null||d.call(c,{status:"visible"})},setContext(c,d){var v,m;const g=(v=d.toast)==null?void 0:v.duration,u=((m=d.toast)==null?void 0:m.type)??c.type,h=Bd(g,u);Object.assign(c,{...d.toast,duration:h,remaining:h})}}})}function WO(e){const r=he(e);return Ce({id:"toaster",initial:r.overlap?"overlap":"stack",context:{dir:"ltr",max:Number.MAX_SAFE_INTEGER,gap:16,pauseOnPageIdle:!1,hotkey:["altKey","KeyT"],offsets:"1rem",placement:"bottom",removeDelay:200,...r,toasts:[],lastFocusedEl:null,isFocusWithin:!1,heights:[]},computed:{count:t=>t.toasts.length},activities:["trackDocumentVisibility","trackHotKeyPress"],watch:{toasts:["collapsedIfEmpty","setDismissableBranch"]},exit:["removeToasts","clearDismissableBranch","clearLastFocusedEl"],on:{PAUSE_TOAST:{actions:["pauseToast"]},PAUSE_ALL:{actions:["pauseToasts"]},RESUME_TOAST:{actions:["resumeToast"]},RESUME_ALL:{actions:["resumeToasts"]},ADD_TOAST:{guard:"isWithinRange",actions:["createToast","syncToastIndex"]},UPDATE_TOAST:{actions:["updateToast"]},DISMISS_TOAST:{actions:["dismissToast"]},DISMISS_ALL:{actions:["dismissToasts"]},REMOVE_TOAST:{actions:["removeToast","syncToastIndex","syncToastOffset"]},REMOVE_ALL:{actions:["removeToasts"]},UPDATE_HEIGHT:{actions:["syncHeights","syncToastOffset"]},"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","restoreLastFocusedEl"]},{actions:["resumeToasts","restoreLastFocusedEl"]}]},states:{stack:{entry:["expandToasts"],on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap"},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{entry:["collapseToasts"],on:{"REGION.STACK":{target:"stack"},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts"]}}}}},{guards:{isWithinRange:t=>t.toasts.length<t.max,isOverlapping:t=>!!t.overlap},activities:{trackHotKeyPress(t,n,{send:o}){return ie(document,"keydown",s=>{t.hotkey.every(l=>s[l]||s.code===l)&&o({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility(t,n,{send:o}){if(!t.pauseOnPageIdle)return;const i=et.getDoc(t);return ie(i,"visibilitychange",()=>{o(i.visibilityState==="hidden"?"PAUSE_ALL":"RESUME_ALL")})}},actions:{setDismissableBranch(t){var s;const o=ic(t.toasts,t.placement).length>0;if(!o){(s=t._cleanup)==null||s.call(t);return}if(o&&t._cleanup)return;const i=()=>et.getRegionEl(t,t.placement);t._cleanup=Mw(i,{defer:!0})},clearDismissableBranch(t){var n;(n=t._cleanup)==null||n.call(t)},focusRegionEl(t){queueMicrotask(()=>{var n;(n=et.getRegionEl(t,t.placement))==null||n.focus()})},expandToasts(t){Ii(t,n=>{n.state.context.stacked=!0})},collapseToasts(t){Ii(t,n=>{n.state.context.stacked=!1})},collapsedIfEmpty(t,n,{send:o}){!t.overlap||t.toasts.length>1||o("REGION.OVERLAP")},pauseToast(t,n,{self:o}){o.sendChild("PAUSE",n.id)},pauseToasts(t){t.toasts.forEach(n=>n.send("PAUSE"))},resumeToast(t,n,{self:o}){o.sendChild("RESUME",n.id)},resumeToasts(t){t.toasts.forEach(n=>n.send("RESUME"))},measureToasts(t){t.toasts.forEach(n=>n.send("MEASURE"))},createToast(t,n,{self:o,getState:i}){const s={placement:t.placement,duration:t.duration,removeDelay:t.removeDelay,...n.toast,dir:t.dir,getRootNode:t.getRootNode,stacked:i().matches("stack")},a=UO(s),l=o.spawn(a);t.toasts=[l,...t.toasts]},updateToast(t,n,{self:o}){o.sendChild({type:"UPDATE",toast:n.toast},n.id)},dismissToast(t,n,{self:o}){o.sendChild("DISMISS",n.id)},dismissToasts(t){t.toasts.forEach(n=>n.send("DISMISS"))},removeToast(t,n,{self:o}){o.stopChild(n.id),t.toasts=t.toasts.filter(i=>i.id!==n.id),t.heights=t.heights.filter(i=>i.id!==n.id)},removeToasts(t,n,{self:o}){t.toasts.forEach(i=>o.stopChild(i.id)),t.toasts=[],t.heights=[]},syncHeights(t,n){const o=t.heights.find(i=>i.id===n.id);if(o)o.height=n.height,o.placement=n.placement;else{const i={id:n.id,height:n.height,placement:n.placement};t.heights=[i,...t.heights]}},syncToastIndex(t){Ii(t,(n,o,i)=>{n.state.context.index=o,n.state.context.frontmost=o===0,n.state.context.zIndex=i.length-o})},syncToastOffset(t,n){const o=n.placement??t.placement;Ii({...t,placement:o},i=>{const s=Math.max(t.heights.findIndex(l=>l.id===i.id),0),a=t.heights.reduce((l,c,d)=>d>=s?l:l+c.height,0);i.state.context.offset=s*t.gap+a})},setLastFocusedEl(t,n){t.isFocusWithin||!n.target||(t.isFocusWithin=!0,t.lastFocusedEl=Oe(n.target))},restoreLastFocusedEl(t){t.isFocusWithin=!1,t.lastFocusedEl&&(t.lastFocusedEl.focus({preventScroll:!0}),t.lastFocusedEl=null)},clearLastFocusedEl(t){t.lastFocusedEl&&(t.lastFocusedEl.focus({preventScroll:!0}),t.lastFocusedEl=null,t.isFocusWithin=!1)}}})}function Ii(e,r){ic(e.toasts,e.placement).forEach(r)}function zO(e,r,t){const n=e.hasTag("visible"),o=e.hasTag("paused"),i=e.context.placement,s=e.context.type,[a,l="center"]=i.split("-");return{type:s,title:e.context.title,description:e.context.description,placement:i,visible:n,paused:o,pause(){r("PAUSE")},resume(){r("RESUME")},dismiss(){r("DISMISS")},getRootProps(){return t.element({...bn.root.attrs,dir:e.context.dir,id:et.getRootId(e.context),"data-state":n?"open":"closed","data-type":s,"data-placement":i,"data-align":l,"data-side":a,"data-mounted":T(e.context.mounted),"data-paused":T(o),"data-first":T(e.context.frontmost),"data-sibling":T(!e.context.frontmost),"data-stack":T(e.context.stacked),"data-overlap":T(!e.context.stacked),role:"status","aria-atomic":"true","aria-describedby":e.context.description?et.getDescriptionId(e.context):void 0,"aria-labelledby":e.context.title?et.getTitleId(e.context):void 0,tabIndex:0,style:VO(e.context,n),onKeyDown(c){c.defaultPrevented||c.key=="Escape"&&(r("DISMISS"),c.preventDefault())}})},getGhostBeforeProps(){return t.element({"data-ghost":"before",style:MO(e.context,n)})},getGhostAfterProps(){return t.element({"data-ghost":"after",style:jO()})},getTitleProps(){return t.element({...bn.title.attrs,id:et.getTitleId(e.context)})},getDescriptionProps(){return t.element({...bn.description.attrs,id:et.getDescriptionId(e.context)})},getActionTriggerProps(){return t.button({...bn.actionTrigger.attrs,type:"button",onClick(c){var d,g;c.defaultPrevented||((g=(d=e.context.action)==null?void 0:d.onClick)==null||g.call(d),r("DISMISS"))}})},getCloseTriggerProps(){return t.button({id:et.getCloseTriggerId(e.context),...bn.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(c){c.defaultPrevented||r("DISMISS")}})}}}var KO={connect:_O,machine:WO};const[qO,Bn]=U({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Iv=f.forwardRef((e,r)=>{const t=Bn(),n=E(t.getActionTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Iv.displayName="ToastActionTrigger";const Tv=f.forwardRef((e,r)=>{const t=Bn(),n=E(t.getCloseTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Tv.displayName="ToastCloseTrigger";const wv=f.forwardRef((e,r)=>{const t=Bn(),n=E(t.getDescriptionProps(),e);return p.jsx(I.div,{...n,ref:r})});wv.displayName="ToastDescription";const xv=f.forwardRef((e,r)=>{const t=Bn(),n=E(t.getRootProps(),e);return p.jsxs("div",{...n,ref:r,children:[p.jsx("div",{...t.getGhostBeforeProps()}),e.children,p.jsx("div",{...t.getGhostAfterProps()})]})});xv.displayName="ToastRoot";const Sv=f.forwardRef((e,r)=>{const t=Bn(),n=E(t.getTitleProps(),e);return p.jsx(I.div,{...n,ref:r})});Sv.displayName="ToastTitle";const Rv=f.forwardRef((e,r)=>{const{toaster:t,children:n,...o}=e,[i,s]=xe(t.machine),a=i.context.placement,l=KO.connect(i,s,we),c=l.getToastsByPlacement(a),d=E(l.getGroupProps({placement:a}),o);return p.jsx(I.div,{...d,ref:r,children:c.map(g=>p.jsx(YO,{value:g,children:u=>n(u)},g.id))})});Rv.displayName="Toaster";const YO=e=>{const[r,t]=FI(e.value),n=zO(r,t,we);return p.jsx(qO,{value:n,children:e.children(r.context)})},[Ov,Hn]=U({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),kv=f.forwardRef((e,r)=>{const t=Hn(),n=E(t.getArrowProps(),e);return p.jsx(I.div,{...n,ref:r})});kv.displayName="TooltipArrow";const Av=f.forwardRef((e,r)=>{const t=Hn(),n=E(t.getArrowTipProps(),e);return p.jsx(I.div,{...n,ref:r})});Av.displayName="TooltipArrowTip";const Nv=f.forwardRef((e,r)=>{const t=Hn(),n=Ze(),o=E(t.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:p.jsx(I.div,{...o,ref:mt(n.ref,r)})});Nv.displayName="TooltipContent";const XO=e=>e.children(Hn()),$v=f.forwardRef((e,r)=>{const t=Hn(),n=E(t.getPositionerProps(),e);return Ze().unmounted?null:p.jsx(I.div,{...n,ref:r})});$v.displayName="TooltipPositioner";var ZO=fe("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),lo=ZO.build(),_e=ke({getTriggerId:e=>{var r;return((r=e.ids)==null?void 0:r.trigger)??`tooltip:${e.id}:trigger`},getContentId:e=>{var r;return((r=e.ids)==null?void 0:r.content)??`tooltip:${e.id}:content`},getArrowId:e=>{var r;return((r=e.ids)==null?void 0:r.arrow)??`tooltip:${e.id}:arrow`},getPositionerId:e=>{var r;return((r=e.ids)==null?void 0:r.positioner)??`tooltip:${e.id}:popper`},getTriggerEl:e=>_e.getById(e,_e.getTriggerId(e)),getContentEl:e=>_e.getById(e,_e.getContentId(e)),getPositionerEl:e=>_e.getById(e,_e.getPositionerId(e)),getArrowEl:e=>_e.getById(e,_e.getArrowId(e))}),ur=cs({id:null,prevId:null,setId(e){this.prevId=this.id,this.id=e}});function JO(e,r,t){const n=e.context.id,o=e.context.hasAriaLabel,i=e.hasTag("open"),s=_e.getTriggerId(e.context),a=_e.getContentId(e.context),l=e.context.disabled,c=Fn({...e.context.positioning,placement:e.context.currentPlacement});return{open:i,setOpen(d){d!==i&&r(d?"OPEN":"CLOSE")},reposition(d={}){r({type:"POSITIONING.SET",options:d})},getTriggerProps(){return t.button({...lo.trigger.attrs,id:s,dir:e.context.dir,"data-expanded":T(i),"data-state":i?"open":"closed","aria-describedby":i?a:void 0,onClick(d){d.defaultPrevented||l||e.context.closeOnClick&&r({type:"CLOSE",src:"trigger.click"})},onFocus(d){d.defaultPrevented||l||e.event.src!=="trigger.pointerdown"&&kn()&&r({type:"OPEN",src:"trigger.focus"})},onBlur(d){d.defaultPrevented||l||n===ur.id&&r({type:"CLOSE",src:"trigger.blur"})},onPointerDown(d){d.defaultPrevented||l||e.context.closeOnPointerDown&&n===ur.id&&r({type:"CLOSE",src:"trigger.pointerdown"})},onPointerMove(d){d.defaultPrevented||l||d.pointerType!=="touch"&&r("POINTER_MOVE")},onPointerLeave(){l||r("POINTER_LEAVE")},onPointerCancel(){l||r("POINTER_LEAVE")}})},getArrowProps(){return t.element({id:_e.getArrowId(e.context),...lo.arrow.attrs,dir:e.context.dir,style:c.arrow})},getArrowTipProps(){return t.element({...lo.arrowTip.attrs,dir:e.context.dir,style:c.arrowTip})},getPositionerProps(){return t.element({id:_e.getPositionerId(e.context),...lo.positioner.attrs,dir:e.context.dir,style:c.floating})},getContentProps(){return t.element({...lo.content.attrs,dir:e.context.dir,hidden:!i,"data-state":i?"open":"closed",role:o?void 0:"tooltip",id:o?void 0:a,"data-placement":e.context.currentPlacement,onPointerEnter(){r("CONTENT.POINTER_MOVE")},onPointerLeave(){r("CONTENT.POINTER_LEAVE")},style:{pointerEvents:e.context.interactive?"auto":"none"}})}}}var{and:QO,not:Hd}=At;function ek(e){const r=he(e);return Ce({id:"tooltip",initial:r.open?"open":"closed",activities:["trackFocusVisible"],context:{openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,closeOnClick:!0,disabled:!1,...r,currentPlacement:void 0,hasPointerMoveOpened:!1,positioning:{placement:"bottom",...r.positioning}},computed:{hasAriaLabel:t=>!!t["aria-label"]},watch:{disabled:["closeIfDisabled"],open:["toggleVisibility"]},states:{closed:{tags:["closed"],entry:["clearGlobalId"],on:{"CONTROLLED.OPEN":"open",OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],POINTER_LEAVE:{actions:["clearPointerMoveOpened"]},POINTER_MOVE:[{guard:QO("noVisibleTooltip",Hd("hasPointerMoveOpened")),target:"opening"},{guard:Hd("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{tags:["closed"],activities:["trackScroll","trackPointerlockChange"],after:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]},on:{"CONTROLLED.OPEN":"open","CONTROLLED.CLOSE":"closed",OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],POINTER_LEAVE:[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],activities:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"CONTROLLED.CLOSE":"closed",CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],POINTER_LEAVE:[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"CONTENT.POINTER_LEAVE":{guard:"isInteractive",target:"closing"},"POSITIONING.SET":{actions:"reposition"}}},closing:{tags:["open"],activities:["trackStore","trackPositioning"],after:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]},on:{"CONTROLLED.CLOSE":"closed","CONTROLLED.OPEN":"open",CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],POINTER_MOVE:[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"CONTENT.POINTER_MOVE":{guard:"isInteractive",target:"open"},"POSITIONING.SET":{actions:"reposition"}}}}},{activities:{trackFocusVisible(t){return bs({root:_e.getRootNode(t)})},trackPositioning(t){t.currentPlacement||(t.currentPlacement=t.positioning.placement);const n=()=>_e.getPositionerEl(t);return Mt(_e.getTriggerEl(t),n,{...t.positioning,defer:!0,onComplete(o){t.currentPlacement=o.placement}})},trackPointerlockChange(t,n,{send:o}){const i=()=>o({type:"CLOSE",src:"pointerlock:change"});return ie(_e.getDoc(t),"pointerlockchange",i,!1)},trackScroll(t,n,{send:o}){if(!t.closeOnScroll)return;const i=_e.getTriggerEl(t);if(!i)return;const a=ju(i).map(l=>ie(l,"scroll",()=>{o({type:"CLOSE",src:"scroll"})},{passive:!0,capture:!0}));return()=>{a.forEach(l=>l==null?void 0:l())}},trackStore(t,n,{send:o}){return ko(ur,()=>{ur.id!==t.id&&o({type:"CLOSE",src:"id.change"})})},trackEscapeKey(t,n,{send:o}){if(!t.closeOnEscape)return;const i=s=>{Vo(s)||s.key==="Escape"&&(s.stopPropagation(),o({type:"CLOSE",src:"keydown.escape"}))};return ie(_e.getDoc(t),"keydown",i,!0)}},actions:{setGlobalId(t){ur.setId(t.id)},clearGlobalId(t){t.id===ur.id&&ur.setId(null)},invokeOnOpen(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!0})},invokeOnClose(t){var n;(n=t.onOpenChange)==null||n.call(t,{open:!1})},closeIfDisabled(t,n,{send:o}){t.disabled&&o({type:"CLOSE",src:"disabled.change"})},reposition(t,n){const o=()=>_e.getPositionerEl(t);Mt(_e.getTriggerEl(t),o,{...t.positioning,...n.options,defer:!0,listeners:!1,onComplete(i){t.currentPlacement=i.placement}})},toggleVisibility(t,n,{send:o}){queueMicrotask(()=>{o({type:t.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})})},setPointerMoveOpened(t){t.hasPointerMoveOpened=!0},clearPointerMoveOpened(t){t.hasPointerMoveOpened=!1}},guards:{noVisibleTooltip:()=>ur.id===null,isVisible:t=>t.id===ur.id,isInteractive:t=>t.interactive,hasPointerMoveOpened:t=>!!t.hasPointerMoveOpened,isOpenControlled:t=>!!t["open.controlled"]},delays:{OPEN_DELAY:t=>t.openDelay,CLOSE_DELAY:t=>t.closeDelay}})}ee()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","open.controlled","open","openDelay","positioning"]);const tk=(e={})=>{const{getRootNode:r}=Ae(),{dir:t}=Te(),n={id:f.useId(),dir:t,getRootNode:r,open:e.defaultOpen,"open.controlled":e.open!==void 0,...e},o={...n,onOpenChange:q(e.onOpenChange,{sync:!0})},[i,s]=xe(ek(n),{context:o});return JO(i,s,we)},rk=e=>{const[r,{children:t,...n}]=st(e),o=tk(n),i=Xe(E({present:o.open},r));return p.jsx(Ov,{value:o,children:p.jsx(at,{value:i,children:t})})},nk=e=>{const[r,{value:t,children:n}]=st(e),o=Xe(E({present:t.open},r));return p.jsx(Ov,{value:t,children:p.jsx(at,{value:o,children:n})})},Lv=f.forwardRef((e,r)=>{const t=Hn(),n=E(t.getTriggerProps(),e);return p.jsx(I.button,{...n,ref:r})});Lv.displayName="TooltipTrigger";const ok=e=>{const{children:r,locale:t}=e,n={locale:t,dir:hE(t)?"rtl":"ltr"};return p.jsx(vE,{value:n,children:r})},ik=(e,r)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[t,n]=e.split("/");if(!t||!n||t==="currentBg")return{invalid:!0,value:t};const o=r(`colors.${t}`),i=(l=r.raw(`opacity.${n}`))==null?void 0:l.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:t};const s=i?Number(i)*100+"%":`${n}%`,a=o??t;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}};function Sa(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>Sa(t));const r=Object.create(Object.getPrototypeOf(e));for(const t of Object.keys(e))r[t]=Sa(e[t]);return r}function Ra(e,r){if(r==null)return e;for(const t of Object.keys(r))if(!(r[t]===void 0||t==="__proto__"))if(!gt(e[t])&&gt(r[t]))Object.assign(e,{[t]:r[t]});else if(e[t]&&gt(r[t]))Ra(e[t],r[t]);else if(Array.isArray(r[t])&&Array.isArray(e[t])){let n=0;for(;n<r[t].length;n++)gt(e[t][n])&&gt(r[t][n])?Ra(e[t][n],r[t][n]):e[t][n]=r[t][n]}else Object.assign(e,{[t]:r[t]});return e}function Gn(e,...r){for(const t of r)Ra(e,t);return e}const Fv=e=>e,sk=e=>e,ak=(...e)=>Gn({},...e.map(Sa)),lk=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function ck(e){return`${e}`.replace(lk,r=>`\\${r}`)}const dk=/[A-Z]/g;function uk(e){return e.replace(dk,r=>`-${r.toLowerCase()}`)}function pk(e,r={}){const{fallback:t="",prefix:n=""}=r,o=uk(["-",n,ck(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${t?`, ${t}`:""})`}}var gk="",fk=gk.split(","),hk="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimingFunction,animationTimeline,appearance,aspectRatio,azimuth,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineEnd,borderInlineColor,borderInlineStyle,borderInlineWidth,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,color,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicSize,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,direction,display,emptyCells,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontVariationSettings,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inputSecurity,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,printColorAdjust,quotes,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,scale,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockStart,scrollMarginBlockEnd,scrollMarginBottom,scrollMarginInline,scrollMarginInlineStart,scrollMarginInlineEnd,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineStart,scrollPaddingInlineEnd,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,shapeImageThreshold,shapeMargin,shapeOutside,tabSize,tableLayout,textAlign,textAlignLast,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,zIndex,zoom,alignmentBaseline,baselineShift,clipRule,colorInterpolation,colorRendering,dominantBaseline,fill,fillOpacity,fillRule,floodColor,floodOpacity,glyphOrientationVertical,lightingColor,marker,markerEnd,markerMid,markerStart,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,textAnchor,vectorEffect",mk=hk.split(",").concat(fk),vk=new Map(mk.map(e=>[e,!0]));function bk(e){const r=Object.create(null);return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}var yk=/&|@/,Pk=bk(e=>vk.has(e)||e.startsWith("--")||yk.test(e));const Ck=e=>e!=null;function mr(e,r,t={}){const{stop:n,getKey:o}=t;function i(s,a=[]){if(gt(s)||Array.isArray(s)){const l={};for(const[c,d]of Object.entries(s)){const g=(o==null?void 0:o(c,d))??c,u=[...a,g];if(n!=null&&n(s,u))return r(s,a);const h=i(d,u);Ck(h)&&(l[g]=h)}return l}return r(s,a)}return i(e)}function ot(e,r){return Array.isArray(e)?e.map(t=>r(t)):gt(e)?mr(e,t=>r(t)):e!=null?r(e):e}function Ek(e,r){const t={};return mr(e,(n,o)=>{n&&(t[o.join(".")]=n.value)},{stop:r}),t}var ra,Gd;function Ik(){if(Gd)return ra;Gd=1,ra=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",r="[Circular]",t=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(u,h,v,m){typeof m>"u"&&(m=o()),a(u,"",0,[],void 0,0,m);var b;try{n.length===0?b=JSON.stringify(u,h,v):b=JSON.stringify(u,g(h),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;t.length!==0;){var y=t.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return b}function s(u,h,v,m){var b=Object.getOwnPropertyDescriptor(m,v);b.get!==void 0?b.configurable?(Object.defineProperty(m,v,{value:u}),t.push([m,v,h,b])):n.push([h,v,u]):(m[v]=u,t.push([m,v,h]))}function a(u,h,v,m,b,y,P){y+=1;var C;if(typeof u=="object"&&u!==null){for(C=0;C<m.length;C++)if(m[C]===u){s(r,u,h,b);return}if(typeof P.depthLimit<"u"&&y>P.depthLimit){s(e,u,h,b);return}if(typeof P.edgesLimit<"u"&&v+1>P.edgesLimit){s(e,u,h,b);return}if(m.push(u),Array.isArray(u))for(C=0;C<u.length;C++)a(u[C],C,C,m,u,y,P);else{var x=Object.keys(u);for(C=0;C<x.length;C++){var w=x[C];a(u[w],w,C,m,u,y,P)}}m.pop()}}function l(u,h){return u<h?-1:u>h?1:0}function c(u,h,v,m){typeof m>"u"&&(m=o());var b=d(u,"",0,[],void 0,0,m)||u,y;try{n.length===0?y=JSON.stringify(b,h,v):y=JSON.stringify(b,g(h),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;t.length!==0;){var P=t.pop();P.length===4?Object.defineProperty(P[0],P[1],P[3]):P[0][P[1]]=P[2]}}return y}function d(u,h,v,m,b,y,P){y+=1;var C;if(typeof u=="object"&&u!==null){for(C=0;C<m.length;C++)if(m[C]===u){s(r,u,h,b);return}try{if(typeof u.toJSON=="function")return}catch{return}if(typeof P.depthLimit<"u"&&y>P.depthLimit){s(e,u,h,b);return}if(typeof P.edgesLimit<"u"&&v+1>P.edgesLimit){s(e,u,h,b);return}if(m.push(u),Array.isArray(u))for(C=0;C<u.length;C++)d(u[C],C,C,m,u,y,P);else{var x={},w=Object.keys(u).sort(l);for(C=0;C<w.length;C++){var A=w[C];d(u[A],A,C,m,u,y,P),x[A]=u[A]}if(typeof b<"u")t.push([b,h,u]),b[h]=x;else return x}m.pop()}}function g(u){return u=typeof u<"u"?u:function(h,v){return v},function(h,v){if(n.length>0)for(var m=0;m<n.length;m++){var b=n[m];if(b[1]===h&&b[0]===v){v=b[2],n.splice(m,1);break}}return u.call(this,h,v)}}return ra}var Tk=Ik();const wk=TP(Tk),Ft=e=>{const r=Object.create(null);function t(...n){const o=n.map(i=>wk(i)).join("|");return r[o]===void 0&&(r[o]=e(...n)),r[o]}return t},Dv=16,Zi="px",sc="em",Po="rem";function Vv(e=""){const r=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),t=new RegExp(`${Zi}|${sc}|${Po}`),n=e.match(new RegExp(`${r.source}(${t.source})`));return n==null?void 0:n[1]}function Mv(e=""){if(typeof e=="number")return`${e}px`;const r=Vv(e);if(!r||r===Zi)return e;if(r===sc||r===Po)return`${parseFloat(e)*Dv}${Zi}`}function jv(e=""){const r=Vv(e);if(!r||r===Po)return e;if(r===sc)return`${parseFloat(e)}${Po}`;if(r===Zi)return`${parseFloat(e)/Dv}${Po}`}const xk=e=>e.charAt(0).toUpperCase()+e.slice(1);function Sk(e){const r=Rk(e),t=Object.fromEntries(r);function n(u){return t[u]}function o(u){return vn(n(u))}function i(){const u=Object.keys(t),h=Ok(u),v=u.flatMap(m=>{const b=n(m),y=[`${m}Down`,vn({max:Di(b.min)})],P=[m,vn({min:b.min})],C=[`${m}Only`,o(m)];return[P,C,y]}).filter(([,m])=>m!=="").concat(h.map(([m,b])=>{const y=n(m),P=n(b);return[`${m}To${xk(b)}`,vn({min:y.min,max:Di(P.min)})]}));return Object.fromEntries(v)}function s(){const u=i();return Object.fromEntries(Object.entries(u))}const a=s(),l=u=>a[u];function c(){return["base",...Object.keys(t)]}function d(u){return vn({min:n(u).min})}function g(u){return vn({max:Di(n(u).min)})}return{values:Object.values(t),only:o,keys:c,conditions:a,getCondition:l,up:d,down:g}}function Di(e){const r=parseFloat(Mv(e)??"")-.04;return jv(`${r}px`)}function Rk(e){return Object.entries(e).sort(([,t],[,n])=>parseInt(t,10)<parseInt(n,10)?-1:1).map(([t,n],o,i)=>{var a;let s=null;return o<=i.length-1&&(s=(a=i[o+1])==null?void 0:a[1]),s!=null&&(s=Di(s)),[t,{name:t,min:jv(n),max:s}]})}function Ok(e){const r=[];return e.forEach((t,n)=>{let o=n;o++;let i=e[o];for(;i;)r.push([t,i]),o++,i=e[o]}),r}function vn({min:e,max:r}){return e==null&&r==null?"":["@media screen",e&&`(min-width: ${e})`,r&&`(max-width: ${r})`].filter(Boolean).join(" and ")}const kk=(e,r)=>Object.fromEntries(Object.entries(e).map(([t,n])=>r(t,n))),Ak=e=>{const{breakpoints:r,conditions:t={}}=e,n=kk(t,(d,g)=>[`_${d}`,g]),o=Object.assign({},n,r.conditions);function i(){return Object.keys(o)}function s(d){return i().includes(d)||/^@|&|&$/.test(d)||d.startsWith("_")}function a(d){return d.filter(g=>g!=="base").sort((g,u)=>{const h=s(g),v=s(u);return h&&!v?1:!h&&v?-1:0})}function l(d){return d.startsWith("@breakpoint")?r.getCondition(d.replace("@breakpoint ","")):d}function c(d){return Reflect.get(o,d)||d}return{keys:i,sort:a,has:s,resolve:c,breakpoints:r.keys(),expandAtRule:l}},_v=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
23
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
24
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),Nk=_v("width"),$k=_v("height"),Bv=e=>({isMin:Yd(e.minMax,e.maxMin,e.min),isMax:Yd(e.maxMin,e.minMax,e.max)}),{isMin:Oa,isMax:Ud}=Bv(Nk),{isMin:ka,isMax:Wd}=Bv($k),zd=/print/i,Kd=/^print$/i,Lk=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Fk=/(\d)/,go=Number.MAX_VALUE,Dk={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function qd(e){const r=Lk.exec(e)||(Oa(e)||ka(e)?Fk.exec(e):null);if(!r)return go;if(r[0]==="0")return 0;const t=parseFloat(r[1]),n=r[2];return t*(Dk[n]||1)}function Yd(e,r,t){return n=>e.test(n)||!r.test(n)&&t.test(n)}function Vk(e,r){const t=zd.test(e),n=Kd.test(e),o=zd.test(r),i=Kd.test(r);return t&&o?!n&&i?1:n&&!i?-1:e.localeCompare(r):t?1:o?-1:null}const Mk=Ft((e,r)=>{const t=Vk(e,r);if(t!==null)return t;const n=Oa(e)||ka(e),o=Ud(e)||Wd(e),i=Oa(r)||ka(r),s=Ud(r)||Wd(r);if(n&&s)return-1;if(o&&i)return 1;const a=qd(e),l=qd(r);return a===go&&l===go?e.localeCompare(r):a===go?1:l===go?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(r)});function Xd(e){return e.sort(([r],[t])=>Mk(r,t))}function Hv(e){const r=[],t=[],n={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?r.push([s,a]):s.startsWith("@container")?t.push([s,a]):gt(a)?n[s]=Hv(a):n[s]=a;const o=Xd(r),i=Xd(t);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const Gv=/\s*!(important)?/i,jk=e=>Ot(e)?Gv.test(e):!1,_k=e=>Ot(e)?e.replace(Gv,"").trim():e;function Uv(e){const{transform:r,conditions:t,normalize:n}=e,o=Gk(e);return Ft(function(...s){const a=o(...s),l=n(a),c=Object.create(null);return mr(l,(d,g)=>{const u=jk(d);if(d==null)return;const[h,...v]=t.sort(g).map(t.resolve);u&&(d=_k(d));let m=r(h,d)??Object.create(null);m=mr(m,b=>Ot(b)&&u?`${b} !important`:b,{getKey:b=>t.expandAtRule(b)}),Bk(c,v.flat(),m)}),Hv(c)})}function Bk(e,r,t){let n=e;for(const o of r)o&&(n[o]||(n[o]=Object.create(null)),n=n[o]);Gn(n,t)}function Hk(...e){return e.filter(r=>gt(r)&&Object.keys(Nn(r)).length>0)}function Gk(e){function r(t){const n=Hk(...t);return n.length===1?n:n.map(o=>e.normalize(o))}return Ft(function(...n){return Gn({},...r(n))})}function ac(e,r=[]){const t=Object.assign({},e);for(const n of r)n in t&&delete t[n];return t}const Uk=(...e)=>{const r=e.filter(Boolean);return Array.from(new Set(r))},Wv=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Wk(e){const{css:r,conditions:t,normalize:n,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:d,compoundVariants:g}=Wv(a),u=Uv({conditions:t,normalize:n,transform(P,C){var x;return(x=c[P])==null?void 0:x[C]}}),h=(P={})=>{const C=n({...d,...Nn(P)});let x={...l};Gn(x,u(C));const w=s(g,C);return o.wrap("recipes",r(x,w))},v=Object.keys(c),m=P=>{const C=ac(P,["recipe"]),[x,w]=In(C,v);return v.includes("colorPalette")||(x.colorPalette=P.colorPalette||d.colorPalette),v.includes("orientation")&&(w.orientation=P.orientation),[x,w]},b=Object.fromEntries(Object.entries(c).map(([P,C])=>[P,Object.keys(C)]));return Object.assign(P=>r(h(P)),{className:a.className,__cva__:!0,variantMap:b,variantKeys:v,raw:h,config:a,splitVariantProps:m,merge(P){return i(zk(e)(this,P))}})}function s(a,l){let c={};return a.forEach(d=>{Object.entries(d).every(([u,h])=>u==="css"?!0:(Array.isArray(h)?h:[h]).some(m=>l[u]===m))&&(c=r(c,d.css))}),c}return i}function zk(e){const{css:r}=e;return function(n,o){const i=Wv(o.config),s=Uk(n.variantKeys,Object.keys(o.variants)),a=r(n.base,i.base),l=Object.fromEntries(s.map(u=>[u,r(n.config.variants[u],i.variants[u])])),c=Gn(n.config.defaultVariants,i.defaultVariants),d=[...n.compoundVariants,...i.compoundVariants];return{className:Fe(n.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:d}}}const Kk={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Zd={reset:0,base:1,tokens:2,recipes:3};function qk(e){const r=e.layers??Kk,n=Object.values(r).sort((o,i)=>Zd[o]-Zd[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${r[o]}`]:i}}}}function Yk(e){const{utility:r,normalize:t}=e,{hasShorthand:n,resolveShorthand:o}=r;return function(i){return mr(i,t,{stop:s=>Array.isArray(s),getKey:n?o:void 0})}}function Xk(e){const{preflight:r}=e;if(!r)return{};const{scope:t="",level:n="parent"}=gt(r)?r:{};let o="";t&&n==="parent"?o=`${t} `:t&&n==="element"&&(o=`&${t}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[t||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(n==="element"){const a=Object.entries(i).reduce((l,[c,d])=>(l[c]={[o]:d},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function Zk(e){const{conditions:r,isValidProperty:t}=e;return function(o){return mr(o,i=>i,{getKey:(i,s)=>gt(s)&&!r.has(i)&&!t(i)?Jk(i).map(a=>"&"+a).join(", "):i})}}function Jk(e){const r=[];let t=0,n="",o=!1;for(let i=0;i<e.length;i++){const s=e[i];if(s==="\\"&&!o){o=!0,n+=s;continue}if(o){o=!1,n+=s;continue}s==="("?t++:s===")"&&t--,s===","&&t===0?(r.push(n.trim()),n=""):n+=s}return n&&r.push(n.trim()),r}const Qk=(e={})=>{const r=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?e1(e.compoundVariants,o):[]}},n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))n.forEach(([l,c])=>{var d;(d=c.variants)[o]??(d[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(n)},e1=(e,r)=>e.filter(t=>t.css[r]).map(t=>({...t,css:t.css[r]}));function t1(e){const{cva:r}=e;return function(n={}){const o=Object.entries(Qk(n)).map(([g,u])=>[g,r(u)]);function i(g){const u=o.map(([h,v])=>[h,v(g)]);return Object.fromEntries(u)}const s=n.variants??{},a=Object.keys(s);function l(g){var m;const u=ac(g,["recipe"]),[h,v]=In(u,a);return a.includes("colorPalette")||(h.colorPalette=g.colorPalette||((m=n.defaultVariants)==null?void 0:m.colorPalette)),a.includes("orientation")&&(v.orientation=g.orientation),[h,v]}const c=Object.fromEntries(Object.entries(s).map(([g,u])=>[g,Object.keys(u)]));let d={};return n.className&&(d=Object.fromEntries(n.slots.map(g=>[g,`${n.className}__${g}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:d})}}const r1=()=>e=>Array.from(new Set(e)),n1=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,o1=function(e,r){return r?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},zv=e=>(e+"").replace(n1,o1),Kv=(e,r)=>{let t="",n=0,o="char",i="",s="";const a=[];for(;n<e.length;){const l=e[n];if(l==="{"){const d=e.indexOf("}",n);if(d===-1)break;const g=e.slice(n+1,d),u=r(g);t+=u??g,n=d+1;continue}if(o==="token"&&l===","){e[n]===""&&n++,o="fallback",a.push(o);const d=r(i);d!=null&&d.endsWith(")")&&(t+=d.slice(0,-1)),i="",s="";continue}if(o==="fallback"&&s+l===", var("){const u=i1(e.slice(n+1))+n+1,h=e.slice(n+1,u);if(u===-1)break;t+=", var("+h+")",n=u+1,o=a.pop()??o,s="";continue}if(o==="token"||o==="fallback"){if(n++,l===")"){o=a.pop()??o??"char",s+=l;const d=i&&(r(i)??zv(i));if(s){if(s=s.slice(1).trim(),!s.startsWith("token(")&&s.endsWith(")")&&(s=s.slice(0,-1)),s.includes("token(")){const u=Kv(s,r);u&&(s=u.slice(0,-1))}else if(s){const u=r(s);u&&(s=u)}}const g=t.at(-1);s?g!=null&&g.trim()?t+=d.slice(0,-1)+(", "+s+")"):t+=s:t+=d||")",i="",s="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(s+=l);continue}const c=e.indexOf("token(",n);if(c!==-1){const d=c+6;t+=e.slice(n,c),n=d,o="token",a.push(o);continue}t+=l,n++}return t},i1=e=>{let r=0;const t=["("];for(;r<e.length;){const n=e[r];if(n==="(")t.push(n);else if(n===")"&&(t.pop(),t.length===0))return r;r++}return r};function qv(e){const r={};return e.forEach((t,n)=>{t instanceof Map?r[n]=Object.fromEntries(t):r[n]=t}),r}const Yv=/({([^}]*)})/g,s1=/[{}]/g,a1=/\w+\.\w+/,Xv=e=>{if(!Ot(e))return[];const r=e.match(Yv);return r?r.map(t=>t.replace(s1,"")).map(t=>t.trim()):[]},l1=e=>Yv.test(e);function Zv(e){var t,n,o;if(!((t=e.extensions)!=null&&t.references))return((o=(n=e.extensions)==null?void 0:n.cssVar)==null?void 0:o.ref)??e.value;const r=e.extensions.references??{};return e.value=Object.keys(r).reduce((i,s)=>{const a=r[s];if(a.extensions.conditions)return i;const l=Zv(a);return i.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Jv(e){return gt(e)&&e.reference?e.reference:String(e)}const Es=(e,...r)=>r.map(Jv).join(` ${e} `).replace(/calc/g,""),Jd=(...e)=>`calc(${Es("+",...e)})`,Qd=(...e)=>`calc(${Es("-",...e)})`,Aa=(...e)=>`calc(${Es("*",...e)})`,eu=(...e)=>`calc(${Es("/",...e)})`,tu=e=>{const r=Jv(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:Aa(r,-1)},yn=Object.assign(e=>({add:(...r)=>yn(Jd(e,...r)),subtract:(...r)=>yn(Qd(e,...r)),multiply:(...r)=>yn(Aa(e,...r)),divide:(...r)=>yn(eu(e,...r)),negate:()=>yn(tu(e)),toString:()=>e.toString()}),{add:Jd,subtract:Qd,multiply:Aa,divide:eu,negate:tu}),c1={enforce:"pre",transform(e){const{prefix:r,allTokens:t,formatCssVar:n,formatTokenName:o,registerToken:i}=e;t.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=n(l,r);if(Ot(a.value)&&a.value==="0rem")return;const d=structuredClone(a);Object.assign(d.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),d.value=yn.negate(c.ref);const g=d.path[d.path.length-1];g!=null&&(d.path[d.path.length-1]=`-${g}`),d.path&&(d.name=o(d.path)),i(d)})}},d1=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),u1={enforce:"post",transform(e){e.allTokens.filter(t=>d1.has(t.extensions.category)&&!t.extensions.negative).forEach(t=>{Object.assign(t.extensions,{pixelValue:Mv(t.value)})})}},p1={enforce:"post",transform(e){const{allTokens:r,registerToken:t,formatTokenName:n}=e,o=r.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{var u;const d=n(c),g=s.get(d)||[];if(g.push(a),s.set(d,g),a.extensions.default&&c.length===1){const h=(u=l.keys[0])==null?void 0:u.filter(Boolean);if(!h.length)return;const v=c.concat(h);i.set(n(v),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=n(l),d=n(l.slice(1));t({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:d,virtual:!0}},"pre")})}},g1={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(r=>r.value!=="")}},f1=[c1,p1,u1,g1],h1={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,r){const{prefix:t,formatCssVar:n}=r,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:n(s.filter(Boolean),t)}}},m1={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,r){const{prefix:t,formatCssVar:n}=r,o=Xv(e.value);return o.length&&o.forEach(i=>{const s=n(i.split("."),t);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},v1={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,r){let t=e.path.slice();if(t.pop(),t.shift(),t.length===0){const a=[...e.path];a.shift(),t=a}if(t.length===0)return{};const n=t.reduce((a,l,c,d)=>{const g=d.slice(0,c+1);return a.push(g),a},[]),o=t[0],i=r.formatTokenName(t),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,d)=>(a.push(d.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:n,keys:s}}}},b1=[h1,m1,v1],ru=e=>gt(e)&&Object.prototype.hasOwnProperty.call(e,"value");function y1(e){return e?{breakpoints:ot(e,r=>({value:r})),sizes:Object.fromEntries(Object.entries(e).map(([r,t])=>[`breakpoint-${r}`,{value:t}]))}:{breakpoints:{},sizes:{}}}function P1(e){const{prefix:r="",tokens:t={},semanticTokens:n={},breakpoints:o={}}=e,i=$=>$.join("."),s=($,N)=>pk($.join("-"),{prefix:N}),a=[],l=new Map,c=new Map,d=new Map,g=new Map,u=new Map,h=new Map,v=new Map,m=new Map,b=[];function y($,N){a.push($),l.set($.name,$),N&&m.forEach(re=>{re.enforce===N&&me(re,$)})}const P=y1(o),C=Nn({...t,breakpoints:P.breakpoints,sizes:{...t.sizes,...P.sizes}});function x(){mr(C,($,N)=>{const re=N.includes("DEFAULT");N=nu(N);const be=N[0],L=i(N),Me=Ot($)?{value:$}:$,dt={value:Me.value,originalValue:Me.value,name:L,path:N,extensions:{condition:"base",originalPath:N,category:be,prop:i(N.slice(1))}};re&&(dt.extensions.default=!0),y(dt)},{stop:ru}),mr(n,($,N)=>{const re=N.includes("DEFAULT");N=Qv(nu(N));const be=N[0],L=i(N),Me=Ot($.value)?{value:{base:$.value}}:$,dt={value:Me.value.base||"",originalValue:Me.value.base||"",name:L,path:N,extensions:{originalPath:N,category:be,conditions:Me.value,condition:"base",prop:i(N.slice(1))}};re&&(dt.extensions.default=!0),y(dt)},{stop:ru})}function w($){return l.get($)}function A($){const{condition:N}=$.extensions;N&&(c.has(N)||c.set(N,new Set),c.get(N).add($))}function O($){const{category:N,prop:re}=$.extensions;N&&(v.has(N)||v.set(N,new Map),v.get(N).set(re,$))}function R($){const{condition:N,negative:re,virtual:be,cssVar:L}=$.extensions;re||be||!N||!L||(d.has(N)||d.set(N,new Map),d.get(N).set(L.var,$.value))}function S($){const{category:N,prop:re,cssVar:be,negative:L}=$.extensions;if(!N)return;h.has(N)||h.set(N,new Map);const Me=L?$.extensions.conditions?$.originalValue:$.value:be.ref;h.get(N).set(re,Me),u.set([N,re].join("."),Me)}function k($){const{colorPalette:N,virtual:re,default:be}=$.extensions;!N||re||N.roots.forEach(L=>{var bc;const Me=i(L);g.has(Me)||g.set(Me,new Map);const dt=E1([...$.path],[...L]),Vr=i(dt),dn=w(Vr);if(!dn||!dn.extensions.cssVar)return;const{var:My}=dn.extensions.cssVar;if(g.get(Me).set(My,$.extensions.cssVar.ref),be&&L.length===1){const jy=i(["colors","colorPalette"]),yc=w(jy);if(!yc)return;const _y=i($.path),Pc=w(_y);if(!Pc)return;const Cc=(bc=N.keys[0])==null?void 0:bc.filter(Boolean);if(!Cc.length)return;const Fs=i(L.concat(Cc));g.has(Fs)||g.set(Fs,new Map),g.get(Fs).set(yc.extensions.cssVar.var,Pc.extensions.cssVar.ref)}})}let V={};function F(){a.forEach($=>{A($),O($),R($),S($),k($)}),V=qv(h)}const J=($,N)=>{var dn;if(!$||typeof $!="string")return{invalid:!0,value:$};const[re,be]=$.split("/");if(!re||!be)return{invalid:!0,value:re};const L=N(re),Me=(dn=w(`opacity.${be}`))==null?void 0:dn.value;if(!Me&&isNaN(Number(be)))return{invalid:!0,value:re};const dt=Me?Number(Me)*100+"%":`${be}%`,Vr=L??re;return{invalid:!1,color:Vr,value:`color-mix(in srgb, ${Vr} ${dt}, transparent)`}},te=Ft(($,N)=>u.get($)??N),Q=Ft($=>V[$]||null),Ie=Ft($=>Kv($,N=>{if(!N)return;if(N.includes("/")){const be=J(N,L=>te(L));if(be.invalid)throw new Error("Invalid color mix at "+N+": "+be.value);return be.value}const re=te(N);return re||(a1.test(N)?zv(N):N)})),Se={prefix:r,allTokens:a,tokenMap:l,registerToken:y,getByName:w,formatTokenName:i,formatCssVar:s,flatMap:u,cssVarMap:d,categoryMap:v,colorPaletteMap:g,getVar:te,getCategoryValues:Q,expandReferenceInValue:Ie};function W(...$){$.forEach(N=>{m.set(N.name,N)})}function le(...$){b.push(...$)}function me($,N){if(N.extensions.references||Ua($.match)&&!$.match(N))return;const be=(L=>$.transform(L,Se))(N);switch(!0){case $.type==="extensions":Object.assign(N.extensions,be);break;case $.type==="value":N.value=be;break;default:N[$.type]=be;break}}function bt($){b.forEach(N=>{N.enforce===$&&N.transform(Se)})}function Bt($){m.forEach(N=>{N.enforce===$&&a.forEach(re=>{me(N,re)})})}function Dr(){a.forEach($=>{const N=C1($);!N||N.length===0||N.forEach(re=>{y(re)})})}function cn($){return Xv($).map(re=>w(re)).filter(Boolean)}function yr(){a.forEach($=>{if(!l1($.value))return;const N=cn($.value);$.extensions.references=N.reduce((re,be)=>(re[be.name]=be,re),{})})}function $s(){a.forEach($=>{Zv($)})}function Ls(){bt("pre"),Bt("pre"),Dr(),yr(),$s(),bt("post"),Bt("post"),F()}return x(),W(...b1),le(...f1),Ls(),Se}function nu(e){return e[0]==="DEFAULT"?e:e.filter(r=>r!=="DEFAULT")}function Qv(e){return e.filter(r=>r!=="base")}function C1(e){if(!e.extensions.conditions)return;const{conditions:r}=e.extensions,t=[];return mr(r,(n,o)=>{const i=Qv(o);if(!i.length)return;const s=structuredClone(e);s.value=n,s.extensions.condition=i.join(":"),t.push(s)}),t}function E1(e,r){const t=e.findIndex((n,o)=>r.every((i,s)=>e[o+s]===i));return t===-1||(e.splice(t,r.length),e.splice(t,0,"colorPalette")),e}r1()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function I1(e){return Object.fromEntries(Object.entries(e).map(([r,t])=>[r,t]))}function T1(e){const r=I1(e.config),t=e.tokens,n=new Map,o=new Map;function i(R,S){r[R]=S,s(R,S)}const s=(R,S)=>{const k=m(S);k&&(o.set(R,k),g(R,S))},a=()=>{for(const[R,S]of Object.entries(r))S&&s(R,S)},l=()=>{for(const[R,S]of Object.entries(r)){const{shorthand:k}=S??{};if(!k)continue;(Array.isArray(k)?k:[k]).forEach(F=>n.set(F,R))}},c=()=>{const R=qv(t.colorPaletteMap);i("colorPalette",{values:Object.keys(R),transform:Ft(S=>R[S])})},d=new Map,g=(R,S)=>{if(!S)return;const k=m(S,F=>`type:Tokens["${F}"]`);if(typeof k=="object"&&k.type){d.set(R,new Set([`type:${k.type}`]));return}if(k){const F=new Set(Object.keys(k));d.set(R,F)}const V=d.get(R)??new Set;S.property&&d.set(R,V.add(`CssProperties["${S.property}"]`))},u=()=>{for(const[R,S]of Object.entries(r))S&&g(R,S)},h=(R,S)=>{const k=d.get(R)??new Set;d.set(R,new Set([...k,...S]))},v=()=>{const R=new Map;for(const[S,k]of d.entries()){if(k.size===0){R.set(S,["string"]);continue}const V=Array.from(k).map(F=>F.startsWith("CssProperties")?F:F.startsWith("type:")?F.replace("type:",""):JSON.stringify(F));R.set(S,V)}return R},m=(R,S)=>{const{values:k}=R,V=F=>{const J=S==null?void 0:S(F);return J?{[J]:J}:void 0};return Ot(k)?(V==null?void 0:V(k))??t.getCategoryValues(k)??{}:Array.isArray(k)?k.reduce((F,J)=>(F[J]=J,F),{}):Ua(k)?k(S?V:t.getCategoryValues):k},b=Ft((R,S)=>({[R]:R.startsWith("--")?t.getVar(S,S):S})),y=Object.assign(t.getVar,{raw:R=>t.getByName(R)}),P=Ft((R,S)=>{var te;const k=w(R);Ot(S)&&!S.includes("_EMO_")&&(S=t.expandReferenceInValue(S));const V=r[k];if(!V)return b(k,S);const F=(te=o.get(k))==null?void 0:te[S];if(!V.transform)return b(R,F??S);const J=Q=>ik(Q,y);return V.transform(F??S,{raw:S,token:y,utils:{colorMix:J}})});function C(){l(),c(),a(),u()}C();const x=n.size>0,w=Ft(R=>n.get(R)??R);return{keys:()=>[...Array.from(n.keys()),...Object.keys(r)],hasShorthand:x,transform:P,shorthands:n,resolveShorthand:w,register:i,getTypes:v,addPropertyType:h}}function w1(...e){const r=ak(...e),{theme:t={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=r,l=qk(r),c=P1({breakpoints:t.breakpoints,tokens:t.tokens,semanticTokens:t.semanticTokens,prefix:s}),d=Sk(t.breakpoints??{}),g=Ak({conditions:r.conditions??{},breakpoints:d}),u=T1({config:n,tokens:c});function h(){const{textStyles:W,layerStyles:le,animationStyles:me}=t,bt=Nn({textStyle:W,layerStyle:le,animationStyle:me});for(const[Bt,Dr]of Object.entries(bt)){const cn=Ek(Dr??{},yr=>gt(yr)&&"value"in yr);u.register(Bt,{values:Object.keys(cn),transform(yr){return C(cn[yr])}})}}h(),u.addPropertyType("animationName",Object.keys(t.keyframes??{}));const v=new Set(["css",...u.keys(),...g.keys()]),m=Ft(W=>v.has(W)||Pk(W)),b=W=>Array.isArray(W)?W.reduce((le,me,bt)=>{const Bt=g.breakpoints[bt];return me!=null&&(le[Bt]=me),le},{}):W,y=Yk({utility:u,normalize:b}),P=Zk({conditions:g,isValidProperty:m}),C=Uv({transform:u.transform,conditions:g,normalize:y}),x=Wk({css:C,conditions:g,normalize:y,layers:l}),w=t1({cva:x});function A(){const W={};for(const[le,me]of c.cssVarMap.entries()){const bt=Object.fromEntries(me);if(Object.keys(bt).length===0)continue;const Bt=le==="base"?i:g.resolve(le),Dr=C(P({[Bt]:bt}));Gn(W,Dr)}return l.wrap("tokens",W)}function O(){const W=Object.fromEntries(Object.entries(t.keyframes??{}).map(([me,bt])=>[`@keyframes ${me}`,bt])),le=Object.assign({},W,C(P(o)));return l.wrap("base",le)}function R(W){return In(W,m)}function S(){const W=Xk({preflight:a});return l.wrap("reset",W)}const k=x1(c),V=(W,le)=>{var me;return((me=k.get(W))==null?void 0:me.value)||le};V.var=(W,le)=>{var me;return((me=k.get(W))==null?void 0:me.variable)||le};function F(W,le){var me;return((me=t.recipes)==null?void 0:me[W])??le}function J(W,le){var me;return((me=t.slotRecipes)==null?void 0:me[W])??le}function te(W){return Object.hasOwnProperty.call(t.recipes??{},W)}function Q(W){return Object.hasOwnProperty.call(t.slotRecipes??{},W)}function Ie(W){return te(W)||Q(W)}const Se=[S(),O(),A()];return{$$chakra:!0,_config:r,_global:Se,breakpoints:d,tokens:c,conditions:g,utility:u,token:V,properties:v,layers:l,isValidProperty:m,splitCssProps:R,normalizeValue:b,getTokenCss:A,getGlobalCss:O,getPreflightCss:S,css:C,cva:x,sva:w,getRecipe:F,getSlotRecipe:J,hasRecipe:Ie,isRecipe:te,isSlotRecipe:Q}}function x1(e){const r=new Map;return e.allTokens.forEach(t=>{const{cssVar:n,virtual:o,conditions:i}=t.extensions,s=i||o?n.ref:t.value;r.set(t.name,{value:s,variable:n.ref})}),r}function lc(e){const{key:r,recipe:t}=e,n=Fo();return f.useMemo(()=>{const o=t||(r!=null?n.getSlotRecipe(r):{});return n.sva(structuredClone(o))},[r,t,n])}const S1=e=>e.charAt(0).toUpperCase()+e.slice(1),Y=e=>{const{key:r,recipe:t}=e,n=S1(r||t.className||"Component"),[o,i]=Cn({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[s,a]=Cn({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Cn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function d(v){const{unstyled:m,...b}=v,y=lc({key:r,recipe:b.recipe||t}),[P,C]=f.useMemo(()=>y.splitVariantProps(b),[b,y]);return{styles:f.useMemo(()=>m?du:y(P),[m,P,y]),classNames:y.classNameMap,props:C}}function g(v,m={}){const{defaultProps:b}=m,y=P=>{const C=c(),x=f.useMemo(()=>qr(b,C,P),[C,P]),{styles:w,classNames:A,props:O}=d(x);return p.jsx(o,{value:w,children:p.jsx(s,{value:A,children:p.jsx(v,{...O})})})};return y.displayName=v.displayName||v.name,y}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:d,withProvider:(v,m,b)=>{const{defaultProps:y,...P}=b??{},C=j(v,{},P),x=f.forwardRef((w,A)=>{var te;const O=c(),R=f.useMemo(()=>qr(y??{},O,w),[O,w]),{styles:S,props:k,classNames:V}=d(R),F=V[m],J=p.jsx(o,{value:S,children:p.jsx(s,{value:V,children:p.jsx(C,{ref:A,...k,css:[S[m],R.css],className:Fe(R.className,F)})})});return((te=b==null?void 0:b.wrapElement)==null?void 0:te.call(b,J,R))??J});return x.displayName=v.displayName||v.name,x},withContext:(v,m,b)=>{const y=j(v,{},b),P=f.forwardRef((C,x)=>{const w=i(),A=a(),O=A==null?void 0:A[m];return p.jsx(y,{...C,css:[m?w[m]:void 0,C.css],ref:x,className:Fe(C.className,O)})});return P.displayName=v.displayName||v.name,P},withRootProvider:g,useStyles:i,useClassNames:a}},Is=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"M20 6 9 17l-5-5"})}),R1=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"m18 15-6-6-6 6"})}),cc=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"m6 9 6 6 6-6"})}),O1=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:p.jsx("path",{d:"m9 18 6-6-6-6"})}),k1=e=>p.jsxs(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("circle",{cx:"12",cy:"12",r:"1"}),p.jsx("circle",{cx:"19",cy:"12",r:"1"}),p.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),A1=e=>p.jsxs(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("path",{d:"m5 12 7-7 7 7"}),p.jsx("path",{d:"M12 19V5"})]}),N1=e=>p.jsxs(j.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("path",{d:"M12 5v14"}),p.jsx("path",{d:"m19 12-7 7-7-7"})]}),eb=e=>p.jsx(j.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:p.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Ji=e=>p.jsx(j.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:p.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),ou=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:p.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),$1=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:p.jsx("path",{d:"M6.5 10c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.318.142-.686.238-1.028.466-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.945-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 6.5 10zm11 0c-.223 0-.437.034-.65.065.069-.232.14-.468.254-.68.114-.308.292-.575.469-.844.148-.291.409-.488.601-.737.201-.242.475-.403.692-.604.213-.21.492-.315.714-.463.232-.133.434-.28.65-.35l.539-.222.474-.197-.485-1.938-.597.144c-.191.048-.424.104-.689.171-.271.05-.56.187-.882.312-.317.143-.686.238-1.028.467-.344.218-.741.4-1.091.692-.339.301-.748.562-1.05.944-.33.358-.656.734-.909 1.162-.293.408-.492.856-.702 1.299-.19.443-.343.896-.468 1.336-.237.882-.343 1.72-.384 2.437-.034.718-.014 1.315.028 1.747.015.204.043.402.063.539l.025.168.026-.006A4.5 4.5 0 1 0 17.5 10z"})}),Wo=e=>p.jsx(j.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),L1=e=>p.jsxs(j.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),p.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})]}),F1=e=>p.jsxs(j.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),p.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),D1=e=>p.jsxs(j.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("path",{d:"m2 22 1-1h3l9-9"}),p.jsx("path",{d:"M3 21v-3l9-9"}),p.jsx("path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"})]}),V1=e=>p.jsxs(j.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[p.jsx("circle",{cx:"12",cy:"12",r:"1"}),p.jsx("circle",{cx:"19",cy:"12",r:"1"}),p.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),{withProvider:tb,withContext:zo,PropsProvider:M1}=Y({key:"accordion"}),j1=tb(Kp,"root",{forwardAsChild:!0}),_1=tb(zp,"root",{forwardAsChild:!0}),B1=M1,H1=zo(Hp,"item",{forwardAsChild:!0}),G1=zo(Gp,"itemContent",{forwardAsChild:!0}),U1=zo("div","itemBody"),W1=zo(Wp,"itemTrigger",{forwardAsChild:!0}),z1=zo(Up,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(cc,{})}}),K1=HI,q1=Xw,Y1=Object.freeze(Object.defineProperty({__proto__:null,Context:K1,Item:H1,ItemBody:U1,ItemContent:G1,ItemContext:q1,ItemIndicator:z1,ItemTrigger:W1,PropsProvider:B1,Root:_1,RootProvider:j1},Symbol.toStringTag,{value:"Module"})),{withRootProvider:rb,withContext:Ko,PropsProvider:X1}=Y({key:"actionBar"}),Z1=rb(rm,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),J1=rb(tm,{defaultProps:{autoFocus:!1,lazyMount:!0,unmountOnExit:!0}}),Q1=X1,eA=Ko("div","positioner",{forwardAsChild:!0}),tA=Ko(Ul,"content",{forwardAsChild:!0}),rA=Ko("div","separator"),nA=Ko("button","selectionTrigger"),oA=Ko(Gl,"closeTrigger",{forwardAsChild:!0}),iA=Zh,sA=Object.freeze(Object.defineProperty({__proto__:null,CloseTrigger:oA,Content:tA,Context:iA,Positioner:eA,PropsProvider:Q1,Root:J1,RootProvider:Z1,SelectionTrigger:nA,Separator:rA},Symbol.toStringTag,{value:"Module"})),[aA,lA]=Cn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:cA,withContext:dc,useStyles:dA,PropsProvider:uA}=Y({key:"alert"}),pA=cA("div","root",{forwardAsChild:!0,wrapElement(e,r){return p.jsx(aA,{value:{status:r.status||"info"},children:e})}}),gA=uA,fA=dc("div","title"),hA=dc("div","description"),mA=dc("div","content"),vA={info:ou,warning:Ji,success:eb,error:Ji,neutral:ou},bA=f.forwardRef(function(r,t){const n=lA(),o=dA(),i=typeof n.status=="string"?vA[n.status]:f.Fragment,{children:s=p.jsx(i,{}),...a}=r;return p.jsx(j.span,{ref:t,...a,css:[o.indicator,r.css],children:s})}),yA=Object.freeze(Object.defineProperty({__proto__:null,Content:mA,Description:hA,Indicator:bA,Root:pA,RootPropsProvider:gA,Title:fA},Symbol.toStringTag,{value:"Module"})),PA=Fv({"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}),CA=f.forwardRef(function(r,t){const{ratio:n=4/3,children:o,className:i,...s}=r,a=f.Children.only(o);return p.jsx(j.div,{ref:t,position:"relative",className:Fe("chakra-aspect-ratio",i),_before:{height:0,content:'""',display:"block",paddingBottom:ot(n,l=>`${1/l*100}%`)},...s,css:[PA,r.css],children:a})}),Rr=e=>e?"":void 0,EA=j("div",{base:{display:"inline-flex",gap:"0.5rem",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),uc=f.memo(f.forwardRef(function(r,t){const{align:n="center",justify:o="flex-start",children:i,wrap:s,skip:a,...l}=r,c=f.useMemo(()=>{let d=f.Children.toArray(i).filter(f.isValidElement);if(d.length===1)return d;const g=d.filter(h=>!(a!=null&&a(h))),u=g.length;return g.length===1?d:d.map(h=>{const v=h.props;if(a!=null&&a(h))return h;const m=g.indexOf(h);return f.cloneElement(h,{...v,"data-group-item":"","data-first":Rr(m===0),"data-last":Rr(m===u-1),"data-between":Rr(m>0&&m<u-1),style:{"--group-count":u,"--group-index":m,...(v==null?void 0:v.style)??{}}})})},[i,a]);return p.jsx(EA,{ref:t,alignItems:n,justifyContent:o,flexWrap:s,...l,className:Fe("chakra-group",r.className),children:c})})),{withProvider:nb,withContext:IA,useStyles:TA,useClassNames:wA,PropsProvider:ob}=Y({key:"avatar"}),xA=nb(Jp,"root",{forwardAsChild:!0}),SA=nb(Zp,"root",{forwardAsChild:!0}),RA=ob,OA=j(Yp,{},{forwardAsChild:!0});function kA(e){return e.children||e.asChild?e.children:e.name?AA(e.name):p.jsx(ib,{})}function AA(e){const r=e.trim().split(" "),t=r[0]!=null?r[0]:"",n=r.length>1?r[r.length-1]:"";return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)}const NA=f.forwardRef(function(r,t){const n=TA(),o=wA(),{name:i,...s}=r;return p.jsx(OA,{ref:t,...s,className:Fe(r.className,o.fallback),css:[n.fallback,r.css],children:kA(r)})}),$A=IA(Xp,"image",{forwardAsChild:!0,defaultProps:{draggable:"false",referrerPolicy:"no-referrer"}}),ib=f.forwardRef(function(r,t){return p.jsx(j.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1.2em",width:"1.2em",ref:t,...r,children:p.jsx("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})})}),LA=Jw;f.forwardRef(function(r,t){const n=lc({key:"avatar"}),[o,i]=f.useMemo(()=>n.splitVariantProps(r),[r,n]);return p.jsx(ob,{value:o,children:p.jsx(uc,{gap:"0",spaceX:"-3",ref:t,...i})})});const FA=Object.freeze(Object.defineProperty({__proto__:null,Context:LA,Fallback:NA,Icon:ib,Image:$A,PropsProvider:RA,Root:SA,RootProvider:xA},Symbol.toStringTag,{value:"Module"})),{withContext:DA}=tt({key:"badge"}),VA=DA("span"),MA="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",jA=`(?:${MA.split(",").join("|")})`,_A=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${jA}$`),BA=e=>typeof e=="string"&&_A.test(e),Ti=e=>BA(e)||HP(e)?e:`token(spacing.${e}, ${e})`,HA=f.forwardRef(function(r,t){const{inline:n,inlineStart:o,inlineEnd:i,block:s,blockStart:a,blockEnd:l,...c}=r;return p.jsx(j.div,{ref:t,...c,css:{"--bleed-inline-start":ot(n??o,Ti),"--bleed-inline-end":ot(n??i,Ti),"--bleed-block-start":ot(s??a,Ti),"--bleed-block-end":ot(s??l,Ti),marginInlineStart:"calc(var(--bleed-inline-start, 0) * -1)",marginInlineEnd:"calc(var(--bleed-inline-end, 0) * -1)",marginBlockStart:"calc(var(--bleed-block-start, 0) * -1)",marginBlockEnd:"calc(var(--bleed-block-end, 0) * -1)"}})}),{withProvider:GA,withContext:pc,PropsProvider:UA}=Y({key:"blockquote"}),WA=GA("figure","root"),zA=UA,KA=pc("blockquote","content"),qA=pc("figcaption","caption"),YA=pc($1,"icon"),XA=Object.freeze(Object.defineProperty({__proto__:null,Caption:qA,Content:KA,Icon:YA,PropsProvider:zA,Root:WA},Symbol.toStringTag,{value:"Module"})),qo=j("div");qo.displayName="Box";const ZA=f.forwardRef(function(r,t){const{size:n,...o}=r;return p.jsx(qo,{...o,ref:t,boxSize:n,css:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexGrow:0,...r.css}})}),JA=f.forwardRef(function(r,t){const{size:n,...o}=r;return p.jsx(ZA,{size:n,ref:t,borderRadius:"9999px",...o})}),fo=j("span"),{withProvider:QA,withContext:Un,PropsProvider:eN}=Y({key:"breadcrumb"}),tN=QA("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),rN=eN,nN=Un("ol","list"),oN=Un("li","item"),iN=Un("a","link"),sN=Un("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),aN=Un("li","separator",{defaultProps:{children:p.jsx(O1,{})}}),lN=Un("span","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:p.jsx(k1,{})}}),cN=Object.freeze(Object.defineProperty({__proto__:null,CurrentLink:sN,Ellipsis:lN,Item:oN,Link:iN,List:nN,PropsProvider:rN,Root:tN,Separator:aN},Symbol.toStringTag,{value:"Module"})),sb=j("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});sb.displayName="AbsoluteCenter";const{withContext:dN}=tt({key:"spinner"}),ab=dN("span"),uN=pe.forwardRef(function(r,t){const{spinner:n=p.jsx(ab,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=r;return a?s?p.jsxs(fo,{ref:t,display:"contents",...l,children:[o==="start"&&n,s,o==="end"&&n]}):n?p.jsxs(fo,{ref:t,display:"contents",...l,children:[p.jsx(sb,{display:"inline-flex",children:n}),p.jsx(fo,{opacity:0,children:i})]}):p.jsx(fo,{ref:t,display:"contents",...l,children:i}):i}),{useRecipeResult:pN,usePropsContext:gN}=tt({key:"button"}),lb=f.forwardRef(function(r,t){const n=gN(),o=f.useMemo(()=>qr(n,r),[n,r]),i=pN(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:d,...g}=i.props;return p.jsx(j.button,{type:"button",ref:t,...g,disabled:s||g.disabled,className:Fe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?p.jsx(uN,{spinner:c,text:a,spinnerPlacement:d,children:l}):l})}),Yo=f.forwardRef(function(r,t){return p.jsx(lb,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...r})}),fN=pe.forwardRef(function(r,t){return p.jsx(Yo,{variant:"ghost","aria-label":"Close",ref:t,...r,children:r.children??p.jsx(Wo,{})})}),{withProvider:hN,withContext:Xo,PropsProvider:mN}=Y({key:"card"}),vN=hN("div","root"),bN=mN,yN=Xo("div","body"),PN=Xo("div","header"),CN=Xo("div","footer"),EN=Xo("h3","title"),IN=Xo("p","description"),TN=Object.freeze(Object.defineProperty({__proto__:null,Body:yN,Description:IN,Footer:CN,Header:PN,PropsProvider:bN,Root:vN,Title:EN},Symbol.toStringTag,{value:"Module"})),cb=j("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});cb.displayName="Center";const db=f.forwardRef(function(r,t){const n=os({key:"checkmark",recipe:r.recipe}),[o,i]=n.splitVariantProps(r),{checked:s,indeterminate:a,disabled:l,unstyled:c,children:d,...g}=i,u=c?La:n(o);return p.jsx(j.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":a?"indeterminate":s?"checked":"unchecked","data-disabled":Rr(l),css:[u,r.css],...g,children:a?p.jsx("path",{d:"M5 12h14"}):s?p.jsx("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:ub,withContext:pb,useStyles:wN,PropsProvider:xN}=Y({key:"checkbox"}),SN=ub($l,"root",{forwardAsChild:!0}),RN=ub(Nl,"root",{forwardAsChild:!0}),ON=xN,kN=pb(Al,"label",{forwardAsChild:!0}),gb=f.forwardRef(function(r,t){const{checked:n,indeterminate:o,...i}=r,s=en(),a=wN();return n&&s.checked?p.jsx(j.svg,{ref:t,asChild:!0,...i,css:[a.indicator,r.css],children:n}):o&&s.indeterminate?p.jsx(j.svg,{ref:t,asChild:!0,...i,css:[a.indicator,r.css],children:o}):p.jsx(db,{ref:t,checked:s.checked,indeterminate:s.indeterminate,disabled:s.disabled,unstyled:!0,...i,css:[a.indicator,r.css]})}),AN=pb(Ol,"control",{forwardAsChild:!0,defaultProps:{children:p.jsx(gb,{})}}),NN=j(ig,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0}),$N=eg,LN=kl,FN=Object.freeze(Object.defineProperty({__proto__:null,Context:$N,Control:AN,Group:NN,HiddenInput:LN,Indicator:gb,Label:kN,PropsProvider:ON,Root:RN,RootProvider:SN},Symbol.toStringTag,{value:"Module"})),{withProvider:fb,withContext:Ts,useStyles:hb,PropsProvider:DN}=Y({key:"checkboxCard"}),VN=fb($l,"root",{forwardAsChild:!0}),MN=fb(Nl,"root",{forwardAsChild:!0}),jN=DN,_N=Ts(Al,"label",{forwardAsChild:!0}),BN=f.forwardRef(function(r,t){const n=hb(),o=en();return p.jsx(j.div,{ref:t,...r,css:[n.description,r.css],"data-disabled":o.disabled?"":void 0,"data-state":o.checked?"checked":"unchecked"})}),HN=Ts(Ol,"control",{forwardAsChild:!0}),GN=Ts("div","content"),UN=f.forwardRef(function(r,t){const n=en(),o=hb();return p.jsx(db,{ref:t,checked:n.checked,indeterminate:n.indeterminate,disabled:n.disabled,unstyled:!0,...r,css:[o.indicator,r.css]})}),WN=Ts("div","addon"),zN=eg,KN=kl,qN=Object.freeze(Object.defineProperty({__proto__:null,Addon:WN,Content:GN,Context:zN,Control:HN,Description:BN,HiddenInput:KN,Indicator:UN,Label:_N,Root:MN,RootPropsProvider:jN,RootProvider:VN},Symbol.toStringTag,{value:"Module"}));function mb(e){const{when:r,fallback:t,children:n}=e;let o;return r?o=typeof n=="function"?n(r):n:o=t,f.isValidElement(o)?o:p.jsx(p.Fragment,{children:o})}const YN=e=>{const{children:r,fallback:t}=e,[n,o]=f.useState(!1);return f.useEffect(()=>{o(!0)},[]),p.jsx(mb,{when:n,fallback:t,children:r})},{withProvider:vb,withContext:Wn,PropsProvider:XN}=Y({key:"clipboard"}),ZN=vb(pg,"root",{forwardAsChild:!0}),JN=vb(ug,"root",{forwardAsChild:!0}),QN=XN,e$=Wn(gg,"trigger",{forwardAsChild:!0}),t$=Wn(ag,"control",{forwardAsChild:!0}),bb=Wn(lg,"indicator",{forwardAsChild:!0,defaultProps:{copied:p.jsx(Is,{boxSize:"1em"}),children:p.jsx(F1,{boxSize:"1em"})}}),r$=Wn(cg,"input",{forwardAsChild:!0}),n$=Wn(dg,"label",{forwardAsChild:!0}),o$=Cx,i$=Wn(fg,"valueText",{forwardAsChild:!0}),s$=f.forwardRef(function(r,t){return p.jsx(bb,{copied:"Copied",...r,ref:t,children:"Copy"})}),a$=Object.freeze(Object.defineProperty({__proto__:null,Context:o$,Control:t$,CopyText:s$,Indicator:bb,Input:r$,Label:n$,PropsProvider:QN,Root:JN,RootProvider:ZN,Trigger:e$,ValueText:i$},Symbol.toStringTag,{value:"Module"})),{withContext:l$}=tt({key:"code"}),c$=l$("code"),{withProvider:yb,withContext:Pb,PropsProvider:d$}=Y({key:"collapsible"}),u$=yb(hg,"root",{forwardAsChild:!0}),p$=yb(pl,"root",{forwardAsChild:!0}),g$=d$,f$=Pb(mg,"trigger",{forwardAsChild:!0}),h$=Pb(Sl,"content",{forwardAsChild:!0}),m$=Ox,v$=Object.freeze(Object.defineProperty({__proto__:null,Content:h$,Context:m$,PropsProvider:g$,Root:p$,RootProvider:u$,Trigger:f$},Symbol.toStringTag,{value:"Module"}));function b$(e){const{gap:r,direction:t}=e,n={column:{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":ot(t,o=>n[o])}}function y$(e){return f.Children.toArray(e).filter(r=>f.isValidElement(r))}const Zo=f.forwardRef(function(r,t){const{direction:n="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:d,...g}=r,u=f.useMemo(()=>b$({gap:s,direction:n}),[s,n]),h=f.useMemo(()=>c?y$(l).map((v,m,b)=>{const y=typeof v.key<"u"?v.key:m,P=f.cloneElement(c,{css:[u,c.props.css]});return p.jsxs(f.Fragment,{children:[v,m===b.length-1?null:P]},y)}):l,[l,c,u]);return p.jsx(j.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:a,gap:c?void 0:s,className:Fe("chakra-stack",d),...g,children:h})}),{withProvider:Cb,withContext:Ee,PropsProvider:P$}=Y({key:"colorPicker"}),C$=Cb(Vg,"root",{forwardAsChild:!0}),E$=Cb(Dg,"root",{forwardAsChild:!0}),I$=P$,T$=Ee(Lg,"label",{forwardAsChild:!0}),w$=Ee(Og,"control",{forwardAsChild:!0}),Eb=Ee(Wg,"swatch",{forwardAsChild:!0}),x$=Ee(Ug,"trigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(Eb,{})}}),S$=Ee(Fg,"positioner",{forwardAsChild:!0}),R$=Ee(Rg,"content",{forwardAsChild:!0}),Ib=Ee(Pg,"areaBackground",{forwardAsChild:!0}),Tb=Ee(Cg,"areaThumb",{forwardAsChild:!0}),O$=Ee(yg,"area",{forwardAsChild:!0,defaultProps:{children:p.jsxs(p.Fragment,{children:[p.jsx(Ib,{}),p.jsx(Tb,{})]})}}),wb=Ee(xg,"channelSliderTrack",{forwardAsChild:!0}),xb=Ee(wg,"channelSliderThumb",{forwardAsChild:!0}),Sb=Ee(Gg,"transparencyGrid",{forwardAsChild:!0}),Na=Ee(Ig,"channelSlider",{forwardAsChild:!0,defaultProps:{children:p.jsxs(p.Fragment,{children:[p.jsx(Sb,{size:"0.6rem"}),p.jsx(wb,{}),p.jsx(xb,{})]})}}),k$=f.forwardRef(function(r,t){return p.jsxs(Zo,{gap:"1",flex:"1",px:"1",ref:t,...r,children:[p.jsx(Na,{channel:"hue"}),p.jsx(Na,{channel:"alpha"})]})}),Rb=Ee(Eg,"channelInput",{forwardAsChild:!0}),A$=f.forwardRef(function(r,t){return p.jsx(Rb,{channel:"hex",ref:t,...r})}),N$=Ee(_g,"swatchGroup",{forwardAsChild:!0}),$$=Ee(Hg,"swatchTrigger",{forwardAsChild:!0}),L$=Ee(jg,"swatch",{forwardAsChild:!0}),F$=Ee(Bg,"swatchIndicator",{forwardAsChild:!0}),D$=Ee(zg,"valueText",{forwardAsChild:!0}),V$=Ee(Kg,"view",{forwardAsChild:!0}),M$=Ee(Ng,"formatTrigger",{forwardAsChild:!0}),j$=Ee(Ag,"formatSelect",{forwardAsChild:!0}),_$=Ee(kg,"eyeDropperTrigger",{forwardAsChild:!0}),B$=f.forwardRef(function(r,t){const{children:n=p.jsx(D1,{}),...o}=r,i=ve(),s=qr(i.getEyeDropperTriggerProps(),o);return p.jsx(Yo,{ref:t,...s,children:n})}),H$=Ee(Sg,"channelSliderValueText",{forwardAsChild:!0}),G$=Ee(Tg,"channelSliderLabel",{forwardAsChild:!0}),U$=f.forwardRef(function(r,t){return p.jsx($g,{tabIndex:-1,ref:t,...r})}),W$=$x,z$=Ee("span","channelText",{forwardAsChild:!0}),K$=Object.freeze(Object.defineProperty({__proto__:null,Area:O$,AreaBackground:Ib,AreaThumb:Tb,ChannelInput:Rb,ChannelSlider:Na,ChannelSliderLabel:G$,ChannelSliderThumb:xb,ChannelSliderTrack:wb,ChannelSliderValueText:H$,ChannelText:z$,Content:R$,Context:W$,Control:w$,EyeDropper:B$,EyeDropperTrigger:_$,FormatSelect:j$,FormatTrigger:M$,HiddenInput:U$,Input:A$,Label:T$,Positioner:S$,PropsProvider:I$,Root:E$,RootProvider:C$,Sliders:k$,Swatch:L$,SwatchGroup:N$,SwatchIndicator:F$,SwatchTrigger:$$,TransparencyGrid:Sb,Trigger:x$,ValueSwatch:Eb,ValueText:D$,View:V$},Symbol.toStringTag,{value:"Module"})),{withContext:q$}=tt({key:"container"}),Y$=q$("div"),{withProvider:X$,withContext:gc,PropsProvider:Z$}=Y({key:"dataList"}),J$=X$("dl","root"),Q$=Z$,eL=gc("div","item"),tL=gc("dt","itemLabel"),rL=gc("dd","itemValue"),nL=Object.freeze(Object.defineProperty({__proto__:null,Item:eL,ItemLabel:tL,ItemValue:rL,PropsProvider:Q$,Root:J$},Symbol.toStringTag,{value:"Module"})),{withRootProvider:Ob,withContext:ir,PropsProvider:oL}=Y({key:"dialog"}),iL=Ob(rf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),sL=Ob(tf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),aL=oL,lL=ir(Bl,"trigger",{forwardAsChild:!0}),cL=ir(jl,"positioner",{forwardAsChild:!0}),dL=ir(Vl,"content",{forwardAsChild:!0}),uL=ir(Ml,"description",{forwardAsChild:!0}),pL=ir(_l,"title",{forwardAsChild:!0}),gL=ir(Dl,"closeTrigger",{forwardAsChild:!0}),fL=f.forwardRef(function(r,t){const n=nr();return p.jsx(j.button,{...r,ref:t,onClick:()=>n.setOpen(!1)})}),hL=ir(Fl,"backdrop",{forwardAsChild:!0}),mL=ir("div","body"),vL=ir("div","footer"),bL=ir("div","header"),yL=Jg,PL=Object.freeze(Object.defineProperty({__proto__:null,ActionTrigger:fL,Backdrop:hL,Body:mL,CloseTrigger:gL,Content:dL,Context:yL,Description:uL,Footer:vL,Header:bL,Positioner:cL,PropsProvider:aL,Root:sL,RootProvider:iL,Title:pL,Trigger:lL},Symbol.toStringTag,{value:"Module"})),{withRootProvider:kb,withContext:sr,PropsProvider:CL}=Y({key:"drawer"}),EL=kb(rf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),IL=kb(tf,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),TL=CL,wL=sr(Bl,"trigger",{forwardAsChild:!0}),xL=sr(jl,"positioner",{forwardAsChild:!0}),SL=sr(Vl,"content",{forwardAsChild:!0}),RL=sr(Ml,"description",{forwardAsChild:!0}),OL=sr(_l,"title",{forwardAsChild:!0}),kL=sr(Dl,"closeTrigger",{forwardAsChild:!0}),AL=f.forwardRef(function(r,t){const n=nr();return p.jsx(j.button,{...r,ref:t,onClick:()=>n.setOpen(!1)})}),NL=sr(Fl,"backdrop",{forwardAsChild:!0}),$L=sr("div","body"),LL=sr("div","footer"),FL=sr("div","header"),DL=Jg,VL=Object.freeze(Object.defineProperty({__proto__:null,ActionTrigger:AL,Backdrop:NL,Body:$L,CloseTrigger:kL,Content:SL,Context:DL,Description:RL,Footer:LL,Header:FL,Positioner:xL,Root:IL,RootPropsProvider:TL,RootProvider:EL,Title:OL,Trigger:wL},Symbol.toStringTag,{value:"Module"})),{withProvider:Ab,withContext:Fr,PropsProvider:ML}=Y({key:"editable"}),jL=Ab(gf,"root",{forwardAsChild:!0}),_L=Ab(pf,"root",{forwardAsChild:!0}),BL=ML,HL=Fr(df,"preview",{forwardAsChild:!0}),GL=Fr(cf,"input",{forwardAsChild:!0}),UL=f.forwardRef(function(r,t){const n=vr(),o=qr(n.getInputProps(),r);return p.jsx(I.textarea,{ref:t,...o})}),WL=Fr(UL,"input",{forwardAsChild:!0}),zL=Fr(af,"control",{forwardAsChild:!0}),KL=Fr(of,"area",{forwardAsChild:!0}),qL=Fr(lf,"editTrigger",{forwardAsChild:!0}),YL=Fr(ff,"submitTrigger",{forwardAsChild:!0}),XL=Fr(sf,"cancelTrigger",{forwardAsChild:!0}),ZL=sS,JL=Object.freeze(Object.defineProperty({__proto__:null,Area:KL,CancelTrigger:XL,Context:ZL,Control:zL,EditTrigger:qL,Input:GL,Preview:HL,PropsProvider:BL,Root:_L,RootProvider:jL,SubmitTrigger:YL,Textarea:WL},Symbol.toStringTag,{value:"Module"})),{withProvider:QL,withContext:ws,PropsProvider:eF}=Y({key:"emptyState"}),tF=QL("div","root"),rF=eF,nF=ws("div","content"),oF=ws("div","indicator"),iF=ws("h3","title"),sF=ws("p","description"),aF=Object.freeze(Object.defineProperty({__proto__:null,Content:nF,Description:sF,Indicator:oF,PropsProvider:rF,Root:tF,Title:iF},Symbol.toStringTag,{value:"Module"})),{useRecipeResult:lF}=tt({key:"icon"}),Nb=pe.forwardRef(function(r,t){const{styles:n,className:o,props:i}=lF({asChild:!r.as,...r});return p.jsx(j.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[n,r.css],className:Fe(o,r.className)})});function cF(e){const{viewBox:r="0 0 24 24",d:t,displayName:n,defaultProps:o={}}=e,i=f.Children.toArray(e.path),s=f.forwardRef((a,l)=>p.jsx(Nb,{ref:l,asChild:!1,viewBox:r,...o,...a,children:i.length?i:p.jsx("path",{fill:"currentColor",d:t})}));return s.displayName=n,s}const{withProvider:dF,withContext:fc,useStyles:uF,useClassNames:pF,PropsProvider:gF}=Y({key:"field"}),fF=dF(Pf,"root",{forwardAsChild:!0}),hF=gF,mF=fc(bf,"label",{forwardAsChild:!0}),vF=fc(mf,"helperText",{forwardAsChild:!0}),bF=fc(hf,"errorText",{forwardAsChild:!0}),yF=cF({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}),PF=f.forwardRef(function(r,t){const{fallback:n,children:o="*",...i}=r,s=Ve(),a=pF(),l=uF();return s!=null&&s.required?p.jsx(j.span,{ref:t,"aria-hidden":"true",...i,className:Fe(a.requiredIndicator,r.className),css:[l.requiredIndicator,r.css],children:o}):n}),CF=Object.freeze(Object.defineProperty({__proto__:null,ErrorIcon:yF,ErrorText:bF,HelperText:vF,Label:mF,PropsProvider:hF,RequiredIndicator:PF,Root:fF},Symbol.toStringTag,{value:"Module"})),{withProvider:EF,withContext:xs}=Y({key:"fieldset"}),IF=EF(wf,"root"),TF=xs(Ef,"errorText"),wF=xs(If,"helperText"),xF=xs(Tf,"legend"),SF=xs(I.div,"content"),RF=vS,OF=Object.freeze(Object.defineProperty({__proto__:null,Content:SF,Context:RF,ErrorText:TF,HelperText:wF,Legend:xF,Root:IF},Symbol.toStringTag,{value:"Module"}));function Ss(e){const{each:r,fallback:t,children:n}=e;return(r==null?void 0:r.length)===0?t||null:r==null?void 0:r.map(n)}const{withProvider:$b,withContext:It,useStyles:kF,PropsProvider:AF}=Y({key:"fileUpload"}),NF=$b(jf,"root",{forwardAsChild:!0}),$F=$b(Mf,"root",{forwardAsChild:!0}),LF=AF,FF=It(Sf,"clearTrigger",{forwardAsChild:!0}),DF=It(Rf,"dropzone",{forwardAsChild:!0}),VF=It("div","dropzoneContent"),Lb=It(kf,"item",{forwardAsChild:!0}),Fb=It("div","itemContent"),Db=It(Af,"itemDeleteTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(Wo,{})}}),Vb=It(Nf,"itemGroup",{forwardAsChild:!0}),$a=It($f,"itemName",{forwardAsChild:!0}),Mb=It(Lf,"itemPreview",{forwardAsChild:!0,defaultProps:{children:p.jsx(L1,{})}}),MF=It(Ff,"itemPreviewImage",{forwardAsChild:!0}),jb=It(Df,"itemSizeText",{forwardAsChild:!0}),jF=It(Vf,"label",{forwardAsChild:!0}),_F=It(_f,"trigger",{forwardAsChild:!0}),_b=e=>{const{showSize:r,clearable:t,files:n,...o}=e,i=lt(),s=n??i.acceptedFiles;return p.jsx(Ss,{each:s,children:a=>p.jsxs(Lb,{file:a,...o,children:[p.jsx(Mb,{}),r?p.jsxs(Fb,{children:[p.jsx($a,{}),p.jsx(jb,{})]}):p.jsx($a,{flex:"1"}),t&&p.jsx(Db,{})]},a.name)})},BF=f.forwardRef(function(r,t){const{showSize:n,clearable:o,files:i,...s}=r;return p.jsx(Vb,{ref:t,...s,children:p.jsx(_b,{showSize:n,clearable:o,files:i})})}),HF=f.forwardRef(function(r,t){const{fallback:n="Select file(s)",...o}=r,i=lt(),s=kF(),a=i.acceptedFiles,l=f.useMemo(()=>a.length===1?a[0].name:a.length>1?`${a.length} files`:n,[a,n]);return p.jsx(fo,{ref:t,"data-placeholder":l===n?"":void 0,...o,css:[s.fileText,r.css],children:l})}),GF=PS,UF=Of,WF=Object.freeze(Object.defineProperty({__proto__:null,ClearTrigger:FF,Context:GF,Dropzone:DF,DropzoneContent:VF,FileText:HF,HiddenInput:UF,Item:Lb,ItemContent:Fb,ItemDeleteTrigger:Db,ItemGroup:Vb,ItemName:$a,ItemPreview:Mb,ItemPreviewImage:MF,ItemSizeText:jb,Items:_b,Label:jF,List:BF,PropsProvider:LF,Root:$F,RootProvider:NF,Trigger:_F},Symbol.toStringTag,{value:"Module"})),zF=f.forwardRef(function(r,t){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:d,...g}=r;return p.jsx(j.div,{ref:t,...g,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...r.css}})}),KF=f.forwardRef(function(r,t){const{offsetX:n,offsetY:o,offset:i="0",placement:s="top-end",...a}=r,l=f.useMemo(()=>({display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",insetBlockStart:ot(s,c=>{const[d]=c.split("-");return{top:o??i,middle:"50%",bottom:"auto"}[d]}),insetBlockEnd:ot(s,c=>{const[d]=c.split("-");return{top:"auto",middle:"50%",bottom:o??i}[d]}),insetStart:ot(s,c=>{const[,d]=c.split("-");return{start:n??i,center:"50%",end:"auto"}[d]}),insetEnd:ot(s,c=>{const[,d]=c.split("-");return{start:"auto",center:"50%",end:n??i}[d]}),translate:ot(s,c=>{const[d,g]=c.split("-"),u={start:"-50%",center:"-50%",end:"50%"},h={top:"-50%",middle:"-50%",bottom:"50%"};return`${u[g]} ${h[d]}`})}),[i,n,o,s]);return p.jsx(j.div,{ref:t,css:l,...a})});function iu(e){return ot(e,r=>r==="auto"?"auto":`span ${r}/span ${r}`)}const qF=f.forwardRef(function(r,t){const{area:n,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:c,...d}=r,g=Nn({gridArea:n,gridColumn:iu(o),gridRow:iu(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:c,gridRowEnd:a});return p.jsx(j.div,{ref:t,css:g,...d})}),YF=f.forwardRef(function(r,t){const{columns:n,minChildWidth:o,...i}=r,s=Fo(),a=o?ZF(o,s):JF(n);return p.jsx(wu,{ref:t,templateColumns:a,...i})});function XF(e){return typeof e=="number"?`${e}px`:e}function ZF(e,r){return ot(e,t=>{const n=r.tokens.getVar(`sizes.${t}`,XF(t));return t===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function JF(e){return ot(e,r=>r===null?null:`repeat(${r}, minmax(0, 1fr))`)}const{withContext:QF}=tt({key:"mark"}),Bb=QF("mark");function eD(e){const{children:r,query:t,ignoreCase:n,matchAll:o,styles:i}=e;if(typeof r!="string")throw new Error("The children prop of Highlight must be a string");const s=US({query:t,text:r,matchAll:o,ignoreCase:n});return p.jsx(Ss,{each:s,children:(a,l)=>a.match?p.jsx(Bb,{css:i,children:a.text},l):p.jsx(f.Fragment,{children:a.text},l)})}const{withRootProvider:Hb,withContext:Jo,PropsProvider:tD}=Y({key:"hoverCard"}),rD=Hb(ZS),nD=Hb(XS),oD=tD,iD=Jo(Kf,"trigger",{forwardAsChild:!0}),sD=Jo(zf,"positioner",{forwardAsChild:!0}),aD=Jo(Wf,"content",{forwardAsChild:!0}),Gb=Jo(Uf,"arrowTip",{forwardAsChild:!0}),lD=Jo(Gf,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(Gb,{})}}),cD=WS,dD=Object.freeze(Object.defineProperty({__proto__:null,Arrow:lD,ArrowTip:Gb,Content:aD,Context:cD,Positioner:sD,PropsProvider:oD,Root:nD,RootProvider:rD,Trigger:iD},Symbol.toStringTag,{value:"Module"})),uD=f.forwardRef(function(r,t){const{align:n,fit:o="cover",...i}=r;return p.jsx(j.img,{ref:t,objectFit:o,objectPosition:n,className:Fe("chakra-image",r.className),...i})}),{withContext:pD}=tt({key:"input"}),Ub=pD(vf),su=f.forwardRef(function({unstyled:r,...t},n){const o=os({key:"inputAddon",recipe:t.recipe}),[i,s]=o.splitVariantProps(t),a=r?du:o(i);return p.jsx(j.div,{ref:n,...s,css:[a,t.css]})}),na=j("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),gD=f.forwardRef(function(r,t){const{startElement:n,startElementProps:o,endElement:i,endElementProps:s,startAddon:a,startAddonProps:l,endAddon:c,endAddonProps:d,children:g,startOffset:u="0px",endOffset:h="0px",...v}=r,m=f.Children.only(g),b=!!(a||c);return p.jsxs(uc,{width:"full",ref:t,attached:b,skip:y=>y.type===na,...v,children:[a&&p.jsx(su,{...l,children:a}),n&&p.jsx(na,{pointerEvents:"none",...o,children:n}),f.cloneElement(m,{...n&&{ps:`calc(var(--input-height) - ${u})`},...i&&{pe:`calc(var(--input-height) - ${h})`},...g.props}),i&&p.jsx(na,{placement:"end",...s,children:i}),c&&p.jsx(su,{...d,children:c})]})}),{withContext:fD}=tt({key:"kbd"}),hD=fD("kbd"),{withContext:mD}=tt({key:"link"}),vD=mD("a"),{withProvider:bD,withContext:Wb,PropsProvider:yD}=Y({key:"list"}),PD=bD("ul","root",{defaultProps:{role:"list"}}),CD=yD,ED=Wb("li","item"),ID=Wb("span","indicator"),TD=Object.freeze(Object.defineProperty({__proto__:null,Indicator:ID,Item:ED,Root:PD,RootPropsProvider:CD},Symbol.toStringTag,{value:"Module"})),{withRootProvider:zb,withContext:We,PropsProvider:wD}=Y({key:"menu"}),xD=zb(p0),SD=zb(u0,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),RD=wD,OD=We(bh,"trigger",{forwardAsChild:!0}),kD=We(th,"contextTrigger",{forwardAsChild:!0}),AD=We(dh,"positioner",{forwardAsChild:!0}),ND=We(vh,"separator",{forwardAsChild:!0}),$D=We(eh,"content",{forwardAsChild:!0}),Kb=We(Xf,"arrowTip",{forwardAsChild:!0}),LD=We(Yf,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(Kb,{})}}),FD=We(rh,"indicator",{forwardAsChild:!0}),DD=We(sh,"itemGroup",{forwardAsChild:!0}),VD=We(ah,"itemGroupLabel",{forwardAsChild:!0}),MD=We(nh,"item",{forwardAsChild:!0}),jD=We(yh,"item",{forwardAsChild:!0}),_D=We(ch,"itemText",{forwardAsChild:!0}),BD=We("kbd","itemCommand"),HD=We(lh,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(Is,{boxSize:"4"})}}),GD=We(Qf,"item",{forwardAsChild:!0}),UD=We(ph,"itemGroup",{forwardAsChild:!0}),WD=We(uh,"item",{forwardAsChild:!0}),zD=QS,KD=e0,qD=Object.freeze(Object.defineProperty({__proto__:null,Arrow:LD,ArrowTip:Kb,CheckboxItem:GD,Content:$D,Context:zD,ContextTrigger:kD,Indicator:FD,Item:MD,ItemCommand:BD,ItemContext:KD,ItemGroup:DD,ItemGroupLabel:VD,ItemIndicator:HD,ItemText:_D,Positioner:AD,RadioItem:WD,RadioItemGroup:UD,Root:SD,RootPropsProvider:RD,RootProvider:xD,Separator:ND,Trigger:OD,TriggerItem:jD},Symbol.toStringTag,{value:"Module"})),{withProvider:qb,withContext:sn,PropsProvider:YD}=Y({key:"numberInput"}),XD=qb(Oh,"root",{forwardAsChild:!0}),ZD=qb(Rh,"root",{forwardAsChild:!0}),JD=YD,QD=sn(wh,"label",{forwardAsChild:!0}),eV=sn(Th,"input",{forwardAsChild:!0}),Yb=sn(Ih,"incrementTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(R1,{})}}),Xb=sn(Eh,"decrementTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(cc,{})}}),tV=sn(Ch,"control",{forwardAsChild:!0,defaultProps:{children:p.jsxs(p.Fragment,{children:[p.jsx(Yb,{}),p.jsx(Xb,{})]})}}),rV=sn(kh,"scrubber",{forwardAsChild:!0}),nV=sn(Ah,"valueText",{forwardAsChild:!0}),oV=g0,iV=Object.freeze(Object.defineProperty({__proto__:null,Context:oV,Control:tV,DecrementTrigger:Xb,IncrementTrigger:Yb,Input:eV,Label:QD,PropsProvider:JD,Root:ZD,RootProvider:XD,Scrubber:rV,ValueText:nV},Symbol.toStringTag,{value:"Module"})),{withProvider:Zb,withContext:Rs,PropsProvider:sV}=Y({key:"pagination"}),aV=Zb(Mh,"root",{forwardAsChild:!0,forwardProps:["page"]}),lV=Zb(Vh,"root",{forwardAsChild:!0,forwardProps:["page"]}),cV=sV,Jb=Rs($h,"ellipsis",{forwardAsChild:!0}),Qb=Rs(Lh,"item",{forwardAsChild:!0}),dV=Rs(Fh,"nextTrigger",{forwardAsChild:!0}),uV=Rs(Dh,"prevTrigger",{forwardAsChild:!0}),pV=k0,gV=f.forwardRef(function(r,t){const{format:n="compact",...o}=r,{page:i,totalPages:s,pageRange:a,count:l}=nn(),c=f.useMemo(()=>n==="short"?`${i} / ${s}`:n==="compact"?`${i} of ${s}`:`${a.start+1} - ${Math.min(a.end,l)} of ${l}`,[n,i,s,a,l]);return p.jsx(qo,{fontWeight:"medium",ref:t,...o,children:c})}),fV=e=>{const{pages:r}=nn(),{render:t,ellipsis:n,...o}=e;return p.jsx(Ss,{each:r,children:(i,s)=>i.type==="ellipsis"?p.jsx(Jb,{asChild:!0,index:s,...o,children:n||p.jsx(Yo,{as:"span",children:p.jsx(V1,{})})},s):p.jsx(Qb,{asChild:!0,type:"page",value:i.value,...o,children:t(i)},s)})},hV=Object.freeze(Object.defineProperty({__proto__:null,Context:pV,Ellipsis:Jb,Item:Qb,Items:fV,NextTrigger:dV,PageText:gV,PrevTrigger:uV,PropsProvider:cV,Root:lV,RootProvider:aV},Symbol.toStringTag,{value:"Module"})),{withProvider:ey,withContext:hc,PropsProvider:mV}=Y({key:"pinInput"}),vV=ey(zh,"root",{forwardAsChild:!0}),bV=ey(Wh,"root",{forwardProps:["mask"],forwardAsChild:!0}),yV=mV,PV=hc(_h,"control",{forwardAsChild:!0}),CV=hc(Hh,"input",{forwardAsChild:!0}),EV=hc(Gh,"label",{forwardAsChild:!0}),IV=_0,TV=Bh,wV=Object.freeze(Object.defineProperty({__proto__:null,Context:IV,Control:PV,HiddenInput:TV,Input:CV,Label:EV,PropsProvider:yV,Root:bV,RootProvider:vV},Symbol.toStringTag,{value:"Module"})),{withRootProvider:ty,withContext:Tt,useStyles:xV,PropsProvider:SV}=Y({key:"popover"}),RV=ty(rm),OV=ty(tm),kV=SV,AV=Tt(om,"trigger",{forwardAsChild:!0}),NV=Tt(em,"positioner",{forwardAsChild:!0}),$V=Tt(Ul,"content",{forwardAsChild:!0}),ry=Tt(Xh,"arrowTip",{forwardAsChild:!0}),LV=Tt(Yh,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(ry,{})}}),FV=Tt(Gl,"closeTrigger",{forwardAsChild:!0});Tt(Qh,"indicator",{forwardAsChild:!0});const DV=Tt(nm,"title",{forwardAsChild:!0}),VV=Tt(Jh,"description",{forwardAsChild:!0}),MV=Tt("footer","footer"),jV=Tt("header","header"),_V=Tt("div","body"),BV=Tt(qh,void 0,{forwardAsChild:!0}),HV=Zh,GV=Object.freeze(Object.defineProperty({__proto__:null,Anchor:BV,Arrow:LV,ArrowTip:ry,Body:_V,CloseTrigger:FV,Content:$V,Context:HV,Description:VV,Footer:MV,Header:jV,Positioner:NV,PropsProvider:kV,Root:OV,RootProvider:RV,Title:DV,Trigger:AV,usePopoverStyles:xV},Symbol.toStringTag,{value:"Module"})),{withProvider:ny,withContext:Os,PropsProvider:UV}=Y({key:"progress"}),WV=ny(ql,"root",{forwardAsChild:!0}),zV=ny(Kl,"root"),KV=UV,qV=Os(Wl,"label",{forwardAsChild:!0}),YV=Os(dm,"track",{forwardAsChild:!0}),XV=Os(cm,"range",{forwardAsChild:!0}),ZV=Os(Yl,"valueText",{forwardAsChild:!0}),JV=tR,QV=Object.freeze(Object.defineProperty({__proto__:null,Context:JV,Label:qV,PropsProvider:KV,Range:XV,Root:zV,RootProvider:WV,Track:YV,ValueText:ZV},Symbol.toStringTag,{value:"Module"})),{withProvider:oy,withContext:Qo,PropsProvider:eM}=Y({key:"progressCircle"}),tM=oy(ql,"root",{forwardAsChild:!0}),rM=oy(Kl,"root",{forwardAsChild:!0}),nM=eM,oM=Qo(Wl,"label",{forwardAsChild:!0}),iM=Qo(sm,"circle",{forwardAsChild:!0}),sM=Qo(lm,"circleTrack",{forwardAsChild:!0}),aM=Qo(am,"circleRange",{forwardAsChild:!0}),lM=Qo(Yl,"valueText",{forwardAsChild:!0}),cM=Object.freeze(Object.defineProperty({__proto__:null,Circle:iM,Label:oM,PropsProvider:nM,Range:aM,Root:rM,RootProvider:tM,Track:sM,ValueText:lM},Symbol.toStringTag,{value:"Module"})),iy=f.forwardRef(function(r,t){const n=os({key:"radiomark",recipe:r.recipe}),[o,i]=n.splitVariantProps(r),{checked:s,disabled:a,unstyled:l,children:c,...d}=i,g=l?La:n(o),u={ref:t,"data-checked":Rr(s),"data-disabled":Rr(a),...d,css:[g,r.css]};return p.jsx(j.span,{...u,children:s&&p.jsx("span",{className:"dot"})})}),{withProvider:sy,withContext:an,useStyles:dM,PropsProvider:uM}=Y({key:"radioCard"}),pM=sy(nc,"root",{forwardAsChild:!0}),gM=sy(rc,"root",{forwardAsChild:!0}),fM=uM,hM=an(tc,"label",{forwardAsChild:!0}),mM=an(Zl,"item",{forwardAsChild:!0}),vM=an(ec,"itemText",{forwardAsChild:!0}),bM=an("div","itemDescription",{forwardAsChild:!0}),yM=an(Ps,"itemControl",{forwardAsChild:!0}),PM=an("div","itemContent"),CM=an("div","itemAddon"),EM=f.forwardRef(function(r,t){const{checked:n,...o}=r,i=dM(),s=gm();return n&&s.checked?p.jsx(j.span,{ref:t,asChild:!0,...o,css:[i.itemIndicator,r.css],children:n}):p.jsx(iy,{ref:t,unstyled:!0,...r,checked:s.checked,disabled:s.disabled,css:[i.itemIndicator,r.css]})}),IM=pm,TM=Jl,wM=Ql,xM=Object.freeze(Object.defineProperty({__proto__:null,Context:IM,Item:mM,ItemAddon:CM,ItemContent:PM,ItemContext:TM,ItemControl:yM,ItemDescription:bM,ItemHiddenInput:wM,ItemIndicator:EM,ItemText:vM,Label:hM,PropsProvider:fM,Root:gM,RootProvider:pM},Symbol.toStringTag,{value:"Module"})),{withProvider:ay,withContext:ks,useStyles:SM,PropsProvider:RM}=Y({key:"radioGroup"}),OM=ay(nc,"root",{forwardAsChild:!0}),kM=ay(rc,"root",{forwardAsChild:!0}),AM=RM,NM=ks(tc,"label",{forwardAsChild:!0}),ly=ks(Zl,"item",{forwardAsChild:!0}),cy=ks(ec,"itemText",{forwardAsChild:!0}),$M=ks(Ps,"itemControl",{forwardAsChild:!0}),dy=f.forwardRef(function(r,t){const n=SM();return p.jsx(Jl,{children:o=>p.jsx(Ps,{asChild:!0,children:p.jsx(iy,{ref:t,unstyled:!0,...r,checked:o.checked,disabled:o.disabled,css:[n.itemControl,r.css]})})})}),LM=pm,FM=Jl,uy=Ql,DM=Object.freeze(Object.defineProperty({__proto__:null,Context:LM,Item:ly,ItemContext:FM,ItemControl:$M,ItemHiddenInput:uy,ItemIndicator:dy,ItemText:cy,Label:NM,PropsProvider:AM,Root:kM,RootProvider:OM},Symbol.toStringTag,{value:"Module"})),{withProvider:py,withContext:vt,PropsProvider:VM}=Y({key:"select"}),MM=py(BR,"root",{forwardAsChild:!0}),jM=py(jR,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),_M=VM,BM=vt(Nm,"trigger",{forwardAsChild:!0}),HM=vt(km,"positioner",{forwardAsChild:!0}),GM=vt(ym,"content",{forwardAsChild:!0}),UM=vt($m,"valueText",{forwardAsChild:!0}),WM=vt(bm,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(Wo,{boxSize:"1em"})}}),zM=vt(wm,"itemGroup",{forwardAsChild:!0}),KM=vt(xm,"itemGroupLabel",{forwardAsChild:!0}),qM=vt(Tm,"item",{forwardAsChild:!0}),YM=vt(Rm,"itemText",{forwardAsChild:!0}),XM=vt(Sm,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(Is,{})}}),ZM=vt("div","indicatorGroup"),JM=vt(Em,"indicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(cc,{})}}),QM=vt(Pm,"control",{forwardAsChild:!0}),ej=vt(Om,"label",{forwardAsChild:!0}),tj=wR,rj=Cm,nj=OR,oj=Object.freeze(Object.defineProperty({__proto__:null,ClearTrigger:WM,Content:GM,Context:tj,Control:QM,HiddenSelect:rj,Indicator:JM,IndicatorGroup:ZM,Item:qM,ItemContext:nj,ItemGroup:zM,ItemGroupLabel:KM,ItemIndicator:XM,ItemText:YM,Label:ej,Positioner:HM,PropsProvider:_M,Root:jM,RootProvider:MM,Trigger:BM,ValueText:UM},Symbol.toStringTag,{value:"Module"})),{useRecipeResult:ij}=tt({key:"separator"}),sj=f.forwardRef(function(r,t){const{styles:n,className:o,props:i}=ij(r),s=r.orientation||"horizontal";return p.jsx(j.span,{ref:t,role:Ot(s)?"separator":"presentation","aria-orientation":Ot(s)?s:void 0,...ac(i,["orientation"]),className:Fe(o,r.className),css:[n,r.css]})}),{withContext:aj}=tt({key:"skeleton"}),mc=aj("div");pe.forwardRef(function(r,t){const{size:n,...o}=r;return p.jsx(JA,{size:n,asChild:!0,ref:t,children:p.jsx(mc,{...o})})});pe.forwardRef(function(r,t){const{noOfLines:n=3,gap:o,rootProps:i,...s}=r;return p.jsx(Zo,{gap:o,width:"full",ref:t,...i,children:Array.from({length:n}).map((a,l)=>p.jsx(mc,{height:"4",_last:{maxW:n===1?"100%":"80%"},...s},l))})});const{withProvider:gy,withContext:ar,PropsProvider:lj}=Y({key:"slider"}),cj=gy(zm,"root",{forwardAsChild:!0}),dj=gy(Wm,"root",{forwardAsChild:!0}),uj=lj,pj=ar(qm,"track",{forwardAsChild:!0}),gj=ar(Hm,"range",{forwardAsChild:!0}),fy=ar(Km,"thumb",{forwardAsChild:!0}),fj=ar(Ym,"valueText",{forwardAsChild:!0}),hj=ar(jm,"label",{forwardAsChild:!0}),hy=ar(Bm,"markerGroup",{forwardAsChild:!0}),my=ar(_m,"marker",{forwardAsChild:!0}),vy=ar("div","markerIndicator"),mj=ar(Vm,"draggingIndicator",{forwardAsChild:!0}),vj=e=>{const r=Nt();return p.jsx(Ss,{each:r.value,children:(t,n)=>p.jsx(fy,{index:n,...e,children:p.jsx(by,{})},n)})},bj=f.forwardRef(function(r,t){const{marks:n,...o}=r;return n!=null&&n.length?p.jsx(hy,{ref:t,...o,children:n.map((i,s)=>{const a=typeof i=="number"?i:i.value,l=typeof i=="number"?void 0:i.label;return p.jsxs(my,{value:a,children:[p.jsx(vy,{}),l!=null&&p.jsx("span",{className:"chakra-slider__marker-label",children:l})]},s)})}):null}),yj=ar(Fm,"control",{forwardAsChild:!0}),Pj=HR,by=Mm,Cj=Object.freeze(Object.defineProperty({__proto__:null,Context:Pj,Control:yj,DraggingIndicator:mj,HiddenInput:by,Label:hj,Marker:my,MarkerGroup:hy,MarkerIndicator:vy,Marks:bj,PropsProvider:uj,Range:gj,Root:dj,RootProvider:cj,Thumb:fy,Thumbs:vj,Track:pj,ValueText:fj},Symbol.toStringTag,{value:"Module"})),au=f.forwardRef(function(r,t){return p.jsx(Zo,{align:"center",...r,direction:"row",ref:t})}),{withProvider:Ej,withContext:zn,PropsProvider:yy}=Y({key:"stat"}),Ij=Ej("dl","root"),Tj=yy,wj=zn("dt","label"),xj=zn("dd","valueText"),Sj=zn("span","helpText"),Rj=zn("span","valueUnit"),Oj=zn("span","indicator",{defaultProps:{"data-type":"up",children:p.jsx(A1,{})}}),kj=zn("span","indicator",{defaultProps:{"data-type":"down",children:p.jsx(N1,{})}});f.forwardRef(function(r,t){const n=lc({key:"stat"}),[o,i]=f.useMemo(()=>n.splitVariantProps(r),[r,n]);return p.jsx(yy,{value:o,children:p.jsx(j.div,{ref:t,role:"group",display:"flex",flexWrap:"wrap",justifyContent:"space-around",alignItems:"flex-start",...i})})});const Aj=Object.freeze(Object.defineProperty({__proto__:null,DownIndicator:kj,HelpText:Sj,Label:wj,PropsProvider:Tj,Root:Ij,UpIndicator:Oj,ValueText:xj,ValueUnit:Rj},Symbol.toStringTag,{value:"Module"})),{withProvider:Nj,withContext:$j,PropsProvider:Lj}=Y({key:"status"}),Fj=Nj("div","root"),Dj=Lj,Vj=$j("div","indicator"),Mj=Object.freeze(Object.defineProperty({__proto__:null,Indicator:Vj,PropsProvider:Dj,Root:Fj},Symbol.toStringTag,{value:"Module"})),{withProvider:Py,withContext:_t,PropsProvider:jj}=Y({key:"steps"}),_j=Py(sv,"root",{forwardAsChild:!0}),Bj=Py(iv,"root",{forwardAsChild:!0}),Hj=jj,Gj=_t(rv,"list",{forwardAsChild:!0}),Uj=_t(tv,"item",{forwardAsChild:!0}),Wj=_t(lv,"trigger",{forwardAsChild:!0}),zj=_t(Jm,"content",{forwardAsChild:!0}),Kj=_t(Zm,"content"),Cy=f.forwardRef(function(r,t){return p.jsx(Cs,{children:n=>p.jsx(j.div,{ref:t,...r,children:n.index+1})})}),qj=_t("div","title"),Yj=_t("div","description"),Xj=_t(av,"separator",{forwardAsChild:!0}),Ey=e=>p.jsx(Cs,{children:r=>r.current?p.jsx(p.Fragment,{children:e.current??e.incomplete}):r.completed?p.jsx(p.Fragment,{children:e.complete}):p.jsx(p.Fragment,{children:e.incomplete??e.current})}),Zj=_t(ev,"indicator",{forwardAsChild:!0,defaultProps:{children:p.jsx(Ey,{complete:p.jsx(Is,{}),incomplete:p.jsx(Cy,{})})}}),Jj=_t(nv,"nextTrigger",{forwardAsChild:!0}),Qj=_t(ov,"prevTrigger",{forwardAsChild:!0}),e_=Qm,t_=Cs,r_=Object.freeze(Object.defineProperty({__proto__:null,CompletedContent:Kj,Content:zj,Context:e_,Description:Yj,Indicator:Zj,Item:Uj,ItemContext:t_,List:Gj,NextTrigger:Jj,Number:Cy,PrevTrigger:Qj,PropsProvider:Hj,Root:Bj,RootProvider:_j,Separator:Xj,Status:Ey,Title:qj,Trigger:Wj},Symbol.toStringTag,{value:"Module"})),{withProvider:Iy,withContext:vc,useStyles:n_,PropsProvider:o_}=Y({key:"switch"}),i_=Iy(fv,"root",{forwardAsChild:!0}),s_=Iy(gv,"root",{forwardAsChild:!0}),a_=o_,l_=vc(pv,"label",{forwardAsChild:!0}),Ty=vc(hv,"thumb",{forwardAsChild:!0}),c_=vc(dv,"control",{forwardAsChild:!0,defaultProps:{children:p.jsx(Ty,{})}}),d_=f.forwardRef(function(r,t){const n=on(),o=n_(),{fallback:i,children:s,...a}=r;return p.jsx(j.span,{ref:t,"data-checked":Rr(n.checked),...a,css:[o.indicator,r.css],children:n.checked?s:i})}),u_=f.forwardRef(function(r,t){const n=on(),{fallback:o,children:i,...s}=r;return p.jsx(j.span,{ref:t,"data-checked":Rr(n.checked),...s,children:n.checked?i:o})}),p_=EO,g_=uv,f_=Object.freeze(Object.defineProperty({__proto__:null,Context:p_,Control:c_,HiddenInput:g_,Indicator:d_,Label:l_,PropsProvider:a_,Root:s_,RootProvider:i_,Thumb:Ty,ThumbIndicator:u_},Symbol.toStringTag,{value:"Module"})),{StylesProvider:h_,ClassNamesProvider:m_,useRecipeResult:v_,withContext:br,PropsProvider:b_}=Y({key:"table"}),y_=f.forwardRef(function({native:r,...t},n){const{styles:o,props:i,classNames:s}=v_(t),a=f.useMemo(()=>r?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,r]);return p.jsx(m_,{value:s,children:p.jsx(h_,{value:o,children:p.jsx(j.table,{ref:n,...i,css:[a,t.css],className:Fe(s==null?void 0:s.root,t.className)})})})}),P_=b_,C_=br("tr","row"),E_=j("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),I_=br("thead","header"),T_=br("tfoot","footer"),w_=br("th","columnHeader"),x_=br("td","cell"),S_=br("caption","caption",{defaultProps:{captionSide:"bottom"}}),R_=br("tbody","body"),O_=br("colgroup"),k_=br("col"),A_=Object.freeze(Object.defineProperty({__proto__:null,Body:R_,Caption:S_,Cell:x_,Column:k_,ColumnGroup:O_,ColumnHeader:w_,Footer:T_,Header:I_,Root:y_,RootPropsProvider:P_,Row:C_,ScrollArea:E_},Symbol.toStringTag,{value:"Module"})),{withProvider:wy,withContext:ei,PropsProvider:N_}=Y({key:"tabs"}),$_=wy(Ev,"root",{forwardAsChild:!0}),L_=wy(Cv,"root",{forwardAsChild:!0}),F_=N_,D_=ei(Pv,"trigger",{forwardAsChild:!0}),V_=ei(vv,"content",{forwardAsChild:!0}),M_=ei("div","contentGroup"),j_=ei(yv,"list",{forwardAsChild:!0}),__=ei(bv,"indicator",{forwardAsChild:!0}),B_=OO,H_=Object.freeze(Object.defineProperty({__proto__:null,Content:V_,ContentGroup:M_,Context:B_,Indicator:__,List:j_,PropsProvider:F_,Root:L_,RootProvider:$_,Trigger:D_},Symbol.toStringTag,{value:"Module"})),{withProvider:G_,withContext:As,PropsProvider:U_}=Y({key:"tag"}),W_=G_("div","root"),z_=U_,K_=As("span","label"),q_=As("button","closeTrigger",{defaultProps:{children:p.jsx(Wo,{})}}),Y_=As("span","startElement"),X_=As("span","endElement"),Z_=Object.freeze(Object.defineProperty({__proto__:null,CloseTrigger:q_,EndElement:X_,Label:K_,Root:W_,RootPropsProvider:z_,StartElement:Y_},Symbol.toStringTag,{value:"Module"})),{withContext:J_}=tt({key:"textarea"}),Q_=J_(Cf),{withProvider:e5,withContext:ln,PropsProvider:t5}=Y({key:"timeline"}),r5=e5("div","root",{defaultProps:{role:"list"}}),n5=t5,o5=ln("div","item",{defaultProps:{role:"listitem"}}),i5=ln("div","separator"),s5=ln("div","indicator"),a5=ln("div","content"),l5=ln("div","title"),c5=ln("div","description"),d5=ln("div","connector"),u5=Object.freeze(Object.defineProperty({__proto__:null,Connector:d5,Content:a5,Description:c5,Indicator:s5,Item:o5,Root:r5,RootPropsProvider:n5,Separator:i5,Title:l5},Symbol.toStringTag,{value:"Module"})),{withProvider:p5,withContext:Ns,useStyles:g5}=Y({key:"toast"});j(Rv,{},{forwardAsChild:!0});const f5=p5(xv,"root",{forwardAsChild:!0}),h5=Ns(Tv,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:p.jsx(Wo,{})}}),m5=Ns(Sv,"title",{forwardAsChild:!0}),v5=Ns(wv,"description",{forwardAsChild:!0}),b5=Ns(Iv,"actionTrigger",{forwardAsChild:!0}),y5={warning:Ji,success:eb,error:Ji},P5=f.forwardRef(function(r,t){const n=Bn(),o=g5(),i=y5[n.type];return i?p.jsx(i,{ref:t,...r,css:[o.indicator,r.css]}):null}),C5=Object.freeze(Object.defineProperty({__proto__:null,ActionTrigger:b5,CloseTrigger:h5,Description:v5,Indicator:P5,Root:f5,Title:m5},Symbol.toStringTag,{value:"Module"})),{withRootProvider:xy,withContext:ti,PropsProvider:E5}=Y({key:"tooltip"}),I5=xy(nk),T5=xy(rk,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),w5=E5,x5=ti(Lv,"trigger",{forwardAsChild:!0}),S5=ti($v,"positioner",{forwardAsChild:!0}),R5=ti(Nv,"content",{forwardAsChild:!0}),Sy=ti(Av,"arrowTip",{forwardAsChild:!0}),O5=ti(kv,"arrow",{forwardAsChild:!0,defaultProps:{children:p.jsx(Sy,{})}}),k5=XO,A5=Object.freeze(Object.defineProperty({__proto__:null,Arrow:O5,ArrowTip:Sy,Content:R5,Context:k5,Positioner:S5,PropsProvider:w5,Root:T5,RootProvider:I5,Trigger:x5},Symbol.toStringTag,{value:"Module"})),{withContext:N5}=tt({key:"heading"}),$5=N5("h2"),{withContext:L5}=tt({key:"text"}),F5=L5("p"),D5=j("em",{base:{fontStyle:"italic"}}),V5={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Ry=j("span",{base:V5});Ry.displayName="VisuallyHidden";const Oy=f.forwardRef(function(r,t){const{gap:n="0.5rem",justify:o,direction:i,align:s,...a}=r;return p.jsx(j.div,{ref:t,display:"flex",flexWrap:"wrap",justifyContent:o,alignItems:s,flexDirection:i,gap:n,...a,className:Fe("chakra-wrap",r.className)})});Oy.displayName="Wrap";const M5=Fv({display:"flex",alignItems:"flex-start"}),j5=f.forwardRef(function(r,t){return p.jsx(j.div,{ref:t,css:[M5,r.css],...r,className:Fe("chakra-wrap__listitem",r.className)})});var _5={colors:{content:{neutral:{bold:{value:"{colors.neutral.1100}"},default:{value:"{colors.neutral.1000}"},subtle:{value:"{colors.neutral.900}"},subtlest:{value:"{colors.neutral.700}"},disabled:{value:"{colors.neutral.600}"},default_inverse:{value:"{colors.neutral.0}"}},neuroidPrimary:{default:{value:"{colors.purple.400}"},default_inverse:{value:"{colors.purple.800}"}},danger:{default:{value:"{colors.red.400}"}},warning:{default:{value:"{colors.yellow.400}"}},success:{default:{value:"{colors.green.400}"}},informative:{default:{value:"{colors.blue.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"},defult_inverse:{value:"{colors.ohre.900}"}},heydPrimary:{default:{value:"{colors.cyan.400}"},defult_inverse:{value:"{colors.cyan.1000}"}}},background:{neutral:{default:{value:"{colors.neutral.200}"},selected:{value:"{colors.neutral.300}"},disabled:{value:"{colors.neutral.400}"}},neuroidPrimary:{default:{value:"{colors.purple.600}"},selected:{value:"{colors.purple.700}"},disabled:{value:"{colors.neutral.400}"}},neuroidSecondary:{default:{value:"{colors.purple.300}"},selected:{value:"{colors.purple.400}"},disabled:{value:"{colors.neutral.400}"}},danger:{default:{value:"{colors.red.700}"},selected:{value:"{colors.red.800}"},disabled:{value:"{colors.neutral.400}"}},warning:{default:{value:"{colors.yellow.700}"},selected:{value:"{colors.yellow.800}"},disabled:{value:"{colors.neutral.400}"}},success:{default:{value:"{colors.green.700}"},selected:{value:"{colors.green.800}"},disabled:{value:"{colors.neutral.400}"}},informative:{default:{value:"{colors.blue.700}"},selected:{value:"{colors.blue.800}"},disabled:{value:"{colors.neutral.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"},selected:{value:"{colors.ohre.500}"},disabled:{value:"{colors.neutral.400}"}},zoltarinaSecondary:{default:{value:"{colors.ohre.200}"},selected:{value:"{colors.ohre.300}"},disabled:{value:"{colors.neutral.400}"}},heydPrimary:{default:{value:"{colors.cyan.500}"},selected:{value:"{colors.cyan.600}"},disabled:{value:"{colors.neutral.400}"}},heydSecondary:{default:{value:"{colors.cyan.200}"},selected:{value:"{colors.cyan.300}"},disabled:{value:"{colors.neutral.400}"}}},surface:{base:{value:"{colors.neutral.0}"},layer_1:{value:"{colors.neutral.100}"},layer_2:{value:"{colors.neutral.200}"}},shadow:{overlay:{value:"{colors.black.400A}"},raised:{value:"{colors.black.600A}"}},scrim:{default:{value:"{colors.black.600A}"}},skeleton:{default:{value:"{colors.neutral.100}"},subtle:{value:"{colors.neutral.200}"}},border:{neutral:{default:{value:"{colors.neutral.400}"},subtle:{value:"{colors.neutral.300}"},disabled:{value:"{colors.neutral.200}"}},neuroidPrimary:{default:{value:"{colors.purple.400}"}},danger:{default:{value:"{colors.red.400}"}},warning:{default:{value:"{colors.yellow.400}"}},success:{default:{value:"{colors.green.400}"}},informative:{default:{value:"{colors.blue.400}"}},zoltarinaPrimary:{default:{value:"{colors.ohre.400}"}},heydPrimary:{default:{value:"{colors.cyan.400}"}}}},shadows:{raised:{value:"0px 1px 3px 0px {colors.shadow.raised}"},overlay:{value:"0px 20px 25px -5px {colors.shadow.overlay}"}}},B5={colors:{neutral:{0:{value:"#080A0E"},100:{value:"#101216"},200:{value:"#181A1E"},300:{value:"#282A2E"},400:{value:"#383A3E"},500:{value:"#505256"},600:{value:"#64666A"},700:{value:"#787A7E"},800:{value:"#A0A2A6"},900:{value:"#B4B6BA"},1e3:{value:"#DADCE0"},1100:{value:"#FAFCFF"}},black:{"700A":{value:"rgba(0,0,0,0.8)"},"600A":{value:"rgba(0,0,0,0.6)"},"500A":{value:"rgba(0,0,0,0.4)"},"400A":{value:"rgba(0,0,0,0.32)"},"300A":{value:"rgba(0,0,0,0.2)"},"200A":{value:"rgba(0,0,0,0.12)"},"100A":{value:"rgba(0,0,0,0.08)"}},white:{"700A":{value:"rgba(255,255,255,0.8)"},"600A":{value:"rgba(255,255,255,0.6)"},"500A":{value:"rgba(255,255,255,0.4)"},"400A":{value:"rgba(255,255,255,0.32)"},"300A":{value:"rgba(255,255,255,0.2)"},"200A":{value:"rgba(255,255,255,0.12)"},"100A":{value:"rgba(255,255,255,0.08)"}},red:{100:{value:"#ffeceb"},200:{value:"#ffd5d2"},300:{value:"#fd9891"},400:{value:"#f87168"},500:{value:"#f15b50"},600:{value:"#e2483d"},700:{value:"#c9372c"},800:{value:"#87241c"},900:{value:"#5d1f1a"},1e3:{value:"#42221f"}},yellow:{100:{value:"#fff5eb"},200:{value:"#ffe9d2"},300:{value:"#fdc991"},400:{value:"#f8b268"},500:{value:"#f1a350"},600:{value:"#e2923d"},700:{value:"#c97d2c"},800:{value:"#87531c"},900:{value:"#5d3d1a"},1e3:{value:"#42311f"}},blue:{100:{value:"#ebf2ff"},200:{value:"#d2e1ff"},300:{value:"#91b5fd"},400:{value:"#6898f8"},500:{value:"#5086f1"},600:{value:"#3d74e2"},700:{value:"#2c60c9"},800:{value:"#1c4087"},900:{value:"#1a305d"},1e3:{value:"#1f2b42"}},green:{100:{value:"#ebfff5"},200:{value:"#9cfccc"},300:{value:"#47EB99"},400:{value:"#26d980"},500:{value:"#14b866"},600:{value:"#10934c"},700:{value:"#147042"},800:{value:"#125433"},900:{value:"#104129"},1e3:{value:"#0b2819"}},purple:{100:{value:"#f3ebff"},200:{value:"#e9ddfd"},300:{value:"#cbacfb"},400:{value:"#ac7cf8"},500:{value:"#8d4bf6"},600:{value:"#6d19f5"},700:{value:"#570ad1"},800:{value:"#4308a0"},900:{value:"#2f0670"},1e3:{value:"#1a033f"}},ohre:{100:{value:"#FFF8F1"},200:{value:"#FFE6C8"},300:{value:"#FFD3A0"},400:{value:"#FFC077"},500:{value:"#E2A763"},600:{value:"#C58F50"},700:{value:"#A8773F"},800:{value:"#8A6030"},900:{value:"#6D4B22"},1e3:{value:"#503617"}},cyan:{100:{value:"#ecffff"},200:{value:"#c1feff"},300:{value:"#96feff"},400:{value:"#6bfdff"},500:{value:"#3df1f3"},600:{value:"#2acfd1"},700:{value:"#1aadaf"},800:{value:"#0e8c8d"},900:{value:"#056a6b"},1e3:{value:"#004849"}}},borderWidths:{none:{value:"0px"},sm:{value:"1px"},md:{value:"2px"},lg:{value:"4px"}},spacing:{0:{value:"0rem"},1:{value:"0.25rem"},2:{value:"0.5rem"},3:{value:"0.75rem"},4:{value:"1rem"},6:{value:"1.5rem"},8:{value:"2rem"},12:{value:"3rem"},20:{value:"5rem"},30:{value:"7.5rem"},56:{value:"14rem"},72:{value:"18rem"},98:{value:"24rem"},128:{value:"32rem"},160:{value:"40rem"}},radii:{none:{value:"0px"},xs:{value:"2px"},sm:{value:"4px"},md:{value:"8px"},lg:{value:"16px"},full:{value:"9999px"}},fontSizes:{xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.25rem"},xl:{value:"1.5rem"},"2xl":{value:"2rem"},"3xl":{value:"2.5rem"},"4xl":{value:"3rem"}},letterSpacings:{xs:{value:"-1.5px"},sm:{value:"-1.2px"},md:{value:"-1px"},lg:{value:"-0.8px"},xl:{value:"-0.6px"},"2xl":{value:"-0.4px"},"3xl":{value:"-0.2px"}},lineHeights:{md:{value:"1rem"},lg:{value:"1.25rem"},xl:{value:"1.5rem"},"2xl":{value:"1.75rem"},"3xl":{value:"2.25rem"},"4xl":{value:"2.75rem"},"5xl":{value:"3rem"}},fontWeights:{regular:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},regularItalic:{value:"Italic"},mediumItalic:{value:"Medium Italic"}},fonts:{inter:{value:"Inter"},notoSans:{value:"Noto Sans"}}},H5={body:{md:{value:{fontFamily:"notoSans",fontWeight:"regular",fontSize:"sm",lineHeight:"lg",letterSpacing:"3xl"}},lg:{value:{fontFamily:"notoSans",fontWeight:"regular",fontSize:"md",lineHeight:"xl",letterSpacing:"3xl"}},sm:{value:{fontSize:"xs",fontWeight:"regular",fontFamily:"notoSans",lineHeight:"md",letterSpacing:"3xl"}}},label:{sm:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"xs",lineHeight:"md",letterSpacing:"3xl"}},md:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"sm",lineHeight:"lg",letterSpacing:"3xl"}}},title:{sm:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"sm",lineHeight:"lg",letterSpacing:"2xl"}},md:{value:{fontFamily:"notoSans",fontWeight:"medium",fontSize:"md",lineHeight:"xl",letterSpacing:"xl"}},lg:{value:{fontFamily:"notoSans",fontWeight:"semibold",fontSize:"lg",lineHeight:"2xl",letterSpacing:"xl"}}},headline:{sm:{value:{fontFamily:"inter",fontWeight:"semibold",fontSize:"xl",lineHeight:"2xl",letterSpacing:"lg"}},md:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"2xl",lineHeight:"3xl",letterSpacing:"md"}}},display:{md:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"3xl",lineHeight:"4xl",letterSpacing:"sm"}},lg:{value:{fontFamily:"inter",fontWeight:"bold",fontSize:"4xl",lineHeight:"5xl",letterSpacing:"xs"}}}},G5={semantic:_5,primitive:B5,textStyles:H5};const{primitive:ky,semantic:Ay,textStyles:Ny}=G5,$y={semantic:Ay,primitive:ky,textStyles:Ny},U5=sk({theme:{tokens:ky,semanticTokens:Ay,textStyles:Ny}}),W5=w1(U5),Ly=f.createContext($y),z5=()=>f.useContext(Ly),K5=({children:e})=>p.jsx(Ly.Provider,{value:$y,children:p.jsx(WP,{value:W5,children:e})});var Fy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lu=f.createContext&&f.createContext(Fy),q5=["attr","size","title"];function Y5(e,r){if(e==null)return{};var t=X5(e,r),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function X5(e,r){if(e==null)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Qi.apply(this,arguments)}function cu(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function es(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?cu(Object(t),!0).forEach(function(n){Z5(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cu(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Z5(e,r,t){return r=J5(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function J5(e){var r=Q5(e,"string");return typeof r=="symbol"?r:r+""}function Q5(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Dy(e){return e&&e.map((r,t)=>f.createElement(r.tag,es({key:t},r.attr),Dy(r.child)))}function Vy(e){return r=>f.createElement(eB,Qi({attr:es({},e.attr)},r),Dy(e.child))}function eB(e){var r=t=>{var{attr:n,size:o,title:i}=e,s=Y5(e,q5),a=o||t.size||"1em",l;return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),f.createElement("svg",Qi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,s,{className:l,style:es(es({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&f.createElement("title",null,i),e.children)};return lu!==void 0?f.createElement(lu.Consumer,null,t=>r(t)):r(Fy)}function tB(e){return Vy({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"},child:[]},{tag:"path",attr:{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"},child:[]},{tag:"path",attr:{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"},child:[]},{tag:"path",attr:{d:"m2 2 20 20"},child:[]}]})(e)}function rB(e){return Vy({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)}const nB=pe.forwardRef(function(r,t){const{rootProps:n,defaultVisible:o,visible:i,onVisibleChange:s,visibilityIcon:a={on:p.jsx(rB,{}),off:p.jsx(tB,{})},...l}=r,[c,d]=BI({value:i,defaultValue:o||!1,onChange:s}),g=pe.useRef(null);return p.jsx(gD,{endElement:p.jsx(oB,{disabled:l.disabled,onPointerDown:u=>{l.disabled||u.button===0&&(u.preventDefault(),d(!c))},children:c?a.off:a.on}),...n,children:p.jsx(Ub,{...l,ref:Tu(t,g),type:c?"text":"password"})})}),oB=pe.forwardRef(function(r,t){return p.jsx(Yo,{tabIndex:-1,ref:t,me:"-2",aspectRatio:"square",size:"sm",variant:"ghost",height:"calc(100% - {spacing.2})","aria-label":"Toggle password visibility",...r})}),iB=pe.forwardRef(function(r,t){const{max:n=4,value:o,...i}=r,s=o/n*100,{label:a,colorPalette:l}=sB(s);return p.jsxs(Zo,{align:"flex-end",gap:"1",ref:t,...i,children:[p.jsx(au,{width:"full",ref:t,...i,children:Array.from({length:n}).map((c,d)=>p.jsx(qo,{height:"1",flex:"1",rounded:"sm","data-selected":d<o?"":void 0,layerStyle:"fill.subtle",colorPalette:"gray",_selected:{colorPalette:l,layerStyle:"fill.solid"}},d))}),a&&p.jsx(au,{textStyle:"xs",children:a})]})});function sB(e){switch(!0){case e<33:return{label:"Low",colorPalette:"red"};case e<66:return{label:"Medium",colorPalette:"orange"};default:return{label:"High",colorPalette:"green"}}}const aB=pe.forwardRef(function(r,t){const{children:n,inputProps:o,rootRef:i,...s}=r;return p.jsxs(ly,{ref:i,...s,children:[p.jsx(uy,{ref:t,...o}),p.jsx(dy,{}),n&&p.jsx(cy,{children:n})]})});exports.Accordion=Y1;exports.ActionBar=sA;exports.Alert=yA;exports.AspectRatio=CA;exports.Avatar=FA;exports.Badge=VA;exports.Bleed=HA;exports.Blockquote=XA;exports.Box=qo;exports.Breadcrumb=cN;exports.Button=lb;exports.Card=TN;exports.Center=cb;exports.Checkbox=FN;exports.CheckboxCard=qN;exports.ClientOnly=YN;exports.Clipboard=a$;exports.CloseButton=fN;exports.Code=c$;exports.Collapsible=v$;exports.ColorPicker=K$;exports.ColorSwatch=aC;exports.Container=Y$;exports.DataList=nL;exports.Dialog=PL;exports.Drawer=VL;exports.Editable=JL;exports.Em=D5;exports.EmptyState=aF;exports.EnvironmentProvider=VS;exports.Field=CF;exports.Fieldset=OF;exports.FileUpload=WF;exports.Flex=zF;exports.Float=KF;exports.FormatByte=yE;exports.FormatNumber=bE;exports.Grid=wu;exports.GridItem=qF;exports.Group=uc;exports.Heading=$5;exports.Highlight=eD;exports.HoverCard=dD;exports.Icon=Nb;exports.IconButton=Yo;exports.Image=uD;exports.Input=Ub;exports.Kbd=hD;exports.Link=vD;exports.List=TD;exports.LocaleProvider=ok;exports.Mark=Bb;exports.Menu=qD;exports.NumberInput=iV;exports.Pagination=hV;exports.PasswordInput=nB;exports.PasswordStrengthMeter=iB;exports.PinInput=wV;exports.Popover=GV;exports.Portal=J0;exports.Presence=_I;exports.Progress=QV;exports.ProgressCircle=cM;exports.Radio=aB;exports.RadioCard=xM;exports.RadioGroup=DM;exports.Select=oj;exports.Separator=sj;exports.Show=mb;exports.SimpleGrid=YF;exports.Skeleton=mc;exports.Slider=Cj;exports.Spinner=ab;exports.Stack=Zo;exports.Stat=Aj;exports.Status=Mj;exports.Steps=r_;exports.Switch=f_;exports.Table=A_;exports.Tabs=H_;exports.Tag=Z_;exports.Text=F5;exports.Textarea=Q_;exports.ThemeProvider=K5;exports.Timeline=u5;exports.Toast=C5;exports.Tooltip=A5;exports.VisuallyHidden=Ry;exports.Wrap=Oy;exports.WrapItem=j5;exports.useTheme=z5;
25
+ //# sourceMappingURL=index.cjs.map