UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

100 lines (77 loc) 469 kB
"use strict";var Dp=Object.defineProperty;var Vp=(n,e,t)=>e in n?Dp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Q=(n,e,t)=>Vp(n,typeof e!="symbol"?e+"":e,t);const K=require("react/jsx-runtime"),ee=require("react"),Vn=require("./index-jFOWwfD3.cjs.js"),Le=require("./index-D9zW9Tk7.cjs.js"),Il=require("./index-BruMW80s.cjs.js"),ce=require("./select-D703Xctn.cjs.js"),Vs=require("./index-CGLGXpw0.cjs.js"),xs=require("./index-is755vrc.cjs.js"),Be=require("./utils-C4d7Ql9-.cjs.js"),je=require("./index-DG15yxNP.cjs.js"),yd=require("./index-CMEUY8i_.cjs.js"),Al=require("react-hook-form"),Gp=require("react-dom"),El=require("./index-x_Mxo00P.cjs.js"),It=require("./_commonjsHelpers-DKOUU3wS.cjs.js"),Gs=require("./index-DGEvZwN5.cjs.js"),jp=require("./index-DnRKXUWD.cjs.js"),Hp=require("./circle-DjcntFbc.cjs.js"),Xp=require("./button-CpKtD3qG.cjs.js");function Wp(n){if(n&&n.__esModule)return n;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const L=Wp(ee);var js="Checkbox",[qp]=Le.createContextScope(js),[Zp,xl]=qp(js);function zp(n){const{__scopeCheckbox:e,checked:t,children:r,defaultChecked:i,disabled:s,form:a,name:o,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:h}=n,[f,p]=Il.useControllableState({prop:t,defaultProp:i??!1,onChange:l,caller:js}),[m,b]=L.useState(null),[y,v]=L.useState(null),S=L.useRef(!1),E=m?!!a||!!m.closest("form"):!0,x={checked:f,disabled:s,setChecked:p,control:m,setControl:b,name:o,form:a,value:d,hasConsumerStoppedPropagationRef:S,required:u,defaultChecked:gn(i)?!1:i,isFormControl:E,bubbleInput:y,setBubbleInput:v};return K.jsx(Zp,{scope:e,...x,children:$p(h)?h(x):r})}var Cd="CheckboxTrigger",Id=L.forwardRef(({__scopeCheckbox:n,onKeyDown:e,onClick:t,...r},i)=>{const{control:s,value:a,disabled:o,checked:l,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=xl(Cd,n),b=Vn.useComposedRefs(i,d),y=L.useRef(l);return L.useEffect(()=>{const v=s==null?void 0:s.form;if(v){const S=()=>h(y.current);return v.addEventListener("reset",S),()=>v.removeEventListener("reset",S)}},[s,h]),K.jsx(Le.Primitive.button,{type:"button",role:"checkbox","aria-checked":gn(l)?"mixed":l,"aria-required":u,"data-state":wd(l),"data-disabled":o?"":void 0,disabled:o,value:a,...r,ref:b,onKeyDown:Le.composeEventHandlers(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:Le.composeEventHandlers(t,v=>{h(S=>gn(S)?!0:!S),m&&p&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});Id.displayName=Cd;var Sl=L.forwardRef((n,e)=>{const{__scopeCheckbox:t,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l,onCheckedChange:u,form:d,...h}=n;return K.jsx(zp,{__scopeCheckbox:t,checked:i,defaultChecked:s,disabled:o,required:a,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:f})=>K.jsxs(K.Fragment,{children:[K.jsx(Id,{...h,ref:e,__scopeCheckbox:t}),f&&K.jsx(Sd,{__scopeCheckbox:t})]})})});Sl.displayName=js;var Ad="CheckboxIndicator",Ed=L.forwardRef((n,e)=>{const{__scopeCheckbox:t,forceMount:r,...i}=n,s=xl(Ad,t);return K.jsx(Le.Presence,{present:r||gn(s.checked)||s.checked===!0,children:K.jsx(Le.Primitive.span,{"data-state":wd(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...n.style}})})});Ed.displayName=Ad;var xd="CheckboxBubbleInput",Sd=L.forwardRef(({__scopeCheckbox:n,...e},t)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:a,required:o,disabled:l,name:u,value:d,form:h,bubbleInput:f,setBubbleInput:p}=xl(xd,n),m=Vn.useComposedRefs(t,p),b=ce.usePrevious(s),y=Vs.useSize(r);L.useEffect(()=>{const S=f;if(!S)return;const E=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(E,"checked").set,R=!i.current;if(b!==s&&C){const k=new Event("click",{bubbles:R});S.indeterminate=gn(s),C.call(S,gn(s)?!1:s),S.dispatchEvent(k)}},[f,b,s,i]);const v=L.useRef(gn(s)?!1:s);return K.jsx(Le.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??v.current,required:o,disabled:l,name:u,value:d,form:h,...e,tabIndex:-1,ref:m,style:{...e.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Sd.displayName=xd;function $p(n){return typeof n=="function"}function gn(n){return n==="indeterminate"}function wd(n){return gn(n)?"indeterminate":n?"checked":"unchecked"}const Td=L.forwardRef(({className:n,...e},t)=>K.jsx(Sl,{ref:t,className:Be.cn("peer border-border-alpha-strong ring-offset-background size-4 shrink-0 cursor-pointer rounded-sm border disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:text-primary data-[state=checked]:bg-item-primary",n),...e,children:K.jsx(Ed,{className:Be.cn("flex size-4 items-center justify-center text-current"),children:e.checked==="indeterminate"?K.jsx(xs.RN,{className:"mr-0.5 mb-0.5 size-3.5 text-white"}):K.jsx(xs.s7,{className:"mr-0.5 mb-0.5 size-3.5 text-white"})})}));Td.displayName=Sl.displayName;function Nd(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Yp=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Up=Nd(function(n){return Yp.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),_e="-ms-",ri="-moz-",Ae="-webkit-",kd="comm",Hs="rule",wl="decl",Jp="@import",Qp="@namespace",Rd="@keyframes",Kp="@layer",_d=Math.abs,Tl=String.fromCharCode,Mo=Object.assign;function eg(n,e){return Ge(n,0)^45?(((e<<2^Ge(n,0))<<2^Ge(n,1))<<2^Ge(n,2))<<2^Ge(n,3):0}function Od(n){return n.trim()}function $t(n,e){return(n=e.exec(n))?n[0]:n}function me(n,e,t){return n.replace(e,t)}function ds(n,e,t){return n.indexOf(e,t)}function Ge(n,e){return n.charCodeAt(e)|0}function Bn(n,e,t){return n.slice(e,t)}function vt(n){return n.length}function Bd(n){return n.length}function Ur(n,e){return e.push(n),n}function tg(n,e){return n.map(e).join("")}function uu(n,e){return n.filter(function(t){return!$t(t,e)})}var Xs=1,mr=1,Fd=0,ft=0,Pe=0,wr="";function Ws(n,e,t,r,i,s,a,o){return{value:n,root:e,parent:t,type:r,props:i,children:s,line:Xs,column:mr,length:a,return:"",siblings:o}}function on(n,e){return Mo(Ws("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function rr(n){for(;n.root;)n=on(n.root,{children:[n]});Ur(n,n.siblings)}function ng(){return Pe}function rg(){return Pe=ft>0?Ge(wr,--ft):0,mr--,Pe===10&&(mr=1,Xs--),Pe}function At(){return Pe=ft<Fd?Ge(wr,ft++):0,mr++,Pe===10&&(mr=1,Xs++),Pe}function hn(){return Ge(wr,ft)}function hs(){return ft}function qs(n,e){return Bn(wr,n,e)}function ui(n){switch(n){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 ig(n){return Xs=mr=1,Fd=vt(wr=n),ft=0,[]}function sg(n){return wr="",n}function eo(n){return Od(qs(ft-1,Po(n===91?n+2:n===40?n+1:n)))}function ag(n){for(;(Pe=hn())&&Pe<33;)At();return ui(n)>2||ui(Pe)>3?"":" "}function og(n,e){for(;--e&&At()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return qs(n,hs()+(e<6&&hn()==32&&At()==32))}function Po(n){for(;At();)switch(Pe){case n:return ft;case 34:case 39:n!==34&&n!==39&&Po(Pe);break;case 40:n===41&&Po(n);break;case 92:At();break}return ft}function lg(n,e){for(;At()&&n+Pe!==57;)if(n+Pe===84&&hn()===47)break;return"/*"+qs(e,ft-1)+"*"+Tl(n===47?n:At())}function ug(n){for(;!ui(hn());)At();return qs(n,ft)}function cg(n){return sg(fs("",null,null,null,[""],n=ig(n),0,[0],n))}function fs(n,e,t,r,i,s,a,o,l){for(var u=0,d=0,h=a,f=0,p=0,m=0,b=1,y=1,v=1,S=0,E="",x=i,C=s,R=r,k=E;y;)switch(m=S,S=At()){case 40:if(m!=108&&Ge(k,h-1)==58){ds(k+=me(eo(S),"&","&\f"),"&\f",_d(u?o[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:k+=eo(S);break;case 9:case 10:case 13:case 32:k+=ag(m);break;case 92:k+=og(hs()-1,7);continue;case 47:switch(hn()){case 42:case 47:Ur(dg(lg(At(),hs()),e,t,l),l),(ui(m||1)==5||ui(hn()||1)==5)&&vt(k)&&Bn(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*b:o[u++]=vt(k)*v;case 125*b:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:v==-1&&(k=me(k,/\f/g,"")),p>0&&(vt(k)-h||b===0&&m===47)&&Ur(p>32?du(k+";",r,t,h-1,l):du(me(k," ","")+";",r,t,h-2,l),l);break;case 59:k+=";";default:if(Ur(R=cu(k,e,t,u,d,i,o,E,x=[],C=[],h,s),s),S===123)if(d===0)fs(k,e,R,R,x,s,h,o,C);else{switch(f){case 99:if(Ge(k,3)===110)break;case 108:if(Ge(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?fs(n,R,R,r&&Ur(cu(n,R,R,0,0,i,o,E,i,x=[],h,C),C),i,C,h,o,r?x:C):fs(k,R,R,R,[""],C,0,o,C)}}u=d=p=0,b=v=1,E=k="",h=a;break;case 58:h=1+vt(k),p=m;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&rg()==125)continue}switch(k+=Tl(S),S*b){case 38:v=d>0?1:(k+="\f",-1);break;case 44:o[u++]=(vt(k)-1)*v,v=1;break;case 64:hn()===45&&(k+=eo(At())),f=hn(),d=h=vt(E=k+=ug(hs())),S++;break;case 45:m===45&&vt(k)==2&&(b=0)}}return s}function cu(n,e,t,r,i,s,a,o,l,u,d,h){for(var f=i-1,p=i===0?s:[""],m=Bd(p),b=0,y=0,v=0;b<r;++b)for(var S=0,E=Bn(n,f+1,f=_d(y=a[b])),x=n;S<m;++S)(x=Od(y>0?p[S]+" "+E:me(E,/&\f/g,p[S])))&&(l[v++]=x);return Ws(n,e,t,i===0?Hs:o,l,u,d,h)}function dg(n,e,t,r){return Ws(n,e,t,kd,Tl(ng()),Bn(n,2,-2),0,r)}function du(n,e,t,r,i){return Ws(n,e,t,wl,Bn(n,0,r),Bn(n,r+1,-1),r,i)}function Ld(n,e,t){switch(eg(n,e)){case 5103:return Ae+"print-"+n+n;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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ae+n+n;case 4855:return Ae+n.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+n;case 4789:return ri+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+n+ri+n+_e+n+n;case 5936:switch(Ge(n,e+11)){case 114:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Ae+n+_e+n+n;case 6165:return Ae+n+_e+"flex-"+n+n;case 5187:return Ae+n+me(n,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+_e+"flex-$1$2")+n;case 5443:return Ae+n+_e+"flex-item-"+me(n,/flex-|-self/g,"")+($t(n,/flex-|baseline/)?"":_e+"grid-row-"+me(n,/flex-|-self/g,""))+n;case 4675:return Ae+n+_e+"flex-line-pack"+me(n,/align-content|flex-|-self/g,"")+n;case 5548:return Ae+n+_e+me(n,"shrink","negative")+n;case 5292:return Ae+n+_e+me(n,"basis","preferred-size")+n;case 6060:return Ae+"box-"+me(n,"-grow","")+Ae+n+_e+me(n,"grow","positive")+n;case 4554:return Ae+me(n,/([^-])(transform)/g,"$1"+Ae+"$2")+n;case 6187:return me(me(me(n,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),n,"")+n;case 5495:case 3959:return me(n,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return me(me(n,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+_e+"flex-pack:$3"),/space-between/,"justify")+Ae+n+n;case 4200:if(!$t(n,/flex-|baseline/))return _e+"grid-column-align"+Bn(n,e)+n;break;case 2592:case 3360:return _e+me(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,$t(r.props,/grid-\w+-end/)})?~ds(n+(t=t[e].value),"span",0)?n:_e+me(n,"-start","")+n+_e+"grid-row-span:"+(~ds(t,"span",0)?$t(t,/\d+/):+$t(t,/\d+/)-+$t(n,/\d+/))+";":_e+me(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return $t(r.props,/grid-\w+-start/)})?n:_e+me(me(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return me(n,/(.+)-inline(.+)/,Ae+"$1$2")+n;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(vt(n)-1-e>6)switch(Ge(n,e+1)){case 109:if(Ge(n,e+4)!==45)break;case 102:return me(n,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+ri+(Ge(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~ds(n,"stretch",0)?Ld(me(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return me(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,o,l,u){return _e+i+":"+s+u+(a?_e+i+"-span:"+(o?l:+l-+s)+u:"")+n});case 4949:if(Ge(n,e+6)===121)return me(n,":",":"+Ae)+n;break;case 6444:switch(Ge(n,Ge(n,14)===45?18:11)){case 120:return me(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ae+(Ge(n,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+_e+"$2box$3")+n;case 100:return me(n,":",":"+_e)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return me(n,"scroll-","scroll-snap-")+n}return n}function Ss(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function hg(n,e,t,r){switch(n.type){case Kp:if(n.children.length)break;case Jp:case Qp:case wl:return n.return=n.return||n.value;case kd:return"";case Rd:return n.return=n.value+"{"+Ss(n.children,r)+"}";case Hs:if(!vt(n.value=n.props.join(",")))return""}return vt(t=Ss(n.children,r))?n.return=n.value+"{"+t+"}":""}function fg(n){var e=Bd(n);return function(t,r,i,s){for(var a="",o=0;o<e;o++)a+=n[o](t,r,i,s)||"";return a}}function pg(n){return function(e){e.root||(e=e.return)&&n(e)}}function gg(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case wl:n.return=Ld(n.value,n.length,t);return;case Rd:return Ss([on(n,{value:me(n.value,"@","@"+Ae)})],r);case Hs:if(n.length)return tg(t=n.props,function(i){switch($t(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":rr(on(n,{props:[me(i,/:(read-\w+)/,":"+ri+"$1")]})),rr(on(n,{props:[i]})),Mo(n,{props:uu(t,r)});break;case"::placeholder":rr(on(n,{props:[me(i,/:(plac\w+)/,":"+Ae+"input-$1")]})),rr(on(n,{props:[me(i,/:(plac\w+)/,":"+ri+"$1")]})),rr(on(n,{props:[me(i,/:(plac\w+)/,_e+"input-$1")]})),rr(on(n,{props:[i]})),Mo(n,{props:uu(t,r)});break}return""})}}var Md={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},Fn=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Pd="active",Dd="data-styled-version",Zs="6.3.9",Nl=`/*!sc*/ `,ii=typeof window<"u"&&typeof document<"u",mn=L.default.createContext===void 0,mg=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),hu=/invalid hook call/i,zi=new Set,bg=function(n,e){if(process.env.NODE_ENV!=="production"){if(mn)return;var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t,` has been created dynamically. `)+`You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `,i=console.error;try{var s=!0;console.error=function(a){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];hu.test(a)?(s=!1,zi.delete(r)):i.apply(void 0,je.__spreadArray([a],o,!1))},typeof L.default.useState=="function"&&L.default.useState(null),s&&!zi.has(r)&&(console.warn(r),zi.add(r))}catch(a){hu.test(a.message)&&zi.delete(r)}finally{console.error=i}}},kl=Object.freeze([]),br=Object.freeze({});function vg(n,e,t){return t===void 0&&(t=br),n.theme!==t.theme&&n.theme||e||t.theme}var Do=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),yg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cg=/(^-|-$)/g;function fu(n){return n.replace(yg,"-").replace(Cg,"")}var Ig=/(a)(d)/gi,pu=function(n){return String.fromCharCode(n+(n>25?39:97))};function Vo(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=pu(e%52)+t;return(pu(e%52)+t).replace(Ig,"$1-$2")}var to,cn=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},Vd=function(n){return cn(5381,n)};function Ag(n){return Vo(Vd(n)>>>0)}function Gd(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function no(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var jd=typeof Symbol=="function"&&Symbol.for,Hd=jd?Symbol.for("react.memo"):60115,Eg=jd?Symbol.for("react.forward_ref"):60112,xg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wg=((to={})[Eg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},to[Hd]=Xd,to);function gu(n){return("type"in(e=n)&&e.type.$$typeof)===Hd?Xd:"$$typeof"in n?wg[n.$$typeof]:xg;var e}var Tg=Object.defineProperty,Ng=Object.getOwnPropertyNames,mu=Object.getOwnPropertySymbols,kg=Object.getOwnPropertyDescriptor,Rg=Object.getPrototypeOf,bu=Object.prototype;function Wd(n,e,t){if(typeof e!="string"){if(bu){var r=Rg(e);r&&r!==bu&&Wd(n,r,t)}var i=Ng(e);mu&&(i=i.concat(mu(e)));for(var s=gu(n),a=gu(e),o=0;o<i.length;++o){var l=i[o];if(!(l in Sg||t&&t[l]||a&&l in a||s&&l in s)){var u=kg(e,l);try{Tg(n,l,u)}catch{}}}}return n}function vr(n){return typeof n=="function"}function Rl(n){return typeof n=="object"&&"styledComponentId"in n}function Rn(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function vu(n,e){return n.join("")}function yr(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Go(n,e,t){if(t===void 0&&(t=!1),!t&&!yr(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Go(n[r],e[r]);else if(yr(e))for(var r in e)n[r]=Go(n[r],e[r]);return n}function _l(n,e){Object.defineProperty(n,"toString",{value:e})}var _g=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s. `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `,5:`The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `,6:`Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object. `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. `,14:`ThemeProvider: "theme" prop is required. `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s. You may only create up to 1,073,741,824 components. If you're creating components dynamically, as for instance in your render method then you may be running into this limitation. `,17:`CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Og(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,s=n.length;i<s;i+=1)r.push(n[i]);return r.forEach(function(a){t=t.replace(/%[a-z]/,a)}),t}function Tr(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(Og.apply(void 0,je.__spreadArray([_g[n]],e,!1)).trim())}var Bg=(function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return n.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;e>=s;)if((s<<=1)<0)throw Tr(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=i;a<s;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),l=0,u=(a=0,t.length);a<u;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++,l++);l>0&&this._cGroup>e&&(this._cIndex+=l)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),i=r+t;this.groupSizes[e]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),s=i+r,a=i;a<s;a++)t+=this.tag.getRule(a)+Nl;return t},n})(),Fg=1<<30,ps=new Map,ws=new Map,gs=1,Jr=function(n){if(ps.has(n))return ps.get(n);for(;ws.has(gs);)gs++;var e=gs++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>Fg))throw Tr(16,"".concat(e));return ps.set(n,e),ws.set(e,n),e},Lg=function(n,e){gs=e+1,ps.set(n,e),ws.set(e,n)},Mg="style[".concat(Fn,"][").concat(Dd,'="').concat(Zs,'"]'),Pg=new RegExp("^".concat(Fn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),yu=function(n){return typeof ShadowRoot<"u"&&n instanceof ShadowRoot||"host"in n&&n.nodeType===11},jo=function(n){if(!n)return document;if(yu(n))return n;if("getRootNode"in n){var e=n.getRootNode();if(yu(e))return e}return document},Dg=function(n,e,t){for(var r,i=t.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&n.registerName(e,r)},Vg=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Nl),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(Pg);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(Lg(d,u),Dg(n,d,l[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(o)}}},ro=function(n){for(var e=jo(n.options.target).querySelectorAll(Mg),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(Fn)!==Pd&&(Vg(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function Gg(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qd=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=(function(o){var l=Array.from(o.querySelectorAll("style[".concat(Fn,"]")));return l[l.length-1]})(t),s=i!==void 0?i.nextSibling:null;r.setAttribute(Fn,Pd),r.setAttribute(Dd,Zs);var a=Gg();return a&&r.setAttribute("nonce",a),t.insertBefore(r,s),r},jg=(function(){function n(e){this.element=qd(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){var r;if(t.sheet)return t.sheet;for(var i=(r=t.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets,s=0,a=i.length;s<a;s++){var o=i[s];if(o.ownerNode===t)return o}throw Tr(17)})(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n})(),Hg=(function(){function n(e){this.element=qd(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n})(),Xg=(function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n})(),Cu=ii,Wg={isServer:!ii,useCSSOMInjection:!mg},Zd=(function(){function n(e,t,r){e===void 0&&(e=br),t===void 0&&(t={});var i=this;this.options=je.__assign(je.__assign({},Wg),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ii&&Cu&&(Cu=!1,ro(this)),_l(this,function(){return(function(s){for(var a=s.getTag(),o=a.length,l="",u=function(h){var f=(function(v){return ws.get(v)})(h);if(f===void 0)return"continue";var p=s.names.get(f);if(p===void 0||!p.size)return"continue";var m=a.getGroup(h);if(m.length===0)return"continue";var b=Fn+".g"+h+'[id="'+f+'"]',y="";p.forEach(function(v){v.length>0&&(y+=v+",")}),l+=m+b+'{content:"'+y+'"}'+Nl},d=0;d<o;d++)u(d);return l})(i)})}return n.registerId=function(e){return Jr(e)},n.prototype.rehydrate=function(){!this.server&&ii&&ro(this)},n.prototype.reconstructWithOptions=function(e,t){t===void 0&&(t=!0);var r=new n(je.__assign(je.__assign({},this.options),e),this.gs,t&&this.names||void 0);return!this.server&&ii&&e.target!==this.options.target&&jo(this.options.target)!==jo(e.target)&&ro(r),r},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(t){var r=t.useCSSOMInjection,i=t.target;return t.isServer?new Xg(i):r?new jg(i):new Hg(i)})(this.options),new Bg(e)));var e},n.prototype.hasNameForId=function(e,t){var r,i;return(i=(r=this.names.get(e))===null||r===void 0?void 0:r.has(t))!==null&&i!==void 0&&i},n.prototype.registerName=function(e,t){Jr(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jr(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Jr(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),qg=/&/g,Yt=47,kn=42;function Iu(n){if(n.indexOf("}")===-1)return!1;for(var e=n.length,t=0,r=0,i=!1,s=0;s<e;s++){var a=n.charCodeAt(s);if(r!==0||i||a!==Yt||n.charCodeAt(s+1)!==kn)if(i)a===kn&&n.charCodeAt(s+1)===Yt&&(i=!1,s++);else if(a!==34&&a!==39||s!==0&&n.charCodeAt(s-1)===92){if(r===0){if(a===123)t++;else if(a===125&&--t<0)return!0}}else r===0?r=a:r===a&&(r=0);else i=!0,s++}return t!==0||r!==0}function zd(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=zd(t.children,e)),t})}function Zg(n){var e,t,r,i=br,s=i.options,a=s===void 0?br:s,o=i.plugins,l=o===void 0?kl:o,u=function(m,b,y){return y.startsWith(t)&&y.endsWith(t)&&y.replaceAll(t,"").length>0?".".concat(e):m},d=l.slice();d.push(function(m){m.type===Hs&&m.value.includes("&")&&(r||(r=new RegExp("\\".concat(t,"\\b"),"g")),m.props[0]=m.props[0].replace(qg,t).replace(r,u))}),a.prefix&&d.push(gg),d.push(hg);var h=[],f=fg(d.concat(pg(function(m){return h.push(m)}))),p=function(m,b,y,v){b===void 0&&(b=""),y===void 0&&(y=""),v===void 0&&(v="&"),e=v,t=b,r=void 0;var S=(function(x){if(!Iu(x))return x;for(var C=x.length,R="",k=0,F=0,te=0,he=!1,I=0;I<C;I++){var O=x.charCodeAt(I);if(te!==0||he||O!==Yt||x.charCodeAt(I+1)!==kn)if(he)O===kn&&x.charCodeAt(I+1)===Yt&&(he=!1,I++);else if(O!==34&&O!==39||I!==0&&x.charCodeAt(I-1)===92){if(te===0)if(O===123)F++;else if(O===125){if(--F<0){for(var w=I+1;w<C;){var j=x.charCodeAt(w);if(j===59||j===10)break;w++}w<C&&x.charCodeAt(w)===59&&w++,F=0,I=w-1,k=w;continue}F===0&&(R+=x.substring(k,I+1),k=I+1)}else O===59&&F===0&&(R+=x.substring(k,I+1),k=I+1)}else te===0?te=O:te===O&&(te=0);else he=!0,I++}if(k<C){var P=x.substring(k);Iu(P)||(R+=P)}return R})((function(x){if(x.indexOf("//")===-1)return x;for(var C=x.length,R=[],k=0,F=0,te=0,he=0;F<C;){var I=x.charCodeAt(F);if(I!==34&&I!==39||F!==0&&x.charCodeAt(F-1)===92)if(te===0)if(I===Yt&&F+1<C&&x.charCodeAt(F+1)===kn){for(F+=2;F+1<C&&(x.charCodeAt(F)!==kn||x.charCodeAt(F+1)!==Yt);)F++;F+=2}else if(I===40&&F>=3&&(32|x.charCodeAt(F-1))==108&&(32|x.charCodeAt(F-2))==114&&(32|x.charCodeAt(F-3))==117)he=1,F++;else if(he>0)I===41?he--:I===40&&he++,F++;else if(I===kn&&F+1<C&&x.charCodeAt(F+1)===Yt)F>k&&R.push(x.substring(k,F)),k=F+=2;else if(I===Yt&&F+1<C&&x.charCodeAt(F+1)===Yt){for(F>k&&R.push(x.substring(k,F));F<C&&x.charCodeAt(F)!==10;)F++;k=F}else F++;else F++;else te===0?te=I:te===I&&(te=0),F++}return k===0?x:(k<C&&R.push(x.substring(k)),R.join(""))})(m)),E=cg(y||b?"".concat(y," ").concat(b," { ").concat(S," }"):S);return a.namespace&&(E=zd(E,a.namespace)),h=[],Ss(E,f),h};return p.hash=l.length?l.reduce(function(m,b){return b.name||Tr(15),cn(m,b.name)},5381).toString():"",p}var zg=new Zd,Ho=Zg(),Xo={shouldForwardProp:void 0,styleSheet:zg,stylis:Ho},$d=mn?{Provider:function(n){return n.children},Consumer:function(n){return(0,n.children)(Xo)}}:L.default.createContext(Xo);$d.Consumer;mn||L.default.createContext(void 0);function Au(){return mn?Xo:L.default.useContext($d)}var Eu=(function(){function n(e,t){var r=this;this.inject=function(i,s){s===void 0&&(s=Ho);var a=r.name+s.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,_l(this,function(){throw Tr(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=Ho),this.name+e.hash},n})();function $g(n,e){return e==null||typeof e=="boolean"||e===""?"":typeof e!="number"||e===0||n in Md||n.startsWith("--")?String(e).trim():"".concat(e,"px")}var Yg=function(n){return n>="A"&&n<="Z"};function xu(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;Yg(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Yd=function(n){return n==null||n===!1||n===""},Ud=function(n){var e=[];for(var t in n){var r=n[t];n.hasOwnProperty(t)&&!Yd(r)&&(Array.isArray(r)&&r.isCss||vr(r)?e.push("".concat(xu(t),":"),r,";"):yr(r)?e.push.apply(e,je.__spreadArray(je.__spreadArray(["".concat(t," {")],Ud(r),!1),["}"],!1)):e.push("".concat(xu(t),": ").concat($g(t,r),";")))}return e};function On(n,e,t,r,i){if(i===void 0&&(i=[]),typeof n=="string")return n&&i.push(n),i;if(Yd(n))return i;if(Rl(n))return i.push(".".concat(n.styledComponentId)),i;if(vr(n)){if(!vr(a=n)||a.prototype&&a.prototype.isReactComponent||!e)return i.push(n),i;var s=n(e);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof Eu||yr(s)||s===null||console.error("".concat(Gd(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),On(s,e,t,r,i)}var a;if(n instanceof Eu)return t?(n.inject(t,r),i.push(n.getName(r))):i.push(n),i;if(yr(n)){for(var o=Ud(n),l=0;l<o.length;l++)i.push(o[l]);return i}if(!Array.isArray(n))return i.push(n.toString()),i;for(l=0;l<n.length;l++)On(n[l],e,t,r,i);return i}function Ug(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(vr(t)&&!Rl(t))return!1}return!0}var Jg=Vd(Zs),Qg=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ug(e),this.componentId=t,this.baseHash=cn(Jg,t),this.baseStyle=r,Zd.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Rn(i,this.staticRulesId);else{var s=vu(On(this.rules,e,t,r)),a=Vo(cn(this.baseHash,s)>>>0);if(!t.hasNameForId(this.componentId,a)){var o=r(s,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,o)}i=Rn(i,a),this.staticRulesId=a}else{for(var l=cn(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")u+=h,process.env.NODE_ENV!=="production"&&(l=cn(l,h));else if(h){var f=vu(On(h,e,t,r));l=cn(cn(l,String(d)),f),u+=f}}if(u){var p=Vo(l>>>0);if(!t.hasNameForId(this.componentId,p)){var m=r(u,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,m)}i=Rn(i,p)}}return{className:i,css:typeof window>"u"?t.getTag().getGroup(Jr(this.componentId)):""}},n})(),Jd=mn?{Provider:function(n){return n.children},Consumer:function(n){return(0,n.children)(void 0)}}:L.default.createContext(void 0);Jd.Consumer;var io={},Su=new Set;function Kg(n,e,t){var r=Rl(n),i=n,s=!no(n),a=e.attrs,o=a===void 0?kl:a,l=e.componentId,u=l===void 0?(function(x,C){var R=typeof x!="string"?"sc":fu(x);io[R]=(io[R]||0)+1;var k="".concat(R,"-").concat(Ag(Zs+R+io[R]));return C?"".concat(C,"-").concat(k):k})(e.displayName,e.parentComponentId):l,d=e.displayName,h=d===void 0?(function(x){return no(x)?"styled.".concat(x):"Styled(".concat(Gd(x),")")})(n):d,f=e.displayName&&e.componentId?"".concat(fu(e.displayName),"-").concat(e.componentId):e.componentId||u,p=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,m=e.shouldForwardProp;if(r&&i.shouldForwardProp){var b=i.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;m=function(x,C){return b(x,C)&&y(x,C)}}else m=b}var v=new Qg(t,f,r?i.componentStyle:void 0);function S(x,C){return(function(R,k,F){var te=R.attrs,he=R.componentStyle,I=R.defaultProps,O=R.foldedComponentIds,w=R.styledComponentId,j=R.target,P=mn?void 0:L.default.useContext(Jd),_=Au(),G=R.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&L.default.useDebugValue&&L.default.useDebugValue(w);var Z=vg(k,P,I)||(mn?void 0:br),z=(function(q,U,J){for(var ae,N=je.__assign(je.__assign({},U),{className:void 0,theme:J}),fe=0;fe<q.length;fe+=1){var ve=vr(ae=q[fe])?ae(N):ae;for(var Ie in ve)Ie==="className"?N.className=Rn(N.className,ve[Ie]):Ie==="style"?N.style=je.__assign(je.__assign({},N.style),ve[Ie]):N[Ie]=ve[Ie]}return"className"in U&&typeof U.className=="string"&&(N.className=Rn(N.className,U.className)),N})(te,k,Z),T=z.as||j,M={};for(var D in z)z[D]===void 0||D[0]==="$"||D==="as"||D==="theme"&&z.theme===Z||(D==="forwardedAs"?M.as=z.forwardedAs:G&&!G(D,T)||(M[D]=z[D],G||process.env.NODE_ENV!=="development"||Up(D)||Su.has(D)||!Do.has(T)||(Su.add(D),console.warn('styled-components: it looks like an unknown prop "'.concat(D,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var W=(function(q,U){var J=Au(),ae=q.generateAndInjectStyles(U,J.styleSheet,J.stylis);return process.env.NODE_ENV!=="production"&&L.default.useDebugValue&&L.default.useDebugValue(ae.className),ae})(he,z),X=W.className,H=W.css;process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(X);var $=Rn(O,w);X&&($+=" "+X),z.className&&($+=" "+z.className),M[no(T)&&!Do.has(T)?"class":"className"]=$,F&&(M.ref=F);var Y=ee.createElement(T,M);return mn&&H?L.default.createElement(L.default.Fragment,null,L.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(w,"-").concat(X),children:H}),Y):Y})(E,x,C)}S.displayName=h;var E=L.default.forwardRef(S);return E.attrs=p,E.componentStyle=v,E.displayName=h,E.shouldForwardProp=m,E.foldedComponentIds=r?Rn(i.foldedComponentIds,i.styledComponentId):"",E.styledComponentId=f,E.target=r?i.target:n,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?(function(C){for(var R=[],k=1;k<arguments.length;k++)R[k-1]=arguments[k];for(var F=0,te=R;F<te.length;F++)Go(C,te[F],!0);return C})({},i.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(bg(h,f),E.warnTooManyClasses=(function(x,C){var R={},k=!1;return function(F){if(!k&&(R[F]=!0,Object.keys(R).length>=200)){var te=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(te,`. `)+`Consider using the attrs method, together with a style object for frequently changed styles. Example: const Component = styled.div.attrs(props => ({ style: { background: props.background, }, }))\`width: 100%;\` <Component />`),k=!0,R={}}}})(h,f)),_l(E,function(){return".".concat(E.styledComponentId)}),s&&Wd(E,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function wu(n,e){for(var t=[n[0]],r=0,i=e.length;r<i;r+=1)t.push(e[r],n[r+1]);return t}var Tu=function(n){return Object.assign(n,{isCss:!0})};function em(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(vr(n)||yr(n))return Tu(On(wu(kl,je.__spreadArray([n],e,!0))));var r=n;return e.length===0&&r.length===1&&typeof r[0]=="string"?On(r):Tu(On(wu(r,e)))}function Wo(n,e,t){if(t===void 0&&(t=br),!e)throw Tr(1,e);var r=function(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return n(e,t,em.apply(void 0,je.__spreadArray([i],s,!1)))};return r.attrs=function(i){return Wo(n,e,je.__assign(je.__assign({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Wo(n,e,je.__assign(je.__assign({},t),i))},r}var Qd=function(n){return Wo(Kg,n)},Kd=Qd;Do.forEach(function(n){Kd[n]=Qd(n)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. Perhaps you're looking to import 'styled-components/native'? Read more about this at https://www.styled-components.com/docs/basics#react-native`);var $i="__sc-".concat(Fn,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$i]||(window[$i]=0),window[$i]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason. See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[$i]+=1);const tm=Kd.div` .filepond { &--drop-label { label { color: ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"inherit"} !important; } } &--root { margin-bottom: 0.5rem; border-radius: 0.75rem; } &--panel { border-radius: 0.8rem; overflow: hidden; &-root { background-color: transparent; } } &--drip { border: 1px solid ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"var(--color-border-alpha-strong)"}; background-color: transparent; opacity: 1; outline-offset: 2px; border-radius: 0.75rem; } } &:focus-within { .filepond { &--drip { outline: 2px solid ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"var(--color-item-primary-primary)"}; } } } `;function eh({variant:n="default",...e}){return K.jsx(tm,{$invalid:n==="failure",...e})}eh.displayName="FilepondContainer";var nm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rm=nm.reduce((n,e)=>{const t=yd.createSlot(`Primitive.${e}`),r=L.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...n,[e]:r}},{}),im="Label",th=L.forwardRef((n,e)=>K.jsx(rm.label,{...n,ref:e,onMouseDown:t=>{var i;t.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));th.displayName=im;var nh=th;const sm=El.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ol=L.forwardRef(({className:n,...e},t)=>K.jsx(nh,{ref:t,className:Be.cn(sm(),n),...e}));Ol.displayName=nh.displayName;const am=Al.FormProvider,rh=L.createContext({}),om=({...n})=>K.jsx(rh.Provider,{value:{name:n.name},children:K.jsx(Al.Controller,{...n})}),Ii=()=>{const n=L.useContext(rh),e=L.useContext(ih),{getFieldState:t,formState:r}=Al.useFormContext(),i=t(n.name,r);if(!n)throw new Error("useFormField should be used within <FormField>");const{id:s}=e;return{id:s,name:n.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...i}},ih=L.createContext({}),sh=L.forwardRef(({className:n,...e},t)=>{const r=L.useId();return K.jsx(ih.Provider,{value:{id:r},children:K.jsx("div",{ref:t,className:Be.cn("relative space-y-2",n),...e})})});sh.displayName="FormItem";const ah=L.forwardRef(({className:n,...e},t)=>{const{error:r,formItemId:i}=Ii();return K.jsx(Ol,{ref:t,className:Be.cn("!text-body-xs-medium",n,r&&"text-destructive"),htmlFor:i,...e})});ah.displayName="FormLabel";const oh=L.forwardRef(({...n},e)=>{const{error:t,formItemId:r,formDescriptionId:i,formMessageId:s}=Ii();return K.jsx(yd.Slot,{ref:e,id:r,"aria-describedby":t?`${i} ${s}`:`${i}`,"aria-invalid":!!t,...n})});oh.displayName="FormControl";const lh=L.forwardRef(({className:n,...e},t)=>{const{formDescriptionId:r}=Ii();return K.jsx("p",{ref:t,id:r,className:Be.cn("text-muted-foreground text-sm",n),...e})});lh.displayName="FormDescription";const uh=L.forwardRef(({className:n,children:e,...t},r)=>{const{error:i,fo