UNPKG

dgz-ui

Version:

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

64 lines (46 loc) 159 kB
"use strict";const B=require("./jsx-runtime-DUiatUiq.cjs"),U=require("react"),gt=require("./index-t1JFNXJ1.cjs"),Ts=require("./index-DcWZbXs6.cjs"),Bt=require("./index-Ch6ABCiC.cjs"),Rs=require("./index-C1ZpNc2P.cjs"),ys=require("./select-Cr1jHq5P.cjs"),Ss=require("./index-BMPRo8_U.cjs"),at=require("./index-CMmIsz5H.cjs"),Ut=require("./index-DxEITWU9.cjs"),Se=require("./utils-C1Nf1RtL.cjs"),Os=require("./index-DQ3cz9n7.cjs"),Eo=require("./button-Dz5atwuT.cjs");function ho(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=ho(U);var zt="Checkbox",[go,ff]=Ts.createContextScope(zt),[_o,kn]=go(zt);function Io(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:o,form:i,name:l,onCheckedChange:a,required:u,value:c="on",internal_do_not_use_render:d}=e,[p,m]=Rs.useControllableState({prop:n,defaultProp:s??!1,onChange:a,caller:zt}),[f,E]=k.useState(null),[T,h]=k.useState(null),_=k.useRef(!1),R=f?!!i||!!f.closest("form"):!0,y={checked:p,disabled:o,setChecked:m,control:f,setControl:E,name:l,form:i,value:c,hasConsumerStoppedPropagationRef:_,required:u,defaultChecked:Le(s)?!1:s,isFormControl:R,bubbleInput:T,setBubbleInput:h};return B.jsxRuntimeExports.jsx(_o,{scope:t,...y,children:To(d)?d(y):r})}var bs="CheckboxTrigger",Ds=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:o,value:i,disabled:l,checked:a,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:f}=kn(bs,e),E=gt.useComposedRefs(s,c),T=k.useRef(a);return k.useEffect(()=>{const h=o==null?void 0:o.form;if(h){const _=()=>d(T.current);return h.addEventListener("reset",_),()=>h.removeEventListener("reset",_)}},[o,d]),B.jsxRuntimeExports.jsx(at.Primitive.button,{type:"button",role:"checkbox","aria-checked":Le(a)?"mixed":a,"aria-required":u,"data-state":ws(a),"data-disabled":l?"":void 0,disabled:l,value:i,...r,ref:E,onKeyDown:Bt.composeEventHandlers(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:Bt.composeEventHandlers(n,h=>{d(_=>Le(_)?!0:!_),f&&m&&(p.current=h.isPropagationStopped(),p.current||h.stopPropagation())})})});Ds.displayName=bs;var Vn=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:o,required:i,disabled:l,value:a,onCheckedChange:u,form:c,...d}=e;return B.jsxRuntimeExports.jsx(Io,{__scopeCheckbox:n,checked:s,defaultChecked:o,disabled:l,required:i,onCheckedChange:u,name:r,form:c,value:a,internal_do_not_use_render:({isFormControl:p})=>B.jsxRuntimeExports.jsxs(B.jsxRuntimeExports.Fragment,{children:[B.jsxRuntimeExports.jsx(Ds,{...d,ref:t,__scopeCheckbox:n}),p&&B.jsxRuntimeExports.jsx(Cs,{__scopeCheckbox:n})]})})});Vn.displayName=zt;var vs="CheckboxIndicator",As=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,o=kn(vs,n);return B.jsxRuntimeExports.jsx(Bt.Presence,{present:r||Le(o.checked)||o.checked===!0,children:B.jsxRuntimeExports.jsx(at.Primitive.span,{"data-state":ws(o.checked),"data-disabled":o.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});As.displayName=vs;var Ps="CheckboxBubbleInput",Cs=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:o,defaultChecked:i,required:l,disabled:a,name:u,value:c,form:d,bubbleInput:p,setBubbleInput:m}=kn(Ps,e),f=gt.useComposedRefs(n,m),E=ys.usePrevious(o),T=Ss.useSize(r);k.useEffect(()=>{const _=p;if(!_)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,b=!s.current;if(E!==o&&D){const A=new Event("click",{bubbles:b});_.indeterminate=Le(o),D.call(_,Le(o)?!1:o),_.dispatchEvent(A)}},[p,E,o,s]);const h=k.useRef(Le(o)?!1:o);return B.jsxRuntimeExports.jsx(at.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??h.current,required:l,disabled:a,name:u,value:c,form:d,...t,tabIndex:-1,ref:f,style:{...t.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cs.displayName=Ps;function To(e){return typeof e=="function"}function Le(e){return e==="indeterminate"}function ws(e){return Le(e)?"indeterminate":e?"checked":"unchecked"}const Ls=k.forwardRef(({className:e,...t},n)=>B.jsxRuntimeExports.jsx(Vn,{ref:n,className:Se.cn("peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",e),...t,children:B.jsxRuntimeExports.jsx(As,{className:Se.cn("flex items-center justify-center text-current size-4"),children:t.checked==="indeterminate"?B.jsxRuntimeExports.jsx(Ut.RN,{className:"size-3.5 text-primary mb-0.5 mr-0.5"}):B.jsxRuntimeExports.jsx(Ut.s7,{className:"size-3.5 text-primary mb-0.5 mr-0.5"})})}));Ls.displayName=Vn.displayName;const $n=Os.cva("flex h-10 w-full rounded-lg border border-border-alpha-strong px-3 py-2 dark:bg-transparent file:border-0 placeholder:text-secondary placeholder:text-body-sm-regular focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"focus-visible:ring-item-primary",failure:"focus-visible:ring-item-destructive bg-item-destructive-focus placeholder:text-item-destructive border-item-destructive text-destructive",success:"focus-visible:ring-success bg-success/20 placeholder:text-success/80 border-success text-success"}},defaultVariants:{variant:"default"}}),Ns=k.forwardRef(({className:e,type:t,variant:n,...r},s)=>{const[o,i]=U.useState(!1),[l,a]=U.useState(!1);return U.useEffect(()=>{i(t==="password")},[t]),B.jsxRuntimeExports.jsxs("div",{className:"relative",children:[B.jsxRuntimeExports.jsx("input",{type:l?"text":t,className:Se.cn($n({variant:n}),e,o&&"pr-10"),ref:s,...r}),o&&B.jsxRuntimeExports.jsx(Eo.Button,{type:"button",size:"icon",variant:"tertiary",className:"cursor-pointer absolute top-1 right-1 rounded-md p-2 size-8 !ring-0 !ring-offset-0",onClick:()=>{a(!l)},children:l?B.jsxRuntimeExports.jsx(Ut.Xt,{}):B.jsxRuntimeExports.jsx(Ut.qt,{})})]})});Ns.displayName="Input";var fe=function(){return fe=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},fe.apply(this,arguments)};function et(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Ro(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yo=/^((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|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)-.*))$/,So=Ro(function(e){return yo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),H="-ms-",Et="-moz-",q="-webkit-",Ms="comm",Wt="rule",qn="decl",Oo="@import",xs="@keyframes",bo="@layer",Gs=Math.abs,jn=String.fromCharCode,yn=Object.assign;function Do(e,t){return ne(e,0)^45?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function Fs(e){return e.trim()}function De(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function wt(e,t,n){return e.indexOf(t,n)}function ne(e,t){return e.charCodeAt(t)|0}function tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function Bs(e){return e.length}function mt(e,t){return t.push(e),e}function vo(e,t){return e.map(t).join("")}function lr(e,t){return e.filter(function(n){return!De(n,t)})}var Xt=1,nt=1,Us=0,_e=0,K=0,lt="";function Qt(e,t,n,r,s,o,i,l){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:Xt,column:nt,length:i,return:"",siblings:l}}function we(e,t){return yn(Qt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Qe(e){for(;e.root;)e=we(e.root,{children:[e]});mt(e,e.siblings)}function Ao(){return K}function Po(){return K=_e>0?ne(lt,--_e):0,nt--,K===10&&(nt=1,Xt--),K}function ye(){return K=_e<Us?ne(lt,_e++):0,nt++,K===10&&(nt=1,Xt++),K}function Ue(){return ne(lt,_e)}function Lt(){return _e}function Kt(e,t){return tt(lt,e,t)}function Sn(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 Co(e){return Xt=nt=1,Us=Oe(lt=e),_e=0,[]}function wo(e){return lt="",e}function un(e){return Fs(Kt(_e-1,On(e===91?e+2:e===40?e+1:e)))}function Lo(e){for(;(K=Ue())&&K<33;)ye();return Sn(e)>2||Sn(K)>3?"":" "}function No(e,t){for(;--t&&ye()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return Kt(e,Lt()+(t<6&&Ue()==32&&ye()==32))}function On(e){for(;ye();)switch(K){case e:return _e;case 34:case 39:e!==34&&e!==39&&On(K);break;case 40:e===41&&On(e);break;case 92:ye();break}return _e}function Mo(e,t){for(;ye()&&e+K!==57;)if(e+K===84&&Ue()===47)break;return"/*"+Kt(t,_e-1)+"*"+jn(e===47?e:ye())}function xo(e){for(;!Sn(Ue());)ye();return Kt(e,_e)}function Go(e){return wo(Nt("",null,null,null,[""],e=Co(e),0,[0],e))}function Nt(e,t,n,r,s,o,i,l,a){for(var u=0,c=0,d=i,p=0,m=0,f=0,E=1,T=1,h=1,_=0,R="",y=s,D=o,b=r,A=R;T;)switch(f=_,_=ye()){case 40:if(f!=108&&ne(A,d-1)==58){wt(A+=F(un(_),"&","&\f"),"&\f",Gs(u?l[u-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:A+=un(_);break;case 9:case 10:case 13:case 32:A+=Lo(f);break;case 92:A+=No(Lt()-1,7);continue;case 47:switch(Ue()){case 42:case 47:mt(Fo(Mo(ye(),Lt()),t,n,a),a);break;default:A+="/"}break;case 123*E:l[u++]=Oe(A)*h;case 125*E:case 59:case 0:switch(_){case 0:case 125:T=0;case 59+c:h==-1&&(A=F(A,/\f/g,"")),m>0&&Oe(A)-d&&mt(m>32?ur(A+";",r,n,d-1,a):ur(F(A," ","")+";",r,n,d-2,a),a);break;case 59:A+=";";default:if(mt(b=cr(A,t,n,u,c,s,l,R,y=[],D=[],d,o),o),_===123)if(c===0)Nt(A,t,b,b,y,o,d,l,D);else switch(p===99&&ne(A,3)===110?100:p){case 100:case 108:case 109:case 115:Nt(e,b,b,r&&mt(cr(e,b,b,0,0,s,l,R,s,y=[],d,D),D),s,D,d,l,r?y:D);break;default:Nt(A,b,b,b,[""],D,0,l,D)}}u=c=m=0,E=h=1,R=A="",d=i;break;case 58:d=1+Oe(A),m=f;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&Po()==125)continue}switch(A+=jn(_),_*E){case 38:h=c>0?1:(A+="\f",-1);break;case 44:l[u++]=(Oe(A)-1)*h,h=1;break;case 64:Ue()===45&&(A+=un(ye())),p=Ue(),c=d=Oe(R=A+=xo(Lt())),_++;break;case 45:f===45&&Oe(A)==2&&(E=0)}}return o}function cr(e,t,n,r,s,o,i,l,a,u,c,d){for(var p=s-1,m=s===0?o:[""],f=Bs(m),E=0,T=0,h=0;E<r;++E)for(var _=0,R=tt(e,p+1,p=Gs(T=i[E])),y=e;_<f;++_)(y=Fs(T>0?m[_]+" "+R:F(R,/&\f/g,m[_])))&&(a[h++]=y);return Qt(e,t,n,s===0?Wt:l,a,u,c,d)}function Fo(e,t,n,r){return Qt(e,t,n,Ms,jn(Ao()),tt(e,2,-2),0,r)}function ur(e,t,n,r,s){return Qt(e,t,n,qn,tt(e,0,r),tt(e,r+1,-1),r,s)}function ks(e,t,n){switch(Do(e,t)){case 5103:return q+"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 q+e+e;case 4789:return Et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return q+e+Et+e+H+e+e;case 5936:switch(ne(e,t+11)){case 114:return q+e+H+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return q+e+H+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return q+e+H+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return q+e+H+e+e;case 6165:return q+e+H+"flex-"+e+e;case 5187:return q+e+F(e,/(\w+).+(:[^]+)/,q+"box-$1$2"+H+"flex-$1$2")+e;case 5443:return q+e+H+"flex-item-"+F(e,/flex-|-self/g,"")+(De(e,/flex-|baseline/)?"":H+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return q+e+H+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return q+e+H+F(e,"shrink","negative")+e;case 5292:return q+e+H+F(e,"basis","preferred-size")+e;case 6060:return q+"box-"+F(e,"-grow","")+q+e+H+F(e,"grow","positive")+e;case 4554:return q+F(e,/([^-])(transform)/g,"$1"+q+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+H+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+e+e;case 4200:if(!De(e,/flex-|baseline/))return H+"grid-column-align"+tt(e,t)+e;break;case 2592:case 3360:return H+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,s){return t=s,De(r.props,/grid-\w+-end/)})?~wt(e+(n=n[t].value),"span",0)?e:H+F(e,"-start","")+e+H+"grid-row-span:"+(~wt(n,"span",0)?De(n,/\d+/):+De(n,/\d+/)-+De(e,/\d+/))+";":H+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return De(r.props,/grid-\w+-start/)})?e:H+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,q+"$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(Oe(e)-1-t>6)switch(ne(e,t+1)){case 109:if(ne(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Et+(ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wt(e,"stretch",0)?ks(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,s,o,i,l,a,u){return H+s+":"+o+u+(i?H+s+"-span:"+(l?a:+a-+o)+u:"")+e});case 4949:if(ne(e,t+6)===121)return F(e,":",":"+q)+e;break;case 6444:switch(ne(e,ne(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+q+(ne(e,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+H+"$2box$3")+e;case 100:return F(e,":",":"+H)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function kt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Bo(e,t,n,r){switch(e.type){case bo:if(e.children.length)break;case Oo:case qn:return e.return=e.return||e.value;case Ms:return"";case xs:return e.return=e.value+"{"+kt(e.children,r)+"}";case Wt:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=kt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Uo(e){var t=Bs(e);return function(n,r,s,o){for(var i="",l=0;l<t;l++)i+=e[l](n,r,s,o)||"";return i}}function ko(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vo(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qn:e.return=ks(e.value,e.length,n);return;case xs:return kt([we(e,{value:F(e.value,"@","@"+q)})],r);case Wt:if(e.length)return vo(n=e.props,function(s){switch(De(s,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Qe(we(e,{props:[F(s,/:(read-\w+)/,":"+Et+"$1")]})),Qe(we(e,{props:[s]})),yn(e,{props:lr(n,r)});break;case"::placeholder":Qe(we(e,{props:[F(s,/:(plac\w+)/,":"+q+"input-$1")]})),Qe(we(e,{props:[F(s,/:(plac\w+)/,":"+Et+"$1")]})),Qe(we(e,{props:[F(s,/:(plac\w+)/,H+"input-$1")]})),Qe(we(e,{props:[s]})),yn(e,{props:lr(n,r)});break}return""})}}var $o={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,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},He=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Vs="active",$s="data-styled-version",Zt="6.1.18",Hn=`/*!sc*/ `,Vt=typeof window<"u"&&typeof document<"u",qo=!!(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"),dr=/invalid hook call/i,Rt=new Set,jo=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` 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. `,s=console.error;try{var o=!0;console.error=function(i){for(var l=[],a=1;a<arguments.length;a++)l[a-1]=arguments[a];dr.test(i)?(o=!1,Rt.delete(r)):s.apply(void 0,et([i],l,!1))},U.useRef(),o&&!Rt.has(r)&&(console.warn(r),Rt.add(r))}catch(i){dr.test(i.message)&&Rt.delete(r)}finally{console.error=s}}},Jt=Object.freeze([]),rt=Object.freeze({});function Ho(e,t,n){return n===void 0&&(n=rt),e.theme!==n.theme&&e.theme||t||n.theme}var bn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Yo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zo=/(^-|-$)/g;function fr(e){return e.replace(Yo,"-").replace(zo,"")}var Wo=/(a)(d)/gi,yt=52,pr=function(e){return String.fromCharCode(e+(e>25?39:97))};function Dn(e){var t,n="";for(t=Math.abs(e);t>yt;t=t/yt|0)n=pr(t%yt)+n;return(pr(t%yt)+n).replace(Wo,"$1-$2")}var dn,qs=5381,Me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},js=function(e){return Me(qs,e)};function Xo(e){return Dn(js(e)>>>0)}function Hs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function fn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ys=typeof Symbol=="function"&&Symbol.for,zs=Ys?Symbol.for("react.memo"):60115,Qo=Ys?Symbol.for("react.forward_ref"):60112,Ko={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ws={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jo=((dn={})[Qo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dn[zs]=Ws,dn);function mr(e){return("type"in(t=e)&&t.type.$$typeof)===zs?Ws:"$$typeof"in e?Jo[e.$$typeof]:Ko;var t}var ea=Object.defineProperty,ta=Object.getOwnPropertyNames,Er=Object.getOwnPropertySymbols,na=Object.getOwnPropertyDescriptor,ra=Object.getPrototypeOf,hr=Object.prototype;function Xs(e,t,n){if(typeof t!="string"){if(hr){var r=ra(t);r&&r!==hr&&Xs(e,r,n)}var s=ta(t);Er&&(s=s.concat(Er(t)));for(var o=mr(e),i=mr(t),l=0;l<s.length;++l){var a=s[l];if(!(a in Zo||n&&n[a]||i&&a in i||o&&a in o)){var u=na(t,a);try{ea(e,a,u)}catch{}}}}return e}function st(e){return typeof e=="function"}function Yn(e){return typeof e=="object"&&"styledComponentId"in e}function xe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function gr(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function it(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function vn(e,t,n){if(n===void 0&&(n=!1),!n&&!it(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=vn(e[r],t[r]);else if(it(t))for(var r in t)e[r]=vn(e[r],t[r]);return e}function zn(e,t){Object.defineProperty(e,"toString",{value:t})}var sa=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 ia(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],s=1,o=e.length;s<o;s+=1)r.push(e[s]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ia.apply(void 0,et([sa[e]],t,!1)).trim())}var oa=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,s=r.length,o=s;t>=o;)if((o<<=1)<0)throw ct(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=s;i<o;i++)this.groupSizes[i]=0}for(var l=this.indexOfGroup(t+1),a=(i=0,n.length);i<a;i++)this.tag.insertRule(l,n[i])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),s=r+n;this.groupSizes[t]=0;for(var o=r;o<s;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],s=this.indexOfGroup(t),o=s+r,i=s;i<o;i++)n+="".concat(this.tag.getRule(i)).concat(Hn);return n},e}(),aa=1<<30,Mt=new Map,$t=new Map,xt=1,St=function(e){if(Mt.has(e))return Mt.get(e);for(;$t.has(xt);)xt++;var t=xt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>aa))throw ct(16,"".concat(t));return Mt.set(e,t),$t.set(t,e),t},la=function(e,t){xt=t+1,Mt.set(e,t),$t.set(t,e)},ca="style[".concat(He,"][").concat($s,'="').concat(Zt,'"]'),ua=new RegExp("^".concat(He,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),da=function(e,t,n){for(var r,s=n.split(","),o=0,i=s.length;o<i;o++)(r=s[o])&&e.registerName(t,r)},fa=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Hn),s=[],o=0,i=r.length;o<i;o++){var l=r[o].trim();if(l){var a=l.match(ua);if(a){var u=0|parseInt(a[1],10),c=a[2];u!==0&&(la(c,u),da(e,c,a[3]),e.getTag().insertRules(u,s)),s.length=0}else s.push(l)}}},_r=function(e){for(var t=document.querySelectorAll(ca),n=0,r=t.length;n<r;n++){var s=t[n];s&&s.getAttribute(He)!==Vs&&(fa(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function pa(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Qs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),s=function(l){var a=Array.from(l.querySelectorAll("style[".concat(He,"]")));return a[a.length-1]}(n),o=s!==void 0?s.nextSibling:null;r.setAttribute(He,Vs),r.setAttribute($s,Zt);var i=pa();return i&&r.setAttribute("nonce",i),n.insertBefore(r,o),r},ma=function(){function e(t){this.element=Qs(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,s=0,o=r.length;s<o;s++){var i=r[s];if(i.ownerNode===n)return i}throw ct(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Ea=function(){function e(t){this.element=Qs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),ha=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Ir=Vt,ga={isServer:!Vt,useCSSOMInjection:!qo},Ks=function(){function e(t,n,r){t===void 0&&(t=rt),n===void 0&&(n={});var s=this;this.options=fe(fe({},ga),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Vt&&Ir&&(Ir=!1,_r(this)),zn(this,function(){return function(o){for(var i=o.getTag(),l=i.length,a="",u=function(d){var p=function(h){return $t.get(h)}(d);if(p===void 0)return"continue";var m=o.names.get(p),f=i.getGroup(d);if(m===void 0||!m.size||f.length===0)return"continue";var E="".concat(He,".g").concat(d,'[id="').concat(p,'"]'),T="";m!==void 0&&m.forEach(function(h){h.length>0&&(T+="".concat(h,","))}),a+="".concat(f).concat(E,'{content:"').concat(T,'"}').concat(Hn)},c=0;c<l;c++)u(c);return a}(s)})}return e.registerId=function(t){return St(t)},e.prototype.rehydrate=function(){!this.server&&Vt&&_r(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(fe(fe({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,s=n.target;return n.isServer?new ha(s):r?new ma(s):new Ea(s)}(this.options),new oa(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(St(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(St(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(St(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_a=/&/g,Ia=/^\s*\/\/.*$/gm;function Zs(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Zs(n.children,t)),n})}function Ta(e){var t,n,r,s=rt,o=s.options,i=o===void 0?rt:o,l=s.plugins,a=l===void 0?Jt:l,u=function(p,m,f){return f.startsWith(n)&&f.endsWith(n)&&f.replaceAll(n,"").length>0?".".concat(t):p},c=a.slice();c.push(function(p){p.type===Wt&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(_a,n).replace(r,u))}),i.prefix&&c.push(Vo),c.push(Bo);var d=function(p,m,f,E){m===void 0&&(m=""),f===void 0&&(f=""),E===void 0&&(E="&"),t=E,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var T=p.replace(Ia,""),h=Go(f||m?"".concat(f," ").concat(m," { ").concat(T," }"):T);i.namespace&&(h=Zs(h,i.namespace));var _=[];return kt(h,Uo(c.concat(ko(function(R){return _.push(R)})))),_};return d.hash=a.length?a.reduce(function(p,m){return m.name||ct(15),Me(p,m.name)},qs).toString():"",d}var Ra=new Ks,An=Ta(),Js=U.createContext({shouldForwardProp:void 0,styleSheet:Ra,stylis:An});Js.Consumer;U.createContext(void 0);function Tr(){return U.useContext(Js)}var Rr=function(){function e(t,n){var r=this;this.inject=function(s,o){o===void 0&&(o=An);var i=r.name+o.hash;s.hasNameForId(r.id,i)||s.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,zn(this,function(){throw ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=An),this.name+t.hash},e}(),ya=function(e){return e>="A"&&e<="Z"};function yr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ya(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ei=function(e){return e==null||e===!1||e===""},ti=function(e){var t,n,r=[];for(var s in e){var o=e[s];e.hasOwnProperty(s)&&!ei(o)&&(Array.isArray(o)&&o.isCss||st(o)?r.push("".concat(yr(s),":"),o,";"):it(o)?r.push.apply(r,et(et(["".concat(s," {")],ti(o),!1),["}"],!1)):r.push("".concat(yr(s),": ").concat((t=s,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in $o||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ke(e,t,n,r){if(ei(e))return[];if(Yn(e))return[".".concat(e.styledComponentId)];if(st(e)){if(!st(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof Rr||it(s)||s===null||console.error("".concat(Hs(e)," 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.")),ke(s,t,n,r)}var o;return e instanceof Rr?n?(e.inject(n,r),[e.getName(r)]):[e]:it(e)?ti(e):Array.isArray(e)?Array.prototype.concat.apply(Jt,e.map(function(i){return ke(i,t,n,r)})):[e.toString()]}function Sa(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(st(n)&&!Yn(n))return!1}return!0}var Oa=js(Zt),ba=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Sa(t),this.componentId=n,this.baseHash=Me(Oa,n),this.baseStyle=r,Ks.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))s=xe(s,this.staticRulesId);else{var o=gr(ke(this.rules,t,n,r)),i=Dn(Me(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,i)){var l=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,l)}s=xe(s,i),this.staticRulesId=i}else{for(var a=Me(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var d=this.rules[c];if(typeof d=="string")u+=d,process.env.NODE_ENV!=="production"&&(a=Me(a,d));else if(d){var p=gr(ke(d,t,n,r));a=Me(a,p+c),u+=p}}if(u){var m=Dn(a>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(u,".".concat(m),void 0,this.componentId)),s=xe(s,m)}}return s},e}(),ni=U.createContext(void 0);ni.Consumer;var pn={},Sr=new Set;function Da(e,t,n){var r=Yn(e),s=e,o=!fn(e),i=t.attrs,l=i===void 0?Jt:i,a=t.componentId,u=a===void 0?function(y,D){var b=typeof y!="string"?"sc":fr(y);pn[b]=(pn[b]||0)+1;var A="".concat(b,"-").concat(Xo(Zt+b+pn[b]));return D?"".concat(D,"-").concat(A):A}(t.displayName,t.parentComponentId):a,c=t.displayName,d=c===void 0?function(y){return fn(y)?"styled.".concat(y):"Styled(".concat(Hs(y),")")}(e):c,p=t.displayName&&t.componentId?"".concat(fr(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&s.attrs?s.attrs.concat(l).filter(Boolean):l,f=t.shouldForwardProp;if(r&&s.shouldForwardProp){var E=s.shouldForwardProp;if(t.shouldForwardProp){var T=t.shouldForwardProp;f=function(y,D){return E(y,D)&&T(y,D)}}else f=E}var h=new ba(n,p,r?s.componentStyle:void 0);function _(y,D){return function(b,A,v){var C=b.attrs,V=b.componentStyle,L=b.defaultProps,x=b.foldedComponentIds,Q=b.styledComponentId,S=b.target,$=U.useContext(ni),I=Tr(),O=b.shouldForwardProp||I.shouldForwardProp;process.env.NODE_ENV!=="production"&&U.useDebugValue(Q);var w=Ho(A,$,L)||rt,P=function(Xe,G,z){for(var ie,ce=fe(fe({},G),{className:void 0,theme:z}),ee=0;ee<Xe.length;ee+=1){var be=st(ie=Xe[ee])?ie(ce):ie;for(var Pe in be)ce[Pe]=Pe==="className"?xe(ce[Pe],be[Pe]):Pe==="style"?fe(fe({},ce[Pe]),be[Pe]):be[Pe]}return G.className&&(ce.className=xe(ce.className,G.className)),ce}(C,A,w),j=P.as||S,N={};for(var se in P)P[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&P.theme===w||(se==="forwardedAs"?N.as=P.forwardedAs:O&&!O(se,j)||(N[se]=P[se],O||process.env.NODE_ENV!=="development"||So(se)||Sr.has(se)||!bn.has(j)||(Sr.add(se),console.warn('styled-components: it looks like an unknown prop "'.concat(se,'" 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 We=function(Xe,G){var z=Tr(),ie=Xe.generateAndInjectStyles(G,z.styleSheet,z.stylis);return process.env.NODE_ENV!=="production"&&U.useDebugValue(ie),ie}(V,P);process.env.NODE_ENV!=="production"&&b.warnTooManyClasses&&b.warnTooManyClasses(We);var me=xe(x,Q);return We&&(me+=" "+We),P.className&&(me+=" "+P.className),N[fn(j)&&!bn.has(j)?"class":"className"]=me,v&&(N.ref=v),U.createElement(j,N)}(R,y,D)}_.displayName=d;var R=U.forwardRef(_);return R.attrs=m,R.componentStyle=h,R.displayName=d,R.shouldForwardProp=f,R.foldedComponentIds=r?xe(s.foldedComponentIds,s.styledComponentId):"",R.styledComponentId=p,R.target=r?s.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?function(D){for(var b=[],A=1;A<arguments.length;A++)b[A-1]=arguments[A];for(var v=0,C=b;v<C.length;v++)vn(D,C[v],!0);return D}({},s.defaultProps,y):y}}),process.env.NODE_ENV!=="production"&&(jo(d,p),R.warnTooManyClasses=function(y,D){var b={},A=!1;return function(v){if(!A&&(b[v]=!0,Object.keys(b).length>=200)){var C=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(y).concat(C,`. `)+`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 />`),A=!0,b={}}}}(d,p)),zn(R,function(){return".".concat(R.styledComponentId)}),o&&Xs(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function Or(e,t){for(var n=[e[0]],r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}var br=function(e){return Object.assign(e,{isCss:!0})};function va(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(st(e)||it(e))return br(ke(Or(Jt,et([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ke(r):br(ke(Or(r,t)))}function Pn(e,t,n){if(n===void 0&&(n=rt),!t)throw ct(1,t);var r=function(s){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,va.apply(void 0,et([s],o,!1)))};return r.attrs=function(s){return Pn(e,t,fe(fe({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)}))},r.withConfig=function(s){return Pn(e,t,fe(fe({},n),s))},r}var ri=function(e){return Pn(Da,e)},si=ri;bn.forEach(function(e){si[e]=ri(e)});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 Ot="__sc-".concat(He,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ot]||(window[Ot]=0),window[Ot]===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://s-c.sh/2BAXzed for more info.`),window[Ot]+=1);/*! * FilePond 4.32.7 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const Aa=e=>e instanceof HTMLElement,Pa=(e,t=[],n=[])=>{const r={...e},s=[],o=[],i=()=>({...r}),l=()=>{const f=[...s];return s.length=0,f},a=()=>{const f=[...o];o.length=0,f.forEach(({type:E,data:T})=>{u(E,T)})},u=(f,E,T)=>{if(T&&!document.hidden){o.push({type:f,data:E});return}m[f]&&m[f](E),s.push({type:f,data:E})},c=(f,...E)=>p[f]?p[f](...E):null,d={getState:i,processActionQueue:l,processDispatchQueue:a,dispatch:u,query:c};let p={};t.forEach(f=>{p={...f(r),...p}});let m={};return n.forEach(f=>{m={...f(u,c,r),...m}}),d},Ca=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},Y=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},Ne=e=>{const t={};return Y(e,n=>{Ca(t,n,e[n])}),t},J=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},wa="http://www.w3.org/2000/svg",La=["svg","path"],Dr=e=>La.includes(e),qt=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const r=Dr(e)?document.createElementNS(wa,e):document.createElement(e);return t&&(Dr(e)?J(r,"class",t):r.className=t),Y(n,(s,o)=>{J(r,s,o)}),r},Na=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},Ma=(e,t)=>(n,r)=>(typeof r<"u"?t.splice(r,0,n):t.push(n),n),xa=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),Ga=typeof window<"u"&&typeof window.document<"u",ii=()=>Ga,Fa=ii()?qt("svg"):{},Ba="children"in Fa?e=>e.children.length:e=>e.childNodes.length,oi=(e,t,n,r)=>{const s=n[0]||e.left,o=n[1]||e.top,i=s+e.width,l=o+e.height*(r[1]||1),a={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:s,top:o,right:i,bottom:l}};return t.filter(u=>!u.isRectIgnored()).map(u=>u.rect).forEach(u=>{vr(a.inner,{...u.inner}),vr(a.outer,{...u.outer})}),Ar(a.inner),a.outer.bottom+=a.element.marginBottom,a.outer.right+=a.element.marginRight,Ar(a.outer),a},vr=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},Ar=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},Ge=e=>typeof e=="number",Ua=(e,t,n,r=.001)=>Math.abs(e-t)<r&&Math.abs(n)<r,ka=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let r=null,s=null,o=0,i=!1;const u=Ne({interpolate:(c,d)=>{if(i)return;if(!(Ge(r)&&Ge(s))){i=!0,o=0;return}const p=-(s-r)*e;o+=p/n,s+=o,o*=t,Ua(s,r,o)||d?(s=r,o=0,i=!0,u.onupdate(s),u.oncomplete(s)):u.onupdate(s)},target:{set:c=>{if(Ge(c)&&!Ge(s)&&(s=c),r===null&&(r=c,s=c),r=c,s===r||typeof r>"u"){i=!0,o=0,u.onupdate(s),u.oncomplete(s);return}i=!1},get:()=>r},resting:{get:()=>i},onupdate:c=>{},oncomplete:c=>{}});return u},Va=e=>e<.5?2*e*e:-1+(4-2*e)*e,$a=({duration:e=500,easing:t=Va,delay:n=0}={})=>{let r=null,s,o,i=!0,l=!1,a=null;const c=Ne({interpolate:(d,p)=>{i||a===null||(r===null&&(r=d),!(d-r<n)&&(s=d-r-n,s>=e||p?(s=1,o=l?0:1,c.onupdate(o*a),c.oncomplete(o*a),i=!0):(o=s/e,c.onupdate((s>=0?t(l?1-o:o):0)*a))))},target:{get:()=>l?0:a,set:d=>{if(a===null){a=d,c.onupdate(d),c.oncomplete(d);return}d<a?(a=1,l=!0):(l=!1,a=d),i=!1,r=null}},resting:{get:()=>i},onupdate:d=>{},oncomplete:d=>{}});return c},Pr={spring:ka,tween:$a},qa=(e,t,n)=>{const r=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,s=typeof r=="string"?r:r.type,o=typeof r=="object"?{...r}:{};return Pr[s]?Pr[s](o):null},Wn=(e,t,n,r=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(s=>{e.forEach(o=>{let i=o,l=()=>n[o],a=u=>n[o]=u;typeof o=="object"&&(i=o.key,l=o.getter||l,a=o.setter||a),!(s[i]&&!r)&&(s[i]={get:l,set:a})})})},ja=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r})=>{const s={...t},o=[];return Y(e,(i,l)=>{const a=qa(l);if(!a)return;a.onupdate=c=>{t[i]=c},a.target=s[i],Wn([{key:i,setter:c=>{a.target!==c&&(a.target=c)},getter:()=>t[i]}],[n,r],t,!0),o.push(a)}),{write:i=>{let l=document.hidden,a=!0;return o.forEach(u=>{u.resting||(a=!1),u.interpolate(i,l)}),a},destroy:()=>{}}},Ha=e=>(t,n)=>{e.addEventListener(t,n)},Ya=e=>(t,n)=>{e.removeEventListener(t,n)},za=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,viewState:s,view:o})=>{const i=[],l=Ha(o.element),a=Ya(o.element);return r.on=(u,c)=>{i.push({type:u,fn:c}),l(u,c)},r.off=(u,c)=>{i.splice(i.findIndex(d=>d.type===u&&d.fn===c),1),a(u,c)},{write:()=>!0,destroy:()=>{i.forEach(u=>{a(u.type,u.fn)})}}},Wa=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{Wn(e,n,t)},oe=e=>e!=null,Xa={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},Qa=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,view:s})=>{const o={...t},i={};Wn(e,[n,r],t);const l=()=>[t.translateX||0,t.translateY||0],a=()=>[t.scaleX||0,t.scaleY||0],u=()=>s.rect?oi(s.rect,s.childViews,l(),a()):null;return n.rect={get:u},r.rect={get:u},e.forEach(c=>{t[c]=typeof o[c]>"u"?Xa[c]:o[c]}),{write:()=>{if(Ka(i,t))return Za(s.element,t),Object.assign(i,{...t}),!0},destroy:()=>{}}},Ka=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},Za=(e,{opacity:t,perspective:n,translateX:r,translateY:s,scaleX:o,scaleY:i,rotateX:l,rotateY:a,rotateZ:u,originX:c,originY:d,width:p,height:m})=>{let f="",E="";(oe(c)||oe(d))&&(E+=`transform-origin: ${c||0}px ${d||0}px;`),oe(n)&&(f+=`perspective(${n}px) `),(oe(r)||oe(s))&&(f+=`translate3d(${r||0}px, ${s||0}px, 0) `),(oe(o)||oe(i))&&(f+=`scale3d(${oe(o)?o:1}, ${oe(i)?i:1}, 1) `),oe(u)&&(f+=`rotateZ(${u}rad) `),oe(l)&&(f+=`rotateX(${l}rad) `),oe(a)&&(f+=`rotateY(${a}rad) `),f.length&&(E+=`transform:${f};`),oe(t)&&(E+=`opacity:${t};`,t===0&&(E+="visibility:hidden;"),t<1&&(E+="pointer-events:none;")),oe(m)&&(E+=`height:${m}px;`),oe(p)&&(E+=`width:${p}px;`);const T=e.elementCurrentStyle||"";(E.length!==T.length||E!==T)&&(e.style.cssText=E,e.elementCurrentStyle=E)},Ja={styles:Qa,listeners:za,animations:ja,apis:Wa},Cr=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=p