diff --git a/assets/Color-F6OSRLHC-Bm1wgjDL.js b/assets/Color-F6OSRLHC-DgeWau0o.js similarity index 99% rename from assets/Color-F6OSRLHC-Bm1wgjDL.js rename to assets/Color-F6OSRLHC-DgeWau0o.js index 3d41a6b9..8f6b41c0 100644 --- a/assets/Color-F6OSRLHC-Bm1wgjDL.js +++ b/assets/Color-F6OSRLHC-DgeWau0o.js @@ -1 +1 @@ -import{ae as ce,af as E,a2 as Y,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as H}from"./DocsRenderer-CFRXHY34-CGOvjbl8.js";import{R as m,r as p}from"./index-DRjF_FHU.js";import"./iframe-DXJOTyWR.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BvEl7W6R.js";import"./index-D-8MO0q_.js";import"./index-CidnEmUr.js";import"./index-DrFu-skq.js";import"./react-18-BZ4hdgop.js";var me=H({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),J=H({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=i;for(let e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),u=Math.max(t,r,a),s=u-o,f,g;u===o?f=0:t===u?f=(r-a)/s:r===u?f=2+(a-t)/s:a===u&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+u)/2;return u===o?g=0:b<=.5?g=s/(u+o):g=s/(2-u-o),[f,g*100,b*100]},i.rgb.hsv=function(e){let t,r,a,o,u,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(k){return(b-k)/6/y+1/2};return y===0?(o=0,u=0):(u=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,u*100,b*100]},i.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=i.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,u*100,a*100]},i.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),u=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[u*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let u=c[o],s=d(e,u);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,u=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,u*100,s*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let u=116*a-16,s=500*(r-a),f=200*(a-o);return[u,s,f]},i.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,u,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)u=t+1/3*-(b-1),u<0&&u++,u>1&&u--,6*u<1?s=f+(o-f)*6*u:2*u<1?s=o:3*u<2?s=f+(o-f)*(2/3-u)*6:s=f,g[b]=s*255;return g},i.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,u=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=u<=1?u:2-u;let s=(a+r)/2,f=a===0?2*o/(u+o):2*r/(a+r);return[t,f*100,s*100]},i.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,u=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*u),g=255*a*(1-r*(1-u));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},i.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),u,s;s=(2-r)*a;let f=(2-r)*o;return u=r*o,u/=f<=1?f:2-f,u=u||0,s/=2,[t,u*100,s*100]},i.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,u;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;u=6*t-s,s&1&&(u=1-u);let g=r+u*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},i.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,u=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[u*255,s*255,f*255]},i.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,u,s;return o=t*3.2406+r*-1.5372+a*-.4986,u=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),u=Math.min(Math.max(0,u),1),s=Math.min(Math.max(0,s),1),[o*255,u*255,s*255]},i.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,u=500*(t-r),s=200*(r-a);return[o,u,s]},i.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,u,s;u=(t+16)/116,o=r/500+u,s=u-a/200;let f=u**3,g=o**3,b=s**3;return u=f>.008856?f:(u-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,u*=100,s*=108.883,[o,u,s]},i.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let u=Math.sqrt(r*r+a*a);return[t,u,o]},i.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),u=r*Math.sin(a);return[t,o,u]},i.rgb.ansi16=function(e,t=null){let[r,a,o]=e,u=t===null?i.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return u===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,u=(t>>2&1)*r*255;return[a,o,u]},i.ansi256.rgb=function(e){if(e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,u=a>>8&255,s=a&255;return[o,u,s]},i.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),u=Math.min(Math.min(t,r),a),s=o-u,f,g;return s<1?f=u/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},i.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},i.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},i.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],u=t%1*6,s=u%1,f=1-s,g=0;switch(Math.floor(u)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},i.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},i.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},i.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},i.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=H({"../../node_modules/color-convert/route.js"(n,l){var c=J();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=u),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let u=o[0];if(u==null)return u;u.length>1&&(o=u);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{i[r]={},Object.defineProperty(i[r],"channels",{value:c[r].channels}),Object.defineProperty(i[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let u=a[o];i[r][o]=t(u),i[r][o].raw=e(u)})}),l.exports=i}}),_=ce(pe());function M(){return(M=Object.assign||function(n){for(var l=1;l=0||(i[c]=n[c]);return i}function P(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var $=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&i.current?d(G(i.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,k=L(i.current),w=y?k.addEventListener:k.removeEventListener;w(v?"touchmove":"mousemove",f),w(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,k=i.current;if(k&&(F(v),!function(q,se){return se&&!N(q)}(v,r.current)&&k)){if(N(v)){r.current=!0;var w=v.changedTouches||[];w.length&&(t.current=w[0].identifier)}k.focus(),d(G(k,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],u=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",M({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:i,onKeyDown:u,tabIndex:0,role:"slider"}))}),O=function(n){return n.filter(Boolean).join(" ")},V=function(n){var l=n.color,c=n.left,h=n.top,i=h===void 0?.5:h,d=O(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*i+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return ee(B(n))},B=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(Z(n))},Q=function(n){var l=n.s,c=n.v,h=n.a,i=(200-l)*c/100;return{h:x(n.h),s:x(i>0&&i<200?l*c/100/(i<=100?i:200-i)*100:0),l:x(i/2),a:x(h,2)}},T=function(n){var l=Q(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},z=function(n){var l=Q(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},Z=function(n){var l=n.h,c=n.s,h=n.v,i=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(i,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?ee({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},S=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,i=n.a,d=i<1?S(x(255*i)):"";return"#"+S(l)+S(c)+S(h)+d},ee=function(n){var l=n.r,c=n.g,h=n.b,i=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:i}},re=m.memo(function(n){var l=n.hue,c=n.onChange,h=O(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(D,{onMove:function(i){c({h:360*i.left})},onKey:function(i){c({h:$(l+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(V,{className:"react-colorful__hue-pointer",left:l/360,color:T({h:l,s:100,v:100,a:1})})))}),te=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:T({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(D,{onMove:function(i){c({s:100*i.left,v:100-100*i.top})},onKey:function(i){c({s:$(l.s+100*i.left,0,100),v:$(l.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(V,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:T(l)})))}),ne=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},ae=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ne(B(n),B(l))};function oe(n,l,c){var h=P(c),i=p.useState(function(){return n.toHsva(l)}),d=i[0],e=i[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ne(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},W=new Map,le=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!W.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,W.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,i=h===void 0?c.defaultColor:h,d=n.onChange,e=X(n,["className","colorModel","color","onChange"]),t=p.useRef(null);le(t);var r=oe(c,i,d),a=r[0],o=r[1],u=O(["react-colorful",l]);return m.createElement("div",M({},e,{ref:t,className:u}),m.createElement(te,{hsva:a,onChange:o}),m.createElement(re,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,M({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,i={backgroundImage:"linear-gradient(90deg, "+z(Object.assign({},c,{a:0}))+", "+z(Object.assign({},c,{a:1}))+")"},d=O(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),m.createElement(D,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:$(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(V,{className:"react-colorful__alpha-pointer",left:c.a,color:z(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,i=h===void 0?c.defaultColor:h,d=n.onChange,e=X(n,["className","colorModel","color","onChange"]),t=p.useRef(null);le(t);var r=oe(c,i,d),a=r[0],o=r[1],u=O(["react-colorful",l]);return m.createElement("div",M({},e,{ref:t,className:u}),m.createElement(te,{hsva:a,onChange:o}),m.createElement(re,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:z,equal:ae},He=function(n){return m.createElement(ue,M({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=Z(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:ae},Pe=function(n){return m.createElement(ue,M({},n,{colorModel:qe}))},Le=E.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=E(Y)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Te=E.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ke=E(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),Xe=E.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),De=E.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ve=`url('data:image/svg+xml;charset=utf-8,')`,A=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ve}, linear-gradient(#fff, #fff)`;return m.createElement(De,{...c,style:{...l,backgroundImage:h}})},Ge=E(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=E(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),ie=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(ie||{}),j=Object.values(ie),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,K=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},R={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},U=n=>{let l=n?.match(We);if(!l)return[0,0,0,1];let[,c,h,i,d=1]=l;return[c,h,i,d].map(Number)},C=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=U(n),[o,u,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${u}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=U(n),[o,u,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${u}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),i=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:K.test(n)&&(d=`#${c}`),d.startsWith("#"))l=K.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${i[0]}, ${i[1]}%, ${i[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!l?.valid)return R[c];if(c!=="hex")return l?.[c]||R[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return R.hex}let h=l.hex.match(Ye);if(!h)return K.test(l.hex)?l.hex:R.hex;let[i,d,e]=h[1].split("");return`#${i}${i}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[i,d]=p.useState(()=>C(c)),[e,t]=p.useState(i?.colorSpace||"hex");p.useEffect(()=>{let u=n||"",s=C(u);h(u),d(s),t(s?.colorSpace||"hex")},[n]);let r=p.useMemo(()=>Qe(c,i,e).toLowerCase(),[c,i,e]),a=p.useCallback(u=>{let s=C(u),f=s?.value||u||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let u=j.indexOf(e)+1;u>=j.length&&(u=0),t(j[u]);let s=i?.[j[u]]||"";h(s),l(s)},[i,e,l]);return{value:c,realValue:r,updateValue:a,color:i,colorSpace:e,cycleColorSpace:o}},I=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,i]=p.useState(l?.valid?[l]:[]);p.useEffect(()=>{l===void 0&&i([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?C(t):t.title?{...C(t.color),keyword:t.title}:C(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t?.valid&&(d.some(r=>I(r[c])===I(t[c]))||i(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:i,presetColors:d,startOpen:e=!1,argType:t})=>{let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:u,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],k=!!t?.table?.readonly;return m.createElement(Le,{"aria-readonly":k},m.createElement(Be,{startOpen:e,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Te,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:u,onFocus:h,onBlur:i}),b.length>0&&m.createElement(Xe,null,b.map((w,q)=>m.createElement(Y,{key:`${w.value}-${q}`,hasChrome:!1,tooltip:m.createElement(Ke,{note:w.keyword||w.value})},m.createElement(A,{value:w[f],active:s&&I(w[f])===I(s[f]),onClick:()=>u(w.value)})))))},m.createElement(A,{value:o,style:{margin:4}})),m.createElement(Ge,{id:be(n),value:a,onChange:w=>u(w.target.value),onFocus:w=>w.target.select(),readOnly:k,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},fr=rr;export{rr as ColorControl,fr as default}; +import{ae as ce,af as E,a2 as Y,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as H}from"./DocsRenderer-CFRXHY34-BoUvaZiz.js";import{R as m,r as p}from"./index-DRjF_FHU.js";import"./iframe-Bv-U4SsH.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BvEl7W6R.js";import"./index-D-8MO0q_.js";import"./index-CidnEmUr.js";import"./index-DrFu-skq.js";import"./react-18-BZ4hdgop.js";var me=H({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),J=H({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=i;for(let e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),u=Math.max(t,r,a),s=u-o,f,g;u===o?f=0:t===u?f=(r-a)/s:r===u?f=2+(a-t)/s:a===u&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+u)/2;return u===o?g=0:b<=.5?g=s/(u+o):g=s/(2-u-o),[f,g*100,b*100]},i.rgb.hsv=function(e){let t,r,a,o,u,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(k){return(b-k)/6/y+1/2};return y===0?(o=0,u=0):(u=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,u*100,b*100]},i.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=i.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,u*100,a*100]},i.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),u=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[u*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let u=c[o],s=d(e,u);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,u=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,u*100,s*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let u=116*a-16,s=500*(r-a),f=200*(a-o);return[u,s,f]},i.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,u,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)u=t+1/3*-(b-1),u<0&&u++,u>1&&u--,6*u<1?s=f+(o-f)*6*u:2*u<1?s=o:3*u<2?s=f+(o-f)*(2/3-u)*6:s=f,g[b]=s*255;return g},i.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,u=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=u<=1?u:2-u;let s=(a+r)/2,f=a===0?2*o/(u+o):2*r/(a+r);return[t,f*100,s*100]},i.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,u=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*u),g=255*a*(1-r*(1-u));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},i.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),u,s;s=(2-r)*a;let f=(2-r)*o;return u=r*o,u/=f<=1?f:2-f,u=u||0,s/=2,[t,u*100,s*100]},i.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,u;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;u=6*t-s,s&1&&(u=1-u);let g=r+u*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},i.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,u=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[u*255,s*255,f*255]},i.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,u,s;return o=t*3.2406+r*-1.5372+a*-.4986,u=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),u=Math.min(Math.max(0,u),1),s=Math.min(Math.max(0,s),1),[o*255,u*255,s*255]},i.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,u=500*(t-r),s=200*(r-a);return[o,u,s]},i.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,u,s;u=(t+16)/116,o=r/500+u,s=u-a/200;let f=u**3,g=o**3,b=s**3;return u=f>.008856?f:(u-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,u*=100,s*=108.883,[o,u,s]},i.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let u=Math.sqrt(r*r+a*a);return[t,u,o]},i.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),u=r*Math.sin(a);return[t,o,u]},i.rgb.ansi16=function(e,t=null){let[r,a,o]=e,u=t===null?i.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return u===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,u=(t>>2&1)*r*255;return[a,o,u]},i.ansi256.rgb=function(e){if(e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,u=a>>8&255,s=a&255;return[o,u,s]},i.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),u=Math.min(Math.min(t,r),a),s=o-u,f,g;return s<1?f=u/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},i.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},i.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},i.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],u=t%1*6,s=u%1,f=1-s,g=0;switch(Math.floor(u)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},i.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},i.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},i.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},i.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=H({"../../node_modules/color-convert/route.js"(n,l){var c=J();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=u),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let u=o[0];if(u==null)return u;u.length>1&&(o=u);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{i[r]={},Object.defineProperty(i[r],"channels",{value:c[r].channels}),Object.defineProperty(i[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let u=a[o];i[r][o]=t(u),i[r][o].raw=e(u)})}),l.exports=i}}),_=ce(pe());function M(){return(M=Object.assign||function(n){for(var l=1;l=0||(i[c]=n[c]);return i}function P(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var $=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&i.current?d(G(i.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,k=L(i.current),w=y?k.addEventListener:k.removeEventListener;w(v?"touchmove":"mousemove",f),w(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,k=i.current;if(k&&(F(v),!function(q,se){return se&&!N(q)}(v,r.current)&&k)){if(N(v)){r.current=!0;var w=v.changedTouches||[];w.length&&(t.current=w[0].identifier)}k.focus(),d(G(k,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],u=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",M({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:i,onKeyDown:u,tabIndex:0,role:"slider"}))}),O=function(n){return n.filter(Boolean).join(" ")},V=function(n){var l=n.color,c=n.left,h=n.top,i=h===void 0?.5:h,d=O(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*i+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return ee(B(n))},B=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(Z(n))},Q=function(n){var l=n.s,c=n.v,h=n.a,i=(200-l)*c/100;return{h:x(n.h),s:x(i>0&&i<200?l*c/100/(i<=100?i:200-i)*100:0),l:x(i/2),a:x(h,2)}},T=function(n){var l=Q(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},z=function(n){var l=Q(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},Z=function(n){var l=n.h,c=n.s,h=n.v,i=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(i,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?ee({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},S=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,i=n.a,d=i<1?S(x(255*i)):"";return"#"+S(l)+S(c)+S(h)+d},ee=function(n){var l=n.r,c=n.g,h=n.b,i=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:i}},re=m.memo(function(n){var l=n.hue,c=n.onChange,h=O(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(D,{onMove:function(i){c({h:360*i.left})},onKey:function(i){c({h:$(l+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(V,{className:"react-colorful__hue-pointer",left:l/360,color:T({h:l,s:100,v:100,a:1})})))}),te=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:T({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(D,{onMove:function(i){c({s:100*i.left,v:100-100*i.top})},onKey:function(i){c({s:$(l.s+100*i.left,0,100),v:$(l.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(V,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:T(l)})))}),ne=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},ae=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ne(B(n),B(l))};function oe(n,l,c){var h=P(c),i=p.useState(function(){return n.toHsva(l)}),d=i[0],e=i[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ne(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},W=new Map,le=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!W.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,W.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,i=h===void 0?c.defaultColor:h,d=n.onChange,e=X(n,["className","colorModel","color","onChange"]),t=p.useRef(null);le(t);var r=oe(c,i,d),a=r[0],o=r[1],u=O(["react-colorful",l]);return m.createElement("div",M({},e,{ref:t,className:u}),m.createElement(te,{hsva:a,onChange:o}),m.createElement(re,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,M({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,i={backgroundImage:"linear-gradient(90deg, "+z(Object.assign({},c,{a:0}))+", "+z(Object.assign({},c,{a:1}))+")"},d=O(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),m.createElement(D,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:$(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(V,{className:"react-colorful__alpha-pointer",left:c.a,color:z(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,i=h===void 0?c.defaultColor:h,d=n.onChange,e=X(n,["className","colorModel","color","onChange"]),t=p.useRef(null);le(t);var r=oe(c,i,d),a=r[0],o=r[1],u=O(["react-colorful",l]);return m.createElement("div",M({},e,{ref:t,className:u}),m.createElement(te,{hsva:a,onChange:o}),m.createElement(re,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:z,equal:ae},He=function(n){return m.createElement(ue,M({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=Z(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:ae},Pe=function(n){return m.createElement(ue,M({},n,{colorModel:qe}))},Le=E.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=E(Y)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Te=E.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ke=E(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),Xe=E.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),De=E.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ve=`url('data:image/svg+xml;charset=utf-8,')`,A=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ve}, linear-gradient(#fff, #fff)`;return m.createElement(De,{...c,style:{...l,backgroundImage:h}})},Ge=E(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=E(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),ie=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(ie||{}),j=Object.values(ie),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,K=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},R={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},U=n=>{let l=n?.match(We);if(!l)return[0,0,0,1];let[,c,h,i,d=1]=l;return[c,h,i,d].map(Number)},C=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=U(n),[o,u,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${u}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=U(n),[o,u,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${u}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),i=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:K.test(n)&&(d=`#${c}`),d.startsWith("#"))l=K.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${i[0]}, ${i[1]}%, ${i[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!l?.valid)return R[c];if(c!=="hex")return l?.[c]||R[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return R.hex}let h=l.hex.match(Ye);if(!h)return K.test(l.hex)?l.hex:R.hex;let[i,d,e]=h[1].split("");return`#${i}${i}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[i,d]=p.useState(()=>C(c)),[e,t]=p.useState(i?.colorSpace||"hex");p.useEffect(()=>{let u=n||"",s=C(u);h(u),d(s),t(s?.colorSpace||"hex")},[n]);let r=p.useMemo(()=>Qe(c,i,e).toLowerCase(),[c,i,e]),a=p.useCallback(u=>{let s=C(u),f=s?.value||u||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let u=j.indexOf(e)+1;u>=j.length&&(u=0),t(j[u]);let s=i?.[j[u]]||"";h(s),l(s)},[i,e,l]);return{value:c,realValue:r,updateValue:a,color:i,colorSpace:e,cycleColorSpace:o}},I=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,i]=p.useState(l?.valid?[l]:[]);p.useEffect(()=>{l===void 0&&i([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?C(t):t.title?{...C(t.color),keyword:t.title}:C(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t?.valid&&(d.some(r=>I(r[c])===I(t[c]))||i(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:i,presetColors:d,startOpen:e=!1,argType:t})=>{let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:u,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],k=!!t?.table?.readonly;return m.createElement(Le,{"aria-readonly":k},m.createElement(Be,{startOpen:e,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Te,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:u,onFocus:h,onBlur:i}),b.length>0&&m.createElement(Xe,null,b.map((w,q)=>m.createElement(Y,{key:`${w.value}-${q}`,hasChrome:!1,tooltip:m.createElement(Ke,{note:w.keyword||w.value})},m.createElement(A,{value:w[f],active:s&&I(w[f])===I(s[f]),onClick:()=>u(w.value)})))))},m.createElement(A,{value:o,style:{margin:4}})),m.createElement(Ge,{id:be(n),value:a,onChange:w=>u(w.target.value),onFocus:w=>w.target.select(),readOnly:k,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},fr=rr;export{rr as ColorControl,fr as default}; diff --git a/assets/ContextMenu.stories-CMChPq6P.js b/assets/ContextMenu.stories-9isc27nP.js similarity index 99% rename from assets/ContextMenu.stories-CMChPq6P.js rename to assets/ContextMenu.stories-9isc27nP.js index 22ec206a..773f7704 100644 --- a/assets/ContextMenu.stories-CMChPq6P.js +++ b/assets/ContextMenu.stories-9isc27nP.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as D}from"./user-profile-cqTW1cHH.js";import{N as U,C as L,L as $}from"./notifications-BEKrtwGv.js";import{r as s}from"./index-DRjF_FHU.js";import{c as g}from"./index-CGa_gRws.js";import{P as F}from"./index-Ksfxd92j.js";import{c as R,A as z,C as B,G as q,L as V,I as W,a as H,R as X,b as K,d as Y,S as J,e as Q,f as Z,g as ee,u as te,h as ne,P as oe,D as v}from"./index-Dbt-v4y0.js";import{F as re}from"./FloatingMenu-Cmtm68dq.js";import{c as ae}from"./index-lhGYx47h.js";import{d as se,D as ie,g as ce}from"./DrawerMenu-BNILBemh.js";import{a as ue,M as b}from"./MenuItem-2y-pqdrL.js";import{S as le}from"./Separator-BbJs_Bbv.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";import"./index-BXwbELbV.js";import"./floating-ui.react-CSvGZjCC.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";function de(e,t=[]){let r=[];function n(l,c){const i=s.createContext(c),p=r.length;r=[...r,c];const f=x=>{const{scope:m,children:C,...h}=x,k=m?.[e]?.[p]||i,G=s.useMemo(()=>h,Object.values(h));return o.jsx(k.Provider,{value:G,children:C})};f.displayName=l+"Provider";function u(x,m){const C=m?.[e]?.[p]||i,h=s.useContext(C);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${x}\` must be used within \`${l}\``)}return[f,u]}const a=()=>{const l=r.map(c=>s.createContext(c));return function(i){const p=i?.[e]||l;return s.useMemo(()=>({[`__scope${e}`]:{...i,[e]:p}}),[i,p])}};return a.scopeName=e,[n,pe(a,...t)]}function pe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=n.reduce((i,{useScope:p,scopeName:f})=>{const x=p(l)[`__scope${f}`];return{...i,...x}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var I="ContextMenu",[xe,it]=de(I,[R]),d=R(),[me,y]=xe(I),N=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:a,modal:l=!0}=e,[c,i]=s.useState(!1),p=d(t),f=te(n),u=s.useCallback(x=>{i(x),f(x)},[f]);return o.jsx(me,{scope:t,open:c,onOpenChange:u,modal:l,children:o.jsx(ne,{...p,dir:a,open:c,onOpenChange:u,modal:l,children:r})})};N.displayName=I;var w="ContextMenuTrigger",j=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...a}=e,l=y(w,r),c=d(r),i=s.useRef({x:0,y:0}),p=s.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),f=s.useRef(0),u=s.useCallback(()=>window.clearTimeout(f.current),[]),x=m=>{i.current={x:m.clientX,y:m.clientY},l.onOpenChange(!0)};return s.useEffect(()=>u,[u]),s.useEffect(()=>void(n&&u()),[n,u]),o.jsxs(o.Fragment,{children:[o.jsx(z,{...c,virtualRef:p}),o.jsx(F.span,{"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,...a,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:g(e.onContextMenu,m=>{u(),x(m),m.preventDefault()}),onPointerDown:n?e.onPointerDown:g(e.onPointerDown,_(m=>{u(),f.current=window.setTimeout(()=>x(m),700)})),onPointerMove:n?e.onPointerMove:g(e.onPointerMove,_(u)),onPointerCancel:n?e.onPointerCancel:g(e.onPointerCancel,_(u)),onPointerUp:n?e.onPointerUp:g(e.onPointerUp,_(u))})]})});j.displayName=w;var fe="ContextMenuPortal",A=e=>{const{__scopeContextMenu:t,...r}=e,n=d(t);return o.jsx(oe,{...n,...r})};A.displayName=fe;var E="ContextMenuContent",O=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=y(E,r),l=d(r),c=s.useRef(!1);return o.jsx(B,{...l,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&c.current&&i.preventDefault(),c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!a.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O.displayName=E;var Ce="ContextMenuGroup",he=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(q,{...a,...n,ref:t})});he.displayName=Ce;var ge="ContextMenuLabel",Me=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(V,{...a,...n,ref:t})});Me.displayName=ge;var ve="ContextMenuItem",T=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(W,{...a,...n,ref:t})});T.displayName=ve;var be="ContextMenuCheckboxItem",_e=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(H,{...a,...n,ref:t})});_e.displayName=be;var Se="ContextMenuRadioGroup",Ie=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(X,{...a,...n,ref:t})});Ie.displayName=Se;var Pe="ContextMenuRadioItem",Re=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(K,{...a,...n,ref:t})});Re.displayName=Pe;var ye="ContextMenuItemIndicator",Ne=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Y,{...a,...n,ref:t})});Ne.displayName=ye;var we="ContextMenuSeparator",je=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(J,{...a,...n,ref:t})});je.displayName=we;var Ae="ContextMenuArrow",Ee=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Q,{...a,...n,ref:t})});Ee.displayName=Ae;var Oe="ContextMenuSubTrigger",Te=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Z,{...a,...n,ref:t})});Te.displayName=Oe;var ke="ContextMenuSubContent",Ge=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(ee,{...a,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ge.displayName=ke;function _(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var P=N,De=j,Ue=A,Le=O;const $e=({onSelect:e,children:t})=>o.jsx(T,{onSelect:e??void 0,asChild:!0,children:t}),S=({title:e,onOpenChange:t,trigger:r,hasAccessibleAlternative:n,children:a})=>{const[l,c]=s.useState(!1),i=s.useCallback(C=>{c(C),t?.(C)},[c,t]),p=ce(),f=p==="android"||p==="ios",u=s.useMemo(()=>({MenuItemWrapper:f?null:$e,onOpenChange:i}),[i]),x=o.jsx(ue.Provider,{value:u,children:a}),m=o.jsx(De,{"aria-haspopup":"menu",tabIndex:n?void 0:0,asChild:!0,children:r});return f?o.jsxs(o.Fragment,{children:[o.jsx(P,{onOpenChange:i,children:m}),o.jsx(v.Root,{open:l,onOpenChange:i,children:o.jsxs(v.Portal,{children:[o.jsx(v.Overlay,{className:ae(se.bg)}),o.jsx(v.Content,{asChild:!0,children:o.jsx(ie,{title:e,children:x})})]})})]}):o.jsxs(P,{onOpenChange:i,children:[m,o.jsx(Ue,{children:o.jsx(Le,{asChild:!0,children:o.jsx(re,{title:e,children:x})})})]})};try{S.displayName="ContextMenu",S.__docgenInfo={description:"A menu opened by right-clicking or long-pressing another UI element.",displayName:"ContextMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},onOpenChange:{defaultValue:null,description:"Event handler called when the open state of the menu changes.",name:"onOpenChange",required:!1,type:{name:"((open: boolean) => void)"}},trigger:{defaultValue:null,description:`The trigger that can be right-clicked or long-pressed to open the menu. +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as D}from"./user-profile-cqTW1cHH.js";import{N as U,C as L,L as $}from"./notifications-BEKrtwGv.js";import{r as s}from"./index-DRjF_FHU.js";import{c as g}from"./index-CGa_gRws.js";import{P as F}from"./index-Ksfxd92j.js";import{c as R,A as z,C as B,G as q,L as V,I as W,a as H,R as X,b as K,d as Y,S as J,e as Q,f as Z,g as ee,u as te,h as ne,P as oe,D as v}from"./index-Dbt-v4y0.js";import{F as re}from"./FloatingMenu-Cmtm68dq.js";import{c as ae}from"./index-lhGYx47h.js";import{d as se,D as ie,g as ce}from"./DrawerMenu-BNILBemh.js";import{a as ue,M as b}from"./MenuItem-CHeo3Dqf.js";import{S as le}from"./Separator-BbJs_Bbv.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";import"./index-BXwbELbV.js";import"./floating-ui.react-CSvGZjCC.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";function de(e,t=[]){let r=[];function n(l,c){const i=s.createContext(c),p=r.length;r=[...r,c];const f=x=>{const{scope:m,children:C,...h}=x,k=m?.[e]?.[p]||i,G=s.useMemo(()=>h,Object.values(h));return o.jsx(k.Provider,{value:G,children:C})};f.displayName=l+"Provider";function u(x,m){const C=m?.[e]?.[p]||i,h=s.useContext(C);if(h)return h;if(c!==void 0)return c;throw new Error(`\`${x}\` must be used within \`${l}\``)}return[f,u]}const a=()=>{const l=r.map(c=>s.createContext(c));return function(i){const p=i?.[e]||l;return s.useMemo(()=>({[`__scope${e}`]:{...i,[e]:p}}),[i,p])}};return a.scopeName=e,[n,pe(a,...t)]}function pe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=n.reduce((i,{useScope:p,scopeName:f})=>{const x=p(l)[`__scope${f}`];return{...i,...x}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var I="ContextMenu",[xe,it]=de(I,[R]),d=R(),[me,y]=xe(I),N=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:a,modal:l=!0}=e,[c,i]=s.useState(!1),p=d(t),f=te(n),u=s.useCallback(x=>{i(x),f(x)},[f]);return o.jsx(me,{scope:t,open:c,onOpenChange:u,modal:l,children:o.jsx(ne,{...p,dir:a,open:c,onOpenChange:u,modal:l,children:r})})};N.displayName=I;var w="ContextMenuTrigger",j=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...a}=e,l=y(w,r),c=d(r),i=s.useRef({x:0,y:0}),p=s.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),f=s.useRef(0),u=s.useCallback(()=>window.clearTimeout(f.current),[]),x=m=>{i.current={x:m.clientX,y:m.clientY},l.onOpenChange(!0)};return s.useEffect(()=>u,[u]),s.useEffect(()=>void(n&&u()),[n,u]),o.jsxs(o.Fragment,{children:[o.jsx(z,{...c,virtualRef:p}),o.jsx(F.span,{"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,...a,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:g(e.onContextMenu,m=>{u(),x(m),m.preventDefault()}),onPointerDown:n?e.onPointerDown:g(e.onPointerDown,_(m=>{u(),f.current=window.setTimeout(()=>x(m),700)})),onPointerMove:n?e.onPointerMove:g(e.onPointerMove,_(u)),onPointerCancel:n?e.onPointerCancel:g(e.onPointerCancel,_(u)),onPointerUp:n?e.onPointerUp:g(e.onPointerUp,_(u))})]})});j.displayName=w;var fe="ContextMenuPortal",A=e=>{const{__scopeContextMenu:t,...r}=e,n=d(t);return o.jsx(oe,{...n,...r})};A.displayName=fe;var E="ContextMenuContent",O=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=y(E,r),l=d(r),c=s.useRef(!1);return o.jsx(B,{...l,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),!i.defaultPrevented&&c.current&&i.preventDefault(),c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),!i.defaultPrevented&&!a.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O.displayName=E;var Ce="ContextMenuGroup",he=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(q,{...a,...n,ref:t})});he.displayName=Ce;var ge="ContextMenuLabel",Me=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(V,{...a,...n,ref:t})});Me.displayName=ge;var ve="ContextMenuItem",T=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(W,{...a,...n,ref:t})});T.displayName=ve;var be="ContextMenuCheckboxItem",_e=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(H,{...a,...n,ref:t})});_e.displayName=be;var Se="ContextMenuRadioGroup",Ie=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(X,{...a,...n,ref:t})});Ie.displayName=Se;var Pe="ContextMenuRadioItem",Re=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(K,{...a,...n,ref:t})});Re.displayName=Pe;var ye="ContextMenuItemIndicator",Ne=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Y,{...a,...n,ref:t})});Ne.displayName=ye;var we="ContextMenuSeparator",je=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(J,{...a,...n,ref:t})});je.displayName=we;var Ae="ContextMenuArrow",Ee=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Q,{...a,...n,ref:t})});Ee.displayName=Ae;var Oe="ContextMenuSubTrigger",Te=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(Z,{...a,...n,ref:t})});Te.displayName=Oe;var ke="ContextMenuSubContent",Ge=s.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,a=d(r);return o.jsx(ee,{...a,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ge.displayName=ke;function _(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var P=N,De=j,Ue=A,Le=O;const $e=({onSelect:e,children:t})=>o.jsx(T,{onSelect:e??void 0,asChild:!0,children:t}),S=({title:e,onOpenChange:t,trigger:r,hasAccessibleAlternative:n,children:a})=>{const[l,c]=s.useState(!1),i=s.useCallback(C=>{c(C),t?.(C)},[c,t]),p=ce(),f=p==="android"||p==="ios",u=s.useMemo(()=>({MenuItemWrapper:f?null:$e,onOpenChange:i}),[i]),x=o.jsx(ue.Provider,{value:u,children:a}),m=o.jsx(De,{"aria-haspopup":"menu",tabIndex:n?void 0:0,asChild:!0,children:r});return f?o.jsxs(o.Fragment,{children:[o.jsx(P,{onOpenChange:i,children:m}),o.jsx(v.Root,{open:l,onOpenChange:i,children:o.jsxs(v.Portal,{children:[o.jsx(v.Overlay,{className:ae(se.bg)}),o.jsx(v.Content,{asChild:!0,children:o.jsx(ie,{title:e,children:x})})]})})]}):o.jsxs(P,{onOpenChange:i,children:[m,o.jsx(Ue,{children:o.jsx(Le,{asChild:!0,children:o.jsx(re,{title:e,children:x})})})]})};try{S.displayName="ContextMenu",S.__docgenInfo={description:"A menu opened by right-clicking or long-pressing another UI element.",displayName:"ContextMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},onOpenChange:{defaultValue:null,description:"Event handler called when the open state of the menu changes.",name:"onOpenChange",required:!1,type:{name:"((open: boolean) => void)"}},trigger:{defaultValue:null,description:`The trigger that can be right-clicked or long-pressed to open the menu. This must be a component that accepts a ref and spreads props. https://www.radix-ui.com/primitives/docs/guides/composition`,name:"trigger",required:!0,type:{name:"ReactNode"}},hasAccessibleAlternative:{defaultValue:null,description:`Whether the functionality of this menu is available through some other keyboard-accessible means. Preferably this should be true, because context diff --git a/assets/DocsRenderer-CFRXHY34-CGOvjbl8.js b/assets/DocsRenderer-CFRXHY34-BoUvaZiz.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-CGOvjbl8.js rename to assets/DocsRenderer-CFRXHY34-BoUvaZiz.js index cf8b9175..a2853d08 100644 --- a/assets/DocsRenderer-CFRXHY34-CGOvjbl8.js +++ b/assets/DocsRenderer-CFRXHY34-BoUvaZiz.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-7Fd1365_.js","./iframe-DXJOTyWR.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BvEl7W6R.js","./index-D-8MO0q_.js","./index-CidnEmUr.js","./index-DrFu-skq.js","./react-18-BZ4hdgop.js","./Color-F6OSRLHC-Bm1wgjDL.js","./index-ChEI-nsM.js"])))=>i.map(i=>d[i]); -import{_ as G1}from"./iframe-DXJOTyWR.js";import{r as l,R as y}from"./index-DRjF_FHU.js";import{j as J}from"./jsx-runtime-DR9Q75dM.js";import{r as ds,F as W4}from"./index-BvEl7W6R.js";import{O as G4,P as jx}from"./index-D-8MO0q_.js";import{y as fh,g as bu}from"./index-CidnEmUr.js";import{d as Vx}from"./index-DrFu-skq.js";import{renderElement as Ux,unmountElement as qx}from"./react-18-BZ4hdgop.js";var Wx=Object.create,Y4=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,K4=Object.getOwnPropertyNames,Yx=Object.getPrototypeOf,Kx=Object.prototype.hasOwnProperty,wi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[K4(e)[0]])((t={exports:{}}).exports,t),t.exports},Zx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of K4(t))!Kx.call(e,a)&&a!==r&&Y4(e,a,{get:()=>t[a],enumerable:!(n=Gx(t,a))||n.enumerable});return e},Y1=(e,t,r)=>(r=e!=null?Wx(Yx(e)):{},Zx(t||!e||!e.__esModule?Y4(r,"default",{value:e,enumerable:!0}):r,e));function Jx(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r?.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r?.addEventListener("abort",f,{once:!0}),g}function fV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=Jx(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function Xx(e){return Array.from(new Set(e))}function Qx(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,ps=e=>`set-${e.replace(/\s+/g,"-")}`,lD=Object.create,K1=Object.defineProperty,sD=Object.getOwnPropertyDescriptor,uD=Object.getOwnPropertyNames,cD=Object.getPrototypeOf,dD=Object.prototype.hasOwnProperty,R=(e,t)=>K1(e,"name",{value:t,configurable:!0}),Ei=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),fs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of uD(t))!dD.call(e,a)&&a!==r&&K1(e,a,{get:()=>t[a],enumerable:!(n=sD(t,a))||n.enumerable});return e},Z1=(e,t,r)=>(r=e!=null?lD(cD(e)):{},pD(t||!e||!e.__esModule?K1(r,"default",{value:e,enumerable:!0}):r,e)),fD=fs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,T=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function Z($){return C($)===s}R(Z,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=T,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=Z,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),hD=fs((e,t)=>{t.exports=fD()}),Z4=fs((e,t)=>{var r=hD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Ei=="function"&&Ei;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Ei=="function"&&Ei,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +import{_ as G1}from"./iframe-Bv-U4SsH.js";import{r as l,R as y}from"./index-DRjF_FHU.js";import{j as J}from"./jsx-runtime-DR9Q75dM.js";import{r as ds,F as W4}from"./index-BvEl7W6R.js";import{O as G4,P as jx}from"./index-D-8MO0q_.js";import{y as fh,g as bu}from"./index-CidnEmUr.js";import{d as Vx}from"./index-DrFu-skq.js";import{renderElement as Ux,unmountElement as qx}from"./react-18-BZ4hdgop.js";var Wx=Object.create,Y4=Object.defineProperty,Gx=Object.getOwnPropertyDescriptor,K4=Object.getOwnPropertyNames,Yx=Object.getPrototypeOf,Kx=Object.prototype.hasOwnProperty,wi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[K4(e)[0]])((t={exports:{}}).exports,t),t.exports},Zx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of K4(t))!Kx.call(e,a)&&a!==r&&Y4(e,a,{get:()=>t[a],enumerable:!(n=Gx(t,a))||n.enumerable});return e},Y1=(e,t,r)=>(r=e!=null?Wx(Yx(e)):{},Zx(t||!e||!e.__esModule?Y4(r,"default",{value:e,enumerable:!0}):r,e));function Jx(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r?.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r?.addEventListener("abort",f,{once:!0}),g}function fV(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=Jx(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function Xx(e){return Array.from(new Set(e))}function Qx(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,ps=e=>`set-${e.replace(/\s+/g,"-")}`,lD=Object.create,K1=Object.defineProperty,sD=Object.getOwnPropertyDescriptor,uD=Object.getOwnPropertyNames,cD=Object.getPrototypeOf,dD=Object.prototype.hasOwnProperty,R=(e,t)=>K1(e,"name",{value:t,configurable:!0}),Ei=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),fs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of uD(t))!dD.call(e,a)&&a!==r&&K1(e,a,{get:()=>t[a],enumerable:!(n=sD(t,a))||n.enumerable});return e},Z1=(e,t,r)=>(r=e!=null?lD(cD(e)):{},pD(t||!e||!e.__esModule?K1(r,"default",{value:e,enumerable:!0}):r,e)),fD=fs(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,T=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function Z($){return C($)===s}R(Z,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=T,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=Z,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),hD=fs((e,t)=>{t.exports=fD()}),Z4=fs((e,t)=>{var r=hD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Ei=="function"&&Ei;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Ei=="function"&&Ei,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?we(Sa,--$e):0,ia--,de===10&&(ia=1,gs--),de}R(o3,"prev");function Oe(){return de=$e2||la(de)>3?"":" "}R(i3,"whitespace");function l3(e,t){for(;--t&&Oe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return ka(e,vo()+(t<6&&dt()==32&&Oe()==32))}R(l3,"escaping");function xl(e){for(;Oe();)switch(de){case e:return $e;case 34:case 39:e!==34&&e!==39&&xl(de);break;case 40:e===41&&xl(e);break;case 92:Oe();break}return $e}R(xl,"delimiter");function s3(e,t){for(;Oe()&&e+de!==57&&!(e+de===84&&dt()===47););return"/*"+ka(t,$e-1)+"*"+hs(e===47?e:Oe())}R(s3,"commenter");function u3(e){for(;!la(dt());)Oe();return ka(e,$e)}R(u3,"identifier");function c3(e){return ap(bo("",null,null,null,[""],e=np(e),0,[0],e))}R(c3,"compile");function bo(e,t,r,n,a,o,i,s,c){for(var d=0,p=0,m=i,h=0,f=0,v=0,g=1,w=1,x=1,D=0,E="",b=a,C=o,S=n,k=E;w;)switch(v=D,D=Oe()){case 40:if(v!=108&&we(k,m-1)==58){El(k+=ee(yo(D),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=yo(D);break;case 9:case 10:case 13:case 32:k+=i3(v);break;case 92:k+=l3(vo()-1,7);continue;case 47:switch(dt()){case 42:case 47:ao(d3(s3(Oe(),vo()),t,r),c);break;default:k+="/"}break;case 123*g:s[d++]=lt(k)*x;case 125*g:case 59:case 0:switch(D){case 0:case 125:w=0;case 59+p:x==-1&&(k=ee(k,/\f/g,"")),f>0&<(k)-m&&ao(f>32?J0(k+";",n,r,m-1):J0(ee(k," ","")+";",n,r,m-2),c);break;case 59:k+=";";default:if(ao(S=Z0(k,t,r,d,p,a,s,E,b=[],C=[],m),o),D===123)if(p===0)bo(k,t,S,S,b,o,m,s,C);else switch(h===99&&we(k,3)===110?100:h){case 100:case 108:case 109:case 115:bo(e,S,S,n&&ao(Z0(e,S,S,0,0,a,s,E,a,b=[],m),C),a,C,m,s,n?b:C);break;default:bo(k,S,S,S,[""],C,0,s,C)}}d=p=f=0,g=x=1,E=k="",m=i;break;case 58:m=1+lt(k),f=v;default:if(g<1){if(D==123)--g;else if(D==125&&g++==0&&o3()==125)continue}switch(k+=hs(D),D*g){case 38:x=p>0?1:(k+="\f",-1);break;case 44:s[d++]=(lt(k)-1)*x,x=1;break;case 64:dt()===45&&(k+=yo(Oe())),h=dt(),p=m=lt(E=k+=u3(vo())),D++;break;case 45:v===45&<(k)==2&&(g=0)}}return o}R(bo,"parse");function Z0(e,t,r,n,a,o,i,s,c,d,p){for(var m=a-1,h=a===0?o:[""],f=ms(h),v=0,g=0,w=0;v0?h[x]+" "+D:ee(D,/&\f/g,h[x])))&&(c[w++]=E);return Go(e,t,r,a===0?ep:s,c,d,p)}R(Z0,"ruleset");function d3(e,t,r){return Go(e,t,r,Q1,hs(a3()),oa(e,2,-2),0)}R(d3,"comment");function J0(e,t,r,n){return Go(e,t,r,tp,oa(e,0,n),oa(e,n+1,-1),n)}R(J0,"declaration");function an(e,t){for(var r="",n=ms(e),a=0;a-1},"isIgnoringComment"),_D=R(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var c=i[s];if(c.line=0;r--)if(!h3(t[r]))return!0;return!1},"isPrependedWithRegularRules"),vh=R(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),ID=R(function(e,t,r){h3(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),vh(e)):RD(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),vh(e)))},"incorrectImportAlarm");function op(e,t){switch(e3(e,t)){case 5103:return te+"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 te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+wl+e+_e+e+e;case 6828:case 4268:return te+e+_e+e+e;case 6165:return te+e+_e+"flex-"+e+e;case 5187:return te+e+ee(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return te+e+_e+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return te+e+_e+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+_e+ee(e,"shrink","negative")+e;case 5292:return te+e+_e+ee(e,"basis","preferred-size")+e;case 6060:return te+"box-"+ee(e,"-grow","")+te+e+_e+ee(e,"grow","positive")+e;case 4554:return te+ee(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,te+"$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(lt(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+wl+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~El(e,"stretch")?op(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,lt(e)-3-(~El(e,"!important")&&10))){case 107:return ee(e,":",":"+te)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(we(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+_e+e+e}return e}R(op,"prefix");var TD=R(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case tp:e.return=op(e.value,e.length);break;case Q4:return an([Pn(e,{value:ee(e.value,"@","@"+te)})],n);case ep:if(e.length)return r3(e.props,function(a){switch(t3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([Pn(e,{props:[ee(a,/:(read-\w+)/,":"+wl+"$1")]})],n);case"::placeholder":return an([Pn(e,{props:[ee(a,/:(plac\w+)/,":"+te+"input-$1")]}),Pn(e,{props:[ee(a,/:(plac\w+)/,":"+wl+"$1")]}),Pn(e,{props:[ee(a,/:(plac\w+)/,_e+"input-$1")]})],n)}return""})}},"prefixer"),BD=[TD],zD=R(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||BD;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),w=1;w=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}R(m3,"murmur2");var PD={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},yh=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -677,7 +677,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function qL(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var b4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function GL(e){if(typeof e!="string")return e;var t=e.toLowerCase();return b4[t]?"#"+b4[t]:e}var YL=/^#[a-fA-F0-9]{6}$/,KL=/^#[a-fA-F0-9]{8}$/,ZL=/^#[a-fA-F0-9]{3}$/,JL=/^#[a-fA-F0-9]{4}$/,N0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,XL=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,QL=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function uu(e){if(typeof e!="string")throw new Ot(3);var t=GL(e);if(t.match(YL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(KL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ZL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(JL)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=N0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=XL.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=QL.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+qo(s,c,d)+")",m=N0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=eO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+qo(f,v,g)+")",x=N0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function tO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?cs(e,t,r):"rgba("+qo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?cs(e.hue,e.saturation,e.lightness):"rgba("+qo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function M1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return O1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return O1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=uu(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?M1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?M1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var iO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},lO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},uO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function L9(e){if(typeof e!="object")throw new Ot(8);if(lO(e))return nr(e);if(iO(e))return M1(e);if(uO(e))return oO(e);if(sO(e))return aO(e);throw new Ot(8)}function O9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):O9(e,t,n)}}function cu(e){return O9(e,e.length,[])}function du(e,t,r){return Math.max(e,Math.min(t,r))}function cO(e,t){if(t==="transparent")return t;var r=z9(t);return L9(Da({},r,{lightness:du(0,1,r.lightness-parseFloat(e))}))}var dO=cu(cO),Rt=dO;function pO(e,t){if(t==="transparent")return t;var r=z9(t);return L9(Da({},r,{lightness:du(0,1,r.lightness+parseFloat(e))}))}var fO=cu(pO),Kr=fO;function hO(e,t){if(t==="transparent")return t;var r=uu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Da({},r,{alpha:du(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var mO=cu(hO),Yi=mO;function gO(e,t){if(t==="transparent")return t;var r=uu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Da({},r,{alpha:du(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var vO=cu(gO),oe=vO,yO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),M9=e=>y.createElement(yO,{...e,className:"docblock-emptyblock sb-unstyled"}),bO=F(Hf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),wO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ki=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${td}`]:{margin:0}})),EO=()=>y.createElement(wO,null,y.createElement(Ki,null),y.createElement(Ki,{style:{width:"80%"}}),y.createElement(Ki,{style:{width:"30%"}}),y.createElement(Ki,{style:{width:"80%"}})),P9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=E3();if(e)return y.createElement(EO,null);if(t)return y.createElement(M9,null,t);let c=y.createElement(bO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?Q0.dark:Q0.light;return y.createElement(x3,{theme:ed({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Xf=600,xO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Xf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),DO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Xf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),CO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),SO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Xf}px)`]:{}})),kO=({children:e,toc:t})=>y.createElement(SO,{className:"sbdocs sbdocs-wrapper"},y.createElement(CO,{className:"sbdocs sbdocs-content"},e),t),pu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:AO}=globalThis,FO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=AO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},$9=l.createContext({scale:1}),{PREVIEW_URL:_O}=globalThis,RO=_O||"iframe.html",P1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,IO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(VB,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${P1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(N9,null),y.createElement("div",{ref:t,id:`${P1(e)}-inner`,"data-name":i.name}))},TO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement($9.Consumer,null,({scale:r})=>y.createElement(FO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:pL(RO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),BO=F.strong(({theme:e})=>({color:e.color.orange})),zO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(BO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:P1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(IO,{...e}):y.createElement(TO,{...e}))},N9=()=>y.createElement(dL,null),LO=F(Zf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),OO=F.div({display:"flex",alignItems:"center",gap:4}),MO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),PO=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(LO,{...o},y.createElement(OO,{key:"left"},e?[1,2,3].map(i=>y.createElement(MO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(gL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(vL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(yL,null))))),$O=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),w4=F(P9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),NO=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...pu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),HO=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(w4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(w4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function jO(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var VO=F(PO)({position:"absolute",top:0,left:0,right:0,height:40}),UO=F.div({overflow:"hidden",position:"relative"}),H9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=HO(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await G1(()=>import("./index-7Fd1365_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(T=>T.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(T=>T.title!=="Copied")),1500)}))};return y.createElement(NO,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(VO,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:jO(n),baseUrl:"./iframe.html"}),y.createElement($9.Provider,{value:{scale:g}},y.createElement(UO,{className:"docs-story",onCopyCapture:a&&A},y.createElement($O,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(LB.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Dp,{actionItems:C}))),a&&m&&f)};F(H9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),C4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WO=["style","script"],GO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,YO=/mailto:/i,KO=/\n{2,}$/,j9=/^(\s*>[\s\S]*?)(?=\n{2,})/,ZO=/^ *> ?/gm,JO=/^ {2,}\n/,XO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,V9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,U9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,QO=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,eM=/^(?:\n *)*\n/,tM=/\r\n?/g,rM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,nM=/^\[\^([^\]]+)]/,aM=/\f/g,oM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,q9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,W9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,G9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Y9=/^)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,N1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uM=/^\{.*\}$/,cM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,dM=/^<([^ >]+@[^ >]+)>/,pM=/^<([^ >]+:\/[^ >]+)>/,fM=/-([a-z])?/gi,K9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,hM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,mM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,vM=/(\[|\])/g,yM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,bM=/\t/g,wM=/^ *\| */,EM=/(^ *\||\| *$)/g,xM=/ *$/,DM=/^ *:-+: *$/,CM=/^ *:-+ *$/,SM=/^ *-+: *$/,fu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",kM=new RegExp(`^([*_])\\1${fu}\\1\\1(?!\\1)`),AM=new RegExp(`^([*_])${fu}\\1(?!\\1|\\w)`),FM=new RegExp(`^==${fu}==`),_M=new RegExp(`^~~${fu}~~`),RM=/^\\([^0-9A-Za-z\s])/,IM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,TM=/^\n+/,BM=/^([ \t]*)/,zM=/\\([^\\])/g,S4=/ *\n+$/,LM=/(?:^|\n)( *)$/,Qf="(?:\\d+\\.)",eh="(?:[*+-])";function Z9(e){return"( *)("+(e===1?Qf:eh)+") +"}var J9=Z9(1),X9=Z9(2);function Q9(e){return new RegExp("^"+(e===1?J9:X9))}var OM=Q9(1),MM=Q9(2);function ex(e){return new RegExp("^"+(e===1?J9:X9)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Qf:eh)+" )[^\\n]*)*(\\n|$)","gm")}var tx=ex(1),rx=ex(2);function nx(e){let t=e===1?Qf:eh;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ax=nx(1),ox=nx(2);function k4(e,t){let r=t===1,n=r?ax:ox,a=r?tx:rx,o=r?OM:MM;return{match(i,s,c){let d=LM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(KO,` +`};function qL(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var b4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function GL(e){if(typeof e!="string")return e;var t=e.toLowerCase();return b4[t]?"#"+b4[t]:e}var YL=/^#[a-fA-F0-9]{6}$/,KL=/^#[a-fA-F0-9]{8}$/,ZL=/^#[a-fA-F0-9]{3}$/,JL=/^#[a-fA-F0-9]{4}$/,N0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,XL=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,QL=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function uu(e){if(typeof e!="string")throw new Ot(3);var t=GL(e);if(t.match(YL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(KL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ZL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(JL)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=N0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=XL.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=QL.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+qo(s,c,d)+")",m=N0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=eO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+qo(f,v,g)+")",x=N0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function tO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?cs(e,t,r):"rgba("+qo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?cs(e.hue,e.saturation,e.lightness):"rgba("+qo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function M1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return O1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return O1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=uu(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?M1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?M1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var iO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},lO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},sO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},uO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function L9(e){if(typeof e!="object")throw new Ot(8);if(lO(e))return nr(e);if(iO(e))return M1(e);if(uO(e))return oO(e);if(sO(e))return aO(e);throw new Ot(8)}function O9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):O9(e,t,n)}}function cu(e){return O9(e,e.length,[])}function du(e,t,r){return Math.max(e,Math.min(t,r))}function cO(e,t){if(t==="transparent")return t;var r=z9(t);return L9(Da({},r,{lightness:du(0,1,r.lightness-parseFloat(e))}))}var dO=cu(cO),Rt=dO;function pO(e,t){if(t==="transparent")return t;var r=z9(t);return L9(Da({},r,{lightness:du(0,1,r.lightness+parseFloat(e))}))}var fO=cu(pO),Kr=fO;function hO(e,t){if(t==="transparent")return t;var r=uu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Da({},r,{alpha:du(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var mO=cu(hO),Yi=mO;function gO(e,t){if(t==="transparent")return t;var r=uu(t),n=typeof r.alpha=="number"?r.alpha:1,a=Da({},r,{alpha:du(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var vO=cu(gO),oe=vO,yO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),M9=e=>y.createElement(yO,{...e,className:"docblock-emptyblock sb-unstyled"}),bO=F(Hf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),wO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ki=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${td}`]:{margin:0}})),EO=()=>y.createElement(wO,null,y.createElement(Ki,null),y.createElement(Ki,{style:{width:"80%"}}),y.createElement(Ki,{style:{width:"30%"}}),y.createElement(Ki,{style:{width:"80%"}})),P9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=E3();if(e)return y.createElement(EO,null);if(t)return y.createElement(M9,null,t);let c=y.createElement(bO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?Q0.dark:Q0.light;return y.createElement(x3,{theme:ed({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Xf=600,xO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Xf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),DO=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Xf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),CO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),SO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Xf}px)`]:{}})),kO=({children:e,toc:t})=>y.createElement(SO,{className:"sbdocs sbdocs-wrapper"},y.createElement(CO,{className:"sbdocs sbdocs-content"},e),t),pu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:AO}=globalThis,FO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=AO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},$9=l.createContext({scale:1}),{PREVIEW_URL:_O}=globalThis,RO=_O||"iframe.html",P1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,IO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(VB,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${P1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(N9,null),y.createElement("div",{ref:t,id:`${P1(e)}-inner`,"data-name":i.name}))},TO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement($9.Consumer,null,({scale:r})=>y.createElement(FO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:pL(RO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),BO=F.strong(({theme:e})=>({color:e.color.orange})),zO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(BO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:P1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(IO,{...e}):y.createElement(TO,{...e}))},N9=()=>y.createElement(dL,null),LO=F(Zf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),OO=F.div({display:"flex",alignItems:"center",gap:4}),MO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),PO=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(LO,{...o},y.createElement(OO,{key:"left"},e?[1,2,3].map(i=>y.createElement(MO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(gL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(vL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(yL,null))))),$O=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),w4=F(P9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),NO=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...pu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),HO=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(w4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(w4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function jO(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var VO=F(PO)({position:"absolute",top:0,left:0,right:0,height:40}),UO=F.div({overflow:"hidden",position:"relative"}),H9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=HO(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await G1(()=>import("./index-DtyKFEbz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(T=>T.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(T=>T.title!=="Copied")),1500)}))};return y.createElement(NO,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(VO,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:jO(n),baseUrl:"./iframe.html"}),y.createElement($9.Provider,{value:{scale:g}},y.createElement(UO,{className:"docs-story",onCopyCapture:a&&A},y.createElement($O,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(LB.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Dp,{actionItems:C}))),a&&m&&f)};F(H9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),C4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WO=["style","script"],GO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,YO=/mailto:/i,KO=/\n{2,}$/,j9=/^(\s*>[\s\S]*?)(?=\n{2,})/,ZO=/^ *> ?/gm,JO=/^ {2,}\n/,XO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,V9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,U9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,QO=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,eM=/^(?:\n *)*\n/,tM=/\r\n?/g,rM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,nM=/^\[\^([^\]]+)]/,aM=/\f/g,oM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,q9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,W9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,G9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,$1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Y9=/^)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,N1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uM=/^\{.*\}$/,cM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,dM=/^<([^ >]+@[^ >]+)>/,pM=/^<([^ >]+:\/[^ >]+)>/,fM=/-([a-z])?/gi,K9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,hM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,mM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,vM=/(\[|\])/g,yM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,bM=/\t/g,wM=/^ *\| */,EM=/(^ *\||\| *$)/g,xM=/ *$/,DM=/^ *:-+: *$/,CM=/^ *:-+ *$/,SM=/^ *-+: *$/,fu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",kM=new RegExp(`^([*_])\\1${fu}\\1\\1(?!\\1)`),AM=new RegExp(`^([*_])${fu}\\1(?!\\1|\\w)`),FM=new RegExp(`^==${fu}==`),_M=new RegExp(`^~~${fu}~~`),RM=/^\\([^0-9A-Za-z\s])/,IM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,TM=/^\n+/,BM=/^([ \t]*)/,zM=/\\([^\\])/g,S4=/ *\n+$/,LM=/(?:^|\n)( *)$/,Qf="(?:\\d+\\.)",eh="(?:[*+-])";function Z9(e){return"( *)("+(e===1?Qf:eh)+") +"}var J9=Z9(1),X9=Z9(2);function Q9(e){return new RegExp("^"+(e===1?J9:X9))}var OM=Q9(1),MM=Q9(2);function ex(e){return new RegExp("^"+(e===1?J9:X9)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Qf:eh)+" )[^\\n]*)*(\\n|$)","gm")}var tx=ex(1),rx=ex(2);function nx(e){let t=e===1?Qf:eh;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ax=nx(1),ox=nx(2);function k4(e,t){let r=t===1,n=r?ax:ox,a=r?tx:rx,o=r?OM:MM;return{match(i,s,c){let d=LM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(KO,` `).match(a),m=!1;return{items:p.map(function(h,f){let v=o.exec(h)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),w=h.replace(g,"").replace(o,""),x=f===p.length-1,D=w.indexOf(` `)!==-1||x&&m;m=D;let E=c.inline,b=c.list,C;c.list=!0,D?(c.inline=!1,C=w.replace(S4,` @@ -708,7 +708,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${Rt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Kr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Kr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${nr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),bx=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),WP=F(bx)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),GP=F.div({display:"flex",alignItems:"center",width:"100%"});function YP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var KP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{let d=f=>{r(oP(f.target.value))},p=t!==void 0,m=l.useMemo(()=>YP(o),[o]),h=!!c?.table?.readonly;return y.createElement(GP,{"aria-readonly":h},y.createElement(bx,null,n),y.createElement(qP,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(WP,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},ZP=F.label({display:"flex"}),JP=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),XP=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{let s=f=>{r(f.target.value)},c=!!i?.table?.readonly,[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:ps(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(ZP,null,y.createElement(mi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(JP,{isMaxed:t?.length===o},t?.length??0," / ",o))},QP=F(mi.Input)({padding:10});function e$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var t$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let o=l.useRef(null),i=a?.control?.readOnly;function s(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(p=>URL.createObjectURL(p));e(d),e$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(QP,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},r$=l.lazy(()=>G1(()=>import("./Color-F6OSRLHC-Bm1wgjDL.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),n$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(r$,{...e})),a$={array:O4,object:O4,boolean:JM,color:n$,date:nP,number:lP,check:Mn,"inline-check":Mn,radio:Mn,"inline-radio":Mn,select:Mn,"multi-select":Mn,range:KP,text:XP,file:t$},M4=()=>y.createElement(y.Fragment,null,"-"),o$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(g=>(d({value:g}),r({[a]:g}),g),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let g=o?.disable!==!0&&e?.type?.name!=="function";return n&&g?y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(M4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=a$[o.type]||M4;return y.createElement(v,{...f,...o,controlType:o.type})},i$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),l$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(i$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},s$=Y1(T9()),V1=8,P4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),u$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),c$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),d$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),p$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),f$=F(AL)({marginLeft:4}),h$=F(I9)({marginLeft:4}),m$=()=>y.createElement("span",null,"-"),wx=({text:e,simple:t})=>y.createElement(u$,{simple:t},e),g$=(0,s$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),v$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Xx(t)},$4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,V1)),r.map(n=>y.createElement(wx,{key:n,text:n===""?'""':n}))},y$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(wx,{text:c});let d=v$(c),p=d.length;return p>V1?y.createElement(P4,{isExpanded:i},$4(d,i),y.createElement(c$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-V1} more...`)):y.createElement(P4,null,$4(d))}return y.createElement(mz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(p$,{width:g$(n)},y.createElement(Hf,{language:"jsx",format:!1},n))},y.createElement(d$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(f$,null):y.createElement(h$,null)))},G0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(m$,null):y.createElement(y$,{value:e,initialExpandedArgs:t}),b$=F.span({fontWeight:"bold"}),w$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),E$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),x$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),D$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),C$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),S$=e=>e&&{summary:typeof e=="string"?e:e.name},Zi=e=>{let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||S$(n.type),h=p.defaultValue||n.defaultValue,f=n.type?.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(C$,{expandable:i},y.createElement(b$,null,c),f?y.createElement(w$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(E$,null,y.createElement(lx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(D$,{hasDescription:v},y.createElement(G0,{value:m,initialExpandedArgs:s})),y.createElement(l$,{tags:p.jsDocTags})):y.createElement(x$,{hasDescription:v},y.createElement(G0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(G0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(o$,{...e,isHovered:t})):null)},k$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),A$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),F$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),_$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(k$,{inAddonPanel:e},y.createElement(C9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(A$,null,e&&y.createElement(y.Fragment,null,y.createElement(aa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(EL,null)," Watch 5m video"),y.createElement(F$,null),y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(B1,null)," Read docs")),!e&&y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(B1,null)," Learn how to set that up"))}))},R$=F(SL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),I$=F(kL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),T$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),B$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),z$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),L$=F.td(()=>({position:"relative"})),O$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Y0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?z$:B$,c=r?.length||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(O$,{title:p},y.createElement(s,{colSpan:1},y.createElement(N4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(T$,null,o?y.createElement(R$,null):y.createElement(I$,null),t)),y.createElement(L$,{colSpan:a-1},y.createElement(N4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Ji=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],M$=()=>y.createElement(y.Fragment,null,y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),P$=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),$$=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),N$=F.span({display:"flex",justifyContent:"space-between"}),H$={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},j$=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=i?.table||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=H$[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},V$=(e,t,r)=>{try{return jx(e,t,r)}catch(n){return RL.warn(n.message),!1}},U1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(M9,null,D," ",y.createElement(aa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(B1,null)," Read the docs"))}if(s)return y.createElement(M$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=j$(Qx(c||{},D=>!D?.table?.disable&&V$(D,d||{},p||{})),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(_$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(N8,null,y.createElement(P$,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(N$,null,"Control"," ",!s&&r&&y.createElement($$,{onClick:()=>r(),title:"Reset controls"},y.createElement(FL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Zi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Y0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Zi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Y0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Zi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Y0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Zi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},U$=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(U1,{...r[0][1],...t}):y.createElement(Jz,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(U1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...pu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...pu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...pu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var q$=e=>`anchor--${e}`,W$=({storyId:e,children:t})=>y.createElement("div",{id:q$(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),G$=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Y$=e=>{if(e)return typeof e=="string"?e.includes("-")?G$(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function K$(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var Z$=Object.create,Ex=Object.defineProperty,J$=Object.getOwnPropertyDescriptor,xx=Object.getOwnPropertyNames,X$=Object.getPrototypeOf,Q$=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[xx(e)[0]])((t={exports:{}}).exports,t),t.exports},eN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xx(t))!Q$.call(e,a)&&a!==r&&Ex(e,a,{get:()=>t[a],enumerable:!(n=J$(t,a))||n.enumerable});return e},nh=(e,t,r)=>(r=e!=null?Z$(X$(e)):{},eN(!e||!e.__esModule?Ex(r,"default",{value:e,enumerable:!0}):r,e)),tN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],rN=["detail"];function nN(e){let t=tN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&rN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var aN=Y1(T9(),1),Dx=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Cx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Dx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),oN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=ah(),D=iN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},T=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=T("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,Z);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[Z]}else ne=D(U,Z),U=U[Z];ne&&!V&&(v[j]=U)}}return U}}}),lN=et({"node_modules/call-bind/index.js"(e,t){var r=ah(),n=Sx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),sN=et({"node_modules/call-bind/callBound.js"(e,t){var r=Sx(),n=lN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),uN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Dx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),cN=et({"node_modules/is-regex/index.js"(e,t){var r=sN(),n=uN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),dN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),pN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Cx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),fN=nh(cN()),hN=nh(dN()),mN=nh(pN());function gN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var vN=typeof global=="object"&&global&&global.Object===Object&&global,yN=vN,bN=typeof self=="object"&&self&&self.Object===Object&&self,wN=yN||bN||Function("return this")(),oh=wN,EN=oh.Symbol,Ca=EN,kx=Object.prototype,xN=kx.hasOwnProperty,DN=kx.toString,no=Ca?Ca.toStringTag:void 0;function CN(e){var t=xN.call(e,no),r=e[no];try{e[no]=void 0;var n=!0}catch{}var a=DN.call(e);return n&&(t?e[no]=r:delete e[no]),a}var SN=CN,kN=Object.prototype,AN=kN.toString;function FN(e){return AN.call(e)}var _N=FN,RN="[object Null]",IN="[object Undefined]",H4=Ca?Ca.toStringTag:void 0;function TN(e){return e==null?e===void 0?IN:RN:H4&&H4 in Object(e)?SN(e):_N(e)}var BN=TN,j4=Ca?Ca.prototype:void 0;j4&&j4.toString;function zN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ax=zN,LN="[object AsyncFunction]",ON="[object Function]",MN="[object GeneratorFunction]",PN="[object Proxy]";function $N(e){if(!Ax(e))return!1;var t=BN(e);return t==ON||t==MN||t==LN||t==PN}var NN=$N,HN=oh["__core-js_shared__"],K0=HN,V4=function(){var e=/[^.]+$/.exec(K0&&K0.keys&&K0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jN(e){return!!V4&&V4 in e}var VN=jN,UN=Function.prototype,qN=UN.toString;function WN(e){if(e!=null){try{return qN.call(e)}catch{}try{return e+""}catch{}}return""}var GN=WN,YN=/[\\^$.*+?()[\]{}|]/g,KN=/^\[object .+?Constructor\]$/,ZN=Function.prototype,JN=Object.prototype,XN=ZN.toString,QN=JN.hasOwnProperty,eH=RegExp("^"+XN.call(QN).replace(YN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tH(e){if(!Ax(e)||VN(e))return!1;var t=NN(e)?eH:KN;return t.test(GN(e))}var rH=tH;function nH(e,t){return e?.[t]}var aH=nH;function oH(e,t){var r=aH(e,t);return rH(r)?r:void 0}var Fx=oH;function iH(e,t){return e===t||e!==e&&t!==t}var lH=iH,sH=Fx(Object,"create"),Wo=sH;function uH(){this.__data__=Wo?Wo(null):{},this.size=0}var cH=uH;function dH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pH=dH,fH="__lodash_hash_undefined__",hH=Object.prototype,mH=hH.hasOwnProperty;function gH(e){var t=this.__data__;if(Wo){var r=t[e];return r===fH?void 0:r}return mH.call(t,e)?t[e]:void 0}var vH=gH,yH=Object.prototype,bH=yH.hasOwnProperty;function wH(e){var t=this.__data__;return Wo?t[e]!==void 0:bH.call(t,e)}var EH=wH,xH="__lodash_hash_undefined__";function DH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wo&&t===void 0?xH:t,this}var CH=DH;function za(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var LH=zH;function OH(e,t){var r=this.__data__,n=mu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var MH=OH;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),GP=F.div({display:"flex",alignItems:"center",width:"100%"});function YP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var KP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{let d=f=>{r(oP(f.target.value))},p=t!==void 0,m=l.useMemo(()=>YP(o),[o]),h=!!c?.table?.readonly;return y.createElement(GP,{"aria-readonly":h},y.createElement(bx,null,n),y.createElement(qP,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(WP,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},ZP=F.label({display:"flex"}),JP=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),XP=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{let s=f=>{r(f.target.value)},c=!!i?.table?.readonly,[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:ps(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(ZP,null,y.createElement(mi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(JP,{isMaxed:t?.length===o},t?.length??0," / ",o))},QP=F(mi.Input)({padding:10});function e$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var t$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let o=l.useRef(null),i=a?.control?.readOnly;function s(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(p=>URL.createObjectURL(p));e(d),e$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(QP,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},r$=l.lazy(()=>G1(()=>import("./Color-F6OSRLHC-DgeWau0o.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),n$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(r$,{...e})),a$={array:O4,object:O4,boolean:JM,color:n$,date:nP,number:lP,check:Mn,"inline-check":Mn,radio:Mn,"inline-radio":Mn,select:Mn,"multi-select":Mn,range:KP,text:XP,file:t$},M4=()=>y.createElement(y.Fragment,null,"-"),o$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(g=>(d({value:g}),r({[a]:g}),g),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let g=o?.disable!==!0&&e?.type?.name!=="function";return n&&g?y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(M4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=a$[o.type]||M4;return y.createElement(v,{...f,...o,controlType:o.type})},i$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),l$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(i$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},s$=Y1(T9()),V1=8,P4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),u$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),c$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),d$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),p$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),f$=F(AL)({marginLeft:4}),h$=F(I9)({marginLeft:4}),m$=()=>y.createElement("span",null,"-"),wx=({text:e,simple:t})=>y.createElement(u$,{simple:t},e),g$=(0,s$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),v$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Xx(t)},$4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,V1)),r.map(n=>y.createElement(wx,{key:n,text:n===""?'""':n}))},y$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(wx,{text:c});let d=v$(c),p=d.length;return p>V1?y.createElement(P4,{isExpanded:i},$4(d,i),y.createElement(c$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-V1} more...`)):y.createElement(P4,null,$4(d))}return y.createElement(mz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(p$,{width:g$(n)},y.createElement(Hf,{language:"jsx",format:!1},n))},y.createElement(d$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(f$,null):y.createElement(h$,null)))},G0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(m$,null):y.createElement(y$,{value:e,initialExpandedArgs:t}),b$=F.span({fontWeight:"bold"}),w$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),E$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),x$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),D$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),C$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),S$=e=>e&&{summary:typeof e=="string"?e:e.name},Zi=e=>{let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||S$(n.type),h=p.defaultValue||n.defaultValue,f=n.type?.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(C$,{expandable:i},y.createElement(b$,null,c),f?y.createElement(w$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(E$,null,y.createElement(lx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(D$,{hasDescription:v},y.createElement(G0,{value:m,initialExpandedArgs:s})),y.createElement(l$,{tags:p.jsDocTags})):y.createElement(x$,{hasDescription:v},y.createElement(G0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(G0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(o$,{...e,isHovered:t})):null)},k$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),A$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),F$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),_$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(k$,{inAddonPanel:e},y.createElement(C9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(A$,null,e&&y.createElement(y.Fragment,null,y.createElement(aa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(EL,null)," Watch 5m video"),y.createElement(F$,null),y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(B1,null)," Read docs")),!e&&y.createElement(aa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(B1,null)," Learn how to set that up"))}))},R$=F(SL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),I$=F(kL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),T$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),B$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),z$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),L$=F.td(()=>({position:"relative"})),O$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Y0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?z$:B$,c=r?.length||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(O$,{title:p},y.createElement(s,{colSpan:1},y.createElement(N4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(T$,null,o?y.createElement(R$,null):y.createElement(I$,null),t)),y.createElement(L$,{colSpan:a-1},y.createElement(N4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Ji=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],M$=()=>y.createElement(y.Fragment,null,y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Ji,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),P$=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),$$=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),N$=F.span({display:"flex",justifyContent:"space-between"}),H$={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},j$=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=i?.table||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=H$[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},V$=(e,t,r)=>{try{return jx(e,t,r)}catch(n){return RL.warn(n.message),!1}},U1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(M9,null,D," ",y.createElement(aa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(B1,null)," Read the docs"))}if(s)return y.createElement(M$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=j$(Qx(c||{},D=>!D?.table?.disable&&V$(D,d||{},p||{})),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(_$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(N8,null,y.createElement(P$,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(N$,null,"Control"," ",!s&&r&&y.createElement($$,{onClick:()=>r(),title:"Reset controls"},y.createElement(FL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Zi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(Y0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Zi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(Y0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Zi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(Y0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Zi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},U$=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(U1,{...r[0][1],...t}):y.createElement(Jz,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(U1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...pu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...pu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...pu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var q$=e=>`anchor--${e}`,W$=({storyId:e,children:t})=>y.createElement("div",{id:q$(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),G$=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Y$=e=>{if(e)return typeof e=="string"?e.includes("-")?G$(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function K$(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var Z$=Object.create,Ex=Object.defineProperty,J$=Object.getOwnPropertyDescriptor,xx=Object.getOwnPropertyNames,X$=Object.getPrototypeOf,Q$=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[xx(e)[0]])((t={exports:{}}).exports,t),t.exports},eN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xx(t))!Q$.call(e,a)&&a!==r&&Ex(e,a,{get:()=>t[a],enumerable:!(n=J$(t,a))||n.enumerable});return e},nh=(e,t,r)=>(r=e!=null?Z$(X$(e)):{},eN(!e||!e.__esModule?Ex(r,"default",{value:e,enumerable:!0}):r,e)),tN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],rN=["detail"];function nN(e){let t=tN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&rN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var aN=Y1(T9(),1),Dx=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Cx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Dx();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),oN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=ah(),D=iN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},T=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=T("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,Z);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[Z]}else ne=D(U,Z),U=U[Z];ne&&!V&&(v[j]=U)}}return U}}}),lN=et({"node_modules/call-bind/index.js"(e,t){var r=ah(),n=Sx(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),sN=et({"node_modules/call-bind/callBound.js"(e,t){var r=Sx(),n=lN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),uN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Dx();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),cN=et({"node_modules/is-regex/index.js"(e,t){var r=sN(),n=uN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),dN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),pN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Cx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),fN=nh(cN()),hN=nh(dN()),mN=nh(pN());function gN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var vN=typeof global=="object"&&global&&global.Object===Object&&global,yN=vN,bN=typeof self=="object"&&self&&self.Object===Object&&self,wN=yN||bN||Function("return this")(),oh=wN,EN=oh.Symbol,Ca=EN,kx=Object.prototype,xN=kx.hasOwnProperty,DN=kx.toString,no=Ca?Ca.toStringTag:void 0;function CN(e){var t=xN.call(e,no),r=e[no];try{e[no]=void 0;var n=!0}catch{}var a=DN.call(e);return n&&(t?e[no]=r:delete e[no]),a}var SN=CN,kN=Object.prototype,AN=kN.toString;function FN(e){return AN.call(e)}var _N=FN,RN="[object Null]",IN="[object Undefined]",H4=Ca?Ca.toStringTag:void 0;function TN(e){return e==null?e===void 0?IN:RN:H4&&H4 in Object(e)?SN(e):_N(e)}var BN=TN,j4=Ca?Ca.prototype:void 0;j4&&j4.toString;function zN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ax=zN,LN="[object AsyncFunction]",ON="[object Function]",MN="[object GeneratorFunction]",PN="[object Proxy]";function $N(e){if(!Ax(e))return!1;var t=BN(e);return t==ON||t==MN||t==LN||t==PN}var NN=$N,HN=oh["__core-js_shared__"],K0=HN,V4=function(){var e=/[^.]+$/.exec(K0&&K0.keys&&K0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jN(e){return!!V4&&V4 in e}var VN=jN,UN=Function.prototype,qN=UN.toString;function WN(e){if(e!=null){try{return qN.call(e)}catch{}try{return e+""}catch{}}return""}var GN=WN,YN=/[\\^$.*+?()[\]{}|]/g,KN=/^\[object .+?Constructor\]$/,ZN=Function.prototype,JN=Object.prototype,XN=ZN.toString,QN=JN.hasOwnProperty,eH=RegExp("^"+XN.call(QN).replace(YN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tH(e){if(!Ax(e)||VN(e))return!1;var t=NN(e)?eH:KN;return t.test(GN(e))}var rH=tH;function nH(e,t){return e?.[t]}var aH=nH;function oH(e,t){var r=aH(e,t);return rH(r)?r:void 0}var Fx=oH;function iH(e,t){return e===t||e!==e&&t!==t}var lH=iH,sH=Fx(Object,"create"),Wo=sH;function uH(){this.__data__=Wo?Wo(null):{},this.size=0}var cH=uH;function dH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pH=dH,fH="__lodash_hash_undefined__",hH=Object.prototype,mH=hH.hasOwnProperty;function gH(e){var t=this.__data__;if(Wo){var r=t[e];return r===fH?void 0:r}return mH.call(t,e)?t[e]:void 0}var vH=gH,yH=Object.prototype,bH=yH.hasOwnProperty;function wH(e){var t=this.__data__;return Wo?t[e]!==void 0:bH.call(t,e)}var EH=wH,xH="__lodash_hash_undefined__";function DH(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wo&&t===void 0?xH:t,this}var CH=DH;function za(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var LH=zH;function OH(e,t){var r=this.__data__,n=mu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var MH=OH;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;isj(e).replace(/\n\s*/g,"").trim()),cj=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},dj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Rx(e){if(!lj(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=nN(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var pj=function(e){let t,r,n,a;return function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return dj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,fN.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,hN.default)(i)){if(!e.allowFunction)return;let{name:d}=i,p=i.toString();return p.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${uj(cj(o,p))}`}if((0,mN.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let c=t.get(i);if(!c){let d=Array.isArray(i)?i:Rx(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":i.constructor.name})}catch{}return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}catch{return}}},fj={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},hj=(e,t={})=>{let r={...fj,...t};return JSON.stringify(Rx(e),pj(r),t.space)};function Ix(e){return hj(e,{allowFunction:!1})}var Tx=l.createContext({sources:{}}),Bx="--unknown--",mj=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:c,args:d=void 0,source:p,format:m}=typeof o=="string"?{id:o,source:i,format:s}:o,h=d?Ix(d):Bx;n(f=>({...f,[c]:{...f[c],[h]:{code:p,format:m}}}))};return t.on(fh,a),()=>t.off(fh,a)},[]),y.createElement(Tx.Provider,{value:{sources:r}},e)},gj=(e,t,r)=>{let{sources:n}=r,a=n?.[e];return a?.[Ix(t)]||a?.[Bx]||{code:""}},vj=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let{__isArgsStory:a}=t.parameters,o=t.parameters.docs?.source||{},i=r||o.type||bu.AUTO;if(o.code!==void 0)return o.code;let s=i===bu.DYNAMIC||i===bu.AUTO&&e&&a?e:o.originalSource||"";return(n??o.transform)?.(s,t)||s},yj=(e,t,r)=>{let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=n?.parameters?.docs?.source||{},{code:i}=e,s=e.format??o.format,c=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:c,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,h=gj(n.id,m,r);return s=h.format??n.parameters.docs?.source?.format??!1,{code:vj({snippet:h.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:d}};function bj(e,t){let r=wj([e],t);return r&&r[0]}function wj(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Ej=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},xj=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,c=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Dj=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(Yt),r=Ej(e,t),n=bj(r,t);if(!n)return y.createElement(N9,null);let a=xj(e,n,t);return a?y.createElement(zO,{...a}):null},Cj=e=>{let t=l.useContext(Yt),r=l.useContext(Tx),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=kn(n||"story",["story"]),i=yj({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??o.parameters.docs?.canvas?.layout??"padded",c=e.withToolbar??o.parameters.docs?.canvas?.withToolbar??!1,d=e.additionalActions??o.parameters.docs?.canvas?.additionalActions,p=e.sourceState??o.parameters.docs?.canvas?.sourceState??"hidden",m=e.className??o.parameters.docs?.canvas?.className;return y.createElement(H9,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:c,additionalActions:d,className:m,layout:s},y.createElement(Dj,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Sj=(e,t)=>{let r=kj(e,t);if(!r)throw new Error("No result when story was defined");return r},kj=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let c=d=>{d.storyId===n&&o(d.args)};return t.channel.on(v4,c),()=>t.channel.off(v4,c)},[n,t.channel]);let i=l.useCallback(c=>t.channel.emit(IL,{storyId:n,updatedArgs:c}),[n,t.channel]),s=l.useCallback(c=>t.channel.emit(TL,{storyId:n,argNames:c}),[n,t.channel]);return e&&[a,i,s]},Aj=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(y4,o),()=>t.channel.off(y4,o)},[t.channel]),[n]};function Fj(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var _j=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(Yt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,c=a.docs?.controls||{},d=e.include??c.include,p=e.exclude??c.exclude,m=e.sort??c.sort,[h,f,v]=Sj(n,r),[g]=Aj(n,r),w=g4(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(h).length>0?y.createElement(U1,{rows:w,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v}):null;let x=Y$(i),D=Object.fromEntries(Object.entries(s).map(([b,C])=>[b,{rows:g4(Fj(C,a),d,p),sort:m}])),E={[x]:{rows:w,sort:m},...D};return y.createElement(U$,{tabs:E,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v})},{document:zx}=globalThis,Lx=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(H8,null,t);let n=e&&e.split("-");return y.createElement(P9,{language:n&&n[1]||"text",format:!1,code:t,...r})};function lh(e,t){e.channel.emit(BL,t)}var q1=hL.a,Rj=({hash:e,children:t})=>{let r=l.useContext(Yt);return y.createElement(q1,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);zx.getElementById(a)&&lh(r,e)}},t)},Ox=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(Yt);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(q1,{...e}):t.startsWith("#")?y.createElement(Rj,{hash:t},n):y.createElement(q1,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),lh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},Mx=["h1","h2","h3","h4","h5","h6"],Ij=Mx.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Tj=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Bj=({as:e,id:t,children:r,...n})=>{let a=l.useContext(Yt),o=Ij[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Tj,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{zx.getElementById(t)&&lh(a,i)}},y.createElement(CL,null)),r)},sh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Bj,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...le(s,t)})},Px=Mx.reduce((e,t)=>({...e,[t]:r=>y.createElement(sh,{as:t,...r})}),{}),zj=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(Vx`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' diff --git a/assets/DrawerMenu.stories-CKZUhLpV.js b/assets/DrawerMenu.stories-ClG-9o9N.js similarity index 96% rename from assets/DrawerMenu.stories-CKZUhLpV.js rename to assets/DrawerMenu.stories-ClG-9o9N.js index 355fb0a2..7fcf8c7e 100644 --- a/assets/DrawerMenu.stories-CKZUhLpV.js +++ b/assets/DrawerMenu.stories-ClG-9o9N.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{U as a}from"./user-profile-cqTW1cHH.js";import{N as s,C as i,L as c}from"./notifications-BEKrtwGv.js";import{D as t,d as l}from"./DrawerMenu-BNILBemh.js";import{M as r}from"./MenuItem-2y-pqdrL.js";import{S as m}from"./Separator-BbJs_Bbv.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./floating-ui.react-CSvGZjCC.js";const h={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <> +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{U as a}from"./user-profile-cqTW1cHH.js";import{N as s,C as i,L as c}from"./notifications-BEKrtwGv.js";import{D as t,d as l}from"./DrawerMenu-BNILBemh.js";import{M as r}from"./MenuItem-CHeo3Dqf.js";import{S as m}from"./Separator-BbJs_Bbv.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./floating-ui.react-CSvGZjCC.js";const h={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <>
{}} /> diff --git a/assets/EditInPlace.stories-BwwiXit0.js b/assets/EditInPlace.stories-B8-xI4D9.js similarity index 94% rename from assets/EditInPlace.stories-BwwiXit0.js rename to assets/EditInPlace.stories-B8-xI4D9.js index 376ed3f3..d0e27fca 100644 --- a/assets/EditInPlace.stories-BwwiXit0.js +++ b/assets/EditInPlace.stories-B8-xI4D9.js @@ -2,10 +2,10 @@ import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{w as V,u as c,e as Q}from". Since thios control has its own 'save' button, it should *not* appear as part of a larger form: it exists as its own form that submits separately.`,displayName:"EditInPlace",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"If true, disabled the entire component to disallow editing.",name:"disabled",required:!1,type:{name:"boolean"}},onInput:{defaultValue:null,description:"onInput event handler on the text control",name:"onInput",required:!1,type:{name:"(((e: ChangeEvent) => void) & FormEventHandler)"}},label:{defaultValue:null,description:"The label for the control",name:"label",required:!0,type:{name:"string"}},helpLabel:{defaultValue:null,description:"Label to be displayed under the input as a help text",name:"helpLabel",required:!1,type:{name:"string"}},serverInvalid:{defaultValue:null,description:`Whether the field is in an error state according to the server validation. -For validation messages, use native validations properties directly, or add custom error messages as children.`,name:"serverInvalid",required:!1,type:{name:"boolean"}},onClearServerErrors:{defaultValue:null,description:"Callback for when the server validation errors should be cleared.",name:"onClearServerErrors",required:!1,type:{name:"(() => void)"}},enableLigatures:{defaultValue:null,description:`Enable contextual alternate ligatures on input text +For validation messages, use native validations properties directly, or add custom error messages as children.`,name:"serverInvalid",required:!1,type:{name:"boolean"}},enableLigatures:{defaultValue:null,description:`Enable contextual alternate ligatures on input text For example on an in-place editing field https://github.com/rsms/inter/issues/222 -https://github.com/rsms/inter/blob/master/src/features/calt.fea`,name:"enableLigatures",required:!1,type:{name:"boolean"}},onSave:{defaultValue:null,description:"Callback for when the user confirms the change",name:"onSave",required:!1,type:{name:"((e: FormEvent) => void | Promise)"}},onCancel:{defaultValue:null,description:"Callback for when the user wishes to cancel the change",name:"onCancel",required:!1,type:{name:"((e: FormEvent) => void)"}},savedLabel:{defaultValue:null,description:`Label to be displayed by the green check at the bottom. Will only be displayed +https://github.com/rsms/inter/blob/master/src/features/calt.fea`,name:"enableLigatures",required:!1,type:{name:"boolean"}},onSave:{defaultValue:null,description:"Callback for when the user confirms the change",name:"onSave",required:!1,type:{name:"((e: FormEvent) => void | Promise)"}},onCancel:{defaultValue:null,description:"Callback for when the user wishes to cancel the change",name:"onCancel",required:!1,type:{name:"((e: FormEvent) => void)"}},onClearServerErrors:{defaultValue:null,description:"Callback for when the server validation errors should be cleared.",name:"onClearServerErrors",required:!1,type:{name:"(() => void)"}},savedLabel:{defaultValue:null,description:`Label to be displayed by the green check at the bottom. Will only be displayed for 2 seconds after the onSave callback promise resolves successfully.`,name:"savedLabel",required:!1,type:{name:"string"}},saveButtonLabel:{defaultValue:null,description:"The label for the save button",name:"saveButtonLabel",required:!0,type:{name:"string"}},savingLabel:{defaultValue:null,description:"The label for the 'in progress' saving caption",name:"savingLabel",required:!0,type:{name:"string"}},cancelButtonLabel:{defaultValue:null,description:"The label for the cancel button",name:"cancelButtonLabel",required:!0,type:{name:"string"}}}}}catch{}const He={title:"Form/Controls/EditInPlace",component:g,tags:["autodocs"],parameters:{controls:{include:["onChange","onSave","onCancel","onClearServerErrors","defaultValue","error","serverInvalid","savedLabel","saveButtonLabel","cancelButtonLabel","helpLabel","disabled"]},design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=4335-2016&mode=design&t=BvxRca0YDRaq20IR-0"}},argTypes:{label:{type:"string"},defaultValue:{type:"string"},onChange:{action:"changed"},onCancel:{action:"cancelled"},onClearServerErrors:{action:"cleared server errors"},serverInvalid:{type:"boolean"},helpLabel:{type:"string"},savedLabel:{type:"string"},saveButtonLabel:{type:"string"},savingLabel:{type:"string"},cancelButtonLabel:{type:"string"},disabled:{type:"boolean"}},render:({...e})=>t.jsx(X,{children:t.jsx(g,{...e})}),args:{label:"Label",onSave:()=>new Promise(e=>setTimeout(e,1e3)),savedLabel:"Saved",saveButtonLabel:"Save",cancelButtonLabel:"Cancel",savingLabel:"Saving…"}},m={},h={args:{defaultValue:"Hello, Computer"},play:async({canvasElement:e})=>{const o=V(e).getByRole("textbox");await c.clear(o),await c.type(o,"Hello, Computer")}},f={args:{defaultValue:"Hello",onSave:()=>new Promise(()=>{})},play:async({canvasElement:e})=>{const s=V(e),o=s.getByRole("textbox");await c.clear(o),await c.type(o,"Hello");const u=s.getByRole("button",{name:"Save"});await c.click(u),await Q(s.getByText("Saving…")).toBeInTheDocument()}},v={args:{serverInvalid:!0,children:t.jsx(K,{children:"I am a teapot"})}},b={args:{helpLabel:"Optional help text."}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:"{}",...m.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{ args: { defaultValue: "Hello, Computer" diff --git a/assets/FloatingMenu.stories-DdKhpZi1.js b/assets/FloatingMenu.stories-j8u_ja_x.js similarity index 96% rename from assets/FloatingMenu.stories-DdKhpZi1.js rename to assets/FloatingMenu.stories-j8u_ja_x.js index 2a89188b..b69f5547 100644 --- a/assets/FloatingMenu.stories-DdKhpZi1.js +++ b/assets/FloatingMenu.stories-j8u_ja_x.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as a}from"./user-profile-cqTW1cHH.js";import{N as r,C as s,L as c}from"./notifications-BEKrtwGv.js";import{F as n}from"./FloatingMenu-Cmtm68dq.js";import{M as t}from"./MenuItem-2y-pqdrL.js";import{S as l}from"./Separator-BbJs_Bbv.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./floating-ui.react-CSvGZjCC.js";const P={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(l,{}),o.jsx(t,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as a}from"./user-profile-cqTW1cHH.js";import{N as r,C as s,L as c}from"./notifications-BEKrtwGv.js";import{F as n}from"./FloatingMenu-Cmtm68dq.js";import{M as t}from"./MenuItem-CHeo3Dqf.js";import{S as l}from"./Separator-BbJs_Bbv.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./floating-ui.react-CSvGZjCC.js";const P={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(l,{}),o.jsx(t,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => {}} /> {/* Extra long label to demonstrate word breaking */} {}} /> diff --git a/assets/Link.stories-B0N9m-9T.js b/assets/Link.stories-DKUKuDDV.js similarity index 88% rename from assets/Link.stories-B0N9m-9T.js rename to assets/Link.stories-DKUKuDDV.js index a1a003e0..f96c83de 100644 --- a/assets/Link.stories-B0N9m-9T.js +++ b/assets/Link.stories-DKUKuDDV.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-DR9Q75dM.js";import{r as l}from"./index-DRjF_FHU.js";import{c as p}from"./index-lhGYx47h.js";const m="_link_1mzip_17",d={link:m},r=l.forwardRef(function({children:s,className:o,kind:t="primary",...i},c){return n.jsx("a",{ref:c,...i,rel:"noreferrer noopener",className:p(d.link,o),"data-kind":t,children:s})});try{r.displayName="Link",r.__docgenInfo={description:"A link component.",displayName:"Link",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The type of link.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"critical"'}]}}}}}catch{}const y={title:"Link",component:r,tags:["autodocs"],argTypes:{},args:{}},u=a=>n.jsx(r,{...a,children:"Text link"}),e=u.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"args => Text link",...e.parameters?.docs?.source}}};const g=["Round"];export{e as Round,g as __namedExportsOrder,y as default}; +import{j as n}from"./jsx-runtime-DR9Q75dM.js";import{r as l}from"./index-DRjF_FHU.js";import{c as p}from"./index-lhGYx47h.js";const m="_link_1mzip_17",d={link:m},r=l.forwardRef(function({children:s,className:o,kind:t="primary",...i},c){return n.jsx("a",{ref:c,...i,rel:"noreferrer noopener",className:p(d.link,o),"data-kind":t,children:s})});try{r.displayName="Link",r.__docgenInfo={description:"A link component.",displayName:"Link",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The type of link.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"critical"'},{value:'"primary"'}]}}}}}catch{}const y={title:"Link",component:r,tags:["autodocs"],argTypes:{},args:{}},u=a=>n.jsx(r,{...a,children:"Text link"}),e=u.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"args => Text link",...e.parameters?.docs?.source}}};const g=["Round"];export{e as Round,g as __namedExportsOrder,y as default}; diff --git a/assets/Menu.stories-Ds0onutq.js b/assets/Menu.stories-D_FDfRQp.js similarity index 99% rename from assets/Menu.stories-Ds0onutq.js rename to assets/Menu.stories-D_FDfRQp.js index d1eb37ef..7dbcb8d3 100644 --- a/assets/Menu.stories-Ds0onutq.js +++ b/assets/Menu.stories-D_FDfRQp.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-DR9Q75dM.js";import{r as i}from"./index-DRjF_FHU.js";import{U as L}from"./user-profile-cqTW1cHH.js";import{N as B,C as U,L as q}from"./notifications-BEKrtwGv.js";import{c as b,u as S}from"./index-CGa_gRws.js";import{c as F}from"./index-C8xBnYIG.js";import{c as C,A as V,C as $,G as W,L as K,I as H,a as X,R as z,b as J,d as Q,S as Y,e as Z,f as ee,g as oe,i as ne,h as re,P as te,D as w}from"./index-Dbt-v4y0.js";import{P as ae}from"./index-Ksfxd92j.js";import{F as se}from"./FloatingMenu-Cmtm68dq.js";import{c as ie}from"./index-lhGYx47h.js";import{d as ce,D as ue,g as pe}from"./DrawerMenu-BNILBemh.js";import{a as de,M as x}from"./MenuItem-2y-pqdrL.js";import{S as le}from"./Separator-BbJs_Bbv.js";import{B as me}from"./Button-BORixq-h.js";import"./index-BXwbELbV.js";import"./floating-ui.react-CSvGZjCC.js";import"./index-BvEl7W6R.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./UnstyledButton-DuxpNl0e.js";function fe(e,n=[]){let o=[];function r(c,u){const s=i.createContext(u),p=o.length;o=[...o,u];const m=l=>{const{scope:h,children:D,...g}=l,k=h?.[e]?.[p]||s,G=i.useMemo(()=>g,Object.values(g));return a.jsx(k.Provider,{value:G,children:D})};m.displayName=c+"Provider";function f(l,h){const D=h?.[e]?.[p]||s,g=i.useContext(D);if(g)return g;if(u!==void 0)return u;throw new Error(`\`${l}\` must be used within \`${c}\``)}return[m,f]}const t=()=>{const c=o.map(u=>i.createContext(u));return function(s){const p=s?.[e]||c;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])}};return t.scopeName=e,[r,he(t,...n)]}function he(...e){const n=e[0];if(e.length===1)return n;const o=()=>{const r=e.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(c){const u=r.reduce((s,{useScope:p,scopeName:m})=>{const l=p(c)[`__scope${m}`];return{...s,...l}},{});return i.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return o.scopeName=n.scopeName,o}var _="DropdownMenu",[ge,mo]=fe(_,[C]),d=C(),[we,y]=ge(_),N=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:c,onOpenChange:u,modal:s=!0}=e,p=d(n),m=i.useRef(null),[f=!1,l]=ne({prop:t,defaultProp:c,onChange:u});return a.jsx(we,{scope:n,triggerId:S(),triggerRef:m,contentId:S(),open:f,onOpenChange:l,onOpenToggle:i.useCallback(()=>l(h=>!h),[l]),modal:s,children:a.jsx(re,{...p,open:f,onOpenChange:l,dir:r,modal:s,children:o})})};N.displayName=_;var R="DropdownMenuTrigger",P=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,c=y(R,o),u=d(o);return a.jsx(V,{asChild:!0,...u,children:a.jsx(ae.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:F(n,c.triggerRef),onPointerDown:b(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(c.onOpenToggle(),c.open||s.preventDefault())}),onKeyDown:b(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&c.onOpenToggle(),s.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});P.displayName=R;var Me="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:n,...o}=e,r=d(n);return a.jsx(te,{...r,...o})};j.displayName=Me;var T="DropdownMenuContent",O=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=y(T,o),c=d(o),u=i.useRef(!1);return a.jsx($,{id:t.contentId,"aria-labelledby":t.triggerId,...c,...r,ref:n,onCloseAutoFocus:b(e.onCloseAutoFocus,s=>{u.current||t.triggerRef.current?.focus(),u.current=!1,s.preventDefault()}),onInteractOutside:b(e.onInteractOutside,s=>{const p=s.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,f=p.button===2||m;(!t.modal||f)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O.displayName=T;var ve="DropdownMenuGroup",xe=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(W,{...t,...r,ref:n})});xe.displayName=ve;var be="DropdownMenuLabel",Ie=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(K,{...t,...r,ref:n})});Ie.displayName=be;var De="DropdownMenuItem",E=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(H,{...t,...r,ref:n})});E.displayName=De;var _e="DropdownMenuCheckboxItem",Se=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(X,{...t,...r,ref:n})});Se.displayName=_e;var Ce="DropdownMenuRadioGroup",ye=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(z,{...t,...r,ref:n})});ye.displayName=Ce;var Ne="DropdownMenuRadioItem",Re=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(J,{...t,...r,ref:n})});Re.displayName=Ne;var Pe="DropdownMenuItemIndicator",je=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Q,{...t,...r,ref:n})});je.displayName=Pe;var Te="DropdownMenuSeparator",Oe=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Y,{...t,...r,ref:n})});Oe.displayName=Te;var Ee="DropdownMenuArrow",Ae=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Z,{...t,...r,ref:n})});Ae.displayName=Ee;var ke="DropdownMenuSubTrigger",Ge=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(ee,{...t,...r,ref:n})});Ge.displayName=ke;var Le="DropdownMenuSubContent",Be=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(oe,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Be.displayName=Le;var Ue=N,qe=P,Fe=j,Ve=O;const $e=({onSelect:e,children:n})=>a.jsx(E,{onSelect:e??void 0,asChild:!0,children:n}),I=({title:e,showTitle:n=!0,open:o,onOpenChange:r,trigger:t,children:c,side:u="bottom",align:s="center"})=>{const p=pe(),m=p==="android"||p==="ios",f=i.useMemo(()=>({MenuItemWrapper:m?null:$e,onOpenChange:r}),[r]),l=a.jsx(de.Provider,{value:f,children:c});return m?a.jsxs(w.Root,{open:o,onOpenChange:r,children:[a.jsx(w.Trigger,{asChild:!0,children:t}),a.jsxs(w.Portal,{children:[a.jsx(w.Overlay,{className:ie(ce.bg)}),a.jsx(w.Content,{asChild:!0,children:a.jsx(ue,{title:e,children:l})})]})]}):a.jsxs(Ue,{open:o,onOpenChange:r,children:[a.jsx(qe,{asChild:!0,children:t}),a.jsx(Fe,{children:a.jsx(Ve,{asChild:!0,side:u,align:s,sideOffset:8,onCloseAutoFocus:h=>{h.preventDefault()},children:a.jsx(se,{title:e,showTitle:n,children:l})})})]})};try{I.displayName="Menu",I.__docgenInfo={description:"A menu opened by pressing a button.",displayName:"Menu",props:{title:{defaultValue:null,description:"The menu title. This can be hidden with `showTitle={false}` in which case it will only\nbe a label for screen readers.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Controls whether the title is displayed (see `title` prop). Titles are only displayed on\nweb: on mobile, this parameter is ignored.",name:"showTitle",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the menu is open.",name:"open",required:!0,type:{name:"boolean"}},onOpenChange:{defaultValue:null,description:`Event handler called when the open state of the menu changes. This includes +import{j as a}from"./jsx-runtime-DR9Q75dM.js";import{r as i}from"./index-DRjF_FHU.js";import{U as L}from"./user-profile-cqTW1cHH.js";import{N as B,C as U,L as q}from"./notifications-BEKrtwGv.js";import{c as b,u as S}from"./index-CGa_gRws.js";import{c as F}from"./index-C8xBnYIG.js";import{c as C,A as V,C as $,G as W,L as K,I as H,a as X,R as z,b as J,d as Q,S as Y,e as Z,f as ee,g as oe,i as ne,h as re,P as te,D as w}from"./index-Dbt-v4y0.js";import{P as ae}from"./index-Ksfxd92j.js";import{F as se}from"./FloatingMenu-Cmtm68dq.js";import{c as ie}from"./index-lhGYx47h.js";import{d as ce,D as ue,g as pe}from"./DrawerMenu-BNILBemh.js";import{a as de,M as x}from"./MenuItem-CHeo3Dqf.js";import{S as le}from"./Separator-BbJs_Bbv.js";import{B as me}from"./Button-BORixq-h.js";import"./index-BXwbELbV.js";import"./floating-ui.react-CSvGZjCC.js";import"./index-BvEl7W6R.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./UnstyledButton-DuxpNl0e.js";function fe(e,n=[]){let o=[];function r(c,u){const s=i.createContext(u),p=o.length;o=[...o,u];const m=l=>{const{scope:h,children:D,...g}=l,k=h?.[e]?.[p]||s,G=i.useMemo(()=>g,Object.values(g));return a.jsx(k.Provider,{value:G,children:D})};m.displayName=c+"Provider";function f(l,h){const D=h?.[e]?.[p]||s,g=i.useContext(D);if(g)return g;if(u!==void 0)return u;throw new Error(`\`${l}\` must be used within \`${c}\``)}return[m,f]}const t=()=>{const c=o.map(u=>i.createContext(u));return function(s){const p=s?.[e]||c;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])}};return t.scopeName=e,[r,he(t,...n)]}function he(...e){const n=e[0];if(e.length===1)return n;const o=()=>{const r=e.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(c){const u=r.reduce((s,{useScope:p,scopeName:m})=>{const l=p(c)[`__scope${m}`];return{...s,...l}},{});return i.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return o.scopeName=n.scopeName,o}var _="DropdownMenu",[ge,mo]=fe(_,[C]),d=C(),[we,y]=ge(_),N=e=>{const{__scopeDropdownMenu:n,children:o,dir:r,open:t,defaultOpen:c,onOpenChange:u,modal:s=!0}=e,p=d(n),m=i.useRef(null),[f=!1,l]=ne({prop:t,defaultProp:c,onChange:u});return a.jsx(we,{scope:n,triggerId:S(),triggerRef:m,contentId:S(),open:f,onOpenChange:l,onOpenToggle:i.useCallback(()=>l(h=>!h),[l]),modal:s,children:a.jsx(re,{...p,open:f,onOpenChange:l,dir:r,modal:s,children:o})})};N.displayName=_;var R="DropdownMenuTrigger",P=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,disabled:r=!1,...t}=e,c=y(R,o),u=d(o);return a.jsx(V,{asChild:!0,...u,children:a.jsx(ae.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:F(n,c.triggerRef),onPointerDown:b(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(c.onOpenToggle(),c.open||s.preventDefault())}),onKeyDown:b(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&c.onOpenToggle(),s.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});P.displayName=R;var Me="DropdownMenuPortal",j=e=>{const{__scopeDropdownMenu:n,...o}=e,r=d(n);return a.jsx(te,{...r,...o})};j.displayName=Me;var T="DropdownMenuContent",O=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=y(T,o),c=d(o),u=i.useRef(!1);return a.jsx($,{id:t.contentId,"aria-labelledby":t.triggerId,...c,...r,ref:n,onCloseAutoFocus:b(e.onCloseAutoFocus,s=>{u.current||t.triggerRef.current?.focus(),u.current=!1,s.preventDefault()}),onInteractOutside:b(e.onInteractOutside,s=>{const p=s.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,f=p.button===2||m;(!t.modal||f)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});O.displayName=T;var ve="DropdownMenuGroup",xe=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(W,{...t,...r,ref:n})});xe.displayName=ve;var be="DropdownMenuLabel",Ie=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(K,{...t,...r,ref:n})});Ie.displayName=be;var De="DropdownMenuItem",E=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(H,{...t,...r,ref:n})});E.displayName=De;var _e="DropdownMenuCheckboxItem",Se=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(X,{...t,...r,ref:n})});Se.displayName=_e;var Ce="DropdownMenuRadioGroup",ye=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(z,{...t,...r,ref:n})});ye.displayName=Ce;var Ne="DropdownMenuRadioItem",Re=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(J,{...t,...r,ref:n})});Re.displayName=Ne;var Pe="DropdownMenuItemIndicator",je=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Q,{...t,...r,ref:n})});je.displayName=Pe;var Te="DropdownMenuSeparator",Oe=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Y,{...t,...r,ref:n})});Oe.displayName=Te;var Ee="DropdownMenuArrow",Ae=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(Z,{...t,...r,ref:n})});Ae.displayName=Ee;var ke="DropdownMenuSubTrigger",Ge=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(ee,{...t,...r,ref:n})});Ge.displayName=ke;var Le="DropdownMenuSubContent",Be=i.forwardRef((e,n)=>{const{__scopeDropdownMenu:o,...r}=e,t=d(o);return a.jsx(oe,{...t,...r,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Be.displayName=Le;var Ue=N,qe=P,Fe=j,Ve=O;const $e=({onSelect:e,children:n})=>a.jsx(E,{onSelect:e??void 0,asChild:!0,children:n}),I=({title:e,showTitle:n=!0,open:o,onOpenChange:r,trigger:t,children:c,side:u="bottom",align:s="center"})=>{const p=pe(),m=p==="android"||p==="ios",f=i.useMemo(()=>({MenuItemWrapper:m?null:$e,onOpenChange:r}),[r]),l=a.jsx(de.Provider,{value:f,children:c});return m?a.jsxs(w.Root,{open:o,onOpenChange:r,children:[a.jsx(w.Trigger,{asChild:!0,children:t}),a.jsxs(w.Portal,{children:[a.jsx(w.Overlay,{className:ie(ce.bg)}),a.jsx(w.Content,{asChild:!0,children:a.jsx(ue,{title:e,children:l})})]})]}):a.jsxs(Ue,{open:o,onOpenChange:r,children:[a.jsx(qe,{asChild:!0,children:t}),a.jsx(Fe,{children:a.jsx(Ve,{asChild:!0,side:u,align:s,sideOffset:8,onCloseAutoFocus:h=>{h.preventDefault()},children:a.jsx(se,{title:e,showTitle:n,children:l})})})]})};try{I.displayName="Menu",I.__docgenInfo={description:"A menu opened by pressing a button.",displayName:"Menu",props:{title:{defaultValue:null,description:"The menu title. This can be hidden with `showTitle={false}` in which case it will only\nbe a label for screen readers.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Controls whether the title is displayed (see `title` prop). Titles are only displayed on\nweb: on mobile, this parameter is ignored.",name:"showTitle",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the menu is open.",name:"open",required:!0,type:{name:"boolean"}},onOpenChange:{defaultValue:null,description:`Event handler called when the open state of the menu changes. This includes anything like clicking the trigger, selecting a menu item, or dismissing the menu with the mouse or keyboard.`,name:"onOpenChange",required:!0,type:{name:"(open: boolean) => void"}},trigger:{defaultValue:null,description:`The button that opens the menu. This must be a component that accepts a ref and spreads props. diff --git a/assets/MenuItem-2y-pqdrL.js b/assets/MenuItem-CHeo3Dqf.js similarity index 96% rename from assets/MenuItem-2y-pqdrL.js rename to assets/MenuItem-CHeo3Dqf.js index 3344b804..99a42c6d 100644 --- a/assets/MenuItem-2y-pqdrL.js +++ b/assets/MenuItem-CHeo3Dqf.js @@ -1,4 +1,4 @@ import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{c as N}from"./index-lhGYx47h.js";import{r as l}from"./index-DRjF_FHU.js";import{T as w}from"./Text-Ca3mYoxg.js";import{C as M}from"./chevron-right-DND12YKW.js";import{S as E}from"./index-C8xBnYIG.js";const m=l.createContext(null);try{m.displayName="MenuContext",m.__docgenInfo={description:`A React context providing information about the menu in which a given component resides.`,displayName:"MenuContext",props:{}}}catch{}const V="_item_8j2l6_17",T="_interactive_8j2l6_35",k="_icon_8j2l6_43",q="_label_8j2l6_52",R="_disabled_8j2l6_118",e={item:V,interactive:T,"no-label":"_no-label_8j2l6_39",icon:k,label:q,"nav-hint":"_nav-hint_8j2l6_59",disabled:R},p=({as:o,className:h,Icon:s,label:r,labelProps:b,onSelect:n,kind:f="primary",children:v,onClick:_,disabled:u,...y})=>{const a=o??"button",i=l.useContext(m),g=l.useCallback(I=>{if(_?.(I),n!==null&&i?.MenuItemWrapper==null){const c=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0});n(c),c.defaultPrevented||i?.onOpenChange(!1)}},[i,n]),x=l.isValidElement(s),C=s,j=s,d=t.jsxs(a,{role:"menuitem",...y,className:N(h,e.item,{[e.interactive]:n!==null,[e["no-label"]]:r===null,[e.disabled]:u}),"data-kind":f,onClick:g,disabled:a==="button"?u:void 0,"aria-disabled":a==="button"?void 0:u,children:[x?t.jsx(E,{className:e.icon,children:C}):t.jsx(j,{width:24,height:24,className:e.icon,"aria-hidden":!0}),r!==null&&t.jsx(w,{className:e.label,size:"md",weight:"medium",as:"span",...b,children:r}),(a==="button"||a==="a")&&t.jsx(M,{width:8,height:24,className:e["nav-hint"],"aria-hidden":!0,viewBox:"8 0 8 24"}),v]});return i?.MenuItemWrapper==null||n===null?d:t.jsx(i.MenuItemWrapper,{onSelect:n,children:d})};try{p.displayName="MenuItem",p.__docgenInfo={description:"An item within a menu, acting either as a navigation button, or simply a\ncontainer for other interactive elements.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"MenuItem",props:{as:{defaultValue:{value:"button"},description:"The element type of this menu item.",name:"as",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"a"'},{value:'"div"'}]}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},Icon:{defaultValue:null,description:"The icon to show on this menu item.\nWhen `Icon` is a ReactNode, it should spread the props",name:"Icon",required:!0,type:{name:"ReactNode | ComponentType>"}},label:{defaultValue:null,description:"The label to show on this menu item.",name:"label",required:!0,type:{name:"string | null"}},labelProps:{defaultValue:null,description:"Additional properties to pass to the Text label component.",name:"labelProps",required:!1,type:{name:'Omit; type?: "heading" | "body"; weight?: "medium" | "bold" | "regular" | "semibold" | undefined; size?: "sm" | ... 4 more ... | undefined; className?: string | undefined; } & Omit<...> & { ...; }, "type"> & { ...; }, "ref"> | undefined'}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. Calling event.preventDefault in this handler will prevent the menu from -being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},kind:{defaultValue:{value:"primary"},description:"The color variant of the menu item.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"critical"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}}}catch{}export{p as M,m as a}; +being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},kind:{defaultValue:{value:"primary"},description:"The color variant of the menu item.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"critical"'},{value:'"primary"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}}}catch{}export{p as M,m as a}; diff --git a/assets/MenuItem.stories-DKU433_q.js b/assets/MenuItem.stories-Cm_ealuo.js similarity index 98% rename from assets/MenuItem.stories-DKU433_q.js rename to assets/MenuItem.stories-Cm_ealuo.js index 258f7d3c..2d605c21 100644 --- a/assets/MenuItem.stories-DKU433_q.js +++ b/assets/MenuItem.stories-Cm_ealuo.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{C as p,E as g}from"./extensions-DRIHxRsb.js";import{S as b}from"./settings-xa_4DC6i.js";import{M as l}from"./MenuItem-2y-pqdrL.js";import{T as d}from"./Text-Ca3mYoxg.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./Typography-f-oayws_.js";const P={title:"Menu/MenuItem",component:l,tags:["autodocs"],argTypes:{onClick:{action:"clicked!"}},args:{label:"Menu item",children:e.jsx(d,{as:"span",size:"sm",children:"99"}),Icon:p},decorators:[u=>e.jsx("div",{style:{width:300},children:e.jsx(u,{})})]},s={render:()=>e.jsxs("div",{style:{width:300},children:[e.jsx(l,{Icon:p,label:"First item",onSelect:()=>{},children:e.jsx(d,{as:"span",size:"sm",children:"99"})}),e.jsx(l,{Icon:g,label:"Second item with a name that's quite long",onSelect:()=>{}}),e.jsx(l,{Icon:b,label:null,onSelect:()=>{},children:e.jsx(d,{as:"span",size:"sm",children:"Third item without a label"})})]})},r={args:{kind:"primary"}},a={args:{kind:"critical"}},o={args:{...r.args,disabled:!0}},t={args:{...a.args,disabled:!0}};function h(u){return e.jsx("div",{style:{height:24,width:48,backgroundColor:"teal"},...u})}const n={args:{...r.args,Icon:e.jsx(h,{})}},i={args:{...r.args,label:void 0}},c={args:{...r.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}},m={args:{...r.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, empor incididunt ut labore et dolore magna aliqua.",children:e.jsx(d,{as:"span",size:"sm",children:"Longer children too"})}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{C as p,E as g}from"./extensions-DRIHxRsb.js";import{S as b}from"./settings-xa_4DC6i.js";import{M as l}from"./MenuItem-CHeo3Dqf.js";import{T as d}from"./Text-Ca3mYoxg.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./Typography-f-oayws_.js";const P={title:"Menu/MenuItem",component:l,tags:["autodocs"],argTypes:{onClick:{action:"clicked!"}},args:{label:"Menu item",children:e.jsx(d,{as:"span",size:"sm",children:"99"}),Icon:p},decorators:[u=>e.jsx("div",{style:{width:300},children:e.jsx(u,{})})]},s={render:()=>e.jsxs("div",{style:{width:300},children:[e.jsx(l,{Icon:p,label:"First item",onSelect:()=>{},children:e.jsx(d,{as:"span",size:"sm",children:"99"})}),e.jsx(l,{Icon:g,label:"Second item with a name that's quite long",onSelect:()=>{}}),e.jsx(l,{Icon:b,label:null,onSelect:()=>{},children:e.jsx(d,{as:"span",size:"sm",children:"Third item without a label"})})]})},r={args:{kind:"primary"}},a={args:{kind:"critical"}},o={args:{...r.args,disabled:!0}},t={args:{...a.args,disabled:!0}};function h(u){return e.jsx("div",{style:{height:24,width:48,backgroundColor:"teal"},...u})}const n={args:{...r.args,Icon:e.jsx(h,{})}},i={args:{...r.args,label:void 0}},c={args:{...r.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}},m={args:{...r.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, empor incididunt ut labore et dolore magna aliqua.",children:e.jsx(d,{as:"span",size:"sm",children:"Longer children too"})}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{ render: () =>
diff --git a/assets/PasswordForm.stories-DHmbjh6I.js b/assets/PasswordForm.stories-BwMof9Sb.js similarity index 98% rename from assets/PasswordForm.stories-DHmbjh6I.js rename to assets/PasswordForm.stories-BwMof9Sb.js index 70a877f6..a0da59ba 100644 --- a/assets/PasswordForm.stories-DHmbjh6I.js +++ b/assets/PasswordForm.stories-BwMof9Sb.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{W as p}from"./warning-DNnCy5FR.js";import{P as s}from"./Progress-D9XRWslr.js";import{T as x}from"./Tooltip-CJDZH4qZ.js";import{R as r,H as g,S as w}from"./Message-t35Ysetp.js";import{a}from"./Password-DdR5EiJH.js";import{L as o,F as t}from"./Label-BsNBFg9B.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";import"./floating-ui.react-CSvGZjCC.js";import"./index-4or38LtJ.js";import"./index-CGa_gRws.js";import"./check-circle-solid-DvGH8qX5.js";import"./error-DOy7ZFuJ.js";import"./InlineSpinner-DDpdhuC2.js";import"./spinner--mCkS-8r.js";import"./visibility-on-BsZOuBEH.js";import"./Action-DhLVZEX3.js";import"./Text-DZrEBsw6.js";const O={title:"Form/Password form",component:r,tags:["autodocs"],subcomponents:{Progress:s,PasswordControl:a,Label:o,Field:t},decorators:[c=>e.jsx(x,{children:e.jsx("div",{style:{maxWidth:"378px"},children:e.jsx(c,{})})})]},n=c=>{switch(c){case 1:return"Very weak password";case 2:return"Weak password";case 3:return"Strong password";case 4:return"Very strong password";default:return"Password strength"}},d=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{}),e.jsx(s,{getValueLabel:n,size:"sm",value:0,max:4})]})}),i=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"red",value:1,max:4}),e.jsxs(g,{children:[e.jsx(p,{}),"Guess time: a few seconds. Try adding a few more words."]})]})}),l=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"hunter2"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"orange",value:2,max:4}),e.jsxs(g,{children:[e.jsx(p,{}),"Guess time: a few days. Try adding a few more words."]})]})}),m=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"this is a strong password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"lime",value:3,max:4}),e.jsx(w,{children:"Guess time: years"})]})}),u=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"this is a very strong password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"green",value:4,max:4}),e.jsx(w,{children:"Guess time: centruries"})]})});d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{W as p}from"./warning-DNnCy5FR.js";import{P as s}from"./Progress-B21ahZRG.js";import{T as x}from"./Tooltip-CJDZH4qZ.js";import{R as r,H as g,S as w}from"./Message-t35Ysetp.js";import{a}from"./Password-DdR5EiJH.js";import{L as o,F as t}from"./Label-BsNBFg9B.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";import"./floating-ui.react-CSvGZjCC.js";import"./index-4or38LtJ.js";import"./index-CGa_gRws.js";import"./check-circle-solid-DvGH8qX5.js";import"./error-DOy7ZFuJ.js";import"./InlineSpinner-DDpdhuC2.js";import"./spinner--mCkS-8r.js";import"./visibility-on-BsZOuBEH.js";import"./Action-DhLVZEX3.js";import"./Text-DZrEBsw6.js";const O={title:"Form/Password form",component:r,tags:["autodocs"],subcomponents:{Progress:s,PasswordControl:a,Label:o,Field:t},decorators:[c=>e.jsx(x,{children:e.jsx("div",{style:{maxWidth:"378px"},children:e.jsx(c,{})})})]},n=c=>{switch(c){case 1:return"Very weak password";case 2:return"Weak password";case 3:return"Strong password";case 4:return"Very strong password";default:return"Password strength"}},d=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{}),e.jsx(s,{getValueLabel:n,size:"sm",value:0,max:4})]})}),i=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"red",value:1,max:4}),e.jsxs(g,{children:[e.jsx(p,{}),"Guess time: a few seconds. Try adding a few more words."]})]})}),l=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"hunter2"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"orange",value:2,max:4}),e.jsxs(g,{children:[e.jsx(p,{}),"Guess time: a few days. Try adding a few more words."]})]})}),m=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"this is a strong password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"lime",value:3,max:4}),e.jsx(w,{children:"Guess time: years"})]})}),u=()=>e.jsx(r,{children:e.jsxs(t,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(a,{defaultValue:"this is a very strong password"}),e.jsx(s,{getValueLabel:n,size:"sm",tint:"green",value:4,max:4}),e.jsx(w,{children:"Guess time: centruries"})]})});d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`() => { return diff --git a/assets/Progress-D9XRWslr.js b/assets/Progress-B21ahZRG.js similarity index 88% rename from assets/Progress-D9XRWslr.js rename to assets/Progress-B21ahZRG.js index 62d3e9ab..369848f1 100644 --- a/assets/Progress-D9XRWslr.js +++ b/assets/Progress-B21ahZRG.js @@ -3,6 +3,6 @@ import{j as n}from"./jsx-runtime-DR9Q75dM.js";import{r as p}from"./index-DRjF_FH - less than the value passed to \`max\` (or ${b} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. -Defaulting to \`null\`.`}var A=N,M=j;const P=p.forwardRef(function({size:r,tint:i,className:s,value:a,max:c,getValueLabel:u,...t},o){const l=c??1,v=a??l,x=p.useId(),f=u?u(v,l):null;return n.jsxs("div",{className:V(d["progress-bar-container"],s),"data-tint":i,...t,children:[f&&n.jsx("div",{id:x,className:d["progress-bar-label"],children:f}),n.jsx(A,{className:d["progress-bar"],"data-size":r,max:l,value:v,ref:o,"aria-labelledby":f?x:void 0,getValueLabel:u,children:n.jsx(M,{className:d["progress-bar-indicator"],style:{transform:`translateX(-${100-v/l*100}%)`}})})]})});try{P.displayName="Progress",P.__docgenInfo={description:"Displays an indicator showing the completion progress of a task, optionally with a label",displayName:"Progress",props:{className:{defaultValue:null,description:"The CSS class name forwarded to the root element",name:"className",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"The value of the progress bar. Defaults to max if not provided",name:"value",required:!1,type:{name:"number | null"}},size:{defaultValue:null,description:"The size variant of the progress bar",name:"size",required:!0,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},tint:{defaultValue:null,description:`The colour variant to use for the progress bar indicator -If not set, the progress bar will be rendered with a gray tone, which should only be used when the progress bar is empty`,name:"tint",required:!1,type:{name:"enum",value:[{value:'"green"'},{value:'"lime"'},{value:'"orange"'},{value:'"red"'}]}},max:{defaultValue:null,description:"The maximum value of the progress bar. Defaults to 1 if not provided",name:"max",required:!1,type:{name:"number"}},getValueLabel:{defaultValue:null,description:`A function to get the text label to display in the progress bar. +Defaulting to \`null\`.`}var A=N,M=j;const P=p.forwardRef(function({size:r,tint:i,className:s,value:a,max:c,getValueLabel:u,...t},o){const l=c??1,v=a??l,x=p.useId(),f=u?u(v,l):null;return n.jsxs("div",{className:V(d["progress-bar-container"],s),"data-tint":i,...t,children:[f&&n.jsx("div",{id:x,className:d["progress-bar-label"],children:f}),n.jsx(A,{className:d["progress-bar"],"data-size":r,max:l,value:v,ref:o,"aria-labelledby":f?x:void 0,getValueLabel:u,children:n.jsx(M,{className:d["progress-bar-indicator"],style:{transform:`translateX(-${100-v/l*100}%)`}})})]})});try{P.displayName="Progress",P.__docgenInfo={description:"Displays an indicator showing the completion progress of a task, optionally with a label",displayName:"Progress",props:{className:{defaultValue:null,description:"The CSS class name forwarded to the root element",name:"className",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"The value of the progress bar. Defaults to max if not provided",name:"value",required:!1,type:{name:"number | null"}},size:{defaultValue:null,description:"The size variant of the progress bar",name:"size",required:!0,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},max:{defaultValue:null,description:"The maximum value of the progress bar. Defaults to 1 if not provided",name:"max",required:!1,type:{name:"number"}},tint:{defaultValue:null,description:`The colour variant to use for the progress bar indicator +If not set, the progress bar will be rendered with a gray tone, which should only be used when the progress bar is empty`,name:"tint",required:!1,type:{name:"enum",value:[{value:'"green"'},{value:'"lime"'},{value:'"orange"'},{value:'"red"'}]}},getValueLabel:{defaultValue:null,description:`A function to get the text label to display in the progress bar. If set, it will display a label on top of the progress bar`,name:"getValueLabel",required:!1,type:{name:"((value: number, max: number) => string)"}}}}}catch{}export{P}; diff --git a/assets/Progress.stories-CjB_Hs0g.js b/assets/Progress.stories-DAVWD3Uk.js similarity index 97% rename from assets/Progress.stories-CjB_Hs0g.js rename to assets/Progress.stories-DAVWD3Uk.js index fd06a6ef..dd1b8c37 100644 --- a/assets/Progress.stories-CjB_Hs0g.js +++ b/assets/Progress.stories-DAVWD3Uk.js @@ -1,4 +1,4 @@ -import{P as u}from"./Progress-D9XRWslr.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";function i(e){return e===0?"Empty progress bar":e<=25?"Quarter-full progress bar":e<=50?"Half-full progress bar":e<=75?"Three-quarters full progress bar":"Full progress bar"}const L={title:"Progress",component:u,tags:["autodocs"],argTypes:{max:{type:"number"},value:{type:"number"}},args:{getValueLabel:i,size:"sm",max:100,value:50}},r={args:{tint:"green",size:"lg",value:50}},s={args:{tint:"green",size:"sm",value:50}},a={args:{tint:"green",size:"lg",value:100}},n={args:{tint:"green",size:"sm",value:100}},t={args:{value:0}},o={args:{value:25,tint:"red"}},l={args:{value:50,tint:"orange"}},c={args:{value:75,tint:"lime"}},m={args:{value:100,tint:"green"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{ +import{P as u}from"./Progress-B21ahZRG.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./index-lhGYx47h.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";import"./index-C8xBnYIG.js";function i(e){return e===0?"Empty progress bar":e<=25?"Quarter-full progress bar":e<=50?"Half-full progress bar":e<=75?"Three-quarters full progress bar":"Full progress bar"}const L={title:"Progress",component:u,tags:["autodocs"],argTypes:{max:{type:"number"},value:{type:"number"}},args:{getValueLabel:i,size:"sm",max:100,value:50}},r={args:{tint:"green",size:"lg",value:50}},s={args:{tint:"green",size:"sm",value:50}},a={args:{tint:"green",size:"lg",value:100}},n={args:{tint:"green",size:"sm",value:100}},t={args:{value:0}},o={args:{value:25,tint:"red"}},l={args:{value:50,tint:"orange"}},c={args:{value:75,tint:"lime"}},m={args:{value:100,tint:"green"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{ args: { tint: "green", size: "lg", diff --git a/assets/ToggleMenuItem.stories-BQC7vbws.js b/assets/ToggleMenuItem.stories-DfylCe--.js similarity index 97% rename from assets/ToggleMenuItem.stories-BQC7vbws.js rename to assets/ToggleMenuItem.stories-DfylCe--.js index 28fa78ec..79931701 100644 --- a/assets/ToggleMenuItem.stories-BQC7vbws.js +++ b/assets/ToggleMenuItem.stories-DfylCe--.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{r}from"./index-DRjF_FHU.js";import{C as h,E as g}from"./extensions-DRIHxRsb.js";import{M as f}from"./MenuItem-2y-pqdrL.js";import{T as I}from"./Toggle-BRCP4wr-.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-4or38LtJ.js";import"./index-CGa_gRws.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";const n=r.forwardRef(function({className:a,Icon:s,label:i,onSelect:l,checked:c,disabled:m},d){const u=r.useId(),p=r.useCallback(()=>{},[]);return t.jsx(f,{as:"div",role:"menuitemcheckbox","aria-checked":c,className:a,Icon:s,label:i,onSelect:l,disabled:m,children:t.jsx(I,{id:u,ref:d,"aria-hidden":!0,checked:c,disabled:m,onChange:p})})});try{n.displayName="ToggleMenuItem",n.__docgenInfo={description:"A menu item with a toggle control.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"ToggleMenuItem",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{r}from"./index-DRjF_FHU.js";import{C as h,E as g}from"./extensions-DRIHxRsb.js";import{M as f}from"./MenuItem-CHeo3Dqf.js";import{T as I}from"./Toggle-BRCP4wr-.js";import"./index-lhGYx47h.js";import"./Text-Ca3mYoxg.js";import"./Typography-f-oayws_.js";import"./chevron-right-DND12YKW.js";import"./index-C8xBnYIG.js";import"./index-4or38LtJ.js";import"./index-CGa_gRws.js";import"./index-BXwbELbV.js";import"./index-Ksfxd92j.js";import"./index-BvEl7W6R.js";const n=r.forwardRef(function({className:a,Icon:s,label:i,onSelect:l,checked:c,disabled:m},d){const u=r.useId(),p=r.useCallback(()=>{},[]);return t.jsx(f,{as:"div",role:"menuitemcheckbox","aria-checked":c,className:a,Icon:s,label:i,onSelect:l,disabled:m,children:t.jsx(I,{id:u,ref:d,"aria-hidden":!0,checked:c,disabled:m,onChange:p})})});try{n.displayName="ToggleMenuItem",n.__docgenInfo={description:"A menu item with a toggle control.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"ToggleMenuItem",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. Calling event.preventDefault in this handler will prevent the menu from being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},label:{defaultValue:null,description:"The label to show on this menu item.",name:"label",required:!0,type:{name:"string | null"}},Icon:{defaultValue:null,description:"The icon to show on this menu item.\nWhen `Icon` is a ReactNode, it should spread the props",name:"Icon",required:!0,type:{name:"ReactNode | ComponentType>"}},checked:{defaultValue:null,description:"Whether the toggle is checked.",name:"checked",required:!0,type:{name:"boolean"}}}}}catch{}const F={title:"Menu/ToggleMenuItem",component:n,tags:["autodocs"],argTypes:{},args:{}},b=o=>{const[a,s]=r.useState(!1);return t.jsxs("div",{style:{width:300},children:[t.jsx(n,{...o,Icon:h,label:"First item",checked:a,onSelect:i=>{i.preventDefault(),s(l=>!l)}}),t.jsx(n,{...o,Icon:g,label:"Second item with a name that's quite long",checked:!0,disabled:!0})]})},e=b.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => { const [firstChecked, setFirstChecked] = useState(false); diff --git a/assets/entry-preview-B0uPBCgm.js b/assets/entry-preview-CErtCocD.js similarity index 99% rename from assets/entry-preview-B0uPBCgm.js rename to assets/entry-preview-CErtCocD.js index ee62ccfe..feaeea37 100644 --- a/assets/entry-preview-B0uPBCgm.js +++ b/assets/entry-preview-CErtCocD.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-BZ4hdgop.js","./index-DRjF_FHU.js","./index-BvEl7W6R.js"])))=>i.map(i=>d[i]); -import{_ as rr}from"./iframe-DXJOTyWR.js";import{_ as tr,a as sr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-DRjF_FHU.js";import{r as nr}from"./index-BvEl7W6R.js";import"../sb-preview/runtime.js";var b={};/** +import{_ as rr}from"./iframe-Bv-U4SsH.js";import{_ as tr,a as sr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-DRjF_FHU.js";import{r as nr}from"./index-BvEl7W6R.js";import"../sb-preview/runtime.js";var b={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/iframe-DXJOTyWR.js b/assets/iframe-Bv-U4SsH.js similarity index 87% rename from assets/iframe-DXJOTyWR.js rename to assets/iframe-Bv-U4SsH.js index aade04e3..0ebbff4e 100644 --- a/assets/iframe-DXJOTyWR.js +++ b/assets/iframe-Bv-U4SsH.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert.stories-DureFQFq.js","./jsx-runtime-DR9Q75dM.js","./index-DRjF_FHU.js","./Button-BORixq-h.js","./index-lhGYx47h.js","./UnstyledButton-DuxpNl0e.js","./Button-W0jf5teY.css","./info-D9sKA_Xt.js","./error-DOy7ZFuJ.js","./close-CWATPeIo.js","./Text-Ca3mYoxg.js","./Typography-f-oayws_.js","./Typography-CFo2KqHV.css","./IconButton-20Ia4EIn.js","./IndicatorIcon-RjQ7x471.js","./IndicatorIcon-Df2gvoto.css","./Tooltip-CJDZH4qZ.js","./floating-ui.react-CSvGZjCC.js","./index-BvEl7W6R.js","./Tooltip-Bx3q_cph.css","./IconButton-X8Xpz74a.css","./Alert-RAKRA8iu.css","./Avatar.stories-DCtMmUkz.js","./Avatar-Bru8WDRV.js","./Avatar-CE8ocXGL.css","./AvatarStack.stories-CmnnDakK.js","./Badge.stories-BOflxP3g.js","./Badge-DHQHyvgX.css","./ActionButton.stories-CvA5yoOo.js","./index-JRK_GaCU.js","./index-D0J83cVN.js","./notifications-BEKrtwGv.js","./extensions-DRIHxRsb.js","./check-circle-solid-DvGH8qX5.js","./check-BWxs5Tf9.js","./chevron-down-vguALCSX.js","./chevron-right-DND12YKW.js","./search-DQyZo8im.js","./settings-xa_4DC6i.js","./spinner--mCkS-8r.js","./threads-CbVN7W51.js","./user-profile-cqTW1cHH.js","./visibility-on-BsZOuBEH.js","./warning-DNnCy5FR.js","./Button.stories--uSISVG6.js","./IconButton.stories-CKs5b45M.js","./Dropdown.stories-Rlnz0MHc.js","./Dropdown-C4zrN70D.css","./Action.stories-DzZu_GF0.js","./Action-DhLVZEX3.js","./index-4or38LtJ.js","./index-CGa_gRws.js","./index-C8xBnYIG.js","./index-BXwbELbV.js","./index-Ksfxd92j.js","./Text-DZrEBsw6.js","./Text-CJ1qRzt7.css","./Action-BdUqm_WT.css","./Checkbox.stories-bVpTzKvF.js","./Checkbox-CiKmyzre.js","./Checkbox-BH8Av3st.css","./EditInPlace.stories-BwwiXit0.js","./Message-t35Ysetp.js","./Label-BsNBFg9B.js","./Label-B1mKVwiw.css","./InlineSpinner-DDpdhuC2.js","./InlineSpinner-D_6da_B5.css","./EditInPlace-BZjvBnvF.css","./MFA.stories-BgCa2twE.js","./MFA-ECyXoHb1.js","./MFA-olUceP-x.css","./Password.stories-D3OUTmlb.js","./Password-DdR5EiJH.js","./Radio.stories-DaNVXt2N.js","./Radio-2VunTFL7.js","./Radio-DlPAN7Bx.css","./Text.stories-BPCgZ96x.js","./Toggle.stories--3jyE05F.js","./Toggle-BRCP4wr-.js","./Toggle-CNr3UW_e.css","./Form.stories-CsBAflxt.js","./PasswordForm.stories-DHmbjh6I.js","./Progress-D9XRWslr.js","./Progress-DsAeAa3U.css","./Glass.stories-dLtCz1BZ.js","./Glass-wf6Qw4nq.css","./Icon.stories--8crEGuF.js","./IndicatorIcon.stories-1xIo_hQo.js","./InlineSpinner.stories-CltYLVR9.js","./Link.stories-B0N9m-9T.js","./Link-BgRMLc0G.css","./ContextMenu.stories-CMChPq6P.js","./index-Dbt-v4y0.js","./FloatingMenu-Cmtm68dq.js","./FloatingMenu-BDo-TlpM.css","./DrawerMenu-BNILBemh.js","./DrawerMenu-CGcQbDnp.css","./MenuItem-2y-pqdrL.js","./MenuItem-Bu829Vy7.css","./Separator-BbJs_Bbv.js","./Separator-BT_CUzhe.css","./DrawerMenu.stories-CKZUhLpV.js","./FloatingMenu.stories-DdKhpZi1.js","./Menu.stories-Ds0onutq.js","./MenuItem.stories-DKU433_q.js","./ToggleMenuItem.stories-BQC7vbws.js","./NavBar.stories-CZtOku47.js","./NavItem-CZaXsd0a.js","./NavItem-D86QAt32.css","./NavItem.stories-C3HoG-Mb.js","./Progress.stories-CjB_Hs0g.js","./ReleaseAnnouncement.stories-B2-OxqfX.js","./ReleaseAnnouncement-DDl8J4p8.css","./Search.stories-Bq6hTNC5.js","./Search-DWHFY3y9.css","./Separator.stories-CRxuvXnz.js","./Toast.stories-C23ZRf6c.js","./Toast-YaIeoY4p.css","./Tooltip.stories-CBO-GaDq.js","./Heading.stories-DAvVKJ6f.js","./Text.stories-i1JtWLhZ.js","./entry-preview-B0uPBCgm.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-CfC3f9x0.js","./index-CidnEmUr.js","./preview-BhhEZcNS.js","./index-D-8MO0q_.js","./preview-ncvtW_hb.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-CA0YOuCz.js","./preview-JGG8-KZq.js","./preview-DWnhN9Tl.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function m(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function a(o){if(o.ep)return;o.ep=!0;const e=m(o);fetch(o.href,e)}})();const T="modulepreload",I=function(r,_){return new URL(r,_).href},O={},t=function(_,m,a){let o=Promise.resolve();if(m&&m.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),d=i?.nonce||i?.getAttribute("nonce");o=Promise.allSettled(m.map(n=>{if(n=I(n,a),n in O)return;O[n]=!0;const p=n.endsWith(".css"),R=p?'[rel="stylesheet"]':"";if(!!a)for(let u=s.length-1;u>=0;u--){const E=s[u];if(E.href===n&&(!p||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const c=document.createElement("link");if(c.rel=p?"stylesheet":T,p||(c.as="script"),c.crossOrigin="",c.href=n,d&&c.setAttribute("nonce",d),document.head.appendChild(c),p)return new Promise((u,E)=>{c.addEventListener("load",u),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&e(i.reason);return _().catch(e)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,l=L({page:"preview"});P.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const y={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-DureFQFq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-DCtMmUkz.js"),__vite__mapDeps([22,1,2,23,4,24]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-CmnnDakK.js"),__vite__mapDeps([25,1,2,4,23,24]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-BOflxP3g.js"),__vite__mapDeps([26,1,2,4,11,12,27]),import.meta.url),"./src/components/Button/ActionButton.stories.tsx":async()=>t(()=>import("./ActionButton.stories-CvA5yoOo.js"),__vite__mapDeps([28,1,2,29,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43,3,4,5,6,16,17,18,19]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories--uSISVG6.js"),__vite__mapDeps([44,29,3,1,2,4,5,6,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-CKs5b45M.js"),__vite__mapDeps([45,1,2,29,13,4,5,14,15,16,17,18,19,20,41]),import.meta.url),"./src/components/Dropdown/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-Rlnz0MHc.js"),__vite__mapDeps([46,1,2,35,34,8,4,17,18,29,47]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-DzZu_GF0.js"),__vite__mapDeps([48,1,2,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43,16,17,18,4,19,49,50,51,52,53,54,55,56,57]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-bVpTzKvF.js"),__vite__mapDeps([58,1,2,59,4,34,50,51,52,53,54,18,60]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-BwwiXit0.js"),__vite__mapDeps([61,1,2,29,62,50,51,52,53,54,18,63,4,64,33,8,65,39,66,16,17,19,34,9,55,56,3,5,6,67]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-BgCa2twE.js"),__vite__mapDeps([68,1,2,69,4,50,51,52,53,54,18,70]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-D3OUTmlb.js"),__vite__mapDeps([71,1,2,16,17,18,4,19,29,72,50,51,52,53,54,42,49,55,56,57]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-DaNVXt2N.js"),__vite__mapDeps([73,1,2,74,4,50,51,52,53,54,18,75]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-BPCgZ96x.js"),__vite__mapDeps([76,1,2,55,50,51,52,53,54,18,4,56]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories--3jyE05F.js"),__vite__mapDeps([77,78,1,2,4,50,51,52,53,54,18,79]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-CsBAflxt.js"),__vite__mapDeps([80,1,2,16,17,18,4,19,62,50,51,52,53,54,63,64,33,8,65,39,66,55,56,72,42,49,57,69,70,59,34,60,74,75,78,79,3,5,6]),import.meta.url),"./src/components/Form/PasswordForm.stories.tsx":async()=>t(()=>import("./PasswordForm.stories-DHmbjh6I.js"),__vite__mapDeps([81,1,2,43,82,4,53,54,18,52,83,16,17,19,62,50,51,63,64,33,8,65,39,66,72,42,49,55,56,57]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-dLtCz1BZ.js"),__vite__mapDeps([84,1,2,4,10,11,12,85]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories--8crEGuF.js"),__vite__mapDeps([86,1,2,40]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-1xIo_hQo.js"),__vite__mapDeps([87,1,2,29,14,4,15,40]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-CltYLVR9.js"),__vite__mapDeps([88,65,1,2,39,66]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-B0N9m-9T.js"),__vite__mapDeps([89,1,2,4,90]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-CMChPq6P.js"),__vite__mapDeps([91,1,2,41,31,51,54,18,52,92,53,17,93,4,10,11,12,94,95,96,97,36,98,99,100]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-CKZUhLpV.js"),__vite__mapDeps([101,1,2,41,31,95,4,96,97,10,11,12,36,52,98,99,54,18,17,100]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-DdKhpZi1.js"),__vite__mapDeps([102,1,2,41,31,93,4,10,11,12,94,97,36,52,98,99,54,18,17,100]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-Ds0onutq.js"),__vite__mapDeps([103,1,2,41,31,51,52,92,53,54,18,17,93,4,10,11,12,94,95,96,97,36,98,99,100,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-DKU433_q.js"),__vite__mapDeps([104,1,2,32,38,97,4,10,11,12,36,52,98]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-BQC7vbws.js"),__vite__mapDeps([105,1,2,32,97,4,10,11,12,36,52,98,78,50,51,53,54,18,79]),import.meta.url),"./src/components/Nav/NavBar.stories.tsx":async()=>t(()=>import("./NavBar.stories-CZtOku47.js"),__vite__mapDeps([106,1,2,107,4,108]),import.meta.url),"./src/components/Nav/NavItem.stories.tsx":async()=>t(()=>import("./NavItem.stories-C3HoG-Mb.js"),__vite__mapDeps([109,1,2,107,4,108]),import.meta.url),"./src/components/Progress/Progress.stories.tsx":async()=>t(()=>import("./Progress.stories-CjB_Hs0g.js"),__vite__mapDeps([110,82,1,2,4,53,54,18,52,83]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-B2-OxqfX.js"),__vite__mapDeps([111,1,2,17,18,10,11,4,12,3,5,6,112]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-Bq6hTNC5.js"),__vite__mapDeps([113,1,2,4,37,63,50,51,52,53,54,18,64,114]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-CRxuvXnz.js"),__vite__mapDeps([115,99,1,2,4,54,18,52,17,100]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-C23ZRf6c.js"),__vite__mapDeps([116,1,2,4,117]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-CBO-GaDq.js"),__vite__mapDeps([118,1,2,16,17,18,4,19,41,13,5,14,15,20]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-DAvVKJ6f.js"),__vite__mapDeps([119,1,2,11,4,12,10]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-i1JtWLhZ.js"),__vite__mapDeps([120,10,1,2,11,4,12]),import.meta.url)};async function A(r){return y[r]()}const{composeConfigs:v,PreviewWeb:D,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,V=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-B0uPBCgm.js"),__vite__mapDeps([121,122,2,18]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-CfC3f9x0.js"),__vite__mapDeps([123,122,124,2]),import.meta.url),r[2]??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([125,126]),import.meta.url),r[3]??t(()=>import("./preview-C4N1rUWo.js"),[],import.meta.url),r[4]??t(()=>import("./preview-DHPc-V4N.js"),[],import.meta.url),r[5]??t(()=>import("./preview-ncvtW_hb.js"),__vite__mapDeps([127,128]),import.meta.url),r[6]??t(()=>import("./preview-DYzi3Z2p.js"),[],import.meta.url),r[7]??t(()=>import("./preview-CuLlOZat.js"),[],import.meta.url),r[8]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([129,128]),import.meta.url),r[9]??t(()=>import("./preview-caVMbCIR.js"),[],import.meta.url),r[10]??t(()=>import("./preview-CA0YOuCz.js"),__vite__mapDeps([130,29]),import.meta.url),r[11]??t(()=>import("./preview-CVgpLj3b.js"),[],import.meta.url),r[12]??t(()=>import("./preview-JGG8-KZq.js"),__vite__mapDeps([131,2,132]),import.meta.url)]);return v(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(A,V);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert.stories-DureFQFq.js","./jsx-runtime-DR9Q75dM.js","./index-DRjF_FHU.js","./Button-BORixq-h.js","./index-lhGYx47h.js","./UnstyledButton-DuxpNl0e.js","./Button-W0jf5teY.css","./info-D9sKA_Xt.js","./error-DOy7ZFuJ.js","./close-CWATPeIo.js","./Text-Ca3mYoxg.js","./Typography-f-oayws_.js","./Typography-CFo2KqHV.css","./IconButton-20Ia4EIn.js","./IndicatorIcon-RjQ7x471.js","./IndicatorIcon-Df2gvoto.css","./Tooltip-CJDZH4qZ.js","./floating-ui.react-CSvGZjCC.js","./index-BvEl7W6R.js","./Tooltip-Bx3q_cph.css","./IconButton-X8Xpz74a.css","./Alert-RAKRA8iu.css","./Avatar.stories-DCtMmUkz.js","./Avatar-Bru8WDRV.js","./Avatar-CE8ocXGL.css","./AvatarStack.stories-CmnnDakK.js","./Badge.stories-BOflxP3g.js","./Badge-DHQHyvgX.css","./ActionButton.stories-CvA5yoOo.js","./index-JRK_GaCU.js","./index-D0J83cVN.js","./notifications-BEKrtwGv.js","./extensions-DRIHxRsb.js","./check-circle-solid-DvGH8qX5.js","./check-BWxs5Tf9.js","./chevron-down-vguALCSX.js","./chevron-right-DND12YKW.js","./search-DQyZo8im.js","./settings-xa_4DC6i.js","./spinner--mCkS-8r.js","./threads-CbVN7W51.js","./user-profile-cqTW1cHH.js","./visibility-on-BsZOuBEH.js","./warning-DNnCy5FR.js","./Button.stories--uSISVG6.js","./IconButton.stories-CKs5b45M.js","./Dropdown.stories-Rlnz0MHc.js","./Dropdown-C4zrN70D.css","./Action.stories-DzZu_GF0.js","./Action-DhLVZEX3.js","./index-4or38LtJ.js","./index-CGa_gRws.js","./index-C8xBnYIG.js","./index-BXwbELbV.js","./index-Ksfxd92j.js","./Text-DZrEBsw6.js","./Text-CJ1qRzt7.css","./Action-BdUqm_WT.css","./Checkbox.stories-bVpTzKvF.js","./Checkbox-CiKmyzre.js","./Checkbox-BH8Av3st.css","./EditInPlace.stories-B8-xI4D9.js","./Message-t35Ysetp.js","./Label-BsNBFg9B.js","./Label-B1mKVwiw.css","./InlineSpinner-DDpdhuC2.js","./InlineSpinner-D_6da_B5.css","./EditInPlace-BZjvBnvF.css","./MFA.stories-BgCa2twE.js","./MFA-ECyXoHb1.js","./MFA-olUceP-x.css","./Password.stories-D3OUTmlb.js","./Password-DdR5EiJH.js","./Radio.stories-DaNVXt2N.js","./Radio-2VunTFL7.js","./Radio-DlPAN7Bx.css","./Text.stories-BPCgZ96x.js","./Toggle.stories--3jyE05F.js","./Toggle-BRCP4wr-.js","./Toggle-CNr3UW_e.css","./Form.stories-CsBAflxt.js","./PasswordForm.stories-BwMof9Sb.js","./Progress-B21ahZRG.js","./Progress-DsAeAa3U.css","./Glass.stories-dLtCz1BZ.js","./Glass-wf6Qw4nq.css","./Icon.stories--8crEGuF.js","./IndicatorIcon.stories-1xIo_hQo.js","./InlineSpinner.stories-CltYLVR9.js","./Link.stories-DKUKuDDV.js","./Link-BgRMLc0G.css","./ContextMenu.stories-9isc27nP.js","./index-Dbt-v4y0.js","./FloatingMenu-Cmtm68dq.js","./FloatingMenu-BDo-TlpM.css","./DrawerMenu-BNILBemh.js","./DrawerMenu-CGcQbDnp.css","./MenuItem-CHeo3Dqf.js","./MenuItem-Bu829Vy7.css","./Separator-BbJs_Bbv.js","./Separator-BT_CUzhe.css","./DrawerMenu.stories-ClG-9o9N.js","./FloatingMenu.stories-j8u_ja_x.js","./Menu.stories-D_FDfRQp.js","./MenuItem.stories-Cm_ealuo.js","./ToggleMenuItem.stories-DfylCe--.js","./NavBar.stories-CZtOku47.js","./NavItem-CZaXsd0a.js","./NavItem-D86QAt32.css","./NavItem.stories-C3HoG-Mb.js","./Progress.stories-DAVWD3Uk.js","./ReleaseAnnouncement.stories-B2-OxqfX.js","./ReleaseAnnouncement-DDl8J4p8.css","./Search.stories-Bq6hTNC5.js","./Search-DWHFY3y9.css","./Separator.stories-CRxuvXnz.js","./Toast.stories-C23ZRf6c.js","./Toast-YaIeoY4p.css","./Tooltip.stories-CBO-GaDq.js","./Heading.stories-DAvVKJ6f.js","./Text.stories-i1JtWLhZ.js","./entry-preview-CErtCocD.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-CfC3f9x0.js","./index-CidnEmUr.js","./preview-BhhEZcNS.js","./index-D-8MO0q_.js","./preview-ncvtW_hb.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-CA0YOuCz.js","./preview-JGG8-KZq.js","./preview-DWnhN9Tl.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const e of o)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function m(o){const e={};return o.integrity&&(e.integrity=o.integrity),o.referrerPolicy&&(e.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?e.credentials="include":o.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function a(o){if(o.ep)return;o.ep=!0;const e=m(o);fetch(o.href,e)}})();const T="modulepreload",I=function(r,_){return new URL(r,_).href},O={},t=function(_,m,a){let o=Promise.resolve();if(m&&m.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),d=i?.nonce||i?.getAttribute("nonce");o=Promise.allSettled(m.map(n=>{if(n=I(n,a),n in O)return;O[n]=!0;const p=n.endsWith(".css"),R=p?'[rel="stylesheet"]':"";if(!!a)for(let u=s.length-1;u>=0;u--){const E=s[u];if(E.href===n&&(!p||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const c=document.createElement("link");if(c.rel=p?"stylesheet":T,p||(c.as="script"),c.crossOrigin="",c.href=n,d&&c.setAttribute("nonce",d),document.head.appendChild(c),p)return new Promise((u,E)=>{c.addEventListener("load",u),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&e(i.reason);return _().catch(e)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,l=L({page:"preview"});P.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const y={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-DureFQFq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-DCtMmUkz.js"),__vite__mapDeps([22,1,2,23,4,24]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-CmnnDakK.js"),__vite__mapDeps([25,1,2,4,23,24]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-BOflxP3g.js"),__vite__mapDeps([26,1,2,4,11,12,27]),import.meta.url),"./src/components/Button/ActionButton.stories.tsx":async()=>t(()=>import("./ActionButton.stories-CvA5yoOo.js"),__vite__mapDeps([28,1,2,29,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43,3,4,5,6,16,17,18,19]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories--uSISVG6.js"),__vite__mapDeps([44,29,3,1,2,4,5,6,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-CKs5b45M.js"),__vite__mapDeps([45,1,2,29,13,4,5,14,15,16,17,18,19,20,41]),import.meta.url),"./src/components/Dropdown/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-Rlnz0MHc.js"),__vite__mapDeps([46,1,2,35,34,8,4,17,18,29,47]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-DzZu_GF0.js"),__vite__mapDeps([48,1,2,30,31,32,33,7,34,35,36,9,8,37,38,39,40,41,42,43,16,17,18,4,19,49,50,51,52,53,54,55,56,57]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-bVpTzKvF.js"),__vite__mapDeps([58,1,2,59,4,34,50,51,52,53,54,18,60]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-B8-xI4D9.js"),__vite__mapDeps([61,1,2,29,62,50,51,52,53,54,18,63,4,64,33,8,65,39,66,16,17,19,34,9,55,56,3,5,6,67]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-BgCa2twE.js"),__vite__mapDeps([68,1,2,69,4,50,51,52,53,54,18,70]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-D3OUTmlb.js"),__vite__mapDeps([71,1,2,16,17,18,4,19,29,72,50,51,52,53,54,42,49,55,56,57]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-DaNVXt2N.js"),__vite__mapDeps([73,1,2,74,4,50,51,52,53,54,18,75]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-BPCgZ96x.js"),__vite__mapDeps([76,1,2,55,50,51,52,53,54,18,4,56]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories--3jyE05F.js"),__vite__mapDeps([77,78,1,2,4,50,51,52,53,54,18,79]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-CsBAflxt.js"),__vite__mapDeps([80,1,2,16,17,18,4,19,62,50,51,52,53,54,63,64,33,8,65,39,66,55,56,72,42,49,57,69,70,59,34,60,74,75,78,79,3,5,6]),import.meta.url),"./src/components/Form/PasswordForm.stories.tsx":async()=>t(()=>import("./PasswordForm.stories-BwMof9Sb.js"),__vite__mapDeps([81,1,2,43,82,4,53,54,18,52,83,16,17,19,62,50,51,63,64,33,8,65,39,66,72,42,49,55,56,57]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-dLtCz1BZ.js"),__vite__mapDeps([84,1,2,4,10,11,12,85]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories--8crEGuF.js"),__vite__mapDeps([86,1,2,40]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-1xIo_hQo.js"),__vite__mapDeps([87,1,2,29,14,4,15,40]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-CltYLVR9.js"),__vite__mapDeps([88,65,1,2,39,66]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-DKUKuDDV.js"),__vite__mapDeps([89,1,2,4,90]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-9isc27nP.js"),__vite__mapDeps([91,1,2,41,31,51,54,18,52,92,53,17,93,4,10,11,12,94,95,96,97,36,98,99,100]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-ClG-9o9N.js"),__vite__mapDeps([101,1,2,41,31,95,4,96,97,10,11,12,36,52,98,99,54,18,17,100]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-j8u_ja_x.js"),__vite__mapDeps([102,1,2,41,31,93,4,10,11,12,94,97,36,52,98,99,54,18,17,100]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-D_FDfRQp.js"),__vite__mapDeps([103,1,2,41,31,51,52,92,53,54,18,17,93,4,10,11,12,94,95,96,97,36,98,99,100,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-Cm_ealuo.js"),__vite__mapDeps([104,1,2,32,38,97,4,10,11,12,36,52,98]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-DfylCe--.js"),__vite__mapDeps([105,1,2,32,97,4,10,11,12,36,52,98,78,50,51,53,54,18,79]),import.meta.url),"./src/components/Nav/NavBar.stories.tsx":async()=>t(()=>import("./NavBar.stories-CZtOku47.js"),__vite__mapDeps([106,1,2,107,4,108]),import.meta.url),"./src/components/Nav/NavItem.stories.tsx":async()=>t(()=>import("./NavItem.stories-C3HoG-Mb.js"),__vite__mapDeps([109,1,2,107,4,108]),import.meta.url),"./src/components/Progress/Progress.stories.tsx":async()=>t(()=>import("./Progress.stories-DAVWD3Uk.js"),__vite__mapDeps([110,82,1,2,4,53,54,18,52,83]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-B2-OxqfX.js"),__vite__mapDeps([111,1,2,17,18,10,11,4,12,3,5,6,112]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-Bq6hTNC5.js"),__vite__mapDeps([113,1,2,4,37,63,50,51,52,53,54,18,64,114]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-CRxuvXnz.js"),__vite__mapDeps([115,99,1,2,4,54,18,52,17,100]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-C23ZRf6c.js"),__vite__mapDeps([116,1,2,4,117]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-CBO-GaDq.js"),__vite__mapDeps([118,1,2,16,17,18,4,19,41,13,5,14,15,20]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-DAvVKJ6f.js"),__vite__mapDeps([119,1,2,11,4,12,10]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-i1JtWLhZ.js"),__vite__mapDeps([120,10,1,2,11,4,12]),import.meta.url)};async function A(r){return y[r]()}const{composeConfigs:v,PreviewWeb:D,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,V=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-CErtCocD.js"),__vite__mapDeps([121,122,2,18]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-CfC3f9x0.js"),__vite__mapDeps([123,122,124,2]),import.meta.url),r[2]??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([125,126]),import.meta.url),r[3]??t(()=>import("./preview-DeZnz5a6.js"),[],import.meta.url),r[4]??t(()=>import("./preview-DHPc-V4N.js"),[],import.meta.url),r[5]??t(()=>import("./preview-ncvtW_hb.js"),__vite__mapDeps([127,128]),import.meta.url),r[6]??t(()=>import("./preview-DYzi3Z2p.js"),[],import.meta.url),r[7]??t(()=>import("./preview-CuLlOZat.js"),[],import.meta.url),r[8]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([129,128]),import.meta.url),r[9]??t(()=>import("./preview-caVMbCIR.js"),[],import.meta.url),r[10]??t(()=>import("./preview-CA0YOuCz.js"),__vite__mapDeps([130,29]),import.meta.url),r[11]??t(()=>import("./preview-CVgpLj3b.js"),[],import.meta.url),r[12]??t(()=>import("./preview-JGG8-KZq.js"),__vite__mapDeps([131,2,132]),import.meta.url)]);return v(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(A,V);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-7Fd1365_.js b/assets/index-DtyKFEbz.js similarity index 92% rename from assets/index-7Fd1365_.js rename to assets/index-DtyKFEbz.js index f406bd4c..963a2f66 100644 --- a/assets/index-7Fd1365_.js +++ b/assets/index-DtyKFEbz.js @@ -1 +1 @@ -import{m as c,a as T,G as b,K as d,P as S,g as B,L,b as C,v as H,w as u,c as g,E as y,$ as I,y as h,d as k,N as P,e as W,D as A,x as F,C as x,f as D,S as R,R as f,I as v,h as E,i as M,A as N,F as q,j as w,k as O,l as U,W as Z,n as j,T as z,t as G,o as J,p as K,q as Q,r as V,s as X,u as Y,z as _,B as $,H as aa,J as sa,M as oa,V as ta,O as ea,Q as ra,U as pa,X as ia,Y as na,Z as ma,_ as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-CGOvjbl8.js";import"./iframe-DXJOTyWR.js";import"../sb-preview/runtime.js";import"./index-DRjF_FHU.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BvEl7W6R.js";import"./index-D-8MO0q_.js";import"./index-CidnEmUr.js";import"./index-DrFu-skq.js";import"./react-18-BZ4hdgop.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; +import{m as c,a as T,G as b,K as d,P as S,g as B,L,b as C,v as H,w as u,c as g,E as y,$ as I,y as h,d as k,N as P,e as W,D as A,x as F,C as x,f as D,S as R,R as f,I as v,h as E,i as M,A as N,F as q,j as w,k as O,l as U,W as Z,n as j,T as z,t as G,o as J,p as K,q as Q,r as V,s as X,u as Y,z as _,B as $,H as aa,J as sa,M as oa,V as ta,O as ea,Q as ra,U as pa,X as ia,Y as na,Z as ma,_ as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-BoUvaZiz.js";import"./iframe-Bv-U4SsH.js";import"../sb-preview/runtime.js";import"./index-DRjF_FHU.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BvEl7W6R.js";import"./index-D-8MO0q_.js";import"./index-CidnEmUr.js";import"./index-DrFu-skq.js";import"./react-18-BZ4hdgop.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; diff --git a/assets/preview-C4N1rUWo.js b/assets/preview-DeZnz5a6.js similarity index 76% rename from assets/preview-C4N1rUWo.js rename to assets/preview-DeZnz5a6.js index cec2fb18..991defbf 100644 --- a/assets/preview-C4N1rUWo.js +++ b/assets/preview-DeZnz5a6.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-CGOvjbl8.js","./iframe-DXJOTyWR.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BvEl7W6R.js","./index-D-8MO0q_.js","./index-CidnEmUr.js","./index-DrFu-skq.js","./react-18-BZ4hdgop.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-DXJOTyWR.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-CGOvjbl8.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>i[r]).length===0&&!e.parameters.docs?.disable}}};export{d as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-BoUvaZiz.js","./iframe-Bv-U4SsH.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BvEl7W6R.js","./index-D-8MO0q_.js","./index-CidnEmUr.js","./index-DrFu-skq.js","./react-18-BZ4hdgop.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-Bv-U4SsH.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-BoUvaZiz.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>i[r]).length===0&&!e.parameters.docs?.disable}}};export{d as parameters}; diff --git a/iframe.html b/iframe.html index 0cb0ca5a..397b3f34 100644 --- a/iframe.html +++ b/iframe.html @@ -513,7 +513,7 @@ window.global = window; - + diff --git a/project.json b/project.json index 4d6004d1..7929030c 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1731662165885,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@playwright/test":"1.48.2","@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.6.3","@testing-library/react":"16.0.1","@testing-library/user-event":null,"@vitest/coverage-v8":"2.1.4","vitest":"2.1.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":12,"storybookVersion":"8.4.2","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.4.2"},"@storybook/manager-api":{"version":"8.4.2"},"@storybook/react":{"version":"8.4.2"},"@storybook/react-vite":{"version":"8.4.2"},"@storybook/test":{"version":"8.4.2"},"eslint-plugin-storybook":{"version":"0.11.0"},"storybook":{"version":"8.4.2"}},"addons":{"@storybook/addon-links":{"version":"8.4.2"},"@storybook/addon-essentials":{"version":"8.4.2"},"@storybook/addon-interactions":{"version":"8.4.2"},"@storybook/addon-designs":{"version":"8.0.4"},"@storybook/addon-themes":{"version":"8.4.2"}}} \ No newline at end of file +{"generatedAt":1731662532814,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@playwright/test":"1.48.2","@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.6.3","@testing-library/react":"16.0.1","@testing-library/user-event":null,"@vitest/coverage-v8":"2.1.4","vitest":"2.1.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":12,"storybookVersion":"8.4.2","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.4.2"},"@storybook/manager-api":{"version":"8.4.2"},"@storybook/react":{"version":"8.4.2"},"@storybook/react-vite":{"version":"8.4.2"},"@storybook/test":{"version":"8.4.2"},"eslint-plugin-storybook":{"version":"0.11.0"},"storybook":{"version":"8.4.2"}},"addons":{"@storybook/addon-links":{"version":"8.4.2"},"@storybook/addon-essentials":{"version":"8.4.2"},"@storybook/addon-interactions":{"version":"8.4.2"},"@storybook/addon-designs":{"version":"8.0.4"},"@storybook/addon-themes":{"version":"8.4.2"}}} \ No newline at end of file